1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for MPFR 4.2.1. 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 39 DUALCASE=1; export DUALCASE # for MKS sh 40 as_nop=: 41 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 42 then : 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 49 else $as_nop 50 case `(set -o) 2>/dev/null` in #( 51 *posix*) : 52 set -o posix ;; #( 53 *) : 54 ;; 55 esac 56 fi 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. 67 as_nl=' 68 ' 69 export as_nl 70 IFS=" "" $as_nl" 71 72 PS1='$ ' 73 PS2='> ' 74 PS4='+ ' 75 76 # Ensure predictable behavior from utilities with locale-dependent output. 77 LC_ALL=C 78 export LC_ALL 79 LANGUAGE=C 80 export 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). 87 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 88 do eval test \${$as_var+y} \ 89 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 90 done 91 92 # Ensure that fds 0, 1, and 2 are open. 93 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 94 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 95 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 96 97 # The user is always right. 98 if ${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 } 104 fi 105 106 107 # Find who we are. Look in the path if we contain no directory separator. 108 as_myself= 109 case $0 in #(( 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112 for as_dir in $PATH 113 do 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 122 IFS=$as_save_IFS 123 124 ;; 125 esac 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. 128 if test "x$as_myself" = x; then 129 as_myself=$0 130 fi 131 if 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 134 fi 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. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $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'. 157 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 158 exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="as_nop=: 164 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 165 then : 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 172 else \$as_nop 173 case \`(set -o) 2>/dev/null\` in #( 174 *posix*) : 175 set -o posix ;; #( 176 *) : 177 ;; 178 esac 179 fi 180 " 181 as_required="as_fn_return () { (exit \$1); } 182 as_fn_success () { as_fn_return 0; } 183 as_fn_failure () { as_fn_return 1; } 184 as_fn_ret_success () { return 0; } 185 as_fn_ret_failure () { return 1; } 186 187 exitcode=0 188 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 193 then : 194 195 else \$as_nop 196 exitcode=1; echo positional parameters were not saved. 197 fi 198 test x\$exitcode = x0 || exit 1 199 blah=\$(echo \$(echo blah)) 200 test x\"\$blah\" = xblah || exit 1 201 test -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 206 test \$(( 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 216 then : 217 as_have_required=yes 218 else $as_nop 219 as_have_required=no 220 fi 221 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 222 then : 223 224 else $as_nop 225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 226 as_found=false 227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 228 do 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 243 then : 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 246 then : 247 break 2 248 fi 249 fi 250 done;; 251 esac 252 as_found=false 253 done 254 IFS=$as_save_IFS 255 if $as_found 256 then : 257 258 else $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 261 then : 262 CONFIG_SHELL=$SHELL as_have_required=yes 263 fi 264 fi 265 266 267 if test "x$CONFIG_SHELL" != x 268 then : 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. 274 BASH_ENV=/dev/null 275 ENV=/dev/null 276 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 277 case $- in # (((( 278 *v*x* | *x*v* ) as_opts=-vx ;; 279 *v* ) as_opts=-v ;; 280 *x* ) as_opts=-x ;; 281 * ) as_opts= ;; 282 esac 283 exec $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'. 286 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 287 exit 255 288 fi 289 290 if test x$as_have_required = xno 291 then : 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 (at] 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 304 fi 305 fi 306 fi 307 SHELL=${CONFIG_SHELL-/bin/sh} 308 export SHELL 309 # Unset more variables known to interfere with behavior of common tools. 310 CLICOLOR_FORCE= GREP_OPTIONS= 311 unset CLICOLOR_FORCE GREP_OPTIONS 312 313 ## --------------------- ## 314 ## M4sh Shell Functions. ## 315 ## --------------------- ## 316 # as_fn_unset VAR 317 # --------------- 318 # Portably unset VAR. 319 as_fn_unset () 320 { 321 { eval $1=; unset $1;} 322 } 323 as_unset=as_fn_unset 324 325 326 # as_fn_set_status STATUS 327 # ----------------------- 328 # Set $? to STATUS, without forking. 329 as_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. 337 as_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 $?. 346 as_fn_nop () 347 { 348 return $? 349 } 350 as_nop=as_fn_nop 351 352 # as_fn_mkdir_p 353 # ------------- 354 # Create "$as_dir" as a directory, including parents if necessary. 355 as_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 || 374 printf "%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. 403 as_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. 413 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 414 then : 415 eval 'as_fn_append () 416 { 417 eval $1+=\$2 418 }' 419 else $as_nop 420 as_fn_append () 421 { 422 eval $1=\$$1\$2 423 } 424 fi # 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. 431 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 432 then : 433 eval 'as_fn_arith () 434 { 435 as_val=$(( $* )) 436 }' 437 else $as_nop 438 as_fn_arith () 439 { 440 as_val=`expr "$@" || test $? -eq 1` 441 } 442 fi # as_fn_arith 443 444 # as_fn_nop 445 # --------- 446 # Do nothing but, unlike ":", preserve the value of $?. 447 as_fn_nop () 448 { 449 return $? 450 } 451 as_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. 458 as_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 469 if expr a : '\(a\)' >/dev/null 2>&1 && 470 test "X`expr 00001 : '.*\(...\)'`" = X001; then 471 as_expr=expr 472 else 473 as_expr=false 474 fi 475 476 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 477 as_basename=basename 478 else 479 as_basename=false 480 fi 481 482 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 483 as_dirname=dirname 484 else 485 as_dirname=false 486 fi 487 488 as_me=`$as_basename -- "$0" || 489 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 490 X"$0" : 'X\(//\)$' \| \ 491 X"$0" : 'X\(/\)' \| . 2>/dev/null || 492 printf "%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. 508 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 509 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 510 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 511 as_cr_digits='0123456789' 512 as_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. 554 ECHO_C= ECHO_N= ECHO_T= 555 case `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';; 565 esac 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. 570 as_echo='printf %s\n' 571 as_echo_n='printf %s' 572 573 574 rm -f conf$$ conf$$.exe conf$$.file 575 if test -d conf$$.dir; then 576 rm -f conf$$.dir/conf$$.file 577 else 578 rm -f conf$$.dir 579 mkdir conf$$.dir 2>/dev/null 580 fi 581 if (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 595 else 596 as_ln_s='cp -pR' 597 fi 598 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 599 rmdir conf$$.dir 2>/dev/null 600 601 if mkdir -p . 2>/dev/null; then 602 as_mkdir_p='mkdir -p "$as_dir"' 603 else 604 test -d ./-p && rmdir ./-p 605 as_mkdir_p=false 606 fi 607 608 as_test_x='test -x' 609 as_executable_p=as_fn_executable_p 610 611 # Sed expression to map a string onto a valid CPP name. 612 as_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. 615 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 616 617 SHELL=${CONFIG_SHELL-/bin/sh} 618 619 620 test -n "$DJDIR" || exec 7<&0 </dev/null 621 exec 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. 626 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 627 628 # 629 # Initializations. 630 # 631 ac_default_prefix=/usr/local 632 ac_clean_files= 633 ac_config_libobj_dir=. 634 LIBOBJS= 635 cross_compiling=no 636 subdirs= 637 MFLAGS= 638 MAKEFLAGS= 639 640 # Identity of this package. 641 PACKAGE_NAME='MPFR' 642 PACKAGE_TARNAME='mpfr' 643 PACKAGE_VERSION='4.2.1' 644 PACKAGE_STRING='MPFR 4.2.1' 645 PACKAGE_BUGREPORT='' 646 PACKAGE_URL='' 647 648 # Factoring default headers for most tests. 649 ac_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 679 ac_header_c_list= 680 ac_subst_vars='am__EXEEXT_FALSE 681 am__EXEEXT_TRUE 682 LTLIBOBJS 683 LIBOBJS 684 DATAFILES 685 LIBMPFR_LDFLAGS 686 MPFR_LDFLAGS 687 ALLOCA 688 PTHREAD_CFLAGS 689 PTHREAD_LIBS 690 PTHREAD_CXX 691 PTHREAD_CC 692 ax_pthread_config 693 MPFR_LIBQUADMATH 694 MPFR_LIBM 695 TUNE_LIBS 696 LT_SYS_LIBRARY_PATH 697 OTOOL64 698 OTOOL 699 LIPO 700 NMEDIT 701 DSYMUTIL 702 MANIFEST_TOOL 703 RANLIB 704 FILECMD 705 LN_S 706 NM 707 ac_ct_DUMPBIN 708 DUMPBIN 709 LD 710 FGREP 711 LIBTOOL 712 OBJDUMP 713 DLLTOOL 714 AS 715 ac_ct_AR 716 AR 717 CPP 718 am__fastdepCC_FALSE 719 am__fastdepCC_TRUE 720 CCDEPMODE 721 am__nodep 722 AMDEPBACKSLASH 723 AMDEP_FALSE 724 AMDEP_TRUE 725 am__include 726 DEPDIR 727 OBJEXT 728 EXEEXT 729 ac_ct_CC 730 CPPFLAGS 731 LDFLAGS 732 CFLAGS 733 CC 734 MINI_GMP_FALSE 735 MINI_GMP_TRUE 736 mini_gmp_path 737 SED 738 EGREP 739 GREP 740 MAINT 741 MAINTAINER_MODE_FALSE 742 MAINTAINER_MODE_TRUE 743 AM_BACKSLASH 744 AM_DEFAULT_VERBOSITY 745 AM_DEFAULT_V 746 AM_V 747 CSCOPE 748 ETAGS 749 CTAGS 750 am__untar 751 am__tar 752 AMTAR 753 am__leading_dot 754 SET_MAKE 755 AWK 756 mkdir_p 757 MKDIR_P 758 INSTALL_STRIP_PROGRAM 759 STRIP 760 install_sh 761 MAKEINFO 762 AUTOHEADER 763 AUTOMAKE 764 AUTOCONF 765 ACLOCAL 766 VERSION 767 PACKAGE 768 CYGPATH_W 769 am__isrc 770 INSTALL_DATA 771 INSTALL_SCRIPT 772 INSTALL_PROGRAM 773 host_os 774 host_vendor 775 host_cpu 776 host 777 build_os 778 build_vendor 779 build_cpu 780 build 781 target_alias 782 host_alias 783 build_alias 784 LIBS 785 ECHO_T 786 ECHO_N 787 ECHO_C 788 DEFS 789 mandir 790 localedir 791 libdir 792 psdir 793 pdfdir 794 dvidir 795 htmldir 796 infodir 797 docdir 798 oldincludedir 799 includedir 800 runstatedir 801 localstatedir 802 sharedstatedir 803 sysconfdir 804 datadir 805 datarootdir 806 libexecdir 807 sbindir 808 bindir 809 program_transform_name 810 prefix 811 exec_prefix 812 PACKAGE_URL 813 PACKAGE_BUGREPORT 814 PACKAGE_STRING 815 PACKAGE_VERSION 816 PACKAGE_TARNAME 817 PACKAGE_NAME 818 PATH_SEPARATOR 819 SHELL 820 am__quote' 821 ac_subst_files='' 822 ac_user_opts=' 823 enable_option_checking 824 enable_silent_rules 825 enable_maintainer_mode 826 with_gmp_include 827 with_gmp_lib 828 with_gmp 829 with_gmp_build 830 with_mini_gmp 831 with_mulhigh_size 832 enable_gmp_internals 833 enable_assert 834 enable_logging 835 enable_thread_safe 836 enable_shared_cache 837 enable_warnings 838 enable_tests_timeout 839 enable_tune_for_coverage 840 enable_decimal_float 841 enable_float128 842 enable_debug_prediction 843 enable_lto 844 enable_formally_proven_code 845 enable_dependency_tracking 846 enable_shared 847 enable_static 848 with_pic 849 enable_fast_install 850 with_aix_soname 851 with_gnu_ld 852 with_sysroot 853 enable_libtool_lock 854 ' 855 ac_precious_vars='build_alias 856 host_alias 857 target_alias 858 CC 859 CFLAGS 860 LDFLAGS 861 LIBS 862 CPPFLAGS 863 CPP 864 LT_SYS_LIBRARY_PATH' 865 866 867 # Initialize some variables set by options. 868 ac_init_help= 869 ac_init_version=false 870 ac_unrecognized_opts= 871 ac_unrecognized_sep= 872 # The variables have the same names as the options, with 873 # dashes changed to underlines. 874 cache_file=/dev/null 875 exec_prefix=NONE 876 no_create= 877 no_recursion= 878 prefix=NONE 879 program_prefix=NONE 880 program_suffix=NONE 881 program_transform_name=s,x,x, 882 silent= 883 site= 884 srcdir= 885 verbose= 886 x_includes=NONE 887 x_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.) 895 bindir='${exec_prefix}/bin' 896 sbindir='${exec_prefix}/sbin' 897 libexecdir='${exec_prefix}/libexec' 898 datarootdir='${prefix}/share' 899 datadir='${datarootdir}' 900 sysconfdir='${prefix}/etc' 901 sharedstatedir='${prefix}/com' 902 localstatedir='${prefix}/var' 903 runstatedir='${localstatedir}/run' 904 includedir='${prefix}/include' 905 oldincludedir='/usr/include' 906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 907 infodir='${datarootdir}/info' 908 htmldir='${docdir}' 909 dvidir='${docdir}' 910 pdfdir='${docdir}' 911 psdir='${docdir}' 912 libdir='${exec_prefix}/lib' 913 localedir='${datarootdir}/locale' 914 mandir='${datarootdir}/man' 915 916 ac_prev= 917 ac_dashdash= 918 for ac_option 919 do 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' 1259 Try \`$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 1281 done 1282 1283 if test -n "$ac_prev"; then 1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1285 as_fn_error $? "missing argument to $ac_option" 1286 fi 1287 1288 if 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 1294 fi 1295 1296 # Check all directory arguments for consistency. 1297 for 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 1301 do 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" 1315 done 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. 1320 build=$build_alias 1321 host=$host_alias 1322 target=$target_alias 1323 1324 # FIXME: To remove some day. 1325 if 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 1331 fi 1332 1333 ac_tool_prefix= 1334 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1335 1336 test "$silent" = yes && exec 6>/dev/null 1337 1338 1339 ac_pwd=`pwd` && test -n "$ac_pwd" && 1340 ac_ls_di=`ls -di .` && 1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1342 as_fn_error $? "working directory cannot be determined" 1343 test "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. 1348 if 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 || 1356 printf "%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 1378 else 1379 ac_srcdir_defaulted=no 1380 fi 1381 if 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" 1384 fi 1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1386 ac_abs_confdir=`( 1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1388 pwd)` 1389 # When building in place, set srcdir=. 1390 if test "$ac_abs_confdir" = "$ac_pwd"; then 1391 srcdir=. 1392 fi 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. 1396 case $srcdir in 1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1398 esac 1399 for 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} 1404 done 1405 1406 # 1407 # Report the --help message. 1408 # 1409 if 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.1 to adapt to many kinds of systems. 1414 1415 Usage: $0 [OPTION]... [VAR=VALUE]... 1416 1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1418 VAR=VALUE. See below for descriptions of some of the useful variables. 1419 1420 Defaults for the options are specified in brackets. 1421 1422 Configuration: 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 1433 Installation 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 1439 By default, \`make install' will install all the files in 1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1442 for instance \`--prefix=\$HOME'. 1443 1444 For better control, use the options below. 1445 1446 Fine 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 1471 Program 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 1476 System 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 1480 fi 1481 1482 if test -n "$ac_init_help"; then 1483 case $ac_init_help in 1484 short | recursive ) echo "Configuration of MPFR 4.2.1:";; 1485 esac 1486 cat <<\_ACEOF 1487 1488 Optional 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 1539 Optional 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 1558 Some 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 1570 Use these variables to override the choices made by `configure' or to help 1571 it to find libraries and programs with nonstandard names/locations. 1572 1573 Report bugs to the package provider. 1574 _ACEOF 1575 ac_status=$? 1576 fi 1577 1578 if 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 1586 case "$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 ;; 1596 esac 1597 ac_abs_top_builddir=$ac_pwd 1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1599 # for backward compatibility: 1600 ac_top_builddir=$ac_top_build_prefix 1601 1602 case $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 ;; 1615 esac 1616 ac_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 1632 fi 1633 1634 test -n "$ac_init_help" && exit $ac_status 1635 if $ac_init_version; then 1636 cat <<\_ACEOF 1637 MPFR configure 4.2.1 1638 generated by GNU Autoconf 2.71 1639 1640 Copyright (C) 2021 Free Software Foundation, Inc. 1641 This configure script is free software; the Free Software Foundation 1642 gives unlimited permission to copy, distribute and modify it. 1643 1644 1645 Copyright 1999-2023 Free Software Foundation, Inc. 1646 Contributed by the AriC and Caramba projects, INRIA. 1647 1648 This file is part of the GNU MPFR Library. 1649 1650 The GNU MPFR Library is free software; you can redistribute it and/or modify 1651 it under the terms of the GNU Lesser General Public License as published 1652 by the Free Software Foundation; either version 3 of the License, or (at 1653 your option) any later version. 1654 1655 The GNU MPFR Library is distributed in the hope that it will be useful, but 1656 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 1657 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 1658 License for more details. 1659 1660 You should have received a copy of the GNU Lesser General Public License 1661 along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see 1662 https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 1663 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 1664 1665 _ACEOF 1666 exit 1667 fi 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. 1676 ac_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" 1681 case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684 esac 1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686 printf "%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 1699 then : 1700 ac_retval=0 1701 else $as_nop 1702 printf "%s\n" "$as_me: failed program was:" >&5 1703 sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706 fi 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. 1715 ac_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" 1719 case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722 esac 1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724 printf "%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 } 1737 then : 1738 ac_retval=0 1739 else $as_nop 1740 printf "%s\n" "$as_me: failed program was:" >&5 1741 sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=1 1744 fi 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. 1753 ac_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" 1758 case "(($ac_try" in 1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1760 *) ac_try_echo=$ac_try;; 1761 esac 1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1763 printf "%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 } 1779 then : 1780 ac_retval=0 1781 else $as_nop 1782 printf "%s\n" "$as_me: failed program was:" >&5 1783 sed 's/^/| /' conftest.$ac_ext >&5 1784 1785 ac_retval=1 1786 fi 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. 1801 ac_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 1805 printf %s "checking for $2... " >&6; } 1806 if eval test \${$3+y} 1807 then : 1808 printf %s "(cached) " >&6 1809 else $as_nop 1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1811 /* end confdefs.h. */ 1812 $4 1813 #include <$2> 1814 _ACEOF 1815 if ac_fn_c_try_compile "$LINENO" 1816 then : 1817 eval "$3=yes" 1818 else $as_nop 1819 eval "$3=no" 1820 fi 1821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1822 fi 1823 eval ac_res=\$$3 1824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1825 printf "%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 1833 ac_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 1837 printf %s "checking for $2... " >&6; } 1838 if eval test \${$3+y} 1839 then : 1840 printf %s "(cached) " >&6 1841 else $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 1858 extern "C" 1859 #endif 1860 char $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 1865 choke me 1866 #endif 1867 1868 int 1869 main (void) 1870 { 1871 return $2 (); 1872 ; 1873 return 0; 1874 } 1875 _ACEOF 1876 if ac_fn_c_try_link "$LINENO" 1877 then : 1878 eval "$3=yes" 1879 else $as_nop 1880 eval "$3=no" 1881 fi 1882 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1883 conftest$ac_exeext conftest.$ac_ext 1884 fi 1885 eval ac_res=\$$3 1886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1887 printf "%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. 1896 ac_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" 1900 case "(($ac_try" in 1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1902 *) ac_try_echo=$ac_try;; 1903 esac 1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1905 printf "%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;; 1913 esac 1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1915 printf "%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; }; } 1920 then : 1921 ac_retval=0 1922 else $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 1925 sed 's/^/| /' conftest.$ac_ext >&5 1926 1927 ac_retval=$ac_status 1928 fi 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. 1939 ac_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 1943 printf %s "checking for $2.$3... " >&6; } 1944 if eval test \${$4+y} 1945 then : 1946 printf %s "(cached) " >&6 1947 else $as_nop 1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1949 /* end confdefs.h. */ 1950 $5 1951 int 1952 main (void) 1953 { 1954 static $2 ac_aggr; 1955 if (ac_aggr.$3) 1956 return 0; 1957 ; 1958 return 0; 1959 } 1960 _ACEOF 1961 if ac_fn_c_try_compile "$LINENO" 1962 then : 1963 eval "$4=yes" 1964 else $as_nop 1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1966 /* end confdefs.h. */ 1967 $5 1968 int 1969 main (void) 1970 { 1971 static $2 ac_aggr; 1972 if (sizeof ac_aggr.$3) 1973 return 0; 1974 ; 1975 return 0; 1976 } 1977 _ACEOF 1978 if ac_fn_c_try_compile "$LINENO" 1979 then : 1980 eval "$4=yes" 1981 else $as_nop 1982 eval "$4=no" 1983 fi 1984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1985 fi 1986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1987 fi 1988 eval ac_res=\$$4 1989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1990 printf "%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. 1999 ac_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 2003 printf %s "checking for $2... " >&6; } 2004 if eval test \${$3+y} 2005 then : 2006 printf %s "(cached) " >&6 2007 else $as_nop 2008 eval "$3=no" 2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2010 /* end confdefs.h. */ 2011 $4 2012 int 2013 main (void) 2014 { 2015 if (sizeof ($2)) 2016 return 0; 2017 ; 2018 return 0; 2019 } 2020 _ACEOF 2021 if ac_fn_c_try_compile "$LINENO" 2022 then : 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024 /* end confdefs.h. */ 2025 $4 2026 int 2027 main (void) 2028 { 2029 if (sizeof (($2))) 2030 return 0; 2031 ; 2032 return 0; 2033 } 2034 _ACEOF 2035 if ac_fn_c_try_compile "$LINENO" 2036 then : 2037 2038 else $as_nop 2039 eval "$3=yes" 2040 fi 2041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2042 fi 2043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2044 fi 2045 eval ac_res=\$$3 2046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2047 printf "%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 2057 ac_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. 2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2063 /* end confdefs.h. */ 2064 $4 2065 int 2066 main (void) 2067 { 2068 static int test_array [1 - 2 * !(($2) >= 0)]; 2069 test_array [0] = 0; 2070 return test_array [0]; 2071 2072 ; 2073 return 0; 2074 } 2075 _ACEOF 2076 if ac_fn_c_try_compile "$LINENO" 2077 then : 2078 ac_lo=0 ac_mid=0 2079 while :; do 2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2081 /* end confdefs.h. */ 2082 $4 2083 int 2084 main (void) 2085 { 2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2087 test_array [0] = 0; 2088 return test_array [0]; 2089 2090 ; 2091 return 0; 2092 } 2093 _ACEOF 2094 if ac_fn_c_try_compile "$LINENO" 2095 then : 2096 ac_hi=$ac_mid; break 2097 else $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 2104 fi 2105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2106 done 2107 else $as_nop 2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109 /* end confdefs.h. */ 2110 $4 2111 int 2112 main (void) 2113 { 2114 static int test_array [1 - 2 * !(($2) < 0)]; 2115 test_array [0] = 0; 2116 return test_array [0]; 2117 2118 ; 2119 return 0; 2120 } 2121 _ACEOF 2122 if ac_fn_c_try_compile "$LINENO" 2123 then : 2124 ac_hi=-1 ac_mid=-1 2125 while :; do 2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2127 /* end confdefs.h. */ 2128 $4 2129 int 2130 main (void) 2131 { 2132 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2133 test_array [0] = 0; 2134 return test_array [0]; 2135 2136 ; 2137 return 0; 2138 } 2139 _ACEOF 2140 if ac_fn_c_try_compile "$LINENO" 2141 then : 2142 ac_lo=$ac_mid; break 2143 else $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 2150 fi 2151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2152 done 2153 else $as_nop 2154 ac_lo= ac_hi= 2155 fi 2156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2157 fi 2158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2159 # Binary search between lo and hi bounds. 2160 while 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 2165 int 2166 main (void) 2167 { 2168 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2169 test_array [0] = 0; 2170 return test_array [0]; 2171 2172 ; 2173 return 0; 2174 } 2175 _ACEOF 2176 if ac_fn_c_try_compile "$LINENO" 2177 then : 2178 ac_hi=$ac_mid 2179 else $as_nop 2180 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2181 fi 2182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2183 done 2184 case $ac_lo in #(( 2185 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2186 '') ac_retval=1 ;; 2187 esac 2188 else 2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2190 /* end confdefs.h. */ 2191 $4 2192 static long int longval (void) { return $2; } 2193 static unsigned long int ulongval (void) { return $2; } 2194 #include <stdio.h> 2195 #include <stdlib.h> 2196 int 2197 main (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 2225 if ac_fn_c_try_run "$LINENO" 2226 then : 2227 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2228 else $as_nop 2229 ac_retval=1 2230 fi 2231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2232 conftest.$ac_objext conftest.beam conftest.$ac_ext 2233 rm -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 2240 ac_configure_args_raw= 2241 for ac_arg 2242 do 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'" 2248 done 2249 2250 case $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"`;; 2258 esac 2259 2260 cat >config.log <<_ACEOF 2261 This file contains any messages produced by compilers while 2262 running configure, to aid debugging if configure makes a mistake. 2263 2264 It was created by MPFR $as_me 4.2.1, which was 2265 generated by GNU Autoconf 2.71. Invocation command line was 2266 2267 $ $0$ac_configure_args_raw 2268 2269 _ACEOF 2270 exec 5>>config.log 2271 { 2272 cat <<_ASUNAME 2273 ## --------- ## 2274 ## Platform. ## 2275 ## --------- ## 2276 2277 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2278 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2279 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2280 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2281 uname -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 2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2297 for as_dir in $PATH 2298 do 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 2307 IFS=$as_save_IFS 2308 2309 } >&5 2310 2311 cat >&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. 2326 ac_configure_args= 2327 ac_configure_args0= 2328 ac_configure_args1= 2329 ac_must_keep_next=false 2330 for ac_pass in 1 2 2331 do 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 2365 done 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. 2374 trap '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 2393 printf "%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 2463 for ac_signal in 1 2 13 15; do 2464 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2465 done 2466 ac_signal=0 2467 2468 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2469 rm -f -r conftest* confdefs.h 2470 2471 printf "%s\n" "/* confdefs.h */" > confdefs.h 2472 2473 # Predefined preprocessor variables. 2474 2475 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2476 2477 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2478 2479 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2480 2481 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2482 2483 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2484 2485 printf "%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. 2490 if test -n "$CONFIG_SITE"; then 2491 ac_site_files="$CONFIG_SITE" 2492 elif test "x$prefix" != xNONE; then 2493 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2494 else 2495 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2496 fi 2497 2498 for ac_site_file in $ac_site_files 2499 do 2500 case $ac_site_file in #( 2501 */*) : 2502 ;; #( 2503 *) : 2504 ac_site_file=./$ac_site_file ;; 2505 esac 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 2508 printf "%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 2512 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2513 as_fn_error $? "failed to load site script $ac_site_file 2514 See \`config.log' for more details" "$LINENO" 5; } 2515 fi 2516 done 2517 2518 if 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 2523 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2524 case $cache_file in 2525 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2526 *) . "./$cache_file";; 2527 esac 2528 fi 2529 else 2530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2531 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2532 >$cache_file 2533 fi 2534 2535 # Test code for whether the C compiler supports C89 (global declarations) 2536 ac_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> 2546 struct stat; 2547 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2548 struct buf { int x; }; 2549 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2550 static char *e (char **p, int i) 2551 { 2552 return p[i]; 2553 } 2554 static char *f (char * (*g) (char **, int), char **p, ...) 2555 { 2556 char *s; 2557 va_list v; 2558 va_start (v,p); 2559 s = g (p, va_arg (v,int)); 2560 va_end (v); 2561 return s; 2562 } 2563 2564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2565 function prototypes and stuff, but not \xHH hex character constants. 2566 These do not provoke an error unfortunately, instead are silently treated 2567 as an "x". The following induces an error, until -std is added to get 2568 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2569 array size at least. It is necessary to write \x00 == 0 to get something 2570 that is true only with -std. */ 2571 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2572 2573 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2574 inside strings and character constants. */ 2575 #define FOO(x) '\''x'\'' 2576 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2577 2578 int test (int i, double x); 2579 struct s1 {int (*f) (int a);}; 2580 struct s2 {int (*f) (double a);}; 2581 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2582 int, int);' 2583 2584 # Test code for whether the C compiler supports C89 (body of main). 2585 ac_c_conftest_c89_main=' 2586 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2587 ' 2588 2589 # Test code for whether the C compiler supports C99 (global declarations) 2590 ac_c_conftest_c99_globals=' 2591 // Does the compiler advertise C99 conformance? 2592 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2593 # error "Compiler does not advertise C99 conformance" 2594 #endif 2595 2596 #include <stdbool.h> 2597 extern int puts (const char *); 2598 extern int printf (const char *, ...); 2599 extern int dprintf (int, const char *, ...); 2600 extern void *malloc (size_t); 2601 extern void free (void *); 2602 2603 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2604 // dprintf is used instead of fprintf to avoid needing to declare 2605 // FILE and stderr. 2606 #define debug(...) dprintf (2, __VA_ARGS__) 2607 #define showlist(...) puts (#__VA_ARGS__) 2608 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2609 static void 2610 test_varargs_macros (void) 2611 { 2612 int x = 1234; 2613 int y = 5678; 2614 debug ("Flag"); 2615 debug ("X = %d\n", x); 2616 showlist (The first, second, and third items.); 2617 report (x>y, "x is %d but y is %d", x, y); 2618 } 2619 2620 // Check long long types. 2621 #define BIG64 18446744073709551615ull 2622 #define BIG32 4294967295ul 2623 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2624 #if !BIG_OK 2625 #error "your preprocessor is broken" 2626 #endif 2627 #if BIG_OK 2628 #else 2629 #error "your preprocessor is broken" 2630 #endif 2631 static long long int bignum = -9223372036854775807LL; 2632 static unsigned long long int ubignum = BIG64; 2633 2634 struct incomplete_array 2635 { 2636 int datasize; 2637 double data[]; 2638 }; 2639 2640 struct named_init { 2641 int number; 2642 const wchar_t *name; 2643 double average; 2644 }; 2645 2646 typedef const char *ccp; 2647 2648 static inline int 2649 test_restrict (ccp restrict text) 2650 { 2651 // See if C++-style comments work. 2652 // Iterate through items via the restricted pointer. 2653 // Also check for declarations in for loops. 2654 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2655 continue; 2656 return 0; 2657 } 2658 2659 // Check varargs and va_copy. 2660 static bool 2661 test_varargs (const char *format, ...) 2662 { 2663 va_list args; 2664 va_start (args, format); 2665 va_list args_copy; 2666 va_copy (args_copy, args); 2667 2668 const char *str = ""; 2669 int number = 0; 2670 float fnumber = 0; 2671 2672 while (*format) 2673 { 2674 switch (*format++) 2675 { 2676 case '\''s'\'': // string 2677 str = va_arg (args_copy, const char *); 2678 break; 2679 case '\''d'\'': // int 2680 number = va_arg (args_copy, int); 2681 break; 2682 case '\''f'\'': // float 2683 fnumber = va_arg (args_copy, double); 2684 break; 2685 default: 2686 break; 2687 } 2688 } 2689 va_end (args_copy); 2690 va_end (args); 2691 2692 return *str && number && fnumber; 2693 } 2694 ' 2695 2696 # Test code for whether the C compiler supports C99 (body of main). 2697 ac_c_conftest_c99_main=' 2698 // Check bool. 2699 _Bool success = false; 2700 success |= (argc != 0); 2701 2702 // Check restrict. 2703 if (test_restrict ("String literal") == 0) 2704 success = true; 2705 char *restrict newvar = "Another string"; 2706 2707 // Check varargs. 2708 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2709 test_varargs_macros (); 2710 2711 // Check flexible array members. 2712 struct incomplete_array *ia = 2713 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2714 ia->datasize = 10; 2715 for (int i = 0; i < ia->datasize; ++i) 2716 ia->data[i] = i * 1.234; 2717 2718 // Check named initializers. 2719 struct named_init ni = { 2720 .number = 34, 2721 .name = L"Test wide string", 2722 .average = 543.34343, 2723 }; 2724 2725 ni.number = 58; 2726 2727 int dynamic_array[ni.number]; 2728 dynamic_array[0] = argv[0][0]; 2729 dynamic_array[ni.number - 1] = 543; 2730 2731 // work around unused variable warnings 2732 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2733 || dynamic_array[ni.number - 1] != 543); 2734 ' 2735 2736 # Test code for whether the C compiler supports C11 (global declarations) 2737 ac_c_conftest_c11_globals=' 2738 // Does the compiler advertise C11 conformance? 2739 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2740 # error "Compiler does not advertise C11 conformance" 2741 #endif 2742 2743 // Check _Alignas. 2744 char _Alignas (double) aligned_as_double; 2745 char _Alignas (0) no_special_alignment; 2746 extern char aligned_as_int; 2747 char _Alignas (0) _Alignas (int) aligned_as_int; 2748 2749 // Check _Alignof. 2750 enum 2751 { 2752 int_alignment = _Alignof (int), 2753 int_array_alignment = _Alignof (int[100]), 2754 char_alignment = _Alignof (char) 2755 }; 2756 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2757 2758 // Check _Noreturn. 2759 int _Noreturn does_not_return (void) { for (;;) continue; } 2760 2761 // Check _Static_assert. 2762 struct test_static_assert 2763 { 2764 int x; 2765 _Static_assert (sizeof (int) <= sizeof (long int), 2766 "_Static_assert does not work in struct"); 2767 long int y; 2768 }; 2769 2770 // Check UTF-8 literals. 2771 #define u8 syntax error! 2772 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2773 2774 // Check duplicate typedefs. 2775 typedef long *long_ptr; 2776 typedef long int *long_ptr; 2777 typedef long_ptr long_ptr; 2778 2779 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2780 struct anonymous 2781 { 2782 union { 2783 struct { int i; int j; }; 2784 struct { int k; long int l; } w; 2785 }; 2786 int m; 2787 } v1; 2788 ' 2789 2790 # Test code for whether the C compiler supports C11 (body of main). 2791 ac_c_conftest_c11_main=' 2792 _Static_assert ((offsetof (struct anonymous, i) 2793 == offsetof (struct anonymous, w.k)), 2794 "Anonymous union alignment botch"); 2795 v1.i = 2; 2796 v1.w.k = 5; 2797 ok |= v1.i != 5; 2798 ' 2799 2800 # Test code for whether the C compiler supports C11 (complete). 2801 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2802 ${ac_c_conftest_c99_globals} 2803 ${ac_c_conftest_c11_globals} 2804 2805 int 2806 main (int argc, char **argv) 2807 { 2808 int ok = 0; 2809 ${ac_c_conftest_c89_main} 2810 ${ac_c_conftest_c99_main} 2811 ${ac_c_conftest_c11_main} 2812 return ok; 2813 } 2814 " 2815 2816 # Test code for whether the C compiler supports C99 (complete). 2817 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2818 ${ac_c_conftest_c99_globals} 2819 2820 int 2821 main (int argc, char **argv) 2822 { 2823 int ok = 0; 2824 ${ac_c_conftest_c89_main} 2825 ${ac_c_conftest_c99_main} 2826 return ok; 2827 } 2828 " 2829 2830 # Test code for whether the C compiler supports C89 (complete). 2831 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2832 2833 int 2834 main (int argc, char **argv) 2835 { 2836 int ok = 0; 2837 ${ac_c_conftest_c89_main} 2838 return ok; 2839 } 2840 " 2841 2842 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2843 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2844 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2845 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2846 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2847 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2848 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2849 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2850 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2851 2852 # Auxiliary files required by this configure script. 2853 ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub" 2854 2855 # Locations in which to look for auxiliary files. 2856 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2857 2858 # Search for a directory containing all of the required auxiliary files, 2859 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2860 # If we don't find one directory that contains all the files we need, 2861 # we report the set of missing files from the *first* directory in 2862 # $ac_aux_dir_candidates and give up. 2863 ac_missing_aux_files="" 2864 ac_first_candidate=: 2865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2867 as_found=false 2868 for as_dir in $ac_aux_dir_candidates 2869 do 2870 IFS=$as_save_IFS 2871 case $as_dir in #((( 2872 '') as_dir=./ ;; 2873 */) ;; 2874 *) as_dir=$as_dir/ ;; 2875 esac 2876 as_found=: 2877 2878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2879 ac_aux_dir_found=yes 2880 ac_install_sh= 2881 for ac_aux in $ac_aux_files 2882 do 2883 # As a special case, if "install-sh" is required, that requirement 2884 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2885 # and $ac_install_sh is set appropriately for whichever one is found. 2886 if test x"$ac_aux" = x"install-sh" 2887 then 2888 if test -f "${as_dir}install-sh"; then 2889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2890 ac_install_sh="${as_dir}install-sh -c" 2891 elif test -f "${as_dir}install.sh"; then 2892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2893 ac_install_sh="${as_dir}install.sh -c" 2894 elif test -f "${as_dir}shtool"; then 2895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2896 ac_install_sh="${as_dir}shtool install -c" 2897 else 2898 ac_aux_dir_found=no 2899 if $ac_first_candidate; then 2900 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2901 else 2902 break 2903 fi 2904 fi 2905 else 2906 if test -f "${as_dir}${ac_aux}"; then 2907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2908 else 2909 ac_aux_dir_found=no 2910 if $ac_first_candidate; then 2911 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2912 else 2913 break 2914 fi 2915 fi 2916 fi 2917 done 2918 if test "$ac_aux_dir_found" = yes; then 2919 ac_aux_dir="$as_dir" 2920 break 2921 fi 2922 ac_first_candidate=false 2923 2924 as_found=false 2925 done 2926 IFS=$as_save_IFS 2927 if $as_found 2928 then : 2929 2930 else $as_nop 2931 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2932 fi 2933 2934 2935 # These three variables are undocumented and unsupported, 2936 # and are intended to be withdrawn in a future Autoconf release. 2937 # They can cause serious problems if a builder's source tree is in a directory 2938 # whose full name contains unusual characters. 2939 if test -f "${ac_aux_dir}config.guess"; then 2940 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2941 fi 2942 if test -f "${ac_aux_dir}config.sub"; then 2943 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2944 fi 2945 if test -f "$ac_aux_dir/configure"; then 2946 ac_configure="$SHELL ${ac_aux_dir}configure" 2947 fi 2948 2949 # Check that the precious variables saved in the cache have kept the same 2950 # value. 2951 ac_cache_corrupted=false 2952 for ac_var in $ac_precious_vars; do 2953 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2954 eval ac_new_set=\$ac_env_${ac_var}_set 2955 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2956 eval ac_new_val=\$ac_env_${ac_var}_value 2957 case $ac_old_set,$ac_new_set in 2958 set,) 2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2960 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2961 ac_cache_corrupted=: ;; 2962 ,set) 2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2964 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2965 ac_cache_corrupted=: ;; 2966 ,);; 2967 *) 2968 if test "x$ac_old_val" != "x$ac_new_val"; then 2969 # differences in whitespace do not lead to failure. 2970 ac_old_val_w=`echo x $ac_old_val` 2971 ac_new_val_w=`echo x $ac_new_val` 2972 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2974 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2975 ac_cache_corrupted=: 2976 else 2977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2978 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2979 eval $ac_var=\$ac_old_val 2980 fi 2981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2982 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2984 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2985 fi;; 2986 esac 2987 # Pass precious variables to config.status. 2988 if test "$ac_new_set" = set; then 2989 case $ac_new_val in 2990 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2991 *) ac_arg=$ac_var=$ac_new_val ;; 2992 esac 2993 case " $ac_configure_args " in 2994 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2995 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2996 esac 2997 fi 2998 done 2999 if $ac_cache_corrupted; then 3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3001 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3003 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3004 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3005 and start over" "$LINENO" 5 3006 fi 3007 ## -------------------- ## 3008 ## Main body of script. ## 3009 ## -------------------- ## 3010 3011 ac_ext=c 3012 ac_cpp='$CPP $CPPFLAGS' 3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3016 3017 3018 3019 3020 3021 3022 # Make sure we can run config.sub. 3023 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3024 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3025 3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3027 printf %s "checking build system type... " >&6; } 3028 if test ${ac_cv_build+y} 3029 then : 3030 printf %s "(cached) " >&6 3031 else $as_nop 3032 ac_build_alias=$build_alias 3033 test "x$ac_build_alias" = x && 3034 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3035 test "x$ac_build_alias" = x && 3036 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3037 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3038 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3039 3040 fi 3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3042 printf "%s\n" "$ac_cv_build" >&6; } 3043 case $ac_cv_build in 3044 *-*-*) ;; 3045 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3046 esac 3047 build=$ac_cv_build 3048 ac_save_IFS=$IFS; IFS='-' 3049 set x $ac_cv_build 3050 shift 3051 build_cpu=$1 3052 build_vendor=$2 3053 shift; shift 3054 # Remember, the first character of IFS is used to create $*, 3055 # except with old shells: 3056 build_os=$* 3057 IFS=$ac_save_IFS 3058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3059 3060 3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3062 printf %s "checking host system type... " >&6; } 3063 if test ${ac_cv_host+y} 3064 then : 3065 printf %s "(cached) " >&6 3066 else $as_nop 3067 if test "x$host_alias" = x; then 3068 ac_cv_host=$ac_cv_build 3069 else 3070 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3071 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3072 fi 3073 3074 fi 3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3076 printf "%s\n" "$ac_cv_host" >&6; } 3077 case $ac_cv_host in 3078 *-*-*) ;; 3079 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3080 esac 3081 host=$ac_cv_host 3082 ac_save_IFS=$IFS; IFS='-' 3083 set x $ac_cv_host 3084 shift 3085 host_cpu=$1 3086 host_vendor=$2 3087 shift; shift 3088 # Remember, the first character of IFS is used to create $*, 3089 # except with old shells: 3090 host_os=$* 3091 IFS=$ac_save_IFS 3092 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3093 3094 3095 3096 am__api_version='1.16' 3097 3098 3099 # Find a good install program. We prefer a C program (faster), 3100 # so one script is as good as another. But avoid the broken or 3101 # incompatible versions: 3102 # SysV /etc/install, /usr/sbin/install 3103 # SunOS /usr/etc/install 3104 # IRIX /sbin/install 3105 # AIX /bin/install 3106 # AmigaOS /C/install, which installs bootblocks on floppy discs 3107 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3108 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3109 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3110 # OS/2's system install, which has a completely different semantic 3111 # ./install, which can be erroneously created by make from ./install.sh. 3112 # Reject install programs that cannot install multiple files. 3113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3114 printf %s "checking for a BSD-compatible install... " >&6; } 3115 if test -z "$INSTALL"; then 3116 if test ${ac_cv_path_install+y} 3117 then : 3118 printf %s "(cached) " >&6 3119 else $as_nop 3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3121 for as_dir in $PATH 3122 do 3123 IFS=$as_save_IFS 3124 case $as_dir in #((( 3125 '') as_dir=./ ;; 3126 */) ;; 3127 *) as_dir=$as_dir/ ;; 3128 esac 3129 # Account for fact that we put trailing slashes in our PATH walk. 3130 case $as_dir in #(( 3131 ./ | /[cC]/* | \ 3132 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3133 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3134 /usr/ucb/* ) ;; 3135 *) 3136 # OSF1 and SCO ODT 3.0 have their own names for install. 3137 # Don't use installbsd from OSF since it installs stuff as root 3138 # by default. 3139 for ac_prog in ginstall scoinst install; do 3140 for ac_exec_ext in '' $ac_executable_extensions; do 3141 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3142 if test $ac_prog = install && 3143 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3144 # AIX install. It has an incompatible calling convention. 3145 : 3146 elif test $ac_prog = install && 3147 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3148 # program-specific install script used by HP pwplus--don't use. 3149 : 3150 else 3151 rm -rf conftest.one conftest.two conftest.dir 3152 echo one > conftest.one 3153 echo two > conftest.two 3154 mkdir conftest.dir 3155 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3156 test -s conftest.one && test -s conftest.two && 3157 test -s conftest.dir/conftest.one && 3158 test -s conftest.dir/conftest.two 3159 then 3160 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3161 break 3 3162 fi 3163 fi 3164 fi 3165 done 3166 done 3167 ;; 3168 esac 3169 3170 done 3171 IFS=$as_save_IFS 3172 3173 rm -rf conftest.one conftest.two conftest.dir 3174 3175 fi 3176 if test ${ac_cv_path_install+y}; then 3177 INSTALL=$ac_cv_path_install 3178 else 3179 # As a last resort, use the slow shell script. Don't cache a 3180 # value for INSTALL within a source directory, because that will 3181 # break other packages using the cache if that directory is 3182 # removed, or if the value is a relative name. 3183 INSTALL=$ac_install_sh 3184 fi 3185 fi 3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3187 printf "%s\n" "$INSTALL" >&6; } 3188 3189 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3190 # It thinks the first close brace ends the variable substitution. 3191 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3192 3193 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3194 3195 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3196 3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3198 printf %s "checking whether build environment is sane... " >&6; } 3199 # Reject unsafe characters in $srcdir or the absolute working directory 3200 # name. Accept space and tab only in the latter. 3201 am_lf=' 3202 ' 3203 case `pwd` in 3204 *[\\\"\#\$\&\'\`$am_lf]*) 3205 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3206 esac 3207 case $srcdir in 3208 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3209 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3210 esac 3211 3212 # Do 'set' in a subshell so we don't clobber the current shell's 3213 # arguments. Must try -L first in case configure is actually a 3214 # symlink; some systems play weird games with the mod time of symlinks 3215 # (eg FreeBSD returns the mod time of the symlink's containing 3216 # directory). 3217 if ( 3218 am_has_slept=no 3219 for am_try in 1 2; do 3220 echo "timestamp, slept: $am_has_slept" > conftest.file 3221 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3222 if test "$*" = "X"; then 3223 # -L didn't work. 3224 set X `ls -t "$srcdir/configure" conftest.file` 3225 fi 3226 if test "$*" != "X $srcdir/configure conftest.file" \ 3227 && test "$*" != "X conftest.file $srcdir/configure"; then 3228 3229 # If neither matched, then we have a broken ls. This can happen 3230 # if, for instance, CONFIG_SHELL is bash and it inherits a 3231 # broken ls alias from the environment. This has actually 3232 # happened. Such a system could not be considered "sane". 3233 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3234 alias in your environment" "$LINENO" 5 3235 fi 3236 if test "$2" = conftest.file || test $am_try -eq 2; then 3237 break 3238 fi 3239 # Just in case. 3240 sleep 1 3241 am_has_slept=yes 3242 done 3243 test "$2" = conftest.file 3244 ) 3245 then 3246 # Ok. 3247 : 3248 else 3249 as_fn_error $? "newly created file is older than distributed files! 3250 Check your system clock" "$LINENO" 5 3251 fi 3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3253 printf "%s\n" "yes" >&6; } 3254 # If we didn't sleep, we still need to ensure time stamps of config.status and 3255 # generated files are strictly newer. 3256 am_sleep_pid= 3257 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3258 ( sleep 1 ) & 3259 am_sleep_pid=$! 3260 fi 3261 3262 rm -f conftest.file 3263 3264 test "$program_prefix" != NONE && 3265 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3266 # Use a double $ so make ignores it. 3267 test "$program_suffix" != NONE && 3268 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3269 # Double any \ or $. 3270 # By default was `s,x,x', remove it if useless. 3271 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3272 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3273 3274 3275 # Expand $ac_aux_dir to an absolute path. 3276 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3277 3278 3279 if test x"${MISSING+set}" != xset; then 3280 MISSING="\${SHELL} '$am_aux_dir/missing'" 3281 fi 3282 # Use eval to expand $SHELL 3283 if eval "$MISSING --is-lightweight"; then 3284 am_missing_run="$MISSING " 3285 else 3286 am_missing_run= 3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3288 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3289 fi 3290 3291 if test x"${install_sh+set}" != xset; then 3292 case $am_aux_dir in 3293 *\ * | *\ *) 3294 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3295 *) 3296 install_sh="\${SHELL} $am_aux_dir/install-sh" 3297 esac 3298 fi 3299 3300 # Installed binaries are usually stripped using 'strip' when the user 3301 # run "make install-strip". However 'strip' might not be the right 3302 # tool to use in cross-compilation environments, therefore Automake 3303 # will honor the 'STRIP' environment variable to overrule this program. 3304 if test "$cross_compiling" != no; then 3305 if test -n "$ac_tool_prefix"; then 3306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3307 set dummy ${ac_tool_prefix}strip; ac_word=$2 3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3309 printf %s "checking for $ac_word... " >&6; } 3310 if test ${ac_cv_prog_STRIP+y} 3311 then : 3312 printf %s "(cached) " >&6 3313 else $as_nop 3314 if test -n "$STRIP"; then 3315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3316 else 3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3318 for as_dir in $PATH 3319 do 3320 IFS=$as_save_IFS 3321 case $as_dir in #((( 3322 '') as_dir=./ ;; 3323 */) ;; 3324 *) as_dir=$as_dir/ ;; 3325 esac 3326 for ac_exec_ext in '' $ac_executable_extensions; do 3327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3328 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3330 break 2 3331 fi 3332 done 3333 done 3334 IFS=$as_save_IFS 3335 3336 fi 3337 fi 3338 STRIP=$ac_cv_prog_STRIP 3339 if test -n "$STRIP"; then 3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3341 printf "%s\n" "$STRIP" >&6; } 3342 else 3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3344 printf "%s\n" "no" >&6; } 3345 fi 3346 3347 3348 fi 3349 if test -z "$ac_cv_prog_STRIP"; then 3350 ac_ct_STRIP=$STRIP 3351 # Extract the first word of "strip", so it can be a program name with args. 3352 set dummy strip; ac_word=$2 3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3354 printf %s "checking for $ac_word... " >&6; } 3355 if test ${ac_cv_prog_ac_ct_STRIP+y} 3356 then : 3357 printf %s "(cached) " >&6 3358 else $as_nop 3359 if test -n "$ac_ct_STRIP"; then 3360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3361 else 3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3363 for as_dir in $PATH 3364 do 3365 IFS=$as_save_IFS 3366 case $as_dir in #((( 3367 '') as_dir=./ ;; 3368 */) ;; 3369 *) as_dir=$as_dir/ ;; 3370 esac 3371 for ac_exec_ext in '' $ac_executable_extensions; do 3372 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3373 ac_cv_prog_ac_ct_STRIP="strip" 3374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3375 break 2 3376 fi 3377 done 3378 done 3379 IFS=$as_save_IFS 3380 3381 fi 3382 fi 3383 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3384 if test -n "$ac_ct_STRIP"; then 3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3386 printf "%s\n" "$ac_ct_STRIP" >&6; } 3387 else 3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3389 printf "%s\n" "no" >&6; } 3390 fi 3391 3392 if test "x$ac_ct_STRIP" = x; then 3393 STRIP=":" 3394 else 3395 case $cross_compiling:$ac_tool_warned in 3396 yes:) 3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3399 ac_tool_warned=yes ;; 3400 esac 3401 STRIP=$ac_ct_STRIP 3402 fi 3403 else 3404 STRIP="$ac_cv_prog_STRIP" 3405 fi 3406 3407 fi 3408 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3409 3410 3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3412 printf %s "checking for a race-free mkdir -p... " >&6; } 3413 if test -z "$MKDIR_P"; then 3414 if test ${ac_cv_path_mkdir+y} 3415 then : 3416 printf %s "(cached) " >&6 3417 else $as_nop 3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3419 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3420 do 3421 IFS=$as_save_IFS 3422 case $as_dir in #((( 3423 '') as_dir=./ ;; 3424 */) ;; 3425 *) as_dir=$as_dir/ ;; 3426 esac 3427 for ac_prog in mkdir gmkdir; do 3428 for ac_exec_ext in '' $ac_executable_extensions; do 3429 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3430 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3431 'mkdir ('*'coreutils) '* | \ 3432 'BusyBox '* | \ 3433 'mkdir (fileutils) '4.1*) 3434 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3435 break 3;; 3436 esac 3437 done 3438 done 3439 done 3440 IFS=$as_save_IFS 3441 3442 fi 3443 3444 test -d ./--version && rmdir ./--version 3445 if test ${ac_cv_path_mkdir+y}; then 3446 MKDIR_P="$ac_cv_path_mkdir -p" 3447 else 3448 # As a last resort, use the slow shell script. Don't cache a 3449 # value for MKDIR_P within a source directory, because that will 3450 # break other packages using the cache if that directory is 3451 # removed, or if the value is a relative name. 3452 MKDIR_P="$ac_install_sh -d" 3453 fi 3454 fi 3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3456 printf "%s\n" "$MKDIR_P" >&6; } 3457 3458 for ac_prog in gawk mawk nawk awk 3459 do 3460 # Extract the first word of "$ac_prog", so it can be a program name with args. 3461 set dummy $ac_prog; ac_word=$2 3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3463 printf %s "checking for $ac_word... " >&6; } 3464 if test ${ac_cv_prog_AWK+y} 3465 then : 3466 printf %s "(cached) " >&6 3467 else $as_nop 3468 if test -n "$AWK"; then 3469 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3470 else 3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3472 for as_dir in $PATH 3473 do 3474 IFS=$as_save_IFS 3475 case $as_dir in #((( 3476 '') as_dir=./ ;; 3477 */) ;; 3478 *) as_dir=$as_dir/ ;; 3479 esac 3480 for ac_exec_ext in '' $ac_executable_extensions; do 3481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3482 ac_cv_prog_AWK="$ac_prog" 3483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3484 break 2 3485 fi 3486 done 3487 done 3488 IFS=$as_save_IFS 3489 3490 fi 3491 fi 3492 AWK=$ac_cv_prog_AWK 3493 if test -n "$AWK"; then 3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3495 printf "%s\n" "$AWK" >&6; } 3496 else 3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3498 printf "%s\n" "no" >&6; } 3499 fi 3500 3501 3502 test -n "$AWK" && break 3503 done 3504 3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3506 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3507 set x ${MAKE-make} 3508 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3509 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3510 then : 3511 printf %s "(cached) " >&6 3512 else $as_nop 3513 cat >conftest.make <<\_ACEOF 3514 SHELL = /bin/sh 3515 all: 3516 @echo '@@@%%%=$(MAKE)=@@@%%%' 3517 _ACEOF 3518 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3519 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3520 *@@@%%%=?*=@@@%%%*) 3521 eval ac_cv_prog_make_${ac_make}_set=yes;; 3522 *) 3523 eval ac_cv_prog_make_${ac_make}_set=no;; 3524 esac 3525 rm -f conftest.make 3526 fi 3527 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3529 printf "%s\n" "yes" >&6; } 3530 SET_MAKE= 3531 else 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3533 printf "%s\n" "no" >&6; } 3534 SET_MAKE="MAKE=${MAKE-make}" 3535 fi 3536 3537 rm -rf .tst 2>/dev/null 3538 mkdir .tst 2>/dev/null 3539 if test -d .tst; then 3540 am__leading_dot=. 3541 else 3542 am__leading_dot=_ 3543 fi 3544 rmdir .tst 2>/dev/null 3545 3546 # Check whether --enable-silent-rules was given. 3547 if test ${enable_silent_rules+y} 3548 then : 3549 enableval=$enable_silent_rules; 3550 fi 3551 3552 case $enable_silent_rules in # ((( 3553 yes) AM_DEFAULT_VERBOSITY=0;; 3554 no) AM_DEFAULT_VERBOSITY=1;; 3555 *) AM_DEFAULT_VERBOSITY=1;; 3556 esac 3557 am_make=${MAKE-make} 3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3559 printf %s "checking whether $am_make supports nested variables... " >&6; } 3560 if test ${am_cv_make_support_nested_variables+y} 3561 then : 3562 printf %s "(cached) " >&6 3563 else $as_nop 3564 if printf "%s\n" 'TRUE=$(BAR$(V)) 3565 BAR0=false 3566 BAR1=true 3567 V=1 3568 am__doit: 3569 @$(TRUE) 3570 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3571 am_cv_make_support_nested_variables=yes 3572 else 3573 am_cv_make_support_nested_variables=no 3574 fi 3575 fi 3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3577 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3578 if test $am_cv_make_support_nested_variables = yes; then 3579 AM_V='$(V)' 3580 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3581 else 3582 AM_V=$AM_DEFAULT_VERBOSITY 3583 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3584 fi 3585 AM_BACKSLASH='\' 3586 3587 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3588 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3589 # is not polluted with repeated "-I." 3590 am__isrc=' -I$(srcdir)' 3591 # test to see if srcdir already configured 3592 if test -f $srcdir/config.status; then 3593 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3594 fi 3595 fi 3596 3597 # test whether we have cygpath 3598 if test -z "$CYGPATH_W"; then 3599 if (cygpath --version) >/dev/null 2>/dev/null; then 3600 CYGPATH_W='cygpath -w' 3601 else 3602 CYGPATH_W=echo 3603 fi 3604 fi 3605 3606 3607 # Define the identity of the package. 3608 PACKAGE='mpfr' 3609 VERSION='4.2.1' 3610 3611 3612 # Some tools Automake needs. 3613 3614 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3615 3616 3617 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3618 3619 3620 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3621 3622 3623 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3624 3625 3626 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3627 3628 # For better backward compatibility. To be removed once Automake 1.9.x 3629 # dies out for good. For more background, see: 3630 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3631 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3632 mkdir_p='$(MKDIR_P)' 3633 3634 # We need awk for the "check" target (and possibly the TAP driver). The 3635 # system "awk" is bad on some platforms. 3636 # Always define AMTAR for backward compatibility. Yes, it's still used 3637 # in the wild :-( We should find a proper way to deprecate it ... 3638 AMTAR='$${TAR-tar}' 3639 3640 3641 # We'll loop over all known methods to create a tar archive until one works. 3642 _am_tools='gnutar pax cpio none' 3643 3644 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3645 3646 3647 3648 3649 3650 # Variables for tags utilities; see am/tags.am 3651 if test -z "$CTAGS"; then 3652 CTAGS=ctags 3653 fi 3654 3655 if test -z "$ETAGS"; then 3656 ETAGS=etags 3657 fi 3658 3659 if test -z "$CSCOPE"; then 3660 CSCOPE=cscope 3661 fi 3662 3663 3664 3665 # POSIX will say in a future version that running "rm -f" with no argument 3666 # is OK; and we want to be able to make that assumption in our Makefile 3667 # recipes. So use an aggressive probe to check that the usage we want is 3668 # actually supported "in the wild" to an acceptable degree. 3669 # See automake bug#10828. 3670 # To make any issue more visible, cause the running configure to be aborted 3671 # by default if the 'rm' program in use doesn't match our expectations; the 3672 # user can still override this though. 3673 if rm -f && rm -fr && rm -rf; then : OK; else 3674 cat >&2 <<'END' 3675 Oops! 3676 3677 Your 'rm' program seems unable to run without file operands specified 3678 on the command line, even when the '-f' option is present. This is contrary 3679 to the behaviour of most rm programs out there, and not conforming with 3680 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3681 3682 Please tell bug-automake@gnu.org about your system, including the value 3683 of your $PATH and any error possibly output before this message. This 3684 can help us improve future automake versions. 3685 3686 END 3687 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3688 echo 'Configuration will proceed anyway, since you have set the' >&2 3689 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3690 echo >&2 3691 else 3692 cat >&2 <<'END' 3693 Aborting the configuration process, to ensure you take notice of the issue. 3694 3695 You can download and install GNU coreutils to get an 'rm' implementation 3696 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3697 3698 If you want to complete the configuration process using your problematic 3699 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3700 to "yes", and re-run configure. 3701 3702 END 3703 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3704 fi 3705 fi 3706 3707 3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3709 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3710 # Check whether --enable-maintainer-mode was given. 3711 if test ${enable_maintainer_mode+y} 3712 then : 3713 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3714 else $as_nop 3715 USE_MAINTAINER_MODE=yes 3716 fi 3717 3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3719 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3720 if test $USE_MAINTAINER_MODE = yes; then 3721 MAINTAINER_MODE_TRUE= 3722 MAINTAINER_MODE_FALSE='#' 3723 else 3724 MAINTAINER_MODE_TRUE='#' 3725 MAINTAINER_MODE_FALSE= 3726 fi 3727 3728 MAINT=$MAINTAINER_MODE_TRUE 3729 3730 3731 3732 3733 3734 3735 test_CFLAGS=${CFLAGS+set} 3736 3737 if test -n "$CFLAGS" || test -n "$CC" ; then 3738 user_redefine_cc=yes 3739 fi 3740 3741 3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3743 printf %s "checking for grep that handles long lines and -e... " >&6; } 3744 if test ${ac_cv_path_GREP+y} 3745 then : 3746 printf %s "(cached) " >&6 3747 else $as_nop 3748 if test -z "$GREP"; then 3749 ac_path_GREP_found=false 3750 # Loop through the user's path and test for each of PROGNAME-LIST 3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3753 do 3754 IFS=$as_save_IFS 3755 case $as_dir in #((( 3756 '') as_dir=./ ;; 3757 */) ;; 3758 *) as_dir=$as_dir/ ;; 3759 esac 3760 for ac_prog in grep ggrep 3761 do 3762 for ac_exec_ext in '' $ac_executable_extensions; do 3763 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 3764 as_fn_executable_p "$ac_path_GREP" || continue 3765 # Check for GNU ac_path_GREP and select it if it is found. 3766 # Check for GNU $ac_path_GREP 3767 case `"$ac_path_GREP" --version 2>&1` in 3768 *GNU*) 3769 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3770 *) 3771 ac_count=0 3772 printf %s 0123456789 >"conftest.in" 3773 while : 3774 do 3775 cat "conftest.in" "conftest.in" >"conftest.tmp" 3776 mv "conftest.tmp" "conftest.in" 3777 cp "conftest.in" "conftest.nl" 3778 printf "%s\n" 'GREP' >> "conftest.nl" 3779 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3780 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3781 as_fn_arith $ac_count + 1 && ac_count=$as_val 3782 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3783 # Best one so far, save it but keep looking for a better one 3784 ac_cv_path_GREP="$ac_path_GREP" 3785 ac_path_GREP_max=$ac_count 3786 fi 3787 # 10*(2^10) chars as input seems more than enough 3788 test $ac_count -gt 10 && break 3789 done 3790 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3791 esac 3792 3793 $ac_path_GREP_found && break 3 3794 done 3795 done 3796 done 3797 IFS=$as_save_IFS 3798 if test -z "$ac_cv_path_GREP"; then 3799 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3800 fi 3801 else 3802 ac_cv_path_GREP=$GREP 3803 fi 3804 3805 fi 3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3807 printf "%s\n" "$ac_cv_path_GREP" >&6; } 3808 GREP="$ac_cv_path_GREP" 3809 3810 3811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3812 printf %s "checking for egrep... " >&6; } 3813 if test ${ac_cv_path_EGREP+y} 3814 then : 3815 printf %s "(cached) " >&6 3816 else $as_nop 3817 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3818 then ac_cv_path_EGREP="$GREP -E" 3819 else 3820 if test -z "$EGREP"; then 3821 ac_path_EGREP_found=false 3822 # Loop through the user's path and test for each of PROGNAME-LIST 3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3824 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3825 do 3826 IFS=$as_save_IFS 3827 case $as_dir in #((( 3828 '') as_dir=./ ;; 3829 */) ;; 3830 *) as_dir=$as_dir/ ;; 3831 esac 3832 for ac_prog in egrep 3833 do 3834 for ac_exec_ext in '' $ac_executable_extensions; do 3835 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 3836 as_fn_executable_p "$ac_path_EGREP" || continue 3837 # Check for GNU ac_path_EGREP and select it if it is found. 3838 # Check for GNU $ac_path_EGREP 3839 case `"$ac_path_EGREP" --version 2>&1` in 3840 *GNU*) 3841 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3842 *) 3843 ac_count=0 3844 printf %s 0123456789 >"conftest.in" 3845 while : 3846 do 3847 cat "conftest.in" "conftest.in" >"conftest.tmp" 3848 mv "conftest.tmp" "conftest.in" 3849 cp "conftest.in" "conftest.nl" 3850 printf "%s\n" 'EGREP' >> "conftest.nl" 3851 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3853 as_fn_arith $ac_count + 1 && ac_count=$as_val 3854 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3855 # Best one so far, save it but keep looking for a better one 3856 ac_cv_path_EGREP="$ac_path_EGREP" 3857 ac_path_EGREP_max=$ac_count 3858 fi 3859 # 10*(2^10) chars as input seems more than enough 3860 test $ac_count -gt 10 && break 3861 done 3862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3863 esac 3864 3865 $ac_path_EGREP_found && break 3 3866 done 3867 done 3868 done 3869 IFS=$as_save_IFS 3870 if test -z "$ac_cv_path_EGREP"; then 3871 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3872 fi 3873 else 3874 ac_cv_path_EGREP=$EGREP 3875 fi 3876 3877 fi 3878 fi 3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3880 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 3881 EGREP="$ac_cv_path_EGREP" 3882 3883 3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3885 printf %s "checking for a sed that does not truncate output... " >&6; } 3886 if test ${ac_cv_path_SED+y} 3887 then : 3888 printf %s "(cached) " >&6 3889 else $as_nop 3890 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3891 for ac_i in 1 2 3 4 5 6 7; do 3892 ac_script="$ac_script$as_nl$ac_script" 3893 done 3894 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3895 { ac_script=; unset ac_script;} 3896 if test -z "$SED"; then 3897 ac_path_SED_found=false 3898 # Loop through the user's path and test for each of PROGNAME-LIST 3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3900 for as_dir in $PATH 3901 do 3902 IFS=$as_save_IFS 3903 case $as_dir in #((( 3904 '') as_dir=./ ;; 3905 */) ;; 3906 *) as_dir=$as_dir/ ;; 3907 esac 3908 for ac_prog in sed gsed 3909 do 3910 for ac_exec_ext in '' $ac_executable_extensions; do 3911 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 3912 as_fn_executable_p "$ac_path_SED" || continue 3913 # Check for GNU ac_path_SED and select it if it is found. 3914 # Check for GNU $ac_path_SED 3915 case `"$ac_path_SED" --version 2>&1` in 3916 *GNU*) 3917 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3918 *) 3919 ac_count=0 3920 printf %s 0123456789 >"conftest.in" 3921 while : 3922 do 3923 cat "conftest.in" "conftest.in" >"conftest.tmp" 3924 mv "conftest.tmp" "conftest.in" 3925 cp "conftest.in" "conftest.nl" 3926 printf "%s\n" '' >> "conftest.nl" 3927 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3929 as_fn_arith $ac_count + 1 && ac_count=$as_val 3930 if test $ac_count -gt ${ac_path_SED_max-0}; then 3931 # Best one so far, save it but keep looking for a better one 3932 ac_cv_path_SED="$ac_path_SED" 3933 ac_path_SED_max=$ac_count 3934 fi 3935 # 10*(2^10) chars as input seems more than enough 3936 test $ac_count -gt 10 && break 3937 done 3938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3939 esac 3940 3941 $ac_path_SED_found && break 3 3942 done 3943 done 3944 done 3945 IFS=$as_save_IFS 3946 if test -z "$ac_cv_path_SED"; then 3947 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3948 fi 3949 else 3950 ac_cv_path_SED=$SED 3951 fi 3952 3953 fi 3954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3955 printf "%s\n" "$ac_cv_path_SED" >&6; } 3956 SED="$ac_cv_path_SED" 3957 rm -f conftest.sed 3958 3959 3960 3961 unset gmp_lib_path GMP_CFLAGS GMP_CC 3962 3963 unset dev_version 3964 if $EGREP -q -e '-dev$' $srcdir/VERSION; then 3965 dev_version=1 3966 fi 3967 3968 3969 3970 # Check whether --with-gmp_include was given. 3971 if test ${with_gmp_include+y} 3972 then : 3973 withval=$with_gmp_include; 3974 if test -d "$withval" ; then 3975 local_tmp=`realpath "$withval" 2>/dev/null` 3976 if test "$local_tmp" != "" ; then 3977 if test -d "$local_tmp" ; then 3978 withval="$local_tmp" 3979 else 3980 withval="$withval" 3981 fi 3982 else 3983 case "$withval" in 3984 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 3985 *) withval="$PWD"/"$withval" ;; 3986 esac 3987 fi 3988 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 3989 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 3990 fi 3991 else 3992 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 3993 fi 3994 3995 CPPFLAGS="$CPPFLAGS -I$withval" 3996 fi 3997 3998 3999 4000 # Check whether --with-gmp_lib was given. 4001 if test ${with_gmp_lib+y} 4002 then : 4003 withval=$with_gmp_lib; 4004 4005 if test -d "$withval" ; then 4006 local_tmp=`realpath "$withval" 2>/dev/null` 4007 if test "$local_tmp" != "" ; then 4008 if test -d "$local_tmp" ; then 4009 withval="$local_tmp" 4010 else 4011 withval="$withval" 4012 fi 4013 else 4014 case "$withval" in 4015 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 4016 *) withval="$PWD"/"$withval" ;; 4017 esac 4018 fi 4019 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 4020 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 4021 fi 4022 else 4023 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 4024 fi 4025 4026 LDFLAGS="$LDFLAGS -L$withval" 4027 gmp_lib_path="$withval" 4028 4029 fi 4030 4031 4032 4033 # Check whether --with-gmp was given. 4034 if test ${with_gmp+y} 4035 then : 4036 withval=$with_gmp; 4037 4038 if test -d "$withval" ; then 4039 local_tmp=`realpath "$withval" 2>/dev/null` 4040 if test "$local_tmp" != "" ; then 4041 if test -d "$local_tmp" ; then 4042 withval="$local_tmp" 4043 else 4044 withval="$withval" 4045 fi 4046 else 4047 case "$withval" in 4048 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 4049 *) withval="$PWD"/"$withval" ;; 4050 esac 4051 fi 4052 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 4053 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 4054 fi 4055 else 4056 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 4057 fi 4058 4059 if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then 4060 CPPFLAGS="$CPPFLAGS -I$withval/include" 4061 LDFLAGS="$LDFLAGS -L$withval/lib" 4062 gmp_lib_path="$withval/lib" 4063 else 4064 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4065 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4066 as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously. 4067 See \`config.log' for more details" "$LINENO" 5; } 4068 fi 4069 4070 fi 4071 4072 4073 4074 # Check whether --with-gmp_build was given. 4075 if test ${with_gmp_build+y} 4076 then : 4077 withval=$with_gmp_build; 4078 4079 if test -d "$withval" ; then 4080 local_tmp=`realpath "$withval" 2>/dev/null` 4081 if test "$local_tmp" != "" ; then 4082 if test -d "$local_tmp" ; then 4083 withval="$local_tmp" 4084 else 4085 withval="$withval" 4086 fi 4087 else 4088 case "$withval" in 4089 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 4090 *) withval="$PWD"/"$withval" ;; 4091 esac 4092 fi 4093 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 4094 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 4095 fi 4096 else 4097 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 4098 fi 4099 4100 if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then 4101 CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune" 4102 LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune" 4103 gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune" 4104 if test -r $withval/Makefile ; then 4105 GMP_CFLAGS=`$SED -n 's/^CFLAGS = //p' $withval/Makefile` 4106 GMP_CC=`$SED -n 's/^CC = //p' $withval/Makefile` 4107 GMP_SOURCE=`$SED -n 's/^srcdir = *//p' $withval/Makefile` 4108 case "$GMP_SOURCE" in 4109 .) GMP_SOURCE="" ;; 4110 /*) ;; 4111 ?*) GMP_SOURCE="$withval/$GMP_SOURCE" ;; 4112 esac 4113 if test -d "$GMP_SOURCE" ; then 4114 CPPFLAGS="$CPPFLAGS -I$GMP_SOURCE -I$GMP_SOURCE/tune" 4115 fi 4116 fi 4117 use_gmp_build=yes 4118 else 4119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4120 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4121 as_fn_error $? "Do not use --with-gmp-build and other --with-gmp options simultaneously. 4122 See \`config.log' for more details" "$LINENO" 5; } 4123 fi 4124 4125 fi 4126 4127 4128 4129 # Check whether --with-mini_gmp was given. 4130 if test ${with_mini_gmp+y} 4131 then : 4132 withval=$with_mini_gmp; 4133 4134 if test -d "$withval" ; then 4135 local_tmp=`realpath "$withval" 2>/dev/null` 4136 if test "$local_tmp" != "" ; then 4137 if test -d "$local_tmp" ; then 4138 withval="$local_tmp" 4139 else 4140 withval="$withval" 4141 fi 4142 else 4143 case "$withval" in 4144 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 4145 *) withval="$PWD"/"$withval" ;; 4146 esac 4147 fi 4148 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 4149 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 4150 fi 4151 else 4152 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 4153 fi 4154 4155 if test -z "$gmp_lib_path" && test -z "$with_gmp_include" && \ 4156 test -z "$use_gmp_build"; then 4157 if test -f "$withval/mini-gmp.c" && test -f "$withval/mini-gmp.h"; then 4158 4159 printf "%s\n" "#define MPFR_USE_MINI_GMP 1" >>confdefs.h 4160 4161 mini_gmp_path="$withval" 4162 4163 else 4164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4165 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4166 as_fn_error $? "mini-gmp.{c,h} not found in $withval 4167 See \`config.log' for more details" "$LINENO" 5; } 4168 fi 4169 else 4170 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4171 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4172 as_fn_error $? "Do not use --with-mini-gmp and other --with-gmp options simultaneously. 4173 See \`config.log' for more details" "$LINENO" 5; } 4174 fi 4175 4176 fi 4177 4178 4179 4180 # Check whether --with-mulhigh_size was given. 4181 if test ${with_mulhigh_size+y} 4182 then : 4183 withval=$with_mulhigh_size; 4184 printf "%s\n" "#define MPFR_MULHIGH_SIZE $withval" >>confdefs.h 4185 4186 fi 4187 4188 4189 # Check whether --enable-gmp-internals was given. 4190 if test ${enable_gmp_internals+y} 4191 then : 4192 enableval=$enable_gmp_internals; case $enableval in 4193 yes) 4194 printf "%s\n" "#define WANT_GMP_INTERNALS 1" >>confdefs.h 4195 ;; 4196 no) ;; 4197 *) as_fn_error $? "bad value for --enable-gmp-internals: yes or no" "$LINENO" 5 ;; 4198 esac 4199 fi 4200 4201 4202 # Check whether --enable-assert was given. 4203 if test ${enable_assert+y} 4204 then : 4205 enableval=$enable_assert; case $enableval in 4206 yes) 4207 printf "%s\n" "#define MPFR_WANT_ASSERT 1" >>confdefs.h 4208 ;; 4209 none) 4210 printf "%s\n" "#define MPFR_WANT_ASSERT -1" >>confdefs.h 4211 ;; 4212 no) ;; 4213 full) 4214 printf "%s\n" "#define MPFR_WANT_ASSERT 2" >>confdefs.h 4215 ;; 4216 *) as_fn_error $? "bad value for --enable-assert: yes, no, none or full" "$LINENO" 5 ;; 4217 esac 4218 fi 4219 4220 4221 # Check whether --enable-logging was given. 4222 if test ${enable_logging+y} 4223 then : 4224 enableval=$enable_logging; case $enableval in 4225 yes) 4226 printf "%s\n" "#define MPFR_USE_LOGGING 1" >>confdefs.h 4227 ;; 4228 no) ;; 4229 *) as_fn_error $? "bad value for --enable-logging: yes or no" "$LINENO" 5 ;; 4230 esac 4231 fi 4232 4233 4234 # Check whether --enable-thread-safe was given. 4235 if test ${enable_thread_safe+y} 4236 then : 4237 enableval=$enable_thread_safe; case $enableval in 4238 yes) ;; 4239 no) ;; 4240 *) as_fn_error $? "bad value for --enable-thread-safe: yes or no" "$LINENO" 5 ;; 4241 esac 4242 fi 4243 4244 4245 # Check whether --enable-shared-cache was given. 4246 if test ${enable_shared_cache+y} 4247 then : 4248 enableval=$enable_shared_cache; case $enableval in 4249 yes) 4250 4251 printf "%s\n" "#define MPFR_WANT_SHARED_CACHE 1" >>confdefs.h 4252 ;; 4253 no) ;; 4254 *) as_fn_error $? "bad value for --enable-shared-cache: yes or no" "$LINENO" 5 ;; 4255 esac 4256 fi 4257 4258 4259 # Check whether --enable-warnings was given. 4260 if test ${enable_warnings+y} 4261 then : 4262 enableval=$enable_warnings; case $enableval in 4263 yes) 4264 printf "%s\n" "#define MPFR_USE_WARNINGS 1" >>confdefs.h 4265 ;; 4266 no) ;; 4267 *) as_fn_error $? "bad value for --enable-warnings: yes or no" "$LINENO" 5 ;; 4268 esac 4269 fi 4270 4271 4272 # Check whether --enable-tests-timeout was given. 4273 if test ${enable_tests_timeout+y} 4274 then : 4275 enableval=$enable_tests_timeout; case $enableval in 4276 no) ;; 4277 yes) ;; 4278 [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9]) 4279 4280 printf "%s\n" "#define MPFR_TESTS_TIMEOUT $enableval" >>confdefs.h 4281 ;; 4282 *) as_fn_error $? "bad value for --enable-tests-timeout" "$LINENO" 5 ;; 4283 esac 4284 fi 4285 4286 4287 # Check whether --enable-tune-for-coverage was given. 4288 if test ${enable_tune_for_coverage+y} 4289 then : 4290 enableval=$enable_tune_for_coverage; case $enableval in 4291 no) ;; 4292 yes) 4293 printf "%s\n" "#define MPFR_TUNE_COVERAGE 1" >>confdefs.h 4294 ;; 4295 *) as_fn_error $? "bad value for --enable-tune-for-coverage" "$LINENO" 5 ;; 4296 esac 4297 fi 4298 4299 4300 # Check whether --enable-decimal-float was given. 4301 if test ${enable_decimal_float+y} 4302 then : 4303 enableval=$enable_decimal_float; case $enableval in 4304 yes|no|auto|bid|dpd|generic) ;; 4305 *) as_fn_error $? "bad value for --enable-decimal-float" "$LINENO" 5 ;; 4306 esac 4307 fi 4308 4309 4310 # Check whether --enable-float128 was given. 4311 if test ${enable_float128+y} 4312 then : 4313 enableval=$enable_float128; case $enableval in 4314 yes) ;; 4315 no) ;; 4316 *) as_fn_error $? "bad value for --enable-float128: yes or no" "$LINENO" 5 ;; 4317 esac 4318 fi 4319 4320 4321 # Check whether --enable-debug-prediction was given. 4322 if test ${enable_debug_prediction+y} 4323 then : 4324 enableval=$enable_debug_prediction; case $enableval in 4325 yes) if test "$enable_shared" != no; then 4326 as_fn_error $? "--enable-debug-prediction can only work in static mode (--disable-shared)" "$LINENO" 5 4327 fi 4328 4329 printf "%s\n" "#define MPFR_DEBUG_PREDICTION 1" >>confdefs.h 4330 ;; 4331 no) ;; 4332 *) as_fn_error $? "bad value for --enable-debug-prediction: yes or no" "$LINENO" 5 ;; 4333 esac 4334 fi 4335 4336 4337 # Check whether --enable-lto was given. 4338 if test ${enable_lto+y} 4339 then : 4340 enableval=$enable_lto; case $enableval in 4341 yes) if test "$enable_shared" != "no"; then 4342 as_fn_error $? "--enable-lto can only work in static mode (--disable-shared)" "$LINENO" 5 4343 fi 4344 enable_lto=yes 4345 ;; 4346 no) ;; 4347 *) as_fn_error $? "bad value for --enable-lto: yes or no" "$LINENO" 5 ;; 4348 esac 4349 fi 4350 4351 4352 # Check whether --enable-formally-proven-code was given. 4353 if test ${enable_formally_proven_code+y} 4354 then : 4355 enableval=$enable_formally_proven_code; case $enableval in 4356 yes) 4357 printf "%s\n" "#define MPFR_WANT_PROVEN_CODE 1" >>confdefs.h 4358 ;; 4359 no) ;; 4360 *) as_fn_error $? "bad value for --enable-formally-proven-code: yes or no" "$LINENO" 5 ;; 4361 esac 4362 fi 4363 4364 4365 if test -n "$mini_gmp_path"; then 4366 MINI_GMP_TRUE= 4367 MINI_GMP_FALSE='#' 4368 else 4369 MINI_GMP_TRUE='#' 4370 MINI_GMP_FALSE= 4371 fi 4372 4373 4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether configure options are compatible" >&5 4375 printf %s "checking whether configure options are compatible... " >&6; } 4376 if test "$enable_logging" = yes; then 4377 if test "$enable_thread_safe" = yes; then 4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4379 printf "%s\n" "no" >&6; } 4380 as_fn_error $? "enable either logging or thread-safe, not both" "$LINENO" 5 4381 fi 4382 if test "$enable_shared_cache" = yes; then 4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4384 printf "%s\n" "no" >&6; } 4385 as_fn_error $? "shared cache does not work with logging support" "$LINENO" 5 4386 fi 4387 enable_thread_safe=no 4388 fi 4389 if test "$enable_shared_cache" = yes; then 4390 if test "$enable_thread_safe" = no; then 4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4392 printf "%s\n" "no" >&6; } 4393 as_fn_error $? "shared cache needs thread-safe support" "$LINENO" 5 4394 fi 4395 enable_thread_safe=yes 4396 fi 4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4398 printf "%s\n" "yes" >&6; } 4399 4400 4401 4402 4403 4404 4405 if test -z "$user_redefine_cc" && \ 4406 test "$cross_compiling" != yes && \ 4407 test "${with_mini_gmp+set}" != set ; then 4408 4409 if test -z "$GMP_CC$GMP_CFLAGS" ; then 4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5 4411 printf %s "checking for CC and CFLAGS in gmp.h... " >&6; } 4412 GMP_CC=__GMP_CC 4413 GMP_CFLAGS=__GMP_CFLAGS 4414 # /lib/cpp under Solaris doesn't support some environment variables 4415 # used by GCC, such as C_INCLUDE_PATH. If the user has set up such 4416 # environment variables, he probably wants to use them. So, let us 4417 # prefer cpp and gcc to /lib/cpp. However, note that this won't 4418 # work if GCC has been installed with versioned names only (e.g. 4419 # with cpp-5 and gcc-5). 4420 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" 4421 do 4422 # Get CC 4423 echo "#include \"gmp.h\"" > conftest.c 4424 echo "MPFR_OPTION __GMP_CC" >> conftest.c 4425 $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt 4426 test $? -ne 0 && continue 4427 GMP_CC=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'` 4428 # Get CFLAGS 4429 echo "#include \"gmp.h\"" > conftest.c 4430 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c 4431 $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt 4432 test $? -ne 0 && continue 4433 GMP_CFLAGS=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/[ "]-pedantic[ "]/ /g;s/MPFR_OPTION //g;s/ *" *//g'` 4434 break 4435 done 4436 rm -f conftest* 4437 if test "x$GMP_CC" = "x__GMP_CC" || test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" ; then 4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 4439 printf "%s\n" "failed" >&6; } 4440 GMP_CFLAGS= 4441 GMP_CC= 4442 else 4443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5 4444 printf "%s\n" "CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; } 4445 fi 4446 fi 4447 4448 if test -n "$GMP_CC$GMP_CFLAGS" ; then 4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5 4450 printf %s "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; } 4451 echo "int main (void) { return 0; }" > conftest.c 4452 if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then 4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4454 printf "%s\n" "yes" >&6; } 4455 CFLAGS=$GMP_CFLAGS 4456 CC=$GMP_CC 4457 else 4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4459 printf "%s\n" "no" >&6; } 4460 fi 4461 rm -f conftest* 4462 fi 4463 4464 fi 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 ac_ext=c 4477 ac_cpp='$CPP $CPPFLAGS' 4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4480 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4481 if test -n "$ac_tool_prefix"; then 4482 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4483 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4485 printf %s "checking for $ac_word... " >&6; } 4486 if test ${ac_cv_prog_CC+y} 4487 then : 4488 printf %s "(cached) " >&6 4489 else $as_nop 4490 if test -n "$CC"; then 4491 ac_cv_prog_CC="$CC" # Let the user override the test. 4492 else 4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4494 for as_dir in $PATH 4495 do 4496 IFS=$as_save_IFS 4497 case $as_dir in #((( 4498 '') as_dir=./ ;; 4499 */) ;; 4500 *) as_dir=$as_dir/ ;; 4501 esac 4502 for ac_exec_ext in '' $ac_executable_extensions; do 4503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4504 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4506 break 2 4507 fi 4508 done 4509 done 4510 IFS=$as_save_IFS 4511 4512 fi 4513 fi 4514 CC=$ac_cv_prog_CC 4515 if test -n "$CC"; then 4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4517 printf "%s\n" "$CC" >&6; } 4518 else 4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4520 printf "%s\n" "no" >&6; } 4521 fi 4522 4523 4524 fi 4525 if test -z "$ac_cv_prog_CC"; then 4526 ac_ct_CC=$CC 4527 # Extract the first word of "gcc", so it can be a program name with args. 4528 set dummy gcc; ac_word=$2 4529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4530 printf %s "checking for $ac_word... " >&6; } 4531 if test ${ac_cv_prog_ac_ct_CC+y} 4532 then : 4533 printf %s "(cached) " >&6 4534 else $as_nop 4535 if test -n "$ac_ct_CC"; then 4536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4537 else 4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4539 for as_dir in $PATH 4540 do 4541 IFS=$as_save_IFS 4542 case $as_dir in #((( 4543 '') as_dir=./ ;; 4544 */) ;; 4545 *) as_dir=$as_dir/ ;; 4546 esac 4547 for ac_exec_ext in '' $ac_executable_extensions; do 4548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4549 ac_cv_prog_ac_ct_CC="gcc" 4550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4551 break 2 4552 fi 4553 done 4554 done 4555 IFS=$as_save_IFS 4556 4557 fi 4558 fi 4559 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4560 if test -n "$ac_ct_CC"; then 4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4562 printf "%s\n" "$ac_ct_CC" >&6; } 4563 else 4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4565 printf "%s\n" "no" >&6; } 4566 fi 4567 4568 if test "x$ac_ct_CC" = x; then 4569 CC="" 4570 else 4571 case $cross_compiling:$ac_tool_warned in 4572 yes:) 4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4574 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4575 ac_tool_warned=yes ;; 4576 esac 4577 CC=$ac_ct_CC 4578 fi 4579 else 4580 CC="$ac_cv_prog_CC" 4581 fi 4582 4583 if test -z "$CC"; then 4584 if test -n "$ac_tool_prefix"; then 4585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4586 set dummy ${ac_tool_prefix}cc; ac_word=$2 4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4588 printf %s "checking for $ac_word... " >&6; } 4589 if test ${ac_cv_prog_CC+y} 4590 then : 4591 printf %s "(cached) " >&6 4592 else $as_nop 4593 if test -n "$CC"; then 4594 ac_cv_prog_CC="$CC" # Let the user override the test. 4595 else 4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4597 for as_dir in $PATH 4598 do 4599 IFS=$as_save_IFS 4600 case $as_dir in #((( 4601 '') as_dir=./ ;; 4602 */) ;; 4603 *) as_dir=$as_dir/ ;; 4604 esac 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4607 ac_cv_prog_CC="${ac_tool_prefix}cc" 4608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4609 break 2 4610 fi 4611 done 4612 done 4613 IFS=$as_save_IFS 4614 4615 fi 4616 fi 4617 CC=$ac_cv_prog_CC 4618 if test -n "$CC"; then 4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4620 printf "%s\n" "$CC" >&6; } 4621 else 4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4623 printf "%s\n" "no" >&6; } 4624 fi 4625 4626 4627 fi 4628 fi 4629 if test -z "$CC"; then 4630 # Extract the first word of "cc", so it can be a program name with args. 4631 set dummy cc; ac_word=$2 4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4633 printf %s "checking for $ac_word... " >&6; } 4634 if test ${ac_cv_prog_CC+y} 4635 then : 4636 printf %s "(cached) " >&6 4637 else $as_nop 4638 if test -n "$CC"; then 4639 ac_cv_prog_CC="$CC" # Let the user override the test. 4640 else 4641 ac_prog_rejected=no 4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4643 for as_dir in $PATH 4644 do 4645 IFS=$as_save_IFS 4646 case $as_dir in #((( 4647 '') as_dir=./ ;; 4648 */) ;; 4649 *) as_dir=$as_dir/ ;; 4650 esac 4651 for ac_exec_ext in '' $ac_executable_extensions; do 4652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4653 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4654 ac_prog_rejected=yes 4655 continue 4656 fi 4657 ac_cv_prog_CC="cc" 4658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4659 break 2 4660 fi 4661 done 4662 done 4663 IFS=$as_save_IFS 4664 4665 if test $ac_prog_rejected = yes; then 4666 # We found a bogon in the path, so make sure we never use it. 4667 set dummy $ac_cv_prog_CC 4668 shift 4669 if test $# != 0; then 4670 # We chose a different compiler from the bogus one. 4671 # However, it has the same basename, so the bogon will be chosen 4672 # first if we set CC to just the basename; use the full file name. 4673 shift 4674 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4675 fi 4676 fi 4677 fi 4678 fi 4679 CC=$ac_cv_prog_CC 4680 if test -n "$CC"; then 4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4682 printf "%s\n" "$CC" >&6; } 4683 else 4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4685 printf "%s\n" "no" >&6; } 4686 fi 4687 4688 4689 fi 4690 if test -z "$CC"; then 4691 if test -n "$ac_tool_prefix"; then 4692 for ac_prog in cl.exe 4693 do 4694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4697 printf %s "checking for $ac_word... " >&6; } 4698 if test ${ac_cv_prog_CC+y} 4699 then : 4700 printf %s "(cached) " >&6 4701 else $as_nop 4702 if test -n "$CC"; then 4703 ac_cv_prog_CC="$CC" # Let the user override the test. 4704 else 4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4706 for as_dir in $PATH 4707 do 4708 IFS=$as_save_IFS 4709 case $as_dir in #((( 4710 '') as_dir=./ ;; 4711 */) ;; 4712 *) as_dir=$as_dir/ ;; 4713 esac 4714 for ac_exec_ext in '' $ac_executable_extensions; do 4715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4716 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4718 break 2 4719 fi 4720 done 4721 done 4722 IFS=$as_save_IFS 4723 4724 fi 4725 fi 4726 CC=$ac_cv_prog_CC 4727 if test -n "$CC"; then 4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4729 printf "%s\n" "$CC" >&6; } 4730 else 4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4732 printf "%s\n" "no" >&6; } 4733 fi 4734 4735 4736 test -n "$CC" && break 4737 done 4738 fi 4739 if test -z "$CC"; then 4740 ac_ct_CC=$CC 4741 for ac_prog in cl.exe 4742 do 4743 # Extract the first word of "$ac_prog", so it can be a program name with args. 4744 set dummy $ac_prog; ac_word=$2 4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4746 printf %s "checking for $ac_word... " >&6; } 4747 if test ${ac_cv_prog_ac_ct_CC+y} 4748 then : 4749 printf %s "(cached) " >&6 4750 else $as_nop 4751 if test -n "$ac_ct_CC"; then 4752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4753 else 4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4755 for as_dir in $PATH 4756 do 4757 IFS=$as_save_IFS 4758 case $as_dir in #((( 4759 '') as_dir=./ ;; 4760 */) ;; 4761 *) as_dir=$as_dir/ ;; 4762 esac 4763 for ac_exec_ext in '' $ac_executable_extensions; do 4764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4765 ac_cv_prog_ac_ct_CC="$ac_prog" 4766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4767 break 2 4768 fi 4769 done 4770 done 4771 IFS=$as_save_IFS 4772 4773 fi 4774 fi 4775 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4776 if test -n "$ac_ct_CC"; then 4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4778 printf "%s\n" "$ac_ct_CC" >&6; } 4779 else 4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4781 printf "%s\n" "no" >&6; } 4782 fi 4783 4784 4785 test -n "$ac_ct_CC" && break 4786 done 4787 4788 if test "x$ac_ct_CC" = x; then 4789 CC="" 4790 else 4791 case $cross_compiling:$ac_tool_warned in 4792 yes:) 4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4794 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4795 ac_tool_warned=yes ;; 4796 esac 4797 CC=$ac_ct_CC 4798 fi 4799 fi 4800 4801 fi 4802 if test -z "$CC"; then 4803 if test -n "$ac_tool_prefix"; then 4804 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4805 set dummy ${ac_tool_prefix}clang; ac_word=$2 4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4807 printf %s "checking for $ac_word... " >&6; } 4808 if test ${ac_cv_prog_CC+y} 4809 then : 4810 printf %s "(cached) " >&6 4811 else $as_nop 4812 if test -n "$CC"; then 4813 ac_cv_prog_CC="$CC" # Let the user override the test. 4814 else 4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4816 for as_dir in $PATH 4817 do 4818 IFS=$as_save_IFS 4819 case $as_dir in #((( 4820 '') as_dir=./ ;; 4821 */) ;; 4822 *) as_dir=$as_dir/ ;; 4823 esac 4824 for ac_exec_ext in '' $ac_executable_extensions; do 4825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4826 ac_cv_prog_CC="${ac_tool_prefix}clang" 4827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4828 break 2 4829 fi 4830 done 4831 done 4832 IFS=$as_save_IFS 4833 4834 fi 4835 fi 4836 CC=$ac_cv_prog_CC 4837 if test -n "$CC"; then 4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4839 printf "%s\n" "$CC" >&6; } 4840 else 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4842 printf "%s\n" "no" >&6; } 4843 fi 4844 4845 4846 fi 4847 if test -z "$ac_cv_prog_CC"; then 4848 ac_ct_CC=$CC 4849 # Extract the first word of "clang", so it can be a program name with args. 4850 set dummy clang; ac_word=$2 4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4852 printf %s "checking for $ac_word... " >&6; } 4853 if test ${ac_cv_prog_ac_ct_CC+y} 4854 then : 4855 printf %s "(cached) " >&6 4856 else $as_nop 4857 if test -n "$ac_ct_CC"; then 4858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4859 else 4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4861 for as_dir in $PATH 4862 do 4863 IFS=$as_save_IFS 4864 case $as_dir in #((( 4865 '') as_dir=./ ;; 4866 */) ;; 4867 *) as_dir=$as_dir/ ;; 4868 esac 4869 for ac_exec_ext in '' $ac_executable_extensions; do 4870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4871 ac_cv_prog_ac_ct_CC="clang" 4872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4873 break 2 4874 fi 4875 done 4876 done 4877 IFS=$as_save_IFS 4878 4879 fi 4880 fi 4881 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4882 if test -n "$ac_ct_CC"; then 4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4884 printf "%s\n" "$ac_ct_CC" >&6; } 4885 else 4886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4887 printf "%s\n" "no" >&6; } 4888 fi 4889 4890 if test "x$ac_ct_CC" = x; then 4891 CC="" 4892 else 4893 case $cross_compiling:$ac_tool_warned in 4894 yes:) 4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4896 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4897 ac_tool_warned=yes ;; 4898 esac 4899 CC=$ac_ct_CC 4900 fi 4901 else 4902 CC="$ac_cv_prog_CC" 4903 fi 4904 4905 fi 4906 4907 4908 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4909 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4910 as_fn_error $? "no acceptable C compiler found in \$PATH 4911 See \`config.log' for more details" "$LINENO" 5; } 4912 4913 # Provide some information about the compiler. 4914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4915 set X $ac_compile 4916 ac_compiler=$2 4917 for ac_option in --version -v -V -qversion -version; do 4918 { { ac_try="$ac_compiler $ac_option >&5" 4919 case "(($ac_try" in 4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4921 *) ac_try_echo=$ac_try;; 4922 esac 4923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4924 printf "%s\n" "$ac_try_echo"; } >&5 4925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4926 ac_status=$? 4927 if test -s conftest.err; then 4928 sed '10a\ 4929 ... rest of stderr output deleted ... 4930 10q' conftest.err >conftest.er1 4931 cat conftest.er1 >&5 4932 fi 4933 rm -f conftest.er1 conftest.err 4934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4935 test $ac_status = 0; } 4936 done 4937 4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4939 /* end confdefs.h. */ 4940 4941 int 4942 main (void) 4943 { 4944 4945 ; 4946 return 0; 4947 } 4948 _ACEOF 4949 ac_clean_files_save=$ac_clean_files 4950 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4951 # Try to create an executable without -o first, disregard a.out. 4952 # It will help us diagnose broken compilers, and finding out an intuition 4953 # of exeext. 4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4955 printf %s "checking whether the C compiler works... " >&6; } 4956 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4957 4958 # The possible output files: 4959 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4960 4961 ac_rmfiles= 4962 for ac_file in $ac_files 4963 do 4964 case $ac_file in 4965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4966 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4967 esac 4968 done 4969 rm -f $ac_rmfiles 4970 4971 if { { ac_try="$ac_link_default" 4972 case "(($ac_try" in 4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4974 *) ac_try_echo=$ac_try;; 4975 esac 4976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4977 printf "%s\n" "$ac_try_echo"; } >&5 4978 (eval "$ac_link_default") 2>&5 4979 ac_status=$? 4980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4981 test $ac_status = 0; } 4982 then : 4983 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4984 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4985 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4986 # so that the user can short-circuit this test for compilers unknown to 4987 # Autoconf. 4988 for ac_file in $ac_files '' 4989 do 4990 test -f "$ac_file" || continue 4991 case $ac_file in 4992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4993 ;; 4994 [ab].out ) 4995 # We found the default executable, but exeext='' is most 4996 # certainly right. 4997 break;; 4998 *.* ) 4999 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5000 then :; else 5001 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5002 fi 5003 # We set ac_cv_exeext here because the later test for it is not 5004 # safe: cross compilers may not add the suffix if given an `-o' 5005 # argument, so we may need to know it at that point already. 5006 # Even if this section looks crufty: it has the advantage of 5007 # actually working. 5008 break;; 5009 * ) 5010 break;; 5011 esac 5012 done 5013 test "$ac_cv_exeext" = no && ac_cv_exeext= 5014 5015 else $as_nop 5016 ac_file='' 5017 fi 5018 if test -z "$ac_file" 5019 then : 5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5021 printf "%s\n" "no" >&6; } 5022 printf "%s\n" "$as_me: failed program was:" >&5 5023 sed 's/^/| /' conftest.$ac_ext >&5 5024 5025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5026 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5027 as_fn_error 77 "C compiler cannot create executables 5028 See \`config.log' for more details" "$LINENO" 5; } 5029 else $as_nop 5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5031 printf "%s\n" "yes" >&6; } 5032 fi 5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5034 printf %s "checking for C compiler default output file name... " >&6; } 5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5036 printf "%s\n" "$ac_file" >&6; } 5037 ac_exeext=$ac_cv_exeext 5038 5039 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5040 ac_clean_files=$ac_clean_files_save 5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5042 printf %s "checking for suffix of executables... " >&6; } 5043 if { { ac_try="$ac_link" 5044 case "(($ac_try" in 5045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5046 *) ac_try_echo=$ac_try;; 5047 esac 5048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5049 printf "%s\n" "$ac_try_echo"; } >&5 5050 (eval "$ac_link") 2>&5 5051 ac_status=$? 5052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5053 test $ac_status = 0; } 5054 then : 5055 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5057 # work properly (i.e., refer to `conftest.exe'), while it won't with 5058 # `rm'. 5059 for ac_file in conftest.exe conftest conftest.*; do 5060 test -f "$ac_file" || continue 5061 case $ac_file in 5062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5064 break;; 5065 * ) break;; 5066 esac 5067 done 5068 else $as_nop 5069 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5070 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5071 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5072 See \`config.log' for more details" "$LINENO" 5; } 5073 fi 5074 rm -f conftest conftest$ac_cv_exeext 5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5076 printf "%s\n" "$ac_cv_exeext" >&6; } 5077 5078 rm -f conftest.$ac_ext 5079 EXEEXT=$ac_cv_exeext 5080 ac_exeext=$EXEEXT 5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5082 /* end confdefs.h. */ 5083 #include <stdio.h> 5084 int 5085 main (void) 5086 { 5087 FILE *f = fopen ("conftest.out", "w"); 5088 return ferror (f) || fclose (f) != 0; 5089 5090 ; 5091 return 0; 5092 } 5093 _ACEOF 5094 ac_clean_files="$ac_clean_files conftest.out" 5095 # Check that the compiler produces executables we can run. If not, either 5096 # the compiler is broken, or we cross compile. 5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5098 printf %s "checking whether we are cross compiling... " >&6; } 5099 if test "$cross_compiling" != yes; then 5100 { { ac_try="$ac_link" 5101 case "(($ac_try" in 5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5103 *) ac_try_echo=$ac_try;; 5104 esac 5105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5106 printf "%s\n" "$ac_try_echo"; } >&5 5107 (eval "$ac_link") 2>&5 5108 ac_status=$? 5109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5110 test $ac_status = 0; } 5111 if { ac_try='./conftest$ac_cv_exeext' 5112 { { case "(($ac_try" in 5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5114 *) ac_try_echo=$ac_try;; 5115 esac 5116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5117 printf "%s\n" "$ac_try_echo"; } >&5 5118 (eval "$ac_try") 2>&5 5119 ac_status=$? 5120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5121 test $ac_status = 0; }; }; then 5122 cross_compiling=no 5123 else 5124 if test "$cross_compiling" = maybe; then 5125 cross_compiling=yes 5126 else 5127 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5128 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5129 as_fn_error 77 "cannot run C compiled programs. 5130 If you meant to cross compile, use \`--host'. 5131 See \`config.log' for more details" "$LINENO" 5; } 5132 fi 5133 fi 5134 fi 5135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5136 printf "%s\n" "$cross_compiling" >&6; } 5137 5138 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5139 ac_clean_files=$ac_clean_files_save 5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5141 printf %s "checking for suffix of object files... " >&6; } 5142 if test ${ac_cv_objext+y} 5143 then : 5144 printf %s "(cached) " >&6 5145 else $as_nop 5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5147 /* end confdefs.h. */ 5148 5149 int 5150 main (void) 5151 { 5152 5153 ; 5154 return 0; 5155 } 5156 _ACEOF 5157 rm -f conftest.o conftest.obj 5158 if { { ac_try="$ac_compile" 5159 case "(($ac_try" in 5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5161 *) ac_try_echo=$ac_try;; 5162 esac 5163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5164 printf "%s\n" "$ac_try_echo"; } >&5 5165 (eval "$ac_compile") 2>&5 5166 ac_status=$? 5167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5168 test $ac_status = 0; } 5169 then : 5170 for ac_file in conftest.o conftest.obj conftest.*; do 5171 test -f "$ac_file" || continue; 5172 case $ac_file in 5173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5174 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5175 break;; 5176 esac 5177 done 5178 else $as_nop 5179 printf "%s\n" "$as_me: failed program was:" >&5 5180 sed 's/^/| /' conftest.$ac_ext >&5 5181 5182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5183 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5184 as_fn_error $? "cannot compute suffix of object files: cannot compile 5185 See \`config.log' for more details" "$LINENO" 5; } 5186 fi 5187 rm -f conftest.$ac_cv_objext conftest.$ac_ext 5188 fi 5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5190 printf "%s\n" "$ac_cv_objext" >&6; } 5191 OBJEXT=$ac_cv_objext 5192 ac_objext=$OBJEXT 5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5194 printf %s "checking whether the compiler supports GNU C... " >&6; } 5195 if test ${ac_cv_c_compiler_gnu+y} 5196 then : 5197 printf %s "(cached) " >&6 5198 else $as_nop 5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5200 /* end confdefs.h. */ 5201 5202 int 5203 main (void) 5204 { 5205 #ifndef __GNUC__ 5206 choke me 5207 #endif 5208 5209 ; 5210 return 0; 5211 } 5212 _ACEOF 5213 if ac_fn_c_try_compile "$LINENO" 5214 then : 5215 ac_compiler_gnu=yes 5216 else $as_nop 5217 ac_compiler_gnu=no 5218 fi 5219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5220 ac_cv_c_compiler_gnu=$ac_compiler_gnu 5221 5222 fi 5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5224 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5225 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5226 5227 if test $ac_compiler_gnu = yes; then 5228 GCC=yes 5229 else 5230 GCC= 5231 fi 5232 ac_test_CFLAGS=${CFLAGS+y} 5233 ac_save_CFLAGS=$CFLAGS 5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5235 printf %s "checking whether $CC accepts -g... " >&6; } 5236 if test ${ac_cv_prog_cc_g+y} 5237 then : 5238 printf %s "(cached) " >&6 5239 else $as_nop 5240 ac_save_c_werror_flag=$ac_c_werror_flag 5241 ac_c_werror_flag=yes 5242 ac_cv_prog_cc_g=no 5243 CFLAGS="-g" 5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5245 /* end confdefs.h. */ 5246 5247 int 5248 main (void) 5249 { 5250 5251 ; 5252 return 0; 5253 } 5254 _ACEOF 5255 if ac_fn_c_try_compile "$LINENO" 5256 then : 5257 ac_cv_prog_cc_g=yes 5258 else $as_nop 5259 CFLAGS="" 5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5261 /* end confdefs.h. */ 5262 5263 int 5264 main (void) 5265 { 5266 5267 ; 5268 return 0; 5269 } 5270 _ACEOF 5271 if ac_fn_c_try_compile "$LINENO" 5272 then : 5273 5274 else $as_nop 5275 ac_c_werror_flag=$ac_save_c_werror_flag 5276 CFLAGS="-g" 5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5278 /* end confdefs.h. */ 5279 5280 int 5281 main (void) 5282 { 5283 5284 ; 5285 return 0; 5286 } 5287 _ACEOF 5288 if ac_fn_c_try_compile "$LINENO" 5289 then : 5290 ac_cv_prog_cc_g=yes 5291 fi 5292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5293 fi 5294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5295 fi 5296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5297 ac_c_werror_flag=$ac_save_c_werror_flag 5298 fi 5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5300 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5301 if test $ac_test_CFLAGS; then 5302 CFLAGS=$ac_save_CFLAGS 5303 elif test $ac_cv_prog_cc_g = yes; then 5304 if test "$GCC" = yes; then 5305 CFLAGS="-g -O2" 5306 else 5307 CFLAGS="-g" 5308 fi 5309 else 5310 if test "$GCC" = yes; then 5311 CFLAGS="-O2" 5312 else 5313 CFLAGS= 5314 fi 5315 fi 5316 ac_prog_cc_stdc=no 5317 if test x$ac_prog_cc_stdc = xno 5318 then : 5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5320 printf %s "checking for $CC option to enable C11 features... " >&6; } 5321 if test ${ac_cv_prog_cc_c11+y} 5322 then : 5323 printf %s "(cached) " >&6 5324 else $as_nop 5325 ac_cv_prog_cc_c11=no 5326 ac_save_CC=$CC 5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5328 /* end confdefs.h. */ 5329 $ac_c_conftest_c11_program 5330 _ACEOF 5331 for ac_arg in '' -std=gnu11 5332 do 5333 CC="$ac_save_CC $ac_arg" 5334 if ac_fn_c_try_compile "$LINENO" 5335 then : 5336 ac_cv_prog_cc_c11=$ac_arg 5337 fi 5338 rm -f core conftest.err conftest.$ac_objext conftest.beam 5339 test "x$ac_cv_prog_cc_c11" != "xno" && break 5340 done 5341 rm -f conftest.$ac_ext 5342 CC=$ac_save_CC 5343 fi 5344 5345 if test "x$ac_cv_prog_cc_c11" = xno 5346 then : 5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5348 printf "%s\n" "unsupported" >&6; } 5349 else $as_nop 5350 if test "x$ac_cv_prog_cc_c11" = x 5351 then : 5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5353 printf "%s\n" "none needed" >&6; } 5354 else $as_nop 5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5356 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5357 CC="$CC $ac_cv_prog_cc_c11" 5358 fi 5359 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5360 ac_prog_cc_stdc=c11 5361 fi 5362 fi 5363 if test x$ac_prog_cc_stdc = xno 5364 then : 5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5366 printf %s "checking for $CC option to enable C99 features... " >&6; } 5367 if test ${ac_cv_prog_cc_c99+y} 5368 then : 5369 printf %s "(cached) " >&6 5370 else $as_nop 5371 ac_cv_prog_cc_c99=no 5372 ac_save_CC=$CC 5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5374 /* end confdefs.h. */ 5375 $ac_c_conftest_c99_program 5376 _ACEOF 5377 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5378 do 5379 CC="$ac_save_CC $ac_arg" 5380 if ac_fn_c_try_compile "$LINENO" 5381 then : 5382 ac_cv_prog_cc_c99=$ac_arg 5383 fi 5384 rm -f core conftest.err conftest.$ac_objext conftest.beam 5385 test "x$ac_cv_prog_cc_c99" != "xno" && break 5386 done 5387 rm -f conftest.$ac_ext 5388 CC=$ac_save_CC 5389 fi 5390 5391 if test "x$ac_cv_prog_cc_c99" = xno 5392 then : 5393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5394 printf "%s\n" "unsupported" >&6; } 5395 else $as_nop 5396 if test "x$ac_cv_prog_cc_c99" = x 5397 then : 5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5399 printf "%s\n" "none needed" >&6; } 5400 else $as_nop 5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5402 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5403 CC="$CC $ac_cv_prog_cc_c99" 5404 fi 5405 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5406 ac_prog_cc_stdc=c99 5407 fi 5408 fi 5409 if test x$ac_prog_cc_stdc = xno 5410 then : 5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5412 printf %s "checking for $CC option to enable C89 features... " >&6; } 5413 if test ${ac_cv_prog_cc_c89+y} 5414 then : 5415 printf %s "(cached) " >&6 5416 else $as_nop 5417 ac_cv_prog_cc_c89=no 5418 ac_save_CC=$CC 5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5420 /* end confdefs.h. */ 5421 $ac_c_conftest_c89_program 5422 _ACEOF 5423 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5424 do 5425 CC="$ac_save_CC $ac_arg" 5426 if ac_fn_c_try_compile "$LINENO" 5427 then : 5428 ac_cv_prog_cc_c89=$ac_arg 5429 fi 5430 rm -f core conftest.err conftest.$ac_objext conftest.beam 5431 test "x$ac_cv_prog_cc_c89" != "xno" && break 5432 done 5433 rm -f conftest.$ac_ext 5434 CC=$ac_save_CC 5435 fi 5436 5437 if test "x$ac_cv_prog_cc_c89" = xno 5438 then : 5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5440 printf "%s\n" "unsupported" >&6; } 5441 else $as_nop 5442 if test "x$ac_cv_prog_cc_c89" = x 5443 then : 5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5445 printf "%s\n" "none needed" >&6; } 5446 else $as_nop 5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5448 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5449 CC="$CC $ac_cv_prog_cc_c89" 5450 fi 5451 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5452 ac_prog_cc_stdc=c89 5453 fi 5454 fi 5455 5456 ac_ext=c 5457 ac_cpp='$CPP $CPPFLAGS' 5458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5460 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5461 5462 5463 ac_ext=c 5464 ac_cpp='$CPP $CPPFLAGS' 5465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5469 printf %s "checking whether $CC understands -c and -o together... " >&6; } 5470 if test ${am_cv_prog_cc_c_o+y} 5471 then : 5472 printf %s "(cached) " >&6 5473 else $as_nop 5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5475 /* end confdefs.h. */ 5476 5477 int 5478 main (void) 5479 { 5480 5481 ; 5482 return 0; 5483 } 5484 _ACEOF 5485 # Make sure it works both with $CC and with simple cc. 5486 # Following AC_PROG_CC_C_O, we do the test twice because some 5487 # compilers refuse to overwrite an existing .o file with -o, 5488 # though they will create one. 5489 am_cv_prog_cc_c_o=yes 5490 for am_i in 1 2; do 5491 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5492 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5493 ac_status=$? 5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5495 (exit $ac_status); } \ 5496 && test -f conftest2.$ac_objext; then 5497 : OK 5498 else 5499 am_cv_prog_cc_c_o=no 5500 break 5501 fi 5502 done 5503 rm -f core conftest* 5504 unset am_i 5505 fi 5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5507 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5508 if test "$am_cv_prog_cc_c_o" != yes; then 5509 # Losing compiler, so override with the script. 5510 # FIXME: It is wrong to rewrite CC. 5511 # But if we don't then we get into trouble of one sort or another. 5512 # A longer-term fix would be to have automake use am__CC in this case, 5513 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5514 CC="$am_aux_dir/compile $CC" 5515 fi 5516 ac_ext=c 5517 ac_cpp='$CPP $CPPFLAGS' 5518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5520 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5521 5522 DEPDIR="${am__leading_dot}deps" 5523 5524 ac_config_commands="$ac_config_commands depfiles" 5525 5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 5527 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 5528 cat > confinc.mk << 'END' 5529 am__doit: 5530 @echo this is the am__doit target >confinc.out 5531 .PHONY: am__doit 5532 END 5533 am__include="#" 5534 am__quote= 5535 # BSD make does it like this. 5536 echo '.include "confinc.mk" # ignored' > confmf.BSD 5537 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 5538 echo 'include confinc.mk # ignored' > confmf.GNU 5539 _am_result=no 5540 for s in GNU BSD; do 5541 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 5542 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 5543 ac_status=$? 5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5545 (exit $ac_status); } 5546 case $?:`cat confinc.out 2>/dev/null` in #( 5547 '0:this is the am__doit target') : 5548 case $s in #( 5549 BSD) : 5550 am__include='.include' am__quote='"' ;; #( 5551 *) : 5552 am__include='include' am__quote='' ;; 5553 esac ;; #( 5554 *) : 5555 ;; 5556 esac 5557 if test "$am__include" != "#"; then 5558 _am_result="yes ($s style)" 5559 break 5560 fi 5561 done 5562 rm -f confinc.* confmf.* 5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5564 printf "%s\n" "${_am_result}" >&6; } 5565 5566 # Check whether --enable-dependency-tracking was given. 5567 if test ${enable_dependency_tracking+y} 5568 then : 5569 enableval=$enable_dependency_tracking; 5570 fi 5571 5572 if test "x$enable_dependency_tracking" != xno; then 5573 am_depcomp="$ac_aux_dir/depcomp" 5574 AMDEPBACKSLASH='\' 5575 am__nodep='_no' 5576 fi 5577 if test "x$enable_dependency_tracking" != xno; then 5578 AMDEP_TRUE= 5579 AMDEP_FALSE='#' 5580 else 5581 AMDEP_TRUE='#' 5582 AMDEP_FALSE= 5583 fi 5584 5585 5586 5587 depcc="$CC" am_compiler_list= 5588 5589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5590 printf %s "checking dependency style of $depcc... " >&6; } 5591 if test ${am_cv_CC_dependencies_compiler_type+y} 5592 then : 5593 printf %s "(cached) " >&6 5594 else $as_nop 5595 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5596 # We make a subdir and do the tests there. Otherwise we can end up 5597 # making bogus files that we don't know about and never remove. For 5598 # instance it was reported that on HP-UX the gcc test will end up 5599 # making a dummy file named 'D' -- because '-MD' means "put the output 5600 # in D". 5601 rm -rf conftest.dir 5602 mkdir conftest.dir 5603 # Copy depcomp to subdir because otherwise we won't find it if we're 5604 # using a relative directory. 5605 cp "$am_depcomp" conftest.dir 5606 cd conftest.dir 5607 # We will build objects and dependencies in a subdirectory because 5608 # it helps to detect inapplicable dependency modes. For instance 5609 # both Tru64's cc and ICC support -MD to output dependencies as a 5610 # side effect of compilation, but ICC will put the dependencies in 5611 # the current directory while Tru64 will put them in the object 5612 # directory. 5613 mkdir sub 5614 5615 am_cv_CC_dependencies_compiler_type=none 5616 if test "$am_compiler_list" = ""; then 5617 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5618 fi 5619 am__universal=false 5620 case " $depcc " in #( 5621 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5622 esac 5623 5624 for depmode in $am_compiler_list; do 5625 # Setup a source with many dependencies, because some compilers 5626 # like to wrap large dependency lists on column 80 (with \), and 5627 # we should not choose a depcomp mode which is confused by this. 5628 # 5629 # We need to recreate these files for each test, as the compiler may 5630 # overwrite some of them when testing with obscure command lines. 5631 # This happens at least with the AIX C compiler. 5632 : > sub/conftest.c 5633 for i in 1 2 3 4 5 6; do 5634 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5635 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5636 # Solaris 10 /bin/sh. 5637 echo '/* dummy */' > sub/conftst$i.h 5638 done 5639 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5640 5641 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5642 # mode. It turns out that the SunPro C++ compiler does not properly 5643 # handle '-M -o', and we need to detect this. Also, some Intel 5644 # versions had trouble with output in subdirs. 5645 am__obj=sub/conftest.${OBJEXT-o} 5646 am__minus_obj="-o $am__obj" 5647 case $depmode in 5648 gcc) 5649 # This depmode causes a compiler race in universal mode. 5650 test "$am__universal" = false || continue 5651 ;; 5652 nosideeffect) 5653 # After this tag, mechanisms are not by side-effect, so they'll 5654 # only be used when explicitly requested. 5655 if test "x$enable_dependency_tracking" = xyes; then 5656 continue 5657 else 5658 break 5659 fi 5660 ;; 5661 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5662 # This compiler won't grok '-c -o', but also, the minuso test has 5663 # not run yet. These depmodes are late enough in the game, and 5664 # so weak that their functioning should not be impacted. 5665 am__obj=conftest.${OBJEXT-o} 5666 am__minus_obj= 5667 ;; 5668 none) break ;; 5669 esac 5670 if depmode=$depmode \ 5671 source=sub/conftest.c object=$am__obj \ 5672 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5673 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5674 >/dev/null 2>conftest.err && 5675 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5676 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5677 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5678 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5679 # icc doesn't choke on unknown options, it will just issue warnings 5680 # or remarks (even with -Werror). So we grep stderr for any message 5681 # that says an option was ignored or not supported. 5682 # When given -MP, icc 7.0 and 7.1 complain thusly: 5683 # icc: Command line warning: ignoring option '-M'; no argument required 5684 # The diagnosis changed in icc 8.0: 5685 # icc: Command line remark: option '-MP' not supported 5686 if (grep 'ignoring option' conftest.err || 5687 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5688 am_cv_CC_dependencies_compiler_type=$depmode 5689 break 5690 fi 5691 fi 5692 done 5693 5694 cd .. 5695 rm -rf conftest.dir 5696 else 5697 am_cv_CC_dependencies_compiler_type=none 5698 fi 5699 5700 fi 5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5702 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5703 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5704 5705 if 5706 test "x$enable_dependency_tracking" != xno \ 5707 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5708 am__fastdepCC_TRUE= 5709 am__fastdepCC_FALSE='#' 5710 else 5711 am__fastdepCC_TRUE='#' 5712 am__fastdepCC_FALSE= 5713 fi 5714 5715 5716 ac_ext=c 5717 ac_cpp='$CPP $CPPFLAGS' 5718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5720 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5722 printf %s "checking how to run the C preprocessor... " >&6; } 5723 # On Suns, sometimes $CPP names a directory. 5724 if test -n "$CPP" && test -d "$CPP"; then 5725 CPP= 5726 fi 5727 if test -z "$CPP"; then 5728 if test ${ac_cv_prog_CPP+y} 5729 then : 5730 printf %s "(cached) " >&6 5731 else $as_nop 5732 # Double quotes because $CC needs to be expanded 5733 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5734 do 5735 ac_preproc_ok=false 5736 for ac_c_preproc_warn_flag in '' yes 5737 do 5738 # Use a header file that comes with gcc, so configuring glibc 5739 # with a fresh cross-compiler works. 5740 # On the NeXT, cc -E runs the code through the compiler's parser, 5741 # not just through cpp. "Syntax error" is here to catch this case. 5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5743 /* end confdefs.h. */ 5744 #include <limits.h> 5745 Syntax error 5746 _ACEOF 5747 if ac_fn_c_try_cpp "$LINENO" 5748 then : 5749 5750 else $as_nop 5751 # Broken: fails on valid input. 5752 continue 5753 fi 5754 rm -f conftest.err conftest.i conftest.$ac_ext 5755 5756 # OK, works on sane cases. Now check whether nonexistent headers 5757 # can be detected and how. 5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5759 /* end confdefs.h. */ 5760 #include <ac_nonexistent.h> 5761 _ACEOF 5762 if ac_fn_c_try_cpp "$LINENO" 5763 then : 5764 # Broken: success on invalid input. 5765 continue 5766 else $as_nop 5767 # Passes both tests. 5768 ac_preproc_ok=: 5769 break 5770 fi 5771 rm -f conftest.err conftest.i conftest.$ac_ext 5772 5773 done 5774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5775 rm -f conftest.i conftest.err conftest.$ac_ext 5776 if $ac_preproc_ok 5777 then : 5778 break 5779 fi 5780 5781 done 5782 ac_cv_prog_CPP=$CPP 5783 5784 fi 5785 CPP=$ac_cv_prog_CPP 5786 else 5787 ac_cv_prog_CPP=$CPP 5788 fi 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5790 printf "%s\n" "$CPP" >&6; } 5791 ac_preproc_ok=false 5792 for ac_c_preproc_warn_flag in '' yes 5793 do 5794 # Use a header file that comes with gcc, so configuring glibc 5795 # with a fresh cross-compiler works. 5796 # On the NeXT, cc -E runs the code through the compiler's parser, 5797 # not just through cpp. "Syntax error" is here to catch this case. 5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5799 /* end confdefs.h. */ 5800 #include <limits.h> 5801 Syntax error 5802 _ACEOF 5803 if ac_fn_c_try_cpp "$LINENO" 5804 then : 5805 5806 else $as_nop 5807 # Broken: fails on valid input. 5808 continue 5809 fi 5810 rm -f conftest.err conftest.i conftest.$ac_ext 5811 5812 # OK, works on sane cases. Now check whether nonexistent headers 5813 # can be detected and how. 5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5815 /* end confdefs.h. */ 5816 #include <ac_nonexistent.h> 5817 _ACEOF 5818 if ac_fn_c_try_cpp "$LINENO" 5819 then : 5820 # Broken: success on invalid input. 5821 continue 5822 else $as_nop 5823 # Passes both tests. 5824 ac_preproc_ok=: 5825 break 5826 fi 5827 rm -f conftest.err conftest.i conftest.$ac_ext 5828 5829 done 5830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5831 rm -f conftest.i conftest.err conftest.$ac_ext 5832 if $ac_preproc_ok 5833 then : 5834 5835 else $as_nop 5836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5837 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5838 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5839 See \`config.log' for more details" "$LINENO" 5; } 5840 fi 5841 5842 ac_ext=c 5843 ac_cpp='$CPP $CPPFLAGS' 5844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5846 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5847 5848 ac_ext=c 5849 ac_cpp='$CPP $CPPFLAGS' 5850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5852 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5853 5854 5855 5856 5857 if test -n "$ac_tool_prefix"; then 5858 for ac_prog in ar lib "link -lib" 5859 do 5860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5863 printf %s "checking for $ac_word... " >&6; } 5864 if test ${ac_cv_prog_AR+y} 5865 then : 5866 printf %s "(cached) " >&6 5867 else $as_nop 5868 if test -n "$AR"; then 5869 ac_cv_prog_AR="$AR" # Let the user override the test. 5870 else 5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5872 for as_dir in $PATH 5873 do 5874 IFS=$as_save_IFS 5875 case $as_dir in #((( 5876 '') as_dir=./ ;; 5877 */) ;; 5878 *) as_dir=$as_dir/ ;; 5879 esac 5880 for ac_exec_ext in '' $ac_executable_extensions; do 5881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5882 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5884 break 2 5885 fi 5886 done 5887 done 5888 IFS=$as_save_IFS 5889 5890 fi 5891 fi 5892 AR=$ac_cv_prog_AR 5893 if test -n "$AR"; then 5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5895 printf "%s\n" "$AR" >&6; } 5896 else 5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5898 printf "%s\n" "no" >&6; } 5899 fi 5900 5901 5902 test -n "$AR" && break 5903 done 5904 fi 5905 if test -z "$AR"; then 5906 ac_ct_AR=$AR 5907 for ac_prog in ar lib "link -lib" 5908 do 5909 # Extract the first word of "$ac_prog", so it can be a program name with args. 5910 set dummy $ac_prog; ac_word=$2 5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5912 printf %s "checking for $ac_word... " >&6; } 5913 if test ${ac_cv_prog_ac_ct_AR+y} 5914 then : 5915 printf %s "(cached) " >&6 5916 else $as_nop 5917 if test -n "$ac_ct_AR"; then 5918 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5919 else 5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5921 for as_dir in $PATH 5922 do 5923 IFS=$as_save_IFS 5924 case $as_dir in #((( 5925 '') as_dir=./ ;; 5926 */) ;; 5927 *) as_dir=$as_dir/ ;; 5928 esac 5929 for ac_exec_ext in '' $ac_executable_extensions; do 5930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5931 ac_cv_prog_ac_ct_AR="$ac_prog" 5932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5933 break 2 5934 fi 5935 done 5936 done 5937 IFS=$as_save_IFS 5938 5939 fi 5940 fi 5941 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5942 if test -n "$ac_ct_AR"; then 5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5944 printf "%s\n" "$ac_ct_AR" >&6; } 5945 else 5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5947 printf "%s\n" "no" >&6; } 5948 fi 5949 5950 5951 test -n "$ac_ct_AR" && break 5952 done 5953 5954 if test "x$ac_ct_AR" = x; then 5955 AR="false" 5956 else 5957 case $cross_compiling:$ac_tool_warned in 5958 yes:) 5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5960 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5961 ac_tool_warned=yes ;; 5962 esac 5963 AR=$ac_ct_AR 5964 fi 5965 fi 5966 5967 : ${AR=ar} 5968 5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5970 printf %s "checking the archiver ($AR) interface... " >&6; } 5971 if test ${am_cv_ar_interface+y} 5972 then : 5973 printf %s "(cached) " >&6 5974 else $as_nop 5975 ac_ext=c 5976 ac_cpp='$CPP $CPPFLAGS' 5977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5979 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5980 5981 am_cv_ar_interface=ar 5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5983 /* end confdefs.h. */ 5984 int some_variable = 0; 5985 _ACEOF 5986 if ac_fn_c_try_compile "$LINENO" 5987 then : 5988 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5990 (eval $am_ar_try) 2>&5 5991 ac_status=$? 5992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5993 test $ac_status = 0; } 5994 if test "$ac_status" -eq 0; then 5995 am_cv_ar_interface=ar 5996 else 5997 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5999 (eval $am_ar_try) 2>&5 6000 ac_status=$? 6001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6002 test $ac_status = 0; } 6003 if test "$ac_status" -eq 0; then 6004 am_cv_ar_interface=lib 6005 else 6006 am_cv_ar_interface=unknown 6007 fi 6008 fi 6009 rm -f conftest.lib libconftest.a 6010 6011 fi 6012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6013 ac_ext=c 6014 ac_cpp='$CPP $CPPFLAGS' 6015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6017 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6018 6019 fi 6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6021 printf "%s\n" "$am_cv_ar_interface" >&6; } 6022 6023 case $am_cv_ar_interface in 6024 ar) 6025 ;; 6026 lib) 6027 # Microsoft lib, so override with the ar-lib wrapper script. 6028 # FIXME: It is wrong to rewrite AR. 6029 # But if we don't then we get into trouble of one sort or another. 6030 # A longer-term fix would be to have automake use am__AR in this case, 6031 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6032 # similar. 6033 AR="$am_aux_dir/ar-lib $AR" 6034 ;; 6035 unknown) 6036 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6037 ;; 6038 esac 6039 6040 6041 case `pwd` in 6042 *\ * | *\ *) 6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6044 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6045 esac 6046 6047 6048 6049 macro_version='2.4.7' 6050 macro_revision='2.4.7' 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 ltmain=$ac_aux_dir/ltmain.sh 6066 6067 # Backslashify metacharacters that are still active within 6068 # double-quoted strings. 6069 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6070 6071 # Same as above, but do not quote variable references. 6072 double_quote_subst='s/\(["`\\]\)/\\\1/g' 6073 6074 # Sed substitution to delay expansion of an escaped shell variable in a 6075 # double_quote_subst'ed string. 6076 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6077 6078 # Sed substitution to delay expansion of an escaped single quote. 6079 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6080 6081 # Sed substitution to avoid accidental globbing in evaled expressions 6082 no_glob_subst='s/\*/\\\*/g' 6083 6084 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6085 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6086 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6087 6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6089 printf %s "checking how to print strings... " >&6; } 6090 # Test print first, because it will be a builtin if present. 6091 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6092 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6093 ECHO='print -r --' 6094 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6095 ECHO='printf %s\n' 6096 else 6097 # Use this function as a fallback that always works. 6098 func_fallback_echo () 6099 { 6100 eval 'cat <<_LTECHO_EOF 6101 $1 6102 _LTECHO_EOF' 6103 } 6104 ECHO='func_fallback_echo' 6105 fi 6106 6107 # func_echo_all arg... 6108 # Invoke $ECHO with all args, space-separated. 6109 func_echo_all () 6110 { 6111 $ECHO "" 6112 } 6113 6114 case $ECHO in 6115 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6116 printf "%s\n" "printf" >&6; } ;; 6117 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6118 printf "%s\n" "print -r" >&6; } ;; 6119 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6120 printf "%s\n" "cat" >&6; } ;; 6121 esac 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6137 printf %s "checking for a sed that does not truncate output... " >&6; } 6138 if test ${ac_cv_path_SED+y} 6139 then : 6140 printf %s "(cached) " >&6 6141 else $as_nop 6142 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6143 for ac_i in 1 2 3 4 5 6 7; do 6144 ac_script="$ac_script$as_nl$ac_script" 6145 done 6146 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6147 { ac_script=; unset ac_script;} 6148 if test -z "$SED"; then 6149 ac_path_SED_found=false 6150 # Loop through the user's path and test for each of PROGNAME-LIST 6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6152 for as_dir in $PATH 6153 do 6154 IFS=$as_save_IFS 6155 case $as_dir in #((( 6156 '') as_dir=./ ;; 6157 */) ;; 6158 *) as_dir=$as_dir/ ;; 6159 esac 6160 for ac_prog in sed gsed 6161 do 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6164 as_fn_executable_p "$ac_path_SED" || continue 6165 # Check for GNU ac_path_SED and select it if it is found. 6166 # Check for GNU $ac_path_SED 6167 case `"$ac_path_SED" --version 2>&1` in 6168 *GNU*) 6169 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6170 *) 6171 ac_count=0 6172 printf %s 0123456789 >"conftest.in" 6173 while : 6174 do 6175 cat "conftest.in" "conftest.in" >"conftest.tmp" 6176 mv "conftest.tmp" "conftest.in" 6177 cp "conftest.in" "conftest.nl" 6178 printf "%s\n" '' >> "conftest.nl" 6179 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6181 as_fn_arith $ac_count + 1 && ac_count=$as_val 6182 if test $ac_count -gt ${ac_path_SED_max-0}; then 6183 # Best one so far, save it but keep looking for a better one 6184 ac_cv_path_SED="$ac_path_SED" 6185 ac_path_SED_max=$ac_count 6186 fi 6187 # 10*(2^10) chars as input seems more than enough 6188 test $ac_count -gt 10 && break 6189 done 6190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6191 esac 6192 6193 $ac_path_SED_found && break 3 6194 done 6195 done 6196 done 6197 IFS=$as_save_IFS 6198 if test -z "$ac_cv_path_SED"; then 6199 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6200 fi 6201 else 6202 ac_cv_path_SED=$SED 6203 fi 6204 6205 fi 6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6207 printf "%s\n" "$ac_cv_path_SED" >&6; } 6208 SED="$ac_cv_path_SED" 6209 rm -f conftest.sed 6210 6211 test -z "$SED" && SED=sed 6212 Xsed="$SED -e 1s/^X//" 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6225 printf %s "checking for fgrep... " >&6; } 6226 if test ${ac_cv_path_FGREP+y} 6227 then : 6228 printf %s "(cached) " >&6 6229 else $as_nop 6230 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6231 then ac_cv_path_FGREP="$GREP -F" 6232 else 6233 if test -z "$FGREP"; then 6234 ac_path_FGREP_found=false 6235 # Loop through the user's path and test for each of PROGNAME-LIST 6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6238 do 6239 IFS=$as_save_IFS 6240 case $as_dir in #((( 6241 '') as_dir=./ ;; 6242 */) ;; 6243 *) as_dir=$as_dir/ ;; 6244 esac 6245 for ac_prog in fgrep 6246 do 6247 for ac_exec_ext in '' $ac_executable_extensions; do 6248 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 6249 as_fn_executable_p "$ac_path_FGREP" || continue 6250 # Check for GNU ac_path_FGREP and select it if it is found. 6251 # Check for GNU $ac_path_FGREP 6252 case `"$ac_path_FGREP" --version 2>&1` in 6253 *GNU*) 6254 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6255 *) 6256 ac_count=0 6257 printf %s 0123456789 >"conftest.in" 6258 while : 6259 do 6260 cat "conftest.in" "conftest.in" >"conftest.tmp" 6261 mv "conftest.tmp" "conftest.in" 6262 cp "conftest.in" "conftest.nl" 6263 printf "%s\n" 'FGREP' >> "conftest.nl" 6264 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6266 as_fn_arith $ac_count + 1 && ac_count=$as_val 6267 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6268 # Best one so far, save it but keep looking for a better one 6269 ac_cv_path_FGREP="$ac_path_FGREP" 6270 ac_path_FGREP_max=$ac_count 6271 fi 6272 # 10*(2^10) chars as input seems more than enough 6273 test $ac_count -gt 10 && break 6274 done 6275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6276 esac 6277 6278 $ac_path_FGREP_found && break 3 6279 done 6280 done 6281 done 6282 IFS=$as_save_IFS 6283 if test -z "$ac_cv_path_FGREP"; then 6284 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6285 fi 6286 else 6287 ac_cv_path_FGREP=$FGREP 6288 fi 6289 6290 fi 6291 fi 6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6293 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 6294 FGREP="$ac_cv_path_FGREP" 6295 6296 6297 test -z "$GREP" && GREP=grep 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 # Check whether --with-gnu-ld was given. 6318 if test ${with_gnu_ld+y} 6319 then : 6320 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6321 else $as_nop 6322 with_gnu_ld=no 6323 fi 6324 6325 ac_prog=ld 6326 if test yes = "$GCC"; then 6327 # Check if gcc -print-prog-name=ld gives a path. 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6329 printf %s "checking for ld used by $CC... " >&6; } 6330 case $host in 6331 *-*-mingw*) 6332 # gcc leaves a trailing carriage return, which upsets mingw 6333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6334 *) 6335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6336 esac 6337 case $ac_prog in 6338 # Accept absolute paths. 6339 [\\/]* | ?:[\\/]*) 6340 re_direlt='/[^/][^/]*/\.\./' 6341 # Canonicalize the pathname of ld 6342 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6343 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6344 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6345 done 6346 test -z "$LD" && LD=$ac_prog 6347 ;; 6348 "") 6349 # If it fails, then pretend we aren't using GCC. 6350 ac_prog=ld 6351 ;; 6352 *) 6353 # If it is relative, then search for the first ld in PATH. 6354 with_gnu_ld=unknown 6355 ;; 6356 esac 6357 elif test yes = "$with_gnu_ld"; then 6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6359 printf %s "checking for GNU ld... " >&6; } 6360 else 6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6362 printf %s "checking for non-GNU ld... " >&6; } 6363 fi 6364 if test ${lt_cv_path_LD+y} 6365 then : 6366 printf %s "(cached) " >&6 6367 else $as_nop 6368 if test -z "$LD"; then 6369 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6370 for ac_dir in $PATH; do 6371 IFS=$lt_save_ifs 6372 test -z "$ac_dir" && ac_dir=. 6373 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6374 lt_cv_path_LD=$ac_dir/$ac_prog 6375 # Check to see if the program is GNU ld. I'd rather use --version, 6376 # but apparently some variants of GNU ld only accept -v. 6377 # Break only if it was the GNU/non-GNU ld that we prefer. 6378 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6379 *GNU* | *'with BFD'*) 6380 test no != "$with_gnu_ld" && break 6381 ;; 6382 *) 6383 test yes != "$with_gnu_ld" && break 6384 ;; 6385 esac 6386 fi 6387 done 6388 IFS=$lt_save_ifs 6389 else 6390 lt_cv_path_LD=$LD # Let the user override the test with a path. 6391 fi 6392 fi 6393 6394 LD=$lt_cv_path_LD 6395 if test -n "$LD"; then 6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6397 printf "%s\n" "$LD" >&6; } 6398 else 6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6400 printf "%s\n" "no" >&6; } 6401 fi 6402 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6404 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6405 if test ${lt_cv_prog_gnu_ld+y} 6406 then : 6407 printf %s "(cached) " >&6 6408 else $as_nop 6409 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6410 case `$LD -v 2>&1 </dev/null` in 6411 *GNU* | *'with BFD'*) 6412 lt_cv_prog_gnu_ld=yes 6413 ;; 6414 *) 6415 lt_cv_prog_gnu_ld=no 6416 ;; 6417 esac 6418 fi 6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6420 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6421 with_gnu_ld=$lt_cv_prog_gnu_ld 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6432 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6433 if test ${lt_cv_path_NM+y} 6434 then : 6435 printf %s "(cached) " >&6 6436 else $as_nop 6437 if test -n "$NM"; then 6438 # Let the user override the test. 6439 lt_cv_path_NM=$NM 6440 else 6441 lt_nm_to_check=${ac_tool_prefix}nm 6442 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6443 lt_nm_to_check="$lt_nm_to_check nm" 6444 fi 6445 for lt_tmp_nm in $lt_nm_to_check; do 6446 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6447 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6448 IFS=$lt_save_ifs 6449 test -z "$ac_dir" && ac_dir=. 6450 tmp_nm=$ac_dir/$lt_tmp_nm 6451 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6452 # Check to see if the nm accepts a BSD-compat flag. 6453 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6454 # nm: unknown option "B" ignored 6455 # Tru64's nm complains that /dev/null is an invalid object file 6456 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6457 case $build_os in 6458 mingw*) lt_bad_file=conftest.nm/nofile ;; 6459 *) lt_bad_file=/dev/null ;; 6460 esac 6461 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 6462 *$lt_bad_file* | *'Invalid file or object type'*) 6463 lt_cv_path_NM="$tmp_nm -B" 6464 break 2 6465 ;; 6466 *) 6467 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 6468 */dev/null*) 6469 lt_cv_path_NM="$tmp_nm -p" 6470 break 2 6471 ;; 6472 *) 6473 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6474 continue # so that we can try to find one that supports BSD flags 6475 ;; 6476 esac 6477 ;; 6478 esac 6479 fi 6480 done 6481 IFS=$lt_save_ifs 6482 done 6483 : ${lt_cv_path_NM=no} 6484 fi 6485 fi 6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6487 printf "%s\n" "$lt_cv_path_NM" >&6; } 6488 if test no != "$lt_cv_path_NM"; then 6489 NM=$lt_cv_path_NM 6490 else 6491 # Didn't find any BSD compatible name lister, look for dumpbin. 6492 if test -n "$DUMPBIN"; then : 6493 # Let the user override the test. 6494 else 6495 if test -n "$ac_tool_prefix"; then 6496 for ac_prog in dumpbin "link -dump" 6497 do 6498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6501 printf %s "checking for $ac_word... " >&6; } 6502 if test ${ac_cv_prog_DUMPBIN+y} 6503 then : 6504 printf %s "(cached) " >&6 6505 else $as_nop 6506 if test -n "$DUMPBIN"; then 6507 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6508 else 6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6510 for as_dir in $PATH 6511 do 6512 IFS=$as_save_IFS 6513 case $as_dir in #((( 6514 '') as_dir=./ ;; 6515 */) ;; 6516 *) as_dir=$as_dir/ ;; 6517 esac 6518 for ac_exec_ext in '' $ac_executable_extensions; do 6519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6520 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6522 break 2 6523 fi 6524 done 6525 done 6526 IFS=$as_save_IFS 6527 6528 fi 6529 fi 6530 DUMPBIN=$ac_cv_prog_DUMPBIN 6531 if test -n "$DUMPBIN"; then 6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6533 printf "%s\n" "$DUMPBIN" >&6; } 6534 else 6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6536 printf "%s\n" "no" >&6; } 6537 fi 6538 6539 6540 test -n "$DUMPBIN" && break 6541 done 6542 fi 6543 if test -z "$DUMPBIN"; then 6544 ac_ct_DUMPBIN=$DUMPBIN 6545 for ac_prog in dumpbin "link -dump" 6546 do 6547 # Extract the first word of "$ac_prog", so it can be a program name with args. 6548 set dummy $ac_prog; ac_word=$2 6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6550 printf %s "checking for $ac_word... " >&6; } 6551 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6552 then : 6553 printf %s "(cached) " >&6 6554 else $as_nop 6555 if test -n "$ac_ct_DUMPBIN"; then 6556 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6557 else 6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6559 for as_dir in $PATH 6560 do 6561 IFS=$as_save_IFS 6562 case $as_dir in #((( 6563 '') as_dir=./ ;; 6564 */) ;; 6565 *) as_dir=$as_dir/ ;; 6566 esac 6567 for ac_exec_ext in '' $ac_executable_extensions; do 6568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6569 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6571 break 2 6572 fi 6573 done 6574 done 6575 IFS=$as_save_IFS 6576 6577 fi 6578 fi 6579 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6580 if test -n "$ac_ct_DUMPBIN"; then 6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6582 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6583 else 6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6585 printf "%s\n" "no" >&6; } 6586 fi 6587 6588 6589 test -n "$ac_ct_DUMPBIN" && break 6590 done 6591 6592 if test "x$ac_ct_DUMPBIN" = x; then 6593 DUMPBIN=":" 6594 else 6595 case $cross_compiling:$ac_tool_warned in 6596 yes:) 6597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6598 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6599 ac_tool_warned=yes ;; 6600 esac 6601 DUMPBIN=$ac_ct_DUMPBIN 6602 fi 6603 fi 6604 6605 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 6606 *COFF*) 6607 DUMPBIN="$DUMPBIN -symbols -headers" 6608 ;; 6609 *) 6610 DUMPBIN=: 6611 ;; 6612 esac 6613 fi 6614 6615 if test : != "$DUMPBIN"; then 6616 NM=$DUMPBIN 6617 fi 6618 fi 6619 test -z "$NM" && NM=nm 6620 6621 6622 6623 6624 6625 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6627 printf %s "checking the name lister ($NM) interface... " >&6; } 6628 if test ${lt_cv_nm_interface+y} 6629 then : 6630 printf %s "(cached) " >&6 6631 else $as_nop 6632 lt_cv_nm_interface="BSD nm" 6633 echo "int some_variable = 0;" > conftest.$ac_ext 6634 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6635 (eval "$ac_compile" 2>conftest.err) 6636 cat conftest.err >&5 6637 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6638 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6639 cat conftest.err >&5 6640 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6641 cat conftest.out >&5 6642 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6643 lt_cv_nm_interface="MS dumpbin" 6644 fi 6645 rm -f conftest* 6646 fi 6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6648 printf "%s\n" "$lt_cv_nm_interface" >&6; } 6649 6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6651 printf %s "checking whether ln -s works... " >&6; } 6652 LN_S=$as_ln_s 6653 if test "$LN_S" = "ln -s"; then 6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6655 printf "%s\n" "yes" >&6; } 6656 else 6657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6658 printf "%s\n" "no, using $LN_S" >&6; } 6659 fi 6660 6661 # find the maximum length of command line arguments 6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6663 printf %s "checking the maximum length of command line arguments... " >&6; } 6664 if test ${lt_cv_sys_max_cmd_len+y} 6665 then : 6666 printf %s "(cached) " >&6 6667 else $as_nop 6668 i=0 6669 teststring=ABCD 6670 6671 case $build_os in 6672 msdosdjgpp*) 6673 # On DJGPP, this test can blow up pretty badly due to problems in libc 6674 # (any single argument exceeding 2000 bytes causes a buffer overrun 6675 # during glob expansion). Even if it were fixed, the result of this 6676 # check would be larger than it should be. 6677 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6678 ;; 6679 6680 gnu*) 6681 # Under GNU Hurd, this test is not required because there is 6682 # no limit to the length of command line arguments. 6683 # Libtool will interpret -1 as no limit whatsoever 6684 lt_cv_sys_max_cmd_len=-1; 6685 ;; 6686 6687 cygwin* | mingw* | cegcc*) 6688 # On Win9x/ME, this test blows up -- it succeeds, but takes 6689 # about 5 minutes as the teststring grows exponentially. 6690 # Worse, since 9x/ME are not pre-emptively multitasking, 6691 # you end up with a "frozen" computer, even though with patience 6692 # the test eventually succeeds (with a max line length of 256k). 6693 # Instead, let's just punt: use the minimum linelength reported by 6694 # all of the supported platforms: 8192 (on NT/2K/XP). 6695 lt_cv_sys_max_cmd_len=8192; 6696 ;; 6697 6698 mint*) 6699 # On MiNT this can take a long time and run out of memory. 6700 lt_cv_sys_max_cmd_len=8192; 6701 ;; 6702 6703 amigaos*) 6704 # On AmigaOS with pdksh, this test takes hours, literally. 6705 # So we just punt and use a minimum line length of 8192. 6706 lt_cv_sys_max_cmd_len=8192; 6707 ;; 6708 6709 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6710 # This has been around since 386BSD, at least. Likely further. 6711 if test -x /sbin/sysctl; then 6712 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6713 elif test -x /usr/sbin/sysctl; then 6714 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6715 else 6716 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6717 fi 6718 # And add a safety zone 6719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6721 ;; 6722 6723 interix*) 6724 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6725 lt_cv_sys_max_cmd_len=196608 6726 ;; 6727 6728 os2*) 6729 # The test takes a long time on OS/2. 6730 lt_cv_sys_max_cmd_len=8192 6731 ;; 6732 6733 osf*) 6734 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6735 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6736 # nice to cause kernel panics so lets avoid the loop below. 6737 # First set a reasonable default. 6738 lt_cv_sys_max_cmd_len=16384 6739 # 6740 if test -x /sbin/sysconfig; then 6741 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6742 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6743 esac 6744 fi 6745 ;; 6746 sco3.2v5*) 6747 lt_cv_sys_max_cmd_len=102400 6748 ;; 6749 sysv5* | sco5v6* | sysv4.2uw2*) 6750 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6751 if test -n "$kargmax"; then 6752 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6753 else 6754 lt_cv_sys_max_cmd_len=32768 6755 fi 6756 ;; 6757 *) 6758 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6759 if test -n "$lt_cv_sys_max_cmd_len" && \ 6760 test undefined != "$lt_cv_sys_max_cmd_len"; then 6761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6763 else 6764 # Make teststring a little bigger before we do anything with it. 6765 # a 1K string should be a reasonable start. 6766 for i in 1 2 3 4 5 6 7 8; do 6767 teststring=$teststring$teststring 6768 done 6769 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6770 # If test is not a shell built-in, we'll probably end up computing a 6771 # maximum length that is only half of the actual maximum length, but 6772 # we can't tell. 6773 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6774 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6775 test 17 != "$i" # 1/2 MB should be enough 6776 do 6777 i=`expr $i + 1` 6778 teststring=$teststring$teststring 6779 done 6780 # Only check the string length outside the loop. 6781 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6782 teststring= 6783 # Add a significant safety factor because C++ compilers can tack on 6784 # massive amounts of additional arguments before passing them to the 6785 # linker. It appears as though 1/2 is a usable value. 6786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6787 fi 6788 ;; 6789 esac 6790 6791 fi 6792 6793 if test -n "$lt_cv_sys_max_cmd_len"; then 6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6795 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6796 else 6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6798 printf "%s\n" "none" >&6; } 6799 fi 6800 max_cmd_len=$lt_cv_sys_max_cmd_len 6801 6802 6803 6804 6805 6806 6807 : ${CP="cp -f"} 6808 : ${MV="mv -f"} 6809 : ${RM="rm -f"} 6810 6811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6812 lt_unset=unset 6813 else 6814 lt_unset=false 6815 fi 6816 6817 6818 6819 6820 6821 # test EBCDIC or ASCII 6822 case `echo X|tr X '\101'` in 6823 A) # ASCII based system 6824 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6825 lt_SP2NL='tr \040 \012' 6826 lt_NL2SP='tr \015\012 \040\040' 6827 ;; 6828 *) # EBCDIC based system 6829 lt_SP2NL='tr \100 \n' 6830 lt_NL2SP='tr \r\n \100\100' 6831 ;; 6832 esac 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6843 printf %s "checking how to convert $build file names to $host format... " >&6; } 6844 if test ${lt_cv_to_host_file_cmd+y} 6845 then : 6846 printf %s "(cached) " >&6 6847 else $as_nop 6848 case $host in 6849 *-*-mingw* ) 6850 case $build in 6851 *-*-mingw* ) # actually msys 6852 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6853 ;; 6854 *-*-cygwin* ) 6855 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6856 ;; 6857 * ) # otherwise, assume *nix 6858 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6859 ;; 6860 esac 6861 ;; 6862 *-*-cygwin* ) 6863 case $build in 6864 *-*-mingw* ) # actually msys 6865 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6866 ;; 6867 *-*-cygwin* ) 6868 lt_cv_to_host_file_cmd=func_convert_file_noop 6869 ;; 6870 * ) # otherwise, assume *nix 6871 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6872 ;; 6873 esac 6874 ;; 6875 * ) # unhandled hosts (and "normal" native builds) 6876 lt_cv_to_host_file_cmd=func_convert_file_noop 6877 ;; 6878 esac 6879 6880 fi 6881 6882 to_host_file_cmd=$lt_cv_to_host_file_cmd 6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6884 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6885 6886 6887 6888 6889 6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6891 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6892 if test ${lt_cv_to_tool_file_cmd+y} 6893 then : 6894 printf %s "(cached) " >&6 6895 else $as_nop 6896 #assume ordinary cross tools, or native build. 6897 lt_cv_to_tool_file_cmd=func_convert_file_noop 6898 case $host in 6899 *-*-mingw* ) 6900 case $build in 6901 *-*-mingw* ) # actually msys 6902 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6903 ;; 6904 esac 6905 ;; 6906 esac 6907 6908 fi 6909 6910 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6912 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6913 6914 6915 6916 6917 6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6919 printf %s "checking for $LD option to reload object files... " >&6; } 6920 if test ${lt_cv_ld_reload_flag+y} 6921 then : 6922 printf %s "(cached) " >&6 6923 else $as_nop 6924 lt_cv_ld_reload_flag='-r' 6925 fi 6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6927 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6928 reload_flag=$lt_cv_ld_reload_flag 6929 case $reload_flag in 6930 "" | " "*) ;; 6931 *) reload_flag=" $reload_flag" ;; 6932 esac 6933 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6934 case $host_os in 6935 cygwin* | mingw* | pw32* | cegcc*) 6936 if test yes != "$GCC"; then 6937 reload_cmds=false 6938 fi 6939 ;; 6940 darwin*) 6941 if test yes = "$GCC"; then 6942 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6943 else 6944 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6945 fi 6946 ;; 6947 esac 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 if test -n "$ac_tool_prefix"; then 6958 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6959 set dummy ${ac_tool_prefix}file; ac_word=$2 6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6961 printf %s "checking for $ac_word... " >&6; } 6962 if test ${ac_cv_prog_FILECMD+y} 6963 then : 6964 printf %s "(cached) " >&6 6965 else $as_nop 6966 if test -n "$FILECMD"; then 6967 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6968 else 6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6970 for as_dir in $PATH 6971 do 6972 IFS=$as_save_IFS 6973 case $as_dir in #((( 6974 '') as_dir=./ ;; 6975 */) ;; 6976 *) as_dir=$as_dir/ ;; 6977 esac 6978 for ac_exec_ext in '' $ac_executable_extensions; do 6979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6980 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6982 break 2 6983 fi 6984 done 6985 done 6986 IFS=$as_save_IFS 6987 6988 fi 6989 fi 6990 FILECMD=$ac_cv_prog_FILECMD 6991 if test -n "$FILECMD"; then 6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6993 printf "%s\n" "$FILECMD" >&6; } 6994 else 6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6996 printf "%s\n" "no" >&6; } 6997 fi 6998 6999 7000 fi 7001 if test -z "$ac_cv_prog_FILECMD"; then 7002 ac_ct_FILECMD=$FILECMD 7003 # Extract the first word of "file", so it can be a program name with args. 7004 set dummy file; ac_word=$2 7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7006 printf %s "checking for $ac_word... " >&6; } 7007 if test ${ac_cv_prog_ac_ct_FILECMD+y} 7008 then : 7009 printf %s "(cached) " >&6 7010 else $as_nop 7011 if test -n "$ac_ct_FILECMD"; then 7012 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 7013 else 7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7015 for as_dir in $PATH 7016 do 7017 IFS=$as_save_IFS 7018 case $as_dir in #((( 7019 '') as_dir=./ ;; 7020 */) ;; 7021 *) as_dir=$as_dir/ ;; 7022 esac 7023 for ac_exec_ext in '' $ac_executable_extensions; do 7024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7025 ac_cv_prog_ac_ct_FILECMD="file" 7026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7027 break 2 7028 fi 7029 done 7030 done 7031 IFS=$as_save_IFS 7032 7033 fi 7034 fi 7035 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 7036 if test -n "$ac_ct_FILECMD"; then 7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 7038 printf "%s\n" "$ac_ct_FILECMD" >&6; } 7039 else 7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7041 printf "%s\n" "no" >&6; } 7042 fi 7043 7044 if test "x$ac_ct_FILECMD" = x; then 7045 FILECMD=":" 7046 else 7047 case $cross_compiling:$ac_tool_warned in 7048 yes:) 7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7050 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7051 ac_tool_warned=yes ;; 7052 esac 7053 FILECMD=$ac_ct_FILECMD 7054 fi 7055 else 7056 FILECMD="$ac_cv_prog_FILECMD" 7057 fi 7058 7059 7060 7061 7062 7063 7064 7065 if test -n "$ac_tool_prefix"; then 7066 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7067 set dummy ${ac_tool_prefix}objdump; ac_word=$2 7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7069 printf %s "checking for $ac_word... " >&6; } 7070 if test ${ac_cv_prog_OBJDUMP+y} 7071 then : 7072 printf %s "(cached) " >&6 7073 else $as_nop 7074 if test -n "$OBJDUMP"; then 7075 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7076 else 7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7078 for as_dir in $PATH 7079 do 7080 IFS=$as_save_IFS 7081 case $as_dir in #((( 7082 '') as_dir=./ ;; 7083 */) ;; 7084 *) as_dir=$as_dir/ ;; 7085 esac 7086 for ac_exec_ext in '' $ac_executable_extensions; do 7087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7088 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7090 break 2 7091 fi 7092 done 7093 done 7094 IFS=$as_save_IFS 7095 7096 fi 7097 fi 7098 OBJDUMP=$ac_cv_prog_OBJDUMP 7099 if test -n "$OBJDUMP"; then 7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7101 printf "%s\n" "$OBJDUMP" >&6; } 7102 else 7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7104 printf "%s\n" "no" >&6; } 7105 fi 7106 7107 7108 fi 7109 if test -z "$ac_cv_prog_OBJDUMP"; then 7110 ac_ct_OBJDUMP=$OBJDUMP 7111 # Extract the first word of "objdump", so it can be a program name with args. 7112 set dummy objdump; ac_word=$2 7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7114 printf %s "checking for $ac_word... " >&6; } 7115 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 7116 then : 7117 printf %s "(cached) " >&6 7118 else $as_nop 7119 if test -n "$ac_ct_OBJDUMP"; then 7120 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7121 else 7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7123 for as_dir in $PATH 7124 do 7125 IFS=$as_save_IFS 7126 case $as_dir in #((( 7127 '') as_dir=./ ;; 7128 */) ;; 7129 *) as_dir=$as_dir/ ;; 7130 esac 7131 for ac_exec_ext in '' $ac_executable_extensions; do 7132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7133 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7135 break 2 7136 fi 7137 done 7138 done 7139 IFS=$as_save_IFS 7140 7141 fi 7142 fi 7143 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7144 if test -n "$ac_ct_OBJDUMP"; then 7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7146 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 7147 else 7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7149 printf "%s\n" "no" >&6; } 7150 fi 7151 7152 if test "x$ac_ct_OBJDUMP" = x; then 7153 OBJDUMP="false" 7154 else 7155 case $cross_compiling:$ac_tool_warned in 7156 yes:) 7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7158 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7159 ac_tool_warned=yes ;; 7160 esac 7161 OBJDUMP=$ac_ct_OBJDUMP 7162 fi 7163 else 7164 OBJDUMP="$ac_cv_prog_OBJDUMP" 7165 fi 7166 7167 test -z "$OBJDUMP" && OBJDUMP=objdump 7168 7169 7170 7171 7172 7173 7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7175 printf %s "checking how to recognize dependent libraries... " >&6; } 7176 if test ${lt_cv_deplibs_check_method+y} 7177 then : 7178 printf %s "(cached) " >&6 7179 else $as_nop 7180 lt_cv_file_magic_cmd='$MAGIC_CMD' 7181 lt_cv_file_magic_test_file= 7182 lt_cv_deplibs_check_method='unknown' 7183 # Need to set the preceding variable on all platforms that support 7184 # interlibrary dependencies. 7185 # 'none' -- dependencies not supported. 7186 # 'unknown' -- same as none, but documents that we really don't know. 7187 # 'pass_all' -- all dependencies passed with no checks. 7188 # 'test_compile' -- check by making test program. 7189 # 'file_magic [[regex]]' -- check by looking for files in library path 7190 # that responds to the $file_magic_cmd with a given extended regex. 7191 # If you have 'file' or equivalent on your system and you're not sure 7192 # whether 'pass_all' will *always* work, you probably want this one. 7193 7194 case $host_os in 7195 aix[4-9]*) 7196 lt_cv_deplibs_check_method=pass_all 7197 ;; 7198 7199 beos*) 7200 lt_cv_deplibs_check_method=pass_all 7201 ;; 7202 7203 bsdi[45]*) 7204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7205 lt_cv_file_magic_cmd='$FILECMD -L' 7206 lt_cv_file_magic_test_file=/shlib/libc.so 7207 ;; 7208 7209 cygwin*) 7210 # func_win32_libid is a shell function defined in ltmain.sh 7211 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7212 lt_cv_file_magic_cmd='func_win32_libid' 7213 ;; 7214 7215 mingw* | pw32*) 7216 # Base MSYS/MinGW do not provide the 'file' command needed by 7217 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7218 # unless we find 'file', for example because we are cross-compiling. 7219 if ( file / ) >/dev/null 2>&1; then 7220 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7221 lt_cv_file_magic_cmd='func_win32_libid' 7222 else 7223 # Keep this pattern in sync with the one in func_win32_libid. 7224 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7225 lt_cv_file_magic_cmd='$OBJDUMP -f' 7226 fi 7227 ;; 7228 7229 cegcc*) 7230 # use the weaker test based on 'objdump'. See mingw*. 7231 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7232 lt_cv_file_magic_cmd='$OBJDUMP -f' 7233 ;; 7234 7235 darwin* | rhapsody*) 7236 lt_cv_deplibs_check_method=pass_all 7237 ;; 7238 7239 freebsd* | dragonfly* | midnightbsd*) 7240 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7241 case $host_cpu in 7242 i*86 ) 7243 # Not sure whether the presence of OpenBSD here was a mistake. 7244 # Let's accept both of them until this is cleared up. 7245 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7246 lt_cv_file_magic_cmd=$FILECMD 7247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7248 ;; 7249 esac 7250 else 7251 lt_cv_deplibs_check_method=pass_all 7252 fi 7253 ;; 7254 7255 haiku*) 7256 lt_cv_deplibs_check_method=pass_all 7257 ;; 7258 7259 hpux10.20* | hpux11*) 7260 lt_cv_file_magic_cmd=$FILECMD 7261 case $host_cpu in 7262 ia64*) 7263 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7264 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7265 ;; 7266 hppa*64*) 7267 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]' 7268 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7269 ;; 7270 *) 7271 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7272 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7273 ;; 7274 esac 7275 ;; 7276 7277 interix[3-9]*) 7278 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7280 ;; 7281 7282 irix5* | irix6* | nonstopux*) 7283 case $LD in 7284 *-32|*"-32 ") libmagic=32-bit;; 7285 *-n32|*"-n32 ") libmagic=N32;; 7286 *-64|*"-64 ") libmagic=64-bit;; 7287 *) libmagic=never-match;; 7288 esac 7289 lt_cv_deplibs_check_method=pass_all 7290 ;; 7291 7292 # This must be glibc/ELF. 7293 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7294 lt_cv_deplibs_check_method=pass_all 7295 ;; 7296 7297 netbsd* | netbsdelf*-gnu) 7298 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7300 else 7301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7302 fi 7303 ;; 7304 7305 newos6*) 7306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7307 lt_cv_file_magic_cmd=$FILECMD 7308 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7309 ;; 7310 7311 *nto* | *qnx*) 7312 lt_cv_deplibs_check_method=pass_all 7313 ;; 7314 7315 openbsd* | bitrig*) 7316 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7318 else 7319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7320 fi 7321 ;; 7322 7323 osf3* | osf4* | osf5*) 7324 lt_cv_deplibs_check_method=pass_all 7325 ;; 7326 7327 rdos*) 7328 lt_cv_deplibs_check_method=pass_all 7329 ;; 7330 7331 solaris*) 7332 lt_cv_deplibs_check_method=pass_all 7333 ;; 7334 7335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7336 lt_cv_deplibs_check_method=pass_all 7337 ;; 7338 7339 sysv4 | sysv4.3*) 7340 case $host_vendor in 7341 motorola) 7342 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]' 7343 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7344 ;; 7345 ncr) 7346 lt_cv_deplibs_check_method=pass_all 7347 ;; 7348 sequent) 7349 lt_cv_file_magic_cmd='/bin/file' 7350 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7351 ;; 7352 sni) 7353 lt_cv_file_magic_cmd='/bin/file' 7354 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7355 lt_cv_file_magic_test_file=/lib/libc.so 7356 ;; 7357 siemens) 7358 lt_cv_deplibs_check_method=pass_all 7359 ;; 7360 pc) 7361 lt_cv_deplibs_check_method=pass_all 7362 ;; 7363 esac 7364 ;; 7365 7366 tpf*) 7367 lt_cv_deplibs_check_method=pass_all 7368 ;; 7369 os2*) 7370 lt_cv_deplibs_check_method=pass_all 7371 ;; 7372 esac 7373 7374 fi 7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7376 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 7377 7378 file_magic_glob= 7379 want_nocaseglob=no 7380 if test "$build" = "$host"; then 7381 case $host_os in 7382 mingw* | pw32*) 7383 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7384 want_nocaseglob=yes 7385 else 7386 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7387 fi 7388 ;; 7389 esac 7390 fi 7391 7392 file_magic_cmd=$lt_cv_file_magic_cmd 7393 deplibs_check_method=$lt_cv_deplibs_check_method 7394 test -z "$deplibs_check_method" && deplibs_check_method=unknown 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 if test -n "$ac_tool_prefix"; then 7418 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7419 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7421 printf %s "checking for $ac_word... " >&6; } 7422 if test ${ac_cv_prog_DLLTOOL+y} 7423 then : 7424 printf %s "(cached) " >&6 7425 else $as_nop 7426 if test -n "$DLLTOOL"; then 7427 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7428 else 7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7430 for as_dir in $PATH 7431 do 7432 IFS=$as_save_IFS 7433 case $as_dir in #((( 7434 '') as_dir=./ ;; 7435 */) ;; 7436 *) as_dir=$as_dir/ ;; 7437 esac 7438 for ac_exec_ext in '' $ac_executable_extensions; do 7439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7440 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7442 break 2 7443 fi 7444 done 7445 done 7446 IFS=$as_save_IFS 7447 7448 fi 7449 fi 7450 DLLTOOL=$ac_cv_prog_DLLTOOL 7451 if test -n "$DLLTOOL"; then 7452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7453 printf "%s\n" "$DLLTOOL" >&6; } 7454 else 7455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7456 printf "%s\n" "no" >&6; } 7457 fi 7458 7459 7460 fi 7461 if test -z "$ac_cv_prog_DLLTOOL"; then 7462 ac_ct_DLLTOOL=$DLLTOOL 7463 # Extract the first word of "dlltool", so it can be a program name with args. 7464 set dummy dlltool; ac_word=$2 7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7466 printf %s "checking for $ac_word... " >&6; } 7467 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7468 then : 7469 printf %s "(cached) " >&6 7470 else $as_nop 7471 if test -n "$ac_ct_DLLTOOL"; then 7472 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7473 else 7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7475 for as_dir in $PATH 7476 do 7477 IFS=$as_save_IFS 7478 case $as_dir in #((( 7479 '') as_dir=./ ;; 7480 */) ;; 7481 *) as_dir=$as_dir/ ;; 7482 esac 7483 for ac_exec_ext in '' $ac_executable_extensions; do 7484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7485 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7487 break 2 7488 fi 7489 done 7490 done 7491 IFS=$as_save_IFS 7492 7493 fi 7494 fi 7495 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7496 if test -n "$ac_ct_DLLTOOL"; then 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7498 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7499 else 7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7501 printf "%s\n" "no" >&6; } 7502 fi 7503 7504 if test "x$ac_ct_DLLTOOL" = x; then 7505 DLLTOOL="false" 7506 else 7507 case $cross_compiling:$ac_tool_warned in 7508 yes:) 7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7510 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7511 ac_tool_warned=yes ;; 7512 esac 7513 DLLTOOL=$ac_ct_DLLTOOL 7514 fi 7515 else 7516 DLLTOOL="$ac_cv_prog_DLLTOOL" 7517 fi 7518 7519 test -z "$DLLTOOL" && DLLTOOL=dlltool 7520 7521 7522 7523 7524 7525 7526 7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7528 printf %s "checking how to associate runtime and link libraries... " >&6; } 7529 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7530 then : 7531 printf %s "(cached) " >&6 7532 else $as_nop 7533 lt_cv_sharedlib_from_linklib_cmd='unknown' 7534 7535 case $host_os in 7536 cygwin* | mingw* | pw32* | cegcc*) 7537 # two different shell functions defined in ltmain.sh; 7538 # decide which one to use based on capabilities of $DLLTOOL 7539 case `$DLLTOOL --help 2>&1` in 7540 *--identify-strict*) 7541 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7542 ;; 7543 *) 7544 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7545 ;; 7546 esac 7547 ;; 7548 *) 7549 # fallback: assume linklib IS sharedlib 7550 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7551 ;; 7552 esac 7553 7554 fi 7555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7556 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7557 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7558 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7559 7560 7561 7562 7563 7564 7565 7566 if test -n "$ac_tool_prefix"; then 7567 for ac_prog in ar 7568 do 7569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7572 printf %s "checking for $ac_word... " >&6; } 7573 if test ${ac_cv_prog_AR+y} 7574 then : 7575 printf %s "(cached) " >&6 7576 else $as_nop 7577 if test -n "$AR"; then 7578 ac_cv_prog_AR="$AR" # Let the user override the test. 7579 else 7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7581 for as_dir in $PATH 7582 do 7583 IFS=$as_save_IFS 7584 case $as_dir in #((( 7585 '') as_dir=./ ;; 7586 */) ;; 7587 *) as_dir=$as_dir/ ;; 7588 esac 7589 for ac_exec_ext in '' $ac_executable_extensions; do 7590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7591 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7593 break 2 7594 fi 7595 done 7596 done 7597 IFS=$as_save_IFS 7598 7599 fi 7600 fi 7601 AR=$ac_cv_prog_AR 7602 if test -n "$AR"; then 7603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7604 printf "%s\n" "$AR" >&6; } 7605 else 7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7607 printf "%s\n" "no" >&6; } 7608 fi 7609 7610 7611 test -n "$AR" && break 7612 done 7613 fi 7614 if test -z "$AR"; then 7615 ac_ct_AR=$AR 7616 for ac_prog in ar 7617 do 7618 # Extract the first word of "$ac_prog", so it can be a program name with args. 7619 set dummy $ac_prog; ac_word=$2 7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7621 printf %s "checking for $ac_word... " >&6; } 7622 if test ${ac_cv_prog_ac_ct_AR+y} 7623 then : 7624 printf %s "(cached) " >&6 7625 else $as_nop 7626 if test -n "$ac_ct_AR"; then 7627 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7628 else 7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7630 for as_dir in $PATH 7631 do 7632 IFS=$as_save_IFS 7633 case $as_dir in #((( 7634 '') as_dir=./ ;; 7635 */) ;; 7636 *) as_dir=$as_dir/ ;; 7637 esac 7638 for ac_exec_ext in '' $ac_executable_extensions; do 7639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7640 ac_cv_prog_ac_ct_AR="$ac_prog" 7641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7642 break 2 7643 fi 7644 done 7645 done 7646 IFS=$as_save_IFS 7647 7648 fi 7649 fi 7650 ac_ct_AR=$ac_cv_prog_ac_ct_AR 7651 if test -n "$ac_ct_AR"; then 7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7653 printf "%s\n" "$ac_ct_AR" >&6; } 7654 else 7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7656 printf "%s\n" "no" >&6; } 7657 fi 7658 7659 7660 test -n "$ac_ct_AR" && break 7661 done 7662 7663 if test "x$ac_ct_AR" = x; then 7664 AR="false" 7665 else 7666 case $cross_compiling:$ac_tool_warned in 7667 yes:) 7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7669 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7670 ac_tool_warned=yes ;; 7671 esac 7672 AR=$ac_ct_AR 7673 fi 7674 fi 7675 7676 : ${AR=ar} 7677 7678 7679 7680 7681 7682 7683 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 7684 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7685 # higher priority because thats what people were doing historically (setting 7686 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7687 # variable obsoleted/removed. 7688 7689 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7690 lt_ar_flags=$AR_FLAGS 7691 7692 7693 7694 7695 7696 7697 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7698 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7699 7700 7701 7702 7703 7704 7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7706 printf %s "checking for archiver @FILE support... " >&6; } 7707 if test ${lt_cv_ar_at_file+y} 7708 then : 7709 printf %s "(cached) " >&6 7710 else $as_nop 7711 lt_cv_ar_at_file=no 7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7713 /* end confdefs.h. */ 7714 7715 int 7716 main (void) 7717 { 7718 7719 ; 7720 return 0; 7721 } 7722 _ACEOF 7723 if ac_fn_c_try_compile "$LINENO" 7724 then : 7725 echo conftest.$ac_objext > conftest.lst 7726 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7728 (eval $lt_ar_try) 2>&5 7729 ac_status=$? 7730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7731 test $ac_status = 0; } 7732 if test 0 -eq "$ac_status"; then 7733 # Ensure the archiver fails upon bogus file names. 7734 rm -f conftest.$ac_objext libconftest.a 7735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7736 (eval $lt_ar_try) 2>&5 7737 ac_status=$? 7738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7739 test $ac_status = 0; } 7740 if test 0 -ne "$ac_status"; then 7741 lt_cv_ar_at_file=@ 7742 fi 7743 fi 7744 rm -f conftest.* libconftest.a 7745 7746 fi 7747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7748 7749 fi 7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7751 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7752 7753 if test no = "$lt_cv_ar_at_file"; then 7754 archiver_list_spec= 7755 else 7756 archiver_list_spec=$lt_cv_ar_at_file 7757 fi 7758 7759 7760 7761 7762 7763 7764 7765 if test -n "$ac_tool_prefix"; then 7766 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7767 set dummy ${ac_tool_prefix}strip; ac_word=$2 7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7769 printf %s "checking for $ac_word... " >&6; } 7770 if test ${ac_cv_prog_STRIP+y} 7771 then : 7772 printf %s "(cached) " >&6 7773 else $as_nop 7774 if test -n "$STRIP"; then 7775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7776 else 7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7778 for as_dir in $PATH 7779 do 7780 IFS=$as_save_IFS 7781 case $as_dir in #((( 7782 '') as_dir=./ ;; 7783 */) ;; 7784 *) as_dir=$as_dir/ ;; 7785 esac 7786 for ac_exec_ext in '' $ac_executable_extensions; do 7787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7788 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7790 break 2 7791 fi 7792 done 7793 done 7794 IFS=$as_save_IFS 7795 7796 fi 7797 fi 7798 STRIP=$ac_cv_prog_STRIP 7799 if test -n "$STRIP"; then 7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7801 printf "%s\n" "$STRIP" >&6; } 7802 else 7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7804 printf "%s\n" "no" >&6; } 7805 fi 7806 7807 7808 fi 7809 if test -z "$ac_cv_prog_STRIP"; then 7810 ac_ct_STRIP=$STRIP 7811 # Extract the first word of "strip", so it can be a program name with args. 7812 set dummy strip; ac_word=$2 7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7814 printf %s "checking for $ac_word... " >&6; } 7815 if test ${ac_cv_prog_ac_ct_STRIP+y} 7816 then : 7817 printf %s "(cached) " >&6 7818 else $as_nop 7819 if test -n "$ac_ct_STRIP"; then 7820 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7821 else 7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7823 for as_dir in $PATH 7824 do 7825 IFS=$as_save_IFS 7826 case $as_dir in #((( 7827 '') as_dir=./ ;; 7828 */) ;; 7829 *) as_dir=$as_dir/ ;; 7830 esac 7831 for ac_exec_ext in '' $ac_executable_extensions; do 7832 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7833 ac_cv_prog_ac_ct_STRIP="strip" 7834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7835 break 2 7836 fi 7837 done 7838 done 7839 IFS=$as_save_IFS 7840 7841 fi 7842 fi 7843 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7844 if test -n "$ac_ct_STRIP"; then 7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7846 printf "%s\n" "$ac_ct_STRIP" >&6; } 7847 else 7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7849 printf "%s\n" "no" >&6; } 7850 fi 7851 7852 if test "x$ac_ct_STRIP" = x; then 7853 STRIP=":" 7854 else 7855 case $cross_compiling:$ac_tool_warned in 7856 yes:) 7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7858 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7859 ac_tool_warned=yes ;; 7860 esac 7861 STRIP=$ac_ct_STRIP 7862 fi 7863 else 7864 STRIP="$ac_cv_prog_STRIP" 7865 fi 7866 7867 test -z "$STRIP" && STRIP=: 7868 7869 7870 7871 7872 7873 7874 if test -n "$ac_tool_prefix"; then 7875 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7876 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7878 printf %s "checking for $ac_word... " >&6; } 7879 if test ${ac_cv_prog_RANLIB+y} 7880 then : 7881 printf %s "(cached) " >&6 7882 else $as_nop 7883 if test -n "$RANLIB"; then 7884 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7885 else 7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7887 for as_dir in $PATH 7888 do 7889 IFS=$as_save_IFS 7890 case $as_dir in #((( 7891 '') as_dir=./ ;; 7892 */) ;; 7893 *) as_dir=$as_dir/ ;; 7894 esac 7895 for ac_exec_ext in '' $ac_executable_extensions; do 7896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7897 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7899 break 2 7900 fi 7901 done 7902 done 7903 IFS=$as_save_IFS 7904 7905 fi 7906 fi 7907 RANLIB=$ac_cv_prog_RANLIB 7908 if test -n "$RANLIB"; then 7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7910 printf "%s\n" "$RANLIB" >&6; } 7911 else 7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7913 printf "%s\n" "no" >&6; } 7914 fi 7915 7916 7917 fi 7918 if test -z "$ac_cv_prog_RANLIB"; then 7919 ac_ct_RANLIB=$RANLIB 7920 # Extract the first word of "ranlib", so it can be a program name with args. 7921 set dummy ranlib; ac_word=$2 7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7923 printf %s "checking for $ac_word... " >&6; } 7924 if test ${ac_cv_prog_ac_ct_RANLIB+y} 7925 then : 7926 printf %s "(cached) " >&6 7927 else $as_nop 7928 if test -n "$ac_ct_RANLIB"; then 7929 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7930 else 7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7932 for as_dir in $PATH 7933 do 7934 IFS=$as_save_IFS 7935 case $as_dir in #((( 7936 '') as_dir=./ ;; 7937 */) ;; 7938 *) as_dir=$as_dir/ ;; 7939 esac 7940 for ac_exec_ext in '' $ac_executable_extensions; do 7941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7942 ac_cv_prog_ac_ct_RANLIB="ranlib" 7943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7944 break 2 7945 fi 7946 done 7947 done 7948 IFS=$as_save_IFS 7949 7950 fi 7951 fi 7952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7953 if test -n "$ac_ct_RANLIB"; then 7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7955 printf "%s\n" "$ac_ct_RANLIB" >&6; } 7956 else 7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7958 printf "%s\n" "no" >&6; } 7959 fi 7960 7961 if test "x$ac_ct_RANLIB" = x; then 7962 RANLIB=":" 7963 else 7964 case $cross_compiling:$ac_tool_warned in 7965 yes:) 7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7967 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7968 ac_tool_warned=yes ;; 7969 esac 7970 RANLIB=$ac_ct_RANLIB 7971 fi 7972 else 7973 RANLIB="$ac_cv_prog_RANLIB" 7974 fi 7975 7976 test -z "$RANLIB" && RANLIB=: 7977 7978 7979 7980 7981 7982 7983 # Determine commands to create old-style static archives. 7984 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7985 old_postinstall_cmds='chmod 644 $oldlib' 7986 old_postuninstall_cmds= 7987 7988 if test -n "$RANLIB"; then 7989 case $host_os in 7990 bitrig* | openbsd*) 7991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7992 ;; 7993 *) 7994 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7995 ;; 7996 esac 7997 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7998 fi 7999 8000 case $host_os in 8001 darwin*) 8002 lock_old_archive_extraction=yes ;; 8003 *) 8004 lock_old_archive_extraction=no ;; 8005 esac 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 8044 8045 # If no C compiler was specified, use CC. 8046 LTCC=${LTCC-"$CC"} 8047 8048 # If no C compiler flags were specified, use CFLAGS. 8049 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8050 8051 # Allow CC to be a program name with arguments. 8052 compiler=$CC 8053 8054 8055 # Check for command to grab the raw symbol name followed by C symbol from nm. 8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8057 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 8058 if test ${lt_cv_sys_global_symbol_pipe+y} 8059 then : 8060 printf %s "(cached) " >&6 8061 else $as_nop 8062 8063 # These are sane defaults that work on at least a few old systems. 8064 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 8065 8066 # Character class describing NM global symbol codes. 8067 symcode='[BCDEGRST]' 8068 8069 # Regexp to match symbols that can be accessed directly from C. 8070 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8071 8072 # Define system-specific variables. 8073 case $host_os in 8074 aix*) 8075 symcode='[BCDT]' 8076 ;; 8077 cygwin* | mingw* | pw32* | cegcc*) 8078 symcode='[ABCDGISTW]' 8079 ;; 8080 hpux*) 8081 if test ia64 = "$host_cpu"; then 8082 symcode='[ABCDEGRST]' 8083 fi 8084 ;; 8085 irix* | nonstopux*) 8086 symcode='[BCDEGRST]' 8087 ;; 8088 osf*) 8089 symcode='[BCDEGQRST]' 8090 ;; 8091 solaris*) 8092 symcode='[BDRT]' 8093 ;; 8094 sco3.2v5*) 8095 symcode='[DT]' 8096 ;; 8097 sysv4.2uw2*) 8098 symcode='[DT]' 8099 ;; 8100 sysv5* | sco5v6* | unixware* | OpenUNIX*) 8101 symcode='[ABDT]' 8102 ;; 8103 sysv4) 8104 symcode='[DFNSTU]' 8105 ;; 8106 esac 8107 8108 # If we're using GNU nm, then use its standard symbol codes. 8109 case `$NM -V 2>&1` in 8110 *GNU* | *'with BFD'*) 8111 symcode='[ABCDGIRSTW]' ;; 8112 esac 8113 8114 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8115 # Gets list of data symbols to import. 8116 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 8117 # Adjust the below global symbol transforms to fixup imported variables. 8118 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8119 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8120 lt_c_name_lib_hook="\ 8121 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8122 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8123 else 8124 # Disable hooks by default. 8125 lt_cv_sys_global_symbol_to_import= 8126 lt_cdecl_hook= 8127 lt_c_name_hook= 8128 lt_c_name_lib_hook= 8129 fi 8130 8131 # Transform an extracted symbol line into a proper C declaration. 8132 # Some systems (esp. on ia64) link data and code symbols differently, 8133 # so use this general approach. 8134 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 8135 $lt_cdecl_hook\ 8136 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8137 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8138 8139 # Transform an extracted symbol line into symbol name and symbol address 8140 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 8141 $lt_c_name_hook\ 8142 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8143 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8144 8145 # Transform an extracted symbol line into symbol name with lib prefix and 8146 # symbol address. 8147 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 8148 $lt_c_name_lib_hook\ 8149 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8150 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8151 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8152 8153 # Handle CRLF in mingw tool chain 8154 opt_cr= 8155 case $build_os in 8156 mingw*) 8157 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8158 ;; 8159 esac 8160 8161 # Try without a prefix underscore, then with it. 8162 for ac_symprfx in "" "_"; do 8163 8164 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8165 symxfrm="\\1 $ac_symprfx\\2 \\2" 8166 8167 # Write the raw and C identifiers. 8168 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8169 # Fake it for dumpbin and say T for any non-static function, 8170 # D for any global variable and I for any imported variable. 8171 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 8172 # which start with @ or ?. 8173 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8174 " {last_section=section; section=\$ 3};"\ 8175 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8176 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8177 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8178 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8179 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8180 " \$ 0!~/External *\|/{next};"\ 8181 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8182 " {if(hide[section]) next};"\ 8183 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8184 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8185 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8186 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8187 " ' prfx=^$ac_symprfx" 8188 else 8189 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8190 fi 8191 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 8192 8193 # Check to see that the pipe works correctly. 8194 pipe_works=no 8195 8196 rm -f conftest* 8197 cat > conftest.$ac_ext <<_LT_EOF 8198 #ifdef __cplusplus 8199 extern "C" { 8200 #endif 8201 char nm_test_var; 8202 void nm_test_func(void); 8203 void nm_test_func(void){} 8204 #ifdef __cplusplus 8205 } 8206 #endif 8207 int main(){nm_test_var='a';nm_test_func();return(0);} 8208 _LT_EOF 8209 8210 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8211 (eval $ac_compile) 2>&5 8212 ac_status=$? 8213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8214 test $ac_status = 0; }; then 8215 # Now try to grab the symbols. 8216 nlist=conftest.nm 8217 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 8218 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 8219 # Try sorting and uniquifying the output. 8220 if sort "$nlist" | uniq > "$nlist"T; then 8221 mv -f "$nlist"T "$nlist" 8222 else 8223 rm -f "$nlist"T 8224 fi 8225 8226 # Make sure that we snagged all the symbols we need. 8227 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8228 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8229 cat <<_LT_EOF > conftest.$ac_ext 8230 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8231 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8232 /* DATA imports from DLLs on WIN32 can't be const, because runtime 8233 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8234 # define LT_DLSYM_CONST 8235 #elif defined __osf__ 8236 /* This system does not cope well with relocations in const data. */ 8237 # define LT_DLSYM_CONST 8238 #else 8239 # define LT_DLSYM_CONST const 8240 #endif 8241 8242 #ifdef __cplusplus 8243 extern "C" { 8244 #endif 8245 8246 _LT_EOF 8247 # Now generate the symbol file. 8248 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8249 8250 cat <<_LT_EOF >> conftest.$ac_ext 8251 8252 /* The mapping between symbol names and symbols. */ 8253 LT_DLSYM_CONST struct { 8254 const char *name; 8255 void *address; 8256 } 8257 lt__PROGRAM__LTX_preloaded_symbols[] = 8258 { 8259 { "@PROGRAM@", (void *) 0 }, 8260 _LT_EOF 8261 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8262 cat <<\_LT_EOF >> conftest.$ac_ext 8263 {0, (void *) 0} 8264 }; 8265 8266 /* This works around a problem in FreeBSD linker */ 8267 #ifdef FREEBSD_WORKAROUND 8268 static const void *lt_preloaded_setup() { 8269 return lt__PROGRAM__LTX_preloaded_symbols; 8270 } 8271 #endif 8272 8273 #ifdef __cplusplus 8274 } 8275 #endif 8276 _LT_EOF 8277 # Now try linking the two files. 8278 mv conftest.$ac_objext conftstm.$ac_objext 8279 lt_globsym_save_LIBS=$LIBS 8280 lt_globsym_save_CFLAGS=$CFLAGS 8281 LIBS=conftstm.$ac_objext 8282 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8284 (eval $ac_link) 2>&5 8285 ac_status=$? 8286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8287 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8288 pipe_works=yes 8289 fi 8290 LIBS=$lt_globsym_save_LIBS 8291 CFLAGS=$lt_globsym_save_CFLAGS 8292 else 8293 echo "cannot find nm_test_func in $nlist" >&5 8294 fi 8295 else 8296 echo "cannot find nm_test_var in $nlist" >&5 8297 fi 8298 else 8299 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8300 fi 8301 else 8302 echo "$progname: failed program was:" >&5 8303 cat conftest.$ac_ext >&5 8304 fi 8305 rm -rf conftest* conftst* 8306 8307 # Do not use the global_symbol_pipe unless it works. 8308 if test yes = "$pipe_works"; then 8309 break 8310 else 8311 lt_cv_sys_global_symbol_pipe= 8312 fi 8313 done 8314 8315 fi 8316 8317 if test -z "$lt_cv_sys_global_symbol_pipe"; then 8318 lt_cv_sys_global_symbol_to_cdecl= 8319 fi 8320 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8322 printf "%s\n" "failed" >&6; } 8323 else 8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8325 printf "%s\n" "ok" >&6; } 8326 fi 8327 8328 # Response file support. 8329 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8330 nm_file_list_spec='@' 8331 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8332 nm_file_list_spec='@' 8333 fi 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 8370 8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8372 printf %s "checking for sysroot... " >&6; } 8373 8374 # Check whether --with-sysroot was given. 8375 if test ${with_sysroot+y} 8376 then : 8377 withval=$with_sysroot; 8378 else $as_nop 8379 with_sysroot=no 8380 fi 8381 8382 8383 lt_sysroot= 8384 case $with_sysroot in #( 8385 yes) 8386 if test yes = "$GCC"; then 8387 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8388 fi 8389 ;; #( 8390 /*) 8391 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 8392 ;; #( 8393 no|'') 8394 ;; #( 8395 *) 8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8397 printf "%s\n" "$with_sysroot" >&6; } 8398 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8399 ;; 8400 esac 8401 8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8403 printf "%s\n" "${lt_sysroot:-no}" >&6; } 8404 8405 8406 8407 8408 8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8410 printf %s "checking for a working dd... " >&6; } 8411 if test ${ac_cv_path_lt_DD+y} 8412 then : 8413 printf %s "(cached) " >&6 8414 else $as_nop 8415 printf 0123456789abcdef0123456789abcdef >conftest.i 8416 cat conftest.i conftest.i >conftest2.i 8417 : ${lt_DD:=$DD} 8418 if test -z "$lt_DD"; then 8419 ac_path_lt_DD_found=false 8420 # Loop through the user's path and test for each of PROGNAME-LIST 8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8422 for as_dir in $PATH 8423 do 8424 IFS=$as_save_IFS 8425 case $as_dir in #((( 8426 '') as_dir=./ ;; 8427 */) ;; 8428 *) as_dir=$as_dir/ ;; 8429 esac 8430 for ac_prog in dd 8431 do 8432 for ac_exec_ext in '' $ac_executable_extensions; do 8433 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8434 as_fn_executable_p "$ac_path_lt_DD" || continue 8435 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8436 cmp -s conftest.i conftest.out \ 8437 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8438 fi 8439 $ac_path_lt_DD_found && break 3 8440 done 8441 done 8442 done 8443 IFS=$as_save_IFS 8444 if test -z "$ac_cv_path_lt_DD"; then 8445 : 8446 fi 8447 else 8448 ac_cv_path_lt_DD=$lt_DD 8449 fi 8450 8451 rm -f conftest.i conftest2.i conftest.out 8452 fi 8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8454 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8455 8456 8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8458 printf %s "checking how to truncate binary pipes... " >&6; } 8459 if test ${lt_cv_truncate_bin+y} 8460 then : 8461 printf %s "(cached) " >&6 8462 else $as_nop 8463 printf 0123456789abcdef0123456789abcdef >conftest.i 8464 cat conftest.i conftest.i >conftest2.i 8465 lt_cv_truncate_bin= 8466 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8467 cmp -s conftest.i conftest.out \ 8468 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8469 fi 8470 rm -f conftest.i conftest2.i conftest.out 8471 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8472 fi 8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8474 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8475 8476 8477 8478 8479 8480 8481 8482 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8483 func_cc_basename () 8484 { 8485 for cc_temp in $*""; do 8486 case $cc_temp in 8487 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8488 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8489 \-*) ;; 8490 *) break;; 8491 esac 8492 done 8493 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8494 } 8495 8496 # Check whether --enable-libtool-lock was given. 8497 if test ${enable_libtool_lock+y} 8498 then : 8499 enableval=$enable_libtool_lock; 8500 fi 8501 8502 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8503 8504 # Some flags need to be propagated to the compiler or linker for good 8505 # libtool support. 8506 case $host in 8507 ia64-*-hpux*) 8508 # Find out what ABI is being produced by ac_compile, and set mode 8509 # options accordingly. 8510 echo 'int i;' > conftest.$ac_ext 8511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8512 (eval $ac_compile) 2>&5 8513 ac_status=$? 8514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8515 test $ac_status = 0; }; then 8516 case `$FILECMD conftest.$ac_objext` in 8517 *ELF-32*) 8518 HPUX_IA64_MODE=32 8519 ;; 8520 *ELF-64*) 8521 HPUX_IA64_MODE=64 8522 ;; 8523 esac 8524 fi 8525 rm -rf conftest* 8526 ;; 8527 *-*-irix6*) 8528 # Find out what ABI is being produced by ac_compile, and set linker 8529 # options accordingly. 8530 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8532 (eval $ac_compile) 2>&5 8533 ac_status=$? 8534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8535 test $ac_status = 0; }; then 8536 if test yes = "$lt_cv_prog_gnu_ld"; then 8537 case `$FILECMD conftest.$ac_objext` in 8538 *32-bit*) 8539 LD="${LD-ld} -melf32bsmip" 8540 ;; 8541 *N32*) 8542 LD="${LD-ld} -melf32bmipn32" 8543 ;; 8544 *64-bit*) 8545 LD="${LD-ld} -melf64bmip" 8546 ;; 8547 esac 8548 else 8549 case `$FILECMD conftest.$ac_objext` in 8550 *32-bit*) 8551 LD="${LD-ld} -32" 8552 ;; 8553 *N32*) 8554 LD="${LD-ld} -n32" 8555 ;; 8556 *64-bit*) 8557 LD="${LD-ld} -64" 8558 ;; 8559 esac 8560 fi 8561 fi 8562 rm -rf conftest* 8563 ;; 8564 8565 mips64*-*linux*) 8566 # Find out what ABI is being produced by ac_compile, and set linker 8567 # options accordingly. 8568 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8569 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8570 (eval $ac_compile) 2>&5 8571 ac_status=$? 8572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8573 test $ac_status = 0; }; then 8574 emul=elf 8575 case `$FILECMD conftest.$ac_objext` in 8576 *32-bit*) 8577 emul="${emul}32" 8578 ;; 8579 *64-bit*) 8580 emul="${emul}64" 8581 ;; 8582 esac 8583 case `$FILECMD conftest.$ac_objext` in 8584 *MSB*) 8585 emul="${emul}btsmip" 8586 ;; 8587 *LSB*) 8588 emul="${emul}ltsmip" 8589 ;; 8590 esac 8591 case `$FILECMD conftest.$ac_objext` in 8592 *N32*) 8593 emul="${emul}n32" 8594 ;; 8595 esac 8596 LD="${LD-ld} -m $emul" 8597 fi 8598 rm -rf conftest* 8599 ;; 8600 8601 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8602 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8603 # Find out what ABI is being produced by ac_compile, and set linker 8604 # options accordingly. Note that the listed cases only cover the 8605 # situations where additional linker options are needed (such as when 8606 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8607 # vice versa); the common cases where no linker options are needed do 8608 # not appear in the list. 8609 echo 'int i;' > conftest.$ac_ext 8610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8611 (eval $ac_compile) 2>&5 8612 ac_status=$? 8613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8614 test $ac_status = 0; }; then 8615 case `$FILECMD conftest.o` in 8616 *32-bit*) 8617 case $host in 8618 x86_64-*kfreebsd*-gnu) 8619 LD="${LD-ld} -m elf_i386_fbsd" 8620 ;; 8621 x86_64-*linux*) 8622 case `$FILECMD conftest.o` in 8623 *x86-64*) 8624 LD="${LD-ld} -m elf32_x86_64" 8625 ;; 8626 *) 8627 LD="${LD-ld} -m elf_i386" 8628 ;; 8629 esac 8630 ;; 8631 powerpc64le-*linux*) 8632 LD="${LD-ld} -m elf32lppclinux" 8633 ;; 8634 powerpc64-*linux*) 8635 LD="${LD-ld} -m elf32ppclinux" 8636 ;; 8637 s390x-*linux*) 8638 LD="${LD-ld} -m elf_s390" 8639 ;; 8640 sparc64-*linux*) 8641 LD="${LD-ld} -m elf32_sparc" 8642 ;; 8643 esac 8644 ;; 8645 *64-bit*) 8646 case $host in 8647 x86_64-*kfreebsd*-gnu) 8648 LD="${LD-ld} -m elf_x86_64_fbsd" 8649 ;; 8650 x86_64-*linux*) 8651 LD="${LD-ld} -m elf_x86_64" 8652 ;; 8653 powerpcle-*linux*) 8654 LD="${LD-ld} -m elf64lppc" 8655 ;; 8656 powerpc-*linux*) 8657 LD="${LD-ld} -m elf64ppc" 8658 ;; 8659 s390*-*linux*|s390*-*tpf*) 8660 LD="${LD-ld} -m elf64_s390" 8661 ;; 8662 sparc*-*linux*) 8663 LD="${LD-ld} -m elf64_sparc" 8664 ;; 8665 esac 8666 ;; 8667 esac 8668 fi 8669 rm -rf conftest* 8670 ;; 8671 8672 *-*-sco3.2v5*) 8673 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8674 SAVE_CFLAGS=$CFLAGS 8675 CFLAGS="$CFLAGS -belf" 8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8677 printf %s "checking whether the C compiler needs -belf... " >&6; } 8678 if test ${lt_cv_cc_needs_belf+y} 8679 then : 8680 printf %s "(cached) " >&6 8681 else $as_nop 8682 ac_ext=c 8683 ac_cpp='$CPP $CPPFLAGS' 8684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8686 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8687 8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8689 /* end confdefs.h. */ 8690 8691 int 8692 main (void) 8693 { 8694 8695 ; 8696 return 0; 8697 } 8698 _ACEOF 8699 if ac_fn_c_try_link "$LINENO" 8700 then : 8701 lt_cv_cc_needs_belf=yes 8702 else $as_nop 8703 lt_cv_cc_needs_belf=no 8704 fi 8705 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8706 conftest$ac_exeext conftest.$ac_ext 8707 ac_ext=c 8708 ac_cpp='$CPP $CPPFLAGS' 8709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8711 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8712 8713 fi 8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8715 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8716 if test yes != "$lt_cv_cc_needs_belf"; then 8717 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8718 CFLAGS=$SAVE_CFLAGS 8719 fi 8720 ;; 8721 *-*solaris*) 8722 # Find out what ABI is being produced by ac_compile, and set linker 8723 # options accordingly. 8724 echo 'int i;' > conftest.$ac_ext 8725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8726 (eval $ac_compile) 2>&5 8727 ac_status=$? 8728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8729 test $ac_status = 0; }; then 8730 case `$FILECMD conftest.o` in 8731 *64-bit*) 8732 case $lt_cv_prog_gnu_ld in 8733 yes*) 8734 case $host in 8735 i?86-*-solaris*|x86_64-*-solaris*) 8736 LD="${LD-ld} -m elf_x86_64" 8737 ;; 8738 sparc*-*-solaris*) 8739 LD="${LD-ld} -m elf64_sparc" 8740 ;; 8741 esac 8742 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8743 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8744 LD=${LD-ld}_sol2 8745 fi 8746 ;; 8747 *) 8748 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8749 LD="${LD-ld} -64" 8750 fi 8751 ;; 8752 esac 8753 ;; 8754 esac 8755 fi 8756 rm -rf conftest* 8757 ;; 8758 esac 8759 8760 need_locks=$enable_libtool_lock 8761 8762 if test -n "$ac_tool_prefix"; then 8763 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8764 set dummy ${ac_tool_prefix}mt; ac_word=$2 8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8766 printf %s "checking for $ac_word... " >&6; } 8767 if test ${ac_cv_prog_MANIFEST_TOOL+y} 8768 then : 8769 printf %s "(cached) " >&6 8770 else $as_nop 8771 if test -n "$MANIFEST_TOOL"; then 8772 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8773 else 8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8775 for as_dir in $PATH 8776 do 8777 IFS=$as_save_IFS 8778 case $as_dir in #((( 8779 '') as_dir=./ ;; 8780 */) ;; 8781 *) as_dir=$as_dir/ ;; 8782 esac 8783 for ac_exec_ext in '' $ac_executable_extensions; do 8784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8785 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8787 break 2 8788 fi 8789 done 8790 done 8791 IFS=$as_save_IFS 8792 8793 fi 8794 fi 8795 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8796 if test -n "$MANIFEST_TOOL"; then 8797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8798 printf "%s\n" "$MANIFEST_TOOL" >&6; } 8799 else 8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8801 printf "%s\n" "no" >&6; } 8802 fi 8803 8804 8805 fi 8806 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8807 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8808 # Extract the first word of "mt", so it can be a program name with args. 8809 set dummy mt; ac_word=$2 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8811 printf %s "checking for $ac_word... " >&6; } 8812 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8813 then : 8814 printf %s "(cached) " >&6 8815 else $as_nop 8816 if test -n "$ac_ct_MANIFEST_TOOL"; then 8817 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8818 else 8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8820 for as_dir in $PATH 8821 do 8822 IFS=$as_save_IFS 8823 case $as_dir in #((( 8824 '') as_dir=./ ;; 8825 */) ;; 8826 *) as_dir=$as_dir/ ;; 8827 esac 8828 for ac_exec_ext in '' $ac_executable_extensions; do 8829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8830 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8832 break 2 8833 fi 8834 done 8835 done 8836 IFS=$as_save_IFS 8837 8838 fi 8839 fi 8840 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8841 if test -n "$ac_ct_MANIFEST_TOOL"; then 8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8843 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8844 else 8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8846 printf "%s\n" "no" >&6; } 8847 fi 8848 8849 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8850 MANIFEST_TOOL=":" 8851 else 8852 case $cross_compiling:$ac_tool_warned in 8853 yes:) 8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8855 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8856 ac_tool_warned=yes ;; 8857 esac 8858 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8859 fi 8860 else 8861 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8862 fi 8863 8864 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8866 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8867 if test ${lt_cv_path_mainfest_tool+y} 8868 then : 8869 printf %s "(cached) " >&6 8870 else $as_nop 8871 lt_cv_path_mainfest_tool=no 8872 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8873 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8874 cat conftest.err >&5 8875 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8876 lt_cv_path_mainfest_tool=yes 8877 fi 8878 rm -f conftest* 8879 fi 8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8881 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8882 if test yes != "$lt_cv_path_mainfest_tool"; then 8883 MANIFEST_TOOL=: 8884 fi 8885 8886 8887 8888 8889 8890 8891 case $host_os in 8892 rhapsody* | darwin*) 8893 if test -n "$ac_tool_prefix"; then 8894 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8895 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8897 printf %s "checking for $ac_word... " >&6; } 8898 if test ${ac_cv_prog_DSYMUTIL+y} 8899 then : 8900 printf %s "(cached) " >&6 8901 else $as_nop 8902 if test -n "$DSYMUTIL"; then 8903 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8904 else 8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8906 for as_dir in $PATH 8907 do 8908 IFS=$as_save_IFS 8909 case $as_dir in #((( 8910 '') as_dir=./ ;; 8911 */) ;; 8912 *) as_dir=$as_dir/ ;; 8913 esac 8914 for ac_exec_ext in '' $ac_executable_extensions; do 8915 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8916 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8918 break 2 8919 fi 8920 done 8921 done 8922 IFS=$as_save_IFS 8923 8924 fi 8925 fi 8926 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8927 if test -n "$DSYMUTIL"; then 8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8929 printf "%s\n" "$DSYMUTIL" >&6; } 8930 else 8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8932 printf "%s\n" "no" >&6; } 8933 fi 8934 8935 8936 fi 8937 if test -z "$ac_cv_prog_DSYMUTIL"; then 8938 ac_ct_DSYMUTIL=$DSYMUTIL 8939 # Extract the first word of "dsymutil", so it can be a program name with args. 8940 set dummy dsymutil; ac_word=$2 8941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8942 printf %s "checking for $ac_word... " >&6; } 8943 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8944 then : 8945 printf %s "(cached) " >&6 8946 else $as_nop 8947 if test -n "$ac_ct_DSYMUTIL"; then 8948 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8949 else 8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8951 for as_dir in $PATH 8952 do 8953 IFS=$as_save_IFS 8954 case $as_dir in #((( 8955 '') as_dir=./ ;; 8956 */) ;; 8957 *) as_dir=$as_dir/ ;; 8958 esac 8959 for ac_exec_ext in '' $ac_executable_extensions; do 8960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8961 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8963 break 2 8964 fi 8965 done 8966 done 8967 IFS=$as_save_IFS 8968 8969 fi 8970 fi 8971 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8972 if test -n "$ac_ct_DSYMUTIL"; then 8973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8974 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8975 else 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8977 printf "%s\n" "no" >&6; } 8978 fi 8979 8980 if test "x$ac_ct_DSYMUTIL" = x; then 8981 DSYMUTIL=":" 8982 else 8983 case $cross_compiling:$ac_tool_warned in 8984 yes:) 8985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8986 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8987 ac_tool_warned=yes ;; 8988 esac 8989 DSYMUTIL=$ac_ct_DSYMUTIL 8990 fi 8991 else 8992 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8993 fi 8994 8995 if test -n "$ac_tool_prefix"; then 8996 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8997 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8999 printf %s "checking for $ac_word... " >&6; } 9000 if test ${ac_cv_prog_NMEDIT+y} 9001 then : 9002 printf %s "(cached) " >&6 9003 else $as_nop 9004 if test -n "$NMEDIT"; then 9005 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9006 else 9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9008 for as_dir in $PATH 9009 do 9010 IFS=$as_save_IFS 9011 case $as_dir in #((( 9012 '') as_dir=./ ;; 9013 */) ;; 9014 *) as_dir=$as_dir/ ;; 9015 esac 9016 for ac_exec_ext in '' $ac_executable_extensions; do 9017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9018 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9020 break 2 9021 fi 9022 done 9023 done 9024 IFS=$as_save_IFS 9025 9026 fi 9027 fi 9028 NMEDIT=$ac_cv_prog_NMEDIT 9029 if test -n "$NMEDIT"; then 9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9031 printf "%s\n" "$NMEDIT" >&6; } 9032 else 9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9034 printf "%s\n" "no" >&6; } 9035 fi 9036 9037 9038 fi 9039 if test -z "$ac_cv_prog_NMEDIT"; then 9040 ac_ct_NMEDIT=$NMEDIT 9041 # Extract the first word of "nmedit", so it can be a program name with args. 9042 set dummy nmedit; ac_word=$2 9043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9044 printf %s "checking for $ac_word... " >&6; } 9045 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 9046 then : 9047 printf %s "(cached) " >&6 9048 else $as_nop 9049 if test -n "$ac_ct_NMEDIT"; then 9050 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9051 else 9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9053 for as_dir in $PATH 9054 do 9055 IFS=$as_save_IFS 9056 case $as_dir in #((( 9057 '') as_dir=./ ;; 9058 */) ;; 9059 *) as_dir=$as_dir/ ;; 9060 esac 9061 for ac_exec_ext in '' $ac_executable_extensions; do 9062 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9063 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9065 break 2 9066 fi 9067 done 9068 done 9069 IFS=$as_save_IFS 9070 9071 fi 9072 fi 9073 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9074 if test -n "$ac_ct_NMEDIT"; then 9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9076 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 9077 else 9078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9079 printf "%s\n" "no" >&6; } 9080 fi 9081 9082 if test "x$ac_ct_NMEDIT" = x; then 9083 NMEDIT=":" 9084 else 9085 case $cross_compiling:$ac_tool_warned in 9086 yes:) 9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9088 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9089 ac_tool_warned=yes ;; 9090 esac 9091 NMEDIT=$ac_ct_NMEDIT 9092 fi 9093 else 9094 NMEDIT="$ac_cv_prog_NMEDIT" 9095 fi 9096 9097 if test -n "$ac_tool_prefix"; then 9098 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9099 set dummy ${ac_tool_prefix}lipo; ac_word=$2 9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9101 printf %s "checking for $ac_word... " >&6; } 9102 if test ${ac_cv_prog_LIPO+y} 9103 then : 9104 printf %s "(cached) " >&6 9105 else $as_nop 9106 if test -n "$LIPO"; then 9107 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9108 else 9109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9110 for as_dir in $PATH 9111 do 9112 IFS=$as_save_IFS 9113 case $as_dir in #((( 9114 '') as_dir=./ ;; 9115 */) ;; 9116 *) as_dir=$as_dir/ ;; 9117 esac 9118 for ac_exec_ext in '' $ac_executable_extensions; do 9119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9120 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9122 break 2 9123 fi 9124 done 9125 done 9126 IFS=$as_save_IFS 9127 9128 fi 9129 fi 9130 LIPO=$ac_cv_prog_LIPO 9131 if test -n "$LIPO"; then 9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9133 printf "%s\n" "$LIPO" >&6; } 9134 else 9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9136 printf "%s\n" "no" >&6; } 9137 fi 9138 9139 9140 fi 9141 if test -z "$ac_cv_prog_LIPO"; then 9142 ac_ct_LIPO=$LIPO 9143 # Extract the first word of "lipo", so it can be a program name with args. 9144 set dummy lipo; ac_word=$2 9145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9146 printf %s "checking for $ac_word... " >&6; } 9147 if test ${ac_cv_prog_ac_ct_LIPO+y} 9148 then : 9149 printf %s "(cached) " >&6 9150 else $as_nop 9151 if test -n "$ac_ct_LIPO"; then 9152 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9153 else 9154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9155 for as_dir in $PATH 9156 do 9157 IFS=$as_save_IFS 9158 case $as_dir in #((( 9159 '') as_dir=./ ;; 9160 */) ;; 9161 *) as_dir=$as_dir/ ;; 9162 esac 9163 for ac_exec_ext in '' $ac_executable_extensions; do 9164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9165 ac_cv_prog_ac_ct_LIPO="lipo" 9166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9167 break 2 9168 fi 9169 done 9170 done 9171 IFS=$as_save_IFS 9172 9173 fi 9174 fi 9175 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9176 if test -n "$ac_ct_LIPO"; then 9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9178 printf "%s\n" "$ac_ct_LIPO" >&6; } 9179 else 9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9181 printf "%s\n" "no" >&6; } 9182 fi 9183 9184 if test "x$ac_ct_LIPO" = x; then 9185 LIPO=":" 9186 else 9187 case $cross_compiling:$ac_tool_warned in 9188 yes:) 9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9190 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9191 ac_tool_warned=yes ;; 9192 esac 9193 LIPO=$ac_ct_LIPO 9194 fi 9195 else 9196 LIPO="$ac_cv_prog_LIPO" 9197 fi 9198 9199 if test -n "$ac_tool_prefix"; then 9200 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9201 set dummy ${ac_tool_prefix}otool; ac_word=$2 9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9203 printf %s "checking for $ac_word... " >&6; } 9204 if test ${ac_cv_prog_OTOOL+y} 9205 then : 9206 printf %s "(cached) " >&6 9207 else $as_nop 9208 if test -n "$OTOOL"; then 9209 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9210 else 9211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9212 for as_dir in $PATH 9213 do 9214 IFS=$as_save_IFS 9215 case $as_dir in #((( 9216 '') as_dir=./ ;; 9217 */) ;; 9218 *) as_dir=$as_dir/ ;; 9219 esac 9220 for ac_exec_ext in '' $ac_executable_extensions; do 9221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9222 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9224 break 2 9225 fi 9226 done 9227 done 9228 IFS=$as_save_IFS 9229 9230 fi 9231 fi 9232 OTOOL=$ac_cv_prog_OTOOL 9233 if test -n "$OTOOL"; then 9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9235 printf "%s\n" "$OTOOL" >&6; } 9236 else 9237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9238 printf "%s\n" "no" >&6; } 9239 fi 9240 9241 9242 fi 9243 if test -z "$ac_cv_prog_OTOOL"; then 9244 ac_ct_OTOOL=$OTOOL 9245 # Extract the first word of "otool", so it can be a program name with args. 9246 set dummy otool; ac_word=$2 9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9248 printf %s "checking for $ac_word... " >&6; } 9249 if test ${ac_cv_prog_ac_ct_OTOOL+y} 9250 then : 9251 printf %s "(cached) " >&6 9252 else $as_nop 9253 if test -n "$ac_ct_OTOOL"; then 9254 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9255 else 9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9257 for as_dir in $PATH 9258 do 9259 IFS=$as_save_IFS 9260 case $as_dir in #((( 9261 '') as_dir=./ ;; 9262 */) ;; 9263 *) as_dir=$as_dir/ ;; 9264 esac 9265 for ac_exec_ext in '' $ac_executable_extensions; do 9266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9267 ac_cv_prog_ac_ct_OTOOL="otool" 9268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9269 break 2 9270 fi 9271 done 9272 done 9273 IFS=$as_save_IFS 9274 9275 fi 9276 fi 9277 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9278 if test -n "$ac_ct_OTOOL"; then 9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9280 printf "%s\n" "$ac_ct_OTOOL" >&6; } 9281 else 9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9283 printf "%s\n" "no" >&6; } 9284 fi 9285 9286 if test "x$ac_ct_OTOOL" = x; then 9287 OTOOL=":" 9288 else 9289 case $cross_compiling:$ac_tool_warned in 9290 yes:) 9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9292 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9293 ac_tool_warned=yes ;; 9294 esac 9295 OTOOL=$ac_ct_OTOOL 9296 fi 9297 else 9298 OTOOL="$ac_cv_prog_OTOOL" 9299 fi 9300 9301 if test -n "$ac_tool_prefix"; then 9302 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9303 set dummy ${ac_tool_prefix}otool64; ac_word=$2 9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9305 printf %s "checking for $ac_word... " >&6; } 9306 if test ${ac_cv_prog_OTOOL64+y} 9307 then : 9308 printf %s "(cached) " >&6 9309 else $as_nop 9310 if test -n "$OTOOL64"; then 9311 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9312 else 9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9314 for as_dir in $PATH 9315 do 9316 IFS=$as_save_IFS 9317 case $as_dir in #((( 9318 '') as_dir=./ ;; 9319 */) ;; 9320 *) as_dir=$as_dir/ ;; 9321 esac 9322 for ac_exec_ext in '' $ac_executable_extensions; do 9323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9324 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9326 break 2 9327 fi 9328 done 9329 done 9330 IFS=$as_save_IFS 9331 9332 fi 9333 fi 9334 OTOOL64=$ac_cv_prog_OTOOL64 9335 if test -n "$OTOOL64"; then 9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9337 printf "%s\n" "$OTOOL64" >&6; } 9338 else 9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9340 printf "%s\n" "no" >&6; } 9341 fi 9342 9343 9344 fi 9345 if test -z "$ac_cv_prog_OTOOL64"; then 9346 ac_ct_OTOOL64=$OTOOL64 9347 # Extract the first word of "otool64", so it can be a program name with args. 9348 set dummy otool64; ac_word=$2 9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9350 printf %s "checking for $ac_word... " >&6; } 9351 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 9352 then : 9353 printf %s "(cached) " >&6 9354 else $as_nop 9355 if test -n "$ac_ct_OTOOL64"; then 9356 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9357 else 9358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9359 for as_dir in $PATH 9360 do 9361 IFS=$as_save_IFS 9362 case $as_dir in #((( 9363 '') as_dir=./ ;; 9364 */) ;; 9365 *) as_dir=$as_dir/ ;; 9366 esac 9367 for ac_exec_ext in '' $ac_executable_extensions; do 9368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9369 ac_cv_prog_ac_ct_OTOOL64="otool64" 9370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9371 break 2 9372 fi 9373 done 9374 done 9375 IFS=$as_save_IFS 9376 9377 fi 9378 fi 9379 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9380 if test -n "$ac_ct_OTOOL64"; then 9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9382 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 9383 else 9384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9385 printf "%s\n" "no" >&6; } 9386 fi 9387 9388 if test "x$ac_ct_OTOOL64" = x; then 9389 OTOOL64=":" 9390 else 9391 case $cross_compiling:$ac_tool_warned in 9392 yes:) 9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9394 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9395 ac_tool_warned=yes ;; 9396 esac 9397 OTOOL64=$ac_ct_OTOOL64 9398 fi 9399 else 9400 OTOOL64="$ac_cv_prog_OTOOL64" 9401 fi 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 9428 9429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9430 printf %s "checking for -single_module linker flag... " >&6; } 9431 if test ${lt_cv_apple_cc_single_mod+y} 9432 then : 9433 printf %s "(cached) " >&6 9434 else $as_nop 9435 lt_cv_apple_cc_single_mod=no 9436 if test -z "$LT_MULTI_MODULE"; then 9437 # By default we will add the -single_module flag. You can override 9438 # by either setting the environment variable LT_MULTI_MODULE 9439 # non-empty at configure time, or by adding -multi_module to the 9440 # link flags. 9441 rm -rf libconftest.dylib* 9442 echo "int foo(void){return 1;}" > conftest.c 9443 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9444 -dynamiclib -Wl,-single_module conftest.c" >&5 9445 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9446 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9447 _lt_result=$? 9448 # If there is a non-empty error log, and "single_module" 9449 # appears in it, assume the flag caused a linker warning 9450 if test -s conftest.err && $GREP single_module conftest.err; then 9451 cat conftest.err >&5 9452 # Otherwise, if the output was created with a 0 exit code from 9453 # the compiler, it worked. 9454 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9455 lt_cv_apple_cc_single_mod=yes 9456 else 9457 cat conftest.err >&5 9458 fi 9459 rm -rf libconftest.dylib* 9460 rm -f conftest.* 9461 fi 9462 fi 9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9464 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9465 9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9467 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9468 if test ${lt_cv_ld_exported_symbols_list+y} 9469 then : 9470 printf %s "(cached) " >&6 9471 else $as_nop 9472 lt_cv_ld_exported_symbols_list=no 9473 save_LDFLAGS=$LDFLAGS 9474 echo "_main" > conftest.sym 9475 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9477 /* end confdefs.h. */ 9478 9479 int 9480 main (void) 9481 { 9482 9483 ; 9484 return 0; 9485 } 9486 _ACEOF 9487 if ac_fn_c_try_link "$LINENO" 9488 then : 9489 lt_cv_ld_exported_symbols_list=yes 9490 else $as_nop 9491 lt_cv_ld_exported_symbols_list=no 9492 fi 9493 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9494 conftest$ac_exeext conftest.$ac_ext 9495 LDFLAGS=$save_LDFLAGS 9496 9497 fi 9498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9499 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9500 9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9502 printf %s "checking for -force_load linker flag... " >&6; } 9503 if test ${lt_cv_ld_force_load+y} 9504 then : 9505 printf %s "(cached) " >&6 9506 else $as_nop 9507 lt_cv_ld_force_load=no 9508 cat > conftest.c << _LT_EOF 9509 int forced_loaded() { return 2;} 9510 _LT_EOF 9511 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9512 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9513 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9514 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9515 echo "$RANLIB libconftest.a" >&5 9516 $RANLIB libconftest.a 2>&5 9517 cat > conftest.c << _LT_EOF 9518 int main() { return 0;} 9519 _LT_EOF 9520 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9521 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9522 _lt_result=$? 9523 if test -s conftest.err && $GREP force_load conftest.err; then 9524 cat conftest.err >&5 9525 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9526 lt_cv_ld_force_load=yes 9527 else 9528 cat conftest.err >&5 9529 fi 9530 rm -f conftest.err libconftest.a conftest conftest.c 9531 rm -rf conftest.dSYM 9532 9533 fi 9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9535 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9536 case $host_os in 9537 rhapsody* | darwin1.[012]) 9538 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9539 darwin1.*) 9540 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9541 darwin*) 9542 case $MACOSX_DEPLOYMENT_TARGET,$host in 9543 10.[012],*|,*powerpc*-darwin[5-8]*) 9544 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9545 *) 9546 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9547 esac 9548 ;; 9549 esac 9550 if test yes = "$lt_cv_apple_cc_single_mod"; then 9551 _lt_dar_single_mod='$single_module' 9552 fi 9553 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9554 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9555 else 9556 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9557 fi 9558 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9559 _lt_dsymutil='~$DSYMUTIL $lib || :' 9560 else 9561 _lt_dsymutil= 9562 fi 9563 ;; 9564 esac 9565 9566 # func_munge_path_list VARIABLE PATH 9567 # ----------------------------------- 9568 # VARIABLE is name of variable containing _space_ separated list of 9569 # directories to be munged by the contents of PATH, which is string 9570 # having a format: 9571 # "DIR[:DIR]:" 9572 # string "DIR[ DIR]" will be prepended to VARIABLE 9573 # ":DIR[:DIR]" 9574 # string "DIR[ DIR]" will be appended to VARIABLE 9575 # "DIRP[:DIRP]::[DIRA:]DIRA" 9576 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9577 # "DIRA[ DIRA]" will be appended to VARIABLE 9578 # "DIR[:DIR]" 9579 # VARIABLE will be replaced by "DIR[ DIR]" 9580 func_munge_path_list () 9581 { 9582 case x$2 in 9583 x) 9584 ;; 9585 *:) 9586 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9587 ;; 9588 x:*) 9589 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9590 ;; 9591 *::*) 9592 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9593 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9594 ;; 9595 *) 9596 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9597 ;; 9598 esac 9599 } 9600 9601 ac_header= ac_cache= 9602 for ac_item in $ac_header_c_list 9603 do 9604 if test $ac_cache; then 9605 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 9606 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 9607 printf "%s\n" "#define $ac_item 1" >> confdefs.h 9608 fi 9609 ac_header= ac_cache= 9610 elif test $ac_header; then 9611 ac_cache=$ac_item 9612 else 9613 ac_header=$ac_item 9614 fi 9615 done 9616 9617 9618 9619 9620 9621 9622 9623 9624 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 9625 then : 9626 9627 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 9628 9629 fi 9630 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9631 " 9632 if test "x$ac_cv_header_dlfcn_h" = xyes 9633 then : 9634 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9635 9636 fi 9637 9638 9639 9640 9641 9642 # Set options 9643 enable_win32_dll=yes 9644 9645 case $host in 9646 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9647 if test -n "$ac_tool_prefix"; then 9648 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 9649 set dummy ${ac_tool_prefix}as; ac_word=$2 9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9651 printf %s "checking for $ac_word... " >&6; } 9652 if test ${ac_cv_prog_AS+y} 9653 then : 9654 printf %s "(cached) " >&6 9655 else $as_nop 9656 if test -n "$AS"; then 9657 ac_cv_prog_AS="$AS" # Let the user override the test. 9658 else 9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9660 for as_dir in $PATH 9661 do 9662 IFS=$as_save_IFS 9663 case $as_dir in #((( 9664 '') as_dir=./ ;; 9665 */) ;; 9666 *) as_dir=$as_dir/ ;; 9667 esac 9668 for ac_exec_ext in '' $ac_executable_extensions; do 9669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9670 ac_cv_prog_AS="${ac_tool_prefix}as" 9671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9672 break 2 9673 fi 9674 done 9675 done 9676 IFS=$as_save_IFS 9677 9678 fi 9679 fi 9680 AS=$ac_cv_prog_AS 9681 if test -n "$AS"; then 9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 9683 printf "%s\n" "$AS" >&6; } 9684 else 9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9686 printf "%s\n" "no" >&6; } 9687 fi 9688 9689 9690 fi 9691 if test -z "$ac_cv_prog_AS"; then 9692 ac_ct_AS=$AS 9693 # Extract the first word of "as", so it can be a program name with args. 9694 set dummy as; ac_word=$2 9695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9696 printf %s "checking for $ac_word... " >&6; } 9697 if test ${ac_cv_prog_ac_ct_AS+y} 9698 then : 9699 printf %s "(cached) " >&6 9700 else $as_nop 9701 if test -n "$ac_ct_AS"; then 9702 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 9703 else 9704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9705 for as_dir in $PATH 9706 do 9707 IFS=$as_save_IFS 9708 case $as_dir in #((( 9709 '') as_dir=./ ;; 9710 */) ;; 9711 *) as_dir=$as_dir/ ;; 9712 esac 9713 for ac_exec_ext in '' $ac_executable_extensions; do 9714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9715 ac_cv_prog_ac_ct_AS="as" 9716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9717 break 2 9718 fi 9719 done 9720 done 9721 IFS=$as_save_IFS 9722 9723 fi 9724 fi 9725 ac_ct_AS=$ac_cv_prog_ac_ct_AS 9726 if test -n "$ac_ct_AS"; then 9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 9728 printf "%s\n" "$ac_ct_AS" >&6; } 9729 else 9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9731 printf "%s\n" "no" >&6; } 9732 fi 9733 9734 if test "x$ac_ct_AS" = x; then 9735 AS="false" 9736 else 9737 case $cross_compiling:$ac_tool_warned in 9738 yes:) 9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9740 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9741 ac_tool_warned=yes ;; 9742 esac 9743 AS=$ac_ct_AS 9744 fi 9745 else 9746 AS="$ac_cv_prog_AS" 9747 fi 9748 9749 if test -n "$ac_tool_prefix"; then 9750 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9751 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9753 printf %s "checking for $ac_word... " >&6; } 9754 if test ${ac_cv_prog_DLLTOOL+y} 9755 then : 9756 printf %s "(cached) " >&6 9757 else $as_nop 9758 if test -n "$DLLTOOL"; then 9759 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9760 else 9761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9762 for as_dir in $PATH 9763 do 9764 IFS=$as_save_IFS 9765 case $as_dir in #((( 9766 '') as_dir=./ ;; 9767 */) ;; 9768 *) as_dir=$as_dir/ ;; 9769 esac 9770 for ac_exec_ext in '' $ac_executable_extensions; do 9771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9772 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9774 break 2 9775 fi 9776 done 9777 done 9778 IFS=$as_save_IFS 9779 9780 fi 9781 fi 9782 DLLTOOL=$ac_cv_prog_DLLTOOL 9783 if test -n "$DLLTOOL"; then 9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9785 printf "%s\n" "$DLLTOOL" >&6; } 9786 else 9787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9788 printf "%s\n" "no" >&6; } 9789 fi 9790 9791 9792 fi 9793 if test -z "$ac_cv_prog_DLLTOOL"; then 9794 ac_ct_DLLTOOL=$DLLTOOL 9795 # Extract the first word of "dlltool", so it can be a program name with args. 9796 set dummy dlltool; ac_word=$2 9797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9798 printf %s "checking for $ac_word... " >&6; } 9799 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9800 then : 9801 printf %s "(cached) " >&6 9802 else $as_nop 9803 if test -n "$ac_ct_DLLTOOL"; then 9804 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9805 else 9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9807 for as_dir in $PATH 9808 do 9809 IFS=$as_save_IFS 9810 case $as_dir in #((( 9811 '') as_dir=./ ;; 9812 */) ;; 9813 *) as_dir=$as_dir/ ;; 9814 esac 9815 for ac_exec_ext in '' $ac_executable_extensions; do 9816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9817 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9819 break 2 9820 fi 9821 done 9822 done 9823 IFS=$as_save_IFS 9824 9825 fi 9826 fi 9827 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9828 if test -n "$ac_ct_DLLTOOL"; then 9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9830 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9831 else 9832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9833 printf "%s\n" "no" >&6; } 9834 fi 9835 9836 if test "x$ac_ct_DLLTOOL" = x; then 9837 DLLTOOL="false" 9838 else 9839 case $cross_compiling:$ac_tool_warned in 9840 yes:) 9841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9842 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9843 ac_tool_warned=yes ;; 9844 esac 9845 DLLTOOL=$ac_ct_DLLTOOL 9846 fi 9847 else 9848 DLLTOOL="$ac_cv_prog_DLLTOOL" 9849 fi 9850 9851 if test -n "$ac_tool_prefix"; then 9852 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9853 set dummy ${ac_tool_prefix}objdump; ac_word=$2 9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9855 printf %s "checking for $ac_word... " >&6; } 9856 if test ${ac_cv_prog_OBJDUMP+y} 9857 then : 9858 printf %s "(cached) " >&6 9859 else $as_nop 9860 if test -n "$OBJDUMP"; then 9861 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9862 else 9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9864 for as_dir in $PATH 9865 do 9866 IFS=$as_save_IFS 9867 case $as_dir in #((( 9868 '') as_dir=./ ;; 9869 */) ;; 9870 *) as_dir=$as_dir/ ;; 9871 esac 9872 for ac_exec_ext in '' $ac_executable_extensions; do 9873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9874 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9876 break 2 9877 fi 9878 done 9879 done 9880 IFS=$as_save_IFS 9881 9882 fi 9883 fi 9884 OBJDUMP=$ac_cv_prog_OBJDUMP 9885 if test -n "$OBJDUMP"; then 9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9887 printf "%s\n" "$OBJDUMP" >&6; } 9888 else 9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9890 printf "%s\n" "no" >&6; } 9891 fi 9892 9893 9894 fi 9895 if test -z "$ac_cv_prog_OBJDUMP"; then 9896 ac_ct_OBJDUMP=$OBJDUMP 9897 # Extract the first word of "objdump", so it can be a program name with args. 9898 set dummy objdump; ac_word=$2 9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9900 printf %s "checking for $ac_word... " >&6; } 9901 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9902 then : 9903 printf %s "(cached) " >&6 9904 else $as_nop 9905 if test -n "$ac_ct_OBJDUMP"; then 9906 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9907 else 9908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9909 for as_dir in $PATH 9910 do 9911 IFS=$as_save_IFS 9912 case $as_dir in #((( 9913 '') as_dir=./ ;; 9914 */) ;; 9915 *) as_dir=$as_dir/ ;; 9916 esac 9917 for ac_exec_ext in '' $ac_executable_extensions; do 9918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9919 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9921 break 2 9922 fi 9923 done 9924 done 9925 IFS=$as_save_IFS 9926 9927 fi 9928 fi 9929 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9930 if test -n "$ac_ct_OBJDUMP"; then 9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9932 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9933 else 9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9935 printf "%s\n" "no" >&6; } 9936 fi 9937 9938 if test "x$ac_ct_OBJDUMP" = x; then 9939 OBJDUMP="false" 9940 else 9941 case $cross_compiling:$ac_tool_warned in 9942 yes:) 9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9945 ac_tool_warned=yes ;; 9946 esac 9947 OBJDUMP=$ac_ct_OBJDUMP 9948 fi 9949 else 9950 OBJDUMP="$ac_cv_prog_OBJDUMP" 9951 fi 9952 9953 ;; 9954 esac 9955 9956 test -z "$AS" && AS=as 9957 9958 9959 9960 9961 9962 test -z "$DLLTOOL" && DLLTOOL=dlltool 9963 9964 9965 9966 9967 9968 test -z "$OBJDUMP" && OBJDUMP=objdump 9969 9970 9971 9972 9973 9974 9975 9976 enable_dlopen=no 9977 9978 9979 9980 # Check whether --enable-shared was given. 9981 if test ${enable_shared+y} 9982 then : 9983 enableval=$enable_shared; p=${PACKAGE-default} 9984 case $enableval in 9985 yes) enable_shared=yes ;; 9986 no) enable_shared=no ;; 9987 *) 9988 enable_shared=no 9989 # Look at the argument we got. We use all the common list separators. 9990 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9991 for pkg in $enableval; do 9992 IFS=$lt_save_ifs 9993 if test "X$pkg" = "X$p"; then 9994 enable_shared=yes 9995 fi 9996 done 9997 IFS=$lt_save_ifs 9998 ;; 9999 esac 10000 else $as_nop 10001 enable_shared=yes 10002 fi 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 # Check whether --enable-static was given. 10013 if test ${enable_static+y} 10014 then : 10015 enableval=$enable_static; p=${PACKAGE-default} 10016 case $enableval in 10017 yes) enable_static=yes ;; 10018 no) enable_static=no ;; 10019 *) 10020 enable_static=no 10021 # Look at the argument we got. We use all the common list separators. 10022 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10023 for pkg in $enableval; do 10024 IFS=$lt_save_ifs 10025 if test "X$pkg" = "X$p"; then 10026 enable_static=yes 10027 fi 10028 done 10029 IFS=$lt_save_ifs 10030 ;; 10031 esac 10032 else $as_nop 10033 enable_static=yes 10034 fi 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 # Check whether --with-pic was given. 10046 if test ${with_pic+y} 10047 then : 10048 withval=$with_pic; lt_p=${PACKAGE-default} 10049 case $withval in 10050 yes|no) pic_mode=$withval ;; 10051 *) 10052 pic_mode=default 10053 # Look at the argument we got. We use all the common list separators. 10054 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10055 for lt_pkg in $withval; do 10056 IFS=$lt_save_ifs 10057 if test "X$lt_pkg" = "X$lt_p"; then 10058 pic_mode=yes 10059 fi 10060 done 10061 IFS=$lt_save_ifs 10062 ;; 10063 esac 10064 else $as_nop 10065 pic_mode=default 10066 fi 10067 10068 10069 10070 10071 10072 10073 10074 10075 # Check whether --enable-fast-install was given. 10076 if test ${enable_fast_install+y} 10077 then : 10078 enableval=$enable_fast_install; p=${PACKAGE-default} 10079 case $enableval in 10080 yes) enable_fast_install=yes ;; 10081 no) enable_fast_install=no ;; 10082 *) 10083 enable_fast_install=no 10084 # Look at the argument we got. We use all the common list separators. 10085 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 10086 for pkg in $enableval; do 10087 IFS=$lt_save_ifs 10088 if test "X$pkg" = "X$p"; then 10089 enable_fast_install=yes 10090 fi 10091 done 10092 IFS=$lt_save_ifs 10093 ;; 10094 esac 10095 else $as_nop 10096 enable_fast_install=yes 10097 fi 10098 10099 10100 10101 10102 10103 10104 10105 10106 shared_archive_member_spec= 10107 case $host,$enable_shared in 10108 power*-*-aix[5-9]*,yes) 10109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 10110 printf %s "checking which variant of shared library versioning to provide... " >&6; } 10111 10112 # Check whether --with-aix-soname was given. 10113 if test ${with_aix_soname+y} 10114 then : 10115 withval=$with_aix_soname; case $withval in 10116 aix|svr4|both) 10117 ;; 10118 *) 10119 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 10120 ;; 10121 esac 10122 lt_cv_with_aix_soname=$with_aix_soname 10123 else $as_nop 10124 if test ${lt_cv_with_aix_soname+y} 10125 then : 10126 printf %s "(cached) " >&6 10127 else $as_nop 10128 lt_cv_with_aix_soname=aix 10129 fi 10130 10131 with_aix_soname=$lt_cv_with_aix_soname 10132 fi 10133 10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 10135 printf "%s\n" "$with_aix_soname" >&6; } 10136 if test aix != "$with_aix_soname"; then 10137 # For the AIX way of multilib, we name the shared archive member 10138 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 10139 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 10140 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 10141 # the AIX toolchain works better with OBJECT_MODE set (default 32). 10142 if test 64 = "${OBJECT_MODE-32}"; then 10143 shared_archive_member_spec=shr_64 10144 else 10145 shared_archive_member_spec=shr 10146 fi 10147 fi 10148 ;; 10149 *) 10150 with_aix_soname=aix 10151 ;; 10152 esac 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 # This can be used to rebuild libtool when needed 10164 LIBTOOL_DEPS=$ltmain 10165 10166 # Always use our own libtool. 10167 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 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 10196 10197 10198 test -z "$LN_S" && LN_S="ln -s" 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 if test -n "${ZSH_VERSION+set}"; then 10214 setopt NO_GLOB_SUBST 10215 fi 10216 10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10218 printf %s "checking for objdir... " >&6; } 10219 if test ${lt_cv_objdir+y} 10220 then : 10221 printf %s "(cached) " >&6 10222 else $as_nop 10223 rm -f .libs 2>/dev/null 10224 mkdir .libs 2>/dev/null 10225 if test -d .libs; then 10226 lt_cv_objdir=.libs 10227 else 10228 # MS-DOS does not allow filenames that begin with a dot. 10229 lt_cv_objdir=_libs 10230 fi 10231 rmdir .libs 2>/dev/null 10232 fi 10233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10234 printf "%s\n" "$lt_cv_objdir" >&6; } 10235 objdir=$lt_cv_objdir 10236 10237 10238 10239 10240 10241 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 10242 10243 10244 10245 10246 case $host_os in 10247 aix3*) 10248 # AIX sometimes has problems with the GCC collect2 program. For some 10249 # reason, if we set the COLLECT_NAMES environment variable, the problems 10250 # vanish in a puff of smoke. 10251 if test set != "${COLLECT_NAMES+set}"; then 10252 COLLECT_NAMES= 10253 export COLLECT_NAMES 10254 fi 10255 ;; 10256 esac 10257 10258 # Global variables: 10259 ofile=libtool 10260 can_build_shared=yes 10261 10262 # All known linkers require a '.a' archive for static linking (except MSVC and 10263 # ICC, which need '.lib'). 10264 libext=a 10265 10266 with_gnu_ld=$lt_cv_prog_gnu_ld 10267 10268 old_CC=$CC 10269 old_CFLAGS=$CFLAGS 10270 10271 # Set sane defaults for various variables 10272 test -z "$CC" && CC=cc 10273 test -z "$LTCC" && LTCC=$CC 10274 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10275 test -z "$LD" && LD=ld 10276 test -z "$ac_objext" && ac_objext=o 10277 10278 func_cc_basename $compiler 10279 cc_basename=$func_cc_basename_result 10280 10281 10282 # Only perform the check for file, if the check method requires it 10283 test -z "$MAGIC_CMD" && MAGIC_CMD=file 10284 case $deplibs_check_method in 10285 file_magic*) 10286 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10288 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 10289 if test ${lt_cv_path_MAGIC_CMD+y} 10290 then : 10291 printf %s "(cached) " >&6 10292 else $as_nop 10293 case $MAGIC_CMD in 10294 [\\/*] | ?:[\\/]*) 10295 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10296 ;; 10297 *) 10298 lt_save_MAGIC_CMD=$MAGIC_CMD 10299 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10300 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10301 for ac_dir in $ac_dummy; do 10302 IFS=$lt_save_ifs 10303 test -z "$ac_dir" && ac_dir=. 10304 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10305 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10306 if test -n "$file_magic_test_file"; then 10307 case $deplibs_check_method in 10308 "file_magic "*) 10309 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10310 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10311 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10312 $EGREP "$file_magic_regex" > /dev/null; then 10313 : 10314 else 10315 cat <<_LT_EOF 1>&2 10316 10317 *** Warning: the command libtool uses to detect shared libraries, 10318 *** $file_magic_cmd, produces output that libtool cannot recognize. 10319 *** The result is that libtool may fail to recognize shared libraries 10320 *** as such. This will affect the creation of libtool libraries that 10321 *** depend on shared libraries, but programs linked with such libtool 10322 *** libraries will work regardless of this problem. Nevertheless, you 10323 *** may want to report the problem to your system manager and/or to 10324 *** bug-libtool@gnu.org 10325 10326 _LT_EOF 10327 fi ;; 10328 esac 10329 fi 10330 break 10331 fi 10332 done 10333 IFS=$lt_save_ifs 10334 MAGIC_CMD=$lt_save_MAGIC_CMD 10335 ;; 10336 esac 10337 fi 10338 10339 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10340 if test -n "$MAGIC_CMD"; then 10341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10342 printf "%s\n" "$MAGIC_CMD" >&6; } 10343 else 10344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10345 printf "%s\n" "no" >&6; } 10346 fi 10347 10348 10349 10350 10351 10352 if test -z "$lt_cv_path_MAGIC_CMD"; then 10353 if test -n "$ac_tool_prefix"; then 10354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10355 printf %s "checking for file... " >&6; } 10356 if test ${lt_cv_path_MAGIC_CMD+y} 10357 then : 10358 printf %s "(cached) " >&6 10359 else $as_nop 10360 case $MAGIC_CMD in 10361 [\\/*] | ?:[\\/]*) 10362 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10363 ;; 10364 *) 10365 lt_save_MAGIC_CMD=$MAGIC_CMD 10366 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10367 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10368 for ac_dir in $ac_dummy; do 10369 IFS=$lt_save_ifs 10370 test -z "$ac_dir" && ac_dir=. 10371 if test -f "$ac_dir/file"; then 10372 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10373 if test -n "$file_magic_test_file"; then 10374 case $deplibs_check_method in 10375 "file_magic "*) 10376 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10377 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10378 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10379 $EGREP "$file_magic_regex" > /dev/null; then 10380 : 10381 else 10382 cat <<_LT_EOF 1>&2 10383 10384 *** Warning: the command libtool uses to detect shared libraries, 10385 *** $file_magic_cmd, produces output that libtool cannot recognize. 10386 *** The result is that libtool may fail to recognize shared libraries 10387 *** as such. This will affect the creation of libtool libraries that 10388 *** depend on shared libraries, but programs linked with such libtool 10389 *** libraries will work regardless of this problem. Nevertheless, you 10390 *** may want to report the problem to your system manager and/or to 10391 *** bug-libtool@gnu.org 10392 10393 _LT_EOF 10394 fi ;; 10395 esac 10396 fi 10397 break 10398 fi 10399 done 10400 IFS=$lt_save_ifs 10401 MAGIC_CMD=$lt_save_MAGIC_CMD 10402 ;; 10403 esac 10404 fi 10405 10406 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10407 if test -n "$MAGIC_CMD"; then 10408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10409 printf "%s\n" "$MAGIC_CMD" >&6; } 10410 else 10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10412 printf "%s\n" "no" >&6; } 10413 fi 10414 10415 10416 else 10417 MAGIC_CMD=: 10418 fi 10419 fi 10420 10421 fi 10422 ;; 10423 esac 10424 10425 # Use C for the default configuration in the libtool script 10426 10427 lt_save_CC=$CC 10428 ac_ext=c 10429 ac_cpp='$CPP $CPPFLAGS' 10430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10432 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10433 10434 10435 # Source file extension for C test sources. 10436 ac_ext=c 10437 10438 # Object file extension for compiled C test sources. 10439 objext=o 10440 objext=$objext 10441 10442 # Code to be used in simple compile tests 10443 lt_simple_compile_test_code="int some_variable = 0;" 10444 10445 # Code to be used in simple link tests 10446 lt_simple_link_test_code='int main(){return(0);}' 10447 10448 10449 10450 10451 10452 10453 10454 # If no C compiler was specified, use CC. 10455 LTCC=${LTCC-"$CC"} 10456 10457 # If no C compiler flags were specified, use CFLAGS. 10458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10459 10460 # Allow CC to be a program name with arguments. 10461 compiler=$CC 10462 10463 # Save the default compiler, since it gets overwritten when the other 10464 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10465 compiler_DEFAULT=$CC 10466 10467 # save warnings/boilerplate of simple test code 10468 ac_outfile=conftest.$ac_objext 10469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10471 _lt_compiler_boilerplate=`cat conftest.err` 10472 $RM conftest* 10473 10474 ac_outfile=conftest.$ac_objext 10475 echo "$lt_simple_link_test_code" >conftest.$ac_ext 10476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10477 _lt_linker_boilerplate=`cat conftest.err` 10478 $RM -r conftest* 10479 10480 10481 ## CAVEAT EMPTOR: 10482 ## There is no encapsulation within the following macros, do not change 10483 ## the running order or otherwise move them around unless you know exactly 10484 ## what you are doing... 10485 if test -n "$compiler"; then 10486 10487 lt_prog_compiler_no_builtin_flag= 10488 10489 if test yes = "$GCC"; then 10490 case $cc_basename in 10491 nvcc*) 10492 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10493 *) 10494 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10495 esac 10496 10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10498 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10499 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 10500 then : 10501 printf %s "(cached) " >&6 10502 else $as_nop 10503 lt_cv_prog_compiler_rtti_exceptions=no 10504 ac_outfile=conftest.$ac_objext 10505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10506 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10507 # Insert the option either (1) after the last *FLAGS variable, or 10508 # (2) before a word containing "conftest.", or (3) at the end. 10509 # Note that $ac_compile itself does not contain backslashes and begins 10510 # with a dollar sign (not a hyphen), so the echo should work correctly. 10511 # The option is referenced via a variable to avoid confusing sed. 10512 lt_compile=`echo "$ac_compile" | $SED \ 10513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10515 -e 's:$: $lt_compiler_flag:'` 10516 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10517 (eval "$lt_compile" 2>conftest.err) 10518 ac_status=$? 10519 cat conftest.err >&5 10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10521 if (exit $ac_status) && test -s "$ac_outfile"; then 10522 # The compiler can only warn and ignore the option if not recognized 10523 # So say no if there are warnings other than the usual output. 10524 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10527 lt_cv_prog_compiler_rtti_exceptions=yes 10528 fi 10529 fi 10530 $RM conftest* 10531 10532 fi 10533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10534 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10535 10536 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10537 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10538 else 10539 : 10540 fi 10541 10542 fi 10543 10544 10545 10546 10547 10548 10549 lt_prog_compiler_wl= 10550 lt_prog_compiler_pic= 10551 lt_prog_compiler_static= 10552 10553 10554 if test yes = "$GCC"; then 10555 lt_prog_compiler_wl='-Wl,' 10556 lt_prog_compiler_static='-static' 10557 10558 case $host_os in 10559 aix*) 10560 # All AIX code is PIC. 10561 if test ia64 = "$host_cpu"; then 10562 # AIX 5 now supports IA64 processor 10563 lt_prog_compiler_static='-Bstatic' 10564 fi 10565 lt_prog_compiler_pic='-fPIC' 10566 ;; 10567 10568 amigaos*) 10569 case $host_cpu in 10570 powerpc) 10571 # see comment about AmigaOS4 .so support 10572 lt_prog_compiler_pic='-fPIC' 10573 ;; 10574 m68k) 10575 # FIXME: we need at least 68020 code to build shared libraries, but 10576 # adding the '-m68020' flag to GCC prevents building anything better, 10577 # like '-m68040'. 10578 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10579 ;; 10580 esac 10581 ;; 10582 10583 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10584 # PIC is the default for these OSes. 10585 ;; 10586 10587 mingw* | cygwin* | pw32* | os2* | cegcc*) 10588 # This hack is so that the source file can tell whether it is being 10589 # built for inclusion in a dll (and should export symbols for example). 10590 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10591 # (--disable-auto-import) libraries 10592 lt_prog_compiler_pic='-DDLL_EXPORT' 10593 case $host_os in 10594 os2*) 10595 lt_prog_compiler_static='$wl-static' 10596 ;; 10597 esac 10598 ;; 10599 10600 darwin* | rhapsody*) 10601 # PIC is the default on this platform 10602 # Common symbols not allowed in MH_DYLIB files 10603 lt_prog_compiler_pic='-fno-common' 10604 ;; 10605 10606 haiku*) 10607 # PIC is the default for Haiku. 10608 # The "-static" flag exists, but is broken. 10609 lt_prog_compiler_static= 10610 ;; 10611 10612 hpux*) 10613 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10614 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10615 # sets the default TLS model and affects inlining. 10616 case $host_cpu in 10617 hppa*64*) 10618 # +Z the default 10619 ;; 10620 *) 10621 lt_prog_compiler_pic='-fPIC' 10622 ;; 10623 esac 10624 ;; 10625 10626 interix[3-9]*) 10627 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10628 # Instead, we relocate shared libraries at runtime. 10629 ;; 10630 10631 msdosdjgpp*) 10632 # Just because we use GCC doesn't mean we suddenly get shared libraries 10633 # on systems that don't support them. 10634 lt_prog_compiler_can_build_shared=no 10635 enable_shared=no 10636 ;; 10637 10638 *nto* | *qnx*) 10639 # QNX uses GNU C++, but need to define -shared option too, otherwise 10640 # it will coredump. 10641 lt_prog_compiler_pic='-fPIC -shared' 10642 ;; 10643 10644 sysv4*MP*) 10645 if test -d /usr/nec; then 10646 lt_prog_compiler_pic=-Kconform_pic 10647 fi 10648 ;; 10649 10650 *) 10651 lt_prog_compiler_pic='-fPIC' 10652 ;; 10653 esac 10654 10655 case $cc_basename in 10656 nvcc*) # Cuda Compiler Driver 2.2 10657 lt_prog_compiler_wl='-Xlinker ' 10658 if test -n "$lt_prog_compiler_pic"; then 10659 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10660 fi 10661 ;; 10662 esac 10663 else 10664 # PORTME Check for flag to pass linker flags through the system compiler. 10665 case $host_os in 10666 aix*) 10667 lt_prog_compiler_wl='-Wl,' 10668 if test ia64 = "$host_cpu"; then 10669 # AIX 5 now supports IA64 processor 10670 lt_prog_compiler_static='-Bstatic' 10671 else 10672 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10673 fi 10674 ;; 10675 10676 darwin* | rhapsody*) 10677 # PIC is the default on this platform 10678 # Common symbols not allowed in MH_DYLIB files 10679 lt_prog_compiler_pic='-fno-common' 10680 case $cc_basename in 10681 nagfor*) 10682 # NAG Fortran compiler 10683 lt_prog_compiler_wl='-Wl,-Wl,,' 10684 lt_prog_compiler_pic='-PIC' 10685 lt_prog_compiler_static='-Bstatic' 10686 ;; 10687 esac 10688 ;; 10689 10690 mingw* | cygwin* | pw32* | os2* | cegcc*) 10691 # This hack is so that the source file can tell whether it is being 10692 # built for inclusion in a dll (and should export symbols for example). 10693 lt_prog_compiler_pic='-DDLL_EXPORT' 10694 case $host_os in 10695 os2*) 10696 lt_prog_compiler_static='$wl-static' 10697 ;; 10698 esac 10699 ;; 10700 10701 hpux9* | hpux10* | hpux11*) 10702 lt_prog_compiler_wl='-Wl,' 10703 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10704 # not for PA HP-UX. 10705 case $host_cpu in 10706 hppa*64*|ia64*) 10707 # +Z the default 10708 ;; 10709 *) 10710 lt_prog_compiler_pic='+Z' 10711 ;; 10712 esac 10713 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10714 lt_prog_compiler_static='$wl-a ${wl}archive' 10715 ;; 10716 10717 irix5* | irix6* | nonstopux*) 10718 lt_prog_compiler_wl='-Wl,' 10719 # PIC (with -KPIC) is the default. 10720 lt_prog_compiler_static='-non_shared' 10721 ;; 10722 10723 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10724 case $cc_basename in 10725 # old Intel for x86_64, which still supported -KPIC. 10726 ecc*) 10727 lt_prog_compiler_wl='-Wl,' 10728 lt_prog_compiler_pic='-KPIC' 10729 lt_prog_compiler_static='-static' 10730 ;; 10731 # flang / f18. f95 an alias for gfortran or flang on Debian 10732 flang* | f18* | f95*) 10733 lt_prog_compiler_wl='-Wl,' 10734 lt_prog_compiler_pic='-fPIC' 10735 lt_prog_compiler_static='-static' 10736 ;; 10737 # icc used to be incompatible with GCC. 10738 # ICC 10 doesn't accept -KPIC any more. 10739 icc* | ifort*) 10740 lt_prog_compiler_wl='-Wl,' 10741 lt_prog_compiler_pic='-fPIC' 10742 lt_prog_compiler_static='-static' 10743 ;; 10744 # Lahey Fortran 8.1. 10745 lf95*) 10746 lt_prog_compiler_wl='-Wl,' 10747 lt_prog_compiler_pic='--shared' 10748 lt_prog_compiler_static='--static' 10749 ;; 10750 nagfor*) 10751 # NAG Fortran compiler 10752 lt_prog_compiler_wl='-Wl,-Wl,,' 10753 lt_prog_compiler_pic='-PIC' 10754 lt_prog_compiler_static='-Bstatic' 10755 ;; 10756 tcc*) 10757 # Fabrice Bellard et al's Tiny C Compiler 10758 lt_prog_compiler_wl='-Wl,' 10759 lt_prog_compiler_pic='-fPIC' 10760 lt_prog_compiler_static='-static' 10761 ;; 10762 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10763 # Portland Group compilers (*not* the Pentium gcc compiler, 10764 # which looks to be a dead project) 10765 lt_prog_compiler_wl='-Wl,' 10766 lt_prog_compiler_pic='-fpic' 10767 lt_prog_compiler_static='-Bstatic' 10768 ;; 10769 ccc*) 10770 lt_prog_compiler_wl='-Wl,' 10771 # All Alpha code is PIC. 10772 lt_prog_compiler_static='-non_shared' 10773 ;; 10774 xl* | bgxl* | bgf* | mpixl*) 10775 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10776 lt_prog_compiler_wl='-Wl,' 10777 lt_prog_compiler_pic='-qpic' 10778 lt_prog_compiler_static='-qstaticlink' 10779 ;; 10780 *) 10781 case `$CC -V 2>&1 | $SED 5q` in 10782 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10783 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10784 lt_prog_compiler_pic='-KPIC' 10785 lt_prog_compiler_static='-Bstatic' 10786 lt_prog_compiler_wl='' 10787 ;; 10788 *Sun\ F* | *Sun*Fortran*) 10789 lt_prog_compiler_pic='-KPIC' 10790 lt_prog_compiler_static='-Bstatic' 10791 lt_prog_compiler_wl='-Qoption ld ' 10792 ;; 10793 *Sun\ C*) 10794 # Sun C 5.9 10795 lt_prog_compiler_pic='-KPIC' 10796 lt_prog_compiler_static='-Bstatic' 10797 lt_prog_compiler_wl='-Wl,' 10798 ;; 10799 *Intel*\ [CF]*Compiler*) 10800 lt_prog_compiler_wl='-Wl,' 10801 lt_prog_compiler_pic='-fPIC' 10802 lt_prog_compiler_static='-static' 10803 ;; 10804 *Portland\ Group*) 10805 lt_prog_compiler_wl='-Wl,' 10806 lt_prog_compiler_pic='-fpic' 10807 lt_prog_compiler_static='-Bstatic' 10808 ;; 10809 esac 10810 ;; 10811 esac 10812 ;; 10813 10814 newsos6) 10815 lt_prog_compiler_pic='-KPIC' 10816 lt_prog_compiler_static='-Bstatic' 10817 ;; 10818 10819 *nto* | *qnx*) 10820 # QNX uses GNU C++, but need to define -shared option too, otherwise 10821 # it will coredump. 10822 lt_prog_compiler_pic='-fPIC -shared' 10823 ;; 10824 10825 osf3* | osf4* | osf5*) 10826 lt_prog_compiler_wl='-Wl,' 10827 # All OSF/1 code is PIC. 10828 lt_prog_compiler_static='-non_shared' 10829 ;; 10830 10831 rdos*) 10832 lt_prog_compiler_static='-non_shared' 10833 ;; 10834 10835 solaris*) 10836 lt_prog_compiler_pic='-KPIC' 10837 lt_prog_compiler_static='-Bstatic' 10838 case $cc_basename in 10839 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10840 lt_prog_compiler_wl='-Qoption ld ';; 10841 *) 10842 lt_prog_compiler_wl='-Wl,';; 10843 esac 10844 ;; 10845 10846 sunos4*) 10847 lt_prog_compiler_wl='-Qoption ld ' 10848 lt_prog_compiler_pic='-PIC' 10849 lt_prog_compiler_static='-Bstatic' 10850 ;; 10851 10852 sysv4 | sysv4.2uw2* | sysv4.3*) 10853 lt_prog_compiler_wl='-Wl,' 10854 lt_prog_compiler_pic='-KPIC' 10855 lt_prog_compiler_static='-Bstatic' 10856 ;; 10857 10858 sysv4*MP*) 10859 if test -d /usr/nec; then 10860 lt_prog_compiler_pic='-Kconform_pic' 10861 lt_prog_compiler_static='-Bstatic' 10862 fi 10863 ;; 10864 10865 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10866 lt_prog_compiler_wl='-Wl,' 10867 lt_prog_compiler_pic='-KPIC' 10868 lt_prog_compiler_static='-Bstatic' 10869 ;; 10870 10871 unicos*) 10872 lt_prog_compiler_wl='-Wl,' 10873 lt_prog_compiler_can_build_shared=no 10874 ;; 10875 10876 uts4*) 10877 lt_prog_compiler_pic='-pic' 10878 lt_prog_compiler_static='-Bstatic' 10879 ;; 10880 10881 *) 10882 lt_prog_compiler_can_build_shared=no 10883 ;; 10884 esac 10885 fi 10886 10887 case $host_os in 10888 # For platforms that do not support PIC, -DPIC is meaningless: 10889 *djgpp*) 10890 lt_prog_compiler_pic= 10891 ;; 10892 *) 10893 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10894 ;; 10895 esac 10896 10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10898 printf %s "checking for $compiler option to produce PIC... " >&6; } 10899 if test ${lt_cv_prog_compiler_pic+y} 10900 then : 10901 printf %s "(cached) " >&6 10902 else $as_nop 10903 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10904 fi 10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10906 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10907 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10908 10909 # 10910 # Check to make sure the PIC flag actually works. 10911 # 10912 if test -n "$lt_prog_compiler_pic"; then 10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10914 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10915 if test ${lt_cv_prog_compiler_pic_works+y} 10916 then : 10917 printf %s "(cached) " >&6 10918 else $as_nop 10919 lt_cv_prog_compiler_pic_works=no 10920 ac_outfile=conftest.$ac_objext 10921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10922 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10923 # Insert the option either (1) after the last *FLAGS variable, or 10924 # (2) before a word containing "conftest.", or (3) at the end. 10925 # Note that $ac_compile itself does not contain backslashes and begins 10926 # with a dollar sign (not a hyphen), so the echo should work correctly. 10927 # The option is referenced via a variable to avoid confusing sed. 10928 lt_compile=`echo "$ac_compile" | $SED \ 10929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10931 -e 's:$: $lt_compiler_flag:'` 10932 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10933 (eval "$lt_compile" 2>conftest.err) 10934 ac_status=$? 10935 cat conftest.err >&5 10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10937 if (exit $ac_status) && test -s "$ac_outfile"; then 10938 # The compiler can only warn and ignore the option if not recognized 10939 # So say no if there are warnings other than the usual output. 10940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10943 lt_cv_prog_compiler_pic_works=yes 10944 fi 10945 fi 10946 $RM conftest* 10947 10948 fi 10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10950 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10951 10952 if test yes = "$lt_cv_prog_compiler_pic_works"; then 10953 case $lt_prog_compiler_pic in 10954 "" | " "*) ;; 10955 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10956 esac 10957 else 10958 lt_prog_compiler_pic= 10959 lt_prog_compiler_can_build_shared=no 10960 fi 10961 10962 fi 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 # 10975 # Check to make sure the static flag actually works. 10976 # 10977 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10979 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10980 if test ${lt_cv_prog_compiler_static_works+y} 10981 then : 10982 printf %s "(cached) " >&6 10983 else $as_nop 10984 lt_cv_prog_compiler_static_works=no 10985 save_LDFLAGS=$LDFLAGS 10986 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10987 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10988 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10989 # The linker can only warn and ignore the option if not recognized 10990 # So say no if there are warnings 10991 if test -s conftest.err; then 10992 # Append any errors to the config.log. 10993 cat conftest.err 1>&5 10994 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10996 if diff conftest.exp conftest.er2 >/dev/null; then 10997 lt_cv_prog_compiler_static_works=yes 10998 fi 10999 else 11000 lt_cv_prog_compiler_static_works=yes 11001 fi 11002 fi 11003 $RM -r conftest* 11004 LDFLAGS=$save_LDFLAGS 11005 11006 fi 11007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11008 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 11009 11010 if test yes = "$lt_cv_prog_compiler_static_works"; then 11011 : 11012 else 11013 lt_prog_compiler_static= 11014 fi 11015 11016 11017 11018 11019 11020 11021 11022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11023 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11024 if test ${lt_cv_prog_compiler_c_o+y} 11025 then : 11026 printf %s "(cached) " >&6 11027 else $as_nop 11028 lt_cv_prog_compiler_c_o=no 11029 $RM -r conftest 2>/dev/null 11030 mkdir conftest 11031 cd conftest 11032 mkdir out 11033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11034 11035 lt_compiler_flag="-o out/conftest2.$ac_objext" 11036 # Insert the option either (1) after the last *FLAGS variable, or 11037 # (2) before a word containing "conftest.", or (3) at the end. 11038 # Note that $ac_compile itself does not contain backslashes and begins 11039 # with a dollar sign (not a hyphen), so the echo should work correctly. 11040 lt_compile=`echo "$ac_compile" | $SED \ 11041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11043 -e 's:$: $lt_compiler_flag:'` 11044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11045 (eval "$lt_compile" 2>out/conftest.err) 11046 ac_status=$? 11047 cat out/conftest.err >&5 11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11049 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11050 then 11051 # The compiler can only warn and ignore the option if not recognized 11052 # So say no if there are warnings 11053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11054 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11055 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11056 lt_cv_prog_compiler_c_o=yes 11057 fi 11058 fi 11059 chmod u+w . 2>&5 11060 $RM conftest* 11061 # SGI C++ compiler will create directory out/ii_files/ for 11062 # template instantiation 11063 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11064 $RM out/* && rmdir out 11065 cd .. 11066 $RM -r conftest 11067 $RM conftest* 11068 11069 fi 11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11071 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 11072 11073 11074 11075 11076 11077 11078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11079 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11080 if test ${lt_cv_prog_compiler_c_o+y} 11081 then : 11082 printf %s "(cached) " >&6 11083 else $as_nop 11084 lt_cv_prog_compiler_c_o=no 11085 $RM -r conftest 2>/dev/null 11086 mkdir conftest 11087 cd conftest 11088 mkdir out 11089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11090 11091 lt_compiler_flag="-o out/conftest2.$ac_objext" 11092 # Insert the option either (1) after the last *FLAGS variable, or 11093 # (2) before a word containing "conftest.", or (3) at the end. 11094 # Note that $ac_compile itself does not contain backslashes and begins 11095 # with a dollar sign (not a hyphen), so the echo should work correctly. 11096 lt_compile=`echo "$ac_compile" | $SED \ 11097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11099 -e 's:$: $lt_compiler_flag:'` 11100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11101 (eval "$lt_compile" 2>out/conftest.err) 11102 ac_status=$? 11103 cat out/conftest.err >&5 11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11105 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11106 then 11107 # The compiler can only warn and ignore the option if not recognized 11108 # So say no if there are warnings 11109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11112 lt_cv_prog_compiler_c_o=yes 11113 fi 11114 fi 11115 chmod u+w . 2>&5 11116 $RM conftest* 11117 # SGI C++ compiler will create directory out/ii_files/ for 11118 # template instantiation 11119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11120 $RM out/* && rmdir out 11121 cd .. 11122 $RM -r conftest 11123 $RM conftest* 11124 11125 fi 11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11127 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 11128 11129 11130 11131 11132 hard_links=nottested 11133 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 11134 # do not overwrite the value of need_locks provided by the user 11135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11136 printf %s "checking if we can lock with hard links... " >&6; } 11137 hard_links=yes 11138 $RM conftest* 11139 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11140 touch conftest.a 11141 ln conftest.a conftest.b 2>&5 || hard_links=no 11142 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11144 printf "%s\n" "$hard_links" >&6; } 11145 if test no = "$hard_links"; then 11146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 11147 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 11148 need_locks=warn 11149 fi 11150 else 11151 need_locks=no 11152 fi 11153 11154 11155 11156 11157 11158 11159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11160 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11161 11162 runpath_var= 11163 allow_undefined_flag= 11164 always_export_symbols=no 11165 archive_cmds= 11166 archive_expsym_cmds= 11167 compiler_needs_object=no 11168 enable_shared_with_static_runtimes=no 11169 export_dynamic_flag_spec= 11170 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11171 hardcode_automatic=no 11172 hardcode_direct=no 11173 hardcode_direct_absolute=no 11174 hardcode_libdir_flag_spec= 11175 hardcode_libdir_separator= 11176 hardcode_minus_L=no 11177 hardcode_shlibpath_var=unsupported 11178 inherit_rpath=no 11179 link_all_deplibs=unknown 11180 module_cmds= 11181 module_expsym_cmds= 11182 old_archive_from_new_cmds= 11183 old_archive_from_expsyms_cmds= 11184 thread_safe_flag_spec= 11185 whole_archive_flag_spec= 11186 # include_expsyms should be a list of space-separated symbols to be *always* 11187 # included in the symbol list 11188 include_expsyms= 11189 # exclude_expsyms can be an extended regexp of symbols to exclude 11190 # it will be wrapped by ' (' and ')$', so one must not match beginning or 11191 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 11192 # as well as any symbol that contains 'd'. 11193 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11194 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11195 # platforms (ab)use it in PIC code, but their linkers get confused if 11196 # the symbol is explicitly referenced. Since portable code cannot 11197 # rely on this symbol name, it's probably fine to never include it in 11198 # preloaded symbol tables. 11199 # Exclude shared library initialization/finalization symbols. 11200 extract_expsyms_cmds= 11201 11202 case $host_os in 11203 cygwin* | mingw* | pw32* | cegcc*) 11204 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 11205 # When not using gcc, we currently assume that we are using 11206 # Microsoft Visual C++ or Intel C++ Compiler. 11207 if test yes != "$GCC"; then 11208 with_gnu_ld=no 11209 fi 11210 ;; 11211 interix*) 11212 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 11213 with_gnu_ld=yes 11214 ;; 11215 openbsd* | bitrig*) 11216 with_gnu_ld=no 11217 ;; 11218 linux* | k*bsd*-gnu | gnu*) 11219 link_all_deplibs=no 11220 ;; 11221 esac 11222 11223 ld_shlibs=yes 11224 11225 # On some targets, GNU ld is compatible enough with the native linker 11226 # that we're better off using the native interface for both. 11227 lt_use_gnu_ld_interface=no 11228 if test yes = "$with_gnu_ld"; then 11229 case $host_os in 11230 aix*) 11231 # The AIX port of GNU ld has always aspired to compatibility 11232 # with the native linker. However, as the warning in the GNU ld 11233 # block says, versions before 2.19.5* couldn't really create working 11234 # shared libraries, regardless of the interface used. 11235 case `$LD -v 2>&1` in 11236 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11237 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11238 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11239 *) 11240 lt_use_gnu_ld_interface=yes 11241 ;; 11242 esac 11243 ;; 11244 *) 11245 lt_use_gnu_ld_interface=yes 11246 ;; 11247 esac 11248 fi 11249 11250 if test yes = "$lt_use_gnu_ld_interface"; then 11251 # If archive_cmds runs LD, not CC, wlarc should be empty 11252 wlarc='$wl' 11253 11254 # Set some defaults for GNU ld with shared library support. These 11255 # are reset later if shared libraries are not supported. Putting them 11256 # here allows them to be overridden if necessary. 11257 runpath_var=LD_RUN_PATH 11258 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11259 export_dynamic_flag_spec='$wl--export-dynamic' 11260 # ancient GNU ld didn't support --whole-archive et. al. 11261 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11262 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 11263 else 11264 whole_archive_flag_spec= 11265 fi 11266 supports_anon_versioning=no 11267 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 11268 *GNU\ gold*) supports_anon_versioning=yes ;; 11269 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11270 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11271 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11272 *\ 2.11.*) ;; # other 2.11 versions 11273 *) supports_anon_versioning=yes ;; 11274 esac 11275 11276 # See if GNU ld supports shared libraries. 11277 case $host_os in 11278 aix[3-9]*) 11279 # On AIX/PPC, the GNU linker is very broken 11280 if test ia64 != "$host_cpu"; then 11281 ld_shlibs=no 11282 cat <<_LT_EOF 1>&2 11283 11284 *** Warning: the GNU linker, at least up to release 2.19, is reported 11285 *** to be unable to reliably create shared libraries on AIX. 11286 *** Therefore, libtool is disabling shared libraries support. If you 11287 *** really care for shared libraries, you may want to install binutils 11288 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11289 *** You will then need to restart the configuration process. 11290 11291 _LT_EOF 11292 fi 11293 ;; 11294 11295 amigaos*) 11296 case $host_cpu in 11297 powerpc) 11298 # see comment about AmigaOS4 .so support 11299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11300 archive_expsym_cmds='' 11301 ;; 11302 m68k) 11303 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)' 11304 hardcode_libdir_flag_spec='-L$libdir' 11305 hardcode_minus_L=yes 11306 ;; 11307 esac 11308 ;; 11309 11310 beos*) 11311 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11312 allow_undefined_flag=unsupported 11313 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 11314 # support --undefined. This deserves some investigation. FIXME 11315 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11316 else 11317 ld_shlibs=no 11318 fi 11319 ;; 11320 11321 cygwin* | mingw* | pw32* | cegcc*) 11322 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11323 # as there is no search path for DLLs. 11324 hardcode_libdir_flag_spec='-L$libdir' 11325 export_dynamic_flag_spec='$wl--export-all-symbols' 11326 allow_undefined_flag=unsupported 11327 always_export_symbols=no 11328 enable_shared_with_static_runtimes=yes 11329 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' 11330 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11331 11332 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11334 # If the export-symbols file already is a .def file, use it as 11335 # is; otherwise, prepend EXPORTS... 11336 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11337 cp $export_symbols $output_objdir/$soname.def; 11338 else 11339 echo EXPORTS > $output_objdir/$soname.def; 11340 cat $export_symbols >> $output_objdir/$soname.def; 11341 fi~ 11342 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11343 else 11344 ld_shlibs=no 11345 fi 11346 ;; 11347 11348 haiku*) 11349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11350 link_all_deplibs=yes 11351 ;; 11352 11353 os2*) 11354 hardcode_libdir_flag_spec='-L$libdir' 11355 hardcode_minus_L=yes 11356 allow_undefined_flag=unsupported 11357 shrext_cmds=.dll 11358 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11359 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11360 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11361 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11362 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11363 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11364 emximp -o $lib $output_objdir/$libname.def' 11365 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11366 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11367 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11368 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11369 prefix_cmds="$SED"~ 11370 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11371 prefix_cmds="$prefix_cmds -e 1d"; 11372 fi~ 11373 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11374 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11375 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11376 emximp -o $lib $output_objdir/$libname.def' 11377 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11378 enable_shared_with_static_runtimes=yes 11379 file_list_spec='@' 11380 ;; 11381 11382 interix[3-9]*) 11383 hardcode_direct=no 11384 hardcode_shlibpath_var=no 11385 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11386 export_dynamic_flag_spec='$wl-E' 11387 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11388 # Instead, shared libraries are loaded at an image base (0x10000000 by 11389 # default) and relocated if they conflict, which is a slow very memory 11390 # consuming and fragmenting process. To avoid this, we pick a random, 11391 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11392 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11393 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11394 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' 11395 ;; 11396 11397 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11398 tmp_diet=no 11399 if test linux-dietlibc = "$host_os"; then 11400 case $cc_basename in 11401 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11402 esac 11403 fi 11404 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11405 && test no = "$tmp_diet" 11406 then 11407 tmp_addflag=' $pic_flag' 11408 tmp_sharedflag='-shared' 11409 case $cc_basename,$host_cpu in 11410 pgcc*) # Portland Group C compiler 11411 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' 11412 tmp_addflag=' $pic_flag' 11413 ;; 11414 pgf77* | pgf90* | pgf95* | pgfortran*) 11415 # Portland Group f77 and f90 compilers 11416 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' 11417 tmp_addflag=' $pic_flag -Mnomain' ;; 11418 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11419 tmp_addflag=' -i_dynamic' ;; 11420 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11421 tmp_addflag=' -i_dynamic -nofor_main' ;; 11422 ifc* | ifort*) # Intel Fortran compiler 11423 tmp_addflag=' -nofor_main' ;; 11424 lf95*) # Lahey Fortran 8.1 11425 whole_archive_flag_spec= 11426 tmp_sharedflag='--shared' ;; 11427 nagfor*) # NAGFOR 5.3 11428 tmp_sharedflag='-Wl,-shared' ;; 11429 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11430 tmp_sharedflag='-qmkshrobj' 11431 tmp_addflag= ;; 11432 nvcc*) # Cuda Compiler Driver 2.2 11433 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' 11434 compiler_needs_object=yes 11435 ;; 11436 esac 11437 case `$CC -V 2>&1 | $SED 5q` in 11438 *Sun\ C*) # Sun C 5.9 11439 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' 11440 compiler_needs_object=yes 11441 tmp_sharedflag='-G' ;; 11442 *Sun\ F*) # Sun Fortran 8.3 11443 tmp_sharedflag='-G' ;; 11444 esac 11445 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11446 11447 if test yes = "$supports_anon_versioning"; then 11448 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11449 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11450 echo "local: *; };" >> $output_objdir/$libname.ver~ 11451 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11452 fi 11453 11454 case $cc_basename in 11455 tcc*) 11456 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11457 export_dynamic_flag_spec='-rdynamic' 11458 ;; 11459 xlf* | bgf* | bgxlf* | mpixlf*) 11460 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11461 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11462 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11463 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11464 if test yes = "$supports_anon_versioning"; then 11465 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11466 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11467 echo "local: *; };" >> $output_objdir/$libname.ver~ 11468 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11469 fi 11470 ;; 11471 esac 11472 else 11473 ld_shlibs=no 11474 fi 11475 ;; 11476 11477 netbsd* | netbsdelf*-gnu) 11478 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11479 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11480 wlarc= 11481 else 11482 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11483 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11484 fi 11485 ;; 11486 11487 solaris*) 11488 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11489 ld_shlibs=no 11490 cat <<_LT_EOF 1>&2 11491 11492 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 11493 *** create shared libraries on Solaris systems. Therefore, libtool 11494 *** is disabling shared libraries support. We urge you to upgrade GNU 11495 *** binutils to release 2.9.1 or newer. Another option is to modify 11496 *** your PATH or compiler configuration so that the native linker is 11497 *** used, and then restart. 11498 11499 _LT_EOF 11500 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11501 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11502 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11503 else 11504 ld_shlibs=no 11505 fi 11506 ;; 11507 11508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11509 case `$LD -v 2>&1` in 11510 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11511 ld_shlibs=no 11512 cat <<_LT_EOF 1>&2 11513 11514 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11515 *** reliably create shared libraries on SCO systems. Therefore, libtool 11516 *** is disabling shared libraries support. We urge you to upgrade GNU 11517 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11518 *** your PATH or compiler configuration so that the native linker is 11519 *** used, and then restart. 11520 11521 _LT_EOF 11522 ;; 11523 *) 11524 # For security reasons, it is highly recommended that you always 11525 # use absolute paths for naming shared libraries, and exclude the 11526 # DT_RUNPATH tag from executables and libraries. But doing so 11527 # requires that you compile everything twice, which is a pain. 11528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11529 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11532 else 11533 ld_shlibs=no 11534 fi 11535 ;; 11536 esac 11537 ;; 11538 11539 sunos4*) 11540 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11541 wlarc= 11542 hardcode_direct=yes 11543 hardcode_shlibpath_var=no 11544 ;; 11545 11546 *) 11547 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11548 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11549 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11550 else 11551 ld_shlibs=no 11552 fi 11553 ;; 11554 esac 11555 11556 if test no = "$ld_shlibs"; then 11557 runpath_var= 11558 hardcode_libdir_flag_spec= 11559 export_dynamic_flag_spec= 11560 whole_archive_flag_spec= 11561 fi 11562 else 11563 # PORTME fill in a description of your system's linker (not GNU ld) 11564 case $host_os in 11565 aix3*) 11566 allow_undefined_flag=unsupported 11567 always_export_symbols=yes 11568 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' 11569 # Note: this linker hardcodes the directories in LIBPATH if there 11570 # are no directories specified by -L. 11571 hardcode_minus_L=yes 11572 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11573 # Neither direct hardcoding nor static linking is supported with a 11574 # broken collect2. 11575 hardcode_direct=unsupported 11576 fi 11577 ;; 11578 11579 aix[4-9]*) 11580 if test ia64 = "$host_cpu"; then 11581 # On IA64, the linker does run time linking by default, so we don't 11582 # have to do anything special. 11583 aix_use_runtimelinking=no 11584 exp_sym_flag='-Bexport' 11585 no_entry_flag= 11586 else 11587 # If we're using GNU nm, then we don't want the "-C" option. 11588 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11589 # Without the "-l" option, or with the "-B" option, AIX nm treats 11590 # weak defined symbols like other global defined symbols, whereas 11591 # GNU nm marks them as "W". 11592 # While the 'weak' keyword is ignored in the Export File, we need 11593 # it in the Import File for the 'aix-soname' feature, so we have 11594 # to replace the "-B" option with "-P" for AIX nm. 11595 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11596 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' 11597 else 11598 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' 11599 fi 11600 aix_use_runtimelinking=no 11601 11602 # Test if we are trying to use run time linking or normal 11603 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11604 # have runtime linking enabled, and use it for executables. 11605 # For shared libraries, we enable/disable runtime linking 11606 # depending on the kind of the shared library created - 11607 # when "with_aix_soname,aix_use_runtimelinking" is: 11608 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11609 # "aix,yes" lib.so shared, rtl:yes, for executables 11610 # lib.a static archive 11611 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11612 # lib.a(lib.so.V) shared, rtl:no, for executables 11613 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11614 # lib.a(lib.so.V) shared, rtl:no 11615 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11616 # lib.a static archive 11617 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11618 for ld_flag in $LDFLAGS; do 11619 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11620 aix_use_runtimelinking=yes 11621 break 11622 fi 11623 done 11624 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11625 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11626 # so we don't have lib.a shared libs to link our executables. 11627 # We have to force runtime linking in this case. 11628 aix_use_runtimelinking=yes 11629 LDFLAGS="$LDFLAGS -Wl,-brtl" 11630 fi 11631 ;; 11632 esac 11633 11634 exp_sym_flag='-bexport' 11635 no_entry_flag='-bnoentry' 11636 fi 11637 11638 # When large executables or shared objects are built, AIX ld can 11639 # have problems creating the table of contents. If linking a library 11640 # or program results in "error TOC overflow" add -mminimal-toc to 11641 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11642 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11643 11644 archive_cmds='' 11645 hardcode_direct=yes 11646 hardcode_direct_absolute=yes 11647 hardcode_libdir_separator=':' 11648 link_all_deplibs=yes 11649 file_list_spec='$wl-f,' 11650 case $with_aix_soname,$aix_use_runtimelinking in 11651 aix,*) ;; # traditional, no import file 11652 svr4,* | *,yes) # use import file 11653 # The Import File defines what to hardcode. 11654 hardcode_direct=no 11655 hardcode_direct_absolute=no 11656 ;; 11657 esac 11658 11659 if test yes = "$GCC"; then 11660 case $host_os in aix4.[012]|aix4.[012].*) 11661 # We only want to do this on AIX 4.2 and lower, the check 11662 # below for broken collect2 doesn't work under 4.3+ 11663 collect2name=`$CC -print-prog-name=collect2` 11664 if test -f "$collect2name" && 11665 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11666 then 11667 # We have reworked collect2 11668 : 11669 else 11670 # We have old collect2 11671 hardcode_direct=unsupported 11672 # It fails to find uninstalled libraries when the uninstalled 11673 # path is not listed in the libpath. Setting hardcode_minus_L 11674 # to unsupported forces relinking 11675 hardcode_minus_L=yes 11676 hardcode_libdir_flag_spec='-L$libdir' 11677 hardcode_libdir_separator= 11678 fi 11679 ;; 11680 esac 11681 shared_flag='-shared' 11682 if test yes = "$aix_use_runtimelinking"; then 11683 shared_flag="$shared_flag "'$wl-G' 11684 fi 11685 # Need to ensure runtime linking is disabled for the traditional 11686 # shared library, or the linker may eventually find shared libraries 11687 # /with/ Import File - we do not want to mix them. 11688 shared_flag_aix='-shared' 11689 shared_flag_svr4='-shared $wl-G' 11690 else 11691 # not using gcc 11692 if test ia64 = "$host_cpu"; then 11693 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11694 # chokes on -Wl,-G. The following line is correct: 11695 shared_flag='-G' 11696 else 11697 if test yes = "$aix_use_runtimelinking"; then 11698 shared_flag='$wl-G' 11699 else 11700 shared_flag='$wl-bM:SRE' 11701 fi 11702 shared_flag_aix='$wl-bM:SRE' 11703 shared_flag_svr4='$wl-G' 11704 fi 11705 fi 11706 11707 export_dynamic_flag_spec='$wl-bexpall' 11708 # It seems that -bexpall does not export symbols beginning with 11709 # underscore (_), so it is better to generate a list of symbols to export. 11710 always_export_symbols=yes 11711 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11712 # Warning - without using the other runtime loading flags (-brtl), 11713 # -berok will link without error, but may produce a broken library. 11714 allow_undefined_flag='-berok' 11715 # Determine the default libpath from the value encoded in an 11716 # empty executable. 11717 if test set = "${lt_cv_aix_libpath+set}"; then 11718 aix_libpath=$lt_cv_aix_libpath 11719 else 11720 if test ${lt_cv_aix_libpath_+y} 11721 then : 11722 printf %s "(cached) " >&6 11723 else $as_nop 11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11725 /* end confdefs.h. */ 11726 11727 int 11728 main (void) 11729 { 11730 11731 ; 11732 return 0; 11733 } 11734 _ACEOF 11735 if ac_fn_c_try_link "$LINENO" 11736 then : 11737 11738 lt_aix_libpath_sed=' 11739 /Import File Strings/,/^$/ { 11740 /^0/ { 11741 s/^0 *\([^ ]*\) *$/\1/ 11742 p 11743 } 11744 }' 11745 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11746 # Check for a 64-bit object if we didn't find anything. 11747 if test -z "$lt_cv_aix_libpath_"; then 11748 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11749 fi 11750 fi 11751 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11752 conftest$ac_exeext conftest.$ac_ext 11753 if test -z "$lt_cv_aix_libpath_"; then 11754 lt_cv_aix_libpath_=/usr/lib:/lib 11755 fi 11756 11757 fi 11758 11759 aix_libpath=$lt_cv_aix_libpath_ 11760 fi 11761 11762 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11763 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 11764 else 11765 if test ia64 = "$host_cpu"; then 11766 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11767 allow_undefined_flag="-z nodefs" 11768 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" 11769 else 11770 # Determine the default libpath from the value encoded in an 11771 # empty executable. 11772 if test set = "${lt_cv_aix_libpath+set}"; then 11773 aix_libpath=$lt_cv_aix_libpath 11774 else 11775 if test ${lt_cv_aix_libpath_+y} 11776 then : 11777 printf %s "(cached) " >&6 11778 else $as_nop 11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11780 /* end confdefs.h. */ 11781 11782 int 11783 main (void) 11784 { 11785 11786 ; 11787 return 0; 11788 } 11789 _ACEOF 11790 if ac_fn_c_try_link "$LINENO" 11791 then : 11792 11793 lt_aix_libpath_sed=' 11794 /Import File Strings/,/^$/ { 11795 /^0/ { 11796 s/^0 *\([^ ]*\) *$/\1/ 11797 p 11798 } 11799 }' 11800 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11801 # Check for a 64-bit object if we didn't find anything. 11802 if test -z "$lt_cv_aix_libpath_"; then 11803 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11804 fi 11805 fi 11806 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11807 conftest$ac_exeext conftest.$ac_ext 11808 if test -z "$lt_cv_aix_libpath_"; then 11809 lt_cv_aix_libpath_=/usr/lib:/lib 11810 fi 11811 11812 fi 11813 11814 aix_libpath=$lt_cv_aix_libpath_ 11815 fi 11816 11817 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11818 # Warning - without using the other run time loading flags, 11819 # -berok will link without error, but may produce a broken library. 11820 no_undefined_flag=' $wl-bernotok' 11821 allow_undefined_flag=' $wl-berok' 11822 if test yes = "$with_gnu_ld"; then 11823 # We only use this code for GNU lds that support --whole-archive. 11824 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11825 else 11826 # Exported symbols can be pulled into shared objects from archives 11827 whole_archive_flag_spec='$convenience' 11828 fi 11829 archive_cmds_need_lc=yes 11830 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11831 # -brtl affects multiple linker settings, -berok does not and is overridden later 11832 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11833 if test svr4 != "$with_aix_soname"; then 11834 # This is similar to how AIX traditionally builds its shared libraries. 11835 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' 11836 fi 11837 if test aix != "$with_aix_soname"; then 11838 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' 11839 else 11840 # used by -dlpreopen to get the symbols 11841 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11842 fi 11843 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11844 fi 11845 fi 11846 ;; 11847 11848 amigaos*) 11849 case $host_cpu in 11850 powerpc) 11851 # see comment about AmigaOS4 .so support 11852 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11853 archive_expsym_cmds='' 11854 ;; 11855 m68k) 11856 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)' 11857 hardcode_libdir_flag_spec='-L$libdir' 11858 hardcode_minus_L=yes 11859 ;; 11860 esac 11861 ;; 11862 11863 bsdi[45]*) 11864 export_dynamic_flag_spec=-rdynamic 11865 ;; 11866 11867 cygwin* | mingw* | pw32* | cegcc*) 11868 # When not using gcc, we currently assume that we are using 11869 # Microsoft Visual C++ or Intel C++ Compiler. 11870 # hardcode_libdir_flag_spec is actually meaningless, as there is 11871 # no search path for DLLs. 11872 case $cc_basename in 11873 cl* | icl*) 11874 # Native MSVC or ICC 11875 hardcode_libdir_flag_spec=' ' 11876 allow_undefined_flag=unsupported 11877 always_export_symbols=yes 11878 file_list_spec='@' 11879 # Tell ltmain to make .lib files, not .a files. 11880 libext=lib 11881 # Tell ltmain to make .dll files, not .so files. 11882 shrext_cmds=.dll 11883 # FIXME: Setting linknames here is a bad hack. 11884 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11885 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11886 cp "$export_symbols" "$output_objdir/$soname.def"; 11887 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11888 else 11889 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11890 fi~ 11891 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11892 linknames=' 11893 # The linker will not automatically build a static lib if we build a DLL. 11894 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11895 enable_shared_with_static_runtimes=yes 11896 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11897 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11898 # Don't use ranlib 11899 old_postinstall_cmds='chmod 644 $oldlib' 11900 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11901 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11902 case $lt_outputfile in 11903 *.exe|*.EXE) ;; 11904 *) 11905 lt_outputfile=$lt_outputfile.exe 11906 lt_tool_outputfile=$lt_tool_outputfile.exe 11907 ;; 11908 esac~ 11909 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11910 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11911 $RM "$lt_outputfile.manifest"; 11912 fi' 11913 ;; 11914 *) 11915 # Assume MSVC and ICC wrapper 11916 hardcode_libdir_flag_spec=' ' 11917 allow_undefined_flag=unsupported 11918 # Tell ltmain to make .lib files, not .a files. 11919 libext=lib 11920 # Tell ltmain to make .dll files, not .so files. 11921 shrext_cmds=.dll 11922 # FIXME: Setting linknames here is a bad hack. 11923 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11924 # The linker will automatically build a .lib file if we build a DLL. 11925 old_archive_from_new_cmds='true' 11926 # FIXME: Should let the user specify the lib program. 11927 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11928 enable_shared_with_static_runtimes=yes 11929 ;; 11930 esac 11931 ;; 11932 11933 darwin* | rhapsody*) 11934 11935 11936 archive_cmds_need_lc=no 11937 hardcode_direct=no 11938 hardcode_automatic=yes 11939 hardcode_shlibpath_var=unsupported 11940 if test yes = "$lt_cv_ld_force_load"; then 11941 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\"`' 11942 11943 else 11944 whole_archive_flag_spec='' 11945 fi 11946 link_all_deplibs=yes 11947 allow_undefined_flag=$_lt_dar_allow_undefined 11948 case $cc_basename in 11949 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11950 *) _lt_dar_can_shared=$GCC ;; 11951 esac 11952 if test yes = "$_lt_dar_can_shared"; then 11953 output_verbose_link_cmd=func_echo_all 11954 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11955 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11956 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" 11957 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" 11958 11959 else 11960 ld_shlibs=no 11961 fi 11962 11963 ;; 11964 11965 dgux*) 11966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11967 hardcode_libdir_flag_spec='-L$libdir' 11968 hardcode_shlibpath_var=no 11969 ;; 11970 11971 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11972 # support. Future versions do this automatically, but an explicit c++rt0.o 11973 # does not break anything, and helps significantly (at the cost of a little 11974 # extra space). 11975 freebsd2.2*) 11976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11977 hardcode_libdir_flag_spec='-R$libdir' 11978 hardcode_direct=yes 11979 hardcode_shlibpath_var=no 11980 ;; 11981 11982 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11983 freebsd2.*) 11984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11985 hardcode_direct=yes 11986 hardcode_minus_L=yes 11987 hardcode_shlibpath_var=no 11988 ;; 11989 11990 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11991 freebsd* | dragonfly* | midnightbsd*) 11992 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11993 hardcode_libdir_flag_spec='-R$libdir' 11994 hardcode_direct=yes 11995 hardcode_shlibpath_var=no 11996 ;; 11997 11998 hpux9*) 11999 if test yes = "$GCC"; then 12000 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' 12001 else 12002 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' 12003 fi 12004 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12005 hardcode_libdir_separator=: 12006 hardcode_direct=yes 12007 12008 # hardcode_minus_L: Not really in the search PATH, 12009 # but as the default location of the library. 12010 hardcode_minus_L=yes 12011 export_dynamic_flag_spec='$wl-E' 12012 ;; 12013 12014 hpux10*) 12015 if test yes,no = "$GCC,$with_gnu_ld"; then 12016 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12017 else 12018 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12019 fi 12020 if test no = "$with_gnu_ld"; then 12021 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12022 hardcode_libdir_separator=: 12023 hardcode_direct=yes 12024 hardcode_direct_absolute=yes 12025 export_dynamic_flag_spec='$wl-E' 12026 # hardcode_minus_L: Not really in the search PATH, 12027 # but as the default location of the library. 12028 hardcode_minus_L=yes 12029 fi 12030 ;; 12031 12032 hpux11*) 12033 if test yes,no = "$GCC,$with_gnu_ld"; then 12034 case $host_cpu in 12035 hppa*64*) 12036 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12037 ;; 12038 ia64*) 12039 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12040 ;; 12041 *) 12042 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12043 ;; 12044 esac 12045 else 12046 case $host_cpu in 12047 hppa*64*) 12048 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12049 ;; 12050 ia64*) 12051 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12052 ;; 12053 *) 12054 12055 # Older versions of the 11.00 compiler do not understand -b yet 12056 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12058 printf %s "checking if $CC understands -b... " >&6; } 12059 if test ${lt_cv_prog_compiler__b+y} 12060 then : 12061 printf %s "(cached) " >&6 12062 else $as_nop 12063 lt_cv_prog_compiler__b=no 12064 save_LDFLAGS=$LDFLAGS 12065 LDFLAGS="$LDFLAGS -b" 12066 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12068 # The linker can only warn and ignore the option if not recognized 12069 # So say no if there are warnings 12070 if test -s conftest.err; then 12071 # Append any errors to the config.log. 12072 cat conftest.err 1>&5 12073 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12075 if diff conftest.exp conftest.er2 >/dev/null; then 12076 lt_cv_prog_compiler__b=yes 12077 fi 12078 else 12079 lt_cv_prog_compiler__b=yes 12080 fi 12081 fi 12082 $RM -r conftest* 12083 LDFLAGS=$save_LDFLAGS 12084 12085 fi 12086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12087 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 12088 12089 if test yes = "$lt_cv_prog_compiler__b"; then 12090 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12091 else 12092 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12093 fi 12094 12095 ;; 12096 esac 12097 fi 12098 if test no = "$with_gnu_ld"; then 12099 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 12100 hardcode_libdir_separator=: 12101 12102 case $host_cpu in 12103 hppa*64*|ia64*) 12104 hardcode_direct=no 12105 hardcode_shlibpath_var=no 12106 ;; 12107 *) 12108 hardcode_direct=yes 12109 hardcode_direct_absolute=yes 12110 export_dynamic_flag_spec='$wl-E' 12111 12112 # hardcode_minus_L: Not really in the search PATH, 12113 # but as the default location of the library. 12114 hardcode_minus_L=yes 12115 ;; 12116 esac 12117 fi 12118 ;; 12119 12120 irix5* | irix6* | nonstopux*) 12121 if test yes = "$GCC"; then 12122 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' 12123 # Try to use the -exported_symbol ld option, if it does not 12124 # work, assume that -exports_file does not work either and 12125 # implicitly export all symbols. 12126 # This should be the same for all languages, so no per-tag cache variable. 12127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 12128 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 12129 if test ${lt_cv_irix_exported_symbol+y} 12130 then : 12131 printf %s "(cached) " >&6 12132 else $as_nop 12133 save_LDFLAGS=$LDFLAGS 12134 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12136 /* end confdefs.h. */ 12137 int foo (void) { return 0; } 12138 _ACEOF 12139 if ac_fn_c_try_link "$LINENO" 12140 then : 12141 lt_cv_irix_exported_symbol=yes 12142 else $as_nop 12143 lt_cv_irix_exported_symbol=no 12144 fi 12145 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12146 conftest$ac_exeext conftest.$ac_ext 12147 LDFLAGS=$save_LDFLAGS 12148 fi 12149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 12150 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 12151 if test yes = "$lt_cv_irix_exported_symbol"; then 12152 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' 12153 fi 12154 link_all_deplibs=no 12155 else 12156 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' 12157 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' 12158 fi 12159 archive_cmds_need_lc='no' 12160 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12161 hardcode_libdir_separator=: 12162 inherit_rpath=yes 12163 link_all_deplibs=yes 12164 ;; 12165 12166 linux*) 12167 case $cc_basename in 12168 tcc*) 12169 # Fabrice Bellard et al's Tiny C Compiler 12170 ld_shlibs=yes 12171 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12172 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12173 ;; 12174 esac 12175 ;; 12176 12177 netbsd* | netbsdelf*-gnu) 12178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12180 else 12181 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12182 fi 12183 hardcode_libdir_flag_spec='-R$libdir' 12184 hardcode_direct=yes 12185 hardcode_shlibpath_var=no 12186 ;; 12187 12188 newsos6) 12189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12190 hardcode_direct=yes 12191 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12192 hardcode_libdir_separator=: 12193 hardcode_shlibpath_var=no 12194 ;; 12195 12196 *nto* | *qnx*) 12197 ;; 12198 12199 openbsd* | bitrig*) 12200 if test -f /usr/libexec/ld.so; then 12201 hardcode_direct=yes 12202 hardcode_shlibpath_var=no 12203 hardcode_direct_absolute=yes 12204 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12205 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12206 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 12207 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12208 export_dynamic_flag_spec='$wl-E' 12209 else 12210 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12211 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12212 fi 12213 else 12214 ld_shlibs=no 12215 fi 12216 ;; 12217 12218 os2*) 12219 hardcode_libdir_flag_spec='-L$libdir' 12220 hardcode_minus_L=yes 12221 allow_undefined_flag=unsupported 12222 shrext_cmds=.dll 12223 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12224 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12225 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12226 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12227 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12228 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12229 emximp -o $lib $output_objdir/$libname.def' 12230 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12231 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12232 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12233 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12234 prefix_cmds="$SED"~ 12235 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12236 prefix_cmds="$prefix_cmds -e 1d"; 12237 fi~ 12238 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12239 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12240 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12241 emximp -o $lib $output_objdir/$libname.def' 12242 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12243 enable_shared_with_static_runtimes=yes 12244 file_list_spec='@' 12245 ;; 12246 12247 osf3*) 12248 if test yes = "$GCC"; then 12249 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12250 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' 12251 else 12252 allow_undefined_flag=' -expect_unresolved \*' 12253 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' 12254 fi 12255 archive_cmds_need_lc='no' 12256 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12257 hardcode_libdir_separator=: 12258 ;; 12259 12260 osf4* | osf5*) # as osf3* with the addition of -msym flag 12261 if test yes = "$GCC"; then 12262 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 12263 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' 12264 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12265 else 12266 allow_undefined_flag=' -expect_unresolved \*' 12267 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' 12268 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~ 12269 $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' 12270 12271 # Both c and cxx compiler support -rpath directly 12272 hardcode_libdir_flag_spec='-rpath $libdir' 12273 fi 12274 archive_cmds_need_lc='no' 12275 hardcode_libdir_separator=: 12276 ;; 12277 12278 solaris*) 12279 no_undefined_flag=' -z defs' 12280 if test yes = "$GCC"; then 12281 wlarc='$wl' 12282 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 12283 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12284 $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' 12285 else 12286 case `$CC -V 2>&1` in 12287 *"Compilers 5.0"*) 12288 wlarc='' 12289 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 12290 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12291 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12292 ;; 12293 *) 12294 wlarc='$wl' 12295 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12297 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12298 ;; 12299 esac 12300 fi 12301 hardcode_libdir_flag_spec='-R$libdir' 12302 hardcode_shlibpath_var=no 12303 case $host_os in 12304 solaris2.[0-5] | solaris2.[0-5].*) ;; 12305 *) 12306 # The compiler driver will combine and reorder linker options, 12307 # but understands '-z linker_flag'. GCC discards it without '$wl', 12308 # but is careful enough not to reorder. 12309 # Supported since Solaris 2.6 (maybe 2.5.1?) 12310 if test yes = "$GCC"; then 12311 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 12312 else 12313 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12314 fi 12315 ;; 12316 esac 12317 link_all_deplibs=yes 12318 ;; 12319 12320 sunos4*) 12321 if test sequent = "$host_vendor"; then 12322 # Use $CC to link under sequent, because it throws in some extra .o 12323 # files that make .init and .fini sections work. 12324 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12325 else 12326 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12327 fi 12328 hardcode_libdir_flag_spec='-L$libdir' 12329 hardcode_direct=yes 12330 hardcode_minus_L=yes 12331 hardcode_shlibpath_var=no 12332 ;; 12333 12334 sysv4) 12335 case $host_vendor in 12336 sni) 12337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12338 hardcode_direct=yes # is this really true??? 12339 ;; 12340 siemens) 12341 ## LD is ld it makes a PLAMLIB 12342 ## CC just makes a GrossModule. 12343 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12344 reload_cmds='$CC -r -o $output$reload_objs' 12345 hardcode_direct=no 12346 ;; 12347 motorola) 12348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12349 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12350 ;; 12351 esac 12352 runpath_var='LD_RUN_PATH' 12353 hardcode_shlibpath_var=no 12354 ;; 12355 12356 sysv4.3*) 12357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12358 hardcode_shlibpath_var=no 12359 export_dynamic_flag_spec='-Bexport' 12360 ;; 12361 12362 sysv4*MP*) 12363 if test -d /usr/nec; then 12364 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12365 hardcode_shlibpath_var=no 12366 runpath_var=LD_RUN_PATH 12367 hardcode_runpath_var=yes 12368 ld_shlibs=yes 12369 fi 12370 ;; 12371 12372 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12373 no_undefined_flag='$wl-z,text' 12374 archive_cmds_need_lc=no 12375 hardcode_shlibpath_var=no 12376 runpath_var='LD_RUN_PATH' 12377 12378 if test yes = "$GCC"; then 12379 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12380 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12381 else 12382 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12383 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12384 fi 12385 ;; 12386 12387 sysv5* | sco3.2v5* | sco5v6*) 12388 # Note: We CANNOT use -z defs as we might desire, because we do not 12389 # link with -lc, and that would cause any symbols used from libc to 12390 # always be unresolved, which means just about no library would 12391 # ever link correctly. If we're not using GNU ld we use -z text 12392 # though, which does catch some bad symbols but isn't as heavy-handed 12393 # as -z defs. 12394 no_undefined_flag='$wl-z,text' 12395 allow_undefined_flag='$wl-z,nodefs' 12396 archive_cmds_need_lc=no 12397 hardcode_shlibpath_var=no 12398 hardcode_libdir_flag_spec='$wl-R,$libdir' 12399 hardcode_libdir_separator=':' 12400 link_all_deplibs=yes 12401 export_dynamic_flag_spec='$wl-Bexport' 12402 runpath_var='LD_RUN_PATH' 12403 12404 if test yes = "$GCC"; then 12405 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12406 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12407 else 12408 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12409 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12410 fi 12411 ;; 12412 12413 uts4*) 12414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12415 hardcode_libdir_flag_spec='-L$libdir' 12416 hardcode_shlibpath_var=no 12417 ;; 12418 12419 *) 12420 ld_shlibs=no 12421 ;; 12422 esac 12423 12424 if test sni = "$host_vendor"; then 12425 case $host in 12426 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12427 export_dynamic_flag_spec='$wl-Blargedynsym' 12428 ;; 12429 esac 12430 fi 12431 fi 12432 12433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12434 printf "%s\n" "$ld_shlibs" >&6; } 12435 test no = "$ld_shlibs" && can_build_shared=no 12436 12437 with_gnu_ld=$with_gnu_ld 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 # 12454 # Do we need to explicitly link libc? 12455 # 12456 case "x$archive_cmds_need_lc" in 12457 x|xyes) 12458 # Assume -lc should be added 12459 archive_cmds_need_lc=yes 12460 12461 if test yes,yes = "$GCC,$enable_shared"; then 12462 case $archive_cmds in 12463 *'~'*) 12464 # FIXME: we may have to deal with multi-command sequences. 12465 ;; 12466 '$CC '*) 12467 # Test whether the compiler implicitly links with -lc since on some 12468 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12469 # to ld, don't add -lc before -lgcc. 12470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12471 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 12472 if test ${lt_cv_archive_cmds_need_lc+y} 12473 then : 12474 printf %s "(cached) " >&6 12475 else $as_nop 12476 $RM conftest* 12477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12478 12479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12480 (eval $ac_compile) 2>&5 12481 ac_status=$? 12482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12483 test $ac_status = 0; } 2>conftest.err; then 12484 soname=conftest 12485 lib=conftest 12486 libobjs=conftest.$ac_objext 12487 deplibs= 12488 wl=$lt_prog_compiler_wl 12489 pic_flag=$lt_prog_compiler_pic 12490 compiler_flags=-v 12491 linker_flags=-v 12492 verstring= 12493 output_objdir=. 12494 libname=conftest 12495 lt_save_allow_undefined_flag=$allow_undefined_flag 12496 allow_undefined_flag= 12497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12498 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12499 ac_status=$? 12500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12501 test $ac_status = 0; } 12502 then 12503 lt_cv_archive_cmds_need_lc=no 12504 else 12505 lt_cv_archive_cmds_need_lc=yes 12506 fi 12507 allow_undefined_flag=$lt_save_allow_undefined_flag 12508 else 12509 cat conftest.err 1>&5 12510 fi 12511 $RM conftest* 12512 12513 fi 12514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12515 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 12516 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12517 ;; 12518 esac 12519 fi 12520 ;; 12521 esac 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 12673 12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12675 printf %s "checking dynamic linker characteristics... " >&6; } 12676 12677 if test yes = "$GCC"; then 12678 case $host_os in 12679 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12680 *) lt_awk_arg='/^libraries:/' ;; 12681 esac 12682 case $host_os in 12683 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12684 *) lt_sed_strip_eq='s|=/|/|g' ;; 12685 esac 12686 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12687 case $lt_search_path_spec in 12688 *\;*) 12689 # if the path contains ";" then we assume it to be the separator 12690 # otherwise default to the standard path separator (i.e. ":") - it is 12691 # assumed that no part of a normal pathname contains ";" but that should 12692 # okay in the real world where ";" in dirpaths is itself problematic. 12693 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12694 ;; 12695 *) 12696 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12697 ;; 12698 esac 12699 # Ok, now we have the path, separated by spaces, we can step through it 12700 # and add multilib dir if necessary... 12701 lt_tmp_lt_search_path_spec= 12702 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12703 # ...but if some path component already ends with the multilib dir we assume 12704 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12705 case "$lt_multi_os_dir; $lt_search_path_spec " in 12706 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12707 lt_multi_os_dir= 12708 ;; 12709 esac 12710 for lt_sys_path in $lt_search_path_spec; do 12711 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12712 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12713 elif test -n "$lt_multi_os_dir"; then 12714 test -d "$lt_sys_path" && \ 12715 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12716 fi 12717 done 12718 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12719 BEGIN {RS = " "; FS = "/|\n";} { 12720 lt_foo = ""; 12721 lt_count = 0; 12722 for (lt_i = NF; lt_i > 0; lt_i--) { 12723 if ($lt_i != "" && $lt_i != ".") { 12724 if ($lt_i == "..") { 12725 lt_count++; 12726 } else { 12727 if (lt_count == 0) { 12728 lt_foo = "/" $lt_i lt_foo; 12729 } else { 12730 lt_count--; 12731 } 12732 } 12733 } 12734 } 12735 if (lt_foo != "") { lt_freq[lt_foo]++; } 12736 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12737 }'` 12738 # AWK program above erroneously prepends '/' to C:/dos/paths 12739 # for these hosts. 12740 case $host_os in 12741 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12742 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12743 esac 12744 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12745 else 12746 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12747 fi 12748 library_names_spec= 12749 libname_spec='lib$name' 12750 soname_spec= 12751 shrext_cmds=.so 12752 postinstall_cmds= 12753 postuninstall_cmds= 12754 finish_cmds= 12755 finish_eval= 12756 shlibpath_var= 12757 shlibpath_overrides_runpath=unknown 12758 version_type=none 12759 dynamic_linker="$host_os ld.so" 12760 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12761 need_lib_prefix=unknown 12762 hardcode_into_libs=no 12763 12764 # when you set need_version to no, make sure it does not cause -set_version 12765 # flags to be left without arguments 12766 need_version=unknown 12767 12768 12769 12770 case $host_os in 12771 aix3*) 12772 version_type=linux # correct to gnu/linux during the next big refactor 12773 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12774 shlibpath_var=LIBPATH 12775 12776 # AIX 3 has no versioning support, so we append a major version to the name. 12777 soname_spec='$libname$release$shared_ext$major' 12778 ;; 12779 12780 aix[4-9]*) 12781 version_type=linux # correct to gnu/linux during the next big refactor 12782 need_lib_prefix=no 12783 need_version=no 12784 hardcode_into_libs=yes 12785 if test ia64 = "$host_cpu"; then 12786 # AIX 5 supports IA64 12787 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12788 shlibpath_var=LD_LIBRARY_PATH 12789 else 12790 # With GCC up to 2.95.x, collect2 would create an import file 12791 # for dependence libraries. The import file would start with 12792 # the line '#! .'. This would cause the generated library to 12793 # depend on '.', always an invalid library. This was fixed in 12794 # development snapshots of GCC prior to 3.0. 12795 case $host_os in 12796 aix4 | aix4.[01] | aix4.[01].*) 12797 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12798 echo ' yes ' 12799 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12800 : 12801 else 12802 can_build_shared=no 12803 fi 12804 ;; 12805 esac 12806 # Using Import Files as archive members, it is possible to support 12807 # filename-based versioning of shared library archives on AIX. While 12808 # this would work for both with and without runtime linking, it will 12809 # prevent static linking of such archives. So we do filename-based 12810 # shared library versioning with .so extension only, which is used 12811 # when both runtime linking and shared linking is enabled. 12812 # Unfortunately, runtime linking may impact performance, so we do 12813 # not want this to be the default eventually. Also, we use the 12814 # versioned .so libs for executables only if there is the -brtl 12815 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12816 # To allow for filename-based versioning support, we need to create 12817 # libNAME.so.V as an archive file, containing: 12818 # *) an Import File, referring to the versioned filename of the 12819 # archive as well as the shared archive member, telling the 12820 # bitwidth (32 or 64) of that shared object, and providing the 12821 # list of exported symbols of that shared object, eventually 12822 # decorated with the 'weak' keyword 12823 # *) the shared object with the F_LOADONLY flag set, to really avoid 12824 # it being seen by the linker. 12825 # At run time we better use the real file rather than another symlink, 12826 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12827 12828 case $with_aix_soname,$aix_use_runtimelinking in 12829 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12830 # soname into executable. Probably we can add versioning support to 12831 # collect2, so additional links can be useful in future. 12832 aix,yes) # traditional libtool 12833 dynamic_linker='AIX unversionable lib.so' 12834 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12835 # instead of lib<name>.a to let people know that these are not 12836 # typical AIX shared libraries. 12837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12838 ;; 12839 aix,no) # traditional AIX only 12840 dynamic_linker='AIX lib.a(lib.so.V)' 12841 # We preserve .a as extension for shared libraries through AIX4.2 12842 # and later when we are not doing run time linking. 12843 library_names_spec='$libname$release.a $libname.a' 12844 soname_spec='$libname$release$shared_ext$major' 12845 ;; 12846 svr4,*) # full svr4 only 12847 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12848 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12849 # We do not specify a path in Import Files, so LIBPATH fires. 12850 shlibpath_overrides_runpath=yes 12851 ;; 12852 *,yes) # both, prefer svr4 12853 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12854 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12855 # unpreferred sharedlib libNAME.a needs extra handling 12856 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"' 12857 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"' 12858 # We do not specify a path in Import Files, so LIBPATH fires. 12859 shlibpath_overrides_runpath=yes 12860 ;; 12861 *,no) # both, prefer aix 12862 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12863 library_names_spec='$libname$release.a $libname.a' 12864 soname_spec='$libname$release$shared_ext$major' 12865 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12866 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)' 12867 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"' 12868 ;; 12869 esac 12870 shlibpath_var=LIBPATH 12871 fi 12872 ;; 12873 12874 amigaos*) 12875 case $host_cpu in 12876 powerpc) 12877 # Since July 2007 AmigaOS4 officially supports .so libraries. 12878 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12880 ;; 12881 m68k) 12882 library_names_spec='$libname.ixlibrary $libname.a' 12883 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12884 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' 12885 ;; 12886 esac 12887 ;; 12888 12889 beos*) 12890 library_names_spec='$libname$shared_ext' 12891 dynamic_linker="$host_os ld.so" 12892 shlibpath_var=LIBRARY_PATH 12893 ;; 12894 12895 bsdi[45]*) 12896 version_type=linux # correct to gnu/linux during the next big refactor 12897 need_version=no 12898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12899 soname_spec='$libname$release$shared_ext$major' 12900 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12901 shlibpath_var=LD_LIBRARY_PATH 12902 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12903 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12904 # the default ld.so.conf also contains /usr/contrib/lib and 12905 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12906 # libtool to hard-code these into programs 12907 ;; 12908 12909 cygwin* | mingw* | pw32* | cegcc*) 12910 version_type=windows 12911 shrext_cmds=.dll 12912 need_version=no 12913 need_lib_prefix=no 12914 12915 case $GCC,$cc_basename in 12916 yes,*) 12917 # gcc 12918 library_names_spec='$libname.dll.a' 12919 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12920 postinstall_cmds='base_file=`basename \$file`~ 12921 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12922 dldir=$destdir/`dirname \$dlpath`~ 12923 test -d \$dldir || mkdir -p \$dldir~ 12924 $install_prog $dir/$dlname \$dldir/$dlname~ 12925 chmod a+x \$dldir/$dlname~ 12926 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12927 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12928 fi' 12929 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12930 dlpath=$dir/\$dldll~ 12931 $RM \$dlpath' 12932 shlibpath_overrides_runpath=yes 12933 12934 case $host_os in 12935 cygwin*) 12936 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12937 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12938 12939 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12940 ;; 12941 mingw* | cegcc*) 12942 # MinGW DLLs use traditional 'lib' prefix 12943 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12944 ;; 12945 pw32*) 12946 # pw32 DLLs use 'pw' prefix rather than 'lib' 12947 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12948 ;; 12949 esac 12950 dynamic_linker='Win32 ld.exe' 12951 ;; 12952 12953 *,cl* | *,icl*) 12954 # Native MSVC or ICC 12955 libname_spec='$name' 12956 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12957 library_names_spec='$libname.dll.lib' 12958 12959 case $build_os in 12960 mingw*) 12961 sys_lib_search_path_spec= 12962 lt_save_ifs=$IFS 12963 IFS=';' 12964 for lt_path in $LIB 12965 do 12966 IFS=$lt_save_ifs 12967 # Let DOS variable expansion print the short 8.3 style file name. 12968 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12969 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12970 done 12971 IFS=$lt_save_ifs 12972 # Convert to MSYS style. 12973 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12974 ;; 12975 cygwin*) 12976 # Convert to unix form, then to dos form, then back to unix form 12977 # but this time dos style (no spaces!) so that the unix form looks 12978 # like /cygdrive/c/PROGRA~1:/cygdr... 12979 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12980 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12981 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12982 ;; 12983 *) 12984 sys_lib_search_path_spec=$LIB 12985 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12986 # It is most probably a Windows format PATH. 12987 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12988 else 12989 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12990 fi 12991 # FIXME: find the short name or the path components, as spaces are 12992 # common. (e.g. "Program Files" -> "PROGRA~1") 12993 ;; 12994 esac 12995 12996 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12997 postinstall_cmds='base_file=`basename \$file`~ 12998 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12999 dldir=$destdir/`dirname \$dlpath`~ 13000 test -d \$dldir || mkdir -p \$dldir~ 13001 $install_prog $dir/$dlname \$dldir/$dlname' 13002 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13003 dlpath=$dir/\$dldll~ 13004 $RM \$dlpath' 13005 shlibpath_overrides_runpath=yes 13006 dynamic_linker='Win32 link.exe' 13007 ;; 13008 13009 *) 13010 # Assume MSVC and ICC wrapper 13011 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 13012 dynamic_linker='Win32 ld.exe' 13013 ;; 13014 esac 13015 # FIXME: first we should search . and the directory the executable is in 13016 shlibpath_var=PATH 13017 ;; 13018 13019 darwin* | rhapsody*) 13020 dynamic_linker="$host_os dyld" 13021 version_type=darwin 13022 need_lib_prefix=no 13023 need_version=no 13024 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 13025 soname_spec='$libname$release$major$shared_ext' 13026 shlibpath_overrides_runpath=yes 13027 shlibpath_var=DYLD_LIBRARY_PATH 13028 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13029 13030 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13031 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13032 ;; 13033 13034 dgux*) 13035 version_type=linux # correct to gnu/linux during the next big refactor 13036 need_lib_prefix=no 13037 need_version=no 13038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13039 soname_spec='$libname$release$shared_ext$major' 13040 shlibpath_var=LD_LIBRARY_PATH 13041 ;; 13042 13043 freebsd* | dragonfly* | midnightbsd*) 13044 # DragonFly does not have aout. When/if they implement a new 13045 # versioning mechanism, adjust this. 13046 if test -x /usr/bin/objformat; then 13047 objformat=`/usr/bin/objformat` 13048 else 13049 case $host_os in 13050 freebsd[23].*) objformat=aout ;; 13051 *) objformat=elf ;; 13052 esac 13053 fi 13054 version_type=freebsd-$objformat 13055 case $version_type in 13056 freebsd-elf*) 13057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13058 soname_spec='$libname$release$shared_ext$major' 13059 need_version=no 13060 need_lib_prefix=no 13061 ;; 13062 freebsd-*) 13063 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13064 need_version=yes 13065 ;; 13066 esac 13067 shlibpath_var=LD_LIBRARY_PATH 13068 case $host_os in 13069 freebsd2.*) 13070 shlibpath_overrides_runpath=yes 13071 ;; 13072 freebsd3.[01]* | freebsdelf3.[01]*) 13073 shlibpath_overrides_runpath=yes 13074 hardcode_into_libs=yes 13075 ;; 13076 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13077 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13078 shlibpath_overrides_runpath=no 13079 hardcode_into_libs=yes 13080 ;; 13081 *) # from 4.6 on, and DragonFly 13082 shlibpath_overrides_runpath=yes 13083 hardcode_into_libs=yes 13084 ;; 13085 esac 13086 ;; 13087 13088 haiku*) 13089 version_type=linux # correct to gnu/linux during the next big refactor 13090 need_lib_prefix=no 13091 need_version=no 13092 dynamic_linker="$host_os runtime_loader" 13093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13094 soname_spec='$libname$release$shared_ext$major' 13095 shlibpath_var=LIBRARY_PATH 13096 shlibpath_overrides_runpath=no 13097 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13098 hardcode_into_libs=yes 13099 ;; 13100 13101 hpux9* | hpux10* | hpux11*) 13102 # Give a soname corresponding to the major version so that dld.sl refuses to 13103 # link against other versions. 13104 version_type=sunos 13105 need_lib_prefix=no 13106 need_version=no 13107 case $host_cpu in 13108 ia64*) 13109 shrext_cmds='.so' 13110 hardcode_into_libs=yes 13111 dynamic_linker="$host_os dld.so" 13112 shlibpath_var=LD_LIBRARY_PATH 13113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13115 soname_spec='$libname$release$shared_ext$major' 13116 if test 32 = "$HPUX_IA64_MODE"; then 13117 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13118 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 13119 else 13120 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13121 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 13122 fi 13123 ;; 13124 hppa*64*) 13125 shrext_cmds='.sl' 13126 hardcode_into_libs=yes 13127 dynamic_linker="$host_os dld.sl" 13128 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13131 soname_spec='$libname$release$shared_ext$major' 13132 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13134 ;; 13135 *) 13136 shrext_cmds='.sl' 13137 dynamic_linker="$host_os dld.sl" 13138 shlibpath_var=SHLIB_PATH 13139 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13141 soname_spec='$libname$release$shared_ext$major' 13142 ;; 13143 esac 13144 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13145 postinstall_cmds='chmod 555 $lib' 13146 # or fails outright, so override atomically: 13147 install_override_mode=555 13148 ;; 13149 13150 interix[3-9]*) 13151 version_type=linux # correct to gnu/linux during the next big refactor 13152 need_lib_prefix=no 13153 need_version=no 13154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13155 soname_spec='$libname$release$shared_ext$major' 13156 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13157 shlibpath_var=LD_LIBRARY_PATH 13158 shlibpath_overrides_runpath=no 13159 hardcode_into_libs=yes 13160 ;; 13161 13162 irix5* | irix6* | nonstopux*) 13163 case $host_os in 13164 nonstopux*) version_type=nonstopux ;; 13165 *) 13166 if test yes = "$lt_cv_prog_gnu_ld"; then 13167 version_type=linux # correct to gnu/linux during the next big refactor 13168 else 13169 version_type=irix 13170 fi ;; 13171 esac 13172 need_lib_prefix=no 13173 need_version=no 13174 soname_spec='$libname$release$shared_ext$major' 13175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 13176 case $host_os in 13177 irix5* | nonstopux*) 13178 libsuff= shlibsuff= 13179 ;; 13180 *) 13181 case $LD in # libtool.m4 will add one of these switches to LD 13182 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13183 libsuff= shlibsuff= libmagic=32-bit;; 13184 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13185 libsuff=32 shlibsuff=N32 libmagic=N32;; 13186 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13187 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13188 *) libsuff= shlibsuff= libmagic=never-match;; 13189 esac 13190 ;; 13191 esac 13192 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13193 shlibpath_overrides_runpath=no 13194 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 13195 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 13196 hardcode_into_libs=yes 13197 ;; 13198 13199 # No shared lib support for Linux oldld, aout, or coff. 13200 linux*oldld* | linux*aout* | linux*coff*) 13201 dynamic_linker=no 13202 ;; 13203 13204 linux*android*) 13205 version_type=none # Android doesn't support versioned libraries. 13206 need_lib_prefix=no 13207 need_version=no 13208 library_names_spec='$libname$release$shared_ext' 13209 soname_spec='$libname$release$shared_ext' 13210 finish_cmds= 13211 shlibpath_var=LD_LIBRARY_PATH 13212 shlibpath_overrides_runpath=yes 13213 13214 # This implies no fast_install, which is unacceptable. 13215 # Some rework will be needed to allow for fast_install 13216 # before this can be enabled. 13217 hardcode_into_libs=yes 13218 13219 dynamic_linker='Android linker' 13220 # Don't embed -rpath directories since the linker doesn't support them. 13221 hardcode_libdir_flag_spec='-L$libdir' 13222 ;; 13223 13224 # This must be glibc/ELF. 13225 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13226 version_type=linux # correct to gnu/linux during the next big refactor 13227 need_lib_prefix=no 13228 need_version=no 13229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13230 soname_spec='$libname$release$shared_ext$major' 13231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13232 shlibpath_var=LD_LIBRARY_PATH 13233 shlibpath_overrides_runpath=no 13234 13235 # Some binutils ld are patched to set DT_RUNPATH 13236 if test ${lt_cv_shlibpath_overrides_runpath+y} 13237 then : 13238 printf %s "(cached) " >&6 13239 else $as_nop 13240 lt_cv_shlibpath_overrides_runpath=no 13241 save_LDFLAGS=$LDFLAGS 13242 save_libdir=$libdir 13243 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13244 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13246 /* end confdefs.h. */ 13247 13248 int 13249 main (void) 13250 { 13251 13252 ; 13253 return 0; 13254 } 13255 _ACEOF 13256 if ac_fn_c_try_link "$LINENO" 13257 then : 13258 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 13259 then : 13260 lt_cv_shlibpath_overrides_runpath=yes 13261 fi 13262 fi 13263 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13264 conftest$ac_exeext conftest.$ac_ext 13265 LDFLAGS=$save_LDFLAGS 13266 libdir=$save_libdir 13267 13268 fi 13269 13270 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13271 13272 # This implies no fast_install, which is unacceptable. 13273 # Some rework will be needed to allow for fast_install 13274 # before this can be enabled. 13275 hardcode_into_libs=yes 13276 13277 # Ideally, we could use ldconfig to report *all* directores which are 13278 # searched for libraries, however this is still not possible. Aside from not 13279 # being certain /sbin/ldconfig is available, command 13280 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 13281 # even though it is searched at run-time. Try to do the best guess by 13282 # appending ld.so.conf contents (and includes) to the search path. 13283 if test -f /etc/ld.so.conf; then 13284 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' ' '` 13285 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13286 fi 13287 13288 # We used to test for /lib/ld.so.1 and disable shared libraries on 13289 # powerpc, because MkLinux only supported shared libraries with the 13290 # GNU dynamic linker. Since this was broken with cross compilers, 13291 # most powerpc-linux boxes support dynamic linking these days and 13292 # people can always --disable-shared, the test was removed, and we 13293 # assume the GNU/Linux dynamic linker is in use. 13294 dynamic_linker='GNU/Linux ld.so' 13295 ;; 13296 13297 netbsdelf*-gnu) 13298 version_type=linux 13299 need_lib_prefix=no 13300 need_version=no 13301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13302 soname_spec='${libname}${release}${shared_ext}$major' 13303 shlibpath_var=LD_LIBRARY_PATH 13304 shlibpath_overrides_runpath=no 13305 hardcode_into_libs=yes 13306 dynamic_linker='NetBSD ld.elf_so' 13307 ;; 13308 13309 netbsd*) 13310 version_type=sunos 13311 need_lib_prefix=no 13312 need_version=no 13313 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13314 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13316 dynamic_linker='NetBSD (a.out) ld.so' 13317 else 13318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13319 soname_spec='$libname$release$shared_ext$major' 13320 dynamic_linker='NetBSD ld.elf_so' 13321 fi 13322 shlibpath_var=LD_LIBRARY_PATH 13323 shlibpath_overrides_runpath=yes 13324 hardcode_into_libs=yes 13325 ;; 13326 13327 newsos6) 13328 version_type=linux # correct to gnu/linux during the next big refactor 13329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13330 shlibpath_var=LD_LIBRARY_PATH 13331 shlibpath_overrides_runpath=yes 13332 ;; 13333 13334 *nto* | *qnx*) 13335 version_type=qnx 13336 need_lib_prefix=no 13337 need_version=no 13338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13339 soname_spec='$libname$release$shared_ext$major' 13340 shlibpath_var=LD_LIBRARY_PATH 13341 shlibpath_overrides_runpath=no 13342 hardcode_into_libs=yes 13343 dynamic_linker='ldqnx.so' 13344 ;; 13345 13346 openbsd* | bitrig*) 13347 version_type=sunos 13348 sys_lib_dlsearch_path_spec=/usr/lib 13349 need_lib_prefix=no 13350 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13351 need_version=no 13352 else 13353 need_version=yes 13354 fi 13355 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13357 shlibpath_var=LD_LIBRARY_PATH 13358 shlibpath_overrides_runpath=yes 13359 ;; 13360 13361 os2*) 13362 libname_spec='$name' 13363 version_type=windows 13364 shrext_cmds=.dll 13365 need_version=no 13366 need_lib_prefix=no 13367 # OS/2 can only load a DLL with a base name of 8 characters or less. 13368 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13369 v=$($ECHO $release$versuffix | tr -d .-); 13370 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13371 $ECHO $n$v`$shared_ext' 13372 library_names_spec='${libname}_dll.$libext' 13373 dynamic_linker='OS/2 ld.exe' 13374 shlibpath_var=BEGINLIBPATH 13375 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13377 postinstall_cmds='base_file=`basename \$file`~ 13378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13379 dldir=$destdir/`dirname \$dlpath`~ 13380 test -d \$dldir || mkdir -p \$dldir~ 13381 $install_prog $dir/$dlname \$dldir/$dlname~ 13382 chmod a+x \$dldir/$dlname~ 13383 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13384 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13385 fi' 13386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13387 dlpath=$dir/\$dldll~ 13388 $RM \$dlpath' 13389 ;; 13390 13391 osf3* | osf4* | osf5*) 13392 version_type=osf 13393 need_lib_prefix=no 13394 need_version=no 13395 soname_spec='$libname$release$shared_ext$major' 13396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13397 shlibpath_var=LD_LIBRARY_PATH 13398 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13400 ;; 13401 13402 rdos*) 13403 dynamic_linker=no 13404 ;; 13405 13406 solaris*) 13407 version_type=linux # correct to gnu/linux during the next big refactor 13408 need_lib_prefix=no 13409 need_version=no 13410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13411 soname_spec='$libname$release$shared_ext$major' 13412 shlibpath_var=LD_LIBRARY_PATH 13413 shlibpath_overrides_runpath=yes 13414 hardcode_into_libs=yes 13415 # ldd complains unless libraries are executable 13416 postinstall_cmds='chmod +x $lib' 13417 ;; 13418 13419 sunos4*) 13420 version_type=sunos 13421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13422 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13423 shlibpath_var=LD_LIBRARY_PATH 13424 shlibpath_overrides_runpath=yes 13425 if test yes = "$with_gnu_ld"; then 13426 need_lib_prefix=no 13427 fi 13428 need_version=yes 13429 ;; 13430 13431 sysv4 | sysv4.3*) 13432 version_type=linux # correct to gnu/linux during the next big refactor 13433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13434 soname_spec='$libname$release$shared_ext$major' 13435 shlibpath_var=LD_LIBRARY_PATH 13436 case $host_vendor in 13437 sni) 13438 shlibpath_overrides_runpath=no 13439 need_lib_prefix=no 13440 runpath_var=LD_RUN_PATH 13441 ;; 13442 siemens) 13443 need_lib_prefix=no 13444 ;; 13445 motorola) 13446 need_lib_prefix=no 13447 need_version=no 13448 shlibpath_overrides_runpath=no 13449 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13450 ;; 13451 esac 13452 ;; 13453 13454 sysv4*MP*) 13455 if test -d /usr/nec; then 13456 version_type=linux # correct to gnu/linux during the next big refactor 13457 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13458 soname_spec='$libname$shared_ext.$major' 13459 shlibpath_var=LD_LIBRARY_PATH 13460 fi 13461 ;; 13462 13463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13464 version_type=sco 13465 need_lib_prefix=no 13466 need_version=no 13467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13468 soname_spec='$libname$release$shared_ext$major' 13469 shlibpath_var=LD_LIBRARY_PATH 13470 shlibpath_overrides_runpath=yes 13471 hardcode_into_libs=yes 13472 if test yes = "$with_gnu_ld"; then 13473 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13474 else 13475 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13476 case $host_os in 13477 sco3.2v5*) 13478 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13479 ;; 13480 esac 13481 fi 13482 sys_lib_dlsearch_path_spec='/usr/lib' 13483 ;; 13484 13485 tpf*) 13486 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13487 version_type=linux # correct to gnu/linux during the next big refactor 13488 need_lib_prefix=no 13489 need_version=no 13490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13491 shlibpath_var=LD_LIBRARY_PATH 13492 shlibpath_overrides_runpath=no 13493 hardcode_into_libs=yes 13494 ;; 13495 13496 uts4*) 13497 version_type=linux # correct to gnu/linux during the next big refactor 13498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13499 soname_spec='$libname$release$shared_ext$major' 13500 shlibpath_var=LD_LIBRARY_PATH 13501 ;; 13502 13503 *) 13504 dynamic_linker=no 13505 ;; 13506 esac 13507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13508 printf "%s\n" "$dynamic_linker" >&6; } 13509 test no = "$dynamic_linker" && can_build_shared=no 13510 13511 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13512 if test yes = "$GCC"; then 13513 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13514 fi 13515 13516 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13517 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13518 fi 13519 13520 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13521 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13522 fi 13523 13524 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13525 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13526 13527 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13528 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13529 13530 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13531 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 13628 13629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13630 printf %s "checking how to hardcode library paths into programs... " >&6; } 13631 hardcode_action= 13632 if test -n "$hardcode_libdir_flag_spec" || 13633 test -n "$runpath_var" || 13634 test yes = "$hardcode_automatic"; then 13635 13636 # We can hardcode non-existent directories. 13637 if test no != "$hardcode_direct" && 13638 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13639 # have to relink, otherwise we might link with an installed library 13640 # when we should be linking with a yet-to-be-installed one 13641 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13642 test no != "$hardcode_minus_L"; then 13643 # Linking always hardcodes the temporary library directory. 13644 hardcode_action=relink 13645 else 13646 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13647 hardcode_action=immediate 13648 fi 13649 else 13650 # We cannot hardcode anything, or else we can only hardcode existing 13651 # directories. 13652 hardcode_action=unsupported 13653 fi 13654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13655 printf "%s\n" "$hardcode_action" >&6; } 13656 13657 if test relink = "$hardcode_action" || 13658 test yes = "$inherit_rpath"; then 13659 # Fast installation is not supported 13660 enable_fast_install=no 13661 elif test yes = "$shlibpath_overrides_runpath" || 13662 test no = "$enable_shared"; then 13663 # Fast installation is not necessary 13664 enable_fast_install=needless 13665 fi 13666 13667 13668 13669 13670 13671 13672 if test yes != "$enable_dlopen"; then 13673 enable_dlopen=unknown 13674 enable_dlopen_self=unknown 13675 enable_dlopen_self_static=unknown 13676 else 13677 lt_cv_dlopen=no 13678 lt_cv_dlopen_libs= 13679 13680 case $host_os in 13681 beos*) 13682 lt_cv_dlopen=load_add_on 13683 lt_cv_dlopen_libs= 13684 lt_cv_dlopen_self=yes 13685 ;; 13686 13687 mingw* | pw32* | cegcc*) 13688 lt_cv_dlopen=LoadLibrary 13689 lt_cv_dlopen_libs= 13690 ;; 13691 13692 cygwin*) 13693 lt_cv_dlopen=dlopen 13694 lt_cv_dlopen_libs= 13695 ;; 13696 13697 darwin*) 13698 # if libdl is installed we need to link against it 13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13700 printf %s "checking for dlopen in -ldl... " >&6; } 13701 if test ${ac_cv_lib_dl_dlopen+y} 13702 then : 13703 printf %s "(cached) " >&6 13704 else $as_nop 13705 ac_check_lib_save_LIBS=$LIBS 13706 LIBS="-ldl $LIBS" 13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13708 /* end confdefs.h. */ 13709 13710 /* Override any GCC internal prototype to avoid an error. 13711 Use char because int might match the return type of a GCC 13712 builtin and then its argument prototype would still apply. */ 13713 #ifdef __cplusplus 13714 extern "C" 13715 #endif 13716 char dlopen (); 13717 int 13718 main (void) 13719 { 13720 return dlopen (); 13721 ; 13722 return 0; 13723 } 13724 _ACEOF 13725 if ac_fn_c_try_link "$LINENO" 13726 then : 13727 ac_cv_lib_dl_dlopen=yes 13728 else $as_nop 13729 ac_cv_lib_dl_dlopen=no 13730 fi 13731 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13732 conftest$ac_exeext conftest.$ac_ext 13733 LIBS=$ac_check_lib_save_LIBS 13734 fi 13735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13736 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13737 if test "x$ac_cv_lib_dl_dlopen" = xyes 13738 then : 13739 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13740 else $as_nop 13741 13742 lt_cv_dlopen=dyld 13743 lt_cv_dlopen_libs= 13744 lt_cv_dlopen_self=yes 13745 13746 fi 13747 13748 ;; 13749 13750 tpf*) 13751 # Don't try to run any link tests for TPF. We know it's impossible 13752 # because TPF is a cross-compiler, and we know how we open DSOs. 13753 lt_cv_dlopen=dlopen 13754 lt_cv_dlopen_libs= 13755 lt_cv_dlopen_self=no 13756 ;; 13757 13758 *) 13759 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13760 if test "x$ac_cv_func_shl_load" = xyes 13761 then : 13762 lt_cv_dlopen=shl_load 13763 else $as_nop 13764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13765 printf %s "checking for shl_load in -ldld... " >&6; } 13766 if test ${ac_cv_lib_dld_shl_load+y} 13767 then : 13768 printf %s "(cached) " >&6 13769 else $as_nop 13770 ac_check_lib_save_LIBS=$LIBS 13771 LIBS="-ldld $LIBS" 13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13773 /* end confdefs.h. */ 13774 13775 /* Override any GCC internal prototype to avoid an error. 13776 Use char because int might match the return type of a GCC 13777 builtin and then its argument prototype would still apply. */ 13778 #ifdef __cplusplus 13779 extern "C" 13780 #endif 13781 char shl_load (); 13782 int 13783 main (void) 13784 { 13785 return shl_load (); 13786 ; 13787 return 0; 13788 } 13789 _ACEOF 13790 if ac_fn_c_try_link "$LINENO" 13791 then : 13792 ac_cv_lib_dld_shl_load=yes 13793 else $as_nop 13794 ac_cv_lib_dld_shl_load=no 13795 fi 13796 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13797 conftest$ac_exeext conftest.$ac_ext 13798 LIBS=$ac_check_lib_save_LIBS 13799 fi 13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13801 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13802 if test "x$ac_cv_lib_dld_shl_load" = xyes 13803 then : 13804 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13805 else $as_nop 13806 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13807 if test "x$ac_cv_func_dlopen" = xyes 13808 then : 13809 lt_cv_dlopen=dlopen 13810 else $as_nop 13811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13812 printf %s "checking for dlopen in -ldl... " >&6; } 13813 if test ${ac_cv_lib_dl_dlopen+y} 13814 then : 13815 printf %s "(cached) " >&6 13816 else $as_nop 13817 ac_check_lib_save_LIBS=$LIBS 13818 LIBS="-ldl $LIBS" 13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13820 /* end confdefs.h. */ 13821 13822 /* Override any GCC internal prototype to avoid an error. 13823 Use char because int might match the return type of a GCC 13824 builtin and then its argument prototype would still apply. */ 13825 #ifdef __cplusplus 13826 extern "C" 13827 #endif 13828 char dlopen (); 13829 int 13830 main (void) 13831 { 13832 return dlopen (); 13833 ; 13834 return 0; 13835 } 13836 _ACEOF 13837 if ac_fn_c_try_link "$LINENO" 13838 then : 13839 ac_cv_lib_dl_dlopen=yes 13840 else $as_nop 13841 ac_cv_lib_dl_dlopen=no 13842 fi 13843 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13844 conftest$ac_exeext conftest.$ac_ext 13845 LIBS=$ac_check_lib_save_LIBS 13846 fi 13847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13848 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13849 if test "x$ac_cv_lib_dl_dlopen" = xyes 13850 then : 13851 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13852 else $as_nop 13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13854 printf %s "checking for dlopen in -lsvld... " >&6; } 13855 if test ${ac_cv_lib_svld_dlopen+y} 13856 then : 13857 printf %s "(cached) " >&6 13858 else $as_nop 13859 ac_check_lib_save_LIBS=$LIBS 13860 LIBS="-lsvld $LIBS" 13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13862 /* end confdefs.h. */ 13863 13864 /* Override any GCC internal prototype to avoid an error. 13865 Use char because int might match the return type of a GCC 13866 builtin and then its argument prototype would still apply. */ 13867 #ifdef __cplusplus 13868 extern "C" 13869 #endif 13870 char dlopen (); 13871 int 13872 main (void) 13873 { 13874 return dlopen (); 13875 ; 13876 return 0; 13877 } 13878 _ACEOF 13879 if ac_fn_c_try_link "$LINENO" 13880 then : 13881 ac_cv_lib_svld_dlopen=yes 13882 else $as_nop 13883 ac_cv_lib_svld_dlopen=no 13884 fi 13885 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13886 conftest$ac_exeext conftest.$ac_ext 13887 LIBS=$ac_check_lib_save_LIBS 13888 fi 13889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13890 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13891 if test "x$ac_cv_lib_svld_dlopen" = xyes 13892 then : 13893 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13894 else $as_nop 13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13896 printf %s "checking for dld_link in -ldld... " >&6; } 13897 if test ${ac_cv_lib_dld_dld_link+y} 13898 then : 13899 printf %s "(cached) " >&6 13900 else $as_nop 13901 ac_check_lib_save_LIBS=$LIBS 13902 LIBS="-ldld $LIBS" 13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13904 /* end confdefs.h. */ 13905 13906 /* Override any GCC internal prototype to avoid an error. 13907 Use char because int might match the return type of a GCC 13908 builtin and then its argument prototype would still apply. */ 13909 #ifdef __cplusplus 13910 extern "C" 13911 #endif 13912 char dld_link (); 13913 int 13914 main (void) 13915 { 13916 return dld_link (); 13917 ; 13918 return 0; 13919 } 13920 _ACEOF 13921 if ac_fn_c_try_link "$LINENO" 13922 then : 13923 ac_cv_lib_dld_dld_link=yes 13924 else $as_nop 13925 ac_cv_lib_dld_dld_link=no 13926 fi 13927 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13928 conftest$ac_exeext conftest.$ac_ext 13929 LIBS=$ac_check_lib_save_LIBS 13930 fi 13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13932 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13933 if test "x$ac_cv_lib_dld_dld_link" = xyes 13934 then : 13935 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13936 fi 13937 13938 13939 fi 13940 13941 13942 fi 13943 13944 13945 fi 13946 13947 13948 fi 13949 13950 13951 fi 13952 13953 ;; 13954 esac 13955 13956 if test no = "$lt_cv_dlopen"; then 13957 enable_dlopen=no 13958 else 13959 enable_dlopen=yes 13960 fi 13961 13962 case $lt_cv_dlopen in 13963 dlopen) 13964 save_CPPFLAGS=$CPPFLAGS 13965 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13966 13967 save_LDFLAGS=$LDFLAGS 13968 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13969 13970 save_LIBS=$LIBS 13971 LIBS="$lt_cv_dlopen_libs $LIBS" 13972 13973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13974 printf %s "checking whether a program can dlopen itself... " >&6; } 13975 if test ${lt_cv_dlopen_self+y} 13976 then : 13977 printf %s "(cached) " >&6 13978 else $as_nop 13979 if test yes = "$cross_compiling"; then : 13980 lt_cv_dlopen_self=cross 13981 else 13982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13983 lt_status=$lt_dlunknown 13984 cat > conftest.$ac_ext <<_LT_EOF 13985 #line $LINENO "configure" 13986 #include "confdefs.h" 13987 13988 #if HAVE_DLFCN_H 13989 #include <dlfcn.h> 13990 #endif 13991 13992 #include <stdio.h> 13993 13994 #ifdef RTLD_GLOBAL 13995 # define LT_DLGLOBAL RTLD_GLOBAL 13996 #else 13997 # ifdef DL_GLOBAL 13998 # define LT_DLGLOBAL DL_GLOBAL 13999 # else 14000 # define LT_DLGLOBAL 0 14001 # endif 14002 #endif 14003 14004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14005 find out it does not work in some platform. */ 14006 #ifndef LT_DLLAZY_OR_NOW 14007 # ifdef RTLD_LAZY 14008 # define LT_DLLAZY_OR_NOW RTLD_LAZY 14009 # else 14010 # ifdef DL_LAZY 14011 # define LT_DLLAZY_OR_NOW DL_LAZY 14012 # else 14013 # ifdef RTLD_NOW 14014 # define LT_DLLAZY_OR_NOW RTLD_NOW 14015 # else 14016 # ifdef DL_NOW 14017 # define LT_DLLAZY_OR_NOW DL_NOW 14018 # else 14019 # define LT_DLLAZY_OR_NOW 0 14020 # endif 14021 # endif 14022 # endif 14023 # endif 14024 #endif 14025 14026 /* When -fvisibility=hidden is used, assume the code has been annotated 14027 correspondingly for the symbols needed. */ 14028 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14029 int fnord () __attribute__((visibility("default"))); 14030 #endif 14031 14032 int fnord () { return 42; } 14033 int main () 14034 { 14035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14036 int status = $lt_dlunknown; 14037 14038 if (self) 14039 { 14040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14041 else 14042 { 14043 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14044 else puts (dlerror ()); 14045 } 14046 /* dlclose (self); */ 14047 } 14048 else 14049 puts (dlerror ()); 14050 14051 return status; 14052 } 14053 _LT_EOF 14054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14055 (eval $ac_link) 2>&5 14056 ac_status=$? 14057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14058 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14059 (./conftest; exit; ) >&5 2>/dev/null 14060 lt_status=$? 14061 case x$lt_status in 14062 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14063 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14064 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14065 esac 14066 else : 14067 # compilation failed 14068 lt_cv_dlopen_self=no 14069 fi 14070 fi 14071 rm -fr conftest* 14072 14073 14074 fi 14075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14076 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 14077 14078 if test yes = "$lt_cv_dlopen_self"; then 14079 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14081 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 14082 if test ${lt_cv_dlopen_self_static+y} 14083 then : 14084 printf %s "(cached) " >&6 14085 else $as_nop 14086 if test yes = "$cross_compiling"; then : 14087 lt_cv_dlopen_self_static=cross 14088 else 14089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14090 lt_status=$lt_dlunknown 14091 cat > conftest.$ac_ext <<_LT_EOF 14092 #line $LINENO "configure" 14093 #include "confdefs.h" 14094 14095 #if HAVE_DLFCN_H 14096 #include <dlfcn.h> 14097 #endif 14098 14099 #include <stdio.h> 14100 14101 #ifdef RTLD_GLOBAL 14102 # define LT_DLGLOBAL RTLD_GLOBAL 14103 #else 14104 # ifdef DL_GLOBAL 14105 # define LT_DLGLOBAL DL_GLOBAL 14106 # else 14107 # define LT_DLGLOBAL 0 14108 # endif 14109 #endif 14110 14111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14112 find out it does not work in some platform. */ 14113 #ifndef LT_DLLAZY_OR_NOW 14114 # ifdef RTLD_LAZY 14115 # define LT_DLLAZY_OR_NOW RTLD_LAZY 14116 # else 14117 # ifdef DL_LAZY 14118 # define LT_DLLAZY_OR_NOW DL_LAZY 14119 # else 14120 # ifdef RTLD_NOW 14121 # define LT_DLLAZY_OR_NOW RTLD_NOW 14122 # else 14123 # ifdef DL_NOW 14124 # define LT_DLLAZY_OR_NOW DL_NOW 14125 # else 14126 # define LT_DLLAZY_OR_NOW 0 14127 # endif 14128 # endif 14129 # endif 14130 # endif 14131 #endif 14132 14133 /* When -fvisibility=hidden is used, assume the code has been annotated 14134 correspondingly for the symbols needed. */ 14135 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14136 int fnord () __attribute__((visibility("default"))); 14137 #endif 14138 14139 int fnord () { return 42; } 14140 int main () 14141 { 14142 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14143 int status = $lt_dlunknown; 14144 14145 if (self) 14146 { 14147 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14148 else 14149 { 14150 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14151 else puts (dlerror ()); 14152 } 14153 /* dlclose (self); */ 14154 } 14155 else 14156 puts (dlerror ()); 14157 14158 return status; 14159 } 14160 _LT_EOF 14161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14162 (eval $ac_link) 2>&5 14163 ac_status=$? 14164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14165 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 14166 (./conftest; exit; ) >&5 2>/dev/null 14167 lt_status=$? 14168 case x$lt_status in 14169 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14170 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14171 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14172 esac 14173 else : 14174 # compilation failed 14175 lt_cv_dlopen_self_static=no 14176 fi 14177 fi 14178 rm -fr conftest* 14179 14180 14181 fi 14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14183 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 14184 fi 14185 14186 CPPFLAGS=$save_CPPFLAGS 14187 LDFLAGS=$save_LDFLAGS 14188 LIBS=$save_LIBS 14189 ;; 14190 esac 14191 14192 case $lt_cv_dlopen_self in 14193 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14194 *) enable_dlopen_self=unknown ;; 14195 esac 14196 14197 case $lt_cv_dlopen_self_static in 14198 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14199 *) enable_dlopen_self_static=unknown ;; 14200 esac 14201 fi 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 striplib= 14220 old_striplib= 14221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14222 printf %s "checking whether stripping libraries is possible... " >&6; } 14223 if test -z "$STRIP"; then 14224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14225 printf "%s\n" "no" >&6; } 14226 else 14227 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14228 old_striplib="$STRIP --strip-debug" 14229 striplib="$STRIP --strip-unneeded" 14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14231 printf "%s\n" "yes" >&6; } 14232 else 14233 case $host_os in 14234 darwin*) 14235 # FIXME - insert some real tests, host_os isn't really good enough 14236 striplib="$STRIP -x" 14237 old_striplib="$STRIP -S" 14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14239 printf "%s\n" "yes" >&6; } 14240 ;; 14241 freebsd*) 14242 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 14243 old_striplib="$STRIP --strip-debug" 14244 striplib="$STRIP --strip-unneeded" 14245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14246 printf "%s\n" "yes" >&6; } 14247 else 14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14249 printf "%s\n" "no" >&6; } 14250 fi 14251 ;; 14252 *) 14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14254 printf "%s\n" "no" >&6; } 14255 ;; 14256 esac 14257 fi 14258 fi 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 # Report what library types will actually be built 14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14273 printf %s "checking if libtool supports shared libraries... " >&6; } 14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14275 printf "%s\n" "$can_build_shared" >&6; } 14276 14277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14278 printf %s "checking whether to build shared libraries... " >&6; } 14279 test no = "$can_build_shared" && enable_shared=no 14280 14281 # On AIX, shared libraries and static libraries use the same namespace, and 14282 # are all built from PIC. 14283 case $host_os in 14284 aix3*) 14285 test yes = "$enable_shared" && enable_static=no 14286 if test -n "$RANLIB"; then 14287 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14288 postinstall_cmds='$RANLIB $lib' 14289 fi 14290 ;; 14291 14292 aix[4-9]*) 14293 if test ia64 != "$host_cpu"; then 14294 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14295 yes,aix,yes) ;; # shared object as lib.so file only 14296 yes,svr4,*) ;; # shared object as lib.so archive member only 14297 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14298 esac 14299 fi 14300 ;; 14301 esac 14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14303 printf "%s\n" "$enable_shared" >&6; } 14304 14305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14306 printf %s "checking whether to build static libraries... " >&6; } 14307 # Make sure either enable_shared or enable_static is yes. 14308 test yes = "$enable_shared" || enable_static=yes 14309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14310 printf "%s\n" "$enable_static" >&6; } 14311 14312 14313 14314 14315 fi 14316 ac_ext=c 14317 ac_cpp='$CPP $CPPFLAGS' 14318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14320 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14321 14322 CC=$lt_save_CC 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 ac_config_commands="$ac_config_commands libtool" 14339 14340 14341 14342 14343 # Only expand once: 14344 14345 14346 14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-MS-Windows ICC" >&5 14348 printf %s "checking for non-MS-Windows ICC... " >&6; } 14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14350 /* end confdefs.h. */ 14351 14352 #if (!defined(__ICC) && !defined(__INTEL_COMPILER)) || defined(_WIN32) 14353 # error "Not a non-MS-Windows ICC" 14354 error 14355 #endif 14356 14357 int 14358 main (void) 14359 { 14360 14361 ; 14362 return 0; 14363 } 14364 _ACEOF 14365 if ac_fn_c_try_compile "$LINENO" 14366 then : 14367 14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14369 printf "%s\n" "yes" >&6; } 14370 CFLAGS="-fp_port -mieee-fp -wd1572 -wd265 -wd186 -wd239 $CFLAGS" 14371 14372 else $as_nop 14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14374 printf "%s\n" "no" >&6; } 14375 fi 14376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14377 14378 if test "$test_CFLAGS" != set && test -n "$GCC"; then 14379 CFLAGS="-Wpointer-arith $CFLAGS" 14380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the selected language is C++" >&5 14381 printf %s "checking whether the selected language is C++... " >&6; } 14382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14383 /* end confdefs.h. */ 14384 14385 #if defined (__cplusplus) 14386 # error "C++" 14387 error 14388 #endif 14389 14390 int 14391 main (void) 14392 { 14393 14394 ; 14395 return 0; 14396 } 14397 _ACEOF 14398 if ac_fn_c_try_compile "$LINENO" 14399 then : 14400 14401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14402 printf "%s\n" "no" >&6; } 14403 14404 case `$CC --version | $SED -e 's/^[^ ]* //' -e 's/([^)]*) //' -e 1q` in 14405 2.*|3.*|4.0*) ;; 14406 *) CFLAGS="-Wc++-compat $CFLAGS" ;; 14407 esac 14408 CFLAGS="-Wmissing-prototypes $CFLAGS" 14409 14410 14411 else $as_nop 14412 14413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14414 printf "%s\n" "yes" >&6; } 14415 CFLAGS="-Wmissing-declarations -Wno-sign-compare $CFLAGS" 14416 14417 fi 14418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14419 CFLAGS="-Wall $CFLAGS" 14420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS=\"$CFLAGS\"" >&5 14421 printf "%s\n" "$as_me: using CFLAGS=\"$CFLAGS\"" >&6;} 14422 fi 14423 14424 14425 14426 case $host in 14427 *-apple-darwin*) 14428 case "$LD $LDFLAGS" in 14429 *-Wl,-search_paths_first*) ;; 14430 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5 14431 printf %s "checking if the compiler understands -Wl,-search_paths_first... " >&6; } 14432 saved_LDFLAGS="$LDFLAGS" 14433 LDFLAGS="-Wl,-search_paths_first $LDFLAGS" 14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14435 /* end confdefs.h. */ 14436 14437 int 14438 main (void) 14439 { 14440 14441 ; 14442 return 0; 14443 } 14444 _ACEOF 14445 if ac_fn_c_try_link "$LINENO" 14446 then : 14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14448 printf "%s\n" "yes" >&6; } 14449 else $as_nop 14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14451 printf "%s\n" "no" >&6; } 14452 LDFLAGS="$saved_LDFLAGS" 14453 fi 14454 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14455 conftest$ac_exeext conftest.$ac_ext 14456 ;; 14457 esac 14458 ;; 14459 esac 14460 14461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14462 printf %s "checking for an ANSI C-conforming const... " >&6; } 14463 if test ${ac_cv_c_const+y} 14464 then : 14465 printf %s "(cached) " >&6 14466 else $as_nop 14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14468 /* end confdefs.h. */ 14469 14470 int 14471 main (void) 14472 { 14473 14474 #ifndef __cplusplus 14475 /* Ultrix mips cc rejects this sort of thing. */ 14476 typedef int charset[2]; 14477 const charset cs = { 0, 0 }; 14478 /* SunOS 4.1.1 cc rejects this. */ 14479 char const *const *pcpcc; 14480 char **ppc; 14481 /* NEC SVR4.0.2 mips cc rejects this. */ 14482 struct point {int x, y;}; 14483 static struct point const zero = {0,0}; 14484 /* IBM XL C 1.02.0.0 rejects this. 14485 It does not let you subtract one const X* pointer from another in 14486 an arm of an if-expression whose if-part is not a constant 14487 expression */ 14488 const char *g = "string"; 14489 pcpcc = &g + (g ? g-g : 0); 14490 /* HPUX 7.0 cc rejects these. */ 14491 ++pcpcc; 14492 ppc = (char**) pcpcc; 14493 pcpcc = (char const *const *) ppc; 14494 { /* SCO 3.2v4 cc rejects this sort of thing. */ 14495 char tx; 14496 char *t = &tx; 14497 char const *s = 0 ? (char *) 0 : (char const *) 0; 14498 14499 *t++ = 0; 14500 if (s) return 0; 14501 } 14502 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14503 int x[] = {25, 17}; 14504 const int *foo = &x[0]; 14505 ++foo; 14506 } 14507 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14508 typedef const int *iptr; 14509 iptr p = 0; 14510 ++p; 14511 } 14512 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 14513 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14514 struct s { int j; const int *ap[3]; } bx; 14515 struct s *b = &bx; b->j = 5; 14516 } 14517 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14518 const int foo = 10; 14519 if (!foo) return 0; 14520 } 14521 return !cs[0] && !zero.x; 14522 #endif 14523 14524 ; 14525 return 0; 14526 } 14527 _ACEOF 14528 if ac_fn_c_try_compile "$LINENO" 14529 then : 14530 ac_cv_c_const=yes 14531 else $as_nop 14532 ac_cv_c_const=no 14533 fi 14534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14535 fi 14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14537 printf "%s\n" "$ac_cv_c_const" >&6; } 14538 if test $ac_cv_c_const = no; then 14539 14540 printf "%s\n" "#define const /**/" >>confdefs.h 14541 14542 fi 14543 14544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 14545 printf %s "checking for working volatile... " >&6; } 14546 if test ${ac_cv_c_volatile+y} 14547 then : 14548 printf %s "(cached) " >&6 14549 else $as_nop 14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14551 /* end confdefs.h. */ 14552 14553 int 14554 main (void) 14555 { 14556 14557 volatile int x; 14558 int * volatile y = (int *) 0; 14559 return !x && !y; 14560 ; 14561 return 0; 14562 } 14563 _ACEOF 14564 if ac_fn_c_try_compile "$LINENO" 14565 then : 14566 ac_cv_c_volatile=yes 14567 else $as_nop 14568 ac_cv_c_volatile=no 14569 fi 14570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14571 fi 14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 14573 printf "%s\n" "$ac_cv_c_volatile" >&6; } 14574 if test $ac_cv_c_volatile = no; then 14575 14576 printf "%s\n" "#define volatile /**/" >>confdefs.h 14577 14578 fi 14579 14580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14581 printf %s "checking whether byte ordering is bigendian... " >&6; } 14582 if test ${ac_cv_c_bigendian+y} 14583 then : 14584 printf %s "(cached) " >&6 14585 else $as_nop 14586 ac_cv_c_bigendian=unknown 14587 # See if we're dealing with a universal compiler. 14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14589 /* end confdefs.h. */ 14590 #ifndef __APPLE_CC__ 14591 not a universal capable compiler 14592 #endif 14593 typedef int dummy; 14594 14595 _ACEOF 14596 if ac_fn_c_try_compile "$LINENO" 14597 then : 14598 14599 # Check for potential -arch flags. It is not universal unless 14600 # there are at least two -arch flags with different values. 14601 ac_arch= 14602 ac_prev= 14603 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14604 if test -n "$ac_prev"; then 14605 case $ac_word in 14606 i?86 | x86_64 | ppc | ppc64) 14607 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14608 ac_arch=$ac_word 14609 else 14610 ac_cv_c_bigendian=universal 14611 break 14612 fi 14613 ;; 14614 esac 14615 ac_prev= 14616 elif test "x$ac_word" = "x-arch"; then 14617 ac_prev=arch 14618 fi 14619 done 14620 fi 14621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14622 if test $ac_cv_c_bigendian = unknown; then 14623 # See if sys/param.h defines the BYTE_ORDER macro. 14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14625 /* end confdefs.h. */ 14626 #include <sys/types.h> 14627 #include <sys/param.h> 14628 14629 int 14630 main (void) 14631 { 14632 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14633 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14634 && LITTLE_ENDIAN) 14635 bogus endian macros 14636 #endif 14637 14638 ; 14639 return 0; 14640 } 14641 _ACEOF 14642 if ac_fn_c_try_compile "$LINENO" 14643 then : 14644 # It does; now see whether it defined to BIG_ENDIAN or not. 14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14646 /* end confdefs.h. */ 14647 #include <sys/types.h> 14648 #include <sys/param.h> 14649 14650 int 14651 main (void) 14652 { 14653 #if BYTE_ORDER != BIG_ENDIAN 14654 not big endian 14655 #endif 14656 14657 ; 14658 return 0; 14659 } 14660 _ACEOF 14661 if ac_fn_c_try_compile "$LINENO" 14662 then : 14663 ac_cv_c_bigendian=yes 14664 else $as_nop 14665 ac_cv_c_bigendian=no 14666 fi 14667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14668 fi 14669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14670 fi 14671 if test $ac_cv_c_bigendian = unknown; then 14672 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14674 /* end confdefs.h. */ 14675 #include <limits.h> 14676 14677 int 14678 main (void) 14679 { 14680 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14681 bogus endian macros 14682 #endif 14683 14684 ; 14685 return 0; 14686 } 14687 _ACEOF 14688 if ac_fn_c_try_compile "$LINENO" 14689 then : 14690 # It does; now see whether it defined to _BIG_ENDIAN or not. 14691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14692 /* end confdefs.h. */ 14693 #include <limits.h> 14694 14695 int 14696 main (void) 14697 { 14698 #ifndef _BIG_ENDIAN 14699 not big endian 14700 #endif 14701 14702 ; 14703 return 0; 14704 } 14705 _ACEOF 14706 if ac_fn_c_try_compile "$LINENO" 14707 then : 14708 ac_cv_c_bigendian=yes 14709 else $as_nop 14710 ac_cv_c_bigendian=no 14711 fi 14712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14713 fi 14714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14715 fi 14716 if test $ac_cv_c_bigendian = unknown; then 14717 # Compile a test program. 14718 if test "$cross_compiling" = yes 14719 then : 14720 # Try to guess by grepping values from an object file. 14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14722 /* end confdefs.h. */ 14723 unsigned short int ascii_mm[] = 14724 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14725 unsigned short int ascii_ii[] = 14726 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14727 int use_ascii (int i) { 14728 return ascii_mm[i] + ascii_ii[i]; 14729 } 14730 unsigned short int ebcdic_ii[] = 14731 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14732 unsigned short int ebcdic_mm[] = 14733 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14734 int use_ebcdic (int i) { 14735 return ebcdic_mm[i] + ebcdic_ii[i]; 14736 } 14737 extern int foo; 14738 14739 int 14740 main (void) 14741 { 14742 return use_ascii (foo) == use_ebcdic (foo); 14743 ; 14744 return 0; 14745 } 14746 _ACEOF 14747 if ac_fn_c_try_compile "$LINENO" 14748 then : 14749 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14750 ac_cv_c_bigendian=yes 14751 fi 14752 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14753 if test "$ac_cv_c_bigendian" = unknown; then 14754 ac_cv_c_bigendian=no 14755 else 14756 # finding both strings is unlikely to happen, but who knows? 14757 ac_cv_c_bigendian=unknown 14758 fi 14759 fi 14760 fi 14761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14762 else $as_nop 14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14764 /* end confdefs.h. */ 14765 $ac_includes_default 14766 int 14767 main (void) 14768 { 14769 14770 /* Are we little or big endian? From Harbison&Steele. */ 14771 union 14772 { 14773 long int l; 14774 char c[sizeof (long int)]; 14775 } u; 14776 u.l = 1; 14777 return u.c[sizeof (long int) - 1] == 1; 14778 14779 ; 14780 return 0; 14781 } 14782 _ACEOF 14783 if ac_fn_c_try_run "$LINENO" 14784 then : 14785 ac_cv_c_bigendian=no 14786 else $as_nop 14787 ac_cv_c_bigendian=yes 14788 fi 14789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14790 conftest.$ac_objext conftest.beam conftest.$ac_ext 14791 fi 14792 14793 fi 14794 fi 14795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14796 printf "%s\n" "$ac_cv_c_bigendian" >&6; } 14797 case $ac_cv_c_bigendian in #( 14798 yes) 14799 printf "%s\n" "#define HAVE_BIG_ENDIAN 1" >>confdefs.h 14800 ;; #( 14801 no) 14802 printf "%s\n" "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h 14803 ;; #( 14804 universal) 14805 true 14806 ;; #( 14807 *) 14808 true ;; 14809 esac 14810 14811 14812 # (Based on GMP 5.1) 14813 # clock_gettime is in librt on *-*-osf5.1 and on glibc < 2.17, so add -lrt to 14814 # TUNE_LIBS if needed (e.g. if clock_gettime is not already in the C library). 14815 # On linux (tested on x86_32, 2.6.26), clock_getres reports ns accuracy, 14816 # while in a quick test on osf, clock_getres said only 1 millisecond. 14817 old_LIBS="$LIBS" 14818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 14819 printf %s "checking for library containing clock_gettime... " >&6; } 14820 if test ${ac_cv_search_clock_gettime+y} 14821 then : 14822 printf %s "(cached) " >&6 14823 else $as_nop 14824 ac_func_search_save_LIBS=$LIBS 14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14826 /* end confdefs.h. */ 14827 14828 /* Override any GCC internal prototype to avoid an error. 14829 Use char because int might match the return type of a GCC 14830 builtin and then its argument prototype would still apply. */ 14831 #ifdef __cplusplus 14832 extern "C" 14833 #endif 14834 char clock_gettime (); 14835 int 14836 main (void) 14837 { 14838 return clock_gettime (); 14839 ; 14840 return 0; 14841 } 14842 _ACEOF 14843 for ac_lib in '' rt 14844 do 14845 if test -z "$ac_lib"; then 14846 ac_res="none required" 14847 else 14848 ac_res=-l$ac_lib 14849 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14850 fi 14851 if ac_fn_c_try_link "$LINENO" 14852 then : 14853 ac_cv_search_clock_gettime=$ac_res 14854 fi 14855 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14856 conftest$ac_exeext 14857 if test ${ac_cv_search_clock_gettime+y} 14858 then : 14859 break 14860 fi 14861 done 14862 if test ${ac_cv_search_clock_gettime+y} 14863 then : 14864 14865 else $as_nop 14866 ac_cv_search_clock_gettime=no 14867 fi 14868 rm conftest.$ac_ext 14869 LIBS=$ac_func_search_save_LIBS 14870 fi 14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 14872 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } 14873 ac_res=$ac_cv_search_clock_gettime 14874 if test "$ac_res" != no 14875 then : 14876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14877 14878 14879 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 14880 14881 fi 14882 14883 TUNE_LIBS="$LIBS" 14884 LIBS="$old_LIBS" 14885 14886 14887 case $host in 14888 *-*-linux-gnu) 14889 if test -n "$LD_LIBRARY_PATH" && test -z "$TERMUX_VERSION"; then 14890 saved_LDFLAGS="$LDFLAGS" 14891 LDFLAGS="$LDFLAGS -Wl,--disable-new-dtags" 14892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5 14893 printf %s "checking whether --disable-new-dtags is supported by the linker... " >&6; } 14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895 /* end confdefs.h. */ 14896 14897 int main (void) { return 0; } 14898 14899 _ACEOF 14900 if ac_fn_c_try_link "$LINENO" 14901 then : 14902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5 14903 printf "%s\n" "yes (use it since LD_LIBRARY_PATH is set)" >&6; } 14904 else $as_nop 14905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14906 printf "%s\n" "no" >&6; } 14907 LDFLAGS="$saved_LDFLAGS" 14908 14909 fi 14910 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14911 conftest$ac_exeext conftest.$ac_ext 14912 fi 14913 ;; 14914 esac 14915 14916 14917 14918 MPFR_LIBM='' 14919 14920 case $host in 14921 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 14922 # According to libtool.m4: 14923 # These systems don't have libm, or don't need it. 14924 ;; 14925 *-*-solaris*) 14926 # On Solaris, some additional math functions are in -lm9x. 14927 # For MPFR, https://docs.oracle.com/cd/E19957-01/806-3568/ncg_lib.html 14928 # says that ceil, floor and rint are provided by libm. We would also 14929 # like nearbyint when available, but there is no mention of it in this 14930 # doc. Just in case, let's check for it in m9x, e.g. if it is added in 14931 # the future. 14932 14933 saved_LIBS="$LIBS" 14934 LIBS="-lm9x $LIBS" 14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14936 /* end confdefs.h. */ 14937 14938 int 14939 main (void) 14940 { 14941 14942 ; 14943 return 0; 14944 } 14945 _ACEOF 14946 if ac_fn_c_try_link "$LINENO" 14947 then : 14948 MPFR_LIBM="-lm9x" 14949 fi 14950 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14951 conftest$ac_exeext conftest.$ac_ext 14952 LIBS="$saved_LIBS" 14953 14954 14955 saved_LIBS="$LIBS" 14956 LIBS="-lm $LIBS" 14957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14958 /* end confdefs.h. */ 14959 14960 int 14961 main (void) 14962 { 14963 14964 ; 14965 return 0; 14966 } 14967 _ACEOF 14968 if ac_fn_c_try_link "$LINENO" 14969 then : 14970 MPFR_LIBM="$MPFR_LIBM -lm" 14971 fi 14972 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14973 conftest$ac_exeext conftest.$ac_ext 14974 LIBS="$saved_LIBS" 14975 14976 ;; 14977 *-ncr-sysv4.3*) 14978 # The following AC_CHECK_LIB line about -lmw is copied from libtool.m4, 14979 # but do we need it? This has never been tested in MPFR. See commits 14980 # 6d34bd85f038abeaeeb77aa8f65b562623cc38bc (1999-02-13) 14981 # e65f46d3fc4eb98d25ee94ad8e6f51c5846c8fe3 (1999-03-20) 14982 # in the libtool repository. 14983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 14984 printf %s "checking for _mwvalidcheckl in -lmw... " >&6; } 14985 if test ${ac_cv_lib_mw__mwvalidcheckl+y} 14986 then : 14987 printf %s "(cached) " >&6 14988 else $as_nop 14989 ac_check_lib_save_LIBS=$LIBS 14990 LIBS="-lmw $LIBS" 14991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14992 /* end confdefs.h. */ 14993 14994 /* Override any GCC internal prototype to avoid an error. 14995 Use char because int might match the return type of a GCC 14996 builtin and then its argument prototype would still apply. */ 14997 #ifdef __cplusplus 14998 extern "C" 14999 #endif 15000 char _mwvalidcheckl (); 15001 int 15002 main (void) 15003 { 15004 return _mwvalidcheckl (); 15005 ; 15006 return 0; 15007 } 15008 _ACEOF 15009 if ac_fn_c_try_link "$LINENO" 15010 then : 15011 ac_cv_lib_mw__mwvalidcheckl=yes 15012 else $as_nop 15013 ac_cv_lib_mw__mwvalidcheckl=no 15014 fi 15015 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15016 conftest$ac_exeext conftest.$ac_ext 15017 LIBS=$ac_check_lib_save_LIBS 15018 fi 15019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 15020 printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 15021 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes 15022 then : 15023 MPFR_LIBM="-lmw" 15024 fi 15025 15026 15027 saved_LIBS="$LIBS" 15028 LIBS="-lm $LIBS" 15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15030 /* end confdefs.h. */ 15031 15032 int 15033 main (void) 15034 { 15035 15036 ; 15037 return 0; 15038 } 15039 _ACEOF 15040 if ac_fn_c_try_link "$LINENO" 15041 then : 15042 MPFR_LIBM="$MPFR_LIBM -lm" 15043 fi 15044 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15045 conftest$ac_exeext conftest.$ac_ext 15046 LIBS="$saved_LIBS" 15047 15048 ;; 15049 *) 15050 15051 saved_LIBS="$LIBS" 15052 LIBS="-lm $LIBS" 15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15054 /* end confdefs.h. */ 15055 15056 int 15057 main (void) 15058 { 15059 15060 ; 15061 return 0; 15062 } 15063 _ACEOF 15064 if ac_fn_c_try_link "$LINENO" 15065 then : 15066 MPFR_LIBM="-lm" 15067 fi 15068 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15069 conftest$ac_exeext conftest.$ac_ext 15070 LIBS="$saved_LIBS" 15071 15072 ;; 15073 esac 15074 15075 15076 MPFR_LIBQUADMATH='' 15077 15078 case $host in 15079 *) 15080 15081 saved_LIBS="$LIBS" 15082 LIBS="-lquadmath $LIBS" 15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15084 /* end confdefs.h. */ 15085 15086 int 15087 main (void) 15088 { 15089 15090 ; 15091 return 0; 15092 } 15093 _ACEOF 15094 if ac_fn_c_try_link "$LINENO" 15095 then : 15096 MPFR_LIBQUADMATH="-lquadmath" 15097 fi 15098 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15099 conftest$ac_exeext conftest.$ac_ext 15100 LIBS="$saved_LIBS" 15101 15102 ;; 15103 esac 15104 15105 15106 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15107 if test "x$ac_cv_type_size_t" = xyes 15108 then : 15109 15110 else $as_nop 15111 15112 printf "%s\n" "#define size_t unsigned int" >>confdefs.h 15113 15114 fi 15115 15116 15117 15118 15119 15120 15121 15122 15123 if test "$enable_shared_cache" = yes; then 15124 15125 15126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ISO C11 thread support" >&5 15127 printf %s "checking for ISO C11 thread support... " >&6; } 15128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15129 /* end confdefs.h. */ 15130 15131 #include <assert.h> 15132 #include <threads.h> 15133 mtx_t lock; 15134 once_flag once = ONCE_FLAG_INIT; 15135 thrd_t thd_idx; 15136 int x = 0; 15137 void once_call (void) { x = 1; } 15138 15139 int 15140 main (void) 15141 { 15142 15143 int err; 15144 err = mtx_init(&lock, mtx_plain); 15145 assert(err == thrd_success); 15146 err = mtx_lock(&lock); 15147 assert(err == thrd_success); 15148 err = mtx_unlock(&lock); 15149 assert(err == thrd_success); 15150 mtx_destroy(&lock); 15151 once_call(&once, once_call); 15152 return x == 1 ? 0 : -1; 15153 15154 ; 15155 return 0; 15156 } 15157 _ACEOF 15158 if ac_fn_c_try_link "$LINENO" 15159 then : 15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15161 printf "%s\n" "yes" >&6; } 15162 mpfr_c11_thread_ok=yes 15163 else $as_nop 15164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15165 printf "%s\n" "no" >&6; } 15166 15167 fi 15168 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15169 conftest$ac_exeext conftest.$ac_ext 15170 15171 if test "$mpfr_c11_thread_ok" = "yes"; then 15172 15173 printf "%s\n" "#define MPFR_HAVE_C11_LOCK 1" >>confdefs.h 15174 15175 fi 15176 15177 15178 if test "$mpfr_c11_thread_ok" != yes; then 15179 15180 15181 15182 15183 15184 ac_ext=c 15185 ac_cpp='$CPP $CPPFLAGS' 15186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15188 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15189 15190 ax_pthread_ok=no 15191 15192 # We used to check for pthread.h first, but this fails if pthread.h 15193 # requires special compiler flags (e.g. on Tru64 or Sequent). 15194 # It gets checked for in the link test anyway. 15195 15196 # First of all, check if the user has set any of the PTHREAD_LIBS, 15197 # etcetera environment variables, and if threads linking works using 15198 # them: 15199 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 15200 ax_pthread_save_CC="$CC" 15201 ax_pthread_save_CFLAGS="$CFLAGS" 15202 ax_pthread_save_LIBS="$LIBS" 15203 if test "x$PTHREAD_CC" != "x" 15204 then : 15205 CC="$PTHREAD_CC" 15206 fi 15207 if test "x$PTHREAD_CXX" != "x" 15208 then : 15209 CXX="$PTHREAD_CXX" 15210 fi 15211 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15212 LIBS="$PTHREAD_LIBS $LIBS" 15213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 15214 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15216 /* end confdefs.h. */ 15217 15218 /* Override any GCC internal prototype to avoid an error. 15219 Use char because int might match the return type of a GCC 15220 builtin and then its argument prototype would still apply. */ 15221 #ifdef __cplusplus 15222 extern "C" 15223 #endif 15224 char pthread_join (); 15225 int 15226 main (void) 15227 { 15228 return pthread_join (); 15229 ; 15230 return 0; 15231 } 15232 _ACEOF 15233 if ac_fn_c_try_link "$LINENO" 15234 then : 15235 ax_pthread_ok=yes 15236 fi 15237 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15238 conftest$ac_exeext conftest.$ac_ext 15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15240 printf "%s\n" "$ax_pthread_ok" >&6; } 15241 if test "x$ax_pthread_ok" = "xno"; then 15242 PTHREAD_LIBS="" 15243 PTHREAD_CFLAGS="" 15244 fi 15245 CC="$ax_pthread_save_CC" 15246 CFLAGS="$ax_pthread_save_CFLAGS" 15247 LIBS="$ax_pthread_save_LIBS" 15248 fi 15249 15250 # We must check for the threads library under a number of different 15251 # names; the ordering is very important because some systems 15252 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the 15253 # libraries is broken (non-POSIX). 15254 15255 # Create a list of thread flags to try. Items with a "," contain both 15256 # C compiler flags (before ",") and linker flags (after ","). Other items 15257 # starting with a "-" are C compiler flags, and remaining items are 15258 # library names, except for "none" which indicates that we try without 15259 # any flags at all, and "pthread-config" which is a program returning 15260 # the flags for the Pth emulation library. 15261 15262 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 15263 15264 # The ordering *is* (sometimes) important. Some notes on the 15265 # individual items follow: 15266 15267 # pthreads: AIX (must check this before -lpthread) 15268 # none: in case threads are in libc; should be tried before -Kthread and 15269 # other compiler flags to prevent continual compiler warnings 15270 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 15271 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 15272 # (Note: HP C rejects this with "bad form for `-t' option") 15273 # -pthreads: Solaris/gcc (Note: HP C also rejects) 15274 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 15275 # doesn't hurt to check since this sometimes defines pthreads and 15276 # -D_REENTRANT too), HP C (must be checked before -lpthread, which 15277 # is present but should not be used directly; and before -mthreads, 15278 # because the compiler interprets this as "-mt" + "-hreads") 15279 # -mthreads: Mingw32/gcc, Lynx/gcc 15280 # pthread: Linux, etcetera 15281 # --thread-safe: KAI C++ 15282 # pthread-config: use pthread-config program (for GNU Pth library) 15283 15284 case $host_os in 15285 15286 freebsd*) 15287 15288 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 15289 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 15290 15291 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 15292 ;; 15293 15294 hpux*) 15295 15296 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 15297 # multi-threading and also sets -lpthread." 15298 15299 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 15300 ;; 15301 15302 openedition*) 15303 15304 # IBM z/OS requires a feature-test macro to be defined in order to 15305 # enable POSIX threads at all, so give the user a hint if this is 15306 # not set. (We don't define these ourselves, as they can affect 15307 # other portions of the system API in unpredictable ways.) 15308 15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15310 /* end confdefs.h. */ 15311 15312 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 15313 AX_PTHREAD_ZOS_MISSING 15314 # endif 15315 15316 _ACEOF 15317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15318 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 15319 then : 15320 { 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 15321 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 15322 fi 15323 rm -rf conftest* 15324 15325 ;; 15326 15327 solaris*) 15328 15329 # On Solaris (at least, for some versions), libc contains stubbed 15330 # (non-functional) versions of the pthreads routines, so link-based 15331 # tests will erroneously succeed. (N.B.: The stubs are missing 15332 # pthread_cleanup_push, or rather a function called by this macro, 15333 # so we could check for that, but who knows whether they'll stub 15334 # that too in a future libc.) So we'll check first for the 15335 # standard Solaris way of linking pthreads (-mt -lpthread). 15336 15337 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" 15338 ;; 15339 esac 15340 15341 # Are we compiling with Clang? 15342 15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 15344 printf %s "checking whether $CC is Clang... " >&6; } 15345 if test ${ax_cv_PTHREAD_CLANG+y} 15346 then : 15347 printf %s "(cached) " >&6 15348 else $as_nop 15349 ax_cv_PTHREAD_CLANG=no 15350 # Note that Autoconf sets GCC=yes for Clang as well as GCC 15351 if test "x$GCC" = "xyes"; then 15352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15353 /* end confdefs.h. */ 15354 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 15355 # if defined(__clang__) && defined(__llvm__) 15356 AX_PTHREAD_CC_IS_CLANG 15357 # endif 15358 15359 _ACEOF 15360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15361 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 15362 then : 15363 ax_cv_PTHREAD_CLANG=yes 15364 fi 15365 rm -rf conftest* 15366 15367 fi 15368 15369 fi 15370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 15371 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } 15372 ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 15373 15374 15375 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 15376 15377 # Note that for GCC and Clang -pthread generally implies -lpthread, 15378 # except when -nostdlib is passed. 15379 # This is problematic using libtool to build C++ shared libraries with pthread: 15380 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 15381 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 15382 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 15383 # To solve this, first try -pthread together with -lpthread for GCC 15384 15385 if test "x$GCC" = "xyes" 15386 then : 15387 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" 15388 fi 15389 15390 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first 15391 15392 if test "x$ax_pthread_clang" = "xyes" 15393 then : 15394 ax_pthread_flags="-pthread,-lpthread -pthread" 15395 fi 15396 15397 15398 # The presence of a feature test macro requesting re-entrant function 15399 # definitions is, on some systems, a strong hint that pthreads support is 15400 # correctly enabled 15401 15402 case $host_os in 15403 darwin* | hpux* | linux* | osf* | solaris*) 15404 ax_pthread_check_macro="_REENTRANT" 15405 ;; 15406 15407 aix*) 15408 ax_pthread_check_macro="_THREAD_SAFE" 15409 ;; 15410 15411 *) 15412 ax_pthread_check_macro="--" 15413 ;; 15414 esac 15415 if test "x$ax_pthread_check_macro" = "x--" 15416 then : 15417 ax_pthread_check_cond=0 15418 else $as_nop 15419 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 15420 fi 15421 15422 15423 if test "x$ax_pthread_ok" = "xno"; then 15424 for ax_pthread_try_flag in $ax_pthread_flags; do 15425 15426 case $ax_pthread_try_flag in 15427 none) 15428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15429 printf %s "checking whether pthreads work without any flags... " >&6; } 15430 ;; 15431 15432 *,*) 15433 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` 15434 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` 15435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 15436 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } 15437 ;; 15438 15439 -*) 15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 15441 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 15442 PTHREAD_CFLAGS="$ax_pthread_try_flag" 15443 ;; 15444 15445 pthread-config) 15446 # Extract the first word of "pthread-config", so it can be a program name with args. 15447 set dummy pthread-config; ac_word=$2 15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15449 printf %s "checking for $ac_word... " >&6; } 15450 if test ${ac_cv_prog_ax_pthread_config+y} 15451 then : 15452 printf %s "(cached) " >&6 15453 else $as_nop 15454 if test -n "$ax_pthread_config"; then 15455 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15456 else 15457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15458 for as_dir in $PATH 15459 do 15460 IFS=$as_save_IFS 15461 case $as_dir in #((( 15462 '') as_dir=./ ;; 15463 */) ;; 15464 *) as_dir=$as_dir/ ;; 15465 esac 15466 for ac_exec_ext in '' $ac_executable_extensions; do 15467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15468 ac_cv_prog_ax_pthread_config="yes" 15469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15470 break 2 15471 fi 15472 done 15473 done 15474 IFS=$as_save_IFS 15475 15476 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15477 fi 15478 fi 15479 ax_pthread_config=$ac_cv_prog_ax_pthread_config 15480 if test -n "$ax_pthread_config"; then 15481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15482 printf "%s\n" "$ax_pthread_config" >&6; } 15483 else 15484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15485 printf "%s\n" "no" >&6; } 15486 fi 15487 15488 15489 if test "x$ax_pthread_config" = "xno" 15490 then : 15491 continue 15492 fi 15493 PTHREAD_CFLAGS="`pthread-config --cflags`" 15494 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15495 ;; 15496 15497 *) 15498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 15499 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 15500 PTHREAD_LIBS="-l$ax_pthread_try_flag" 15501 ;; 15502 esac 15503 15504 ax_pthread_save_CFLAGS="$CFLAGS" 15505 ax_pthread_save_LIBS="$LIBS" 15506 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15507 LIBS="$PTHREAD_LIBS $LIBS" 15508 15509 # Check for various functions. We must include pthread.h, 15510 # since some functions may be macros. (On the Sequent, we 15511 # need a special flag -Kthread to make this header compile.) 15512 # We check for pthread_join because it is in -lpthread on IRIX 15513 # while pthread_create is in libc. We check for pthread_attr_init 15514 # due to DEC craziness with -lpthreads. We check for 15515 # pthread_cleanup_push because it is one of the few pthread 15516 # functions on Solaris that doesn't have a non-functional libc stub. 15517 # We try pthread_create on general principles. 15518 15519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15520 /* end confdefs.h. */ 15521 #include <pthread.h> 15522 # if $ax_pthread_check_cond 15523 # error "$ax_pthread_check_macro must be defined" 15524 # endif 15525 static void *some_global = NULL; 15526 static void routine(void *a) 15527 { 15528 /* To avoid any unused-parameter or 15529 unused-but-set-parameter warning. */ 15530 some_global = a; 15531 } 15532 static void *start_routine(void *a) { return a; } 15533 int 15534 main (void) 15535 { 15536 pthread_t th; pthread_attr_t attr; 15537 pthread_create(&th, 0, start_routine, 0); 15538 pthread_join(th, 0); 15539 pthread_attr_init(&attr); 15540 pthread_cleanup_push(routine, 0); 15541 pthread_cleanup_pop(0) /* ; */ 15542 ; 15543 return 0; 15544 } 15545 _ACEOF 15546 if ac_fn_c_try_link "$LINENO" 15547 then : 15548 ax_pthread_ok=yes 15549 fi 15550 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15551 conftest$ac_exeext conftest.$ac_ext 15552 15553 CFLAGS="$ax_pthread_save_CFLAGS" 15554 LIBS="$ax_pthread_save_LIBS" 15555 15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15557 printf "%s\n" "$ax_pthread_ok" >&6; } 15558 if test "x$ax_pthread_ok" = "xyes" 15559 then : 15560 break 15561 fi 15562 15563 PTHREAD_LIBS="" 15564 PTHREAD_CFLAGS="" 15565 done 15566 fi 15567 15568 15569 # Clang needs special handling, because older versions handle the -pthread 15570 # option in a rather... idiosyncratic way 15571 15572 if test "x$ax_pthread_clang" = "xyes"; then 15573 15574 # Clang takes -pthread; it has never supported any other flag 15575 15576 # (Note 1: This will need to be revisited if a system that Clang 15577 # supports has POSIX threads in a separate library. This tends not 15578 # to be the way of modern systems, but it's conceivable.) 15579 15580 # (Note 2: On some systems, notably Darwin, -pthread is not needed 15581 # to get POSIX threads support; the API is always present and 15582 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 15583 # -pthread does define _REENTRANT, and while the Darwin headers 15584 # ignore this macro, third-party headers might not.) 15585 15586 # However, older versions of Clang make a point of warning the user 15587 # that, in an invocation where only linking and no compilation is 15588 # taking place, the -pthread option has no effect ("argument unused 15589 # during compilation"). They expect -pthread to be passed in only 15590 # when source code is being compiled. 15591 # 15592 # Problem is, this is at odds with the way Automake and most other 15593 # C build frameworks function, which is that the same flags used in 15594 # compilation (CFLAGS) are also used in linking. Many systems 15595 # supported by AX_PTHREAD require exactly this for POSIX threads 15596 # support, and in fact it is often not straightforward to specify a 15597 # flag that is used only in the compilation phase and not in 15598 # linking. Such a scenario is extremely rare in practice. 15599 # 15600 # Even though use of the -pthread flag in linking would only print 15601 # a warning, this can be a nuisance for well-run software projects 15602 # that build with -Werror. So if the active version of Clang has 15603 # this misfeature, we search for an option to squash it. 15604 15605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 15606 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 15607 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} 15608 then : 15609 printf %s "(cached) " >&6 15610 else $as_nop 15611 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 15612 # Create an alternate version of $ac_link that compiles and 15613 # links in two steps (.c -> .o, .o -> exe) instead of one 15614 # (.c -> exe), because the warning occurs only in the second 15615 # step 15616 ax_pthread_save_ac_link="$ac_link" 15617 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 15618 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` 15619 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 15620 ax_pthread_save_CFLAGS="$CFLAGS" 15621 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 15622 if test "x$ax_pthread_try" = "xunknown" 15623 then : 15624 break 15625 fi 15626 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 15627 ac_link="$ax_pthread_save_ac_link" 15628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15629 /* end confdefs.h. */ 15630 int main(void){return 0;} 15631 _ACEOF 15632 if ac_fn_c_try_link "$LINENO" 15633 then : 15634 ac_link="$ax_pthread_2step_ac_link" 15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15636 /* end confdefs.h. */ 15637 int main(void){return 0;} 15638 _ACEOF 15639 if ac_fn_c_try_link "$LINENO" 15640 then : 15641 break 15642 fi 15643 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15644 conftest$ac_exeext conftest.$ac_ext 15645 15646 fi 15647 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15648 conftest$ac_exeext conftest.$ac_ext 15649 done 15650 ac_link="$ax_pthread_save_ac_link" 15651 CFLAGS="$ax_pthread_save_CFLAGS" 15652 if test "x$ax_pthread_try" = "x" 15653 then : 15654 ax_pthread_try=no 15655 fi 15656 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 15657 15658 fi 15659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 15660 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 15661 15662 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 15663 no | unknown) ;; 15664 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 15665 esac 15666 15667 fi # $ax_pthread_clang = yes 15668 15669 15670 15671 # Various other checks: 15672 if test "x$ax_pthread_ok" = "xyes"; then 15673 ax_pthread_save_CFLAGS="$CFLAGS" 15674 ax_pthread_save_LIBS="$LIBS" 15675 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15676 LIBS="$PTHREAD_LIBS $LIBS" 15677 15678 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15680 printf %s "checking for joinable pthread attribute... " >&6; } 15681 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} 15682 then : 15683 printf %s "(cached) " >&6 15684 else $as_nop 15685 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 15686 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15688 /* end confdefs.h. */ 15689 #include <pthread.h> 15690 int 15691 main (void) 15692 { 15693 int attr = $ax_pthread_attr; return attr /* ; */ 15694 ; 15695 return 0; 15696 } 15697 _ACEOF 15698 if ac_fn_c_try_link "$LINENO" 15699 then : 15700 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 15701 fi 15702 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15703 conftest$ac_exeext conftest.$ac_ext 15704 done 15705 15706 fi 15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 15708 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 15709 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 15710 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 15711 test "x$ax_pthread_joinable_attr_defined" != "xyes" 15712 then : 15713 15714 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h 15715 15716 ax_pthread_joinable_attr_defined=yes 15717 15718 fi 15719 15720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 15721 printf %s "checking whether more special flags are required for pthreads... " >&6; } 15722 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} 15723 then : 15724 printf %s "(cached) " >&6 15725 else $as_nop 15726 ax_cv_PTHREAD_SPECIAL_FLAGS=no 15727 case $host_os in 15728 solaris*) 15729 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 15730 ;; 15731 esac 15732 15733 fi 15734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 15735 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 15736 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 15737 test "x$ax_pthread_special_flags_added" != "xyes" 15738 then : 15739 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 15740 ax_pthread_special_flags_added=yes 15741 fi 15742 15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 15744 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } 15745 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} 15746 then : 15747 printf %s "(cached) " >&6 15748 else $as_nop 15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15750 /* end confdefs.h. */ 15751 #include <pthread.h> 15752 int 15753 main (void) 15754 { 15755 int i = PTHREAD_PRIO_INHERIT; 15756 return i; 15757 ; 15758 return 0; 15759 } 15760 _ACEOF 15761 if ac_fn_c_try_link "$LINENO" 15762 then : 15763 ax_cv_PTHREAD_PRIO_INHERIT=yes 15764 else $as_nop 15765 ax_cv_PTHREAD_PRIO_INHERIT=no 15766 fi 15767 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15768 conftest$ac_exeext conftest.$ac_ext 15769 15770 fi 15771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 15772 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 15773 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 15774 test "x$ax_pthread_prio_inherit_defined" != "xyes" 15775 then : 15776 15777 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 15778 15779 ax_pthread_prio_inherit_defined=yes 15780 15781 fi 15782 15783 CFLAGS="$ax_pthread_save_CFLAGS" 15784 LIBS="$ax_pthread_save_LIBS" 15785 15786 # More AIX lossage: compile with *_r variant 15787 if test "x$GCC" != "xyes"; then 15788 case $host_os in 15789 aix*) 15790 case "x/$CC" in #( 15791 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 15792 #handle absolute path differently from PATH based program lookup 15793 case "x$CC" in #( 15794 x/*) : 15795 15796 if as_fn_executable_p ${CC}_r 15797 then : 15798 PTHREAD_CC="${CC}_r" 15799 fi 15800 if test "x${CXX}" != "x" 15801 then : 15802 if as_fn_executable_p ${CXX}_r 15803 then : 15804 PTHREAD_CXX="${CXX}_r" 15805 fi 15806 fi 15807 ;; #( 15808 *) : 15809 15810 for ac_prog in ${CC}_r 15811 do 15812 # Extract the first word of "$ac_prog", so it can be a program name with args. 15813 set dummy $ac_prog; ac_word=$2 15814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15815 printf %s "checking for $ac_word... " >&6; } 15816 if test ${ac_cv_prog_PTHREAD_CC+y} 15817 then : 15818 printf %s "(cached) " >&6 15819 else $as_nop 15820 if test -n "$PTHREAD_CC"; then 15821 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15822 else 15823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15824 for as_dir in $PATH 15825 do 15826 IFS=$as_save_IFS 15827 case $as_dir in #((( 15828 '') as_dir=./ ;; 15829 */) ;; 15830 *) as_dir=$as_dir/ ;; 15831 esac 15832 for ac_exec_ext in '' $ac_executable_extensions; do 15833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15834 ac_cv_prog_PTHREAD_CC="$ac_prog" 15835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15836 break 2 15837 fi 15838 done 15839 done 15840 IFS=$as_save_IFS 15841 15842 fi 15843 fi 15844 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15845 if test -n "$PTHREAD_CC"; then 15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15847 printf "%s\n" "$PTHREAD_CC" >&6; } 15848 else 15849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15850 printf "%s\n" "no" >&6; } 15851 fi 15852 15853 15854 test -n "$PTHREAD_CC" && break 15855 done 15856 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15857 15858 if test "x${CXX}" != "x" 15859 then : 15860 for ac_prog in ${CXX}_r 15861 do 15862 # Extract the first word of "$ac_prog", so it can be a program name with args. 15863 set dummy $ac_prog; ac_word=$2 15864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15865 printf %s "checking for $ac_word... " >&6; } 15866 if test ${ac_cv_prog_PTHREAD_CXX+y} 15867 then : 15868 printf %s "(cached) " >&6 15869 else $as_nop 15870 if test -n "$PTHREAD_CXX"; then 15871 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. 15872 else 15873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15874 for as_dir in $PATH 15875 do 15876 IFS=$as_save_IFS 15877 case $as_dir in #((( 15878 '') as_dir=./ ;; 15879 */) ;; 15880 *) as_dir=$as_dir/ ;; 15881 esac 15882 for ac_exec_ext in '' $ac_executable_extensions; do 15883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15884 ac_cv_prog_PTHREAD_CXX="$ac_prog" 15885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15886 break 2 15887 fi 15888 done 15889 done 15890 IFS=$as_save_IFS 15891 15892 fi 15893 fi 15894 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX 15895 if test -n "$PTHREAD_CXX"; then 15896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 15897 printf "%s\n" "$PTHREAD_CXX" >&6; } 15898 else 15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15900 printf "%s\n" "no" >&6; } 15901 fi 15902 15903 15904 test -n "$PTHREAD_CXX" && break 15905 done 15906 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 15907 15908 fi 15909 15910 ;; 15911 esac 15912 ;; #( 15913 *) : 15914 ;; 15915 esac 15916 ;; 15917 esac 15918 fi 15919 fi 15920 15921 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15922 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" 15923 15924 15925 15926 15927 15928 15929 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15930 if test "x$ax_pthread_ok" = "xyes"; then 15931 15932 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 15933 15934 : 15935 else 15936 ax_pthread_ok=no 15937 15938 fi 15939 ac_ext=c 15940 ac_cpp='$CPP $CPPFLAGS' 15941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15943 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15944 15945 15946 if test "$ax_pthread_ok" = yes; then 15947 CC="$PTHREAD_CC" 15948 CXX="$PTHREAD_CXX" 15949 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15950 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" 15951 LIBS="$LIBS $PTHREAD_LIBS" 15952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_t" >&5 15953 printf %s "checking for pthread_rwlock_t... " >&6; } 15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15955 /* end confdefs.h. */ 15956 15957 #include <pthread.h> 15958 15959 int 15960 main (void) 15961 { 15962 15963 pthread_rwlock_t lock; (void) lock; 15964 15965 ; 15966 return 0; 15967 } 15968 _ACEOF 15969 if ac_fn_c_try_compile "$LINENO" 15970 then : 15971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15972 printf "%s\n" "yes" >&6; } 15973 mpfr_pthread_ok=yes 15974 else $as_nop 15975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15976 printf "%s\n" "no" >&6; } 15977 mpfr_pthread_ok=no 15978 fi 15979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15980 else 15981 mpfr_pthread_ok=no 15982 fi 15983 fi 15984 15985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if shared cache can be supported" >&5 15986 printf %s "checking if shared cache can be supported... " >&6; } 15987 if test "$mpfr_c11_thread_ok" = yes; then 15988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with ISO C11 threads" >&5 15989 printf "%s\n" "yes, with ISO C11 threads" >&6; } 15990 elif test "$mpfr_pthread_ok" = yes; then 15991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with pthread" >&5 15992 printf "%s\n" "yes, with pthread" >&6; } 15993 else 15994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15995 printf "%s\n" "no" >&6; } 15996 as_fn_error $? "shared cache needs C11 threads or pthread support" "$LINENO" 5 15997 fi 15998 15999 fi 16000 16001 16002 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 16003 if test "x$ac_cv_header_limits_h" = xyes 16004 then : 16005 16006 else $as_nop 16007 as_fn_error $? "limits.h not found" "$LINENO" 5 16008 fi 16009 16010 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 16011 if test "x$ac_cv_header_float_h" = xyes 16012 then : 16013 16014 else $as_nop 16015 as_fn_error $? "float.h not found" "$LINENO" 5 16016 fi 16017 16018 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 16019 if test "x$ac_cv_header_string_h" = xyes 16020 then : 16021 16022 else $as_nop 16023 as_fn_error $? "string.h not found" "$LINENO" 5 16024 fi 16025 16026 16027 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 16028 if test "x$ac_cv_header_locale_h" = xyes 16029 then : 16030 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h 16031 16032 fi 16033 16034 16035 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 16036 if test "x$ac_cv_header_wchar_h" = xyes 16037 then : 16038 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h 16039 16040 fi 16041 16042 16043 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 16044 if test "x$ac_cv_header_stdarg_h" = xyes 16045 then : 16046 16047 printf "%s\n" "#define HAVE_STDARG 1" >>confdefs.h 16048 16049 else $as_nop 16050 ac_fn_c_check_header_compile "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default" 16051 if test "x$ac_cv_header_varargs_h" = xyes 16052 then : 16053 16054 else $as_nop 16055 as_fn_error $? "stdarg.h or varargs.h not found" "$LINENO" 5 16056 fi 16057 16058 fi 16059 16060 16061 ac_fn_c_check_header_compile "$LINENO" "sys/fpu.h" "ac_cv_header_sys_fpu_h" "$ac_includes_default" 16062 if test "x$ac_cv_header_sys_fpu_h" = xyes 16063 then : 16064 printf "%s\n" "#define HAVE_SYS_FPU_H 1" >>confdefs.h 16065 16066 fi 16067 16068 16069 ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 16070 " 16071 if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes 16072 then : 16073 16074 printf "%s\n" "#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1" >>confdefs.h 16075 16076 16077 fi 16078 ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 16079 " 16080 if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes 16081 then : 16082 16083 printf "%s\n" "#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1" >>confdefs.h 16084 16085 16086 fi 16087 16088 16089 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16090 # for constant arguments. Useless! 16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16092 printf %s "checking for working alloca.h... " >&6; } 16093 if test ${ac_cv_working_alloca_h+y} 16094 then : 16095 printf %s "(cached) " >&6 16096 else $as_nop 16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16098 /* end confdefs.h. */ 16099 #include <alloca.h> 16100 int 16101 main (void) 16102 { 16103 char *p = (char *) alloca (2 * sizeof (int)); 16104 if (p) return 0; 16105 ; 16106 return 0; 16107 } 16108 _ACEOF 16109 if ac_fn_c_try_link "$LINENO" 16110 then : 16111 ac_cv_working_alloca_h=yes 16112 else $as_nop 16113 ac_cv_working_alloca_h=no 16114 fi 16115 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16116 conftest$ac_exeext conftest.$ac_ext 16117 fi 16118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16119 printf "%s\n" "$ac_cv_working_alloca_h" >&6; } 16120 if test $ac_cv_working_alloca_h = yes; then 16121 16122 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h 16123 16124 fi 16125 16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16127 printf %s "checking for alloca... " >&6; } 16128 if test ${ac_cv_func_alloca_works+y} 16129 then : 16130 printf %s "(cached) " >&6 16131 else $as_nop 16132 if test $ac_cv_working_alloca_h = yes; then 16133 ac_cv_func_alloca_works=yes 16134 else 16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16136 /* end confdefs.h. */ 16137 #include <stdlib.h> 16138 #include <stddef.h> 16139 #ifndef alloca 16140 # ifdef __GNUC__ 16141 # define alloca __builtin_alloca 16142 # elif defined _MSC_VER 16143 # include <malloc.h> 16144 # define alloca _alloca 16145 # else 16146 # ifdef __cplusplus 16147 extern "C" 16148 # endif 16149 void *alloca (size_t); 16150 # endif 16151 #endif 16152 16153 int 16154 main (void) 16155 { 16156 char *p = (char *) alloca (1); 16157 if (p) return 0; 16158 ; 16159 return 0; 16160 } 16161 _ACEOF 16162 if ac_fn_c_try_link "$LINENO" 16163 then : 16164 ac_cv_func_alloca_works=yes 16165 else $as_nop 16166 ac_cv_func_alloca_works=no 16167 fi 16168 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16169 conftest$ac_exeext conftest.$ac_ext 16170 fi 16171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16172 printf "%s\n" "$ac_cv_func_alloca_works" >&6; } 16173 fi 16174 16175 if test $ac_cv_func_alloca_works = yes; then 16176 16177 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h 16178 16179 else 16180 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16181 # that cause trouble. Some versions do not even contain alloca or 16182 # contain a buggy version. If you still want to use their alloca, 16183 # use ar to extract alloca.o from them instead of compiling alloca.c. 16184 16185 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16186 16187 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h 16188 16189 16190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16191 printf %s "checking stack direction for C alloca... " >&6; } 16192 if test ${ac_cv_c_stack_direction+y} 16193 then : 16194 printf %s "(cached) " >&6 16195 else $as_nop 16196 if test "$cross_compiling" = yes 16197 then : 16198 ac_cv_c_stack_direction=0 16199 else $as_nop 16200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16201 /* end confdefs.h. */ 16202 $ac_includes_default 16203 int 16204 find_stack_direction (int *addr, int depth) 16205 { 16206 int dir, dummy = 0; 16207 if (! addr) 16208 addr = &dummy; 16209 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 16210 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 16211 return dir + dummy; 16212 } 16213 16214 int 16215 main (int argc, char **argv) 16216 { 16217 return find_stack_direction (0, argc + !argv + 20) < 0; 16218 } 16219 _ACEOF 16220 if ac_fn_c_try_run "$LINENO" 16221 then : 16222 ac_cv_c_stack_direction=1 16223 else $as_nop 16224 ac_cv_c_stack_direction=-1 16225 fi 16226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16227 conftest.$ac_objext conftest.beam conftest.$ac_ext 16228 fi 16229 16230 fi 16231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16232 printf "%s\n" "$ac_cv_c_stack_direction" >&6; } 16233 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h 16234 16235 16236 fi 16237 16238 16239 16240 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 16241 if test "x$ac_cv_type_uintptr_t" = xyes 16242 then : 16243 16244 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 16245 16246 else $as_nop 16247 for ac_type in 'unsigned int' 'unsigned long int' \ 16248 'unsigned long long int'; do 16249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16250 /* end confdefs.h. */ 16251 $ac_includes_default 16252 int 16253 main (void) 16254 { 16255 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 16256 test_array [0] = 0; 16257 return test_array [0]; 16258 16259 ; 16260 return 0; 16261 } 16262 _ACEOF 16263 if ac_fn_c_try_compile "$LINENO" 16264 then : 16265 16266 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h 16267 16268 ac_type= 16269 fi 16270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16271 test -z "$ac_type" && break 16272 done 16273 fi 16274 16275 16276 16277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5 16278 printf %s "checking how to copy va_list... " >&6; } 16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16280 /* end confdefs.h. */ 16281 16282 #include <stdarg.h> 16283 16284 int 16285 main (void) 16286 { 16287 16288 va_list ap1, ap2; 16289 va_copy(ap1, ap2); 16290 16291 ; 16292 return 0; 16293 } 16294 _ACEOF 16295 if ac_fn_c_try_link "$LINENO" 16296 then : 16297 16298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5 16299 printf "%s\n" "va_copy" >&6; } 16300 printf "%s\n" "#define HAVE_VA_COPY 1" >>confdefs.h 16301 16302 16303 else $as_nop 16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16305 /* end confdefs.h. */ 16306 16307 #include <stdarg.h> 16308 16309 int 16310 main (void) 16311 { 16312 16313 va_list ap1, ap2; 16314 __va_copy(ap1, ap2); 16315 16316 ; 16317 return 0; 16318 } 16319 _ACEOF 16320 if ac_fn_c_try_link "$LINENO" 16321 then : 16322 printf "%s\n" "#define HAVE___VA_COPY 1" >>confdefs.h 16323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5 16324 printf "%s\n" "__va_copy" >&6; } 16325 else $as_nop 16326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5 16327 printf "%s\n" "memcpy" >&6; } 16328 fi 16329 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16330 conftest$ac_exeext conftest.$ac_ext 16331 fi 16332 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16333 conftest$ac_exeext conftest.$ac_ext 16334 16335 saved_CFLAGS="$CFLAGS" 16336 CFLAGS=`echo " $CFLAGS" | $SED 's/ -Werror[^ ]*//g'` 16337 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 16338 if test "x$ac_cv_func_setlocale" = xyes 16339 then : 16340 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h 16341 16342 fi 16343 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 16344 if test "x$ac_cv_func_gettimeofday" = xyes 16345 then : 16346 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 16347 16348 fi 16349 ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal" 16350 if test "x$ac_cv_func_signal" = xyes 16351 then : 16352 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h 16353 16354 fi 16355 16356 CFLAGS="$saved_CFLAGS" 16357 16358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigaction and its associated structure" >&5 16359 printf %s "checking for sigaction and its associated structure... " >&6; } 16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16361 /* end confdefs.h. */ 16362 16363 #include <signal.h> 16364 static int f (int (*func)(int, const struct sigaction *, struct sigaction *)) 16365 { return 0; } 16366 16367 int 16368 main (void) 16369 { 16370 16371 return f(sigaction); 16372 16373 ; 16374 return 0; 16375 } 16376 _ACEOF 16377 if ac_fn_c_try_link "$LINENO" 16378 then : 16379 16380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16381 printf "%s\n" "yes" >&6; } 16382 16383 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 16384 16385 16386 else $as_nop 16387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16388 printf "%s\n" "no" >&6; } 16389 fi 16390 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16391 conftest$ac_exeext conftest.$ac_ext 16392 16393 ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default" 16394 if test "x$ac_cv_type_long_long_int" = xyes 16395 then : 16396 16397 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h 16398 16399 fi 16400 16401 16402 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 16403 if test "x$ac_cv_type_intmax_t" = xyes 16404 then : 16405 16406 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h 16407 16408 16409 fi 16410 16411 if test "$ac_cv_type_intmax_t" = yes; then 16412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working INTMAX_MAX" >&5 16413 printf %s "checking for working INTMAX_MAX... " >&6; } 16414 if test ${mpfr_cv_have_intmax_max+y} 16415 then : 16416 printf %s "(cached) " >&6 16417 else $as_nop 16418 16419 saved_CPPFLAGS="$CPPFLAGS" 16420 CPPFLAGS="$CPPFLAGS -I$srcdir/src -DMPFR_NEED_INTMAX_H" 16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16422 /* end confdefs.h. */ 16423 #include "mpfr-intmax.h" 16424 int 16425 main (void) 16426 { 16427 intmax_t x = INTMAX_MAX; (void) x; 16428 16429 ; 16430 return 0; 16431 } 16432 _ACEOF 16433 if ac_fn_c_try_compile "$LINENO" 16434 then : 16435 mpfr_cv_have_intmax_max=yes 16436 else $as_nop 16437 mpfr_cv_have_intmax_max=no 16438 fi 16439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16440 CPPFLAGS="$saved_CPPFLAGS" 16441 16442 fi 16443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_intmax_max" >&5 16444 printf "%s\n" "$mpfr_cv_have_intmax_max" >&6; } 16445 if test "$mpfr_cv_have_intmax_max" = "yes"; then 16446 16447 printf "%s\n" "#define MPFR_HAVE_INTMAX_MAX 1" >>confdefs.h 16448 16449 fi 16450 fi 16451 16452 ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" " 16453 #if HAVE_SYS_FPU_H 16454 # include <sys/fpu.h> 16455 #endif 16456 16457 " 16458 if test "x$ac_cv_type_union_fpc_csr" = xyes 16459 then : 16460 16461 printf "%s\n" "#define HAVE_FPC_CSR 1" >>confdefs.h 16462 16463 fi 16464 16465 16466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _Noreturn" >&5 16467 printf %s "checking for _Noreturn... " >&6; } 16468 if test ${mpfr_cv_have_noreturn+y} 16469 then : 16470 printf %s "(cached) " >&6 16471 else $as_nop 16472 16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16474 /* end confdefs.h. */ 16475 _Noreturn void foo(int); 16476 _ACEOF 16477 if ac_fn_c_try_compile "$LINENO" 16478 then : 16479 mpfr_cv_have_noreturn=yes 16480 else $as_nop 16481 mpfr_cv_have_noreturn=no 16482 fi 16483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16484 16485 fi 16486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_noreturn" >&5 16487 printf "%s\n" "$mpfr_cv_have_noreturn" >&6; } 16488 if test "$mpfr_cv_have_noreturn" = "yes"; then 16489 16490 printf "%s\n" "#define MPFR_HAVE_NORETURN 1" >>confdefs.h 16491 16492 fi 16493 16494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5 16495 printf %s "checking for __builtin_unreachable... " >&6; } 16496 if test ${mpfr_cv_have_builtin_unreachable+y} 16497 then : 16498 printf %s "(cached) " >&6 16499 else $as_nop 16500 16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16502 /* end confdefs.h. */ 16503 int x; 16504 int 16505 main (void) 16506 { 16507 if (x) __builtin_unreachable(); 16508 16509 ; 16510 return 0; 16511 } 16512 _ACEOF 16513 if ac_fn_c_try_link "$LINENO" 16514 then : 16515 mpfr_cv_have_builtin_unreachable=yes 16516 else $as_nop 16517 mpfr_cv_have_builtin_unreachable=no 16518 fi 16519 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16520 conftest$ac_exeext conftest.$ac_ext 16521 16522 fi 16523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_builtin_unreachable" >&5 16524 printf "%s\n" "$mpfr_cv_have_builtin_unreachable" >&6; } 16525 if test "$mpfr_cv_have_builtin_unreachable" = "yes"; then 16526 16527 printf "%s\n" "#define MPFR_HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h 16528 16529 fi 16530 16531 16532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for constructor and destructor attributes" >&5 16533 printf %s "checking for constructor and destructor attributes... " >&6; } 16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16535 /* end confdefs.h. */ 16536 16537 #include <stdlib.h> 16538 int x = 0; 16539 __attribute__((constructor)) static void 16540 call_f(void) { x = 1742; } 16541 __attribute__((destructor)) static void 16542 call_g(void) { x = 1448; } 16543 16544 int 16545 main (void) 16546 { 16547 16548 return (x == 1742) ? 0 : 1; 16549 16550 ; 16551 return 0; 16552 } 16553 _ACEOF 16554 if ac_fn_c_try_link "$LINENO" 16555 then : 16556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16557 printf "%s\n" "yes" >&6; } 16558 mpfr_have_constructor_destructor_attributes=yes 16559 else $as_nop 16560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16561 printf "%s\n" "no" >&6; } 16562 16563 fi 16564 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16565 conftest$ac_exeext conftest.$ac_ext 16566 16567 if test "$mpfr_have_constructor_destructor_attributes" = "yes"; then 16568 16569 printf "%s\n" "#define MPFR_HAVE_CONSTRUCTOR_ATTR 1" >>confdefs.h 16570 16571 fi 16572 16573 16574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5 16575 printf %s "checking for fesetround... " >&6; } 16576 if test ${mpfr_cv_have_fesetround+y} 16577 then : 16578 printf %s "(cached) " >&6 16579 else $as_nop 16580 16581 saved_LIBS="$LIBS" 16582 LIBS="$LIBS $MPFR_LIBM" 16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16584 /* end confdefs.h. */ 16585 #include <fenv.h> 16586 int 16587 main (void) 16588 { 16589 fesetround(FE_TONEAREST); 16590 ; 16591 return 0; 16592 } 16593 _ACEOF 16594 if ac_fn_c_try_link "$LINENO" 16595 then : 16596 mpfr_cv_have_fesetround=yes 16597 else $as_nop 16598 mpfr_cv_have_fesetround=no 16599 fi 16600 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16601 conftest$ac_exeext conftest.$ac_ext 16602 LIBS="$saved_LIBS" 16603 16604 fi 16605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5 16606 printf "%s\n" "$mpfr_cv_have_fesetround" >&6; } 16607 if test "$mpfr_cv_have_fesetround" = "yes"; then 16608 16609 printf "%s\n" "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h 16610 16611 fi 16612 16613 if test -n "$GCC"; then 16614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5 16615 printf %s "checking for gcc float-conversion bug... " >&6; } 16616 if test ${mpfr_cv_gcc_floatconv_bug+y} 16617 then : 16618 printf %s "(cached) " >&6 16619 else $as_nop 16620 16621 saved_LIBS="$LIBS" 16622 LIBS="$LIBS $MPFR_LIBM" 16623 if test "$cross_compiling" = yes 16624 then : 16625 mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store" 16626 else $as_nop 16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16628 /* end confdefs.h. */ 16629 16630 #include <float.h> 16631 #ifdef MPFR_HAVE_FESETROUND 16632 #include <fenv.h> 16633 #endif 16634 static double get_max (void); 16635 int main (void) { 16636 double x = 0.5; 16637 double y; 16638 int i; 16639 for (i = 1; i <= 11; i++) 16640 x *= x; 16641 if (x != 0) 16642 return 1; 16643 #ifdef MPFR_HAVE_FESETROUND 16644 /* Useful test for the G4 PowerPC */ 16645 fesetround(FE_TOWARDZERO); 16646 x = y = get_max (); 16647 x *= 2.0; 16648 if (x != y) 16649 return 1; 16650 #endif 16651 return 0; 16652 } 16653 static double get_max (void) { static volatile double d = DBL_MAX; return d; } 16654 16655 _ACEOF 16656 if ac_fn_c_try_run "$LINENO" 16657 then : 16658 mpfr_cv_gcc_floatconv_bug="no" 16659 else $as_nop 16660 mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store" 16661 fi 16662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16663 conftest.$ac_objext conftest.beam conftest.$ac_ext 16664 fi 16665 16666 LIBS="$saved_LIBS" 16667 16668 fi 16669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5 16670 printf "%s\n" "$mpfr_cv_gcc_floatconv_bug" >&6; } 16671 if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then 16672 CFLAGS="$CFLAGS -ffloat-store" 16673 fi 16674 fi 16675 16676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for subnormal double-precision numbers" >&5 16677 printf %s "checking for subnormal double-precision numbers... " >&6; } 16678 if test ${mpfr_cv_have_subnorm_dbl+y} 16679 then : 16680 printf %s "(cached) " >&6 16681 else $as_nop 16682 16683 if test "$cross_compiling" = yes 16684 then : 16685 mpfr_cv_have_subnorm_dbl="cannot test, assume no" 16686 else $as_nop 16687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16688 /* end confdefs.h. */ 16689 16690 #include <stdio.h> 16691 int main (void) { 16692 volatile double x = 2.22507385850720138309e-308, y; 16693 y = x / 2.0; 16694 fprintf (stderr, "%e\n", y); 16695 return 2.0 * y != x; 16696 } 16697 16698 _ACEOF 16699 if ac_fn_c_try_run "$LINENO" 16700 then : 16701 mpfr_cv_have_subnorm_dbl="yes" 16702 else $as_nop 16703 mpfr_cv_have_subnorm_dbl="no" 16704 fi 16705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16706 conftest.$ac_objext conftest.beam conftest.$ac_ext 16707 fi 16708 16709 16710 fi 16711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_subnorm_dbl" >&5 16712 printf "%s\n" "$mpfr_cv_have_subnorm_dbl" >&6; } 16713 if test "$mpfr_cv_have_subnorm_dbl" = "yes"; then 16714 16715 printf "%s\n" "#define HAVE_SUBNORM_DBL 1" >>confdefs.h 16716 16717 fi 16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for subnormal single-precision numbers" >&5 16719 printf %s "checking for subnormal single-precision numbers... " >&6; } 16720 if test ${mpfr_cv_have_subnorm_flt+y} 16721 then : 16722 printf %s "(cached) " >&6 16723 else $as_nop 16724 16725 if test "$cross_compiling" = yes 16726 then : 16727 mpfr_cv_have_subnorm_flt="cannot test, assume no" 16728 else $as_nop 16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16730 /* end confdefs.h. */ 16731 16732 #include <stdio.h> 16733 int main (void) { 16734 volatile float x = 1.17549435082229e-38, y; 16735 y = x / 2.0f; 16736 fprintf (stderr, "%e\n", (double) y); 16737 return 2.0f * y != x; 16738 } 16739 16740 _ACEOF 16741 if ac_fn_c_try_run "$LINENO" 16742 then : 16743 mpfr_cv_have_subnorm_flt="yes" 16744 else $as_nop 16745 mpfr_cv_have_subnorm_flt="no" 16746 fi 16747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16748 conftest.$ac_objext conftest.beam conftest.$ac_ext 16749 fi 16750 16751 16752 fi 16753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_subnorm_flt" >&5 16754 printf "%s\n" "$mpfr_cv_have_subnorm_flt" >&6; } 16755 if test "$mpfr_cv_have_subnorm_flt" = "yes"; then 16756 16757 printf "%s\n" "#define HAVE_SUBNORM_FLT 1" >>confdefs.h 16758 16759 fi 16760 16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for signed zeros" >&5 16762 printf %s "checking for signed zeros... " >&6; } 16763 if test ${mpfr_cv_have_signedz+y} 16764 then : 16765 printf %s "(cached) " >&6 16766 else $as_nop 16767 16768 if test "$cross_compiling" = yes 16769 then : 16770 mpfr_cv_have_signedz="cannot test, assume no" 16771 else $as_nop 16772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16773 /* end confdefs.h. */ 16774 16775 int main (void) { 16776 return 1.0 / 0.0 == 1.0 / -0.0; 16777 } 16778 16779 _ACEOF 16780 if ac_fn_c_try_run "$LINENO" 16781 then : 16782 mpfr_cv_have_signedz="yes" 16783 else $as_nop 16784 mpfr_cv_have_signedz="no" 16785 fi 16786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16787 conftest.$ac_objext conftest.beam conftest.$ac_ext 16788 fi 16789 16790 16791 fi 16792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_signedz" >&5 16793 printf "%s\n" "$mpfr_cv_have_signedz" >&6; } 16794 if test "$mpfr_cv_have_signedz" = "yes"; then 16795 16796 printf "%s\n" "#define HAVE_SIGNEDZ 1" >>confdefs.h 16797 16798 fi 16799 16800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the FP division by 0 fails" >&5 16801 printf %s "checking if the FP division by 0 fails... " >&6; } 16802 if test ${mpfr_cv_errdivzero+y} 16803 then : 16804 printf %s "(cached) " >&6 16805 else $as_nop 16806 16807 if test "$cross_compiling" = yes 16808 then : 16809 mpfr_cv_errdivzero="cannot test, assume no" 16810 else $as_nop 16811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16812 /* end confdefs.h. */ 16813 16814 int main (void) { 16815 volatile double d = 0.0, x; 16816 x = 0.0 / d; 16817 x = 1.0 / d; 16818 (void) x; 16819 return 0; 16820 } 16821 16822 _ACEOF 16823 if ac_fn_c_try_run "$LINENO" 16824 then : 16825 mpfr_cv_errdivzero="no" 16826 else $as_nop 16827 mpfr_cv_errdivzero="yes" 16828 fi 16829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16830 conftest.$ac_objext conftest.beam conftest.$ac_ext 16831 fi 16832 16833 16834 fi 16835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_errdivzero" >&5 16836 printf "%s\n" "$mpfr_cv_errdivzero" >&6; } 16837 if test "$mpfr_cv_errdivzero" = "yes"; then 16838 16839 printf "%s\n" "#define MPFR_ERRDIVZERO 1" >>confdefs.h 16840 16841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The floating-point division by 0 fails instead of" >&5 16842 printf "%s\n" "$as_me: WARNING: The floating-point division by 0 fails instead of" >&2;} 16843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: returning a special value: NaN or infinity. Tests" >&5 16844 printf "%s\n" "$as_me: WARNING: returning a special value: NaN or infinity. Tests" >&2;} 16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: involving a FP division by 0 will be disabled." >&5 16846 printf "%s\n" "$as_me: WARNING: involving a FP division by 0 will be disabled." >&2;} 16847 fi 16848 16849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5 16850 printf %s "checking if NAN == NAN... " >&6; } 16851 if test ${mpfr_cv_nanisnan+y} 16852 then : 16853 printf %s "(cached) " >&6 16854 else $as_nop 16855 16856 if test "$cross_compiling" = yes 16857 then : 16858 mpfr_cv_nanisnan="cannot test, assume no" 16859 else $as_nop 16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16861 /* end confdefs.h. */ 16862 16863 #include <stdio.h> 16864 #include <math.h> 16865 #ifndef NAN 16866 # define NAN (0.0/0.0) 16867 #endif 16868 int main (void) { 16869 double d; 16870 d = NAN; 16871 return d != d; 16872 } 16873 16874 _ACEOF 16875 if ac_fn_c_try_run "$LINENO" 16876 then : 16877 mpfr_cv_nanisnan="yes" 16878 else $as_nop 16879 mpfr_cv_nanisnan="no" 16880 fi 16881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16882 conftest.$ac_objext conftest.beam conftest.$ac_ext 16883 fi 16884 16885 16886 fi 16887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5 16888 printf "%s\n" "$mpfr_cv_nanisnan" >&6; } 16889 if test "$mpfr_cv_nanisnan" = "yes"; then 16890 16891 printf "%s\n" "#define MPFR_NANISNAN 1" >>confdefs.h 16892 16893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5 16894 printf "%s\n" "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;} 16895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5 16896 printf "%s\n" "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;} 16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5 16898 printf "%s\n" "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;} 16899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used. You" >&5 16900 printf "%s\n" "$as_me: WARNING: -fast (depending on the compiler), has been used. You" >&2;} 16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5 16902 printf "%s\n" "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;} 16903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5 16904 printf "%s\n" "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;} 16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5 16906 printf "%s\n" "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;} 16907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5 16908 printf "%s\n" "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;} 16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5 16910 printf "%s\n" "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;} 16911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5 16912 printf "%s\n" "$as_me: WARNING: platform and/or document the behavior." >&2;} 16913 fi 16914 16915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5 16916 printf %s "checking if charset has consecutive values... " >&6; } 16917 if test "$cross_compiling" = yes 16918 then : 16919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 16920 printf "%s\n" "cannot test" >&6; } 16921 else $as_nop 16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16923 /* end confdefs.h. */ 16924 16925 const char *number = "0123456789"; 16926 const char *lower = "abcdefghijklmnopqrstuvwxyz"; 16927 const char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; 16928 16929 int 16930 main (void) 16931 { 16932 16933 int i; 16934 unsigned char *p; 16935 for (p = (unsigned char*) number, i = 0; i < 9; i++) 16936 if ( (*p)+1 != *(p+1) ) return 1; 16937 for (p = (unsigned char*) lower, i = 0; i < 25; i++) 16938 if ( (*p)+1 != *(p+1) ) return 1; 16939 for (p = (unsigned char*) upper, i = 0; i < 25; i++) 16940 if ( (*p)+1 != *(p+1) ) return 1; 16941 16942 ; 16943 return 0; 16944 } 16945 _ACEOF 16946 if ac_fn_c_try_run "$LINENO" 16947 then : 16948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16949 printf "%s\n" "yes" >&6; } 16950 else $as_nop 16951 16952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16953 printf "%s\n" "no" >&6; } 16954 16955 printf "%s\n" "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h 16956 16957 16958 fi 16959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16960 conftest.$ac_objext conftest.beam conftest.$ac_ext 16961 fi 16962 16963 16964 saved_LIBS="$LIBS" 16965 LIBS="$LIBS $MPFR_LIBM" 16966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/round" >&5 16967 printf %s "checking for math/round... " >&6; } 16968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16969 /* end confdefs.h. */ 16970 16971 #include <math.h> 16972 static int f (double (*func)(double)) { return 0; } 16973 16974 int 16975 main (void) 16976 { 16977 16978 return f(round); 16979 16980 ; 16981 return 0; 16982 } 16983 _ACEOF 16984 if ac_fn_c_try_link "$LINENO" 16985 then : 16986 16987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16988 printf "%s\n" "yes" >&6; } 16989 16990 printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h 16991 16992 16993 else $as_nop 16994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16995 printf "%s\n" "no" >&6; } 16996 fi 16997 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16998 conftest$ac_exeext conftest.$ac_ext 16999 17000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/trunc" >&5 17001 printf %s "checking for math/trunc... " >&6; } 17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17003 /* end confdefs.h. */ 17004 17005 #include <math.h> 17006 static int f (double (*func)(double)) { return 0; } 17007 17008 int 17009 main (void) 17010 { 17011 17012 return f(trunc); 17013 17014 ; 17015 return 0; 17016 } 17017 _ACEOF 17018 if ac_fn_c_try_link "$LINENO" 17019 then : 17020 17021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17022 printf "%s\n" "yes" >&6; } 17023 17024 printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h 17025 17026 17027 else $as_nop 17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17029 printf "%s\n" "no" >&6; } 17030 fi 17031 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17032 conftest$ac_exeext conftest.$ac_ext 17033 17034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/floor" >&5 17035 printf %s "checking for math/floor... " >&6; } 17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17037 /* end confdefs.h. */ 17038 17039 #include <math.h> 17040 static int f (double (*func)(double)) { return 0; } 17041 17042 int 17043 main (void) 17044 { 17045 17046 return f(floor); 17047 17048 ; 17049 return 0; 17050 } 17051 _ACEOF 17052 if ac_fn_c_try_link "$LINENO" 17053 then : 17054 17055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17056 printf "%s\n" "yes" >&6; } 17057 17058 printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h 17059 17060 17061 else $as_nop 17062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17063 printf "%s\n" "no" >&6; } 17064 fi 17065 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17066 conftest$ac_exeext conftest.$ac_ext 17067 17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/ceil" >&5 17069 printf %s "checking for math/ceil... " >&6; } 17070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17071 /* end confdefs.h. */ 17072 17073 #include <math.h> 17074 static int f (double (*func)(double)) { return 0; } 17075 17076 int 17077 main (void) 17078 { 17079 17080 return f(ceil); 17081 17082 ; 17083 return 0; 17084 } 17085 _ACEOF 17086 if ac_fn_c_try_link "$LINENO" 17087 then : 17088 17089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17090 printf "%s\n" "yes" >&6; } 17091 17092 printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h 17093 17094 17095 else $as_nop 17096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17097 printf "%s\n" "no" >&6; } 17098 fi 17099 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17100 conftest$ac_exeext conftest.$ac_ext 17101 17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for math/nearbyint" >&5 17103 printf %s "checking for math/nearbyint... " >&6; } 17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17105 /* end confdefs.h. */ 17106 17107 #include <math.h> 17108 static int f (double (*func)(double)) { return 0; } 17109 17110 int 17111 main (void) 17112 { 17113 17114 return f(nearbyint); 17115 17116 ; 17117 return 0; 17118 } 17119 _ACEOF 17120 if ac_fn_c_try_link "$LINENO" 17121 then : 17122 17123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17124 printf "%s\n" "yes" >&6; } 17125 17126 printf "%s\n" "#define HAVE_NEARBYINT 1" >>confdefs.h 17127 17128 17129 else $as_nop 17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17131 printf "%s\n" "no" >&6; } 17132 fi 17133 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17134 conftest$ac_exeext conftest.$ac_ext 17135 17136 LIBS="$saved_LIBS" 17137 17138 17139 17140 17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking format of floating-point type \`double'" >&5 17142 printf %s "checking format of floating-point type \`double'... " >&6; } 17143 if test ${mpfr_cv_c_double_format+y} 17144 then : 17145 printf %s "(cached) " >&6 17146 else $as_nop 17147 mpfr_cv_c_double_format=unknown 17148 cat >conftest.c <<\EOF 17149 17150 #include <stdio.h> 17151 /* "before" is 16 bytes to ensure there's no padding between it and "x". 17152 We're not expecting any type bigger than 16 bytes or with 17153 alignment requirements stricter than 16 bytes. */ 17154 typedef struct { 17155 char before[16]; 17156 double x; 17157 char after[8]; 17158 } foo_t; 17159 17160 foo_t foo = { 17161 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 17162 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' }, 17163 -123456789.0, 17164 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' } 17165 }; 17166 17167 int main (void) { 17168 int i; 17169 for (i = 0; i < 8; i++) 17170 printf ("%d %f\n", foo.before[i] + foo.after[i], foo.x); 17171 return 0; 17172 } 17173 17174 EOF 17175 mpfr_compile="$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.c -o conftest$EXEEXT >&5 2>&1" 17176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5 17177 (eval $mpfr_compile) 2>&5 17178 ac_status=$? 17179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17180 test $ac_status = 0; }; then 17181 cat >conftest.awk <<\EOF 17182 17183 BEGIN { 17184 found = 0 17185 } 17186 17187 # got[] holds a sliding window of bytes read the input. got[0] is the most 17188 # recent byte read, and got[31] the oldest byte read, so when looking to 17189 # match some data the indices are "reversed". 17190 # 17191 { 17192 for (f = 2; f <= NF; f++) 17193 { 17194 # new byte, shift others up 17195 for (i = 31; i >= 0; i--) 17196 got[i+1] = got[i]; 17197 got[0] = $f; 17198 17199 # end sequence 17200 if (got[7] != "376") continue 17201 if (got[6] != "334") continue 17202 if (got[5] != "272") continue 17203 if (got[4] != "230") continue 17204 if (got[3] != "166") continue 17205 if (got[2] != "124") continue 17206 if (got[1] != "062") continue 17207 if (got[0] != "020") continue 17208 17209 # start sequence, with 8-byte body 17210 if (got[23] == "001" && \ 17211 got[22] == "043" && \ 17212 got[21] == "105" && \ 17213 got[20] == "147" && \ 17214 got[19] == "211" && \ 17215 got[18] == "253" && \ 17216 got[17] == "315" && \ 17217 got[16] == "357") 17218 { 17219 saw = " (" got[15] \ 17220 " " got[14] \ 17221 " " got[13] \ 17222 " " got[12] \ 17223 " " got[11] \ 17224 " " got[10] \ 17225 " " got[9] \ 17226 " " got[8] ")" 17227 17228 if (got[15] == "301" && \ 17229 got[14] == "235" && \ 17230 got[13] == "157" && \ 17231 got[12] == "064" && \ 17232 got[11] == "124" && \ 17233 got[10] == "000" && \ 17234 got[9] == "000" && \ 17235 got[8] == "000") 17236 { 17237 print "IEEE double, big endian" 17238 found = 1 17239 exit 17240 } 17241 17242 if (got[15] == "000" && \ 17243 got[14] == "000" && \ 17244 got[13] == "000" && \ 17245 got[12] == "124" && \ 17246 got[11] == "064" && \ 17247 got[10] == "157" && \ 17248 got[9] == "235" && \ 17249 got[8] == "301") 17250 { 17251 print "IEEE double, little endian" 17252 found = 1 17253 exit 17254 } 17255 } 17256 17257 # start sequence, with 12-byte body 17258 if (got[27] == "001" && \ 17259 got[26] == "043" && \ 17260 got[25] == "105" && \ 17261 got[24] == "147" && \ 17262 got[23] == "211" && \ 17263 got[22] == "253" && \ 17264 got[21] == "315" && \ 17265 got[20] == "357") 17266 { 17267 saw = " (" got[19] \ 17268 " " got[18] \ 17269 " " got[17] \ 17270 " " got[16] \ 17271 " " got[15] \ 17272 " " got[14] \ 17273 " " got[13] \ 17274 " " got[12] \ 17275 " " got[11] \ 17276 " " got[10] \ 17277 " " got[9] \ 17278 " " got[8] ")" 17279 17280 if (got[19] == "000" && \ 17281 got[18] == "000" && \ 17282 got[17] == "000" && \ 17283 got[16] == "000" && \ 17284 got[15] == "240" && \ 17285 got[14] == "242" && \ 17286 got[13] == "171" && \ 17287 got[12] == "353" && \ 17288 got[11] == "031" && \ 17289 got[10] == "300") 17290 { 17291 print "IEEE extended, little endian (12 bytes)" 17292 found = 1 17293 exit 17294 } 17295 17296 if (got[19] == "300" && \ 17297 got[18] == "031" && \ 17298 got[17] == "000" && \ 17299 got[16] == "000" && \ 17300 got[15] == "353" && \ 17301 got[14] == "171" && \ 17302 got[13] == "242" && \ 17303 got[12] == "240" && \ 17304 got[11] == "000" && \ 17305 got[10] == "000" && \ 17306 got[09] == "000" && \ 17307 got[08] == "000") 17308 { 17309 # format found on m68k 17310 print "IEEE extended, big endian (12 bytes)" 17311 found = 1 17312 exit 17313 } 17314 } 17315 17316 # start sequence, with 16-byte body 17317 if (got[31] == "001" && \ 17318 got[30] == "043" && \ 17319 got[29] == "105" && \ 17320 got[28] == "147" && \ 17321 got[27] == "211" && \ 17322 got[26] == "253" && \ 17323 got[25] == "315" && \ 17324 got[24] == "357") 17325 { 17326 saw = " (" got[23] \ 17327 " " got[22] \ 17328 " " got[21] \ 17329 " " got[20] \ 17330 " " got[19] \ 17331 " " got[18] \ 17332 " " got[17] \ 17333 " " got[16] \ 17334 " " got[15] \ 17335 " " got[14] \ 17336 " " got[13] \ 17337 " " got[12] \ 17338 " " got[11] \ 17339 " " got[10] \ 17340 " " got[9] \ 17341 " " got[8] ")" 17342 17343 if (got[23] == "000" && \ 17344 got[22] == "000" && \ 17345 got[21] == "000" && \ 17346 got[20] == "000" && \ 17347 got[19] == "240" && \ 17348 got[18] == "242" && \ 17349 got[17] == "171" && \ 17350 got[16] == "353" && \ 17351 got[15] == "031" && \ 17352 got[14] == "300") 17353 { 17354 print "IEEE extended, little endian (16 bytes)" 17355 found = 1 17356 exit 17357 } 17358 17359 if (got[23] == "300" && \ 17360 got[22] == "031" && \ 17361 got[21] == "326" && \ 17362 got[20] == "363" && \ 17363 got[19] == "105" && \ 17364 got[18] == "100" && \ 17365 got[17] == "000" && \ 17366 got[16] == "000" && \ 17367 got[15] == "000" && \ 17368 got[14] == "000" && \ 17369 got[13] == "000" && \ 17370 got[12] == "000" && \ 17371 got[11] == "000" && \ 17372 got[10] == "000" && \ 17373 got[9] == "000" && \ 17374 got[8] == "000") 17375 { 17376 # format used on HP 9000/785 under HP-UX 17377 print "IEEE quad, big endian" 17378 found = 1 17379 exit 17380 } 17381 17382 if (got[23] == "000" && \ 17383 got[22] == "000" && \ 17384 got[21] == "000" && \ 17385 got[20] == "000" && \ 17386 got[19] == "000" && \ 17387 got[18] == "000" && \ 17388 got[17] == "000" && \ 17389 got[16] == "000" && \ 17390 got[15] == "000" && \ 17391 got[14] == "000" && \ 17392 got[13] == "100" && \ 17393 got[12] == "105" && \ 17394 got[11] == "363" && \ 17395 got[10] == "326" && \ 17396 got[9] == "031" && \ 17397 got[8] == "300") 17398 { 17399 print "IEEE quad, little endian" 17400 found = 1 17401 exit 17402 } 17403 17404 if (got[23] == "301" && \ 17405 got[22] == "235" && \ 17406 got[21] == "157" && \ 17407 got[20] == "064" && \ 17408 got[19] == "124" && \ 17409 got[18] == "000" && \ 17410 got[17] == "000" && \ 17411 got[16] == "000" && \ 17412 got[15] == "000" && \ 17413 got[14] == "000" && \ 17414 got[13] == "000" && \ 17415 got[12] == "000" && \ 17416 got[11] == "000" && \ 17417 got[10] == "000" && \ 17418 got[9] == "000" && \ 17419 got[8] == "000") 17420 { 17421 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux) 17422 print "possibly double-double, big endian" 17423 found = 1 17424 exit 17425 } 17426 17427 if (got[23] == "000" && \ 17428 got[22] == "000" && \ 17429 got[21] == "000" && \ 17430 got[20] == "124" && \ 17431 got[19] == "064" && \ 17432 got[18] == "157" && \ 17433 got[17] == "235" && \ 17434 got[16] == "301" && \ 17435 got[15] == "000" && \ 17436 got[14] == "000" && \ 17437 got[13] == "000" && \ 17438 got[12] == "000" && \ 17439 got[11] == "000" && \ 17440 got[10] == "000" && \ 17441 got[9] == "000" && \ 17442 got[8] == "000") 17443 { 17444 # format used on ppc64le 17445 print "possibly double-double, little endian" 17446 found = 1 17447 exit 17448 } 17449 } 17450 } 17451 } 17452 17453 END { 17454 if (! found) 17455 print "unknown", saw 17456 } 17457 17458 EOF 17459 mpfr_cv_c_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk` 17460 case $mpfr_cv_c_double_format in 17461 unknown*) 17462 echo "cannot match anything, conftest$EXEEXT contains" >&5 17463 od -b conftest$EXEEXT >&5 17464 ;; 17465 esac 17466 else 17467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5 17468 printf "%s\n" "$as_me: WARNING: oops, cannot compile test program" >&2;} 17469 fi 17470 rm -f conftest* 17471 17472 fi 17473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_double_format" >&5 17474 printf "%s\n" "$mpfr_cv_c_double_format" >&6; } 17475 case $mpfr_cv_c_double_format in 17476 "IEEE double, big endian"*) 17477 printf "%s\n" "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h 17478 17479 ;; 17480 "IEEE double, little endian"*) 17481 printf "%s\n" "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h 17482 17483 ;; 17484 unknown*) 17485 ;; 17486 *) 17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: format of \`double' unsupported or not recognized: $mpfr_cv_c_double_format" >&5 17488 printf "%s\n" "$as_me: WARNING: format of \`double' unsupported or not recognized: $mpfr_cv_c_double_format" >&2;} 17489 ;; 17490 esac 17491 17492 17493 17494 17495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking format of floating-point type \`long double'" >&5 17496 printf %s "checking format of floating-point type \`long double'... " >&6; } 17497 if test ${mpfr_cv_c_long_double_format+y} 17498 then : 17499 printf %s "(cached) " >&6 17500 else $as_nop 17501 mpfr_cv_c_long_double_format=unknown 17502 cat >conftest.c <<\EOF 17503 17504 #include <stdio.h> 17505 /* "before" is 16 bytes to ensure there's no padding between it and "x". 17506 We're not expecting any type bigger than 16 bytes or with 17507 alignment requirements stricter than 16 bytes. */ 17508 typedef struct { 17509 char before[16]; 17510 long double x; 17511 char after[8]; 17512 } foo_t; 17513 17514 foo_t foo = { 17515 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 17516 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' }, 17517 -123456789.0, 17518 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' } 17519 }; 17520 17521 int main (void) { 17522 int i; 17523 for (i = 0; i < 8; i++) 17524 printf ("%d %Lf\n", foo.before[i] + foo.after[i], foo.x); 17525 return 0; 17526 } 17527 17528 EOF 17529 mpfr_compile="$CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.c -o conftest$EXEEXT >&5 2>&1" 17530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5 17531 (eval $mpfr_compile) 2>&5 17532 ac_status=$? 17533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17534 test $ac_status = 0; }; then 17535 cat >conftest.awk <<\EOF 17536 17537 BEGIN { 17538 found = 0 17539 } 17540 17541 # got[] holds a sliding window of bytes read the input. got[0] is the most 17542 # recent byte read, and got[31] the oldest byte read, so when looking to 17543 # match some data the indices are "reversed". 17544 # 17545 { 17546 for (f = 2; f <= NF; f++) 17547 { 17548 # new byte, shift others up 17549 for (i = 31; i >= 0; i--) 17550 got[i+1] = got[i]; 17551 got[0] = $f; 17552 17553 # end sequence 17554 if (got[7] != "376") continue 17555 if (got[6] != "334") continue 17556 if (got[5] != "272") continue 17557 if (got[4] != "230") continue 17558 if (got[3] != "166") continue 17559 if (got[2] != "124") continue 17560 if (got[1] != "062") continue 17561 if (got[0] != "020") continue 17562 17563 # start sequence, with 8-byte body 17564 if (got[23] == "001" && \ 17565 got[22] == "043" && \ 17566 got[21] == "105" && \ 17567 got[20] == "147" && \ 17568 got[19] == "211" && \ 17569 got[18] == "253" && \ 17570 got[17] == "315" && \ 17571 got[16] == "357") 17572 { 17573 saw = " (" got[15] \ 17574 " " got[14] \ 17575 " " got[13] \ 17576 " " got[12] \ 17577 " " got[11] \ 17578 " " got[10] \ 17579 " " got[9] \ 17580 " " got[8] ")" 17581 17582 if (got[15] == "301" && \ 17583 got[14] == "235" && \ 17584 got[13] == "157" && \ 17585 got[12] == "064" && \ 17586 got[11] == "124" && \ 17587 got[10] == "000" && \ 17588 got[9] == "000" && \ 17589 got[8] == "000") 17590 { 17591 print "IEEE double, big endian" 17592 found = 1 17593 exit 17594 } 17595 17596 if (got[15] == "000" && \ 17597 got[14] == "000" && \ 17598 got[13] == "000" && \ 17599 got[12] == "124" && \ 17600 got[11] == "064" && \ 17601 got[10] == "157" && \ 17602 got[9] == "235" && \ 17603 got[8] == "301") 17604 { 17605 print "IEEE double, little endian" 17606 found = 1 17607 exit 17608 } 17609 } 17610 17611 # start sequence, with 12-byte body 17612 if (got[27] == "001" && \ 17613 got[26] == "043" && \ 17614 got[25] == "105" && \ 17615 got[24] == "147" && \ 17616 got[23] == "211" && \ 17617 got[22] == "253" && \ 17618 got[21] == "315" && \ 17619 got[20] == "357") 17620 { 17621 saw = " (" got[19] \ 17622 " " got[18] \ 17623 " " got[17] \ 17624 " " got[16] \ 17625 " " got[15] \ 17626 " " got[14] \ 17627 " " got[13] \ 17628 " " got[12] \ 17629 " " got[11] \ 17630 " " got[10] \ 17631 " " got[9] \ 17632 " " got[8] ")" 17633 17634 if (got[19] == "000" && \ 17635 got[18] == "000" && \ 17636 got[17] == "000" && \ 17637 got[16] == "000" && \ 17638 got[15] == "240" && \ 17639 got[14] == "242" && \ 17640 got[13] == "171" && \ 17641 got[12] == "353" && \ 17642 got[11] == "031" && \ 17643 got[10] == "300") 17644 { 17645 print "IEEE extended, little endian (12 bytes)" 17646 found = 1 17647 exit 17648 } 17649 17650 if (got[19] == "300" && \ 17651 got[18] == "031" && \ 17652 got[17] == "000" && \ 17653 got[16] == "000" && \ 17654 got[15] == "353" && \ 17655 got[14] == "171" && \ 17656 got[13] == "242" && \ 17657 got[12] == "240" && \ 17658 got[11] == "000" && \ 17659 got[10] == "000" && \ 17660 got[09] == "000" && \ 17661 got[08] == "000") 17662 { 17663 # format found on m68k 17664 print "IEEE extended, big endian (12 bytes)" 17665 found = 1 17666 exit 17667 } 17668 } 17669 17670 # start sequence, with 16-byte body 17671 if (got[31] == "001" && \ 17672 got[30] == "043" && \ 17673 got[29] == "105" && \ 17674 got[28] == "147" && \ 17675 got[27] == "211" && \ 17676 got[26] == "253" && \ 17677 got[25] == "315" && \ 17678 got[24] == "357") 17679 { 17680 saw = " (" got[23] \ 17681 " " got[22] \ 17682 " " got[21] \ 17683 " " got[20] \ 17684 " " got[19] \ 17685 " " got[18] \ 17686 " " got[17] \ 17687 " " got[16] \ 17688 " " got[15] \ 17689 " " got[14] \ 17690 " " got[13] \ 17691 " " got[12] \ 17692 " " got[11] \ 17693 " " got[10] \ 17694 " " got[9] \ 17695 " " got[8] ")" 17696 17697 if (got[23] == "000" && \ 17698 got[22] == "000" && \ 17699 got[21] == "000" && \ 17700 got[20] == "000" && \ 17701 got[19] == "240" && \ 17702 got[18] == "242" && \ 17703 got[17] == "171" && \ 17704 got[16] == "353" && \ 17705 got[15] == "031" && \ 17706 got[14] == "300") 17707 { 17708 print "IEEE extended, little endian (16 bytes)" 17709 found = 1 17710 exit 17711 } 17712 17713 if (got[23] == "300" && \ 17714 got[22] == "031" && \ 17715 got[21] == "326" && \ 17716 got[20] == "363" && \ 17717 got[19] == "105" && \ 17718 got[18] == "100" && \ 17719 got[17] == "000" && \ 17720 got[16] == "000" && \ 17721 got[15] == "000" && \ 17722 got[14] == "000" && \ 17723 got[13] == "000" && \ 17724 got[12] == "000" && \ 17725 got[11] == "000" && \ 17726 got[10] == "000" && \ 17727 got[9] == "000" && \ 17728 got[8] == "000") 17729 { 17730 # format used on HP 9000/785 under HP-UX 17731 print "IEEE quad, big endian" 17732 found = 1 17733 exit 17734 } 17735 17736 if (got[23] == "000" && \ 17737 got[22] == "000" && \ 17738 got[21] == "000" && \ 17739 got[20] == "000" && \ 17740 got[19] == "000" && \ 17741 got[18] == "000" && \ 17742 got[17] == "000" && \ 17743 got[16] == "000" && \ 17744 got[15] == "000" && \ 17745 got[14] == "000" && \ 17746 got[13] == "100" && \ 17747 got[12] == "105" && \ 17748 got[11] == "363" && \ 17749 got[10] == "326" && \ 17750 got[9] == "031" && \ 17751 got[8] == "300") 17752 { 17753 print "IEEE quad, little endian" 17754 found = 1 17755 exit 17756 } 17757 17758 if (got[23] == "301" && \ 17759 got[22] == "235" && \ 17760 got[21] == "157" && \ 17761 got[20] == "064" && \ 17762 got[19] == "124" && \ 17763 got[18] == "000" && \ 17764 got[17] == "000" && \ 17765 got[16] == "000" && \ 17766 got[15] == "000" && \ 17767 got[14] == "000" && \ 17768 got[13] == "000" && \ 17769 got[12] == "000" && \ 17770 got[11] == "000" && \ 17771 got[10] == "000" && \ 17772 got[9] == "000" && \ 17773 got[8] == "000") 17774 { 17775 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux) 17776 print "possibly double-double, big endian" 17777 found = 1 17778 exit 17779 } 17780 17781 if (got[23] == "000" && \ 17782 got[22] == "000" && \ 17783 got[21] == "000" && \ 17784 got[20] == "124" && \ 17785 got[19] == "064" && \ 17786 got[18] == "157" && \ 17787 got[17] == "235" && \ 17788 got[16] == "301" && \ 17789 got[15] == "000" && \ 17790 got[14] == "000" && \ 17791 got[13] == "000" && \ 17792 got[12] == "000" && \ 17793 got[11] == "000" && \ 17794 got[10] == "000" && \ 17795 got[9] == "000" && \ 17796 got[8] == "000") 17797 { 17798 # format used on ppc64le 17799 print "possibly double-double, little endian" 17800 found = 1 17801 exit 17802 } 17803 } 17804 } 17805 } 17806 17807 END { 17808 if (! found) 17809 print "unknown", saw 17810 } 17811 17812 EOF 17813 mpfr_cv_c_long_double_format=`od -b conftest$EXEEXT | $AWK -f conftest.awk` 17814 case $mpfr_cv_c_long_double_format in 17815 unknown*) 17816 echo "cannot match anything, conftest$EXEEXT contains" >&5 17817 od -b conftest$EXEEXT >&5 17818 ;; 17819 esac 17820 else 17821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5 17822 printf "%s\n" "$as_me: WARNING: oops, cannot compile test program" >&2;} 17823 fi 17824 rm -f conftest* 17825 17826 fi 17827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5 17828 printf "%s\n" "$mpfr_cv_c_long_double_format" >&6; } 17829 case $mpfr_cv_c_long_double_format in 17830 "IEEE double, big endian"*) 17831 printf "%s\n" "#define HAVE_LDOUBLE_IS_DOUBLE 1" >>confdefs.h 17832 17833 ;; 17834 "IEEE double, little endian"*) 17835 printf "%s\n" "#define HAVE_LDOUBLE_IS_DOUBLE 1" >>confdefs.h 17836 17837 ;; 17838 "IEEE extended, little endian"*) 17839 printf "%s\n" "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h 17840 17841 ;; 17842 "IEEE extended, big endian"*) 17843 printf "%s\n" "#define HAVE_LDOUBLE_IEEE_EXT_BIG 1" >>confdefs.h 17844 17845 ;; 17846 "IEEE quad, big endian"*) 17847 printf "%s\n" "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h 17848 17849 ;; 17850 "IEEE quad, little endian"*) 17851 printf "%s\n" "#define HAVE_LDOUBLE_IEEE_QUAD_LITTLE 1" >>confdefs.h 17852 17853 ;; 17854 "possibly double-double, big endian"*) 17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5 17856 printf "%s\n" "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;} 17857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5 17858 printf "%s\n" "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;} 17859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5 17860 printf "%s\n" "$as_me: WARNING: You can safely ignore this warning, though." >&2;} 17861 printf "%s\n" "#define HAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE 1" >>confdefs.h 17862 17863 ;; 17864 "possibly double-double, little endian"*) 17865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5 17866 printf "%s\n" "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;} 17867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5 17868 printf "%s\n" "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;} 17869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5 17870 printf "%s\n" "$as_me: WARNING: You can safely ignore this warning, though." >&2;} 17871 printf "%s\n" "#define HAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE 1" >>confdefs.h 17872 17873 ;; 17874 unknown*) 17875 ;; 17876 *) 17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: format of \`long double' unsupported or not recognized: $mpfr_cv_c_long_double_format" >&5 17878 printf "%s\n" "$as_me: WARNING: format of \`long double' unsupported or not recognized: $mpfr_cv_c_long_double_format" >&2;} 17879 ;; 17880 esac 17881 17882 if test "$enable_thread_safe" != no; then 17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS support using C11" >&5 17884 printf %s "checking for TLS support using C11... " >&6; } 17885 saved_CPPFLAGS="$CPPFLAGS" 17886 CPPFLAGS="$CPPFLAGS -I$srcdir/src" 17887 if test "$cross_compiling" = yes 17888 then : 17889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5 17890 printf "%s\n" "cannot test, assume no" >&6; } 17891 17892 else $as_nop 17893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17894 /* end confdefs.h. */ 17895 17896 #define MPFR_USE_THREAD_SAFE 1 17897 #define MPFR_USE_C11_THREAD_SAFE 1 17898 #include "mpfr-thread.h" 17899 MPFR_THREAD_ATTR int x = 17; 17900 int main (void) { 17901 return x != 17; 17902 } 17903 17904 _ACEOF 17905 if ac_fn_c_try_run "$LINENO" 17906 then : 17907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17908 printf "%s\n" "yes" >&6; } 17909 17910 printf "%s\n" "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h 17911 17912 17913 printf "%s\n" "#define MPFR_USE_C11_THREAD_SAFE 1" >>confdefs.h 17914 17915 tls_c11_support=yes 17916 enable_thread_safe=yes 17917 17918 else $as_nop 17919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17920 printf "%s\n" "no" >&6; } 17921 17922 fi 17923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17924 conftest.$ac_objext conftest.beam conftest.$ac_ext 17925 fi 17926 17927 CPPFLAGS="$saved_CPPFLAGS" 17928 17929 if test "$tls_c11_support" != "yes" 17930 then 17931 17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5 17933 printf %s "checking for TLS support... " >&6; } 17934 saved_CPPFLAGS="$CPPFLAGS" 17935 CPPFLAGS="$CPPFLAGS -I$srcdir/src" 17936 if test "$cross_compiling" = yes 17937 then : 17938 if test "$enable_thread_safe" = yes; then 17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test, assume yes" >&5 17940 printf "%s\n" "cannot test, assume yes" >&6; } 17941 17942 printf "%s\n" "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h 17943 17944 else 17945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5 17946 printf "%s\n" "cannot test, assume no" >&6; } 17947 fi 17948 17949 else $as_nop 17950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17951 /* end confdefs.h. */ 17952 17953 #define MPFR_USE_THREAD_SAFE 1 17954 #include "mpfr-thread.h" 17955 MPFR_THREAD_ATTR int x = 17; 17956 int main (void) { 17957 return x != 17; 17958 } 17959 17960 _ACEOF 17961 if ac_fn_c_try_run "$LINENO" 17962 then : 17963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17964 printf "%s\n" "yes" >&6; } 17965 17966 printf "%s\n" "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h 17967 17968 enable_thread_safe=yes 17969 17970 else $as_nop 17971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17972 printf "%s\n" "no" >&6; } 17973 if test "$enable_thread_safe" = yes; then 17974 as_fn_error $? "please configure with --disable-thread-safe" "$LINENO" 5 17975 fi 17976 17977 fi 17978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17979 conftest.$ac_objext conftest.beam conftest.$ac_ext 17980 fi 17981 17982 CPPFLAGS="$saved_CPPFLAGS" 17983 fi 17984 fi 17985 17986 if test "$enable_decimal_float" != no; then 17987 17988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler knows _Decimal64" >&5 17989 printf %s "checking if compiler knows _Decimal64... " >&6; } 17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17991 /* end confdefs.h. */ 17992 _Decimal64 x; 17993 int 17994 main (void) 17995 { 17996 17997 ; 17998 return 0; 17999 } 18000 _ACEOF 18001 if ac_fn_c_try_compile "$LINENO" 18002 then : 18003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18004 printf "%s\n" "yes" >&6; } 18005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking decimal float format" >&5 18006 printf %s "checking decimal float format... " >&6; } 18007 if test "$cross_compiling" = yes 18008 then : 18009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 18010 printf "%s\n" "cannot test" >&6; } 18011 enable_decimal_float=compile-time 18012 else $as_nop 18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18014 /* end confdefs.h. */ 18015 18016 #include <stdlib.h> 18017 18018 int 18019 main (void) 18020 { 18021 18022 volatile _Decimal64 x = 1; 18023 union { double d; _Decimal64 d64; } y; 18024 if (x != x) return 83; 18025 y.d64 = 1234567890123456.0dd; 18026 return y.d == 0.14894469406741037E-123 ? 80 : 18027 y.d == 0.59075095508629822E-68 ? 81 : 82; 18028 18029 ; 18030 return 0; 18031 } 18032 _ACEOF 18033 if ac_fn_c_try_run "$LINENO" 18034 then : 18035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: internal error" >&5 18036 printf "%s\n" "internal error" >&6; } 18037 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18038 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18039 as_fn_error $? "unexpected exit status 0 18040 See \`config.log' for more details" "$LINENO" 5; } 18041 else $as_nop 18042 d64_exit_status=$? 18043 case "$d64_exit_status" in 18044 80) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DPD" >&5 18045 printf "%s\n" "DPD" >&6; } 18046 if test "$enable_decimal_float" = bid; then 18047 as_fn_error $? "encoding mismatch (BID requested)." "$LINENO" 5 18048 fi 18049 if test "$enable_decimal_float" != generic; then 18050 enable_decimal_float=dpd 18051 fi ;; 18052 81) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: BID" >&5 18053 printf "%s\n" "BID" >&6; } 18054 if test "$enable_decimal_float" = dpd; then 18055 as_fn_error $? "encoding mismatch (DPD requested)." "$LINENO" 5 18056 fi 18057 if test "$enable_decimal_float" != generic; then 18058 enable_decimal_float=bid 18059 fi ;; 18060 82) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither DPD nor BID" >&5 18061 printf "%s\n" "neither DPD nor BID" >&6; } 18062 if test "$enable_decimal_float" = dpd; then 18063 as_fn_error $? "encoding mismatch (DPD requested)." "$LINENO" 5 18064 fi 18065 if test "$enable_decimal_float" = bid; then 18066 as_fn_error $? "encoding mismatch (BID requested)." "$LINENO" 5 18067 fi 18068 enable_decimal_float=generic 18069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The _Decimal64 encoding is non-standard or there was an" >&5 18070 printf "%s\n" "$as_me: WARNING: The _Decimal64 encoding is non-standard or there was an" >&2;} 18071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: issue with its detection. The generic code will be used." >&5 18072 printf "%s\n" "$as_me: WARNING: issue with its detection. The generic code will be used." >&2;} 18073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Please do not forget to test with \`make check'." >&5 18074 printf "%s\n" "$as_me: WARNING: Please do not forget to test with \`make check'." >&2;} 18075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: In case of failure of a decimal test, you should rebuild" >&5 18076 printf "%s\n" "$as_me: WARNING: In case of failure of a decimal test, you should rebuild" >&2;} 18077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: MPFR without --enable-decimal-float." >&5 18078 printf "%s\n" "$as_me: WARNING: MPFR without --enable-decimal-float." >&2;} ;; 18079 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: error (exit status $d64_exit_status)" >&5 18080 printf "%s\n" "error (exit status $d64_exit_status)" >&6; } 18081 case "$enable_decimal_float" in 18082 yes|bid|dpd|generic) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18083 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18084 as_fn_error $? "internal or link error. 18085 Please build MPFR without --enable-decimal-float. 18086 See \`config.log' for more details" "$LINENO" 5; } ;; 18087 *) enable_decimal_float=no ;; 18088 esac ;; 18089 esac 18090 fi 18091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18092 conftest.$ac_objext conftest.beam conftest.$ac_ext 18093 fi 18094 18095 18096 else $as_nop 18097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18098 printf "%s\n" "no" >&6; } 18099 case "$enable_decimal_float" in 18100 yes|bid|dpd|generic) 18101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18102 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 18103 as_fn_error $? "compiler doesn't know _Decimal64 (ISO/IEC TR 24732). 18104 Please use another compiler or build MPFR without --enable-decimal-float. 18105 See \`config.log' for more details" "$LINENO" 5; } ;; 18106 *) enable_decimal_float=no ;; 18107 esac 18108 fi 18109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18110 if test "$enable_decimal_float" != no; then 18111 18112 printf "%s\n" "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h 18113 18114 case "$enable_decimal_float" in 18115 dpd) printf "%s\n" "#define DECIMAL_DPD_FORMAT 1" >>confdefs.h 18116 ;; 18117 bid) printf "%s\n" "#define DECIMAL_BID_FORMAT 1" >>confdefs.h 18118 ;; 18119 generic) printf "%s\n" "#define DECIMAL_GENERIC_CODE 1" >>confdefs.h 18120 ;; 18121 compile-time) ;; 18122 *) as_fn_error $? "internal error" "$LINENO" 5 ;; 18123 esac 18124 fi 18125 18126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking bit-field ordering for _Decimal128" >&5 18127 printf %s "checking bit-field ordering for _Decimal128... " >&6; } 18128 if test "$cross_compiling" = yes 18129 then : 18130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 18131 printf "%s\n" "cannot test" >&6; } 18132 else $as_nop 18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18134 /* end confdefs.h. */ 18135 18136 18137 int 18138 main (void) 18139 { 18140 18141 union ieee_decimal128 18142 { 18143 struct 18144 { 18145 unsigned int t3:32; 18146 unsigned int t2:32; 18147 unsigned int t1:32; 18148 unsigned int t0:14; 18149 unsigned int comb:17; 18150 unsigned int sig:1; 18151 } s; 18152 _Decimal128 d128; 18153 } x; 18154 18155 x.d128 = 1.0dl; 18156 if (x.s.sig == 0 && x.s.comb == 49400 && 18157 x.s.t0 == 0 && x.s.t1 == 0 && x.s.t2 == 0 && x.s.t3 == 10) 18158 return 80; /* little endian */ 18159 else if (x.s.sig == 0 && x.s.comb == 8 && 18160 x.s.t0 == 0 && x.s.t1 == 0 && x.s.t2 == 0 && x.s.t3 == 570933248) 18161 return 81; /* big endian */ 18162 else 18163 return 82; /* unknown encoding */ 18164 18165 ; 18166 return 0; 18167 } 18168 _ACEOF 18169 if ac_fn_c_try_run "$LINENO" 18170 then : 18171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: internal error" >&5 18172 printf "%s\n" "internal error" >&6; } 18173 else $as_nop 18174 d128_exit_status=$? 18175 case "$d128_exit_status" in 18176 80) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: little endian" >&5 18177 printf "%s\n" "little endian" >&6; } 18178 printf "%s\n" "#define HAVE_DECIMAL128_IEEE_LITTLE_ENDIAN 1" >>confdefs.h 18179 ;; 18180 81) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: big endian" >&5 18181 printf "%s\n" "big endian" >&6; } 18182 printf "%s\n" "#define HAVE_DECIMAL128_IEEE_BIG_ENDIAN 1" >>confdefs.h 18183 ;; 18184 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unavailable or unknown" >&5 18185 printf "%s\n" "unavailable or unknown" >&6; } ;; 18186 esac 18187 fi 18188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18189 conftest.$ac_objext conftest.beam conftest.$ac_ext 18190 fi 18191 18192 18193 fi 18194 # End of decimal float checks 18195 18196 if test "$enable_float128" != no; then 18197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Float128 with hex constants is supported" >&5 18198 printf %s "checking if _Float128 with hex constants is supported... " >&6; } 18199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18200 /* end confdefs.h. */ 18201 18202 int 18203 main (void) 18204 { 18205 18206 volatile _Float128 x = 0x1.fp+16383f128; 18207 return x == 0; 18208 18209 ; 18210 return 0; 18211 } 18212 _ACEOF 18213 if ac_fn_c_try_link "$LINENO" 18214 then : 18215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18216 printf "%s\n" "yes" >&6; } 18217 18218 printf "%s\n" "#define MPFR_WANT_FLOAT128 1" >>confdefs.h 18219 18220 else $as_nop 18221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18222 printf "%s\n" "no" >&6; } 18223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if __float128 can be used as a fallback" >&5 18224 printf %s "checking if __float128 can be used as a fallback... " >&6; } 18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18226 /* end confdefs.h. */ 18227 18228 #define _Float128 __float128 18229 18230 int 18231 main (void) 18232 { 18233 18234 volatile _Float128 x = 0x1.fp+16383q; 18235 return x == 0; 18236 18237 ; 18238 return 0; 18239 } 18240 _ACEOF 18241 if ac_fn_c_try_link "$LINENO" 18242 then : 18243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18244 printf "%s\n" "yes" >&6; } 18245 18246 printf "%s\n" "#define MPFR_WANT_FLOAT128 2" >>confdefs.h 18247 18248 18249 printf "%s\n" "#define _Float128 __float128" >>confdefs.h 18250 18251 else $as_nop 18252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18253 printf "%s\n" "no" >&6; } 18254 if test "$enable_float128" = yes; then 18255 as_fn_error $? "compiler doesn't know _Float128 or __float128 with hex constants. 18256 Please use another compiler or build MPFR without --enable-float128." "$LINENO" 5 18257 fi 18258 fi 18259 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18260 conftest$ac_exeext conftest.$ac_ext 18261 18262 fi 18263 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18264 conftest$ac_exeext conftest.$ac_ext 18265 fi 18266 18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Static Assertion support" >&5 18268 printf %s "checking for Static Assertion support... " >&6; } 18269 saved_CPPFLAGS="$CPPFLAGS" 18270 CPPFLAGS="$CPPFLAGS -I$srcdir/src" 18271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18272 /* end confdefs.h. */ 18273 18274 #define MPFR_USE_STATIC_ASSERT 1 18275 #include "mpfr-sassert.h" 18276 18277 /* Test if Static Assertions work */ 18278 18279 int main (void) { 18280 int x; 18281 (void) (x = 1); /* cast to void: avoid a warning, at least with GCC */ 18282 /* Test of the macro after a declaraction and a statement. */ 18283 MPFR_STAT_STATIC_ASSERT(sizeof(short) <= sizeof(int)); 18284 return 0; 18285 } 18286 18287 _ACEOF 18288 if ac_fn_c_try_compile "$LINENO" 18289 then : 18290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18291 printf "%s\n" "yes" >&6; } 18292 18293 printf "%s\n" "#define MPFR_USE_STATIC_ASSERT 1" >>confdefs.h 18294 18295 18296 else $as_nop 18297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18298 printf "%s\n" "no" >&6; } 18299 18300 fi 18301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18302 CPPFLAGS="$saved_CPPFLAGS" 18303 18304 if test "$enable_lto" = "yes" ; then 18305 18306 CFLAGS="$CFLAGS -flto" 18307 18308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation flag '-flto' is supported..." >&5 18309 printf %s "checking if Link Time Optimisation flag '-flto' is supported...... " >&6; } 18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18311 /* end confdefs.h. */ 18312 18313 int main(void) { return 0; } 18314 18315 _ACEOF 18316 if ac_fn_c_try_compile "$LINENO" 18317 then : 18318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18319 printf "%s\n" "yes" >&6; } 18320 18321 else $as_nop 18322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18323 printf "%s\n" "no" >&6; } 18324 as_fn_error $? "Link Time Optimisation flag '-flto' is not supported." "$LINENO" 5 18325 18326 fi 18327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18328 18329 mpfr_compile_and_link() 18330 { 18331 echo "int f(int); int f(int n) { return n; }" > conftest-f.c 18332 echo "int f(int); int main() { return f(0); }" > conftest-m.c 18333 echo "$CC $CFLAGS -c -o conftest-f.o conftest-f.c" >&2 18334 $CC $CFLAGS -c -o conftest-f.o conftest-f.c || return 1 18335 echo "$AR cru conftest-lib.a conftest-f.o" >&2 18336 $AR cru conftest-lib.a conftest-f.o || return 1 18337 echo "$RANLIB conftest-lib.a" >&2 18338 $RANLIB conftest-lib.a || return 1 18339 echo "$CC $CFLAGS conftest-m.c conftest-lib.a" >&2 18340 $CC $CFLAGS conftest-m.c conftest-lib.a || return 1 18341 return 0 18342 } 18343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation works with AR=$AR" >&5 18344 printf %s "checking if Link Time Optimisation works with AR=$AR... " >&6; } 18345 if mpfr_compile_and_link 2> conftest-log1.txt ; then 18346 cat conftest-log1.txt >&5 18347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18348 printf "%s\n" "yes" >&6; } 18349 else 18350 cat conftest-log1.txt >&5 18351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18352 printf "%s\n" "no" >&6; } 18353 AR=gcc-ar 18354 RANLIB=gcc-ranlib 18355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation works with AR=$AR" >&5 18356 printf %s "checking if Link Time Optimisation works with AR=$AR... " >&6; } 18357 if mpfr_compile_and_link 2> conftest-log2.txt; then 18358 cat conftest-log2.txt >&5 18359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18360 printf "%s\n" "yes" >&6; } 18361 else 18362 cat conftest-log2.txt >&5 18363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18364 printf "%s\n" "no" >&6; } 18365 as_fn_error $? "Link Time Optimisation is not supported (see config.log for details)." "$LINENO" 5 18366 fi 18367 fi 18368 rm -f conftest* 18369 18370 fi 18371 18372 if test "$enable_logging" = yes; then 18373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nested functions and 'cleanup' attribute" >&5 18374 printf %s "checking for nested functions and 'cleanup' attribute... " >&6; } 18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18376 /* end confdefs.h. */ 18377 18378 int main (void) { 18379 auto void f_cleanup (int *p); 18380 void f_cleanup (int *p) { int v = *p; (void) v; } 18381 int v __attribute__ ((cleanup (f_cleanup))); 18382 v = 0; 18383 return 0; 18384 } 18385 18386 _ACEOF 18387 if ac_fn_c_try_compile "$LINENO" 18388 then : 18389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18390 printf "%s\n" "yes" >&6; } 18391 else $as_nop 18392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18393 printf "%s\n" "no" >&6; } 18394 as_fn_error $? "logging support needs nested functions and the 'cleanup' attribute" "$LINENO" 5 18395 18396 fi 18397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18398 fi 18399 18400 if test -z "$enable_tests_timeout" && test -n "$dev_version"; then 18401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if timeout can be supported" >&5 18402 printf %s "checking if timeout can be supported... " >&6; } 18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18404 /* end confdefs.h. */ 18405 18406 #include <sys/resource.h> 18407 18408 int 18409 main (void) 18410 { 18411 18412 struct rlimit rlim[1]; 18413 if (getrlimit (RLIMIT_CPU, rlim)) 18414 return 1; 18415 rlim->rlim_cur = 1; 18416 if (setrlimit (RLIMIT_CPU, rlim)) 18417 return 1; 18418 18419 ; 18420 return 0; 18421 } 18422 _ACEOF 18423 if ac_fn_c_try_link "$LINENO" 18424 then : 18425 18426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18427 printf "%s\n" "yes" >&6; } 18428 enable_tests_timeout=yes 18429 18430 else $as_nop 18431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18432 printf "%s\n" "no" >&6; } 18433 fi 18434 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18435 conftest$ac_exeext conftest.$ac_ext 18436 fi 18437 if test "$enable_tests_timeout" = yes; then 18438 18439 printf "%s\n" "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h 18440 18441 fi 18442 18443 18444 18445 18446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5 18447 printf %s "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; } 18448 if test ${gmp_cv_c_attribute_mode+y} 18449 then : 18450 printf %s "(cached) " >&6 18451 else $as_nop 18452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18453 /* end confdefs.h. */ 18454 typedef int SItype __attribute__ ((mode (SI))); 18455 int 18456 main (void) 18457 { 18458 18459 ; 18460 return 0; 18461 } 18462 _ACEOF 18463 if ac_fn_c_try_compile "$LINENO" 18464 then : 18465 gmp_cv_c_attribute_mode=yes 18466 else $as_nop 18467 gmp_cv_c_attribute_mode=no 18468 fi 18469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18470 18471 fi 18472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5 18473 printf "%s\n" "$gmp_cv_c_attribute_mode" >&6; } 18474 if test $gmp_cv_c_attribute_mode = yes; then 18475 18476 printf "%s\n" "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h 18477 18478 fi 18479 18480 18481 18482 18483 if test -z "$mini_gmp_path" ; then 18484 18485 18486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5 18487 printf %s "checking for gmp.h... " >&6; } 18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18489 /* end confdefs.h. */ 18490 18491 #include "gmp.h" 18492 18493 _ACEOF 18494 if ac_fn_c_try_compile "$LINENO" 18495 then : 18496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18497 printf "%s\n" "yes" >&6; } 18498 else $as_nop 18499 18500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18501 printf "%s\n" "no" >&6; } 18502 as_fn_error $? "gmp.h can't be found, or is unusable." "$LINENO" 5 18503 18504 fi 18505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18506 18507 18508 18509 case $host in 18510 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 18511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5 18512 printf %s "checking for DLL/static GMP... " >&6; } 18513 if test "$enable_shared" = yes; then 18514 MPFR_LDFLAGS="$MPFR_LDFLAGS -no-undefined" 18515 LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -Wl,--output-def,.libs/libmpfr-6.dll.def" 18516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18517 /* end confdefs.h. */ 18518 18519 #include "gmp.h" 18520 #if !__GMP_LIBGMP_DLL 18521 # error "Dead man" 18522 error 18523 #endif 18524 18525 int 18526 main (void) 18527 { 18528 18529 ; 18530 return 0; 18531 } 18532 _ACEOF 18533 if ac_fn_c_try_compile "$LINENO" 18534 then : 18535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DLL" >&5 18536 printf "%s\n" "DLL" >&6; } 18537 else $as_nop 18538 18539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5 18540 printf "%s\n" "static" >&6; } 18541 as_fn_error $? "libgmp isn't provided as a DLL: use --enable-static --disable-shared" "$LINENO" 5 18542 fi 18543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18544 else 18545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18546 /* end confdefs.h. */ 18547 18548 #include "gmp.h" 18549 #if __GMP_LIBGMP_DLL 18550 # error "Dead man" 18551 error 18552 #endif 18553 18554 int 18555 main (void) 18556 { 18557 18558 ; 18559 return 0; 18560 } 18561 _ACEOF 18562 if ac_fn_c_try_compile "$LINENO" 18563 then : 18564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5 18565 printf "%s\n" "static" >&6; } 18566 else $as_nop 18567 18568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: DLL" >&5 18569 printf "%s\n" "DLL" >&6; } 18570 as_fn_error $? "libgmp is provided as a DLL: use --disable-static --enable-shared" "$LINENO" 5 18571 fi 18572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18573 fi 18574 ;; 18575 esac 18576 18577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5 18578 printf %s "checking for recent GMP... " >&6; } 18579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18580 /* end confdefs.h. */ 18581 18582 #include "gmp.h" 18583 #if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 500) 18584 # error "GMP 5.0.0 or newer is required" 18585 error 18586 #endif 18587 18588 _ACEOF 18589 if ac_fn_c_try_compile "$LINENO" 18590 then : 18591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18592 printf "%s\n" "yes" >&6; } 18593 else $as_nop 18594 18595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18596 printf "%s\n" "no" >&6; } 18597 as_fn_error $? "GMP 5.0.0 or newer is required" "$LINENO" 5 18598 18599 fi 18600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18601 18602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking usable gmp.h at link time" >&5 18603 printf %s "checking usable gmp.h at link time... " >&6; } 18604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18605 /* end confdefs.h. */ 18606 18607 #include "gmp.h" 18608 18609 int 18610 main (void) 18611 { 18612 18613 ; 18614 return 0; 18615 } 18616 _ACEOF 18617 if ac_fn_c_try_link "$LINENO" 18618 then : 18619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18620 printf "%s\n" "yes" >&6; } 18621 else $as_nop 18622 18623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18624 printf "%s\n" "no" >&6; } 18625 as_fn_error $? "there is an incompatibility between gmp.h and the compiler. 18626 See 'config.log' for details." "$LINENO" 5 18627 18628 fi 18629 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18630 conftest$ac_exeext conftest.$ac_ext 18631 18632 if test "$use_gmp_build" = yes ; then 18633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmp internal files" >&5 18634 printf %s "checking for gmp internal files... " >&6; } 18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18636 /* end confdefs.h. */ 18637 18638 #include "gmp.h" 18639 #include "gmp-impl.h" 18640 #include "longlong.h" 18641 18642 _ACEOF 18643 if ac_fn_c_try_compile "$LINENO" 18644 then : 18645 18646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18647 printf "%s\n" "yes" >&6; } 18648 18649 printf "%s\n" "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h 18650 18651 18652 else $as_nop 18653 18654 as_fn_error $? "header files gmp-impl.h and longlong.h not found" "$LINENO" 5 18655 18656 fi 18657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18658 fi 18659 18660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency" >&5 18661 printf %s "checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency... " >&6; } 18662 if test "$cross_compiling" = yes 18663 then : 18664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 18665 printf "%s\n" "cannot test" >&6; } 18666 else $as_nop 18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18668 /* end confdefs.h. */ 18669 18670 #include <stdio.h> 18671 #include <limits.h> 18672 #include "gmp.h" 18673 18674 int 18675 main (void) 18676 { 18677 18678 if (GMP_NUMB_BITS == sizeof(mp_limb_t) * CHAR_BIT) 18679 return 0; 18680 fprintf (stderr, "GMP_NUMB_BITS = %ld\n", (long) GMP_NUMB_BITS); 18681 fprintf (stderr, "sizeof(mp_limb_t) = %ld\n", (long) sizeof(mp_limb_t)); 18682 fprintf (stderr, "sizeof(mp_limb_t) * CHAR_BIT = %ld != GMP_NUMB_BITS\n", 18683 (long) (sizeof(mp_limb_t) * CHAR_BIT)); 18684 return 1; 18685 18686 ; 18687 return 0; 18688 } 18689 _ACEOF 18690 if ac_fn_c_try_run "$LINENO" 18691 then : 18692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18693 printf "%s\n" "yes" >&6; } 18694 else $as_nop 18695 18696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18697 printf "%s\n" "no" >&6; } 18698 as_fn_error $? "GMP_NUMB_BITS and sizeof(mp_limb_t) are not consistent. 18699 You probably need to change some of the GMP or MPFR compile options. 18700 See 'config.log' for details (search for GMP_NUMB_BITS)." "$LINENO" 5 18701 fi 18702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18703 conftest.$ac_objext conftest.beam conftest.$ac_ext 18704 fi 18705 18706 18707 18708 18709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long to fit in mp_limb_t" >&5 18710 printf %s "checking for long to fit in mp_limb_t... " >&6; } 18711 if test ${mpfr_cv_long_within_limb+y} 18712 then : 18713 printf %s "(cached) " >&6 18714 else $as_nop 18715 18716 saved_CPPFLAGS="$CPPFLAGS" 18717 CPPFLAGS="$CPPFLAGS -I$srcdir/src" 18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18719 /* end confdefs.h. */ 18720 18721 #include "gmp.h" 18722 /* Make sure that a static assertion is used (not MPFR_ASSERTN). */ 18723 #undef MPFR_USE_STATIC_ASSERT 18724 #define MPFR_USE_STATIC_ASSERT 1 18725 #include "mpfr-sassert.h" 18726 18727 int 18728 main (void) 18729 { 18730 18731 MPFR_STAT_STATIC_ASSERT ((mp_limb_t) -1 >= (unsigned long) -1); 18732 return 0; 18733 18734 ; 18735 return 0; 18736 } 18737 _ACEOF 18738 if ac_fn_c_try_link "$LINENO" 18739 then : 18740 mpfr_cv_long_within_limb="yes" 18741 else $as_nop 18742 mpfr_cv_long_within_limb="no" 18743 fi 18744 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18745 conftest$ac_exeext conftest.$ac_ext 18746 18747 fi 18748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_long_within_limb" >&5 18749 printf "%s\n" "$mpfr_cv_long_within_limb" >&6; } 18750 case $mpfr_cv_long_within_limb in 18751 yes*) 18752 18753 printf "%s\n" "#define MPFR_LONG_WITHIN_LIMB 1" >>confdefs.h 18754 ;; 18755 esac 18756 CPPFLAGS="$saved_CPPFLAGS" 18757 18758 18759 18760 if test "$ac_cv_type_intmax_t" = yes; then 18761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t to fit in mp_limb_t" >&5 18762 printf %s "checking for intmax_t to fit in mp_limb_t... " >&6; } 18763 if test ${mpfr_cv_intmax_within_limb+y} 18764 then : 18765 printf %s "(cached) " >&6 18766 else $as_nop 18767 18768 saved_CPPFLAGS="$CPPFLAGS" 18769 CPPFLAGS="$CPPFLAGS -I$srcdir/src -DMPFR_NEED_INTMAX_H" 18770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18771 /* end confdefs.h. */ 18772 18773 #include "gmp.h" 18774 /* Make sure that a static assertion is used (not MPFR_ASSERTN). */ 18775 #undef MPFR_USE_STATIC_ASSERT 18776 #define MPFR_USE_STATIC_ASSERT 1 18777 #include "mpfr-sassert.h" 18778 #include "mpfr-intmax.h" 18779 18780 int 18781 main (void) 18782 { 18783 18784 MPFR_STAT_STATIC_ASSERT ((mp_limb_t) -1 >= (uintmax_t) -1); 18785 return 0; 18786 18787 ; 18788 return 0; 18789 } 18790 _ACEOF 18791 if ac_fn_c_try_link "$LINENO" 18792 then : 18793 mpfr_cv_intmax_within_limb="yes" 18794 else $as_nop 18795 mpfr_cv_intmax_within_limb="no" 18796 fi 18797 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18798 conftest$ac_exeext conftest.$ac_ext 18799 18800 fi 18801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_intmax_within_limb" >&5 18802 printf "%s\n" "$mpfr_cv_intmax_within_limb" >&6; } 18803 case $mpfr_cv_intmax_within_limb in 18804 yes*) 18805 18806 printf "%s\n" "#define MPFR_INTMAX_WITHIN_LIMB 1" >>confdefs.h 18807 ;; 18808 esac 18809 CPPFLAGS="$saved_CPPFLAGS" 18810 fi 18811 18812 18813 LIBS="-lgmp $LIBS" 18814 18815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link with GMP" >&5 18816 printf %s "checking if we can link with GMP... " >&6; } 18817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18818 /* end confdefs.h. */ 18819 18820 #include "gmp.h" 18821 mpz_t m; 18822 18823 int 18824 main (void) 18825 { 18826 18827 mpz_init (m); 18828 18829 ; 18830 return 0; 18831 } 18832 _ACEOF 18833 if ac_fn_c_try_link "$LINENO" 18834 then : 18835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18836 printf "%s\n" "yes" >&6; } 18837 else $as_nop 18838 18839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 18840 printf "%s\n" "no" >&6; } 18841 as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared). 18842 Please read the INSTALL file -- see \"In case of problem\"." "$LINENO" 5 18843 18844 fi 18845 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18846 conftest$ac_exeext conftest.$ac_ext 18847 18848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5 18849 printf %s "checking if gmp.h version and libgmp version are the same... " >&6; } 18850 saved_LD_RUN_PATH="$LD_RUN_PATH" 18851 LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path" 18852 export LD_RUN_PATH 18853 if test "$cross_compiling" = yes 18854 then : 18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 18856 printf "%s\n" "cannot test" >&6; } 18857 18858 else $as_nop 18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18860 /* end confdefs.h. */ 18861 18862 #include <stdio.h> 18863 #include <string.h> 18864 #include "gmp.h" 18865 18866 int 18867 main (void) 18868 { 18869 18870 char buffer[100]; 18871 sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR, 18872 __GNU_MP_VERSION_PATCHLEVEL); 18873 printf ("(%s/%s) ", buffer, gmp_version); 18874 fflush (stdout); 18875 /* Also put information in config.log (stderr) */ 18876 fprintf (stderr, "gmp.h: %s / libgmp: %s\n", buffer, gmp_version); 18877 if (strcmp (buffer, gmp_version) == 0) 18878 return 0; 18879 if (__GNU_MP_VERSION_PATCHLEVEL != 0) 18880 return 1; 18881 sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR); 18882 return (strcmp (buffer, gmp_version) != 0) ? 1 : 0; 18883 18884 ; 18885 return 0; 18886 } 18887 _ACEOF 18888 if ac_fn_c_try_run "$LINENO" 18889 then : 18890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18891 printf "%s\n" "yes" >&6; } 18892 18893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP library vs header correctness" >&5 18894 printf %s "checking for GMP library vs header correctness... " >&6; } 18895 if test ${mpfr_cv_check_gmp+y} 18896 then : 18897 printf %s "(cached) " >&6 18898 else $as_nop 18899 18900 if test "$cross_compiling" = yes 18901 then : 18902 mpfr_cv_check_gmp="cannot test, assume yes" 18903 else $as_nop 18904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18905 /* end confdefs.h. */ 18906 18907 #include <stdio.h> 18908 #include <limits.h> 18909 #include "gmp.h" 18910 18911 int 18912 main (void) 18913 { 18914 18915 fprintf (stderr, "GMP_NAIL_BITS = %d\n", (int) GMP_NAIL_BITS); 18916 fprintf (stderr, "GMP_NUMB_BITS = %d\n", (int) GMP_NUMB_BITS); 18917 fprintf (stderr, "mp_bits_per_limb = %d\n", (int) mp_bits_per_limb); 18918 fprintf (stderr, "sizeof(mp_limb_t) = %d\n", (int) sizeof(mp_limb_t)); 18919 if (GMP_NAIL_BITS != 0) 18920 { 18921 fprintf (stderr, "GMP_NAIL_BITS != 0\n"); 18922 return 81; 18923 } 18924 if (GMP_NUMB_BITS != mp_bits_per_limb) 18925 { 18926 fprintf (stderr, "GMP_NUMB_BITS != mp_bits_per_limb\n"); 18927 return 82; 18928 } 18929 if (GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT) 18930 { 18931 fprintf (stderr, "GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT\n"); 18932 return 83; 18933 } 18934 return 0; 18935 18936 ; 18937 return 0; 18938 } 18939 _ACEOF 18940 if ac_fn_c_try_run "$LINENO" 18941 then : 18942 mpfr_cv_check_gmp="yes" 18943 else $as_nop 18944 mpfr_cv_check_gmp="no (exit status is $?)" 18945 fi 18946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18947 conftest.$ac_objext conftest.beam conftest.$ac_ext 18948 fi 18949 18950 18951 fi 18952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_check_gmp" >&5 18953 printf "%s\n" "$mpfr_cv_check_gmp" >&6; } 18954 case $mpfr_cv_check_gmp in 18955 no*) 18956 as_fn_error $? "bad GMP library or header - ABI problem? 18957 See 'config.log' for details." "$LINENO" 5 ;; 18958 esac 18959 18960 18961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for double-to-integer conversion bug" >&5 18962 printf %s "checking for double-to-integer conversion bug... " >&6; } 18963 if test ${mpfr_cv_dbl_int_bug+y} 18964 then : 18965 printf %s "(cached) " >&6 18966 else $as_nop 18967 18968 if test "$cross_compiling" = yes 18969 then : 18970 mpfr_cv_dbl_int_bug="cannot test, assume not present" 18971 else $as_nop 18972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18973 /* end confdefs.h. */ 18974 18975 #include <stdio.h> 18976 #include "gmp.h" 18977 18978 int 18979 main (void) 18980 { 18981 18982 double d; 18983 mp_limb_t u; 18984 int i; 18985 18986 d = 1.0; 18987 for (i = 0; i < GMP_NUMB_BITS - 1; i++) 18988 d = d + d; 18989 u = (mp_limb_t) d; 18990 for (; i > 0; i--) 18991 { 18992 if (u & 1) 18993 break; 18994 u = u >> 1; 18995 } 18996 if (i == 0 && u == 1UL) 18997 return 0; 18998 fprintf (stderr, "Failure: i = %d, (unsigned long) u = %lu\n", 18999 i, (unsigned long) u); 19000 return 1; 19001 19002 ; 19003 return 0; 19004 } 19005 _ACEOF 19006 if ac_fn_c_try_run "$LINENO" 19007 then : 19008 mpfr_cv_dbl_int_bug="no" 19009 else $as_nop 19010 mpfr_cv_dbl_int_bug="yes or failed to exec (exit status is $?)" 19011 fi 19012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19013 conftest.$ac_objext conftest.beam conftest.$ac_ext 19014 fi 19015 19016 19017 fi 19018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_dbl_int_bug" >&5 19019 printf "%s\n" "$mpfr_cv_dbl_int_bug" >&6; } 19020 case $mpfr_cv_dbl_int_bug in 19021 yes*) 19022 as_fn_error $? "double-to-integer conversion is incorrect. 19023 You need to use another compiler (or lower the optimization level)." "$LINENO" 5 ;; 19024 esac 19025 19026 19027 if test "$ac_cv_type_intmax_t" = yes; then 19028 19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5 19030 printf %s "checking if gmp_printf supports \"%jd\"... " >&6; } 19031 if test "$cross_compiling" = yes 19032 then : 19033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 19034 printf "%s\n" "cross-compiling" >&6; } 19035 19036 else $as_nop 19037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19038 /* end confdefs.h. */ 19039 19040 #include <stdio.h> 19041 #include <string.h> 19042 19043 #ifdef HAVE_INTTYPES_H 19044 # include <inttypes.h> 19045 #endif 19046 #ifdef HAVE_STDINT_H 19047 # include <stdint.h> 19048 #endif 19049 19050 #include "gmp.h" 19051 19052 int 19053 main (void) 19054 { 19055 19056 char s[256]; 19057 intmax_t a = 17; 19058 19059 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the 19060 precision, as -Werror=format yields an error, even though this 19061 flag is allowed by the ISO C standard (it is just ignored). 19062 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */ 19063 if (sprintf (s, "(%.0jd)(%d)", a, 42) != 8 || 19064 strcmp (s, "(17)(42)") != 0) 19065 return 1; 19066 19067 if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1 || 19068 strcmp (s, "(17)(42)") != 0) 19069 return 1; 19070 19071 return 0; 19072 19073 ; 19074 return 0; 19075 } 19076 _ACEOF 19077 if ac_fn_c_try_run "$LINENO" 19078 then : 19079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19080 printf "%s\n" "yes" >&6; } 19081 19082 else $as_nop 19083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19084 printf "%s\n" "no" >&6; } 19085 19086 printf "%s\n" "#define NPRINTF_J 1" >>confdefs.h 19087 19088 fi 19089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19090 conftest.$ac_objext conftest.beam conftest.$ac_ext 19091 fi 19092 19093 19094 fi 19095 19096 19097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5 19098 printf %s "checking if gmp_printf supports \"%hhd\"... " >&6; } 19099 if test "$cross_compiling" = yes 19100 then : 19101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 19102 printf "%s\n" "cross-compiling" >&6; } 19103 19104 else $as_nop 19105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19106 /* end confdefs.h. */ 19107 19108 #include <stdio.h> 19109 #include <string.h> 19110 19111 #include "gmp.h" 19112 19113 #include "gmp.h" 19114 19115 int 19116 main (void) 19117 { 19118 19119 char s[256]; 19120 char a = 17; 19121 19122 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the 19123 precision, as -Werror=format yields an error, even though this 19124 flag is allowed by the ISO C standard (it is just ignored). 19125 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */ 19126 if (sprintf (s, "(%.0hhd)(%d)", a, 42) != 8 || 19127 strcmp (s, "(17)(42)") != 0) 19128 return 1; 19129 19130 if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1 || 19131 strcmp (s, "(17)(42)") != 0) 19132 return 1; 19133 19134 return 0; 19135 19136 ; 19137 return 0; 19138 } 19139 _ACEOF 19140 if ac_fn_c_try_run "$LINENO" 19141 then : 19142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19143 printf "%s\n" "yes" >&6; } 19144 19145 else $as_nop 19146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19147 printf "%s\n" "no" >&6; } 19148 19149 printf "%s\n" "#define NPRINTF_HH 1" >>confdefs.h 19150 19151 fi 19152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19153 conftest.$ac_objext conftest.beam conftest.$ac_ext 19154 fi 19155 19156 19157 19158 19159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5 19160 printf %s "checking if gmp_printf supports \"%lld\"... " >&6; } 19161 if test "$cross_compiling" = yes 19162 then : 19163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 19164 printf "%s\n" "cross-compiling" >&6; } 19165 19166 else $as_nop 19167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19168 /* end confdefs.h. */ 19169 19170 #include <stdio.h> 19171 #include <string.h> 19172 19173 #include "gmp.h" 19174 19175 #include "gmp.h" 19176 19177 int 19178 main (void) 19179 { 19180 19181 char s[256]; 19182 long long int a = 17; 19183 19184 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the 19185 precision, as -Werror=format yields an error, even though this 19186 flag is allowed by the ISO C standard (it is just ignored). 19187 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */ 19188 if (sprintf (s, "(%.0lld)(%d)", a, 42) != 8 || 19189 strcmp (s, "(17)(42)") != 0) 19190 return 1; 19191 19192 if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1 || 19193 strcmp (s, "(17)(42)") != 0) 19194 return 1; 19195 19196 return 0; 19197 19198 ; 19199 return 0; 19200 } 19201 _ACEOF 19202 if ac_fn_c_try_run "$LINENO" 19203 then : 19204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19205 printf "%s\n" "yes" >&6; } 19206 19207 else $as_nop 19208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19209 printf "%s\n" "no" >&6; } 19210 19211 printf "%s\n" "#define NPRINTF_LL 1" >>confdefs.h 19212 19213 fi 19214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19215 conftest.$ac_objext conftest.beam conftest.$ac_ext 19216 fi 19217 19218 19219 19220 19221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5 19222 printf %s "checking if gmp_printf supports \"%Lf\"... " >&6; } 19223 if test "$cross_compiling" = yes 19224 then : 19225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 19226 printf "%s\n" "cross-compiling" >&6; } 19227 19228 printf "%s\n" "#define PRINTF_L 1" >>confdefs.h 19229 19230 else $as_nop 19231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19232 /* end confdefs.h. */ 19233 19234 #include <stdio.h> 19235 #include <string.h> 19236 19237 #include "gmp.h" 19238 19239 #include "gmp.h" 19240 19241 int 19242 main (void) 19243 { 19244 19245 char s[256]; 19246 long double a = 17; 19247 19248 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the 19249 precision, as -Werror=format yields an error, even though this 19250 flag is allowed by the ISO C standard (it is just ignored). 19251 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */ 19252 if (sprintf (s, "(%.0Lf)(%d)", a, 42) != 8 || 19253 strcmp (s, "(17)(42)") != 0) 19254 return 1; 19255 19256 if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1 || 19257 strcmp (s, "(17)(42)") != 0) 19258 return 1; 19259 19260 return 0; 19261 19262 ; 19263 return 0; 19264 } 19265 _ACEOF 19266 if ac_fn_c_try_run "$LINENO" 19267 then : 19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19269 printf "%s\n" "yes" >&6; } 19270 19271 printf "%s\n" "#define PRINTF_L 1" >>confdefs.h 19272 19273 else $as_nop 19274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19275 printf "%s\n" "no" >&6; } 19276 19277 printf "%s\n" "#define NPRINTF_L 1" >>confdefs.h 19278 19279 fi 19280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19281 conftest.$ac_objext conftest.beam conftest.$ac_ext 19282 fi 19283 19284 19285 19286 19287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5 19288 printf %s "checking if gmp_printf supports \"%td\"... " >&6; } 19289 if test "$cross_compiling" = yes 19290 then : 19291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 19292 printf "%s\n" "cross-compiling" >&6; } 19293 19294 printf "%s\n" "#define PRINTF_T 1" >>confdefs.h 19295 19296 else $as_nop 19297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19298 /* end confdefs.h. */ 19299 19300 #include <stdio.h> 19301 #include <string.h> 19302 19303 #if defined (__cplusplus) 19304 #include <cstddef> 19305 #else 19306 #include <stddef.h> 19307 #endif 19308 #include "gmp.h" 19309 19310 #include "gmp.h" 19311 19312 int 19313 main (void) 19314 { 19315 19316 char s[256]; 19317 ptrdiff_t a = 17; 19318 19319 /* Contrary to the gmp_sprintf test, do not use the 0 flag with the 19320 precision, as -Werror=format yields an error, even though this 19321 flag is allowed by the ISO C standard (it is just ignored). 19322 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70813 */ 19323 if (sprintf (s, "(%.0td)(%d)", a, 42) != 8 || 19324 strcmp (s, "(17)(42)") != 0) 19325 return 1; 19326 19327 if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1 || 19328 strcmp (s, "(17)(42)") != 0) 19329 return 1; 19330 19331 return 0; 19332 19333 ; 19334 return 0; 19335 } 19336 _ACEOF 19337 if ac_fn_c_try_run "$LINENO" 19338 then : 19339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19340 printf "%s\n" "yes" >&6; } 19341 19342 printf "%s\n" "#define PRINTF_T 1" >>confdefs.h 19343 19344 else $as_nop 19345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19346 printf "%s\n" "no" >&6; } 19347 19348 printf "%s\n" "#define NPRINTF_T 1" >>confdefs.h 19349 19350 fi 19351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19352 conftest.$ac_objext conftest.beam conftest.$ac_ext 19353 fi 19354 19355 19356 19357 19358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports the ' group flag" >&5 19359 printf %s "checking if gmp_printf supports the ' group flag... " >&6; } 19360 if test "$cross_compiling" = yes 19361 then : 19362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 19363 printf "%s\n" "cannot test" >&6; } 19364 else $as_nop 19365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19366 /* end confdefs.h. */ 19367 19368 #include <string.h> 19369 #include "gmp.h" 19370 19371 int 19372 main (void) 19373 { 19374 19375 char s[256]; 19376 19377 if (gmp_sprintf (s, "%'d", 17) == -1) return 1; 19378 return (strcmp (s, "17") != 0); 19379 19380 ; 19381 return 0; 19382 } 19383 _ACEOF 19384 if ac_fn_c_try_run "$LINENO" 19385 then : 19386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19387 printf "%s\n" "yes" >&6; } 19388 19389 printf "%s\n" "#define PRINTF_GROUPFLAG 1" >>confdefs.h 19390 19391 else $as_nop 19392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19393 printf "%s\n" "no" >&6; } 19394 fi 19395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19396 conftest.$ac_objext conftest.beam conftest.$ac_ext 19397 fi 19398 19399 19400 else $as_nop 19401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19402 printf "%s\n" "no" >&6; } 19403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5 19404 printf "%s\n" "$as_me: WARNING: ==========================================================" >&2;} 19405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&5 19406 printf "%s\n" "$as_me: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&2;} 19407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5 19408 printf "%s\n" "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;} 19409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above). A cause may be different" >&5 19410 printf "%s\n" "$as_me: WARNING: see the version numbers above). A cause may be different" >&2;} 19411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&5 19412 printf "%s\n" "$as_me: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&2;} 19413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: or --with-gmp-include with a system include directory" >&5 19414 printf "%s\n" "$as_me: WARNING: or --with-gmp-include with a system include directory" >&2;} 19415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: (such as /usr/include or /usr/local/include). Another" >&5 19416 printf "%s\n" "$as_me: WARNING: (such as /usr/include or /usr/local/include). Another" >&2;} 19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cause may be that LD_RUN_PATH is not honored (problem" >&5 19418 printf "%s\n" "$as_me: WARNING: cause may be that LD_RUN_PATH is not honored (problem" >&2;} 19419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: seen under OpenBSD 6.6 and with the GNU gold linker)." >&5 19420 printf "%s\n" "$as_me: WARNING: seen under OpenBSD 6.6 and with the GNU gold linker)." >&2;} 19421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: However, since we can't use 'libtool' inside the configure," >&5 19422 printf "%s\n" "$as_me: WARNING: However, since we can't use 'libtool' inside the configure," >&2;} 19423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: we can't be sure. See 'config.log' for details." >&5 19424 printf "%s\n" "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;} 19425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CC=\"$CC\"" >&5 19426 printf "%s\n" "$as_me: WARNING: CC=\"$CC\"" >&2;} 19427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CFLAGS=\"$CFLAGS\"" >&5 19428 printf "%s\n" "$as_me: WARNING: CFLAGS=\"$CFLAGS\"" >&2;} 19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&5 19430 printf "%s\n" "$as_me: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&2;} 19431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: LDFLAGS=\"$LDFLAGS\"" >&5 19432 printf "%s\n" "$as_me: WARNING: LDFLAGS=\"$LDFLAGS\"" >&2;} 19433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: LIBS=\"$LIBS\"" >&5 19434 printf "%s\n" "$as_me: WARNING: LIBS=\"$LIBS\"" >&2;} 19435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&5 19436 printf "%s\n" "$as_me: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&2;} 19437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5 19438 printf "%s\n" "$as_me: WARNING: ==========================================================" >&2;} 19439 19440 fi 19441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19442 conftest.$ac_objext conftest.beam conftest.$ac_ext 19443 fi 19444 19445 LD_RUN_PATH="$saved_LD_RUN_PATH" 19446 19447 ac_fn_c_check_func "$LINENO" "__gmpn_sbpi1_divappr_q" "ac_cv_func___gmpn_sbpi1_divappr_q" 19448 if test "x$ac_cv_func___gmpn_sbpi1_divappr_q" = xyes 19449 then : 19450 printf "%s\n" "#define HAVE___GMPN_SBPI1_DIVAPPR_Q 1" >>confdefs.h 19451 19452 fi 19453 19454 ac_fn_c_check_func "$LINENO" "__gmpn_invert_limb" "ac_cv_func___gmpn_invert_limb" 19455 if test "x$ac_cv_func___gmpn_invert_limb" = xyes 19456 then : 19457 printf "%s\n" "#define HAVE___GMPN_INVERT_LIMB 1" >>confdefs.h 19458 19459 fi 19460 19461 ac_fn_c_check_func "$LINENO" "__gmpn_rsblsh1_n" "ac_cv_func___gmpn_rsblsh1_n" 19462 if test "x$ac_cv_func___gmpn_rsblsh1_n" = xyes 19463 then : 19464 printf "%s\n" "#define HAVE___GMPN_RSBLSH1_N 1" >>confdefs.h 19465 19466 fi 19467 19468 19469 else 19470 19471 19472 mpfr_build_src="${ac_top_build_prefix}src" 19473 mkdir -p "$mpfr_build_src" 19474 rm -f -- "$mpfr_build_src"/mini-gmp.* 19475 for i in c h 19476 do 19477 ln -s -- "$mini_gmp_path/mini-gmp.$i" "$mpfr_build_src/mini-gmp.$i" 19478 done 19479 19480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GMP_NUMB_BITS" >&5 19481 printf %s "checking for GMP_NUMB_BITS... " >&6; } 19482 how="from mini-gmp.h" 19483 saved_CPPFLAGS="$CPPFLAGS" 19484 CPPFLAGS="$CPPFLAGS -I$mpfr_build_src" 19485 if ac_fn_c_compute_int "$LINENO" "(GMP_NUMB_BITS)" "mini_gmp_numb_bits" "#include <mini-gmp.h>" 19486 then : 19487 19488 else $as_nop 19489 how="not in mini-gmp.h; guessed" 19490 if ac_fn_c_compute_int "$LINENO" "(sizeof(mp_limb_t) * CHAR_BIT)" "mini_gmp_numb_bits" "#include <limits.h> 19491 #include <mini-gmp.h>" 19492 then : 19493 19494 else $as_nop 19495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19496 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19497 as_fn_error $? "cannot define GMP_NUMB_BITS 19498 See \`config.log' for more details" "$LINENO" 5; } 19499 fi 19500 19501 19502 printf "%s\n" "#define GMP_NUMB_BITS $mini_gmp_numb_bits" >>confdefs.h 19503 19504 19505 fi 19506 19507 CPPFLAGS="$saved_CPPFLAGS" 19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mini_gmp_numb_bits bits ($how)" >&5 19509 printf "%s\n" "$mini_gmp_numb_bits bits ($how)" >&6; } 19510 19511 fi 19512 19513 19514 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 19515 if test "x$ac_cv_func_getrusage" = xyes 19516 then : 19517 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h 19518 19519 fi 19520 19521 19522 if test -f confdefs.h; then 19523 for i in PACKAGE_ HAVE_STRING HAVE_DLFCN_H HAVE_MEM STDC_HEADERS \ 19524 HAVE_STDLIB_H HAVE_UNISTD_H HAVE_STDC_HEADERS \ 19525 HAVE_SYS_STAT_H HAVE_SYS_TYPES_H PROTOTYPES __PROTOTYPES 19526 do 19527 $SED "/#define $i/d" < confdefs.h > confdefs.tmp 19528 mv confdefs.tmp confdefs.h 19529 done 19530 fi 19531 19532 if test -n "$dev_version"; then 19533 DATAFILES=`echo \`$SED -n \ 19534 's/^ *data_check *("\(data\/[^"]*\)".*/tests\/\1/p' \ 19535 $srcdir/tests/*.c\`` 19536 fi 19537 19538 ac_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" 19539 19540 cat >confcache <<\_ACEOF 19541 # This file is a shell script that caches the results of configure 19542 # tests run on this system so they can be shared between configure 19543 # scripts and configure runs, see configure's option --config-cache. 19544 # It is not useful on other systems. If it contains results you don't 19545 # want to keep, you may remove or edit it. 19546 # 19547 # config.status only pays attention to the cache file if you give it 19548 # the --recheck option to rerun configure. 19549 # 19550 # `ac_cv_env_foo' variables (set or unset) will be overridden when 19551 # loading this file, other *unset* `ac_cv_foo' will be assigned the 19552 # following values. 19553 19554 _ACEOF 19555 19556 # The following way of writing the cache mishandles newlines in values, 19557 # but we know of no workaround that is simple, portable, and efficient. 19558 # So, we kill variables containing newlines. 19559 # Ultrix sh set writes to stderr and can't be redirected directly, 19560 # and sets the high bit in the cache file unless we assign to the vars. 19561 ( 19562 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19563 eval ac_val=\$$ac_var 19564 case $ac_val in #( 19565 *${as_nl}*) 19566 case $ac_var in #( 19567 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19568 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19569 esac 19570 case $ac_var in #( 19571 _ | IFS | as_nl) ;; #( 19572 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19573 *) { eval $ac_var=; unset $ac_var;} ;; 19574 esac ;; 19575 esac 19576 done 19577 19578 (set) 2>&1 | 19579 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19580 *${as_nl}ac_space=\ *) 19581 # `set' does not quote correctly, so add quotes: double-quote 19582 # substitution turns \\\\ into \\, and sed turns \\ into \. 19583 sed -n \ 19584 "s/'/'\\\\''/g; 19585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19586 ;; #( 19587 *) 19588 # `set' quotes correctly as required by POSIX, so do not add quotes. 19589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19590 ;; 19591 esac | 19592 sort 19593 ) | 19594 sed ' 19595 /^ac_cv_env_/b end 19596 t clear 19597 :clear 19598 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19599 t end 19600 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19601 :end' >>confcache 19602 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19603 if test -w "$cache_file"; then 19604 if test "x$cache_file" != "x/dev/null"; then 19605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19606 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19607 if test ! -f "$cache_file" || test -h "$cache_file"; then 19608 cat confcache >"$cache_file" 19609 else 19610 case $cache_file in #( 19611 */* | ?:*) 19612 mv -f confcache "$cache_file"$$ && 19613 mv -f "$cache_file"$$ "$cache_file" ;; #( 19614 *) 19615 mv -f confcache "$cache_file" ;; 19616 esac 19617 fi 19618 fi 19619 else 19620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19621 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19622 fi 19623 fi 19624 rm -f confcache 19625 19626 test "x$prefix" = xNONE && prefix=$ac_default_prefix 19627 # Let make expand exec_prefix. 19628 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19629 19630 # Transform confdefs.h into DEFS. 19631 # Protect against shell expansion while executing Makefile rules. 19632 # Protect against Makefile macro expansion. 19633 # 19634 # If the first sed substitution is executed (which looks for macros that 19635 # take arguments), then branch to the quote section. Otherwise, 19636 # look for a macro that doesn't take arguments. 19637 ac_script=' 19638 :mline 19639 /\\$/{ 19640 N 19641 s,\\\n,, 19642 b mline 19643 } 19644 t clear 19645 :clear 19646 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 19647 t quote 19648 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 19649 t quote 19650 b any 19651 :quote 19652 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 19653 s/\[/\\&/g 19654 s/\]/\\&/g 19655 s/\$/$$/g 19656 H 19657 :any 19658 ${ 19659 g 19660 s/^\n// 19661 s/\n/ /g 19662 p 19663 } 19664 ' 19665 DEFS=`sed -n "$ac_script" confdefs.h` 19666 19667 19668 ac_libobjs= 19669 ac_ltlibobjs= 19670 U= 19671 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19672 # 1. Remove the extension, and $U if already installed. 19673 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19674 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19675 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19676 # will be set to the directory where LIBOBJS objects are built. 19677 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19678 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19679 done 19680 LIBOBJS=$ac_libobjs 19681 19682 LTLIBOBJS=$ac_ltlibobjs 19683 19684 19685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19686 printf %s "checking that generated files are newer than configure... " >&6; } 19687 if test -n "$am_sleep_pid"; then 19688 # Hide warnings about reused PIDs. 19689 wait $am_sleep_pid 2>/dev/null 19690 fi 19691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19692 printf "%s\n" "done" >&6; } 19693 if test -n "$EXEEXT"; then 19694 am__EXEEXT_TRUE= 19695 am__EXEEXT_FALSE='#' 19696 else 19697 am__EXEEXT_TRUE='#' 19698 am__EXEEXT_FALSE= 19699 fi 19700 19701 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19702 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19703 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19704 fi 19705 if test -z "${MINI_GMP_TRUE}" && test -z "${MINI_GMP_FALSE}"; then 19706 as_fn_error $? "conditional \"MINI_GMP\" was never defined. 19707 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19708 fi 19709 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19710 as_fn_error $? "conditional \"AMDEP\" was never defined. 19711 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19712 fi 19713 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19714 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19715 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19716 fi 19717 19718 : "${CONFIG_STATUS=./config.status}" 19719 ac_write_fail=0 19720 ac_clean_files_save=$ac_clean_files 19721 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19723 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19724 as_write_fail=0 19725 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19726 #! $SHELL 19727 # Generated by $as_me. 19728 # Run this file to recreate the current configuration. 19729 # Compiler output produced by configure, useful for debugging 19730 # configure, is in config.log if it exists. 19731 19732 debug=false 19733 ac_cs_recheck=false 19734 ac_cs_silent=false 19735 19736 SHELL=\${CONFIG_SHELL-$SHELL} 19737 export SHELL 19738 _ASEOF 19739 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19740 ## -------------------- ## 19741 ## M4sh Initialization. ## 19742 ## -------------------- ## 19743 19744 # Be more Bourne compatible 19745 DUALCASE=1; export DUALCASE # for MKS sh 19746 as_nop=: 19747 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19748 then : 19749 emulate sh 19750 NULLCMD=: 19751 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19752 # is contrary to our usage. Disable this feature. 19753 alias -g '${1+"$@"}'='"$@"' 19754 setopt NO_GLOB_SUBST 19755 else $as_nop 19756 case `(set -o) 2>/dev/null` in #( 19757 *posix*) : 19758 set -o posix ;; #( 19759 *) : 19760 ;; 19761 esac 19762 fi 19763 19764 19765 19766 # Reset variables that may have inherited troublesome values from 19767 # the environment. 19768 19769 # IFS needs to be set, to space, tab, and newline, in precisely that order. 19770 # (If _AS_PATH_WALK were called with IFS unset, it would have the 19771 # side effect of setting IFS to empty, thus disabling word splitting.) 19772 # Quoting is to prevent editors from complaining about space-tab. 19773 as_nl=' 19774 ' 19775 export as_nl 19776 IFS=" "" $as_nl" 19777 19778 PS1='$ ' 19779 PS2='> ' 19780 PS4='+ ' 19781 19782 # Ensure predictable behavior from utilities with locale-dependent output. 19783 LC_ALL=C 19784 export LC_ALL 19785 LANGUAGE=C 19786 export LANGUAGE 19787 19788 # We cannot yet rely on "unset" to work, but we need these variables 19789 # to be unset--not just set to an empty or harmless value--now, to 19790 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19791 # also avoids known problems related to "unset" and subshell syntax 19792 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19793 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19794 do eval test \${$as_var+y} \ 19795 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19796 done 19797 19798 # Ensure that fds 0, 1, and 2 are open. 19799 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19800 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19801 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19802 19803 # The user is always right. 19804 if ${PATH_SEPARATOR+false} :; then 19805 PATH_SEPARATOR=: 19806 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19807 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19808 PATH_SEPARATOR=';' 19809 } 19810 fi 19811 19812 19813 # Find who we are. Look in the path if we contain no directory separator. 19814 as_myself= 19815 case $0 in #(( 19816 *[\\/]* ) as_myself=$0 ;; 19817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19818 for as_dir in $PATH 19819 do 19820 IFS=$as_save_IFS 19821 case $as_dir in #((( 19822 '') as_dir=./ ;; 19823 */) ;; 19824 *) as_dir=$as_dir/ ;; 19825 esac 19826 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19827 done 19828 IFS=$as_save_IFS 19829 19830 ;; 19831 esac 19832 # We did not find ourselves, most probably we were run as `sh COMMAND' 19833 # in which case we are not to be found in the path. 19834 if test "x$as_myself" = x; then 19835 as_myself=$0 19836 fi 19837 if test ! -f "$as_myself"; then 19838 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19839 exit 1 19840 fi 19841 19842 19843 19844 # as_fn_error STATUS ERROR [LINENO LOG_FD] 19845 # ---------------------------------------- 19846 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19847 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19848 # script with STATUS, using 1 if that was 0. 19849 as_fn_error () 19850 { 19851 as_status=$1; test $as_status -eq 0 && as_status=1 19852 if test "$4"; then 19853 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19855 fi 19856 printf "%s\n" "$as_me: error: $2" >&2 19857 as_fn_exit $as_status 19858 } # as_fn_error 19859 19860 19861 19862 # as_fn_set_status STATUS 19863 # ----------------------- 19864 # Set $? to STATUS, without forking. 19865 as_fn_set_status () 19866 { 19867 return $1 19868 } # as_fn_set_status 19869 19870 # as_fn_exit STATUS 19871 # ----------------- 19872 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19873 as_fn_exit () 19874 { 19875 set +e 19876 as_fn_set_status $1 19877 exit $1 19878 } # as_fn_exit 19879 19880 # as_fn_unset VAR 19881 # --------------- 19882 # Portably unset VAR. 19883 as_fn_unset () 19884 { 19885 { eval $1=; unset $1;} 19886 } 19887 as_unset=as_fn_unset 19888 19889 # as_fn_append VAR VALUE 19890 # ---------------------- 19891 # Append the text in VALUE to the end of the definition contained in VAR. Take 19892 # advantage of any shell optimizations that allow amortized linear growth over 19893 # repeated appends, instead of the typical quadratic growth present in naive 19894 # implementations. 19895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19896 then : 19897 eval 'as_fn_append () 19898 { 19899 eval $1+=\$2 19900 }' 19901 else $as_nop 19902 as_fn_append () 19903 { 19904 eval $1=\$$1\$2 19905 } 19906 fi # as_fn_append 19907 19908 # as_fn_arith ARG... 19909 # ------------------ 19910 # Perform arithmetic evaluation on the ARGs, and store the result in the 19911 # global $as_val. Take advantage of shells that can avoid forks. The arguments 19912 # must be portable across $(()) and expr. 19913 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19914 then : 19915 eval 'as_fn_arith () 19916 { 19917 as_val=$(( $* )) 19918 }' 19919 else $as_nop 19920 as_fn_arith () 19921 { 19922 as_val=`expr "$@" || test $? -eq 1` 19923 } 19924 fi # as_fn_arith 19925 19926 19927 if expr a : '\(a\)' >/dev/null 2>&1 && 19928 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19929 as_expr=expr 19930 else 19931 as_expr=false 19932 fi 19933 19934 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19935 as_basename=basename 19936 else 19937 as_basename=false 19938 fi 19939 19940 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19941 as_dirname=dirname 19942 else 19943 as_dirname=false 19944 fi 19945 19946 as_me=`$as_basename -- "$0" || 19947 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19948 X"$0" : 'X\(//\)$' \| \ 19949 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19950 printf "%s\n" X/"$0" | 19951 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19952 s//\1/ 19953 q 19954 } 19955 /^X\/\(\/\/\)$/{ 19956 s//\1/ 19957 q 19958 } 19959 /^X\/\(\/\).*/{ 19960 s//\1/ 19961 q 19962 } 19963 s/.*/./; q'` 19964 19965 # Avoid depending upon Character Ranges. 19966 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19969 as_cr_digits='0123456789' 19970 as_cr_alnum=$as_cr_Letters$as_cr_digits 19971 19972 19973 # Determine whether it's possible to make 'echo' print without a newline. 19974 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19975 # for compatibility with existing Makefiles. 19976 ECHO_C= ECHO_N= ECHO_T= 19977 case `echo -n x` in #((((( 19978 -n*) 19979 case `echo 'xy\c'` in 19980 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19981 xy) ECHO_C='\c';; 19982 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19983 ECHO_T=' ';; 19984 esac;; 19985 *) 19986 ECHO_N='-n';; 19987 esac 19988 19989 # For backward compatibility with old third-party macros, we provide 19990 # the shell variables $as_echo and $as_echo_n. New code should use 19991 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19992 as_echo='printf %s\n' 19993 as_echo_n='printf %s' 19994 19995 rm -f conf$$ conf$$.exe conf$$.file 19996 if test -d conf$$.dir; then 19997 rm -f conf$$.dir/conf$$.file 19998 else 19999 rm -f conf$$.dir 20000 mkdir conf$$.dir 2>/dev/null 20001 fi 20002 if (echo >conf$$.file) 2>/dev/null; then 20003 if ln -s conf$$.file conf$$ 2>/dev/null; then 20004 as_ln_s='ln -s' 20005 # ... but there are two gotchas: 20006 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20007 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20008 # In both cases, we have to default to `cp -pR'. 20009 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20010 as_ln_s='cp -pR' 20011 elif ln conf$$.file conf$$ 2>/dev/null; then 20012 as_ln_s=ln 20013 else 20014 as_ln_s='cp -pR' 20015 fi 20016 else 20017 as_ln_s='cp -pR' 20018 fi 20019 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20020 rmdir conf$$.dir 2>/dev/null 20021 20022 20023 # as_fn_mkdir_p 20024 # ------------- 20025 # Create "$as_dir" as a directory, including parents if necessary. 20026 as_fn_mkdir_p () 20027 { 20028 20029 case $as_dir in #( 20030 -*) as_dir=./$as_dir;; 20031 esac 20032 test -d "$as_dir" || eval $as_mkdir_p || { 20033 as_dirs= 20034 while :; do 20035 case $as_dir in #( 20036 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20037 *) as_qdir=$as_dir;; 20038 esac 20039 as_dirs="'$as_qdir' $as_dirs" 20040 as_dir=`$as_dirname -- "$as_dir" || 20041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20042 X"$as_dir" : 'X\(//\)[^/]' \| \ 20043 X"$as_dir" : 'X\(//\)$' \| \ 20044 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20045 printf "%s\n" X"$as_dir" | 20046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20047 s//\1/ 20048 q 20049 } 20050 /^X\(\/\/\)[^/].*/{ 20051 s//\1/ 20052 q 20053 } 20054 /^X\(\/\/\)$/{ 20055 s//\1/ 20056 q 20057 } 20058 /^X\(\/\).*/{ 20059 s//\1/ 20060 q 20061 } 20062 s/.*/./; q'` 20063 test -d "$as_dir" && break 20064 done 20065 test -z "$as_dirs" || eval "mkdir $as_dirs" 20066 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20067 20068 20069 } # as_fn_mkdir_p 20070 if mkdir -p . 2>/dev/null; then 20071 as_mkdir_p='mkdir -p "$as_dir"' 20072 else 20073 test -d ./-p && rmdir ./-p 20074 as_mkdir_p=false 20075 fi 20076 20077 20078 # as_fn_executable_p FILE 20079 # ----------------------- 20080 # Test if FILE is an executable regular file. 20081 as_fn_executable_p () 20082 { 20083 test -f "$1" && test -x "$1" 20084 } # as_fn_executable_p 20085 as_test_x='test -x' 20086 as_executable_p=as_fn_executable_p 20087 20088 # Sed expression to map a string onto a valid CPP name. 20089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20090 20091 # Sed expression to map a string onto a valid variable name. 20092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20093 20094 20095 exec 6>&1 20096 ## ----------------------------------- ## 20097 ## Main body of $CONFIG_STATUS script. ## 20098 ## ----------------------------------- ## 20099 _ASEOF 20100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20101 20102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20103 # Save the log message, to keep $0 and so on meaningful, and to 20104 # report actual input values of CONFIG_FILES etc. instead of their 20105 # values after options handling. 20106 ac_log=" 20107 This file was extended by MPFR $as_me 4.2.1, which was 20108 generated by GNU Autoconf 2.71. Invocation command line was 20109 20110 CONFIG_FILES = $CONFIG_FILES 20111 CONFIG_HEADERS = $CONFIG_HEADERS 20112 CONFIG_LINKS = $CONFIG_LINKS 20113 CONFIG_COMMANDS = $CONFIG_COMMANDS 20114 $ $0 $@ 20115 20116 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20117 " 20118 20119 _ACEOF 20120 20121 case $ac_config_files in *" 20122 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20123 esac 20124 20125 20126 20127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20128 # Files that config.status was made for. 20129 config_files="$ac_config_files" 20130 config_commands="$ac_config_commands" 20131 20132 _ACEOF 20133 20134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20135 ac_cs_usage="\ 20136 \`$as_me' instantiates files and other configuration actions 20137 from templates according to the current configuration. Unless the files 20138 and actions are specified as TAGs, all are instantiated by default. 20139 20140 Usage: $0 [OPTION]... [TAG]... 20141 20142 -h, --help print this help, then exit 20143 -V, --version print version number and configuration settings, then exit 20144 --config print configuration, then exit 20145 -q, --quiet, --silent 20146 do not print progress messages 20147 -d, --debug don't remove temporary files 20148 --recheck update $as_me by reconfiguring in the same conditions 20149 --file=FILE[:TEMPLATE] 20150 instantiate the configuration file FILE 20151 20152 Configuration files: 20153 $config_files 20154 20155 Configuration commands: 20156 $config_commands 20157 20158 Report bugs to the package provider." 20159 20160 _ACEOF 20161 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20162 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20164 ac_cs_config='$ac_cs_config_escaped' 20165 ac_cs_version="\\ 20166 MPFR config.status 4.2.1 20167 configured by $0, generated by GNU Autoconf 2.71, 20168 with options \\"\$ac_cs_config\\" 20169 20170 Copyright (C) 2021 Free Software Foundation, Inc. 20171 This config.status script is free software; the Free Software Foundation 20172 gives unlimited permission to copy, distribute and modify it." 20173 20174 ac_pwd='$ac_pwd' 20175 srcdir='$srcdir' 20176 INSTALL='$INSTALL' 20177 MKDIR_P='$MKDIR_P' 20178 AWK='$AWK' 20179 test -n "\$AWK" || AWK=awk 20180 _ACEOF 20181 20182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20183 # The default lists apply if the user does not specify any file. 20184 ac_need_defaults=: 20185 while test $# != 0 20186 do 20187 case $1 in 20188 --*=?*) 20189 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20190 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20191 ac_shift=: 20192 ;; 20193 --*=) 20194 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20195 ac_optarg= 20196 ac_shift=: 20197 ;; 20198 *) 20199 ac_option=$1 20200 ac_optarg=$2 20201 ac_shift=shift 20202 ;; 20203 esac 20204 20205 case $ac_option in 20206 # Handling of the options. 20207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20208 ac_cs_recheck=: ;; 20209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20210 printf "%s\n" "$ac_cs_version"; exit ;; 20211 --config | --confi | --conf | --con | --co | --c ) 20212 printf "%s\n" "$ac_cs_config"; exit ;; 20213 --debug | --debu | --deb | --de | --d | -d ) 20214 debug=: ;; 20215 --file | --fil | --fi | --f ) 20216 $ac_shift 20217 case $ac_optarg in 20218 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20219 '') as_fn_error $? "missing file argument" ;; 20220 esac 20221 as_fn_append CONFIG_FILES " '$ac_optarg'" 20222 ac_need_defaults=false;; 20223 --he | --h | --help | --hel | -h ) 20224 printf "%s\n" "$ac_cs_usage"; exit ;; 20225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20226 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20227 ac_cs_silent=: ;; 20228 20229 # This is an error. 20230 -*) as_fn_error $? "unrecognized option: \`$1' 20231 Try \`$0 --help' for more information." ;; 20232 20233 *) as_fn_append ac_config_targets " $1" 20234 ac_need_defaults=false ;; 20235 20236 esac 20237 shift 20238 done 20239 20240 ac_configure_extra_args= 20241 20242 if $ac_cs_silent; then 20243 exec 6>/dev/null 20244 ac_configure_extra_args="$ac_configure_extra_args --silent" 20245 fi 20246 20247 _ACEOF 20248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20249 if \$ac_cs_recheck; then 20250 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20251 shift 20252 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20253 CONFIG_SHELL='$SHELL' 20254 export CONFIG_SHELL 20255 exec "\$@" 20256 fi 20257 20258 _ACEOF 20259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20260 exec 5>>config.log 20261 { 20262 echo 20263 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20264 ## Running $as_me. ## 20265 _ASBOX 20266 printf "%s\n" "$ac_log" 20267 } >&5 20268 20269 _ACEOF 20270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20271 # 20272 # INIT-COMMANDS 20273 # 20274 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20275 20276 20277 # The HP-UX ksh and POSIX shell print the target directory to stdout 20278 # if CDPATH is set. 20279 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20280 20281 sed_quote_subst='$sed_quote_subst' 20282 double_quote_subst='$double_quote_subst' 20283 delay_variable_subst='$delay_variable_subst' 20284 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20285 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20286 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 20287 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20288 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20289 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20290 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20291 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20292 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20293 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20294 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20295 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20296 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20297 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20298 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20299 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20300 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20301 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20302 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20303 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20304 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20305 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20306 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20307 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20308 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20309 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20310 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20311 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20312 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20313 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20314 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20315 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20316 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20317 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20318 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20319 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20320 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20321 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20322 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20323 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20324 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20325 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20326 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20327 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20328 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20329 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20330 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20331 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20332 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20333 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20334 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20335 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20336 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20337 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20338 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20339 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20340 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20341 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20342 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20343 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20344 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20345 lt_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"`' 20346 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20347 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20348 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20349 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20350 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20351 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20352 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20353 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20354 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20355 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20356 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20357 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20358 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20359 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20360 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20361 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20362 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20363 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20364 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20365 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20366 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20367 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20368 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20369 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20370 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20371 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20372 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20373 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20374 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20375 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20376 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20377 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20378 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20379 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20380 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20381 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20382 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20383 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20384 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20385 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20386 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20387 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20388 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20389 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20390 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20391 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20392 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20393 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20394 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20395 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20396 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20397 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20398 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20399 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20400 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20401 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20402 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20403 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20404 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20405 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20406 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20407 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20408 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20409 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20410 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20411 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20412 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20413 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20414 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20415 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20416 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20417 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20418 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20419 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20420 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20421 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20422 20423 LTCC='$LTCC' 20424 LTCFLAGS='$LTCFLAGS' 20425 compiler='$compiler_DEFAULT' 20426 20427 # A function that is used when there is no print builtin or printf. 20428 func_fallback_echo () 20429 { 20430 eval 'cat <<_LTECHO_EOF 20431 \$1 20432 _LTECHO_EOF' 20433 } 20434 20435 # Quote evaled strings. 20436 for var in AS \ 20437 DLLTOOL \ 20438 OBJDUMP \ 20439 SHELL \ 20440 ECHO \ 20441 PATH_SEPARATOR \ 20442 SED \ 20443 GREP \ 20444 EGREP \ 20445 FGREP \ 20446 LD \ 20447 NM \ 20448 LN_S \ 20449 lt_SP2NL \ 20450 lt_NL2SP \ 20451 reload_flag \ 20452 FILECMD \ 20453 deplibs_check_method \ 20454 file_magic_cmd \ 20455 file_magic_glob \ 20456 want_nocaseglob \ 20457 sharedlib_from_linklib_cmd \ 20458 AR \ 20459 archiver_list_spec \ 20460 STRIP \ 20461 RANLIB \ 20462 CC \ 20463 CFLAGS \ 20464 compiler \ 20465 lt_cv_sys_global_symbol_pipe \ 20466 lt_cv_sys_global_symbol_to_cdecl \ 20467 lt_cv_sys_global_symbol_to_import \ 20468 lt_cv_sys_global_symbol_to_c_name_address \ 20469 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20470 lt_cv_nm_interface \ 20471 nm_file_list_spec \ 20472 lt_cv_truncate_bin \ 20473 lt_prog_compiler_no_builtin_flag \ 20474 lt_prog_compiler_pic \ 20475 lt_prog_compiler_wl \ 20476 lt_prog_compiler_static \ 20477 lt_cv_prog_compiler_c_o \ 20478 need_locks \ 20479 MANIFEST_TOOL \ 20480 DSYMUTIL \ 20481 NMEDIT \ 20482 LIPO \ 20483 OTOOL \ 20484 OTOOL64 \ 20485 shrext_cmds \ 20486 export_dynamic_flag_spec \ 20487 whole_archive_flag_spec \ 20488 compiler_needs_object \ 20489 with_gnu_ld \ 20490 allow_undefined_flag \ 20491 no_undefined_flag \ 20492 hardcode_libdir_flag_spec \ 20493 hardcode_libdir_separator \ 20494 exclude_expsyms \ 20495 include_expsyms \ 20496 file_list_spec \ 20497 variables_saved_for_relink \ 20498 libname_spec \ 20499 library_names_spec \ 20500 soname_spec \ 20501 install_override_mode \ 20502 finish_eval \ 20503 old_striplib \ 20504 striplib; do 20505 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20506 *[\\\\\\\`\\"\\\$]*) 20507 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20508 ;; 20509 *) 20510 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20511 ;; 20512 esac 20513 done 20514 20515 # Double-quote double-evaled strings. 20516 for var in reload_cmds \ 20517 old_postinstall_cmds \ 20518 old_postuninstall_cmds \ 20519 old_archive_cmds \ 20520 extract_expsyms_cmds \ 20521 old_archive_from_new_cmds \ 20522 old_archive_from_expsyms_cmds \ 20523 archive_cmds \ 20524 archive_expsym_cmds \ 20525 module_cmds \ 20526 module_expsym_cmds \ 20527 export_symbols_cmds \ 20528 prelink_cmds \ 20529 postlink_cmds \ 20530 postinstall_cmds \ 20531 postuninstall_cmds \ 20532 finish_cmds \ 20533 sys_lib_search_path_spec \ 20534 configure_time_dlsearch_path \ 20535 configure_time_lt_sys_library_path; do 20536 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20537 *[\\\\\\\`\\"\\\$]*) 20538 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20539 ;; 20540 *) 20541 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20542 ;; 20543 esac 20544 done 20545 20546 ac_aux_dir='$ac_aux_dir' 20547 20548 # See if we are running on zsh, and set the options that allow our 20549 # commands through without removal of \ escapes INIT. 20550 if test -n "\${ZSH_VERSION+set}"; then 20551 setopt NO_GLOB_SUBST 20552 fi 20553 20554 20555 PACKAGE='$PACKAGE' 20556 VERSION='$VERSION' 20557 RM='$RM' 20558 ofile='$ofile' 20559 20560 20561 20562 20563 _ACEOF 20564 20565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20566 20567 # Handling of arguments. 20568 for ac_config_target in $ac_config_targets 20569 do 20570 case $ac_config_target in 20571 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20572 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20573 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20574 "mpfr.pc") CONFIG_FILES="$CONFIG_FILES mpfr.pc" ;; 20575 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20576 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20577 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 20578 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;; 20579 "src/mparam.h") CONFIG_FILES="$CONFIG_FILES src/mparam.h:src/mparam_h.in" ;; 20580 "tools/bench/Makefile") CONFIG_FILES="$CONFIG_FILES tools/bench/Makefile" ;; 20581 20582 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20583 esac 20584 done 20585 20586 20587 # If the user did not use the arguments to specify the items to instantiate, 20588 # then the envvar interface is used. Set only those that are not. 20589 # We use the long form for the default assignment because of an extremely 20590 # bizarre bug on SunOS 4.1.3. 20591 if $ac_need_defaults; then 20592 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20593 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20594 fi 20595 20596 # Have a temporary directory for convenience. Make it in the build tree 20597 # simply because there is no reason against having it here, and in addition, 20598 # creating and moving files from /tmp can sometimes cause problems. 20599 # Hook for its removal unless debugging. 20600 # Note that there is a small window in which the directory will not be cleaned: 20601 # after its creation but before its name has been assigned to `$tmp'. 20602 $debug || 20603 { 20604 tmp= ac_tmp= 20605 trap 'exit_status=$? 20606 : "${ac_tmp:=$tmp}" 20607 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20608 ' 0 20609 trap 'as_fn_exit 1' 1 2 13 15 20610 } 20611 # Create a (secure) tmp directory for tmp files. 20612 20613 { 20614 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20615 test -d "$tmp" 20616 } || 20617 { 20618 tmp=./conf$$-$RANDOM 20619 (umask 077 && mkdir "$tmp") 20620 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20621 ac_tmp=$tmp 20622 20623 # Set up the scripts for CONFIG_FILES section. 20624 # No need to generate them if there are no CONFIG_FILES. 20625 # This happens for instance with `./config.status config.h'. 20626 if test -n "$CONFIG_FILES"; then 20627 20628 20629 ac_cr=`echo X | tr X '\015'` 20630 # On cygwin, bash can eat \r inside `` if the user requested igncr. 20631 # But we know of no other shell where ac_cr would be empty at this 20632 # point, so we can use a bashism as a fallback. 20633 if test "x$ac_cr" = x; then 20634 eval ac_cr=\$\'\\r\' 20635 fi 20636 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20637 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20638 ac_cs_awk_cr='\\r' 20639 else 20640 ac_cs_awk_cr=$ac_cr 20641 fi 20642 20643 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20644 _ACEOF 20645 20646 20647 { 20648 echo "cat >conf$$subs.awk <<_ACEOF" && 20649 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20650 echo "_ACEOF" 20651 } >conf$$subs.sh || 20652 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20653 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20654 ac_delim='%!_!# ' 20655 for ac_last_try in false false false false false :; do 20656 . ./conf$$subs.sh || 20657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20658 20659 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20660 if test $ac_delim_n = $ac_delim_num; then 20661 break 20662 elif $ac_last_try; then 20663 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20664 else 20665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20666 fi 20667 done 20668 rm -f conf$$subs.sh 20669 20670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20671 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20672 _ACEOF 20673 sed -n ' 20674 h 20675 s/^/S["/; s/!.*/"]=/ 20676 p 20677 g 20678 s/^[^!]*!// 20679 :repl 20680 t repl 20681 s/'"$ac_delim"'$// 20682 t delim 20683 :nl 20684 h 20685 s/\(.\{148\}\)..*/\1/ 20686 t more1 20687 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20688 p 20689 n 20690 b repl 20691 :more1 20692 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20693 p 20694 g 20695 s/.\{148\}// 20696 t nl 20697 :delim 20698 h 20699 s/\(.\{148\}\)..*/\1/ 20700 t more2 20701 s/["\\]/\\&/g; s/^/"/; s/$/"/ 20702 p 20703 b 20704 :more2 20705 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20706 p 20707 g 20708 s/.\{148\}// 20709 t delim 20710 ' <conf$$subs.awk | sed ' 20711 /^[^""]/{ 20712 N 20713 s/\n// 20714 } 20715 ' >>$CONFIG_STATUS || ac_write_fail=1 20716 rm -f conf$$subs.awk 20717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20718 _ACAWK 20719 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20720 for (key in S) S_is_set[key] = 1 20721 FS = "" 20722 20723 } 20724 { 20725 line = $ 0 20726 nfields = split(line, field, "@") 20727 substed = 0 20728 len = length(field[1]) 20729 for (i = 2; i < nfields; i++) { 20730 key = field[i] 20731 keylen = length(key) 20732 if (S_is_set[key]) { 20733 value = S[key] 20734 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20735 len += length(value) + length(field[++i]) 20736 substed = 1 20737 } else 20738 len += 1 + keylen 20739 } 20740 20741 print line 20742 } 20743 20744 _ACAWK 20745 _ACEOF 20746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20747 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20748 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20749 else 20750 cat 20751 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20752 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20753 _ACEOF 20754 20755 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20756 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20757 # trailing colons and then remove the whole line if VPATH becomes empty 20758 # (actually we leave an empty line to preserve line numbers). 20759 if test "x$srcdir" = x.; then 20760 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20761 h 20762 s/// 20763 s/^/:/ 20764 s/[ ]*$/:/ 20765 s/:\$(srcdir):/:/g 20766 s/:\${srcdir}:/:/g 20767 s/:@srcdir@:/:/g 20768 s/^:*// 20769 s/:*$// 20770 x 20771 s/\(=[ ]*\).*/\1/ 20772 G 20773 s/\n// 20774 s/^[^=]*=[ ]*$// 20775 }' 20776 fi 20777 20778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20779 fi # test -n "$CONFIG_FILES" 20780 20781 20782 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 20783 shift 20784 for ac_tag 20785 do 20786 case $ac_tag in 20787 :[FHLC]) ac_mode=$ac_tag; continue;; 20788 esac 20789 case $ac_mode$ac_tag in 20790 :[FHL]*:*);; 20791 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20792 :[FH]-) ac_tag=-:-;; 20793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20794 esac 20795 ac_save_IFS=$IFS 20796 IFS=: 20797 set x $ac_tag 20798 IFS=$ac_save_IFS 20799 shift 20800 ac_file=$1 20801 shift 20802 20803 case $ac_mode in 20804 :L) ac_source=$1;; 20805 :[FH]) 20806 ac_file_inputs= 20807 for ac_f 20808 do 20809 case $ac_f in 20810 -) ac_f="$ac_tmp/stdin";; 20811 *) # Look for the file first in the build tree, then in the source tree 20812 # (if the path is not absolute). The absolute path cannot be DOS-style, 20813 # because $ac_f cannot contain `:'. 20814 test -f "$ac_f" || 20815 case $ac_f in 20816 [\\/$]*) false;; 20817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20818 esac || 20819 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20820 esac 20821 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20822 as_fn_append ac_file_inputs " '$ac_f'" 20823 done 20824 20825 # Let's still pretend it is `configure' which instantiates (i.e., don't 20826 # use $as_me), people would be surprised to read: 20827 # /* config.h. Generated by config.status. */ 20828 configure_input='Generated from '` 20829 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20830 `' by configure.' 20831 if test x"$ac_file" != x-; then 20832 configure_input="$ac_file. $configure_input" 20833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20834 printf "%s\n" "$as_me: creating $ac_file" >&6;} 20835 fi 20836 # Neutralize special characters interpreted by sed in replacement strings. 20837 case $configure_input in #( 20838 *\&* | *\|* | *\\* ) 20839 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20840 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20841 *) ac_sed_conf_input=$configure_input;; 20842 esac 20843 20844 case $ac_tag in 20845 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20847 esac 20848 ;; 20849 esac 20850 20851 ac_dir=`$as_dirname -- "$ac_file" || 20852 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20853 X"$ac_file" : 'X\(//\)[^/]' \| \ 20854 X"$ac_file" : 'X\(//\)$' \| \ 20855 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20856 printf "%s\n" X"$ac_file" | 20857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20858 s//\1/ 20859 q 20860 } 20861 /^X\(\/\/\)[^/].*/{ 20862 s//\1/ 20863 q 20864 } 20865 /^X\(\/\/\)$/{ 20866 s//\1/ 20867 q 20868 } 20869 /^X\(\/\).*/{ 20870 s//\1/ 20871 q 20872 } 20873 s/.*/./; q'` 20874 as_dir="$ac_dir"; as_fn_mkdir_p 20875 ac_builddir=. 20876 20877 case "$ac_dir" in 20878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20879 *) 20880 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20881 # A ".." for each directory in $ac_dir_suffix. 20882 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20883 case $ac_top_builddir_sub in 20884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20886 esac ;; 20887 esac 20888 ac_abs_top_builddir=$ac_pwd 20889 ac_abs_builddir=$ac_pwd$ac_dir_suffix 20890 # for backward compatibility: 20891 ac_top_builddir=$ac_top_build_prefix 20892 20893 case $srcdir in 20894 .) # We are building in place. 20895 ac_srcdir=. 20896 ac_top_srcdir=$ac_top_builddir_sub 20897 ac_abs_top_srcdir=$ac_pwd ;; 20898 [\\/]* | ?:[\\/]* ) # Absolute name. 20899 ac_srcdir=$srcdir$ac_dir_suffix; 20900 ac_top_srcdir=$srcdir 20901 ac_abs_top_srcdir=$srcdir ;; 20902 *) # Relative name. 20903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20904 ac_top_srcdir=$ac_top_build_prefix$srcdir 20905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20906 esac 20907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20908 20909 20910 case $ac_mode in 20911 :F) 20912 # 20913 # CONFIG_FILE 20914 # 20915 20916 case $INSTALL in 20917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20918 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20919 esac 20920 ac_MKDIR_P=$MKDIR_P 20921 case $MKDIR_P in 20922 [\\/$]* | ?:[\\/]* ) ;; 20923 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20924 esac 20925 _ACEOF 20926 20927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20928 # If the template does not know about datarootdir, expand it. 20929 # FIXME: This hack should be removed a few years after 2.60. 20930 ac_datarootdir_hack=; ac_datarootdir_seen= 20931 ac_sed_dataroot=' 20932 /datarootdir/ { 20933 p 20934 q 20935 } 20936 /@datadir@/p 20937 /@docdir@/p 20938 /@infodir@/p 20939 /@localedir@/p 20940 /@mandir@/p' 20941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20942 *datarootdir*) ac_datarootdir_seen=yes;; 20943 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20945 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20946 _ACEOF 20947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20948 ac_datarootdir_hack=' 20949 s&@datadir@&$datadir&g 20950 s&@docdir@&$docdir&g 20951 s&@infodir@&$infodir&g 20952 s&@localedir@&$localedir&g 20953 s&@mandir@&$mandir&g 20954 s&\\\${datarootdir}&$datarootdir&g' ;; 20955 esac 20956 _ACEOF 20957 20958 # Neutralize VPATH when `$srcdir' = `.'. 20959 # Shell code in configure.ac might set extrasub. 20960 # FIXME: do we really want to maintain this feature? 20961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20962 ac_sed_extra="$ac_vpsub 20963 $extrasub 20964 _ACEOF 20965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20966 :t 20967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20968 s|@configure_input@|$ac_sed_conf_input|;t t 20969 s&@top_builddir@&$ac_top_builddir_sub&;t t 20970 s&@top_build_prefix@&$ac_top_build_prefix&;t t 20971 s&@srcdir@&$ac_srcdir&;t t 20972 s&@abs_srcdir@&$ac_abs_srcdir&;t t 20973 s&@top_srcdir@&$ac_top_srcdir&;t t 20974 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20975 s&@builddir@&$ac_builddir&;t t 20976 s&@abs_builddir@&$ac_abs_builddir&;t t 20977 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20978 s&@INSTALL@&$ac_INSTALL&;t t 20979 s&@MKDIR_P@&$ac_MKDIR_P&;t t 20980 $ac_datarootdir_hack 20981 " 20982 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20983 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20984 20985 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20986 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20987 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20988 "$ac_tmp/out"`; test -z "$ac_out"; } && 20989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20990 which seems to be undefined. Please make sure it is defined" >&5 20991 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20992 which seems to be undefined. Please make sure it is defined" >&2;} 20993 20994 rm -f "$ac_tmp/stdin" 20995 case $ac_file in 20996 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20997 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20998 esac \ 20999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21000 ;; 21001 21002 21003 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21004 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21005 ;; 21006 esac 21007 21008 21009 case $ac_file$ac_mode in 21010 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21011 # Older Autoconf quotes --file arguments for eval, but not when files 21012 # are listed without --file. Let's play safe and only enable the eval 21013 # if we detect the quoting. 21014 # TODO: see whether this extra hack can be removed once we start 21015 # requiring Autoconf 2.70 or later. 21016 case $CONFIG_FILES in #( 21017 *\'*) : 21018 eval set x "$CONFIG_FILES" ;; #( 21019 *) : 21020 set x $CONFIG_FILES ;; #( 21021 *) : 21022 ;; 21023 esac 21024 shift 21025 # Used to flag and report bootstrapping failures. 21026 am_rc=0 21027 for am_mf 21028 do 21029 # Strip MF so we end up with the name of the file. 21030 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21031 # Check whether this is an Automake generated Makefile which includes 21032 # dependency-tracking related rules and includes. 21033 # Grep'ing the whole file directly is not great: AIX grep has a line 21034 # limit of 2048, but all sed's we know have understand at least 4000. 21035 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21036 || continue 21037 am_dirpart=`$as_dirname -- "$am_mf" || 21038 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21039 X"$am_mf" : 'X\(//\)[^/]' \| \ 21040 X"$am_mf" : 'X\(//\)$' \| \ 21041 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21042 printf "%s\n" X"$am_mf" | 21043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21044 s//\1/ 21045 q 21046 } 21047 /^X\(\/\/\)[^/].*/{ 21048 s//\1/ 21049 q 21050 } 21051 /^X\(\/\/\)$/{ 21052 s//\1/ 21053 q 21054 } 21055 /^X\(\/\).*/{ 21056 s//\1/ 21057 q 21058 } 21059 s/.*/./; q'` 21060 am_filepart=`$as_basename -- "$am_mf" || 21061 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21062 X"$am_mf" : 'X\(//\)$' \| \ 21063 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21064 printf "%s\n" X/"$am_mf" | 21065 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21066 s//\1/ 21067 q 21068 } 21069 /^X\/\(\/\/\)$/{ 21070 s//\1/ 21071 q 21072 } 21073 /^X\/\(\/\).*/{ 21074 s//\1/ 21075 q 21076 } 21077 s/.*/./; q'` 21078 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21079 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21080 | $MAKE -f - am--depfiles" >&5 21081 (cd "$am_dirpart" \ 21082 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21083 | $MAKE -f - am--depfiles) >&5 2>&5 21084 ac_status=$? 21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21086 (exit $ac_status); } || am_rc=$? 21087 done 21088 if test $am_rc -ne 0; then 21089 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21090 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21091 as_fn_error $? "Something went wrong bootstrapping makefile fragments 21092 for automatic dependency tracking. If GNU make was not used, consider 21093 re-running the configure script with MAKE=\"gmake\" (or whatever is 21094 necessary). You can also try re-running configure with the 21095 '--disable-dependency-tracking' option to at least be able to build 21096 the package (albeit without support for automatic dependency tracking). 21097 See \`config.log' for more details" "$LINENO" 5; } 21098 fi 21099 { am_dirpart=; unset am_dirpart;} 21100 { am_filepart=; unset am_filepart;} 21101 { am_mf=; unset am_mf;} 21102 { am_rc=; unset am_rc;} 21103 rm -f conftest-deps.mk 21104 } 21105 ;; 21106 "libtool":C) 21107 21108 # See if we are running on zsh, and set the options that allow our 21109 # commands through without removal of \ escapes. 21110 if test -n "${ZSH_VERSION+set}"; then 21111 setopt NO_GLOB_SUBST 21112 fi 21113 21114 cfgfile=${ofile}T 21115 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21116 $RM "$cfgfile" 21117 21118 cat <<_LT_EOF >> "$cfgfile" 21119 #! $SHELL 21120 # Generated automatically by $as_me ($PACKAGE) $VERSION 21121 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 21122 21123 # Provide generalized library-building support services. 21124 # Written by Gordon Matzigkeit, 1996 21125 21126 # Copyright (C) 2014 Free Software Foundation, Inc. 21127 # This is free software; see the source for copying conditions. There is NO 21128 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21129 21130 # GNU Libtool is free software; you can redistribute it and/or modify 21131 # it under the terms of the GNU General Public License as published by 21132 # the Free Software Foundation; either version 2 of of the License, or 21133 # (at your option) any later version. 21134 # 21135 # As a special exception to the GNU General Public License, if you 21136 # distribute this file as part of a program or library that is built 21137 # using GNU Libtool, you may include this file under the same 21138 # distribution terms that you use for the rest of that program. 21139 # 21140 # GNU Libtool is distributed in the hope that it will be useful, but 21141 # WITHOUT ANY WARRANTY; without even the implied warranty of 21142 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21143 # GNU General Public License for more details. 21144 # 21145 # You should have received a copy of the GNU General Public License 21146 # along with this program. If not, see <http://www.gnu.org/licenses/>. 21147 21148 21149 # The names of the tagged configurations supported by this script. 21150 available_tags='' 21151 21152 # Configured defaults for sys_lib_dlsearch_path munging. 21153 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21154 21155 # ### BEGIN LIBTOOL CONFIG 21156 21157 # Which release of libtool.m4 was used? 21158 macro_version=$macro_version 21159 macro_revision=$macro_revision 21160 21161 # Assembler program. 21162 AS=$lt_AS 21163 21164 # DLL creation program. 21165 DLLTOOL=$lt_DLLTOOL 21166 21167 # Object dumper program. 21168 OBJDUMP=$lt_OBJDUMP 21169 21170 # Whether or not to build shared libraries. 21171 build_libtool_libs=$enable_shared 21172 21173 # Whether or not to build static libraries. 21174 build_old_libs=$enable_static 21175 21176 # What type of objects to build. 21177 pic_mode=$pic_mode 21178 21179 # Whether or not to optimize for fast installation. 21180 fast_install=$enable_fast_install 21181 21182 # Shared archive member basename,for filename based shared library versioning on AIX. 21183 shared_archive_member_spec=$shared_archive_member_spec 21184 21185 # Shell to use when invoking shell scripts. 21186 SHELL=$lt_SHELL 21187 21188 # An echo program that protects backslashes. 21189 ECHO=$lt_ECHO 21190 21191 # The PATH separator for the build system. 21192 PATH_SEPARATOR=$lt_PATH_SEPARATOR 21193 21194 # The host system. 21195 host_alias=$host_alias 21196 host=$host 21197 host_os=$host_os 21198 21199 # The build system. 21200 build_alias=$build_alias 21201 build=$build 21202 build_os=$build_os 21203 21204 # A sed program that does not truncate output. 21205 SED=$lt_SED 21206 21207 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 21208 Xsed="\$SED -e 1s/^X//" 21209 21210 # A grep program that handles long lines. 21211 GREP=$lt_GREP 21212 21213 # An ERE matcher. 21214 EGREP=$lt_EGREP 21215 21216 # A literal string matcher. 21217 FGREP=$lt_FGREP 21218 21219 # A BSD- or MS-compatible name lister. 21220 NM=$lt_NM 21221 21222 # Whether we need soft or hard links. 21223 LN_S=$lt_LN_S 21224 21225 # What is the maximum length of a command? 21226 max_cmd_len=$max_cmd_len 21227 21228 # Object file suffix (normally "o"). 21229 objext=$ac_objext 21230 21231 # Executable file suffix (normally ""). 21232 exeext=$exeext 21233 21234 # whether the shell understands "unset". 21235 lt_unset=$lt_unset 21236 21237 # turn spaces into newlines. 21238 SP2NL=$lt_lt_SP2NL 21239 21240 # turn newlines into spaces. 21241 NL2SP=$lt_lt_NL2SP 21242 21243 # convert \$build file names to \$host format. 21244 to_host_file_cmd=$lt_cv_to_host_file_cmd 21245 21246 # convert \$build files to toolchain format. 21247 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21248 21249 # A file(cmd) program that detects file types. 21250 FILECMD=$lt_FILECMD 21251 21252 # Method to check whether dependent libraries are shared objects. 21253 deplibs_check_method=$lt_deplibs_check_method 21254 21255 # Command to use when deplibs_check_method = "file_magic". 21256 file_magic_cmd=$lt_file_magic_cmd 21257 21258 # How to find potential files when deplibs_check_method = "file_magic". 21259 file_magic_glob=$lt_file_magic_glob 21260 21261 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21262 want_nocaseglob=$lt_want_nocaseglob 21263 21264 # Command to associate shared and link libraries. 21265 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21266 21267 # The archiver. 21268 AR=$lt_AR 21269 21270 # Flags to create an archive (by configure). 21271 lt_ar_flags=$lt_ar_flags 21272 21273 # Flags to create an archive. 21274 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21275 21276 # How to feed a file listing to the archiver. 21277 archiver_list_spec=$lt_archiver_list_spec 21278 21279 # A symbol stripping program. 21280 STRIP=$lt_STRIP 21281 21282 # Commands used to install an old-style archive. 21283 RANLIB=$lt_RANLIB 21284 old_postinstall_cmds=$lt_old_postinstall_cmds 21285 old_postuninstall_cmds=$lt_old_postuninstall_cmds 21286 21287 # Whether to use a lock for old archive extraction. 21288 lock_old_archive_extraction=$lock_old_archive_extraction 21289 21290 # A C compiler. 21291 LTCC=$lt_CC 21292 21293 # LTCC compiler flags. 21294 LTCFLAGS=$lt_CFLAGS 21295 21296 # Take the output of nm and produce a listing of raw symbols and C names. 21297 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21298 21299 # Transform the output of nm in a proper C declaration. 21300 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21301 21302 # Transform the output of nm into a list of symbols to manually relocate. 21303 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21304 21305 # Transform the output of nm in a C name address pair. 21306 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21307 21308 # Transform the output of nm in a C name address pair when lib prefix is needed. 21309 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21310 21311 # The name lister interface. 21312 nm_interface=$lt_lt_cv_nm_interface 21313 21314 # Specify filename containing input files for \$NM. 21315 nm_file_list_spec=$lt_nm_file_list_spec 21316 21317 # The root where to search for dependent libraries,and where our libraries should be installed. 21318 lt_sysroot=$lt_sysroot 21319 21320 # Command to truncate a binary pipe. 21321 lt_truncate_bin=$lt_lt_cv_truncate_bin 21322 21323 # The name of the directory that contains temporary libtool files. 21324 objdir=$objdir 21325 21326 # Used to examine libraries when file_magic_cmd begins with "file". 21327 MAGIC_CMD=$MAGIC_CMD 21328 21329 # Must we lock files when doing compilation? 21330 need_locks=$lt_need_locks 21331 21332 # Manifest tool. 21333 MANIFEST_TOOL=$lt_MANIFEST_TOOL 21334 21335 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21336 DSYMUTIL=$lt_DSYMUTIL 21337 21338 # Tool to change global to local symbols on Mac OS X. 21339 NMEDIT=$lt_NMEDIT 21340 21341 # Tool to manipulate fat objects and archives on Mac OS X. 21342 LIPO=$lt_LIPO 21343 21344 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 21345 OTOOL=$lt_OTOOL 21346 21347 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21348 OTOOL64=$lt_OTOOL64 21349 21350 # Old archive suffix (normally "a"). 21351 libext=$libext 21352 21353 # Shared library suffix (normally ".so"). 21354 shrext_cmds=$lt_shrext_cmds 21355 21356 # The commands to extract the exported symbol list from a shared archive. 21357 extract_expsyms_cmds=$lt_extract_expsyms_cmds 21358 21359 # Variables whose values should be saved in libtool wrapper scripts and 21360 # restored at link time. 21361 variables_saved_for_relink=$lt_variables_saved_for_relink 21362 21363 # Do we need the "lib" prefix for modules? 21364 need_lib_prefix=$need_lib_prefix 21365 21366 # Do we need a version for libraries? 21367 need_version=$need_version 21368 21369 # Library versioning type. 21370 version_type=$version_type 21371 21372 # Shared library runtime path variable. 21373 runpath_var=$runpath_var 21374 21375 # Shared library path variable. 21376 shlibpath_var=$shlibpath_var 21377 21378 # Is shlibpath searched before the hard-coded library search path? 21379 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21380 21381 # Format of library name prefix. 21382 libname_spec=$lt_libname_spec 21383 21384 # List of archive names. First name is the real one, the rest are links. 21385 # The last name is the one that the linker finds with -lNAME 21386 library_names_spec=$lt_library_names_spec 21387 21388 # The coded name of the library, if different from the real name. 21389 soname_spec=$lt_soname_spec 21390 21391 # Permission mode override for installation of shared libraries. 21392 install_override_mode=$lt_install_override_mode 21393 21394 # Command to use after installation of a shared archive. 21395 postinstall_cmds=$lt_postinstall_cmds 21396 21397 # Command to use after uninstallation of a shared archive. 21398 postuninstall_cmds=$lt_postuninstall_cmds 21399 21400 # Commands used to finish a libtool library installation in a directory. 21401 finish_cmds=$lt_finish_cmds 21402 21403 # As "finish_cmds", except a single script fragment to be evaled but 21404 # not shown. 21405 finish_eval=$lt_finish_eval 21406 21407 # Whether we should hardcode library paths into libraries. 21408 hardcode_into_libs=$hardcode_into_libs 21409 21410 # Compile-time system search path for libraries. 21411 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21412 21413 # Detected run-time system search path for libraries. 21414 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21415 21416 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21417 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21418 21419 # Whether dlopen is supported. 21420 dlopen_support=$enable_dlopen 21421 21422 # Whether dlopen of programs is supported. 21423 dlopen_self=$enable_dlopen_self 21424 21425 # Whether dlopen of statically linked programs is supported. 21426 dlopen_self_static=$enable_dlopen_self_static 21427 21428 # Commands to strip libraries. 21429 old_striplib=$lt_old_striplib 21430 striplib=$lt_striplib 21431 21432 21433 # The linker used to build libraries. 21434 LD=$lt_LD 21435 21436 # How to create reloadable object files. 21437 reload_flag=$lt_reload_flag 21438 reload_cmds=$lt_reload_cmds 21439 21440 # Commands used to build an old-style archive. 21441 old_archive_cmds=$lt_old_archive_cmds 21442 21443 # A language specific compiler. 21444 CC=$lt_compiler 21445 21446 # Is the compiler the GNU compiler? 21447 with_gcc=$GCC 21448 21449 # Compiler flag to turn off builtin functions. 21450 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21451 21452 # Additional compiler flags for building library objects. 21453 pic_flag=$lt_lt_prog_compiler_pic 21454 21455 # How to pass a linker flag through the compiler. 21456 wl=$lt_lt_prog_compiler_wl 21457 21458 # Compiler flag to prevent dynamic linking. 21459 link_static_flag=$lt_lt_prog_compiler_static 21460 21461 # Does compiler simultaneously support -c and -o options? 21462 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21463 21464 # Whether or not to add -lc for building shared libraries. 21465 build_libtool_need_lc=$archive_cmds_need_lc 21466 21467 # Whether or not to disallow shared libs when runtime libs are static. 21468 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21469 21470 # Compiler flag to allow reflexive dlopens. 21471 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21472 21473 # Compiler flag to generate shared objects directly from archives. 21474 whole_archive_flag_spec=$lt_whole_archive_flag_spec 21475 21476 # Whether the compiler copes with passing no objects directly. 21477 compiler_needs_object=$lt_compiler_needs_object 21478 21479 # Create an old-style archive from a shared archive. 21480 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21481 21482 # Create a temporary old-style archive to link instead of a shared archive. 21483 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21484 21485 # Commands used to build a shared archive. 21486 archive_cmds=$lt_archive_cmds 21487 archive_expsym_cmds=$lt_archive_expsym_cmds 21488 21489 # Commands used to build a loadable module if different from building 21490 # a shared archive. 21491 module_cmds=$lt_module_cmds 21492 module_expsym_cmds=$lt_module_expsym_cmds 21493 21494 # Whether we are building with GNU ld or not. 21495 with_gnu_ld=$lt_with_gnu_ld 21496 21497 # Flag that allows shared libraries with undefined symbols to be built. 21498 allow_undefined_flag=$lt_allow_undefined_flag 21499 21500 # Flag that enforces no undefined symbols. 21501 no_undefined_flag=$lt_no_undefined_flag 21502 21503 # Flag to hardcode \$libdir into a binary during linking. 21504 # This must work even if \$libdir does not exist 21505 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21506 21507 # Whether we need a single "-rpath" flag with a separated argument. 21508 hardcode_libdir_separator=$lt_hardcode_libdir_separator 21509 21510 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21511 # DIR into the resulting binary. 21512 hardcode_direct=$hardcode_direct 21513 21514 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21515 # DIR into the resulting binary and the resulting library dependency is 21516 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 21517 # library is relocated. 21518 hardcode_direct_absolute=$hardcode_direct_absolute 21519 21520 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21521 # into the resulting binary. 21522 hardcode_minus_L=$hardcode_minus_L 21523 21524 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21525 # into the resulting binary. 21526 hardcode_shlibpath_var=$hardcode_shlibpath_var 21527 21528 # Set to "yes" if building a shared library automatically hardcodes DIR 21529 # into the library and all subsequent libraries and executables linked 21530 # against it. 21531 hardcode_automatic=$hardcode_automatic 21532 21533 # Set to yes if linker adds runtime paths of dependent libraries 21534 # to runtime path list. 21535 inherit_rpath=$inherit_rpath 21536 21537 # Whether libtool must link a program against all its dependency libraries. 21538 link_all_deplibs=$link_all_deplibs 21539 21540 # Set to "yes" if exported symbols are required. 21541 always_export_symbols=$always_export_symbols 21542 21543 # The commands to list exported symbols. 21544 export_symbols_cmds=$lt_export_symbols_cmds 21545 21546 # Symbols that should not be listed in the preloaded symbols. 21547 exclude_expsyms=$lt_exclude_expsyms 21548 21549 # Symbols that must always be exported. 21550 include_expsyms=$lt_include_expsyms 21551 21552 # Commands necessary for linking programs (against libraries) with templates. 21553 prelink_cmds=$lt_prelink_cmds 21554 21555 # Commands necessary for finishing linking programs. 21556 postlink_cmds=$lt_postlink_cmds 21557 21558 # Specify filename containing input files. 21559 file_list_spec=$lt_file_list_spec 21560 21561 # How to hardcode a shared library path into an executable. 21562 hardcode_action=$hardcode_action 21563 21564 # ### END LIBTOOL CONFIG 21565 21566 _LT_EOF 21567 21568 cat <<'_LT_EOF' >> "$cfgfile" 21569 21570 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21571 21572 # func_munge_path_list VARIABLE PATH 21573 # ----------------------------------- 21574 # VARIABLE is name of variable containing _space_ separated list of 21575 # directories to be munged by the contents of PATH, which is string 21576 # having a format: 21577 # "DIR[:DIR]:" 21578 # string "DIR[ DIR]" will be prepended to VARIABLE 21579 # ":DIR[:DIR]" 21580 # string "DIR[ DIR]" will be appended to VARIABLE 21581 # "DIRP[:DIRP]::[DIRA:]DIRA" 21582 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21583 # "DIRA[ DIRA]" will be appended to VARIABLE 21584 # "DIR[:DIR]" 21585 # VARIABLE will be replaced by "DIR[ DIR]" 21586 func_munge_path_list () 21587 { 21588 case x$2 in 21589 x) 21590 ;; 21591 *:) 21592 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21593 ;; 21594 x:*) 21595 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21596 ;; 21597 *::*) 21598 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21599 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21600 ;; 21601 *) 21602 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21603 ;; 21604 esac 21605 } 21606 21607 21608 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21609 func_cc_basename () 21610 { 21611 for cc_temp in $*""; do 21612 case $cc_temp in 21613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21615 \-*) ;; 21616 *) break;; 21617 esac 21618 done 21619 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21620 } 21621 21622 21623 # ### END FUNCTIONS SHARED WITH CONFIGURE 21624 21625 _LT_EOF 21626 21627 case $host_os in 21628 aix3*) 21629 cat <<\_LT_EOF >> "$cfgfile" 21630 # AIX sometimes has problems with the GCC collect2 program. For some 21631 # reason, if we set the COLLECT_NAMES environment variable, the problems 21632 # vanish in a puff of smoke. 21633 if test set != "${COLLECT_NAMES+set}"; then 21634 COLLECT_NAMES= 21635 export COLLECT_NAMES 21636 fi 21637 _LT_EOF 21638 ;; 21639 esac 21640 21641 21642 21643 ltmain=$ac_aux_dir/ltmain.sh 21644 21645 21646 # We use sed instead of cat because bash on DJGPP gets confused if 21647 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21648 # text mode, it properly converts lines to CR/LF. This bash problem 21649 # is reportedly fixed, but why not run on old versions too? 21650 $SED '$q' "$ltmain" >> "$cfgfile" \ 21651 || (rm -f "$cfgfile"; exit 1) 21652 21653 mv -f "$cfgfile" "$ofile" || 21654 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21655 chmod +x "$ofile" 21656 21657 ;; 21658 21659 esac 21660 done # for ac_tag 21661 21662 21663 as_fn_exit 0 21664 _ACEOF 21665 ac_clean_files=$ac_clean_files_save 21666 21667 test $ac_write_fail = 0 || 21668 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21669 21670 21671 # configure is writing to config.log, and then calls config.status. 21672 # config.status does its own redirection, appending to config.log. 21673 # Unfortunately, on DOS this fails, as config.log is still kept open 21674 # by configure, so config.status won't be able to write to it; its 21675 # output is simply discarded. So we exec the FD to /dev/null, 21676 # effectively closing config.log, so it can be properly (re)opened and 21677 # appended to by config.status. When coming back to configure, we 21678 # need to make the FD available again. 21679 if test "$no_create" != yes; then 21680 ac_cs_success=: 21681 ac_config_status_args= 21682 test "$silent" = yes && 21683 ac_config_status_args="$ac_config_status_args --quiet" 21684 exec 5>/dev/null 21685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21686 exec 5>>config.log 21687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21688 # would make configure fail if this is the last instruction. 21689 $ac_cs_success || as_fn_exit 1 21690 fi 21691 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21693 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21694 fi 21695 21696 21697 21698