1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for MPFR 4.2.0. 4# 5# 6# Copyright 1999-2023 Free Software Foundation, Inc. 7# Contributed by the AriC and Caramba projects, INRIA. 8# 9# This file is part of the GNU MPFR Library. 10# 11# The GNU MPFR Library is free software; you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License as published 13# by the Free Software Foundation; either version 3 of the License, or (at 14# your option) any later version. 15# 16# The GNU MPFR Library is distributed in the hope that it will be useful, but 17# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 18# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 19# License for more details. 20# 21# You should have received a copy of the GNU Lesser General Public License 22# along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see 23# https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 24# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 25# 26# 27# 28# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 29# Inc. 30# 31# 32# This configure script is free software; the Free Software Foundation 33# gives unlimited permission to copy, distribute and modify it. 34## -------------------- ## 35## M4sh Initialization. ## 36## -------------------- ## 37 38# Be more Bourne compatible 39DUALCASE=1; export DUALCASE # for MKS sh 40as_nop=: 41if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 42then : 43 emulate sh 44 NULLCMD=: 45 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 46 # is contrary to our usage. Disable this feature. 47 alias -g '${1+"$@"}'='"$@"' 48 setopt NO_GLOB_SUBST 49else $as_nop 50 case `(set -o) 2>/dev/null` in #( 51 *posix*) : 52 set -o posix ;; #( 53 *) : 54 ;; 55esac 56fi 57 58 59 60# Reset variables that may have inherited troublesome values from 61# the environment. 62 63# IFS needs to be set, to space, tab, and newline, in precisely that order. 64# (If _AS_PATH_WALK were called with IFS unset, it would have the 65# side effect of setting IFS to empty, thus disabling word splitting.) 66# Quoting is to prevent editors from complaining about space-tab. 67as_nl=' 68' 69export as_nl 70IFS=" "" $as_nl" 71 72PS1='$ ' 73PS2='> ' 74PS4='+ ' 75 76# Ensure predictable behavior from utilities with locale-dependent output. 77LC_ALL=C 78export LC_ALL 79LANGUAGE=C 80export LANGUAGE 81 82# We cannot yet rely on "unset" to work, but we need these variables 83# to be unset--not just set to an empty or harmless value--now, to 84# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 85# also avoids known problems related to "unset" and subshell syntax 86# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 87for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 88do eval test \${$as_var+y} \ 89 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 90done 91 92# Ensure that fds 0, 1, and 2 are open. 93if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 94if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 95if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 96 97# The user is always right. 98if ${PATH_SEPARATOR+false} :; then 99 PATH_SEPARATOR=: 100 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 101 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 102 PATH_SEPARATOR=';' 103 } 104fi 105 106 107# Find who we are. Look in the path if we contain no directory separator. 108as_myself= 109case $0 in #(( 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 case $as_dir in #((( 116 '') as_dir=./ ;; 117 */) ;; 118 *) as_dir=$as_dir/ ;; 119 esac 120 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 121 done 122IFS=$as_save_IFS 123 124 ;; 125esac 126# We did not find ourselves, most probably we were run as `sh COMMAND' 127# in which case we are not to be found in the path. 128if test "x$as_myself" = x; then 129 as_myself=$0 130fi 131if test ! -f "$as_myself"; then 132 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 133 exit 1 134fi 135 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 158exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="as_nop=: 164if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 165then : 166 emulate sh 167 NULLCMD=: 168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 169 # is contrary to our usage. Disable this feature. 170 alias -g '\${1+\"\$@\"}'='\"\$@\"' 171 setopt NO_GLOB_SUBST 172else \$as_nop 173 case \`(set -o) 2>/dev/null\` in #( 174 *posix*) : 175 set -o posix ;; #( 176 *) : 177 ;; 178esac 179fi 180" 181 as_required="as_fn_return () { (exit \$1); } 182as_fn_success () { as_fn_return 0; } 183as_fn_failure () { as_fn_return 1; } 184as_fn_ret_success () { return 0; } 185as_fn_ret_failure () { return 1; } 186 187exitcode=0 188as_fn_success || { exitcode=1; echo as_fn_success failed.; } 189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 192if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 193then : 194 195else \$as_nop 196 exitcode=1; echo positional parameters were not saved. 197fi 198test x\$exitcode = x0 || exit 1 199blah=\$(echo \$(echo blah)) 200test x\"\$blah\" = xblah || exit 1 201test -x / || exit 1" 202 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 203 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 204 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 205 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 206test \$(( 1 + 1 )) = 2 || exit 1 207 208 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 209 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 210 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 211 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 212 PATH=/empty FPATH=/empty; export PATH FPATH 213 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 214 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 215 if (eval "$as_required") 2>/dev/null 216then : 217 as_have_required=yes 218else $as_nop 219 as_have_required=no 220fi 221 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 222then : 223 224else $as_nop 225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 226as_found=false 227for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 228do 229 IFS=$as_save_IFS 230 case $as_dir in #((( 231 '') as_dir=./ ;; 232 */) ;; 233 *) as_dir=$as_dir/ ;; 234 esac 235 as_found=: 236 case $as_dir in #( 237 /*) 238 for as_base in sh bash ksh sh5; do 239 # Try only shells that exist, to save several forks. 240 as_shell=$as_dir$as_base 241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 242 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$as_shell as_have_required=yes 245 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 246then : 247 break 2 248fi 249fi 250 done;; 251 esac 252 as_found=false 253done 254IFS=$as_save_IFS 255if $as_found 256then : 257 258else $as_nop 259 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 260 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 261then : 262 CONFIG_SHELL=$SHELL as_have_required=yes 263fi 264fi 265 266 267 if test "x$CONFIG_SHELL" != x 268then : 269 export CONFIG_SHELL 270 # We cannot yet assume a decent shell, so we have to provide a 271# neutralization value for shells without unset; and this also 272# works around shells that cannot unset nonexistent variables. 273# Preserve -v and -x to the replacement shell. 274BASH_ENV=/dev/null 275ENV=/dev/null 276(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 277case $- in # (((( 278 *v*x* | *x*v* ) as_opts=-vx ;; 279 *v* ) as_opts=-v ;; 280 *x* ) as_opts=-x ;; 281 * ) as_opts= ;; 282esac 283exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 284# Admittedly, this is quite paranoid, since all the known shells bail 285# out after a failed `exec'. 286printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 287exit 255 288fi 289 290 if test x$as_have_required = xno 291then : 292 printf "%s\n" "$0: This script requires a shell more modern than all" 293 printf "%s\n" "$0: the shells that I found on your system." 294 if test ${ZSH_VERSION+y} ; then 295 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 296 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 297 else 298 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, 299$0: including any error possibly output before this 300$0: message. Then install a modern shell, or manually run 301$0: the script under such a shell if you do have one." 302 fi 303 exit 1 304fi 305fi 306fi 307SHELL=${CONFIG_SHELL-/bin/sh} 308export SHELL 309# Unset more variables known to interfere with behavior of common tools. 310CLICOLOR_FORCE= GREP_OPTIONS= 311unset CLICOLOR_FORCE GREP_OPTIONS 312 313## --------------------- ## 314## M4sh Shell Functions. ## 315## --------------------- ## 316# as_fn_unset VAR 317# --------------- 318# Portably unset VAR. 319as_fn_unset () 320{ 321 { eval $1=; unset $1;} 322} 323as_unset=as_fn_unset 324 325 326# as_fn_set_status STATUS 327# ----------------------- 328# Set $? to STATUS, without forking. 329as_fn_set_status () 330{ 331 return $1 332} # as_fn_set_status 333 334# as_fn_exit STATUS 335# ----------------- 336# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 337as_fn_exit () 338{ 339 set +e 340 as_fn_set_status $1 341 exit $1 342} # as_fn_exit 343# as_fn_nop 344# --------- 345# Do nothing but, unlike ":", preserve the value of $?. 346as_fn_nop () 347{ 348 return $? 349} 350as_nop=as_fn_nop 351 352# as_fn_mkdir_p 353# ------------- 354# Create "$as_dir" as a directory, including parents if necessary. 355as_fn_mkdir_p () 356{ 357 358 case $as_dir in #( 359 -*) as_dir=./$as_dir;; 360 esac 361 test -d "$as_dir" || eval $as_mkdir_p || { 362 as_dirs= 363 while :; do 364 case $as_dir in #( 365 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 366 *) as_qdir=$as_dir;; 367 esac 368 as_dirs="'$as_qdir' $as_dirs" 369 as_dir=`$as_dirname -- "$as_dir" || 370$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 371 X"$as_dir" : 'X\(//\)[^/]' \| \ 372 X"$as_dir" : 'X\(//\)$' \| \ 373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 374printf "%s\n" X"$as_dir" | 375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 376 s//\1/ 377 q 378 } 379 /^X\(\/\/\)[^/].*/{ 380 s//\1/ 381 q 382 } 383 /^X\(\/\/\)$/{ 384 s//\1/ 385 q 386 } 387 /^X\(\/\).*/{ 388 s//\1/ 389 q 390 } 391 s/.*/./; q'` 392 test -d "$as_dir" && break 393 done 394 test -z "$as_dirs" || eval "mkdir $as_dirs" 395 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 396 397 398} # as_fn_mkdir_p 399 400# as_fn_executable_p FILE 401# ----------------------- 402# Test if FILE is an executable regular file. 403as_fn_executable_p () 404{ 405 test -f "$1" && test -x "$1" 406} # as_fn_executable_p 407# as_fn_append VAR VALUE 408# ---------------------- 409# Append the text in VALUE to the end of the definition contained in VAR. Take 410# advantage of any shell optimizations that allow amortized linear growth over 411# repeated appends, instead of the typical quadratic growth present in naive 412# implementations. 413if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 414then : 415 eval 'as_fn_append () 416 { 417 eval $1+=\$2 418 }' 419else $as_nop 420 as_fn_append () 421 { 422 eval $1=\$$1\$2 423 } 424fi # as_fn_append 425 426# as_fn_arith ARG... 427# ------------------ 428# Perform arithmetic evaluation on the ARGs, and store the result in the 429# global $as_val. Take advantage of shells that can avoid forks. The arguments 430# must be portable across $(()) and expr. 431if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 432then : 433 eval 'as_fn_arith () 434 { 435 as_val=$(( $* )) 436 }' 437else $as_nop 438 as_fn_arith () 439 { 440 as_val=`expr "$@" || test $? -eq 1` 441 } 442fi # as_fn_arith 443 444# as_fn_nop 445# --------- 446# Do nothing but, unlike ":", preserve the value of $?. 447as_fn_nop () 448{ 449 return $? 450} 451as_nop=as_fn_nop 452 453# as_fn_error STATUS ERROR [LINENO LOG_FD] 454# ---------------------------------------- 455# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 456# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 457# script with STATUS, using 1 if that was 0. 458as_fn_error () 459{ 460 as_status=$1; test $as_status -eq 0 && as_status=1 461 if test "$4"; then 462 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 464 fi 465 printf "%s\n" "$as_me: error: $2" >&2 466 as_fn_exit $as_status 467} # as_fn_error 468 469if expr a : '\(a\)' >/dev/null 2>&1 && 470 test "X`expr 00001 : '.*\(...\)'`" = X001; then 471 as_expr=expr 472else 473 as_expr=false 474fi 475 476if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 477 as_basename=basename 478else 479 as_basename=false 480fi 481 482if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 483 as_dirname=dirname 484else 485 as_dirname=false 486fi 487 488as_me=`$as_basename -- "$0" || 489$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 490 X"$0" : 'X\(//\)$' \| \ 491 X"$0" : 'X\(/\)' \| . 2>/dev/null || 492printf "%s\n" X/"$0" | 493 sed '/^.*\/\([^/][^/]*\)\/*$/{ 494 s//\1/ 495 q 496 } 497 /^X\/\(\/\/\)$/{ 498 s//\1/ 499 q 500 } 501 /^X\/\(\/\).*/{ 502 s//\1/ 503 q 504 } 505 s/.*/./; q'` 506 507# Avoid depending upon Character Ranges. 508as_cr_letters='abcdefghijklmnopqrstuvwxyz' 509as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 510as_cr_Letters=$as_cr_letters$as_cr_LETTERS 511as_cr_digits='0123456789' 512as_cr_alnum=$as_cr_Letters$as_cr_digits 513 514 515 as_lineno_1=$LINENO as_lineno_1a=$LINENO 516 as_lineno_2=$LINENO as_lineno_2a=$LINENO 517 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 518 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 519 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 520 sed -n ' 521 p 522 /[$]LINENO/= 523 ' <$as_myself | 524 sed ' 525 s/[$]LINENO.*/&-/ 526 t lineno 527 b 528 :lineno 529 N 530 :loop 531 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 532 t loop 533 s/-\n.*// 534 ' >$as_me.lineno && 535 chmod +x "$as_me.lineno" || 536 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 537 538 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 539 # already done that, so ensure we don't try to do so again and fall 540 # in an infinite loop. This has already happened in practice. 541 _as_can_reexec=no; export _as_can_reexec 542 # Don't try to exec as it changes $[0], causing all sort of problems 543 # (the dirname of $[0] is not the place where we might find the 544 # original and so on. Autoconf is especially sensitive to this). 545 . "./$as_me.lineno" 546 # Exit status is that of the last command. 547 exit 548} 549 550 551# Determine whether it's possible to make 'echo' print without a newline. 552# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 553# for compatibility with existing Makefiles. 554ECHO_C= ECHO_N= ECHO_T= 555case `echo -n x` in #((((( 556-n*) 557 case `echo 'xy\c'` in 558 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 559 xy) ECHO_C='\c';; 560 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 561 ECHO_T=' ';; 562 esac;; 563*) 564 ECHO_N='-n';; 565esac 566 567# For backward compatibility with old third-party macros, we provide 568# the shell variables $as_echo and $as_echo_n. New code should use 569# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 570as_echo='printf %s\n' 571as_echo_n='printf %s' 572 573 574rm -f conf$$ conf$$.exe conf$$.file 575if test -d conf$$.dir; then 576 rm -f conf$$.dir/conf$$.file 577else 578 rm -f conf$$.dir 579 mkdir conf$$.dir 2>/dev/null 580fi 581if (echo >conf$$.file) 2>/dev/null; then 582 if ln -s conf$$.file conf$$ 2>/dev/null; then 583 as_ln_s='ln -s' 584 # ... but there are two gotchas: 585 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 586 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 587 # In both cases, we have to default to `cp -pR'. 588 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 589 as_ln_s='cp -pR' 590 elif ln conf$$.file conf$$ 2>/dev/null; then 591 as_ln_s=ln 592 else 593 as_ln_s='cp -pR' 594 fi 595else 596 as_ln_s='cp -pR' 597fi 598rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 599rmdir conf$$.dir 2>/dev/null 600 601if mkdir -p . 2>/dev/null; then 602 as_mkdir_p='mkdir -p "$as_dir"' 603else 604 test -d ./-p && rmdir ./-p 605 as_mkdir_p=false 606fi 607 608as_test_x='test -x' 609as_executable_p=as_fn_executable_p 610 611# Sed expression to map a string onto a valid CPP name. 612as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 613 614# Sed expression to map a string onto a valid variable name. 615as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 616 617SHELL=${CONFIG_SHELL-/bin/sh} 618 619 620test -n "$DJDIR" || exec 7<&0 </dev/null 621exec 6>&1 622 623# Name of the host. 624# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 625# so uname gets run too. 626ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 627 628# 629# Initializations. 630# 631ac_default_prefix=/usr/local 632ac_clean_files= 633ac_config_libobj_dir=. 634LIBOBJS= 635cross_compiling=no 636subdirs= 637MFLAGS= 638MAKEFLAGS= 639 640# Identity of this package. 641PACKAGE_NAME='MPFR' 642PACKAGE_TARNAME='mpfr' 643PACKAGE_VERSION='4.2.0' 644PACKAGE_STRING='MPFR 4.2.0' 645PACKAGE_BUGREPORT='' 646PACKAGE_URL='' 647 648# Factoring default headers for most tests. 649ac_includes_default="\ 650#include <stddef.h> 651#ifdef HAVE_STDIO_H 652# include <stdio.h> 653#endif 654#ifdef HAVE_STDLIB_H 655# include <stdlib.h> 656#endif 657#ifdef HAVE_STRING_H 658# include <string.h> 659#endif 660#ifdef HAVE_INTTYPES_H 661# include <inttypes.h> 662#endif 663#ifdef HAVE_STDINT_H 664# include <stdint.h> 665#endif 666#ifdef HAVE_STRINGS_H 667# include <strings.h> 668#endif 669#ifdef HAVE_SYS_TYPES_H 670# include <sys/types.h> 671#endif 672#ifdef HAVE_SYS_STAT_H 673# include <sys/stat.h> 674#endif 675#ifdef HAVE_UNISTD_H 676# include <unistd.h> 677#endif" 678 679ac_header_c_list= 680ac_subst_vars='am__EXEEXT_FALSE 681am__EXEEXT_TRUE 682LTLIBOBJS 683LIBOBJS 684DATAFILES 685LIBMPFR_LDFLAGS 686MPFR_LDFLAGS 687ALLOCA 688PTHREAD_CFLAGS 689PTHREAD_LIBS 690PTHREAD_CXX 691PTHREAD_CC 692ax_pthread_config 693MPFR_LIBQUADMATH 694MPFR_LIBM 695TUNE_LIBS 696LT_SYS_LIBRARY_PATH 697OTOOL64 698OTOOL 699LIPO 700NMEDIT 701DSYMUTIL 702MANIFEST_TOOL 703RANLIB 704FILECMD 705LN_S 706NM 707ac_ct_DUMPBIN 708DUMPBIN 709LD 710FGREP 711LIBTOOL 712OBJDUMP 713DLLTOOL 714AS 715ac_ct_AR 716AR 717CPP 718am__fastdepCC_FALSE 719am__fastdepCC_TRUE 720CCDEPMODE 721am__nodep 722AMDEPBACKSLASH 723AMDEP_FALSE 724AMDEP_TRUE 725am__include 726DEPDIR 727OBJEXT 728EXEEXT 729ac_ct_CC 730CPPFLAGS 731LDFLAGS 732CFLAGS 733CC 734MINI_GMP_FALSE 735MINI_GMP_TRUE 736mini_gmp_path 737SED 738EGREP 739GREP 740MAINT 741MAINTAINER_MODE_FALSE 742MAINTAINER_MODE_TRUE 743AM_BACKSLASH 744AM_DEFAULT_VERBOSITY 745AM_DEFAULT_V 746AM_V 747CSCOPE 748ETAGS 749CTAGS 750am__untar 751am__tar 752AMTAR 753am__leading_dot 754SET_MAKE 755AWK 756mkdir_p 757MKDIR_P 758INSTALL_STRIP_PROGRAM 759STRIP 760install_sh 761MAKEINFO 762AUTOHEADER 763AUTOMAKE 764AUTOCONF 765ACLOCAL 766VERSION 767PACKAGE 768CYGPATH_W 769am__isrc 770INSTALL_DATA 771INSTALL_SCRIPT 772INSTALL_PROGRAM 773host_os 774host_vendor 775host_cpu 776host 777build_os 778build_vendor 779build_cpu 780build 781target_alias 782host_alias 783build_alias 784LIBS 785ECHO_T 786ECHO_N 787ECHO_C 788DEFS 789mandir 790localedir 791libdir 792psdir 793pdfdir 794dvidir 795htmldir 796infodir 797docdir 798oldincludedir 799includedir 800runstatedir 801localstatedir 802sharedstatedir 803sysconfdir 804datadir 805datarootdir 806libexecdir 807sbindir 808bindir 809program_transform_name 810prefix 811exec_prefix 812PACKAGE_URL 813PACKAGE_BUGREPORT 814PACKAGE_STRING 815PACKAGE_VERSION 816PACKAGE_TARNAME 817PACKAGE_NAME 818PATH_SEPARATOR 819SHELL 820am__quote' 821ac_subst_files='' 822ac_user_opts=' 823enable_option_checking 824enable_silent_rules 825enable_maintainer_mode 826with_gmp_include 827with_gmp_lib 828with_gmp 829with_gmp_build 830with_mini_gmp 831with_mulhigh_size 832enable_gmp_internals 833enable_assert 834enable_logging 835enable_thread_safe 836enable_shared_cache 837enable_warnings 838enable_tests_timeout 839enable_tune_for_coverage 840enable_decimal_float 841enable_float128 842enable_debug_prediction 843enable_lto 844enable_formally_proven_code 845enable_dependency_tracking 846enable_shared 847enable_static 848with_pic 849enable_fast_install 850with_aix_soname 851with_gnu_ld 852with_sysroot 853enable_libtool_lock 854' 855 ac_precious_vars='build_alias 856host_alias 857target_alias 858CC 859CFLAGS 860LDFLAGS 861LIBS 862CPPFLAGS 863CPP 864LT_SYS_LIBRARY_PATH' 865 866 867# Initialize some variables set by options. 868ac_init_help= 869ac_init_version=false 870ac_unrecognized_opts= 871ac_unrecognized_sep= 872# The variables have the same names as the options, with 873# dashes changed to underlines. 874cache_file=/dev/null 875exec_prefix=NONE 876no_create= 877no_recursion= 878prefix=NONE 879program_prefix=NONE 880program_suffix=NONE 881program_transform_name=s,x,x, 882silent= 883site= 884srcdir= 885verbose= 886x_includes=NONE 887x_libraries=NONE 888 889# Installation directory options. 890# These are left unexpanded so users can "make install exec_prefix=/foo" 891# and all the variables that are supposed to be based on exec_prefix 892# by default will actually change. 893# Use braces instead of parens because sh, perl, etc. also accept them. 894# (The list follows the same order as the GNU Coding Standards.) 895bindir='${exec_prefix}/bin' 896sbindir='${exec_prefix}/sbin' 897libexecdir='${exec_prefix}/libexec' 898datarootdir='${prefix}/share' 899datadir='${datarootdir}' 900sysconfdir='${prefix}/etc' 901sharedstatedir='${prefix}/com' 902localstatedir='${prefix}/var' 903runstatedir='${localstatedir}/run' 904includedir='${prefix}/include' 905oldincludedir='/usr/include' 906docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 907infodir='${datarootdir}/info' 908htmldir='${docdir}' 909dvidir='${docdir}' 910pdfdir='${docdir}' 911psdir='${docdir}' 912libdir='${exec_prefix}/lib' 913localedir='${datarootdir}/locale' 914mandir='${datarootdir}/man' 915 916ac_prev= 917ac_dashdash= 918for ac_option 919do 920 # If the previous option needs an argument, assign it. 921 if test -n "$ac_prev"; then 922 eval $ac_prev=\$ac_option 923 ac_prev= 924 continue 925 fi 926 927 case $ac_option in 928 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 929 *=) ac_optarg= ;; 930 *) ac_optarg=yes ;; 931 esac 932 933 case $ac_dashdash$ac_option in 934 --) 935 ac_dashdash=yes ;; 936 937 -bindir | --bindir | --bindi | --bind | --bin | --bi) 938 ac_prev=bindir ;; 939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 940 bindir=$ac_optarg ;; 941 942 -build | --build | --buil | --bui | --bu) 943 ac_prev=build_alias ;; 944 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 945 build_alias=$ac_optarg ;; 946 947 -cache-file | --cache-file | --cache-fil | --cache-fi \ 948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 949 ac_prev=cache_file ;; 950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 952 cache_file=$ac_optarg ;; 953 954 --config-cache | -C) 955 cache_file=config.cache ;; 956 957 -datadir | --datadir | --datadi | --datad) 958 ac_prev=datadir ;; 959 -datadir=* | --datadir=* | --datadi=* | --datad=*) 960 datadir=$ac_optarg ;; 961 962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 963 | --dataroo | --dataro | --datar) 964 ac_prev=datarootdir ;; 965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 967 datarootdir=$ac_optarg ;; 968 969 -disable-* | --disable-*) 970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 971 # Reject names that are not valid shell variable names. 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 973 as_fn_error $? "invalid feature name: \`$ac_useropt'" 974 ac_useropt_orig=$ac_useropt 975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 976 case $ac_user_opts in 977 *" 978"enable_$ac_useropt" 979"*) ;; 980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 981 ac_unrecognized_sep=', ';; 982 esac 983 eval enable_$ac_useropt=no ;; 984 985 -docdir | --docdir | --docdi | --doc | --do) 986 ac_prev=docdir ;; 987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 988 docdir=$ac_optarg ;; 989 990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 991 ac_prev=dvidir ;; 992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 993 dvidir=$ac_optarg ;; 994 995 -enable-* | --enable-*) 996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 997 # Reject names that are not valid shell variable names. 998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 999 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1000 ac_useropt_orig=$ac_useropt 1001 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1002 case $ac_user_opts in 1003 *" 1004"enable_$ac_useropt" 1005"*) ;; 1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1007 ac_unrecognized_sep=', ';; 1008 esac 1009 eval enable_$ac_useropt=\$ac_optarg ;; 1010 1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1013 | --exec | --exe | --ex) 1014 ac_prev=exec_prefix ;; 1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1017 | --exec=* | --exe=* | --ex=*) 1018 exec_prefix=$ac_optarg ;; 1019 1020 -gas | --gas | --ga | --g) 1021 # Obsolete; use --with-gas. 1022 with_gas=yes ;; 1023 1024 -help | --help | --hel | --he | -h) 1025 ac_init_help=long ;; 1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1027 ac_init_help=recursive ;; 1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1029 ac_init_help=short ;; 1030 1031 -host | --host | --hos | --ho) 1032 ac_prev=host_alias ;; 1033 -host=* | --host=* | --hos=* | --ho=*) 1034 host_alias=$ac_optarg ;; 1035 1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1037 ac_prev=htmldir ;; 1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1039 | --ht=*) 1040 htmldir=$ac_optarg ;; 1041 1042 -includedir | --includedir | --includedi | --included | --include \ 1043 | --includ | --inclu | --incl | --inc) 1044 ac_prev=includedir ;; 1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1046 | --includ=* | --inclu=* | --incl=* | --inc=*) 1047 includedir=$ac_optarg ;; 1048 1049 -infodir | --infodir | --infodi | --infod | --info | --inf) 1050 ac_prev=infodir ;; 1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1052 infodir=$ac_optarg ;; 1053 1054 -libdir | --libdir | --libdi | --libd) 1055 ac_prev=libdir ;; 1056 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1057 libdir=$ac_optarg ;; 1058 1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1060 | --libexe | --libex | --libe) 1061 ac_prev=libexecdir ;; 1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1063 | --libexe=* | --libex=* | --libe=*) 1064 libexecdir=$ac_optarg ;; 1065 1066 -localedir | --localedir | --localedi | --localed | --locale) 1067 ac_prev=localedir ;; 1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1069 localedir=$ac_optarg ;; 1070 1071 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1072 | --localstate | --localstat | --localsta | --localst | --locals) 1073 ac_prev=localstatedir ;; 1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1076 localstatedir=$ac_optarg ;; 1077 1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1079 ac_prev=mandir ;; 1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1081 mandir=$ac_optarg ;; 1082 1083 -nfp | --nfp | --nf) 1084 # Obsolete; use --without-fp. 1085 with_fp=no ;; 1086 1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1088 | --no-cr | --no-c | -n) 1089 no_create=yes ;; 1090 1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1093 no_recursion=yes ;; 1094 1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1097 | --oldin | --oldi | --old | --ol | --o) 1098 ac_prev=oldincludedir ;; 1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1102 oldincludedir=$ac_optarg ;; 1103 1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1105 ac_prev=prefix ;; 1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1107 prefix=$ac_optarg ;; 1108 1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1110 | --program-pre | --program-pr | --program-p) 1111 ac_prev=program_prefix ;; 1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1114 program_prefix=$ac_optarg ;; 1115 1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1117 | --program-suf | --program-su | --program-s) 1118 ac_prev=program_suffix ;; 1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1121 program_suffix=$ac_optarg ;; 1122 1123 -program-transform-name | --program-transform-name \ 1124 | --program-transform-nam | --program-transform-na \ 1125 | --program-transform-n | --program-transform- \ 1126 | --program-transform | --program-transfor \ 1127 | --program-transfo | --program-transf \ 1128 | --program-trans | --program-tran \ 1129 | --progr-tra | --program-tr | --program-t) 1130 ac_prev=program_transform_name ;; 1131 -program-transform-name=* | --program-transform-name=* \ 1132 | --program-transform-nam=* | --program-transform-na=* \ 1133 | --program-transform-n=* | --program-transform-=* \ 1134 | --program-transform=* | --program-transfor=* \ 1135 | --program-transfo=* | --program-transf=* \ 1136 | --program-trans=* | --program-tran=* \ 1137 | --progr-tra=* | --program-tr=* | --program-t=*) 1138 program_transform_name=$ac_optarg ;; 1139 1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1141 ac_prev=pdfdir ;; 1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1143 pdfdir=$ac_optarg ;; 1144 1145 -psdir | --psdir | --psdi | --psd | --ps) 1146 ac_prev=psdir ;; 1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1148 psdir=$ac_optarg ;; 1149 1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1151 | -silent | --silent | --silen | --sile | --sil) 1152 silent=yes ;; 1153 1154 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1155 | --runstate | --runstat | --runsta | --runst | --runs \ 1156 | --run | --ru | --r) 1157 ac_prev=runstatedir ;; 1158 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1159 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1160 | --run=* | --ru=* | --r=*) 1161 runstatedir=$ac_optarg ;; 1162 1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1164 ac_prev=sbindir ;; 1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1166 | --sbi=* | --sb=*) 1167 sbindir=$ac_optarg ;; 1168 1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1171 | --sharedst | --shareds | --shared | --share | --shar \ 1172 | --sha | --sh) 1173 ac_prev=sharedstatedir ;; 1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1177 | --sha=* | --sh=*) 1178 sharedstatedir=$ac_optarg ;; 1179 1180 -site | --site | --sit) 1181 ac_prev=site ;; 1182 -site=* | --site=* | --sit=*) 1183 site=$ac_optarg ;; 1184 1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1186 ac_prev=srcdir ;; 1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1188 srcdir=$ac_optarg ;; 1189 1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1191 | --syscon | --sysco | --sysc | --sys | --sy) 1192 ac_prev=sysconfdir ;; 1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1195 sysconfdir=$ac_optarg ;; 1196 1197 -target | --target | --targe | --targ | --tar | --ta | --t) 1198 ac_prev=target_alias ;; 1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1200 target_alias=$ac_optarg ;; 1201 1202 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1203 verbose=yes ;; 1204 1205 -version | --version | --versio | --versi | --vers | -V) 1206 ac_init_version=: ;; 1207 1208 -with-* | --with-*) 1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1210 # Reject names that are not valid shell variable names. 1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1212 as_fn_error $? "invalid package name: \`$ac_useropt'" 1213 ac_useropt_orig=$ac_useropt 1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1215 case $ac_user_opts in 1216 *" 1217"with_$ac_useropt" 1218"*) ;; 1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1220 ac_unrecognized_sep=', ';; 1221 esac 1222 eval with_$ac_useropt=\$ac_optarg ;; 1223 1224 -without-* | --without-*) 1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1226 # Reject names that are not valid shell variable names. 1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1228 as_fn_error $? "invalid package name: \`$ac_useropt'" 1229 ac_useropt_orig=$ac_useropt 1230 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1231 case $ac_user_opts in 1232 *" 1233"with_$ac_useropt" 1234"*) ;; 1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1236 ac_unrecognized_sep=', ';; 1237 esac 1238 eval with_$ac_useropt=no ;; 1239 1240 --x) 1241 # Obsolete; use --with-x. 1242 with_x=yes ;; 1243 1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1245 | --x-incl | --x-inc | --x-in | --x-i) 1246 ac_prev=x_includes ;; 1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1249 x_includes=$ac_optarg ;; 1250 1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1253 ac_prev=x_libraries ;; 1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1256 x_libraries=$ac_optarg ;; 1257 1258 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1259Try \`$0 --help' for more information" 1260 ;; 1261 1262 *=*) 1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1264 # Reject names that are not valid shell variable names. 1265 case $ac_envvar in #( 1266 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1268 esac 1269 eval $ac_envvar=\$ac_optarg 1270 export $ac_envvar ;; 1271 1272 *) 1273 # FIXME: should be removed in autoconf 3.0. 1274 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1276 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1278 ;; 1279 1280 esac 1281done 1282 1283if test -n "$ac_prev"; then 1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1285 as_fn_error $? "missing argument to $ac_option" 1286fi 1287 1288if test -n "$ac_unrecognized_opts"; then 1289 case $enable_option_checking in 1290 no) ;; 1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1292 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1293 esac 1294fi 1295 1296# Check all directory arguments for consistency. 1297for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1298 datadir sysconfdir sharedstatedir localstatedir includedir \ 1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1300 libdir localedir mandir runstatedir 1301do 1302 eval ac_val=\$$ac_var 1303 # Remove trailing slashes. 1304 case $ac_val in 1305 */ ) 1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1307 eval $ac_var=\$ac_val;; 1308 esac 1309 # Be sure to have absolute directory names. 1310 case $ac_val in 1311 [\\/$]* | ?:[\\/]* ) continue;; 1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1313 esac 1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1315done 1316 1317# There might be people who depend on the old broken behavior: `$host' 1318# used to hold the argument of --host etc. 1319# FIXME: To remove some day. 1320build=$build_alias 1321host=$host_alias 1322target=$target_alias 1323 1324# FIXME: To remove some day. 1325if test "x$host_alias" != x; then 1326 if test "x$build_alias" = x; then 1327 cross_compiling=maybe 1328 elif test "x$build_alias" != "x$host_alias"; then 1329 cross_compiling=yes 1330 fi 1331fi 1332 1333ac_tool_prefix= 1334test -n "$host_alias" && ac_tool_prefix=$host_alias- 1335 1336test "$silent" = yes && exec 6>/dev/null 1337 1338 1339ac_pwd=`pwd` && test -n "$ac_pwd" && 1340ac_ls_di=`ls -di .` && 1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1342 as_fn_error $? "working directory cannot be determined" 1343test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1344 as_fn_error $? "pwd does not report name of working directory" 1345 1346 1347# Find the source files, if location was not specified. 1348if test -z "$srcdir"; then 1349 ac_srcdir_defaulted=yes 1350 # Try the directory containing this script, then the parent directory. 1351 ac_confdir=`$as_dirname -- "$as_myself" || 1352$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1353 X"$as_myself" : 'X\(//\)[^/]' \| \ 1354 X"$as_myself" : 'X\(//\)$' \| \ 1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1356printf "%s\n" X"$as_myself" | 1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\/\)[^/].*/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\/\)$/{ 1366 s//\1/ 1367 q 1368 } 1369 /^X\(\/\).*/{ 1370 s//\1/ 1371 q 1372 } 1373 s/.*/./; q'` 1374 srcdir=$ac_confdir 1375 if test ! -r "$srcdir/$ac_unique_file"; then 1376 srcdir=.. 1377 fi 1378else 1379 ac_srcdir_defaulted=no 1380fi 1381if test ! -r "$srcdir/$ac_unique_file"; then 1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1384fi 1385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1386ac_abs_confdir=`( 1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1388 pwd)` 1389# When building in place, set srcdir=. 1390if test "$ac_abs_confdir" = "$ac_pwd"; then 1391 srcdir=. 1392fi 1393# Remove unnecessary trailing slashes from srcdir. 1394# Double slashes in file names in object file debugging info 1395# mess up M-x gdb in Emacs. 1396case $srcdir in 1397*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1398esac 1399for ac_var in $ac_precious_vars; do 1400 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_env_${ac_var}_value=\$${ac_var} 1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1403 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1404done 1405 1406# 1407# Report the --help message. 1408# 1409if test "$ac_init_help" = "long"; then 1410 # Omit some internal or obsolete options to make the list less imposing. 1411 # This message is too long to be a string in the A/UX 3.1 sh. 1412 cat <<_ACEOF 1413\`configure' configures MPFR 4.2.0 to adapt to many kinds of systems. 1414 1415Usage: $0 [OPTION]... [VAR=VALUE]... 1416 1417To assign environment variables (e.g., CC, CFLAGS...), specify them as 1418VAR=VALUE. See below for descriptions of some of the useful variables. 1419 1420Defaults for the options are specified in brackets. 1421 1422Configuration: 1423 -h, --help display this help and exit 1424 --help=short display options specific to this package 1425 --help=recursive display the short help of all the included packages 1426 -V, --version display version information and exit 1427 -q, --quiet, --silent do not print \`checking ...' messages 1428 --cache-file=FILE cache test results in FILE [disabled] 1429 -C, --config-cache alias for \`--cache-file=config.cache' 1430 -n, --no-create do not create output files 1431 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1432 1433Installation directories: 1434 --prefix=PREFIX install architecture-independent files in PREFIX 1435 [$ac_default_prefix] 1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1437 [PREFIX] 1438 1439By default, \`make install' will install all the files in 1440\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1441an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1442for instance \`--prefix=\$HOME'. 1443 1444For better control, use the options below. 1445 1446Fine tuning of the installation directories: 1447 --bindir=DIR user executables [EPREFIX/bin] 1448 --sbindir=DIR system admin executables [EPREFIX/sbin] 1449 --libexecdir=DIR program executables [EPREFIX/libexec] 1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1453 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1454 --libdir=DIR object code libraries [EPREFIX/lib] 1455 --includedir=DIR C header files [PREFIX/include] 1456 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1459 --infodir=DIR info documentation [DATAROOTDIR/info] 1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1461 --mandir=DIR man documentation [DATAROOTDIR/man] 1462 --docdir=DIR documentation root [DATAROOTDIR/doc/mpfr] 1463 --htmldir=DIR html documentation [DOCDIR] 1464 --dvidir=DIR dvi documentation [DOCDIR] 1465 --pdfdir=DIR pdf documentation [DOCDIR] 1466 --psdir=DIR ps documentation [DOCDIR] 1467_ACEOF 1468 1469 cat <<\_ACEOF 1470 1471Program names: 1472 --program-prefix=PREFIX prepend PREFIX to installed program names 1473 --program-suffix=SUFFIX append SUFFIX to installed program names 1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1475 1476System types: 1477 --build=BUILD configure for building on BUILD [guessed] 1478 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1479_ACEOF 1480fi 1481 1482if test -n "$ac_init_help"; then 1483 case $ac_init_help in 1484 short | recursive ) echo "Configuration of MPFR 4.2.0:";; 1485 esac 1486 cat <<\_ACEOF 1487 1488Optional Features: 1489 --disable-option-checking ignore unrecognized --enable/--with options 1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1492 --enable-silent-rules less verbose build output (undo: "make V=1") 1493 --disable-silent-rules verbose build output (undo: "make V=0") 1494 --disable-maintainer-mode 1495 disable make rules and dependencies not useful (and 1496 sometimes confusing) to the casual installer 1497 --enable-gmp-internals enable use of GMP undocumented functions [default=no] 1498 --enable-assert enable ASSERT checking [default=no] 1499 --enable-logging enable MPFR logging (needs nested functions 1500 and the 'cleanup' attribute) [default=no] 1501 --disable-thread-safe explicitly disable TLS support 1502 --enable-thread-safe build MPFR as thread safe, i.e. with TLS support 1503 (the system must support it) [default=autodetect] 1504 --enable-shared-cache enable use of caches shared by all threads, 1505 for all MPFR constants. It usually makes MPFR 1506 dependent on PTHREAD [default=no] 1507 --enable-warnings allow MPFR to output warnings to stderr [default=no] 1508 --enable-tests-timeout=NUM 1509 [for developers] enable timeout for test programs 1510 (NUM seconds, <= 9999) [default=no]; if this is 1511 enabled, the environment variable $MPFR_TESTS_TIMEOUT 1512 overrides NUM (0: no timeout) 1513 --enable-tune-for-coverage 1514 [for developers] tune MPFR for coverage tests 1515 --disable-decimal-float explicitly disable decimal floats support 1516 --enable-decimal-float build conversion functions from/to decimal floats 1517 (see INSTALL file for details) [default=auto] 1518 --disable-float128 explicitly disable binary128 support 1519 --enable-float128 build conversion functions from/to binary128 1520 (_Float128 or __float128) [default=autodetect] 1521 --enable-debug-prediction 1522 [for developers] enable debug of branch prediction 1523 (for x86 and x86-64 with GCC, static libs) 1524 --enable-lto build MPFR with link-time-optimization 1525 (experimental) [default: no] 1526 --enable-formally-proven-code 1527 use formally proven code when available 1528 (needs a C99 compiler) [default=no] 1529 --enable-dependency-tracking 1530 do not reject slow dependency extractors 1531 --disable-dependency-tracking 1532 speeds up one-time build 1533 --enable-shared[=PKGS] build shared libraries [default=yes] 1534 --enable-static[=PKGS] build static libraries [default=yes] 1535 --enable-fast-install[=PKGS] 1536 optimize for fast installation [default=yes] 1537 --disable-libtool-lock avoid locking (might break parallel builds) 1538 1539Optional Packages: 1540 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1541 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1542 --with-gmp-include=DIR GMP include directory 1543 --with-gmp-lib=DIR GMP lib directory 1544 --with-gmp=DIR GMP install directory 1545 --with-gmp-build=DIR GMP build directory (please read INSTALL file) 1546 --with-mini-gmp=DIR use mini-gmp (sources in DIR) instead of GMP 1547 (experimental, please read doc/mini-gmp file) 1548 --with-mulhigh-size=NUM internal threshold table for mulhigh 1549 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1550 both] 1551 --with-aix-soname=aix|svr4|both 1552 shared library versioning (aka "SONAME") variant to 1553 provide on AIX, [default=aix]. 1554 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1555 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1556 compiler's sysroot if not specified). 1557 1558Some influential environment variables: 1559 CC C compiler command 1560 CFLAGS C compiler flags 1561 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1562 nonstandard directory <lib dir> 1563 LIBS libraries to pass to the linker, e.g. -l<library> 1564 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1565 you have headers in a nonstandard directory <include dir> 1566 CPP C preprocessor 1567 LT_SYS_LIBRARY_PATH 1568 User-defined run-time library search path. 1569 1570Use these variables to override the choices made by `configure' or to help 1571it to find libraries and programs with nonstandard names/locations. 1572 1573Report bugs to the package provider. 1574_ACEOF 1575ac_status=$? 1576fi 1577 1578if test "$ac_init_help" = "recursive"; then 1579 # If there are subdirs, report their specific --help. 1580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1581 test -d "$ac_dir" || 1582 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1583 continue 1584 ac_builddir=. 1585 1586case "$ac_dir" in 1587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1588*) 1589 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1590 # A ".." for each directory in $ac_dir_suffix. 1591 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1592 case $ac_top_builddir_sub in 1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1595 esac ;; 1596esac 1597ac_abs_top_builddir=$ac_pwd 1598ac_abs_builddir=$ac_pwd$ac_dir_suffix 1599# for backward compatibility: 1600ac_top_builddir=$ac_top_build_prefix 1601 1602case $srcdir in 1603 .) # We are building in place. 1604 ac_srcdir=. 1605 ac_top_srcdir=$ac_top_builddir_sub 1606 ac_abs_top_srcdir=$ac_pwd ;; 1607 [\\/]* | ?:[\\/]* ) # Absolute name. 1608 ac_srcdir=$srcdir$ac_dir_suffix; 1609 ac_top_srcdir=$srcdir 1610 ac_abs_top_srcdir=$srcdir ;; 1611 *) # Relative name. 1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1613 ac_top_srcdir=$ac_top_build_prefix$srcdir 1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1615esac 1616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1617 1618 cd "$ac_dir" || { ac_status=$?; continue; } 1619 # Check for configure.gnu first; this name is used for a wrapper for 1620 # Metaconfig's "Configure" on case-insensitive file systems. 1621 if test -f "$ac_srcdir/configure.gnu"; then 1622 echo && 1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1624 elif test -f "$ac_srcdir/configure"; then 1625 echo && 1626 $SHELL "$ac_srcdir/configure" --help=recursive 1627 else 1628 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1629 fi || ac_status=$? 1630 cd "$ac_pwd" || { ac_status=$?; break; } 1631 done 1632fi 1633 1634test -n "$ac_init_help" && exit $ac_status 1635if $ac_init_version; then 1636 cat <<\_ACEOF 1637MPFR configure 4.2.0 1638generated by GNU Autoconf 2.71 1639 1640Copyright (C) 2021 Free Software Foundation, Inc. 1641This configure script is free software; the Free Software Foundation 1642gives unlimited permission to copy, distribute and modify it. 1643 1644 1645Copyright 1999-2023 Free Software Foundation, Inc. 1646Contributed by the AriC and Caramba projects, INRIA. 1647 1648This file is part of the GNU MPFR Library. 1649 1650The GNU MPFR Library is free software; you can redistribute it and/or modify 1651it under the terms of the GNU Lesser General Public License as published 1652by the Free Software Foundation; either version 3 of the License, or (at 1653your option) any later version. 1654 1655The GNU MPFR Library is distributed in the hope that it will be useful, but 1656WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 1657or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 1658License for more details. 1659 1660You should have received a copy of the GNU Lesser General Public License 1661along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see 1662https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 166351 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 1664 1665_ACEOF 1666 exit 1667fi 1668 1669## ------------------------ ## 1670## Autoconf initialization. ## 1671## ------------------------ ## 1672 1673# ac_fn_c_try_compile LINENO 1674# -------------------------- 1675# Try to compile conftest.$ac_ext, and return whether this succeeded. 1676ac_fn_c_try_compile () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 rm -f conftest.$ac_objext conftest.beam 1680 if { { ac_try="$ac_compile" 1681case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684esac 1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686printf "%s\n" "$ac_try_echo"; } >&5 1687 (eval "$ac_compile") 2>conftest.err 1688 ac_status=$? 1689 if test -s conftest.err; then 1690 grep -v '^ *+' conftest.err >conftest.er1 1691 cat conftest.er1 >&5 1692 mv -f conftest.er1 conftest.err 1693 fi 1694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; } && { 1696 test -z "$ac_c_werror_flag" || 1697 test ! -s conftest.err 1698 } && test -s conftest.$ac_objext 1699then : 1700 ac_retval=0 1701else $as_nop 1702 printf "%s\n" "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706fi 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_compile 1711 1712# ac_fn_c_try_cpp LINENO 1713# ---------------------- 1714# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1715ac_fn_c_try_cpp () 1716{ 1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1718 if { { ac_try="$ac_cpp conftest.$ac_ext" 1719case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722esac 1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724printf "%s\n" "$ac_try_echo"; } >&5 1725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1726 ac_status=$? 1727 if test -s conftest.err; then 1728 grep -v '^ *+' conftest.err >conftest.er1 1729 cat conftest.er1 >&5 1730 mv -f conftest.er1 conftest.err 1731 fi 1732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } > conftest.i && { 1734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1735 test ! -s conftest.err 1736 } 1737then : 1738 ac_retval=0 1739else $as_nop 1740 printf "%s\n" "$as_me: failed program was:" >&5 1741sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=1 1744fi 1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1746 as_fn_set_status $ac_retval 1747 1748} # ac_fn_c_try_cpp 1749 1750# ac_fn_c_try_link LINENO 1751# ----------------------- 1752# Try to link conftest.$ac_ext, and return whether this succeeded. 1753ac_fn_c_try_link () 1754{ 1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1756 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1757 if { { ac_try="$ac_link" 1758case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761esac 1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763printf "%s\n" "$ac_try_echo"; } >&5 1764 (eval "$ac_link") 2>conftest.err 1765 ac_status=$? 1766 if test -s conftest.err; then 1767 grep -v '^ *+' conftest.err >conftest.er1 1768 cat conftest.er1 >&5 1769 mv -f conftest.er1 conftest.err 1770 fi 1771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; } && { 1773 test -z "$ac_c_werror_flag" || 1774 test ! -s conftest.err 1775 } && test -s conftest$ac_exeext && { 1776 test "$cross_compiling" = yes || 1777 test -x conftest$ac_exeext 1778 } 1779then : 1780 ac_retval=0 1781else $as_nop 1782 printf "%s\n" "$as_me: failed program was:" >&5 1783sed 's/^/| /' conftest.$ac_ext >&5 1784 1785 ac_retval=1 1786fi 1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1789 # interfere with the next link command; also delete a directory that is 1790 # left behind by Apple's compiler. We do this before executing the actions. 1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 as_fn_set_status $ac_retval 1794 1795} # ac_fn_c_try_link 1796 1797# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1798# ------------------------------------------------------- 1799# Tests whether HEADER exists and can be compiled using the include files in 1800# INCLUDES, setting the cache variable VAR accordingly. 1801ac_fn_c_check_header_compile () 1802{ 1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1805printf %s "checking for $2... " >&6; } 1806if eval test \${$3+y} 1807then : 1808 printf %s "(cached) " >&6 1809else $as_nop 1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1811/* end confdefs.h. */ 1812$4 1813#include <$2> 1814_ACEOF 1815if ac_fn_c_try_compile "$LINENO" 1816then : 1817 eval "$3=yes" 1818else $as_nop 1819 eval "$3=no" 1820fi 1821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1822fi 1823eval ac_res=\$$3 1824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1825printf "%s\n" "$ac_res" >&6; } 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 1828} # ac_fn_c_check_header_compile 1829 1830# ac_fn_c_check_func LINENO FUNC VAR 1831# ---------------------------------- 1832# Tests whether FUNC exists, setting the cache variable VAR accordingly 1833ac_fn_c_check_func () 1834{ 1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1837printf %s "checking for $2... " >&6; } 1838if eval test \${$3+y} 1839then : 1840 printf %s "(cached) " >&6 1841else $as_nop 1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843/* end confdefs.h. */ 1844/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1846#define $2 innocuous_$2 1847 1848/* System header to define __stub macros and hopefully few prototypes, 1849 which can conflict with char $2 (); below. */ 1850 1851#include <limits.h> 1852#undef $2 1853 1854/* Override any GCC internal prototype to avoid an error. 1855 Use char because int might match the return type of a GCC 1856 builtin and then its argument prototype would still apply. */ 1857#ifdef __cplusplus 1858extern "C" 1859#endif 1860char $2 (); 1861/* The GNU C library defines this for functions which it implements 1862 to always fail with ENOSYS. Some functions are actually named 1863 something starting with __ and the normal name is an alias. */ 1864#if defined __stub_$2 || defined __stub___$2 1865choke me 1866#endif 1867 1868int 1869main (void) 1870{ 1871return $2 (); 1872 ; 1873 return 0; 1874} 1875_ACEOF 1876if ac_fn_c_try_link "$LINENO" 1877then : 1878 eval "$3=yes" 1879else $as_nop 1880 eval "$3=no" 1881fi 1882rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1883 conftest$ac_exeext conftest.$ac_ext 1884fi 1885eval ac_res=\$$3 1886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1887printf "%s\n" "$ac_res" >&6; } 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1889 1890} # ac_fn_c_check_func 1891 1892# ac_fn_c_try_run LINENO 1893# ---------------------- 1894# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1895# executables *can* be run. 1896ac_fn_c_try_run () 1897{ 1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1899 if { { ac_try="$ac_link" 1900case "(($ac_try" in 1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1902 *) ac_try_echo=$ac_try;; 1903esac 1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1905printf "%s\n" "$ac_try_echo"; } >&5 1906 (eval "$ac_link") 2>&5 1907 ac_status=$? 1908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1909 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1910 { { case "(($ac_try" in 1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1912 *) ac_try_echo=$ac_try;; 1913esac 1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1915printf "%s\n" "$ac_try_echo"; } >&5 1916 (eval "$ac_try") 2>&5 1917 ac_status=$? 1918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1919 test $ac_status = 0; }; } 1920then : 1921 ac_retval=0 1922else $as_nop 1923 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1924 printf "%s\n" "$as_me: failed program was:" >&5 1925sed 's/^/| /' conftest.$ac_ext >&5 1926 1927 ac_retval=$ac_status 1928fi 1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1931 as_fn_set_status $ac_retval 1932 1933} # ac_fn_c_try_run 1934 1935# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1936# ---------------------------------------------------- 1937# Tries to find if the field MEMBER exists in type AGGR, after including 1938# INCLUDES, setting cache variable VAR accordingly. 1939ac_fn_c_check_member () 1940{ 1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1943printf %s "checking for $2.$3... " >&6; } 1944if eval test \${$4+y} 1945then : 1946 printf %s "(cached) " >&6 1947else $as_nop 1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1949/* end confdefs.h. */ 1950$5 1951int 1952main (void) 1953{ 1954static $2 ac_aggr; 1955if (ac_aggr.$3) 1956return 0; 1957 ; 1958 return 0; 1959} 1960_ACEOF 1961if ac_fn_c_try_compile "$LINENO" 1962then : 1963 eval "$4=yes" 1964else $as_nop 1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1966/* end confdefs.h. */ 1967$5 1968int 1969main (void) 1970{ 1971static $2 ac_aggr; 1972if (sizeof ac_aggr.$3) 1973return 0; 1974 ; 1975 return 0; 1976} 1977_ACEOF 1978if ac_fn_c_try_compile "$LINENO" 1979then : 1980 eval "$4=yes" 1981else $as_nop 1982 eval "$4=no" 1983fi 1984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1985fi 1986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1987fi 1988eval ac_res=\$$4 1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1990printf "%s\n" "$ac_res" >&6; } 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1992 1993} # ac_fn_c_check_member 1994 1995# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1996# ------------------------------------------- 1997# Tests whether TYPE exists after having included INCLUDES, setting cache 1998# variable VAR accordingly. 1999ac_fn_c_check_type () 2000{ 2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2003printf %s "checking for $2... " >&6; } 2004if eval test \${$3+y} 2005then : 2006 printf %s "(cached) " >&6 2007else $as_nop 2008 eval "$3=no" 2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2010/* end confdefs.h. */ 2011$4 2012int 2013main (void) 2014{ 2015if (sizeof ($2)) 2016 return 0; 2017 ; 2018 return 0; 2019} 2020_ACEOF 2021if ac_fn_c_try_compile "$LINENO" 2022then : 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024/* end confdefs.h. */ 2025$4 2026int 2027main (void) 2028{ 2029if (sizeof (($2))) 2030 return 0; 2031 ; 2032 return 0; 2033} 2034_ACEOF 2035if ac_fn_c_try_compile "$LINENO" 2036then : 2037 2038else $as_nop 2039 eval "$3=yes" 2040fi 2041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2042fi 2043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2044fi 2045eval ac_res=\$$3 2046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2047printf "%s\n" "$ac_res" >&6; } 2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2049 2050} # ac_fn_c_check_type 2051 2052# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2053# -------------------------------------------- 2054# Tries to find the compile-time value of EXPR in a program that includes 2055# INCLUDES, setting VAR accordingly. Returns whether the value could be 2056# computed 2057ac_fn_c_compute_int () 2058{ 2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2060 if test "$cross_compiling" = yes; then 2061 # Depending upon the size, compute the lo and hi bounds. 2062cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2063/* end confdefs.h. */ 2064$4 2065int 2066main (void) 2067{ 2068static int test_array [1 - 2 * !(($2) >= 0)]; 2069test_array [0] = 0; 2070return test_array [0]; 2071 2072 ; 2073 return 0; 2074} 2075_ACEOF 2076if ac_fn_c_try_compile "$LINENO" 2077then : 2078 ac_lo=0 ac_mid=0 2079 while :; do 2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2081/* end confdefs.h. */ 2082$4 2083int 2084main (void) 2085{ 2086static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2087test_array [0] = 0; 2088return test_array [0]; 2089 2090 ; 2091 return 0; 2092} 2093_ACEOF 2094if ac_fn_c_try_compile "$LINENO" 2095then : 2096 ac_hi=$ac_mid; break 2097else $as_nop 2098 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2099 if test $ac_lo -le $ac_mid; then 2100 ac_lo= ac_hi= 2101 break 2102 fi 2103 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2104fi 2105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2106 done 2107else $as_nop 2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109/* end confdefs.h. */ 2110$4 2111int 2112main (void) 2113{ 2114static int test_array [1 - 2 * !(($2) < 0)]; 2115test_array [0] = 0; 2116return test_array [0]; 2117 2118 ; 2119 return 0; 2120} 2121_ACEOF 2122if ac_fn_c_try_compile "$LINENO" 2123then : 2124 ac_hi=-1 ac_mid=-1 2125 while :; do 2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2127/* end confdefs.h. */ 2128$4 2129int 2130main (void) 2131{ 2132static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2133test_array [0] = 0; 2134return test_array [0]; 2135 2136 ; 2137 return 0; 2138} 2139_ACEOF 2140if ac_fn_c_try_compile "$LINENO" 2141then : 2142 ac_lo=$ac_mid; break 2143else $as_nop 2144 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2145 if test $ac_mid -le $ac_hi; then 2146 ac_lo= ac_hi= 2147 break 2148 fi 2149 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2150fi 2151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2152 done 2153else $as_nop 2154 ac_lo= ac_hi= 2155fi 2156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2157fi 2158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2159# Binary search between lo and hi bounds. 2160while test "x$ac_lo" != "x$ac_hi"; do 2161 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2163/* end confdefs.h. */ 2164$4 2165int 2166main (void) 2167{ 2168static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2169test_array [0] = 0; 2170return test_array [0]; 2171 2172 ; 2173 return 0; 2174} 2175_ACEOF 2176if ac_fn_c_try_compile "$LINENO" 2177then : 2178 ac_hi=$ac_mid 2179else $as_nop 2180 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2181fi 2182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2183done 2184case $ac_lo in #(( 2185?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2186'') ac_retval=1 ;; 2187esac 2188 else 2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2190/* end confdefs.h. */ 2191$4 2192static long int longval (void) { return $2; } 2193static unsigned long int ulongval (void) { return $2; } 2194#include <stdio.h> 2195#include <stdlib.h> 2196int 2197main (void) 2198{ 2199 2200 FILE *f = fopen ("conftest.val", "w"); 2201 if (! f) 2202 return 1; 2203 if (($2) < 0) 2204 { 2205 long int i = longval (); 2206 if (i != ($2)) 2207 return 1; 2208 fprintf (f, "%ld", i); 2209 } 2210 else 2211 { 2212 unsigned long int i = ulongval (); 2213 if (i != ($2)) 2214 return 1; 2215 fprintf (f, "%lu", i); 2216 } 2217 /* Do not output a trailing newline, as this causes \r\n confusion 2218 on some platforms. */ 2219 return ferror (f) || fclose (f) != 0; 2220 2221 ; 2222 return 0; 2223} 2224_ACEOF 2225if ac_fn_c_try_run "$LINENO" 2226then : 2227 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2228else $as_nop 2229 ac_retval=1 2230fi 2231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2232 conftest.$ac_objext conftest.beam conftest.$ac_ext 2233rm -f conftest.val 2234 2235 fi 2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2237 as_fn_set_status $ac_retval 2238 2239} # ac_fn_c_compute_int 2240ac_configure_args_raw= 2241for ac_arg 2242do 2243 case $ac_arg in 2244 *\'*) 2245 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2246 esac 2247 as_fn_append ac_configure_args_raw " '$ac_arg'" 2248done 2249 2250case $ac_configure_args_raw in 2251 *$as_nl*) 2252 ac_safe_unquote= ;; 2253 *) 2254 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2255 ac_unsafe_a="$ac_unsafe_z#~" 2256 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2257 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2258esac 2259 2260cat >config.log <<_ACEOF 2261This file contains any messages produced by compilers while 2262running configure, to aid debugging if configure makes a mistake. 2263 2264It was created by MPFR $as_me 4.2.0, which was 2265generated by GNU Autoconf 2.71. Invocation command line was 2266 2267 $ $0$ac_configure_args_raw 2268 2269_ACEOF 2270exec 5>>config.log 2271{ 2272cat <<_ASUNAME 2273## --------- ## 2274## Platform. ## 2275## --------- ## 2276 2277hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2278uname -m = `(uname -m) 2>/dev/null || echo unknown` 2279uname -r = `(uname -r) 2>/dev/null || echo unknown` 2280uname -s = `(uname -s) 2>/dev/null || echo unknown` 2281uname -v = `(uname -v) 2>/dev/null || echo unknown` 2282 2283/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2284/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2285 2286/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2287/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2288/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2289/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2290/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2291/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2292/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2293 2294_ASUNAME 2295 2296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2297for as_dir in $PATH 2298do 2299 IFS=$as_save_IFS 2300 case $as_dir in #((( 2301 '') as_dir=./ ;; 2302 */) ;; 2303 *) as_dir=$as_dir/ ;; 2304 esac 2305 printf "%s\n" "PATH: $as_dir" 2306 done 2307IFS=$as_save_IFS 2308 2309} >&5 2310 2311cat >&5 <<_ACEOF 2312 2313 2314## ----------- ## 2315## Core tests. ## 2316## ----------- ## 2317 2318_ACEOF 2319 2320 2321# Keep a trace of the command line. 2322# Strip out --no-create and --no-recursion so they do not pile up. 2323# Strip out --silent because we don't want to record it for future runs. 2324# Also quote any args containing shell meta-characters. 2325# Make two passes to allow for proper duplicate-argument suppression. 2326ac_configure_args= 2327ac_configure_args0= 2328ac_configure_args1= 2329ac_must_keep_next=false 2330for ac_pass in 1 2 2331do 2332 for ac_arg 2333 do 2334 case $ac_arg in 2335 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2336 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2337 | -silent | --silent | --silen | --sile | --sil) 2338 continue ;; 2339 *\'*) 2340 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2341 esac 2342 case $ac_pass in 2343 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2344 2) 2345 as_fn_append ac_configure_args1 " '$ac_arg'" 2346 if test $ac_must_keep_next = true; then 2347 ac_must_keep_next=false # Got value, back to normal. 2348 else 2349 case $ac_arg in 2350 *=* | --config-cache | -C | -disable-* | --disable-* \ 2351 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2352 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2353 | -with-* | --with-* | -without-* | --without-* | --x) 2354 case "$ac_configure_args0 " in 2355 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2356 esac 2357 ;; 2358 -* ) ac_must_keep_next=true ;; 2359 esac 2360 fi 2361 as_fn_append ac_configure_args " '$ac_arg'" 2362 ;; 2363 esac 2364 done 2365done 2366{ ac_configure_args0=; unset ac_configure_args0;} 2367{ ac_configure_args1=; unset ac_configure_args1;} 2368 2369# When interrupted or exit'd, cleanup temporary files, and complete 2370# config.log. We remove comments because anyway the quotes in there 2371# would cause problems or look ugly. 2372# WARNING: Use '\'' to represent an apostrophe within the trap. 2373# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2374trap 'exit_status=$? 2375 # Sanitize IFS. 2376 IFS=" "" $as_nl" 2377 # Save into config.log some information that might help in debugging. 2378 { 2379 echo 2380 2381 printf "%s\n" "## ---------------- ## 2382## Cache variables. ## 2383## ---------------- ##" 2384 echo 2385 # The following way of writing the cache mishandles newlines in values, 2386( 2387 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2388 eval ac_val=\$$ac_var 2389 case $ac_val in #( 2390 *${as_nl}*) 2391 case $ac_var in #( 2392 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2393printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2394 esac 2395 case $ac_var in #( 2396 _ | IFS | as_nl) ;; #( 2397 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2398 *) { eval $ac_var=; unset $ac_var;} ;; 2399 esac ;; 2400 esac 2401 done 2402 (set) 2>&1 | 2403 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2404 *${as_nl}ac_space=\ *) 2405 sed -n \ 2406 "s/'\''/'\''\\\\'\'''\''/g; 2407 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2408 ;; #( 2409 *) 2410 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2411 ;; 2412 esac | 2413 sort 2414) 2415 echo 2416 2417 printf "%s\n" "## ----------------- ## 2418## Output variables. ## 2419## ----------------- ##" 2420 echo 2421 for ac_var in $ac_subst_vars 2422 do 2423 eval ac_val=\$$ac_var 2424 case $ac_val in 2425 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2426 esac 2427 printf "%s\n" "$ac_var='\''$ac_val'\''" 2428 done | sort 2429 echo 2430 2431 if test -n "$ac_subst_files"; then 2432 printf "%s\n" "## ------------------- ## 2433## File substitutions. ## 2434## ------------------- ##" 2435 echo 2436 for ac_var in $ac_subst_files 2437 do 2438 eval ac_val=\$$ac_var 2439 case $ac_val in 2440 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2441 esac 2442 printf "%s\n" "$ac_var='\''$ac_val'\''" 2443 done | sort 2444 echo 2445 fi 2446 2447 if test -s confdefs.h; then 2448 printf "%s\n" "## ----------- ## 2449## confdefs.h. ## 2450## ----------- ##" 2451 echo 2452 cat confdefs.h 2453 echo 2454 fi 2455 test "$ac_signal" != 0 && 2456 printf "%s\n" "$as_me: caught signal $ac_signal" 2457 printf "%s\n" "$as_me: exit $exit_status" 2458 } >&5 2459 rm -f core *.core core.conftest.* && 2460 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2461 exit $exit_status 2462' 0 2463for ac_signal in 1 2 13 15; do 2464 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2465done 2466ac_signal=0 2467 2468# confdefs.h avoids OS command line length limits that DEFS can exceed. 2469rm -f -r conftest* confdefs.h 2470 2471printf "%s\n" "/* confdefs.h */" > confdefs.h 2472 2473# Predefined preprocessor variables. 2474 2475printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2476 2477printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2478 2479printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2480 2481printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2482 2483printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2484 2485printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2486 2487 2488# Let the site file select an alternate cache file if it wants to. 2489# Prefer an explicitly selected file to automatically selected ones. 2490if test -n "$CONFIG_SITE"; then 2491 ac_site_files="$CONFIG_SITE" 2492elif test "x$prefix" != xNONE; then 2493 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2494else 2495 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2496fi 2497 2498for ac_site_file in $ac_site_files 2499do 2500 case $ac_site_file in #( 2501 */*) : 2502 ;; #( 2503 *) : 2504 ac_site_file=./$ac_site_file ;; 2505esac 2506 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2508printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2509 sed 's/^/| /' "$ac_site_file" >&5 2510 . "$ac_site_file" \ 2511 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2512printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2513as_fn_error $? "failed to load site script $ac_site_file 2514See \`config.log' for more details" "$LINENO" 5; } 2515 fi 2516done 2517 2518if test -r "$cache_file"; then 2519 # Some versions of bash will fail to source /dev/null (special files 2520 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2521 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2523printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2524 case $cache_file in 2525 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2526 *) . "./$cache_file";; 2527 esac 2528 fi 2529else 2530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2531printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2532 >$cache_file 2533fi 2534 2535# Test code for whether the C compiler supports C89 (global declarations) 2536ac_c_conftest_c89_globals=' 2537/* Does the compiler advertise C89 conformance? 2538 Do not test the value of __STDC__, because some compilers set it to 0 2539 while being otherwise adequately conformant. */ 2540#if !defined __STDC__ 2541# error "Compiler does not advertise C89 conformance" 2542#endif 2543 2544#include <stddef.h> 2545#include <stdarg.h> 2546struct stat; 2547/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2548struct buf { int x; }; 2549struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2550static char *e (p, i) 2551 char **p; 2552 int i; 2553{ 2554 return p[i]; 2555} 2556static char *f (char * (*g) (char **, int), char **p, ...) 2557{ 2558 char *s; 2559 va_list v; 2560 va_start (v,p); 2561 s = g (p, va_arg (v,int)); 2562 va_end (v); 2563 return s; 2564} 2565 2566/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2567 function prototypes and stuff, but not \xHH hex character constants. 2568 These do not provoke an error unfortunately, instead are silently treated 2569 as an "x". The following induces an error, until -std is added to get 2570 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2571 array size at least. It is necessary to write \x00 == 0 to get something 2572 that is true only with -std. */ 2573int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2574 2575/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2576 inside strings and character constants. */ 2577#define FOO(x) '\''x'\'' 2578int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2579 2580int test (int i, double x); 2581struct s1 {int (*f) (int a);}; 2582struct s2 {int (*f) (double a);}; 2583int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2584 int, int);' 2585 2586# Test code for whether the C compiler supports C89 (body of main). 2587ac_c_conftest_c89_main=' 2588ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2589' 2590 2591# Test code for whether the C compiler supports C99 (global declarations) 2592ac_c_conftest_c99_globals=' 2593// Does the compiler advertise C99 conformance? 2594#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2595# error "Compiler does not advertise C99 conformance" 2596#endif 2597 2598#include <stdbool.h> 2599extern int puts (const char *); 2600extern int printf (const char *, ...); 2601extern int dprintf (int, const char *, ...); 2602extern void *malloc (size_t); 2603 2604// Check varargs macros. These examples are taken from C99 6.10.3.5. 2605// dprintf is used instead of fprintf to avoid needing to declare 2606// FILE and stderr. 2607#define debug(...) dprintf (2, __VA_ARGS__) 2608#define showlist(...) puts (#__VA_ARGS__) 2609#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2610static void 2611test_varargs_macros (void) 2612{ 2613 int x = 1234; 2614 int y = 5678; 2615 debug ("Flag"); 2616 debug ("X = %d\n", x); 2617 showlist (The first, second, and third items.); 2618 report (x>y, "x is %d but y is %d", x, y); 2619} 2620 2621// Check long long types. 2622#define BIG64 18446744073709551615ull 2623#define BIG32 4294967295ul 2624#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2625#if !BIG_OK 2626 #error "your preprocessor is broken" 2627#endif 2628#if BIG_OK 2629#else 2630 #error "your preprocessor is broken" 2631#endif 2632static long long int bignum = -9223372036854775807LL; 2633static unsigned long long int ubignum = BIG64; 2634 2635struct incomplete_array 2636{ 2637 int datasize; 2638 double data[]; 2639}; 2640 2641struct named_init { 2642 int number; 2643 const wchar_t *name; 2644 double average; 2645}; 2646 2647typedef const char *ccp; 2648 2649static inline int 2650test_restrict (ccp restrict text) 2651{ 2652 // See if C++-style comments work. 2653 // Iterate through items via the restricted pointer. 2654 // Also check for declarations in for loops. 2655 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2656 continue; 2657 return 0; 2658} 2659 2660// Check varargs and va_copy. 2661static bool 2662test_varargs (const char *format, ...) 2663{ 2664 va_list args; 2665 va_start (args, format); 2666 va_list args_copy; 2667 va_copy (args_copy, args); 2668 2669 const char *str = ""; 2670 int number = 0; 2671 float fnumber = 0; 2672 2673 while (*format) 2674 { 2675 switch (*format++) 2676 { 2677 case '\''s'\'': // string 2678 str = va_arg (args_copy, const char *); 2679 break; 2680 case '\''d'\'': // int 2681 number = va_arg (args_copy, int); 2682 break; 2683 case '\''f'\'': // float 2684 fnumber = va_arg (args_copy, double); 2685 break; 2686 default: 2687 break; 2688 } 2689 } 2690 va_end (args_copy); 2691 va_end (args); 2692 2693 return *str && number && fnumber; 2694} 2695' 2696 2697# Test code for whether the C compiler supports C99 (body of main). 2698ac_c_conftest_c99_main=' 2699 // Check bool. 2700 _Bool success = false; 2701 success |= (argc != 0); 2702 2703 // Check restrict. 2704 if (test_restrict ("String literal") == 0) 2705 success = true; 2706 char *restrict newvar = "Another string"; 2707 2708 // Check varargs. 2709 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2710 test_varargs_macros (); 2711 2712 // Check flexible array members. 2713 struct incomplete_array *ia = 2714 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2715 ia->datasize = 10; 2716 for (int i = 0; i < ia->datasize; ++i) 2717 ia->data[i] = i * 1.234; 2718 2719 // Check named initializers. 2720 struct named_init ni = { 2721 .number = 34, 2722 .name = L"Test wide string", 2723 .average = 543.34343, 2724 }; 2725 2726 ni.number = 58; 2727 2728 int dynamic_array[ni.number]; 2729 dynamic_array[0] = argv[0][0]; 2730 dynamic_array[ni.number - 1] = 543; 2731 2732 // work around unused variable warnings 2733 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2734 || dynamic_array[ni.number - 1] != 543); 2735' 2736 2737# Test code for whether the C compiler supports C11 (global declarations) 2738ac_c_conftest_c11_globals=' 2739// Does the compiler advertise C11 conformance? 2740#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2741# error "Compiler does not advertise C11 conformance" 2742#endif 2743 2744// Check _Alignas. 2745char _Alignas (double) aligned_as_double; 2746char _Alignas (0) no_special_alignment; 2747extern char aligned_as_int; 2748char _Alignas (0) _Alignas (int) aligned_as_int; 2749 2750// Check _Alignof. 2751enum 2752{ 2753 int_alignment = _Alignof (int), 2754 int_array_alignment = _Alignof (int[100]), 2755 char_alignment = _Alignof (char) 2756}; 2757_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2758 2759// Check _Noreturn. 2760int _Noreturn does_not_return (void) { for (;;) continue; } 2761 2762// Check _Static_assert. 2763struct test_static_assert 2764{ 2765 int x; 2766 _Static_assert (sizeof (int) <= sizeof (long int), 2767 "_Static_assert does not work in struct"); 2768 long int y; 2769}; 2770 2771// Check UTF-8 literals. 2772#define u8 syntax error! 2773char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2774 2775// Check duplicate typedefs. 2776typedef long *long_ptr; 2777typedef long int *long_ptr; 2778typedef long_ptr long_ptr; 2779 2780// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2781struct anonymous 2782{ 2783 union { 2784 struct { int i; int j; }; 2785 struct { int k; long int l; } w; 2786 }; 2787 int m; 2788} v1; 2789' 2790 2791# Test code for whether the C compiler supports C11 (body of main). 2792ac_c_conftest_c11_main=' 2793 _Static_assert ((offsetof (struct anonymous, i) 2794 == offsetof (struct anonymous, w.k)), 2795 "Anonymous union alignment botch"); 2796 v1.i = 2; 2797 v1.w.k = 5; 2798 ok |= v1.i != 5; 2799' 2800 2801# Test code for whether the C compiler supports C11 (complete). 2802ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2803${ac_c_conftest_c99_globals} 2804${ac_c_conftest_c11_globals} 2805 2806int 2807main (int argc, char **argv) 2808{ 2809 int ok = 0; 2810 ${ac_c_conftest_c89_main} 2811 ${ac_c_conftest_c99_main} 2812 ${ac_c_conftest_c11_main} 2813 return ok; 2814} 2815" 2816 2817# Test code for whether the C compiler supports C99 (complete). 2818ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2819${ac_c_conftest_c99_globals} 2820 2821int 2822main (int argc, char **argv) 2823{ 2824 int ok = 0; 2825 ${ac_c_conftest_c89_main} 2826 ${ac_c_conftest_c99_main} 2827 return ok; 2828} 2829" 2830 2831# Test code for whether the C compiler supports C89 (complete). 2832ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2833 2834int 2835main (int argc, char **argv) 2836{ 2837 int ok = 0; 2838 ${ac_c_conftest_c89_main} 2839 return ok; 2840} 2841" 2842 2843as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2844as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2845as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2846as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2847as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2848as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2849as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2850as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2851as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2852 2853# Auxiliary files required by this configure script. 2854ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub" 2855 2856# Locations in which to look for auxiliary files. 2857ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2858 2859# Search for a directory containing all of the required auxiliary files, 2860# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2861# If we don't find one directory that contains all the files we need, 2862# we report the set of missing files from the *first* directory in 2863# $ac_aux_dir_candidates and give up. 2864ac_missing_aux_files="" 2865ac_first_candidate=: 2866printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2868as_found=false 2869for as_dir in $ac_aux_dir_candidates 2870do 2871 IFS=$as_save_IFS 2872 case $as_dir in #((( 2873 '') as_dir=./ ;; 2874 */) ;; 2875 *) as_dir=$as_dir/ ;; 2876 esac 2877 as_found=: 2878 2879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2880 ac_aux_dir_found=yes 2881 ac_install_sh= 2882 for ac_aux in $ac_aux_files 2883 do 2884 # As a special case, if "install-sh" is required, that requirement 2885 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2886 # and $ac_install_sh is set appropriately for whichever one is found. 2887 if test x"$ac_aux" = x"install-sh" 2888 then 2889 if test -f "${as_dir}install-sh"; then 2890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2891 ac_install_sh="${as_dir}install-sh -c" 2892 elif test -f "${as_dir}install.sh"; then 2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2894 ac_install_sh="${as_dir}install.sh -c" 2895 elif test -f "${as_dir}shtool"; then 2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2897 ac_install_sh="${as_dir}shtool install -c" 2898 else 2899 ac_aux_dir_found=no 2900 if $ac_first_candidate; then 2901 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2902 else 2903 break 2904 fi 2905 fi 2906 else 2907 if test -f "${as_dir}${ac_aux}"; then 2908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2909 else 2910 ac_aux_dir_found=no 2911 if $ac_first_candidate; then 2912 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2913 else 2914 break 2915 fi 2916 fi 2917 fi 2918 done 2919 if test "$ac_aux_dir_found" = yes; then 2920 ac_aux_dir="$as_dir" 2921 break 2922 fi 2923 ac_first_candidate=false 2924 2925 as_found=false 2926done 2927IFS=$as_save_IFS 2928if $as_found 2929then : 2930 2931else $as_nop 2932 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2933fi 2934 2935 2936# These three variables are undocumented and unsupported, 2937# and are intended to be withdrawn in a future Autoconf release. 2938# They can cause serious problems if a builder's source tree is in a directory 2939# whose full name contains unusual characters. 2940if test -f "${ac_aux_dir}config.guess"; then 2941 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2942fi 2943if test -f "${ac_aux_dir}config.sub"; then 2944 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2945fi 2946if test -f "$ac_aux_dir/configure"; then 2947 ac_configure="$SHELL ${ac_aux_dir}configure" 2948fi 2949 2950# Check that the precious variables saved in the cache have kept the same 2951# value. 2952ac_cache_corrupted=false 2953for ac_var in $ac_precious_vars; do 2954 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2955 eval ac_new_set=\$ac_env_${ac_var}_set 2956 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2957 eval ac_new_val=\$ac_env_${ac_var}_value 2958 case $ac_old_set,$ac_new_set in 2959 set,) 2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2961printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2962 ac_cache_corrupted=: ;; 2963 ,set) 2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2965printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2966 ac_cache_corrupted=: ;; 2967 ,);; 2968 *) 2969 if test "x$ac_old_val" != "x$ac_new_val"; then 2970 # differences in whitespace do not lead to failure. 2971 ac_old_val_w=`echo x $ac_old_val` 2972 ac_new_val_w=`echo x $ac_new_val` 2973 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2975printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2976 ac_cache_corrupted=: 2977 else 2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2979printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2980 eval $ac_var=\$ac_old_val 2981 fi 2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2983printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2985printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2986 fi;; 2987 esac 2988 # Pass precious variables to config.status. 2989 if test "$ac_new_set" = set; then 2990 case $ac_new_val in 2991 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2992 *) ac_arg=$ac_var=$ac_new_val ;; 2993 esac 2994 case " $ac_configure_args " in 2995 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2996 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2997 esac 2998 fi 2999done 3000if $ac_cache_corrupted; then 3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3002printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3004printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3005 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3006 and start over" "$LINENO" 5 3007fi 3008## -------------------- ## 3009## Main body of script. ## 3010## -------------------- ## 3011 3012ac_ext=c 3013ac_cpp='$CPP $CPPFLAGS' 3014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3016ac_compiler_gnu=$ac_cv_c_compiler_gnu 3017 3018 3019 3020 3021 3022 3023 # Make sure we can run config.sub. 3024$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3025 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3026 3027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3028printf %s "checking build system type... " >&6; } 3029if test ${ac_cv_build+y} 3030then : 3031 printf %s "(cached) " >&6 3032else $as_nop 3033 ac_build_alias=$build_alias 3034test "x$ac_build_alias" = x && 3035 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3036test "x$ac_build_alias" = x && 3037 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3038ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3039 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3040 3041fi 3042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3043printf "%s\n" "$ac_cv_build" >&6; } 3044case $ac_cv_build in 3045*-*-*) ;; 3046*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3047esac 3048build=$ac_cv_build 3049ac_save_IFS=$IFS; IFS='-' 3050set x $ac_cv_build 3051shift 3052build_cpu=$1 3053build_vendor=$2 3054shift; shift 3055# Remember, the first character of IFS is used to create $*, 3056# except with old shells: 3057build_os=$* 3058IFS=$ac_save_IFS 3059case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3060 3061 3062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3063printf %s "checking host system type... " >&6; } 3064if test ${ac_cv_host+y} 3065then : 3066 printf %s "(cached) " >&6 3067else $as_nop 3068 if test "x$host_alias" = x; then 3069 ac_cv_host=$ac_cv_build 3070else 3071 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3072 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3073fi 3074 3075fi 3076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3077printf "%s\n" "$ac_cv_host" >&6; } 3078case $ac_cv_host in 3079*-*-*) ;; 3080*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3081esac 3082host=$ac_cv_host 3083ac_save_IFS=$IFS; IFS='-' 3084set x $ac_cv_host 3085shift 3086host_cpu=$1 3087host_vendor=$2 3088shift; shift 3089# Remember, the first character of IFS is used to create $*, 3090# except with old shells: 3091host_os=$* 3092IFS=$ac_save_IFS 3093case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3094 3095 3096 3097am__api_version='1.16' 3098 3099 3100 # Find a good install program. We prefer a C program (faster), 3101# so one script is as good as another. But avoid the broken or 3102# incompatible versions: 3103# SysV /etc/install, /usr/sbin/install 3104# SunOS /usr/etc/install 3105# IRIX /sbin/install 3106# AIX /bin/install 3107# AmigaOS /C/install, which installs bootblocks on floppy discs 3108# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3109# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3110# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3111# OS/2's system install, which has a completely different semantic 3112# ./install, which can be erroneously created by make from ./install.sh. 3113# Reject install programs that cannot install multiple files. 3114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3115printf %s "checking for a BSD-compatible install... " >&6; } 3116if test -z "$INSTALL"; then 3117if test ${ac_cv_path_install+y} 3118then : 3119 printf %s "(cached) " >&6 3120else $as_nop 3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3122for as_dir in $PATH 3123do 3124 IFS=$as_save_IFS 3125 case $as_dir in #((( 3126 '') as_dir=./ ;; 3127 */) ;; 3128 *) as_dir=$as_dir/ ;; 3129 esac 3130 # Account for fact that we put trailing slashes in our PATH walk. 3131case $as_dir in #(( 3132 ./ | /[cC]/* | \ 3133 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3134 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3135 /usr/ucb/* ) ;; 3136 *) 3137 # OSF1 and SCO ODT 3.0 have their own names for install. 3138 # Don't use installbsd from OSF since it installs stuff as root 3139 # by default. 3140 for ac_prog in ginstall scoinst install; do 3141 for ac_exec_ext in '' $ac_executable_extensions; do 3142 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3143 if test $ac_prog = install && 3144 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3145 # AIX install. It has an incompatible calling convention. 3146 : 3147 elif test $ac_prog = install && 3148 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3149 # program-specific install script used by HP pwplus--don't use. 3150 : 3151 else 3152 rm -rf conftest.one conftest.two conftest.dir 3153 echo one > conftest.one 3154 echo two > conftest.two 3155 mkdir conftest.dir 3156 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3157 test -s conftest.one && test -s conftest.two && 3158 test -s conftest.dir/conftest.one && 3159 test -s conftest.dir/conftest.two 3160 then 3161 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3162 break 3 3163 fi 3164 fi 3165 fi 3166 done 3167 done 3168 ;; 3169esac 3170 3171 done 3172IFS=$as_save_IFS 3173 3174rm -rf conftest.one conftest.two conftest.dir 3175 3176fi 3177 if test ${ac_cv_path_install+y}; then 3178 INSTALL=$ac_cv_path_install 3179 else 3180 # As a last resort, use the slow shell script. Don't cache a 3181 # value for INSTALL within a source directory, because that will 3182 # break other packages using the cache if that directory is 3183 # removed, or if the value is a relative name. 3184 INSTALL=$ac_install_sh 3185 fi 3186fi 3187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3188printf "%s\n" "$INSTALL" >&6; } 3189 3190# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3191# It thinks the first close brace ends the variable substitution. 3192test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3193 3194test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3195 3196test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3197 3198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3199printf %s "checking whether build environment is sane... " >&6; } 3200# Reject unsafe characters in $srcdir or the absolute working directory 3201# name. Accept space and tab only in the latter. 3202am_lf=' 3203' 3204case `pwd` in 3205 *[\\\"\#\$\&\'\`$am_lf]*) 3206 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3207esac 3208case $srcdir in 3209 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3210 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3211esac 3212 3213# Do 'set' in a subshell so we don't clobber the current shell's 3214# arguments. Must try -L first in case configure is actually a 3215# symlink; some systems play weird games with the mod time of symlinks 3216# (eg FreeBSD returns the mod time of the symlink's containing 3217# directory). 3218if ( 3219 am_has_slept=no 3220 for am_try in 1 2; do 3221 echo "timestamp, slept: $am_has_slept" > conftest.file 3222 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3223 if test "$*" = "X"; then 3224 # -L didn't work. 3225 set X `ls -t "$srcdir/configure" conftest.file` 3226 fi 3227 if test "$*" != "X $srcdir/configure conftest.file" \ 3228 && test "$*" != "X conftest.file $srcdir/configure"; then 3229 3230 # If neither matched, then we have a broken ls. This can happen 3231 # if, for instance, CONFIG_SHELL is bash and it inherits a 3232 # broken ls alias from the environment. This has actually 3233 # happened. Such a system could not be considered "sane". 3234 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3235 alias in your environment" "$LINENO" 5 3236 fi 3237 if test "$2" = conftest.file || test $am_try -eq 2; then 3238 break 3239 fi 3240 # Just in case. 3241 sleep 1 3242 am_has_slept=yes 3243 done 3244 test "$2" = conftest.file 3245 ) 3246then 3247 # Ok. 3248 : 3249else 3250 as_fn_error $? "newly created file is older than distributed files! 3251Check your system clock" "$LINENO" 5 3252fi 3253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3254printf "%s\n" "yes" >&6; } 3255# If we didn't sleep, we still need to ensure time stamps of config.status and 3256# generated files are strictly newer. 3257am_sleep_pid= 3258if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3259 ( sleep 1 ) & 3260 am_sleep_pid=$! 3261fi 3262 3263rm -f conftest.file 3264 3265test "$program_prefix" != NONE && 3266 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3267# Use a double $ so make ignores it. 3268test "$program_suffix" != NONE && 3269 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3270# Double any \ or $. 3271# By default was `s,x,x', remove it if useless. 3272ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3273program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3274 3275 3276# Expand $ac_aux_dir to an absolute path. 3277am_aux_dir=`cd "$ac_aux_dir" && pwd` 3278 3279 3280 if test x"${MISSING+set}" != xset; then 3281 MISSING="\${SHELL} '$am_aux_dir/missing'" 3282fi 3283# Use eval to expand $SHELL 3284if eval "$MISSING --is-lightweight"; then 3285 am_missing_run="$MISSING " 3286else 3287 am_missing_run= 3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3289printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3290fi 3291 3292if test x"${install_sh+set}" != xset; then 3293 case $am_aux_dir in 3294 *\ * | *\ *) 3295 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3296 *) 3297 install_sh="\${SHELL} $am_aux_dir/install-sh" 3298 esac 3299fi 3300 3301# Installed binaries are usually stripped using 'strip' when the user 3302# run "make install-strip". However 'strip' might not be the right 3303# tool to use in cross-compilation environments, therefore Automake 3304# will honor the 'STRIP' environment variable to overrule this program. 3305if test "$cross_compiling" != no; then 3306 if test -n "$ac_tool_prefix"; then 3307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3308set dummy ${ac_tool_prefix}strip; ac_word=$2 3309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3310printf %s "checking for $ac_word... " >&6; } 3311if test ${ac_cv_prog_STRIP+y} 3312then : 3313 printf %s "(cached) " >&6 3314else $as_nop 3315 if test -n "$STRIP"; then 3316 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3317else 3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3319for as_dir in $PATH 3320do 3321 IFS=$as_save_IFS 3322 case $as_dir in #((( 3323 '') as_dir=./ ;; 3324 */) ;; 3325 *) as_dir=$as_dir/ ;; 3326 esac 3327 for ac_exec_ext in '' $ac_executable_extensions; do 3328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3329 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3331 break 2 3332 fi 3333done 3334 done 3335IFS=$as_save_IFS 3336 3337fi 3338fi 3339STRIP=$ac_cv_prog_STRIP 3340if test -n "$STRIP"; then 3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3342printf "%s\n" "$STRIP" >&6; } 3343else 3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3345printf "%s\n" "no" >&6; } 3346fi 3347 3348 3349fi 3350if test -z "$ac_cv_prog_STRIP"; then 3351 ac_ct_STRIP=$STRIP 3352 # Extract the first word of "strip", so it can be a program name with args. 3353set dummy strip; ac_word=$2 3354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3355printf %s "checking for $ac_word... " >&6; } 3356if test ${ac_cv_prog_ac_ct_STRIP+y} 3357then : 3358 printf %s "(cached) " >&6 3359else $as_nop 3360 if test -n "$ac_ct_STRIP"; then 3361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3362else 3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3364for as_dir in $PATH 3365do 3366 IFS=$as_save_IFS 3367 case $as_dir in #((( 3368 '') as_dir=./ ;; 3369 */) ;; 3370 *) as_dir=$as_dir/ ;; 3371 esac 3372 for ac_exec_ext in '' $ac_executable_extensions; do 3373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3374 ac_cv_prog_ac_ct_STRIP="strip" 3375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3376 break 2 3377 fi 3378done 3379 done 3380IFS=$as_save_IFS 3381 3382fi 3383fi 3384ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3385if test -n "$ac_ct_STRIP"; then 3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3387printf "%s\n" "$ac_ct_STRIP" >&6; } 3388else 3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3390printf "%s\n" "no" >&6; } 3391fi 3392 3393 if test "x$ac_ct_STRIP" = x; then 3394 STRIP=":" 3395 else 3396 case $cross_compiling:$ac_tool_warned in 3397yes:) 3398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3399printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3400ac_tool_warned=yes ;; 3401esac 3402 STRIP=$ac_ct_STRIP 3403 fi 3404else 3405 STRIP="$ac_cv_prog_STRIP" 3406fi 3407 3408fi 3409INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3410 3411 3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3413printf %s "checking for a race-free mkdir -p... " >&6; } 3414if test -z "$MKDIR_P"; then 3415 if test ${ac_cv_path_mkdir+y} 3416then : 3417 printf %s "(cached) " >&6 3418else $as_nop 3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3420for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3421do 3422 IFS=$as_save_IFS 3423 case $as_dir in #((( 3424 '') as_dir=./ ;; 3425 */) ;; 3426 *) as_dir=$as_dir/ ;; 3427 esac 3428 for ac_prog in mkdir gmkdir; do 3429 for ac_exec_ext in '' $ac_executable_extensions; do 3430 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3431 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3432 'mkdir ('*'coreutils) '* | \ 3433 'BusyBox '* | \ 3434 'mkdir (fileutils) '4.1*) 3435 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3436 break 3;; 3437 esac 3438 done 3439 done 3440 done 3441IFS=$as_save_IFS 3442 3443fi 3444 3445 test -d ./--version && rmdir ./--version 3446 if test ${ac_cv_path_mkdir+y}; then 3447 MKDIR_P="$ac_cv_path_mkdir -p" 3448 else 3449 # As a last resort, use the slow shell script. Don't cache a 3450 # value for MKDIR_P within a source directory, because that will 3451 # break other packages using the cache if that directory is 3452 # removed, or if the value is a relative name. 3453 MKDIR_P="$ac_install_sh -d" 3454 fi 3455fi 3456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3457printf "%s\n" "$MKDIR_P" >&6; } 3458 3459for ac_prog in gawk mawk nawk awk 3460do 3461 # Extract the first word of "$ac_prog", so it can be a program name with args. 3462set dummy $ac_prog; ac_word=$2 3463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3464printf %s "checking for $ac_word... " >&6; } 3465if test ${ac_cv_prog_AWK+y} 3466then : 3467 printf %s "(cached) " >&6 3468else $as_nop 3469 if test -n "$AWK"; then 3470 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3471else 3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3473for as_dir in $PATH 3474do 3475 IFS=$as_save_IFS 3476 case $as_dir in #((( 3477 '') as_dir=./ ;; 3478 */) ;; 3479 *) as_dir=$as_dir/ ;; 3480 esac 3481 for ac_exec_ext in '' $ac_executable_extensions; do 3482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3483 ac_cv_prog_AWK="$ac_prog" 3484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3485 break 2 3486 fi 3487done 3488 done 3489IFS=$as_save_IFS 3490 3491fi 3492fi 3493AWK=$ac_cv_prog_AWK 3494if test -n "$AWK"; then 3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3496printf "%s\n" "$AWK" >&6; } 3497else 3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3499printf "%s\n" "no" >&6; } 3500fi 3501 3502 3503 test -n "$AWK" && break 3504done 3505 3506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3507printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3508set x ${MAKE-make} 3509ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3510if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3511then : 3512 printf %s "(cached) " >&6 3513else $as_nop 3514 cat >conftest.make <<\_ACEOF 3515SHELL = /bin/sh 3516all: 3517 @echo '@@@%%%=$(MAKE)=@@@%%%' 3518_ACEOF 3519# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3520case `${MAKE-make} -f conftest.make 2>/dev/null` in 3521 *@@@%%%=?*=@@@%%%*) 3522 eval ac_cv_prog_make_${ac_make}_set=yes;; 3523 *) 3524 eval ac_cv_prog_make_${ac_make}_set=no;; 3525esac 3526rm -f conftest.make 3527fi 3528if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3530printf "%s\n" "yes" >&6; } 3531 SET_MAKE= 3532else 3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3534printf "%s\n" "no" >&6; } 3535 SET_MAKE="MAKE=${MAKE-make}" 3536fi 3537 3538rm -rf .tst 2>/dev/null 3539mkdir .tst 2>/dev/null 3540if test -d .tst; then 3541 am__leading_dot=. 3542else 3543 am__leading_dot=_ 3544fi 3545rmdir .tst 2>/dev/null 3546 3547# Check whether --enable-silent-rules was given. 3548if test ${enable_silent_rules+y} 3549then : 3550 enableval=$enable_silent_rules; 3551fi 3552 3553case $enable_silent_rules in # ((( 3554 yes) AM_DEFAULT_VERBOSITY=0;; 3555 no) AM_DEFAULT_VERBOSITY=1;; 3556 *) AM_DEFAULT_VERBOSITY=1;; 3557esac 3558am_make=${MAKE-make} 3559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3560printf %s "checking whether $am_make supports nested variables... " >&6; } 3561if test ${am_cv_make_support_nested_variables+y} 3562then : 3563 printf %s "(cached) " >&6 3564else $as_nop 3565 if printf "%s\n" 'TRUE=$(BAR$(V)) 3566BAR0=false 3567BAR1=true 3568V=1 3569am__doit: 3570 @$(TRUE) 3571.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3572 am_cv_make_support_nested_variables=yes 3573else 3574 am_cv_make_support_nested_variables=no 3575fi 3576fi 3577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3578printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3579if test $am_cv_make_support_nested_variables = yes; then 3580 AM_V='$(V)' 3581 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3582else 3583 AM_V=$AM_DEFAULT_VERBOSITY 3584 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3585fi 3586AM_BACKSLASH='\' 3587 3588if test "`cd $srcdir && pwd`" != "`pwd`"; then 3589 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3590 # is not polluted with repeated "-I." 3591 am__isrc=' -I$(srcdir)' 3592 # test to see if srcdir already configured 3593 if test -f $srcdir/config.status; then 3594 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3595 fi 3596fi 3597 3598# test whether we have cygpath 3599if test -z "$CYGPATH_W"; then 3600 if (cygpath --version) >/dev/null 2>/dev/null; then 3601 CYGPATH_W='cygpath -w' 3602 else 3603 CYGPATH_W=echo 3604 fi 3605fi 3606 3607 3608# Define the identity of the package. 3609 PACKAGE='mpfr' 3610 VERSION='4.2.0' 3611 3612 3613# Some tools Automake needs. 3614 3615ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3616 3617 3618AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3619 3620 3621AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3622 3623 3624AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3625 3626 3627MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3628 3629# For better backward compatibility. To be removed once Automake 1.9.x 3630# dies out for good. For more background, see: 3631# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3632# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3633mkdir_p='$(MKDIR_P)' 3634 3635# We need awk for the "check" target (and possibly the TAP driver). The 3636# system "awk" is bad on some platforms. 3637# Always define AMTAR for backward compatibility. Yes, it's still used 3638# in the wild :-( We should find a proper way to deprecate it ... 3639AMTAR='$${TAR-tar}' 3640 3641 3642# We'll loop over all known methods to create a tar archive until one works. 3643_am_tools='gnutar pax cpio none' 3644 3645am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3646 3647 3648 3649 3650 3651# Variables for tags utilities; see am/tags.am 3652if test -z "$CTAGS"; then 3653 CTAGS=ctags 3654fi 3655 3656if test -z "$ETAGS"; then 3657 ETAGS=etags 3658fi 3659 3660if test -z "$CSCOPE"; then 3661 CSCOPE=cscope 3662fi 3663 3664 3665 3666# POSIX will say in a future version that running "rm -f" with no argument 3667# is OK; and we want to be able to make that assumption in our Makefile 3668# recipes. So use an aggressive probe to check that the usage we want is 3669# actually supported "in the wild" to an acceptable degree. 3670# See automake bug#10828. 3671# To make any issue more visible, cause the running configure to be aborted 3672# by default if the 'rm' program in use doesn't match our expectations; the 3673# user can still override this though. 3674if rm -f && rm -fr && rm -rf; then : OK; else 3675 cat >&2 <<'END' 3676Oops! 3677 3678Your 'rm' program seems unable to run without file operands specified 3679on the command line, even when the '-f' option is present. This is contrary 3680to the behaviour of most rm programs out there, and not conforming with 3681the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3682 3683Please tell bug-automake@gnu.org about your system, including the value 3684of your $PATH and any error possibly output before this message. This 3685can help us improve future automake versions. 3686 3687END 3688 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3689 echo 'Configuration will proceed anyway, since you have set the' >&2 3690 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3691 echo >&2 3692 else 3693 cat >&2 <<'END' 3694Aborting the configuration process, to ensure you take notice of the issue. 3695 3696You can download and install GNU coreutils to get an 'rm' implementation 3697that behaves properly: <https://www.gnu.org/software/coreutils/>. 3698 3699If you want to complete the configuration process using your problematic 3700'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3701to "yes", and re-run configure. 3702 3703END 3704 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3705 fi 3706fi 3707 3708 3709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3710printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3711 # Check whether --enable-maintainer-mode was given. 3712if test ${enable_maintainer_mode+y} 3713then : 3714 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3715else $as_nop 3716 USE_MAINTAINER_MODE=yes 3717fi 3718 3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3720printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3721 if test $USE_MAINTAINER_MODE = yes; then 3722 MAINTAINER_MODE_TRUE= 3723 MAINTAINER_MODE_FALSE='#' 3724else 3725 MAINTAINER_MODE_TRUE='#' 3726 MAINTAINER_MODE_FALSE= 3727fi 3728 3729 MAINT=$MAINTAINER_MODE_TRUE 3730 3731 3732 3733 3734 3735 3736test_CFLAGS=${CFLAGS+set} 3737 3738if test -n "$CFLAGS" || test -n "$CC" ; then 3739 user_redefine_cc=yes 3740fi 3741 3742 3743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3744printf %s "checking for grep that handles long lines and -e... " >&6; } 3745if test ${ac_cv_path_GREP+y} 3746then : 3747 printf %s "(cached) " >&6 3748else $as_nop 3749 if test -z "$GREP"; then 3750 ac_path_GREP_found=false 3751 # Loop through the user's path and test for each of PROGNAME-LIST 3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3753for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3754do 3755 IFS=$as_save_IFS 3756 case $as_dir in #((( 3757 '') as_dir=./ ;; 3758 */) ;; 3759 *) as_dir=$as_dir/ ;; 3760 esac 3761 for ac_prog in grep ggrep 3762 do 3763 for ac_exec_ext in '' $ac_executable_extensions; do 3764 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 3765 as_fn_executable_p "$ac_path_GREP" || continue 3766# Check for GNU ac_path_GREP and select it if it is found. 3767 # Check for GNU $ac_path_GREP 3768case `"$ac_path_GREP" --version 2>&1` in 3769*GNU*) 3770 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3771*) 3772 ac_count=0 3773 printf %s 0123456789 >"conftest.in" 3774 while : 3775 do 3776 cat "conftest.in" "conftest.in" >"conftest.tmp" 3777 mv "conftest.tmp" "conftest.in" 3778 cp "conftest.in" "conftest.nl" 3779 printf "%s\n" 'GREP' >> "conftest.nl" 3780 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3782 as_fn_arith $ac_count + 1 && ac_count=$as_val 3783 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3784 # Best one so far, save it but keep looking for a better one 3785 ac_cv_path_GREP="$ac_path_GREP" 3786 ac_path_GREP_max=$ac_count 3787 fi 3788 # 10*(2^10) chars as input seems more than enough 3789 test $ac_count -gt 10 && break 3790 done 3791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3792esac 3793 3794 $ac_path_GREP_found && break 3 3795 done 3796 done 3797 done 3798IFS=$as_save_IFS 3799 if test -z "$ac_cv_path_GREP"; then 3800 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3801 fi 3802else 3803 ac_cv_path_GREP=$GREP 3804fi 3805 3806fi 3807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3808printf "%s\n" "$ac_cv_path_GREP" >&6; } 3809 GREP="$ac_cv_path_GREP" 3810 3811 3812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3813printf %s "checking for egrep... " >&6; } 3814if test ${ac_cv_path_EGREP+y} 3815then : 3816 printf %s "(cached) " >&6 3817else $as_nop 3818 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3819 then ac_cv_path_EGREP="$GREP -E" 3820 else 3821 if test -z "$EGREP"; then 3822 ac_path_EGREP_found=false 3823 # Loop through the user's path and test for each of PROGNAME-LIST 3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3826do 3827 IFS=$as_save_IFS 3828 case $as_dir in #((( 3829 '') as_dir=./ ;; 3830 */) ;; 3831 *) as_dir=$as_dir/ ;; 3832 esac 3833 for ac_prog in egrep 3834 do 3835 for ac_exec_ext in '' $ac_executable_extensions; do 3836 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 3837 as_fn_executable_p "$ac_path_EGREP" || continue 3838# Check for GNU ac_path_EGREP and select it if it is found. 3839 # Check for GNU $ac_path_EGREP 3840case `"$ac_path_EGREP" --version 2>&1` in 3841*GNU*) 3842 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3843*) 3844 ac_count=0 3845 printf %s 0123456789 >"conftest.in" 3846 while : 3847 do 3848 cat "conftest.in" "conftest.in" >"conftest.tmp" 3849 mv "conftest.tmp" "conftest.in" 3850 cp "conftest.in" "conftest.nl" 3851 printf "%s\n" 'EGREP' >> "conftest.nl" 3852 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3854 as_fn_arith $ac_count + 1 && ac_count=$as_val 3855 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3856 # Best one so far, save it but keep looking for a better one 3857 ac_cv_path_EGREP="$ac_path_EGREP" 3858 ac_path_EGREP_max=$ac_count 3859 fi 3860 # 10*(2^10) chars as input seems more than enough 3861 test $ac_count -gt 10 && break 3862 done 3863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3864esac 3865 3866 $ac_path_EGREP_found && break 3 3867 done 3868 done 3869 done 3870IFS=$as_save_IFS 3871 if test -z "$ac_cv_path_EGREP"; then 3872 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3873 fi 3874else 3875 ac_cv_path_EGREP=$EGREP 3876fi 3877 3878 fi 3879fi 3880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3881printf "%s\n" "$ac_cv_path_EGREP" >&6; } 3882 EGREP="$ac_cv_path_EGREP" 3883 3884 3885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3886printf %s "checking for a sed that does not truncate output... " >&6; } 3887if test ${ac_cv_path_SED+y} 3888then : 3889 printf %s "(cached) " >&6 3890else $as_nop 3891 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3892 for ac_i in 1 2 3 4 5 6 7; do 3893 ac_script="$ac_script$as_nl$ac_script" 3894 done 3895 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3896 { ac_script=; unset ac_script;} 3897 if test -z "$SED"; then 3898 ac_path_SED_found=false 3899 # Loop through the user's path and test for each of PROGNAME-LIST 3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3901for as_dir in $PATH 3902do 3903 IFS=$as_save_IFS 3904 case $as_dir in #((( 3905 '') as_dir=./ ;; 3906 */) ;; 3907 *) as_dir=$as_dir/ ;; 3908 esac 3909 for ac_prog in sed gsed 3910 do 3911 for ac_exec_ext in '' $ac_executable_extensions; do 3912 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 3913 as_fn_executable_p "$ac_path_SED" || continue 3914# Check for GNU ac_path_SED and select it if it is found. 3915 # Check for GNU $ac_path_SED 3916case `"$ac_path_SED" --version 2>&1` in 3917*GNU*) 3918 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3919*) 3920 ac_count=0 3921 printf %s 0123456789 >"conftest.in" 3922 while : 3923 do 3924 cat "conftest.in" "conftest.in" >"conftest.tmp" 3925 mv "conftest.tmp" "conftest.in" 3926 cp "conftest.in" "conftest.nl" 3927 printf "%s\n" '' >> "conftest.nl" 3928 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3930 as_fn_arith $ac_count + 1 && ac_count=$as_val 3931 if test $ac_count -gt ${ac_path_SED_max-0}; then 3932 # Best one so far, save it but keep looking for a better one 3933 ac_cv_path_SED="$ac_path_SED" 3934 ac_path_SED_max=$ac_count 3935 fi 3936 # 10*(2^10) chars as input seems more than enough 3937 test $ac_count -gt 10 && break 3938 done 3939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3940esac 3941 3942 $ac_path_SED_found && break 3 3943 done 3944 done 3945 done 3946IFS=$as_save_IFS 3947 if test -z "$ac_cv_path_SED"; then 3948 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3949 fi 3950else 3951 ac_cv_path_SED=$SED 3952fi 3953 3954fi 3955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3956printf "%s\n" "$ac_cv_path_SED" >&6; } 3957 SED="$ac_cv_path_SED" 3958 rm -f conftest.sed 3959 3960 3961 3962unset gmp_lib_path GMP_CFLAGS GMP_CC 3963 3964 3965 3966# Check whether --with-gmp_include was given. 3967if test ${with_gmp_include+y} 3968then : 3969 withval=$with_gmp_include; 3970 if test -d "$withval" ; then 3971 local_tmp=`realpath "$withval" 2>/dev/null` 3972 if test "$local_tmp" != "" ; then 3973 if test -d "$local_tmp" ; then 3974 withval="$local_tmp" 3975 else 3976 withval="$withval" 3977 fi 3978 else 3979 case "$withval" in 3980 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 3981 *) withval="$PWD"/"$withval" ;; 3982 esac 3983 fi 3984 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 3985 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 3986 fi 3987 else 3988 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 3989 fi 3990 3991 CPPFLAGS="$CPPFLAGS -I$withval" 3992fi 3993 3994 3995 3996# Check whether --with-gmp_lib was given. 3997if test ${with_gmp_lib+y} 3998then : 3999 withval=$with_gmp_lib; 4000 4001 if test -d "$withval" ; then 4002 local_tmp=`realpath "$withval" 2>/dev/null` 4003 if test "$local_tmp" != "" ; then 4004 if test -d "$local_tmp" ; then 4005 withval="$local_tmp" 4006 else 4007 withval="$withval" 4008 fi 4009 else 4010 case "$withval" in 4011 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 4012 *) withval="$PWD"/"$withval" ;; 4013 esac 4014 fi 4015 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 4016 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 4017 fi 4018 else 4019 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 4020 fi 4021 4022 LDFLAGS="$LDFLAGS -L$withval" 4023 gmp_lib_path="$withval" 4024 4025fi 4026 4027 4028 4029# Check whether --with-gmp was given. 4030if test ${with_gmp+y} 4031then : 4032 withval=$with_gmp; 4033 4034 if test -d "$withval" ; then 4035 local_tmp=`realpath "$withval" 2>/dev/null` 4036 if test "$local_tmp" != "" ; then 4037 if test -d "$local_tmp" ; then 4038 withval="$local_tmp" 4039 else 4040 withval="$withval" 4041 fi 4042 else 4043 case "$withval" in 4044 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 4045 *) withval="$PWD"/"$withval" ;; 4046 esac 4047 fi 4048 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 4049 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 4050 fi 4051 else 4052 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 4053 fi 4054 4055 if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then 4056 CPPFLAGS="$CPPFLAGS -I$withval/include" 4057 LDFLAGS="$LDFLAGS -L$withval/lib" 4058 gmp_lib_path="$withval/lib" 4059 else 4060 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4061printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4062as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously. 4063See \`config.log' for more details" "$LINENO" 5; } 4064 fi 4065 4066fi 4067 4068 4069 4070# Check whether --with-gmp_build was given. 4071if test ${with_gmp_build+y} 4072then : 4073 withval=$with_gmp_build; 4074 4075 if test -d "$withval" ; then 4076 local_tmp=`realpath "$withval" 2>/dev/null` 4077 if test "$local_tmp" != "" ; then 4078 if test -d "$local_tmp" ; then 4079 withval="$local_tmp" 4080 else 4081 withval="$withval" 4082 fi 4083 else 4084 case "$withval" in 4085 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 4086 *) withval="$PWD"/"$withval" ;; 4087 esac 4088 fi 4089 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 4090 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 4091 fi 4092 else 4093 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 4094 fi 4095 4096 if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then 4097 CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune" 4098 LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune" 4099 gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune" 4100 if test -r $withval/Makefile ; then 4101 GMP_CFLAGS=`$SED -n 's/^CFLAGS = //p' $withval/Makefile` 4102 GMP_CC=`$SED -n 's/^CC = //p' $withval/Makefile` 4103 GMP_SOURCE=`$SED -n 's/^srcdir = *//p' $withval/Makefile` 4104 case "$GMP_SOURCE" in 4105 .) GMP_SOURCE="" ;; 4106 /*) ;; 4107 ?*) GMP_SOURCE="$withval/$GMP_SOURCE" ;; 4108 esac 4109 if test -d "$GMP_SOURCE" ; then 4110 CPPFLAGS="$CPPFLAGS -I$GMP_SOURCE -I$GMP_SOURCE/tune" 4111 fi 4112 fi 4113 use_gmp_build=yes 4114 else 4115 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4116printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4117as_fn_error $? "Do not use --with-gmp-build and other --with-gmp options simultaneously. 4118See \`config.log' for more details" "$LINENO" 5; } 4119 fi 4120 4121fi 4122 4123 4124 4125# Check whether --with-mini_gmp was given. 4126if test ${with_mini_gmp+y} 4127then : 4128 withval=$with_mini_gmp; 4129 4130 if test -d "$withval" ; then 4131 local_tmp=`realpath "$withval" 2>/dev/null` 4132 if test "$local_tmp" != "" ; then 4133 if test -d "$local_tmp" ; then 4134 withval="$local_tmp" 4135 else 4136 withval="$withval" 4137 fi 4138 else 4139 case "$withval" in 4140 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 4141 *) withval="$PWD"/"$withval" ;; 4142 esac 4143 fi 4144 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 4145 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 4146 fi 4147 else 4148 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 4149 fi 4150 4151 if test -z "$gmp_lib_path" && test -z "$with_gmp_include" && \ 4152 test -z "$use_gmp_build"; then 4153 if test -f "$withval/mini-gmp.c" && test -f "$withval/mini-gmp.h"; then 4154 4155printf "%s\n" "#define MPFR_USE_MINI_GMP 1" >>confdefs.h 4156 4157 mini_gmp_path="$withval" 4158 4159 else 4160 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4161printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4162as_fn_error $? "mini-gmp.{c,h} not found in $withval 4163See \`config.log' for more details" "$LINENO" 5; } 4164 fi 4165 else 4166 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4167printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4168as_fn_error $? "Do not use --with-mini-gmp and other --with-gmp options simultaneously. 4169See \`config.log' for more details" "$LINENO" 5; } 4170 fi 4171 4172fi 4173 4174 4175 4176# Check whether --with-mulhigh_size was given. 4177if test ${with_mulhigh_size+y} 4178then : 4179 withval=$with_mulhigh_size; 4180printf "%s\n" "#define MPFR_MULHIGH_SIZE $withval" >>confdefs.h 4181 4182fi 4183 4184 4185# Check whether --enable-gmp-internals was given. 4186if test ${enable_gmp_internals+y} 4187then : 4188 enableval=$enable_gmp_internals; case $enableval in 4189 yes) 4190printf "%s\n" "#define WANT_GMP_INTERNALS 1" >>confdefs.h 4191 ;; 4192 no) ;; 4193 *) as_fn_error $? "bad value for --enable-gmp-internals: yes or no" "$LINENO" 5 ;; 4194 esac 4195fi 4196 4197 4198# Check whether --enable-assert was given. 4199if test ${enable_assert+y} 4200then : 4201 enableval=$enable_assert; case $enableval in 4202 yes) 4203printf "%s\n" "#define MPFR_WANT_ASSERT 1" >>confdefs.h 4204 ;; 4205 none) 4206printf "%s\n" "#define MPFR_WANT_ASSERT -1" >>confdefs.h 4207 ;; 4208 no) ;; 4209 full) 4210printf "%s\n" "#define MPFR_WANT_ASSERT 2" >>confdefs.h 4211 ;; 4212 *) as_fn_error $? "bad value for --enable-assert: yes, no, none or full" "$LINENO" 5 ;; 4213 esac 4214fi 4215 4216 4217# Check whether --enable-logging was given. 4218if test ${enable_logging+y} 4219then : 4220 enableval=$enable_logging; case $enableval in 4221 yes) 4222printf "%s\n" "#define MPFR_USE_LOGGING 1" >>confdefs.h 4223 ;; 4224 no) ;; 4225 *) as_fn_error $? "bad value for --enable-logging: yes or no" "$LINENO" 5 ;; 4226 esac 4227fi 4228 4229 4230# Check whether --enable-thread-safe was given. 4231if test ${enable_thread_safe+y} 4232then : 4233 enableval=$enable_thread_safe; case $enableval in 4234 yes) ;; 4235 no) ;; 4236 *) as_fn_error $? "bad value for --enable-thread-safe: yes or no" "$LINENO" 5 ;; 4237 esac 4238fi 4239 4240 4241# Check whether --enable-shared-cache was given. 4242if test ${enable_shared_cache+y} 4243then : 4244 enableval=$enable_shared_cache; case $enableval in 4245 yes) 4246 4247printf "%s\n" "#define MPFR_WANT_SHARED_CACHE 1" >>confdefs.h 4248 ;; 4249 no) ;; 4250 *) as_fn_error $? "bad value for --enable-shared-cache: yes or no" "$LINENO" 5 ;; 4251 esac 4252fi 4253 4254 4255# Check whether --enable-warnings was given. 4256if test ${enable_warnings+y} 4257then : 4258 enableval=$enable_warnings; case $enableval in 4259 yes) 4260printf "%s\n" "#define MPFR_USE_WARNINGS 1" >>confdefs.h 4261 ;; 4262 no) ;; 4263 *) as_fn_error $? "bad value for --enable-warnings: yes or no" "$LINENO" 5 ;; 4264 esac 4265fi 4266 4267 4268# Check whether --enable-tests-timeout was given. 4269if test ${enable_tests_timeout+y} 4270then : 4271 enableval=$enable_tests_timeout; case $enableval in 4272 no) ;; 4273 yes) 4274printf "%s\n" "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h 4275 ;; 4276 [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9]) 4277 4278printf "%s\n" "#define MPFR_TESTS_TIMEOUT $enableval" >>confdefs.h 4279 ;; 4280 *) as_fn_error $? "bad value for --enable-tests-timeout" "$LINENO" 5 ;; 4281 esac 4282fi 4283 4284 4285# Check whether --enable-tune-for-coverage was given. 4286if test ${enable_tune_for_coverage+y} 4287then : 4288 enableval=$enable_tune_for_coverage; case $enableval in 4289 no) ;; 4290 yes) 4291printf "%s\n" "#define MPFR_TUNE_COVERAGE 1" >>confdefs.h 4292 ;; 4293 *) as_fn_error $? "bad value for --enable-tune-for-coverage" "$LINENO" 5 ;; 4294 esac 4295fi 4296 4297 4298# Check whether --enable-decimal-float was given. 4299if test ${enable_decimal_float+y} 4300then : 4301 enableval=$enable_decimal_float; case $enableval in 4302 yes|no|auto|bid|dpd|generic) ;; 4303 *) as_fn_error $? "bad value for --enable-decimal-float" "$LINENO" 5 ;; 4304 esac 4305fi 4306 4307 4308# Check whether --enable-float128 was given. 4309if test ${enable_float128+y} 4310then : 4311 enableval=$enable_float128; case $enableval in 4312 yes) ;; 4313 no) ;; 4314 *) as_fn_error $? "bad value for --enable-float128: yes or no" "$LINENO" 5 ;; 4315 esac 4316fi 4317 4318 4319# Check whether --enable-debug-prediction was given. 4320if test ${enable_debug_prediction+y} 4321then : 4322 enableval=$enable_debug_prediction; case $enableval in 4323 yes) if test "$enable_shared" != no; then 4324 as_fn_error $? "--enable-debug-prediction can only work in static mode (--disable-shared)" "$LINENO" 5 4325 fi 4326 4327printf "%s\n" "#define MPFR_DEBUG_PREDICTION 1" >>confdefs.h 4328 ;; 4329 no) ;; 4330 *) as_fn_error $? "bad value for --enable-debug-prediction: yes or no" "$LINENO" 5 ;; 4331 esac 4332fi 4333 4334 4335# Check whether --enable-lto was given. 4336if test ${enable_lto+y} 4337then : 4338 enableval=$enable_lto; case $enableval in 4339 yes) if test "$enable_shared" != "no"; then 4340 as_fn_error $? "--enable-lto can only work in static mode (--disable-shared)" "$LINENO" 5 4341 fi 4342 enable_lto=yes 4343 ;; 4344 no) ;; 4345 *) as_fn_error $? "bad value for --enable-lto: yes or no" "$LINENO" 5 ;; 4346 esac 4347fi 4348 4349 4350# Check whether --enable-formally-proven-code was given. 4351if test ${enable_formally_proven_code+y} 4352then : 4353 enableval=$enable_formally_proven_code; case $enableval in 4354 yes) 4355printf "%s\n" "#define MPFR_WANT_PROVEN_CODE 1" >>confdefs.h 4356 ;; 4357 no) ;; 4358 *) as_fn_error $? "bad value for --enable-formally-proven-code: yes or no" "$LINENO" 5 ;; 4359 esac 4360fi 4361 4362 4363 if test -n "$mini_gmp_path"; then 4364 MINI_GMP_TRUE= 4365 MINI_GMP_FALSE='#' 4366else 4367 MINI_GMP_TRUE='#' 4368 MINI_GMP_FALSE= 4369fi 4370 4371 4372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether configure options are compatible" >&5 4373printf %s "checking whether configure options are compatible... " >&6; } 4374if test "$enable_logging" = yes; then 4375 if test "$enable_thread_safe" = yes; then 4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4377printf "%s\n" "no" >&6; } 4378 as_fn_error $? "enable either logging or thread-safe, not both" "$LINENO" 5 4379 fi 4380 if test "$enable_shared_cache" = yes; then 4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4382printf "%s\n" "no" >&6; } 4383 as_fn_error $? "shared cache does not work with logging support" "$LINENO" 5 4384 fi 4385 enable_thread_safe=no 4386fi 4387if test "$enable_shared_cache" = yes; then 4388 if test "$enable_thread_safe" = no; then 4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4390printf "%s\n" "no" >&6; } 4391 as_fn_error $? "shared cache needs thread-safe support" "$LINENO" 5 4392 fi 4393 enable_thread_safe=yes 4394fi 4395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4396printf "%s\n" "yes" >&6; } 4397 4398 4399 4400 4401 4402 4403if test -z "$user_redefine_cc" && \ 4404 test "$cross_compiling" != yes && \ 4405 test "${with_mini_gmp+set}" != set ; then 4406 4407if test -z "$GMP_CC$GMP_CFLAGS" ; then 4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5 4409printf %s "checking for CC and CFLAGS in gmp.h... " >&6; } 4410 GMP_CC=__GMP_CC 4411 GMP_CFLAGS=__GMP_CFLAGS 4412 # /lib/cpp under Solaris doesn't support some environment variables 4413 # used by GCC, such as C_INCLUDE_PATH. If the user has set up such 4414 # environment variables, he probably wants to use them. So, let us 4415 # prefer cpp and gcc to /lib/cpp. However, note that this won't 4416 # work if GCC has been installed with versioned names only (e.g. 4417 # with cpp-5 and gcc-5). 4418 for cpp in "cpp -P" "cpp" "gcc -P -E" "gcc -E" "/lib/cpp -P" "/lib/cpp" "cc -P -E" "cc -E" "c99 -P -E" "c99 -E" "clang -E" "cl -E" "icl -E" 4419 do 4420 # Get CC 4421 echo "#include \"gmp.h\"" > conftest.c 4422 echo "MPFR_OPTION __GMP_CC" >> conftest.c 4423 $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt 4424 test $? -ne 0 && continue 4425 GMP_CC=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'` 4426 # Get CFLAGS 4427 echo "#include \"gmp.h\"" > conftest.c 4428 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c 4429 $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt 4430 test $? -ne 0 && continue 4431 GMP_CFLAGS=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/[ "]-pedantic[ "]/ /g;s/MPFR_OPTION //g;s/ *" *//g'` 4432 break 4433 done 4434 rm -f conftest* 4435 if test "x$GMP_CC" = "x__GMP_CC" || test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" ; then 4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 4437printf "%s\n" "failed" >&6; } 4438 GMP_CFLAGS= 4439 GMP_CC= 4440 else 4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5 4442printf "%s\n" "CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; } 4443 fi 4444fi 4445 4446if test -n "$GMP_CC$GMP_CFLAGS" ; then 4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5 4448printf %s "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; } 4449 echo "int main (void) { return 0; }" > conftest.c 4450 if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then 4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4452printf "%s\n" "yes" >&6; } 4453 CFLAGS=$GMP_CFLAGS 4454 CC=$GMP_CC 4455 else 4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4457printf "%s\n" "no" >&6; } 4458 fi 4459 rm -f conftest* 4460fi 4461 4462fi 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474ac_ext=c 4475ac_cpp='$CPP $CPPFLAGS' 4476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4478ac_compiler_gnu=$ac_cv_c_compiler_gnu 4479if test -n "$ac_tool_prefix"; then 4480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4481set dummy ${ac_tool_prefix}gcc; ac_word=$2 4482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4483printf %s "checking for $ac_word... " >&6; } 4484if test ${ac_cv_prog_CC+y} 4485then : 4486 printf %s "(cached) " >&6 4487else $as_nop 4488 if test -n "$CC"; then 4489 ac_cv_prog_CC="$CC" # Let the user override the test. 4490else 4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4492for as_dir in $PATH 4493do 4494 IFS=$as_save_IFS 4495 case $as_dir in #((( 4496 '') as_dir=./ ;; 4497 */) ;; 4498 *) as_dir=$as_dir/ ;; 4499 esac 4500 for ac_exec_ext in '' $ac_executable_extensions; do 4501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4502 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4504 break 2 4505 fi 4506done 4507 done 4508IFS=$as_save_IFS 4509 4510fi 4511fi 4512CC=$ac_cv_prog_CC 4513if test -n "$CC"; then 4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4515printf "%s\n" "$CC" >&6; } 4516else 4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4518printf "%s\n" "no" >&6; } 4519fi 4520 4521 4522fi 4523if test -z "$ac_cv_prog_CC"; then 4524 ac_ct_CC=$CC 4525 # Extract the first word of "gcc", so it can be a program name with args. 4526set dummy gcc; ac_word=$2 4527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4528printf %s "checking for $ac_word... " >&6; } 4529if test ${ac_cv_prog_ac_ct_CC+y} 4530then : 4531 printf %s "(cached) " >&6 4532else $as_nop 4533 if test -n "$ac_ct_CC"; then 4534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4535else 4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4537for as_dir in $PATH 4538do 4539 IFS=$as_save_IFS 4540 case $as_dir in #((( 4541 '') as_dir=./ ;; 4542 */) ;; 4543 *) as_dir=$as_dir/ ;; 4544 esac 4545 for ac_exec_ext in '' $ac_executable_extensions; do 4546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4547 ac_cv_prog_ac_ct_CC="gcc" 4548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4549 break 2 4550 fi 4551done 4552 done 4553IFS=$as_save_IFS 4554 4555fi 4556fi 4557ac_ct_CC=$ac_cv_prog_ac_ct_CC 4558if test -n "$ac_ct_CC"; then 4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4560printf "%s\n" "$ac_ct_CC" >&6; } 4561else 4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4563printf "%s\n" "no" >&6; } 4564fi 4565 4566 if test "x$ac_ct_CC" = x; then 4567 CC="" 4568 else 4569 case $cross_compiling:$ac_tool_warned in 4570yes:) 4571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4572printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4573ac_tool_warned=yes ;; 4574esac 4575 CC=$ac_ct_CC 4576 fi 4577else 4578 CC="$ac_cv_prog_CC" 4579fi 4580 4581if test -z "$CC"; then 4582 if test -n "$ac_tool_prefix"; then 4583 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4584set dummy ${ac_tool_prefix}cc; ac_word=$2 4585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4586printf %s "checking for $ac_word... " >&6; } 4587if test ${ac_cv_prog_CC+y} 4588then : 4589 printf %s "(cached) " >&6 4590else $as_nop 4591 if test -n "$CC"; then 4592 ac_cv_prog_CC="$CC" # Let the user override the test. 4593else 4594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4595for as_dir in $PATH 4596do 4597 IFS=$as_save_IFS 4598 case $as_dir in #((( 4599 '') as_dir=./ ;; 4600 */) ;; 4601 *) as_dir=$as_dir/ ;; 4602 esac 4603 for ac_exec_ext in '' $ac_executable_extensions; do 4604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4605 ac_cv_prog_CC="${ac_tool_prefix}cc" 4606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4607 break 2 4608 fi 4609done 4610 done 4611IFS=$as_save_IFS 4612 4613fi 4614fi 4615CC=$ac_cv_prog_CC 4616if test -n "$CC"; then 4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4618printf "%s\n" "$CC" >&6; } 4619else 4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4621printf "%s\n" "no" >&6; } 4622fi 4623 4624 4625 fi 4626fi 4627if test -z "$CC"; then 4628 # Extract the first word of "cc", so it can be a program name with args. 4629set dummy cc; ac_word=$2 4630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4631printf %s "checking for $ac_word... " >&6; } 4632if test ${ac_cv_prog_CC+y} 4633then : 4634 printf %s "(cached) " >&6 4635else $as_nop 4636 if test -n "$CC"; then 4637 ac_cv_prog_CC="$CC" # Let the user override the test. 4638else 4639 ac_prog_rejected=no 4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4641for as_dir in $PATH 4642do 4643 IFS=$as_save_IFS 4644 case $as_dir in #((( 4645 '') as_dir=./ ;; 4646 */) ;; 4647 *) as_dir=$as_dir/ ;; 4648 esac 4649 for ac_exec_ext in '' $ac_executable_extensions; do 4650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4651 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4652 ac_prog_rejected=yes 4653 continue 4654 fi 4655 ac_cv_prog_CC="cc" 4656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4657 break 2 4658 fi 4659done 4660 done 4661IFS=$as_save_IFS 4662 4663if test $ac_prog_rejected = yes; then 4664 # We found a bogon in the path, so make sure we never use it. 4665 set dummy $ac_cv_prog_CC 4666 shift 4667 if test $# != 0; then 4668 # We chose a different compiler from the bogus one. 4669 # However, it has the same basename, so the bogon will be chosen 4670 # first if we set CC to just the basename; use the full file name. 4671 shift 4672 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4673 fi 4674fi 4675fi 4676fi 4677CC=$ac_cv_prog_CC 4678if test -n "$CC"; then 4679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4680printf "%s\n" "$CC" >&6; } 4681else 4682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4683printf "%s\n" "no" >&6; } 4684fi 4685 4686 4687fi 4688if test -z "$CC"; then 4689 if test -n "$ac_tool_prefix"; then 4690 for ac_prog in cl.exe 4691 do 4692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4693set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4695printf %s "checking for $ac_word... " >&6; } 4696if test ${ac_cv_prog_CC+y} 4697then : 4698 printf %s "(cached) " >&6 4699else $as_nop 4700 if test -n "$CC"; then 4701 ac_cv_prog_CC="$CC" # Let the user override the test. 4702else 4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4704for as_dir in $PATH 4705do 4706 IFS=$as_save_IFS 4707 case $as_dir in #((( 4708 '') as_dir=./ ;; 4709 */) ;; 4710 *) as_dir=$as_dir/ ;; 4711 esac 4712 for ac_exec_ext in '' $ac_executable_extensions; do 4713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4716 break 2 4717 fi 4718done 4719 done 4720IFS=$as_save_IFS 4721 4722fi 4723fi 4724CC=$ac_cv_prog_CC 4725if test -n "$CC"; then 4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4727printf "%s\n" "$CC" >&6; } 4728else 4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4730printf "%s\n" "no" >&6; } 4731fi 4732 4733 4734 test -n "$CC" && break 4735 done 4736fi 4737if test -z "$CC"; then 4738 ac_ct_CC=$CC 4739 for ac_prog in cl.exe 4740do 4741 # Extract the first word of "$ac_prog", so it can be a program name with args. 4742set dummy $ac_prog; ac_word=$2 4743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4744printf %s "checking for $ac_word... " >&6; } 4745if test ${ac_cv_prog_ac_ct_CC+y} 4746then : 4747 printf %s "(cached) " >&6 4748else $as_nop 4749 if test -n "$ac_ct_CC"; then 4750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4751else 4752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4753for as_dir in $PATH 4754do 4755 IFS=$as_save_IFS 4756 case $as_dir in #((( 4757 '') as_dir=./ ;; 4758 */) ;; 4759 *) as_dir=$as_dir/ ;; 4760 esac 4761 for ac_exec_ext in '' $ac_executable_extensions; do 4762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4763 ac_cv_prog_ac_ct_CC="$ac_prog" 4764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4765 break 2 4766 fi 4767done 4768 done 4769IFS=$as_save_IFS 4770 4771fi 4772fi 4773ac_ct_CC=$ac_cv_prog_ac_ct_CC 4774if test -n "$ac_ct_CC"; then 4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4776printf "%s\n" "$ac_ct_CC" >&6; } 4777else 4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4779printf "%s\n" "no" >&6; } 4780fi 4781 4782 4783 test -n "$ac_ct_CC" && break 4784done 4785 4786 if test "x$ac_ct_CC" = x; then 4787 CC="" 4788 else 4789 case $cross_compiling:$ac_tool_warned in 4790yes:) 4791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4792printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4793ac_tool_warned=yes ;; 4794esac 4795 CC=$ac_ct_CC 4796 fi 4797fi 4798 4799fi 4800if test -z "$CC"; then 4801 if test -n "$ac_tool_prefix"; then 4802 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4803set dummy ${ac_tool_prefix}clang; ac_word=$2 4804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4805printf %s "checking for $ac_word... " >&6; } 4806if test ${ac_cv_prog_CC+y} 4807then : 4808 printf %s "(cached) " >&6 4809else $as_nop 4810 if test -n "$CC"; then 4811 ac_cv_prog_CC="$CC" # Let the user override the test. 4812else 4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4814for as_dir in $PATH 4815do 4816 IFS=$as_save_IFS 4817 case $as_dir in #((( 4818 '') as_dir=./ ;; 4819 */) ;; 4820 *) as_dir=$as_dir/ ;; 4821 esac 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4824 ac_cv_prog_CC="${ac_tool_prefix}clang" 4825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4826 break 2 4827 fi 4828done 4829 done 4830IFS=$as_save_IFS 4831 4832fi 4833fi 4834CC=$ac_cv_prog_CC 4835if test -n "$CC"; then 4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4837printf "%s\n" "$CC" >&6; } 4838else 4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4840printf "%s\n" "no" >&6; } 4841fi 4842 4843 4844fi 4845if test -z "$ac_cv_prog_CC"; then 4846 ac_ct_CC=$CC 4847 # Extract the first word of "clang", so it can be a program name with args. 4848set dummy clang; ac_word=$2 4849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4850printf %s "checking for $ac_word... " >&6; } 4851if test ${ac_cv_prog_ac_ct_CC+y} 4852then : 4853 printf %s "(cached) " >&6 4854else $as_nop 4855 if test -n "$ac_ct_CC"; then 4856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4857else 4858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4859for as_dir in $PATH 4860do 4861 IFS=$as_save_IFS 4862 case $as_dir in #((( 4863 '') as_dir=./ ;; 4864 */) ;; 4865 *) as_dir=$as_dir/ ;; 4866 esac 4867 for ac_exec_ext in '' $ac_executable_extensions; do 4868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4869 ac_cv_prog_ac_ct_CC="clang" 4870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4871 break 2 4872 fi 4873done 4874 done 4875IFS=$as_save_IFS 4876 4877fi 4878fi 4879ac_ct_CC=$ac_cv_prog_ac_ct_CC 4880if test -n "$ac_ct_CC"; then 4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4882printf "%s\n" "$ac_ct_CC" >&6; } 4883else 4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4885printf "%s\n" "no" >&6; } 4886fi 4887 4888 if test "x$ac_ct_CC" = x; then 4889 CC="" 4890 else 4891 case $cross_compiling:$ac_tool_warned in 4892yes:) 4893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4894printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4895ac_tool_warned=yes ;; 4896esac 4897 CC=$ac_ct_CC 4898 fi 4899else 4900 CC="$ac_cv_prog_CC" 4901fi 4902 4903fi 4904 4905 4906test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4907printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4908as_fn_error $? "no acceptable C compiler found in \$PATH 4909See \`config.log' for more details" "$LINENO" 5; } 4910 4911# Provide some information about the compiler. 4912printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4913set X $ac_compile 4914ac_compiler=$2 4915for ac_option in --version -v -V -qversion -version; do 4916 { { ac_try="$ac_compiler $ac_option >&5" 4917case "(($ac_try" in 4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4919 *) ac_try_echo=$ac_try;; 4920esac 4921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4922printf "%s\n" "$ac_try_echo"; } >&5 4923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4924 ac_status=$? 4925 if test -s conftest.err; then 4926 sed '10a\ 4927... rest of stderr output deleted ... 4928 10q' conftest.err >conftest.er1 4929 cat conftest.er1 >&5 4930 fi 4931 rm -f conftest.er1 conftest.err 4932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4933 test $ac_status = 0; } 4934done 4935 4936cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4937/* end confdefs.h. */ 4938 4939int 4940main (void) 4941{ 4942 4943 ; 4944 return 0; 4945} 4946_ACEOF 4947ac_clean_files_save=$ac_clean_files 4948ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4949# Try to create an executable without -o first, disregard a.out. 4950# It will help us diagnose broken compilers, and finding out an intuition 4951# of exeext. 4952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4953printf %s "checking whether the C compiler works... " >&6; } 4954ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4955 4956# The possible output files: 4957ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4958 4959ac_rmfiles= 4960for ac_file in $ac_files 4961do 4962 case $ac_file in 4963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4964 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4965 esac 4966done 4967rm -f $ac_rmfiles 4968 4969if { { ac_try="$ac_link_default" 4970case "(($ac_try" in 4971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4972 *) ac_try_echo=$ac_try;; 4973esac 4974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4975printf "%s\n" "$ac_try_echo"; } >&5 4976 (eval "$ac_link_default") 2>&5 4977 ac_status=$? 4978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4979 test $ac_status = 0; } 4980then : 4981 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4982# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4983# in a Makefile. We should not override ac_cv_exeext if it was cached, 4984# so that the user can short-circuit this test for compilers unknown to 4985# Autoconf. 4986for ac_file in $ac_files '' 4987do 4988 test -f "$ac_file" || continue 4989 case $ac_file in 4990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4991 ;; 4992 [ab].out ) 4993 # We found the default executable, but exeext='' is most 4994 # certainly right. 4995 break;; 4996 *.* ) 4997 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4998 then :; else 4999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5000 fi 5001 # We set ac_cv_exeext here because the later test for it is not 5002 # safe: cross compilers may not add the suffix if given an `-o' 5003 # argument, so we may need to know it at that point already. 5004 # Even if this section looks crufty: it has the advantage of 5005 # actually working. 5006 break;; 5007 * ) 5008 break;; 5009 esac 5010done 5011test "$ac_cv_exeext" = no && ac_cv_exeext= 5012 5013else $as_nop 5014 ac_file='' 5015fi 5016if test -z "$ac_file" 5017then : 5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5019printf "%s\n" "no" >&6; } 5020printf "%s\n" "$as_me: failed program was:" >&5 5021sed 's/^/| /' conftest.$ac_ext >&5 5022 5023{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5024printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5025as_fn_error 77 "C compiler cannot create executables 5026See \`config.log' for more details" "$LINENO" 5; } 5027else $as_nop 5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5029printf "%s\n" "yes" >&6; } 5030fi 5031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5032printf %s "checking for C compiler default output file name... " >&6; } 5033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5034printf "%s\n" "$ac_file" >&6; } 5035ac_exeext=$ac_cv_exeext 5036 5037rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5038ac_clean_files=$ac_clean_files_save 5039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5040printf %s "checking for suffix of executables... " >&6; } 5041if { { ac_try="$ac_link" 5042case "(($ac_try" in 5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5044 *) ac_try_echo=$ac_try;; 5045esac 5046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5047printf "%s\n" "$ac_try_echo"; } >&5 5048 (eval "$ac_link") 2>&5 5049 ac_status=$? 5050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5051 test $ac_status = 0; } 5052then : 5053 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5054# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5055# work properly (i.e., refer to `conftest.exe'), while it won't with 5056# `rm'. 5057for ac_file in conftest.exe conftest conftest.*; do 5058 test -f "$ac_file" || continue 5059 case $ac_file in 5060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5061 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5062 break;; 5063 * ) break;; 5064 esac 5065done 5066else $as_nop 5067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5068printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5069as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5070See \`config.log' for more details" "$LINENO" 5; } 5071fi 5072rm -f conftest conftest$ac_cv_exeext 5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5074printf "%s\n" "$ac_cv_exeext" >&6; } 5075 5076rm -f conftest.$ac_ext 5077EXEEXT=$ac_cv_exeext 5078ac_exeext=$EXEEXT 5079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080/* end confdefs.h. */ 5081#include <stdio.h> 5082int 5083main (void) 5084{ 5085FILE *f = fopen ("conftest.out", "w"); 5086 return ferror (f) || fclose (f) != 0; 5087 5088 ; 5089 return 0; 5090} 5091_ACEOF 5092ac_clean_files="$ac_clean_files conftest.out" 5093# Check that the compiler produces executables we can run. If not, either 5094# the compiler is broken, or we cross compile. 5095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5096printf %s "checking whether we are cross compiling... " >&6; } 5097if test "$cross_compiling" != yes; then 5098 { { ac_try="$ac_link" 5099case "(($ac_try" in 5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5101 *) ac_try_echo=$ac_try;; 5102esac 5103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5104printf "%s\n" "$ac_try_echo"; } >&5 5105 (eval "$ac_link") 2>&5 5106 ac_status=$? 5107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5108 test $ac_status = 0; } 5109 if { ac_try='./conftest$ac_cv_exeext' 5110 { { case "(($ac_try" in 5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5112 *) ac_try_echo=$ac_try;; 5113esac 5114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5115printf "%s\n" "$ac_try_echo"; } >&5 5116 (eval "$ac_try") 2>&5 5117 ac_status=$? 5118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5119 test $ac_status = 0; }; }; then 5120 cross_compiling=no 5121 else 5122 if test "$cross_compiling" = maybe; then 5123 cross_compiling=yes 5124 else 5125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5126printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5127as_fn_error 77 "cannot run C compiled programs. 5128If you meant to cross compile, use \`--host'. 5129See \`config.log' for more details" "$LINENO" 5; } 5130 fi 5131 fi 5132fi 5133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5134printf "%s\n" "$cross_compiling" >&6; } 5135 5136rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5137ac_clean_files=$ac_clean_files_save 5138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5139printf %s "checking for suffix of object files... " >&6; } 5140if test ${ac_cv_objext+y} 5141then : 5142 printf %s "(cached) " >&6 5143else $as_nop 5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5145/* end confdefs.h. */ 5146 5147int 5148main (void) 5149{ 5150 5151 ; 5152 return 0; 5153} 5154_ACEOF 5155rm -f conftest.o conftest.obj 5156if { { ac_try="$ac_compile" 5157case "(($ac_try" in 5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5159 *) ac_try_echo=$ac_try;; 5160esac 5161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5162printf "%s\n" "$ac_try_echo"; } >&5 5163 (eval "$ac_compile") 2>&5 5164 ac_status=$? 5165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5166 test $ac_status = 0; } 5167then : 5168 for ac_file in conftest.o conftest.obj conftest.*; do 5169 test -f "$ac_file" || continue; 5170 case $ac_file in 5171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5173 break;; 5174 esac 5175done 5176else $as_nop 5177 printf "%s\n" "$as_me: failed program was:" >&5 5178sed 's/^/| /' conftest.$ac_ext >&5 5179 5180{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5181printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5182as_fn_error $? "cannot compute suffix of object files: cannot compile 5183See \`config.log' for more details" "$LINENO" 5; } 5184fi 5185rm -f conftest.$ac_cv_objext conftest.$ac_ext 5186fi 5187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5188printf "%s\n" "$ac_cv_objext" >&6; } 5189OBJEXT=$ac_cv_objext 5190ac_objext=$OBJEXT 5191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5192printf %s "checking whether the compiler supports GNU C... " >&6; } 5193if test ${ac_cv_c_compiler_gnu+y} 5194then : 5195 printf %s "(cached) " >&6 5196else $as_nop 5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5198/* end confdefs.h. */ 5199 5200int 5201main (void) 5202{ 5203#ifndef __GNUC__ 5204 choke me 5205#endif 5206 5207 ; 5208 return 0; 5209} 5210_ACEOF 5211if ac_fn_c_try_compile "$LINENO" 5212then : 5213 ac_compiler_gnu=yes 5214else $as_nop 5215 ac_compiler_gnu=no 5216fi 5217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5218ac_cv_c_compiler_gnu=$ac_compiler_gnu 5219 5220fi 5221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5222printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5223ac_compiler_gnu=$ac_cv_c_compiler_gnu 5224 5225if test $ac_compiler_gnu = yes; then 5226 GCC=yes 5227else 5228 GCC= 5229fi 5230ac_test_CFLAGS=${CFLAGS+y} 5231ac_save_CFLAGS=$CFLAGS 5232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5233printf %s "checking whether $CC accepts -g... " >&6; } 5234if test ${ac_cv_prog_cc_g+y} 5235then : 5236 printf %s "(cached) " >&6 5237else $as_nop 5238 ac_save_c_werror_flag=$ac_c_werror_flag 5239 ac_c_werror_flag=yes 5240 ac_cv_prog_cc_g=no 5241 CFLAGS="-g" 5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5243/* end confdefs.h. */ 5244 5245int 5246main (void) 5247{ 5248 5249 ; 5250 return 0; 5251} 5252_ACEOF 5253if ac_fn_c_try_compile "$LINENO" 5254then : 5255 ac_cv_prog_cc_g=yes 5256else $as_nop 5257 CFLAGS="" 5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5259/* end confdefs.h. */ 5260 5261int 5262main (void) 5263{ 5264 5265 ; 5266 return 0; 5267} 5268_ACEOF 5269if ac_fn_c_try_compile "$LINENO" 5270then : 5271 5272else $as_nop 5273 ac_c_werror_flag=$ac_save_c_werror_flag 5274 CFLAGS="-g" 5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5276/* end confdefs.h. */ 5277 5278int 5279main (void) 5280{ 5281 5282 ; 5283 return 0; 5284} 5285_ACEOF 5286if ac_fn_c_try_compile "$LINENO" 5287then : 5288 ac_cv_prog_cc_g=yes 5289fi 5290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5291fi 5292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5293fi 5294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5295 ac_c_werror_flag=$ac_save_c_werror_flag 5296fi 5297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5298printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5299if test $ac_test_CFLAGS; then 5300 CFLAGS=$ac_save_CFLAGS 5301elif test $ac_cv_prog_cc_g = yes; then 5302 if test "$GCC" = yes; then 5303 CFLAGS="-g -O2" 5304 else 5305 CFLAGS="-g" 5306 fi 5307else 5308 if test "$GCC" = yes; then 5309 CFLAGS="-O2" 5310 else 5311 CFLAGS= 5312 fi 5313fi 5314ac_prog_cc_stdc=no 5315if test x$ac_prog_cc_stdc = xno 5316then : 5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5318printf %s "checking for $CC option to enable C11 features... " >&6; } 5319if test ${ac_cv_prog_cc_c11+y} 5320then : 5321 printf %s "(cached) " >&6 5322else $as_nop 5323 ac_cv_prog_cc_c11=no 5324ac_save_CC=$CC 5325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5326/* end confdefs.h. */ 5327$ac_c_conftest_c11_program 5328_ACEOF 5329for ac_arg in '' -std=gnu11 5330do 5331 CC="$ac_save_CC $ac_arg" 5332 if ac_fn_c_try_compile "$LINENO" 5333then : 5334 ac_cv_prog_cc_c11=$ac_arg 5335fi 5336rm -f core conftest.err conftest.$ac_objext conftest.beam 5337 test "x$ac_cv_prog_cc_c11" != "xno" && break 5338done 5339rm -f conftest.$ac_ext 5340CC=$ac_save_CC 5341fi 5342 5343if test "x$ac_cv_prog_cc_c11" = xno 5344then : 5345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5346printf "%s\n" "unsupported" >&6; } 5347else $as_nop 5348 if test "x$ac_cv_prog_cc_c11" = x 5349then : 5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5351printf "%s\n" "none needed" >&6; } 5352else $as_nop 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5354printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5355 CC="$CC $ac_cv_prog_cc_c11" 5356fi 5357 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5358 ac_prog_cc_stdc=c11 5359fi 5360fi 5361if test x$ac_prog_cc_stdc = xno 5362then : 5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5364printf %s "checking for $CC option to enable C99 features... " >&6; } 5365if test ${ac_cv_prog_cc_c99+y} 5366then : 5367 printf %s "(cached) " >&6 5368else $as_nop 5369 ac_cv_prog_cc_c99=no 5370ac_save_CC=$CC 5371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5372/* end confdefs.h. */ 5373$ac_c_conftest_c99_program 5374_ACEOF 5375for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5376do 5377 CC="$ac_save_CC $ac_arg" 5378 if ac_fn_c_try_compile "$LINENO" 5379then : 5380 ac_cv_prog_cc_c99=$ac_arg 5381fi 5382rm -f core conftest.err conftest.$ac_objext conftest.beam 5383 test "x$ac_cv_prog_cc_c99" != "xno" && break 5384done 5385rm -f conftest.$ac_ext 5386CC=$ac_save_CC 5387fi 5388 5389if test "x$ac_cv_prog_cc_c99" = xno 5390then : 5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5392printf "%s\n" "unsupported" >&6; } 5393else $as_nop 5394 if test "x$ac_cv_prog_cc_c99" = x 5395then : 5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5397printf "%s\n" "none needed" >&6; } 5398else $as_nop 5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5400printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5401 CC="$CC $ac_cv_prog_cc_c99" 5402fi 5403 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5404 ac_prog_cc_stdc=c99 5405fi 5406fi 5407if test x$ac_prog_cc_stdc = xno 5408then : 5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5410printf %s "checking for $CC option to enable C89 features... " >&6; } 5411if test ${ac_cv_prog_cc_c89+y} 5412then : 5413 printf %s "(cached) " >&6 5414else $as_nop 5415 ac_cv_prog_cc_c89=no 5416ac_save_CC=$CC 5417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5418/* end confdefs.h. */ 5419$ac_c_conftest_c89_program 5420_ACEOF 5421for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5422do 5423 CC="$ac_save_CC $ac_arg" 5424 if ac_fn_c_try_compile "$LINENO" 5425then : 5426 ac_cv_prog_cc_c89=$ac_arg 5427fi 5428rm -f core conftest.err conftest.$ac_objext conftest.beam 5429 test "x$ac_cv_prog_cc_c89" != "xno" && break 5430done 5431rm -f conftest.$ac_ext 5432CC=$ac_save_CC 5433fi 5434 5435if test "x$ac_cv_prog_cc_c89" = xno 5436then : 5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5438printf "%s\n" "unsupported" >&6; } 5439else $as_nop 5440 if test "x$ac_cv_prog_cc_c89" = x 5441then : 5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5443printf "%s\n" "none needed" >&6; } 5444else $as_nop 5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5446printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5447 CC="$CC $ac_cv_prog_cc_c89" 5448fi 5449 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5450 ac_prog_cc_stdc=c89 5451fi 5452fi 5453 5454ac_ext=c 5455ac_cpp='$CPP $CPPFLAGS' 5456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5458ac_compiler_gnu=$ac_cv_c_compiler_gnu 5459 5460 5461 ac_ext=c 5462ac_cpp='$CPP $CPPFLAGS' 5463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5465ac_compiler_gnu=$ac_cv_c_compiler_gnu 5466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5467printf %s "checking whether $CC understands -c and -o together... " >&6; } 5468if test ${am_cv_prog_cc_c_o+y} 5469then : 5470 printf %s "(cached) " >&6 5471else $as_nop 5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5473/* end confdefs.h. */ 5474 5475int 5476main (void) 5477{ 5478 5479 ; 5480 return 0; 5481} 5482_ACEOF 5483 # Make sure it works both with $CC and with simple cc. 5484 # Following AC_PROG_CC_C_O, we do the test twice because some 5485 # compilers refuse to overwrite an existing .o file with -o, 5486 # though they will create one. 5487 am_cv_prog_cc_c_o=yes 5488 for am_i in 1 2; do 5489 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5490 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5491 ac_status=$? 5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5493 (exit $ac_status); } \ 5494 && test -f conftest2.$ac_objext; then 5495 : OK 5496 else 5497 am_cv_prog_cc_c_o=no 5498 break 5499 fi 5500 done 5501 rm -f core conftest* 5502 unset am_i 5503fi 5504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5505printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5506if test "$am_cv_prog_cc_c_o" != yes; then 5507 # Losing compiler, so override with the script. 5508 # FIXME: It is wrong to rewrite CC. 5509 # But if we don't then we get into trouble of one sort or another. 5510 # A longer-term fix would be to have automake use am__CC in this case, 5511 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5512 CC="$am_aux_dir/compile $CC" 5513fi 5514ac_ext=c 5515ac_cpp='$CPP $CPPFLAGS' 5516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5518ac_compiler_gnu=$ac_cv_c_compiler_gnu 5519 5520DEPDIR="${am__leading_dot}deps" 5521 5522ac_config_commands="$ac_config_commands depfiles" 5523 5524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 5525printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 5526cat > confinc.mk << 'END' 5527am__doit: 5528 @echo this is the am__doit target >confinc.out 5529.PHONY: am__doit 5530END 5531am__include="#" 5532am__quote= 5533# BSD make does it like this. 5534echo '.include "confinc.mk" # ignored' > confmf.BSD 5535# Other make implementations (GNU, Solaris 10, AIX) do it like this. 5536echo 'include confinc.mk # ignored' > confmf.GNU 5537_am_result=no 5538for s in GNU BSD; do 5539 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 5540 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 5541 ac_status=$? 5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5543 (exit $ac_status); } 5544 case $?:`cat confinc.out 2>/dev/null` in #( 5545 '0:this is the am__doit target') : 5546 case $s in #( 5547 BSD) : 5548 am__include='.include' am__quote='"' ;; #( 5549 *) : 5550 am__include='include' am__quote='' ;; 5551esac ;; #( 5552 *) : 5553 ;; 5554esac 5555 if test "$am__include" != "#"; then 5556 _am_result="yes ($s style)" 5557 break 5558 fi 5559done 5560rm -f confinc.* confmf.* 5561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5562printf "%s\n" "${_am_result}" >&6; } 5563 5564# Check whether --enable-dependency-tracking was given. 5565if test ${enable_dependency_tracking+y} 5566then : 5567 enableval=$enable_dependency_tracking; 5568fi 5569 5570if test "x$enable_dependency_tracking" != xno; then 5571 am_depcomp="$ac_aux_dir/depcomp" 5572 AMDEPBACKSLASH='\' 5573 am__nodep='_no' 5574fi 5575 if test "x$enable_dependency_tracking" != xno; then 5576 AMDEP_TRUE= 5577 AMDEP_FALSE='#' 5578else 5579 AMDEP_TRUE='#' 5580 AMDEP_FALSE= 5581fi 5582 5583 5584 5585depcc="$CC" am_compiler_list= 5586 5587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5588printf %s "checking dependency style of $depcc... " >&6; } 5589if test ${am_cv_CC_dependencies_compiler_type+y} 5590then : 5591 printf %s "(cached) " >&6 5592else $as_nop 5593 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5594 # We make a subdir and do the tests there. Otherwise we can end up 5595 # making bogus files that we don't know about and never remove. For 5596 # instance it was reported that on HP-UX the gcc test will end up 5597 # making a dummy file named 'D' -- because '-MD' means "put the output 5598 # in D". 5599 rm -rf conftest.dir 5600 mkdir conftest.dir 5601 # Copy depcomp to subdir because otherwise we won't find it if we're 5602 # using a relative directory. 5603 cp "$am_depcomp" conftest.dir 5604 cd conftest.dir 5605 # We will build objects and dependencies in a subdirectory because 5606 # it helps to detect inapplicable dependency modes. For instance 5607 # both Tru64's cc and ICC support -MD to output dependencies as a 5608 # side effect of compilation, but ICC will put the dependencies in 5609 # the current directory while Tru64 will put them in the object 5610 # directory. 5611 mkdir sub 5612 5613 am_cv_CC_dependencies_compiler_type=none 5614 if test "$am_compiler_list" = ""; then 5615 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5616 fi 5617 am__universal=false 5618 case " $depcc " in #( 5619 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5620 esac 5621 5622 for depmode in $am_compiler_list; do 5623 # Setup a source with many dependencies, because some compilers 5624 # like to wrap large dependency lists on column 80 (with \), and 5625 # we should not choose a depcomp mode which is confused by this. 5626 # 5627 # We need to recreate these files for each test, as the compiler may 5628 # overwrite some of them when testing with obscure command lines. 5629 # This happens at least with the AIX C compiler. 5630 : > sub/conftest.c 5631 for i in 1 2 3 4 5 6; do 5632 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5633 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5634 # Solaris 10 /bin/sh. 5635 echo '/* dummy */' > sub/conftst$i.h 5636 done 5637 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5638 5639 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5640 # mode. It turns out that the SunPro C++ compiler does not properly 5641 # handle '-M -o', and we need to detect this. Also, some Intel 5642 # versions had trouble with output in subdirs. 5643 am__obj=sub/conftest.${OBJEXT-o} 5644 am__minus_obj="-o $am__obj" 5645 case $depmode in 5646 gcc) 5647 # This depmode causes a compiler race in universal mode. 5648 test "$am__universal" = false || continue 5649 ;; 5650 nosideeffect) 5651 # After this tag, mechanisms are not by side-effect, so they'll 5652 # only be used when explicitly requested. 5653 if test "x$enable_dependency_tracking" = xyes; then 5654 continue 5655 else 5656 break 5657 fi 5658 ;; 5659 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5660 # This compiler won't grok '-c -o', but also, the minuso test has 5661 # not run yet. These depmodes are late enough in the game, and 5662 # so weak that their functioning should not be impacted. 5663 am__obj=conftest.${OBJEXT-o} 5664 am__minus_obj= 5665 ;; 5666 none) break ;; 5667 esac 5668 if depmode=$depmode \ 5669 source=sub/conftest.c object=$am__obj \ 5670 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5671 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5672 >/dev/null 2>conftest.err && 5673 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5674 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5675 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5676 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5677 # icc doesn't choke on unknown options, it will just issue warnings 5678 # or remarks (even with -Werror). So we grep stderr for any message 5679 # that says an option was ignored or not supported. 5680 # When given -MP, icc 7.0 and 7.1 complain thusly: 5681 # icc: Command line warning: ignoring option '-M'; no argument required 5682 # The diagnosis changed in icc 8.0: 5683 # icc: Command line remark: option '-MP' not supported 5684 if (grep 'ignoring option' conftest.err || 5685 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5686 am_cv_CC_dependencies_compiler_type=$depmode 5687 break 5688 fi 5689 fi 5690 done 5691 5692 cd .. 5693 rm -rf conftest.dir 5694else 5695 am_cv_CC_dependencies_compiler_type=none 5696fi 5697 5698fi 5699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5700printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5701CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5702 5703 if 5704 test "x$enable_dependency_tracking" != xno \ 5705 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5706 am__fastdepCC_TRUE= 5707 am__fastdepCC_FALSE='#' 5708else 5709 am__fastdepCC_TRUE='#' 5710 am__fastdepCC_FALSE= 5711fi 5712 5713 5714ac_ext=c 5715ac_cpp='$CPP $CPPFLAGS' 5716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5718ac_compiler_gnu=$ac_cv_c_compiler_gnu 5719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5720printf %s "checking how to run the C preprocessor... " >&6; } 5721# On Suns, sometimes $CPP names a directory. 5722if test -n "$CPP" && test -d "$CPP"; then 5723 CPP= 5724fi 5725if test -z "$CPP"; then 5726 if test ${ac_cv_prog_CPP+y} 5727then : 5728 printf %s "(cached) " >&6 5729else $as_nop 5730 # Double quotes because $CC needs to be expanded 5731 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5732 do 5733 ac_preproc_ok=false 5734for ac_c_preproc_warn_flag in '' yes 5735do 5736 # Use a header file that comes with gcc, so configuring glibc 5737 # with a fresh cross-compiler works. 5738 # On the NeXT, cc -E runs the code through the compiler's parser, 5739 # not just through cpp. "Syntax error" is here to catch this case. 5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5741/* end confdefs.h. */ 5742#include <limits.h> 5743 Syntax error 5744_ACEOF 5745if ac_fn_c_try_cpp "$LINENO" 5746then : 5747 5748else $as_nop 5749 # Broken: fails on valid input. 5750continue 5751fi 5752rm -f conftest.err conftest.i conftest.$ac_ext 5753 5754 # OK, works on sane cases. Now check whether nonexistent headers 5755 # can be detected and how. 5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5757/* end confdefs.h. */ 5758#include <ac_nonexistent.h> 5759_ACEOF 5760if ac_fn_c_try_cpp "$LINENO" 5761then : 5762 # Broken: success on invalid input. 5763continue 5764else $as_nop 5765 # Passes both tests. 5766ac_preproc_ok=: 5767break 5768fi 5769rm -f conftest.err conftest.i conftest.$ac_ext 5770 5771done 5772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5773rm -f conftest.i conftest.err conftest.$ac_ext 5774if $ac_preproc_ok 5775then : 5776 break 5777fi 5778 5779 done 5780 ac_cv_prog_CPP=$CPP 5781 5782fi 5783 CPP=$ac_cv_prog_CPP 5784else 5785 ac_cv_prog_CPP=$CPP 5786fi 5787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5788printf "%s\n" "$CPP" >&6; } 5789ac_preproc_ok=false 5790for ac_c_preproc_warn_flag in '' yes 5791do 5792 # Use a header file that comes with gcc, so configuring glibc 5793 # with a fresh cross-compiler works. 5794 # On the NeXT, cc -E runs the code through the compiler's parser, 5795 # not just through cpp. "Syntax error" is here to catch this case. 5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797/* end confdefs.h. */ 5798#include <limits.h> 5799 Syntax error 5800_ACEOF 5801if ac_fn_c_try_cpp "$LINENO" 5802then : 5803 5804else $as_nop 5805 # Broken: fails on valid input. 5806continue 5807fi 5808rm -f conftest.err conftest.i conftest.$ac_ext 5809 5810 # OK, works on sane cases. Now check whether nonexistent headers 5811 # can be detected and how. 5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5813/* end confdefs.h. */ 5814#include <ac_nonexistent.h> 5815_ACEOF 5816if ac_fn_c_try_cpp "$LINENO" 5817then : 5818 # Broken: success on invalid input. 5819continue 5820else $as_nop 5821 # Passes both tests. 5822ac_preproc_ok=: 5823break 5824fi 5825rm -f conftest.err conftest.i conftest.$ac_ext 5826 5827done 5828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5829rm -f conftest.i conftest.err conftest.$ac_ext 5830if $ac_preproc_ok 5831then : 5832 5833else $as_nop 5834 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5835printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5836as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5837See \`config.log' for more details" "$LINENO" 5; } 5838fi 5839 5840ac_ext=c 5841ac_cpp='$CPP $CPPFLAGS' 5842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5844ac_compiler_gnu=$ac_cv_c_compiler_gnu 5845 5846ac_ext=c 5847ac_cpp='$CPP $CPPFLAGS' 5848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5850ac_compiler_gnu=$ac_cv_c_compiler_gnu 5851 5852 5853 5854 5855 if test -n "$ac_tool_prefix"; then 5856 for ac_prog in ar lib "link -lib" 5857 do 5858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5859set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5861printf %s "checking for $ac_word... " >&6; } 5862if test ${ac_cv_prog_AR+y} 5863then : 5864 printf %s "(cached) " >&6 5865else $as_nop 5866 if test -n "$AR"; then 5867 ac_cv_prog_AR="$AR" # Let the user override the test. 5868else 5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5870for as_dir in $PATH 5871do 5872 IFS=$as_save_IFS 5873 case $as_dir in #((( 5874 '') as_dir=./ ;; 5875 */) ;; 5876 *) as_dir=$as_dir/ ;; 5877 esac 5878 for ac_exec_ext in '' $ac_executable_extensions; do 5879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5880 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5882 break 2 5883 fi 5884done 5885 done 5886IFS=$as_save_IFS 5887 5888fi 5889fi 5890AR=$ac_cv_prog_AR 5891if test -n "$AR"; then 5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5893printf "%s\n" "$AR" >&6; } 5894else 5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5896printf "%s\n" "no" >&6; } 5897fi 5898 5899 5900 test -n "$AR" && break 5901 done 5902fi 5903if test -z "$AR"; then 5904 ac_ct_AR=$AR 5905 for ac_prog in ar lib "link -lib" 5906do 5907 # Extract the first word of "$ac_prog", so it can be a program name with args. 5908set dummy $ac_prog; ac_word=$2 5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5910printf %s "checking for $ac_word... " >&6; } 5911if test ${ac_cv_prog_ac_ct_AR+y} 5912then : 5913 printf %s "(cached) " >&6 5914else $as_nop 5915 if test -n "$ac_ct_AR"; then 5916 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5917else 5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5919for as_dir in $PATH 5920do 5921 IFS=$as_save_IFS 5922 case $as_dir in #((( 5923 '') as_dir=./ ;; 5924 */) ;; 5925 *) as_dir=$as_dir/ ;; 5926 esac 5927 for ac_exec_ext in '' $ac_executable_extensions; do 5928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5929 ac_cv_prog_ac_ct_AR="$ac_prog" 5930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5931 break 2 5932 fi 5933done 5934 done 5935IFS=$as_save_IFS 5936 5937fi 5938fi 5939ac_ct_AR=$ac_cv_prog_ac_ct_AR 5940if test -n "$ac_ct_AR"; then 5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5942printf "%s\n" "$ac_ct_AR" >&6; } 5943else 5944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5945printf "%s\n" "no" >&6; } 5946fi 5947 5948 5949 test -n "$ac_ct_AR" && break 5950done 5951 5952 if test "x$ac_ct_AR" = x; then 5953 AR="false" 5954 else 5955 case $cross_compiling:$ac_tool_warned in 5956yes:) 5957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5958printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5959ac_tool_warned=yes ;; 5960esac 5961 AR=$ac_ct_AR 5962 fi 5963fi 5964 5965: ${AR=ar} 5966 5967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5968printf %s "checking the archiver ($AR) interface... " >&6; } 5969if test ${am_cv_ar_interface+y} 5970then : 5971 printf %s "(cached) " >&6 5972else $as_nop 5973 ac_ext=c 5974ac_cpp='$CPP $CPPFLAGS' 5975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5977ac_compiler_gnu=$ac_cv_c_compiler_gnu 5978 5979 am_cv_ar_interface=ar 5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5981/* end confdefs.h. */ 5982int some_variable = 0; 5983_ACEOF 5984if ac_fn_c_try_compile "$LINENO" 5985then : 5986 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5988 (eval $am_ar_try) 2>&5 5989 ac_status=$? 5990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5991 test $ac_status = 0; } 5992 if test "$ac_status" -eq 0; then 5993 am_cv_ar_interface=ar 5994 else 5995 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5997 (eval $am_ar_try) 2>&5 5998 ac_status=$? 5999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6000 test $ac_status = 0; } 6001 if test "$ac_status" -eq 0; then 6002 am_cv_ar_interface=lib 6003 else 6004 am_cv_ar_interface=unknown 6005 fi 6006 fi 6007 rm -f conftest.lib libconftest.a 6008 6009fi 6010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6011 ac_ext=c 6012ac_cpp='$CPP $CPPFLAGS' 6013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6015ac_compiler_gnu=$ac_cv_c_compiler_gnu 6016 6017fi 6018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6019printf "%s\n" "$am_cv_ar_interface" >&6; } 6020 6021case $am_cv_ar_interface in 6022ar) 6023 ;; 6024lib) 6025 # Microsoft lib, so override with the ar-lib wrapper script. 6026 # FIXME: It is wrong to rewrite AR. 6027 # But if we don't then we get into trouble of one sort or another. 6028 # A longer-term fix would be to have automake use am__AR in this case, 6029 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6030 # similar. 6031 AR="$am_aux_dir/ar-lib $AR" 6032 ;; 6033unknown) 6034 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6035 ;; 6036esac 6037 6038 6039case `pwd` in 6040 *\ * | *\ *) 6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6042printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6043esac 6044 6045 6046 6047macro_version='2.4.7' 6048macro_revision='2.4.7' 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063ltmain=$ac_aux_dir/ltmain.sh 6064 6065# Backslashify metacharacters that are still active within 6066# double-quoted strings. 6067sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6068 6069# Same as above, but do not quote variable references. 6070double_quote_subst='s/\(["`\\]\)/\\\1/g' 6071 6072# Sed substitution to delay expansion of an escaped shell variable in a 6073# double_quote_subst'ed string. 6074delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6075 6076# Sed substitution to delay expansion of an escaped single quote. 6077delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6078 6079# Sed substitution to avoid accidental globbing in evaled expressions 6080no_glob_subst='s/\*/\\\*/g' 6081 6082ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6083ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6084ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6085 6086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6087printf %s "checking how to print strings... " >&6; } 6088# Test print first, because it will be a builtin if present. 6089if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6090 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6091 ECHO='print -r --' 6092elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6093 ECHO='printf %s\n' 6094else 6095 # Use this function as a fallback that always works. 6096 func_fallback_echo () 6097 { 6098 eval 'cat <<_LTECHO_EOF 6099$1 6100_LTECHO_EOF' 6101 } 6102 ECHO='func_fallback_echo' 6103fi 6104 6105# func_echo_all arg... 6106# Invoke $ECHO with all args, space-separated. 6107func_echo_all () 6108{ 6109 $ECHO "" 6110} 6111 6112case $ECHO in 6113 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6114printf "%s\n" "printf" >&6; } ;; 6115 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6116printf "%s\n" "print -r" >&6; } ;; 6117 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6118printf "%s\n" "cat" >&6; } ;; 6119esac 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6135printf %s "checking for a sed that does not truncate output... " >&6; } 6136if test ${ac_cv_path_SED+y} 6137then : 6138 printf %s "(cached) " >&6 6139else $as_nop 6140 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6141 for ac_i in 1 2 3 4 5 6 7; do 6142 ac_script="$ac_script$as_nl$ac_script" 6143 done 6144 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6145 { ac_script=; unset ac_script;} 6146 if test -z "$SED"; then 6147 ac_path_SED_found=false 6148 # Loop through the user's path and test for each of PROGNAME-LIST 6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6150for as_dir in $PATH 6151do 6152 IFS=$as_save_IFS 6153 case $as_dir in #((( 6154 '') as_dir=./ ;; 6155 */) ;; 6156 *) as_dir=$as_dir/ ;; 6157 esac 6158 for ac_prog in sed gsed 6159 do 6160 for ac_exec_ext in '' $ac_executable_extensions; do 6161 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6162 as_fn_executable_p "$ac_path_SED" || continue 6163# Check for GNU ac_path_SED and select it if it is found. 6164 # Check for GNU $ac_path_SED 6165case `"$ac_path_SED" --version 2>&1` in 6166*GNU*) 6167 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6168*) 6169 ac_count=0 6170 printf %s 0123456789 >"conftest.in" 6171 while : 6172 do 6173 cat "conftest.in" "conftest.in" >"conftest.tmp" 6174 mv "conftest.tmp" "conftest.in" 6175 cp "conftest.in" "conftest.nl" 6176 printf "%s\n" '' >> "conftest.nl" 6177 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6178 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6179 as_fn_arith $ac_count + 1 && ac_count=$as_val 6180 if test $ac_count -gt ${ac_path_SED_max-0}; then 6181 # Best one so far, save it but keep looking for a better one 6182 ac_cv_path_SED="$ac_path_SED" 6183 ac_path_SED_max=$ac_count 6184 fi 6185 # 10*(2^10) chars as input seems more than enough 6186 test $ac_count -gt 10 && break 6187 done 6188 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6189esac 6190 6191 $ac_path_SED_found && break 3 6192 done 6193 done 6194 done 6195IFS=$as_save_IFS 6196 if test -z "$ac_cv_path_SED"; then 6197 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6198 fi 6199else 6200 ac_cv_path_SED=$SED 6201fi 6202 6203fi 6204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6205printf "%s\n" "$ac_cv_path_SED" >&6; } 6206 SED="$ac_cv_path_SED" 6207 rm -f conftest.sed 6208 6209test -z "$SED" && SED=sed 6210Xsed="$SED -e 1s/^X//" 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6223printf %s "checking for fgrep... " >&6; } 6224if test ${ac_cv_path_FGREP+y} 6225then : 6226 printf %s "(cached) " >&6 6227else $as_nop 6228 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6229 then ac_cv_path_FGREP="$GREP -F" 6230 else 6231 if test -z "$FGREP"; then 6232 ac_path_FGREP_found=false 6233 # Loop through the user's path and test for each of PROGNAME-LIST 6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6235for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6236do 6237 IFS=$as_save_IFS 6238 case $as_dir in #((( 6239 '') as_dir=./ ;; 6240 */) ;; 6241 *) as_dir=$as_dir/ ;; 6242 esac 6243 for ac_prog in fgrep 6244 do 6245 for ac_exec_ext in '' $ac_executable_extensions; do 6246 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 6247 as_fn_executable_p "$ac_path_FGREP" || continue 6248# Check for GNU ac_path_FGREP and select it if it is found. 6249 # Check for GNU $ac_path_FGREP 6250case `"$ac_path_FGREP" --version 2>&1` in 6251*GNU*) 6252 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6253*) 6254 ac_count=0 6255 printf %s 0123456789 >"conftest.in" 6256 while : 6257 do 6258 cat "conftest.in" "conftest.in" >"conftest.tmp" 6259 mv "conftest.tmp" "conftest.in" 6260 cp "conftest.in" "conftest.nl" 6261 printf "%s\n" 'FGREP' >> "conftest.nl" 6262 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6264 as_fn_arith $ac_count + 1 && ac_count=$as_val 6265 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6266 # Best one so far, save it but keep looking for a better one 6267 ac_cv_path_FGREP="$ac_path_FGREP" 6268 ac_path_FGREP_max=$ac_count 6269 fi 6270 # 10*(2^10) chars as input seems more than enough 6271 test $ac_count -gt 10 && break 6272 done 6273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6274esac 6275 6276 $ac_path_FGREP_found && break 3 6277 done 6278 done 6279 done 6280IFS=$as_save_IFS 6281 if test -z "$ac_cv_path_FGREP"; then 6282 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6283 fi 6284else 6285 ac_cv_path_FGREP=$FGREP 6286fi 6287 6288 fi 6289fi 6290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6291printf "%s\n" "$ac_cv_path_FGREP" >&6; } 6292 FGREP="$ac_cv_path_FGREP" 6293 6294 6295test -z "$GREP" && GREP=grep 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315# Check whether --with-gnu-ld was given. 6316if test ${with_gnu_ld+y} 6317then : 6318 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6319else $as_nop 6320 with_gnu_ld=no 6321fi 6322 6323ac_prog=ld 6324if test yes = "$GCC"; then 6325 # Check if gcc -print-prog-name=ld gives a path. 6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6327printf %s "checking for ld used by $CC... " >&6; } 6328 case $host in 6329 *-*-mingw*) 6330 # gcc leaves a trailing carriage return, which upsets mingw 6331 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6332 *) 6333 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6334 esac 6335 case $ac_prog in 6336 # Accept absolute paths. 6337 [\\/]* | ?:[\\/]*) 6338 re_direlt='/[^/][^/]*/\.\./' 6339 # Canonicalize the pathname of ld 6340 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6341 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6342 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6343 done 6344 test -z "$LD" && LD=$ac_prog 6345 ;; 6346 "") 6347 # If it fails, then pretend we aren't using GCC. 6348 ac_prog=ld 6349 ;; 6350 *) 6351 # If it is relative, then search for the first ld in PATH. 6352 with_gnu_ld=unknown 6353 ;; 6354 esac 6355elif test yes = "$with_gnu_ld"; then 6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6357printf %s "checking for GNU ld... " >&6; } 6358else 6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6360printf %s "checking for non-GNU ld... " >&6; } 6361fi 6362if test ${lt_cv_path_LD+y} 6363then : 6364 printf %s "(cached) " >&6 6365else $as_nop 6366 if test -z "$LD"; then 6367 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6368 for ac_dir in $PATH; do 6369 IFS=$lt_save_ifs 6370 test -z "$ac_dir" && ac_dir=. 6371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6372 lt_cv_path_LD=$ac_dir/$ac_prog 6373 # Check to see if the program is GNU ld. I'd rather use --version, 6374 # but apparently some variants of GNU ld only accept -v. 6375 # Break only if it was the GNU/non-GNU ld that we prefer. 6376 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6377 *GNU* | *'with BFD'*) 6378 test no != "$with_gnu_ld" && break 6379 ;; 6380 *) 6381 test yes != "$with_gnu_ld" && break 6382 ;; 6383 esac 6384 fi 6385 done 6386 IFS=$lt_save_ifs 6387else 6388 lt_cv_path_LD=$LD # Let the user override the test with a path. 6389fi 6390fi 6391 6392LD=$lt_cv_path_LD 6393if test -n "$LD"; then 6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6395printf "%s\n" "$LD" >&6; } 6396else 6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6398printf "%s\n" "no" >&6; } 6399fi 6400test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6402printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6403if test ${lt_cv_prog_gnu_ld+y} 6404then : 6405 printf %s "(cached) " >&6 6406else $as_nop 6407 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6408case `$LD -v 2>&1 </dev/null` in 6409*GNU* | *'with BFD'*) 6410 lt_cv_prog_gnu_ld=yes 6411 ;; 6412*) 6413 lt_cv_prog_gnu_ld=no 6414 ;; 6415esac 6416fi 6417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6418printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6419with_gnu_ld=$lt_cv_prog_gnu_ld 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6430printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6431if test ${lt_cv_path_NM+y} 6432then : 6433 printf %s "(cached) " >&6 6434else $as_nop 6435 if test -n "$NM"; then 6436 # Let the user override the test. 6437 lt_cv_path_NM=$NM 6438else 6439 lt_nm_to_check=${ac_tool_prefix}nm 6440 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6441 lt_nm_to_check="$lt_nm_to_check nm" 6442 fi 6443 for lt_tmp_nm in $lt_nm_to_check; do 6444 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6445 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6446 IFS=$lt_save_ifs 6447 test -z "$ac_dir" && ac_dir=. 6448 tmp_nm=$ac_dir/$lt_tmp_nm 6449 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6450 # Check to see if the nm accepts a BSD-compat flag. 6451 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6452 # nm: unknown option "B" ignored 6453 # Tru64's nm complains that /dev/null is an invalid object file 6454 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6455 case $build_os in 6456 mingw*) lt_bad_file=conftest.nm/nofile ;; 6457 *) lt_bad_file=/dev/null ;; 6458 esac 6459 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 6460 *$lt_bad_file* | *'Invalid file or object type'*) 6461 lt_cv_path_NM="$tmp_nm -B" 6462 break 2 6463 ;; 6464 *) 6465 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 6466 */dev/null*) 6467 lt_cv_path_NM="$tmp_nm -p" 6468 break 2 6469 ;; 6470 *) 6471 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6472 continue # so that we can try to find one that supports BSD flags 6473 ;; 6474 esac 6475 ;; 6476 esac 6477 fi 6478 done 6479 IFS=$lt_save_ifs 6480 done 6481 : ${lt_cv_path_NM=no} 6482fi 6483fi 6484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6485printf "%s\n" "$lt_cv_path_NM" >&6; } 6486if test no != "$lt_cv_path_NM"; then 6487 NM=$lt_cv_path_NM 6488else 6489 # Didn't find any BSD compatible name lister, look for dumpbin. 6490 if test -n "$DUMPBIN"; then : 6491 # Let the user override the test. 6492 else 6493 if test -n "$ac_tool_prefix"; then 6494 for ac_prog in dumpbin "link -dump" 6495 do 6496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6497set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6499printf %s "checking for $ac_word... " >&6; } 6500if test ${ac_cv_prog_DUMPBIN+y} 6501then : 6502 printf %s "(cached) " >&6 6503else $as_nop 6504 if test -n "$DUMPBIN"; then 6505 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6506else 6507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6508for as_dir in $PATH 6509do 6510 IFS=$as_save_IFS 6511 case $as_dir in #((( 6512 '') as_dir=./ ;; 6513 */) ;; 6514 *) as_dir=$as_dir/ ;; 6515 esac 6516 for ac_exec_ext in '' $ac_executable_extensions; do 6517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6518 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6520 break 2 6521 fi 6522done 6523 done 6524IFS=$as_save_IFS 6525 6526fi 6527fi 6528DUMPBIN=$ac_cv_prog_DUMPBIN 6529if test -n "$DUMPBIN"; then 6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6531printf "%s\n" "$DUMPBIN" >&6; } 6532else 6533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6534printf "%s\n" "no" >&6; } 6535fi 6536 6537 6538 test -n "$DUMPBIN" && break 6539 done 6540fi 6541if test -z "$DUMPBIN"; then 6542 ac_ct_DUMPBIN=$DUMPBIN 6543 for ac_prog in dumpbin "link -dump" 6544do 6545 # Extract the first word of "$ac_prog", so it can be a program name with args. 6546set dummy $ac_prog; ac_word=$2 6547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6548printf %s "checking for $ac_word... " >&6; } 6549if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6550then : 6551 printf %s "(cached) " >&6 6552else $as_nop 6553 if test -n "$ac_ct_DUMPBIN"; then 6554 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6555else 6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6557for as_dir in $PATH 6558do 6559 IFS=$as_save_IFS 6560 case $as_dir in #((( 6561 '') as_dir=./ ;; 6562 */) ;; 6563 *) as_dir=$as_dir/ ;; 6564 esac 6565 for ac_exec_ext in '' $ac_executable_extensions; do 6566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6567 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6569 break 2 6570 fi 6571done 6572 done 6573IFS=$as_save_IFS 6574 6575fi 6576fi 6577ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6578if test -n "$ac_ct_DUMPBIN"; then 6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6580printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6581else 6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6583printf "%s\n" "no" >&6; } 6584fi 6585 6586 6587 test -n "$ac_ct_DUMPBIN" && break 6588done 6589 6590 if test "x$ac_ct_DUMPBIN" = x; then 6591 DUMPBIN=":" 6592 else 6593 case $cross_compiling:$ac_tool_warned in 6594yes:) 6595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6596printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6597ac_tool_warned=yes ;; 6598esac 6599 DUMPBIN=$ac_ct_DUMPBIN 6600 fi 6601fi 6602 6603 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 6604 *COFF*) 6605 DUMPBIN="$DUMPBIN -symbols -headers" 6606 ;; 6607 *) 6608 DUMPBIN=: 6609 ;; 6610 esac 6611 fi 6612 6613 if test : != "$DUMPBIN"; then 6614 NM=$DUMPBIN 6615 fi 6616fi 6617test -z "$NM" && NM=nm 6618 6619 6620 6621 6622 6623 6624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6625printf %s "checking the name lister ($NM) interface... " >&6; } 6626if test ${lt_cv_nm_interface+y} 6627then : 6628 printf %s "(cached) " >&6 6629else $as_nop 6630 lt_cv_nm_interface="BSD nm" 6631 echo "int some_variable = 0;" > conftest.$ac_ext 6632 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6633 (eval "$ac_compile" 2>conftest.err) 6634 cat conftest.err >&5 6635 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6636 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6637 cat conftest.err >&5 6638 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6639 cat conftest.out >&5 6640 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6641 lt_cv_nm_interface="MS dumpbin" 6642 fi 6643 rm -f conftest* 6644fi 6645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6646printf "%s\n" "$lt_cv_nm_interface" >&6; } 6647 6648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6649printf %s "checking whether ln -s works... " >&6; } 6650LN_S=$as_ln_s 6651if test "$LN_S" = "ln -s"; then 6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6653printf "%s\n" "yes" >&6; } 6654else 6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6656printf "%s\n" "no, using $LN_S" >&6; } 6657fi 6658 6659# find the maximum length of command line arguments 6660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6661printf %s "checking the maximum length of command line arguments... " >&6; } 6662if test ${lt_cv_sys_max_cmd_len+y} 6663then : 6664 printf %s "(cached) " >&6 6665else $as_nop 6666 i=0 6667 teststring=ABCD 6668 6669 case $build_os in 6670 msdosdjgpp*) 6671 # On DJGPP, this test can blow up pretty badly due to problems in libc 6672 # (any single argument exceeding 2000 bytes causes a buffer overrun 6673 # during glob expansion). Even if it were fixed, the result of this 6674 # check would be larger than it should be. 6675 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6676 ;; 6677 6678 gnu*) 6679 # Under GNU Hurd, this test is not required because there is 6680 # no limit to the length of command line arguments. 6681 # Libtool will interpret -1 as no limit whatsoever 6682 lt_cv_sys_max_cmd_len=-1; 6683 ;; 6684 6685 cygwin* | mingw* | cegcc*) 6686 # On Win9x/ME, this test blows up -- it succeeds, but takes 6687 # about 5 minutes as the teststring grows exponentially. 6688 # Worse, since 9x/ME are not pre-emptively multitasking, 6689 # you end up with a "frozen" computer, even though with patience 6690 # the test eventually succeeds (with a max line length of 256k). 6691 # Instead, let's just punt: use the minimum linelength reported by 6692 # all of the supported platforms: 8192 (on NT/2K/XP). 6693 lt_cv_sys_max_cmd_len=8192; 6694 ;; 6695 6696 mint*) 6697 # On MiNT this can take a long time and run out of memory. 6698 lt_cv_sys_max_cmd_len=8192; 6699 ;; 6700 6701 amigaos*) 6702 # On AmigaOS with pdksh, this test takes hours, literally. 6703 # So we just punt and use a minimum line length of 8192. 6704 lt_cv_sys_max_cmd_len=8192; 6705 ;; 6706 6707 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6708 # This has been around since 386BSD, at least. Likely further. 6709 if test -x /sbin/sysctl; then 6710 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6711 elif test -x /usr/sbin/sysctl; then 6712 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6713 else 6714 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6715 fi 6716 # And add a safety zone 6717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6719 ;; 6720 6721 interix*) 6722 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6723 lt_cv_sys_max_cmd_len=196608 6724 ;; 6725 6726 os2*) 6727 # The test takes a long time on OS/2. 6728 lt_cv_sys_max_cmd_len=8192 6729 ;; 6730 6731 osf*) 6732 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6733 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6734 # nice to cause kernel panics so lets avoid the loop below. 6735 # First set a reasonable default. 6736 lt_cv_sys_max_cmd_len=16384 6737 # 6738 if test -x /sbin/sysconfig; then 6739 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6740 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6741 esac 6742 fi 6743 ;; 6744 sco3.2v5*) 6745 lt_cv_sys_max_cmd_len=102400 6746 ;; 6747 sysv5* | sco5v6* | sysv4.2uw2*) 6748 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6749 if test -n "$kargmax"; then 6750 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6751 else 6752 lt_cv_sys_max_cmd_len=32768 6753 fi 6754 ;; 6755 *) 6756 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6757 if test -n "$lt_cv_sys_max_cmd_len" && \ 6758 test undefined != "$lt_cv_sys_max_cmd_len"; then 6759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6761 else 6762 # Make teststring a little bigger before we do anything with it. 6763 # a 1K string should be a reasonable start. 6764 for i in 1 2 3 4 5 6 7 8; do 6765 teststring=$teststring$teststring 6766 done 6767 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6768 # If test is not a shell built-in, we'll probably end up computing a 6769 # maximum length that is only half of the actual maximum length, but 6770 # we can't tell. 6771 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6772 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6773 test 17 != "$i" # 1/2 MB should be enough 6774 do 6775 i=`expr $i + 1` 6776 teststring=$teststring$teststring 6777 done 6778 # Only check the string length outside the loop. 6779 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6780 teststring= 6781 # Add a significant safety factor because C++ compilers can tack on 6782 # massive amounts of additional arguments before passing them to the 6783 # linker. It appears as though 1/2 is a usable value. 6784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6785 fi 6786 ;; 6787 esac 6788 6789fi 6790 6791if test -n "$lt_cv_sys_max_cmd_len"; then 6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6793printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6794else 6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6796printf "%s\n" "none" >&6; } 6797fi 6798max_cmd_len=$lt_cv_sys_max_cmd_len 6799 6800 6801 6802 6803 6804 6805: ${CP="cp -f"} 6806: ${MV="mv -f"} 6807: ${RM="rm -f"} 6808 6809if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6810 lt_unset=unset 6811else 6812 lt_unset=false 6813fi 6814 6815 6816 6817 6818 6819# test EBCDIC or ASCII 6820case `echo X|tr X '\101'` in 6821 A) # ASCII based system 6822 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6823 lt_SP2NL='tr \040 \012' 6824 lt_NL2SP='tr \015\012 \040\040' 6825 ;; 6826 *) # EBCDIC based system 6827 lt_SP2NL='tr \100 \n' 6828 lt_NL2SP='tr \r\n \100\100' 6829 ;; 6830esac 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6841printf %s "checking how to convert $build file names to $host format... " >&6; } 6842if test ${lt_cv_to_host_file_cmd+y} 6843then : 6844 printf %s "(cached) " >&6 6845else $as_nop 6846 case $host in 6847 *-*-mingw* ) 6848 case $build in 6849 *-*-mingw* ) # actually msys 6850 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6851 ;; 6852 *-*-cygwin* ) 6853 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6854 ;; 6855 * ) # otherwise, assume *nix 6856 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6857 ;; 6858 esac 6859 ;; 6860 *-*-cygwin* ) 6861 case $build in 6862 *-*-mingw* ) # actually msys 6863 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6864 ;; 6865 *-*-cygwin* ) 6866 lt_cv_to_host_file_cmd=func_convert_file_noop 6867 ;; 6868 * ) # otherwise, assume *nix 6869 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6870 ;; 6871 esac 6872 ;; 6873 * ) # unhandled hosts (and "normal" native builds) 6874 lt_cv_to_host_file_cmd=func_convert_file_noop 6875 ;; 6876esac 6877 6878fi 6879 6880to_host_file_cmd=$lt_cv_to_host_file_cmd 6881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6882printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6883 6884 6885 6886 6887 6888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6889printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6890if test ${lt_cv_to_tool_file_cmd+y} 6891then : 6892 printf %s "(cached) " >&6 6893else $as_nop 6894 #assume ordinary cross tools, or native build. 6895lt_cv_to_tool_file_cmd=func_convert_file_noop 6896case $host in 6897 *-*-mingw* ) 6898 case $build in 6899 *-*-mingw* ) # actually msys 6900 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6901 ;; 6902 esac 6903 ;; 6904esac 6905 6906fi 6907 6908to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6910printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6911 6912 6913 6914 6915 6916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6917printf %s "checking for $LD option to reload object files... " >&6; } 6918if test ${lt_cv_ld_reload_flag+y} 6919then : 6920 printf %s "(cached) " >&6 6921else $as_nop 6922 lt_cv_ld_reload_flag='-r' 6923fi 6924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6925printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6926reload_flag=$lt_cv_ld_reload_flag 6927case $reload_flag in 6928"" | " "*) ;; 6929*) reload_flag=" $reload_flag" ;; 6930esac 6931reload_cmds='$LD$reload_flag -o $output$reload_objs' 6932case $host_os in 6933 cygwin* | mingw* | pw32* | cegcc*) 6934 if test yes != "$GCC"; then 6935 reload_cmds=false 6936 fi 6937 ;; 6938 darwin*) 6939 if test yes = "$GCC"; then 6940 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6941 else 6942 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6943 fi 6944 ;; 6945esac 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955if test -n "$ac_tool_prefix"; then 6956 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6957set dummy ${ac_tool_prefix}file; ac_word=$2 6958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6959printf %s "checking for $ac_word... " >&6; } 6960if test ${ac_cv_prog_FILECMD+y} 6961then : 6962 printf %s "(cached) " >&6 6963else $as_nop 6964 if test -n "$FILECMD"; then 6965 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6966else 6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6968for as_dir in $PATH 6969do 6970 IFS=$as_save_IFS 6971 case $as_dir in #((( 6972 '') as_dir=./ ;; 6973 */) ;; 6974 *) as_dir=$as_dir/ ;; 6975 esac 6976 for ac_exec_ext in '' $ac_executable_extensions; do 6977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6978 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6980 break 2 6981 fi 6982done 6983 done 6984IFS=$as_save_IFS 6985 6986fi 6987fi 6988FILECMD=$ac_cv_prog_FILECMD 6989if test -n "$FILECMD"; then 6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6991printf "%s\n" "$FILECMD" >&6; } 6992else 6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6994printf "%s\n" "no" >&6; } 6995fi 6996 6997 6998fi 6999if test -z "$ac_cv_prog_FILECMD"; then 7000 ac_ct_FILECMD=$FILECMD 7001 # Extract the first word of "file", so it can be a program name with args. 7002set dummy file; ac_word=$2 7003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7004printf %s "checking for $ac_word... " >&6; } 7005if test ${ac_cv_prog_ac_ct_FILECMD+y} 7006then : 7007 printf %s "(cached) " >&6 7008else $as_nop 7009 if test -n "$ac_ct_FILECMD"; then 7010 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 7011else 7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7013for as_dir in $PATH 7014do 7015 IFS=$as_save_IFS 7016 case $as_dir in #((( 7017 '') as_dir=./ ;; 7018 */) ;; 7019 *) as_dir=$as_dir/ ;; 7020 esac 7021 for ac_exec_ext in '' $ac_executable_extensions; do 7022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7023 ac_cv_prog_ac_ct_FILECMD="file" 7024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7025 break 2 7026 fi 7027done 7028 done 7029IFS=$as_save_IFS 7030 7031fi 7032fi 7033ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 7034if test -n "$ac_ct_FILECMD"; then 7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 7036printf "%s\n" "$ac_ct_FILECMD" >&6; } 7037else 7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7039printf "%s\n" "no" >&6; } 7040fi 7041 7042 if test "x$ac_ct_FILECMD" = x; then 7043 FILECMD=":" 7044 else 7045 case $cross_compiling:$ac_tool_warned in 7046yes:) 7047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7048printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7049ac_tool_warned=yes ;; 7050esac 7051 FILECMD=$ac_ct_FILECMD 7052 fi 7053else 7054 FILECMD="$ac_cv_prog_FILECMD" 7055fi 7056 7057 7058 7059 7060 7061 7062 7063if test -n "$ac_tool_prefix"; then 7064 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7065set dummy ${ac_tool_prefix}objdump; ac_word=$2 7066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7067printf %s "checking for $ac_word... " >&6; } 7068if test ${ac_cv_prog_OBJDUMP+y} 7069then : 7070 printf %s "(cached) " >&6 7071else $as_nop 7072 if test -n "$OBJDUMP"; then 7073 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7074else 7075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7076for as_dir in $PATH 7077do 7078 IFS=$as_save_IFS 7079 case $as_dir in #((( 7080 '') as_dir=./ ;; 7081 */) ;; 7082 *) as_dir=$as_dir/ ;; 7083 esac 7084 for ac_exec_ext in '' $ac_executable_extensions; do 7085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7086 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7088 break 2 7089 fi 7090done 7091 done 7092IFS=$as_save_IFS 7093 7094fi 7095fi 7096OBJDUMP=$ac_cv_prog_OBJDUMP 7097if test -n "$OBJDUMP"; then 7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7099printf "%s\n" "$OBJDUMP" >&6; } 7100else 7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7102printf "%s\n" "no" >&6; } 7103fi 7104 7105 7106fi 7107if test -z "$ac_cv_prog_OBJDUMP"; then 7108 ac_ct_OBJDUMP=$OBJDUMP 7109 # Extract the first word of "objdump", so it can be a program name with args. 7110set dummy objdump; ac_word=$2 7111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7112printf %s "checking for $ac_word... " >&6; } 7113if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 7114then : 7115 printf %s "(cached) " >&6 7116else $as_nop 7117 if test -n "$ac_ct_OBJDUMP"; then 7118 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7119else 7120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7121for as_dir in $PATH 7122do 7123 IFS=$as_save_IFS 7124 case $as_dir in #((( 7125 '') as_dir=./ ;; 7126 */) ;; 7127 *) as_dir=$as_dir/ ;; 7128 esac 7129 for ac_exec_ext in '' $ac_executable_extensions; do 7130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7131 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7133 break 2 7134 fi 7135done 7136 done 7137IFS=$as_save_IFS 7138 7139fi 7140fi 7141ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7142if test -n "$ac_ct_OBJDUMP"; then 7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7144printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 7145else 7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7147printf "%s\n" "no" >&6; } 7148fi 7149 7150 if test "x$ac_ct_OBJDUMP" = x; then 7151 OBJDUMP="false" 7152 else 7153 case $cross_compiling:$ac_tool_warned in 7154yes:) 7155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7156printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7157ac_tool_warned=yes ;; 7158esac 7159 OBJDUMP=$ac_ct_OBJDUMP 7160 fi 7161else 7162 OBJDUMP="$ac_cv_prog_OBJDUMP" 7163fi 7164 7165test -z "$OBJDUMP" && OBJDUMP=objdump 7166 7167 7168 7169 7170 7171 7172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7173printf %s "checking how to recognize dependent libraries... " >&6; } 7174if test ${lt_cv_deplibs_check_method+y} 7175then : 7176 printf %s "(cached) " >&6 7177else $as_nop 7178 lt_cv_file_magic_cmd='$MAGIC_CMD' 7179lt_cv_file_magic_test_file= 7180lt_cv_deplibs_check_method='unknown' 7181# Need to set the preceding variable on all platforms that support 7182# interlibrary dependencies. 7183# 'none' -- dependencies not supported. 7184# 'unknown' -- same as none, but documents that we really don't know. 7185# 'pass_all' -- all dependencies passed with no checks. 7186# 'test_compile' -- check by making test program. 7187# 'file_magic [[regex]]' -- check by looking for files in library path 7188# that responds to the $file_magic_cmd with a given extended regex. 7189# If you have 'file' or equivalent on your system and you're not sure 7190# whether 'pass_all' will *always* work, you probably want this one. 7191 7192case $host_os in 7193aix[4-9]*) 7194 lt_cv_deplibs_check_method=pass_all 7195 ;; 7196 7197beos*) 7198 lt_cv_deplibs_check_method=pass_all 7199 ;; 7200 7201bsdi[45]*) 7202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7203 lt_cv_file_magic_cmd='$FILECMD -L' 7204 lt_cv_file_magic_test_file=/shlib/libc.so 7205 ;; 7206 7207cygwin*) 7208 # func_win32_libid is a shell function defined in ltmain.sh 7209 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7210 lt_cv_file_magic_cmd='func_win32_libid' 7211 ;; 7212 7213mingw* | pw32*) 7214 # Base MSYS/MinGW do not provide the 'file' command needed by 7215 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7216 # unless we find 'file', for example because we are cross-compiling. 7217 if ( file / ) >/dev/null 2>&1; then 7218 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7219 lt_cv_file_magic_cmd='func_win32_libid' 7220 else 7221 # Keep this pattern in sync with the one in func_win32_libid. 7222 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7223 lt_cv_file_magic_cmd='$OBJDUMP -f' 7224 fi 7225 ;; 7226 7227cegcc*) 7228 # use the weaker test based on 'objdump'. See mingw*. 7229 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7230 lt_cv_file_magic_cmd='$OBJDUMP -f' 7231 ;; 7232 7233darwin* | rhapsody*) 7234 lt_cv_deplibs_check_method=pass_all 7235 ;; 7236 7237freebsd* | dragonfly* | midnightbsd*) 7238 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7239 case $host_cpu in 7240 i*86 ) 7241 # Not sure whether the presence of OpenBSD here was a mistake. 7242 # Let's accept both of them until this is cleared up. 7243 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7244 lt_cv_file_magic_cmd=$FILECMD 7245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7246 ;; 7247 esac 7248 else 7249 lt_cv_deplibs_check_method=pass_all 7250 fi 7251 ;; 7252 7253haiku*) 7254 lt_cv_deplibs_check_method=pass_all 7255 ;; 7256 7257hpux10.20* | hpux11*) 7258 lt_cv_file_magic_cmd=$FILECMD 7259 case $host_cpu in 7260 ia64*) 7261 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7262 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7263 ;; 7264 hppa*64*) 7265 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]' 7266 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7267 ;; 7268 *) 7269 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7270 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7271 ;; 7272 esac 7273 ;; 7274 7275interix[3-9]*) 7276 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7278 ;; 7279 7280irix5* | irix6* | nonstopux*) 7281 case $LD in 7282 *-32|*"-32 ") libmagic=32-bit;; 7283 *-n32|*"-n32 ") libmagic=N32;; 7284 *-64|*"-64 ") libmagic=64-bit;; 7285 *) libmagic=never-match;; 7286 esac 7287 lt_cv_deplibs_check_method=pass_all 7288 ;; 7289 7290# This must be glibc/ELF. 7291linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7292 lt_cv_deplibs_check_method=pass_all 7293 ;; 7294 7295netbsd* | netbsdelf*-gnu) 7296 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7298 else 7299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7300 fi 7301 ;; 7302 7303newos6*) 7304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7305 lt_cv_file_magic_cmd=$FILECMD 7306 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7307 ;; 7308 7309*nto* | *qnx*) 7310 lt_cv_deplibs_check_method=pass_all 7311 ;; 7312 7313openbsd* | bitrig*) 7314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7316 else 7317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7318 fi 7319 ;; 7320 7321osf3* | osf4* | osf5*) 7322 lt_cv_deplibs_check_method=pass_all 7323 ;; 7324 7325rdos*) 7326 lt_cv_deplibs_check_method=pass_all 7327 ;; 7328 7329solaris*) 7330 lt_cv_deplibs_check_method=pass_all 7331 ;; 7332 7333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7334 lt_cv_deplibs_check_method=pass_all 7335 ;; 7336 7337sysv4 | sysv4.3*) 7338 case $host_vendor in 7339 motorola) 7340 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]' 7341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7342 ;; 7343 ncr) 7344 lt_cv_deplibs_check_method=pass_all 7345 ;; 7346 sequent) 7347 lt_cv_file_magic_cmd='/bin/file' 7348 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7349 ;; 7350 sni) 7351 lt_cv_file_magic_cmd='/bin/file' 7352 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7353 lt_cv_file_magic_test_file=/lib/libc.so 7354 ;; 7355 siemens) 7356 lt_cv_deplibs_check_method=pass_all 7357 ;; 7358 pc) 7359 lt_cv_deplibs_check_method=pass_all 7360 ;; 7361 esac 7362 ;; 7363 7364tpf*) 7365 lt_cv_deplibs_check_method=pass_all 7366 ;; 7367os2*) 7368 lt_cv_deplibs_check_method=pass_all 7369 ;; 7370esac 7371 7372fi 7373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7374printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 7375 7376file_magic_glob= 7377want_nocaseglob=no 7378if test "$build" = "$host"; then 7379 case $host_os in 7380 mingw* | pw32*) 7381 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7382 want_nocaseglob=yes 7383 else 7384 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7385 fi 7386 ;; 7387 esac 7388fi 7389 7390file_magic_cmd=$lt_cv_file_magic_cmd 7391deplibs_check_method=$lt_cv_deplibs_check_method 7392test -z "$deplibs_check_method" && deplibs_check_method=unknown 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415if test -n "$ac_tool_prefix"; then 7416 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7417set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7419printf %s "checking for $ac_word... " >&6; } 7420if test ${ac_cv_prog_DLLTOOL+y} 7421then : 7422 printf %s "(cached) " >&6 7423else $as_nop 7424 if test -n "$DLLTOOL"; then 7425 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7426else 7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7428for as_dir in $PATH 7429do 7430 IFS=$as_save_IFS 7431 case $as_dir in #((( 7432 '') as_dir=./ ;; 7433 */) ;; 7434 *) as_dir=$as_dir/ ;; 7435 esac 7436 for ac_exec_ext in '' $ac_executable_extensions; do 7437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7438 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7440 break 2 7441 fi 7442done 7443 done 7444IFS=$as_save_IFS 7445 7446fi 7447fi 7448DLLTOOL=$ac_cv_prog_DLLTOOL 7449if test -n "$DLLTOOL"; then 7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7451printf "%s\n" "$DLLTOOL" >&6; } 7452else 7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7454printf "%s\n" "no" >&6; } 7455fi 7456 7457 7458fi 7459if test -z "$ac_cv_prog_DLLTOOL"; then 7460 ac_ct_DLLTOOL=$DLLTOOL 7461 # Extract the first word of "dlltool", so it can be a program name with args. 7462set dummy dlltool; ac_word=$2 7463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7464printf %s "checking for $ac_word... " >&6; } 7465if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7466then : 7467 printf %s "(cached) " >&6 7468else $as_nop 7469 if test -n "$ac_ct_DLLTOOL"; then 7470 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7471else 7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7473for as_dir in $PATH 7474do 7475 IFS=$as_save_IFS 7476 case $as_dir in #((( 7477 '') as_dir=./ ;; 7478 */) ;; 7479 *) as_dir=$as_dir/ ;; 7480 esac 7481 for ac_exec_ext in '' $ac_executable_extensions; do 7482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7483 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7485 break 2 7486 fi 7487done 7488 done 7489IFS=$as_save_IFS 7490 7491fi 7492fi 7493ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7494if test -n "$ac_ct_DLLTOOL"; then 7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7496printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7497else 7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7499printf "%s\n" "no" >&6; } 7500fi 7501 7502 if test "x$ac_ct_DLLTOOL" = x; then 7503 DLLTOOL="false" 7504 else 7505 case $cross_compiling:$ac_tool_warned in 7506yes:) 7507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7508printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7509ac_tool_warned=yes ;; 7510esac 7511 DLLTOOL=$ac_ct_DLLTOOL 7512 fi 7513else 7514 DLLTOOL="$ac_cv_prog_DLLTOOL" 7515fi 7516 7517test -z "$DLLTOOL" && DLLTOOL=dlltool 7518 7519 7520 7521 7522 7523 7524 7525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7526printf %s "checking how to associate runtime and link libraries... " >&6; } 7527if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7528then : 7529 printf %s "(cached) " >&6 7530else $as_nop 7531 lt_cv_sharedlib_from_linklib_cmd='unknown' 7532 7533case $host_os in 7534cygwin* | mingw* | pw32* | cegcc*) 7535 # two different shell functions defined in ltmain.sh; 7536 # decide which one to use based on capabilities of $DLLTOOL 7537 case `$DLLTOOL --help 2>&1` in 7538 *--identify-strict*) 7539 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7540 ;; 7541 *) 7542 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7543 ;; 7544 esac 7545 ;; 7546*) 7547 # fallback: assume linklib IS sharedlib 7548 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7549 ;; 7550esac 7551 7552fi 7553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7554printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7555sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7556test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7557 7558 7559 7560 7561 7562 7563 7564if test -n "$ac_tool_prefix"; then 7565 for ac_prog in ar 7566 do 7567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7568set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7570printf %s "checking for $ac_word... " >&6; } 7571if test ${ac_cv_prog_AR+y} 7572then : 7573 printf %s "(cached) " >&6 7574else $as_nop 7575 if test -n "$AR"; then 7576 ac_cv_prog_AR="$AR" # Let the user override the test. 7577else 7578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7579for as_dir in $PATH 7580do 7581 IFS=$as_save_IFS 7582 case $as_dir in #((( 7583 '') as_dir=./ ;; 7584 */) ;; 7585 *) as_dir=$as_dir/ ;; 7586 esac 7587 for ac_exec_ext in '' $ac_executable_extensions; do 7588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7589 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7591 break 2 7592 fi 7593done 7594 done 7595IFS=$as_save_IFS 7596 7597fi 7598fi 7599AR=$ac_cv_prog_AR 7600if test -n "$AR"; then 7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7602printf "%s\n" "$AR" >&6; } 7603else 7604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7605printf "%s\n" "no" >&6; } 7606fi 7607 7608 7609 test -n "$AR" && break 7610 done 7611fi 7612if test -z "$AR"; then 7613 ac_ct_AR=$AR 7614 for ac_prog in ar 7615do 7616 # Extract the first word of "$ac_prog", so it can be a program name with args. 7617set dummy $ac_prog; ac_word=$2 7618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7619printf %s "checking for $ac_word... " >&6; } 7620if test ${ac_cv_prog_ac_ct_AR+y} 7621then : 7622 printf %s "(cached) " >&6 7623else $as_nop 7624 if test -n "$ac_ct_AR"; then 7625 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7626else 7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7628for as_dir in $PATH 7629do 7630 IFS=$as_save_IFS 7631 case $as_dir in #((( 7632 '') as_dir=./ ;; 7633 */) ;; 7634 *) as_dir=$as_dir/ ;; 7635 esac 7636 for ac_exec_ext in '' $ac_executable_extensions; do 7637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7638 ac_cv_prog_ac_ct_AR="$ac_prog" 7639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7640 break 2 7641 fi 7642done 7643 done 7644IFS=$as_save_IFS 7645 7646fi 7647fi 7648ac_ct_AR=$ac_cv_prog_ac_ct_AR 7649if test -n "$ac_ct_AR"; then 7650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7651printf "%s\n" "$ac_ct_AR" >&6; } 7652else 7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7654printf "%s\n" "no" >&6; } 7655fi 7656 7657 7658 test -n "$ac_ct_AR" && break 7659done 7660 7661 if test "x$ac_ct_AR" = x; then 7662 AR="false" 7663 else 7664 case $cross_compiling:$ac_tool_warned in 7665yes:) 7666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7667printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7668ac_tool_warned=yes ;; 7669esac 7670 AR=$ac_ct_AR 7671 fi 7672fi 7673 7674: ${AR=ar} 7675 7676 7677 7678 7679 7680 7681# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7682# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7683# higher priority because thats what people were doing historically (setting 7684# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7685# variable obsoleted/removed. 7686 7687test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7688lt_ar_flags=$AR_FLAGS 7689 7690 7691 7692 7693 7694 7695# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7696# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7697 7698 7699 7700 7701 7702 7703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7704printf %s "checking for archiver @FILE support... " >&6; } 7705if test ${lt_cv_ar_at_file+y} 7706then : 7707 printf %s "(cached) " >&6 7708else $as_nop 7709 lt_cv_ar_at_file=no 7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711/* end confdefs.h. */ 7712 7713int 7714main (void) 7715{ 7716 7717 ; 7718 return 0; 7719} 7720_ACEOF 7721if ac_fn_c_try_compile "$LINENO" 7722then : 7723 echo conftest.$ac_objext > conftest.lst 7724 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7726 (eval $lt_ar_try) 2>&5 7727 ac_status=$? 7728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7729 test $ac_status = 0; } 7730 if test 0 -eq "$ac_status"; then 7731 # Ensure the archiver fails upon bogus file names. 7732 rm -f conftest.$ac_objext libconftest.a 7733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7734 (eval $lt_ar_try) 2>&5 7735 ac_status=$? 7736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7737 test $ac_status = 0; } 7738 if test 0 -ne "$ac_status"; then 7739 lt_cv_ar_at_file=@ 7740 fi 7741 fi 7742 rm -f conftest.* libconftest.a 7743 7744fi 7745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7746 7747fi 7748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7749printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7750 7751if test no = "$lt_cv_ar_at_file"; then 7752 archiver_list_spec= 7753else 7754 archiver_list_spec=$lt_cv_ar_at_file 7755fi 7756 7757 7758 7759 7760 7761 7762 7763if test -n "$ac_tool_prefix"; then 7764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7765set dummy ${ac_tool_prefix}strip; ac_word=$2 7766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7767printf %s "checking for $ac_word... " >&6; } 7768if test ${ac_cv_prog_STRIP+y} 7769then : 7770 printf %s "(cached) " >&6 7771else $as_nop 7772 if test -n "$STRIP"; then 7773 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7774else 7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7776for as_dir in $PATH 7777do 7778 IFS=$as_save_IFS 7779 case $as_dir in #((( 7780 '') as_dir=./ ;; 7781 */) ;; 7782 *) as_dir=$as_dir/ ;; 7783 esac 7784 for ac_exec_ext in '' $ac_executable_extensions; do 7785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7786 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7788 break 2 7789 fi 7790done 7791 done 7792IFS=$as_save_IFS 7793 7794fi 7795fi 7796STRIP=$ac_cv_prog_STRIP 7797if test -n "$STRIP"; then 7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7799printf "%s\n" "$STRIP" >&6; } 7800else 7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7802printf "%s\n" "no" >&6; } 7803fi 7804 7805 7806fi 7807if test -z "$ac_cv_prog_STRIP"; then 7808 ac_ct_STRIP=$STRIP 7809 # Extract the first word of "strip", so it can be a program name with args. 7810set dummy strip; ac_word=$2 7811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7812printf %s "checking for $ac_word... " >&6; } 7813if test ${ac_cv_prog_ac_ct_STRIP+y} 7814then : 7815 printf %s "(cached) " >&6 7816else $as_nop 7817 if test -n "$ac_ct_STRIP"; then 7818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7819else 7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7821for as_dir in $PATH 7822do 7823 IFS=$as_save_IFS 7824 case $as_dir in #((( 7825 '') as_dir=./ ;; 7826 */) ;; 7827 *) as_dir=$as_dir/ ;; 7828 esac 7829 for ac_exec_ext in '' $ac_executable_extensions; do 7830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7831 ac_cv_prog_ac_ct_STRIP="strip" 7832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7833 break 2 7834 fi 7835done 7836 done 7837IFS=$as_save_IFS 7838 7839fi 7840fi 7841ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7842if test -n "$ac_ct_STRIP"; then 7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7844printf "%s\n" "$ac_ct_STRIP" >&6; } 7845else 7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7847printf "%s\n" "no" >&6; } 7848fi 7849 7850 if test "x$ac_ct_STRIP" = x; then 7851 STRIP=":" 7852 else 7853 case $cross_compiling:$ac_tool_warned in 7854yes:) 7855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7856printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7857ac_tool_warned=yes ;; 7858esac 7859 STRIP=$ac_ct_STRIP 7860 fi 7861else 7862 STRIP="$ac_cv_prog_STRIP" 7863fi 7864 7865test -z "$STRIP" && STRIP=: 7866 7867 7868 7869 7870 7871 7872if test -n "$ac_tool_prefix"; then 7873 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7874set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7876printf %s "checking for $ac_word... " >&6; } 7877if test ${ac_cv_prog_RANLIB+y} 7878then : 7879 printf %s "(cached) " >&6 7880else $as_nop 7881 if test -n "$RANLIB"; then 7882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7883else 7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7885for as_dir in $PATH 7886do 7887 IFS=$as_save_IFS 7888 case $as_dir in #((( 7889 '') as_dir=./ ;; 7890 */) ;; 7891 *) as_dir=$as_dir/ ;; 7892 esac 7893 for ac_exec_ext in '' $ac_executable_extensions; do 7894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7897 break 2 7898 fi 7899done 7900 done 7901IFS=$as_save_IFS 7902 7903fi 7904fi 7905RANLIB=$ac_cv_prog_RANLIB 7906if test -n "$RANLIB"; then 7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7908printf "%s\n" "$RANLIB" >&6; } 7909else 7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7911printf "%s\n" "no" >&6; } 7912fi 7913 7914 7915fi 7916if test -z "$ac_cv_prog_RANLIB"; then 7917 ac_ct_RANLIB=$RANLIB 7918 # Extract the first word of "ranlib", so it can be a program name with args. 7919set dummy ranlib; ac_word=$2 7920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7921printf %s "checking for $ac_word... " >&6; } 7922if test ${ac_cv_prog_ac_ct_RANLIB+y} 7923then : 7924 printf %s "(cached) " >&6 7925else $as_nop 7926 if test -n "$ac_ct_RANLIB"; then 7927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7928else 7929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7930for as_dir in $PATH 7931do 7932 IFS=$as_save_IFS 7933 case $as_dir in #((( 7934 '') as_dir=./ ;; 7935 */) ;; 7936 *) as_dir=$as_dir/ ;; 7937 esac 7938 for ac_exec_ext in '' $ac_executable_extensions; do 7939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7940 ac_cv_prog_ac_ct_RANLIB="ranlib" 7941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7942 break 2 7943 fi 7944done 7945 done 7946IFS=$as_save_IFS 7947 7948fi 7949fi 7950ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7951if test -n "$ac_ct_RANLIB"; then 7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7953printf "%s\n" "$ac_ct_RANLIB" >&6; } 7954else 7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7956printf "%s\n" "no" >&6; } 7957fi 7958 7959 if test "x$ac_ct_RANLIB" = x; then 7960 RANLIB=":" 7961 else 7962 case $cross_compiling:$ac_tool_warned in 7963yes:) 7964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7965printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7966ac_tool_warned=yes ;; 7967esac 7968 RANLIB=$ac_ct_RANLIB 7969 fi 7970else 7971 RANLIB="$ac_cv_prog_RANLIB" 7972fi 7973 7974test -z "$RANLIB" && RANLIB=: 7975 7976 7977 7978 7979 7980 7981# Determine commands to create old-style static archives. 7982old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7983old_postinstall_cmds='chmod 644 $oldlib' 7984old_postuninstall_cmds= 7985 7986if test -n "$RANLIB"; then 7987 case $host_os in 7988 bitrig* | openbsd*) 7989 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7990 ;; 7991 *) 7992 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7993 ;; 7994 esac 7995 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7996fi 7997 7998case $host_os in 7999 darwin*) 8000 lock_old_archive_extraction=yes ;; 8001 *) 8002 lock_old_archive_extraction=no ;; 8003esac 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043# If no C compiler was specified, use CC. 8044LTCC=${LTCC-"$CC"} 8045 8046# If no C compiler flags were specified, use CFLAGS. 8047LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8048 8049# Allow CC to be a program name with arguments. 8050compiler=$CC 8051 8052 8053# Check for command to grab the raw symbol name followed by C symbol from nm. 8054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8055printf %s "checking command to parse $NM output from $compiler object... " >&6; } 8056if test ${lt_cv_sys_global_symbol_pipe+y} 8057then : 8058 printf %s "(cached) " >&6 8059else $as_nop 8060 8061# These are sane defaults that work on at least a few old systems. 8062# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8063 8064# Character class describing NM global symbol codes. 8065symcode='[BCDEGRST]' 8066 8067# Regexp to match symbols that can be accessed directly from C. 8068sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8069 8070# Define system-specific variables. 8071case $host_os in 8072aix*) 8073 symcode='[BCDT]' 8074 ;; 8075cygwin* | mingw* | pw32* | cegcc*) 8076 symcode='[ABCDGISTW]' 8077 ;; 8078hpux*) 8079 if test ia64 = "$host_cpu"; then 8080 symcode='[ABCDEGRST]' 8081 fi 8082 ;; 8083irix* | nonstopux*) 8084 symcode='[BCDEGRST]' 8085 ;; 8086osf*) 8087 symcode='[BCDEGQRST]' 8088 ;; 8089solaris*) 8090 symcode='[BDRT]' 8091 ;; 8092sco3.2v5*) 8093 symcode='[DT]' 8094 ;; 8095sysv4.2uw2*) 8096 symcode='[DT]' 8097 ;; 8098sysv5* | sco5v6* | unixware* | OpenUNIX*) 8099 symcode='[ABDT]' 8100 ;; 8101sysv4) 8102 symcode='[DFNSTU]' 8103 ;; 8104esac 8105 8106# If we're using GNU nm, then use its standard symbol codes. 8107case `$NM -V 2>&1` in 8108*GNU* | *'with BFD'*) 8109 symcode='[ABCDGIRSTW]' ;; 8110esac 8111 8112if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8113 # Gets list of data symbols to import. 8114 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 8115 # Adjust the below global symbol transforms to fixup imported variables. 8116 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8117 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8118 lt_c_name_lib_hook="\ 8119 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8120 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8121else 8122 # Disable hooks by default. 8123 lt_cv_sys_global_symbol_to_import= 8124 lt_cdecl_hook= 8125 lt_c_name_hook= 8126 lt_c_name_lib_hook= 8127fi 8128 8129# Transform an extracted symbol line into a proper C declaration. 8130# Some systems (esp. on ia64) link data and code symbols differently, 8131# so use this general approach. 8132lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 8133$lt_cdecl_hook\ 8134" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8135" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8136 8137# Transform an extracted symbol line into symbol name and symbol address 8138lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 8139$lt_c_name_hook\ 8140" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8141" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8142 8143# Transform an extracted symbol line into symbol name with lib prefix and 8144# symbol address. 8145lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 8146$lt_c_name_lib_hook\ 8147" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8148" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8149" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8150 8151# Handle CRLF in mingw tool chain 8152opt_cr= 8153case $build_os in 8154mingw*) 8155 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8156 ;; 8157esac 8158 8159# Try without a prefix underscore, then with it. 8160for ac_symprfx in "" "_"; do 8161 8162 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8163 symxfrm="\\1 $ac_symprfx\\2 \\2" 8164 8165 # Write the raw and C identifiers. 8166 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8167 # Fake it for dumpbin and say T for any non-static function, 8168 # D for any global variable and I for any imported variable. 8169 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 8170 # which start with @ or ?. 8171 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8172" {last_section=section; section=\$ 3};"\ 8173" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8174" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8175" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8176" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8177" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8178" \$ 0!~/External *\|/{next};"\ 8179" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8180" {if(hide[section]) next};"\ 8181" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8182" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8183" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8184" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8185" ' prfx=^$ac_symprfx" 8186 else 8187 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8188 fi 8189 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 8190 8191 # Check to see that the pipe works correctly. 8192 pipe_works=no 8193 8194 rm -f conftest* 8195 cat > conftest.$ac_ext <<_LT_EOF 8196#ifdef __cplusplus 8197extern "C" { 8198#endif 8199char nm_test_var; 8200void nm_test_func(void); 8201void nm_test_func(void){} 8202#ifdef __cplusplus 8203} 8204#endif 8205int main(){nm_test_var='a';nm_test_func();return(0);} 8206_LT_EOF 8207 8208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8209 (eval $ac_compile) 2>&5 8210 ac_status=$? 8211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8212 test $ac_status = 0; }; then 8213 # Now try to grab the symbols. 8214 nlist=conftest.nm 8215 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 8216 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 8217 # Try sorting and uniquifying the output. 8218 if sort "$nlist" | uniq > "$nlist"T; then 8219 mv -f "$nlist"T "$nlist" 8220 else 8221 rm -f "$nlist"T 8222 fi 8223 8224 # Make sure that we snagged all the symbols we need. 8225 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8226 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8227 cat <<_LT_EOF > conftest.$ac_ext 8228/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8229#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8230/* DATA imports from DLLs on WIN32 can't be const, because runtime 8231 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8232# define LT_DLSYM_CONST 8233#elif defined __osf__ 8234/* This system does not cope well with relocations in const data. */ 8235# define LT_DLSYM_CONST 8236#else 8237# define LT_DLSYM_CONST const 8238#endif 8239 8240#ifdef __cplusplus 8241extern "C" { 8242#endif 8243 8244_LT_EOF 8245 # Now generate the symbol file. 8246 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8247 8248 cat <<_LT_EOF >> conftest.$ac_ext 8249 8250/* The mapping between symbol names and symbols. */ 8251LT_DLSYM_CONST struct { 8252 const char *name; 8253 void *address; 8254} 8255lt__PROGRAM__LTX_preloaded_symbols[] = 8256{ 8257 { "@PROGRAM@", (void *) 0 }, 8258_LT_EOF 8259 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8260 cat <<\_LT_EOF >> conftest.$ac_ext 8261 {0, (void *) 0} 8262}; 8263 8264/* This works around a problem in FreeBSD linker */ 8265#ifdef FREEBSD_WORKAROUND 8266static const void *lt_preloaded_setup() { 8267 return lt__PROGRAM__LTX_preloaded_symbols; 8268} 8269#endif 8270 8271#ifdef __cplusplus 8272} 8273#endif 8274_LT_EOF 8275 # Now try linking the two files. 8276 mv conftest.$ac_objext conftstm.$ac_objext 8277 lt_globsym_save_LIBS=$LIBS 8278 lt_globsym_save_CFLAGS=$CFLAGS 8279 LIBS=conftstm.$ac_objext 8280 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8282 (eval $ac_link) 2>&5 8283 ac_status=$? 8284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8285 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8286 pipe_works=yes 8287 fi 8288 LIBS=$lt_globsym_save_LIBS 8289 CFLAGS=$lt_globsym_save_CFLAGS 8290 else 8291 echo "cannot find nm_test_func in $nlist" >&5 8292 fi 8293 else 8294 echo "cannot find nm_test_var in $nlist" >&5 8295 fi 8296 else 8297 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8298 fi 8299 else 8300 echo "$progname: failed program was:" >&5 8301 cat conftest.$ac_ext >&5 8302 fi 8303 rm -rf conftest* conftst* 8304 8305 # Do not use the global_symbol_pipe unless it works. 8306 if test yes = "$pipe_works"; then 8307 break 8308 else 8309 lt_cv_sys_global_symbol_pipe= 8310 fi 8311done 8312 8313fi 8314 8315if test -z "$lt_cv_sys_global_symbol_pipe"; then 8316 lt_cv_sys_global_symbol_to_cdecl= 8317fi 8318if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8320printf "%s\n" "failed" >&6; } 8321else 8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8323printf "%s\n" "ok" >&6; } 8324fi 8325 8326# Response file support. 8327if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8328 nm_file_list_spec='@' 8329elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8330 nm_file_list_spec='@' 8331fi 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8370printf %s "checking for sysroot... " >&6; } 8371 8372# Check whether --with-sysroot was given. 8373if test ${with_sysroot+y} 8374then : 8375 withval=$with_sysroot; 8376else $as_nop 8377 with_sysroot=no 8378fi 8379 8380 8381lt_sysroot= 8382case $with_sysroot in #( 8383 yes) 8384 if test yes = "$GCC"; then 8385 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8386 fi 8387 ;; #( 8388 /*) 8389 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 8390 ;; #( 8391 no|'') 8392 ;; #( 8393 *) 8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8395printf "%s\n" "$with_sysroot" >&6; } 8396 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8397 ;; 8398esac 8399 8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8401printf "%s\n" "${lt_sysroot:-no}" >&6; } 8402 8403 8404 8405 8406 8407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8408printf %s "checking for a working dd... " >&6; } 8409if test ${ac_cv_path_lt_DD+y} 8410then : 8411 printf %s "(cached) " >&6 8412else $as_nop 8413 printf 0123456789abcdef0123456789abcdef >conftest.i 8414cat conftest.i conftest.i >conftest2.i 8415: ${lt_DD:=$DD} 8416if test -z "$lt_DD"; then 8417 ac_path_lt_DD_found=false 8418 # Loop through the user's path and test for each of PROGNAME-LIST 8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8420for as_dir in $PATH 8421do 8422 IFS=$as_save_IFS 8423 case $as_dir in #((( 8424 '') as_dir=./ ;; 8425 */) ;; 8426 *) as_dir=$as_dir/ ;; 8427 esac 8428 for ac_prog in dd 8429 do 8430 for ac_exec_ext in '' $ac_executable_extensions; do 8431 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8432 as_fn_executable_p "$ac_path_lt_DD" || continue 8433if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8434 cmp -s conftest.i conftest.out \ 8435 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8436fi 8437 $ac_path_lt_DD_found && break 3 8438 done 8439 done 8440 done 8441IFS=$as_save_IFS 8442 if test -z "$ac_cv_path_lt_DD"; then 8443 : 8444 fi 8445else 8446 ac_cv_path_lt_DD=$lt_DD 8447fi 8448 8449rm -f conftest.i conftest2.i conftest.out 8450fi 8451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8452printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8453 8454 8455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8456printf %s "checking how to truncate binary pipes... " >&6; } 8457if test ${lt_cv_truncate_bin+y} 8458then : 8459 printf %s "(cached) " >&6 8460else $as_nop 8461 printf 0123456789abcdef0123456789abcdef >conftest.i 8462cat conftest.i conftest.i >conftest2.i 8463lt_cv_truncate_bin= 8464if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8465 cmp -s conftest.i conftest.out \ 8466 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8467fi 8468rm -f conftest.i conftest2.i conftest.out 8469test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8470fi 8471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8472printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8473 8474 8475 8476 8477 8478 8479 8480# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8481func_cc_basename () 8482{ 8483 for cc_temp in $*""; do 8484 case $cc_temp in 8485 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8486 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8487 \-*) ;; 8488 *) break;; 8489 esac 8490 done 8491 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8492} 8493 8494# Check whether --enable-libtool-lock was given. 8495if test ${enable_libtool_lock+y} 8496then : 8497 enableval=$enable_libtool_lock; 8498fi 8499 8500test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8501 8502# Some flags need to be propagated to the compiler or linker for good 8503# libtool support. 8504case $host in 8505ia64-*-hpux*) 8506 # Find out what ABI is being produced by ac_compile, and set mode 8507 # options accordingly. 8508 echo 'int i;' > conftest.$ac_ext 8509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8510 (eval $ac_compile) 2>&5 8511 ac_status=$? 8512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8513 test $ac_status = 0; }; then 8514 case `$FILECMD conftest.$ac_objext` in 8515 *ELF-32*) 8516 HPUX_IA64_MODE=32 8517 ;; 8518 *ELF-64*) 8519 HPUX_IA64_MODE=64 8520 ;; 8521 esac 8522 fi 8523 rm -rf conftest* 8524 ;; 8525*-*-irix6*) 8526 # Find out what ABI is being produced by ac_compile, and set linker 8527 # options accordingly. 8528 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8530 (eval $ac_compile) 2>&5 8531 ac_status=$? 8532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8533 test $ac_status = 0; }; then 8534 if test yes = "$lt_cv_prog_gnu_ld"; then 8535 case `$FILECMD conftest.$ac_objext` in 8536 *32-bit*) 8537 LD="${LD-ld} -melf32bsmip" 8538 ;; 8539 *N32*) 8540 LD="${LD-ld} -melf32bmipn32" 8541 ;; 8542 *64-bit*) 8543 LD="${LD-ld} -melf64bmip" 8544 ;; 8545 esac 8546 else 8547 case `$FILECMD conftest.$ac_objext` in 8548 *32-bit*) 8549 LD="${LD-ld} -32" 8550 ;; 8551 *N32*) 8552 LD="${LD-ld} -n32" 8553 ;; 8554 *64-bit*) 8555 LD="${LD-ld} -64" 8556 ;; 8557 esac 8558 fi 8559 fi 8560 rm -rf conftest* 8561 ;; 8562 8563mips64*-*linux*) 8564 # Find out what ABI is being produced by ac_compile, and set linker 8565 # options accordingly. 8566 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8568 (eval $ac_compile) 2>&5 8569 ac_status=$? 8570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8571 test $ac_status = 0; }; then 8572 emul=elf 8573 case `$FILECMD conftest.$ac_objext` in 8574 *32-bit*) 8575 emul="${emul}32" 8576 ;; 8577 *64-bit*) 8578 emul="${emul}64" 8579 ;; 8580 esac 8581 case `$FILECMD conftest.$ac_objext` in 8582 *MSB*) 8583 emul="${emul}btsmip" 8584 ;; 8585 *LSB*) 8586 emul="${emul}ltsmip" 8587 ;; 8588 esac 8589 case `$FILECMD conftest.$ac_objext` in 8590 *N32*) 8591 emul="${emul}n32" 8592 ;; 8593 esac 8594 LD="${LD-ld} -m $emul" 8595 fi 8596 rm -rf conftest* 8597 ;; 8598 8599x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8600s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8601 # Find out what ABI is being produced by ac_compile, and set linker 8602 # options accordingly. Note that the listed cases only cover the 8603 # situations where additional linker options are needed (such as when 8604 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8605 # vice versa); the common cases where no linker options are needed do 8606 # not appear in the list. 8607 echo 'int i;' > conftest.$ac_ext 8608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8609 (eval $ac_compile) 2>&5 8610 ac_status=$? 8611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8612 test $ac_status = 0; }; then 8613 case `$FILECMD conftest.o` in 8614 *32-bit*) 8615 case $host in 8616 x86_64-*kfreebsd*-gnu) 8617 LD="${LD-ld} -m elf_i386_fbsd" 8618 ;; 8619 x86_64-*linux*) 8620 case `$FILECMD conftest.o` in 8621 *x86-64*) 8622 LD="${LD-ld} -m elf32_x86_64" 8623 ;; 8624 *) 8625 LD="${LD-ld} -m elf_i386" 8626 ;; 8627 esac 8628 ;; 8629 powerpc64le-*linux*) 8630 LD="${LD-ld} -m elf32lppclinux" 8631 ;; 8632 powerpc64-*linux*) 8633 LD="${LD-ld} -m elf32ppclinux" 8634 ;; 8635 s390x-*linux*) 8636 LD="${LD-ld} -m elf_s390" 8637 ;; 8638 sparc64-*linux*) 8639 LD="${LD-ld} -m elf32_sparc" 8640 ;; 8641 esac 8642 ;; 8643 *64-bit*) 8644 case $host in 8645 x86_64-*kfreebsd*-gnu) 8646 LD="${LD-ld} -m elf_x86_64_fbsd" 8647 ;; 8648 x86_64-*linux*) 8649 LD="${LD-ld} -m elf_x86_64" 8650 ;; 8651 powerpcle-*linux*) 8652 LD="${LD-ld} -m elf64lppc" 8653 ;; 8654 powerpc-*linux*) 8655 LD="${LD-ld} -m elf64ppc" 8656 ;; 8657 s390*-*linux*|s390*-*tpf*) 8658 LD="${LD-ld} -m elf64_s390" 8659 ;; 8660 sparc*-*linux*) 8661 LD="${LD-ld} -m elf64_sparc" 8662 ;; 8663 esac 8664 ;; 8665 esac 8666 fi 8667 rm -rf conftest* 8668 ;; 8669 8670*-*-sco3.2v5*) 8671 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8672 SAVE_CFLAGS=$CFLAGS 8673 CFLAGS="$CFLAGS -belf" 8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8675printf %s "checking whether the C compiler needs -belf... " >&6; } 8676if test ${lt_cv_cc_needs_belf+y} 8677then : 8678 printf %s "(cached) " >&6 8679else $as_nop 8680 ac_ext=c 8681ac_cpp='$CPP $CPPFLAGS' 8682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8684ac_compiler_gnu=$ac_cv_c_compiler_gnu 8685 8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8687/* end confdefs.h. */ 8688 8689int 8690main (void) 8691{ 8692 8693 ; 8694 return 0; 8695} 8696_ACEOF 8697if ac_fn_c_try_link "$LINENO" 8698then : 8699 lt_cv_cc_needs_belf=yes 8700else $as_nop 8701 lt_cv_cc_needs_belf=no 8702fi 8703rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8704 conftest$ac_exeext conftest.$ac_ext 8705 ac_ext=c 8706ac_cpp='$CPP $CPPFLAGS' 8707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8709ac_compiler_gnu=$ac_cv_c_compiler_gnu 8710 8711fi 8712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8713printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8714 if test yes != "$lt_cv_cc_needs_belf"; then 8715 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8716 CFLAGS=$SAVE_CFLAGS 8717 fi 8718 ;; 8719*-*solaris*) 8720 # Find out what ABI is being produced by ac_compile, and set linker 8721 # options accordingly. 8722 echo 'int i;' > conftest.$ac_ext 8723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8724 (eval $ac_compile) 2>&5 8725 ac_status=$? 8726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8727 test $ac_status = 0; }; then 8728 case `$FILECMD conftest.o` in 8729 *64-bit*) 8730 case $lt_cv_prog_gnu_ld in 8731 yes*) 8732 case $host in 8733 i?86-*-solaris*|x86_64-*-solaris*) 8734 LD="${LD-ld} -m elf_x86_64" 8735 ;; 8736 sparc*-*-solaris*) 8737 LD="${LD-ld} -m elf64_sparc" 8738 ;; 8739 esac 8740 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8741 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8742 LD=${LD-ld}_sol2 8743 fi 8744 ;; 8745 *) 8746 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8747 LD="${LD-ld} -64" 8748 fi 8749 ;; 8750 esac 8751 ;; 8752 esac 8753 fi 8754 rm -rf conftest* 8755 ;; 8756esac 8757 8758need_locks=$enable_libtool_lock 8759 8760if test -n "$ac_tool_prefix"; then 8761 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8762set dummy ${ac_tool_prefix}mt; ac_word=$2 8763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8764printf %s "checking for $ac_word... " >&6; } 8765if test ${ac_cv_prog_MANIFEST_TOOL+y} 8766then : 8767 printf %s "(cached) " >&6 8768else $as_nop 8769 if test -n "$MANIFEST_TOOL"; then 8770 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8771else 8772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8773for as_dir in $PATH 8774do 8775 IFS=$as_save_IFS 8776 case $as_dir in #((( 8777 '') as_dir=./ ;; 8778 */) ;; 8779 *) as_dir=$as_dir/ ;; 8780 esac 8781 for ac_exec_ext in '' $ac_executable_extensions; do 8782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8783 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8785 break 2 8786 fi 8787done 8788 done 8789IFS=$as_save_IFS 8790 8791fi 8792fi 8793MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8794if test -n "$MANIFEST_TOOL"; then 8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8796printf "%s\n" "$MANIFEST_TOOL" >&6; } 8797else 8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8799printf "%s\n" "no" >&6; } 8800fi 8801 8802 8803fi 8804if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8805 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8806 # Extract the first word of "mt", so it can be a program name with args. 8807set dummy mt; ac_word=$2 8808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8809printf %s "checking for $ac_word... " >&6; } 8810if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8811then : 8812 printf %s "(cached) " >&6 8813else $as_nop 8814 if test -n "$ac_ct_MANIFEST_TOOL"; then 8815 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8816else 8817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8818for as_dir in $PATH 8819do 8820 IFS=$as_save_IFS 8821 case $as_dir in #((( 8822 '') as_dir=./ ;; 8823 */) ;; 8824 *) as_dir=$as_dir/ ;; 8825 esac 8826 for ac_exec_ext in '' $ac_executable_extensions; do 8827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8828 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8830 break 2 8831 fi 8832done 8833 done 8834IFS=$as_save_IFS 8835 8836fi 8837fi 8838ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8839if test -n "$ac_ct_MANIFEST_TOOL"; then 8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8841printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8842else 8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8844printf "%s\n" "no" >&6; } 8845fi 8846 8847 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8848 MANIFEST_TOOL=":" 8849 else 8850 case $cross_compiling:$ac_tool_warned in 8851yes:) 8852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8853printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8854ac_tool_warned=yes ;; 8855esac 8856 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8857 fi 8858else 8859 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8860fi 8861 8862test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8864printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8865if test ${lt_cv_path_mainfest_tool+y} 8866then : 8867 printf %s "(cached) " >&6 8868else $as_nop 8869 lt_cv_path_mainfest_tool=no 8870 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8871 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8872 cat conftest.err >&5 8873 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8874 lt_cv_path_mainfest_tool=yes 8875 fi 8876 rm -f conftest* 8877fi 8878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8879printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8880if test yes != "$lt_cv_path_mainfest_tool"; then 8881 MANIFEST_TOOL=: 8882fi 8883 8884 8885 8886 8887 8888 8889 case $host_os in 8890 rhapsody* | darwin*) 8891 if test -n "$ac_tool_prefix"; then 8892 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8893set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8895printf %s "checking for $ac_word... " >&6; } 8896if test ${ac_cv_prog_DSYMUTIL+y} 8897then : 8898 printf %s "(cached) " >&6 8899else $as_nop 8900 if test -n "$DSYMUTIL"; then 8901 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8902else 8903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8904for as_dir in $PATH 8905do 8906 IFS=$as_save_IFS 8907 case $as_dir in #((( 8908 '') as_dir=./ ;; 8909 */) ;; 8910 *) as_dir=$as_dir/ ;; 8911 esac 8912 for ac_exec_ext in '' $ac_executable_extensions; do 8913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8914 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8916 break 2 8917 fi 8918done 8919 done 8920IFS=$as_save_IFS 8921 8922fi 8923fi 8924DSYMUTIL=$ac_cv_prog_DSYMUTIL 8925if test -n "$DSYMUTIL"; then 8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8927printf "%s\n" "$DSYMUTIL" >&6; } 8928else 8929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8930printf "%s\n" "no" >&6; } 8931fi 8932 8933 8934fi 8935if test -z "$ac_cv_prog_DSYMUTIL"; then 8936 ac_ct_DSYMUTIL=$DSYMUTIL 8937 # Extract the first word of "dsymutil", so it can be a program name with args. 8938set dummy dsymutil; ac_word=$2 8939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8940printf %s "checking for $ac_word... " >&6; } 8941if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8942then : 8943 printf %s "(cached) " >&6 8944else $as_nop 8945 if test -n "$ac_ct_DSYMUTIL"; then 8946 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8947else 8948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8949for as_dir in $PATH 8950do 8951 IFS=$as_save_IFS 8952 case $as_dir in #((( 8953 '') as_dir=./ ;; 8954 */) ;; 8955 *) as_dir=$as_dir/ ;; 8956 esac 8957 for ac_exec_ext in '' $ac_executable_extensions; do 8958 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8959 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8961 break 2 8962 fi 8963done 8964 done 8965IFS=$as_save_IFS 8966 8967fi 8968fi 8969ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8970if test -n "$ac_ct_DSYMUTIL"; then 8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8972printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8973else 8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8975printf "%s\n" "no" >&6; } 8976fi 8977 8978 if test "x$ac_ct_DSYMUTIL" = x; then 8979 DSYMUTIL=":" 8980 else 8981 case $cross_compiling:$ac_tool_warned in 8982yes:) 8983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8984printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8985ac_tool_warned=yes ;; 8986esac 8987 DSYMUTIL=$ac_ct_DSYMUTIL 8988 fi 8989else 8990 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8991fi 8992 8993 if test -n "$ac_tool_prefix"; then 8994 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8995set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8997printf %s "checking for $ac_word... " >&6; } 8998if test ${ac_cv_prog_NMEDIT+y} 8999then : 9000 printf %s "(cached) " >&6 9001else $as_nop 9002 if test -n "$NMEDIT"; then 9003 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9004else 9005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9006for as_dir in $PATH 9007do 9008 IFS=$as_save_IFS 9009 case $as_dir in #((( 9010 '') as_dir=./ ;; 9011 */) ;; 9012 *) as_dir=$as_dir/ ;; 9013 esac 9014 for ac_exec_ext in '' $ac_executable_extensions; do 9015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9016 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9018 break 2 9019 fi 9020done 9021 done 9022IFS=$as_save_IFS 9023 9024fi 9025fi 9026NMEDIT=$ac_cv_prog_NMEDIT 9027if test -n "$NMEDIT"; then 9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9029printf "%s\n" "$NMEDIT" >&6; } 9030else 9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9032printf "%s\n" "no" >&6; } 9033fi 9034 9035 9036fi 9037if test -z "$ac_cv_prog_NMEDIT"; then 9038 ac_ct_NMEDIT=$NMEDIT 9039 # Extract the first word of "nmedit", so it can be a program name with args. 9040set dummy nmedit; ac_word=$2 9041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9042printf %s "checking for $ac_word... " >&6; } 9043if test ${ac_cv_prog_ac_ct_NMEDIT+y} 9044then : 9045 printf %s "(cached) " >&6 9046else $as_nop 9047 if test -n "$ac_ct_NMEDIT"; then 9048 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9049else 9050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9051for as_dir in $PATH 9052do 9053 IFS=$as_save_IFS 9054 case $as_dir in #((( 9055 '') as_dir=./ ;; 9056 */) ;; 9057 *) as_dir=$as_dir/ ;; 9058 esac 9059 for ac_exec_ext in '' $ac_executable_extensions; do 9060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9061 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9063 break 2 9064 fi 9065done 9066 done 9067IFS=$as_save_IFS 9068 9069fi 9070fi 9071ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9072if test -n "$ac_ct_NMEDIT"; then 9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9074printf "%s\n" "$ac_ct_NMEDIT" >&6; } 9075else 9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9077printf "%s\n" "no" >&6; } 9078fi 9079 9080 if test "x$ac_ct_NMEDIT" = x; then 9081 NMEDIT=":" 9082 else 9083 case $cross_compiling:$ac_tool_warned in 9084yes:) 9085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9086printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9087ac_tool_warned=yes ;; 9088esac 9089 NMEDIT=$ac_ct_NMEDIT 9090 fi 9091else 9092 NMEDIT="$ac_cv_prog_NMEDIT" 9093fi 9094 9095 if test -n "$ac_tool_prefix"; then 9096 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9097set dummy ${ac_tool_prefix}lipo; ac_word=$2 9098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9099printf %s "checking for $ac_word... " >&6; } 9100if test ${ac_cv_prog_LIPO+y} 9101then : 9102 printf %s "(cached) " >&6 9103else $as_nop 9104 if test -n "$LIPO"; then 9105 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9106else 9107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9108for as_dir in $PATH 9109do 9110 IFS=$as_save_IFS 9111 case $as_dir in #((( 9112 '') as_dir=./ ;; 9113 */) ;; 9114 *) as_dir=$as_dir/ ;; 9115 esac 9116 for ac_exec_ext in '' $ac_executable_extensions; do 9117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9118 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9120 break 2 9121 fi 9122done 9123 done 9124IFS=$as_save_IFS 9125 9126fi 9127fi 9128LIPO=$ac_cv_prog_LIPO 9129if test -n "$LIPO"; then 9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9131printf "%s\n" "$LIPO" >&6; } 9132else 9133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9134printf "%s\n" "no" >&6; } 9135fi 9136 9137 9138fi 9139if test -z "$ac_cv_prog_LIPO"; then 9140 ac_ct_LIPO=$LIPO 9141 # Extract the first word of "lipo", so it can be a program name with args. 9142set dummy lipo; ac_word=$2 9143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9144printf %s "checking for $ac_word... " >&6; } 9145if test ${ac_cv_prog_ac_ct_LIPO+y} 9146then : 9147 printf %s "(cached) " >&6 9148else $as_nop 9149 if test -n "$ac_ct_LIPO"; then 9150 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9151else 9152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9153for as_dir in $PATH 9154do 9155 IFS=$as_save_IFS 9156 case $as_dir in #((( 9157 '') as_dir=./ ;; 9158 */) ;; 9159 *) as_dir=$as_dir/ ;; 9160 esac 9161 for ac_exec_ext in '' $ac_executable_extensions; do 9162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9163 ac_cv_prog_ac_ct_LIPO="lipo" 9164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9165 break 2 9166 fi 9167done 9168 done 9169IFS=$as_save_IFS 9170 9171fi 9172fi 9173ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9174if test -n "$ac_ct_LIPO"; then 9175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9176printf "%s\n" "$ac_ct_LIPO" >&6; } 9177else 9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9179printf "%s\n" "no" >&6; } 9180fi 9181 9182 if test "x$ac_ct_LIPO" = x; then 9183 LIPO=":" 9184 else 9185 case $cross_compiling:$ac_tool_warned in 9186yes:) 9187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9188printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9189ac_tool_warned=yes ;; 9190esac 9191 LIPO=$ac_ct_LIPO 9192 fi 9193else 9194 LIPO="$ac_cv_prog_LIPO" 9195fi 9196 9197 if test -n "$ac_tool_prefix"; then 9198 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9199set dummy ${ac_tool_prefix}otool; ac_word=$2 9200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9201printf %s "checking for $ac_word... " >&6; } 9202if test ${ac_cv_prog_OTOOL+y} 9203then : 9204 printf %s "(cached) " >&6 9205else $as_nop 9206 if test -n "$OTOOL"; then 9207 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9208else 9209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9210for as_dir in $PATH 9211do 9212 IFS=$as_save_IFS 9213 case $as_dir in #((( 9214 '') as_dir=./ ;; 9215 */) ;; 9216 *) as_dir=$as_dir/ ;; 9217 esac 9218 for ac_exec_ext in '' $ac_executable_extensions; do 9219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9220 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9222 break 2 9223 fi 9224done 9225 done 9226IFS=$as_save_IFS 9227 9228fi 9229fi 9230OTOOL=$ac_cv_prog_OTOOL 9231if test -n "$OTOOL"; then 9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9233printf "%s\n" "$OTOOL" >&6; } 9234else 9235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9236printf "%s\n" "no" >&6; } 9237fi 9238 9239 9240fi 9241if test -z "$ac_cv_prog_OTOOL"; then 9242 ac_ct_OTOOL=$OTOOL 9243 # Extract the first word of "otool", so it can be a program name with args. 9244set dummy otool; ac_word=$2 9245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9246printf %s "checking for $ac_word... " >&6; } 9247if test ${ac_cv_prog_ac_ct_OTOOL+y} 9248then : 9249 printf %s "(cached) " >&6 9250else $as_nop 9251 if test -n "$ac_ct_OTOOL"; then 9252 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9253else 9254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9255for as_dir in $PATH 9256do 9257 IFS=$as_save_IFS 9258 case $as_dir in #((( 9259 '') as_dir=./ ;; 9260 */) ;; 9261 *) as_dir=$as_dir/ ;; 9262 esac 9263 for ac_exec_ext in '' $ac_executable_extensions; do 9264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9265 ac_cv_prog_ac_ct_OTOOL="otool" 9266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9267 break 2 9268 fi 9269done 9270 done 9271IFS=$as_save_IFS 9272 9273fi 9274fi 9275ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9276if test -n "$ac_ct_OTOOL"; then 9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9278printf "%s\n" "$ac_ct_OTOOL" >&6; } 9279else 9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9281printf "%s\n" "no" >&6; } 9282fi 9283 9284 if test "x$ac_ct_OTOOL" = x; then 9285 OTOOL=":" 9286 else 9287 case $cross_compiling:$ac_tool_warned in 9288yes:) 9289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9290printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9291ac_tool_warned=yes ;; 9292esac 9293 OTOOL=$ac_ct_OTOOL 9294 fi 9295else 9296 OTOOL="$ac_cv_prog_OTOOL" 9297fi 9298 9299 if test -n "$ac_tool_prefix"; then 9300 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9301set dummy ${ac_tool_prefix}otool64; ac_word=$2 9302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9303printf %s "checking for $ac_word... " >&6; } 9304if test ${ac_cv_prog_OTOOL64+y} 9305then : 9306 printf %s "(cached) " >&6 9307else $as_nop 9308 if test -n "$OTOOL64"; then 9309 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9310else 9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9312for as_dir in $PATH 9313do 9314 IFS=$as_save_IFS 9315 case $as_dir in #((( 9316 '') as_dir=./ ;; 9317 */) ;; 9318 *) as_dir=$as_dir/ ;; 9319 esac 9320 for ac_exec_ext in '' $ac_executable_extensions; do 9321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9322 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9324 break 2 9325 fi 9326done 9327 done 9328IFS=$as_save_IFS 9329 9330fi 9331fi 9332OTOOL64=$ac_cv_prog_OTOOL64 9333if test -n "$OTOOL64"; then 9334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9335printf "%s\n" "$OTOOL64" >&6; } 9336else 9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9338printf "%s\n" "no" >&6; } 9339fi 9340 9341 9342fi 9343if test -z "$ac_cv_prog_OTOOL64"; then 9344 ac_ct_OTOOL64=$OTOOL64 9345 # Extract the first word of "otool64", so it can be a program name with args. 9346set dummy otool64; ac_word=$2 9347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9348printf %s "checking for $ac_word... " >&6; } 9349if test ${ac_cv_prog_ac_ct_OTOOL64+y} 9350then : 9351 printf %s "(cached) " >&6 9352else $as_nop 9353 if test -n "$ac_ct_OTOOL64"; then 9354 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9355else 9356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9357for as_dir in $PATH 9358do 9359 IFS=$as_save_IFS 9360 case $as_dir in #((( 9361 '') as_dir=./ ;; 9362 */) ;; 9363 *) as_dir=$as_dir/ ;; 9364 esac 9365 for ac_exec_ext in '' $ac_executable_extensions; do 9366 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9367 ac_cv_prog_ac_ct_OTOOL64="otool64" 9368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9369 break 2 9370 fi 9371done 9372 done 9373IFS=$as_save_IFS 9374 9375fi 9376fi 9377ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9378if test -n "$ac_ct_OTOOL64"; then 9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9380printf "%s\n" "$ac_ct_OTOOL64" >&6; } 9381else 9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9383printf "%s\n" "no" >&6; } 9384fi 9385 9386 if test "x$ac_ct_OTOOL64" = x; then 9387 OTOOL64=":" 9388 else 9389 case $cross_compiling:$ac_tool_warned in 9390yes:) 9391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9392printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9393ac_tool_warned=yes ;; 9394esac 9395 OTOOL64=$ac_ct_OTOOL64 9396 fi 9397else 9398 OTOOL64="$ac_cv_prog_OTOOL64" 9399fi 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9428printf %s "checking for -single_module linker flag... " >&6; } 9429if test ${lt_cv_apple_cc_single_mod+y} 9430then : 9431 printf %s "(cached) " >&6 9432else $as_nop 9433 lt_cv_apple_cc_single_mod=no 9434 if test -z "$LT_MULTI_MODULE"; then 9435 # By default we will add the -single_module flag. You can override 9436 # by either setting the environment variable LT_MULTI_MODULE 9437 # non-empty at configure time, or by adding -multi_module to the 9438 # link flags. 9439 rm -rf libconftest.dylib* 9440 echo "int foo(void){return 1;}" > conftest.c 9441 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9442-dynamiclib -Wl,-single_module conftest.c" >&5 9443 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9444 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9445 _lt_result=$? 9446 # If there is a non-empty error log, and "single_module" 9447 # appears in it, assume the flag caused a linker warning 9448 if test -s conftest.err && $GREP single_module conftest.err; then 9449 cat conftest.err >&5 9450 # Otherwise, if the output was created with a 0 exit code from 9451 # the compiler, it worked. 9452 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9453 lt_cv_apple_cc_single_mod=yes 9454 else 9455 cat conftest.err >&5 9456 fi 9457 rm -rf libconftest.dylib* 9458 rm -f conftest.* 9459 fi 9460fi 9461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9462printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9463 9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9465printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9466if test ${lt_cv_ld_exported_symbols_list+y} 9467then : 9468 printf %s "(cached) " >&6 9469else $as_nop 9470 lt_cv_ld_exported_symbols_list=no 9471 save_LDFLAGS=$LDFLAGS 9472 echo "_main" > conftest.sym 9473 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9475/* end confdefs.h. */ 9476 9477int 9478main (void) 9479{ 9480 9481 ; 9482 return 0; 9483} 9484_ACEOF 9485if ac_fn_c_try_link "$LINENO" 9486then : 9487 lt_cv_ld_exported_symbols_list=yes 9488else $as_nop 9489 lt_cv_ld_exported_symbols_list=no 9490fi 9491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9492 conftest$ac_exeext conftest.$ac_ext 9493 LDFLAGS=$save_LDFLAGS 9494 9495fi 9496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9497printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9498 9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9500printf %s "checking for -force_load linker flag... " >&6; } 9501if test ${lt_cv_ld_force_load+y} 9502then : 9503 printf %s "(cached) " >&6 9504else $as_nop 9505 lt_cv_ld_force_load=no 9506 cat > conftest.c << _LT_EOF 9507int forced_loaded() { return 2;} 9508_LT_EOF 9509 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9510 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9511 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9512 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9513 echo "$RANLIB libconftest.a" >&5 9514 $RANLIB libconftest.a 2>&5 9515 cat > conftest.c << _LT_EOF 9516int main() { return 0;} 9517_LT_EOF 9518 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9519 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9520 _lt_result=$? 9521 if test -s conftest.err && $GREP force_load conftest.err; then 9522 cat conftest.err >&5 9523 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9524 lt_cv_ld_force_load=yes 9525 else 9526 cat conftest.err >&5 9527 fi 9528 rm -f conftest.err libconftest.a conftest conftest.c 9529 rm -rf conftest.dSYM 9530 9531fi 9532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9533printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9534 case $host_os in 9535 rhapsody* | darwin1.[012]) 9536 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9537 darwin1.*) 9538 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9539 darwin*) 9540 case $MACOSX_DEPLOYMENT_TARGET,$host in 9541 10.[012],*|,*powerpc*-darwin[5-8]*) 9542 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9543 *) 9544 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9545 esac 9546 ;; 9547 esac 9548 if test yes = "$lt_cv_apple_cc_single_mod"; then 9549 _lt_dar_single_mod='$single_module' 9550 fi 9551 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9552 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9553 else 9554 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9555 fi 9556 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9557 _lt_dsymutil='~$DSYMUTIL $lib || :' 9558 else 9559 _lt_dsymutil= 9560 fi 9561 ;; 9562 esac 9563 9564# func_munge_path_list VARIABLE PATH 9565# ----------------------------------- 9566# VARIABLE is name of variable containing _space_ separated list of 9567# directories to be munged by the contents of PATH, which is string 9568# having a format: 9569# "DIR[:DIR]:" 9570# string "DIR[ DIR]" will be prepended to VARIABLE 9571# ":DIR[:DIR]" 9572# string "DIR[ DIR]" will be appended to VARIABLE 9573# "DIRP[:DIRP]::[DIRA:]DIRA" 9574# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9575# "DIRA[ DIRA]" will be appended to VARIABLE 9576# "DIR[:DIR]" 9577# VARIABLE will be replaced by "DIR[ DIR]" 9578func_munge_path_list () 9579{ 9580 case x$2 in 9581 x) 9582 ;; 9583 *:) 9584 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9585 ;; 9586 x:*) 9587 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9588 ;; 9589 *::*) 9590 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9591 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9592 ;; 9593 *) 9594 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9595 ;; 9596 esac 9597} 9598 9599ac_header= ac_cache= 9600for ac_item in $ac_header_c_list 9601do 9602 if test $ac_cache; then 9603 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 9604 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 9605 printf "%s\n" "#define $ac_item 1" >> confdefs.h 9606 fi 9607 ac_header= ac_cache= 9608 elif test $ac_header; then 9609 ac_cache=$ac_item 9610 else 9611 ac_header=$ac_item 9612 fi 9613done 9614 9615 9616 9617 9618 9619 9620 9621 9622if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 9623then : 9624 9625printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 9626 9627fi 9628ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9629" 9630if test "x$ac_cv_header_dlfcn_h" = xyes 9631then : 9632 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9633 9634fi 9635 9636 9637 9638 9639 9640# Set options 9641enable_win32_dll=yes 9642 9643case $host in 9644*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9645 if test -n "$ac_tool_prefix"; then 9646 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 9647set dummy ${ac_tool_prefix}as; ac_word=$2 9648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9649printf %s "checking for $ac_word... " >&6; } 9650if test ${ac_cv_prog_AS+y} 9651then : 9652 printf %s "(cached) " >&6 9653else $as_nop 9654 if test -n "$AS"; then 9655 ac_cv_prog_AS="$AS" # Let the user override the test. 9656else 9657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9658for as_dir in $PATH 9659do 9660 IFS=$as_save_IFS 9661 case $as_dir in #((( 9662 '') as_dir=./ ;; 9663 */) ;; 9664 *) as_dir=$as_dir/ ;; 9665 esac 9666 for ac_exec_ext in '' $ac_executable_extensions; do 9667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9668 ac_cv_prog_AS="${ac_tool_prefix}as" 9669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9670 break 2 9671 fi 9672done 9673 done 9674IFS=$as_save_IFS 9675 9676fi 9677fi 9678AS=$ac_cv_prog_AS 9679if test -n "$AS"; then 9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 9681printf "%s\n" "$AS" >&6; } 9682else 9683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9684printf "%s\n" "no" >&6; } 9685fi 9686 9687 9688fi 9689if test -z "$ac_cv_prog_AS"; then 9690 ac_ct_AS=$AS 9691 # Extract the first word of "as", so it can be a program name with args. 9692set dummy as; ac_word=$2 9693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9694printf %s "checking for $ac_word... " >&6; } 9695if test ${ac_cv_prog_ac_ct_AS+y} 9696then : 9697 printf %s "(cached) " >&6 9698else $as_nop 9699 if test -n "$ac_ct_AS"; then 9700 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 9701else 9702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9703for as_dir in $PATH 9704do 9705 IFS=$as_save_IFS 9706 case $as_dir in #((( 9707 '') as_dir=./ ;; 9708 */) ;; 9709 *) as_dir=$as_dir/ ;; 9710 esac 9711 for ac_exec_ext in '' $ac_executable_extensions; do 9712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9713 ac_cv_prog_ac_ct_AS="as" 9714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9715 break 2 9716 fi 9717done 9718 done 9719IFS=$as_save_IFS 9720 9721fi 9722fi 9723ac_ct_AS=$ac_cv_prog_ac_ct_AS 9724if test -n "$ac_ct_AS"; then 9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 9726printf "%s\n" "$ac_ct_AS" >&6; } 9727else 9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9729printf "%s\n" "no" >&6; } 9730fi 9731 9732 if test "x$ac_ct_AS" = x; then 9733 AS="false" 9734 else 9735 case $cross_compiling:$ac_tool_warned in 9736yes:) 9737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9738printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9739ac_tool_warned=yes ;; 9740esac 9741 AS=$ac_ct_AS 9742 fi 9743else 9744 AS="$ac_cv_prog_AS" 9745fi 9746 9747 if test -n "$ac_tool_prefix"; then 9748 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9749set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9751printf %s "checking for $ac_word... " >&6; } 9752if test ${ac_cv_prog_DLLTOOL+y} 9753then : 9754 printf %s "(cached) " >&6 9755else $as_nop 9756 if test -n "$DLLTOOL"; then 9757 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9758else 9759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9760for as_dir in $PATH 9761do 9762 IFS=$as_save_IFS 9763 case $as_dir in #((( 9764 '') as_dir=./ ;; 9765 */) ;; 9766 *) as_dir=$as_dir/ ;; 9767 esac 9768 for ac_exec_ext in '' $ac_executable_extensions; do 9769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9772 break 2 9773 fi 9774done 9775 done 9776IFS=$as_save_IFS 9777 9778fi 9779fi 9780DLLTOOL=$ac_cv_prog_DLLTOOL 9781if test -n "$DLLTOOL"; then 9782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9783printf "%s\n" "$DLLTOOL" >&6; } 9784else 9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9786printf "%s\n" "no" >&6; } 9787fi 9788 9789 9790fi 9791if test -z "$ac_cv_prog_DLLTOOL"; then 9792 ac_ct_DLLTOOL=$DLLTOOL 9793 # Extract the first word of "dlltool", so it can be a program name with args. 9794set dummy dlltool; ac_word=$2 9795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9796printf %s "checking for $ac_word... " >&6; } 9797if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9798then : 9799 printf %s "(cached) " >&6 9800else $as_nop 9801 if test -n "$ac_ct_DLLTOOL"; then 9802 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9803else 9804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9805for as_dir in $PATH 9806do 9807 IFS=$as_save_IFS 9808 case $as_dir in #((( 9809 '') as_dir=./ ;; 9810 */) ;; 9811 *) as_dir=$as_dir/ ;; 9812 esac 9813 for ac_exec_ext in '' $ac_executable_extensions; do 9814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9815 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9817 break 2 9818 fi 9819done 9820 done 9821IFS=$as_save_IFS 9822 9823fi 9824fi 9825ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9826if test -n "$ac_ct_DLLTOOL"; then 9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9828printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9829else 9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9831printf "%s\n" "no" >&6; } 9832fi 9833 9834 if test "x$ac_ct_DLLTOOL" = x; then 9835 DLLTOOL="false" 9836 else 9837 case $cross_compiling:$ac_tool_warned in 9838yes:) 9839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9840printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9841ac_tool_warned=yes ;; 9842esac 9843 DLLTOOL=$ac_ct_DLLTOOL 9844 fi 9845else 9846 DLLTOOL="$ac_cv_prog_DLLTOOL" 9847fi 9848 9849 if test -n "$ac_tool_prefix"; then 9850 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9851set dummy ${ac_tool_prefix}objdump; ac_word=$2 9852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9853printf %s "checking for $ac_word... " >&6; } 9854if test ${ac_cv_prog_OBJDUMP+y} 9855then : 9856 printf %s "(cached) " >&6 9857else $as_nop 9858 if test -n "$OBJDUMP"; then 9859 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9860else 9861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9862for as_dir in $PATH 9863do 9864 IFS=$as_save_IFS 9865 case $as_dir in #((( 9866 '') as_dir=./ ;; 9867 */) ;; 9868 *) as_dir=$as_dir/ ;; 9869 esac 9870 for ac_exec_ext in '' $ac_executable_extensions; do 9871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9872 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9874 break 2 9875 fi 9876done 9877 done 9878IFS=$as_save_IFS 9879 9880fi 9881fi 9882OBJDUMP=$ac_cv_prog_OBJDUMP 9883if test -n "$OBJDUMP"; then 9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9885printf "%s\n" "$OBJDUMP" >&6; } 9886else 9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9888printf "%s\n" "no" >&6; } 9889fi 9890 9891 9892fi 9893if test -z "$ac_cv_prog_OBJDUMP"; then 9894 ac_ct_OBJDUMP=$OBJDUMP 9895 # Extract the first word of "objdump", so it can be a program name with args. 9896set dummy objdump; ac_word=$2 9897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9898printf %s "checking for $ac_word... " >&6; } 9899if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9900then : 9901 printf %s "(cached) " >&6 9902else $as_nop 9903 if test -n "$ac_ct_OBJDUMP"; then 9904 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9905else 9906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9907for as_dir in $PATH 9908do 9909 IFS=$as_save_IFS 9910 case $as_dir in #((( 9911 '') as_dir=./ ;; 9912 */) ;; 9913 *) as_dir=$as_dir/ ;; 9914 esac 9915 for ac_exec_ext in '' $ac_executable_extensions; do 9916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9917 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9919 break 2 9920 fi 9921done 9922 done 9923IFS=$as_save_IFS 9924 9925fi 9926fi 9927ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9928if test -n "$ac_ct_OBJDUMP"; then 9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9930printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9931else 9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9933printf "%s\n" "no" >&6; } 9934fi 9935 9936 if test "x$ac_ct_OBJDUMP" = x; then 9937 OBJDUMP="false" 9938 else 9939 case $cross_compiling:$ac_tool_warned in 9940yes:) 9941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9942printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9943ac_tool_warned=yes ;; 9944esac 9945 OBJDUMP=$ac_ct_OBJDUMP 9946 fi 9947else 9948 OBJDUMP="$ac_cv_prog_OBJDUMP" 9949fi 9950 9951 ;; 9952esac 9953 9954test -z "$AS" && AS=as 9955 9956 9957 9958 9959 9960test -z "$DLLTOOL" && DLLTOOL=dlltool 9961 9962 9963 9964 9965 9966test -z "$OBJDUMP" && OBJDUMP=objdump 9967 9968 9969 9970 9971 9972 9973 9974 enable_dlopen=no 9975 9976 9977 9978 # Check whether --enable-shared was given. 9979if test ${enable_shared+y} 9980then : 9981 enableval=$enable_shared; p=${PACKAGE-default} 9982 case $enableval in 9983 yes) enable_shared=yes ;; 9984 no) enable_shared=no ;; 9985 *) 9986 enable_shared=no 9987 # Look at the argument we got. We use all the common list separators. 9988 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9989 for pkg in $enableval; do 9990 IFS=$lt_save_ifs 9991 if test "X$pkg" = "X$p"; then 9992 enable_shared=yes 9993 fi 9994 done 9995 IFS=$lt_save_ifs 9996 ;; 9997 esac 9998else $as_nop 9999 enable_shared=yes 10000fi 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 # Check whether --enable-static was given. 10011if test ${enable_static+y} 10012then : 10013 enableval=$enable_static; p=${PACKAGE-default} 10014 case $enableval in 10015 yes) enable_static=yes ;; 10016 no) enable_static=no ;; 10017 *) 10018 enable_static=no 10019 # Look at the argument we got. We use all the common list separators. 10020 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10021 for pkg in $enableval; do 10022 IFS=$lt_save_ifs 10023 if test "X$pkg" = "X$p"; then 10024 enable_static=yes 10025 fi 10026 done 10027 IFS=$lt_save_ifs 10028 ;; 10029 esac 10030else $as_nop 10031 enable_static=yes 10032fi 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043# Check whether --with-pic was given. 10044if test ${with_pic+y} 10045then : 10046 withval=$with_pic; lt_p=${PACKAGE-default} 10047 case $withval in 10048 yes|no) pic_mode=$withval ;; 10049 *) 10050 pic_mode=default 10051 # Look at the argument we got. We use all the common list separators. 10052 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10053 for lt_pkg in $withval; do 10054 IFS=$lt_save_ifs 10055 if test "X$lt_pkg" = "X$lt_p"; then 10056 pic_mode=yes 10057 fi 10058 done 10059 IFS=$lt_save_ifs 10060 ;; 10061 esac 10062else $as_nop 10063 pic_mode=default 10064fi 10065 10066 10067 10068 10069 10070 10071 10072 10073 # Check whether --enable-fast-install was given. 10074if test ${enable_fast_install+y} 10075then : 10076 enableval=$enable_fast_install; p=${PACKAGE-default} 10077 case $enableval in 10078 yes) enable_fast_install=yes ;; 10079 no) enable_fast_install=no ;; 10080 *) 10081 enable_fast_install=no 10082 # Look at the argument we got. We use all the common list separators. 10083 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10084 for pkg in $enableval; do 10085 IFS=$lt_save_ifs 10086 if test "X$pkg" = "X$p"; then 10087 enable_fast_install=yes 10088 fi 10089 done 10090 IFS=$lt_save_ifs 10091 ;; 10092 esac 10093else $as_nop 10094 enable_fast_install=yes 10095fi 10096 10097 10098 10099 10100 10101 10102 10103 10104 shared_archive_member_spec= 10105case $host,$enable_shared in 10106power*-*-aix[5-9]*,yes) 10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10108printf %s "checking which variant of shared library versioning to provide... " >&6; } 10109 10110# Check whether --with-aix-soname was given. 10111if test ${with_aix_soname+y} 10112then : 10113 withval=$with_aix_soname; case $withval in 10114 aix|svr4|both) 10115 ;; 10116 *) 10117 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10118 ;; 10119 esac 10120 lt_cv_with_aix_soname=$with_aix_soname 10121else $as_nop 10122 if test ${lt_cv_with_aix_soname+y} 10123then : 10124 printf %s "(cached) " >&6 10125else $as_nop 10126 lt_cv_with_aix_soname=aix 10127fi 10128 10129 with_aix_soname=$lt_cv_with_aix_soname 10130fi 10131 10132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10133printf "%s\n" "$with_aix_soname" >&6; } 10134 if test aix != "$with_aix_soname"; then 10135 # For the AIX way of multilib, we name the shared archive member 10136 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10137 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10138 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10139 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10140 if test 64 = "${OBJECT_MODE-32}"; then 10141 shared_archive_member_spec=shr_64 10142 else 10143 shared_archive_member_spec=shr 10144 fi 10145 fi 10146 ;; 10147*) 10148 with_aix_soname=aix 10149 ;; 10150esac 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161# This can be used to rebuild libtool when needed 10162LIBTOOL_DEPS=$ltmain 10163 10164# Always use our own libtool. 10165LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196test -z "$LN_S" && LN_S="ln -s" 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211if test -n "${ZSH_VERSION+set}"; then 10212 setopt NO_GLOB_SUBST 10213fi 10214 10215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10216printf %s "checking for objdir... " >&6; } 10217if test ${lt_cv_objdir+y} 10218then : 10219 printf %s "(cached) " >&6 10220else $as_nop 10221 rm -f .libs 2>/dev/null 10222mkdir .libs 2>/dev/null 10223if test -d .libs; then 10224 lt_cv_objdir=.libs 10225else 10226 # MS-DOS does not allow filenames that begin with a dot. 10227 lt_cv_objdir=_libs 10228fi 10229rmdir .libs 2>/dev/null 10230fi 10231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10232printf "%s\n" "$lt_cv_objdir" >&6; } 10233objdir=$lt_cv_objdir 10234 10235 10236 10237 10238 10239printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 10240 10241 10242 10243 10244case $host_os in 10245aix3*) 10246 # AIX sometimes has problems with the GCC collect2 program. For some 10247 # reason, if we set the COLLECT_NAMES environment variable, the problems 10248 # vanish in a puff of smoke. 10249 if test set != "${COLLECT_NAMES+set}"; then 10250 COLLECT_NAMES= 10251 export COLLECT_NAMES 10252 fi 10253 ;; 10254esac 10255 10256# Global variables: 10257ofile=libtool 10258can_build_shared=yes 10259 10260# All known linkers require a '.a' archive for static linking (except MSVC and 10261# ICC, which need '.lib'). 10262libext=a 10263 10264with_gnu_ld=$lt_cv_prog_gnu_ld 10265 10266old_CC=$CC 10267old_CFLAGS=$CFLAGS 10268 10269# Set sane defaults for various variables 10270test -z "$CC" && CC=cc 10271test -z "$LTCC" && LTCC=$CC 10272test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10273test -z "$LD" && LD=ld 10274test -z "$ac_objext" && ac_objext=o 10275 10276func_cc_basename $compiler 10277cc_basename=$func_cc_basename_result 10278 10279 10280# Only perform the check for file, if the check method requires it 10281test -z "$MAGIC_CMD" && MAGIC_CMD=file 10282case $deplibs_check_method in 10283file_magic*) 10284 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10286printf %s "checking for ${ac_tool_prefix}file... " >&6; } 10287if test ${lt_cv_path_MAGIC_CMD+y} 10288then : 10289 printf %s "(cached) " >&6 10290else $as_nop 10291 case $MAGIC_CMD in 10292[\\/*] | ?:[\\/]*) 10293 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10294 ;; 10295*) 10296 lt_save_MAGIC_CMD=$MAGIC_CMD 10297 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10298 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10299 for ac_dir in $ac_dummy; do 10300 IFS=$lt_save_ifs 10301 test -z "$ac_dir" && ac_dir=. 10302 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10303 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10304 if test -n "$file_magic_test_file"; then 10305 case $deplibs_check_method in 10306 "file_magic "*) 10307 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10308 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10309 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10310 $EGREP "$file_magic_regex" > /dev/null; then 10311 : 10312 else 10313 cat <<_LT_EOF 1>&2 10314 10315*** Warning: the command libtool uses to detect shared libraries, 10316*** $file_magic_cmd, produces output that libtool cannot recognize. 10317*** The result is that libtool may fail to recognize shared libraries 10318*** as such. This will affect the creation of libtool libraries that 10319*** depend on shared libraries, but programs linked with such libtool 10320*** libraries will work regardless of this problem. Nevertheless, you 10321*** may want to report the problem to your system manager and/or to 10322*** bug-libtool@gnu.org 10323 10324_LT_EOF 10325 fi ;; 10326 esac 10327 fi 10328 break 10329 fi 10330 done 10331 IFS=$lt_save_ifs 10332 MAGIC_CMD=$lt_save_MAGIC_CMD 10333 ;; 10334esac 10335fi 10336 10337MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10338if test -n "$MAGIC_CMD"; then 10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10340printf "%s\n" "$MAGIC_CMD" >&6; } 10341else 10342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10343printf "%s\n" "no" >&6; } 10344fi 10345 10346 10347 10348 10349 10350if test -z "$lt_cv_path_MAGIC_CMD"; then 10351 if test -n "$ac_tool_prefix"; then 10352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10353printf %s "checking for file... " >&6; } 10354if test ${lt_cv_path_MAGIC_CMD+y} 10355then : 10356 printf %s "(cached) " >&6 10357else $as_nop 10358 case $MAGIC_CMD in 10359[\\/*] | ?:[\\/]*) 10360 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10361 ;; 10362*) 10363 lt_save_MAGIC_CMD=$MAGIC_CMD 10364 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10365 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10366 for ac_dir in $ac_dummy; do 10367 IFS=$lt_save_ifs 10368 test -z "$ac_dir" && ac_dir=. 10369 if test -f "$ac_dir/file"; then 10370 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10371 if test -n "$file_magic_test_file"; then 10372 case $deplibs_check_method in 10373 "file_magic "*) 10374 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10375 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10377 $EGREP "$file_magic_regex" > /dev/null; then 10378 : 10379 else 10380 cat <<_LT_EOF 1>&2 10381 10382*** Warning: the command libtool uses to detect shared libraries, 10383*** $file_magic_cmd, produces output that libtool cannot recognize. 10384*** The result is that libtool may fail to recognize shared libraries 10385*** as such. This will affect the creation of libtool libraries that 10386*** depend on shared libraries, but programs linked with such libtool 10387*** libraries will work regardless of this problem. Nevertheless, you 10388*** may want to report the problem to your system manager and/or to 10389*** bug-libtool@gnu.org 10390 10391_LT_EOF 10392 fi ;; 10393 esac 10394 fi 10395 break 10396 fi 10397 done 10398 IFS=$lt_save_ifs 10399 MAGIC_CMD=$lt_save_MAGIC_CMD 10400 ;; 10401esac 10402fi 10403 10404MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10405if test -n "$MAGIC_CMD"; then 10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10407printf "%s\n" "$MAGIC_CMD" >&6; } 10408else 10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10410printf "%s\n" "no" >&6; } 10411fi 10412 10413 10414 else 10415 MAGIC_CMD=: 10416 fi 10417fi 10418 10419 fi 10420 ;; 10421esac 10422 10423# Use C for the default configuration in the libtool script 10424 10425lt_save_CC=$CC 10426ac_ext=c 10427ac_cpp='$CPP $CPPFLAGS' 10428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10430ac_compiler_gnu=$ac_cv_c_compiler_gnu 10431 10432 10433# Source file extension for C test sources. 10434ac_ext=c 10435 10436# Object file extension for compiled C test sources. 10437objext=o 10438objext=$objext 10439 10440# Code to be used in simple compile tests 10441lt_simple_compile_test_code="int some_variable = 0;" 10442 10443# Code to be used in simple link tests 10444lt_simple_link_test_code='int main(){return(0);}' 10445 10446 10447 10448 10449 10450 10451 10452# If no C compiler was specified, use CC. 10453LTCC=${LTCC-"$CC"} 10454 10455# If no C compiler flags were specified, use CFLAGS. 10456LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10457 10458# Allow CC to be a program name with arguments. 10459compiler=$CC 10460 10461# Save the default compiler, since it gets overwritten when the other 10462# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10463compiler_DEFAULT=$CC 10464 10465# save warnings/boilerplate of simple test code 10466ac_outfile=conftest.$ac_objext 10467echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10468eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10469_lt_compiler_boilerplate=`cat conftest.err` 10470$RM conftest* 10471 10472ac_outfile=conftest.$ac_objext 10473echo "$lt_simple_link_test_code" >conftest.$ac_ext 10474eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10475_lt_linker_boilerplate=`cat conftest.err` 10476$RM -r conftest* 10477 10478 10479## CAVEAT EMPTOR: 10480## There is no encapsulation within the following macros, do not change 10481## the running order or otherwise move them around unless you know exactly 10482## what you are doing... 10483if test -n "$compiler"; then 10484 10485lt_prog_compiler_no_builtin_flag= 10486 10487if test yes = "$GCC"; then 10488 case $cc_basename in 10489 nvcc*) 10490 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10491 *) 10492 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10493 esac 10494 10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10496printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10497if test ${lt_cv_prog_compiler_rtti_exceptions+y} 10498then : 10499 printf %s "(cached) " >&6 10500else $as_nop 10501 lt_cv_prog_compiler_rtti_exceptions=no 10502 ac_outfile=conftest.$ac_objext 10503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10504 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10505 # Insert the option either (1) after the last *FLAGS variable, or 10506 # (2) before a word containing "conftest.", or (3) at the end. 10507 # Note that $ac_compile itself does not contain backslashes and begins 10508 # with a dollar sign (not a hyphen), so the echo should work correctly. 10509 # The option is referenced via a variable to avoid confusing sed. 10510 lt_compile=`echo "$ac_compile" | $SED \ 10511 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10512 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10513 -e 's:$: $lt_compiler_flag:'` 10514 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10515 (eval "$lt_compile" 2>conftest.err) 10516 ac_status=$? 10517 cat conftest.err >&5 10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10519 if (exit $ac_status) && test -s "$ac_outfile"; then 10520 # The compiler can only warn and ignore the option if not recognized 10521 # So say no if there are warnings other than the usual output. 10522 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10524 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10525 lt_cv_prog_compiler_rtti_exceptions=yes 10526 fi 10527 fi 10528 $RM conftest* 10529 10530fi 10531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10532printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10533 10534if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10535 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10536else 10537 : 10538fi 10539 10540fi 10541 10542 10543 10544 10545 10546 10547 lt_prog_compiler_wl= 10548lt_prog_compiler_pic= 10549lt_prog_compiler_static= 10550 10551 10552 if test yes = "$GCC"; then 10553 lt_prog_compiler_wl='-Wl,' 10554 lt_prog_compiler_static='-static' 10555 10556 case $host_os in 10557 aix*) 10558 # All AIX code is PIC. 10559 if test ia64 = "$host_cpu"; then 10560 # AIX 5 now supports IA64 processor 10561 lt_prog_compiler_static='-Bstatic' 10562 fi 10563 lt_prog_compiler_pic='-fPIC' 10564 ;; 10565 10566 amigaos*) 10567 case $host_cpu in 10568 powerpc) 10569 # see comment about AmigaOS4 .so support 10570 lt_prog_compiler_pic='-fPIC' 10571 ;; 10572 m68k) 10573 # FIXME: we need at least 68020 code to build shared libraries, but 10574 # adding the '-m68020' flag to GCC prevents building anything better, 10575 # like '-m68040'. 10576 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10577 ;; 10578 esac 10579 ;; 10580 10581 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10582 # PIC is the default for these OSes. 10583 ;; 10584 10585 mingw* | cygwin* | pw32* | os2* | cegcc*) 10586 # This hack is so that the source file can tell whether it is being 10587 # built for inclusion in a dll (and should export symbols for example). 10588 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10589 # (--disable-auto-import) libraries 10590 lt_prog_compiler_pic='-DDLL_EXPORT' 10591 case $host_os in 10592 os2*) 10593 lt_prog_compiler_static='$wl-static' 10594 ;; 10595 esac 10596 ;; 10597 10598 darwin* | rhapsody*) 10599 # PIC is the default on this platform 10600 # Common symbols not allowed in MH_DYLIB files 10601 lt_prog_compiler_pic='-fno-common' 10602 ;; 10603 10604 haiku*) 10605 # PIC is the default for Haiku. 10606 # The "-static" flag exists, but is broken. 10607 lt_prog_compiler_static= 10608 ;; 10609 10610 hpux*) 10611 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10612 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10613 # sets the default TLS model and affects inlining. 10614 case $host_cpu in 10615 hppa*64*) 10616 # +Z the default 10617 ;; 10618 *) 10619 lt_prog_compiler_pic='-fPIC' 10620 ;; 10621 esac 10622 ;; 10623 10624 interix[3-9]*) 10625 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10626 # Instead, we relocate shared libraries at runtime. 10627 ;; 10628 10629 msdosdjgpp*) 10630 # Just because we use GCC doesn't mean we suddenly get shared libraries 10631 # on systems that don't support them. 10632 lt_prog_compiler_can_build_shared=no 10633 enable_shared=no 10634 ;; 10635 10636 *nto* | *qnx*) 10637 # QNX uses GNU C++, but need to define -shared option too, otherwise 10638 # it will coredump. 10639 lt_prog_compiler_pic='-fPIC -shared' 10640 ;; 10641 10642 sysv4*MP*) 10643 if test -d /usr/nec; then 10644 lt_prog_compiler_pic=-Kconform_pic 10645 fi 10646 ;; 10647 10648 *) 10649 lt_prog_compiler_pic='-fPIC' 10650 ;; 10651 esac 10652 10653 case $cc_basename in 10654 nvcc*) # Cuda Compiler Driver 2.2 10655 lt_prog_compiler_wl='-Xlinker ' 10656 if test -n "$lt_prog_compiler_pic"; then 10657 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10658 fi 10659 ;; 10660 esac 10661 else 10662 # PORTME Check for flag to pass linker flags through the system compiler. 10663 case $host_os in 10664 aix*) 10665 lt_prog_compiler_wl='-Wl,' 10666 if test ia64 = "$host_cpu"; then 10667 # AIX 5 now supports IA64 processor 10668 lt_prog_compiler_static='-Bstatic' 10669 else 10670 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10671 fi 10672 ;; 10673 10674 darwin* | rhapsody*) 10675 # PIC is the default on this platform 10676 # Common symbols not allowed in MH_DYLIB files 10677 lt_prog_compiler_pic='-fno-common' 10678 case $cc_basename in 10679 nagfor*) 10680 # NAG Fortran compiler 10681 lt_prog_compiler_wl='-Wl,-Wl,,' 10682 lt_prog_compiler_pic='-PIC' 10683 lt_prog_compiler_static='-Bstatic' 10684 ;; 10685 esac 10686 ;; 10687 10688 mingw* | cygwin* | pw32* | os2* | cegcc*) 10689 # This hack is so that the source file can tell whether it is being 10690 # built for inclusion in a dll (and should export symbols for example). 10691 lt_prog_compiler_pic='-DDLL_EXPORT' 10692 case $host_os in 10693 os2*) 10694 lt_prog_compiler_static='$wl-static' 10695 ;; 10696 esac 10697 ;; 10698 10699 hpux9* | hpux10* | hpux11*) 10700 lt_prog_compiler_wl='-Wl,' 10701 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10702 # not for PA HP-UX. 10703 case $host_cpu in 10704 hppa*64*|ia64*) 10705 # +Z the default 10706 ;; 10707 *) 10708 lt_prog_compiler_pic='+Z' 10709 ;; 10710 esac 10711 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10712 lt_prog_compiler_static='$wl-a ${wl}archive' 10713 ;; 10714 10715 irix5* | irix6* | nonstopux*) 10716 lt_prog_compiler_wl='-Wl,' 10717 # PIC (with -KPIC) is the default. 10718 lt_prog_compiler_static='-non_shared' 10719 ;; 10720 10721 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10722 case $cc_basename in 10723 # old Intel for x86_64, which still supported -KPIC. 10724 ecc*) 10725 lt_prog_compiler_wl='-Wl,' 10726 lt_prog_compiler_pic='-KPIC' 10727 lt_prog_compiler_static='-static' 10728 ;; 10729 # flang / f18. f95 an alias for gfortran or flang on Debian 10730 flang* | f18* | f95*) 10731 lt_prog_compiler_wl='-Wl,' 10732 lt_prog_compiler_pic='-fPIC' 10733 lt_prog_compiler_static='-static' 10734 ;; 10735 # icc used to be incompatible with GCC. 10736 # ICC 10 doesn't accept -KPIC any more. 10737 icc* | ifort*) 10738 lt_prog_compiler_wl='-Wl,' 10739 lt_prog_compiler_pic='-fPIC' 10740 lt_prog_compiler_static='-static' 10741 ;; 10742 # Lahey Fortran 8.1. 10743 lf95*) 10744 lt_prog_compiler_wl='-Wl,' 10745 lt_prog_compiler_pic='--shared' 10746 lt_prog_compiler_static='--static' 10747 ;; 10748 nagfor*) 10749 # NAG Fortran compiler 10750 lt_prog_compiler_wl='-Wl,-Wl,,' 10751 lt_prog_compiler_pic='-PIC' 10752 lt_prog_compiler_static='-Bstatic' 10753 ;; 10754 tcc*) 10755 # Fabrice Bellard et al's Tiny C Compiler 10756 lt_prog_compiler_wl='-Wl,' 10757 lt_prog_compiler_pic='-fPIC' 10758 lt_prog_compiler_static='-static' 10759 ;; 10760 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10761 # Portland Group compilers (*not* the Pentium gcc compiler, 10762 # which looks to be a dead project) 10763 lt_prog_compiler_wl='-Wl,' 10764 lt_prog_compiler_pic='-fpic' 10765 lt_prog_compiler_static='-Bstatic' 10766 ;; 10767 ccc*) 10768 lt_prog_compiler_wl='-Wl,' 10769 # All Alpha code is PIC. 10770 lt_prog_compiler_static='-non_shared' 10771 ;; 10772 xl* | bgxl* | bgf* | mpixl*) 10773 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10774 lt_prog_compiler_wl='-Wl,' 10775 lt_prog_compiler_pic='-qpic' 10776 lt_prog_compiler_static='-qstaticlink' 10777 ;; 10778 *) 10779 case `$CC -V 2>&1 | $SED 5q` in 10780 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10781 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10782 lt_prog_compiler_pic='-KPIC' 10783 lt_prog_compiler_static='-Bstatic' 10784 lt_prog_compiler_wl='' 10785 ;; 10786 *Sun\ F* | *Sun*Fortran*) 10787 lt_prog_compiler_pic='-KPIC' 10788 lt_prog_compiler_static='-Bstatic' 10789 lt_prog_compiler_wl='-Qoption ld ' 10790 ;; 10791 *Sun\ C*) 10792 # Sun C 5.9 10793 lt_prog_compiler_pic='-KPIC' 10794 lt_prog_compiler_static='-Bstatic' 10795 lt_prog_compiler_wl='-Wl,' 10796 ;; 10797 *Intel*\ [CF]*Compiler*) 10798 lt_prog_compiler_wl='-Wl,' 10799 lt_prog_compiler_pic='-fPIC' 10800 lt_prog_compiler_static='-static' 10801 ;; 10802 *Portland\ Group*) 10803 lt_prog_compiler_wl='-Wl,' 10804 lt_prog_compiler_pic='-fpic' 10805 lt_prog_compiler_static='-Bstatic' 10806 ;; 10807 esac 10808 ;; 10809 esac 10810 ;; 10811 10812 newsos6) 10813 lt_prog_compiler_pic='-KPIC' 10814 lt_prog_compiler_static='-Bstatic' 10815 ;; 10816 10817 *nto* | *qnx*) 10818 # QNX uses GNU C++, but need to define -shared option too, otherwise 10819 # it will coredump. 10820 lt_prog_compiler_pic='-fPIC -shared' 10821 ;; 10822 10823 osf3* | osf4* | osf5*) 10824 lt_prog_compiler_wl='-Wl,' 10825 # All OSF/1 code is PIC. 10826 lt_prog_compiler_static='-non_shared' 10827 ;; 10828 10829 rdos*) 10830 lt_prog_compiler_static='-non_shared' 10831 ;; 10832 10833 solaris*) 10834 lt_prog_compiler_pic='-KPIC' 10835 lt_prog_compiler_static='-Bstatic' 10836 case $cc_basename in 10837 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10838 lt_prog_compiler_wl='-Qoption ld ';; 10839 *) 10840 lt_prog_compiler_wl='-Wl,';; 10841 esac 10842 ;; 10843 10844 sunos4*) 10845 lt_prog_compiler_wl='-Qoption ld ' 10846 lt_prog_compiler_pic='-PIC' 10847 lt_prog_compiler_static='-Bstatic' 10848 ;; 10849 10850 sysv4 | sysv4.2uw2* | sysv4.3*) 10851 lt_prog_compiler_wl='-Wl,' 10852 lt_prog_compiler_pic='-KPIC' 10853 lt_prog_compiler_static='-Bstatic' 10854 ;; 10855 10856 sysv4*MP*) 10857 if test -d /usr/nec; then 10858 lt_prog_compiler_pic='-Kconform_pic' 10859 lt_prog_compiler_static='-Bstatic' 10860 fi 10861 ;; 10862 10863 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10864 lt_prog_compiler_wl='-Wl,' 10865 lt_prog_compiler_pic='-KPIC' 10866 lt_prog_compiler_static='-Bstatic' 10867 ;; 10868 10869 unicos*) 10870 lt_prog_compiler_wl='-Wl,' 10871 lt_prog_compiler_can_build_shared=no 10872 ;; 10873 10874 uts4*) 10875 lt_prog_compiler_pic='-pic' 10876 lt_prog_compiler_static='-Bstatic' 10877 ;; 10878 10879 *) 10880 lt_prog_compiler_can_build_shared=no 10881 ;; 10882 esac 10883 fi 10884 10885case $host_os in 10886 # For platforms that do not support PIC, -DPIC is meaningless: 10887 *djgpp*) 10888 lt_prog_compiler_pic= 10889 ;; 10890 *) 10891 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10892 ;; 10893esac 10894 10895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10896printf %s "checking for $compiler option to produce PIC... " >&6; } 10897if test ${lt_cv_prog_compiler_pic+y} 10898then : 10899 printf %s "(cached) " >&6 10900else $as_nop 10901 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10902fi 10903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10904printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10905lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10906 10907# 10908# Check to make sure the PIC flag actually works. 10909# 10910if test -n "$lt_prog_compiler_pic"; then 10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10912printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10913if test ${lt_cv_prog_compiler_pic_works+y} 10914then : 10915 printf %s "(cached) " >&6 10916else $as_nop 10917 lt_cv_prog_compiler_pic_works=no 10918 ac_outfile=conftest.$ac_objext 10919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10920 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10921 # Insert the option either (1) after the last *FLAGS variable, or 10922 # (2) before a word containing "conftest.", or (3) at the end. 10923 # Note that $ac_compile itself does not contain backslashes and begins 10924 # with a dollar sign (not a hyphen), so the echo should work correctly. 10925 # The option is referenced via a variable to avoid confusing sed. 10926 lt_compile=`echo "$ac_compile" | $SED \ 10927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10929 -e 's:$: $lt_compiler_flag:'` 10930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10931 (eval "$lt_compile" 2>conftest.err) 10932 ac_status=$? 10933 cat conftest.err >&5 10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10935 if (exit $ac_status) && test -s "$ac_outfile"; then 10936 # The compiler can only warn and ignore the option if not recognized 10937 # So say no if there are warnings other than the usual output. 10938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10941 lt_cv_prog_compiler_pic_works=yes 10942 fi 10943 fi 10944 $RM conftest* 10945 10946fi 10947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10948printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10949 10950if test yes = "$lt_cv_prog_compiler_pic_works"; then 10951 case $lt_prog_compiler_pic in 10952 "" | " "*) ;; 10953 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10954 esac 10955else 10956 lt_prog_compiler_pic= 10957 lt_prog_compiler_can_build_shared=no 10958fi 10959 10960fi 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972# 10973# Check to make sure the static flag actually works. 10974# 10975wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10977printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10978if test ${lt_cv_prog_compiler_static_works+y} 10979then : 10980 printf %s "(cached) " >&6 10981else $as_nop 10982 lt_cv_prog_compiler_static_works=no 10983 save_LDFLAGS=$LDFLAGS 10984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10985 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10987 # The linker can only warn and ignore the option if not recognized 10988 # So say no if there are warnings 10989 if test -s conftest.err; then 10990 # Append any errors to the config.log. 10991 cat conftest.err 1>&5 10992 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10994 if diff conftest.exp conftest.er2 >/dev/null; then 10995 lt_cv_prog_compiler_static_works=yes 10996 fi 10997 else 10998 lt_cv_prog_compiler_static_works=yes 10999 fi 11000 fi 11001 $RM -r conftest* 11002 LDFLAGS=$save_LDFLAGS 11003 11004fi 11005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11006printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 11007 11008if test yes = "$lt_cv_prog_compiler_static_works"; then 11009 : 11010else 11011 lt_prog_compiler_static= 11012fi 11013 11014 11015 11016 11017 11018 11019 11020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11021printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11022if test ${lt_cv_prog_compiler_c_o+y} 11023then : 11024 printf %s "(cached) " >&6 11025else $as_nop 11026 lt_cv_prog_compiler_c_o=no 11027 $RM -r conftest 2>/dev/null 11028 mkdir conftest 11029 cd conftest 11030 mkdir out 11031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11032 11033 lt_compiler_flag="-o out/conftest2.$ac_objext" 11034 # Insert the option either (1) after the last *FLAGS variable, or 11035 # (2) before a word containing "conftest.", or (3) at the end. 11036 # Note that $ac_compile itself does not contain backslashes and begins 11037 # with a dollar sign (not a hyphen), so the echo should work correctly. 11038 lt_compile=`echo "$ac_compile" | $SED \ 11039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11041 -e 's:$: $lt_compiler_flag:'` 11042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11043 (eval "$lt_compile" 2>out/conftest.err) 11044 ac_status=$? 11045 cat out/conftest.err >&5 11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11047 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11048 then 11049 # The compiler can only warn and ignore the option if not recognized 11050 # So say no if there are warnings 11051 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11054 lt_cv_prog_compiler_c_o=yes 11055 fi 11056 fi 11057 chmod u+w . 2>&5 11058 $RM conftest* 11059 # SGI C++ compiler will create directory out/ii_files/ for 11060 # template instantiation 11061 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11062 $RM out/* && rmdir out 11063 cd .. 11064 $RM -r conftest 11065 $RM conftest* 11066 11067fi 11068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11069printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 11070 11071 11072 11073 11074 11075 11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11077printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11078if test ${lt_cv_prog_compiler_c_o+y} 11079then : 11080 printf %s "(cached) " >&6 11081else $as_nop 11082 lt_cv_prog_compiler_c_o=no 11083 $RM -r conftest 2>/dev/null 11084 mkdir conftest 11085 cd conftest 11086 mkdir out 11087 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11088 11089 lt_compiler_flag="-o out/conftest2.$ac_objext" 11090 # Insert the option either (1) after the last *FLAGS variable, or 11091 # (2) before a word containing "conftest.", or (3) at the end. 11092 # Note that $ac_compile itself does not contain backslashes and begins 11093 # with a dollar sign (not a hyphen), so the echo should work correctly. 11094 lt_compile=`echo "$ac_compile" | $SED \ 11095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11097 -e 's:$: $lt_compiler_flag:'` 11098 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11099 (eval "$lt_compile" 2>out/conftest.err) 11100 ac_status=$? 11101 cat out/conftest.err >&5 11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11103 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11104 then 11105 # The compiler can only warn and ignore the option if not recognized 11106 # So say no if there are warnings 11107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11110 lt_cv_prog_compiler_c_o=yes 11111 fi 11112 fi 11113 chmod u+w . 2>&5 11114 $RM conftest* 11115 # SGI C++ compiler will create directory out/ii_files/ for 11116 # template instantiation 11117 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11118 $RM out/* && rmdir out 11119 cd .. 11120 $RM -r conftest 11121 $RM conftest* 11122 11123fi 11124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11125printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 11126 11127 11128 11129 11130hard_links=nottested 11131if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11132 # do not overwrite the value of need_locks provided by the user 11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11134printf %s "checking if we can lock with hard links... " >&6; } 11135 hard_links=yes 11136 $RM conftest* 11137 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11138 touch conftest.a 11139 ln conftest.a conftest.b 2>&5 || hard_links=no 11140 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11142printf "%s\n" "$hard_links" >&6; } 11143 if test no = "$hard_links"; then 11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11145printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11146 need_locks=warn 11147 fi 11148else 11149 need_locks=no 11150fi 11151 11152 11153 11154 11155 11156 11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11158printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11159 11160 runpath_var= 11161 allow_undefined_flag= 11162 always_export_symbols=no 11163 archive_cmds= 11164 archive_expsym_cmds= 11165 compiler_needs_object=no 11166 enable_shared_with_static_runtimes=no 11167 export_dynamic_flag_spec= 11168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11169 hardcode_automatic=no 11170 hardcode_direct=no 11171 hardcode_direct_absolute=no 11172 hardcode_libdir_flag_spec= 11173 hardcode_libdir_separator= 11174 hardcode_minus_L=no 11175 hardcode_shlibpath_var=unsupported 11176 inherit_rpath=no 11177 link_all_deplibs=unknown 11178 module_cmds= 11179 module_expsym_cmds= 11180 old_archive_from_new_cmds= 11181 old_archive_from_expsyms_cmds= 11182 thread_safe_flag_spec= 11183 whole_archive_flag_spec= 11184 # include_expsyms should be a list of space-separated symbols to be *always* 11185 # included in the symbol list 11186 include_expsyms= 11187 # exclude_expsyms can be an extended regexp of symbols to exclude 11188 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11189 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11190 # as well as any symbol that contains 'd'. 11191 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11192 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11193 # platforms (ab)use it in PIC code, but their linkers get confused if 11194 # the symbol is explicitly referenced. Since portable code cannot 11195 # rely on this symbol name, it's probably fine to never include it in 11196 # preloaded symbol tables. 11197 # Exclude shared library initialization/finalization symbols. 11198 extract_expsyms_cmds= 11199 11200 case $host_os in 11201 cygwin* | mingw* | pw32* | cegcc*) 11202 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 11203 # When not using gcc, we currently assume that we are using 11204 # Microsoft Visual C++ or Intel C++ Compiler. 11205 if test yes != "$GCC"; then 11206 with_gnu_ld=no 11207 fi 11208 ;; 11209 interix*) 11210 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 11211 with_gnu_ld=yes 11212 ;; 11213 openbsd* | bitrig*) 11214 with_gnu_ld=no 11215 ;; 11216 linux* | k*bsd*-gnu | gnu*) 11217 link_all_deplibs=no 11218 ;; 11219 esac 11220 11221 ld_shlibs=yes 11222 11223 # On some targets, GNU ld is compatible enough with the native linker 11224 # that we're better off using the native interface for both. 11225 lt_use_gnu_ld_interface=no 11226 if test yes = "$with_gnu_ld"; then 11227 case $host_os in 11228 aix*) 11229 # The AIX port of GNU ld has always aspired to compatibility 11230 # with the native linker. However, as the warning in the GNU ld 11231 # block says, versions before 2.19.5* couldn't really create working 11232 # shared libraries, regardless of the interface used. 11233 case `$LD -v 2>&1` in 11234 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11235 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11236 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11237 *) 11238 lt_use_gnu_ld_interface=yes 11239 ;; 11240 esac 11241 ;; 11242 *) 11243 lt_use_gnu_ld_interface=yes 11244 ;; 11245 esac 11246 fi 11247 11248 if test yes = "$lt_use_gnu_ld_interface"; then 11249 # If archive_cmds runs LD, not CC, wlarc should be empty 11250 wlarc='$wl' 11251 11252 # Set some defaults for GNU ld with shared library support. These 11253 # are reset later if shared libraries are not supported. Putting them 11254 # here allows them to be overridden if necessary. 11255 runpath_var=LD_RUN_PATH 11256 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11257 export_dynamic_flag_spec='$wl--export-dynamic' 11258 # ancient GNU ld didn't support --whole-archive et. al. 11259 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11260 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11261 else 11262 whole_archive_flag_spec= 11263 fi 11264 supports_anon_versioning=no 11265 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 11266 *GNU\ gold*) supports_anon_versioning=yes ;; 11267 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11268 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11269 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11270 *\ 2.11.*) ;; # other 2.11 versions 11271 *) supports_anon_versioning=yes ;; 11272 esac 11273 11274 # See if GNU ld supports shared libraries. 11275 case $host_os in 11276 aix[3-9]*) 11277 # On AIX/PPC, the GNU linker is very broken 11278 if test ia64 != "$host_cpu"; then 11279 ld_shlibs=no 11280 cat <<_LT_EOF 1>&2 11281 11282*** Warning: the GNU linker, at least up to release 2.19, is reported 11283*** to be unable to reliably create shared libraries on AIX. 11284*** Therefore, libtool is disabling shared libraries support. If you 11285*** really care for shared libraries, you may want to install binutils 11286*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11287*** You will then need to restart the configuration process. 11288 11289_LT_EOF 11290 fi 11291 ;; 11292 11293 amigaos*) 11294 case $host_cpu in 11295 powerpc) 11296 # see comment about AmigaOS4 .so support 11297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11298 archive_expsym_cmds='' 11299 ;; 11300 m68k) 11301 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)' 11302 hardcode_libdir_flag_spec='-L$libdir' 11303 hardcode_minus_L=yes 11304 ;; 11305 esac 11306 ;; 11307 11308 beos*) 11309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11310 allow_undefined_flag=unsupported 11311 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11312 # support --undefined. This deserves some investigation. FIXME 11313 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11314 else 11315 ld_shlibs=no 11316 fi 11317 ;; 11318 11319 cygwin* | mingw* | pw32* | cegcc*) 11320 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11321 # as there is no search path for DLLs. 11322 hardcode_libdir_flag_spec='-L$libdir' 11323 export_dynamic_flag_spec='$wl--export-all-symbols' 11324 allow_undefined_flag=unsupported 11325 always_export_symbols=no 11326 enable_shared_with_static_runtimes=yes 11327 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' 11328 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11329 11330 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11332 # If the export-symbols file already is a .def file, use it as 11333 # is; otherwise, prepend EXPORTS... 11334 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11335 cp $export_symbols $output_objdir/$soname.def; 11336 else 11337 echo EXPORTS > $output_objdir/$soname.def; 11338 cat $export_symbols >> $output_objdir/$soname.def; 11339 fi~ 11340 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11341 else 11342 ld_shlibs=no 11343 fi 11344 ;; 11345 11346 haiku*) 11347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11348 link_all_deplibs=yes 11349 ;; 11350 11351 os2*) 11352 hardcode_libdir_flag_spec='-L$libdir' 11353 hardcode_minus_L=yes 11354 allow_undefined_flag=unsupported 11355 shrext_cmds=.dll 11356 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11357 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11358 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11359 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11360 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11361 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11362 emximp -o $lib $output_objdir/$libname.def' 11363 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11364 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11365 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11366 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11367 prefix_cmds="$SED"~ 11368 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11369 prefix_cmds="$prefix_cmds -e 1d"; 11370 fi~ 11371 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11372 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11373 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11374 emximp -o $lib $output_objdir/$libname.def' 11375 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11376 enable_shared_with_static_runtimes=yes 11377 file_list_spec='@' 11378 ;; 11379 11380 interix[3-9]*) 11381 hardcode_direct=no 11382 hardcode_shlibpath_var=no 11383 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11384 export_dynamic_flag_spec='$wl-E' 11385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11386 # Instead, shared libraries are loaded at an image base (0x10000000 by 11387 # default) and relocated if they conflict, which is a slow very memory 11388 # consuming and fragmenting process. To avoid this, we pick a random, 11389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11390 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11391 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11392 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' 11393 ;; 11394 11395 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11396 tmp_diet=no 11397 if test linux-dietlibc = "$host_os"; then 11398 case $cc_basename in 11399 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11400 esac 11401 fi 11402 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11403 && test no = "$tmp_diet" 11404 then 11405 tmp_addflag=' $pic_flag' 11406 tmp_sharedflag='-shared' 11407 case $cc_basename,$host_cpu in 11408 pgcc*) # Portland Group C compiler 11409 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' 11410 tmp_addflag=' $pic_flag' 11411 ;; 11412 pgf77* | pgf90* | pgf95* | pgfortran*) 11413 # Portland Group f77 and f90 compilers 11414 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' 11415 tmp_addflag=' $pic_flag -Mnomain' ;; 11416 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11417 tmp_addflag=' -i_dynamic' ;; 11418 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11419 tmp_addflag=' -i_dynamic -nofor_main' ;; 11420 ifc* | ifort*) # Intel Fortran compiler 11421 tmp_addflag=' -nofor_main' ;; 11422 lf95*) # Lahey Fortran 8.1 11423 whole_archive_flag_spec= 11424 tmp_sharedflag='--shared' ;; 11425 nagfor*) # NAGFOR 5.3 11426 tmp_sharedflag='-Wl,-shared' ;; 11427 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11428 tmp_sharedflag='-qmkshrobj' 11429 tmp_addflag= ;; 11430 nvcc*) # Cuda Compiler Driver 2.2 11431 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' 11432 compiler_needs_object=yes 11433 ;; 11434 esac 11435 case `$CC -V 2>&1 | $SED 5q` in 11436 *Sun\ C*) # Sun C 5.9 11437 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' 11438 compiler_needs_object=yes 11439 tmp_sharedflag='-G' ;; 11440 *Sun\ F*) # Sun Fortran 8.3 11441 tmp_sharedflag='-G' ;; 11442 esac 11443 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11444 11445 if test yes = "$supports_anon_versioning"; then 11446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11447 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11448 echo "local: *; };" >> $output_objdir/$libname.ver~ 11449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11450 fi 11451 11452 case $cc_basename in 11453 tcc*) 11454 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11455 export_dynamic_flag_spec='-rdynamic' 11456 ;; 11457 xlf* | bgf* | bgxlf* | mpixlf*) 11458 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11459 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11460 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11461 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11462 if test yes = "$supports_anon_versioning"; then 11463 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11464 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11465 echo "local: *; };" >> $output_objdir/$libname.ver~ 11466 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11467 fi 11468 ;; 11469 esac 11470 else 11471 ld_shlibs=no 11472 fi 11473 ;; 11474 11475 netbsd* | netbsdelf*-gnu) 11476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11477 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11478 wlarc= 11479 else 11480 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11481 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11482 fi 11483 ;; 11484 11485 solaris*) 11486 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11487 ld_shlibs=no 11488 cat <<_LT_EOF 1>&2 11489 11490*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11491*** create shared libraries on Solaris systems. Therefore, libtool 11492*** is disabling shared libraries support. We urge you to upgrade GNU 11493*** binutils to release 2.9.1 or newer. Another option is to modify 11494*** your PATH or compiler configuration so that the native linker is 11495*** used, and then restart. 11496 11497_LT_EOF 11498 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11500 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11501 else 11502 ld_shlibs=no 11503 fi 11504 ;; 11505 11506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11507 case `$LD -v 2>&1` in 11508 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11509 ld_shlibs=no 11510 cat <<_LT_EOF 1>&2 11511 11512*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11513*** reliably create shared libraries on SCO systems. Therefore, libtool 11514*** is disabling shared libraries support. We urge you to upgrade GNU 11515*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11516*** your PATH or compiler configuration so that the native linker is 11517*** used, and then restart. 11518 11519_LT_EOF 11520 ;; 11521 *) 11522 # For security reasons, it is highly recommended that you always 11523 # use absolute paths for naming shared libraries, and exclude the 11524 # DT_RUNPATH tag from executables and libraries. But doing so 11525 # requires that you compile everything twice, which is a pain. 11526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11527 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11530 else 11531 ld_shlibs=no 11532 fi 11533 ;; 11534 esac 11535 ;; 11536 11537 sunos4*) 11538 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11539 wlarc= 11540 hardcode_direct=yes 11541 hardcode_shlibpath_var=no 11542 ;; 11543 11544 *) 11545 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11547 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11548 else 11549 ld_shlibs=no 11550 fi 11551 ;; 11552 esac 11553 11554 if test no = "$ld_shlibs"; then 11555 runpath_var= 11556 hardcode_libdir_flag_spec= 11557 export_dynamic_flag_spec= 11558 whole_archive_flag_spec= 11559 fi 11560 else 11561 # PORTME fill in a description of your system's linker (not GNU ld) 11562 case $host_os in 11563 aix3*) 11564 allow_undefined_flag=unsupported 11565 always_export_symbols=yes 11566 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' 11567 # Note: this linker hardcodes the directories in LIBPATH if there 11568 # are no directories specified by -L. 11569 hardcode_minus_L=yes 11570 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11571 # Neither direct hardcoding nor static linking is supported with a 11572 # broken collect2. 11573 hardcode_direct=unsupported 11574 fi 11575 ;; 11576 11577 aix[4-9]*) 11578 if test ia64 = "$host_cpu"; then 11579 # On IA64, the linker does run time linking by default, so we don't 11580 # have to do anything special. 11581 aix_use_runtimelinking=no 11582 exp_sym_flag='-Bexport' 11583 no_entry_flag= 11584 else 11585 # If we're using GNU nm, then we don't want the "-C" option. 11586 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11587 # Without the "-l" option, or with the "-B" option, AIX nm treats 11588 # weak defined symbols like other global defined symbols, whereas 11589 # GNU nm marks them as "W". 11590 # While the 'weak' keyword is ignored in the Export File, we need 11591 # it in the Import File for the 'aix-soname' feature, so we have 11592 # to replace the "-B" option with "-P" for AIX nm. 11593 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11594 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 11595 else 11596 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 11597 fi 11598 aix_use_runtimelinking=no 11599 11600 # Test if we are trying to use run time linking or normal 11601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11602 # have runtime linking enabled, and use it for executables. 11603 # For shared libraries, we enable/disable runtime linking 11604 # depending on the kind of the shared library created - 11605 # when "with_aix_soname,aix_use_runtimelinking" is: 11606 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11607 # "aix,yes" lib.so shared, rtl:yes, for executables 11608 # lib.a static archive 11609 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11610 # lib.a(lib.so.V) shared, rtl:no, for executables 11611 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11612 # lib.a(lib.so.V) shared, rtl:no 11613 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11614 # lib.a static archive 11615 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11616 for ld_flag in $LDFLAGS; do 11617 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11618 aix_use_runtimelinking=yes 11619 break 11620 fi 11621 done 11622 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11623 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11624 # so we don't have lib.a shared libs to link our executables. 11625 # We have to force runtime linking in this case. 11626 aix_use_runtimelinking=yes 11627 LDFLAGS="$LDFLAGS -Wl,-brtl" 11628 fi 11629 ;; 11630 esac 11631 11632 exp_sym_flag='-bexport' 11633 no_entry_flag='-bnoentry' 11634 fi 11635 11636 # When large executables or shared objects are built, AIX ld can 11637 # have problems creating the table of contents. If linking a library 11638 # or program results in "error TOC overflow" add -mminimal-toc to 11639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11641 11642 archive_cmds='' 11643 hardcode_direct=yes 11644 hardcode_direct_absolute=yes 11645 hardcode_libdir_separator=':' 11646 link_all_deplibs=yes 11647 file_list_spec='$wl-f,' 11648 case $with_aix_soname,$aix_use_runtimelinking in 11649 aix,*) ;; # traditional, no import file 11650 svr4,* | *,yes) # use import file 11651 # The Import File defines what to hardcode. 11652 hardcode_direct=no 11653 hardcode_direct_absolute=no 11654 ;; 11655 esac 11656 11657 if test yes = "$GCC"; then 11658 case $host_os in aix4.[012]|aix4.[012].*) 11659 # We only want to do this on AIX 4.2 and lower, the check 11660 # below for broken collect2 doesn't work under 4.3+ 11661 collect2name=`$CC -print-prog-name=collect2` 11662 if test -f "$collect2name" && 11663 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11664 then 11665 # We have reworked collect2 11666 : 11667 else 11668 # We have old collect2 11669 hardcode_direct=unsupported 11670 # It fails to find uninstalled libraries when the uninstalled 11671 # path is not listed in the libpath. Setting hardcode_minus_L 11672 # to unsupported forces relinking 11673 hardcode_minus_L=yes 11674 hardcode_libdir_flag_spec='-L$libdir' 11675 hardcode_libdir_separator= 11676 fi 11677 ;; 11678 esac 11679 shared_flag='-shared' 11680 if test yes = "$aix_use_runtimelinking"; then 11681 shared_flag="$shared_flag "'$wl-G' 11682 fi 11683 # Need to ensure runtime linking is disabled for the traditional 11684 # shared library, or the linker may eventually find shared libraries 11685 # /with/ Import File - we do not want to mix them. 11686 shared_flag_aix='-shared' 11687 shared_flag_svr4='-shared $wl-G' 11688 else 11689 # not using gcc 11690 if test ia64 = "$host_cpu"; then 11691 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11692 # chokes on -Wl,-G. The following line is correct: 11693 shared_flag='-G' 11694 else 11695 if test yes = "$aix_use_runtimelinking"; then 11696 shared_flag='$wl-G' 11697 else 11698 shared_flag='$wl-bM:SRE' 11699 fi 11700 shared_flag_aix='$wl-bM:SRE' 11701 shared_flag_svr4='$wl-G' 11702 fi 11703 fi 11704 11705 export_dynamic_flag_spec='$wl-bexpall' 11706 # It seems that -bexpall does not export symbols beginning with 11707 # underscore (_), so it is better to generate a list of symbols to export. 11708 always_export_symbols=yes 11709 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11710 # Warning - without using the other runtime loading flags (-brtl), 11711 # -berok will link without error, but may produce a broken library. 11712 allow_undefined_flag='-berok' 11713 # Determine the default libpath from the value encoded in an 11714 # empty executable. 11715 if test set = "${lt_cv_aix_libpath+set}"; then 11716 aix_libpath=$lt_cv_aix_libpath 11717else 11718 if test ${lt_cv_aix_libpath_+y} 11719then : 11720 printf %s "(cached) " >&6 11721else $as_nop 11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11723/* end confdefs.h. */ 11724 11725int 11726main (void) 11727{ 11728 11729 ; 11730 return 0; 11731} 11732_ACEOF 11733if ac_fn_c_try_link "$LINENO" 11734then : 11735 11736 lt_aix_libpath_sed=' 11737 /Import File Strings/,/^$/ { 11738 /^0/ { 11739 s/^0 *\([^ ]*\) *$/\1/ 11740 p 11741 } 11742 }' 11743 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11744 # Check for a 64-bit object if we didn't find anything. 11745 if test -z "$lt_cv_aix_libpath_"; then 11746 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11747 fi 11748fi 11749rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11750 conftest$ac_exeext conftest.$ac_ext 11751 if test -z "$lt_cv_aix_libpath_"; then 11752 lt_cv_aix_libpath_=/usr/lib:/lib 11753 fi 11754 11755fi 11756 11757 aix_libpath=$lt_cv_aix_libpath_ 11758fi 11759 11760 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11761 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11762 else 11763 if test ia64 = "$host_cpu"; then 11764 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11765 allow_undefined_flag="-z nodefs" 11766 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" 11767 else 11768 # Determine the default libpath from the value encoded in an 11769 # empty executable. 11770 if test set = "${lt_cv_aix_libpath+set}"; then 11771 aix_libpath=$lt_cv_aix_libpath 11772else 11773 if test ${lt_cv_aix_libpath_+y} 11774then : 11775 printf %s "(cached) " >&6 11776else $as_nop 11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11778/* end confdefs.h. */ 11779 11780int 11781main (void) 11782{ 11783 11784 ; 11785 return 0; 11786} 11787_ACEOF 11788if ac_fn_c_try_link "$LINENO" 11789then : 11790 11791 lt_aix_libpath_sed=' 11792 /Import File Strings/,/^$/ { 11793 /^0/ { 11794 s/^0 *\([^ ]*\) *$/\1/ 11795 p 11796 } 11797 }' 11798 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11799 # Check for a 64-bit object if we didn't find anything. 11800 if test -z "$lt_cv_aix_libpath_"; then 11801 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11802 fi 11803fi 11804rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11805 conftest$ac_exeext conftest.$ac_ext 11806 if test -z "$lt_cv_aix_libpath_"; then 11807 lt_cv_aix_libpath_=/usr/lib:/lib 11808 fi 11809 11810fi 11811 11812 aix_libpath=$lt_cv_aix_libpath_ 11813fi 11814 11815 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11816 # Warning - without using the other run time loading flags, 11817 # -berok will link without error, but may produce a broken library. 11818 no_undefined_flag=' $wl-bernotok' 11819 allow_undefined_flag=' $wl-berok' 11820 if test yes = "$with_gnu_ld"; then 11821 # We only use this code for GNU lds that support --whole-archive. 11822 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11823 else 11824 # Exported symbols can be pulled into shared objects from archives 11825 whole_archive_flag_spec='$convenience' 11826 fi 11827 archive_cmds_need_lc=yes 11828 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11829 # -brtl affects multiple linker settings, -berok does not and is overridden later 11830 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11831 if test svr4 != "$with_aix_soname"; then 11832 # This is similar to how AIX traditionally builds its shared libraries. 11833 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11834 fi 11835 if test aix != "$with_aix_soname"; then 11836 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11837 else 11838 # used by -dlpreopen to get the symbols 11839 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11840 fi 11841 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11842 fi 11843 fi 11844 ;; 11845 11846 amigaos*) 11847 case $host_cpu in 11848 powerpc) 11849 # see comment about AmigaOS4 .so support 11850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11851 archive_expsym_cmds='' 11852 ;; 11853 m68k) 11854 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)' 11855 hardcode_libdir_flag_spec='-L$libdir' 11856 hardcode_minus_L=yes 11857 ;; 11858 esac 11859 ;; 11860 11861 bsdi[45]*) 11862 export_dynamic_flag_spec=-rdynamic 11863 ;; 11864 11865 cygwin* | mingw* | pw32* | cegcc*) 11866 # When not using gcc, we currently assume that we are using 11867 # Microsoft Visual C++ or Intel C++ Compiler. 11868 # hardcode_libdir_flag_spec is actually meaningless, as there is 11869 # no search path for DLLs. 11870 case $cc_basename in 11871 cl* | icl*) 11872 # Native MSVC or ICC 11873 hardcode_libdir_flag_spec=' ' 11874 allow_undefined_flag=unsupported 11875 always_export_symbols=yes 11876 file_list_spec='@' 11877 # Tell ltmain to make .lib files, not .a files. 11878 libext=lib 11879 # Tell ltmain to make .dll files, not .so files. 11880 shrext_cmds=.dll 11881 # FIXME: Setting linknames here is a bad hack. 11882 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11883 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11884 cp "$export_symbols" "$output_objdir/$soname.def"; 11885 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11886 else 11887 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11888 fi~ 11889 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11890 linknames=' 11891 # The linker will not automatically build a static lib if we build a DLL. 11892 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11893 enable_shared_with_static_runtimes=yes 11894 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11895 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11896 # Don't use ranlib 11897 old_postinstall_cmds='chmod 644 $oldlib' 11898 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11899 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11900 case $lt_outputfile in 11901 *.exe|*.EXE) ;; 11902 *) 11903 lt_outputfile=$lt_outputfile.exe 11904 lt_tool_outputfile=$lt_tool_outputfile.exe 11905 ;; 11906 esac~ 11907 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11908 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11909 $RM "$lt_outputfile.manifest"; 11910 fi' 11911 ;; 11912 *) 11913 # Assume MSVC and ICC wrapper 11914 hardcode_libdir_flag_spec=' ' 11915 allow_undefined_flag=unsupported 11916 # Tell ltmain to make .lib files, not .a files. 11917 libext=lib 11918 # Tell ltmain to make .dll files, not .so files. 11919 shrext_cmds=.dll 11920 # FIXME: Setting linknames here is a bad hack. 11921 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11922 # The linker will automatically build a .lib file if we build a DLL. 11923 old_archive_from_new_cmds='true' 11924 # FIXME: Should let the user specify the lib program. 11925 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11926 enable_shared_with_static_runtimes=yes 11927 ;; 11928 esac 11929 ;; 11930 11931 darwin* | rhapsody*) 11932 11933 11934 archive_cmds_need_lc=no 11935 hardcode_direct=no 11936 hardcode_automatic=yes 11937 hardcode_shlibpath_var=unsupported 11938 if test yes = "$lt_cv_ld_force_load"; then 11939 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\"`' 11940 11941 else 11942 whole_archive_flag_spec='' 11943 fi 11944 link_all_deplibs=yes 11945 allow_undefined_flag=$_lt_dar_allow_undefined 11946 case $cc_basename in 11947 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11948 *) _lt_dar_can_shared=$GCC ;; 11949 esac 11950 if test yes = "$_lt_dar_can_shared"; then 11951 output_verbose_link_cmd=func_echo_all 11952 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11953 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11954 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" 11955 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" 11956 11957 else 11958 ld_shlibs=no 11959 fi 11960 11961 ;; 11962 11963 dgux*) 11964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11965 hardcode_libdir_flag_spec='-L$libdir' 11966 hardcode_shlibpath_var=no 11967 ;; 11968 11969 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11970 # support. Future versions do this automatically, but an explicit c++rt0.o 11971 # does not break anything, and helps significantly (at the cost of a little 11972 # extra space). 11973 freebsd2.2*) 11974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11975 hardcode_libdir_flag_spec='-R$libdir' 11976 hardcode_direct=yes 11977 hardcode_shlibpath_var=no 11978 ;; 11979 11980 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11981 freebsd2.*) 11982 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11983 hardcode_direct=yes 11984 hardcode_minus_L=yes 11985 hardcode_shlibpath_var=no 11986 ;; 11987 11988 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11989 freebsd* | dragonfly* | midnightbsd*) 11990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11991 hardcode_libdir_flag_spec='-R$libdir' 11992 hardcode_direct=yes 11993 hardcode_shlibpath_var=no 11994 ;; 11995 11996 hpux9*) 11997 if test yes = "$GCC"; then 11998 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11999 else 12000 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 12001 fi 12002 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12003 hardcode_libdir_separator=: 12004 hardcode_direct=yes 12005 12006 # hardcode_minus_L: Not really in the search PATH, 12007 # but as the default location of the library. 12008 hardcode_minus_L=yes 12009 export_dynamic_flag_spec='$wl-E' 12010 ;; 12011 12012 hpux10*) 12013 if test yes,no = "$GCC,$with_gnu_ld"; then 12014 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12015 else 12016 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12017 fi 12018 if test no = "$with_gnu_ld"; then 12019 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12020 hardcode_libdir_separator=: 12021 hardcode_direct=yes 12022 hardcode_direct_absolute=yes 12023 export_dynamic_flag_spec='$wl-E' 12024 # hardcode_minus_L: Not really in the search PATH, 12025 # but as the default location of the library. 12026 hardcode_minus_L=yes 12027 fi 12028 ;; 12029 12030 hpux11*) 12031 if test yes,no = "$GCC,$with_gnu_ld"; then 12032 case $host_cpu in 12033 hppa*64*) 12034 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12035 ;; 12036 ia64*) 12037 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12038 ;; 12039 *) 12040 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12041 ;; 12042 esac 12043 else 12044 case $host_cpu in 12045 hppa*64*) 12046 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12047 ;; 12048 ia64*) 12049 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12050 ;; 12051 *) 12052 12053 # Older versions of the 11.00 compiler do not understand -b yet 12054 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12056printf %s "checking if $CC understands -b... " >&6; } 12057if test ${lt_cv_prog_compiler__b+y} 12058then : 12059 printf %s "(cached) " >&6 12060else $as_nop 12061 lt_cv_prog_compiler__b=no 12062 save_LDFLAGS=$LDFLAGS 12063 LDFLAGS="$LDFLAGS -b" 12064 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12065 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12066 # The linker can only warn and ignore the option if not recognized 12067 # So say no if there are warnings 12068 if test -s conftest.err; then 12069 # Append any errors to the config.log. 12070 cat conftest.err 1>&5 12071 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12073 if diff conftest.exp conftest.er2 >/dev/null; then 12074 lt_cv_prog_compiler__b=yes 12075 fi 12076 else 12077 lt_cv_prog_compiler__b=yes 12078 fi 12079 fi 12080 $RM -r conftest* 12081 LDFLAGS=$save_LDFLAGS 12082 12083fi 12084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12085printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 12086 12087if test yes = "$lt_cv_prog_compiler__b"; then 12088 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12089else 12090 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12091fi 12092 12093 ;; 12094 esac 12095 fi 12096 if test no = "$with_gnu_ld"; then 12097 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12098 hardcode_libdir_separator=: 12099 12100 case $host_cpu in 12101 hppa*64*|ia64*) 12102 hardcode_direct=no 12103 hardcode_shlibpath_var=no 12104 ;; 12105 *) 12106 hardcode_direct=yes 12107 hardcode_direct_absolute=yes 12108 export_dynamic_flag_spec='$wl-E' 12109 12110 # hardcode_minus_L: Not really in the search PATH, 12111 # but as the default location of the library. 12112 hardcode_minus_L=yes 12113 ;; 12114 esac 12115 fi 12116 ;; 12117 12118 irix5* | irix6* | nonstopux*) 12119 if test yes = "$GCC"; then 12120 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' 12121 # Try to use the -exported_symbol ld option, if it does not 12122 # work, assume that -exports_file does not work either and 12123 # implicitly export all symbols. 12124 # This should be the same for all languages, so no per-tag cache variable. 12125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12126printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12127if test ${lt_cv_irix_exported_symbol+y} 12128then : 12129 printf %s "(cached) " >&6 12130else $as_nop 12131 save_LDFLAGS=$LDFLAGS 12132 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12134/* end confdefs.h. */ 12135int foo (void) { return 0; } 12136_ACEOF 12137if ac_fn_c_try_link "$LINENO" 12138then : 12139 lt_cv_irix_exported_symbol=yes 12140else $as_nop 12141 lt_cv_irix_exported_symbol=no 12142fi 12143rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12144 conftest$ac_exeext conftest.$ac_ext 12145 LDFLAGS=$save_LDFLAGS 12146fi 12147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12148printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 12149 if test yes = "$lt_cv_irix_exported_symbol"; then 12150 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' 12151 fi 12152 link_all_deplibs=no 12153 else 12154 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' 12155 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' 12156 fi 12157 archive_cmds_need_lc='no' 12158 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12159 hardcode_libdir_separator=: 12160 inherit_rpath=yes 12161 link_all_deplibs=yes 12162 ;; 12163 12164 linux*) 12165 case $cc_basename in 12166 tcc*) 12167 # Fabrice Bellard et al's Tiny C Compiler 12168 ld_shlibs=yes 12169 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12170 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12171 ;; 12172 esac 12173 ;; 12174 12175 netbsd* | netbsdelf*-gnu) 12176 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12177 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12178 else 12179 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12180 fi 12181 hardcode_libdir_flag_spec='-R$libdir' 12182 hardcode_direct=yes 12183 hardcode_shlibpath_var=no 12184 ;; 12185 12186 newsos6) 12187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12188 hardcode_direct=yes 12189 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12190 hardcode_libdir_separator=: 12191 hardcode_shlibpath_var=no 12192 ;; 12193 12194 *nto* | *qnx*) 12195 ;; 12196 12197 openbsd* | bitrig*) 12198 if test -f /usr/libexec/ld.so; then 12199 hardcode_direct=yes 12200 hardcode_shlibpath_var=no 12201 hardcode_direct_absolute=yes 12202 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12203 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12204 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12205 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12206 export_dynamic_flag_spec='$wl-E' 12207 else 12208 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12209 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12210 fi 12211 else 12212 ld_shlibs=no 12213 fi 12214 ;; 12215 12216 os2*) 12217 hardcode_libdir_flag_spec='-L$libdir' 12218 hardcode_minus_L=yes 12219 allow_undefined_flag=unsupported 12220 shrext_cmds=.dll 12221 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12222 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12223 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12224 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12225 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12226 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12227 emximp -o $lib $output_objdir/$libname.def' 12228 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12229 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12230 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12231 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12232 prefix_cmds="$SED"~ 12233 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12234 prefix_cmds="$prefix_cmds -e 1d"; 12235 fi~ 12236 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12237 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12238 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12239 emximp -o $lib $output_objdir/$libname.def' 12240 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12241 enable_shared_with_static_runtimes=yes 12242 file_list_spec='@' 12243 ;; 12244 12245 osf3*) 12246 if test yes = "$GCC"; then 12247 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12248 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' 12249 else 12250 allow_undefined_flag=' -expect_unresolved \*' 12251 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' 12252 fi 12253 archive_cmds_need_lc='no' 12254 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12255 hardcode_libdir_separator=: 12256 ;; 12257 12258 osf4* | osf5*) # as osf3* with the addition of -msym flag 12259 if test yes = "$GCC"; then 12260 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12261 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' 12262 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12263 else 12264 allow_undefined_flag=' -expect_unresolved \*' 12265 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' 12266 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~ 12267 $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' 12268 12269 # Both c and cxx compiler support -rpath directly 12270 hardcode_libdir_flag_spec='-rpath $libdir' 12271 fi 12272 archive_cmds_need_lc='no' 12273 hardcode_libdir_separator=: 12274 ;; 12275 12276 solaris*) 12277 no_undefined_flag=' -z defs' 12278 if test yes = "$GCC"; then 12279 wlarc='$wl' 12280 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12281 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12282 $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' 12283 else 12284 case `$CC -V 2>&1` in 12285 *"Compilers 5.0"*) 12286 wlarc='' 12287 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12288 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12289 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12290 ;; 12291 *) 12292 wlarc='$wl' 12293 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12294 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12295 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12296 ;; 12297 esac 12298 fi 12299 hardcode_libdir_flag_spec='-R$libdir' 12300 hardcode_shlibpath_var=no 12301 case $host_os in 12302 solaris2.[0-5] | solaris2.[0-5].*) ;; 12303 *) 12304 # The compiler driver will combine and reorder linker options, 12305 # but understands '-z linker_flag'. GCC discards it without '$wl', 12306 # but is careful enough not to reorder. 12307 # Supported since Solaris 2.6 (maybe 2.5.1?) 12308 if test yes = "$GCC"; then 12309 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12310 else 12311 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12312 fi 12313 ;; 12314 esac 12315 link_all_deplibs=yes 12316 ;; 12317 12318 sunos4*) 12319 if test sequent = "$host_vendor"; then 12320 # Use $CC to link under sequent, because it throws in some extra .o 12321 # files that make .init and .fini sections work. 12322 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12323 else 12324 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12325 fi 12326 hardcode_libdir_flag_spec='-L$libdir' 12327 hardcode_direct=yes 12328 hardcode_minus_L=yes 12329 hardcode_shlibpath_var=no 12330 ;; 12331 12332 sysv4) 12333 case $host_vendor in 12334 sni) 12335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12336 hardcode_direct=yes # is this really true??? 12337 ;; 12338 siemens) 12339 ## LD is ld it makes a PLAMLIB 12340 ## CC just makes a GrossModule. 12341 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12342 reload_cmds='$CC -r -o $output$reload_objs' 12343 hardcode_direct=no 12344 ;; 12345 motorola) 12346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12347 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12348 ;; 12349 esac 12350 runpath_var='LD_RUN_PATH' 12351 hardcode_shlibpath_var=no 12352 ;; 12353 12354 sysv4.3*) 12355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12356 hardcode_shlibpath_var=no 12357 export_dynamic_flag_spec='-Bexport' 12358 ;; 12359 12360 sysv4*MP*) 12361 if test -d /usr/nec; then 12362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12363 hardcode_shlibpath_var=no 12364 runpath_var=LD_RUN_PATH 12365 hardcode_runpath_var=yes 12366 ld_shlibs=yes 12367 fi 12368 ;; 12369 12370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12371 no_undefined_flag='$wl-z,text' 12372 archive_cmds_need_lc=no 12373 hardcode_shlibpath_var=no 12374 runpath_var='LD_RUN_PATH' 12375 12376 if test yes = "$GCC"; then 12377 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12378 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12379 else 12380 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12381 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12382 fi 12383 ;; 12384 12385 sysv5* | sco3.2v5* | sco5v6*) 12386 # Note: We CANNOT use -z defs as we might desire, because we do not 12387 # link with -lc, and that would cause any symbols used from libc to 12388 # always be unresolved, which means just about no library would 12389 # ever link correctly. If we're not using GNU ld we use -z text 12390 # though, which does catch some bad symbols but isn't as heavy-handed 12391 # as -z defs. 12392 no_undefined_flag='$wl-z,text' 12393 allow_undefined_flag='$wl-z,nodefs' 12394 archive_cmds_need_lc=no 12395 hardcode_shlibpath_var=no 12396 hardcode_libdir_flag_spec='$wl-R,$libdir' 12397 hardcode_libdir_separator=':' 12398 link_all_deplibs=yes 12399 export_dynamic_flag_spec='$wl-Bexport' 12400 runpath_var='LD_RUN_PATH' 12401 12402 if test yes = "$GCC"; then 12403 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12404 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12405 else 12406 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12407 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12408 fi 12409 ;; 12410 12411 uts4*) 12412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12413 hardcode_libdir_flag_spec='-L$libdir' 12414 hardcode_shlibpath_var=no 12415 ;; 12416 12417 *) 12418 ld_shlibs=no 12419 ;; 12420 esac 12421 12422 if test sni = "$host_vendor"; then 12423 case $host in 12424 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12425 export_dynamic_flag_spec='$wl-Blargedynsym' 12426 ;; 12427 esac 12428 fi 12429 fi 12430 12431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12432printf "%s\n" "$ld_shlibs" >&6; } 12433test no = "$ld_shlibs" && can_build_shared=no 12434 12435with_gnu_ld=$with_gnu_ld 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451# 12452# Do we need to explicitly link libc? 12453# 12454case "x$archive_cmds_need_lc" in 12455x|xyes) 12456 # Assume -lc should be added 12457 archive_cmds_need_lc=yes 12458 12459 if test yes,yes = "$GCC,$enable_shared"; then 12460 case $archive_cmds in 12461 *'~'*) 12462 # FIXME: we may have to deal with multi-command sequences. 12463 ;; 12464 '$CC '*) 12465 # Test whether the compiler implicitly links with -lc since on some 12466 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12467 # to ld, don't add -lc before -lgcc. 12468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12469printf %s "checking whether -lc should be explicitly linked in... " >&6; } 12470if test ${lt_cv_archive_cmds_need_lc+y} 12471then : 12472 printf %s "(cached) " >&6 12473else $as_nop 12474 $RM conftest* 12475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12476 12477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12478 (eval $ac_compile) 2>&5 12479 ac_status=$? 12480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12481 test $ac_status = 0; } 2>conftest.err; then 12482 soname=conftest 12483 lib=conftest 12484 libobjs=conftest.$ac_objext 12485 deplibs= 12486 wl=$lt_prog_compiler_wl 12487 pic_flag=$lt_prog_compiler_pic 12488 compiler_flags=-v 12489 linker_flags=-v 12490 verstring= 12491 output_objdir=. 12492 libname=conftest 12493 lt_save_allow_undefined_flag=$allow_undefined_flag 12494 allow_undefined_flag= 12495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12496 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12497 ac_status=$? 12498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12499 test $ac_status = 0; } 12500 then 12501 lt_cv_archive_cmds_need_lc=no 12502 else 12503 lt_cv_archive_cmds_need_lc=yes 12504 fi 12505 allow_undefined_flag=$lt_save_allow_undefined_flag 12506 else 12507 cat conftest.err 1>&5 12508 fi 12509 $RM conftest* 12510 12511fi 12512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12513printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 12514 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12515 ;; 12516 esac 12517 fi 12518 ;; 12519esac 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12673printf %s "checking dynamic linker characteristics... " >&6; } 12674 12675if test yes = "$GCC"; then 12676 case $host_os in 12677 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12678 *) lt_awk_arg='/^libraries:/' ;; 12679 esac 12680 case $host_os in 12681 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12682 *) lt_sed_strip_eq='s|=/|/|g' ;; 12683 esac 12684 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12685 case $lt_search_path_spec in 12686 *\;*) 12687 # if the path contains ";" then we assume it to be the separator 12688 # otherwise default to the standard path separator (i.e. ":") - it is 12689 # assumed that no part of a normal pathname contains ";" but that should 12690 # okay in the real world where ";" in dirpaths is itself problematic. 12691 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12692 ;; 12693 *) 12694 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12695 ;; 12696 esac 12697 # Ok, now we have the path, separated by spaces, we can step through it 12698 # and add multilib dir if necessary... 12699 lt_tmp_lt_search_path_spec= 12700 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12701 # ...but if some path component already ends with the multilib dir we assume 12702 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12703 case "$lt_multi_os_dir; $lt_search_path_spec " in 12704 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12705 lt_multi_os_dir= 12706 ;; 12707 esac 12708 for lt_sys_path in $lt_search_path_spec; do 12709 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12710 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12711 elif test -n "$lt_multi_os_dir"; then 12712 test -d "$lt_sys_path" && \ 12713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12714 fi 12715 done 12716 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12717BEGIN {RS = " "; FS = "/|\n";} { 12718 lt_foo = ""; 12719 lt_count = 0; 12720 for (lt_i = NF; lt_i > 0; lt_i--) { 12721 if ($lt_i != "" && $lt_i != ".") { 12722 if ($lt_i == "..") { 12723 lt_count++; 12724 } else { 12725 if (lt_count == 0) { 12726 lt_foo = "/" $lt_i lt_foo; 12727 } else { 12728 lt_count--; 12729 } 12730 } 12731 } 12732 } 12733 if (lt_foo != "") { lt_freq[lt_foo]++; } 12734 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12735}'` 12736 # AWK program above erroneously prepends '/' to C:/dos/paths 12737 # for these hosts. 12738 case $host_os in 12739 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12740 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12741 esac 12742 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12743else 12744 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12745fi 12746library_names_spec= 12747libname_spec='lib$name' 12748soname_spec= 12749shrext_cmds=.so 12750postinstall_cmds= 12751postuninstall_cmds= 12752finish_cmds= 12753finish_eval= 12754shlibpath_var= 12755shlibpath_overrides_runpath=unknown 12756version_type=none 12757dynamic_linker="$host_os ld.so" 12758sys_lib_dlsearch_path_spec="/lib /usr/lib" 12759need_lib_prefix=unknown 12760hardcode_into_libs=no 12761 12762# when you set need_version to no, make sure it does not cause -set_version 12763# flags to be left without arguments 12764need_version=unknown 12765 12766 12767 12768case $host_os in 12769aix3*) 12770 version_type=linux # correct to gnu/linux during the next big refactor 12771 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12772 shlibpath_var=LIBPATH 12773 12774 # AIX 3 has no versioning support, so we append a major version to the name. 12775 soname_spec='$libname$release$shared_ext$major' 12776 ;; 12777 12778aix[4-9]*) 12779 version_type=linux # correct to gnu/linux during the next big refactor 12780 need_lib_prefix=no 12781 need_version=no 12782 hardcode_into_libs=yes 12783 if test ia64 = "$host_cpu"; then 12784 # AIX 5 supports IA64 12785 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12786 shlibpath_var=LD_LIBRARY_PATH 12787 else 12788 # With GCC up to 2.95.x, collect2 would create an import file 12789 # for dependence libraries. The import file would start with 12790 # the line '#! .'. This would cause the generated library to 12791 # depend on '.', always an invalid library. This was fixed in 12792 # development snapshots of GCC prior to 3.0. 12793 case $host_os in 12794 aix4 | aix4.[01] | aix4.[01].*) 12795 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12796 echo ' yes ' 12797 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12798 : 12799 else 12800 can_build_shared=no 12801 fi 12802 ;; 12803 esac 12804 # Using Import Files as archive members, it is possible to support 12805 # filename-based versioning of shared library archives on AIX. While 12806 # this would work for both with and without runtime linking, it will 12807 # prevent static linking of such archives. So we do filename-based 12808 # shared library versioning with .so extension only, which is used 12809 # when both runtime linking and shared linking is enabled. 12810 # Unfortunately, runtime linking may impact performance, so we do 12811 # not want this to be the default eventually. Also, we use the 12812 # versioned .so libs for executables only if there is the -brtl 12813 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12814 # To allow for filename-based versioning support, we need to create 12815 # libNAME.so.V as an archive file, containing: 12816 # *) an Import File, referring to the versioned filename of the 12817 # archive as well as the shared archive member, telling the 12818 # bitwidth (32 or 64) of that shared object, and providing the 12819 # list of exported symbols of that shared object, eventually 12820 # decorated with the 'weak' keyword 12821 # *) the shared object with the F_LOADONLY flag set, to really avoid 12822 # it being seen by the linker. 12823 # At run time we better use the real file rather than another symlink, 12824 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12825 12826 case $with_aix_soname,$aix_use_runtimelinking in 12827 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12828 # soname into executable. Probably we can add versioning support to 12829 # collect2, so additional links can be useful in future. 12830 aix,yes) # traditional libtool 12831 dynamic_linker='AIX unversionable lib.so' 12832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12833 # instead of lib<name>.a to let people know that these are not 12834 # typical AIX shared libraries. 12835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12836 ;; 12837 aix,no) # traditional AIX only 12838 dynamic_linker='AIX lib.a(lib.so.V)' 12839 # We preserve .a as extension for shared libraries through AIX4.2 12840 # and later when we are not doing run time linking. 12841 library_names_spec='$libname$release.a $libname.a' 12842 soname_spec='$libname$release$shared_ext$major' 12843 ;; 12844 svr4,*) # full svr4 only 12845 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12846 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12847 # We do not specify a path in Import Files, so LIBPATH fires. 12848 shlibpath_overrides_runpath=yes 12849 ;; 12850 *,yes) # both, prefer svr4 12851 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12852 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12853 # unpreferred sharedlib libNAME.a needs extra handling 12854 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12855 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12856 # We do not specify a path in Import Files, so LIBPATH fires. 12857 shlibpath_overrides_runpath=yes 12858 ;; 12859 *,no) # both, prefer aix 12860 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12861 library_names_spec='$libname$release.a $libname.a' 12862 soname_spec='$libname$release$shared_ext$major' 12863 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12864 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12865 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12866 ;; 12867 esac 12868 shlibpath_var=LIBPATH 12869 fi 12870 ;; 12871 12872amigaos*) 12873 case $host_cpu in 12874 powerpc) 12875 # Since July 2007 AmigaOS4 officially supports .so libraries. 12876 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12878 ;; 12879 m68k) 12880 library_names_spec='$libname.ixlibrary $libname.a' 12881 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12882 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 12883 ;; 12884 esac 12885 ;; 12886 12887beos*) 12888 library_names_spec='$libname$shared_ext' 12889 dynamic_linker="$host_os ld.so" 12890 shlibpath_var=LIBRARY_PATH 12891 ;; 12892 12893bsdi[45]*) 12894 version_type=linux # correct to gnu/linux during the next big refactor 12895 need_version=no 12896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12897 soname_spec='$libname$release$shared_ext$major' 12898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12899 shlibpath_var=LD_LIBRARY_PATH 12900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12902 # the default ld.so.conf also contains /usr/contrib/lib and 12903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12904 # libtool to hard-code these into programs 12905 ;; 12906 12907cygwin* | mingw* | pw32* | cegcc*) 12908 version_type=windows 12909 shrext_cmds=.dll 12910 need_version=no 12911 need_lib_prefix=no 12912 12913 case $GCC,$cc_basename in 12914 yes,*) 12915 # gcc 12916 library_names_spec='$libname.dll.a' 12917 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12918 postinstall_cmds='base_file=`basename \$file`~ 12919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12920 dldir=$destdir/`dirname \$dlpath`~ 12921 test -d \$dldir || mkdir -p \$dldir~ 12922 $install_prog $dir/$dlname \$dldir/$dlname~ 12923 chmod a+x \$dldir/$dlname~ 12924 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12925 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12926 fi' 12927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12928 dlpath=$dir/\$dldll~ 12929 $RM \$dlpath' 12930 shlibpath_overrides_runpath=yes 12931 12932 case $host_os in 12933 cygwin*) 12934 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12935 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12936 12937 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12938 ;; 12939 mingw* | cegcc*) 12940 # MinGW DLLs use traditional 'lib' prefix 12941 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12942 ;; 12943 pw32*) 12944 # pw32 DLLs use 'pw' prefix rather than 'lib' 12945 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12946 ;; 12947 esac 12948 dynamic_linker='Win32 ld.exe' 12949 ;; 12950 12951 *,cl* | *,icl*) 12952 # Native MSVC or ICC 12953 libname_spec='$name' 12954 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12955 library_names_spec='$libname.dll.lib' 12956 12957 case $build_os in 12958 mingw*) 12959 sys_lib_search_path_spec= 12960 lt_save_ifs=$IFS 12961 IFS=';' 12962 for lt_path in $LIB 12963 do 12964 IFS=$lt_save_ifs 12965 # Let DOS variable expansion print the short 8.3 style file name. 12966 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12967 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12968 done 12969 IFS=$lt_save_ifs 12970 # Convert to MSYS style. 12971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12972 ;; 12973 cygwin*) 12974 # Convert to unix form, then to dos form, then back to unix form 12975 # but this time dos style (no spaces!) so that the unix form looks 12976 # like /cygdrive/c/PROGRA~1:/cygdr... 12977 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12978 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12979 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12980 ;; 12981 *) 12982 sys_lib_search_path_spec=$LIB 12983 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12984 # It is most probably a Windows format PATH. 12985 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12986 else 12987 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12988 fi 12989 # FIXME: find the short name or the path components, as spaces are 12990 # common. (e.g. "Program Files" -> "PROGRA~1") 12991 ;; 12992 esac 12993 12994 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12995 postinstall_cmds='base_file=`basename \$file`~ 12996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12997 dldir=$destdir/`dirname \$dlpath`~ 12998 test -d \$dldir || mkdir -p \$dldir~ 12999 $install_prog $dir/$dlname \$dldir/$dlname' 13000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13001 dlpath=$dir/\$dldll~ 13002 $RM \$dlpath' 13003 shlibpath_overrides_runpath=yes 13004 dynamic_linker='Win32 link.exe' 13005 ;; 13006 13007 *) 13008 # Assume MSVC and ICC wrapper 13009 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13010 dynamic_linker='Win32 ld.exe' 13011 ;; 13012 esac 13013 # FIXME: first we should search . and the directory the executable is in 13014 shlibpath_var=PATH 13015 ;; 13016 13017darwin* | rhapsody*) 13018 dynamic_linker="$host_os dyld" 13019 version_type=darwin 13020 need_lib_prefix=no 13021 need_version=no 13022 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13023 soname_spec='$libname$release$major$shared_ext' 13024 shlibpath_overrides_runpath=yes 13025 shlibpath_var=DYLD_LIBRARY_PATH 13026 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13027 13028 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13029 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13030 ;; 13031 13032dgux*) 13033 version_type=linux # correct to gnu/linux during the next big refactor 13034 need_lib_prefix=no 13035 need_version=no 13036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13037 soname_spec='$libname$release$shared_ext$major' 13038 shlibpath_var=LD_LIBRARY_PATH 13039 ;; 13040 13041freebsd* | dragonfly* | midnightbsd*) 13042 # DragonFly does not have aout. When/if they implement a new 13043 # versioning mechanism, adjust this. 13044 if test -x /usr/bin/objformat; then 13045 objformat=`/usr/bin/objformat` 13046 else 13047 case $host_os in 13048 freebsd[23].*) objformat=aout ;; 13049 *) objformat=elf ;; 13050 esac 13051 fi 13052 version_type=freebsd-$objformat 13053 case $version_type in 13054 freebsd-elf*) 13055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13056 soname_spec='$libname$release$shared_ext$major' 13057 need_version=no 13058 need_lib_prefix=no 13059 ;; 13060 freebsd-*) 13061 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13062 need_version=yes 13063 ;; 13064 esac 13065 shlibpath_var=LD_LIBRARY_PATH 13066 case $host_os in 13067 freebsd2.*) 13068 shlibpath_overrides_runpath=yes 13069 ;; 13070 freebsd3.[01]* | freebsdelf3.[01]*) 13071 shlibpath_overrides_runpath=yes 13072 hardcode_into_libs=yes 13073 ;; 13074 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13075 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13076 shlibpath_overrides_runpath=no 13077 hardcode_into_libs=yes 13078 ;; 13079 *) # from 4.6 on, and DragonFly 13080 shlibpath_overrides_runpath=yes 13081 hardcode_into_libs=yes 13082 ;; 13083 esac 13084 ;; 13085 13086haiku*) 13087 version_type=linux # correct to gnu/linux during the next big refactor 13088 need_lib_prefix=no 13089 need_version=no 13090 dynamic_linker="$host_os runtime_loader" 13091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13092 soname_spec='$libname$release$shared_ext$major' 13093 shlibpath_var=LIBRARY_PATH 13094 shlibpath_overrides_runpath=no 13095 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13096 hardcode_into_libs=yes 13097 ;; 13098 13099hpux9* | hpux10* | hpux11*) 13100 # Give a soname corresponding to the major version so that dld.sl refuses to 13101 # link against other versions. 13102 version_type=sunos 13103 need_lib_prefix=no 13104 need_version=no 13105 case $host_cpu in 13106 ia64*) 13107 shrext_cmds='.so' 13108 hardcode_into_libs=yes 13109 dynamic_linker="$host_os dld.so" 13110 shlibpath_var=LD_LIBRARY_PATH 13111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13113 soname_spec='$libname$release$shared_ext$major' 13114 if test 32 = "$HPUX_IA64_MODE"; then 13115 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13116 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13117 else 13118 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13119 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13120 fi 13121 ;; 13122 hppa*64*) 13123 shrext_cmds='.sl' 13124 hardcode_into_libs=yes 13125 dynamic_linker="$host_os dld.sl" 13126 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13128 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13129 soname_spec='$libname$release$shared_ext$major' 13130 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13132 ;; 13133 *) 13134 shrext_cmds='.sl' 13135 dynamic_linker="$host_os dld.sl" 13136 shlibpath_var=SHLIB_PATH 13137 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13139 soname_spec='$libname$release$shared_ext$major' 13140 ;; 13141 esac 13142 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13143 postinstall_cmds='chmod 555 $lib' 13144 # or fails outright, so override atomically: 13145 install_override_mode=555 13146 ;; 13147 13148interix[3-9]*) 13149 version_type=linux # correct to gnu/linux during the next big refactor 13150 need_lib_prefix=no 13151 need_version=no 13152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13153 soname_spec='$libname$release$shared_ext$major' 13154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13155 shlibpath_var=LD_LIBRARY_PATH 13156 shlibpath_overrides_runpath=no 13157 hardcode_into_libs=yes 13158 ;; 13159 13160irix5* | irix6* | nonstopux*) 13161 case $host_os in 13162 nonstopux*) version_type=nonstopux ;; 13163 *) 13164 if test yes = "$lt_cv_prog_gnu_ld"; then 13165 version_type=linux # correct to gnu/linux during the next big refactor 13166 else 13167 version_type=irix 13168 fi ;; 13169 esac 13170 need_lib_prefix=no 13171 need_version=no 13172 soname_spec='$libname$release$shared_ext$major' 13173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13174 case $host_os in 13175 irix5* | nonstopux*) 13176 libsuff= shlibsuff= 13177 ;; 13178 *) 13179 case $LD in # libtool.m4 will add one of these switches to LD 13180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13181 libsuff= shlibsuff= libmagic=32-bit;; 13182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13183 libsuff=32 shlibsuff=N32 libmagic=N32;; 13184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13185 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13186 *) libsuff= shlibsuff= libmagic=never-match;; 13187 esac 13188 ;; 13189 esac 13190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13191 shlibpath_overrides_runpath=no 13192 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13193 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13194 hardcode_into_libs=yes 13195 ;; 13196 13197# No shared lib support for Linux oldld, aout, or coff. 13198linux*oldld* | linux*aout* | linux*coff*) 13199 dynamic_linker=no 13200 ;; 13201 13202linux*android*) 13203 version_type=none # Android doesn't support versioned libraries. 13204 need_lib_prefix=no 13205 need_version=no 13206 library_names_spec='$libname$release$shared_ext' 13207 soname_spec='$libname$release$shared_ext' 13208 finish_cmds= 13209 shlibpath_var=LD_LIBRARY_PATH 13210 shlibpath_overrides_runpath=yes 13211 13212 # This implies no fast_install, which is unacceptable. 13213 # Some rework will be needed to allow for fast_install 13214 # before this can be enabled. 13215 hardcode_into_libs=yes 13216 13217 dynamic_linker='Android linker' 13218 # Don't embed -rpath directories since the linker doesn't support them. 13219 hardcode_libdir_flag_spec='-L$libdir' 13220 ;; 13221 13222# This must be glibc/ELF. 13223linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13224 version_type=linux # correct to gnu/linux during the next big refactor 13225 need_lib_prefix=no 13226 need_version=no 13227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13228 soname_spec='$libname$release$shared_ext$major' 13229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13230 shlibpath_var=LD_LIBRARY_PATH 13231 shlibpath_overrides_runpath=no 13232 13233 # Some binutils ld are patched to set DT_RUNPATH 13234 if test ${lt_cv_shlibpath_overrides_runpath+y} 13235then : 13236 printf %s "(cached) " >&6 13237else $as_nop 13238 lt_cv_shlibpath_overrides_runpath=no 13239 save_LDFLAGS=$LDFLAGS 13240 save_libdir=$libdir 13241 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13242 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13244/* end confdefs.h. */ 13245 13246int 13247main (void) 13248{ 13249 13250 ; 13251 return 0; 13252} 13253_ACEOF 13254if ac_fn_c_try_link "$LINENO" 13255then : 13256 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 13257then : 13258 lt_cv_shlibpath_overrides_runpath=yes 13259fi 13260fi 13261rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13262 conftest$ac_exeext conftest.$ac_ext 13263 LDFLAGS=$save_LDFLAGS 13264 libdir=$save_libdir 13265 13266fi 13267 13268 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13269 13270 # This implies no fast_install, which is unacceptable. 13271 # Some rework will be needed to allow for fast_install 13272 # before this can be enabled. 13273 hardcode_into_libs=yes 13274 13275 # Ideally, we could use ldconfig to report *all* directores which are 13276 # searched for libraries, however this is still not possible. Aside from not 13277 # being certain /sbin/ldconfig is available, command 13278 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13279 # even though it is searched at run-time. Try to do the best guess by 13280 # appending ld.so.conf contents (and includes) to the search path. 13281 if test -f /etc/ld.so.conf; then 13282 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' ' '` 13283 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13284 fi 13285 13286 # We used to test for /lib/ld.so.1 and disable shared libraries on 13287 # powerpc, because MkLinux only supported shared libraries with the 13288 # GNU dynamic linker. Since this was broken with cross compilers, 13289 # most powerpc-linux boxes support dynamic linking these days and 13290 # people can always --disable-shared, the test was removed, and we 13291 # assume the GNU/Linux dynamic linker is in use. 13292 dynamic_linker='GNU/Linux ld.so' 13293 ;; 13294 13295netbsdelf*-gnu) 13296 version_type=linux 13297 need_lib_prefix=no 13298 need_version=no 13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13300 soname_spec='${libname}${release}${shared_ext}$major' 13301 shlibpath_var=LD_LIBRARY_PATH 13302 shlibpath_overrides_runpath=no 13303 hardcode_into_libs=yes 13304 dynamic_linker='NetBSD ld.elf_so' 13305 ;; 13306 13307netbsd*) 13308 version_type=sunos 13309 need_lib_prefix=no 13310 need_version=no 13311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13312 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13314 dynamic_linker='NetBSD (a.out) ld.so' 13315 else 13316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13317 soname_spec='$libname$release$shared_ext$major' 13318 dynamic_linker='NetBSD ld.elf_so' 13319 fi 13320 shlibpath_var=LD_LIBRARY_PATH 13321 shlibpath_overrides_runpath=yes 13322 hardcode_into_libs=yes 13323 ;; 13324 13325newsos6) 13326 version_type=linux # correct to gnu/linux during the next big refactor 13327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13328 shlibpath_var=LD_LIBRARY_PATH 13329 shlibpath_overrides_runpath=yes 13330 ;; 13331 13332*nto* | *qnx*) 13333 version_type=qnx 13334 need_lib_prefix=no 13335 need_version=no 13336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13337 soname_spec='$libname$release$shared_ext$major' 13338 shlibpath_var=LD_LIBRARY_PATH 13339 shlibpath_overrides_runpath=no 13340 hardcode_into_libs=yes 13341 dynamic_linker='ldqnx.so' 13342 ;; 13343 13344openbsd* | bitrig*) 13345 version_type=sunos 13346 sys_lib_dlsearch_path_spec=/usr/lib 13347 need_lib_prefix=no 13348 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13349 need_version=no 13350 else 13351 need_version=yes 13352 fi 13353 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13355 shlibpath_var=LD_LIBRARY_PATH 13356 shlibpath_overrides_runpath=yes 13357 ;; 13358 13359os2*) 13360 libname_spec='$name' 13361 version_type=windows 13362 shrext_cmds=.dll 13363 need_version=no 13364 need_lib_prefix=no 13365 # OS/2 can only load a DLL with a base name of 8 characters or less. 13366 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13367 v=$($ECHO $release$versuffix | tr -d .-); 13368 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13369 $ECHO $n$v`$shared_ext' 13370 library_names_spec='${libname}_dll.$libext' 13371 dynamic_linker='OS/2 ld.exe' 13372 shlibpath_var=BEGINLIBPATH 13373 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13375 postinstall_cmds='base_file=`basename \$file`~ 13376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13377 dldir=$destdir/`dirname \$dlpath`~ 13378 test -d \$dldir || mkdir -p \$dldir~ 13379 $install_prog $dir/$dlname \$dldir/$dlname~ 13380 chmod a+x \$dldir/$dlname~ 13381 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13382 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13383 fi' 13384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13385 dlpath=$dir/\$dldll~ 13386 $RM \$dlpath' 13387 ;; 13388 13389osf3* | osf4* | osf5*) 13390 version_type=osf 13391 need_lib_prefix=no 13392 need_version=no 13393 soname_spec='$libname$release$shared_ext$major' 13394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13395 shlibpath_var=LD_LIBRARY_PATH 13396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13398 ;; 13399 13400rdos*) 13401 dynamic_linker=no 13402 ;; 13403 13404solaris*) 13405 version_type=linux # correct to gnu/linux during the next big refactor 13406 need_lib_prefix=no 13407 need_version=no 13408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13409 soname_spec='$libname$release$shared_ext$major' 13410 shlibpath_var=LD_LIBRARY_PATH 13411 shlibpath_overrides_runpath=yes 13412 hardcode_into_libs=yes 13413 # ldd complains unless libraries are executable 13414 postinstall_cmds='chmod +x $lib' 13415 ;; 13416 13417sunos4*) 13418 version_type=sunos 13419 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13420 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13421 shlibpath_var=LD_LIBRARY_PATH 13422 shlibpath_overrides_runpath=yes 13423 if test yes = "$with_gnu_ld"; then 13424 need_lib_prefix=no 13425 fi 13426 need_version=yes 13427 ;; 13428 13429sysv4 | sysv4.3*) 13430 version_type=linux # correct to gnu/linux during the next big refactor 13431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13432 soname_spec='$libname$release$shared_ext$major' 13433 shlibpath_var=LD_LIBRARY_PATH 13434 case $host_vendor in 13435 sni) 13436 shlibpath_overrides_runpath=no 13437 need_lib_prefix=no 13438 runpath_var=LD_RUN_PATH 13439 ;; 13440 siemens) 13441 need_lib_prefix=no 13442 ;; 13443 motorola) 13444 need_lib_prefix=no 13445 need_version=no 13446 shlibpath_overrides_runpath=no 13447 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13448 ;; 13449 esac 13450 ;; 13451 13452sysv4*MP*) 13453 if test -d /usr/nec; then 13454 version_type=linux # correct to gnu/linux during the next big refactor 13455 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13456 soname_spec='$libname$shared_ext.$major' 13457 shlibpath_var=LD_LIBRARY_PATH 13458 fi 13459 ;; 13460 13461sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13462 version_type=sco 13463 need_lib_prefix=no 13464 need_version=no 13465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13466 soname_spec='$libname$release$shared_ext$major' 13467 shlibpath_var=LD_LIBRARY_PATH 13468 shlibpath_overrides_runpath=yes 13469 hardcode_into_libs=yes 13470 if test yes = "$with_gnu_ld"; then 13471 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13472 else 13473 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13474 case $host_os in 13475 sco3.2v5*) 13476 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13477 ;; 13478 esac 13479 fi 13480 sys_lib_dlsearch_path_spec='/usr/lib' 13481 ;; 13482 13483tpf*) 13484 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13485 version_type=linux # correct to gnu/linux during the next big refactor 13486 need_lib_prefix=no 13487 need_version=no 13488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13489 shlibpath_var=LD_LIBRARY_PATH 13490 shlibpath_overrides_runpath=no 13491 hardcode_into_libs=yes 13492 ;; 13493 13494uts4*) 13495 version_type=linux # correct to gnu/linux during the next big refactor 13496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13497 soname_spec='$libname$release$shared_ext$major' 13498 shlibpath_var=LD_LIBRARY_PATH 13499 ;; 13500 13501*) 13502 dynamic_linker=no 13503 ;; 13504esac 13505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13506printf "%s\n" "$dynamic_linker" >&6; } 13507test no = "$dynamic_linker" && can_build_shared=no 13508 13509variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13510if test yes = "$GCC"; then 13511 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13512fi 13513 13514if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13515 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13516fi 13517 13518if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13519 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13520fi 13521 13522# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13523configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13524 13525# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13526func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13527 13528# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13529configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13628printf %s "checking how to hardcode library paths into programs... " >&6; } 13629hardcode_action= 13630if test -n "$hardcode_libdir_flag_spec" || 13631 test -n "$runpath_var" || 13632 test yes = "$hardcode_automatic"; then 13633 13634 # We can hardcode non-existent directories. 13635 if test no != "$hardcode_direct" && 13636 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13637 # have to relink, otherwise we might link with an installed library 13638 # when we should be linking with a yet-to-be-installed one 13639 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13640 test no != "$hardcode_minus_L"; then 13641 # Linking always hardcodes the temporary library directory. 13642 hardcode_action=relink 13643 else 13644 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13645 hardcode_action=immediate 13646 fi 13647else 13648 # We cannot hardcode anything, or else we can only hardcode existing 13649 # directories. 13650 hardcode_action=unsupported 13651fi 13652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13653printf "%s\n" "$hardcode_action" >&6; } 13654 13655if test relink = "$hardcode_action" || 13656 test yes = "$inherit_rpath"; then 13657 # Fast installation is not supported 13658 enable_fast_install=no 13659elif test yes = "$shlibpath_overrides_runpath" || 13660 test no = "$enable_shared"; then 13661 # Fast installation is not necessary 13662 enable_fast_install=needless 13663fi 13664 13665 13666 13667 13668 13669 13670 if test yes != "$enable_dlopen"; then 13671 enable_dlopen=unknown 13672 enable_dlopen_self=unknown 13673 enable_dlopen_self_static=unknown 13674else 13675 lt_cv_dlopen=no 13676 lt_cv_dlopen_libs= 13677 13678 case $host_os in 13679 beos*) 13680 lt_cv_dlopen=load_add_on 13681 lt_cv_dlopen_libs= 13682 lt_cv_dlopen_self=yes 13683 ;; 13684 13685 mingw* | pw32* | cegcc*) 13686 lt_cv_dlopen=LoadLibrary 13687 lt_cv_dlopen_libs= 13688 ;; 13689 13690 cygwin*) 13691 lt_cv_dlopen=dlopen 13692 lt_cv_dlopen_libs= 13693 ;; 13694 13695 darwin*) 13696 # if libdl is installed we need to link against it 13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13698printf %s "checking for dlopen in -ldl... " >&6; } 13699if test ${ac_cv_lib_dl_dlopen+y} 13700then : 13701 printf %s "(cached) " >&6 13702else $as_nop 13703 ac_check_lib_save_LIBS=$LIBS 13704LIBS="-ldl $LIBS" 13705cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13706/* end confdefs.h. */ 13707 13708/* Override any GCC internal prototype to avoid an error. 13709 Use char because int might match the return type of a GCC 13710 builtin and then its argument prototype would still apply. */ 13711#ifdef __cplusplus 13712extern "C" 13713#endif 13714char dlopen (); 13715int 13716main (void) 13717{ 13718return dlopen (); 13719 ; 13720 return 0; 13721} 13722_ACEOF 13723if ac_fn_c_try_link "$LINENO" 13724then : 13725 ac_cv_lib_dl_dlopen=yes 13726else $as_nop 13727 ac_cv_lib_dl_dlopen=no 13728fi 13729rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13730 conftest$ac_exeext conftest.$ac_ext 13731LIBS=$ac_check_lib_save_LIBS 13732fi 13733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13734printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13735if test "x$ac_cv_lib_dl_dlopen" = xyes 13736then : 13737 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13738else $as_nop 13739 13740 lt_cv_dlopen=dyld 13741 lt_cv_dlopen_libs= 13742 lt_cv_dlopen_self=yes 13743 13744fi 13745 13746 ;; 13747 13748 tpf*) 13749 # Don't try to run any link tests for TPF. We know it's impossible 13750 # because TPF is a cross-compiler, and we know how we open DSOs. 13751 lt_cv_dlopen=dlopen 13752 lt_cv_dlopen_libs= 13753 lt_cv_dlopen_self=no 13754 ;; 13755 13756 *) 13757 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13758if test "x$ac_cv_func_shl_load" = xyes 13759then : 13760 lt_cv_dlopen=shl_load 13761else $as_nop 13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13763printf %s "checking for shl_load in -ldld... " >&6; } 13764if test ${ac_cv_lib_dld_shl_load+y} 13765then : 13766 printf %s "(cached) " >&6 13767else $as_nop 13768 ac_check_lib_save_LIBS=$LIBS 13769LIBS="-ldld $LIBS" 13770cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13771/* end confdefs.h. */ 13772 13773/* Override any GCC internal prototype to avoid an error. 13774 Use char because int might match the return type of a GCC 13775 builtin and then its argument prototype would still apply. */ 13776#ifdef __cplusplus 13777extern "C" 13778#endif 13779char shl_load (); 13780int 13781main (void) 13782{ 13783return shl_load (); 13784 ; 13785 return 0; 13786} 13787_ACEOF 13788if ac_fn_c_try_link "$LINENO" 13789then : 13790 ac_cv_lib_dld_shl_load=yes 13791else $as_nop 13792 ac_cv_lib_dld_shl_load=no 13793fi 13794rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13795 conftest$ac_exeext conftest.$ac_ext 13796LIBS=$ac_check_lib_save_LIBS 13797fi 13798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13799printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13800if test "x$ac_cv_lib_dld_shl_load" = xyes 13801then : 13802 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13803else $as_nop 13804 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13805if test "x$ac_cv_func_dlopen" = xyes 13806then : 13807 lt_cv_dlopen=dlopen 13808else $as_nop 13809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13810printf %s "checking for dlopen in -ldl... " >&6; } 13811if test ${ac_cv_lib_dl_dlopen+y} 13812then : 13813 printf %s "(cached) " >&6 13814else $as_nop 13815 ac_check_lib_save_LIBS=$LIBS 13816LIBS="-ldl $LIBS" 13817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818/* end confdefs.h. */ 13819 13820/* Override any GCC internal prototype to avoid an error. 13821 Use char because int might match the return type of a GCC 13822 builtin and then its argument prototype would still apply. */ 13823#ifdef __cplusplus 13824extern "C" 13825#endif 13826char dlopen (); 13827int 13828main (void) 13829{ 13830return dlopen (); 13831 ; 13832 return 0; 13833} 13834_ACEOF 13835if ac_fn_c_try_link "$LINENO" 13836then : 13837 ac_cv_lib_dl_dlopen=yes 13838else $as_nop 13839 ac_cv_lib_dl_dlopen=no 13840fi 13841rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13842 conftest$ac_exeext conftest.$ac_ext 13843LIBS=$ac_check_lib_save_LIBS 13844fi 13845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13846printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13847if test "x$ac_cv_lib_dl_dlopen" = xyes 13848then : 13849 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13850else $as_nop 13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13852printf %s "checking for dlopen in -lsvld... " >&6; } 13853if test ${ac_cv_lib_svld_dlopen+y} 13854then : 13855 printf %s "(cached) " >&6 13856else $as_nop 13857 ac_check_lib_save_LIBS=$LIBS 13858LIBS="-lsvld $LIBS" 13859cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13860/* end confdefs.h. */ 13861 13862/* Override any GCC internal prototype to avoid an error. 13863 Use char because int might match the return type of a GCC 13864 builtin and then its argument prototype would still apply. */ 13865#ifdef __cplusplus 13866extern "C" 13867#endif 13868char dlopen (); 13869int 13870main (void) 13871{ 13872return dlopen (); 13873 ; 13874 return 0; 13875} 13876_ACEOF 13877if ac_fn_c_try_link "$LINENO" 13878then : 13879 ac_cv_lib_svld_dlopen=yes 13880else $as_nop 13881 ac_cv_lib_svld_dlopen=no 13882fi 13883rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13884 conftest$ac_exeext conftest.$ac_ext 13885LIBS=$ac_check_lib_save_LIBS 13886fi 13887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13888printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13889if test "x$ac_cv_lib_svld_dlopen" = xyes 13890then : 13891 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13892else $as_nop 13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13894printf %s "checking for dld_link in -ldld... " >&6; } 13895if test ${ac_cv_lib_dld_dld_link+y} 13896then : 13897 printf %s "(cached) " >&6 13898else $as_nop 13899 ac_check_lib_save_LIBS=$LIBS 13900LIBS="-ldld $LIBS" 13901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13902/* end confdefs.h. */ 13903 13904/* Override any GCC internal prototype to avoid an error. 13905 Use char because int might match the return type of a GCC 13906 builtin and then its argument prototype would still apply. */ 13907#ifdef __cplusplus 13908extern "C" 13909#endif 13910char dld_link (); 13911int 13912main (void) 13913{ 13914return dld_link (); 13915 ; 13916 return 0; 13917} 13918_ACEOF 13919if ac_fn_c_try_link "$LINENO" 13920then : 13921 ac_cv_lib_dld_dld_link=yes 13922else $as_nop 13923 ac_cv_lib_dld_dld_link=no 13924fi 13925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13926 conftest$ac_exeext conftest.$ac_ext 13927LIBS=$ac_check_lib_save_LIBS 13928fi 13929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13930printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13931if test "x$ac_cv_lib_dld_dld_link" = xyes 13932then : 13933 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13934fi 13935 13936 13937fi 13938 13939 13940fi 13941 13942 13943fi 13944 13945 13946fi 13947 13948 13949fi 13950 13951 ;; 13952 esac 13953 13954 if test no = "$lt_cv_dlopen"; then 13955 enable_dlopen=no 13956 else 13957 enable_dlopen=yes 13958 fi 13959 13960 case $lt_cv_dlopen in 13961 dlopen) 13962 save_CPPFLAGS=$CPPFLAGS 13963 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13964 13965 save_LDFLAGS=$LDFLAGS 13966 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13967 13968 save_LIBS=$LIBS 13969 LIBS="$lt_cv_dlopen_libs $LIBS" 13970 13971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13972printf %s "checking whether a program can dlopen itself... " >&6; } 13973if test ${lt_cv_dlopen_self+y} 13974then : 13975 printf %s "(cached) " >&6 13976else $as_nop 13977 if test yes = "$cross_compiling"; then : 13978 lt_cv_dlopen_self=cross 13979else 13980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13981 lt_status=$lt_dlunknown 13982 cat > conftest.$ac_ext <<_LT_EOF 13983#line $LINENO "configure" 13984#include "confdefs.h" 13985 13986#if HAVE_DLFCN_H 13987#include <dlfcn.h> 13988#endif 13989 13990#include <stdio.h> 13991 13992#ifdef RTLD_GLOBAL 13993# define LT_DLGLOBAL RTLD_GLOBAL 13994#else 13995# ifdef DL_GLOBAL 13996# define LT_DLGLOBAL DL_GLOBAL 13997# else 13998# define LT_DLGLOBAL 0 13999# endif 14000#endif 14001 14002/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14003 find out it does not work in some platform. */ 14004#ifndef LT_DLLAZY_OR_NOW 14005# ifdef RTLD_LAZY 14006# define LT_DLLAZY_OR_NOW RTLD_LAZY 14007# else 14008# ifdef DL_LAZY 14009# define LT_DLLAZY_OR_NOW DL_LAZY 14010# else 14011# ifdef RTLD_NOW 14012# define LT_DLLAZY_OR_NOW RTLD_NOW 14013# else 14014# ifdef DL_NOW 14015# define LT_DLLAZY_OR_NOW DL_NOW 14016# else 14017# define LT_DLLAZY_OR_NOW 0 14018# endif 14019# endif 14020# endif 14021# endif 14022#endif 14023 14024/* When -fvisibility=hidden is used, assume the code has been annotated 14025 correspondingly for the symbols needed. */ 14026#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14027int fnord () __attribute__((visibility("default"))); 14028#endif 14029 14030int fnord () { return 42; } 14031int main () 14032{ 14033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14034 int status = $lt_dlunknown; 14035 14036 if (self) 14037 { 14038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14039 else 14040 { 14041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14042 else puts (dlerror ()); 14043 } 14044 /* dlclose (self); */ 14045 } 14046 else 14047 puts (dlerror ()); 14048 14049 return status; 14050} 14051_LT_EOF 14052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14053 (eval $ac_link) 2>&5 14054 ac_status=$? 14055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14056 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14057 (./conftest; exit; ) >&5 2>/dev/null 14058 lt_status=$? 14059 case x$lt_status in 14060 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14061 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14062 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14063 esac 14064 else : 14065 # compilation failed 14066 lt_cv_dlopen_self=no 14067 fi 14068fi 14069rm -fr conftest* 14070 14071 14072fi 14073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14074printf "%s\n" "$lt_cv_dlopen_self" >&6; } 14075 14076 if test yes = "$lt_cv_dlopen_self"; then 14077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14079printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 14080if test ${lt_cv_dlopen_self_static+y} 14081then : 14082 printf %s "(cached) " >&6 14083else $as_nop 14084 if test yes = "$cross_compiling"; then : 14085 lt_cv_dlopen_self_static=cross 14086else 14087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14088 lt_status=$lt_dlunknown 14089 cat > conftest.$ac_ext <<_LT_EOF 14090#line $LINENO "configure" 14091#include "confdefs.h" 14092 14093#if HAVE_DLFCN_H 14094#include <dlfcn.h> 14095#endif 14096 14097#include <stdio.h> 14098 14099#ifdef RTLD_GLOBAL 14100# define LT_DLGLOBAL RTLD_GLOBAL 14101#else 14102# ifdef DL_GLOBAL 14103# define LT_DLGLOBAL DL_GLOBAL 14104# else 14105# define LT_DLGLOBAL 0 14106# endif 14107#endif 14108 14109/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14110 find out it does not work in some platform. */ 14111#ifndef LT_DLLAZY_OR_NOW 14112# ifdef RTLD_LAZY 14113# define LT_DLLAZY_OR_NOW RTLD_LAZY 14114# else 14115# ifdef DL_LAZY 14116# define LT_DLLAZY_OR_NOW DL_LAZY 14117# else 14118# ifdef RTLD_NOW 14119# define LT_DLLAZY_OR_NOW RTLD_NOW 14120# else 14121# ifdef DL_NOW 14122# define LT_DLLAZY_OR_NOW DL_NOW 14123# else 14124# define LT_DLLAZY_OR_NOW 0 14125# endif 14126# endif 14127# endif 14128# endif 14129#endif 14130 14131/* When -fvisibility=hidden is used, assume the code has been annotated 14132 correspondingly for the symbols needed. */ 14133#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14134int fnord () __attribute__((visibility("default"))); 14135#endif 14136 14137int fnord () { return 42; } 14138int main () 14139{ 14140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14141 int status = $lt_dlunknown; 14142 14143 if (self) 14144 { 14145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14146 else 14147 { 14148 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14149 else puts (dlerror ()); 14150 } 14151 /* dlclose (self); */ 14152 } 14153 else 14154 puts (dlerror ()); 14155 14156 return status; 14157} 14158_LT_EOF 14159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14160 (eval $ac_link) 2>&5 14161 ac_status=$? 14162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14163 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14164 (./conftest; exit; ) >&5 2>/dev/null 14165 lt_status=$? 14166 case x$lt_status in 14167 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14168 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14169 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14170 esac 14171 else : 14172 # compilation failed 14173 lt_cv_dlopen_self_static=no 14174 fi 14175fi 14176rm -fr conftest* 14177 14178 14179fi 14180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14181printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 14182 fi 14183 14184 CPPFLAGS=$save_CPPFLAGS 14185 LDFLAGS=$save_LDFLAGS 14186 LIBS=$save_LIBS 14187 ;; 14188 esac 14189 14190 case $lt_cv_dlopen_self in 14191 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14192 *) enable_dlopen_self=unknown ;; 14193 esac 14194 14195 case $lt_cv_dlopen_self_static in 14196 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14197 *) enable_dlopen_self_static=unknown ;; 14198 esac 14199fi 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217striplib= 14218old_striplib= 14219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14220printf %s "checking whether stripping libraries is possible... " >&6; } 14221if test -z "$STRIP"; then 14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14223printf "%s\n" "no" >&6; } 14224else 14225 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14226 old_striplib="$STRIP --strip-debug" 14227 striplib="$STRIP --strip-unneeded" 14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14229printf "%s\n" "yes" >&6; } 14230 else 14231 case $host_os in 14232 darwin*) 14233 # FIXME - insert some real tests, host_os isn't really good enough 14234 striplib="$STRIP -x" 14235 old_striplib="$STRIP -S" 14236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14237printf "%s\n" "yes" >&6; } 14238 ;; 14239 freebsd*) 14240 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 14241 old_striplib="$STRIP --strip-debug" 14242 striplib="$STRIP --strip-unneeded" 14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14244printf "%s\n" "yes" >&6; } 14245 else 14246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14247printf "%s\n" "no" >&6; } 14248 fi 14249 ;; 14250 *) 14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14252printf "%s\n" "no" >&6; } 14253 ;; 14254 esac 14255 fi 14256fi 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 # Report what library types will actually be built 14270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14271printf %s "checking if libtool supports shared libraries... " >&6; } 14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14273printf "%s\n" "$can_build_shared" >&6; } 14274 14275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14276printf %s "checking whether to build shared libraries... " >&6; } 14277 test no = "$can_build_shared" && enable_shared=no 14278 14279 # On AIX, shared libraries and static libraries use the same namespace, and 14280 # are all built from PIC. 14281 case $host_os in 14282 aix3*) 14283 test yes = "$enable_shared" && enable_static=no 14284 if test -n "$RANLIB"; then 14285 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14286 postinstall_cmds='$RANLIB $lib' 14287 fi 14288 ;; 14289 14290 aix[4-9]*) 14291 if test ia64 != "$host_cpu"; then 14292 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14293 yes,aix,yes) ;; # shared object as lib.so file only 14294 yes,svr4,*) ;; # shared object as lib.so archive member only 14295 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14296 esac 14297 fi 14298 ;; 14299 esac 14300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14301printf "%s\n" "$enable_shared" >&6; } 14302 14303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14304printf %s "checking whether to build static libraries... " >&6; } 14305 # Make sure either enable_shared or enable_static is yes. 14306 test yes = "$enable_shared" || enable_static=yes 14307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14308printf "%s\n" "$enable_static" >&6; } 14309 14310 14311 14312 14313fi 14314ac_ext=c 14315ac_cpp='$CPP $CPPFLAGS' 14316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14318ac_compiler_gnu=$ac_cv_c_compiler_gnu 14319 14320CC=$lt_save_CC 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 ac_config_commands="$ac_config_commands libtool" 14337 14338 14339 14340 14341# Only expand once: 14342 14343 14344 14345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-MS-Windows ICC" >&5 14346printf %s "checking for non-MS-Windows ICC... " >&6; } 14347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14348/* end confdefs.h. */ 14349 14350#if (!defined(__ICC) && !defined(__INTEL_COMPILER)) || defined(_WIN32) 14351# error "Not a non-MS-Windows ICC" 14352error 14353#endif 14354 14355int 14356main (void) 14357{ 14358 14359 ; 14360 return 0; 14361} 14362_ACEOF 14363if ac_fn_c_try_compile "$LINENO" 14364then : 14365 14366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14367printf "%s\n" "yes" >&6; } 14368 CFLAGS="-fp_port -mieee-fp -wd1572 -wd265 -wd186 -wd239 $CFLAGS" 14369 14370else $as_nop 14371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14372printf "%s\n" "no" >&6; } 14373fi 14374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14375 14376if test "$test_CFLAGS" != set && test -n "$GCC"; then 14377 CFLAGS="-Wpointer-arith $CFLAGS" 14378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the selected language is C++" >&5 14379printf %s "checking whether the selected language is C++... " >&6; } 14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14381/* end confdefs.h. */ 14382 14383#if defined (__cplusplus) 14384# error "C++" 14385error 14386#endif 14387 14388int 14389main (void) 14390{ 14391 14392 ; 14393 return 0; 14394} 14395_ACEOF 14396if ac_fn_c_try_compile "$LINENO" 14397then : 14398 14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14400printf "%s\n" "no" >&6; } 14401 14402 case `$CC --version | $SED -e 's/^[^ ]* //' -e 's/([^)]*) //' -e 1q` in 14403 2.*|3.*|4.0*) ;; 14404 *) CFLAGS="-Wc++-compat $CFLAGS" ;; 14405 esac 14406 CFLAGS="-Wmissing-prototypes $CFLAGS" 14407 14408 14409else $as_nop 14410 14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14412printf "%s\n" "yes" >&6; } 14413 CFLAGS="-Wmissing-declarations -Wno-sign-compare $CFLAGS" 14414 14415fi 14416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14417 CFLAGS="-Wall $CFLAGS" 14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS=\"$CFLAGS\"" >&5 14419printf "%s\n" "$as_me: using CFLAGS=\"$CFLAGS\"" >&6;} 14420fi 14421 14422 14423 14424case $host in 14425 *-apple-darwin*) 14426 case "$LD $LDFLAGS" in 14427 *-Wl,-search_paths_first*) ;; 14428 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5 14429printf %s "checking if the compiler understands -Wl,-search_paths_first... " >&6; } 14430 saved_LDFLAGS="$LDFLAGS" 14431 LDFLAGS="-Wl,-search_paths_first $LDFLAGS" 14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14433/* end confdefs.h. */ 14434 14435int 14436main (void) 14437{ 14438 14439 ; 14440 return 0; 14441} 14442_ACEOF 14443if ac_fn_c_try_link "$LINENO" 14444then : 14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14446printf "%s\n" "yes" >&6; } 14447else $as_nop 14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14449printf "%s\n" "no" >&6; } 14450 LDFLAGS="$saved_LDFLAGS" 14451fi 14452rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14453 conftest$ac_exeext conftest.$ac_ext 14454 ;; 14455 esac 14456 ;; 14457esac 14458 14459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14460printf %s "checking for an ANSI C-conforming const... " >&6; } 14461if test ${ac_cv_c_const+y} 14462then : 14463 printf %s "(cached) " >&6 14464else $as_nop 14465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14466/* end confdefs.h. */ 14467 14468int 14469main (void) 14470{ 14471 14472#ifndef __cplusplus 14473 /* Ultrix mips cc rejects this sort of thing. */ 14474 typedef int charset[2]; 14475 const charset cs = { 0, 0 }; 14476 /* SunOS 4.1.1 cc rejects this. */ 14477 char const *const *pcpcc; 14478 char **ppc; 14479 /* NEC SVR4.0.2 mips cc rejects this. */ 14480 struct point {int x, y;}; 14481 static struct point const zero = {0,0}; 14482 /* IBM XL C 1.02.0.0 rejects this. 14483 It does not let you subtract one const X* pointer from another in 14484 an arm of an if-expression whose if-part is not a constant 14485 expression */ 14486 const char *g = "string"; 14487 pcpcc = &g + (g ? g-g : 0); 14488 /* HPUX 7.0 cc rejects these. */ 14489 ++pcpcc; 14490 ppc = (char**) pcpcc; 14491 pcpcc = (char const *const *) ppc; 14492 { /* SCO 3.2v4 cc rejects this sort of thing. */ 14493 char tx; 14494 char *t = &tx; 14495 char const *s = 0 ? (char *) 0 : (char const *) 0; 14496 14497 *t++ = 0; 14498 if (s) return 0; 14499 } 14500 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14501 int x[] = {25, 17}; 14502 const int *foo = &x[0]; 14503 ++foo; 14504 } 14505 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14506 typedef const int *iptr; 14507 iptr p = 0; 14508 ++p; 14509 } 14510 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 14511 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14512 struct s { int j; const int *ap[3]; } bx; 14513 struct s *b = &bx; b->j = 5; 14514 } 14515 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14516 const int foo = 10; 14517 if (!foo) return 0; 14518 } 14519 return !cs[0] && !zero.x; 14520#endif 14521 14522 ; 14523 return 0; 14524} 14525_ACEOF 14526if ac_fn_c_try_compile "$LINENO" 14527then : 14528 ac_cv_c_const=yes 14529else $as_nop 14530 ac_cv_c_const=no 14531fi 14532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14533fi 14534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14535printf "%s\n" "$ac_cv_c_const" >&6; } 14536if test $ac_cv_c_const = no; then 14537 14538printf "%s\n" "#define const /**/" >>confdefs.h 14539 14540fi 14541 14542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 14543printf %s "checking for working volatile... " >&6; } 14544if test ${ac_cv_c_volatile+y} 14545then : 14546 printf %s "(cached) " >&6 14547else $as_nop 14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14549/* end confdefs.h. */ 14550 14551int 14552main (void) 14553{ 14554 14555volatile int x; 14556int * volatile y = (int *) 0; 14557return !x && !y; 14558 ; 14559 return 0; 14560} 14561_ACEOF 14562if ac_fn_c_try_compile "$LINENO" 14563then : 14564 ac_cv_c_volatile=yes 14565else $as_nop 14566 ac_cv_c_volatile=no 14567fi 14568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14569fi 14570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 14571printf "%s\n" "$ac_cv_c_volatile" >&6; } 14572if test $ac_cv_c_volatile = no; then 14573 14574printf "%s\n" "#define volatile /**/" >>confdefs.h 14575 14576fi 14577 14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14579printf %s "checking whether byte ordering is bigendian... " >&6; } 14580if test ${ac_cv_c_bigendian+y} 14581then : 14582 printf %s "(cached) " >&6 14583else $as_nop 14584 ac_cv_c_bigendian=unknown 14585 # See if we're dealing with a universal compiler. 14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14587/* end confdefs.h. */ 14588#ifndef __APPLE_CC__ 14589 not a universal capable compiler 14590 #endif 14591 typedef int dummy; 14592 14593_ACEOF 14594if ac_fn_c_try_compile "$LINENO" 14595then : 14596 14597 # Check for potential -arch flags. It is not universal unless 14598 # there are at least two -arch flags with different values. 14599 ac_arch= 14600 ac_prev= 14601 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14602 if test -n "$ac_prev"; then 14603 case $ac_word in 14604 i?86 | x86_64 | ppc | ppc64) 14605 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14606 ac_arch=$ac_word 14607 else 14608 ac_cv_c_bigendian=universal 14609 break 14610 fi 14611 ;; 14612 esac 14613 ac_prev= 14614 elif test "x$ac_word" = "x-arch"; then 14615 ac_prev=arch 14616 fi 14617 done 14618fi 14619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14620 if test $ac_cv_c_bigendian = unknown; then 14621 # See if sys/param.h defines the BYTE_ORDER macro. 14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14623/* end confdefs.h. */ 14624#include <sys/types.h> 14625 #include <sys/param.h> 14626 14627int 14628main (void) 14629{ 14630#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14631 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14632 && LITTLE_ENDIAN) 14633 bogus endian macros 14634 #endif 14635 14636 ; 14637 return 0; 14638} 14639_ACEOF 14640if ac_fn_c_try_compile "$LINENO" 14641then : 14642 # It does; now see whether it defined to BIG_ENDIAN or not. 14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14644/* end confdefs.h. */ 14645#include <sys/types.h> 14646 #include <sys/param.h> 14647 14648int 14649main (void) 14650{ 14651#if BYTE_ORDER != BIG_ENDIAN 14652 not big endian 14653 #endif 14654 14655 ; 14656 return 0; 14657} 14658_ACEOF 14659if ac_fn_c_try_compile "$LINENO" 14660then : 14661 ac_cv_c_bigendian=yes 14662else $as_nop 14663 ac_cv_c_bigendian=no 14664fi 14665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14666fi 14667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14668 fi 14669 if test $ac_cv_c_bigendian = unknown; then 14670 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14672/* end confdefs.h. */ 14673#include <limits.h> 14674 14675int 14676main (void) 14677{ 14678#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14679 bogus endian macros 14680 #endif 14681 14682 ; 14683 return 0; 14684} 14685_ACEOF 14686if ac_fn_c_try_compile "$LINENO" 14687then : 14688 # It does; now see whether it defined to _BIG_ENDIAN or not. 14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14690/* end confdefs.h. */ 14691#include <limits.h> 14692 14693int 14694main (void) 14695{ 14696#ifndef _BIG_ENDIAN 14697 not big endian 14698 #endif 14699 14700 ; 14701 return 0; 14702} 14703_ACEOF 14704if ac_fn_c_try_compile "$LINENO" 14705then : 14706 ac_cv_c_bigendian=yes 14707else $as_nop 14708 ac_cv_c_bigendian=no 14709fi 14710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14711fi 14712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14713 fi 14714 if test $ac_cv_c_bigendian = unknown; then 14715 # Compile a test program. 14716 if test "$cross_compiling" = yes 14717then : 14718 # Try to guess by grepping values from an object file. 14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14720/* end confdefs.h. */ 14721unsigned short int ascii_mm[] = 14722 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14723 unsigned short int ascii_ii[] = 14724 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14725 int use_ascii (int i) { 14726 return ascii_mm[i] + ascii_ii[i]; 14727 } 14728 unsigned short int ebcdic_ii[] = 14729 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14730 unsigned short int ebcdic_mm[] = 14731 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14732 int use_ebcdic (int i) { 14733 return ebcdic_mm[i] + ebcdic_ii[i]; 14734 } 14735 extern int foo; 14736 14737int 14738main (void) 14739{ 14740return use_ascii (foo) == use_ebcdic (foo); 14741 ; 14742 return 0; 14743} 14744_ACEOF 14745if ac_fn_c_try_compile "$LINENO" 14746then : 14747 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14748 ac_cv_c_bigendian=yes 14749 fi 14750 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14751 if test "$ac_cv_c_bigendian" = unknown; then 14752 ac_cv_c_bigendian=no 14753 else 14754 # finding both strings is unlikely to happen, but who knows? 14755 ac_cv_c_bigendian=unknown 14756 fi 14757 fi 14758fi 14759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14760else $as_nop 14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14762/* end confdefs.h. */ 14763$ac_includes_default 14764int 14765main (void) 14766{ 14767 14768 /* Are we little or big endian? From Harbison&Steele. */ 14769 union 14770 { 14771 long int l; 14772 char c[sizeof (long int)]; 14773 } u; 14774 u.l = 1; 14775 return u.c[sizeof (long int) - 1] == 1; 14776 14777 ; 14778 return 0; 14779} 14780_ACEOF 14781if ac_fn_c_try_run "$LINENO" 14782then : 14783 ac_cv_c_bigendian=no 14784else $as_nop 14785 ac_cv_c_bigendian=yes 14786fi 14787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14788 conftest.$ac_objext conftest.beam conftest.$ac_ext 14789fi 14790 14791 fi 14792fi 14793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14794printf "%s\n" "$ac_cv_c_bigendian" >&6; } 14795 case $ac_cv_c_bigendian in #( 14796 yes) 14797 printf "%s\n" "#define HAVE_BIG_ENDIAN 1" >>confdefs.h 14798;; #( 14799 no) 14800 printf "%s\n" "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h 14801 ;; #( 14802 universal) 14803 true 14804 ;; #( 14805 *) 14806 true ;; 14807 esac 14808 14809 14810# (Based on GMP 5.1) 14811# clock_gettime is in librt on *-*-osf5.1 and on glibc < 2.17, so add -lrt to 14812# TUNE_LIBS if needed (e.g. if clock_gettime is not already in the C library). 14813# On linux (tested on x86_32, 2.6.26), clock_getres reports ns accuracy, 14814# while in a quick test on osf, clock_getres said only 1 millisecond. 14815old_LIBS="$LIBS" 14816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 14817printf %s "checking for library containing clock_gettime... " >&6; } 14818if test ${ac_cv_search_clock_gettime+y} 14819then : 14820 printf %s "(cached) " >&6 14821else $as_nop 14822 ac_func_search_save_LIBS=$LIBS 14823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14824/* end confdefs.h. */ 14825 14826/* Override any GCC internal prototype to avoid an error. 14827 Use char because int might match the return type of a GCC 14828 builtin and then its argument prototype would still apply. */ 14829#ifdef __cplusplus 14830extern "C" 14831#endif 14832char clock_gettime (); 14833int 14834main (void) 14835{ 14836return clock_gettime (); 14837 ; 14838 return 0; 14839} 14840_ACEOF 14841for ac_lib in '' rt 14842do 14843 if test -z "$ac_lib"; then 14844 ac_res="none required" 14845 else 14846 ac_res=-l$ac_lib 14847 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14848 fi 14849 if ac_fn_c_try_link "$LINENO" 14850then : 14851 ac_cv_search_clock_gettime=$ac_res 14852fi 14853rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14854 conftest$ac_exeext 14855 if test ${ac_cv_search_clock_gettime+y} 14856then : 14857 break 14858fi 14859done 14860if test ${ac_cv_search_clock_gettime+y} 14861then : 14862 14863else $as_nop 14864 ac_cv_search_clock_gettime=no 14865fi 14866rm conftest.$ac_ext 14867LIBS=$ac_func_search_save_LIBS 14868fi 14869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 14870printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 14871ac_res=$ac_cv_search_clock_gettime 14872if test "$ac_res" != no 14873then : 14874 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14875 14876 14877printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 14878 14879fi 14880 14881TUNE_LIBS="$LIBS" 14882LIBS="$old_LIBS" 14883 14884 14885case $host in 14886 *-*-linux*) 14887 if test -n "$LD_LIBRARY_PATH"; then 14888 saved_LDFLAGS="$LDFLAGS" 14889 LDFLAGS="$LDFLAGS -Wl,--disable-new-dtags" 14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5 14891printf %s "checking whether --disable-new-dtags is supported by the linker... " >&6; } 14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14893/* end confdefs.h. */ 14894 14895int main (void) { return 0; } 14896 14897_ACEOF 14898if ac_fn_c_try_link "$LINENO" 14899then : 14900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5 14901printf "%s\n" "yes (use it since LD_LIBRARY_PATH is set)" >&6; } 14902else $as_nop 14903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14904printf "%s\n" "no" >&6; } 14905 LDFLAGS="$saved_LDFLAGS" 14906 14907fi 14908rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14909 conftest$ac_exeext conftest.$ac_ext 14910 fi 14911 ;; 14912esac 14913 14914 14915 14916MPFR_LIBM='' 14917 14918case $host in 14919 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 14920 # According to libtool.m4: 14921 # These systems don't have libm, or don't need it. 14922 ;; 14923 *-*-solaris*) 14924 # On Solaris, some additional math functions are in -lm9x. 14925 # For MPFR, https://docs.oracle.com/cd/E19957-01/806-3568/ncg_lib.html 14926 # says that ceil, floor and rint are provided by libm. We would also 14927 # like nearbyint when available, but there is no mention of it in this 14928 # doc. Just in case, let's check for it in m9x, e.g. if it is added in 14929 # the future. 14930 14931saved_LIBS="$LIBS" 14932LIBS="-lm9x $LIBS" 14933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14934/* end confdefs.h. */ 14935 14936int 14937main (void) 14938{ 14939 14940 ; 14941 return 0; 14942} 14943_ACEOF 14944if ac_fn_c_try_link "$LINENO" 14945then : 14946 MPFR_LIBM="-lm9x" 14947fi 14948rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14949 conftest$ac_exeext conftest.$ac_ext 14950LIBS="$saved_LIBS" 14951 14952 14953saved_LIBS="$LIBS" 14954LIBS="-lm $LIBS" 14955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14956/* end confdefs.h. */ 14957 14958int 14959main (void) 14960{ 14961 14962 ; 14963 return 0; 14964} 14965_ACEOF 14966if ac_fn_c_try_link "$LINENO" 14967then : 14968 MPFR_LIBM="$MPFR_LIBM -lm" 14969fi 14970rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14971 conftest$ac_exeext conftest.$ac_ext 14972LIBS="$saved_LIBS" 14973 14974 ;; 14975 *-ncr-sysv4.3*) 14976 # The following AC_CHECK_LIB line about -lmw is copied from libtool.m4, 14977 # but do we need it? This has never been tested in MPFR. See commits 14978 # 6d34bd85f038abeaeeb77aa8f65b562623cc38bc (1999-02-13) 14979 # e65f46d3fc4eb98d25ee94ad8e6f51c5846c8fe3 (1999-03-20) 14980 # in the libtool repository. 14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 14982printf %s "checking for _mwvalidcheckl in -lmw... " >&6; } 14983if test ${ac_cv_lib_mw__mwvalidcheckl+y} 14984then : 14985 printf %s "(cached) " >&6 14986else $as_nop 14987 ac_check_lib_save_LIBS=$LIBS 14988LIBS="-lmw $LIBS" 14989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14990/* end confdefs.h. */ 14991 14992/* Override any GCC internal prototype to avoid an error. 14993 Use char because int might match the return type of a GCC 14994 builtin and then its argument prototype would still apply. */ 14995#ifdef __cplusplus 14996extern "C" 14997#endif 14998char _mwvalidcheckl (); 14999int 15000main (void) 15001{ 15002return _mwvalidcheckl (); 15003 ; 15004 return 0; 15005} 15006_ACEOF 15007if ac_fn_c_try_link "$LINENO" 15008then : 15009 ac_cv_lib_mw__mwvalidcheckl=yes 15010else $as_nop 15011 ac_cv_lib_mw__mwvalidcheckl=no 15012fi 15013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15014 conftest$ac_exeext conftest.$ac_ext 15015LIBS=$ac_check_lib_save_LIBS 15016fi 15017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 15018printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 15019if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes 15020then : 15021 MPFR_LIBM="-lmw" 15022fi 15023 15024 15025saved_LIBS="$LIBS" 15026LIBS="-lm $LIBS" 15027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028/* end confdefs.h. */ 15029 15030int 15031main (void) 15032{ 15033 15034 ; 15035 return 0; 15036} 15037_ACEOF 15038if ac_fn_c_try_link "$LINENO" 15039then : 15040 MPFR_LIBM="$MPFR_LIBM -lm" 15041fi 15042rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15043 conftest$ac_exeext conftest.$ac_ext 15044LIBS="$saved_LIBS" 15045 15046 ;; 15047 *) 15048 15049saved_LIBS="$LIBS" 15050LIBS="-lm $LIBS" 15051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15052/* end confdefs.h. */ 15053 15054int 15055main (void) 15056{ 15057 15058 ; 15059 return 0; 15060} 15061_ACEOF 15062if ac_fn_c_try_link "$LINENO" 15063then : 15064 MPFR_LIBM="-lm" 15065fi 15066rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15067 conftest$ac_exeext conftest.$ac_ext 15068LIBS="$saved_LIBS" 15069 15070 ;; 15071esac 15072 15073 15074MPFR_LIBQUADMATH='' 15075 15076case $host in 15077 *) 15078 15079saved_LIBS="$LIBS" 15080LIBS="-lquadmath $LIBS" 15081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15082/* end confdefs.h. */ 15083 15084int 15085main (void) 15086{ 15087 15088 ; 15089 return 0; 15090} 15091_ACEOF 15092if ac_fn_c_try_link "$LINENO" 15093then : 15094 MPFR_LIBQUADMATH="-lquadmath" 15095fi 15096rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15097 conftest$ac_exeext conftest.$ac_ext 15098LIBS="$saved_LIBS" 15099 15100 ;; 15101esac 15102 15103 15104ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15105if test "x$ac_cv_type_size_t" = xyes 15106then : 15107 15108else $as_nop 15109 15110printf "%s\n" "#define size_t unsigned int" >>confdefs.h 15111 15112fi 15113 15114 15115 15116 15117 15118 15119 15120 15121if test "$enable_shared_cache" = yes; then 15122 15123 15124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ISO C11 thread support" >&5 15125printf %s "checking for ISO C11 thread support... " >&6; } 15126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15127/* end confdefs.h. */ 15128 15129#include <assert.h> 15130#include <threads.h> 15131 mtx_t lock; 15132 once_flag once = ONCE_FLAG_INIT; 15133 thrd_t thd_idx; 15134 int x = 0; 15135 void once_call (void) { x = 1; } 15136 15137int 15138main (void) 15139{ 15140 15141 int err; 15142 err = mtx_init(&lock, mtx_plain); 15143 assert(err == thrd_success); 15144 err = mtx_lock(&lock); 15145 assert(err == thrd_success); 15146 err = mtx_unlock(&lock); 15147 assert(err == thrd_success); 15148 mtx_destroy(&lock); 15149 once_call(&once, once_call); 15150 return x == 1 ? 0 : -1; 15151 15152 ; 15153 return 0; 15154} 15155_ACEOF 15156if ac_fn_c_try_link "$LINENO" 15157then : 15158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15159printf "%s\n" "yes" >&6; } 15160 mpfr_c11_thread_ok=yes 15161else $as_nop 15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15163printf "%s\n" "no" >&6; } 15164 15165fi 15166rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15167 conftest$ac_exeext conftest.$ac_ext 15168 15169if test "$mpfr_c11_thread_ok" = "yes"; then 15170 15171printf "%s\n" "#define MPFR_HAVE_C11_LOCK 1" >>confdefs.h 15172 15173fi 15174 15175 15176 if test "$mpfr_c11_thread_ok" != yes; then 15177 15178 15179 15180 15181 15182ac_ext=c 15183ac_cpp='$CPP $CPPFLAGS' 15184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15186ac_compiler_gnu=$ac_cv_c_compiler_gnu 15187 15188ax_pthread_ok=no 15189 15190# We used to check for pthread.h first, but this fails if pthread.h 15191# requires special compiler flags (e.g. on Tru64 or Sequent). 15192# It gets checked for in the link test anyway. 15193 15194# First of all, check if the user has set any of the PTHREAD_LIBS, 15195# etcetera environment variables, and if threads linking works using 15196# them: 15197if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 15198 ax_pthread_save_CC="$CC" 15199 ax_pthread_save_CFLAGS="$CFLAGS" 15200 ax_pthread_save_LIBS="$LIBS" 15201 if test "x$PTHREAD_CC" != "x" 15202then : 15203 CC="$PTHREAD_CC" 15204fi 15205 if test "x$PTHREAD_CXX" != "x" 15206then : 15207 CXX="$PTHREAD_CXX" 15208fi 15209 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15210 LIBS="$PTHREAD_LIBS $LIBS" 15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 15212printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15214/* end confdefs.h. */ 15215 15216/* Override any GCC internal prototype to avoid an error. 15217 Use char because int might match the return type of a GCC 15218 builtin and then its argument prototype would still apply. */ 15219#ifdef __cplusplus 15220extern "C" 15221#endif 15222char pthread_join (); 15223int 15224main (void) 15225{ 15226return pthread_join (); 15227 ; 15228 return 0; 15229} 15230_ACEOF 15231if ac_fn_c_try_link "$LINENO" 15232then : 15233 ax_pthread_ok=yes 15234fi 15235rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15236 conftest$ac_exeext conftest.$ac_ext 15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15238printf "%s\n" "$ax_pthread_ok" >&6; } 15239 if test "x$ax_pthread_ok" = "xno"; then 15240 PTHREAD_LIBS="" 15241 PTHREAD_CFLAGS="" 15242 fi 15243 CC="$ax_pthread_save_CC" 15244 CFLAGS="$ax_pthread_save_CFLAGS" 15245 LIBS="$ax_pthread_save_LIBS" 15246fi 15247 15248# We must check for the threads library under a number of different 15249# names; the ordering is very important because some systems 15250# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15251# libraries is broken (non-POSIX). 15252 15253# Create a list of thread flags to try. Items with a "," contain both 15254# C compiler flags (before ",") and linker flags (after ","). Other items 15255# starting with a "-" are C compiler flags, and remaining items are 15256# library names, except for "none" which indicates that we try without 15257# any flags at all, and "pthread-config" which is a program returning 15258# the flags for the Pth emulation library. 15259 15260ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15261 15262# The ordering *is* (sometimes) important. Some notes on the 15263# individual items follow: 15264 15265# pthreads: AIX (must check this before -lpthread) 15266# none: in case threads are in libc; should be tried before -Kthread and 15267# other compiler flags to prevent continual compiler warnings 15268# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15269# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 15270# (Note: HP C rejects this with "bad form for `-t' option") 15271# -pthreads: Solaris/gcc (Note: HP C also rejects) 15272# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15273# doesn't hurt to check since this sometimes defines pthreads and 15274# -D_REENTRANT too), HP C (must be checked before -lpthread, which 15275# is present but should not be used directly; and before -mthreads, 15276# because the compiler interprets this as "-mt" + "-hreads") 15277# -mthreads: Mingw32/gcc, Lynx/gcc 15278# pthread: Linux, etcetera 15279# --thread-safe: KAI C++ 15280# pthread-config: use pthread-config program (for GNU Pth library) 15281 15282case $host_os in 15283 15284 freebsd*) 15285 15286 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15287 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15288 15289 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 15290 ;; 15291 15292 hpux*) 15293 15294 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 15295 # multi-threading and also sets -lpthread." 15296 15297 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 15298 ;; 15299 15300 openedition*) 15301 15302 # IBM z/OS requires a feature-test macro to be defined in order to 15303 # enable POSIX threads at all, so give the user a hint if this is 15304 # not set. (We don't define these ourselves, as they can affect 15305 # other portions of the system API in unpredictable ways.) 15306 15307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15308/* end confdefs.h. */ 15309 15310# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 15311 AX_PTHREAD_ZOS_MISSING 15312# endif 15313 15314_ACEOF 15315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15316 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 15317then : 15318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 15319printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 15320fi 15321rm -rf conftest* 15322 15323 ;; 15324 15325 solaris*) 15326 15327 # On Solaris (at least, for some versions), libc contains stubbed 15328 # (non-functional) versions of the pthreads routines, so link-based 15329 # tests will erroneously succeed. (N.B.: The stubs are missing 15330 # pthread_cleanup_push, or rather a function called by this macro, 15331 # so we could check for that, but who knows whether they'll stub 15332 # that too in a future libc.) So we'll check first for the 15333 # standard Solaris way of linking pthreads (-mt -lpthread). 15334 15335 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" 15336 ;; 15337esac 15338 15339# Are we compiling with Clang? 15340 15341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 15342printf %s "checking whether $CC is Clang... " >&6; } 15343if test ${ax_cv_PTHREAD_CLANG+y} 15344then : 15345 printf %s "(cached) " >&6 15346else $as_nop 15347 ax_cv_PTHREAD_CLANG=no 15348 # Note that Autoconf sets GCC=yes for Clang as well as GCC 15349 if test "x$GCC" = "xyes"; then 15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15351/* end confdefs.h. */ 15352/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 15353# if defined(__clang__) && defined(__llvm__) 15354 AX_PTHREAD_CC_IS_CLANG 15355# endif 15356 15357_ACEOF 15358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15359 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 15360then : 15361 ax_cv_PTHREAD_CLANG=yes 15362fi 15363rm -rf conftest* 15364 15365 fi 15366 15367fi 15368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 15369printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } 15370ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 15371 15372 15373# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 15374 15375# Note that for GCC and Clang -pthread generally implies -lpthread, 15376# except when -nostdlib is passed. 15377# This is problematic using libtool to build C++ shared libraries with pthread: 15378# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 15379# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 15380# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 15381# To solve this, first try -pthread together with -lpthread for GCC 15382 15383if test "x$GCC" = "xyes" 15384then : 15385 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" 15386fi 15387 15388# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first 15389 15390if test "x$ax_pthread_clang" = "xyes" 15391then : 15392 ax_pthread_flags="-pthread,-lpthread -pthread" 15393fi 15394 15395 15396# The presence of a feature test macro requesting re-entrant function 15397# definitions is, on some systems, a strong hint that pthreads support is 15398# correctly enabled 15399 15400case $host_os in 15401 darwin* | hpux* | linux* | osf* | solaris*) 15402 ax_pthread_check_macro="_REENTRANT" 15403 ;; 15404 15405 aix*) 15406 ax_pthread_check_macro="_THREAD_SAFE" 15407 ;; 15408 15409 *) 15410 ax_pthread_check_macro="--" 15411 ;; 15412esac 15413if test "x$ax_pthread_check_macro" = "x--" 15414then : 15415 ax_pthread_check_cond=0 15416else $as_nop 15417 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 15418fi 15419 15420 15421if test "x$ax_pthread_ok" = "xno"; then 15422for ax_pthread_try_flag in $ax_pthread_flags; do 15423 15424 case $ax_pthread_try_flag in 15425 none) 15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15427printf %s "checking whether pthreads work without any flags... " >&6; } 15428 ;; 15429 15430 *,*) 15431 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` 15432 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` 15433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 15434printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } 15435 ;; 15436 15437 -*) 15438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 15439printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 15440 PTHREAD_CFLAGS="$ax_pthread_try_flag" 15441 ;; 15442 15443 pthread-config) 15444 # Extract the first word of "pthread-config", so it can be a program name with args. 15445set dummy pthread-config; ac_word=$2 15446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15447printf %s "checking for $ac_word... " >&6; } 15448if test ${ac_cv_prog_ax_pthread_config+y} 15449then : 15450 printf %s "(cached) " >&6 15451else $as_nop 15452 if test -n "$ax_pthread_config"; then 15453 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15454else 15455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15456for as_dir in $PATH 15457do 15458 IFS=$as_save_IFS 15459 case $as_dir in #((( 15460 '') as_dir=./ ;; 15461 */) ;; 15462 *) as_dir=$as_dir/ ;; 15463 esac 15464 for ac_exec_ext in '' $ac_executable_extensions; do 15465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15466 ac_cv_prog_ax_pthread_config="yes" 15467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15468 break 2 15469 fi 15470done 15471 done 15472IFS=$as_save_IFS 15473 15474 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15475fi 15476fi 15477ax_pthread_config=$ac_cv_prog_ax_pthread_config 15478if test -n "$ax_pthread_config"; then 15479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15480printf "%s\n" "$ax_pthread_config" >&6; } 15481else 15482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15483printf "%s\n" "no" >&6; } 15484fi 15485 15486 15487 if test "x$ax_pthread_config" = "xno" 15488then : 15489 continue 15490fi 15491 PTHREAD_CFLAGS="`pthread-config --cflags`" 15492 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15493 ;; 15494 15495 *) 15496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 15497printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 15498 PTHREAD_LIBS="-l$ax_pthread_try_flag" 15499 ;; 15500 esac 15501 15502 ax_pthread_save_CFLAGS="$CFLAGS" 15503 ax_pthread_save_LIBS="$LIBS" 15504 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15505 LIBS="$PTHREAD_LIBS $LIBS" 15506 15507 # Check for various functions. We must include pthread.h, 15508 # since some functions may be macros. (On the Sequent, we 15509 # need a special flag -Kthread to make this header compile.) 15510 # We check for pthread_join because it is in -lpthread on IRIX 15511 # while pthread_create is in libc. We check for pthread_attr_init 15512 # due to DEC craziness with -lpthreads. We check for 15513 # pthread_cleanup_push because it is one of the few pthread 15514 # functions on Solaris that doesn't have a non-functional libc stub. 15515 # We try pthread_create on general principles. 15516 15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15518/* end confdefs.h. */ 15519#include <pthread.h> 15520# if $ax_pthread_check_cond 15521# error "$ax_pthread_check_macro must be defined" 15522# endif 15523 static void *some_global = NULL; 15524 static void routine(void *a) 15525 { 15526 /* To avoid any unused-parameter or 15527 unused-but-set-parameter warning. */ 15528 some_global = a; 15529 } 15530 static void *start_routine(void *a) { return a; } 15531int 15532main (void) 15533{ 15534pthread_t th; pthread_attr_t attr; 15535 pthread_create(&th, 0, start_routine, 0); 15536 pthread_join(th, 0); 15537 pthread_attr_init(&attr); 15538 pthread_cleanup_push(routine, 0); 15539 pthread_cleanup_pop(0) /* ; */ 15540 ; 15541 return 0; 15542} 15543_ACEOF 15544if ac_fn_c_try_link "$LINENO" 15545then : 15546 ax_pthread_ok=yes 15547fi 15548rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15549 conftest$ac_exeext conftest.$ac_ext 15550 15551 CFLAGS="$ax_pthread_save_CFLAGS" 15552 LIBS="$ax_pthread_save_LIBS" 15553 15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15555printf "%s\n" "$ax_pthread_ok" >&6; } 15556 if test "x$ax_pthread_ok" = "xyes" 15557then : 15558 break 15559fi 15560 15561 PTHREAD_LIBS="" 15562 PTHREAD_CFLAGS="" 15563done 15564fi 15565 15566 15567# Clang needs special handling, because older versions handle the -pthread 15568# option in a rather... idiosyncratic way 15569 15570if test "x$ax_pthread_clang" = "xyes"; then 15571 15572 # Clang takes -pthread; it has never supported any other flag 15573 15574 # (Note 1: This will need to be revisited if a system that Clang 15575 # supports has POSIX threads in a separate library. This tends not 15576 # to be the way of modern systems, but it's conceivable.) 15577 15578 # (Note 2: On some systems, notably Darwin, -pthread is not needed 15579 # to get POSIX threads support; the API is always present and 15580 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 15581 # -pthread does define _REENTRANT, and while the Darwin headers 15582 # ignore this macro, third-party headers might not.) 15583 15584 # However, older versions of Clang make a point of warning the user 15585 # that, in an invocation where only linking and no compilation is 15586 # taking place, the -pthread option has no effect ("argument unused 15587 # during compilation"). They expect -pthread to be passed in only 15588 # when source code is being compiled. 15589 # 15590 # Problem is, this is at odds with the way Automake and most other 15591 # C build frameworks function, which is that the same flags used in 15592 # compilation (CFLAGS) are also used in linking. Many systems 15593 # supported by AX_PTHREAD require exactly this for POSIX threads 15594 # support, and in fact it is often not straightforward to specify a 15595 # flag that is used only in the compilation phase and not in 15596 # linking. Such a scenario is extremely rare in practice. 15597 # 15598 # Even though use of the -pthread flag in linking would only print 15599 # a warning, this can be a nuisance for well-run software projects 15600 # that build with -Werror. So if the active version of Clang has 15601 # this misfeature, we search for an option to squash it. 15602 15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 15604printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 15605if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} 15606then : 15607 printf %s "(cached) " >&6 15608else $as_nop 15609 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 15610 # Create an alternate version of $ac_link that compiles and 15611 # links in two steps (.c -> .o, .o -> exe) instead of one 15612 # (.c -> exe), because the warning occurs only in the second 15613 # step 15614 ax_pthread_save_ac_link="$ac_link" 15615 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 15616 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` 15617 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 15618 ax_pthread_save_CFLAGS="$CFLAGS" 15619 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 15620 if test "x$ax_pthread_try" = "xunknown" 15621then : 15622 break 15623fi 15624 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 15625 ac_link="$ax_pthread_save_ac_link" 15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15627/* end confdefs.h. */ 15628int main(void){return 0;} 15629_ACEOF 15630if ac_fn_c_try_link "$LINENO" 15631then : 15632 ac_link="$ax_pthread_2step_ac_link" 15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15634/* end confdefs.h. */ 15635int main(void){return 0;} 15636_ACEOF 15637if ac_fn_c_try_link "$LINENO" 15638then : 15639 break 15640fi 15641rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15642 conftest$ac_exeext conftest.$ac_ext 15643 15644fi 15645rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15646 conftest$ac_exeext conftest.$ac_ext 15647 done 15648 ac_link="$ax_pthread_save_ac_link" 15649 CFLAGS="$ax_pthread_save_CFLAGS" 15650 if test "x$ax_pthread_try" = "x" 15651then : 15652 ax_pthread_try=no 15653fi 15654 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 15655 15656fi 15657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 15658printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 15659 15660 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 15661 no | unknown) ;; 15662 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 15663 esac 15664 15665fi # $ax_pthread_clang = yes 15666 15667 15668 15669# Various other checks: 15670if test "x$ax_pthread_ok" = "xyes"; then 15671 ax_pthread_save_CFLAGS="$CFLAGS" 15672 ax_pthread_save_LIBS="$LIBS" 15673 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15674 LIBS="$PTHREAD_LIBS $LIBS" 15675 15676 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15678printf %s "checking for joinable pthread attribute... " >&6; } 15679if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} 15680then : 15681 printf %s "(cached) " >&6 15682else $as_nop 15683 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 15684 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15686/* end confdefs.h. */ 15687#include <pthread.h> 15688int 15689main (void) 15690{ 15691int attr = $ax_pthread_attr; return attr /* ; */ 15692 ; 15693 return 0; 15694} 15695_ACEOF 15696if ac_fn_c_try_link "$LINENO" 15697then : 15698 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 15699fi 15700rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15701 conftest$ac_exeext conftest.$ac_ext 15702 done 15703 15704fi 15705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 15706printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 15707 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 15708 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 15709 test "x$ax_pthread_joinable_attr_defined" != "xyes" 15710then : 15711 15712printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h 15713 15714 ax_pthread_joinable_attr_defined=yes 15715 15716fi 15717 15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 15719printf %s "checking whether more special flags are required for pthreads... " >&6; } 15720if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} 15721then : 15722 printf %s "(cached) " >&6 15723else $as_nop 15724 ax_cv_PTHREAD_SPECIAL_FLAGS=no 15725 case $host_os in 15726 solaris*) 15727 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 15728 ;; 15729 esac 15730 15731fi 15732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 15733printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 15734 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 15735 test "x$ax_pthread_special_flags_added" != "xyes" 15736then : 15737 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 15738 ax_pthread_special_flags_added=yes 15739fi 15740 15741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 15742printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 15743if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 15744then : 15745 printf %s "(cached) " >&6 15746else $as_nop 15747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15748/* end confdefs.h. */ 15749#include <pthread.h> 15750int 15751main (void) 15752{ 15753int i = PTHREAD_PRIO_INHERIT; 15754 return i; 15755 ; 15756 return 0; 15757} 15758_ACEOF 15759if ac_fn_c_try_link "$LINENO" 15760then : 15761 ax_cv_PTHREAD_PRIO_INHERIT=yes 15762else $as_nop 15763 ax_cv_PTHREAD_PRIO_INHERIT=no 15764fi 15765rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15766 conftest$ac_exeext conftest.$ac_ext 15767 15768fi 15769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 15770printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 15771 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 15772 test "x$ax_pthread_prio_inherit_defined" != "xyes" 15773then : 15774 15775printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 15776 15777 ax_pthread_prio_inherit_defined=yes 15778 15779fi 15780 15781 CFLAGS="$ax_pthread_save_CFLAGS" 15782 LIBS="$ax_pthread_save_LIBS" 15783 15784 # More AIX lossage: compile with *_r variant 15785 if test "x$GCC" != "xyes"; then 15786 case $host_os in 15787 aix*) 15788 case "x/$CC" in #( 15789 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 15790 #handle absolute path differently from PATH based program lookup 15791 case "x$CC" in #( 15792 x/*) : 15793 15794 if as_fn_executable_p ${CC}_r 15795then : 15796 PTHREAD_CC="${CC}_r" 15797fi 15798 if test "x${CXX}" != "x" 15799then : 15800 if as_fn_executable_p ${CXX}_r 15801then : 15802 PTHREAD_CXX="${CXX}_r" 15803fi 15804fi 15805 ;; #( 15806 *) : 15807 15808 for ac_prog in ${CC}_r 15809do 15810 # Extract the first word of "$ac_prog", so it can be a program name with args. 15811set dummy $ac_prog; ac_word=$2 15812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15813printf %s "checking for $ac_word... " >&6; } 15814if test ${ac_cv_prog_PTHREAD_CC+y} 15815then : 15816 printf %s "(cached) " >&6 15817else $as_nop 15818 if test -n "$PTHREAD_CC"; then 15819 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15820else 15821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15822for as_dir in $PATH 15823do 15824 IFS=$as_save_IFS 15825 case $as_dir in #((( 15826 '') as_dir=./ ;; 15827 */) ;; 15828 *) as_dir=$as_dir/ ;; 15829 esac 15830 for ac_exec_ext in '' $ac_executable_extensions; do 15831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15832 ac_cv_prog_PTHREAD_CC="$ac_prog" 15833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15834 break 2 15835 fi 15836done 15837 done 15838IFS=$as_save_IFS 15839 15840fi 15841fi 15842PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15843if test -n "$PTHREAD_CC"; then 15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15845printf "%s\n" "$PTHREAD_CC" >&6; } 15846else 15847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15848printf "%s\n" "no" >&6; } 15849fi 15850 15851 15852 test -n "$PTHREAD_CC" && break 15853done 15854test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15855 15856 if test "x${CXX}" != "x" 15857then : 15858 for ac_prog in ${CXX}_r 15859do 15860 # Extract the first word of "$ac_prog", so it can be a program name with args. 15861set dummy $ac_prog; ac_word=$2 15862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15863printf %s "checking for $ac_word... " >&6; } 15864if test ${ac_cv_prog_PTHREAD_CXX+y} 15865then : 15866 printf %s "(cached) " >&6 15867else $as_nop 15868 if test -n "$PTHREAD_CXX"; then 15869 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 15870else 15871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15872for as_dir in $PATH 15873do 15874 IFS=$as_save_IFS 15875 case $as_dir in #((( 15876 '') as_dir=./ ;; 15877 */) ;; 15878 *) as_dir=$as_dir/ ;; 15879 esac 15880 for ac_exec_ext in '' $ac_executable_extensions; do 15881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15882 ac_cv_prog_PTHREAD_CXX="$ac_prog" 15883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15884 break 2 15885 fi 15886done 15887 done 15888IFS=$as_save_IFS 15889 15890fi 15891fi 15892PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 15893if test -n "$PTHREAD_CXX"; then 15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 15895printf "%s\n" "$PTHREAD_CXX" >&6; } 15896else 15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15898printf "%s\n" "no" >&6; } 15899fi 15900 15901 15902 test -n "$PTHREAD_CXX" && break 15903done 15904test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 15905 15906fi 15907 15908 ;; 15909esac 15910 ;; #( 15911 *) : 15912 ;; 15913esac 15914 ;; 15915 esac 15916 fi 15917fi 15918 15919test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15920test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 15921 15922 15923 15924 15925 15926 15927# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15928if test "x$ax_pthread_ok" = "xyes"; then 15929 15930printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 15931 15932 : 15933else 15934 ax_pthread_ok=no 15935 15936fi 15937ac_ext=c 15938ac_cpp='$CPP $CPPFLAGS' 15939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15941ac_compiler_gnu=$ac_cv_c_compiler_gnu 15942 15943 15944 if test "$ax_pthread_ok" = yes; then 15945 CC="$PTHREAD_CC" 15946 CXX="$PTHREAD_CXX" 15947 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15948 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" 15949 LIBS="$LIBS $PTHREAD_LIBS" 15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5 15951printf %s "checking for pthread_rwlock_t... " >&6; } 15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15953/* end confdefs.h. */ 15954 15955#include <pthread.h> 15956 15957int 15958main (void) 15959{ 15960 15961pthread_rwlock_t lock; (void) lock; 15962 15963 ; 15964 return 0; 15965} 15966_ACEOF 15967if ac_fn_c_try_compile "$LINENO" 15968then : 15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15970printf "%s\n" "yes" >&6; } 15971 mpfr_pthread_ok=yes 15972else $as_nop 15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15974printf "%s\n" "no" >&6; } 15975 mpfr_pthread_ok=no 15976fi 15977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15978 else 15979 mpfr_pthread_ok=no 15980 fi 15981 fi 15982 15983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if shared cache can be supported" >&5 15984printf %s "checking if shared cache can be supported... " >&6; } 15985 if test "$mpfr_c11_thread_ok" = yes; then 15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with ISO C11 threads" >&5 15987printf "%s\n" "yes, with ISO C11 threads" >&6; } 15988 elif test "$mpfr_pthread_ok" = yes; then 15989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with pthread" >&5 15990printf "%s\n" "yes, with pthread" >&6; } 15991 else 15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15993printf "%s\n" "no" >&6; } 15994 as_fn_error $? "shared cache needs C11 threads or pthread support" "$LINENO" 5 15995 fi 15996 15997fi 15998 15999 16000ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 16001if test "x$ac_cv_header_limits_h" = xyes 16002then : 16003 16004else $as_nop 16005 as_fn_error $? "limits.h not found" "$LINENO" 5 16006fi 16007 16008ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 16009if test "x$ac_cv_header_float_h" = xyes 16010then : 16011 16012else $as_nop 16013 as_fn_error $? "float.h not found" "$LINENO" 5 16014fi 16015 16016ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 16017if test "x$ac_cv_header_string_h" = xyes 16018then : 16019 16020else $as_nop 16021 as_fn_error $? "string.h not found" "$LINENO" 5 16022fi 16023 16024 16025ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 16026if test "x$ac_cv_header_locale_h" = xyes 16027then : 16028 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h 16029 16030fi 16031 16032 16033ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 16034if test "x$ac_cv_header_wchar_h" = xyes 16035then : 16036 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h 16037 16038fi 16039 16040 16041ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 16042if test "x$ac_cv_header_stdarg_h" = xyes 16043then : 16044 16045printf "%s\n" "#define HAVE_STDARG 1" >>confdefs.h 16046 16047else $as_nop 16048 ac_fn_c_check_header_compile "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default" 16049if test "x$ac_cv_header_varargs_h" = xyes 16050then : 16051 16052else $as_nop 16053 as_fn_error $? "stdarg.h or varargs.h not found" "$LINENO" 5 16054fi 16055 16056fi 16057 16058 16059ac_fn_c_check_header_compile "$LINENO" "sys/fpu.h" "ac_cv_header_sys_fpu_h" "$ac_includes_default" 16060if test "x$ac_cv_header_sys_fpu_h" = xyes 16061then : 16062 printf "%s\n" "#define HAVE_SYS_FPU_H 1" >>confdefs.h 16063 16064fi 16065 16066 16067ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 16068" 16069if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes 16070then : 16071 16072printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h 16073 16074 16075fi 16076ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 16077" 16078if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes 16079then : 16080 16081printf "%s\n" "#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1" >>confdefs.h 16082 16083 16084fi 16085 16086 16087# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16088# for constant arguments. Useless! 16089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16090printf %s "checking for working alloca.h... " >&6; } 16091if test ${ac_cv_working_alloca_h+y} 16092then : 16093 printf %s "(cached) " >&6 16094else $as_nop 16095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16096/* end confdefs.h. */ 16097#include <alloca.h> 16098int 16099main (void) 16100{ 16101char *p = (char *) alloca (2 * sizeof (int)); 16102 if (p) return 0; 16103 ; 16104 return 0; 16105} 16106_ACEOF 16107if ac_fn_c_try_link "$LINENO" 16108then : 16109 ac_cv_working_alloca_h=yes 16110else $as_nop 16111 ac_cv_working_alloca_h=no 16112fi 16113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16114 conftest$ac_exeext conftest.$ac_ext 16115fi 16116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16117printf "%s\n" "$ac_cv_working_alloca_h" >&6; } 16118if test $ac_cv_working_alloca_h = yes; then 16119 16120printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h 16121 16122fi 16123 16124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16125printf %s "checking for alloca... " >&6; } 16126if test ${ac_cv_func_alloca_works+y} 16127then : 16128 printf %s "(cached) " >&6 16129else $as_nop 16130 if test $ac_cv_working_alloca_h = yes; then 16131 ac_cv_func_alloca_works=yes 16132else 16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16134/* end confdefs.h. */ 16135#include <stdlib.h> 16136#include <stddef.h> 16137#ifndef alloca 16138# ifdef __GNUC__ 16139# define alloca __builtin_alloca 16140# elif defined _MSC_VER 16141# include <malloc.h> 16142# define alloca _alloca 16143# else 16144# ifdef __cplusplus 16145extern "C" 16146# endif 16147void *alloca (size_t); 16148# endif 16149#endif 16150 16151int 16152main (void) 16153{ 16154char *p = (char *) alloca (1); 16155 if (p) return 0; 16156 ; 16157 return 0; 16158} 16159_ACEOF 16160if ac_fn_c_try_link "$LINENO" 16161then : 16162 ac_cv_func_alloca_works=yes 16163else $as_nop 16164 ac_cv_func_alloca_works=no 16165fi 16166rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16167 conftest$ac_exeext conftest.$ac_ext 16168fi 16169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16170printf "%s\n" "$ac_cv_func_alloca_works" >&6; } 16171fi 16172 16173if test $ac_cv_func_alloca_works = yes; then 16174 16175printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h 16176 16177else 16178 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16179# that cause trouble. Some versions do not even contain alloca or 16180# contain a buggy version. If you still want to use their alloca, 16181# use ar to extract alloca.o from them instead of compiling alloca.c. 16182 16183ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16184 16185printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h 16186 16187 16188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16189printf %s "checking stack direction for C alloca... " >&6; } 16190if test ${ac_cv_c_stack_direction+y} 16191then : 16192 printf %s "(cached) " >&6 16193else $as_nop 16194 if test "$cross_compiling" = yes 16195then : 16196 ac_cv_c_stack_direction=0 16197else $as_nop 16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16199/* end confdefs.h. */ 16200$ac_includes_default 16201int 16202find_stack_direction (int *addr, int depth) 16203{ 16204 int dir, dummy = 0; 16205 if (! addr) 16206 addr = &dummy; 16207 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 16208 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 16209 return dir + dummy; 16210} 16211 16212int 16213main (int argc, char **argv) 16214{ 16215 return find_stack_direction (0, argc + !argv + 20) < 0; 16216} 16217_ACEOF 16218if ac_fn_c_try_run "$LINENO" 16219then : 16220 ac_cv_c_stack_direction=1 16221else $as_nop 16222 ac_cv_c_stack_direction=-1 16223fi 16224rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16225 conftest.$ac_objext conftest.beam conftest.$ac_ext 16226fi 16227 16228fi 16229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16230printf "%s\n" "$ac_cv_c_stack_direction" >&6; } 16231printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h 16232 16233 16234fi 16235 16236 16237 16238 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 16239if test "x$ac_cv_type_uintptr_t" = xyes 16240then : 16241 16242printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 16243 16244else $as_nop 16245 for ac_type in 'unsigned int' 'unsigned long int' \ 16246 'unsigned long long int'; do 16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16248/* end confdefs.h. */ 16249$ac_includes_default 16250int 16251main (void) 16252{ 16253static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 16254test_array [0] = 0; 16255return test_array [0]; 16256 16257 ; 16258 return 0; 16259} 16260_ACEOF 16261if ac_fn_c_try_compile "$LINENO" 16262then : 16263 16264printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h 16265 16266 ac_type= 16267fi 16268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16269 test -z "$ac_type" && break 16270 done 16271fi 16272 16273 16274 16275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5 16276printf %s "checking how to copy va_list... " >&6; } 16277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16278/* end confdefs.h. */ 16279 16280#include <stdarg.h> 16281 16282int 16283main (void) 16284{ 16285 16286 va_list ap1, ap2; 16287 va_copy(ap1, ap2); 16288 16289 ; 16290 return 0; 16291} 16292_ACEOF 16293if ac_fn_c_try_link "$LINENO" 16294then : 16295 16296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5 16297printf "%s\n" "va_copy" >&6; } 16298 printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h 16299 16300 16301else $as_nop 16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16303/* end confdefs.h. */ 16304 16305#include <stdarg.h> 16306 16307int 16308main (void) 16309{ 16310 16311 va_list ap1, ap2; 16312 __va_copy(ap1, ap2); 16313 16314 ; 16315 return 0; 16316} 16317_ACEOF 16318if ac_fn_c_try_link "$LINENO" 16319then : 16320 printf "%s\n" "#define HAVE___VA_COPY 1" >>confdefs.h 16321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5 16322printf "%s\n" "__va_copy" >&6; } 16323else $as_nop 16324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5 16325printf "%s\n" "memcpy" >&6; } 16326fi 16327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16328 conftest$ac_exeext conftest.$ac_ext 16329fi 16330rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16331 conftest$ac_exeext conftest.$ac_ext 16332 16333saved_CFLAGS="$CFLAGS" 16334CFLAGS=`echo " $CFLAGS" | $SED 's/ -Werror[^ ]*//g'` 16335ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 16336if test "x$ac_cv_func_setlocale" = xyes 16337then : 16338 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h 16339 16340fi 16341ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 16342if test "x$ac_cv_func_gettimeofday" = xyes 16343then : 16344 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 16345 16346fi 16347ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal" 16348if test "x$ac_cv_func_signal" = xyes 16349then : 16350 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h 16351 16352fi 16353 16354CFLAGS="$saved_CFLAGS" 16355 16356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigaction and its associated structure" >&5 16357printf %s "checking for sigaction and its associated structure... " >&6; } 16358cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16359/* end confdefs.h. */ 16360 16361#include <signal.h> 16362static int f (int (*func)(int, const struct sigaction *, struct sigaction *)) 16363{ return 0; } 16364 16365int 16366main (void) 16367{ 16368 16369 return f(sigaction); 16370 16371 ; 16372 return 0; 16373} 16374_ACEOF 16375if ac_fn_c_try_link "$LINENO" 16376then : 16377 16378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16379printf "%s\n" "yes" >&6; } 16380 16381printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 16382 16383 16384else $as_nop 16385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16386printf "%s\n" "no" >&6; } 16387fi 16388rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16389 conftest$ac_exeext conftest.$ac_ext 16390 16391ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default" 16392if test "x$ac_cv_type_long_long_int" = xyes 16393then : 16394 16395printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h 16396 16397fi 16398 16399 16400ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 16401if test "x$ac_cv_type_intmax_t" = xyes 16402then : 16403 16404printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h 16405 16406 16407fi 16408 16409if test "$ac_cv_type_intmax_t" = yes; then 16410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working INTMAX_MAX" >&5 16411printf %s "checking for working INTMAX_MAX... " >&6; } 16412if test ${mpfr_cv_have_intmax_max+y} 16413then : 16414 printf %s "(cached) " >&6 16415else $as_nop 16416 16417 saved_CPPFLAGS="$CPPFLAGS" 16418 CPPFLAGS="$CPPFLAGS -I$srcdir/src -DMPFR_NEED_INTMAX_H" 16419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16420/* end confdefs.h. */ 16421#include "mpfr-intmax.h" 16422int 16423main (void) 16424{ 16425intmax_t x = INTMAX_MAX; (void) x; 16426 16427 ; 16428 return 0; 16429} 16430_ACEOF 16431if ac_fn_c_try_compile "$LINENO" 16432then : 16433 mpfr_cv_have_intmax_max=yes 16434else $as_nop 16435 mpfr_cv_have_intmax_max=no 16436fi 16437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16438 CPPFLAGS="$saved_CPPFLAGS" 16439 16440fi 16441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_intmax_max" >&5 16442printf "%s\n" "$mpfr_cv_have_intmax_max" >&6; } 16443 if test "$mpfr_cv_have_intmax_max" = "yes"; then 16444 16445printf "%s\n" "#define MPFR_HAVE_INTMAX_MAX 1" >>confdefs.h 16446 16447 fi 16448fi 16449 16450ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" " 16451#if HAVE_SYS_FPU_H 16452# include <sys/fpu.h> 16453#endif 16454 16455" 16456if test "x$ac_cv_type_union_fpc_csr" = xyes 16457then : 16458 16459printf "%s\n" "#define HAVE_FPC_CSR 1" >>confdefs.h 16460 16461fi 16462 16463 16464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Noreturn" >&5 16465printf %s "checking for _Noreturn... " >&6; } 16466if test ${mpfr_cv_have_noreturn+y} 16467then : 16468 printf %s "(cached) " >&6 16469else $as_nop 16470 16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16472/* end confdefs.h. */ 16473_Noreturn void foo(int); 16474_ACEOF 16475if ac_fn_c_try_compile "$LINENO" 16476then : 16477 mpfr_cv_have_noreturn=yes 16478else $as_nop 16479 mpfr_cv_have_noreturn=no 16480fi 16481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16482 16483fi 16484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_noreturn" >&5 16485printf "%s\n" "$mpfr_cv_have_noreturn" >&6; } 16486if test "$mpfr_cv_have_noreturn" = "yes"; then 16487 16488printf "%s\n" "#define MPFR_HAVE_NORETURN 1" >>confdefs.h 16489 16490fi 16491 16492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5 16493printf %s "checking for __builtin_unreachable... " >&6; } 16494if test ${mpfr_cv_have_builtin_unreachable+y} 16495then : 16496 printf %s "(cached) " >&6 16497else $as_nop 16498 16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16500/* end confdefs.h. */ 16501int x; 16502int 16503main (void) 16504{ 16505if (x) __builtin_unreachable(); 16506 16507 ; 16508 return 0; 16509} 16510_ACEOF 16511if ac_fn_c_try_link "$LINENO" 16512then : 16513 mpfr_cv_have_builtin_unreachable=yes 16514else $as_nop 16515 mpfr_cv_have_builtin_unreachable=no 16516fi 16517rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16518 conftest$ac_exeext conftest.$ac_ext 16519 16520fi 16521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_builtin_unreachable" >&5 16522printf "%s\n" "$mpfr_cv_have_builtin_unreachable" >&6; } 16523if test "$mpfr_cv_have_builtin_unreachable" = "yes"; then 16524 16525printf "%s\n" "#define MPFR_HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h 16526 16527fi 16528 16529 16530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for constructor and destructor attributes" >&5 16531printf %s "checking for constructor and destructor attributes... " >&6; } 16532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16533/* end confdefs.h. */ 16534 16535#include <stdlib.h> 16536int x = 0; 16537__attribute__((constructor)) static void 16538call_f(void) { x = 1742; } 16539__attribute__((destructor)) static void 16540call_g(void) { x = 1448; } 16541 16542int 16543main (void) 16544{ 16545 16546 return (x == 1742) ? 0 : 1; 16547 16548 ; 16549 return 0; 16550} 16551_ACEOF 16552if ac_fn_c_try_link "$LINENO" 16553then : 16554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16555printf "%s\n" "yes" >&6; } 16556 mpfr_have_constructor_destructor_attributes=yes 16557else $as_nop 16558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16559printf "%s\n" "no" >&6; } 16560 16561fi 16562rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16563 conftest$ac_exeext conftest.$ac_ext 16564 16565if test "$mpfr_have_constructor_destructor_attributes" = "yes"; then 16566 16567printf "%s\n" "#define MPFR_HAVE_CONSTRUCTOR_ATTR 1" >>confdefs.h 16568 16569fi 16570 16571 16572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5 16573printf %s "checking for fesetround... " >&6; } 16574if test ${mpfr_cv_have_fesetround+y} 16575then : 16576 printf %s "(cached) " >&6 16577else $as_nop 16578 16579saved_LIBS="$LIBS" 16580LIBS="$LIBS $MPFR_LIBM" 16581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16582/* end confdefs.h. */ 16583#include <fenv.h> 16584int 16585main (void) 16586{ 16587fesetround(FE_TONEAREST); 16588 ; 16589 return 0; 16590} 16591_ACEOF 16592if ac_fn_c_try_link "$LINENO" 16593then : 16594 mpfr_cv_have_fesetround=yes 16595else $as_nop 16596 mpfr_cv_have_fesetround=no 16597fi 16598rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16599 conftest$ac_exeext conftest.$ac_ext 16600LIBS="$saved_LIBS" 16601 16602fi 16603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5 16604printf "%s\n" "$mpfr_cv_have_fesetround" >&6; } 16605if test "$mpfr_cv_have_fesetround" = "yes"; then 16606 16607printf "%s\n" "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h 16608 16609fi 16610 16611if test -n "$GCC"; then 16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5 16613printf %s "checking for gcc float-conversion bug... " >&6; } 16614if test ${mpfr_cv_gcc_floatconv_bug+y} 16615then : 16616 printf %s "(cached) " >&6 16617else $as_nop 16618 16619 saved_LIBS="$LIBS" 16620 LIBS="$LIBS $MPFR_LIBM" 16621 if test "$cross_compiling" = yes 16622then : 16623 mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store" 16624else $as_nop 16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16626/* end confdefs.h. */ 16627 16628#include <float.h> 16629#ifdef MPFR_HAVE_FESETROUND 16630#include <fenv.h> 16631#endif 16632static double get_max (void); 16633int main (void) { 16634 double x = 0.5; 16635 double y; 16636 int i; 16637 for (i = 1; i <= 11; i++) 16638 x *= x; 16639 if (x != 0) 16640 return 1; 16641#ifdef MPFR_HAVE_FESETROUND 16642 /* Useful test for the G4 PowerPC */ 16643 fesetround(FE_TOWARDZERO); 16644 x = y = get_max (); 16645 x *= 2.0; 16646 if (x != y) 16647 return 1; 16648#endif 16649 return 0; 16650} 16651static double get_max (void) { static volatile double d = DBL_MAX; return d; } 16652 16653_ACEOF 16654if ac_fn_c_try_run "$LINENO" 16655then : 16656 mpfr_cv_gcc_floatconv_bug="no" 16657else $as_nop 16658 mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store" 16659fi 16660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16661 conftest.$ac_objext conftest.beam conftest.$ac_ext 16662fi 16663 16664 LIBS="$saved_LIBS" 16665 16666fi 16667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5 16668printf "%s\n" "$mpfr_cv_gcc_floatconv_bug" >&6; } 16669 if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then 16670 CFLAGS="$CFLAGS -ffloat-store" 16671 fi 16672fi 16673 16674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for subnormal double-precision numbers" >&5 16675printf %s "checking for subnormal double-precision numbers... " >&6; } 16676if test ${mpfr_cv_have_subnorm_dbl+y} 16677then : 16678 printf %s "(cached) " >&6 16679else $as_nop 16680 16681if test "$cross_compiling" = yes 16682then : 16683 mpfr_cv_have_subnorm_dbl="cannot test, assume no" 16684else $as_nop 16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16686/* end confdefs.h. */ 16687 16688#include <stdio.h> 16689int main (void) { 16690 volatile double x = 2.22507385850720138309e-308, y; 16691 y = x / 2.0; 16692 fprintf (stderr, "%e\n", y); 16693 return 2.0 * y != x; 16694} 16695 16696_ACEOF 16697if ac_fn_c_try_run "$LINENO" 16698then : 16699 mpfr_cv_have_subnorm_dbl="yes" 16700else $as_nop 16701 mpfr_cv_have_subnorm_dbl="no" 16702fi 16703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16704 conftest.$ac_objext conftest.beam conftest.$ac_ext 16705fi 16706 16707 16708fi 16709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_subnorm_dbl" >&5 16710printf "%s\n" "$mpfr_cv_have_subnorm_dbl" >&6; } 16711if test "$mpfr_cv_have_subnorm_dbl" = "yes"; then 16712 16713printf "%s\n" "#define HAVE_SUBNORM_DBL 1" >>confdefs.h 16714 16715fi 16716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for subnormal single-precision numbers" >&5 16717printf %s "checking for subnormal single-precision numbers... " >&6; } 16718if test ${mpfr_cv_have_subnorm_flt+y} 16719then : 16720 printf %s "(cached) " >&6 16721else $as_nop 16722 16723if test "$cross_compiling" = yes 16724then : 16725 mpfr_cv_have_subnorm_flt="cannot test, assume no" 16726else $as_nop 16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16728/* end confdefs.h. */ 16729 16730#include <stdio.h> 16731int main (void) { 16732 volatile float x = 1.17549435082229e-38, y; 16733 y = x / 2.0f; 16734 fprintf (stderr, "%e\n", (double) y); 16735 return 2.0f * y != x; 16736} 16737 16738_ACEOF 16739if ac_fn_c_try_run "$LINENO" 16740then : 16741 mpfr_cv_have_subnorm_flt="yes" 16742else $as_nop 16743 mpfr_cv_have_subnorm_flt="no" 16744fi 16745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16746 conftest.$ac_objext conftest.beam conftest.$ac_ext 16747fi 16748 16749 16750fi 16751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_subnorm_flt" >&5 16752printf "%s\n" "$mpfr_cv_have_subnorm_flt" >&6; } 16753if test "$mpfr_cv_have_subnorm_flt" = "yes"; then 16754 16755printf "%s\n" "#define HAVE_SUBNORM_FLT 1" >>confdefs.h 16756 16757fi 16758 16759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for signed zeros" >&5 16760printf %s "checking for signed zeros... " >&6; } 16761if test ${mpfr_cv_have_signedz+y} 16762then : 16763 printf %s "(cached) " >&6 16764else $as_nop 16765 16766if test "$cross_compiling" = yes 16767then : 16768 mpfr_cv_have_signedz="cannot test, assume no" 16769else $as_nop 16770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16771/* end confdefs.h. */ 16772 16773int main (void) { 16774 return 1.0 / 0.0 == 1.0 / -0.0; 16775} 16776 16777_ACEOF 16778if ac_fn_c_try_run "$LINENO" 16779then : 16780 mpfr_cv_have_signedz="yes" 16781else $as_nop 16782 mpfr_cv_have_signedz="no" 16783fi 16784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16785 conftest.$ac_objext conftest.beam conftest.$ac_ext 16786fi 16787 16788 16789fi 16790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_signedz" >&5 16791printf "%s\n" "$mpfr_cv_have_signedz" >&6; } 16792if test "$mpfr_cv_have_signedz" = "yes"; then 16793 16794printf "%s\n" "#define HAVE_SIGNEDZ 1" >>confdefs.h 16795 16796fi 16797 16798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the FP division by 0 fails" >&5 16799printf %s "checking if the FP division by 0 fails... " >&6; } 16800if test ${mpfr_cv_errdivzero+y} 16801then : 16802 printf %s "(cached) " >&6 16803else $as_nop 16804 16805if test "$cross_compiling" = yes 16806then : 16807 mpfr_cv_errdivzero="cannot test, assume no" 16808else $as_nop 16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16810/* end confdefs.h. */ 16811 16812int main (void) { 16813 volatile double d = 0.0, x; 16814 x = 0.0 / d; 16815 x = 1.0 / d; 16816 (void) x; 16817 return 0; 16818} 16819 16820_ACEOF 16821if ac_fn_c_try_run "$LINENO" 16822then : 16823 mpfr_cv_errdivzero="no" 16824else $as_nop 16825 mpfr_cv_errdivzero="yes" 16826fi 16827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16828 conftest.$ac_objext conftest.beam conftest.$ac_ext 16829fi 16830 16831 16832fi 16833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_errdivzero" >&5 16834printf "%s\n" "$mpfr_cv_errdivzero" >&6; } 16835if test "$mpfr_cv_errdivzero" = "yes"; then 16836 16837printf "%s\n" "#define MPFR_ERRDIVZERO 1" >>confdefs.h 16838 16839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The floating-point division by 0 fails instead of" >&5 16840printf "%s\n" "$as_me: WARNING: The floating-point division by 0 fails instead of" >&2;} 16841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: returning a special value: NaN or infinity. Tests" >&5 16842printf "%s\n" "$as_me: WARNING: returning a special value: NaN or infinity. Tests" >&2;} 16843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: involving a FP division by 0 will be disabled." >&5 16844printf "%s\n" "$as_me: WARNING: involving a FP division by 0 will be disabled." >&2;} 16845fi 16846 16847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5 16848printf %s "checking if NAN == NAN... " >&6; } 16849if test ${mpfr_cv_nanisnan+y} 16850then : 16851 printf %s "(cached) " >&6 16852else $as_nop 16853 16854if test "$cross_compiling" = yes 16855then : 16856 mpfr_cv_nanisnan="cannot test, assume no" 16857else $as_nop 16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16859/* end confdefs.h. */ 16860 16861#include <stdio.h> 16862#include <math.h> 16863#ifndef NAN 16864# define NAN (0.0/0.0) 16865#endif 16866int main (void) { 16867 double d; 16868 d = NAN; 16869 return d != d; 16870} 16871 16872_ACEOF 16873if ac_fn_c_try_run "$LINENO" 16874then : 16875 mpfr_cv_nanisnan="yes" 16876else $as_nop 16877 mpfr_cv_nanisnan="no" 16878fi 16879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16880 conftest.$ac_objext conftest.beam conftest.$ac_ext 16881fi 16882 16883 16884fi 16885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5 16886printf "%s\n" "$mpfr_cv_nanisnan" >&6; } 16887if test "$mpfr_cv_nanisnan" = "yes"; then 16888 16889printf "%s\n" "#define MPFR_NANISNAN 1" >>confdefs.h 16890 16891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5 16892printf "%s\n" "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;} 16893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5 16894printf "%s\n" "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;} 16895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5 16896printf "%s\n" "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;} 16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used. You" >&5 16898printf "%s\n" "$as_me: WARNING: -fast (depending on the compiler), has been used. You" >&2;} 16899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5 16900printf "%s\n" "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;} 16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5 16902printf "%s\n" "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;} 16903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5 16904printf "%s\n" "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;} 16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5 16906printf "%s\n" "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;} 16907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5 16908printf "%s\n" "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;} 16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5 16910printf "%s\n" "$as_me: WARNING: platform and/or document the behavior." >&2;} 16911fi 16912 16913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5 16914printf %s "checking if charset has consecutive values... " >&6; } 16915if test "$cross_compiling" = yes 16916then : 16917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 16918printf "%s\n" "cannot test" >&6; } 16919else $as_nop 16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16921/* end confdefs.h. */ 16922 16923const char *number = "0123456789"; 16924const char *lower = "abcdefghijklmnopqrstuvwxyz"; 16925const char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; 16926 16927int 16928main (void) 16929{ 16930 16931 int i; 16932 unsigned char *p; 16933 for (p = (unsigned char*) number, i = 0; i < 9; i++) 16934 if ( (*p)+1 != *(p+1) ) return 1; 16935 for (p = (unsigned char*) lower, i = 0; i < 25; i++) 16936 if ( (*p)+1 != *(p+1) ) return 1; 16937 for (p = (unsigned char*) upper, i = 0; i < 25; i++) 16938 if ( (*p)+1 != *(p+1) ) return 1; 16939 16940 ; 16941 return 0; 16942} 16943_ACEOF 16944if ac_fn_c_try_run "$LINENO" 16945then : 16946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16947printf "%s\n" "yes" >&6; } 16948else $as_nop 16949 16950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16951printf "%s\n" "no" >&6; } 16952 16953printf "%s\n" "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h 16954 16955 16956fi 16957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16958 conftest.$ac_objext conftest.beam conftest.$ac_ext 16959fi 16960 16961 16962saved_LIBS="$LIBS" 16963LIBS="$LIBS $MPFR_LIBM" 16964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/round" >&5 16965printf %s "checking for math/round... " >&6; } 16966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16967/* end confdefs.h. */ 16968 16969#include <math.h> 16970static int f (double (*func)(double)) { return 0; } 16971 16972int 16973main (void) 16974{ 16975 16976 return f(round); 16977 16978 ; 16979 return 0; 16980} 16981_ACEOF 16982if ac_fn_c_try_link "$LINENO" 16983then : 16984 16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16986printf "%s\n" "yes" >&6; } 16987 16988printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h 16989 16990 16991else $as_nop 16992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16993printf "%s\n" "no" >&6; } 16994fi 16995rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16996 conftest$ac_exeext conftest.$ac_ext 16997 16998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/trunc" >&5 16999printf %s "checking for math/trunc... " >&6; } 17000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17001/* end confdefs.h. */ 17002 17003#include <math.h> 17004static int f (double (*func)(double)) { return 0; } 17005 17006int 17007main (void) 17008{ 17009 17010 return f(trunc); 17011 17012 ; 17013 return 0; 17014} 17015_ACEOF 17016if ac_fn_c_try_link "$LINENO" 17017then : 17018 17019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17020printf "%s\n" "yes" >&6; } 17021 17022printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h 17023 17024 17025else $as_nop 17026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17027printf "%s\n" "no" >&6; } 17028fi 17029rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17030 conftest$ac_exeext conftest.$ac_ext 17031 17032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/floor" >&5 17033printf %s "checking for math/floor... " >&6; } 17034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17035/* end confdefs.h. */ 17036 17037#include <math.h> 17038static int f (double (*func)(double)) { return 0; } 17039 17040int 17041main (void) 17042{ 17043 17044 return f(floor); 17045 17046 ; 17047 return 0; 17048} 17049_ACEOF 17050if ac_fn_c_try_link "$LINENO" 17051then : 17052 17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17054printf "%s\n" "yes" >&6; } 17055 17056printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h 17057 17058 17059else $as_nop 17060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17061printf "%s\n" "no" >&6; } 17062fi 17063rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17064 conftest$ac_exeext conftest.$ac_ext 17065 17066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/ceil" >&5 17067printf %s "checking for math/ceil... " >&6; } 17068cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17069/* end confdefs.h. */ 17070 17071#include <math.h> 17072static int f (double (*func)(double)) { return 0; } 17073 17074int 17075main (void) 17076{ 17077 17078 return f(ceil); 17079 17080 ; 17081 return 0; 17082} 17083_ACEOF 17084if ac_fn_c_try_link "$LINENO" 17085then : 17086 17087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17088printf "%s\n" "yes" >&6; } 17089 17090printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h 17091 17092 17093else $as_nop 17094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17095printf "%s\n" "no" >&6; } 17096fi 17097rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17098 conftest$ac_exeext conftest.$ac_ext 17099 17100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/nearbyint" >&5 17101printf %s "checking for math/nearbyint... " >&6; } 17102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17103/* end confdefs.h. */ 17104 17105#include <math.h> 17106static int f (double (*func)(double)) { return 0; } 17107 17108int 17109main (void) 17110{ 17111 17112 return f(nearbyint); 17113 17114 ; 17115 return 0; 17116} 17117_ACEOF 17118if ac_fn_c_try_link "$LINENO" 17119then : 17120 17121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17122printf "%s\n" "yes" >&6; } 17123 17124printf "%s\n" "#define HAVE_NEARBYINT 1" >>confdefs.h 17125 17126 17127else $as_nop 17128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17129printf "%s\n" "no" >&6; } 17130fi 17131rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17132 conftest$ac_exeext conftest.$ac_ext 17133 17134LIBS="$saved_LIBS" 17135 17136 17137 17138 17139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking format of floating-point type \`double'" >&5 17140printf %s "checking format of floating-point type \`double'... " >&6; } 17141if test ${mpfr_cv_c_double_format+y} 17142then : 17143 printf %s "(cached) " >&6 17144else $as_nop 17145 mpfr_cv_c_double_format=unknown 17146 cat >conftest.c <<\EOF 17147 17148#include <stdio.h> 17149/* "before" is 16 bytes to ensure there's no padding between it and "x". 17150 We're not expecting any type bigger than 16 bytes or with 17151 alignment requirements stricter than 16 bytes. */ 17152typedef struct { 17153 char before[16]; 17154 double x; 17155 char after[8]; 17156} foo_t; 17157 17158foo_t foo = { 17159 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 17160 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' }, 17161 -123456789.0, 17162 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' } 17163}; 17164 17165int main (void) { 17166 int i; 17167 for (i = 0; i < 8; i++) 17168 printf ("%d %f\n", foo.before[i] + foo.after[i], foo.x); 17169 return 0; 17170} 17171 17172EOF 17173 mpfr_compile="$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.c -o conftest$EXEEXT >&5 2>&1" 17174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5 17175 (eval $mpfr_compile) 2>&5 17176 ac_status=$? 17177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17178 test $ac_status = 0; }; then 17179 cat >conftest.awk <<\EOF 17180 17181BEGIN { 17182 found = 0 17183} 17184 17185# got[] holds a sliding window of bytes read the input. got[0] is the most 17186# recent byte read, and got[31] the oldest byte read, so when looking to 17187# match some data the indices are "reversed". 17188# 17189{ 17190 for (f = 2; f <= NF; f++) 17191 { 17192 # new byte, shift others up 17193 for (i = 31; i >= 0; i--) 17194 got[i+1] = got[i]; 17195 got[0] = $f; 17196 17197 # end sequence 17198 if (got[7] != "376") continue 17199 if (got[6] != "334") continue 17200 if (got[5] != "272") continue 17201 if (got[4] != "230") continue 17202 if (got[3] != "166") continue 17203 if (got[2] != "124") continue 17204 if (got[1] != "062") continue 17205 if (got[0] != "020") continue 17206 17207 # start sequence, with 8-byte body 17208 if (got[23] == "001" && \ 17209 got[22] == "043" && \ 17210 got[21] == "105" && \ 17211 got[20] == "147" && \ 17212 got[19] == "211" && \ 17213 got[18] == "253" && \ 17214 got[17] == "315" && \ 17215 got[16] == "357") 17216 { 17217 saw = " (" got[15] \ 17218 " " got[14] \ 17219 " " got[13] \ 17220 " " got[12] \ 17221 " " got[11] \ 17222 " " got[10] \ 17223 " " got[9] \ 17224 " " got[8] ")" 17225 17226 if (got[15] == "301" && \ 17227 got[14] == "235" && \ 17228 got[13] == "157" && \ 17229 got[12] == "064" && \ 17230 got[11] == "124" && \ 17231 got[10] == "000" && \ 17232 got[9] == "000" && \ 17233 got[8] == "000") 17234 { 17235 print "IEEE double, big endian" 17236 found = 1 17237 exit 17238 } 17239 17240 if (got[15] == "000" && \ 17241 got[14] == "000" && \ 17242 got[13] == "000" && \ 17243 got[12] == "124" && \ 17244 got[11] == "064" && \ 17245 got[10] == "157" && \ 17246 got[9] == "235" && \ 17247 got[8] == "301") 17248 { 17249 print "IEEE double, little endian" 17250 found = 1 17251 exit 17252 } 17253 } 17254 17255 # start sequence, with 12-byte body 17256 if (got[27] == "001" && \ 17257 got[26] == "043" && \ 17258 got[25] == "105" && \ 17259 got[24] == "147" && \ 17260 got[23] == "211" && \ 17261 got[22] == "253" && \ 17262 got[21] == "315" && \ 17263 got[20] == "357") 17264 { 17265 saw = " (" got[19] \ 17266 " " got[18] \ 17267 " " got[17] \ 17268 " " got[16] \ 17269 " " got[15] \ 17270 " " got[14] \ 17271 " " got[13] \ 17272 " " got[12] \ 17273 " " got[11] \ 17274 " " got[10] \ 17275 " " got[9] \ 17276 " " got[8] ")" 17277 17278 if (got[19] == "000" && \ 17279 got[18] == "000" && \ 17280 got[17] == "000" && \ 17281 got[16] == "000" && \ 17282 got[15] == "240" && \ 17283 got[14] == "242" && \ 17284 got[13] == "171" && \ 17285 got[12] == "353" && \ 17286 got[11] == "031" && \ 17287 got[10] == "300") 17288 { 17289 print "IEEE extended, little endian (12 bytes)" 17290 found = 1 17291 exit 17292 } 17293 17294 if (got[19] == "300" && \ 17295 got[18] == "031" && \ 17296 got[17] == "000" && \ 17297 got[16] == "000" && \ 17298 got[15] == "353" && \ 17299 got[14] == "171" && \ 17300 got[13] == "242" && \ 17301 got[12] == "240" && \ 17302 got[11] == "000" && \ 17303 got[10] == "000" && \ 17304 got[09] == "000" && \ 17305 got[08] == "000") 17306 { 17307 # format found on m68k 17308 print "IEEE extended, big endian (12 bytes)" 17309 found = 1 17310 exit 17311 } 17312 } 17313 17314 # start sequence, with 16-byte body 17315 if (got[31] == "001" && \ 17316 got[30] == "043" && \ 17317 got[29] == "105" && \ 17318 got[28] == "147" && \ 17319 got[27] == "211" && \ 17320 got[26] == "253" && \ 17321 got[25] == "315" && \ 17322 got[24] == "357") 17323 { 17324 saw = " (" got[23] \ 17325 " " got[22] \ 17326 " " got[21] \ 17327 " " got[20] \ 17328 " " got[19] \ 17329 " " got[18] \ 17330 " " got[17] \ 17331 " " got[16] \ 17332 " " got[15] \ 17333 " " got[14] \ 17334 " " got[13] \ 17335 " " got[12] \ 17336 " " got[11] \ 17337 " " got[10] \ 17338 " " got[9] \ 17339 " " got[8] ")" 17340 17341 if (got[23] == "000" && \ 17342 got[22] == "000" && \ 17343 got[21] == "000" && \ 17344 got[20] == "000" && \ 17345 got[19] == "240" && \ 17346 got[18] == "242" && \ 17347 got[17] == "171" && \ 17348 got[16] == "353" && \ 17349 got[15] == "031" && \ 17350 got[14] == "300") 17351 { 17352 print "IEEE extended, little endian (16 bytes)" 17353 found = 1 17354 exit 17355 } 17356 17357 if (got[23] == "300" && \ 17358 got[22] == "031" && \ 17359 got[21] == "326" && \ 17360 got[20] == "363" && \ 17361 got[19] == "105" && \ 17362 got[18] == "100" && \ 17363 got[17] == "000" && \ 17364 got[16] == "000" && \ 17365 got[15] == "000" && \ 17366 got[14] == "000" && \ 17367 got[13] == "000" && \ 17368 got[12] == "000" && \ 17369 got[11] == "000" && \ 17370 got[10] == "000" && \ 17371 got[9] == "000" && \ 17372 got[8] == "000") 17373 { 17374 # format used on HP 9000/785 under HP-UX 17375 print "IEEE quad, big endian" 17376 found = 1 17377 exit 17378 } 17379 17380 if (got[23] == "000" && \ 17381 got[22] == "000" && \ 17382 got[21] == "000" && \ 17383 got[20] == "000" && \ 17384 got[19] == "000" && \ 17385 got[18] == "000" && \ 17386 got[17] == "000" && \ 17387 got[16] == "000" && \ 17388 got[15] == "000" && \ 17389 got[14] == "000" && \ 17390 got[13] == "100" && \ 17391 got[12] == "105" && \ 17392 got[11] == "363" && \ 17393 got[10] == "326" && \ 17394 got[9] == "031" && \ 17395 got[8] == "300") 17396 { 17397 print "IEEE quad, little endian" 17398 found = 1 17399 exit 17400 } 17401 17402 if (got[23] == "301" && \ 17403 got[22] == "235" && \ 17404 got[21] == "157" && \ 17405 got[20] == "064" && \ 17406 got[19] == "124" && \ 17407 got[18] == "000" && \ 17408 got[17] == "000" && \ 17409 got[16] == "000" && \ 17410 got[15] == "000" && \ 17411 got[14] == "000" && \ 17412 got[13] == "000" && \ 17413 got[12] == "000" && \ 17414 got[11] == "000" && \ 17415 got[10] == "000" && \ 17416 got[9] == "000" && \ 17417 got[8] == "000") 17418 { 17419 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux) 17420 print "possibly double-double, big endian" 17421 found = 1 17422 exit 17423 } 17424 17425 if (got[23] == "000" && \ 17426 got[22] == "000" && \ 17427 got[21] == "000" && \ 17428 got[20] == "124" && \ 17429 got[19] == "064" && \ 17430 got[18] == "157" && \ 17431 got[17] == "235" && \ 17432 got[16] == "301" && \ 17433 got[15] == "000" && \ 17434 got[14] == "000" && \ 17435 got[13] == "000" && \ 17436 got[12] == "000" && \ 17437 got[11] == "000" && \ 17438 got[10] == "000" && \ 17439 got[9] == "000" && \ 17440 got[8] == "000") 17441 { 17442 # format used on ppc64le 17443 print "possibly double-double, little endian" 17444 found = 1 17445 exit 17446 } 17447 } 17448 } 17449} 17450 17451END { 17452 if (! found) 17453 print "unknown", saw 17454} 17455 17456EOF 17457 mpfr_cv_c_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk` 17458 case $mpfr_cv_c_double_format in 17459 unknown*) 17460 echo "cannot match anything, conftest$EXEEXT contains" >&5 17461 od -b conftest$EXEEXT >&5 17462 ;; 17463 esac 17464 else 17465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5 17466printf "%s\n" "$as_me: WARNING: oops, cannot compile test program" >&2;} 17467 fi 17468 rm -f conftest* 17469 17470fi 17471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_double_format" >&5 17472printf "%s\n" "$mpfr_cv_c_double_format" >&6; } 17473case $mpfr_cv_c_double_format in 17474 "IEEE double, big endian"*) 17475 printf "%s\n" "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h 17476 17477 ;; 17478 "IEEE double, little endian"*) 17479 printf "%s\n" "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h 17480 17481 ;; 17482 unknown*) 17483 ;; 17484 *) 17485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: format of \`double' unsupported or not recognized: $mpfr_cv_c_double_format" >&5 17486printf "%s\n" "$as_me: WARNING: format of \`double' unsupported or not recognized: $mpfr_cv_c_double_format" >&2;} 17487 ;; 17488esac 17489 17490 17491 17492 17493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking format of floating-point type \`long double'" >&5 17494printf %s "checking format of floating-point type \`long double'... " >&6; } 17495if test ${mpfr_cv_c_long_double_format+y} 17496then : 17497 printf %s "(cached) " >&6 17498else $as_nop 17499 mpfr_cv_c_long_double_format=unknown 17500 cat >conftest.c <<\EOF 17501 17502#include <stdio.h> 17503/* "before" is 16 bytes to ensure there's no padding between it and "x". 17504 We're not expecting any type bigger than 16 bytes or with 17505 alignment requirements stricter than 16 bytes. */ 17506typedef struct { 17507 char before[16]; 17508 long double x; 17509 char after[8]; 17510} foo_t; 17511 17512foo_t foo = { 17513 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 17514 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' }, 17515 -123456789.0, 17516 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' } 17517}; 17518 17519int main (void) { 17520 int i; 17521 for (i = 0; i < 8; i++) 17522 printf ("%d %Lf\n", foo.before[i] + foo.after[i], foo.x); 17523 return 0; 17524} 17525 17526EOF 17527 mpfr_compile="$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.c -o conftest$EXEEXT >&5 2>&1" 17528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5 17529 (eval $mpfr_compile) 2>&5 17530 ac_status=$? 17531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17532 test $ac_status = 0; }; then 17533 cat >conftest.awk <<\EOF 17534 17535BEGIN { 17536 found = 0 17537} 17538 17539# got[] holds a sliding window of bytes read the input. got[0] is the most 17540# recent byte read, and got[31] the oldest byte read, so when looking to 17541# match some data the indices are "reversed". 17542# 17543{ 17544 for (f = 2; f <= NF; f++) 17545 { 17546 # new byte, shift others up 17547 for (i = 31; i >= 0; i--) 17548 got[i+1] = got[i]; 17549 got[0] = $f; 17550 17551 # end sequence 17552 if (got[7] != "376") continue 17553 if (got[6] != "334") continue 17554 if (got[5] != "272") continue 17555 if (got[4] != "230") continue 17556 if (got[3] != "166") continue 17557 if (got[2] != "124") continue 17558 if (got[1] != "062") continue 17559 if (got[0] != "020") continue 17560 17561 # start sequence, with 8-byte body 17562 if (got[23] == "001" && \ 17563 got[22] == "043" && \ 17564 got[21] == "105" && \ 17565 got[20] == "147" && \ 17566 got[19] == "211" && \ 17567 got[18] == "253" && \ 17568 got[17] == "315" && \ 17569 got[16] == "357") 17570 { 17571 saw = " (" got[15] \ 17572 " " got[14] \ 17573 " " got[13] \ 17574 " " got[12] \ 17575 " " got[11] \ 17576 " " got[10] \ 17577 " " got[9] \ 17578 " " got[8] ")" 17579 17580 if (got[15] == "301" && \ 17581 got[14] == "235" && \ 17582 got[13] == "157" && \ 17583 got[12] == "064" && \ 17584 got[11] == "124" && \ 17585 got[10] == "000" && \ 17586 got[9] == "000" && \ 17587 got[8] == "000") 17588 { 17589 print "IEEE double, big endian" 17590 found = 1 17591 exit 17592 } 17593 17594 if (got[15] == "000" && \ 17595 got[14] == "000" && \ 17596 got[13] == "000" && \ 17597 got[12] == "124" && \ 17598 got[11] == "064" && \ 17599 got[10] == "157" && \ 17600 got[9] == "235" && \ 17601 got[8] == "301") 17602 { 17603 print "IEEE double, little endian" 17604 found = 1 17605 exit 17606 } 17607 } 17608 17609 # start sequence, with 12-byte body 17610 if (got[27] == "001" && \ 17611 got[26] == "043" && \ 17612 got[25] == "105" && \ 17613 got[24] == "147" && \ 17614 got[23] == "211" && \ 17615 got[22] == "253" && \ 17616 got[21] == "315" && \ 17617 got[20] == "357") 17618 { 17619 saw = " (" got[19] \ 17620 " " got[18] \ 17621 " " got[17] \ 17622 " " got[16] \ 17623 " " got[15] \ 17624 " " got[14] \ 17625 " " got[13] \ 17626 " " got[12] \ 17627 " " got[11] \ 17628 " " got[10] \ 17629 " " got[9] \ 17630 " " got[8] ")" 17631 17632 if (got[19] == "000" && \ 17633 got[18] == "000" && \ 17634 got[17] == "000" && \ 17635 got[16] == "000" && \ 17636 got[15] == "240" && \ 17637 got[14] == "242" && \ 17638 got[13] == "171" && \ 17639 got[12] == "353" && \ 17640 got[11] == "031" && \ 17641 got[10] == "300") 17642 { 17643 print "IEEE extended, little endian (12 bytes)" 17644 found = 1 17645 exit 17646 } 17647 17648 if (got[19] == "300" && \ 17649 got[18] == "031" && \ 17650 got[17] == "000" && \ 17651 got[16] == "000" && \ 17652 got[15] == "353" && \ 17653 got[14] == "171" && \ 17654 got[13] == "242" && \ 17655 got[12] == "240" && \ 17656 got[11] == "000" && \ 17657 got[10] == "000" && \ 17658 got[09] == "000" && \ 17659 got[08] == "000") 17660 { 17661 # format found on m68k 17662 print "IEEE extended, big endian (12 bytes)" 17663 found = 1 17664 exit 17665 } 17666 } 17667 17668 # start sequence, with 16-byte body 17669 if (got[31] == "001" && \ 17670 got[30] == "043" && \ 17671 got[29] == "105" && \ 17672 got[28] == "147" && \ 17673 got[27] == "211" && \ 17674 got[26] == "253" && \ 17675 got[25] == "315" && \ 17676 got[24] == "357") 17677 { 17678 saw = " (" got[23] \ 17679 " " got[22] \ 17680 " " got[21] \ 17681 " " got[20] \ 17682 " " got[19] \ 17683 " " got[18] \ 17684 " " got[17] \ 17685 " " got[16] \ 17686 " " got[15] \ 17687 " " got[14] \ 17688 " " got[13] \ 17689 " " got[12] \ 17690 " " got[11] \ 17691 " " got[10] \ 17692 " " got[9] \ 17693 " " got[8] ")" 17694 17695 if (got[23] == "000" && \ 17696 got[22] == "000" && \ 17697 got[21] == "000" && \ 17698 got[20] == "000" && \ 17699 got[19] == "240" && \ 17700 got[18] == "242" && \ 17701 got[17] == "171" && \ 17702 got[16] == "353" && \ 17703 got[15] == "031" && \ 17704 got[14] == "300") 17705 { 17706 print "IEEE extended, little endian (16 bytes)" 17707 found = 1 17708 exit 17709 } 17710 17711 if (got[23] == "300" && \ 17712 got[22] == "031" && \ 17713 got[21] == "326" && \ 17714 got[20] == "363" && \ 17715 got[19] == "105" && \ 17716 got[18] == "100" && \ 17717 got[17] == "000" && \ 17718 got[16] == "000" && \ 17719 got[15] == "000" && \ 17720 got[14] == "000" && \ 17721 got[13] == "000" && \ 17722 got[12] == "000" && \ 17723 got[11] == "000" && \ 17724 got[10] == "000" && \ 17725 got[9] == "000" && \ 17726 got[8] == "000") 17727 { 17728 # format used on HP 9000/785 under HP-UX 17729 print "IEEE quad, big endian" 17730 found = 1 17731 exit 17732 } 17733 17734 if (got[23] == "000" && \ 17735 got[22] == "000" && \ 17736 got[21] == "000" && \ 17737 got[20] == "000" && \ 17738 got[19] == "000" && \ 17739 got[18] == "000" && \ 17740 got[17] == "000" && \ 17741 got[16] == "000" && \ 17742 got[15] == "000" && \ 17743 got[14] == "000" && \ 17744 got[13] == "100" && \ 17745 got[12] == "105" && \ 17746 got[11] == "363" && \ 17747 got[10] == "326" && \ 17748 got[9] == "031" && \ 17749 got[8] == "300") 17750 { 17751 print "IEEE quad, little endian" 17752 found = 1 17753 exit 17754 } 17755 17756 if (got[23] == "301" && \ 17757 got[22] == "235" && \ 17758 got[21] == "157" && \ 17759 got[20] == "064" && \ 17760 got[19] == "124" && \ 17761 got[18] == "000" && \ 17762 got[17] == "000" && \ 17763 got[16] == "000" && \ 17764 got[15] == "000" && \ 17765 got[14] == "000" && \ 17766 got[13] == "000" && \ 17767 got[12] == "000" && \ 17768 got[11] == "000" && \ 17769 got[10] == "000" && \ 17770 got[9] == "000" && \ 17771 got[8] == "000") 17772 { 17773 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux) 17774 print "possibly double-double, big endian" 17775 found = 1 17776 exit 17777 } 17778 17779 if (got[23] == "000" && \ 17780 got[22] == "000" && \ 17781 got[21] == "000" && \ 17782 got[20] == "124" && \ 17783 got[19] == "064" && \ 17784 got[18] == "157" && \ 17785 got[17] == "235" && \ 17786 got[16] == "301" && \ 17787 got[15] == "000" && \ 17788 got[14] == "000" && \ 17789 got[13] == "000" && \ 17790 got[12] == "000" && \ 17791 got[11] == "000" && \ 17792 got[10] == "000" && \ 17793 got[9] == "000" && \ 17794 got[8] == "000") 17795 { 17796 # format used on ppc64le 17797 print "possibly double-double, little endian" 17798 found = 1 17799 exit 17800 } 17801 } 17802 } 17803} 17804 17805END { 17806 if (! found) 17807 print "unknown", saw 17808} 17809 17810EOF 17811 mpfr_cv_c_long_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk` 17812 case $mpfr_cv_c_long_double_format in 17813 unknown*) 17814 echo "cannot match anything, conftest$EXEEXT contains" >&5 17815 od -b conftest$EXEEXT >&5 17816 ;; 17817 esac 17818 else 17819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5 17820printf "%s\n" "$as_me: WARNING: oops, cannot compile test program" >&2;} 17821 fi 17822 rm -f conftest* 17823 17824fi 17825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5 17826printf "%s\n" "$mpfr_cv_c_long_double_format" >&6; } 17827case $mpfr_cv_c_long_double_format in 17828 "IEEE double, big endian"*) 17829 printf "%s\n" "#define HAVE_LDOUBLE_IS_DOUBLE 1" >>confdefs.h 17830 17831 ;; 17832 "IEEE double, little endian"*) 17833 printf "%s\n" "#define HAVE_LDOUBLE_IS_DOUBLE 1" >>confdefs.h 17834 17835 ;; 17836 "IEEE extended, little endian"*) 17837 printf "%s\n" "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h 17838 17839 ;; 17840 "IEEE extended, big endian"*) 17841 printf "%s\n" "#define HAVE_LDOUBLE_IEEE_EXT_BIG 1" >>confdefs.h 17842 17843 ;; 17844 "IEEE quad, big endian"*) 17845 printf "%s\n" "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h 17846 17847 ;; 17848 "IEEE quad, little endian"*) 17849 printf "%s\n" "#define HAVE_LDOUBLE_IEEE_QUAD_LITTLE 1" >>confdefs.h 17850 17851 ;; 17852 "possibly double-double, big endian"*) 17853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5 17854printf "%s\n" "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;} 17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5 17856printf "%s\n" "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;} 17857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5 17858printf "%s\n" "$as_me: WARNING: You can safely ignore this warning, though." >&2;} 17859 printf "%s\n" "#define HAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE 1" >>confdefs.h 17860 17861 ;; 17862 "possibly double-double, little endian"*) 17863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5 17864printf "%s\n" "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;} 17865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5 17866printf "%s\n" "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;} 17867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5 17868printf "%s\n" "$as_me: WARNING: You can safely ignore this warning, though." >&2;} 17869 printf "%s\n" "#define HAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE 1" >>confdefs.h 17870 17871 ;; 17872 unknown*) 17873 ;; 17874 *) 17875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: format of \`long double' unsupported or not recognized: $mpfr_cv_c_long_double_format" >&5 17876printf "%s\n" "$as_me: WARNING: format of \`long double' unsupported or not recognized: $mpfr_cv_c_long_double_format" >&2;} 17877 ;; 17878esac 17879 17880if test "$enable_thread_safe" != no; then 17881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS support using C11" >&5 17882printf %s "checking for TLS support using C11... " >&6; } 17883saved_CPPFLAGS="$CPPFLAGS" 17884CPPFLAGS="$CPPFLAGS -I$srcdir/src" 17885if test "$cross_compiling" = yes 17886then : 17887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5 17888printf "%s\n" "cannot test, assume no" >&6; } 17889 17890else $as_nop 17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17892/* end confdefs.h. */ 17893 17894#define MPFR_USE_THREAD_SAFE 1 17895#define MPFR_USE_C11_THREAD_SAFE 1 17896#include "mpfr-thread.h" 17897MPFR_THREAD_ATTR int x = 17; 17898int main (void) { 17899 return x != 17; 17900} 17901 17902_ACEOF 17903if ac_fn_c_try_run "$LINENO" 17904then : 17905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17906printf "%s\n" "yes" >&6; } 17907 17908printf "%s\n" "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h 17909 17910 17911printf "%s\n" "#define MPFR_USE_C11_THREAD_SAFE 1" >>confdefs.h 17912 17913 tls_c11_support=yes 17914 enable_thread_safe=yes 17915 17916else $as_nop 17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17918printf "%s\n" "no" >&6; } 17919 17920fi 17921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17922 conftest.$ac_objext conftest.beam conftest.$ac_ext 17923fi 17924 17925CPPFLAGS="$saved_CPPFLAGS" 17926 17927if test "$tls_c11_support" != "yes" 17928then 17929 17930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5 17931printf %s "checking for TLS support... " >&6; } 17932 saved_CPPFLAGS="$CPPFLAGS" 17933 CPPFLAGS="$CPPFLAGS -I$srcdir/src" 17934 if test "$cross_compiling" = yes 17935then : 17936 if test "$enable_thread_safe" = yes; then 17937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test, assume yes" >&5 17938printf "%s\n" "cannot test, assume yes" >&6; } 17939 17940printf "%s\n" "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h 17941 17942 else 17943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5 17944printf "%s\n" "cannot test, assume no" >&6; } 17945 fi 17946 17947else $as_nop 17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17949/* end confdefs.h. */ 17950 17951 #define MPFR_USE_THREAD_SAFE 1 17952 #include "mpfr-thread.h" 17953 MPFR_THREAD_ATTR int x = 17; 17954 int main (void) { 17955 return x != 17; 17956 } 17957 17958_ACEOF 17959if ac_fn_c_try_run "$LINENO" 17960then : 17961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17962printf "%s\n" "yes" >&6; } 17963 17964printf "%s\n" "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h 17965 17966 enable_thread_safe=yes 17967 17968else $as_nop 17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17970printf "%s\n" "no" >&6; } 17971 if test "$enable_thread_safe" = yes; then 17972 as_fn_error $? "please configure with --disable-thread-safe" "$LINENO" 5 17973 fi 17974 17975fi 17976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17977 conftest.$ac_objext conftest.beam conftest.$ac_ext 17978fi 17979 17980 CPPFLAGS="$saved_CPPFLAGS" 17981 fi 17982fi 17983 17984if test "$enable_decimal_float" != no; then 17985 17986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler knows _Decimal64" >&5 17987printf %s "checking if compiler knows _Decimal64... " >&6; } 17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17989/* end confdefs.h. */ 17990_Decimal64 x; 17991int 17992main (void) 17993{ 17994 17995 ; 17996 return 0; 17997} 17998_ACEOF 17999if ac_fn_c_try_compile "$LINENO" 18000then : 18001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18002printf "%s\n" "yes" >&6; } 18003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking decimal float format" >&5 18004printf %s "checking decimal float format... " >&6; } 18005 if test "$cross_compiling" = yes 18006then : 18007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 18008printf "%s\n" "cannot test" >&6; } 18009 enable_decimal_float=compile-time 18010else $as_nop 18011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18012/* end confdefs.h. */ 18013 18014#include <stdlib.h> 18015 18016int 18017main (void) 18018{ 18019 18020volatile _Decimal64 x = 1; 18021union { double d; _Decimal64 d64; } y; 18022if (x != x) return 83; 18023y.d64 = 1234567890123456.0dd; 18024return y.d == 0.14894469406741037E-123 ? 80 : 18025 y.d == 0.59075095508629822E-68 ? 81 : 82; 18026 18027 ; 18028 return 0; 18029} 18030_ACEOF 18031if ac_fn_c_try_run "$LINENO" 18032then : 18033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: internal error" >&5 18034printf "%s\n" "internal error" >&6; } 18035 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18036printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18037as_fn_error $? "unexpected exit status 0 18038See \`config.log' for more details" "$LINENO" 5; } 18039else $as_nop 18040 d64_exit_status=$? 18041 case "$d64_exit_status" in 18042 80) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DPD" >&5 18043printf "%s\n" "DPD" >&6; } 18044 if test "$enable_decimal_float" = bid; then 18045 as_fn_error $? "encoding mismatch (BID requested)." "$LINENO" 5 18046 fi 18047 if test "$enable_decimal_float" != generic; then 18048 enable_decimal_float=dpd 18049 fi ;; 18050 81) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: BID" >&5 18051printf "%s\n" "BID" >&6; } 18052 if test "$enable_decimal_float" = dpd; then 18053 as_fn_error $? "encoding mismatch (DPD requested)." "$LINENO" 5 18054 fi 18055 if test "$enable_decimal_float" != generic; then 18056 enable_decimal_float=bid 18057 fi ;; 18058 82) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither DPD nor BID" >&5 18059printf "%s\n" "neither DPD nor BID" >&6; } 18060 if test "$enable_decimal_float" = dpd; then 18061 as_fn_error $? "encoding mismatch (DPD requested)." "$LINENO" 5 18062 fi 18063 if test "$enable_decimal_float" = bid; then 18064 as_fn_error $? "encoding mismatch (BID requested)." "$LINENO" 5 18065 fi 18066 enable_decimal_float=generic 18067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The _Decimal64 encoding is non-standard or there was an" >&5 18068printf "%s\n" "$as_me: WARNING: The _Decimal64 encoding is non-standard or there was an" >&2;} 18069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: issue with its detection. The generic code will be used." >&5 18070printf "%s\n" "$as_me: WARNING: issue with its detection. The generic code will be used." >&2;} 18071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Please do not forget to test with \`make check'." >&5 18072printf "%s\n" "$as_me: WARNING: Please do not forget to test with \`make check'." >&2;} 18073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: In case of failure of a decimal test, you should rebuild" >&5 18074printf "%s\n" "$as_me: WARNING: In case of failure of a decimal test, you should rebuild" >&2;} 18075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MPFR without --enable-decimal-float." >&5 18076printf "%s\n" "$as_me: WARNING: MPFR without --enable-decimal-float." >&2;} ;; 18077 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: error (exit status $d64_exit_status)" >&5 18078printf "%s\n" "error (exit status $d64_exit_status)" >&6; } 18079 case "$enable_decimal_float" in 18080 yes|bid|dpd|generic) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18081printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18082as_fn_error $? "internal or link error. 18083Please build MPFR without --enable-decimal-float. 18084See \`config.log' for more details" "$LINENO" 5; } ;; 18085 *) enable_decimal_float=no ;; 18086 esac ;; 18087 esac 18088fi 18089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18090 conftest.$ac_objext conftest.beam conftest.$ac_ext 18091fi 18092 18093 18094else $as_nop 18095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18096printf "%s\n" "no" >&6; } 18097 case "$enable_decimal_float" in 18098 yes|bid|dpd|generic) 18099 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18100printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18101as_fn_error $? "compiler doesn't know _Decimal64 (ISO/IEC TR 24732). 18102Please use another compiler or build MPFR without --enable-decimal-float. 18103See \`config.log' for more details" "$LINENO" 5; } ;; 18104 *) enable_decimal_float=no ;; 18105 esac 18106fi 18107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18108 if test "$enable_decimal_float" != no; then 18109 18110printf "%s\n" "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h 18111 18112 case "$enable_decimal_float" in 18113 dpd) printf "%s\n" "#define DECIMAL_DPD_FORMAT 1" >>confdefs.h 18114 ;; 18115 bid) printf "%s\n" "#define DECIMAL_BID_FORMAT 1" >>confdefs.h 18116 ;; 18117 generic) printf "%s\n" "#define DECIMAL_GENERIC_CODE 1" >>confdefs.h 18118 ;; 18119 compile-time) ;; 18120 *) as_fn_error $? "internal error" "$LINENO" 5 ;; 18121 esac 18122 fi 18123 18124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking bit-field ordering for _Decimal128" >&5 18125printf %s "checking bit-field ordering for _Decimal128... " >&6; } 18126 if test "$cross_compiling" = yes 18127then : 18128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 18129printf "%s\n" "cannot test" >&6; } 18130else $as_nop 18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18132/* end confdefs.h. */ 18133 18134 18135int 18136main (void) 18137{ 18138 18139 union ieee_decimal128 18140 { 18141 struct 18142 { 18143 unsigned int t3:32; 18144 unsigned int t2:32; 18145 unsigned int t1:32; 18146 unsigned int t0:14; 18147 unsigned int comb:17; 18148 unsigned int sig:1; 18149 } s; 18150 _Decimal128 d128; 18151 } x; 18152 18153 x.d128 = 1.0dl; 18154 if (x.s.sig == 0 && x.s.comb == 49400 && 18155 x.s.t0 == 0 && x.s.t1 == 0 && x.s.t2 == 0 && x.s.t3 == 10) 18156 return 80; /* little endian */ 18157 else if (x.s.sig == 0 && x.s.comb == 8 && 18158 x.s.t0 == 0 && x.s.t1 == 0 && x.s.t2 == 0 && x.s.t3 == 570933248) 18159 return 81; /* big endian */ 18160 else 18161 return 82; /* unknown encoding */ 18162 18163 ; 18164 return 0; 18165} 18166_ACEOF 18167if ac_fn_c_try_run "$LINENO" 18168then : 18169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: internal error" >&5 18170printf "%s\n" "internal error" >&6; } 18171else $as_nop 18172 d128_exit_status=$? 18173 case "$d128_exit_status" in 18174 80) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: little endian" >&5 18175printf "%s\n" "little endian" >&6; } 18176 printf "%s\n" "#define HAVE_DECIMAL128_IEEE_LITTLE_ENDIAN 1" >>confdefs.h 18177 ;; 18178 81) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: big endian" >&5 18179printf "%s\n" "big endian" >&6; } 18180 printf "%s\n" "#define HAVE_DECIMAL128_IEEE_BIG_ENDIAN 1" >>confdefs.h 18181 ;; 18182 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unavailable or unknown" >&5 18183printf "%s\n" "unavailable or unknown" >&6; } ;; 18184 esac 18185fi 18186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18187 conftest.$ac_objext conftest.beam conftest.$ac_ext 18188fi 18189 18190 18191fi 18192# End of decimal float checks 18193 18194if test "$enable_float128" != no; then 18195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Float128 with hex constants is supported" >&5 18196printf %s "checking if _Float128 with hex constants is supported... " >&6; } 18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18198/* end confdefs.h. */ 18199 18200int 18201main (void) 18202{ 18203 18204volatile _Float128 x = 0x1.fp+16383f128; 18205return x == 0; 18206 18207 ; 18208 return 0; 18209} 18210_ACEOF 18211if ac_fn_c_try_link "$LINENO" 18212then : 18213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18214printf "%s\n" "yes" >&6; } 18215 18216printf "%s\n" "#define MPFR_WANT_FLOAT128 1" >>confdefs.h 18217 18218else $as_nop 18219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18220printf "%s\n" "no" >&6; } 18221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __float128 can be used as a fallback" >&5 18222printf %s "checking if __float128 can be used as a fallback... " >&6; } 18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18224/* end confdefs.h. */ 18225 18226#define _Float128 __float128 18227 18228int 18229main (void) 18230{ 18231 18232volatile _Float128 x = 0x1.fp+16383q; 18233return x == 0; 18234 18235 ; 18236 return 0; 18237} 18238_ACEOF 18239if ac_fn_c_try_link "$LINENO" 18240then : 18241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18242printf "%s\n" "yes" >&6; } 18243 18244printf "%s\n" "#define MPFR_WANT_FLOAT128 2" >>confdefs.h 18245 18246 18247printf "%s\n" "#define _Float128 __float128" >>confdefs.h 18248 18249else $as_nop 18250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18251printf "%s\n" "no" >&6; } 18252 if test "$enable_float128" = yes; then 18253 as_fn_error $? "compiler doesn't know _Float128 or __float128 with hex constants. 18254Please use another compiler or build MPFR without --enable-float128." "$LINENO" 5 18255 fi 18256fi 18257rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18258 conftest$ac_exeext conftest.$ac_ext 18259 18260fi 18261rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18262 conftest$ac_exeext conftest.$ac_ext 18263fi 18264 18265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Static Assertion support" >&5 18266printf %s "checking for Static Assertion support... " >&6; } 18267saved_CPPFLAGS="$CPPFLAGS" 18268CPPFLAGS="$CPPFLAGS -I$srcdir/src" 18269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18270/* end confdefs.h. */ 18271 18272#define MPFR_USE_STATIC_ASSERT 1 18273#include "mpfr-sassert.h" 18274 18275/* Test if Static Assertions work */ 18276 18277int main (void) { 18278 int x; 18279 (void) (x = 1); /* cast to void: avoid a warning, at least with GCC */ 18280 /* Test of the macro after a declaraction and a statement. */ 18281 MPFR_STAT_STATIC_ASSERT(sizeof(short) <= sizeof(int)); 18282 return 0; 18283} 18284 18285_ACEOF 18286if ac_fn_c_try_compile "$LINENO" 18287then : 18288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18289printf "%s\n" "yes" >&6; } 18290 18291printf "%s\n" "#define MPFR_USE_STATIC_ASSERT 1" >>confdefs.h 18292 18293 18294else $as_nop 18295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18296printf "%s\n" "no" >&6; } 18297 18298fi 18299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18300CPPFLAGS="$saved_CPPFLAGS" 18301 18302if test "$enable_lto" = "yes" ; then 18303 18304CFLAGS="$CFLAGS -flto" 18305 18306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation flag '-flto' is supported..." >&5 18307printf %s "checking if Link Time Optimisation flag '-flto' is supported...... " >&6; } 18308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18309/* end confdefs.h. */ 18310 18311int main(void) { return 0; } 18312 18313_ACEOF 18314if ac_fn_c_try_compile "$LINENO" 18315then : 18316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18317printf "%s\n" "yes" >&6; } 18318 18319else $as_nop 18320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18321printf "%s\n" "no" >&6; } 18322 as_fn_error $? "Link Time Optimisation flag '-flto' is not supported." "$LINENO" 5 18323 18324fi 18325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18326 18327mpfr_compile_and_link() 18328{ 18329 echo "int f(int); int f(int n) { return n; }" > conftest-f.c 18330 echo "int f(int); int main() { return f(0); }" > conftest-m.c 18331 echo "$CC $CFLAGS -c -o conftest-f.o conftest-f.c" >&2 18332 $CC $CFLAGS -c -o conftest-f.o conftest-f.c || return 1 18333 echo "$AR cru conftest-lib.a conftest-f.o" >&2 18334 $AR cru conftest-lib.a conftest-f.o || return 1 18335 echo "$RANLIB conftest-lib.a" >&2 18336 $RANLIB conftest-lib.a || return 1 18337 echo "$CC $CFLAGS conftest-m.c conftest-lib.a" >&2 18338 $CC $CFLAGS conftest-m.c conftest-lib.a || return 1 18339 return 0 18340} 18341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation works with AR=$AR" >&5 18342printf %s "checking if Link Time Optimisation works with AR=$AR... " >&6; } 18343 if mpfr_compile_and_link 2> conftest-log1.txt ; then 18344 cat conftest-log1.txt >&5 18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18346printf "%s\n" "yes" >&6; } 18347 else 18348 cat conftest-log1.txt >&5 18349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18350printf "%s\n" "no" >&6; } 18351 AR=gcc-ar 18352 RANLIB=gcc-ranlib 18353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation works with AR=$AR" >&5 18354printf %s "checking if Link Time Optimisation works with AR=$AR... " >&6; } 18355 if mpfr_compile_and_link 2> conftest-log2.txt; then 18356 cat conftest-log2.txt >&5 18357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18358printf "%s\n" "yes" >&6; } 18359 else 18360 cat conftest-log2.txt >&5 18361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18362printf "%s\n" "no" >&6; } 18363 as_fn_error $? "Link Time Optimisation is not supported (see config.log for details)." "$LINENO" 5 18364 fi 18365 fi 18366rm -f conftest* 18367 18368fi 18369 18370if test "$enable_logging" = yes; then 18371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nested functions and 'cleanup' attribute" >&5 18372printf %s "checking for nested functions and 'cleanup' attribute... " >&6; } 18373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18374/* end confdefs.h. */ 18375 18376int main (void) { 18377 auto void f_cleanup (int *p); 18378 void f_cleanup (int *p) { int v = *p; (void) v; } 18379 int v __attribute__ ((cleanup (f_cleanup))); 18380 v = 0; 18381 return 0; 18382} 18383 18384_ACEOF 18385if ac_fn_c_try_compile "$LINENO" 18386then : 18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18388printf "%s\n" "yes" >&6; } 18389else $as_nop 18390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18391printf "%s\n" "no" >&6; } 18392 as_fn_error $? "logging support needs nested functions and the 'cleanup' attribute" "$LINENO" 5 18393 18394fi 18395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18396fi 18397 18398 18399 18400 18401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5 18402printf %s "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; } 18403if test ${gmp_cv_c_attribute_mode+y} 18404then : 18405 printf %s "(cached) " >&6 18406else $as_nop 18407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18408/* end confdefs.h. */ 18409typedef int SItype __attribute__ ((mode (SI))); 18410int 18411main (void) 18412{ 18413 18414 ; 18415 return 0; 18416} 18417_ACEOF 18418if ac_fn_c_try_compile "$LINENO" 18419then : 18420 gmp_cv_c_attribute_mode=yes 18421else $as_nop 18422 gmp_cv_c_attribute_mode=no 18423fi 18424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18425 18426fi 18427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5 18428printf "%s\n" "$gmp_cv_c_attribute_mode" >&6; } 18429if test $gmp_cv_c_attribute_mode = yes; then 18430 18431printf "%s\n" "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h 18432 18433fi 18434 18435 18436 18437 18438if test -z "$mini_gmp_path" ; then 18439 18440 18441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5 18442printf %s "checking for gmp.h... " >&6; } 18443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18444/* end confdefs.h. */ 18445 18446#include "gmp.h" 18447 18448_ACEOF 18449if ac_fn_c_try_compile "$LINENO" 18450then : 18451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18452printf "%s\n" "yes" >&6; } 18453else $as_nop 18454 18455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18456printf "%s\n" "no" >&6; } 18457 as_fn_error $? "gmp.h can't be found, or is unusable." "$LINENO" 5 18458 18459fi 18460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18461 18462 18463 18464case $host in 18465 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 18466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5 18467printf %s "checking for DLL/static GMP... " >&6; } 18468 if test "$enable_shared" = yes; then 18469 MPFR_LDFLAGS="$MPFR_LDFLAGS -no-undefined" 18470 LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -Wl,--output-def,.libs/libmpfr-6.dll.def" 18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18472/* end confdefs.h. */ 18473 18474#include "gmp.h" 18475#if !__GMP_LIBGMP_DLL 18476# error "Dead man" 18477error 18478#endif 18479 18480int 18481main (void) 18482{ 18483 18484 ; 18485 return 0; 18486} 18487_ACEOF 18488if ac_fn_c_try_compile "$LINENO" 18489then : 18490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DLL" >&5 18491printf "%s\n" "DLL" >&6; } 18492else $as_nop 18493 18494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5 18495printf "%s\n" "static" >&6; } 18496 as_fn_error $? "libgmp isn't provided as a DLL: use --enable-static --disable-shared" "$LINENO" 5 18497fi 18498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18499 else 18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18501/* end confdefs.h. */ 18502 18503#include "gmp.h" 18504#if __GMP_LIBGMP_DLL 18505# error "Dead man" 18506error 18507#endif 18508 18509int 18510main (void) 18511{ 18512 18513 ; 18514 return 0; 18515} 18516_ACEOF 18517if ac_fn_c_try_compile "$LINENO" 18518then : 18519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5 18520printf "%s\n" "static" >&6; } 18521else $as_nop 18522 18523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DLL" >&5 18524printf "%s\n" "DLL" >&6; } 18525 as_fn_error $? "libgmp is provided as a DLL: use --disable-static --enable-shared" "$LINENO" 5 18526fi 18527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18528 fi 18529 ;; 18530esac 18531 18532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5 18533printf %s "checking for recent GMP... " >&6; } 18534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18535/* end confdefs.h. */ 18536 18537#include "gmp.h" 18538#if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 500) 18539# error "GMP 5.0.0 or newer is required" 18540error 18541#endif 18542 18543_ACEOF 18544if ac_fn_c_try_compile "$LINENO" 18545then : 18546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18547printf "%s\n" "yes" >&6; } 18548else $as_nop 18549 18550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18551printf "%s\n" "no" >&6; } 18552 as_fn_error $? "GMP 5.0.0 or newer is required" "$LINENO" 5 18553 18554fi 18555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18556 18557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking usable gmp.h at link time" >&5 18558printf %s "checking usable gmp.h at link time... " >&6; } 18559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18560/* end confdefs.h. */ 18561 18562#include "gmp.h" 18563 18564int 18565main (void) 18566{ 18567 18568 ; 18569 return 0; 18570} 18571_ACEOF 18572if ac_fn_c_try_link "$LINENO" 18573then : 18574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18575printf "%s\n" "yes" >&6; } 18576else $as_nop 18577 18578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18579printf "%s\n" "no" >&6; } 18580 as_fn_error $? "there is an incompatibility between gmp.h and the compiler. 18581See 'config.log' for details." "$LINENO" 5 18582 18583fi 18584rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18585 conftest$ac_exeext conftest.$ac_ext 18586 18587if test "$use_gmp_build" = yes ; then 18588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmp internal files" >&5 18589printf %s "checking for gmp internal files... " >&6; } 18590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18591/* end confdefs.h. */ 18592 18593 #include "gmp.h" 18594 #include "gmp-impl.h" 18595 #include "longlong.h" 18596 18597_ACEOF 18598if ac_fn_c_try_compile "$LINENO" 18599then : 18600 18601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18602printf "%s\n" "yes" >&6; } 18603 18604printf "%s\n" "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h 18605 18606 18607else $as_nop 18608 18609 as_fn_error $? "header files gmp-impl.h and longlong.h not found" "$LINENO" 5 18610 18611fi 18612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18613fi 18614 18615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency" >&5 18616printf %s "checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency... " >&6; } 18617if test "$cross_compiling" = yes 18618then : 18619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 18620printf "%s\n" "cannot test" >&6; } 18621else $as_nop 18622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18623/* end confdefs.h. */ 18624 18625#include <stdio.h> 18626#include <limits.h> 18627#include "gmp.h" 18628 18629int 18630main (void) 18631{ 18632 18633 if (GMP_NUMB_BITS == sizeof(mp_limb_t) * CHAR_BIT) 18634 return 0; 18635 fprintf (stderr, "GMP_NUMB_BITS = %ld\n", (long) GMP_NUMB_BITS); 18636 fprintf (stderr, "sizeof(mp_limb_t) = %ld\n", (long) sizeof(mp_limb_t)); 18637 fprintf (stderr, "sizeof(mp_limb_t) * CHAR_BIT = %ld != GMP_NUMB_BITS\n", 18638 (long) (sizeof(mp_limb_t) * CHAR_BIT)); 18639 return 1; 18640 18641 ; 18642 return 0; 18643} 18644_ACEOF 18645if ac_fn_c_try_run "$LINENO" 18646then : 18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18648printf "%s\n" "yes" >&6; } 18649else $as_nop 18650 18651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18652printf "%s\n" "no" >&6; } 18653 as_fn_error $? "GMP_NUMB_BITS and sizeof(mp_limb_t) are not consistent. 18654You probably need to change some of the GMP or MPFR compile options. 18655See 'config.log' for details (search for GMP_NUMB_BITS)." "$LINENO" 5 18656fi 18657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18658 conftest.$ac_objext conftest.beam conftest.$ac_ext 18659fi 18660 18661 18662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5 18663printf %s "checking for __gmpz_init in -lgmp... " >&6; } 18664if test ${ac_cv_lib_gmp___gmpz_init+y} 18665then : 18666 printf %s "(cached) " >&6 18667else $as_nop 18668 ac_check_lib_save_LIBS=$LIBS 18669LIBS="-lgmp $LIBS" 18670cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18671/* end confdefs.h. */ 18672 18673/* Override any GCC internal prototype to avoid an error. 18674 Use char because int might match the return type of a GCC 18675 builtin and then its argument prototype would still apply. */ 18676#ifdef __cplusplus 18677extern "C" 18678#endif 18679char __gmpz_init (); 18680int 18681main (void) 18682{ 18683return __gmpz_init (); 18684 ; 18685 return 0; 18686} 18687_ACEOF 18688if ac_fn_c_try_link "$LINENO" 18689then : 18690 ac_cv_lib_gmp___gmpz_init=yes 18691else $as_nop 18692 ac_cv_lib_gmp___gmpz_init=no 18693fi 18694rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18695 conftest$ac_exeext conftest.$ac_ext 18696LIBS=$ac_check_lib_save_LIBS 18697fi 18698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5 18699printf "%s\n" "$ac_cv_lib_gmp___gmpz_init" >&6; } 18700if test "x$ac_cv_lib_gmp___gmpz_init" = xyes 18701then : 18702 LIBS="-lgmp $LIBS" 18703else $as_nop 18704 as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared). 18705Please read the INSTALL file -- see \"In case of problem\"." "$LINENO" 5 18706fi 18707 18708 18709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5 18710printf %s "checking if gmp.h version and libgmp version are the same... " >&6; } 18711saved_LD_RUN_PATH="$LD_RUN_PATH" 18712LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path" 18713export LD_RUN_PATH 18714if test "$cross_compiling" = yes 18715then : 18716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 18717printf "%s\n" "cannot test" >&6; } 18718 18719else $as_nop 18720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18721/* end confdefs.h. */ 18722 18723#include <stdio.h> 18724#include <string.h> 18725#include "gmp.h" 18726 18727int 18728main (void) 18729{ 18730 18731 char buffer[100]; 18732 sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR, 18733 __GNU_MP_VERSION_PATCHLEVEL); 18734 printf ("(%s/%s) ", buffer, gmp_version); 18735 fflush (stdout); 18736 /* Also put information in config.log (stderr) */ 18737 fprintf (stderr, "gmp.h: %s / libgmp: %s\n", buffer, gmp_version); 18738 if (strcmp (buffer, gmp_version) == 0) 18739 return 0; 18740 if (__GNU_MP_VERSION_PATCHLEVEL != 0) 18741 return 1; 18742 sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR); 18743 return (strcmp (buffer, gmp_version) != 0) ? 1 : 0; 18744 18745 ; 18746 return 0; 18747} 18748_ACEOF 18749if ac_fn_c_try_run "$LINENO" 18750then : 18751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18752printf "%s\n" "yes" >&6; } 18753 18754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP library vs header correctness" >&5 18755printf %s "checking for GMP library vs header correctness... " >&6; } 18756if test ${mpfr_cv_check_gmp+y} 18757then : 18758 printf %s "(cached) " >&6 18759else $as_nop 18760 18761if test "$cross_compiling" = yes 18762then : 18763 mpfr_cv_check_gmp="cannot test, assume yes" 18764else $as_nop 18765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18766/* end confdefs.h. */ 18767 18768#include <stdio.h> 18769#include <limits.h> 18770#include <gmp.h> 18771 18772int 18773main (void) 18774{ 18775 18776 fprintf (stderr, "GMP_NAIL_BITS = %d\n", (int) GMP_NAIL_BITS); 18777 fprintf (stderr, "GMP_NUMB_BITS = %d\n", (int) GMP_NUMB_BITS); 18778 fprintf (stderr, "mp_bits_per_limb = %d\n", (int) mp_bits_per_limb); 18779 fprintf (stderr, "sizeof(mp_limb_t) = %d\n", (int) sizeof(mp_limb_t)); 18780 if (GMP_NAIL_BITS != 0) 18781 { 18782 fprintf (stderr, "GMP_NAIL_BITS != 0\n"); 18783 return 81; 18784 } 18785 if (GMP_NUMB_BITS != mp_bits_per_limb) 18786 { 18787 fprintf (stderr, "GMP_NUMB_BITS != mp_bits_per_limb\n"); 18788 return 82; 18789 } 18790 if (GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT) 18791 { 18792 fprintf (stderr, "GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT\n"); 18793 return 83; 18794 } 18795 return 0; 18796 18797 ; 18798 return 0; 18799} 18800_ACEOF 18801if ac_fn_c_try_run "$LINENO" 18802then : 18803 mpfr_cv_check_gmp="yes" 18804else $as_nop 18805 mpfr_cv_check_gmp="no (exit status is $?)" 18806fi 18807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18808 conftest.$ac_objext conftest.beam conftest.$ac_ext 18809fi 18810 18811 18812fi 18813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_check_gmp" >&5 18814printf "%s\n" "$mpfr_cv_check_gmp" >&6; } 18815case $mpfr_cv_check_gmp in 18816no*) 18817 as_fn_error $? "bad GMP library or header - ABI problem? 18818See 'config.log' for details." "$LINENO" 5 ;; 18819esac 18820 18821 18822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for double-to-integer conversion bug" >&5 18823printf %s "checking for double-to-integer conversion bug... " >&6; } 18824if test ${mpfr_cv_dbl_int_bug+y} 18825then : 18826 printf %s "(cached) " >&6 18827else $as_nop 18828 18829if test "$cross_compiling" = yes 18830then : 18831 mpfr_cv_dbl_int_bug="cannot test, assume not present" 18832else $as_nop 18833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18834/* end confdefs.h. */ 18835 18836#include <stdio.h> 18837#include <gmp.h> 18838 18839int 18840main (void) 18841{ 18842 18843 double d; 18844 mp_limb_t u; 18845 int i; 18846 18847 d = 1.0; 18848 for (i = 0; i < GMP_NUMB_BITS - 1; i++) 18849 d = d + d; 18850 u = (mp_limb_t) d; 18851 for (; i > 0; i--) 18852 { 18853 if (u & 1) 18854 break; 18855 u = u >> 1; 18856 } 18857 if (i == 0 && u == 1UL) 18858 return 0; 18859 fprintf (stderr, "Failure: i = %d, (unsigned long) u = %lu\n", 18860 i, (unsigned long) u); 18861 return 1; 18862 18863 ; 18864 return 0; 18865} 18866_ACEOF 18867if ac_fn_c_try_run "$LINENO" 18868then : 18869 mpfr_cv_dbl_int_bug="no" 18870else $as_nop 18871 mpfr_cv_dbl_int_bug="yes or failed to exec (exit status is $?)" 18872fi 18873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18874 conftest.$ac_objext conftest.beam conftest.$ac_ext 18875fi 18876 18877 18878fi 18879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_dbl_int_bug" >&5 18880printf "%s\n" "$mpfr_cv_dbl_int_bug" >&6; } 18881case $mpfr_cv_dbl_int_bug in 18882yes*) 18883 as_fn_error $? "double-to-integer conversion is incorrect. 18884You need to use another compiler (or lower the optimization level)." "$LINENO" 5 ;; 18885esac 18886 18887 18888if test "$ac_cv_type_intmax_t" = yes; then 18889 18890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5 18891printf %s "checking if gmp_printf supports \"%jd\"... " >&6; } 18892if test "$cross_compiling" = yes 18893then : 18894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 18895printf "%s\n" "cross-compiling" >&6; } 18896 18897else $as_nop 18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18899/* end confdefs.h. */ 18900 18901#include <stdio.h> 18902#include <string.h> 18903 18904#ifdef HAVE_INTTYPES_H 18905# include <inttypes.h> 18906#endif 18907#ifdef HAVE_STDINT_H 18908# include <stdint.h> 18909#endif 18910 18911#include <gmp.h> 18912 18913int 18914main (void) 18915{ 18916 18917 char s[256]; 18918 intmax_t a = 17; 18919 18920 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the 18921 precision, as -Werror=format yields an error, even though this 18922 flag is allowed by the ISO C standard (it is just ignored). 18923 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */ 18924 if (sprintf (s, "(%.0jd)(%d)", a, 42) != 8 || 18925 strcmp (s, "(17)(42)") != 0) 18926 return 1; 18927 18928 if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1 || 18929 strcmp (s, "(17)(42)") != 0) 18930 return 1; 18931 18932 return 0; 18933 18934 ; 18935 return 0; 18936} 18937_ACEOF 18938if ac_fn_c_try_run "$LINENO" 18939then : 18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18941printf "%s\n" "yes" >&6; } 18942 18943else $as_nop 18944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18945printf "%s\n" "no" >&6; } 18946 18947printf "%s\n" "#define NPRINTF_J 1" >>confdefs.h 18948 18949fi 18950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18951 conftest.$ac_objext conftest.beam conftest.$ac_ext 18952fi 18953 18954 18955fi 18956 18957 18958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5 18959printf %s "checking if gmp_printf supports \"%hhd\"... " >&6; } 18960if test "$cross_compiling" = yes 18961then : 18962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 18963printf "%s\n" "cross-compiling" >&6; } 18964 18965else $as_nop 18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18967/* end confdefs.h. */ 18968 18969#include <stdio.h> 18970#include <string.h> 18971 18972#include <gmp.h> 18973 18974#include <gmp.h> 18975 18976int 18977main (void) 18978{ 18979 18980 char s[256]; 18981 char a = 17; 18982 18983 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the 18984 precision, as -Werror=format yields an error, even though this 18985 flag is allowed by the ISO C standard (it is just ignored). 18986 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */ 18987 if (sprintf (s, "(%.0hhd)(%d)", a, 42) != 8 || 18988 strcmp (s, "(17)(42)") != 0) 18989 return 1; 18990 18991 if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1 || 18992 strcmp (s, "(17)(42)") != 0) 18993 return 1; 18994 18995 return 0; 18996 18997 ; 18998 return 0; 18999} 19000_ACEOF 19001if ac_fn_c_try_run "$LINENO" 19002then : 19003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19004printf "%s\n" "yes" >&6; } 19005 19006else $as_nop 19007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19008printf "%s\n" "no" >&6; } 19009 19010printf "%s\n" "#define NPRINTF_HH 1" >>confdefs.h 19011 19012fi 19013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19014 conftest.$ac_objext conftest.beam conftest.$ac_ext 19015fi 19016 19017 19018 19019 19020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5 19021printf %s "checking if gmp_printf supports \"%lld\"... " >&6; } 19022if test "$cross_compiling" = yes 19023then : 19024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 19025printf "%s\n" "cross-compiling" >&6; } 19026 19027else $as_nop 19028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19029/* end confdefs.h. */ 19030 19031#include <stdio.h> 19032#include <string.h> 19033 19034#include <gmp.h> 19035 19036#include <gmp.h> 19037 19038int 19039main (void) 19040{ 19041 19042 char s[256]; 19043 long long int a = 17; 19044 19045 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the 19046 precision, as -Werror=format yields an error, even though this 19047 flag is allowed by the ISO C standard (it is just ignored). 19048 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */ 19049 if (sprintf (s, "(%.0lld)(%d)", a, 42) != 8 || 19050 strcmp (s, "(17)(42)") != 0) 19051 return 1; 19052 19053 if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1 || 19054 strcmp (s, "(17)(42)") != 0) 19055 return 1; 19056 19057 return 0; 19058 19059 ; 19060 return 0; 19061} 19062_ACEOF 19063if ac_fn_c_try_run "$LINENO" 19064then : 19065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19066printf "%s\n" "yes" >&6; } 19067 19068else $as_nop 19069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19070printf "%s\n" "no" >&6; } 19071 19072printf "%s\n" "#define NPRINTF_LL 1" >>confdefs.h 19073 19074fi 19075rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19076 conftest.$ac_objext conftest.beam conftest.$ac_ext 19077fi 19078 19079 19080 19081 19082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5 19083printf %s "checking if gmp_printf supports \"%Lf\"... " >&6; } 19084if test "$cross_compiling" = yes 19085then : 19086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 19087printf "%s\n" "cross-compiling" >&6; } 19088 19089printf "%s\n" "#define PRINTF_L 1" >>confdefs.h 19090 19091else $as_nop 19092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19093/* end confdefs.h. */ 19094 19095#include <stdio.h> 19096#include <string.h> 19097 19098#include <gmp.h> 19099 19100#include <gmp.h> 19101 19102int 19103main (void) 19104{ 19105 19106 char s[256]; 19107 long double a = 17; 19108 19109 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the 19110 precision, as -Werror=format yields an error, even though this 19111 flag is allowed by the ISO C standard (it is just ignored). 19112 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */ 19113 if (sprintf (s, "(%.0Lf)(%d)", a, 42) != 8 || 19114 strcmp (s, "(17)(42)") != 0) 19115 return 1; 19116 19117 if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1 || 19118 strcmp (s, "(17)(42)") != 0) 19119 return 1; 19120 19121 return 0; 19122 19123 ; 19124 return 0; 19125} 19126_ACEOF 19127if ac_fn_c_try_run "$LINENO" 19128then : 19129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19130printf "%s\n" "yes" >&6; } 19131 19132printf "%s\n" "#define PRINTF_L 1" >>confdefs.h 19133 19134else $as_nop 19135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19136printf "%s\n" "no" >&6; } 19137 19138printf "%s\n" "#define NPRINTF_L 1" >>confdefs.h 19139 19140fi 19141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19142 conftest.$ac_objext conftest.beam conftest.$ac_ext 19143fi 19144 19145 19146 19147 19148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5 19149printf %s "checking if gmp_printf supports \"%td\"... " >&6; } 19150if test "$cross_compiling" = yes 19151then : 19152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 19153printf "%s\n" "cross-compiling" >&6; } 19154 19155printf "%s\n" "#define PRINTF_T 1" >>confdefs.h 19156 19157else $as_nop 19158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19159/* end confdefs.h. */ 19160 19161#include <stdio.h> 19162#include <string.h> 19163 19164#if defined (__cplusplus) 19165#include <cstddef> 19166#else 19167#include <stddef.h> 19168#endif 19169#include <gmp.h> 19170 19171#include <gmp.h> 19172 19173int 19174main (void) 19175{ 19176 19177 char s[256]; 19178 ptrdiff_t a = 17; 19179 19180 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the 19181 precision, as -Werror=format yields an error, even though this 19182 flag is allowed by the ISO C standard (it is just ignored). 19183 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */ 19184 if (sprintf (s, "(%.0td)(%d)", a, 42) != 8 || 19185 strcmp (s, "(17)(42)") != 0) 19186 return 1; 19187 19188 if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1 || 19189 strcmp (s, "(17)(42)") != 0) 19190 return 1; 19191 19192 return 0; 19193 19194 ; 19195 return 0; 19196} 19197_ACEOF 19198if ac_fn_c_try_run "$LINENO" 19199then : 19200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19201printf "%s\n" "yes" >&6; } 19202 19203printf "%s\n" "#define PRINTF_T 1" >>confdefs.h 19204 19205else $as_nop 19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19207printf "%s\n" "no" >&6; } 19208 19209printf "%s\n" "#define NPRINTF_T 1" >>confdefs.h 19210 19211fi 19212rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19213 conftest.$ac_objext conftest.beam conftest.$ac_ext 19214fi 19215 19216 19217 19218 19219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports the ' group flag" >&5 19220printf %s "checking if gmp_printf supports the ' group flag... " >&6; } 19221if test "$cross_compiling" = yes 19222then : 19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 19224printf "%s\n" "cannot test" >&6; } 19225else $as_nop 19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19227/* end confdefs.h. */ 19228 19229#include <string.h> 19230#include <gmp.h> 19231 19232int 19233main (void) 19234{ 19235 19236 char s[256]; 19237 19238 if (gmp_sprintf (s, "%'d", 17) == -1) return 1; 19239 return (strcmp (s, "17") != 0); 19240 19241 ; 19242 return 0; 19243} 19244_ACEOF 19245if ac_fn_c_try_run "$LINENO" 19246then : 19247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19248printf "%s\n" "yes" >&6; } 19249 19250printf "%s\n" "#define PRINTF_GROUPFLAG 1" >>confdefs.h 19251 19252else $as_nop 19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19254printf "%s\n" "no" >&6; } 19255fi 19256rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19257 conftest.$ac_objext conftest.beam conftest.$ac_ext 19258fi 19259 19260 19261else $as_nop 19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19263printf "%s\n" "no" >&6; } 19264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5 19265printf "%s\n" "$as_me: WARNING: ==========================================================" >&2;} 19266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&5 19267printf "%s\n" "$as_me: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&2;} 19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5 19269printf "%s\n" "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;} 19270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above). A cause may be different" >&5 19271printf "%s\n" "$as_me: WARNING: see the version numbers above). A cause may be different" >&2;} 19272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&5 19273printf "%s\n" "$as_me: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&2;} 19274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: or --with-gmp-include with a system include directory" >&5 19275printf "%s\n" "$as_me: WARNING: or --with-gmp-include with a system include directory" >&2;} 19276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: (such as /usr/include or /usr/local/include). Another" >&5 19277printf "%s\n" "$as_me: WARNING: (such as /usr/include or /usr/local/include). Another" >&2;} 19278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cause may be that LD_RUN_PATH is not honored (problem" >&5 19279printf "%s\n" "$as_me: WARNING: cause may be that LD_RUN_PATH is not honored (problem" >&2;} 19280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: seen under OpenBSD 6.6 and with the GNU gold linker)." >&5 19281printf "%s\n" "$as_me: WARNING: seen under OpenBSD 6.6 and with the GNU gold linker)." >&2;} 19282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: However, since we can't use 'libtool' inside the configure," >&5 19283printf "%s\n" "$as_me: WARNING: However, since we can't use 'libtool' inside the configure," >&2;} 19284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: we can't be sure. See 'config.log' for details." >&5 19285printf "%s\n" "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;} 19286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CC=\"$CC\"" >&5 19287printf "%s\n" "$as_me: WARNING: CC=\"$CC\"" >&2;} 19288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CFLAGS=\"$CFLAGS\"" >&5 19289printf "%s\n" "$as_me: WARNING: CFLAGS=\"$CFLAGS\"" >&2;} 19290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&5 19291printf "%s\n" "$as_me: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&2;} 19292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: LDFLAGS=\"$LDFLAGS\"" >&5 19293printf "%s\n" "$as_me: WARNING: LDFLAGS=\"$LDFLAGS\"" >&2;} 19294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: LIBS=\"$LIBS\"" >&5 19295printf "%s\n" "$as_me: WARNING: LIBS=\"$LIBS\"" >&2;} 19296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&5 19297printf "%s\n" "$as_me: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&2;} 19298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5 19299printf "%s\n" "$as_me: WARNING: ==========================================================" >&2;} 19300 19301fi 19302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19303 conftest.$ac_objext conftest.beam conftest.$ac_ext 19304fi 19305 19306LD_RUN_PATH="$saved_LD_RUN_PATH" 19307 19308ac_fn_c_check_func "$LINENO" "__gmpn_sbpi1_divappr_q" "ac_cv_func___gmpn_sbpi1_divappr_q" 19309if test "x$ac_cv_func___gmpn_sbpi1_divappr_q" = xyes 19310then : 19311 printf "%s\n" "#define HAVE___GMPN_SBPI1_DIVAPPR_Q 1" >>confdefs.h 19312 19313fi 19314 19315ac_fn_c_check_func "$LINENO" "__gmpn_invert_limb" "ac_cv_func___gmpn_invert_limb" 19316if test "x$ac_cv_func___gmpn_invert_limb" = xyes 19317then : 19318 printf "%s\n" "#define HAVE___GMPN_INVERT_LIMB 1" >>confdefs.h 19319 19320fi 19321 19322ac_fn_c_check_func "$LINENO" "__gmpn_rsblsh1_n" "ac_cv_func___gmpn_rsblsh1_n" 19323if test "x$ac_cv_func___gmpn_rsblsh1_n" = xyes 19324then : 19325 printf "%s\n" "#define HAVE___GMPN_RSBLSH1_N 1" >>confdefs.h 19326 19327fi 19328 19329 19330 19331 19332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long to fit in mp_limb_t" >&5 19333printf %s "checking for long to fit in mp_limb_t... " >&6; } 19334if test ${mpfr_cv_long_within_limb+y} 19335then : 19336 printf %s "(cached) " >&6 19337else $as_nop 19338 19339saved_CPPFLAGS="$CPPFLAGS" 19340CPPFLAGS="$CPPFLAGS -I$srcdir/src" 19341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19342/* end confdefs.h. */ 19343 19344#include <gmp.h> 19345/* Make sure that a static assertion is used (not MPFR_ASSERTN). */ 19346#undef MPFR_USE_STATIC_ASSERT 19347#define MPFR_USE_STATIC_ASSERT 1 19348#include "mpfr-sassert.h" 19349 19350int 19351main (void) 19352{ 19353 19354 MPFR_STAT_STATIC_ASSERT ((mp_limb_t) -1 >= (unsigned long) -1); 19355 return 0; 19356 19357 ; 19358 return 0; 19359} 19360_ACEOF 19361if ac_fn_c_try_link "$LINENO" 19362then : 19363 mpfr_cv_long_within_limb="yes" 19364else $as_nop 19365 mpfr_cv_long_within_limb="no" 19366fi 19367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19368 conftest$ac_exeext conftest.$ac_ext 19369 19370fi 19371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_long_within_limb" >&5 19372printf "%s\n" "$mpfr_cv_long_within_limb" >&6; } 19373case $mpfr_cv_long_within_limb in 19374yes*) 19375 19376printf "%s\n" "#define MPFR_LONG_WITHIN_LIMB 1" >>confdefs.h 19377 ;; 19378esac 19379CPPFLAGS="$saved_CPPFLAGS" 19380 19381 19382 19383if test "$ac_cv_type_intmax_t" = yes; then 19384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t to fit in mp_limb_t" >&5 19385printf %s "checking for intmax_t to fit in mp_limb_t... " >&6; } 19386if test ${mpfr_cv_intmax_within_limb+y} 19387then : 19388 printf %s "(cached) " >&6 19389else $as_nop 19390 19391saved_CPPFLAGS="$CPPFLAGS" 19392CPPFLAGS="$CPPFLAGS -I$srcdir/src -DMPFR_NEED_INTMAX_H" 19393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19394/* end confdefs.h. */ 19395 19396#include <gmp.h> 19397/* Make sure that a static assertion is used (not MPFR_ASSERTN). */ 19398#undef MPFR_USE_STATIC_ASSERT 19399#define MPFR_USE_STATIC_ASSERT 1 19400#include "mpfr-sassert.h" 19401#include "mpfr-intmax.h" 19402 19403int 19404main (void) 19405{ 19406 19407 MPFR_STAT_STATIC_ASSERT ((mp_limb_t) -1 >= (uintmax_t) -1); 19408 return 0; 19409 19410 ; 19411 return 0; 19412} 19413_ACEOF 19414if ac_fn_c_try_link "$LINENO" 19415then : 19416 mpfr_cv_intmax_within_limb="yes" 19417else $as_nop 19418 mpfr_cv_intmax_within_limb="no" 19419fi 19420rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19421 conftest$ac_exeext conftest.$ac_ext 19422 19423fi 19424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_intmax_within_limb" >&5 19425printf "%s\n" "$mpfr_cv_intmax_within_limb" >&6; } 19426case $mpfr_cv_intmax_within_limb in 19427yes*) 19428 19429printf "%s\n" "#define MPFR_INTMAX_WITHIN_LIMB 1" >>confdefs.h 19430 ;; 19431esac 19432CPPFLAGS="$saved_CPPFLAGS" 19433fi 19434 19435 19436else 19437 19438 19439mpfr_build_src="${ac_top_build_prefix}src" 19440mkdir -p "$mpfr_build_src" 19441rm -f -- "$mpfr_build_src"/mini-gmp.* 19442for i in c h 19443do 19444 ln -s -- "$mini_gmp_path/mini-gmp.$i" "$mpfr_build_src/mini-gmp.$i" 19445done 19446 19447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP_NUMB_BITS" >&5 19448printf %s "checking for GMP_NUMB_BITS... " >&6; } 19449how="from mini-gmp.h" 19450saved_CPPFLAGS="$CPPFLAGS" 19451CPPFLAGS="$CPPFLAGS -I$mpfr_build_src" 19452if ac_fn_c_compute_int "$LINENO" "(GMP_NUMB_BITS)" "mini_gmp_numb_bits" "#include <mini-gmp.h>" 19453then : 19454 19455else $as_nop 19456 how="not in mini-gmp.h; guessed" 19457 if ac_fn_c_compute_int "$LINENO" "(sizeof(mp_limb_t) * CHAR_BIT)" "mini_gmp_numb_bits" "#include <limits.h> 19458 #include <mini-gmp.h>" 19459then : 19460 19461else $as_nop 19462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19463printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19464as_fn_error $? "cannot define GMP_NUMB_BITS 19465See \`config.log' for more details" "$LINENO" 5; } 19466fi 19467 19468 19469printf "%s\n" "#define GMP_NUMB_BITS $mini_gmp_numb_bits" >>confdefs.h 19470 19471 19472fi 19473 19474CPPFLAGS="$saved_CPPFLAGS" 19475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mini_gmp_numb_bits bits ($how)" >&5 19476printf "%s\n" "$mini_gmp_numb_bits bits ($how)" >&6; } 19477 19478fi 19479 19480 19481ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 19482if test "x$ac_cv_func_getrusage" = xyes 19483then : 19484 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h 19485 19486fi 19487 19488 19489if test -f confdefs.h; then 19490 for i in PACKAGE_ HAVE_STRING HAVE_DLFCN_H HAVE_MEM STDC_HEADERS \ 19491 HAVE_STDLIB_H HAVE_UNISTD_H HAVE_STDC_HEADERS \ 19492 HAVE_SYS_STAT_H HAVE_SYS_TYPES_H PROTOTYPES __PROTOTYPES 19493 do 19494 $SED "/#define $i/d" < confdefs.h > confdefs.tmp 19495 mv confdefs.tmp confdefs.h 19496 done 19497fi 19498 19499if $EGREP -q -e '-dev$' $srcdir/VERSION; then 19500 DATAFILES=`echo \`$SED -n \ 19501 's/^ *data_check *("\(data\/[^"]*\)".*/tests\/\1/p' \ 19502 $srcdir/tests/*.c\`` 19503fi 19504 19505ac_config_files="$ac_config_files Makefile mpfr.pc doc/Makefile src/Makefile tests/Makefile tune/Makefile src/mparam.h:src/mparam_h.in tools/bench/Makefile" 19506 19507cat >confcache <<\_ACEOF 19508# This file is a shell script that caches the results of configure 19509# tests run on this system so they can be shared between configure 19510# scripts and configure runs, see configure's option --config-cache. 19511# It is not useful on other systems. If it contains results you don't 19512# want to keep, you may remove or edit it. 19513# 19514# config.status only pays attention to the cache file if you give it 19515# the --recheck option to rerun configure. 19516# 19517# `ac_cv_env_foo' variables (set or unset) will be overridden when 19518# loading this file, other *unset* `ac_cv_foo' will be assigned the 19519# following values. 19520 19521_ACEOF 19522 19523# The following way of writing the cache mishandles newlines in values, 19524# but we know of no workaround that is simple, portable, and efficient. 19525# So, we kill variables containing newlines. 19526# Ultrix sh set writes to stderr and can't be redirected directly, 19527# and sets the high bit in the cache file unless we assign to the vars. 19528( 19529 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19530 eval ac_val=\$$ac_var 19531 case $ac_val in #( 19532 *${as_nl}*) 19533 case $ac_var in #( 19534 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19535printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19536 esac 19537 case $ac_var in #( 19538 _ | IFS | as_nl) ;; #( 19539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19540 *) { eval $ac_var=; unset $ac_var;} ;; 19541 esac ;; 19542 esac 19543 done 19544 19545 (set) 2>&1 | 19546 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19547 *${as_nl}ac_space=\ *) 19548 # `set' does not quote correctly, so add quotes: double-quote 19549 # substitution turns \\\\ into \\, and sed turns \\ into \. 19550 sed -n \ 19551 "s/'/'\\\\''/g; 19552 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19553 ;; #( 19554 *) 19555 # `set' quotes correctly as required by POSIX, so do not add quotes. 19556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19557 ;; 19558 esac | 19559 sort 19560) | 19561 sed ' 19562 /^ac_cv_env_/b end 19563 t clear 19564 :clear 19565 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19566 t end 19567 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19568 :end' >>confcache 19569if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19570 if test -w "$cache_file"; then 19571 if test "x$cache_file" != "x/dev/null"; then 19572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19573printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19574 if test ! -f "$cache_file" || test -h "$cache_file"; then 19575 cat confcache >"$cache_file" 19576 else 19577 case $cache_file in #( 19578 */* | ?:*) 19579 mv -f confcache "$cache_file"$$ && 19580 mv -f "$cache_file"$$ "$cache_file" ;; #( 19581 *) 19582 mv -f confcache "$cache_file" ;; 19583 esac 19584 fi 19585 fi 19586 else 19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19588printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19589 fi 19590fi 19591rm -f confcache 19592 19593test "x$prefix" = xNONE && prefix=$ac_default_prefix 19594# Let make expand exec_prefix. 19595test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19596 19597# Transform confdefs.h into DEFS. 19598# Protect against shell expansion while executing Makefile rules. 19599# Protect against Makefile macro expansion. 19600# 19601# If the first sed substitution is executed (which looks for macros that 19602# take arguments), then branch to the quote section. Otherwise, 19603# look for a macro that doesn't take arguments. 19604ac_script=' 19605:mline 19606/\\$/{ 19607 N 19608 s,\\\n,, 19609 b mline 19610} 19611t clear 19612:clear 19613s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 19614t quote 19615s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 19616t quote 19617b any 19618:quote 19619s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 19620s/\[/\\&/g 19621s/\]/\\&/g 19622s/\$/$$/g 19623H 19624:any 19625${ 19626 g 19627 s/^\n// 19628 s/\n/ /g 19629 p 19630} 19631' 19632DEFS=`sed -n "$ac_script" confdefs.h` 19633 19634 19635ac_libobjs= 19636ac_ltlibobjs= 19637U= 19638for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19639 # 1. Remove the extension, and $U if already installed. 19640 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19641 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19642 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19643 # will be set to the directory where LIBOBJS objects are built. 19644 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19645 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19646done 19647LIBOBJS=$ac_libobjs 19648 19649LTLIBOBJS=$ac_ltlibobjs 19650 19651 19652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19653printf %s "checking that generated files are newer than configure... " >&6; } 19654 if test -n "$am_sleep_pid"; then 19655 # Hide warnings about reused PIDs. 19656 wait $am_sleep_pid 2>/dev/null 19657 fi 19658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19659printf "%s\n" "done" >&6; } 19660 if test -n "$EXEEXT"; then 19661 am__EXEEXT_TRUE= 19662 am__EXEEXT_FALSE='#' 19663else 19664 am__EXEEXT_TRUE='#' 19665 am__EXEEXT_FALSE= 19666fi 19667 19668if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19669 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19670Usually this means the macro was only invoked conditionally." "$LINENO" 5 19671fi 19672if test -z "${MINI_GMP_TRUE}" && test -z "${MINI_GMP_FALSE}"; then 19673 as_fn_error $? "conditional \"MINI_GMP\" was never defined. 19674Usually this means the macro was only invoked conditionally." "$LINENO" 5 19675fi 19676if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19677 as_fn_error $? "conditional \"AMDEP\" was never defined. 19678Usually this means the macro was only invoked conditionally." "$LINENO" 5 19679fi 19680if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19681 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19682Usually this means the macro was only invoked conditionally." "$LINENO" 5 19683fi 19684 19685: "${CONFIG_STATUS=./config.status}" 19686ac_write_fail=0 19687ac_clean_files_save=$ac_clean_files 19688ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19690printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19691as_write_fail=0 19692cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19693#! $SHELL 19694# Generated by $as_me. 19695# Run this file to recreate the current configuration. 19696# Compiler output produced by configure, useful for debugging 19697# configure, is in config.log if it exists. 19698 19699debug=false 19700ac_cs_recheck=false 19701ac_cs_silent=false 19702 19703SHELL=\${CONFIG_SHELL-$SHELL} 19704export SHELL 19705_ASEOF 19706cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19707## -------------------- ## 19708## M4sh Initialization. ## 19709## -------------------- ## 19710 19711# Be more Bourne compatible 19712DUALCASE=1; export DUALCASE # for MKS sh 19713as_nop=: 19714if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19715then : 19716 emulate sh 19717 NULLCMD=: 19718 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19719 # is contrary to our usage. Disable this feature. 19720 alias -g '${1+"$@"}'='"$@"' 19721 setopt NO_GLOB_SUBST 19722else $as_nop 19723 case `(set -o) 2>/dev/null` in #( 19724 *posix*) : 19725 set -o posix ;; #( 19726 *) : 19727 ;; 19728esac 19729fi 19730 19731 19732 19733# Reset variables that may have inherited troublesome values from 19734# the environment. 19735 19736# IFS needs to be set, to space, tab, and newline, in precisely that order. 19737# (If _AS_PATH_WALK were called with IFS unset, it would have the 19738# side effect of setting IFS to empty, thus disabling word splitting.) 19739# Quoting is to prevent editors from complaining about space-tab. 19740as_nl=' 19741' 19742export as_nl 19743IFS=" "" $as_nl" 19744 19745PS1='$ ' 19746PS2='> ' 19747PS4='+ ' 19748 19749# Ensure predictable behavior from utilities with locale-dependent output. 19750LC_ALL=C 19751export LC_ALL 19752LANGUAGE=C 19753export LANGUAGE 19754 19755# We cannot yet rely on "unset" to work, but we need these variables 19756# to be unset--not just set to an empty or harmless value--now, to 19757# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19758# also avoids known problems related to "unset" and subshell syntax 19759# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19760for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19761do eval test \${$as_var+y} \ 19762 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19763done 19764 19765# Ensure that fds 0, 1, and 2 are open. 19766if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19767if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19768if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19769 19770# The user is always right. 19771if ${PATH_SEPARATOR+false} :; then 19772 PATH_SEPARATOR=: 19773 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19774 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19775 PATH_SEPARATOR=';' 19776 } 19777fi 19778 19779 19780# Find who we are. Look in the path if we contain no directory separator. 19781as_myself= 19782case $0 in #(( 19783 *[\\/]* ) as_myself=$0 ;; 19784 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19785for as_dir in $PATH 19786do 19787 IFS=$as_save_IFS 19788 case $as_dir in #((( 19789 '') as_dir=./ ;; 19790 */) ;; 19791 *) as_dir=$as_dir/ ;; 19792 esac 19793 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19794 done 19795IFS=$as_save_IFS 19796 19797 ;; 19798esac 19799# We did not find ourselves, most probably we were run as `sh COMMAND' 19800# in which case we are not to be found in the path. 19801if test "x$as_myself" = x; then 19802 as_myself=$0 19803fi 19804if test ! -f "$as_myself"; then 19805 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19806 exit 1 19807fi 19808 19809 19810 19811# as_fn_error STATUS ERROR [LINENO LOG_FD] 19812# ---------------------------------------- 19813# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19814# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19815# script with STATUS, using 1 if that was 0. 19816as_fn_error () 19817{ 19818 as_status=$1; test $as_status -eq 0 && as_status=1 19819 if test "$4"; then 19820 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19822 fi 19823 printf "%s\n" "$as_me: error: $2" >&2 19824 as_fn_exit $as_status 19825} # as_fn_error 19826 19827 19828 19829# as_fn_set_status STATUS 19830# ----------------------- 19831# Set $? to STATUS, without forking. 19832as_fn_set_status () 19833{ 19834 return $1 19835} # as_fn_set_status 19836 19837# as_fn_exit STATUS 19838# ----------------- 19839# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19840as_fn_exit () 19841{ 19842 set +e 19843 as_fn_set_status $1 19844 exit $1 19845} # as_fn_exit 19846 19847# as_fn_unset VAR 19848# --------------- 19849# Portably unset VAR. 19850as_fn_unset () 19851{ 19852 { eval $1=; unset $1;} 19853} 19854as_unset=as_fn_unset 19855 19856# as_fn_append VAR VALUE 19857# ---------------------- 19858# Append the text in VALUE to the end of the definition contained in VAR. Take 19859# advantage of any shell optimizations that allow amortized linear growth over 19860# repeated appends, instead of the typical quadratic growth present in naive 19861# implementations. 19862if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19863then : 19864 eval 'as_fn_append () 19865 { 19866 eval $1+=\$2 19867 }' 19868else $as_nop 19869 as_fn_append () 19870 { 19871 eval $1=\$$1\$2 19872 } 19873fi # as_fn_append 19874 19875# as_fn_arith ARG... 19876# ------------------ 19877# Perform arithmetic evaluation on the ARGs, and store the result in the 19878# global $as_val. Take advantage of shells that can avoid forks. The arguments 19879# must be portable across $(()) and expr. 19880if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19881then : 19882 eval 'as_fn_arith () 19883 { 19884 as_val=$(( $* )) 19885 }' 19886else $as_nop 19887 as_fn_arith () 19888 { 19889 as_val=`expr "$@" || test $? -eq 1` 19890 } 19891fi # as_fn_arith 19892 19893 19894if expr a : '\(a\)' >/dev/null 2>&1 && 19895 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19896 as_expr=expr 19897else 19898 as_expr=false 19899fi 19900 19901if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19902 as_basename=basename 19903else 19904 as_basename=false 19905fi 19906 19907if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19908 as_dirname=dirname 19909else 19910 as_dirname=false 19911fi 19912 19913as_me=`$as_basename -- "$0" || 19914$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19915 X"$0" : 'X\(//\)$' \| \ 19916 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19917printf "%s\n" X/"$0" | 19918 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19919 s//\1/ 19920 q 19921 } 19922 /^X\/\(\/\/\)$/{ 19923 s//\1/ 19924 q 19925 } 19926 /^X\/\(\/\).*/{ 19927 s//\1/ 19928 q 19929 } 19930 s/.*/./; q'` 19931 19932# Avoid depending upon Character Ranges. 19933as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19934as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19935as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19936as_cr_digits='0123456789' 19937as_cr_alnum=$as_cr_Letters$as_cr_digits 19938 19939 19940# Determine whether it's possible to make 'echo' print without a newline. 19941# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19942# for compatibility with existing Makefiles. 19943ECHO_C= ECHO_N= ECHO_T= 19944case `echo -n x` in #((((( 19945-n*) 19946 case `echo 'xy\c'` in 19947 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19948 xy) ECHO_C='\c';; 19949 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19950 ECHO_T=' ';; 19951 esac;; 19952*) 19953 ECHO_N='-n';; 19954esac 19955 19956# For backward compatibility with old third-party macros, we provide 19957# the shell variables $as_echo and $as_echo_n. New code should use 19958# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19959as_echo='printf %s\n' 19960as_echo_n='printf %s' 19961 19962rm -f conf$$ conf$$.exe conf$$.file 19963if test -d conf$$.dir; then 19964 rm -f conf$$.dir/conf$$.file 19965else 19966 rm -f conf$$.dir 19967 mkdir conf$$.dir 2>/dev/null 19968fi 19969if (echo >conf$$.file) 2>/dev/null; then 19970 if ln -s conf$$.file conf$$ 2>/dev/null; then 19971 as_ln_s='ln -s' 19972 # ... but there are two gotchas: 19973 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19974 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19975 # In both cases, we have to default to `cp -pR'. 19976 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19977 as_ln_s='cp -pR' 19978 elif ln conf$$.file conf$$ 2>/dev/null; then 19979 as_ln_s=ln 19980 else 19981 as_ln_s='cp -pR' 19982 fi 19983else 19984 as_ln_s='cp -pR' 19985fi 19986rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19987rmdir conf$$.dir 2>/dev/null 19988 19989 19990# as_fn_mkdir_p 19991# ------------- 19992# Create "$as_dir" as a directory, including parents if necessary. 19993as_fn_mkdir_p () 19994{ 19995 19996 case $as_dir in #( 19997 -*) as_dir=./$as_dir;; 19998 esac 19999 test -d "$as_dir" || eval $as_mkdir_p || { 20000 as_dirs= 20001 while :; do 20002 case $as_dir in #( 20003 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20004 *) as_qdir=$as_dir;; 20005 esac 20006 as_dirs="'$as_qdir' $as_dirs" 20007 as_dir=`$as_dirname -- "$as_dir" || 20008$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20009 X"$as_dir" : 'X\(//\)[^/]' \| \ 20010 X"$as_dir" : 'X\(//\)$' \| \ 20011 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20012printf "%s\n" X"$as_dir" | 20013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20014 s//\1/ 20015 q 20016 } 20017 /^X\(\/\/\)[^/].*/{ 20018 s//\1/ 20019 q 20020 } 20021 /^X\(\/\/\)$/{ 20022 s//\1/ 20023 q 20024 } 20025 /^X\(\/\).*/{ 20026 s//\1/ 20027 q 20028 } 20029 s/.*/./; q'` 20030 test -d "$as_dir" && break 20031 done 20032 test -z "$as_dirs" || eval "mkdir $as_dirs" 20033 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20034 20035 20036} # as_fn_mkdir_p 20037if mkdir -p . 2>/dev/null; then 20038 as_mkdir_p='mkdir -p "$as_dir"' 20039else 20040 test -d ./-p && rmdir ./-p 20041 as_mkdir_p=false 20042fi 20043 20044 20045# as_fn_executable_p FILE 20046# ----------------------- 20047# Test if FILE is an executable regular file. 20048as_fn_executable_p () 20049{ 20050 test -f "$1" && test -x "$1" 20051} # as_fn_executable_p 20052as_test_x='test -x' 20053as_executable_p=as_fn_executable_p 20054 20055# Sed expression to map a string onto a valid CPP name. 20056as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20057 20058# Sed expression to map a string onto a valid variable name. 20059as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20060 20061 20062exec 6>&1 20063## ----------------------------------- ## 20064## Main body of $CONFIG_STATUS script. ## 20065## ----------------------------------- ## 20066_ASEOF 20067test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20068 20069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20070# Save the log message, to keep $0 and so on meaningful, and to 20071# report actual input values of CONFIG_FILES etc. instead of their 20072# values after options handling. 20073ac_log=" 20074This file was extended by MPFR $as_me 4.2.0, which was 20075generated by GNU Autoconf 2.71. Invocation command line was 20076 20077 CONFIG_FILES = $CONFIG_FILES 20078 CONFIG_HEADERS = $CONFIG_HEADERS 20079 CONFIG_LINKS = $CONFIG_LINKS 20080 CONFIG_COMMANDS = $CONFIG_COMMANDS 20081 $ $0 $@ 20082 20083on `(hostname || uname -n) 2>/dev/null | sed 1q` 20084" 20085 20086_ACEOF 20087 20088case $ac_config_files in *" 20089"*) set x $ac_config_files; shift; ac_config_files=$*;; 20090esac 20091 20092 20093 20094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20095# Files that config.status was made for. 20096config_files="$ac_config_files" 20097config_commands="$ac_config_commands" 20098 20099_ACEOF 20100 20101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20102ac_cs_usage="\ 20103\`$as_me' instantiates files and other configuration actions 20104from templates according to the current configuration. Unless the files 20105and actions are specified as TAGs, all are instantiated by default. 20106 20107Usage: $0 [OPTION]... [TAG]... 20108 20109 -h, --help print this help, then exit 20110 -V, --version print version number and configuration settings, then exit 20111 --config print configuration, then exit 20112 -q, --quiet, --silent 20113 do not print progress messages 20114 -d, --debug don't remove temporary files 20115 --recheck update $as_me by reconfiguring in the same conditions 20116 --file=FILE[:TEMPLATE] 20117 instantiate the configuration file FILE 20118 20119Configuration files: 20120$config_files 20121 20122Configuration commands: 20123$config_commands 20124 20125Report bugs to the package provider." 20126 20127_ACEOF 20128ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20129ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20131ac_cs_config='$ac_cs_config_escaped' 20132ac_cs_version="\\ 20133MPFR config.status 4.2.0 20134configured by $0, generated by GNU Autoconf 2.71, 20135 with options \\"\$ac_cs_config\\" 20136 20137Copyright (C) 2021 Free Software Foundation, Inc. 20138This config.status script is free software; the Free Software Foundation 20139gives unlimited permission to copy, distribute and modify it." 20140 20141ac_pwd='$ac_pwd' 20142srcdir='$srcdir' 20143INSTALL='$INSTALL' 20144MKDIR_P='$MKDIR_P' 20145AWK='$AWK' 20146test -n "\$AWK" || AWK=awk 20147_ACEOF 20148 20149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20150# The default lists apply if the user does not specify any file. 20151ac_need_defaults=: 20152while test $# != 0 20153do 20154 case $1 in 20155 --*=?*) 20156 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20157 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20158 ac_shift=: 20159 ;; 20160 --*=) 20161 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20162 ac_optarg= 20163 ac_shift=: 20164 ;; 20165 *) 20166 ac_option=$1 20167 ac_optarg=$2 20168 ac_shift=shift 20169 ;; 20170 esac 20171 20172 case $ac_option in 20173 # Handling of the options. 20174 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20175 ac_cs_recheck=: ;; 20176 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20177 printf "%s\n" "$ac_cs_version"; exit ;; 20178 --config | --confi | --conf | --con | --co | --c ) 20179 printf "%s\n" "$ac_cs_config"; exit ;; 20180 --debug | --debu | --deb | --de | --d | -d ) 20181 debug=: ;; 20182 --file | --fil | --fi | --f ) 20183 $ac_shift 20184 case $ac_optarg in 20185 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20186 '') as_fn_error $? "missing file argument" ;; 20187 esac 20188 as_fn_append CONFIG_FILES " '$ac_optarg'" 20189 ac_need_defaults=false;; 20190 --he | --h | --help | --hel | -h ) 20191 printf "%s\n" "$ac_cs_usage"; exit ;; 20192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20193 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20194 ac_cs_silent=: ;; 20195 20196 # This is an error. 20197 -*) as_fn_error $? "unrecognized option: \`$1' 20198Try \`$0 --help' for more information." ;; 20199 20200 *) as_fn_append ac_config_targets " $1" 20201 ac_need_defaults=false ;; 20202 20203 esac 20204 shift 20205done 20206 20207ac_configure_extra_args= 20208 20209if $ac_cs_silent; then 20210 exec 6>/dev/null 20211 ac_configure_extra_args="$ac_configure_extra_args --silent" 20212fi 20213 20214_ACEOF 20215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20216if \$ac_cs_recheck; then 20217 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20218 shift 20219 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20220 CONFIG_SHELL='$SHELL' 20221 export CONFIG_SHELL 20222 exec "\$@" 20223fi 20224 20225_ACEOF 20226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20227exec 5>>config.log 20228{ 20229 echo 20230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20231## Running $as_me. ## 20232_ASBOX 20233 printf "%s\n" "$ac_log" 20234} >&5 20235 20236_ACEOF 20237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20238# 20239# INIT-COMMANDS 20240# 20241AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20242 20243 20244# The HP-UX ksh and POSIX shell print the target directory to stdout 20245# if CDPATH is set. 20246(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20247 20248sed_quote_subst='$sed_quote_subst' 20249double_quote_subst='$double_quote_subst' 20250delay_variable_subst='$delay_variable_subst' 20251macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20252macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20253AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 20254DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20255OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20256enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20257enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20258pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20259enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20260shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20261SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20262ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20263PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20264host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20265host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20266host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20267build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20268build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20269build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20270SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20271Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20272GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20273EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20274FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20275LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20276NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20277LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20278max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20279ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20280exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20281lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20282lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20283lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20284lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20285lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20286reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20287reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20288FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20289deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20290file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20291file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20292want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20293sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20294AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20295lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20296AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20297archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20298STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20299RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20300old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20301old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20302old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20303lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20304CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20305CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20306compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20307GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20308lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20309lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20310lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20311lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20312lt_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"`' 20313lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20314nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20315lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20316lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20317objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20318MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20319lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20320lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20321lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20322lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20323lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20324need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20325MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20326DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20327NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20328LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20329OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20330OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20331libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20332shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20333extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20334archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20335enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20336export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20337whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20338compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20339old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20340old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20341archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20342archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20343module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20344module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20345with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20346allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20347no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20348hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20349hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20350hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20351hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20352hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20353hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20354hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20355inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20356link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20357always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20358export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20359exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20360include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20361prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20362postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20363file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20364variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20365need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20366need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20367version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20368runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20369shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20370shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20371libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20372library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20373soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20374install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20375postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20376postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20377finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20378finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20379hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20380sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20381configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20382configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20383hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20384enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20385enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20386enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20387old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20388striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20389 20390LTCC='$LTCC' 20391LTCFLAGS='$LTCFLAGS' 20392compiler='$compiler_DEFAULT' 20393 20394# A function that is used when there is no print builtin or printf. 20395func_fallback_echo () 20396{ 20397 eval 'cat <<_LTECHO_EOF 20398\$1 20399_LTECHO_EOF' 20400} 20401 20402# Quote evaled strings. 20403for var in AS \ 20404DLLTOOL \ 20405OBJDUMP \ 20406SHELL \ 20407ECHO \ 20408PATH_SEPARATOR \ 20409SED \ 20410GREP \ 20411EGREP \ 20412FGREP \ 20413LD \ 20414NM \ 20415LN_S \ 20416lt_SP2NL \ 20417lt_NL2SP \ 20418reload_flag \ 20419FILECMD \ 20420deplibs_check_method \ 20421file_magic_cmd \ 20422file_magic_glob \ 20423want_nocaseglob \ 20424sharedlib_from_linklib_cmd \ 20425AR \ 20426archiver_list_spec \ 20427STRIP \ 20428RANLIB \ 20429CC \ 20430CFLAGS \ 20431compiler \ 20432lt_cv_sys_global_symbol_pipe \ 20433lt_cv_sys_global_symbol_to_cdecl \ 20434lt_cv_sys_global_symbol_to_import \ 20435lt_cv_sys_global_symbol_to_c_name_address \ 20436lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20437lt_cv_nm_interface \ 20438nm_file_list_spec \ 20439lt_cv_truncate_bin \ 20440lt_prog_compiler_no_builtin_flag \ 20441lt_prog_compiler_pic \ 20442lt_prog_compiler_wl \ 20443lt_prog_compiler_static \ 20444lt_cv_prog_compiler_c_o \ 20445need_locks \ 20446MANIFEST_TOOL \ 20447DSYMUTIL \ 20448NMEDIT \ 20449LIPO \ 20450OTOOL \ 20451OTOOL64 \ 20452shrext_cmds \ 20453export_dynamic_flag_spec \ 20454whole_archive_flag_spec \ 20455compiler_needs_object \ 20456with_gnu_ld \ 20457allow_undefined_flag \ 20458no_undefined_flag \ 20459hardcode_libdir_flag_spec \ 20460hardcode_libdir_separator \ 20461exclude_expsyms \ 20462include_expsyms \ 20463file_list_spec \ 20464variables_saved_for_relink \ 20465libname_spec \ 20466library_names_spec \ 20467soname_spec \ 20468install_override_mode \ 20469finish_eval \ 20470old_striplib \ 20471striplib; do 20472 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20473 *[\\\\\\\`\\"\\\$]*) 20474 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20475 ;; 20476 *) 20477 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20478 ;; 20479 esac 20480done 20481 20482# Double-quote double-evaled strings. 20483for var in reload_cmds \ 20484old_postinstall_cmds \ 20485old_postuninstall_cmds \ 20486old_archive_cmds \ 20487extract_expsyms_cmds \ 20488old_archive_from_new_cmds \ 20489old_archive_from_expsyms_cmds \ 20490archive_cmds \ 20491archive_expsym_cmds \ 20492module_cmds \ 20493module_expsym_cmds \ 20494export_symbols_cmds \ 20495prelink_cmds \ 20496postlink_cmds \ 20497postinstall_cmds \ 20498postuninstall_cmds \ 20499finish_cmds \ 20500sys_lib_search_path_spec \ 20501configure_time_dlsearch_path \ 20502configure_time_lt_sys_library_path; do 20503 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20504 *[\\\\\\\`\\"\\\$]*) 20505 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20506 ;; 20507 *) 20508 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20509 ;; 20510 esac 20511done 20512 20513ac_aux_dir='$ac_aux_dir' 20514 20515# See if we are running on zsh, and set the options that allow our 20516# commands through without removal of \ escapes INIT. 20517if test -n "\${ZSH_VERSION+set}"; then 20518 setopt NO_GLOB_SUBST 20519fi 20520 20521 20522 PACKAGE='$PACKAGE' 20523 VERSION='$VERSION' 20524 RM='$RM' 20525 ofile='$ofile' 20526 20527 20528 20529 20530_ACEOF 20531 20532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20533 20534# Handling of arguments. 20535for ac_config_target in $ac_config_targets 20536do 20537 case $ac_config_target in 20538 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20539 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20540 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20541 "mpfr.pc") CONFIG_FILES="$CONFIG_FILES mpfr.pc" ;; 20542 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20543 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20544 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 20545 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;; 20546 "src/mparam.h") CONFIG_FILES="$CONFIG_FILES src/mparam.h:src/mparam_h.in" ;; 20547 "tools/bench/Makefile") CONFIG_FILES="$CONFIG_FILES tools/bench/Makefile" ;; 20548 20549 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20550 esac 20551done 20552 20553 20554# If the user did not use the arguments to specify the items to instantiate, 20555# then the envvar interface is used. Set only those that are not. 20556# We use the long form for the default assignment because of an extremely 20557# bizarre bug on SunOS 4.1.3. 20558if $ac_need_defaults; then 20559 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20560 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20561fi 20562 20563# Have a temporary directory for convenience. Make it in the build tree 20564# simply because there is no reason against having it here, and in addition, 20565# creating and moving files from /tmp can sometimes cause problems. 20566# Hook for its removal unless debugging. 20567# Note that there is a small window in which the directory will not be cleaned: 20568# after its creation but before its name has been assigned to `$tmp'. 20569$debug || 20570{ 20571 tmp= ac_tmp= 20572 trap 'exit_status=$? 20573 : "${ac_tmp:=$tmp}" 20574 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20575' 0 20576 trap 'as_fn_exit 1' 1 2 13 15 20577} 20578# Create a (secure) tmp directory for tmp files. 20579 20580{ 20581 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20582 test -d "$tmp" 20583} || 20584{ 20585 tmp=./conf$$-$RANDOM 20586 (umask 077 && mkdir "$tmp") 20587} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20588ac_tmp=$tmp 20589 20590# Set up the scripts for CONFIG_FILES section. 20591# No need to generate them if there are no CONFIG_FILES. 20592# This happens for instance with `./config.status config.h'. 20593if test -n "$CONFIG_FILES"; then 20594 20595 20596ac_cr=`echo X | tr X '\015'` 20597# On cygwin, bash can eat \r inside `` if the user requested igncr. 20598# But we know of no other shell where ac_cr would be empty at this 20599# point, so we can use a bashism as a fallback. 20600if test "x$ac_cr" = x; then 20601 eval ac_cr=\$\'\\r\' 20602fi 20603ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20604if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20605 ac_cs_awk_cr='\\r' 20606else 20607 ac_cs_awk_cr=$ac_cr 20608fi 20609 20610echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20611_ACEOF 20612 20613 20614{ 20615 echo "cat >conf$$subs.awk <<_ACEOF" && 20616 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20617 echo "_ACEOF" 20618} >conf$$subs.sh || 20619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20620ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20621ac_delim='%!_!# ' 20622for ac_last_try in false false false false false :; do 20623 . ./conf$$subs.sh || 20624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20625 20626 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20627 if test $ac_delim_n = $ac_delim_num; then 20628 break 20629 elif $ac_last_try; then 20630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20631 else 20632 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20633 fi 20634done 20635rm -f conf$$subs.sh 20636 20637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20638cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20639_ACEOF 20640sed -n ' 20641h 20642s/^/S["/; s/!.*/"]=/ 20643p 20644g 20645s/^[^!]*!// 20646:repl 20647t repl 20648s/'"$ac_delim"'$// 20649t delim 20650:nl 20651h 20652s/\(.\{148\}\)..*/\1/ 20653t more1 20654s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20655p 20656n 20657b repl 20658:more1 20659s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20660p 20661g 20662s/.\{148\}// 20663t nl 20664:delim 20665h 20666s/\(.\{148\}\)..*/\1/ 20667t more2 20668s/["\\]/\\&/g; s/^/"/; s/$/"/ 20669p 20670b 20671:more2 20672s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20673p 20674g 20675s/.\{148\}// 20676t delim 20677' <conf$$subs.awk | sed ' 20678/^[^""]/{ 20679 N 20680 s/\n// 20681} 20682' >>$CONFIG_STATUS || ac_write_fail=1 20683rm -f conf$$subs.awk 20684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20685_ACAWK 20686cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20687 for (key in S) S_is_set[key] = 1 20688 FS = "" 20689 20690} 20691{ 20692 line = $ 0 20693 nfields = split(line, field, "@") 20694 substed = 0 20695 len = length(field[1]) 20696 for (i = 2; i < nfields; i++) { 20697 key = field[i] 20698 keylen = length(key) 20699 if (S_is_set[key]) { 20700 value = S[key] 20701 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20702 len += length(value) + length(field[++i]) 20703 substed = 1 20704 } else 20705 len += 1 + keylen 20706 } 20707 20708 print line 20709} 20710 20711_ACAWK 20712_ACEOF 20713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20714if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20715 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20716else 20717 cat 20718fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20719 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20720_ACEOF 20721 20722# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20723# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20724# trailing colons and then remove the whole line if VPATH becomes empty 20725# (actually we leave an empty line to preserve line numbers). 20726if test "x$srcdir" = x.; then 20727 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20728h 20729s/// 20730s/^/:/ 20731s/[ ]*$/:/ 20732s/:\$(srcdir):/:/g 20733s/:\${srcdir}:/:/g 20734s/:@srcdir@:/:/g 20735s/^:*// 20736s/:*$// 20737x 20738s/\(=[ ]*\).*/\1/ 20739G 20740s/\n// 20741s/^[^=]*=[ ]*$// 20742}' 20743fi 20744 20745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20746fi # test -n "$CONFIG_FILES" 20747 20748 20749eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 20750shift 20751for ac_tag 20752do 20753 case $ac_tag in 20754 :[FHLC]) ac_mode=$ac_tag; continue;; 20755 esac 20756 case $ac_mode$ac_tag in 20757 :[FHL]*:*);; 20758 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20759 :[FH]-) ac_tag=-:-;; 20760 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20761 esac 20762 ac_save_IFS=$IFS 20763 IFS=: 20764 set x $ac_tag 20765 IFS=$ac_save_IFS 20766 shift 20767 ac_file=$1 20768 shift 20769 20770 case $ac_mode in 20771 :L) ac_source=$1;; 20772 :[FH]) 20773 ac_file_inputs= 20774 for ac_f 20775 do 20776 case $ac_f in 20777 -) ac_f="$ac_tmp/stdin";; 20778 *) # Look for the file first in the build tree, then in the source tree 20779 # (if the path is not absolute). The absolute path cannot be DOS-style, 20780 # because $ac_f cannot contain `:'. 20781 test -f "$ac_f" || 20782 case $ac_f in 20783 [\\/$]*) false;; 20784 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20785 esac || 20786 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20787 esac 20788 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20789 as_fn_append ac_file_inputs " '$ac_f'" 20790 done 20791 20792 # Let's still pretend it is `configure' which instantiates (i.e., don't 20793 # use $as_me), people would be surprised to read: 20794 # /* config.h. Generated by config.status. */ 20795 configure_input='Generated from '` 20796 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20797 `' by configure.' 20798 if test x"$ac_file" != x-; then 20799 configure_input="$ac_file. $configure_input" 20800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20801printf "%s\n" "$as_me: creating $ac_file" >&6;} 20802 fi 20803 # Neutralize special characters interpreted by sed in replacement strings. 20804 case $configure_input in #( 20805 *\&* | *\|* | *\\* ) 20806 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20807 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20808 *) ac_sed_conf_input=$configure_input;; 20809 esac 20810 20811 case $ac_tag in 20812 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20814 esac 20815 ;; 20816 esac 20817 20818 ac_dir=`$as_dirname -- "$ac_file" || 20819$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20820 X"$ac_file" : 'X\(//\)[^/]' \| \ 20821 X"$ac_file" : 'X\(//\)$' \| \ 20822 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20823printf "%s\n" X"$ac_file" | 20824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20825 s//\1/ 20826 q 20827 } 20828 /^X\(\/\/\)[^/].*/{ 20829 s//\1/ 20830 q 20831 } 20832 /^X\(\/\/\)$/{ 20833 s//\1/ 20834 q 20835 } 20836 /^X\(\/\).*/{ 20837 s//\1/ 20838 q 20839 } 20840 s/.*/./; q'` 20841 as_dir="$ac_dir"; as_fn_mkdir_p 20842 ac_builddir=. 20843 20844case "$ac_dir" in 20845.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20846*) 20847 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20848 # A ".." for each directory in $ac_dir_suffix. 20849 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20850 case $ac_top_builddir_sub in 20851 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20852 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20853 esac ;; 20854esac 20855ac_abs_top_builddir=$ac_pwd 20856ac_abs_builddir=$ac_pwd$ac_dir_suffix 20857# for backward compatibility: 20858ac_top_builddir=$ac_top_build_prefix 20859 20860case $srcdir in 20861 .) # We are building in place. 20862 ac_srcdir=. 20863 ac_top_srcdir=$ac_top_builddir_sub 20864 ac_abs_top_srcdir=$ac_pwd ;; 20865 [\\/]* | ?:[\\/]* ) # Absolute name. 20866 ac_srcdir=$srcdir$ac_dir_suffix; 20867 ac_top_srcdir=$srcdir 20868 ac_abs_top_srcdir=$srcdir ;; 20869 *) # Relative name. 20870 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20871 ac_top_srcdir=$ac_top_build_prefix$srcdir 20872 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20873esac 20874ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20875 20876 20877 case $ac_mode in 20878 :F) 20879 # 20880 # CONFIG_FILE 20881 # 20882 20883 case $INSTALL in 20884 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20885 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20886 esac 20887 ac_MKDIR_P=$MKDIR_P 20888 case $MKDIR_P in 20889 [\\/$]* | ?:[\\/]* ) ;; 20890 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20891 esac 20892_ACEOF 20893 20894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20895# If the template does not know about datarootdir, expand it. 20896# FIXME: This hack should be removed a few years after 2.60. 20897ac_datarootdir_hack=; ac_datarootdir_seen= 20898ac_sed_dataroot=' 20899/datarootdir/ { 20900 p 20901 q 20902} 20903/@datadir@/p 20904/@docdir@/p 20905/@infodir@/p 20906/@localedir@/p 20907/@mandir@/p' 20908case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20909*datarootdir*) ac_datarootdir_seen=yes;; 20910*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20912printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20913_ACEOF 20914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20915 ac_datarootdir_hack=' 20916 s&@datadir@&$datadir&g 20917 s&@docdir@&$docdir&g 20918 s&@infodir@&$infodir&g 20919 s&@localedir@&$localedir&g 20920 s&@mandir@&$mandir&g 20921 s&\\\${datarootdir}&$datarootdir&g' ;; 20922esac 20923_ACEOF 20924 20925# Neutralize VPATH when `$srcdir' = `.'. 20926# Shell code in configure.ac might set extrasub. 20927# FIXME: do we really want to maintain this feature? 20928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20929ac_sed_extra="$ac_vpsub 20930$extrasub 20931_ACEOF 20932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20933:t 20934/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20935s|@configure_input@|$ac_sed_conf_input|;t t 20936s&@top_builddir@&$ac_top_builddir_sub&;t t 20937s&@top_build_prefix@&$ac_top_build_prefix&;t t 20938s&@srcdir@&$ac_srcdir&;t t 20939s&@abs_srcdir@&$ac_abs_srcdir&;t t 20940s&@top_srcdir@&$ac_top_srcdir&;t t 20941s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20942s&@builddir@&$ac_builddir&;t t 20943s&@abs_builddir@&$ac_abs_builddir&;t t 20944s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20945s&@INSTALL@&$ac_INSTALL&;t t 20946s&@MKDIR_P@&$ac_MKDIR_P&;t t 20947$ac_datarootdir_hack 20948" 20949eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20950 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20951 20952test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20953 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20954 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20955 "$ac_tmp/out"`; test -z "$ac_out"; } && 20956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20957which seems to be undefined. Please make sure it is defined" >&5 20958printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20959which seems to be undefined. Please make sure it is defined" >&2;} 20960 20961 rm -f "$ac_tmp/stdin" 20962 case $ac_file in 20963 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20964 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20965 esac \ 20966 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20967 ;; 20968 20969 20970 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20971printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 20972 ;; 20973 esac 20974 20975 20976 case $ac_file$ac_mode in 20977 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20978 # Older Autoconf quotes --file arguments for eval, but not when files 20979 # are listed without --file. Let's play safe and only enable the eval 20980 # if we detect the quoting. 20981 # TODO: see whether this extra hack can be removed once we start 20982 # requiring Autoconf 2.70 or later. 20983 case $CONFIG_FILES in #( 20984 *\'*) : 20985 eval set x "$CONFIG_FILES" ;; #( 20986 *) : 20987 set x $CONFIG_FILES ;; #( 20988 *) : 20989 ;; 20990esac 20991 shift 20992 # Used to flag and report bootstrapping failures. 20993 am_rc=0 20994 for am_mf 20995 do 20996 # Strip MF so we end up with the name of the file. 20997 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 20998 # Check whether this is an Automake generated Makefile which includes 20999 # dependency-tracking related rules and includes. 21000 # Grep'ing the whole file directly is not great: AIX grep has a line 21001 # limit of 2048, but all sed's we know have understand at least 4000. 21002 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21003 || continue 21004 am_dirpart=`$as_dirname -- "$am_mf" || 21005$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21006 X"$am_mf" : 'X\(//\)[^/]' \| \ 21007 X"$am_mf" : 'X\(//\)$' \| \ 21008 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21009printf "%s\n" X"$am_mf" | 21010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21011 s//\1/ 21012 q 21013 } 21014 /^X\(\/\/\)[^/].*/{ 21015 s//\1/ 21016 q 21017 } 21018 /^X\(\/\/\)$/{ 21019 s//\1/ 21020 q 21021 } 21022 /^X\(\/\).*/{ 21023 s//\1/ 21024 q 21025 } 21026 s/.*/./; q'` 21027 am_filepart=`$as_basename -- "$am_mf" || 21028$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21029 X"$am_mf" : 'X\(//\)$' \| \ 21030 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21031printf "%s\n" X/"$am_mf" | 21032 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21033 s//\1/ 21034 q 21035 } 21036 /^X\/\(\/\/\)$/{ 21037 s//\1/ 21038 q 21039 } 21040 /^X\/\(\/\).*/{ 21041 s//\1/ 21042 q 21043 } 21044 s/.*/./; q'` 21045 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21046 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21047 | $MAKE -f - am--depfiles" >&5 21048 (cd "$am_dirpart" \ 21049 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21050 | $MAKE -f - am--depfiles) >&5 2>&5 21051 ac_status=$? 21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21053 (exit $ac_status); } || am_rc=$? 21054 done 21055 if test $am_rc -ne 0; then 21056 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21057printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21058as_fn_error $? "Something went wrong bootstrapping makefile fragments 21059 for automatic dependency tracking. If GNU make was not used, consider 21060 re-running the configure script with MAKE=\"gmake\" (or whatever is 21061 necessary). You can also try re-running configure with the 21062 '--disable-dependency-tracking' option to at least be able to build 21063 the package (albeit without support for automatic dependency tracking). 21064See \`config.log' for more details" "$LINENO" 5; } 21065 fi 21066 { am_dirpart=; unset am_dirpart;} 21067 { am_filepart=; unset am_filepart;} 21068 { am_mf=; unset am_mf;} 21069 { am_rc=; unset am_rc;} 21070 rm -f conftest-deps.mk 21071} 21072 ;; 21073 "libtool":C) 21074 21075 # See if we are running on zsh, and set the options that allow our 21076 # commands through without removal of \ escapes. 21077 if test -n "${ZSH_VERSION+set}"; then 21078 setopt NO_GLOB_SUBST 21079 fi 21080 21081 cfgfile=${ofile}T 21082 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21083 $RM "$cfgfile" 21084 21085 cat <<_LT_EOF >> "$cfgfile" 21086#! $SHELL 21087# Generated automatically by $as_me ($PACKAGE) $VERSION 21088# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21089 21090# Provide generalized library-building support services. 21091# Written by Gordon Matzigkeit, 1996 21092 21093# Copyright (C) 2014 Free Software Foundation, Inc. 21094# This is free software; see the source for copying conditions. There is NO 21095# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21096 21097# GNU Libtool is free software; you can redistribute it and/or modify 21098# it under the terms of the GNU General Public License as published by 21099# the Free Software Foundation; either version 2 of of the License, or 21100# (at your option) any later version. 21101# 21102# As a special exception to the GNU General Public License, if you 21103# distribute this file as part of a program or library that is built 21104# using GNU Libtool, you may include this file under the same 21105# distribution terms that you use for the rest of that program. 21106# 21107# GNU Libtool is distributed in the hope that it will be useful, but 21108# WITHOUT ANY WARRANTY; without even the implied warranty of 21109# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21110# GNU General Public License for more details. 21111# 21112# You should have received a copy of the GNU General Public License 21113# along with this program. If not, see <http://www.gnu.org/licenses/>. 21114 21115 21116# The names of the tagged configurations supported by this script. 21117available_tags='' 21118 21119# Configured defaults for sys_lib_dlsearch_path munging. 21120: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21121 21122# ### BEGIN LIBTOOL CONFIG 21123 21124# Which release of libtool.m4 was used? 21125macro_version=$macro_version 21126macro_revision=$macro_revision 21127 21128# Assembler program. 21129AS=$lt_AS 21130 21131# DLL creation program. 21132DLLTOOL=$lt_DLLTOOL 21133 21134# Object dumper program. 21135OBJDUMP=$lt_OBJDUMP 21136 21137# Whether or not to build shared libraries. 21138build_libtool_libs=$enable_shared 21139 21140# Whether or not to build static libraries. 21141build_old_libs=$enable_static 21142 21143# What type of objects to build. 21144pic_mode=$pic_mode 21145 21146# Whether or not to optimize for fast installation. 21147fast_install=$enable_fast_install 21148 21149# Shared archive member basename,for filename based shared library versioning on AIX. 21150shared_archive_member_spec=$shared_archive_member_spec 21151 21152# Shell to use when invoking shell scripts. 21153SHELL=$lt_SHELL 21154 21155# An echo program that protects backslashes. 21156ECHO=$lt_ECHO 21157 21158# The PATH separator for the build system. 21159PATH_SEPARATOR=$lt_PATH_SEPARATOR 21160 21161# The host system. 21162host_alias=$host_alias 21163host=$host 21164host_os=$host_os 21165 21166# The build system. 21167build_alias=$build_alias 21168build=$build 21169build_os=$build_os 21170 21171# A sed program that does not truncate output. 21172SED=$lt_SED 21173 21174# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21175Xsed="\$SED -e 1s/^X//" 21176 21177# A grep program that handles long lines. 21178GREP=$lt_GREP 21179 21180# An ERE matcher. 21181EGREP=$lt_EGREP 21182 21183# A literal string matcher. 21184FGREP=$lt_FGREP 21185 21186# A BSD- or MS-compatible name lister. 21187NM=$lt_NM 21188 21189# Whether we need soft or hard links. 21190LN_S=$lt_LN_S 21191 21192# What is the maximum length of a command? 21193max_cmd_len=$max_cmd_len 21194 21195# Object file suffix (normally "o"). 21196objext=$ac_objext 21197 21198# Executable file suffix (normally ""). 21199exeext=$exeext 21200 21201# whether the shell understands "unset". 21202lt_unset=$lt_unset 21203 21204# turn spaces into newlines. 21205SP2NL=$lt_lt_SP2NL 21206 21207# turn newlines into spaces. 21208NL2SP=$lt_lt_NL2SP 21209 21210# convert \$build file names to \$host format. 21211to_host_file_cmd=$lt_cv_to_host_file_cmd 21212 21213# convert \$build files to toolchain format. 21214to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21215 21216# A file(cmd) program that detects file types. 21217FILECMD=$lt_FILECMD 21218 21219# Method to check whether dependent libraries are shared objects. 21220deplibs_check_method=$lt_deplibs_check_method 21221 21222# Command to use when deplibs_check_method = "file_magic". 21223file_magic_cmd=$lt_file_magic_cmd 21224 21225# How to find potential files when deplibs_check_method = "file_magic". 21226file_magic_glob=$lt_file_magic_glob 21227 21228# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21229want_nocaseglob=$lt_want_nocaseglob 21230 21231# Command to associate shared and link libraries. 21232sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21233 21234# The archiver. 21235AR=$lt_AR 21236 21237# Flags to create an archive (by configure). 21238lt_ar_flags=$lt_ar_flags 21239 21240# Flags to create an archive. 21241AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21242 21243# How to feed a file listing to the archiver. 21244archiver_list_spec=$lt_archiver_list_spec 21245 21246# A symbol stripping program. 21247STRIP=$lt_STRIP 21248 21249# Commands used to install an old-style archive. 21250RANLIB=$lt_RANLIB 21251old_postinstall_cmds=$lt_old_postinstall_cmds 21252old_postuninstall_cmds=$lt_old_postuninstall_cmds 21253 21254# Whether to use a lock for old archive extraction. 21255lock_old_archive_extraction=$lock_old_archive_extraction 21256 21257# A C compiler. 21258LTCC=$lt_CC 21259 21260# LTCC compiler flags. 21261LTCFLAGS=$lt_CFLAGS 21262 21263# Take the output of nm and produce a listing of raw symbols and C names. 21264global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21265 21266# Transform the output of nm in a proper C declaration. 21267global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21268 21269# Transform the output of nm into a list of symbols to manually relocate. 21270global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21271 21272# Transform the output of nm in a C name address pair. 21273global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21274 21275# Transform the output of nm in a C name address pair when lib prefix is needed. 21276global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21277 21278# The name lister interface. 21279nm_interface=$lt_lt_cv_nm_interface 21280 21281# Specify filename containing input files for \$NM. 21282nm_file_list_spec=$lt_nm_file_list_spec 21283 21284# The root where to search for dependent libraries,and where our libraries should be installed. 21285lt_sysroot=$lt_sysroot 21286 21287# Command to truncate a binary pipe. 21288lt_truncate_bin=$lt_lt_cv_truncate_bin 21289 21290# The name of the directory that contains temporary libtool files. 21291objdir=$objdir 21292 21293# Used to examine libraries when file_magic_cmd begins with "file". 21294MAGIC_CMD=$MAGIC_CMD 21295 21296# Must we lock files when doing compilation? 21297need_locks=$lt_need_locks 21298 21299# Manifest tool. 21300MANIFEST_TOOL=$lt_MANIFEST_TOOL 21301 21302# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21303DSYMUTIL=$lt_DSYMUTIL 21304 21305# Tool to change global to local symbols on Mac OS X. 21306NMEDIT=$lt_NMEDIT 21307 21308# Tool to manipulate fat objects and archives on Mac OS X. 21309LIPO=$lt_LIPO 21310 21311# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21312OTOOL=$lt_OTOOL 21313 21314# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21315OTOOL64=$lt_OTOOL64 21316 21317# Old archive suffix (normally "a"). 21318libext=$libext 21319 21320# Shared library suffix (normally ".so"). 21321shrext_cmds=$lt_shrext_cmds 21322 21323# The commands to extract the exported symbol list from a shared archive. 21324extract_expsyms_cmds=$lt_extract_expsyms_cmds 21325 21326# Variables whose values should be saved in libtool wrapper scripts and 21327# restored at link time. 21328variables_saved_for_relink=$lt_variables_saved_for_relink 21329 21330# Do we need the "lib" prefix for modules? 21331need_lib_prefix=$need_lib_prefix 21332 21333# Do we need a version for libraries? 21334need_version=$need_version 21335 21336# Library versioning type. 21337version_type=$version_type 21338 21339# Shared library runtime path variable. 21340runpath_var=$runpath_var 21341 21342# Shared library path variable. 21343shlibpath_var=$shlibpath_var 21344 21345# Is shlibpath searched before the hard-coded library search path? 21346shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21347 21348# Format of library name prefix. 21349libname_spec=$lt_libname_spec 21350 21351# List of archive names. First name is the real one, the rest are links. 21352# The last name is the one that the linker finds with -lNAME 21353library_names_spec=$lt_library_names_spec 21354 21355# The coded name of the library, if different from the real name. 21356soname_spec=$lt_soname_spec 21357 21358# Permission mode override for installation of shared libraries. 21359install_override_mode=$lt_install_override_mode 21360 21361# Command to use after installation of a shared archive. 21362postinstall_cmds=$lt_postinstall_cmds 21363 21364# Command to use after uninstallation of a shared archive. 21365postuninstall_cmds=$lt_postuninstall_cmds 21366 21367# Commands used to finish a libtool library installation in a directory. 21368finish_cmds=$lt_finish_cmds 21369 21370# As "finish_cmds", except a single script fragment to be evaled but 21371# not shown. 21372finish_eval=$lt_finish_eval 21373 21374# Whether we should hardcode library paths into libraries. 21375hardcode_into_libs=$hardcode_into_libs 21376 21377# Compile-time system search path for libraries. 21378sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21379 21380# Detected run-time system search path for libraries. 21381sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21382 21383# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21384configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21385 21386# Whether dlopen is supported. 21387dlopen_support=$enable_dlopen 21388 21389# Whether dlopen of programs is supported. 21390dlopen_self=$enable_dlopen_self 21391 21392# Whether dlopen of statically linked programs is supported. 21393dlopen_self_static=$enable_dlopen_self_static 21394 21395# Commands to strip libraries. 21396old_striplib=$lt_old_striplib 21397striplib=$lt_striplib 21398 21399 21400# The linker used to build libraries. 21401LD=$lt_LD 21402 21403# How to create reloadable object files. 21404reload_flag=$lt_reload_flag 21405reload_cmds=$lt_reload_cmds 21406 21407# Commands used to build an old-style archive. 21408old_archive_cmds=$lt_old_archive_cmds 21409 21410# A language specific compiler. 21411CC=$lt_compiler 21412 21413# Is the compiler the GNU compiler? 21414with_gcc=$GCC 21415 21416# Compiler flag to turn off builtin functions. 21417no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21418 21419# Additional compiler flags for building library objects. 21420pic_flag=$lt_lt_prog_compiler_pic 21421 21422# How to pass a linker flag through the compiler. 21423wl=$lt_lt_prog_compiler_wl 21424 21425# Compiler flag to prevent dynamic linking. 21426link_static_flag=$lt_lt_prog_compiler_static 21427 21428# Does compiler simultaneously support -c and -o options? 21429compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21430 21431# Whether or not to add -lc for building shared libraries. 21432build_libtool_need_lc=$archive_cmds_need_lc 21433 21434# Whether or not to disallow shared libs when runtime libs are static. 21435allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21436 21437# Compiler flag to allow reflexive dlopens. 21438export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21439 21440# Compiler flag to generate shared objects directly from archives. 21441whole_archive_flag_spec=$lt_whole_archive_flag_spec 21442 21443# Whether the compiler copes with passing no objects directly. 21444compiler_needs_object=$lt_compiler_needs_object 21445 21446# Create an old-style archive from a shared archive. 21447old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21448 21449# Create a temporary old-style archive to link instead of a shared archive. 21450old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21451 21452# Commands used to build a shared archive. 21453archive_cmds=$lt_archive_cmds 21454archive_expsym_cmds=$lt_archive_expsym_cmds 21455 21456# Commands used to build a loadable module if different from building 21457# a shared archive. 21458module_cmds=$lt_module_cmds 21459module_expsym_cmds=$lt_module_expsym_cmds 21460 21461# Whether we are building with GNU ld or not. 21462with_gnu_ld=$lt_with_gnu_ld 21463 21464# Flag that allows shared libraries with undefined symbols to be built. 21465allow_undefined_flag=$lt_allow_undefined_flag 21466 21467# Flag that enforces no undefined symbols. 21468no_undefined_flag=$lt_no_undefined_flag 21469 21470# Flag to hardcode \$libdir into a binary during linking. 21471# This must work even if \$libdir does not exist 21472hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21473 21474# Whether we need a single "-rpath" flag with a separated argument. 21475hardcode_libdir_separator=$lt_hardcode_libdir_separator 21476 21477# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21478# DIR into the resulting binary. 21479hardcode_direct=$hardcode_direct 21480 21481# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21482# DIR into the resulting binary and the resulting library dependency is 21483# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21484# library is relocated. 21485hardcode_direct_absolute=$hardcode_direct_absolute 21486 21487# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21488# into the resulting binary. 21489hardcode_minus_L=$hardcode_minus_L 21490 21491# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21492# into the resulting binary. 21493hardcode_shlibpath_var=$hardcode_shlibpath_var 21494 21495# Set to "yes" if building a shared library automatically hardcodes DIR 21496# into the library and all subsequent libraries and executables linked 21497# against it. 21498hardcode_automatic=$hardcode_automatic 21499 21500# Set to yes if linker adds runtime paths of dependent libraries 21501# to runtime path list. 21502inherit_rpath=$inherit_rpath 21503 21504# Whether libtool must link a program against all its dependency libraries. 21505link_all_deplibs=$link_all_deplibs 21506 21507# Set to "yes" if exported symbols are required. 21508always_export_symbols=$always_export_symbols 21509 21510# The commands to list exported symbols. 21511export_symbols_cmds=$lt_export_symbols_cmds 21512 21513# Symbols that should not be listed in the preloaded symbols. 21514exclude_expsyms=$lt_exclude_expsyms 21515 21516# Symbols that must always be exported. 21517include_expsyms=$lt_include_expsyms 21518 21519# Commands necessary for linking programs (against libraries) with templates. 21520prelink_cmds=$lt_prelink_cmds 21521 21522# Commands necessary for finishing linking programs. 21523postlink_cmds=$lt_postlink_cmds 21524 21525# Specify filename containing input files. 21526file_list_spec=$lt_file_list_spec 21527 21528# How to hardcode a shared library path into an executable. 21529hardcode_action=$hardcode_action 21530 21531# ### END LIBTOOL CONFIG 21532 21533_LT_EOF 21534 21535 cat <<'_LT_EOF' >> "$cfgfile" 21536 21537# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21538 21539# func_munge_path_list VARIABLE PATH 21540# ----------------------------------- 21541# VARIABLE is name of variable containing _space_ separated list of 21542# directories to be munged by the contents of PATH, which is string 21543# having a format: 21544# "DIR[:DIR]:" 21545# string "DIR[ DIR]" will be prepended to VARIABLE 21546# ":DIR[:DIR]" 21547# string "DIR[ DIR]" will be appended to VARIABLE 21548# "DIRP[:DIRP]::[DIRA:]DIRA" 21549# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21550# "DIRA[ DIRA]" will be appended to VARIABLE 21551# "DIR[:DIR]" 21552# VARIABLE will be replaced by "DIR[ DIR]" 21553func_munge_path_list () 21554{ 21555 case x$2 in 21556 x) 21557 ;; 21558 *:) 21559 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21560 ;; 21561 x:*) 21562 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21563 ;; 21564 *::*) 21565 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21566 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21567 ;; 21568 *) 21569 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21570 ;; 21571 esac 21572} 21573 21574 21575# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21576func_cc_basename () 21577{ 21578 for cc_temp in $*""; do 21579 case $cc_temp in 21580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21582 \-*) ;; 21583 *) break;; 21584 esac 21585 done 21586 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21587} 21588 21589 21590# ### END FUNCTIONS SHARED WITH CONFIGURE 21591 21592_LT_EOF 21593 21594 case $host_os in 21595 aix3*) 21596 cat <<\_LT_EOF >> "$cfgfile" 21597# AIX sometimes has problems with the GCC collect2 program. For some 21598# reason, if we set the COLLECT_NAMES environment variable, the problems 21599# vanish in a puff of smoke. 21600if test set != "${COLLECT_NAMES+set}"; then 21601 COLLECT_NAMES= 21602 export COLLECT_NAMES 21603fi 21604_LT_EOF 21605 ;; 21606 esac 21607 21608 21609 21610ltmain=$ac_aux_dir/ltmain.sh 21611 21612 21613 # We use sed instead of cat because bash on DJGPP gets confused if 21614 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21615 # text mode, it properly converts lines to CR/LF. This bash problem 21616 # is reportedly fixed, but why not run on old versions too? 21617 $SED '$q' "$ltmain" >> "$cfgfile" \ 21618 || (rm -f "$cfgfile"; exit 1) 21619 21620 mv -f "$cfgfile" "$ofile" || 21621 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21622 chmod +x "$ofile" 21623 21624 ;; 21625 21626 esac 21627done # for ac_tag 21628 21629 21630as_fn_exit 0 21631_ACEOF 21632ac_clean_files=$ac_clean_files_save 21633 21634test $ac_write_fail = 0 || 21635 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21636 21637 21638# configure is writing to config.log, and then calls config.status. 21639# config.status does its own redirection, appending to config.log. 21640# Unfortunately, on DOS this fails, as config.log is still kept open 21641# by configure, so config.status won't be able to write to it; its 21642# output is simply discarded. So we exec the FD to /dev/null, 21643# effectively closing config.log, so it can be properly (re)opened and 21644# appended to by config.status. When coming back to configure, we 21645# need to make the FD available again. 21646if test "$no_create" != yes; then 21647 ac_cs_success=: 21648 ac_config_status_args= 21649 test "$silent" = yes && 21650 ac_config_status_args="$ac_config_status_args --quiet" 21651 exec 5>/dev/null 21652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21653 exec 5>>config.log 21654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21655 # would make configure fail if this is the last instruction. 21656 $ac_cs_success || as_fn_exit 1 21657fi 21658if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21660printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21661fi 21662 21663 21664 21665