1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn. 4 # 5 # Report bugs to <http://llvm.org/bugs/>. 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 # 12 # Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign. 13 ## --------------------- ## 14 ## M4sh Initialization. ## 15 ## --------------------- ## 16 17 # Be Bourne compatible 18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 emulate sh 20 NULLCMD=: 21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25 else 26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 27 fi 28 BIN_SH=xpg4; export BIN_SH # for Tru64 29 DUALCASE=1; export DUALCASE # for MKS sh 30 31 32 # PATH needs CR 33 # Avoid depending upon Character Ranges. 34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37 as_cr_digits='0123456789' 38 as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40 # The user is always right. 41 if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51 fi 52 53 # Support unset when possible. 54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56 else 57 as_unset=false 58 fi 59 60 61 # IFS 62 # We need space, tab and new line, in precisely that order. Quoting is 63 # there to prevent editors from complaining about space-tab. 64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 65 # splitting by setting IFS to empty value.) 66 as_nl=' 67 ' 68 IFS=" "" $as_nl" 69 70 # Find who we are. Look in the path if we contain no directory separator. 71 case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74 for as_dir in $PATH 75 do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79 done 80 IFS=$as_save_IFS 81 82 ;; 83 esac 84 # We did not find ourselves, most probably we were run as `sh COMMAND' 85 # in which case we are not to be found in the path. 86 if test "x$as_myself" = x; then 87 as_myself=$0 88 fi 89 if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92 fi 93 94 # Work around bugs in pre-3.0 UWIN ksh. 95 for as_var in ENV MAIL MAILPATH 96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97 done 98 PS1='$ ' 99 PS2='> ' 100 PS4='+ ' 101 102 # NLS nuisances. 103 for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107 do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113 done 114 115 # Required to use basename. 116 if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119 else 120 as_expr=false 121 fi 122 123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125 else 126 as_basename=false 127 fi 128 129 130 # Name of the executable. 131 as_me=`$as_basename -- "$0" || 132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135 echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150 # CDPATH. 151 $as_unset CDPATH 152 153 154 if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157 else 158 as_have_required=no 159 fi 160 161 if test $as_have_required = yes && (eval ": 162 (as_func_return () { 163 (exit \$1) 164 } 165 as_func_success () { 166 as_func_return 0 167 } 168 as_func_failure () { 169 as_func_return 1 170 } 171 as_func_ret_success () { 172 return 0 173 } 174 as_func_ret_failure () { 175 return 1 176 } 177 178 exitcode=0 179 if as_func_success; then 180 : 181 else 182 exitcode=1 183 echo as_func_success failed. 184 fi 185 186 if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189 fi 190 191 if as_func_ret_success; then 192 : 193 else 194 exitcode=1 195 echo as_func_ret_success failed. 196 fi 197 198 if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201 fi 202 203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205 else 206 exitcode=1 207 echo positional parameters were not saved. 208 fi 209 210 test \$exitcode = 0) || { (exit 1); exit 1; } 211 212 ( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217 ") 2> /dev/null; then 218 : 219 else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223 do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232 done 233 IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240 # Be Bourne compatible 241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248 else 249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 250 fi 251 BIN_SH=xpg4; export BIN_SH # for Tru64 252 DUALCASE=1; export DUALCASE # for MKS sh 253 254 : 255 _ASEOF 256 }; then 257 CONFIG_SHELL=$as_shell 258 as_have_required=yes 259 if { "$as_shell" 2> /dev/null <<\_ASEOF 260 # Be Bourne compatible 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 270 fi 271 BIN_SH=xpg4; export BIN_SH # for Tru64 272 DUALCASE=1; export DUALCASE # for MKS sh 273 274 : 275 (as_func_return () { 276 (exit $1) 277 } 278 as_func_success () { 279 as_func_return 0 280 } 281 as_func_failure () { 282 as_func_return 1 283 } 284 as_func_ret_success () { 285 return 0 286 } 287 as_func_ret_failure () { 288 return 1 289 } 290 291 exitcode=0 292 if as_func_success; then 293 : 294 else 295 exitcode=1 296 echo as_func_success failed. 297 fi 298 299 if as_func_failure; then 300 exitcode=1 301 echo as_func_failure succeeded. 302 fi 303 304 if as_func_ret_success; then 305 : 306 else 307 exitcode=1 308 echo as_func_ret_success failed. 309 fi 310 311 if as_func_ret_failure; then 312 exitcode=1 313 echo as_func_ret_failure succeeded. 314 fi 315 316 if ( set x; as_func_ret_success y && test x = "$1" ); then 317 : 318 else 319 exitcode=1 320 echo positional parameters were not saved. 321 fi 322 323 test $exitcode = 0) || { (exit 1); exit 1; } 324 325 ( 326 as_lineno_1=$LINENO 327 as_lineno_2=$LINENO 328 test "x$as_lineno_1" != "x$as_lineno_2" && 329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 330 331 _ASEOF 332 }; then 333 break 334 fi 335 336 fi 337 338 done 339 340 if test "x$CONFIG_SHELL" != x; then 341 for as_var in BASH_ENV ENV 342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 343 done 344 export CONFIG_SHELL 345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 346 fi 347 348 349 if test $as_have_required = no; then 350 echo This script requires a shell more modern than all the 351 echo shells that I found on your system. Please install a 352 echo modern shell, or manually run the script under such a 353 echo shell if you do have one. 354 { (exit 1); exit 1; } 355 fi 356 357 358 fi 359 360 fi 361 362 363 364 (eval "as_func_return () { 365 (exit \$1) 366 } 367 as_func_success () { 368 as_func_return 0 369 } 370 as_func_failure () { 371 as_func_return 1 372 } 373 as_func_ret_success () { 374 return 0 375 } 376 as_func_ret_failure () { 377 return 1 378 } 379 380 exitcode=0 381 if as_func_success; then 382 : 383 else 384 exitcode=1 385 echo as_func_success failed. 386 fi 387 388 if as_func_failure; then 389 exitcode=1 390 echo as_func_failure succeeded. 391 fi 392 393 if as_func_ret_success; then 394 : 395 else 396 exitcode=1 397 echo as_func_ret_success failed. 398 fi 399 400 if as_func_ret_failure; then 401 exitcode=1 402 echo as_func_ret_failure succeeded. 403 fi 404 405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 406 : 407 else 408 exitcode=1 409 echo positional parameters were not saved. 410 fi 411 412 test \$exitcode = 0") || { 413 echo No shell found that supports shell functions. 414 echo Please tell autoconf@gnu.org about your system, 415 echo including any error possibly output before this 416 echo message 417 } 418 419 420 421 as_lineno_1=$LINENO 422 as_lineno_2=$LINENO 423 test "x$as_lineno_1" != "x$as_lineno_2" && 424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 425 426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 427 # uniformly replaced by the line number. The first 'sed' inserts a 428 # line-number line after each line using $LINENO; the second 'sed' 429 # does the real work. The second script uses 'N' to pair each 430 # line-number line with the line containing $LINENO, and appends 431 # trailing '-' during substitution so that $LINENO is not a special 432 # case at line end. 433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 434 # scripts with optimization help from Paolo Bonzini. Blame Lee 435 # E. McMahon (1931-1989) for sed's syntax. :-) 436 sed -n ' 437 p 438 /[$]LINENO/= 439 ' <$as_myself | 440 sed ' 441 s/[$]LINENO.*/&-/ 442 t lineno 443 b 444 :lineno 445 N 446 :loop 447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 448 t loop 449 s/-\n.*// 450 ' >$as_me.lineno && 451 chmod +x "$as_me.lineno" || 452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 453 { (exit 1); exit 1; }; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461 } 462 463 464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466 else 467 as_dirname=false 468 fi 469 470 ECHO_C= ECHO_N= ECHO_T= 471 case `echo -n x` in 472 -n*) 473 case `echo 'x\c'` in 474 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 475 *) ECHO_C='\c';; 476 esac;; 477 *) 478 ECHO_N='-n';; 479 esac 480 481 if expr a : '\(a\)' >/dev/null 2>&1 && 482 test "X`expr 00001 : '.*\(...\)'`" = X001; then 483 as_expr=expr 484 else 485 as_expr=false 486 fi 487 488 rm -f conf$$ conf$$.exe conf$$.file 489 if test -d conf$$.dir; then 490 rm -f conf$$.dir/conf$$.file 491 else 492 rm -f conf$$.dir 493 mkdir conf$$.dir 494 fi 495 echo >conf$$.file 496 if ln -s conf$$.file conf$$ 2>/dev/null; then 497 as_ln_s='ln -s' 498 # ... but there are two gotchas: 499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 501 # In both cases, we have to default to `cp -p'. 502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 503 as_ln_s='cp -p' 504 elif ln conf$$.file conf$$ 2>/dev/null; then 505 as_ln_s=ln 506 else 507 as_ln_s='cp -p' 508 fi 509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510 rmdir conf$$.dir 2>/dev/null 511 512 if mkdir -p . 2>/dev/null; then 513 as_mkdir_p=: 514 else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517 fi 518 519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as 520 # systems may use methods other than mode bits to determine executability. 521 cat >conf$$.file <<_ASEOF 522 #! /bin/sh 523 exit 0 524 _ASEOF 525 chmod +x conf$$.file 526 if test -x conf$$.file >/dev/null 2>&1; then 527 as_executable_p="test -x" 528 else 529 as_executable_p=: 530 fi 531 rm -f conf$$.file 532 533 # Sed expression to map a string onto a valid CPP name. 534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536 # Sed expression to map a string onto a valid variable name. 537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 541 exec 7<&0 </dev/null 6>&1 542 543 # Name of the host. 544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 545 # so uname gets run too. 546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 547 548 # 549 # Initializations. 550 # 551 ac_default_prefix=/usr/local 552 ac_clean_files= 553 ac_config_libobj_dir=. 554 LIBOBJS= 555 cross_compiling=no 556 subdirs= 557 MFLAGS= 558 MAKEFLAGS= 559 SHELL=${CONFIG_SHELL-/bin/sh} 560 561 # Identity of this package. 562 PACKAGE_NAME='LLVM' 563 PACKAGE_TARNAME='llvm' 564 PACKAGE_VERSION='3.3svn' 565 PACKAGE_STRING='LLVM 3.3svn' 566 PACKAGE_BUGREPORT='http://llvm.org/bugs/' 567 568 ac_unique_file="lib/IR/Module.cpp" 569 # Factoring default headers for most tests. 570 ac_includes_default="\ 571 #include <stdio.h> 572 #if HAVE_SYS_TYPES_H 573 # include <sys/types.h> 574 #endif 575 #if HAVE_SYS_STAT_H 576 # include <sys/stat.h> 577 #endif 578 #if STDC_HEADERS 579 # include <stdlib.h> 580 # include <stddef.h> 581 #else 582 # if HAVE_STDLIB_H 583 # include <stdlib.h> 584 # endif 585 #endif 586 #if HAVE_STRING_H 587 # if !STDC_HEADERS && HAVE_MEMORY_H 588 # include <memory.h> 589 # endif 590 # include <string.h> 591 #endif 592 #if HAVE_STRINGS_H 593 # include <strings.h> 594 #endif 595 #if HAVE_INTTYPES_H 596 # include <inttypes.h> 597 #endif 598 #if HAVE_STDINT_H 599 # include <stdint.h> 600 #endif 601 #if HAVE_UNISTD_H 602 # include <unistd.h> 603 #endif" 604 605 ac_subst_vars='SHELL 606 PATH_SEPARATOR 607 PACKAGE_NAME 608 PACKAGE_TARNAME 609 PACKAGE_VERSION 610 PACKAGE_STRING 611 PACKAGE_BUGREPORT 612 exec_prefix 613 prefix 614 program_transform_name 615 bindir 616 sbindir 617 libexecdir 618 datarootdir 619 datadir 620 sysconfdir 621 sharedstatedir 622 localstatedir 623 includedir 624 oldincludedir 625 docdir 626 infodir 627 htmldir 628 dvidir 629 pdfdir 630 psdir 631 libdir 632 localedir 633 mandir 634 DEFS 635 ECHO_C 636 ECHO_N 637 ECHO_T 638 LIBS 639 build_alias 640 host_alias 641 target_alias 642 LLVM_COPYRIGHT 643 CC 644 CFLAGS 645 LDFLAGS 646 CPPFLAGS 647 ac_ct_CC 648 EXEEXT 649 OBJEXT 650 CXX 651 CXXFLAGS 652 ac_ct_CXX 653 CPP 654 subdirs 655 ENABLE_POLLY 656 LLVM_HAS_POLLY 657 build 658 build_cpu 659 build_vendor 660 build_os 661 host 662 host_cpu 663 host_vendor 664 host_os 665 target 666 target_cpu 667 target_vendor 668 target_os 669 OS 670 HOST_OS 671 TARGET_OS 672 LINKALL 673 NOLINKALL 674 LLVM_ON_UNIX 675 LLVM_ON_WIN32 676 ARCH 677 HOST_ARCH 678 ENDIAN 679 GREP 680 EGREP 681 LLVM_CROSS_COMPILING 682 BUILD_CC 683 BUILD_EXEEXT 684 BUILD_CXX 685 CVSBUILD 686 ENABLE_LIBCPP 687 ENABLE_CXX11 688 ENABLE_CLANG_ARCMT 689 ENABLE_CLANG_STATIC_ANALYZER 690 ENABLE_CLANG_REWRITER 691 ENABLE_OPTIMIZED 692 ENABLE_PROFILING 693 DISABLE_ASSERTIONS 694 ENABLE_WERROR 695 ENABLE_EXPENSIVE_CHECKS 696 EXPENSIVE_CHECKS 697 DEBUG_RUNTIME 698 DEBUG_SYMBOLS 699 KEEP_SYMBOLS 700 JIT 701 TARGET_HAS_JIT 702 ENABLE_DOCS 703 ENABLE_DOXYGEN 704 LLVM_ENABLE_THREADS 705 ENABLE_PTHREADS 706 ENABLE_PIC 707 ENABLE_SHARED 708 ENABLE_EMBED_STDCXX 709 ENABLE_TIMESTAMPS 710 ENABLE_BACKTRACES 711 TARGETS_TO_BUILD 712 LLVM_ENUM_TARGETS 713 LLVM_ENUM_ASM_PRINTERS 714 LLVM_ENUM_ASM_PARSERS 715 LLVM_ENUM_DISASSEMBLERS 716 OPTIMIZE_OPTION 717 EXTRA_OPTIONS 718 EXTRA_LD_OPTIONS 719 CLANG_SRC_ROOT 720 BINUTILS_INCDIR 721 INTERNAL_PREFIX 722 NM 723 ifGNUmake 724 LN_S 725 CMP 726 CP 727 DATE 728 FIND 729 MKDIR 730 MV 731 RANLIB 732 AR 733 RM 734 SED 735 TAR 736 BINPWD 737 GRAPHVIZ 738 DOT 739 FDP 740 NEATO 741 TWOPI 742 CIRCO 743 GV 744 DOTTY 745 XDOT_PY 746 INSTALL_PROGRAM 747 INSTALL_SCRIPT 748 INSTALL_DATA 749 BZIP2 750 CAT 751 DOXYGEN 752 GROFF 753 GZIPBIN 754 PDFROFF 755 ZIP 756 OCAMLC 757 OCAMLOPT 758 OCAMLDEP 759 OCAMLDOC 760 GAS 761 HAVE_LINK_VERSION_SCRIPT 762 INSTALL_LTDL_TRUE 763 INSTALL_LTDL_FALSE 764 CONVENIENCE_LTDL_TRUE 765 CONVENIENCE_LTDL_FALSE 766 LIBADD_DL 767 NO_VARIADIC_MACROS 768 NO_MISSING_FIELD_INITIALIZERS 769 COVERED_SWITCH_DEFAULT 770 NO_MAYBE_UNINITIALIZED 771 NO_UNINITIALIZED 772 PYTHON 773 USE_UDIS86 774 USE_OPROFILE 775 USE_INTEL_JITEVENTS 776 XML2CONFIG 777 LIBXML2_LIBS 778 LIBXML2_INC 779 HAVE_PTHREAD 780 HUGE_VAL_SANITY 781 MMAP_FILE 782 SHLIBEXT 783 SHLIBPATH_VAR 784 LLVM_PREFIX 785 LLVM_BINDIR 786 LLVM_LIBDIR 787 LLVM_DATADIR 788 LLVM_DOCSDIR 789 LLVM_ETCDIR 790 LLVM_INCLUDEDIR 791 LLVM_INFODIR 792 LLVM_MANDIR 793 LLVM_CONFIGTIME 794 BINDINGS_TO_BUILD 795 ALL_BINDINGS 796 OCAML_LIBDIR 797 ENABLE_VISIBILITY_INLINES_HIDDEN 798 RPATH 799 RDYNAMIC 800 program_prefix 801 LIBOBJS 802 LTLIBOBJS' 803 ac_subst_files='' 804 ac_precious_vars='build_alias 805 host_alias 806 target_alias 807 CC 808 CFLAGS 809 LDFLAGS 810 CPPFLAGS 811 CXX 812 CXXFLAGS 813 CCC 814 CPP' 815 ac_subdirs_all='projects/llvm-gcc 816 projects/test-suite 817 projects/llvm-test 818 projects/poolalloc 819 projects/llvm-poolalloc 820 projects/sample 821 projects/privbracket 822 projects/llvm-stacker 823 projects/llvm-reopt 824 projects/llvm-java 825 projects/llvm-tv 826 projects/safecode 827 projects/llvm-kernel 828 tools/polly' 829 830 # Initialize some variables set by options. 831 ac_init_help= 832 ac_init_version=false 833 # The variables have the same names as the options, with 834 # dashes changed to underlines. 835 cache_file=/dev/null 836 exec_prefix=NONE 837 no_create= 838 no_recursion= 839 prefix=NONE 840 program_prefix=NONE 841 program_suffix=NONE 842 program_transform_name=s,x,x, 843 silent= 844 site= 845 srcdir= 846 verbose= 847 x_includes=NONE 848 x_libraries=NONE 849 850 # Installation directory options. 851 # These are left unexpanded so users can "make install exec_prefix=/foo" 852 # and all the variables that are supposed to be based on exec_prefix 853 # by default will actually change. 854 # Use braces instead of parens because sh, perl, etc. also accept them. 855 # (The list follows the same order as the GNU Coding Standards.) 856 bindir='${exec_prefix}/bin' 857 sbindir='${exec_prefix}/sbin' 858 libexecdir='${exec_prefix}/libexec' 859 datarootdir='${prefix}/share' 860 datadir='${datarootdir}' 861 sysconfdir='${prefix}/etc' 862 sharedstatedir='${prefix}/com' 863 localstatedir='${prefix}/var' 864 includedir='${prefix}/include' 865 oldincludedir='/usr/include' 866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 867 infodir='${datarootdir}/info' 868 htmldir='${docdir}' 869 dvidir='${docdir}' 870 pdfdir='${docdir}' 871 psdir='${docdir}' 872 libdir='${exec_prefix}/lib' 873 localedir='${datarootdir}/locale' 874 mandir='${datarootdir}/man' 875 876 ac_prev= 877 ac_dashdash= 878 for ac_option 879 do 880 # If the previous option needs an argument, assign it. 881 if test -n "$ac_prev"; then 882 eval $ac_prev=\$ac_option 883 ac_prev= 884 continue 885 fi 886 887 case $ac_option in 888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 889 *) ac_optarg=yes ;; 890 esac 891 892 # Accept the important Cygnus configure options, so we can diagnose typos. 893 894 case $ac_dashdash$ac_option in 895 --) 896 ac_dashdash=yes ;; 897 898 -bindir | --bindir | --bindi | --bind | --bin | --bi) 899 ac_prev=bindir ;; 900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 901 bindir=$ac_optarg ;; 902 903 -build | --build | --buil | --bui | --bu) 904 ac_prev=build_alias ;; 905 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 906 build_alias=$ac_optarg ;; 907 908 -cache-file | --cache-file | --cache-fil | --cache-fi \ 909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 910 ac_prev=cache_file ;; 911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 913 cache_file=$ac_optarg ;; 914 915 --config-cache | -C) 916 cache_file=config.cache ;; 917 918 -datadir | --datadir | --datadi | --datad) 919 ac_prev=datadir ;; 920 -datadir=* | --datadir=* | --datadi=* | --datad=*) 921 datadir=$ac_optarg ;; 922 923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 924 | --dataroo | --dataro | --datar) 925 ac_prev=datarootdir ;; 926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 928 datarootdir=$ac_optarg ;; 929 930 -disable-* | --disable-*) 931 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 934 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 935 { (exit 1); exit 1; }; } 936 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 937 eval enable_$ac_feature=no ;; 938 939 -docdir | --docdir | --docdi | --doc | --do) 940 ac_prev=docdir ;; 941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 942 docdir=$ac_optarg ;; 943 944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 945 ac_prev=dvidir ;; 946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 947 dvidir=$ac_optarg ;; 948 949 -enable-* | --enable-*) 950 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 953 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 954 { (exit 1); exit 1; }; } 955 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 956 eval enable_$ac_feature=\$ac_optarg ;; 957 958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 960 | --exec | --exe | --ex) 961 ac_prev=exec_prefix ;; 962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 964 | --exec=* | --exe=* | --ex=*) 965 exec_prefix=$ac_optarg ;; 966 967 -gas | --gas | --ga | --g) 968 # Obsolete; use --with-gas. 969 with_gas=yes ;; 970 971 -help | --help | --hel | --he | -h) 972 ac_init_help=long ;; 973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 974 ac_init_help=recursive ;; 975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 976 ac_init_help=short ;; 977 978 -host | --host | --hos | --ho) 979 ac_prev=host_alias ;; 980 -host=* | --host=* | --hos=* | --ho=*) 981 host_alias=$ac_optarg ;; 982 983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 984 ac_prev=htmldir ;; 985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 986 | --ht=*) 987 htmldir=$ac_optarg ;; 988 989 -includedir | --includedir | --includedi | --included | --include \ 990 | --includ | --inclu | --incl | --inc) 991 ac_prev=includedir ;; 992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 993 | --includ=* | --inclu=* | --incl=* | --inc=*) 994 includedir=$ac_optarg ;; 995 996 -infodir | --infodir | --infodi | --infod | --info | --inf) 997 ac_prev=infodir ;; 998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 999 infodir=$ac_optarg ;; 1000 1001 -libdir | --libdir | --libdi | --libd) 1002 ac_prev=libdir ;; 1003 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1004 libdir=$ac_optarg ;; 1005 1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1007 | --libexe | --libex | --libe) 1008 ac_prev=libexecdir ;; 1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1010 | --libexe=* | --libex=* | --libe=*) 1011 libexecdir=$ac_optarg ;; 1012 1013 -localedir | --localedir | --localedi | --localed | --locale) 1014 ac_prev=localedir ;; 1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1016 localedir=$ac_optarg ;; 1017 1018 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1019 | --localstate | --localstat | --localsta | --localst | --locals) 1020 ac_prev=localstatedir ;; 1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1023 localstatedir=$ac_optarg ;; 1024 1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1026 ac_prev=mandir ;; 1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1028 mandir=$ac_optarg ;; 1029 1030 -nfp | --nfp | --nf) 1031 # Obsolete; use --without-fp. 1032 with_fp=no ;; 1033 1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1035 | --no-cr | --no-c | -n) 1036 no_create=yes ;; 1037 1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1040 no_recursion=yes ;; 1041 1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1044 | --oldin | --oldi | --old | --ol | --o) 1045 ac_prev=oldincludedir ;; 1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1049 oldincludedir=$ac_optarg ;; 1050 1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1052 ac_prev=prefix ;; 1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1054 prefix=$ac_optarg ;; 1055 1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1057 | --program-pre | --program-pr | --program-p) 1058 ac_prev=program_prefix ;; 1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1061 program_prefix=$ac_optarg ;; 1062 1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1064 | --program-suf | --program-su | --program-s) 1065 ac_prev=program_suffix ;; 1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1068 program_suffix=$ac_optarg ;; 1069 1070 -program-transform-name | --program-transform-name \ 1071 | --program-transform-nam | --program-transform-na \ 1072 | --program-transform-n | --program-transform- \ 1073 | --program-transform | --program-transfor \ 1074 | --program-transfo | --program-transf \ 1075 | --program-trans | --program-tran \ 1076 | --progr-tra | --program-tr | --program-t) 1077 ac_prev=program_transform_name ;; 1078 -program-transform-name=* | --program-transform-name=* \ 1079 | --program-transform-nam=* | --program-transform-na=* \ 1080 | --program-transform-n=* | --program-transform-=* \ 1081 | --program-transform=* | --program-transfor=* \ 1082 | --program-transfo=* | --program-transf=* \ 1083 | --program-trans=* | --program-tran=* \ 1084 | --progr-tra=* | --program-tr=* | --program-t=*) 1085 program_transform_name=$ac_optarg ;; 1086 1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1088 ac_prev=pdfdir ;; 1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1090 pdfdir=$ac_optarg ;; 1091 1092 -psdir | --psdir | --psdi | --psd | --ps) 1093 ac_prev=psdir ;; 1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1095 psdir=$ac_optarg ;; 1096 1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1098 | -silent | --silent | --silen | --sile | --sil) 1099 silent=yes ;; 1100 1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1102 ac_prev=sbindir ;; 1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1104 | --sbi=* | --sb=*) 1105 sbindir=$ac_optarg ;; 1106 1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1109 | --sharedst | --shareds | --shared | --share | --shar \ 1110 | --sha | --sh) 1111 ac_prev=sharedstatedir ;; 1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1115 | --sha=* | --sh=*) 1116 sharedstatedir=$ac_optarg ;; 1117 1118 -site | --site | --sit) 1119 ac_prev=site ;; 1120 -site=* | --site=* | --sit=*) 1121 site=$ac_optarg ;; 1122 1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1124 ac_prev=srcdir ;; 1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1126 srcdir=$ac_optarg ;; 1127 1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1129 | --syscon | --sysco | --sysc | --sys | --sy) 1130 ac_prev=sysconfdir ;; 1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1133 sysconfdir=$ac_optarg ;; 1134 1135 -target | --target | --targe | --targ | --tar | --ta | --t) 1136 ac_prev=target_alias ;; 1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1138 target_alias=$ac_optarg ;; 1139 1140 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1141 verbose=yes ;; 1142 1143 -version | --version | --versio | --versi | --vers | -V) 1144 ac_init_version=: ;; 1145 1146 -with-* | --with-*) 1147 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1150 { echo "$as_me: error: invalid package name: $ac_package" >&2 1151 { (exit 1); exit 1; }; } 1152 ac_package=`echo $ac_package| sed 's/-/_/g'` 1153 eval with_$ac_package=\$ac_optarg ;; 1154 1155 -without-* | --without-*) 1156 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1157 # Reject names that are not valid shell variable names. 1158 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1159 { echo "$as_me: error: invalid package name: $ac_package" >&2 1160 { (exit 1); exit 1; }; } 1161 ac_package=`echo $ac_package | sed 's/-/_/g'` 1162 eval with_$ac_package=no ;; 1163 1164 --x) 1165 # Obsolete; use --with-x. 1166 with_x=yes ;; 1167 1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1169 | --x-incl | --x-inc | --x-in | --x-i) 1170 ac_prev=x_includes ;; 1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1173 x_includes=$ac_optarg ;; 1174 1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1177 ac_prev=x_libraries ;; 1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1180 x_libraries=$ac_optarg ;; 1181 1182 -*) { echo "$as_me: error: unrecognized option: $ac_option 1183 Try \`$0 --help' for more information." >&2 1184 { (exit 1); exit 1; }; } 1185 ;; 1186 1187 *=*) 1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1189 # Reject names that are not valid shell variable names. 1190 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1191 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1192 { (exit 1); exit 1; }; } 1193 eval $ac_envvar=\$ac_optarg 1194 export $ac_envvar ;; 1195 1196 *) 1197 # FIXME: should be removed in autoconf 3.0. 1198 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1200 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1201 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1202 ;; 1203 1204 esac 1205 done 1206 1207 if test -n "$ac_prev"; then 1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1209 { echo "$as_me: error: missing argument to $ac_option" >&2 1210 { (exit 1); exit 1; }; } 1211 fi 1212 1213 # Be sure to have absolute directory names. 1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1215 datadir sysconfdir sharedstatedir localstatedir includedir \ 1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1217 libdir localedir mandir 1218 do 1219 eval ac_val=\$$ac_var 1220 case $ac_val in 1221 [\\/$]* | ?:[\\/]* ) continue;; 1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1223 esac 1224 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1225 { (exit 1); exit 1; }; } 1226 done 1227 1228 # There might be people who depend on the old broken behavior: `$host' 1229 # used to hold the argument of --host etc. 1230 # FIXME: To remove some day. 1231 build=$build_alias 1232 host=$host_alias 1233 target=$target_alias 1234 1235 # FIXME: To remove some day. 1236 if test "x$host_alias" != x; then 1237 if test "x$build_alias" = x; then 1238 cross_compiling=maybe 1239 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1240 If a cross compiler is detected then cross compile mode will be used." >&2 1241 elif test "x$build_alias" != "x$host_alias"; then 1242 cross_compiling=yes 1243 fi 1244 fi 1245 1246 ac_tool_prefix= 1247 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1248 1249 test "$silent" = yes && exec 6>/dev/null 1250 1251 1252 ac_pwd=`pwd` && test -n "$ac_pwd" && 1253 ac_ls_di=`ls -di .` && 1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1255 { echo "$as_me: error: Working directory cannot be determined" >&2 1256 { (exit 1); exit 1; }; } 1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1258 { echo "$as_me: error: pwd does not report name of working directory" >&2 1259 { (exit 1); exit 1; }; } 1260 1261 1262 # Find the source files, if location was not specified. 1263 if test -z "$srcdir"; then 1264 ac_srcdir_defaulted=yes 1265 # Try the directory containing this script, then the parent directory. 1266 ac_confdir=`$as_dirname -- "$0" || 1267 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1268 X"$0" : 'X\(//\)[^/]' \| \ 1269 X"$0" : 'X\(//\)$' \| \ 1270 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1271 echo X"$0" | 1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)[^/].*/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)$/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\).*/{ 1285 s//\1/ 1286 q 1287 } 1288 s/.*/./; q'` 1289 srcdir=$ac_confdir 1290 if test ! -r "$srcdir/$ac_unique_file"; then 1291 srcdir=.. 1292 fi 1293 else 1294 ac_srcdir_defaulted=no 1295 fi 1296 if test ! -r "$srcdir/$ac_unique_file"; then 1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1298 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1299 { (exit 1); exit 1; }; } 1300 fi 1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1302 ac_abs_confdir=`( 1303 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1304 { (exit 1); exit 1; }; } 1305 pwd)` 1306 # When building in place, set srcdir=. 1307 if test "$ac_abs_confdir" = "$ac_pwd"; then 1308 srcdir=. 1309 fi 1310 # Remove unnecessary trailing slashes from srcdir. 1311 # Double slashes in file names in object file debugging info 1312 # mess up M-x gdb in Emacs. 1313 case $srcdir in 1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1315 esac 1316 for ac_var in $ac_precious_vars; do 1317 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_env_${ac_var}_value=\$${ac_var} 1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1320 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1321 done 1322 1323 # 1324 # Report the --help message. 1325 # 1326 if test "$ac_init_help" = "long"; then 1327 # Omit some internal or obsolete options to make the list less imposing. 1328 # This message is too long to be a string in the A/UX 3.1 sh. 1329 cat <<_ACEOF 1330 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems. 1331 1332 Usage: $0 [OPTION]... [VAR=VALUE]... 1333 1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1335 VAR=VALUE. See below for descriptions of some of the useful variables. 1336 1337 Defaults for the options are specified in brackets. 1338 1339 Configuration: 1340 -h, --help display this help and exit 1341 --help=short display options specific to this package 1342 --help=recursive display the short help of all the included packages 1343 -V, --version display version information and exit 1344 -q, --quiet, --silent do not print \`checking...' messages 1345 --cache-file=FILE cache test results in FILE [disabled] 1346 -C, --config-cache alias for \`--cache-file=config.cache' 1347 -n, --no-create do not create output files 1348 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1349 1350 Installation directories: 1351 --prefix=PREFIX install architecture-independent files in PREFIX 1352 [$ac_default_prefix] 1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1354 [PREFIX] 1355 1356 By default, \`make install' will install all the files in 1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1359 for instance \`--prefix=\$HOME'. 1360 1361 For better control, use the options below. 1362 1363 Fine tuning of the installation directories: 1364 --bindir=DIR user executables [EPREFIX/bin] 1365 --sbindir=DIR system admin executables [EPREFIX/sbin] 1366 --libexecdir=DIR program executables [EPREFIX/libexec] 1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1370 --libdir=DIR object code libraries [EPREFIX/lib] 1371 --includedir=DIR C header files [PREFIX/include] 1372 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1375 --infodir=DIR info documentation [DATAROOTDIR/info] 1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1377 --mandir=DIR man documentation [DATAROOTDIR/man] 1378 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1379 --htmldir=DIR html documentation [DOCDIR] 1380 --dvidir=DIR dvi documentation [DOCDIR] 1381 --pdfdir=DIR pdf documentation [DOCDIR] 1382 --psdir=DIR ps documentation [DOCDIR] 1383 _ACEOF 1384 1385 cat <<\_ACEOF 1386 1387 System types: 1388 --build=BUILD configure for building on BUILD [guessed] 1389 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1390 --target=TARGET configure for building compilers for TARGET [HOST] 1391 _ACEOF 1392 fi 1393 1394 if test -n "$ac_init_help"; then 1395 case $ac_init_help in 1396 short | recursive ) echo "Configuration of LLVM 3.3svn:";; 1397 esac 1398 cat <<\_ACEOF 1399 1400 Optional Features: 1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1403 --enable-polly Use polly if available (default is YES) 1404 --enable-libcpp Use libc++ if available (default is NO) 1405 --enable-cxx11 Use c++11 if available (default is NO) 1406 --enable-clang-arcmt Enable building of clang ARCMT (default is YES) 1407 --enable-clang-static-analyzer 1408 Enable building of clang Static Analyzer (default is 1409 YES) 1410 --enable-clang-rewriter Enable building of clang rewriter (default is YES) 1411 --enable-optimized Compile with optimizations enabled (default is NO) 1412 --enable-profiling Compile with profiling enabled (default is NO) 1413 --enable-assertions Compile with assertion checks enabled (default is 1414 YES) 1415 --enable-werror Compile with -Werror enabled (default is NO) 1416 --enable-expensive-checks 1417 Compile with expensive debug checks enabled (default 1418 is NO) 1419 --enable-debug-runtime Build runtime libs with debug symbols (default is 1420 NO) 1421 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1422 optimization is on and YES if it's off) 1423 --enable-keep-symbols Do not strip installed executables) 1424 --enable-jit Enable Just In Time Compiling (default is YES) 1425 --enable-docs Build documents (default is YES) 1426 --enable-doxygen Build doxygen documentation (default is NO) 1427 --enable-threads Use threads if available (default is YES) 1428 --enable-pthreads Use pthreads if available (default is YES) 1429 --enable-pic Build LLVM with Position Independent Code (default 1430 is YES) 1431 --enable-shared Build a shared library and link tools against it 1432 (default is NO) 1433 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1434 Win32 DLL (default is NO) 1435 --enable-timestamps Enable embedding timestamp information in build 1436 (default is YES) 1437 --enable-backtraces Enable embedding backtraces on crash (default is 1438 YES) 1439 --enable-targets Build specific host targets: all or 1440 target1,target2,... Valid targets are: host, x86, 1441 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon, 1442 xcore, msp430, nvptx, and cpp (default=all) 1443 --enable-experimental-targets 1444 Build experimental host targets: disable or 1445 target1,target2,... (default=disable) 1446 --enable-bindings Build specific language bindings: 1447 all,auto,none,{binding-name} (default=auto) 1448 --enable-libffi Check for the presence of libffi (default is NO) 1449 --enable-ltdl-install install libltdl 1450 1451 Optional Packages: 1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1454 --with-optimize-option Select the compiler options to use for optimized 1455 builds 1456 --with-extra-options Specify additional options to compile LLVM with 1457 --with-extra-ld-options Specify additional options to link LLVM with 1458 --with-ocaml-libdir Specify install location for ocaml bindings (default 1459 is stdlib) 1460 --with-clang-srcdir Directory to the out-of-tree Clang source 1461 --with-clang-resource-dir 1462 Relative directory from the Clang binary for 1463 resource files 1464 --with-c-include-dirs Colon separated list of directories clang will 1465 search for headers 1466 --with-gcc-toolchain Directory where gcc is installed. 1467 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1468 --with-binutils-include Specify path to binutils/include/ containing 1469 plugin-api.h file for gold plugin. 1470 --with-bug-report-url Specify the URL where bug reports should be 1471 submitted (default=http://llvm.org/bugs/) 1472 --with-internal-prefix Installation directory for internal files 1473 --with-python path to python 1474 --with-udis86=<path> Use udis86 external x86 disassembler library 1475 --with-oprofile=<prefix> 1476 Tell OProfile >= 0.9.4 how to symbolize JIT output 1477 --with-intel-jitevents Notify Intel JIT profiling API of generated code 1478 1479 1480 Some influential environment variables: 1481 CC C compiler command 1482 CFLAGS C compiler flags 1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1484 nonstandard directory <lib dir> 1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1486 you have headers in a nonstandard directory <include dir> 1487 CXX C++ compiler command 1488 CXXFLAGS C++ compiler flags 1489 CPP C preprocessor 1490 1491 Use these variables to override the choices made by `configure' or to help 1492 it to find libraries and programs with nonstandard names/locations. 1493 1494 Report bugs to <http://llvm.org/bugs/>. 1495 _ACEOF 1496 ac_status=$? 1497 fi 1498 1499 if test "$ac_init_help" = "recursive"; then 1500 # If there are subdirs, report their specific --help. 1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1502 test -d "$ac_dir" || continue 1503 ac_builddir=. 1504 1505 case "$ac_dir" in 1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1507 *) 1508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1509 # A ".." for each directory in $ac_dir_suffix. 1510 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1511 case $ac_top_builddir_sub in 1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1514 esac ;; 1515 esac 1516 ac_abs_top_builddir=$ac_pwd 1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1518 # for backward compatibility: 1519 ac_top_builddir=$ac_top_build_prefix 1520 1521 case $srcdir in 1522 .) # We are building in place. 1523 ac_srcdir=. 1524 ac_top_srcdir=$ac_top_builddir_sub 1525 ac_abs_top_srcdir=$ac_pwd ;; 1526 [\\/]* | ?:[\\/]* ) # Absolute name. 1527 ac_srcdir=$srcdir$ac_dir_suffix; 1528 ac_top_srcdir=$srcdir 1529 ac_abs_top_srcdir=$srcdir ;; 1530 *) # Relative name. 1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1532 ac_top_srcdir=$ac_top_build_prefix$srcdir 1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1534 esac 1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1536 1537 cd "$ac_dir" || { ac_status=$?; continue; } 1538 # Check for guested configure. 1539 if test -f "$ac_srcdir/configure.gnu"; then 1540 echo && 1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1542 elif test -f "$ac_srcdir/configure"; then 1543 echo && 1544 $SHELL "$ac_srcdir/configure" --help=recursive 1545 else 1546 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1547 fi || ac_status=$? 1548 cd "$ac_pwd" || { ac_status=$?; break; } 1549 done 1550 fi 1551 1552 test -n "$ac_init_help" && exit $ac_status 1553 if $ac_init_version; then 1554 cat <<\_ACEOF 1555 LLVM configure 3.3svn 1556 generated by GNU Autoconf 2.60 1557 1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1559 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1560 This configure script is free software; the Free Software Foundation 1561 gives unlimited permission to copy, distribute and modify it. 1562 1563 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign. 1564 _ACEOF 1565 exit 1566 fi 1567 cat >config.log <<_ACEOF 1568 This file contains any messages produced by compilers while 1569 running configure, to aid debugging if configure makes a mistake. 1570 1571 It was created by LLVM $as_me 3.3svn, which was 1572 generated by GNU Autoconf 2.60. Invocation command line was 1573 1574 $ $0 $@ 1575 1576 _ACEOF 1577 exec 5>>config.log 1578 { 1579 cat <<_ASUNAME 1580 ## --------- ## 1581 ## Platform. ## 1582 ## --------- ## 1583 1584 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1585 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1586 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1587 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1588 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1589 1590 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1591 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1592 1593 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1594 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1595 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1596 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1597 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1598 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1599 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1600 1601 _ASUNAME 1602 1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1604 for as_dir in $PATH 1605 do 1606 IFS=$as_save_IFS 1607 test -z "$as_dir" && as_dir=. 1608 echo "PATH: $as_dir" 1609 done 1610 IFS=$as_save_IFS 1611 1612 } >&5 1613 1614 cat >&5 <<_ACEOF 1615 1616 1617 ## ----------- ## 1618 ## Core tests. ## 1619 ## ----------- ## 1620 1621 _ACEOF 1622 1623 1624 # Keep a trace of the command line. 1625 # Strip out --no-create and --no-recursion so they do not pile up. 1626 # Strip out --silent because we don't want to record it for future runs. 1627 # Also quote any args containing shell meta-characters. 1628 # Make two passes to allow for proper duplicate-argument suppression. 1629 ac_configure_args= 1630 ac_configure_args0= 1631 ac_configure_args1= 1632 ac_must_keep_next=false 1633 for ac_pass in 1 2 1634 do 1635 for ac_arg 1636 do 1637 case $ac_arg in 1638 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1640 | -silent | --silent | --silen | --sile | --sil) 1641 continue ;; 1642 *\'*) 1643 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1644 esac 1645 case $ac_pass in 1646 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1647 2) 1648 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1649 if test $ac_must_keep_next = true; then 1650 ac_must_keep_next=false # Got value, back to normal. 1651 else 1652 case $ac_arg in 1653 *=* | --config-cache | -C | -disable-* | --disable-* \ 1654 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1655 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1656 | -with-* | --with-* | -without-* | --without-* | --x) 1657 case "$ac_configure_args0 " in 1658 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1659 esac 1660 ;; 1661 -* ) ac_must_keep_next=true ;; 1662 esac 1663 fi 1664 ac_configure_args="$ac_configure_args '$ac_arg'" 1665 ;; 1666 esac 1667 done 1668 done 1669 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1670 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1671 1672 # When interrupted or exit'd, cleanup temporary files, and complete 1673 # config.log. We remove comments because anyway the quotes in there 1674 # would cause problems or look ugly. 1675 # WARNING: Use '\'' to represent an apostrophe within the trap. 1676 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1677 trap 'exit_status=$? 1678 # Save into config.log some information that might help in debugging. 1679 { 1680 echo 1681 1682 cat <<\_ASBOX 1683 ## ---------------- ## 1684 ## Cache variables. ## 1685 ## ---------------- ## 1686 _ASBOX 1687 echo 1688 # The following way of writing the cache mishandles newlines in values, 1689 ( 1690 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1691 eval ac_val=\$$ac_var 1692 case $ac_val in #( 1693 *${as_nl}*) 1694 case $ac_var in #( 1695 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1697 esac 1698 case $ac_var in #( 1699 _ | IFS | as_nl) ;; #( 1700 *) $as_unset $ac_var ;; 1701 esac ;; 1702 esac 1703 done 1704 (set) 2>&1 | 1705 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1706 *${as_nl}ac_space=\ *) 1707 sed -n \ 1708 "s/'\''/'\''\\\\'\'''\''/g; 1709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1710 ;; #( 1711 *) 1712 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1713 ;; 1714 esac | 1715 sort 1716 ) 1717 echo 1718 1719 cat <<\_ASBOX 1720 ## ----------------- ## 1721 ## Output variables. ## 1722 ## ----------------- ## 1723 _ASBOX 1724 echo 1725 for ac_var in $ac_subst_vars 1726 do 1727 eval ac_val=\$$ac_var 1728 case $ac_val in 1729 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1730 esac 1731 echo "$ac_var='\''$ac_val'\''" 1732 done | sort 1733 echo 1734 1735 if test -n "$ac_subst_files"; then 1736 cat <<\_ASBOX 1737 ## ------------------- ## 1738 ## File substitutions. ## 1739 ## ------------------- ## 1740 _ASBOX 1741 echo 1742 for ac_var in $ac_subst_files 1743 do 1744 eval ac_val=\$$ac_var 1745 case $ac_val in 1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1747 esac 1748 echo "$ac_var='\''$ac_val'\''" 1749 done | sort 1750 echo 1751 fi 1752 1753 if test -s confdefs.h; then 1754 cat <<\_ASBOX 1755 ## ----------- ## 1756 ## confdefs.h. ## 1757 ## ----------- ## 1758 _ASBOX 1759 echo 1760 cat confdefs.h 1761 echo 1762 fi 1763 test "$ac_signal" != 0 && 1764 echo "$as_me: caught signal $ac_signal" 1765 echo "$as_me: exit $exit_status" 1766 } >&5 1767 rm -f core *.core core.conftest.* && 1768 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1769 exit $exit_status 1770 ' 0 1771 for ac_signal in 1 2 13 15; do 1772 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1773 done 1774 ac_signal=0 1775 1776 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1777 rm -f -r conftest* confdefs.h 1778 1779 # Predefined preprocessor variables. 1780 1781 cat >>confdefs.h <<_ACEOF 1782 #define PACKAGE_NAME "$PACKAGE_NAME" 1783 _ACEOF 1784 1785 1786 cat >>confdefs.h <<_ACEOF 1787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1788 _ACEOF 1789 1790 1791 cat >>confdefs.h <<_ACEOF 1792 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1793 _ACEOF 1794 1795 1796 cat >>confdefs.h <<_ACEOF 1797 #define PACKAGE_STRING "$PACKAGE_STRING" 1798 _ACEOF 1799 1800 1801 cat >>confdefs.h <<_ACEOF 1802 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1803 _ACEOF 1804 1805 1806 # Let the site file select an alternate cache file if it wants to. 1807 # Prefer explicitly selected file to automatically selected ones. 1808 if test -n "$CONFIG_SITE"; then 1809 set x "$CONFIG_SITE" 1810 elif test "x$prefix" != xNONE; then 1811 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1812 else 1813 set x "$ac_default_prefix/share/config.site" \ 1814 "$ac_default_prefix/etc/config.site" 1815 fi 1816 shift 1817 for ac_site_file 1818 do 1819 if test -r "$ac_site_file"; then 1820 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1821 echo "$as_me: loading site script $ac_site_file" >&6;} 1822 sed 's/^/| /' "$ac_site_file" >&5 1823 . "$ac_site_file" 1824 fi 1825 done 1826 1827 if test -r "$cache_file"; then 1828 # Some versions of bash will fail to source /dev/null (special 1829 # files actually), so we avoid doing that. 1830 if test -f "$cache_file"; then 1831 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1832 echo "$as_me: loading cache $cache_file" >&6;} 1833 case $cache_file in 1834 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1835 *) . "./$cache_file";; 1836 esac 1837 fi 1838 else 1839 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1840 echo "$as_me: creating cache $cache_file" >&6;} 1841 >$cache_file 1842 fi 1843 1844 # Check that the precious variables saved in the cache have kept the same 1845 # value. 1846 ac_cache_corrupted=false 1847 for ac_var in $ac_precious_vars; do 1848 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1849 eval ac_new_set=\$ac_env_${ac_var}_set 1850 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1851 eval ac_new_val=\$ac_env_${ac_var}_value 1852 case $ac_old_set,$ac_new_set in 1853 set,) 1854 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1855 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1856 ac_cache_corrupted=: ;; 1857 ,set) 1858 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1859 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1860 ac_cache_corrupted=: ;; 1861 ,);; 1862 *) 1863 if test "x$ac_old_val" != "x$ac_new_val"; then 1864 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1865 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1866 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1867 echo "$as_me: former value: $ac_old_val" >&2;} 1868 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1869 echo "$as_me: current value: $ac_new_val" >&2;} 1870 ac_cache_corrupted=: 1871 fi;; 1872 esac 1873 # Pass precious variables to config.status. 1874 if test "$ac_new_set" = set; then 1875 case $ac_new_val in 1876 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1877 *) ac_arg=$ac_var=$ac_new_val ;; 1878 esac 1879 case " $ac_configure_args " in 1880 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1881 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1882 esac 1883 fi 1884 done 1885 if $ac_cache_corrupted; then 1886 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1887 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1888 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1889 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1890 { (exit 1); exit 1; }; } 1891 fi 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 ac_ext=c 1918 ac_cpp='$CPP $CPPFLAGS' 1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1922 1923 1924 1925 cat >>confdefs.h <<\_ACEOF 1926 #define LLVM_VERSION_MAJOR 3 1927 _ACEOF 1928 1929 1930 cat >>confdefs.h <<\_ACEOF 1931 #define LLVM_VERSION_MINOR 3 1932 _ACEOF 1933 1934 1935 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign." 1936 1937 1938 1939 1940 1941 1942 1943 ac_aux_dir= 1944 for ac_dir in autoconf "$srcdir"/autoconf; do 1945 if test -f "$ac_dir/install-sh"; then 1946 ac_aux_dir=$ac_dir 1947 ac_install_sh="$ac_aux_dir/install-sh -c" 1948 break 1949 elif test -f "$ac_dir/install.sh"; then 1950 ac_aux_dir=$ac_dir 1951 ac_install_sh="$ac_aux_dir/install.sh -c" 1952 break 1953 elif test -f "$ac_dir/shtool"; then 1954 ac_aux_dir=$ac_dir 1955 ac_install_sh="$ac_aux_dir/shtool install -c" 1956 break 1957 fi 1958 done 1959 if test -z "$ac_aux_dir"; then 1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1961 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1962 { (exit 1); exit 1; }; } 1963 fi 1964 1965 # These three variables are undocumented and unsupported, 1966 # and are intended to be withdrawn in a future Autoconf release. 1967 # They can cause serious problems if a builder's source tree is in a directory 1968 # whose full name contains unusual characters. 1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1972 1973 1974 1975 if test ${srcdir} != "." ; then 1976 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1977 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1978 echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1979 { (exit 1); exit 1; }; } 1980 fi 1981 fi 1982 1983 ${CFLAGS=} 1984 ${CXXFLAGS=} 1985 1986 ac_ext=c 1987 ac_cpp='$CPP $CPPFLAGS' 1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1991 if test -n "$ac_tool_prefix"; then 1992 for ac_prog in clang llvm-gcc gcc 1993 do 1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1998 if test "${ac_cv_prog_CC+set}" = set; then 1999 echo $ECHO_N "(cached) $ECHO_C" >&6 2000 else 2001 if test -n "$CC"; then 2002 ac_cv_prog_CC="$CC" # Let the user override the test. 2003 else 2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2005 for as_dir in $PATH 2006 do 2007 IFS=$as_save_IFS 2008 test -z "$as_dir" && as_dir=. 2009 for ac_exec_ext in '' $ac_executable_extensions; do 2010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2013 break 2 2014 fi 2015 done 2016 done 2017 IFS=$as_save_IFS 2018 2019 fi 2020 fi 2021 CC=$ac_cv_prog_CC 2022 if test -n "$CC"; then 2023 { echo "$as_me:$LINENO: result: $CC" >&5 2024 echo "${ECHO_T}$CC" >&6; } 2025 else 2026 { echo "$as_me:$LINENO: result: no" >&5 2027 echo "${ECHO_T}no" >&6; } 2028 fi 2029 2030 2031 test -n "$CC" && break 2032 done 2033 fi 2034 if test -z "$CC"; then 2035 ac_ct_CC=$CC 2036 for ac_prog in clang llvm-gcc gcc 2037 do 2038 # Extract the first word of "$ac_prog", so it can be a program name with args. 2039 set dummy $ac_prog; ac_word=$2 2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2043 echo $ECHO_N "(cached) $ECHO_C" >&6 2044 else 2045 if test -n "$ac_ct_CC"; then 2046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2047 else 2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2049 for as_dir in $PATH 2050 do 2051 IFS=$as_save_IFS 2052 test -z "$as_dir" && as_dir=. 2053 for ac_exec_ext in '' $ac_executable_extensions; do 2054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2055 ac_cv_prog_ac_ct_CC="$ac_prog" 2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2057 break 2 2058 fi 2059 done 2060 done 2061 IFS=$as_save_IFS 2062 2063 fi 2064 fi 2065 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2066 if test -n "$ac_ct_CC"; then 2067 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2068 echo "${ECHO_T}$ac_ct_CC" >&6; } 2069 else 2070 { echo "$as_me:$LINENO: result: no" >&5 2071 echo "${ECHO_T}no" >&6; } 2072 fi 2073 2074 2075 test -n "$ac_ct_CC" && break 2076 done 2077 2078 if test "x$ac_ct_CC" = x; then 2079 CC="" 2080 else 2081 case $cross_compiling:$ac_tool_warned in 2082 yes:) 2083 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2084 whose name does not start with the host triplet. If you think this 2085 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2086 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2087 whose name does not start with the host triplet. If you think this 2088 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2089 ac_tool_warned=yes ;; 2090 esac 2091 CC=$ac_ct_CC 2092 fi 2093 fi 2094 2095 2096 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2097 See \`config.log' for more details." >&5 2098 echo "$as_me: error: no acceptable C compiler found in \$PATH 2099 See \`config.log' for more details." >&2;} 2100 { (exit 1); exit 1; }; } 2101 2102 # Provide some information about the compiler. 2103 echo "$as_me:$LINENO: checking for C compiler version" >&5 2104 ac_compiler=`set X $ac_compile; echo $2` 2105 { (ac_try="$ac_compiler --version >&5" 2106 case "(($ac_try" in 2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2108 *) ac_try_echo=$ac_try;; 2109 esac 2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2111 (eval "$ac_compiler --version >&5") 2>&5 2112 ac_status=$? 2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2114 (exit $ac_status); } 2115 { (ac_try="$ac_compiler -v >&5" 2116 case "(($ac_try" in 2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2118 *) ac_try_echo=$ac_try;; 2119 esac 2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2121 (eval "$ac_compiler -v >&5") 2>&5 2122 ac_status=$? 2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2124 (exit $ac_status); } 2125 { (ac_try="$ac_compiler -V >&5" 2126 case "(($ac_try" in 2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2128 *) ac_try_echo=$ac_try;; 2129 esac 2130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2131 (eval "$ac_compiler -V >&5") 2>&5 2132 ac_status=$? 2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2134 (exit $ac_status); } 2135 2136 cat >conftest.$ac_ext <<_ACEOF 2137 /* confdefs.h. */ 2138 _ACEOF 2139 cat confdefs.h >>conftest.$ac_ext 2140 cat >>conftest.$ac_ext <<_ACEOF 2141 /* end confdefs.h. */ 2142 2143 int 2144 main () 2145 { 2146 2147 ; 2148 return 0; 2149 } 2150 _ACEOF 2151 ac_clean_files_save=$ac_clean_files 2152 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2153 # Try to create an executable without -o first, disregard a.out. 2154 # It will help us diagnose broken compilers, and finding out an intuition 2155 # of exeext. 2156 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2157 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2158 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2159 # 2160 # List of possible output files, starting from the most likely. 2161 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2162 # only as a last resort. b.out is created by i960 compilers. 2163 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2164 # 2165 # The IRIX 6 linker writes into existing files which may not be 2166 # executable, retaining their permissions. Remove them first so a 2167 # subsequent execution test works. 2168 ac_rmfiles= 2169 for ac_file in $ac_files 2170 do 2171 case $ac_file in 2172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2173 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2174 esac 2175 done 2176 rm -f $ac_rmfiles 2177 2178 if { (ac_try="$ac_link_default" 2179 case "(($ac_try" in 2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2181 *) ac_try_echo=$ac_try;; 2182 esac 2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2184 (eval "$ac_link_default") 2>&5 2185 ac_status=$? 2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2187 (exit $ac_status); }; then 2188 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2189 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2190 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2191 # so that the user can short-circuit this test for compilers unknown to 2192 # Autoconf. 2193 for ac_file in $ac_files 2194 do 2195 test -f "$ac_file" || continue 2196 case $ac_file in 2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2198 ;; 2199 [ab].out ) 2200 # We found the default executable, but exeext='' is most 2201 # certainly right. 2202 break;; 2203 *.* ) 2204 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2205 then :; else 2206 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2207 fi 2208 # We set ac_cv_exeext here because the later test for it is not 2209 # safe: cross compilers may not add the suffix if given an `-o' 2210 # argument, so we may need to know it at that point already. 2211 # Even if this section looks crufty: it has the advantage of 2212 # actually working. 2213 break;; 2214 * ) 2215 break;; 2216 esac 2217 done 2218 test "$ac_cv_exeext" = no && ac_cv_exeext= 2219 2220 else 2221 echo "$as_me: failed program was:" >&5 2222 sed 's/^/| /' conftest.$ac_ext >&5 2223 2224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2225 See \`config.log' for more details." >&5 2226 echo "$as_me: error: C compiler cannot create executables 2227 See \`config.log' for more details." >&2;} 2228 { (exit 77); exit 77; }; } 2229 fi 2230 2231 ac_exeext=$ac_cv_exeext 2232 { echo "$as_me:$LINENO: result: $ac_file" >&5 2233 echo "${ECHO_T}$ac_file" >&6; } 2234 2235 # Check that the compiler produces executables we can run. If not, either 2236 # the compiler is broken, or we cross compile. 2237 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2238 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2239 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2240 # If not cross compiling, check that we can run a simple program. 2241 if test "$cross_compiling" != yes; then 2242 if { ac_try='./$ac_file' 2243 { (case "(($ac_try" in 2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2245 *) ac_try_echo=$ac_try;; 2246 esac 2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2248 (eval "$ac_try") 2>&5 2249 ac_status=$? 2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2251 (exit $ac_status); }; }; then 2252 cross_compiling=no 2253 else 2254 if test "$cross_compiling" = maybe; then 2255 cross_compiling=yes 2256 else 2257 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2258 If you meant to cross compile, use \`--host'. 2259 See \`config.log' for more details." >&5 2260 echo "$as_me: error: cannot run C compiled programs. 2261 If you meant to cross compile, use \`--host'. 2262 See \`config.log' for more details." >&2;} 2263 { (exit 1); exit 1; }; } 2264 fi 2265 fi 2266 fi 2267 { echo "$as_me:$LINENO: result: yes" >&5 2268 echo "${ECHO_T}yes" >&6; } 2269 2270 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2271 ac_clean_files=$ac_clean_files_save 2272 # Check that the compiler produces executables we can run. If not, either 2273 # the compiler is broken, or we cross compile. 2274 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2275 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2276 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2277 echo "${ECHO_T}$cross_compiling" >&6; } 2278 2279 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2280 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2281 if { (ac_try="$ac_link" 2282 case "(($ac_try" in 2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2284 *) ac_try_echo=$ac_try;; 2285 esac 2286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2287 (eval "$ac_link") 2>&5 2288 ac_status=$? 2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2290 (exit $ac_status); }; then 2291 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2292 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2293 # work properly (i.e., refer to `conftest.exe'), while it won't with 2294 # `rm'. 2295 for ac_file in conftest.exe conftest conftest.*; do 2296 test -f "$ac_file" || continue 2297 case $ac_file in 2298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2299 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2300 break;; 2301 * ) break;; 2302 esac 2303 done 2304 else 2305 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2306 See \`config.log' for more details." >&5 2307 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2308 See \`config.log' for more details." >&2;} 2309 { (exit 1); exit 1; }; } 2310 fi 2311 2312 rm -f conftest$ac_cv_exeext 2313 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2314 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2315 2316 rm -f conftest.$ac_ext 2317 EXEEXT=$ac_cv_exeext 2318 ac_exeext=$EXEEXT 2319 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2320 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2321 if test "${ac_cv_objext+set}" = set; then 2322 echo $ECHO_N "(cached) $ECHO_C" >&6 2323 else 2324 cat >conftest.$ac_ext <<_ACEOF 2325 /* confdefs.h. */ 2326 _ACEOF 2327 cat confdefs.h >>conftest.$ac_ext 2328 cat >>conftest.$ac_ext <<_ACEOF 2329 /* end confdefs.h. */ 2330 2331 int 2332 main () 2333 { 2334 2335 ; 2336 return 0; 2337 } 2338 _ACEOF 2339 rm -f conftest.o conftest.obj 2340 if { (ac_try="$ac_compile" 2341 case "(($ac_try" in 2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2343 *) ac_try_echo=$ac_try;; 2344 esac 2345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2346 (eval "$ac_compile") 2>&5 2347 ac_status=$? 2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2349 (exit $ac_status); }; then 2350 for ac_file in conftest.o conftest.obj conftest.*; do 2351 test -f "$ac_file" || continue; 2352 case $ac_file in 2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2355 break;; 2356 esac 2357 done 2358 else 2359 echo "$as_me: failed program was:" >&5 2360 sed 's/^/| /' conftest.$ac_ext >&5 2361 2362 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2363 See \`config.log' for more details." >&5 2364 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2365 See \`config.log' for more details." >&2;} 2366 { (exit 1); exit 1; }; } 2367 fi 2368 2369 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2370 fi 2371 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2372 echo "${ECHO_T}$ac_cv_objext" >&6; } 2373 OBJEXT=$ac_cv_objext 2374 ac_objext=$OBJEXT 2375 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2376 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2377 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2378 echo $ECHO_N "(cached) $ECHO_C" >&6 2379 else 2380 cat >conftest.$ac_ext <<_ACEOF 2381 /* confdefs.h. */ 2382 _ACEOF 2383 cat confdefs.h >>conftest.$ac_ext 2384 cat >>conftest.$ac_ext <<_ACEOF 2385 /* end confdefs.h. */ 2386 2387 int 2388 main () 2389 { 2390 #ifndef __GNUC__ 2391 choke me 2392 #endif 2393 2394 ; 2395 return 0; 2396 } 2397 _ACEOF 2398 rm -f conftest.$ac_objext 2399 if { (ac_try="$ac_compile" 2400 case "(($ac_try" in 2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2402 *) ac_try_echo=$ac_try;; 2403 esac 2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2405 (eval "$ac_compile") 2>conftest.er1 2406 ac_status=$? 2407 grep -v '^ *+' conftest.er1 >conftest.err 2408 rm -f conftest.er1 2409 cat conftest.err >&5 2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2411 (exit $ac_status); } && 2412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2413 { (case "(($ac_try" in 2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2415 *) ac_try_echo=$ac_try;; 2416 esac 2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2418 (eval "$ac_try") 2>&5 2419 ac_status=$? 2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2421 (exit $ac_status); }; } && 2422 { ac_try='test -s conftest.$ac_objext' 2423 { (case "(($ac_try" in 2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2425 *) ac_try_echo=$ac_try;; 2426 esac 2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2428 (eval "$ac_try") 2>&5 2429 ac_status=$? 2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2431 (exit $ac_status); }; }; then 2432 ac_compiler_gnu=yes 2433 else 2434 echo "$as_me: failed program was:" >&5 2435 sed 's/^/| /' conftest.$ac_ext >&5 2436 2437 ac_compiler_gnu=no 2438 fi 2439 2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2441 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2442 2443 fi 2444 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2445 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2446 GCC=`test $ac_compiler_gnu = yes && echo yes` 2447 ac_test_CFLAGS=${CFLAGS+set} 2448 ac_save_CFLAGS=$CFLAGS 2449 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2450 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2451 if test "${ac_cv_prog_cc_g+set}" = set; then 2452 echo $ECHO_N "(cached) $ECHO_C" >&6 2453 else 2454 ac_save_c_werror_flag=$ac_c_werror_flag 2455 ac_c_werror_flag=yes 2456 ac_cv_prog_cc_g=no 2457 CFLAGS="-g" 2458 cat >conftest.$ac_ext <<_ACEOF 2459 /* confdefs.h. */ 2460 _ACEOF 2461 cat confdefs.h >>conftest.$ac_ext 2462 cat >>conftest.$ac_ext <<_ACEOF 2463 /* end confdefs.h. */ 2464 2465 int 2466 main () 2467 { 2468 2469 ; 2470 return 0; 2471 } 2472 _ACEOF 2473 rm -f conftest.$ac_objext 2474 if { (ac_try="$ac_compile" 2475 case "(($ac_try" in 2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2477 *) ac_try_echo=$ac_try;; 2478 esac 2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2480 (eval "$ac_compile") 2>conftest.er1 2481 ac_status=$? 2482 grep -v '^ *+' conftest.er1 >conftest.err 2483 rm -f conftest.er1 2484 cat conftest.err >&5 2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2486 (exit $ac_status); } && 2487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2488 { (case "(($ac_try" in 2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2490 *) ac_try_echo=$ac_try;; 2491 esac 2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2493 (eval "$ac_try") 2>&5 2494 ac_status=$? 2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2496 (exit $ac_status); }; } && 2497 { ac_try='test -s conftest.$ac_objext' 2498 { (case "(($ac_try" in 2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2500 *) ac_try_echo=$ac_try;; 2501 esac 2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2503 (eval "$ac_try") 2>&5 2504 ac_status=$? 2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2506 (exit $ac_status); }; }; then 2507 ac_cv_prog_cc_g=yes 2508 else 2509 echo "$as_me: failed program was:" >&5 2510 sed 's/^/| /' conftest.$ac_ext >&5 2511 2512 CFLAGS="" 2513 cat >conftest.$ac_ext <<_ACEOF 2514 /* confdefs.h. */ 2515 _ACEOF 2516 cat confdefs.h >>conftest.$ac_ext 2517 cat >>conftest.$ac_ext <<_ACEOF 2518 /* end confdefs.h. */ 2519 2520 int 2521 main () 2522 { 2523 2524 ; 2525 return 0; 2526 } 2527 _ACEOF 2528 rm -f conftest.$ac_objext 2529 if { (ac_try="$ac_compile" 2530 case "(($ac_try" in 2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2532 *) ac_try_echo=$ac_try;; 2533 esac 2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2535 (eval "$ac_compile") 2>conftest.er1 2536 ac_status=$? 2537 grep -v '^ *+' conftest.er1 >conftest.err 2538 rm -f conftest.er1 2539 cat conftest.err >&5 2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2541 (exit $ac_status); } && 2542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2543 { (case "(($ac_try" in 2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2545 *) ac_try_echo=$ac_try;; 2546 esac 2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2548 (eval "$ac_try") 2>&5 2549 ac_status=$? 2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2551 (exit $ac_status); }; } && 2552 { ac_try='test -s conftest.$ac_objext' 2553 { (case "(($ac_try" in 2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2555 *) ac_try_echo=$ac_try;; 2556 esac 2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2558 (eval "$ac_try") 2>&5 2559 ac_status=$? 2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2561 (exit $ac_status); }; }; then 2562 : 2563 else 2564 echo "$as_me: failed program was:" >&5 2565 sed 's/^/| /' conftest.$ac_ext >&5 2566 2567 ac_c_werror_flag=$ac_save_c_werror_flag 2568 CFLAGS="-g" 2569 cat >conftest.$ac_ext <<_ACEOF 2570 /* confdefs.h. */ 2571 _ACEOF 2572 cat confdefs.h >>conftest.$ac_ext 2573 cat >>conftest.$ac_ext <<_ACEOF 2574 /* end confdefs.h. */ 2575 2576 int 2577 main () 2578 { 2579 2580 ; 2581 return 0; 2582 } 2583 _ACEOF 2584 rm -f conftest.$ac_objext 2585 if { (ac_try="$ac_compile" 2586 case "(($ac_try" in 2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2588 *) ac_try_echo=$ac_try;; 2589 esac 2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2591 (eval "$ac_compile") 2>conftest.er1 2592 ac_status=$? 2593 grep -v '^ *+' conftest.er1 >conftest.err 2594 rm -f conftest.er1 2595 cat conftest.err >&5 2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 (exit $ac_status); } && 2598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2599 { (case "(($ac_try" in 2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2601 *) ac_try_echo=$ac_try;; 2602 esac 2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2604 (eval "$ac_try") 2>&5 2605 ac_status=$? 2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2607 (exit $ac_status); }; } && 2608 { ac_try='test -s conftest.$ac_objext' 2609 { (case "(($ac_try" in 2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2611 *) ac_try_echo=$ac_try;; 2612 esac 2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2614 (eval "$ac_try") 2>&5 2615 ac_status=$? 2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2617 (exit $ac_status); }; }; then 2618 ac_cv_prog_cc_g=yes 2619 else 2620 echo "$as_me: failed program was:" >&5 2621 sed 's/^/| /' conftest.$ac_ext >&5 2622 2623 2624 fi 2625 2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2627 fi 2628 2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2630 fi 2631 2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2633 ac_c_werror_flag=$ac_save_c_werror_flag 2634 fi 2635 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2636 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2637 if test "$ac_test_CFLAGS" = set; then 2638 CFLAGS=$ac_save_CFLAGS 2639 elif test $ac_cv_prog_cc_g = yes; then 2640 if test "$GCC" = yes; then 2641 CFLAGS="-g -O2" 2642 else 2643 CFLAGS="-g" 2644 fi 2645 else 2646 if test "$GCC" = yes; then 2647 CFLAGS="-O2" 2648 else 2649 CFLAGS= 2650 fi 2651 fi 2652 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2653 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2654 if test "${ac_cv_prog_cc_c89+set}" = set; then 2655 echo $ECHO_N "(cached) $ECHO_C" >&6 2656 else 2657 ac_cv_prog_cc_c89=no 2658 ac_save_CC=$CC 2659 cat >conftest.$ac_ext <<_ACEOF 2660 /* confdefs.h. */ 2661 _ACEOF 2662 cat confdefs.h >>conftest.$ac_ext 2663 cat >>conftest.$ac_ext <<_ACEOF 2664 /* end confdefs.h. */ 2665 #include <stdarg.h> 2666 #include <stdio.h> 2667 #include <sys/types.h> 2668 #include <sys/stat.h> 2669 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2670 struct buf { int x; }; 2671 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2672 static char *e (p, i) 2673 char **p; 2674 int i; 2675 { 2676 return p[i]; 2677 } 2678 static char *f (char * (*g) (char **, int), char **p, ...) 2679 { 2680 char *s; 2681 va_list v; 2682 va_start (v,p); 2683 s = g (p, va_arg (v,int)); 2684 va_end (v); 2685 return s; 2686 } 2687 2688 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2689 function prototypes and stuff, but not '\xHH' hex character constants. 2690 These don't provoke an error unfortunately, instead are silently treated 2691 as 'x'. The following induces an error, until -std is added to get 2692 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2693 array size at least. It's necessary to write '\x00'==0 to get something 2694 that's true only with -std. */ 2695 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2696 2697 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2698 inside strings and character constants. */ 2699 #define FOO(x) 'x' 2700 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2701 2702 int test (int i, double x); 2703 struct s1 {int (*f) (int a);}; 2704 struct s2 {int (*f) (double a);}; 2705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2706 int argc; 2707 char **argv; 2708 int 2709 main () 2710 { 2711 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2712 ; 2713 return 0; 2714 } 2715 _ACEOF 2716 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2717 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2718 do 2719 CC="$ac_save_CC $ac_arg" 2720 rm -f conftest.$ac_objext 2721 if { (ac_try="$ac_compile" 2722 case "(($ac_try" in 2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2724 *) ac_try_echo=$ac_try;; 2725 esac 2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2727 (eval "$ac_compile") 2>conftest.er1 2728 ac_status=$? 2729 grep -v '^ *+' conftest.er1 >conftest.err 2730 rm -f conftest.er1 2731 cat conftest.err >&5 2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2733 (exit $ac_status); } && 2734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2735 { (case "(($ac_try" in 2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2737 *) ac_try_echo=$ac_try;; 2738 esac 2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2740 (eval "$ac_try") 2>&5 2741 ac_status=$? 2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2743 (exit $ac_status); }; } && 2744 { ac_try='test -s conftest.$ac_objext' 2745 { (case "(($ac_try" in 2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2747 *) ac_try_echo=$ac_try;; 2748 esac 2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2750 (eval "$ac_try") 2>&5 2751 ac_status=$? 2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2753 (exit $ac_status); }; }; then 2754 ac_cv_prog_cc_c89=$ac_arg 2755 else 2756 echo "$as_me: failed program was:" >&5 2757 sed 's/^/| /' conftest.$ac_ext >&5 2758 2759 2760 fi 2761 2762 rm -f core conftest.err conftest.$ac_objext 2763 test "x$ac_cv_prog_cc_c89" != "xno" && break 2764 done 2765 rm -f conftest.$ac_ext 2766 CC=$ac_save_CC 2767 2768 fi 2769 # AC_CACHE_VAL 2770 case "x$ac_cv_prog_cc_c89" in 2771 x) 2772 { echo "$as_me:$LINENO: result: none needed" >&5 2773 echo "${ECHO_T}none needed" >&6; } ;; 2774 xno) 2775 { echo "$as_me:$LINENO: result: unsupported" >&5 2776 echo "${ECHO_T}unsupported" >&6; } ;; 2777 *) 2778 CC="$CC $ac_cv_prog_cc_c89" 2779 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2780 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2781 esac 2782 2783 2784 ac_ext=c 2785 ac_cpp='$CPP $CPPFLAGS' 2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2789 2790 ac_ext=cpp 2791 ac_cpp='$CXXCPP $CPPFLAGS' 2792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2795 if test -z "$CXX"; then 2796 if test -n "$CCC"; then 2797 CXX=$CCC 2798 else 2799 if test -n "$ac_tool_prefix"; then 2800 for ac_prog in clang++ llvm-g++ g++ 2801 do 2802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2806 if test "${ac_cv_prog_CXX+set}" = set; then 2807 echo $ECHO_N "(cached) $ECHO_C" >&6 2808 else 2809 if test -n "$CXX"; then 2810 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2811 else 2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2813 for as_dir in $PATH 2814 do 2815 IFS=$as_save_IFS 2816 test -z "$as_dir" && as_dir=. 2817 for ac_exec_ext in '' $ac_executable_extensions; do 2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2821 break 2 2822 fi 2823 done 2824 done 2825 IFS=$as_save_IFS 2826 2827 fi 2828 fi 2829 CXX=$ac_cv_prog_CXX 2830 if test -n "$CXX"; then 2831 { echo "$as_me:$LINENO: result: $CXX" >&5 2832 echo "${ECHO_T}$CXX" >&6; } 2833 else 2834 { echo "$as_me:$LINENO: result: no" >&5 2835 echo "${ECHO_T}no" >&6; } 2836 fi 2837 2838 2839 test -n "$CXX" && break 2840 done 2841 fi 2842 if test -z "$CXX"; then 2843 ac_ct_CXX=$CXX 2844 for ac_prog in clang++ llvm-g++ g++ 2845 do 2846 # Extract the first word of "$ac_prog", so it can be a program name with args. 2847 set dummy $ac_prog; ac_word=$2 2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2850 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2851 echo $ECHO_N "(cached) $ECHO_C" >&6 2852 else 2853 if test -n "$ac_ct_CXX"; then 2854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2855 else 2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857 for as_dir in $PATH 2858 do 2859 IFS=$as_save_IFS 2860 test -z "$as_dir" && as_dir=. 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2863 ac_cv_prog_ac_ct_CXX="$ac_prog" 2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2865 break 2 2866 fi 2867 done 2868 done 2869 IFS=$as_save_IFS 2870 2871 fi 2872 fi 2873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2874 if test -n "$ac_ct_CXX"; then 2875 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2876 echo "${ECHO_T}$ac_ct_CXX" >&6; } 2877 else 2878 { echo "$as_me:$LINENO: result: no" >&5 2879 echo "${ECHO_T}no" >&6; } 2880 fi 2881 2882 2883 test -n "$ac_ct_CXX" && break 2884 done 2885 2886 if test "x$ac_ct_CXX" = x; then 2887 CXX="g++" 2888 else 2889 case $cross_compiling:$ac_tool_warned in 2890 yes:) 2891 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2892 whose name does not start with the host triplet. If you think this 2893 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2894 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2895 whose name does not start with the host triplet. If you think this 2896 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2897 ac_tool_warned=yes ;; 2898 esac 2899 CXX=$ac_ct_CXX 2900 fi 2901 fi 2902 2903 fi 2904 fi 2905 # Provide some information about the compiler. 2906 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2907 ac_compiler=`set X $ac_compile; echo $2` 2908 { (ac_try="$ac_compiler --version >&5" 2909 case "(($ac_try" in 2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2911 *) ac_try_echo=$ac_try;; 2912 esac 2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2914 (eval "$ac_compiler --version >&5") 2>&5 2915 ac_status=$? 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); } 2918 { (ac_try="$ac_compiler -v >&5" 2919 case "(($ac_try" in 2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2921 *) ac_try_echo=$ac_try;; 2922 esac 2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2924 (eval "$ac_compiler -v >&5") 2>&5 2925 ac_status=$? 2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2927 (exit $ac_status); } 2928 { (ac_try="$ac_compiler -V >&5" 2929 case "(($ac_try" in 2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2931 *) ac_try_echo=$ac_try;; 2932 esac 2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2934 (eval "$ac_compiler -V >&5") 2>&5 2935 ac_status=$? 2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2937 (exit $ac_status); } 2938 2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2940 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2941 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2942 echo $ECHO_N "(cached) $ECHO_C" >&6 2943 else 2944 cat >conftest.$ac_ext <<_ACEOF 2945 /* confdefs.h. */ 2946 _ACEOF 2947 cat confdefs.h >>conftest.$ac_ext 2948 cat >>conftest.$ac_ext <<_ACEOF 2949 /* end confdefs.h. */ 2950 2951 int 2952 main () 2953 { 2954 #ifndef __GNUC__ 2955 choke me 2956 #endif 2957 2958 ; 2959 return 0; 2960 } 2961 _ACEOF 2962 rm -f conftest.$ac_objext 2963 if { (ac_try="$ac_compile" 2964 case "(($ac_try" in 2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2966 *) ac_try_echo=$ac_try;; 2967 esac 2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2969 (eval "$ac_compile") 2>conftest.er1 2970 ac_status=$? 2971 grep -v '^ *+' conftest.er1 >conftest.err 2972 rm -f conftest.er1 2973 cat conftest.err >&5 2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2975 (exit $ac_status); } && 2976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2977 { (case "(($ac_try" in 2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2979 *) ac_try_echo=$ac_try;; 2980 esac 2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2982 (eval "$ac_try") 2>&5 2983 ac_status=$? 2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 (exit $ac_status); }; } && 2986 { ac_try='test -s conftest.$ac_objext' 2987 { (case "(($ac_try" in 2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2989 *) ac_try_echo=$ac_try;; 2990 esac 2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2992 (eval "$ac_try") 2>&5 2993 ac_status=$? 2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2995 (exit $ac_status); }; }; then 2996 ac_compiler_gnu=yes 2997 else 2998 echo "$as_me: failed program was:" >&5 2999 sed 's/^/| /' conftest.$ac_ext >&5 3000 3001 ac_compiler_gnu=no 3002 fi 3003 3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3005 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3006 3007 fi 3008 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3009 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3010 GXX=`test $ac_compiler_gnu = yes && echo yes` 3011 ac_test_CXXFLAGS=${CXXFLAGS+set} 3012 ac_save_CXXFLAGS=$CXXFLAGS 3013 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3014 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3015 if test "${ac_cv_prog_cxx_g+set}" = set; then 3016 echo $ECHO_N "(cached) $ECHO_C" >&6 3017 else 3018 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3019 ac_cxx_werror_flag=yes 3020 ac_cv_prog_cxx_g=no 3021 CXXFLAGS="-g" 3022 cat >conftest.$ac_ext <<_ACEOF 3023 /* confdefs.h. */ 3024 _ACEOF 3025 cat confdefs.h >>conftest.$ac_ext 3026 cat >>conftest.$ac_ext <<_ACEOF 3027 /* end confdefs.h. */ 3028 3029 int 3030 main () 3031 { 3032 3033 ; 3034 return 0; 3035 } 3036 _ACEOF 3037 rm -f conftest.$ac_objext 3038 if { (ac_try="$ac_compile" 3039 case "(($ac_try" in 3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3041 *) ac_try_echo=$ac_try;; 3042 esac 3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3044 (eval "$ac_compile") 2>conftest.er1 3045 ac_status=$? 3046 grep -v '^ *+' conftest.er1 >conftest.err 3047 rm -f conftest.er1 3048 cat conftest.err >&5 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); } && 3051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3052 { (case "(($ac_try" in 3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3054 *) ac_try_echo=$ac_try;; 3055 esac 3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3057 (eval "$ac_try") 2>&5 3058 ac_status=$? 3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3060 (exit $ac_status); }; } && 3061 { ac_try='test -s conftest.$ac_objext' 3062 { (case "(($ac_try" in 3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3064 *) ac_try_echo=$ac_try;; 3065 esac 3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3067 (eval "$ac_try") 2>&5 3068 ac_status=$? 3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3070 (exit $ac_status); }; }; then 3071 ac_cv_prog_cxx_g=yes 3072 else 3073 echo "$as_me: failed program was:" >&5 3074 sed 's/^/| /' conftest.$ac_ext >&5 3075 3076 CXXFLAGS="" 3077 cat >conftest.$ac_ext <<_ACEOF 3078 /* confdefs.h. */ 3079 _ACEOF 3080 cat confdefs.h >>conftest.$ac_ext 3081 cat >>conftest.$ac_ext <<_ACEOF 3082 /* end confdefs.h. */ 3083 3084 int 3085 main () 3086 { 3087 3088 ; 3089 return 0; 3090 } 3091 _ACEOF 3092 rm -f conftest.$ac_objext 3093 if { (ac_try="$ac_compile" 3094 case "(($ac_try" in 3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3096 *) ac_try_echo=$ac_try;; 3097 esac 3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3099 (eval "$ac_compile") 2>conftest.er1 3100 ac_status=$? 3101 grep -v '^ *+' conftest.er1 >conftest.err 3102 rm -f conftest.er1 3103 cat conftest.err >&5 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105 (exit $ac_status); } && 3106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3107 { (case "(($ac_try" in 3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3109 *) ac_try_echo=$ac_try;; 3110 esac 3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3112 (eval "$ac_try") 2>&5 3113 ac_status=$? 3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3115 (exit $ac_status); }; } && 3116 { ac_try='test -s conftest.$ac_objext' 3117 { (case "(($ac_try" in 3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3119 *) ac_try_echo=$ac_try;; 3120 esac 3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3122 (eval "$ac_try") 2>&5 3123 ac_status=$? 3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125 (exit $ac_status); }; }; then 3126 : 3127 else 3128 echo "$as_me: failed program was:" >&5 3129 sed 's/^/| /' conftest.$ac_ext >&5 3130 3131 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3132 CXXFLAGS="-g" 3133 cat >conftest.$ac_ext <<_ACEOF 3134 /* confdefs.h. */ 3135 _ACEOF 3136 cat confdefs.h >>conftest.$ac_ext 3137 cat >>conftest.$ac_ext <<_ACEOF 3138 /* end confdefs.h. */ 3139 3140 int 3141 main () 3142 { 3143 3144 ; 3145 return 0; 3146 } 3147 _ACEOF 3148 rm -f conftest.$ac_objext 3149 if { (ac_try="$ac_compile" 3150 case "(($ac_try" in 3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3152 *) ac_try_echo=$ac_try;; 3153 esac 3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3155 (eval "$ac_compile") 2>conftest.er1 3156 ac_status=$? 3157 grep -v '^ *+' conftest.er1 >conftest.err 3158 rm -f conftest.er1 3159 cat conftest.err >&5 3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3161 (exit $ac_status); } && 3162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3163 { (case "(($ac_try" in 3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3165 *) ac_try_echo=$ac_try;; 3166 esac 3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3168 (eval "$ac_try") 2>&5 3169 ac_status=$? 3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3171 (exit $ac_status); }; } && 3172 { ac_try='test -s conftest.$ac_objext' 3173 { (case "(($ac_try" in 3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3175 *) ac_try_echo=$ac_try;; 3176 esac 3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3178 (eval "$ac_try") 2>&5 3179 ac_status=$? 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); }; }; then 3182 ac_cv_prog_cxx_g=yes 3183 else 3184 echo "$as_me: failed program was:" >&5 3185 sed 's/^/| /' conftest.$ac_ext >&5 3186 3187 3188 fi 3189 3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3191 fi 3192 3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3194 fi 3195 3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3197 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3198 fi 3199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3200 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3201 if test "$ac_test_CXXFLAGS" = set; then 3202 CXXFLAGS=$ac_save_CXXFLAGS 3203 elif test $ac_cv_prog_cxx_g = yes; then 3204 if test "$GXX" = yes; then 3205 CXXFLAGS="-g -O2" 3206 else 3207 CXXFLAGS="-g" 3208 fi 3209 else 3210 if test "$GXX" = yes; then 3211 CXXFLAGS="-O2" 3212 else 3213 CXXFLAGS= 3214 fi 3215 fi 3216 ac_ext=c 3217 ac_cpp='$CPP $CPPFLAGS' 3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3221 3222 ac_ext=c 3223 ac_cpp='$CPP $CPPFLAGS' 3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3227 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3228 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3229 # On Suns, sometimes $CPP names a directory. 3230 if test -n "$CPP" && test -d "$CPP"; then 3231 CPP= 3232 fi 3233 if test -z "$CPP"; then 3234 if test "${ac_cv_prog_CPP+set}" = set; then 3235 echo $ECHO_N "(cached) $ECHO_C" >&6 3236 else 3237 # Double quotes because CPP needs to be expanded 3238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3239 do 3240 ac_preproc_ok=false 3241 for ac_c_preproc_warn_flag in '' yes 3242 do 3243 # Use a header file that comes with gcc, so configuring glibc 3244 # with a fresh cross-compiler works. 3245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3246 # <limits.h> exists even on freestanding compilers. 3247 # On the NeXT, cc -E runs the code through the compiler's parser, 3248 # not just through cpp. "Syntax error" is here to catch this case. 3249 cat >conftest.$ac_ext <<_ACEOF 3250 /* confdefs.h. */ 3251 _ACEOF 3252 cat confdefs.h >>conftest.$ac_ext 3253 cat >>conftest.$ac_ext <<_ACEOF 3254 /* end confdefs.h. */ 3255 #ifdef __STDC__ 3256 # include <limits.h> 3257 #else 3258 # include <assert.h> 3259 #endif 3260 Syntax error 3261 _ACEOF 3262 if { (ac_try="$ac_cpp conftest.$ac_ext" 3263 case "(($ac_try" in 3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3265 *) ac_try_echo=$ac_try;; 3266 esac 3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3269 ac_status=$? 3270 grep -v '^ *+' conftest.er1 >conftest.err 3271 rm -f conftest.er1 3272 cat conftest.err >&5 3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3274 (exit $ac_status); } >/dev/null; then 3275 if test -s conftest.err; then 3276 ac_cpp_err=$ac_c_preproc_warn_flag 3277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3278 else 3279 ac_cpp_err= 3280 fi 3281 else 3282 ac_cpp_err=yes 3283 fi 3284 if test -z "$ac_cpp_err"; then 3285 : 3286 else 3287 echo "$as_me: failed program was:" >&5 3288 sed 's/^/| /' conftest.$ac_ext >&5 3289 3290 # Broken: fails on valid input. 3291 continue 3292 fi 3293 3294 rm -f conftest.err conftest.$ac_ext 3295 3296 # OK, works on sane cases. Now check whether nonexistent headers 3297 # can be detected and how. 3298 cat >conftest.$ac_ext <<_ACEOF 3299 /* confdefs.h. */ 3300 _ACEOF 3301 cat confdefs.h >>conftest.$ac_ext 3302 cat >>conftest.$ac_ext <<_ACEOF 3303 /* end confdefs.h. */ 3304 #include <ac_nonexistent.h> 3305 _ACEOF 3306 if { (ac_try="$ac_cpp conftest.$ac_ext" 3307 case "(($ac_try" in 3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3309 *) ac_try_echo=$ac_try;; 3310 esac 3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3313 ac_status=$? 3314 grep -v '^ *+' conftest.er1 >conftest.err 3315 rm -f conftest.er1 3316 cat conftest.err >&5 3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3318 (exit $ac_status); } >/dev/null; then 3319 if test -s conftest.err; then 3320 ac_cpp_err=$ac_c_preproc_warn_flag 3321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3322 else 3323 ac_cpp_err= 3324 fi 3325 else 3326 ac_cpp_err=yes 3327 fi 3328 if test -z "$ac_cpp_err"; then 3329 # Broken: success on invalid input. 3330 continue 3331 else 3332 echo "$as_me: failed program was:" >&5 3333 sed 's/^/| /' conftest.$ac_ext >&5 3334 3335 # Passes both tests. 3336 ac_preproc_ok=: 3337 break 3338 fi 3339 3340 rm -f conftest.err conftest.$ac_ext 3341 3342 done 3343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3344 rm -f conftest.err conftest.$ac_ext 3345 if $ac_preproc_ok; then 3346 break 3347 fi 3348 3349 done 3350 ac_cv_prog_CPP=$CPP 3351 3352 fi 3353 CPP=$ac_cv_prog_CPP 3354 else 3355 ac_cv_prog_CPP=$CPP 3356 fi 3357 { echo "$as_me:$LINENO: result: $CPP" >&5 3358 echo "${ECHO_T}$CPP" >&6; } 3359 ac_preproc_ok=false 3360 for ac_c_preproc_warn_flag in '' yes 3361 do 3362 # Use a header file that comes with gcc, so configuring glibc 3363 # with a fresh cross-compiler works. 3364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3365 # <limits.h> exists even on freestanding compilers. 3366 # On the NeXT, cc -E runs the code through the compiler's parser, 3367 # not just through cpp. "Syntax error" is here to catch this case. 3368 cat >conftest.$ac_ext <<_ACEOF 3369 /* confdefs.h. */ 3370 _ACEOF 3371 cat confdefs.h >>conftest.$ac_ext 3372 cat >>conftest.$ac_ext <<_ACEOF 3373 /* end confdefs.h. */ 3374 #ifdef __STDC__ 3375 # include <limits.h> 3376 #else 3377 # include <assert.h> 3378 #endif 3379 Syntax error 3380 _ACEOF 3381 if { (ac_try="$ac_cpp conftest.$ac_ext" 3382 case "(($ac_try" in 3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3384 *) ac_try_echo=$ac_try;; 3385 esac 3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3388 ac_status=$? 3389 grep -v '^ *+' conftest.er1 >conftest.err 3390 rm -f conftest.er1 3391 cat conftest.err >&5 3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3393 (exit $ac_status); } >/dev/null; then 3394 if test -s conftest.err; then 3395 ac_cpp_err=$ac_c_preproc_warn_flag 3396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3397 else 3398 ac_cpp_err= 3399 fi 3400 else 3401 ac_cpp_err=yes 3402 fi 3403 if test -z "$ac_cpp_err"; then 3404 : 3405 else 3406 echo "$as_me: failed program was:" >&5 3407 sed 's/^/| /' conftest.$ac_ext >&5 3408 3409 # Broken: fails on valid input. 3410 continue 3411 fi 3412 3413 rm -f conftest.err conftest.$ac_ext 3414 3415 # OK, works on sane cases. Now check whether nonexistent headers 3416 # can be detected and how. 3417 cat >conftest.$ac_ext <<_ACEOF 3418 /* confdefs.h. */ 3419 _ACEOF 3420 cat confdefs.h >>conftest.$ac_ext 3421 cat >>conftest.$ac_ext <<_ACEOF 3422 /* end confdefs.h. */ 3423 #include <ac_nonexistent.h> 3424 _ACEOF 3425 if { (ac_try="$ac_cpp conftest.$ac_ext" 3426 case "(($ac_try" in 3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3428 *) ac_try_echo=$ac_try;; 3429 esac 3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3432 ac_status=$? 3433 grep -v '^ *+' conftest.er1 >conftest.err 3434 rm -f conftest.er1 3435 cat conftest.err >&5 3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3437 (exit $ac_status); } >/dev/null; then 3438 if test -s conftest.err; then 3439 ac_cpp_err=$ac_c_preproc_warn_flag 3440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3441 else 3442 ac_cpp_err= 3443 fi 3444 else 3445 ac_cpp_err=yes 3446 fi 3447 if test -z "$ac_cpp_err"; then 3448 # Broken: success on invalid input. 3449 continue 3450 else 3451 echo "$as_me: failed program was:" >&5 3452 sed 's/^/| /' conftest.$ac_ext >&5 3453 3454 # Passes both tests. 3455 ac_preproc_ok=: 3456 break 3457 fi 3458 3459 rm -f conftest.err conftest.$ac_ext 3460 3461 done 3462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3463 rm -f conftest.err conftest.$ac_ext 3464 if $ac_preproc_ok; then 3465 : 3466 else 3467 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3468 See \`config.log' for more details." >&5 3469 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3470 See \`config.log' for more details." >&2;} 3471 { (exit 1); exit 1; }; } 3472 fi 3473 3474 ac_ext=c 3475 ac_cpp='$CPP $CPPFLAGS' 3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3479 3480 3481 if test "$CXX" = "clang++" ; then 3482 { echo "$as_me:$LINENO: checking whether clang works" >&5 3483 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; } 3484 ac_ext=cpp 3485 ac_cpp='$CXXCPP $CPPFLAGS' 3486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3489 3490 3491 cat >conftest.$ac_ext <<_ACEOF 3492 /* confdefs.h. */ 3493 _ACEOF 3494 cat confdefs.h >>conftest.$ac_ext 3495 cat >>conftest.$ac_ext <<_ACEOF 3496 /* end confdefs.h. */ 3497 #include <limits> 3498 #if __has_include (<cxxabi.h>) 3499 #include <cxxabi.h> 3500 #endif 3501 #if __has_include (<unwind.h>) 3502 #include <unwind.h> 3503 #endif 3504 3505 int 3506 main () 3507 { 3508 3509 ; 3510 return 0; 3511 } 3512 _ACEOF 3513 rm -f conftest.$ac_objext 3514 if { (ac_try="$ac_compile" 3515 case "(($ac_try" in 3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3517 *) ac_try_echo=$ac_try;; 3518 esac 3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3520 (eval "$ac_compile") 2>conftest.er1 3521 ac_status=$? 3522 grep -v '^ *+' conftest.er1 >conftest.err 3523 rm -f conftest.er1 3524 cat conftest.err >&5 3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3526 (exit $ac_status); } && 3527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3528 { (case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531 esac 3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3533 (eval "$ac_try") 2>&5 3534 ac_status=$? 3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3536 (exit $ac_status); }; } && 3537 { ac_try='test -s conftest.$ac_objext' 3538 { (case "(($ac_try" in 3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3540 *) ac_try_echo=$ac_try;; 3541 esac 3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3543 (eval "$ac_try") 2>&5 3544 ac_status=$? 3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3546 (exit $ac_status); }; }; then 3547 3548 { echo "$as_me:$LINENO: result: yes" >&5 3549 echo "${ECHO_T}yes" >&6; } 3550 3551 else 3552 echo "$as_me: failed program was:" >&5 3553 sed 's/^/| /' conftest.$ac_ext >&5 3554 3555 3556 { echo "$as_me:$LINENO: result: no" >&5 3557 echo "${ECHO_T}no" >&6; } 3558 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5 3559 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;} 3560 { (exit 1); exit 1; }; } 3561 3562 fi 3563 3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3565 ac_ext=c 3566 ac_cpp='$CPP $CPPFLAGS' 3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3570 3571 fi 3572 3573 3574 3575 if test -d ${srcdir}/projects/llvm-gcc ; then 3576 subdirs="$subdirs projects/llvm-gcc" 3577 3578 fi 3579 3580 if test -d ${srcdir}/projects/test-suite ; then 3581 subdirs="$subdirs projects/test-suite" 3582 3583 fi 3584 3585 if test -d ${srcdir}/projects/llvm-test ; then 3586 subdirs="$subdirs projects/llvm-test" 3587 3588 fi 3589 3590 if test -d ${srcdir}/projects/poolalloc ; then 3591 subdirs="$subdirs projects/poolalloc" 3592 3593 fi 3594 3595 if test -d ${srcdir}/projects/llvm-poolalloc ; then 3596 subdirs="$subdirs projects/llvm-poolalloc" 3597 3598 fi 3599 3600 for i in `ls ${srcdir}/projects` 3601 do 3602 if test -d ${srcdir}/projects/${i} ; then 3603 case ${i} in 3604 sample) subdirs="$subdirs projects/sample" 3605 ;; 3606 privbracket) subdirs="$subdirs projects/privbracket" 3607 ;; 3608 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 3609 ;; 3610 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 3611 ;; 3612 llvm-java) subdirs="$subdirs projects/llvm-java" 3613 ;; 3614 llvm-tv) subdirs="$subdirs projects/llvm-tv" 3615 ;; 3616 safecode) subdirs="$subdirs projects/safecode" 3617 ;; 3618 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 3619 ;; 3620 compiler-rt) ;; 3621 llvm-gcc) ;; 3622 test-suite) ;; 3623 llvm-test) ;; 3624 poolalloc) ;; 3625 llvm-poolalloc) ;; 3626 *) 3627 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3628 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3629 ;; 3630 esac 3631 fi 3632 done 3633 3634 # Check whether --enable-polly was given. 3635 if test "${enable_polly+set}" = set; then 3636 enableval=$enable_polly; 3637 else 3638 enableval=default 3639 fi 3640 3641 case "$enableval" in 3642 yes) ENABLE_POLLY=1 3643 ;; 3644 no) ENABLE_POLLY=0 3645 ;; 3646 default) ENABLE_POLLY=1 3647 ;; 3648 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3649 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3650 { (exit 1); exit 1; }; } ;; 3651 esac 3652 3653 3654 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3655 LLVM_HAS_POLLY=1 3656 3657 subdirs="$subdirs tools/polly" 3658 3659 fi 3660 3661 3662 # Make sure we can run config.sub. 3663 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3664 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3665 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3666 { (exit 1); exit 1; }; } 3667 3668 { echo "$as_me:$LINENO: checking build system type" >&5 3669 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3670 if test "${ac_cv_build+set}" = set; then 3671 echo $ECHO_N "(cached) $ECHO_C" >&6 3672 else 3673 ac_build_alias=$build_alias 3674 test "x$ac_build_alias" = x && 3675 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3676 test "x$ac_build_alias" = x && 3677 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3678 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3679 { (exit 1); exit 1; }; } 3680 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3681 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3682 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3683 { (exit 1); exit 1; }; } 3684 3685 fi 3686 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3687 echo "${ECHO_T}$ac_cv_build" >&6; } 3688 case $ac_cv_build in 3689 *-*-*) ;; 3690 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3691 echo "$as_me: error: invalid value of canonical build" >&2;} 3692 { (exit 1); exit 1; }; };; 3693 esac 3694 build=$ac_cv_build 3695 ac_save_IFS=$IFS; IFS='-' 3696 set x $ac_cv_build 3697 shift 3698 build_cpu=$1 3699 build_vendor=$2 3700 shift; shift 3701 # Remember, the first character of IFS is used to create $*, 3702 # except with old shells: 3703 build_os=$* 3704 IFS=$ac_save_IFS 3705 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3706 3707 3708 { echo "$as_me:$LINENO: checking host system type" >&5 3709 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3710 if test "${ac_cv_host+set}" = set; then 3711 echo $ECHO_N "(cached) $ECHO_C" >&6 3712 else 3713 if test "x$host_alias" = x; then 3714 ac_cv_host=$ac_cv_build 3715 else 3716 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3717 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3718 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3719 { (exit 1); exit 1; }; } 3720 fi 3721 3722 fi 3723 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3724 echo "${ECHO_T}$ac_cv_host" >&6; } 3725 case $ac_cv_host in 3726 *-*-*) ;; 3727 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3728 echo "$as_me: error: invalid value of canonical host" >&2;} 3729 { (exit 1); exit 1; }; };; 3730 esac 3731 host=$ac_cv_host 3732 ac_save_IFS=$IFS; IFS='-' 3733 set x $ac_cv_host 3734 shift 3735 host_cpu=$1 3736 host_vendor=$2 3737 shift; shift 3738 # Remember, the first character of IFS is used to create $*, 3739 # except with old shells: 3740 host_os=$* 3741 IFS=$ac_save_IFS 3742 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3743 3744 3745 { echo "$as_me:$LINENO: checking target system type" >&5 3746 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3747 if test "${ac_cv_target+set}" = set; then 3748 echo $ECHO_N "(cached) $ECHO_C" >&6 3749 else 3750 if test "x$target_alias" = x; then 3751 ac_cv_target=$ac_cv_host 3752 else 3753 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3754 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3755 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3756 { (exit 1); exit 1; }; } 3757 fi 3758 3759 fi 3760 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3761 echo "${ECHO_T}$ac_cv_target" >&6; } 3762 case $ac_cv_target in 3763 *-*-*) ;; 3764 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3765 echo "$as_me: error: invalid value of canonical target" >&2;} 3766 { (exit 1); exit 1; }; };; 3767 esac 3768 target=$ac_cv_target 3769 ac_save_IFS=$IFS; IFS='-' 3770 set x $ac_cv_target 3771 shift 3772 target_cpu=$1 3773 target_vendor=$2 3774 shift; shift 3775 # Remember, the first character of IFS is used to create $*, 3776 # except with old shells: 3777 target_os=$* 3778 IFS=$ac_save_IFS 3779 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3780 3781 3782 # The aliases save the names the user supplied, while $host etc. 3783 # will get canonicalized. 3784 test -n "$target_alias" && 3785 test "$program_prefix$program_suffix$program_transform_name" = \ 3786 NONENONEs,x,x, && 3787 program_prefix=${target_alias}- 3788 3789 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3790 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3791 if test "${llvm_cv_os_type+set}" = set; then 3792 echo $ECHO_N "(cached) $ECHO_C" >&6 3793 else 3794 case $host in 3795 *-*-aix*) 3796 llvm_cv_link_all_option="-Wl,--whole-archive" 3797 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3798 llvm_cv_os_type="AIX" 3799 llvm_cv_platform_type="Unix" ;; 3800 *-*-irix*) 3801 llvm_cv_link_all_option="-Wl,--whole-archive" 3802 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3803 llvm_cv_os_type="IRIX" 3804 llvm_cv_platform_type="Unix" ;; 3805 *-*-cygwin*) 3806 llvm_cv_link_all_option="-Wl,--whole-archive" 3807 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3808 llvm_cv_os_type="Cygwin" 3809 llvm_cv_platform_type="Unix" ;; 3810 *-*-darwin*) 3811 llvm_cv_link_all_option="-Wl,-all_load" 3812 llvm_cv_no_link_all_option="-Wl,-noall_load" 3813 llvm_cv_os_type="Darwin" 3814 llvm_cv_platform_type="Unix" ;; 3815 *-*-minix*) 3816 llvm_cv_link_all_option="-Wl,-all_load" 3817 llvm_cv_no_link_all_option="-Wl,-noall_load" 3818 llvm_cv_os_type="Minix" 3819 llvm_cv_platform_type="Unix" ;; 3820 *-*-freebsd* | *-*-kfreebsd-gnu) 3821 llvm_cv_link_all_option="-Wl,--whole-archive" 3822 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3823 llvm_cv_os_type="FreeBSD" 3824 llvm_cv_platform_type="Unix" ;; 3825 *-*-openbsd*) 3826 llvm_cv_link_all_option="-Wl,--whole-archive" 3827 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3828 llvm_cv_os_type="OpenBSD" 3829 llvm_cv_platform_type="Unix" ;; 3830 *-*-netbsd*) 3831 llvm_cv_link_all_option="-Wl,--whole-archive" 3832 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3833 llvm_cv_os_type="NetBSD" 3834 llvm_cv_platform_type="Unix" ;; 3835 *-*-dragonfly*) 3836 llvm_cv_link_all_option="-Wl,--whole-archive" 3837 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3838 llvm_cv_os_type="DragonFly" 3839 llvm_cv_platform_type="Unix" ;; 3840 *-*-hpux*) 3841 llvm_cv_link_all_option="-Wl,--whole-archive" 3842 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3843 llvm_cv_os_type="HP-UX" 3844 llvm_cv_platform_type="Unix" ;; 3845 *-*-interix*) 3846 llvm_cv_link_all_option="-Wl,--whole-archive" 3847 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3848 llvm_cv_os_type="Interix" 3849 llvm_cv_platform_type="Unix" ;; 3850 *-*-linux*) 3851 llvm_cv_link_all_option="-Wl,--whole-archive" 3852 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3853 llvm_cv_os_type="Linux" 3854 llvm_cv_platform_type="Unix" ;; 3855 *-*-gnu*) 3856 llvm_cv_link_all_option="-Wl,--whole-archive" 3857 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3858 llvm_cv_os_type="GNU" 3859 llvm_cv_platform_type="Unix" ;; 3860 *-*-solaris*) 3861 llvm_cv_link_all_option="-Wl,-z,allextract" 3862 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3863 llvm_cv_os_type="SunOS" 3864 llvm_cv_platform_type="Unix" ;; 3865 *-*-auroraux*) 3866 llvm_cv_link_all_option="-Wl,-z,allextract" 3867 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3868 llvm_cv_os_type="AuroraUX" 3869 llvm_cv_platform_type="Unix" ;; 3870 *-*-win32*) 3871 llvm_cv_link_all_option="-Wl,--whole-archive" 3872 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3873 llvm_cv_os_type="Win32" 3874 llvm_cv_platform_type="Win32" ;; 3875 *-*-mingw*) 3876 llvm_cv_link_all_option="-Wl,--whole-archive" 3877 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3878 llvm_cv_os_type="MingW" 3879 llvm_cv_platform_type="Win32" ;; 3880 *-*-haiku*) 3881 llvm_cv_link_all_option="-Wl,--whole-archive" 3882 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3883 llvm_cv_os_type="Haiku" 3884 llvm_cv_platform_type="Unix" ;; 3885 *-unknown-eabi*) 3886 llvm_cv_link_all_option="-Wl,--whole-archive" 3887 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3888 llvm_cv_os_type="Freestanding" 3889 llvm_cv_platform_type="Unix" ;; 3890 *-unknown-elf*) 3891 llvm_cv_link_all_option="-Wl,--whole-archive" 3892 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3893 llvm_cv_os_type="Freestanding" 3894 llvm_cv_platform_type="Unix" ;; 3895 *) 3896 llvm_cv_link_all_option="" 3897 llvm_cv_no_link_all_option="" 3898 llvm_cv_os_type="Unknown" 3899 llvm_cv_platform_type="Unknown" ;; 3900 esac 3901 fi 3902 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3903 echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3904 3905 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3906 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3907 if test "${llvm_cv_target_os_type+set}" = set; then 3908 echo $ECHO_N "(cached) $ECHO_C" >&6 3909 else 3910 case $target in 3911 *-*-aix*) 3912 llvm_cv_target_os_type="AIX" ;; 3913 *-*-irix*) 3914 llvm_cv_target_os_type="IRIX" ;; 3915 *-*-cygwin*) 3916 llvm_cv_target_os_type="Cygwin" ;; 3917 *-*-darwin*) 3918 llvm_cv_target_os_type="Darwin" ;; 3919 *-*-minix*) 3920 llvm_cv_target_os_type="Minix" ;; 3921 *-*-freebsd* | *-*-kfreebsd-gnu) 3922 llvm_cv_target_os_type="FreeBSD" ;; 3923 *-*-openbsd*) 3924 llvm_cv_target_os_type="OpenBSD" ;; 3925 *-*-netbsd*) 3926 llvm_cv_target_os_type="NetBSD" ;; 3927 *-*-dragonfly*) 3928 llvm_cv_target_os_type="DragonFly" ;; 3929 *-*-hpux*) 3930 llvm_cv_target_os_type="HP-UX" ;; 3931 *-*-interix*) 3932 llvm_cv_target_os_type="Interix" ;; 3933 *-*-linux*) 3934 llvm_cv_target_os_type="Linux" ;; 3935 *-*-gnu*) 3936 llvm_cv_target_os_type="GNU" ;; 3937 *-*-solaris*) 3938 llvm_cv_target_os_type="SunOS" ;; 3939 *-*-auroraux*) 3940 llvm_cv_target_os_type="AuroraUX" ;; 3941 *-*-win32*) 3942 llvm_cv_target_os_type="Win32" ;; 3943 *-*-mingw*) 3944 llvm_cv_target_os_type="MingW" ;; 3945 *-*-haiku*) 3946 llvm_cv_target_os_type="Haiku" ;; 3947 *-*-rtems*) 3948 llvm_cv_target_os_type="RTEMS" ;; 3949 *-*-nacl*) 3950 llvm_cv_target_os_type="NativeClient" ;; 3951 *-unknown-eabi*) 3952 llvm_cv_target_os_type="Freestanding" ;; 3953 *) 3954 llvm_cv_target_os_type="Unknown" ;; 3955 esac 3956 fi 3957 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3958 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3959 3960 if test "$llvm_cv_os_type" = "Unknown" ; then 3961 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3962 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3963 { (exit 1); exit 1; }; } 3964 fi 3965 3966 OS=$llvm_cv_os_type 3967 3968 HOST_OS=$llvm_cv_os_type 3969 3970 TARGET_OS=$llvm_cv_target_os_type 3971 3972 3973 LINKALL=$llvm_cv_link_all_option 3974 3975 NOLINKALL=$llvm_cv_no_link_all_option 3976 3977 3978 case $llvm_cv_platform_type in 3979 Unix) 3980 3981 cat >>confdefs.h <<\_ACEOF 3982 #define LLVM_ON_UNIX 1 3983 _ACEOF 3984 3985 LLVM_ON_UNIX=1 3986 3987 LLVM_ON_WIN32=0 3988 3989 ;; 3990 Win32) 3991 3992 cat >>confdefs.h <<\_ACEOF 3993 #define LLVM_ON_WIN32 1 3994 _ACEOF 3995 3996 LLVM_ON_UNIX=0 3997 3998 LLVM_ON_WIN32=1 3999 4000 ;; 4001 esac 4002 4003 { echo "$as_me:$LINENO: checking target architecture" >&5 4004 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 4005 if test "${llvm_cv_target_arch+set}" = set; then 4006 echo $ECHO_N "(cached) $ECHO_C" >&6 4007 else 4008 case $target in 4009 i?86-*) llvm_cv_target_arch="x86" ;; 4010 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 4011 sparc*-*) llvm_cv_target_arch="Sparc" ;; 4012 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 4013 arm*-*) llvm_cv_target_arch="ARM" ;; 4014 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 4015 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 4016 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 4017 xcore-*) llvm_cv_target_arch="XCore" ;; 4018 msp430-*) llvm_cv_target_arch="MSP430" ;; 4019 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 4020 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 4021 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 4022 *) llvm_cv_target_arch="Unknown" ;; 4023 esac 4024 fi 4025 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 4026 echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 4027 4028 if test "$llvm_cv_target_arch" = "Unknown" ; then 4029 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 4030 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 4031 fi 4032 4033 case "$llvm_cv_target_arch" in 4034 x86) LLVM_NATIVE_ARCH="X86" ;; 4035 x86_64) LLVM_NATIVE_ARCH="X86" ;; 4036 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 4037 esac 4038 4039 ARCH=$llvm_cv_target_arch 4040 4041 4042 case $host in 4043 i?86-*) host_arch="x86" ;; 4044 amd64-* | x86_64-*) host_arch="x86_64" ;; 4045 sparc*-*) host_arch="Sparc" ;; 4046 powerpc*-*) host_arch="PowerPC" ;; 4047 arm*-*) host_arch="ARM" ;; 4048 aarch64*-*) host_arch="AArch64" ;; 4049 mips-* | mips64-*) host_arch="Mips" ;; 4050 mipsel-* | mips64el-*) host_arch="Mips" ;; 4051 xcore-*) host_arch="XCore" ;; 4052 msp430-*) host_arch="MSP430" ;; 4053 hexagon-*) host_arch="Hexagon" ;; 4054 mblaze-*) host_arch="MBlaze" ;; 4055 *) host_arch="Unknown" ;; 4056 esac 4057 4058 if test "$host_arch" = "Unknown" ; then 4059 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 4060 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 4061 fi 4062 4063 HOST_ARCH=$host_arch 4064 4065 4066 4067 4068 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4069 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4070 if test "${ac_cv_path_GREP+set}" = set; then 4071 echo $ECHO_N "(cached) $ECHO_C" >&6 4072 else 4073 # Extract the first word of "grep ggrep" to use in msg output 4074 if test -z "$GREP"; then 4075 set dummy grep ggrep; ac_prog_name=$2 4076 if test "${ac_cv_path_GREP+set}" = set; then 4077 echo $ECHO_N "(cached) $ECHO_C" >&6 4078 else 4079 ac_path_GREP_found=false 4080 # Loop through the user's path and test for each of PROGNAME-LIST 4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4083 do 4084 IFS=$as_save_IFS 4085 test -z "$as_dir" && as_dir=. 4086 for ac_prog in grep ggrep; do 4087 for ac_exec_ext in '' $ac_executable_extensions; do 4088 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4089 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 4090 # Check for GNU ac_path_GREP and select it if it is found. 4091 # Check for GNU $ac_path_GREP 4092 case `"$ac_path_GREP" --version 2>&1` in 4093 *GNU*) 4094 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4095 *) 4096 ac_count=0 4097 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4098 while : 4099 do 4100 cat "conftest.in" "conftest.in" >"conftest.tmp" 4101 mv "conftest.tmp" "conftest.in" 4102 cp "conftest.in" "conftest.nl" 4103 echo 'GREP' >> "conftest.nl" 4104 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4106 ac_count=`expr $ac_count + 1` 4107 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4108 # Best one so far, save it but keep looking for a better one 4109 ac_cv_path_GREP="$ac_path_GREP" 4110 ac_path_GREP_max=$ac_count 4111 fi 4112 # 10*(2^10) chars as input seems more than enough 4113 test $ac_count -gt 10 && break 4114 done 4115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4116 esac 4117 4118 4119 $ac_path_GREP_found && break 3 4120 done 4121 done 4122 4123 done 4124 IFS=$as_save_IFS 4125 4126 4127 fi 4128 4129 GREP="$ac_cv_path_GREP" 4130 if test -z "$GREP"; then 4131 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4132 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4133 { (exit 1); exit 1; }; } 4134 fi 4135 4136 else 4137 ac_cv_path_GREP=$GREP 4138 fi 4139 4140 4141 fi 4142 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4143 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4144 GREP="$ac_cv_path_GREP" 4145 4146 4147 { echo "$as_me:$LINENO: checking for egrep" >&5 4148 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4149 if test "${ac_cv_path_EGREP+set}" = set; then 4150 echo $ECHO_N "(cached) $ECHO_C" >&6 4151 else 4152 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4153 then ac_cv_path_EGREP="$GREP -E" 4154 else 4155 # Extract the first word of "egrep" to use in msg output 4156 if test -z "$EGREP"; then 4157 set dummy egrep; ac_prog_name=$2 4158 if test "${ac_cv_path_EGREP+set}" = set; then 4159 echo $ECHO_N "(cached) $ECHO_C" >&6 4160 else 4161 ac_path_EGREP_found=false 4162 # Loop through the user's path and test for each of PROGNAME-LIST 4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4165 do 4166 IFS=$as_save_IFS 4167 test -z "$as_dir" && as_dir=. 4168 for ac_prog in egrep; do 4169 for ac_exec_ext in '' $ac_executable_extensions; do 4170 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4171 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4172 # Check for GNU ac_path_EGREP and select it if it is found. 4173 # Check for GNU $ac_path_EGREP 4174 case `"$ac_path_EGREP" --version 2>&1` in 4175 *GNU*) 4176 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4177 *) 4178 ac_count=0 4179 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4180 while : 4181 do 4182 cat "conftest.in" "conftest.in" >"conftest.tmp" 4183 mv "conftest.tmp" "conftest.in" 4184 cp "conftest.in" "conftest.nl" 4185 echo 'EGREP' >> "conftest.nl" 4186 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4188 ac_count=`expr $ac_count + 1` 4189 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4190 # Best one so far, save it but keep looking for a better one 4191 ac_cv_path_EGREP="$ac_path_EGREP" 4192 ac_path_EGREP_max=$ac_count 4193 fi 4194 # 10*(2^10) chars as input seems more than enough 4195 test $ac_count -gt 10 && break 4196 done 4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4198 esac 4199 4200 4201 $ac_path_EGREP_found && break 3 4202 done 4203 done 4204 4205 done 4206 IFS=$as_save_IFS 4207 4208 4209 fi 4210 4211 EGREP="$ac_cv_path_EGREP" 4212 if test -z "$EGREP"; then 4213 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4214 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4215 { (exit 1); exit 1; }; } 4216 fi 4217 4218 else 4219 ac_cv_path_EGREP=$EGREP 4220 fi 4221 4222 4223 fi 4224 fi 4225 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4226 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4227 EGREP="$ac_cv_path_EGREP" 4228 4229 4230 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4232 if test "${ac_cv_header_stdc+set}" = set; then 4233 echo $ECHO_N "(cached) $ECHO_C" >&6 4234 else 4235 cat >conftest.$ac_ext <<_ACEOF 4236 /* confdefs.h. */ 4237 _ACEOF 4238 cat confdefs.h >>conftest.$ac_ext 4239 cat >>conftest.$ac_ext <<_ACEOF 4240 /* end confdefs.h. */ 4241 #include <stdlib.h> 4242 #include <stdarg.h> 4243 #include <string.h> 4244 #include <float.h> 4245 4246 int 4247 main () 4248 { 4249 4250 ; 4251 return 0; 4252 } 4253 _ACEOF 4254 rm -f conftest.$ac_objext 4255 if { (ac_try="$ac_compile" 4256 case "(($ac_try" in 4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4258 *) ac_try_echo=$ac_try;; 4259 esac 4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4261 (eval "$ac_compile") 2>conftest.er1 4262 ac_status=$? 4263 grep -v '^ *+' conftest.er1 >conftest.err 4264 rm -f conftest.er1 4265 cat conftest.err >&5 4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4267 (exit $ac_status); } && 4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4269 { (case "(($ac_try" in 4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4271 *) ac_try_echo=$ac_try;; 4272 esac 4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4274 (eval "$ac_try") 2>&5 4275 ac_status=$? 4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4277 (exit $ac_status); }; } && 4278 { ac_try='test -s conftest.$ac_objext' 4279 { (case "(($ac_try" in 4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4281 *) ac_try_echo=$ac_try;; 4282 esac 4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4284 (eval "$ac_try") 2>&5 4285 ac_status=$? 4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4287 (exit $ac_status); }; }; then 4288 ac_cv_header_stdc=yes 4289 else 4290 echo "$as_me: failed program was:" >&5 4291 sed 's/^/| /' conftest.$ac_ext >&5 4292 4293 ac_cv_header_stdc=no 4294 fi 4295 4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4297 4298 if test $ac_cv_header_stdc = yes; then 4299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4300 cat >conftest.$ac_ext <<_ACEOF 4301 /* confdefs.h. */ 4302 _ACEOF 4303 cat confdefs.h >>conftest.$ac_ext 4304 cat >>conftest.$ac_ext <<_ACEOF 4305 /* end confdefs.h. */ 4306 #include <string.h> 4307 4308 _ACEOF 4309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4310 $EGREP "memchr" >/dev/null 2>&1; then 4311 : 4312 else 4313 ac_cv_header_stdc=no 4314 fi 4315 rm -f conftest* 4316 4317 fi 4318 4319 if test $ac_cv_header_stdc = yes; then 4320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4321 cat >conftest.$ac_ext <<_ACEOF 4322 /* confdefs.h. */ 4323 _ACEOF 4324 cat confdefs.h >>conftest.$ac_ext 4325 cat >>conftest.$ac_ext <<_ACEOF 4326 /* end confdefs.h. */ 4327 #include <stdlib.h> 4328 4329 _ACEOF 4330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4331 $EGREP "free" >/dev/null 2>&1; then 4332 : 4333 else 4334 ac_cv_header_stdc=no 4335 fi 4336 rm -f conftest* 4337 4338 fi 4339 4340 if test $ac_cv_header_stdc = yes; then 4341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4342 if test "$cross_compiling" = yes; then 4343 : 4344 else 4345 cat >conftest.$ac_ext <<_ACEOF 4346 /* confdefs.h. */ 4347 _ACEOF 4348 cat confdefs.h >>conftest.$ac_ext 4349 cat >>conftest.$ac_ext <<_ACEOF 4350 /* end confdefs.h. */ 4351 #include <ctype.h> 4352 #include <stdlib.h> 4353 #if ((' ' & 0x0FF) == 0x020) 4354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4356 #else 4357 # define ISLOWER(c) \ 4358 (('a' <= (c) && (c) <= 'i') \ 4359 || ('j' <= (c) && (c) <= 'r') \ 4360 || ('s' <= (c) && (c) <= 'z')) 4361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4362 #endif 4363 4364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4365 int 4366 main () 4367 { 4368 int i; 4369 for (i = 0; i < 256; i++) 4370 if (XOR (islower (i), ISLOWER (i)) 4371 || toupper (i) != TOUPPER (i)) 4372 return 2; 4373 return 0; 4374 } 4375 _ACEOF 4376 rm -f conftest$ac_exeext 4377 if { (ac_try="$ac_link" 4378 case "(($ac_try" in 4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4380 *) ac_try_echo=$ac_try;; 4381 esac 4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4383 (eval "$ac_link") 2>&5 4384 ac_status=$? 4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4387 { (case "(($ac_try" in 4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4389 *) ac_try_echo=$ac_try;; 4390 esac 4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4392 (eval "$ac_try") 2>&5 4393 ac_status=$? 4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4395 (exit $ac_status); }; }; then 4396 : 4397 else 4398 echo "$as_me: program exited with status $ac_status" >&5 4399 echo "$as_me: failed program was:" >&5 4400 sed 's/^/| /' conftest.$ac_ext >&5 4401 4402 ( exit $ac_status ) 4403 ac_cv_header_stdc=no 4404 fi 4405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4406 fi 4407 4408 4409 fi 4410 fi 4411 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4412 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4413 if test $ac_cv_header_stdc = yes; then 4414 4415 cat >>confdefs.h <<\_ACEOF 4416 #define STDC_HEADERS 1 4417 _ACEOF 4418 4419 fi 4420 4421 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4432 inttypes.h stdint.h unistd.h 4433 do 4434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4435 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4438 echo $ECHO_N "(cached) $ECHO_C" >&6 4439 else 4440 cat >conftest.$ac_ext <<_ACEOF 4441 /* confdefs.h. */ 4442 _ACEOF 4443 cat confdefs.h >>conftest.$ac_ext 4444 cat >>conftest.$ac_ext <<_ACEOF 4445 /* end confdefs.h. */ 4446 $ac_includes_default 4447 4448 #include <$ac_header> 4449 _ACEOF 4450 rm -f conftest.$ac_objext 4451 if { (ac_try="$ac_compile" 4452 case "(($ac_try" in 4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4454 *) ac_try_echo=$ac_try;; 4455 esac 4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4457 (eval "$ac_compile") 2>conftest.er1 4458 ac_status=$? 4459 grep -v '^ *+' conftest.er1 >conftest.err 4460 rm -f conftest.er1 4461 cat conftest.err >&5 4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4463 (exit $ac_status); } && 4464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4465 { (case "(($ac_try" in 4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4467 *) ac_try_echo=$ac_try;; 4468 esac 4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4470 (eval "$ac_try") 2>&5 4471 ac_status=$? 4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4473 (exit $ac_status); }; } && 4474 { ac_try='test -s conftest.$ac_objext' 4475 { (case "(($ac_try" in 4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4477 *) ac_try_echo=$ac_try;; 4478 esac 4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4480 (eval "$ac_try") 2>&5 4481 ac_status=$? 4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4483 (exit $ac_status); }; }; then 4484 eval "$as_ac_Header=yes" 4485 else 4486 echo "$as_me: failed program was:" >&5 4487 sed 's/^/| /' conftest.$ac_ext >&5 4488 4489 eval "$as_ac_Header=no" 4490 fi 4491 4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4493 fi 4494 ac_res=`eval echo '${'$as_ac_Header'}'` 4495 { echo "$as_me:$LINENO: result: $ac_res" >&5 4496 echo "${ECHO_T}$ac_res" >&6; } 4497 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4498 cat >>confdefs.h <<_ACEOF 4499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4500 _ACEOF 4501 4502 fi 4503 4504 done 4505 4506 4507 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4508 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4509 if test "${ac_cv_c_bigendian+set}" = set; then 4510 echo $ECHO_N "(cached) $ECHO_C" >&6 4511 else 4512 # See if sys/param.h defines the BYTE_ORDER macro. 4513 cat >conftest.$ac_ext <<_ACEOF 4514 /* confdefs.h. */ 4515 _ACEOF 4516 cat confdefs.h >>conftest.$ac_ext 4517 cat >>conftest.$ac_ext <<_ACEOF 4518 /* end confdefs.h. */ 4519 #include <sys/types.h> 4520 #include <sys/param.h> 4521 4522 int 4523 main () 4524 { 4525 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4526 bogus endian macros 4527 #endif 4528 4529 ; 4530 return 0; 4531 } 4532 _ACEOF 4533 rm -f conftest.$ac_objext 4534 if { (ac_try="$ac_compile" 4535 case "(($ac_try" in 4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4537 *) ac_try_echo=$ac_try;; 4538 esac 4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4540 (eval "$ac_compile") 2>conftest.er1 4541 ac_status=$? 4542 grep -v '^ *+' conftest.er1 >conftest.err 4543 rm -f conftest.er1 4544 cat conftest.err >&5 4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4546 (exit $ac_status); } && 4547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4548 { (case "(($ac_try" in 4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4550 *) ac_try_echo=$ac_try;; 4551 esac 4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4553 (eval "$ac_try") 2>&5 4554 ac_status=$? 4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4556 (exit $ac_status); }; } && 4557 { ac_try='test -s conftest.$ac_objext' 4558 { (case "(($ac_try" in 4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4560 *) ac_try_echo=$ac_try;; 4561 esac 4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4563 (eval "$ac_try") 2>&5 4564 ac_status=$? 4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4566 (exit $ac_status); }; }; then 4567 # It does; now see whether it defined to BIG_ENDIAN or not. 4568 cat >conftest.$ac_ext <<_ACEOF 4569 /* confdefs.h. */ 4570 _ACEOF 4571 cat confdefs.h >>conftest.$ac_ext 4572 cat >>conftest.$ac_ext <<_ACEOF 4573 /* end confdefs.h. */ 4574 #include <sys/types.h> 4575 #include <sys/param.h> 4576 4577 int 4578 main () 4579 { 4580 #if BYTE_ORDER != BIG_ENDIAN 4581 not big endian 4582 #endif 4583 4584 ; 4585 return 0; 4586 } 4587 _ACEOF 4588 rm -f conftest.$ac_objext 4589 if { (ac_try="$ac_compile" 4590 case "(($ac_try" in 4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4592 *) ac_try_echo=$ac_try;; 4593 esac 4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4595 (eval "$ac_compile") 2>conftest.er1 4596 ac_status=$? 4597 grep -v '^ *+' conftest.er1 >conftest.err 4598 rm -f conftest.er1 4599 cat conftest.err >&5 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); } && 4602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4603 { (case "(($ac_try" in 4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4605 *) ac_try_echo=$ac_try;; 4606 esac 4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4608 (eval "$ac_try") 2>&5 4609 ac_status=$? 4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4611 (exit $ac_status); }; } && 4612 { ac_try='test -s conftest.$ac_objext' 4613 { (case "(($ac_try" in 4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4615 *) ac_try_echo=$ac_try;; 4616 esac 4617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4618 (eval "$ac_try") 2>&5 4619 ac_status=$? 4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4621 (exit $ac_status); }; }; then 4622 ac_cv_c_bigendian=yes 4623 else 4624 echo "$as_me: failed program was:" >&5 4625 sed 's/^/| /' conftest.$ac_ext >&5 4626 4627 ac_cv_c_bigendian=no 4628 fi 4629 4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4631 else 4632 echo "$as_me: failed program was:" >&5 4633 sed 's/^/| /' conftest.$ac_ext >&5 4634 4635 # It does not; compile a test program. 4636 if test "$cross_compiling" = yes; then 4637 # try to guess the endianness by grepping values into an object file 4638 ac_cv_c_bigendian=unknown 4639 cat >conftest.$ac_ext <<_ACEOF 4640 /* confdefs.h. */ 4641 _ACEOF 4642 cat confdefs.h >>conftest.$ac_ext 4643 cat >>conftest.$ac_ext <<_ACEOF 4644 /* end confdefs.h. */ 4645 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4646 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4647 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4648 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4649 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4650 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4651 int 4652 main () 4653 { 4654 _ascii (); _ebcdic (); 4655 ; 4656 return 0; 4657 } 4658 _ACEOF 4659 rm -f conftest.$ac_objext 4660 if { (ac_try="$ac_compile" 4661 case "(($ac_try" in 4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4663 *) ac_try_echo=$ac_try;; 4664 esac 4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4666 (eval "$ac_compile") 2>conftest.er1 4667 ac_status=$? 4668 grep -v '^ *+' conftest.er1 >conftest.err 4669 rm -f conftest.er1 4670 cat conftest.err >&5 4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4672 (exit $ac_status); } && 4673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4674 { (case "(($ac_try" in 4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4676 *) ac_try_echo=$ac_try;; 4677 esac 4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4679 (eval "$ac_try") 2>&5 4680 ac_status=$? 4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4682 (exit $ac_status); }; } && 4683 { ac_try='test -s conftest.$ac_objext' 4684 { (case "(($ac_try" in 4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4686 *) ac_try_echo=$ac_try;; 4687 esac 4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4689 (eval "$ac_try") 2>&5 4690 ac_status=$? 4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4692 (exit $ac_status); }; }; then 4693 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4694 ac_cv_c_bigendian=yes 4695 fi 4696 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4697 if test "$ac_cv_c_bigendian" = unknown; then 4698 ac_cv_c_bigendian=no 4699 else 4700 # finding both strings is unlikely to happen, but who knows? 4701 ac_cv_c_bigendian=unknown 4702 fi 4703 fi 4704 else 4705 echo "$as_me: failed program was:" >&5 4706 sed 's/^/| /' conftest.$ac_ext >&5 4707 4708 4709 fi 4710 4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4712 else 4713 cat >conftest.$ac_ext <<_ACEOF 4714 /* confdefs.h. */ 4715 _ACEOF 4716 cat confdefs.h >>conftest.$ac_ext 4717 cat >>conftest.$ac_ext <<_ACEOF 4718 /* end confdefs.h. */ 4719 $ac_includes_default 4720 int 4721 main () 4722 { 4723 4724 /* Are we little or big endian? From Harbison&Steele. */ 4725 union 4726 { 4727 long int l; 4728 char c[sizeof (long int)]; 4729 } u; 4730 u.l = 1; 4731 return u.c[sizeof (long int) - 1] == 1; 4732 4733 ; 4734 return 0; 4735 } 4736 _ACEOF 4737 rm -f conftest$ac_exeext 4738 if { (ac_try="$ac_link" 4739 case "(($ac_try" in 4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4741 *) ac_try_echo=$ac_try;; 4742 esac 4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4744 (eval "$ac_link") 2>&5 4745 ac_status=$? 4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4748 { (case "(($ac_try" in 4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4750 *) ac_try_echo=$ac_try;; 4751 esac 4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4753 (eval "$ac_try") 2>&5 4754 ac_status=$? 4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4756 (exit $ac_status); }; }; then 4757 ac_cv_c_bigendian=no 4758 else 4759 echo "$as_me: program exited with status $ac_status" >&5 4760 echo "$as_me: failed program was:" >&5 4761 sed 's/^/| /' conftest.$ac_ext >&5 4762 4763 ( exit $ac_status ) 4764 ac_cv_c_bigendian=yes 4765 fi 4766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4767 fi 4768 4769 4770 fi 4771 4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4773 fi 4774 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4775 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4776 case $ac_cv_c_bigendian in 4777 yes) 4778 ENDIAN=big 4779 ;; 4780 no) 4781 ENDIAN=little 4782 ;; 4783 *) 4784 { { echo "$as_me:$LINENO: error: unknown endianness 4785 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4786 echo "$as_me: error: unknown endianness 4787 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4788 { (exit 1); exit 1; }; } ;; 4789 esac 4790 4791 4792 if test "$cross_compiling" = yes; then 4793 LLVM_CROSS_COMPILING=1 4794 4795 4796 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4797 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4798 if test "${ac_cv_build_exeext+set}" = set; then 4799 echo $ECHO_N "(cached) $ECHO_C" >&6 4800 else 4801 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4802 ac_cv_build_exeext=.exe 4803 else 4804 ac_build_prefix=${build_alias}- 4805 4806 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4807 set dummy ${ac_build_prefix}gcc; ac_word=$2 4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4810 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4811 echo $ECHO_N "(cached) $ECHO_C" >&6 4812 else 4813 if test -n "$BUILD_CC"; then 4814 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4815 else 4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4817 for as_dir in $PATH 4818 do 4819 IFS=$as_save_IFS 4820 test -z "$as_dir" && as_dir=. 4821 for ac_exec_ext in '' $ac_executable_extensions; do 4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4823 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4825 break 2 4826 fi 4827 done 4828 done 4829 IFS=$as_save_IFS 4830 4831 fi 4832 fi 4833 BUILD_CC=$ac_cv_prog_BUILD_CC 4834 if test -n "$BUILD_CC"; then 4835 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4836 echo "${ECHO_T}$BUILD_CC" >&6; } 4837 else 4838 { echo "$as_me:$LINENO: result: no" >&5 4839 echo "${ECHO_T}no" >&6; } 4840 fi 4841 4842 4843 if test -z "$BUILD_CC"; then 4844 # Extract the first word of "gcc", so it can be a program name with args. 4845 set dummy gcc; ac_word=$2 4846 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4848 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4849 echo $ECHO_N "(cached) $ECHO_C" >&6 4850 else 4851 if test -n "$BUILD_CC"; then 4852 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4853 else 4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4855 for as_dir in $PATH 4856 do 4857 IFS=$as_save_IFS 4858 test -z "$as_dir" && as_dir=. 4859 for ac_exec_ext in '' $ac_executable_extensions; do 4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4861 ac_cv_prog_BUILD_CC="gcc" 4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4863 break 2 4864 fi 4865 done 4866 done 4867 IFS=$as_save_IFS 4868 4869 fi 4870 fi 4871 BUILD_CC=$ac_cv_prog_BUILD_CC 4872 if test -n "$BUILD_CC"; then 4873 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4874 echo "${ECHO_T}$BUILD_CC" >&6; } 4875 else 4876 { echo "$as_me:$LINENO: result: no" >&5 4877 echo "${ECHO_T}no" >&6; } 4878 fi 4879 4880 4881 if test -z "$BUILD_CC"; then 4882 # Extract the first word of "cc", so it can be a program name with args. 4883 set dummy cc; ac_word=$2 4884 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4886 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4887 echo $ECHO_N "(cached) $ECHO_C" >&6 4888 else 4889 if test -n "$BUILD_CC"; then 4890 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4891 else 4892 ac_prog_rejected=no 4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4894 for as_dir in $PATH 4895 do 4896 IFS=$as_save_IFS 4897 test -z "$as_dir" && as_dir=. 4898 for ac_exec_ext in '' $ac_executable_extensions; do 4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4901 ac_prog_rejected=yes 4902 continue 4903 fi 4904 ac_cv_prog_BUILD_CC="cc" 4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4906 break 2 4907 fi 4908 done 4909 done 4910 IFS=$as_save_IFS 4911 4912 if test $ac_prog_rejected = yes; then 4913 # We found a bogon in the path, so make sure we never use it. 4914 set dummy $ac_cv_prog_BUILD_CC 4915 shift 4916 if test $# != 0; then 4917 # We chose a different compiler from the bogus one. 4918 # However, it has the same basename, so the bogon will be chosen 4919 # first if we set BUILD_CC to just the basename; use the full file name. 4920 shift 4921 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4922 fi 4923 fi 4924 fi 4925 fi 4926 BUILD_CC=$ac_cv_prog_BUILD_CC 4927 if test -n "$BUILD_CC"; then 4928 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4929 echo "${ECHO_T}$BUILD_CC" >&6; } 4930 else 4931 { echo "$as_me:$LINENO: result: no" >&5 4932 echo "${ECHO_T}no" >&6; } 4933 fi 4934 4935 4936 fi 4937 fi 4938 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4939 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4940 { (exit 1); exit 1; }; } 4941 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4942 rm -f conftest* 4943 echo 'int main () { return 0; }' > conftest.$ac_ext 4944 ac_cv_build_exeext= 4945 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4946 (eval $ac_build_link) 2>&5 4947 ac_status=$? 4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4949 (exit $ac_status); }; then 4950 for file in conftest.*; do 4951 case $file in 4952 *.c | *.o | *.obj | *.dSYM) ;; 4953 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4954 esac 4955 done 4956 else 4957 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4958 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4959 { (exit 1); exit 1; }; } 4960 fi 4961 rm -f conftest* 4962 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4963 fi 4964 fi 4965 4966 BUILD_EXEEXT="" 4967 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4968 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4969 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4970 ac_build_exeext=$BUILD_EXEEXT 4971 4972 ac_build_prefix=${build_alias}- 4973 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4974 set dummy ${ac_build_prefix}g++; ac_word=$2 4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4977 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4978 echo $ECHO_N "(cached) $ECHO_C" >&6 4979 else 4980 if test -n "$BUILD_CXX"; then 4981 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4982 else 4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4984 for as_dir in $PATH 4985 do 4986 IFS=$as_save_IFS 4987 test -z "$as_dir" && as_dir=. 4988 for ac_exec_ext in '' $ac_executable_extensions; do 4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4990 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4992 break 2 4993 fi 4994 done 4995 done 4996 IFS=$as_save_IFS 4997 4998 fi 4999 fi 5000 BUILD_CXX=$ac_cv_prog_BUILD_CXX 5001 if test -n "$BUILD_CXX"; then 5002 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5003 echo "${ECHO_T}$BUILD_CXX" >&6; } 5004 else 5005 { echo "$as_me:$LINENO: result: no" >&5 5006 echo "${ECHO_T}no" >&6; } 5007 fi 5008 5009 5010 if test -z "$BUILD_CXX"; then 5011 # Extract the first word of "g++", so it can be a program name with args. 5012 set dummy g++; ac_word=$2 5013 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5015 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 5016 echo $ECHO_N "(cached) $ECHO_C" >&6 5017 else 5018 if test -n "$BUILD_CXX"; then 5019 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5020 else 5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5022 for as_dir in $PATH 5023 do 5024 IFS=$as_save_IFS 5025 test -z "$as_dir" && as_dir=. 5026 for ac_exec_ext in '' $ac_executable_extensions; do 5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5028 ac_cv_prog_BUILD_CXX="g++" 5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5030 break 2 5031 fi 5032 done 5033 done 5034 IFS=$as_save_IFS 5035 5036 fi 5037 fi 5038 BUILD_CXX=$ac_cv_prog_BUILD_CXX 5039 if test -n "$BUILD_CXX"; then 5040 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5041 echo "${ECHO_T}$BUILD_CXX" >&6; } 5042 else 5043 { echo "$as_me:$LINENO: result: no" >&5 5044 echo "${ECHO_T}no" >&6; } 5045 fi 5046 5047 5048 if test -z "$BUILD_CXX"; then 5049 # Extract the first word of "c++", so it can be a program name with args. 5050 set dummy c++; ac_word=$2 5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5053 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 5054 echo $ECHO_N "(cached) $ECHO_C" >&6 5055 else 5056 if test -n "$BUILD_CXX"; then 5057 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5058 else 5059 ac_prog_rejected=no 5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5061 for as_dir in $PATH 5062 do 5063 IFS=$as_save_IFS 5064 test -z "$as_dir" && as_dir=. 5065 for ac_exec_ext in '' $ac_executable_extensions; do 5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 5068 ac_prog_rejected=yes 5069 continue 5070 fi 5071 ac_cv_prog_BUILD_CXX="c++" 5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5073 break 2 5074 fi 5075 done 5076 done 5077 IFS=$as_save_IFS 5078 5079 if test $ac_prog_rejected = yes; then 5080 # We found a bogon in the path, so make sure we never use it. 5081 set dummy $ac_cv_prog_BUILD_CXX 5082 shift 5083 if test $# != 0; then 5084 # We chose a different compiler from the bogus one. 5085 # However, it has the same basename, so the bogon will be chosen 5086 # first if we set BUILD_CXX to just the basename; use the full file name. 5087 shift 5088 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 5089 fi 5090 fi 5091 fi 5092 fi 5093 BUILD_CXX=$ac_cv_prog_BUILD_CXX 5094 if test -n "$BUILD_CXX"; then 5095 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5096 echo "${ECHO_T}$BUILD_CXX" >&6; } 5097 else 5098 { echo "$as_me:$LINENO: result: no" >&5 5099 echo "${ECHO_T}no" >&6; } 5100 fi 5101 5102 5103 fi 5104 fi 5105 else 5106 LLVM_CROSS_COMPILING=0 5107 5108 fi 5109 5110 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 5111 cvsbuild="yes" 5112 optimize="no" 5113 CVSBUILD=CVSBUILD=1 5114 5115 else 5116 cvsbuild="no" 5117 optimize="yes" 5118 fi 5119 5120 5121 # Check whether --enable-libcpp was given. 5122 if test "${enable_libcpp+set}" = set; then 5123 enableval=$enable_libcpp; 5124 else 5125 enableval=default 5126 fi 5127 5128 case "$enableval" in 5129 yes) ENABLE_LIBCPP=1 5130 ;; 5131 no) ENABLE_LIBCPP=0 5132 ;; 5133 default) ENABLE_LIBCPP=0 5134 ;; 5135 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 5136 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 5137 { (exit 1); exit 1; }; } ;; 5138 esac 5139 5140 # Check whether --enable-cxx11 was given. 5141 if test "${enable_cxx11+set}" = set; then 5142 enableval=$enable_cxx11; 5143 else 5144 enableval=default 5145 fi 5146 5147 case "$enableval" in 5148 yes) ENABLE_CXX11=1 5149 ;; 5150 no) ENABLE_CXX11=0 5151 ;; 5152 default) ENABLE_CXX11=0 5153 ;; 5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5 5155 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;} 5156 { (exit 1); exit 1; }; } ;; 5157 esac 5158 5159 clang_arcmt="yes" 5160 # Check whether --enable-clang-arcmt was given. 5161 if test "${enable_clang_arcmt+set}" = set; then 5162 enableval=$enable_clang_arcmt; clang_arcmt="$enableval" 5163 else 5164 enableval="yes" 5165 fi 5166 5167 case "$enableval" in 5168 yes) ENABLE_CLANG_ARCMT=1 5169 ;; 5170 no) ENABLE_CLANG_ARCMT=0 5171 ;; 5172 default) ENABLE_CLANG_ARCMT=1 5173 ;; 5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5 5175 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;} 5176 { (exit 1); exit 1; }; } ;; 5177 esac 5178 5179 clang_static_analyzer="yes" 5180 # Check whether --enable-clang-static-analyzer was given. 5181 if test "${enable_clang_static_analyzer+set}" = set; then 5182 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" 5183 else 5184 enableval="yes" 5185 fi 5186 5187 case "$enableval" in 5188 yes) ENABLE_CLANG_STATIC_ANALYZER=1 5189 ;; 5190 no) ENABLE_CLANG_STATIC_ANALYZER=0 5191 ;; 5192 default) ENABLE_CLANG_STATIC_ANALYZER=1 5193 ;; 5194 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5 5195 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;} 5196 { (exit 1); exit 1; }; } ;; 5197 esac 5198 5199 # Check whether --enable-clang-rewriter was given. 5200 if test "${enable_clang_rewriter+set}" = set; then 5201 enableval=$enable_clang_rewriter; 5202 else 5203 enableval="yes" 5204 fi 5205 5206 case "$enableval" in 5207 yes) ENABLE_CLANG_REWRITER=1 5208 ;; 5209 no) 5210 if test ${clang_arcmt} != "no" ; then 5211 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5 5212 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;} 5213 { (exit 1); exit 1; }; } 5214 fi 5215 if test ${clang_static_analyzer} != "no" ; then 5216 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5 5217 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;} 5218 { (exit 1); exit 1; }; } 5219 fi 5220 ENABLE_CLANG_REWRITER=0 5221 5222 ;; 5223 default) ENABLE_CLANG_REWRITER=1 5224 ;; 5225 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5 5226 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;} 5227 { (exit 1); exit 1; }; } ;; 5228 esac 5229 5230 # Check whether --enable-optimized was given. 5231 if test "${enable_optimized+set}" = set; then 5232 enableval=$enable_optimized; 5233 else 5234 enableval=$optimize 5235 fi 5236 5237 if test ${enableval} = "no" ; then 5238 ENABLE_OPTIMIZED= 5239 5240 else 5241 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 5242 5243 fi 5244 5245 # Check whether --enable-profiling was given. 5246 if test "${enable_profiling+set}" = set; then 5247 enableval=$enable_profiling; 5248 else 5249 enableval="no" 5250 fi 5251 5252 if test ${enableval} = "no" ; then 5253 ENABLE_PROFILING= 5254 5255 else 5256 ENABLE_PROFILING=ENABLE_PROFILING=1 5257 5258 fi 5259 5260 # Check whether --enable-assertions was given. 5261 if test "${enable_assertions+set}" = set; then 5262 enableval=$enable_assertions; 5263 else 5264 enableval="yes" 5265 fi 5266 5267 if test ${enableval} = "yes" ; then 5268 DISABLE_ASSERTIONS= 5269 5270 else 5271 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5272 5273 fi 5274 5275 # Check whether --enable-werror was given. 5276 if test "${enable_werror+set}" = set; then 5277 enableval=$enable_werror; 5278 else 5279 enableval="no" 5280 fi 5281 5282 case "$enableval" in 5283 yes) ENABLE_WERROR=1 5284 ;; 5285 no) ENABLE_WERROR=0 5286 ;; 5287 default) ENABLE_WERROR=0 5288 ;; 5289 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 5290 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} 5291 { (exit 1); exit 1; }; } ;; 5292 esac 5293 5294 # Check whether --enable-expensive-checks was given. 5295 if test "${enable_expensive_checks+set}" = set; then 5296 enableval=$enable_expensive_checks; 5297 else 5298 enableval="no" 5299 fi 5300 5301 if test ${enableval} = "yes" ; then 5302 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5303 5304 EXPENSIVE_CHECKS=yes 5305 5306 else 5307 ENABLE_EXPENSIVE_CHECKS= 5308 5309 EXPENSIVE_CHECKS=no 5310 5311 fi 5312 5313 # Check whether --enable-debug-runtime was given. 5314 if test "${enable_debug_runtime+set}" = set; then 5315 enableval=$enable_debug_runtime; 5316 else 5317 enableval=no 5318 fi 5319 5320 if test ${enableval} = "no" ; then 5321 DEBUG_RUNTIME= 5322 5323 else 5324 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5325 5326 fi 5327 5328 # Check whether --enable-debug-symbols was given. 5329 if test "${enable_debug_symbols+set}" = set; then 5330 enableval=$enable_debug_symbols; 5331 else 5332 enableval=no 5333 fi 5334 5335 if test ${enableval} = "no" ; then 5336 DEBUG_SYMBOLS= 5337 5338 else 5339 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5340 5341 fi 5342 5343 # Check whether --enable-keep-symbols was given. 5344 if test "${enable_keep_symbols+set}" = set; then 5345 enableval=$enable_keep_symbols; 5346 else 5347 enableval=no 5348 fi 5349 5350 if test ${enableval} = "no" ; then 5351 KEEP_SYMBOLS= 5352 5353 else 5354 KEEP_SYMBOLS=KEEP_SYMBOLS=1 5355 5356 fi 5357 5358 # Check whether --enable-jit was given. 5359 if test "${enable_jit+set}" = set; then 5360 enableval=$enable_jit; 5361 else 5362 enableval=default 5363 fi 5364 5365 if test ${enableval} = "no" 5366 then 5367 JIT= 5368 5369 else 5370 case "$llvm_cv_target_arch" in 5371 x86) TARGET_HAS_JIT=1 5372 ;; 5373 Sparc) TARGET_HAS_JIT=0 5374 ;; 5375 PowerPC) TARGET_HAS_JIT=1 5376 ;; 5377 x86_64) TARGET_HAS_JIT=1 5378 ;; 5379 ARM) TARGET_HAS_JIT=1 5380 ;; 5381 AArch64) TARGET_HAS_JIT=0 5382 ;; 5383 Mips) TARGET_HAS_JIT=1 5384 ;; 5385 XCore) TARGET_HAS_JIT=0 5386 ;; 5387 MSP430) TARGET_HAS_JIT=0 5388 ;; 5389 Hexagon) TARGET_HAS_JIT=0 5390 ;; 5391 MBlaze) TARGET_HAS_JIT=0 5392 ;; 5393 NVPTX) TARGET_HAS_JIT=0 5394 ;; 5395 *) TARGET_HAS_JIT=0 5396 ;; 5397 esac 5398 fi 5399 5400 # Check whether --enable-docs was given. 5401 if test "${enable_docs+set}" = set; then 5402 enableval=$enable_docs; 5403 else 5404 enableval=default 5405 fi 5406 5407 case "$enableval" in 5408 yes) ENABLE_DOCS=1 5409 ;; 5410 no) ENABLE_DOCS=0 5411 ;; 5412 default) ENABLE_DOCS=1 5413 ;; 5414 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5415 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5416 { (exit 1); exit 1; }; } ;; 5417 esac 5418 5419 # Check whether --enable-doxygen was given. 5420 if test "${enable_doxygen+set}" = set; then 5421 enableval=$enable_doxygen; 5422 else 5423 enableval=default 5424 fi 5425 5426 case "$enableval" in 5427 yes) ENABLE_DOXYGEN=1 5428 ;; 5429 no) ENABLE_DOXYGEN=0 5430 ;; 5431 default) ENABLE_DOXYGEN=0 5432 ;; 5433 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5434 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5435 { (exit 1); exit 1; }; } ;; 5436 esac 5437 5438 # Check whether --enable-threads was given. 5439 if test "${enable_threads+set}" = set; then 5440 enableval=$enable_threads; 5441 else 5442 enableval=default 5443 fi 5444 5445 case "$enableval" in 5446 yes) LLVM_ENABLE_THREADS=1 5447 ;; 5448 no) LLVM_ENABLE_THREADS=0 5449 ;; 5450 default) LLVM_ENABLE_THREADS=1 5451 ;; 5452 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5453 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5454 { (exit 1); exit 1; }; } ;; 5455 esac 5456 5457 cat >>confdefs.h <<_ACEOF 5458 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5459 _ACEOF 5460 5461 5462 # Check whether --enable-pthreads was given. 5463 if test "${enable_pthreads+set}" = set; then 5464 enableval=$enable_pthreads; 5465 else 5466 enableval=default 5467 fi 5468 5469 case "$enableval" in 5470 yes) ENABLE_PTHREADS=1 5471 ;; 5472 no) ENABLE_PTHREADS=0 5473 ;; 5474 default) ENABLE_PTHREADS=1 5475 ;; 5476 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5477 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5478 { (exit 1); exit 1; }; } ;; 5479 esac 5480 5481 # Check whether --enable-pic was given. 5482 if test "${enable_pic+set}" = set; then 5483 enableval=$enable_pic; 5484 else 5485 enableval=default 5486 fi 5487 5488 case "$enableval" in 5489 yes) ENABLE_PIC=1 5490 ;; 5491 no) ENABLE_PIC=0 5492 ;; 5493 default) ENABLE_PIC=1 5494 ;; 5495 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5496 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5497 { (exit 1); exit 1; }; } ;; 5498 esac 5499 5500 cat >>confdefs.h <<_ACEOF 5501 #define ENABLE_PIC $ENABLE_PIC 5502 _ACEOF 5503 5504 5505 # Check whether --enable-shared was given. 5506 if test "${enable_shared+set}" = set; then 5507 enableval=$enable_shared; 5508 else 5509 enableval=default 5510 fi 5511 5512 case "$enableval" in 5513 yes) ENABLE_SHARED=1 5514 ;; 5515 no) ENABLE_SHARED=0 5516 ;; 5517 default) ENABLE_SHARED=0 5518 ;; 5519 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5520 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5521 { (exit 1); exit 1; }; } ;; 5522 esac 5523 5524 # Check whether --enable-embed-stdcxx was given. 5525 if test "${enable_embed_stdcxx+set}" = set; then 5526 enableval=$enable_embed_stdcxx; 5527 else 5528 enableval=default 5529 fi 5530 5531 case "$enableval" in 5532 yes) ENABLE_EMBED_STDCXX=1 5533 ;; 5534 no) ENABLE_EMBED_STDCXX=0 5535 ;; 5536 default) ENABLE_EMBED_STDCXX=0 5537 ;; 5538 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5539 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5540 { (exit 1); exit 1; }; } ;; 5541 esac 5542 5543 # Check whether --enable-timestamps was given. 5544 if test "${enable_timestamps+set}" = set; then 5545 enableval=$enable_timestamps; 5546 else 5547 enableval=default 5548 fi 5549 5550 case "$enableval" in 5551 yes) ENABLE_TIMESTAMPS=1 5552 ;; 5553 no) ENABLE_TIMESTAMPS=0 5554 ;; 5555 default) ENABLE_TIMESTAMPS=1 5556 ;; 5557 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5558 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5559 { (exit 1); exit 1; }; } ;; 5560 esac 5561 5562 cat >>confdefs.h <<_ACEOF 5563 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5564 _ACEOF 5565 5566 5567 5568 # Check whether --enable-backtraces was given. 5569 if test "${enable_backtraces+set}" = set; then 5570 enableval=$enable_backtraces; 5571 else 5572 enableval=default 5573 fi 5574 5575 case "$enableval" in 5576 yes) ENABLE_BACKTRACES=1 5577 ;; 5578 no) ENABLE_BACKTRACES=0 5579 ;; 5580 default) ENABLE_BACKTRACES=1 5581 ;; 5582 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5 5583 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;} 5584 { (exit 1); exit 1; }; } ;; 5585 esac 5586 5587 cat >>confdefs.h <<_ACEOF 5588 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES 5589 _ACEOF 5590 5591 5592 TARGETS_TO_BUILD="" 5593 # Check whether --enable-targets was given. 5594 if test "${enable_targets+set}" = set; then 5595 enableval=$enable_targets; 5596 else 5597 enableval=all 5598 fi 5599 5600 if test "$enableval" = host-only ; then 5601 enableval=host 5602 fi 5603 case "$enableval" in 5604 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;; 5605 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5606 case "$a_target" in 5607 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5608 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5609 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5610 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5611 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5612 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5613 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5614 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5615 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5616 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5617 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5618 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5619 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5620 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5621 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5622 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5623 host) case "$llvm_cv_target_arch" in 5624 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5625 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5626 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5627 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5628 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5629 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5630 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5631 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5632 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5633 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5634 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5635 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5636 echo "$as_me: error: Can not set target to build" >&2;} 5637 { (exit 1); exit 1; }; } ;; 5638 esac ;; 5639 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5640 echo "$as_me: error: Unrecognized target $a_target" >&2;} 5641 { (exit 1); exit 1; }; } ;; 5642 esac 5643 done 5644 ;; 5645 esac 5646 5647 # Check whether --enable-experimental-targets was given. 5648 if test "${enable_experimental_targets+set}" = set; then 5649 enableval=$enable_experimental_targets; 5650 else 5651 enableval=disable 5652 fi 5653 5654 5655 if test ${enableval} != "disable" 5656 then 5657 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" 5658 fi 5659 5660 TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5661 5662 5663 for a_target in $TARGETS_TO_BUILD; do 5664 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5665 5666 cat >>confdefs.h <<_ACEOF 5667 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5668 _ACEOF 5669 5670 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5671 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5672 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5673 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5674 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5675 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5676 fi 5677 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5678 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5679 fi 5680 5681 cat >>confdefs.h <<_ACEOF 5682 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5683 _ACEOF 5684 5685 5686 cat >>confdefs.h <<_ACEOF 5687 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5688 _ACEOF 5689 5690 5691 cat >>confdefs.h <<_ACEOF 5692 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5693 _ACEOF 5694 5695 5696 cat >>confdefs.h <<_ACEOF 5697 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5698 _ACEOF 5699 5700 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5701 5702 cat >>confdefs.h <<_ACEOF 5703 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5704 _ACEOF 5705 5706 fi 5707 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5708 5709 cat >>confdefs.h <<_ACEOF 5710 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5711 _ACEOF 5712 5713 fi 5714 fi 5715 done 5716 5717 LLVM_ENUM_TARGETS="" 5718 LLVM_ENUM_ASM_PRINTERS="" 5719 LLVM_ENUM_ASM_PARSERS="" 5720 LLVM_ENUM_DISASSEMBLERS="" 5721 for target_to_build in $TARGETS_TO_BUILD; do 5722 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5723 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5724 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5725 fi 5726 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5727 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5728 fi 5729 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5730 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5731 fi 5732 done 5733 5734 5735 5736 5737 5738 5739 # Check whether --with-optimize-option was given. 5740 if test "${with_optimize_option+set}" = set; then 5741 withval=$with_optimize_option; 5742 else 5743 withval=default 5744 fi 5745 5746 { echo "$as_me:$LINENO: checking optimization flags" >&5 5747 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5748 case "$withval" in 5749 default) 5750 case "$llvm_cv_os_type" in 5751 FreeBSD) optimize_option=-O2 ;; 5752 MingW) optimize_option=-O2 ;; 5753 *) optimize_option=-O3 ;; 5754 esac ;; 5755 *) optimize_option="$withval" ;; 5756 esac 5757 OPTIMIZE_OPTION=$optimize_option 5758 5759 { echo "$as_me:$LINENO: result: $optimize_option" >&5 5760 echo "${ECHO_T}$optimize_option" >&6; } 5761 5762 5763 # Check whether --with-extra-options was given. 5764 if test "${with_extra_options+set}" = set; then 5765 withval=$with_extra_options; 5766 else 5767 withval=default 5768 fi 5769 5770 case "$withval" in 5771 default) EXTRA_OPTIONS= ;; 5772 *) EXTRA_OPTIONS=$withval ;; 5773 esac 5774 EXTRA_OPTIONS=$EXTRA_OPTIONS 5775 5776 5777 5778 # Check whether --with-extra-ld-options was given. 5779 if test "${with_extra_ld_options+set}" = set; then 5780 withval=$with_extra_ld_options; 5781 else 5782 withval=default 5783 fi 5784 5785 case "$withval" in 5786 default) EXTRA_LD_OPTIONS= ;; 5787 *) EXTRA_LD_OPTIONS=$withval ;; 5788 esac 5789 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5790 5791 5792 # Check whether --enable-bindings was given. 5793 if test "${enable_bindings+set}" = set; then 5794 enableval=$enable_bindings; 5795 else 5796 enableval=default 5797 fi 5798 5799 BINDINGS_TO_BUILD="" 5800 case "$enableval" in 5801 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5802 all ) BINDINGS_TO_BUILD="ocaml" ;; 5803 none | no) BINDINGS_TO_BUILD="" ;; 5804 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5805 case "$a_binding" in 5806 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5807 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5808 echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5809 { (exit 1); exit 1; }; } ;; 5810 esac 5811 done 5812 ;; 5813 esac 5814 5815 5816 # Check whether --with-ocaml-libdir was given. 5817 if test "${with_ocaml_libdir+set}" = set; then 5818 withval=$with_ocaml_libdir; 5819 else 5820 withval=auto 5821 fi 5822 5823 case "$withval" in 5824 auto) with_ocaml_libdir="$withval" ;; 5825 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5826 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5827 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5828 { (exit 1); exit 1; }; } ;; 5829 esac 5830 5831 5832 # Check whether --with-clang-srcdir was given. 5833 if test "${with_clang_srcdir+set}" = set; then 5834 withval=$with_clang_srcdir; 5835 else 5836 withval="-" 5837 fi 5838 5839 case "$withval" in 5840 -) clang_src_root="" ;; 5841 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5842 *) clang_src_root="$ac_pwd/$withval" ;; 5843 esac 5844 CLANG_SRC_ROOT=$clang_src_root 5845 5846 5847 5848 # Check whether --with-clang-resource-dir was given. 5849 if test "${with_clang_resource_dir+set}" = set; then 5850 withval=$with_clang_resource_dir; 5851 else 5852 withval="" 5853 fi 5854 5855 5856 cat >>confdefs.h <<_ACEOF 5857 #define CLANG_RESOURCE_DIR "$withval" 5858 _ACEOF 5859 5860 5861 5862 # Check whether --with-c-include-dirs was given. 5863 if test "${with_c_include_dirs+set}" = set; then 5864 withval=$with_c_include_dirs; 5865 else 5866 withval="" 5867 fi 5868 5869 5870 cat >>confdefs.h <<_ACEOF 5871 #define C_INCLUDE_DIRS "$withval" 5872 _ACEOF 5873 5874 5875 # Clang normally uses the system c++ headers and libraries. With this option, 5876 # clang will use the ones provided by a gcc installation instead. This option should 5877 # be passed the same value that was used with --prefix when configuring gcc. 5878 5879 # Check whether --with-gcc-toolchain was given. 5880 if test "${with_gcc_toolchain+set}" = set; then 5881 withval=$with_gcc_toolchain; 5882 else 5883 withval="" 5884 fi 5885 5886 5887 cat >>confdefs.h <<_ACEOF 5888 #define GCC_INSTALL_PREFIX "$withval" 5889 _ACEOF 5890 5891 5892 5893 # Check whether --with-default-sysroot was given. 5894 if test "${with_default_sysroot+set}" = set; then 5895 withval=$with_default_sysroot; 5896 else 5897 withval="" 5898 fi 5899 5900 5901 cat >>confdefs.h <<_ACEOF 5902 #define DEFAULT_SYSROOT "$withval" 5903 _ACEOF 5904 5905 5906 5907 # Check whether --with-binutils-include was given. 5908 if test "${with_binutils_include+set}" = set; then 5909 withval=$with_binutils_include; 5910 else 5911 withval=default 5912 fi 5913 5914 case "$withval" in 5915 default) WITH_BINUTILS_INCDIR=default ;; 5916 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5917 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5918 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5919 { (exit 1); exit 1; }; } ;; 5920 esac 5921 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5922 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5923 5924 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5925 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5926 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5927 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5928 { (exit 1); exit 1; }; }; 5929 fi 5930 fi 5931 5932 5933 # Check whether --with-bug-report-url was given. 5934 if test "${with_bug_report_url+set}" = set; then 5935 withval=$with_bug_report_url; 5936 else 5937 withval="http://llvm.org/bugs/" 5938 fi 5939 5940 5941 cat >>confdefs.h <<_ACEOF 5942 #define BUG_REPORT_URL "$withval" 5943 _ACEOF 5944 5945 5946 # Check whether --enable-libffi was given. 5947 if test "${enable_libffi+set}" = set; then 5948 enableval=$enable_libffi; case "$enableval" in 5949 yes) llvm_cv_enable_libffi="yes" ;; 5950 no) llvm_cv_enable_libffi="no" ;; 5951 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5952 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5953 { (exit 1); exit 1; }; } ;; 5954 esac 5955 else 5956 llvm_cv_enable_libffi=no 5957 fi 5958 5959 5960 5961 # Check whether --with-internal-prefix was given. 5962 if test "${with_internal_prefix+set}" = set; then 5963 withval=$with_internal_prefix; 5964 else 5965 withval="" 5966 fi 5967 5968 INTERNAL_PREFIX=$withval 5969 5970 5971 5972 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5973 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5974 if test "${lt_cv_path_NM+set}" = set; then 5975 echo $ECHO_N "(cached) $ECHO_C" >&6 5976 else 5977 if test -n "$NM"; then 5978 # Let the user override the test. 5979 lt_cv_path_NM="$NM" 5980 else 5981 lt_nm_to_check="${ac_tool_prefix}nm" 5982 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5983 lt_nm_to_check="$lt_nm_to_check nm" 5984 fi 5985 for lt_tmp_nm in $lt_nm_to_check; do 5986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5987 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5988 IFS="$lt_save_ifs" 5989 test -z "$ac_dir" && ac_dir=. 5990 tmp_nm="$ac_dir/$lt_tmp_nm" 5991 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5992 # Check to see if the nm accepts a BSD-compat flag. 5993 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5994 # nm: unknown option "B" ignored 5995 # Tru64's nm complains that /dev/null is an invalid object file 5996 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5997 */dev/null* | *'Invalid file or object type'*) 5998 lt_cv_path_NM="$tmp_nm -B" 5999 break 6000 ;; 6001 *) 6002 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6003 */dev/null*) 6004 lt_cv_path_NM="$tmp_nm -p" 6005 break 6006 ;; 6007 *) 6008 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6009 continue # so that we can try to find one that supports BSD flags 6010 ;; 6011 esac 6012 ;; 6013 esac 6014 fi 6015 done 6016 IFS="$lt_save_ifs" 6017 done 6018 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6019 fi 6020 fi 6021 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6022 echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6023 NM="$lt_cv_path_NM" 6024 6025 6026 6027 { echo "$as_me:$LINENO: checking for GNU make" >&5 6028 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6029 if test "${llvm_cv_gnu_make_command+set}" = set; then 6030 echo $ECHO_N "(cached) $ECHO_C" >&6 6031 else 6032 llvm_cv_gnu_make_command='' 6033 for a in "$MAKE" make gmake gnumake ; do 6034 if test -z "$a" ; then continue ; fi ; 6035 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6036 then 6037 llvm_cv_gnu_make_command=$a ; 6038 break; 6039 fi 6040 done 6041 fi 6042 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6043 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6044 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6045 ifGNUmake='' ; 6046 else 6047 ifGNUmake='#' ; 6048 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6049 echo "${ECHO_T}\"Not found\"" >&6; }; 6050 fi 6051 6052 6053 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 6054 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6055 LN_S=$as_ln_s 6056 if test "$LN_S" = "ln -s"; then 6057 { echo "$as_me:$LINENO: result: yes" >&5 6058 echo "${ECHO_T}yes" >&6; } 6059 else 6060 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6061 echo "${ECHO_T}no, using $LN_S" >&6; } 6062 fi 6063 6064 # Extract the first word of "cmp", so it can be a program name with args. 6065 set dummy cmp; ac_word=$2 6066 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6068 if test "${ac_cv_path_CMP+set}" = set; then 6069 echo $ECHO_N "(cached) $ECHO_C" >&6 6070 else 6071 case $CMP in 6072 [\\/]* | ?:[\\/]*) 6073 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6074 ;; 6075 *) 6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6077 for as_dir in $PATH 6078 do 6079 IFS=$as_save_IFS 6080 test -z "$as_dir" && as_dir=. 6081 for ac_exec_ext in '' $ac_executable_extensions; do 6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6083 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6085 break 2 6086 fi 6087 done 6088 done 6089 IFS=$as_save_IFS 6090 6091 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6092 ;; 6093 esac 6094 fi 6095 CMP=$ac_cv_path_CMP 6096 if test -n "$CMP"; then 6097 { echo "$as_me:$LINENO: result: $CMP" >&5 6098 echo "${ECHO_T}$CMP" >&6; } 6099 else 6100 { echo "$as_me:$LINENO: result: no" >&5 6101 echo "${ECHO_T}no" >&6; } 6102 fi 6103 6104 6105 # Extract the first word of "cp", so it can be a program name with args. 6106 set dummy cp; ac_word=$2 6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6109 if test "${ac_cv_path_CP+set}" = set; then 6110 echo $ECHO_N "(cached) $ECHO_C" >&6 6111 else 6112 case $CP in 6113 [\\/]* | ?:[\\/]*) 6114 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6115 ;; 6116 *) 6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6118 for as_dir in $PATH 6119 do 6120 IFS=$as_save_IFS 6121 test -z "$as_dir" && as_dir=. 6122 for ac_exec_ext in '' $ac_executable_extensions; do 6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6124 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6126 break 2 6127 fi 6128 done 6129 done 6130 IFS=$as_save_IFS 6131 6132 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6133 ;; 6134 esac 6135 fi 6136 CP=$ac_cv_path_CP 6137 if test -n "$CP"; then 6138 { echo "$as_me:$LINENO: result: $CP" >&5 6139 echo "${ECHO_T}$CP" >&6; } 6140 else 6141 { echo "$as_me:$LINENO: result: no" >&5 6142 echo "${ECHO_T}no" >&6; } 6143 fi 6144 6145 6146 # Extract the first word of "date", so it can be a program name with args. 6147 set dummy date; ac_word=$2 6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6150 if test "${ac_cv_path_DATE+set}" = set; then 6151 echo $ECHO_N "(cached) $ECHO_C" >&6 6152 else 6153 case $DATE in 6154 [\\/]* | ?:[\\/]*) 6155 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6156 ;; 6157 *) 6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6159 for as_dir in $PATH 6160 do 6161 IFS=$as_save_IFS 6162 test -z "$as_dir" && as_dir=. 6163 for ac_exec_ext in '' $ac_executable_extensions; do 6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6165 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6167 break 2 6168 fi 6169 done 6170 done 6171 IFS=$as_save_IFS 6172 6173 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6174 ;; 6175 esac 6176 fi 6177 DATE=$ac_cv_path_DATE 6178 if test -n "$DATE"; then 6179 { echo "$as_me:$LINENO: result: $DATE" >&5 6180 echo "${ECHO_T}$DATE" >&6; } 6181 else 6182 { echo "$as_me:$LINENO: result: no" >&5 6183 echo "${ECHO_T}no" >&6; } 6184 fi 6185 6186 6187 # Extract the first word of "find", so it can be a program name with args. 6188 set dummy find; ac_word=$2 6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6191 if test "${ac_cv_path_FIND+set}" = set; then 6192 echo $ECHO_N "(cached) $ECHO_C" >&6 6193 else 6194 case $FIND in 6195 [\\/]* | ?:[\\/]*) 6196 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6197 ;; 6198 *) 6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6200 for as_dir in $PATH 6201 do 6202 IFS=$as_save_IFS 6203 test -z "$as_dir" && as_dir=. 6204 for ac_exec_ext in '' $ac_executable_extensions; do 6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6206 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6208 break 2 6209 fi 6210 done 6211 done 6212 IFS=$as_save_IFS 6213 6214 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6215 ;; 6216 esac 6217 fi 6218 FIND=$ac_cv_path_FIND 6219 if test -n "$FIND"; then 6220 { echo "$as_me:$LINENO: result: $FIND" >&5 6221 echo "${ECHO_T}$FIND" >&6; } 6222 else 6223 { echo "$as_me:$LINENO: result: no" >&5 6224 echo "${ECHO_T}no" >&6; } 6225 fi 6226 6227 6228 # Extract the first word of "grep", so it can be a program name with args. 6229 set dummy grep; ac_word=$2 6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6232 if test "${ac_cv_path_GREP+set}" = set; then 6233 echo $ECHO_N "(cached) $ECHO_C" >&6 6234 else 6235 case $GREP in 6236 [\\/]* | ?:[\\/]*) 6237 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6238 ;; 6239 *) 6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6241 for as_dir in $PATH 6242 do 6243 IFS=$as_save_IFS 6244 test -z "$as_dir" && as_dir=. 6245 for ac_exec_ext in '' $ac_executable_extensions; do 6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6247 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6249 break 2 6250 fi 6251 done 6252 done 6253 IFS=$as_save_IFS 6254 6255 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6256 ;; 6257 esac 6258 fi 6259 GREP=$ac_cv_path_GREP 6260 if test -n "$GREP"; then 6261 { echo "$as_me:$LINENO: result: $GREP" >&5 6262 echo "${ECHO_T}$GREP" >&6; } 6263 else 6264 { echo "$as_me:$LINENO: result: no" >&5 6265 echo "${ECHO_T}no" >&6; } 6266 fi 6267 6268 6269 # Extract the first word of "mkdir", so it can be a program name with args. 6270 set dummy mkdir; ac_word=$2 6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6273 if test "${ac_cv_path_MKDIR+set}" = set; then 6274 echo $ECHO_N "(cached) $ECHO_C" >&6 6275 else 6276 case $MKDIR in 6277 [\\/]* | ?:[\\/]*) 6278 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6279 ;; 6280 *) 6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6282 for as_dir in $PATH 6283 do 6284 IFS=$as_save_IFS 6285 test -z "$as_dir" && as_dir=. 6286 for ac_exec_ext in '' $ac_executable_extensions; do 6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6288 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6290 break 2 6291 fi 6292 done 6293 done 6294 IFS=$as_save_IFS 6295 6296 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6297 ;; 6298 esac 6299 fi 6300 MKDIR=$ac_cv_path_MKDIR 6301 if test -n "$MKDIR"; then 6302 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6303 echo "${ECHO_T}$MKDIR" >&6; } 6304 else 6305 { echo "$as_me:$LINENO: result: no" >&5 6306 echo "${ECHO_T}no" >&6; } 6307 fi 6308 6309 6310 # Extract the first word of "mv", so it can be a program name with args. 6311 set dummy mv; ac_word=$2 6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6314 if test "${ac_cv_path_MV+set}" = set; then 6315 echo $ECHO_N "(cached) $ECHO_C" >&6 6316 else 6317 case $MV in 6318 [\\/]* | ?:[\\/]*) 6319 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6320 ;; 6321 *) 6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6323 for as_dir in $PATH 6324 do 6325 IFS=$as_save_IFS 6326 test -z "$as_dir" && as_dir=. 6327 for ac_exec_ext in '' $ac_executable_extensions; do 6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6329 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6331 break 2 6332 fi 6333 done 6334 done 6335 IFS=$as_save_IFS 6336 6337 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6338 ;; 6339 esac 6340 fi 6341 MV=$ac_cv_path_MV 6342 if test -n "$MV"; then 6343 { echo "$as_me:$LINENO: result: $MV" >&5 6344 echo "${ECHO_T}$MV" >&6; } 6345 else 6346 { echo "$as_me:$LINENO: result: no" >&5 6347 echo "${ECHO_T}no" >&6; } 6348 fi 6349 6350 6351 if test -n "$ac_tool_prefix"; then 6352 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6353 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6354 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6356 if test "${ac_cv_prog_RANLIB+set}" = set; then 6357 echo $ECHO_N "(cached) $ECHO_C" >&6 6358 else 6359 if test -n "$RANLIB"; then 6360 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6361 else 6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6363 for as_dir in $PATH 6364 do 6365 IFS=$as_save_IFS 6366 test -z "$as_dir" && as_dir=. 6367 for ac_exec_ext in '' $ac_executable_extensions; do 6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6369 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6371 break 2 6372 fi 6373 done 6374 done 6375 IFS=$as_save_IFS 6376 6377 fi 6378 fi 6379 RANLIB=$ac_cv_prog_RANLIB 6380 if test -n "$RANLIB"; then 6381 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6382 echo "${ECHO_T}$RANLIB" >&6; } 6383 else 6384 { echo "$as_me:$LINENO: result: no" >&5 6385 echo "${ECHO_T}no" >&6; } 6386 fi 6387 6388 6389 fi 6390 if test -z "$ac_cv_prog_RANLIB"; then 6391 ac_ct_RANLIB=$RANLIB 6392 # Extract the first word of "ranlib", so it can be a program name with args. 6393 set dummy ranlib; ac_word=$2 6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6396 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6397 echo $ECHO_N "(cached) $ECHO_C" >&6 6398 else 6399 if test -n "$ac_ct_RANLIB"; then 6400 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6401 else 6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403 for as_dir in $PATH 6404 do 6405 IFS=$as_save_IFS 6406 test -z "$as_dir" && as_dir=. 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6409 ac_cv_prog_ac_ct_RANLIB="ranlib" 6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413 done 6414 done 6415 IFS=$as_save_IFS 6416 6417 fi 6418 fi 6419 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6420 if test -n "$ac_ct_RANLIB"; then 6421 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6422 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6423 else 6424 { echo "$as_me:$LINENO: result: no" >&5 6425 echo "${ECHO_T}no" >&6; } 6426 fi 6427 6428 if test "x$ac_ct_RANLIB" = x; then 6429 RANLIB=":" 6430 else 6431 case $cross_compiling:$ac_tool_warned in 6432 yes:) 6433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6434 whose name does not start with the host triplet. If you think this 6435 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6437 whose name does not start with the host triplet. If you think this 6438 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6439 ac_tool_warned=yes ;; 6440 esac 6441 RANLIB=$ac_ct_RANLIB 6442 fi 6443 else 6444 RANLIB="$ac_cv_prog_RANLIB" 6445 fi 6446 6447 if test -n "$ac_tool_prefix"; then 6448 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6449 set dummy ${ac_tool_prefix}ar; ac_word=$2 6450 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6452 if test "${ac_cv_prog_AR+set}" = set; then 6453 echo $ECHO_N "(cached) $ECHO_C" >&6 6454 else 6455 if test -n "$AR"; then 6456 ac_cv_prog_AR="$AR" # Let the user override the test. 6457 else 6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6459 for as_dir in $PATH 6460 do 6461 IFS=$as_save_IFS 6462 test -z "$as_dir" && as_dir=. 6463 for ac_exec_ext in '' $ac_executable_extensions; do 6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6465 ac_cv_prog_AR="${ac_tool_prefix}ar" 6466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6467 break 2 6468 fi 6469 done 6470 done 6471 IFS=$as_save_IFS 6472 6473 fi 6474 fi 6475 AR=$ac_cv_prog_AR 6476 if test -n "$AR"; then 6477 { echo "$as_me:$LINENO: result: $AR" >&5 6478 echo "${ECHO_T}$AR" >&6; } 6479 else 6480 { echo "$as_me:$LINENO: result: no" >&5 6481 echo "${ECHO_T}no" >&6; } 6482 fi 6483 6484 6485 fi 6486 if test -z "$ac_cv_prog_AR"; then 6487 ac_ct_AR=$AR 6488 # Extract the first word of "ar", so it can be a program name with args. 6489 set dummy ar; ac_word=$2 6490 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6492 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6493 echo $ECHO_N "(cached) $ECHO_C" >&6 6494 else 6495 if test -n "$ac_ct_AR"; then 6496 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6497 else 6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6499 for as_dir in $PATH 6500 do 6501 IFS=$as_save_IFS 6502 test -z "$as_dir" && as_dir=. 6503 for ac_exec_ext in '' $ac_executable_extensions; do 6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6505 ac_cv_prog_ac_ct_AR="ar" 6506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6507 break 2 6508 fi 6509 done 6510 done 6511 IFS=$as_save_IFS 6512 6513 fi 6514 fi 6515 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6516 if test -n "$ac_ct_AR"; then 6517 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6518 echo "${ECHO_T}$ac_ct_AR" >&6; } 6519 else 6520 { echo "$as_me:$LINENO: result: no" >&5 6521 echo "${ECHO_T}no" >&6; } 6522 fi 6523 6524 if test "x$ac_ct_AR" = x; then 6525 AR="false" 6526 else 6527 case $cross_compiling:$ac_tool_warned in 6528 yes:) 6529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6530 whose name does not start with the host triplet. If you think this 6531 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6533 whose name does not start with the host triplet. If you think this 6534 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6535 ac_tool_warned=yes ;; 6536 esac 6537 AR=$ac_ct_AR 6538 fi 6539 else 6540 AR="$ac_cv_prog_AR" 6541 fi 6542 6543 # Extract the first word of "rm", so it can be a program name with args. 6544 set dummy rm; ac_word=$2 6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6547 if test "${ac_cv_path_RM+set}" = set; then 6548 echo $ECHO_N "(cached) $ECHO_C" >&6 6549 else 6550 case $RM in 6551 [\\/]* | ?:[\\/]*) 6552 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6553 ;; 6554 *) 6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6556 for as_dir in $PATH 6557 do 6558 IFS=$as_save_IFS 6559 test -z "$as_dir" && as_dir=. 6560 for ac_exec_ext in '' $ac_executable_extensions; do 6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6562 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6564 break 2 6565 fi 6566 done 6567 done 6568 IFS=$as_save_IFS 6569 6570 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6571 ;; 6572 esac 6573 fi 6574 RM=$ac_cv_path_RM 6575 if test -n "$RM"; then 6576 { echo "$as_me:$LINENO: result: $RM" >&5 6577 echo "${ECHO_T}$RM" >&6; } 6578 else 6579 { echo "$as_me:$LINENO: result: no" >&5 6580 echo "${ECHO_T}no" >&6; } 6581 fi 6582 6583 6584 # Extract the first word of "sed", so it can be a program name with args. 6585 set dummy sed; ac_word=$2 6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6588 if test "${ac_cv_path_SED+set}" = set; then 6589 echo $ECHO_N "(cached) $ECHO_C" >&6 6590 else 6591 case $SED in 6592 [\\/]* | ?:[\\/]*) 6593 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6594 ;; 6595 *) 6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6597 for as_dir in $PATH 6598 do 6599 IFS=$as_save_IFS 6600 test -z "$as_dir" && as_dir=. 6601 for ac_exec_ext in '' $ac_executable_extensions; do 6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6603 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6605 break 2 6606 fi 6607 done 6608 done 6609 IFS=$as_save_IFS 6610 6611 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6612 ;; 6613 esac 6614 fi 6615 SED=$ac_cv_path_SED 6616 if test -n "$SED"; then 6617 { echo "$as_me:$LINENO: result: $SED" >&5 6618 echo "${ECHO_T}$SED" >&6; } 6619 else 6620 { echo "$as_me:$LINENO: result: no" >&5 6621 echo "${ECHO_T}no" >&6; } 6622 fi 6623 6624 6625 # Extract the first word of "tar", so it can be a program name with args. 6626 set dummy tar; ac_word=$2 6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6629 if test "${ac_cv_path_TAR+set}" = set; then 6630 echo $ECHO_N "(cached) $ECHO_C" >&6 6631 else 6632 case $TAR in 6633 [\\/]* | ?:[\\/]*) 6634 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6635 ;; 6636 *) 6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6638 for as_dir in $PATH 6639 do 6640 IFS=$as_save_IFS 6641 test -z "$as_dir" && as_dir=. 6642 for ac_exec_ext in '' $ac_executable_extensions; do 6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6644 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6646 break 2 6647 fi 6648 done 6649 done 6650 IFS=$as_save_IFS 6651 6652 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6653 ;; 6654 esac 6655 fi 6656 TAR=$ac_cv_path_TAR 6657 if test -n "$TAR"; then 6658 { echo "$as_me:$LINENO: result: $TAR" >&5 6659 echo "${ECHO_T}$TAR" >&6; } 6660 else 6661 { echo "$as_me:$LINENO: result: no" >&5 6662 echo "${ECHO_T}no" >&6; } 6663 fi 6664 6665 6666 # Extract the first word of "pwd", so it can be a program name with args. 6667 set dummy pwd; ac_word=$2 6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6670 if test "${ac_cv_path_BINPWD+set}" = set; then 6671 echo $ECHO_N "(cached) $ECHO_C" >&6 6672 else 6673 case $BINPWD in 6674 [\\/]* | ?:[\\/]*) 6675 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6676 ;; 6677 *) 6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679 for as_dir in $PATH 6680 do 6681 IFS=$as_save_IFS 6682 test -z "$as_dir" && as_dir=. 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6685 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689 done 6690 done 6691 IFS=$as_save_IFS 6692 6693 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6694 ;; 6695 esac 6696 fi 6697 BINPWD=$ac_cv_path_BINPWD 6698 if test -n "$BINPWD"; then 6699 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6700 echo "${ECHO_T}$BINPWD" >&6; } 6701 else 6702 { echo "$as_me:$LINENO: result: no" >&5 6703 echo "${ECHO_T}no" >&6; } 6704 fi 6705 6706 6707 6708 # Extract the first word of "Graphviz", so it can be a program name with args. 6709 set dummy Graphviz; ac_word=$2 6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6712 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6713 echo $ECHO_N "(cached) $ECHO_C" >&6 6714 else 6715 case $GRAPHVIZ in 6716 [\\/]* | ?:[\\/]*) 6717 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6718 ;; 6719 *) 6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6721 for as_dir in $PATH 6722 do 6723 IFS=$as_save_IFS 6724 test -z "$as_dir" && as_dir=. 6725 for ac_exec_ext in '' $ac_executable_extensions; do 6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6727 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6729 break 2 6730 fi 6731 done 6732 done 6733 IFS=$as_save_IFS 6734 6735 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6736 ;; 6737 esac 6738 fi 6739 GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6740 if test -n "$GRAPHVIZ"; then 6741 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6742 echo "${ECHO_T}$GRAPHVIZ" >&6; } 6743 else 6744 { echo "$as_me:$LINENO: result: no" >&5 6745 echo "${ECHO_T}no" >&6; } 6746 fi 6747 6748 6749 if test "$GRAPHVIZ" != "echo Graphviz" ; then 6750 6751 cat >>confdefs.h <<\_ACEOF 6752 #define HAVE_GRAPHVIZ 1 6753 _ACEOF 6754 6755 if test "$llvm_cv_os_type" = "MingW" ; then 6756 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6757 fi 6758 6759 cat >>confdefs.h <<_ACEOF 6760 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6761 _ACEOF 6762 6763 fi 6764 # Extract the first word of "dot", so it can be a program name with args. 6765 set dummy dot; ac_word=$2 6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6768 if test "${ac_cv_path_DOT+set}" = set; then 6769 echo $ECHO_N "(cached) $ECHO_C" >&6 6770 else 6771 case $DOT in 6772 [\\/]* | ?:[\\/]*) 6773 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6774 ;; 6775 *) 6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6777 for as_dir in $PATH 6778 do 6779 IFS=$as_save_IFS 6780 test -z "$as_dir" && as_dir=. 6781 for ac_exec_ext in '' $ac_executable_extensions; do 6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6783 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6785 break 2 6786 fi 6787 done 6788 done 6789 IFS=$as_save_IFS 6790 6791 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6792 ;; 6793 esac 6794 fi 6795 DOT=$ac_cv_path_DOT 6796 if test -n "$DOT"; then 6797 { echo "$as_me:$LINENO: result: $DOT" >&5 6798 echo "${ECHO_T}$DOT" >&6; } 6799 else 6800 { echo "$as_me:$LINENO: result: no" >&5 6801 echo "${ECHO_T}no" >&6; } 6802 fi 6803 6804 6805 if test "$DOT" != "echo dot" ; then 6806 6807 cat >>confdefs.h <<\_ACEOF 6808 #define HAVE_DOT 1 6809 _ACEOF 6810 6811 if test "$llvm_cv_os_type" = "MingW" ; then 6812 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6813 fi 6814 6815 cat >>confdefs.h <<_ACEOF 6816 #define LLVM_PATH_DOT "$DOT${EXEEXT}" 6817 _ACEOF 6818 6819 fi 6820 # Extract the first word of "fdp", so it can be a program name with args. 6821 set dummy fdp; ac_word=$2 6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6824 if test "${ac_cv_path_FDP+set}" = set; then 6825 echo $ECHO_N "(cached) $ECHO_C" >&6 6826 else 6827 case $FDP in 6828 [\\/]* | ?:[\\/]*) 6829 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6830 ;; 6831 *) 6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833 for as_dir in $PATH 6834 do 6835 IFS=$as_save_IFS 6836 test -z "$as_dir" && as_dir=. 6837 for ac_exec_ext in '' $ac_executable_extensions; do 6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6839 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6841 break 2 6842 fi 6843 done 6844 done 6845 IFS=$as_save_IFS 6846 6847 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6848 ;; 6849 esac 6850 fi 6851 FDP=$ac_cv_path_FDP 6852 if test -n "$FDP"; then 6853 { echo "$as_me:$LINENO: result: $FDP" >&5 6854 echo "${ECHO_T}$FDP" >&6; } 6855 else 6856 { echo "$as_me:$LINENO: result: no" >&5 6857 echo "${ECHO_T}no" >&6; } 6858 fi 6859 6860 6861 if test "$FDP" != "echo fdp" ; then 6862 6863 cat >>confdefs.h <<\_ACEOF 6864 #define HAVE_FDP 1 6865 _ACEOF 6866 6867 if test "$llvm_cv_os_type" = "MingW" ; then 6868 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6869 fi 6870 6871 cat >>confdefs.h <<_ACEOF 6872 #define LLVM_PATH_FDP "$FDP${EXEEXT}" 6873 _ACEOF 6874 6875 fi 6876 # Extract the first word of "neato", so it can be a program name with args. 6877 set dummy neato; ac_word=$2 6878 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6880 if test "${ac_cv_path_NEATO+set}" = set; then 6881 echo $ECHO_N "(cached) $ECHO_C" >&6 6882 else 6883 case $NEATO in 6884 [\\/]* | ?:[\\/]*) 6885 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6886 ;; 6887 *) 6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6889 for as_dir in $PATH 6890 do 6891 IFS=$as_save_IFS 6892 test -z "$as_dir" && as_dir=. 6893 for ac_exec_ext in '' $ac_executable_extensions; do 6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6895 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6897 break 2 6898 fi 6899 done 6900 done 6901 IFS=$as_save_IFS 6902 6903 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6904 ;; 6905 esac 6906 fi 6907 NEATO=$ac_cv_path_NEATO 6908 if test -n "$NEATO"; then 6909 { echo "$as_me:$LINENO: result: $NEATO" >&5 6910 echo "${ECHO_T}$NEATO" >&6; } 6911 else 6912 { echo "$as_me:$LINENO: result: no" >&5 6913 echo "${ECHO_T}no" >&6; } 6914 fi 6915 6916 6917 if test "$NEATO" != "echo neato" ; then 6918 6919 cat >>confdefs.h <<\_ACEOF 6920 #define HAVE_NEATO 1 6921 _ACEOF 6922 6923 if test "$llvm_cv_os_type" = "MingW" ; then 6924 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6925 fi 6926 6927 cat >>confdefs.h <<_ACEOF 6928 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6929 _ACEOF 6930 6931 fi 6932 # Extract the first word of "twopi", so it can be a program name with args. 6933 set dummy twopi; ac_word=$2 6934 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6936 if test "${ac_cv_path_TWOPI+set}" = set; then 6937 echo $ECHO_N "(cached) $ECHO_C" >&6 6938 else 6939 case $TWOPI in 6940 [\\/]* | ?:[\\/]*) 6941 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 6942 ;; 6943 *) 6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6945 for as_dir in $PATH 6946 do 6947 IFS=$as_save_IFS 6948 test -z "$as_dir" && as_dir=. 6949 for ac_exec_ext in '' $ac_executable_extensions; do 6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6951 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6953 break 2 6954 fi 6955 done 6956 done 6957 IFS=$as_save_IFS 6958 6959 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 6960 ;; 6961 esac 6962 fi 6963 TWOPI=$ac_cv_path_TWOPI 6964 if test -n "$TWOPI"; then 6965 { echo "$as_me:$LINENO: result: $TWOPI" >&5 6966 echo "${ECHO_T}$TWOPI" >&6; } 6967 else 6968 { echo "$as_me:$LINENO: result: no" >&5 6969 echo "${ECHO_T}no" >&6; } 6970 fi 6971 6972 6973 if test "$TWOPI" != "echo twopi" ; then 6974 6975 cat >>confdefs.h <<\_ACEOF 6976 #define HAVE_TWOPI 1 6977 _ACEOF 6978 6979 if test "$llvm_cv_os_type" = "MingW" ; then 6980 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6981 fi 6982 6983 cat >>confdefs.h <<_ACEOF 6984 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 6985 _ACEOF 6986 6987 fi 6988 # Extract the first word of "circo", so it can be a program name with args. 6989 set dummy circo; ac_word=$2 6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6992 if test "${ac_cv_path_CIRCO+set}" = set; then 6993 echo $ECHO_N "(cached) $ECHO_C" >&6 6994 else 6995 case $CIRCO in 6996 [\\/]* | ?:[\\/]*) 6997 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 6998 ;; 6999 *) 7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7001 for as_dir in $PATH 7002 do 7003 IFS=$as_save_IFS 7004 test -z "$as_dir" && as_dir=. 7005 for ac_exec_ext in '' $ac_executable_extensions; do 7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7007 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7009 break 2 7010 fi 7011 done 7012 done 7013 IFS=$as_save_IFS 7014 7015 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 7016 ;; 7017 esac 7018 fi 7019 CIRCO=$ac_cv_path_CIRCO 7020 if test -n "$CIRCO"; then 7021 { echo "$as_me:$LINENO: result: $CIRCO" >&5 7022 echo "${ECHO_T}$CIRCO" >&6; } 7023 else 7024 { echo "$as_me:$LINENO: result: no" >&5 7025 echo "${ECHO_T}no" >&6; } 7026 fi 7027 7028 7029 if test "$CIRCO" != "echo circo" ; then 7030 7031 cat >>confdefs.h <<\_ACEOF 7032 #define HAVE_CIRCO 1 7033 _ACEOF 7034 7035 if test "$llvm_cv_os_type" = "MingW" ; then 7036 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7037 fi 7038 7039 cat >>confdefs.h <<_ACEOF 7040 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 7041 _ACEOF 7042 7043 fi 7044 for ac_prog in gv gsview32 7045 do 7046 # Extract the first word of "$ac_prog", so it can be a program name with args. 7047 set dummy $ac_prog; ac_word=$2 7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7050 if test "${ac_cv_path_GV+set}" = set; then 7051 echo $ECHO_N "(cached) $ECHO_C" >&6 7052 else 7053 case $GV in 7054 [\\/]* | ?:[\\/]*) 7055 ac_cv_path_GV="$GV" # Let the user override the test with a path. 7056 ;; 7057 *) 7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7059 for as_dir in $PATH 7060 do 7061 IFS=$as_save_IFS 7062 test -z "$as_dir" && as_dir=. 7063 for ac_exec_ext in '' $ac_executable_extensions; do 7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7065 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7067 break 2 7068 fi 7069 done 7070 done 7071 IFS=$as_save_IFS 7072 7073 ;; 7074 esac 7075 fi 7076 GV=$ac_cv_path_GV 7077 if test -n "$GV"; then 7078 { echo "$as_me:$LINENO: result: $GV" >&5 7079 echo "${ECHO_T}$GV" >&6; } 7080 else 7081 { echo "$as_me:$LINENO: result: no" >&5 7082 echo "${ECHO_T}no" >&6; } 7083 fi 7084 7085 7086 test -n "$GV" && break 7087 done 7088 test -n "$GV" || GV="echo gv" 7089 7090 if test "$GV" != "echo gv" ; then 7091 7092 cat >>confdefs.h <<\_ACEOF 7093 #define HAVE_GV 1 7094 _ACEOF 7095 7096 if test "$llvm_cv_os_type" = "MingW" ; then 7097 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7098 fi 7099 7100 cat >>confdefs.h <<_ACEOF 7101 #define LLVM_PATH_GV "$GV${EXEEXT}" 7102 _ACEOF 7103 7104 fi 7105 # Extract the first word of "dotty", so it can be a program name with args. 7106 set dummy dotty; ac_word=$2 7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7109 if test "${ac_cv_path_DOTTY+set}" = set; then 7110 echo $ECHO_N "(cached) $ECHO_C" >&6 7111 else 7112 case $DOTTY in 7113 [\\/]* | ?:[\\/]*) 7114 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 7115 ;; 7116 *) 7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7118 for as_dir in $PATH 7119 do 7120 IFS=$as_save_IFS 7121 test -z "$as_dir" && as_dir=. 7122 for ac_exec_ext in '' $ac_executable_extensions; do 7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7124 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7126 break 2 7127 fi 7128 done 7129 done 7130 IFS=$as_save_IFS 7131 7132 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 7133 ;; 7134 esac 7135 fi 7136 DOTTY=$ac_cv_path_DOTTY 7137 if test -n "$DOTTY"; then 7138 { echo "$as_me:$LINENO: result: $DOTTY" >&5 7139 echo "${ECHO_T}$DOTTY" >&6; } 7140 else 7141 { echo "$as_me:$LINENO: result: no" >&5 7142 echo "${ECHO_T}no" >&6; } 7143 fi 7144 7145 7146 if test "$DOTTY" != "echo dotty" ; then 7147 7148 cat >>confdefs.h <<\_ACEOF 7149 #define HAVE_DOTTY 1 7150 _ACEOF 7151 7152 if test "$llvm_cv_os_type" = "MingW" ; then 7153 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7154 fi 7155 7156 cat >>confdefs.h <<_ACEOF 7157 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 7158 _ACEOF 7159 7160 fi 7161 # Extract the first word of "xdot.py", so it can be a program name with args. 7162 set dummy xdot.py; ac_word=$2 7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7165 if test "${ac_cv_path_XDOT_PY+set}" = set; then 7166 echo $ECHO_N "(cached) $ECHO_C" >&6 7167 else 7168 case $XDOT_PY in 7169 [\\/]* | ?:[\\/]*) 7170 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 7171 ;; 7172 *) 7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7174 for as_dir in $PATH 7175 do 7176 IFS=$as_save_IFS 7177 test -z "$as_dir" && as_dir=. 7178 for ac_exec_ext in '' $ac_executable_extensions; do 7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7180 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7182 break 2 7183 fi 7184 done 7185 done 7186 IFS=$as_save_IFS 7187 7188 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 7189 ;; 7190 esac 7191 fi 7192 XDOT_PY=$ac_cv_path_XDOT_PY 7193 if test -n "$XDOT_PY"; then 7194 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 7195 echo "${ECHO_T}$XDOT_PY" >&6; } 7196 else 7197 { echo "$as_me:$LINENO: result: no" >&5 7198 echo "${ECHO_T}no" >&6; } 7199 fi 7200 7201 7202 if test "$XDOT_PY" != "echo xdot.py" ; then 7203 7204 cat >>confdefs.h <<\_ACEOF 7205 #define HAVE_XDOT_PY 1 7206 _ACEOF 7207 7208 if test "$llvm_cv_os_type" = "MingW" ; then 7209 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7210 fi 7211 7212 cat >>confdefs.h <<_ACEOF 7213 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 7214 _ACEOF 7215 7216 fi 7217 7218 # Find a good install program. We prefer a C program (faster), 7219 # so one script is as good as another. But avoid the broken or 7220 # incompatible versions: 7221 # SysV /etc/install, /usr/sbin/install 7222 # SunOS /usr/etc/install 7223 # IRIX /sbin/install 7224 # AIX /bin/install 7225 # AmigaOS /C/install, which installs bootblocks on floppy discs 7226 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 7228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7229 # OS/2's system install, which has a completely different semantic 7230 # ./install, which can be erroneously created by make from ./install.sh. 7231 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 7232 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 7233 if test -z "$INSTALL"; then 7234 if test "${ac_cv_path_install+set}" = set; then 7235 echo $ECHO_N "(cached) $ECHO_C" >&6 7236 else 7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7238 for as_dir in $PATH 7239 do 7240 IFS=$as_save_IFS 7241 test -z "$as_dir" && as_dir=. 7242 # Account for people who put trailing slashes in PATH elements. 7243 case $as_dir/ in 7244 ./ | .// | /cC/* | \ 7245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7246 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 7247 /usr/ucb/* ) ;; 7248 *) 7249 # OSF1 and SCO ODT 3.0 have their own names for install. 7250 # Don't use installbsd from OSF since it installs stuff as root 7251 # by default. 7252 for ac_prog in ginstall scoinst install; do 7253 for ac_exec_ext in '' $ac_executable_extensions; do 7254 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 7255 if test $ac_prog = install && 7256 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7257 # AIX install. It has an incompatible calling convention. 7258 : 7259 elif test $ac_prog = install && 7260 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7261 # program-specific install script used by HP pwplus--don't use. 7262 : 7263 else 7264 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7265 break 3 7266 fi 7267 fi 7268 done 7269 done 7270 ;; 7271 esac 7272 done 7273 IFS=$as_save_IFS 7274 7275 7276 fi 7277 if test "${ac_cv_path_install+set}" = set; then 7278 INSTALL=$ac_cv_path_install 7279 else 7280 # As a last resort, use the slow shell script. Don't cache a 7281 # value for INSTALL within a source directory, because that will 7282 # break other packages using the cache if that directory is 7283 # removed, or if the value is a relative name. 7284 INSTALL=$ac_install_sh 7285 fi 7286 fi 7287 { echo "$as_me:$LINENO: result: $INSTALL" >&5 7288 echo "${ECHO_T}$INSTALL" >&6; } 7289 7290 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7291 # It thinks the first close brace ends the variable substitution. 7292 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7293 7294 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7295 7296 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7297 7298 case "$INSTALL" in 7299 [\\/$]* | ?:[\\/]* ) ;; 7300 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 7301 esac 7302 7303 # Extract the first word of "bzip2", so it can be a program name with args. 7304 set dummy bzip2; ac_word=$2 7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7307 if test "${ac_cv_path_BZIP2+set}" = set; then 7308 echo $ECHO_N "(cached) $ECHO_C" >&6 7309 else 7310 case $BZIP2 in 7311 [\\/]* | ?:[\\/]*) 7312 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7313 ;; 7314 *) 7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7316 for as_dir in $PATH 7317 do 7318 IFS=$as_save_IFS 7319 test -z "$as_dir" && as_dir=. 7320 for ac_exec_ext in '' $ac_executable_extensions; do 7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7322 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7324 break 2 7325 fi 7326 done 7327 done 7328 IFS=$as_save_IFS 7329 7330 ;; 7331 esac 7332 fi 7333 BZIP2=$ac_cv_path_BZIP2 7334 if test -n "$BZIP2"; then 7335 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7336 echo "${ECHO_T}$BZIP2" >&6; } 7337 else 7338 { echo "$as_me:$LINENO: result: no" >&5 7339 echo "${ECHO_T}no" >&6; } 7340 fi 7341 7342 7343 # Extract the first word of "cat", so it can be a program name with args. 7344 set dummy cat; ac_word=$2 7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7347 if test "${ac_cv_path_CAT+set}" = set; then 7348 echo $ECHO_N "(cached) $ECHO_C" >&6 7349 else 7350 case $CAT in 7351 [\\/]* | ?:[\\/]*) 7352 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 7353 ;; 7354 *) 7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7356 for as_dir in $PATH 7357 do 7358 IFS=$as_save_IFS 7359 test -z "$as_dir" && as_dir=. 7360 for ac_exec_ext in '' $ac_executable_extensions; do 7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7362 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7364 break 2 7365 fi 7366 done 7367 done 7368 IFS=$as_save_IFS 7369 7370 ;; 7371 esac 7372 fi 7373 CAT=$ac_cv_path_CAT 7374 if test -n "$CAT"; then 7375 { echo "$as_me:$LINENO: result: $CAT" >&5 7376 echo "${ECHO_T}$CAT" >&6; } 7377 else 7378 { echo "$as_me:$LINENO: result: no" >&5 7379 echo "${ECHO_T}no" >&6; } 7380 fi 7381 7382 7383 # Extract the first word of "doxygen", so it can be a program name with args. 7384 set dummy doxygen; ac_word=$2 7385 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7387 if test "${ac_cv_path_DOXYGEN+set}" = set; then 7388 echo $ECHO_N "(cached) $ECHO_C" >&6 7389 else 7390 case $DOXYGEN in 7391 [\\/]* | ?:[\\/]*) 7392 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7393 ;; 7394 *) 7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7396 for as_dir in $PATH 7397 do 7398 IFS=$as_save_IFS 7399 test -z "$as_dir" && as_dir=. 7400 for ac_exec_ext in '' $ac_executable_extensions; do 7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7402 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7404 break 2 7405 fi 7406 done 7407 done 7408 IFS=$as_save_IFS 7409 7410 ;; 7411 esac 7412 fi 7413 DOXYGEN=$ac_cv_path_DOXYGEN 7414 if test -n "$DOXYGEN"; then 7415 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7416 echo "${ECHO_T}$DOXYGEN" >&6; } 7417 else 7418 { echo "$as_me:$LINENO: result: no" >&5 7419 echo "${ECHO_T}no" >&6; } 7420 fi 7421 7422 7423 # Extract the first word of "groff", so it can be a program name with args. 7424 set dummy groff; ac_word=$2 7425 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7427 if test "${ac_cv_path_GROFF+set}" = set; then 7428 echo $ECHO_N "(cached) $ECHO_C" >&6 7429 else 7430 case $GROFF in 7431 [\\/]* | ?:[\\/]*) 7432 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7433 ;; 7434 *) 7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7436 for as_dir in $PATH 7437 do 7438 IFS=$as_save_IFS 7439 test -z "$as_dir" && as_dir=. 7440 for ac_exec_ext in '' $ac_executable_extensions; do 7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7442 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7444 break 2 7445 fi 7446 done 7447 done 7448 IFS=$as_save_IFS 7449 7450 ;; 7451 esac 7452 fi 7453 GROFF=$ac_cv_path_GROFF 7454 if test -n "$GROFF"; then 7455 { echo "$as_me:$LINENO: result: $GROFF" >&5 7456 echo "${ECHO_T}$GROFF" >&6; } 7457 else 7458 { echo "$as_me:$LINENO: result: no" >&5 7459 echo "${ECHO_T}no" >&6; } 7460 fi 7461 7462 7463 # Extract the first word of "gzip", so it can be a program name with args. 7464 set dummy gzip; ac_word=$2 7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7467 if test "${ac_cv_path_GZIPBIN+set}" = set; then 7468 echo $ECHO_N "(cached) $ECHO_C" >&6 7469 else 7470 case $GZIPBIN in 7471 [\\/]* | ?:[\\/]*) 7472 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7473 ;; 7474 *) 7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7476 for as_dir in $PATH 7477 do 7478 IFS=$as_save_IFS 7479 test -z "$as_dir" && as_dir=. 7480 for ac_exec_ext in '' $ac_executable_extensions; do 7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7482 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7484 break 2 7485 fi 7486 done 7487 done 7488 IFS=$as_save_IFS 7489 7490 ;; 7491 esac 7492 fi 7493 GZIPBIN=$ac_cv_path_GZIPBIN 7494 if test -n "$GZIPBIN"; then 7495 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7496 echo "${ECHO_T}$GZIPBIN" >&6; } 7497 else 7498 { echo "$as_me:$LINENO: result: no" >&5 7499 echo "${ECHO_T}no" >&6; } 7500 fi 7501 7502 7503 # Extract the first word of "pdfroff", so it can be a program name with args. 7504 set dummy pdfroff; ac_word=$2 7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7507 if test "${ac_cv_path_PDFROFF+set}" = set; then 7508 echo $ECHO_N "(cached) $ECHO_C" >&6 7509 else 7510 case $PDFROFF in 7511 [\\/]* | ?:[\\/]*) 7512 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7513 ;; 7514 *) 7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7516 for as_dir in $PATH 7517 do 7518 IFS=$as_save_IFS 7519 test -z "$as_dir" && as_dir=. 7520 for ac_exec_ext in '' $ac_executable_extensions; do 7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7522 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7524 break 2 7525 fi 7526 done 7527 done 7528 IFS=$as_save_IFS 7529 7530 ;; 7531 esac 7532 fi 7533 PDFROFF=$ac_cv_path_PDFROFF 7534 if test -n "$PDFROFF"; then 7535 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7536 echo "${ECHO_T}$PDFROFF" >&6; } 7537 else 7538 { echo "$as_me:$LINENO: result: no" >&5 7539 echo "${ECHO_T}no" >&6; } 7540 fi 7541 7542 7543 # Extract the first word of "zip", so it can be a program name with args. 7544 set dummy zip; ac_word=$2 7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7547 if test "${ac_cv_path_ZIP+set}" = set; then 7548 echo $ECHO_N "(cached) $ECHO_C" >&6 7549 else 7550 case $ZIP in 7551 [\\/]* | ?:[\\/]*) 7552 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7553 ;; 7554 *) 7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7556 for as_dir in $PATH 7557 do 7558 IFS=$as_save_IFS 7559 test -z "$as_dir" && as_dir=. 7560 for ac_exec_ext in '' $ac_executable_extensions; do 7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7562 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7564 break 2 7565 fi 7566 done 7567 done 7568 IFS=$as_save_IFS 7569 7570 ;; 7571 esac 7572 fi 7573 ZIP=$ac_cv_path_ZIP 7574 if test -n "$ZIP"; then 7575 { echo "$as_me:$LINENO: result: $ZIP" >&5 7576 echo "${ECHO_T}$ZIP" >&6; } 7577 else 7578 { echo "$as_me:$LINENO: result: no" >&5 7579 echo "${ECHO_T}no" >&6; } 7580 fi 7581 7582 7583 for ac_prog in ocamlc 7584 do 7585 # Extract the first word of "$ac_prog", so it can be a program name with args. 7586 set dummy $ac_prog; ac_word=$2 7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7589 if test "${ac_cv_path_OCAMLC+set}" = set; then 7590 echo $ECHO_N "(cached) $ECHO_C" >&6 7591 else 7592 case $OCAMLC in 7593 [\\/]* | ?:[\\/]*) 7594 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7595 ;; 7596 *) 7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7598 for as_dir in $PATH 7599 do 7600 IFS=$as_save_IFS 7601 test -z "$as_dir" && as_dir=. 7602 for ac_exec_ext in '' $ac_executable_extensions; do 7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7604 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7606 break 2 7607 fi 7608 done 7609 done 7610 IFS=$as_save_IFS 7611 7612 ;; 7613 esac 7614 fi 7615 OCAMLC=$ac_cv_path_OCAMLC 7616 if test -n "$OCAMLC"; then 7617 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7618 echo "${ECHO_T}$OCAMLC" >&6; } 7619 else 7620 { echo "$as_me:$LINENO: result: no" >&5 7621 echo "${ECHO_T}no" >&6; } 7622 fi 7623 7624 7625 test -n "$OCAMLC" && break 7626 done 7627 7628 for ac_prog in ocamlopt 7629 do 7630 # Extract the first word of "$ac_prog", so it can be a program name with args. 7631 set dummy $ac_prog; ac_word=$2 7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7634 if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7635 echo $ECHO_N "(cached) $ECHO_C" >&6 7636 else 7637 case $OCAMLOPT in 7638 [\\/]* | ?:[\\/]*) 7639 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7640 ;; 7641 *) 7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7643 for as_dir in $PATH 7644 do 7645 IFS=$as_save_IFS 7646 test -z "$as_dir" && as_dir=. 7647 for ac_exec_ext in '' $ac_executable_extensions; do 7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7649 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7651 break 2 7652 fi 7653 done 7654 done 7655 IFS=$as_save_IFS 7656 7657 ;; 7658 esac 7659 fi 7660 OCAMLOPT=$ac_cv_path_OCAMLOPT 7661 if test -n "$OCAMLOPT"; then 7662 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7663 echo "${ECHO_T}$OCAMLOPT" >&6; } 7664 else 7665 { echo "$as_me:$LINENO: result: no" >&5 7666 echo "${ECHO_T}no" >&6; } 7667 fi 7668 7669 7670 test -n "$OCAMLOPT" && break 7671 done 7672 7673 for ac_prog in ocamldep 7674 do 7675 # Extract the first word of "$ac_prog", so it can be a program name with args. 7676 set dummy $ac_prog; ac_word=$2 7677 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7679 if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7680 echo $ECHO_N "(cached) $ECHO_C" >&6 7681 else 7682 case $OCAMLDEP in 7683 [\\/]* | ?:[\\/]*) 7684 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7685 ;; 7686 *) 7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7688 for as_dir in $PATH 7689 do 7690 IFS=$as_save_IFS 7691 test -z "$as_dir" && as_dir=. 7692 for ac_exec_ext in '' $ac_executable_extensions; do 7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7694 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7696 break 2 7697 fi 7698 done 7699 done 7700 IFS=$as_save_IFS 7701 7702 ;; 7703 esac 7704 fi 7705 OCAMLDEP=$ac_cv_path_OCAMLDEP 7706 if test -n "$OCAMLDEP"; then 7707 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7708 echo "${ECHO_T}$OCAMLDEP" >&6; } 7709 else 7710 { echo "$as_me:$LINENO: result: no" >&5 7711 echo "${ECHO_T}no" >&6; } 7712 fi 7713 7714 7715 test -n "$OCAMLDEP" && break 7716 done 7717 7718 for ac_prog in ocamldoc 7719 do 7720 # Extract the first word of "$ac_prog", so it can be a program name with args. 7721 set dummy $ac_prog; ac_word=$2 7722 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7724 if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7725 echo $ECHO_N "(cached) $ECHO_C" >&6 7726 else 7727 case $OCAMLDOC in 7728 [\\/]* | ?:[\\/]*) 7729 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7730 ;; 7731 *) 7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7733 for as_dir in $PATH 7734 do 7735 IFS=$as_save_IFS 7736 test -z "$as_dir" && as_dir=. 7737 for ac_exec_ext in '' $ac_executable_extensions; do 7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7739 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7741 break 2 7742 fi 7743 done 7744 done 7745 IFS=$as_save_IFS 7746 7747 ;; 7748 esac 7749 fi 7750 OCAMLDOC=$ac_cv_path_OCAMLDOC 7751 if test -n "$OCAMLDOC"; then 7752 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7753 echo "${ECHO_T}$OCAMLDOC" >&6; } 7754 else 7755 { echo "$as_me:$LINENO: result: no" >&5 7756 echo "${ECHO_T}no" >&6; } 7757 fi 7758 7759 7760 test -n "$OCAMLDOC" && break 7761 done 7762 7763 for ac_prog in gas as 7764 do 7765 # Extract the first word of "$ac_prog", so it can be a program name with args. 7766 set dummy $ac_prog; ac_word=$2 7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7769 if test "${ac_cv_path_GAS+set}" = set; then 7770 echo $ECHO_N "(cached) $ECHO_C" >&6 7771 else 7772 case $GAS in 7773 [\\/]* | ?:[\\/]*) 7774 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7775 ;; 7776 *) 7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7778 for as_dir in $PATH 7779 do 7780 IFS=$as_save_IFS 7781 test -z "$as_dir" && as_dir=. 7782 for ac_exec_ext in '' $ac_executable_extensions; do 7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7784 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7786 break 2 7787 fi 7788 done 7789 done 7790 IFS=$as_save_IFS 7791 7792 ;; 7793 esac 7794 fi 7795 GAS=$ac_cv_path_GAS 7796 if test -n "$GAS"; then 7797 { echo "$as_me:$LINENO: result: $GAS" >&5 7798 echo "${ECHO_T}$GAS" >&6; } 7799 else 7800 { echo "$as_me:$LINENO: result: no" >&5 7801 echo "${ECHO_T}no" >&6; } 7802 fi 7803 7804 7805 test -n "$GAS" && break 7806 done 7807 7808 7809 { echo "$as_me:$LINENO: checking for linker version" >&5 7810 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7811 if test "${llvm_cv_link_version+set}" = set; then 7812 echo $ECHO_N "(cached) $ECHO_C" >&6 7813 else 7814 7815 version_string="$(ld -v 2>&1 | head -1)" 7816 7817 # Check for ld64. 7818 if (echo "$version_string" | grep -q "ld64"); then 7819 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7820 else 7821 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7822 fi 7823 7824 fi 7825 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7826 echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7827 7828 cat >>confdefs.h <<_ACEOF 7829 #define HOST_LINK_VERSION "$llvm_cv_link_version" 7830 _ACEOF 7831 7832 7833 7834 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7835 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7836 if test "${llvm_cv_link_use_r+set}" = set; then 7837 echo $ECHO_N "(cached) $ECHO_C" >&6 7838 else 7839 ac_ext=c 7840 ac_cpp='$CPP $CPPFLAGS' 7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7844 7845 oldcflags="$CFLAGS" 7846 CFLAGS="$CFLAGS -Wl,-R." 7847 cat >conftest.$ac_ext <<_ACEOF 7848 /* confdefs.h. */ 7849 _ACEOF 7850 cat confdefs.h >>conftest.$ac_ext 7851 cat >>conftest.$ac_ext <<_ACEOF 7852 /* end confdefs.h. */ 7853 7854 int 7855 main () 7856 { 7857 7858 ; 7859 return 0; 7860 } 7861 _ACEOF 7862 rm -f conftest.$ac_objext conftest$ac_exeext 7863 if { (ac_try="$ac_link" 7864 case "(($ac_try" in 7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7866 *) ac_try_echo=$ac_try;; 7867 esac 7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7869 (eval "$ac_link") 2>conftest.er1 7870 ac_status=$? 7871 grep -v '^ *+' conftest.er1 >conftest.err 7872 rm -f conftest.er1 7873 cat conftest.err >&5 7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7875 (exit $ac_status); } && 7876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7877 { (case "(($ac_try" in 7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7879 *) ac_try_echo=$ac_try;; 7880 esac 7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7882 (eval "$ac_try") 2>&5 7883 ac_status=$? 7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7885 (exit $ac_status); }; } && 7886 { ac_try='test -s conftest$ac_exeext' 7887 { (case "(($ac_try" in 7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7889 *) ac_try_echo=$ac_try;; 7890 esac 7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7892 (eval "$ac_try") 2>&5 7893 ac_status=$? 7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7895 (exit $ac_status); }; }; then 7896 llvm_cv_link_use_r=yes 7897 else 7898 echo "$as_me: failed program was:" >&5 7899 sed 's/^/| /' conftest.$ac_ext >&5 7900 7901 llvm_cv_link_use_r=no 7902 fi 7903 7904 rm -f core conftest.err conftest.$ac_objext \ 7905 conftest$ac_exeext conftest.$ac_ext 7906 CFLAGS="$oldcflags" 7907 ac_ext=c 7908 ac_cpp='$CPP $CPPFLAGS' 7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7912 7913 7914 fi 7915 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7916 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7917 if test "$llvm_cv_link_use_r" = yes ; then 7918 7919 cat >>confdefs.h <<\_ACEOF 7920 #define HAVE_LINK_R 1 7921 _ACEOF 7922 7923 fi 7924 7925 7926 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 7927 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 7928 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7929 echo $ECHO_N "(cached) $ECHO_C" >&6 7930 else 7931 ac_ext=c 7932 ac_cpp='$CPP $CPPFLAGS' 7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7936 7937 oldcflags="$CFLAGS" 7938 CFLAGS="$CFLAGS -Wl,-export-dynamic" 7939 cat >conftest.$ac_ext <<_ACEOF 7940 /* confdefs.h. */ 7941 _ACEOF 7942 cat confdefs.h >>conftest.$ac_ext 7943 cat >>conftest.$ac_ext <<_ACEOF 7944 /* end confdefs.h. */ 7945 7946 int 7947 main () 7948 { 7949 7950 ; 7951 return 0; 7952 } 7953 _ACEOF 7954 rm -f conftest.$ac_objext conftest$ac_exeext 7955 if { (ac_try="$ac_link" 7956 case "(($ac_try" in 7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7958 *) ac_try_echo=$ac_try;; 7959 esac 7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7961 (eval "$ac_link") 2>conftest.er1 7962 ac_status=$? 7963 grep -v '^ *+' conftest.er1 >conftest.err 7964 rm -f conftest.er1 7965 cat conftest.err >&5 7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7967 (exit $ac_status); } && 7968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7969 { (case "(($ac_try" in 7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7971 *) ac_try_echo=$ac_try;; 7972 esac 7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7974 (eval "$ac_try") 2>&5 7975 ac_status=$? 7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7977 (exit $ac_status); }; } && 7978 { ac_try='test -s conftest$ac_exeext' 7979 { (case "(($ac_try" in 7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7981 *) ac_try_echo=$ac_try;; 7982 esac 7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7984 (eval "$ac_try") 2>&5 7985 ac_status=$? 7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7987 (exit $ac_status); }; }; then 7988 llvm_cv_link_use_export_dynamic=yes 7989 else 7990 echo "$as_me: failed program was:" >&5 7991 sed 's/^/| /' conftest.$ac_ext >&5 7992 7993 llvm_cv_link_use_export_dynamic=no 7994 fi 7995 7996 rm -f core conftest.err conftest.$ac_objext \ 7997 conftest$ac_exeext conftest.$ac_ext 7998 CFLAGS="$oldcflags" 7999 ac_ext=c 8000 ac_cpp='$CPP $CPPFLAGS' 8001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8003 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8004 8005 8006 fi 8007 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 8008 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 8009 if test "$llvm_cv_link_use_export_dynamic" = yes ; then 8010 8011 cat >>confdefs.h <<\_ACEOF 8012 #define HAVE_LINK_EXPORT_DYNAMIC 1 8013 _ACEOF 8014 8015 fi 8016 8017 8018 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 8019 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 8020 if test "${llvm_cv_link_use_version_script+set}" = set; then 8021 echo $ECHO_N "(cached) $ECHO_C" >&6 8022 else 8023 ac_ext=c 8024 ac_cpp='$CPP $CPPFLAGS' 8025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8027 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8028 8029 oldcflags="$CFLAGS" 8030 8031 # The following code is from the autoconf manual, 8032 # "11.13: Limitations of Usual Tools". 8033 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 8034 # Use mktemp if possible; otherwise fall back on mkdir, 8035 # with $RANDOM to make collisions less likely. 8036 : ${TMPDIR=/tmp} 8037 { 8038 tmp=` 8039 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 8040 ` && 8041 test -n "$tmp" && test -d "$tmp" 8042 } || { 8043 tmp=$TMPDIR/foo$$-$RANDOM 8044 (umask 077 && mkdir "$tmp") 8045 } || exit $? 8046 8047 echo "{" > "$tmp/export.map" 8048 echo " global: main;" >> "$tmp/export.map" 8049 echo " local: *;" >> "$tmp/export.map" 8050 echo "};" >> "$tmp/export.map" 8051 8052 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 8053 cat >conftest.$ac_ext <<_ACEOF 8054 /* confdefs.h. */ 8055 _ACEOF 8056 cat confdefs.h >>conftest.$ac_ext 8057 cat >>conftest.$ac_ext <<_ACEOF 8058 /* end confdefs.h. */ 8059 8060 int 8061 main () 8062 { 8063 8064 ; 8065 return 0; 8066 } 8067 _ACEOF 8068 rm -f conftest.$ac_objext conftest$ac_exeext 8069 if { (ac_try="$ac_link" 8070 case "(($ac_try" in 8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8072 *) ac_try_echo=$ac_try;; 8073 esac 8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8075 (eval "$ac_link") 2>conftest.er1 8076 ac_status=$? 8077 grep -v '^ *+' conftest.er1 >conftest.err 8078 rm -f conftest.er1 8079 cat conftest.err >&5 8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8081 (exit $ac_status); } && 8082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8083 { (case "(($ac_try" in 8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8085 *) ac_try_echo=$ac_try;; 8086 esac 8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8088 (eval "$ac_try") 2>&5 8089 ac_status=$? 8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8091 (exit $ac_status); }; } && 8092 { ac_try='test -s conftest$ac_exeext' 8093 { (case "(($ac_try" in 8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8095 *) ac_try_echo=$ac_try;; 8096 esac 8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8098 (eval "$ac_try") 2>&5 8099 ac_status=$? 8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8101 (exit $ac_status); }; }; then 8102 llvm_cv_link_use_version_script=yes 8103 else 8104 echo "$as_me: failed program was:" >&5 8105 sed 's/^/| /' conftest.$ac_ext >&5 8106 8107 llvm_cv_link_use_version_script=no 8108 fi 8109 8110 rm -f core conftest.err conftest.$ac_objext \ 8111 conftest$ac_exeext conftest.$ac_ext 8112 rm "$tmp/export.map" 8113 rmdir "$tmp" 8114 CFLAGS="$oldcflags" 8115 ac_ext=c 8116 ac_cpp='$CPP $CPPFLAGS' 8117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8119 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8120 8121 8122 fi 8123 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 8124 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 8125 if test "$llvm_cv_link_use_version_script" = yes ; then 8126 HAVE_LINK_VERSION_SCRIPT=1 8127 8128 fi 8129 8130 8131 8132 8133 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 8135 if test "${ac_cv_c_const+set}" = set; then 8136 echo $ECHO_N "(cached) $ECHO_C" >&6 8137 else 8138 cat >conftest.$ac_ext <<_ACEOF 8139 /* confdefs.h. */ 8140 _ACEOF 8141 cat confdefs.h >>conftest.$ac_ext 8142 cat >>conftest.$ac_ext <<_ACEOF 8143 /* end confdefs.h. */ 8144 8145 int 8146 main () 8147 { 8148 /* FIXME: Include the comments suggested by Paul. */ 8149 #ifndef __cplusplus 8150 /* Ultrix mips cc rejects this. */ 8151 typedef int charset[2]; 8152 const charset x; 8153 /* SunOS 4.1.1 cc rejects this. */ 8154 char const *const *ccp; 8155 char **p; 8156 /* NEC SVR4.0.2 mips cc rejects this. */ 8157 struct point {int x, y;}; 8158 static struct point const zero = {0,0}; 8159 /* AIX XL C 1.02.0.0 rejects this. 8160 It does not let you subtract one const X* pointer from another in 8161 an arm of an if-expression whose if-part is not a constant 8162 expression */ 8163 const char *g = "string"; 8164 ccp = &g + (g ? g-g : 0); 8165 /* HPUX 7.0 cc rejects these. */ 8166 ++ccp; 8167 p = (char**) ccp; 8168 ccp = (char const *const *) p; 8169 { /* SCO 3.2v4 cc rejects this. */ 8170 char *t; 8171 char const *s = 0 ? (char *) 0 : (char const *) 0; 8172 8173 *t++ = 0; 8174 if (s) return 0; 8175 } 8176 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8177 int x[] = {25, 17}; 8178 const int *foo = &x[0]; 8179 ++foo; 8180 } 8181 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8182 typedef const int *iptr; 8183 iptr p = 0; 8184 ++p; 8185 } 8186 { /* AIX XL C 1.02.0.0 rejects this saying 8187 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8188 struct s { int j; const int *ap[3]; }; 8189 struct s *b; b->j = 5; 8190 } 8191 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8192 const int foo = 10; 8193 if (!foo) return 0; 8194 } 8195 return !x[0] && !zero.x; 8196 #endif 8197 8198 ; 8199 return 0; 8200 } 8201 _ACEOF 8202 rm -f conftest.$ac_objext 8203 if { (ac_try="$ac_compile" 8204 case "(($ac_try" in 8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8206 *) ac_try_echo=$ac_try;; 8207 esac 8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8209 (eval "$ac_compile") 2>conftest.er1 8210 ac_status=$? 8211 grep -v '^ *+' conftest.er1 >conftest.err 8212 rm -f conftest.er1 8213 cat conftest.err >&5 8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8215 (exit $ac_status); } && 8216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8217 { (case "(($ac_try" in 8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8219 *) ac_try_echo=$ac_try;; 8220 esac 8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8222 (eval "$ac_try") 2>&5 8223 ac_status=$? 8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8225 (exit $ac_status); }; } && 8226 { ac_try='test -s conftest.$ac_objext' 8227 { (case "(($ac_try" in 8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8229 *) ac_try_echo=$ac_try;; 8230 esac 8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8232 (eval "$ac_try") 2>&5 8233 ac_status=$? 8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8235 (exit $ac_status); }; }; then 8236 ac_cv_c_const=yes 8237 else 8238 echo "$as_me: failed program was:" >&5 8239 sed 's/^/| /' conftest.$ac_ext >&5 8240 8241 ac_cv_c_const=no 8242 fi 8243 8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8245 fi 8246 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8247 echo "${ECHO_T}$ac_cv_c_const" >&6; } 8248 if test $ac_cv_c_const = no; then 8249 8250 cat >>confdefs.h <<\_ACEOF 8251 #define const 8252 _ACEOF 8253 8254 fi 8255 8256 8257 8258 8259 8260 8261 ac_header_dirent=no 8262 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8263 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8264 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8265 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8267 echo $ECHO_N "(cached) $ECHO_C" >&6 8268 else 8269 cat >conftest.$ac_ext <<_ACEOF 8270 /* confdefs.h. */ 8271 _ACEOF 8272 cat confdefs.h >>conftest.$ac_ext 8273 cat >>conftest.$ac_ext <<_ACEOF 8274 /* end confdefs.h. */ 8275 #include <sys/types.h> 8276 #include <$ac_hdr> 8277 8278 int 8279 main () 8280 { 8281 if ((DIR *) 0) 8282 return 0; 8283 ; 8284 return 0; 8285 } 8286 _ACEOF 8287 rm -f conftest.$ac_objext 8288 if { (ac_try="$ac_compile" 8289 case "(($ac_try" in 8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8291 *) ac_try_echo=$ac_try;; 8292 esac 8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8294 (eval "$ac_compile") 2>conftest.er1 8295 ac_status=$? 8296 grep -v '^ *+' conftest.er1 >conftest.err 8297 rm -f conftest.er1 8298 cat conftest.err >&5 8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8300 (exit $ac_status); } && 8301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8302 { (case "(($ac_try" in 8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8304 *) ac_try_echo=$ac_try;; 8305 esac 8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8307 (eval "$ac_try") 2>&5 8308 ac_status=$? 8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8310 (exit $ac_status); }; } && 8311 { ac_try='test -s conftest.$ac_objext' 8312 { (case "(($ac_try" in 8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8314 *) ac_try_echo=$ac_try;; 8315 esac 8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8317 (eval "$ac_try") 2>&5 8318 ac_status=$? 8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8320 (exit $ac_status); }; }; then 8321 eval "$as_ac_Header=yes" 8322 else 8323 echo "$as_me: failed program was:" >&5 8324 sed 's/^/| /' conftest.$ac_ext >&5 8325 8326 eval "$as_ac_Header=no" 8327 fi 8328 8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8330 fi 8331 ac_res=`eval echo '${'$as_ac_Header'}'` 8332 { echo "$as_me:$LINENO: result: $ac_res" >&5 8333 echo "${ECHO_T}$ac_res" >&6; } 8334 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8335 cat >>confdefs.h <<_ACEOF 8336 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8337 _ACEOF 8338 8339 ac_header_dirent=$ac_hdr; break 8340 fi 8341 8342 done 8343 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8344 if test $ac_header_dirent = dirent.h; then 8345 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8347 if test "${ac_cv_search_opendir+set}" = set; then 8348 echo $ECHO_N "(cached) $ECHO_C" >&6 8349 else 8350 ac_func_search_save_LIBS=$LIBS 8351 cat >conftest.$ac_ext <<_ACEOF 8352 /* confdefs.h. */ 8353 _ACEOF 8354 cat confdefs.h >>conftest.$ac_ext 8355 cat >>conftest.$ac_ext <<_ACEOF 8356 /* end confdefs.h. */ 8357 8358 /* Override any GCC internal prototype to avoid an error. 8359 Use char because int might match the return type of a GCC 8360 builtin and then its argument prototype would still apply. */ 8361 #ifdef __cplusplus 8362 extern "C" 8363 #endif 8364 char opendir (); 8365 int 8366 main () 8367 { 8368 return opendir (); 8369 ; 8370 return 0; 8371 } 8372 _ACEOF 8373 for ac_lib in '' dir; do 8374 if test -z "$ac_lib"; then 8375 ac_res="none required" 8376 else 8377 ac_res=-l$ac_lib 8378 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8379 fi 8380 rm -f conftest.$ac_objext conftest$ac_exeext 8381 if { (ac_try="$ac_link" 8382 case "(($ac_try" in 8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8384 *) ac_try_echo=$ac_try;; 8385 esac 8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8387 (eval "$ac_link") 2>conftest.er1 8388 ac_status=$? 8389 grep -v '^ *+' conftest.er1 >conftest.err 8390 rm -f conftest.er1 8391 cat conftest.err >&5 8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8393 (exit $ac_status); } && 8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8395 { (case "(($ac_try" in 8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8397 *) ac_try_echo=$ac_try;; 8398 esac 8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8400 (eval "$ac_try") 2>&5 8401 ac_status=$? 8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8403 (exit $ac_status); }; } && 8404 { ac_try='test -s conftest$ac_exeext' 8405 { (case "(($ac_try" in 8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8407 *) ac_try_echo=$ac_try;; 8408 esac 8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8410 (eval "$ac_try") 2>&5 8411 ac_status=$? 8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8413 (exit $ac_status); }; }; then 8414 ac_cv_search_opendir=$ac_res 8415 else 8416 echo "$as_me: failed program was:" >&5 8417 sed 's/^/| /' conftest.$ac_ext >&5 8418 8419 8420 fi 8421 8422 rm -f core conftest.err conftest.$ac_objext \ 8423 conftest$ac_exeext 8424 if test "${ac_cv_search_opendir+set}" = set; then 8425 break 8426 fi 8427 done 8428 if test "${ac_cv_search_opendir+set}" = set; then 8429 : 8430 else 8431 ac_cv_search_opendir=no 8432 fi 8433 rm conftest.$ac_ext 8434 LIBS=$ac_func_search_save_LIBS 8435 fi 8436 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8437 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8438 ac_res=$ac_cv_search_opendir 8439 if test "$ac_res" != no; then 8440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8441 8442 fi 8443 8444 else 8445 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8446 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8447 if test "${ac_cv_search_opendir+set}" = set; then 8448 echo $ECHO_N "(cached) $ECHO_C" >&6 8449 else 8450 ac_func_search_save_LIBS=$LIBS 8451 cat >conftest.$ac_ext <<_ACEOF 8452 /* confdefs.h. */ 8453 _ACEOF 8454 cat confdefs.h >>conftest.$ac_ext 8455 cat >>conftest.$ac_ext <<_ACEOF 8456 /* end confdefs.h. */ 8457 8458 /* Override any GCC internal prototype to avoid an error. 8459 Use char because int might match the return type of a GCC 8460 builtin and then its argument prototype would still apply. */ 8461 #ifdef __cplusplus 8462 extern "C" 8463 #endif 8464 char opendir (); 8465 int 8466 main () 8467 { 8468 return opendir (); 8469 ; 8470 return 0; 8471 } 8472 _ACEOF 8473 for ac_lib in '' x; do 8474 if test -z "$ac_lib"; then 8475 ac_res="none required" 8476 else 8477 ac_res=-l$ac_lib 8478 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8479 fi 8480 rm -f conftest.$ac_objext conftest$ac_exeext 8481 if { (ac_try="$ac_link" 8482 case "(($ac_try" in 8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8484 *) ac_try_echo=$ac_try;; 8485 esac 8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8487 (eval "$ac_link") 2>conftest.er1 8488 ac_status=$? 8489 grep -v '^ *+' conftest.er1 >conftest.err 8490 rm -f conftest.er1 8491 cat conftest.err >&5 8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8493 (exit $ac_status); } && 8494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8495 { (case "(($ac_try" in 8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8497 *) ac_try_echo=$ac_try;; 8498 esac 8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8500 (eval "$ac_try") 2>&5 8501 ac_status=$? 8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8503 (exit $ac_status); }; } && 8504 { ac_try='test -s conftest$ac_exeext' 8505 { (case "(($ac_try" in 8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8507 *) ac_try_echo=$ac_try;; 8508 esac 8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8510 (eval "$ac_try") 2>&5 8511 ac_status=$? 8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8513 (exit $ac_status); }; }; then 8514 ac_cv_search_opendir=$ac_res 8515 else 8516 echo "$as_me: failed program was:" >&5 8517 sed 's/^/| /' conftest.$ac_ext >&5 8518 8519 8520 fi 8521 8522 rm -f core conftest.err conftest.$ac_objext \ 8523 conftest$ac_exeext 8524 if test "${ac_cv_search_opendir+set}" = set; then 8525 break 8526 fi 8527 done 8528 if test "${ac_cv_search_opendir+set}" = set; then 8529 : 8530 else 8531 ac_cv_search_opendir=no 8532 fi 8533 rm conftest.$ac_ext 8534 LIBS=$ac_func_search_save_LIBS 8535 fi 8536 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8537 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8538 ac_res=$ac_cv_search_opendir 8539 if test "$ac_res" != no; then 8540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8541 8542 fi 8543 8544 fi 8545 8546 8547 for ac_header in dlfcn.h 8548 do 8549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8551 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8554 echo $ECHO_N "(cached) $ECHO_C" >&6 8555 fi 8556 ac_res=`eval echo '${'$as_ac_Header'}'` 8557 { echo "$as_me:$LINENO: result: $ac_res" >&5 8558 echo "${ECHO_T}$ac_res" >&6; } 8559 else 8560 # Is the header compilable? 8561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 8562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8563 cat >conftest.$ac_ext <<_ACEOF 8564 /* confdefs.h. */ 8565 _ACEOF 8566 cat confdefs.h >>conftest.$ac_ext 8567 cat >>conftest.$ac_ext <<_ACEOF 8568 /* end confdefs.h. */ 8569 $ac_includes_default 8570 #include <$ac_header> 8571 _ACEOF 8572 rm -f conftest.$ac_objext 8573 if { (ac_try="$ac_compile" 8574 case "(($ac_try" in 8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8576 *) ac_try_echo=$ac_try;; 8577 esac 8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8579 (eval "$ac_compile") 2>conftest.er1 8580 ac_status=$? 8581 grep -v '^ *+' conftest.er1 >conftest.err 8582 rm -f conftest.er1 8583 cat conftest.err >&5 8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8585 (exit $ac_status); } && 8586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8587 { (case "(($ac_try" in 8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8589 *) ac_try_echo=$ac_try;; 8590 esac 8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8592 (eval "$ac_try") 2>&5 8593 ac_status=$? 8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8595 (exit $ac_status); }; } && 8596 { ac_try='test -s conftest.$ac_objext' 8597 { (case "(($ac_try" in 8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8599 *) ac_try_echo=$ac_try;; 8600 esac 8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8602 (eval "$ac_try") 2>&5 8603 ac_status=$? 8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8605 (exit $ac_status); }; }; then 8606 ac_header_compiler=yes 8607 else 8608 echo "$as_me: failed program was:" >&5 8609 sed 's/^/| /' conftest.$ac_ext >&5 8610 8611 ac_header_compiler=no 8612 fi 8613 8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8616 echo "${ECHO_T}$ac_header_compiler" >&6; } 8617 8618 # Is the header present? 8619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 8620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8621 cat >conftest.$ac_ext <<_ACEOF 8622 /* confdefs.h. */ 8623 _ACEOF 8624 cat confdefs.h >>conftest.$ac_ext 8625 cat >>conftest.$ac_ext <<_ACEOF 8626 /* end confdefs.h. */ 8627 #include <$ac_header> 8628 _ACEOF 8629 if { (ac_try="$ac_cpp conftest.$ac_ext" 8630 case "(($ac_try" in 8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8632 *) ac_try_echo=$ac_try;; 8633 esac 8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8636 ac_status=$? 8637 grep -v '^ *+' conftest.er1 >conftest.err 8638 rm -f conftest.er1 8639 cat conftest.err >&5 8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8641 (exit $ac_status); } >/dev/null; then 8642 if test -s conftest.err; then 8643 ac_cpp_err=$ac_c_preproc_warn_flag 8644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8645 else 8646 ac_cpp_err= 8647 fi 8648 else 8649 ac_cpp_err=yes 8650 fi 8651 if test -z "$ac_cpp_err"; then 8652 ac_header_preproc=yes 8653 else 8654 echo "$as_me: failed program was:" >&5 8655 sed 's/^/| /' conftest.$ac_ext >&5 8656 8657 ac_header_preproc=no 8658 fi 8659 8660 rm -f conftest.err conftest.$ac_ext 8661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8662 echo "${ECHO_T}$ac_header_preproc" >&6; } 8663 8664 # So? What about this header? 8665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8666 yes:no: ) 8667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8671 ac_header_preproc=yes 8672 ;; 8673 no:yes:* ) 8674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8686 ( cat <<\_ASBOX 8687 ## ------------------------------------ ## 8688 ## Report this to http://llvm.org/bugs/ ## 8689 ## ------------------------------------ ## 8690 _ASBOX 8691 ) | sed "s/^/$as_me: WARNING: /" >&2 8692 ;; 8693 esac 8694 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8697 echo $ECHO_N "(cached) $ECHO_C" >&6 8698 else 8699 eval "$as_ac_Header=\$ac_header_preproc" 8700 fi 8701 ac_res=`eval echo '${'$as_ac_Header'}'` 8702 { echo "$as_me:$LINENO: result: $ac_res" >&5 8703 echo "${ECHO_T}$ac_res" >&6; } 8704 8705 fi 8706 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8707 cat >>confdefs.h <<_ACEOF 8708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8709 _ACEOF 8710 8711 fi 8712 8713 done 8714 8715 # Check whether --enable-ltdl-install was given. 8716 if test "${enable_ltdl_install+set}" = set; then 8717 enableval=$enable_ltdl_install; 8718 fi 8719 8720 8721 8722 8723 if test x"${enable_ltdl_install-no}" != xno; then 8724 INSTALL_LTDL_TRUE= 8725 INSTALL_LTDL_FALSE='#' 8726 else 8727 INSTALL_LTDL_TRUE='#' 8728 INSTALL_LTDL_FALSE= 8729 fi 8730 8731 8732 8733 if test x"${enable_ltdl_convenience-no}" != xno; then 8734 CONVENIENCE_LTDL_TRUE= 8735 CONVENIENCE_LTDL_FALSE='#' 8736 else 8737 CONVENIENCE_LTDL_TRUE='#' 8738 CONVENIENCE_LTDL_FALSE= 8739 fi 8740 8741 8742 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8743 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8744 library_names_spec= 8745 libname_spec='lib$name' 8746 soname_spec= 8747 shrext_cmds=".so" 8748 postinstall_cmds= 8749 postuninstall_cmds= 8750 finish_cmds= 8751 finish_eval= 8752 shlibpath_var= 8753 shlibpath_overrides_runpath=unknown 8754 version_type=none 8755 dynamic_linker="$host_os ld.so" 8756 sys_lib_dlsearch_path_spec="/lib /usr/lib" 8757 if test "$GCC" = yes; then 8758 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8759 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8760 # if the path contains ";" then we assume it to be the separator 8761 # otherwise default to the standard path separator (i.e. ":") - it is 8762 # assumed that no part of a normal pathname contains ";" but that should 8763 # okay in the real world where ";" in dirpaths is itself problematic. 8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8765 else 8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8767 fi 8768 else 8769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8770 fi 8771 need_lib_prefix=unknown 8772 hardcode_into_libs=no 8773 8774 # when you set need_version to no, make sure it does not cause -set_version 8775 # flags to be left without arguments 8776 need_version=unknown 8777 8778 case $host_os in 8779 aix3*) 8780 version_type=linux 8781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8782 shlibpath_var=LIBPATH 8783 8784 # AIX 3 has no versioning support, so we append a major version to the name. 8785 soname_spec='${libname}${release}${shared_ext}$major' 8786 ;; 8787 8788 aix4* | aix5*) 8789 version_type=linux 8790 need_lib_prefix=no 8791 need_version=no 8792 hardcode_into_libs=yes 8793 if test "$host_cpu" = ia64; then 8794 # AIX 5 supports IA64 8795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8796 shlibpath_var=LD_LIBRARY_PATH 8797 else 8798 # With GCC up to 2.95.x, collect2 would create an import file 8799 # for dependence libraries. The import file would start with 8800 # the line `#! .'. This would cause the generated library to 8801 # depend on `.', always an invalid library. This was fixed in 8802 # development snapshots of GCC prior to 3.0. 8803 case $host_os in 8804 aix4 | aix4.[01] | aix4.[01].*) 8805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8806 echo ' yes ' 8807 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8808 : 8809 else 8810 can_build_shared=no 8811 fi 8812 ;; 8813 esac 8814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8815 # soname into executable. Probably we can add versioning support to 8816 # collect2, so additional links can be useful in future. 8817 if test "$aix_use_runtimelinking" = yes; then 8818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8819 # instead of lib<name>.a to let people know that these are not 8820 # typical AIX shared libraries. 8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8822 else 8823 # We preserve .a as extension for shared libraries through AIX4.2 8824 # and later when we are not doing run time linking. 8825 library_names_spec='${libname}${release}.a $libname.a' 8826 soname_spec='${libname}${release}${shared_ext}$major' 8827 fi 8828 shlibpath_var=LIBPATH 8829 fi 8830 ;; 8831 8832 amigaos*) 8833 library_names_spec='$libname.ixlibrary $libname.a' 8834 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8835 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 8836 ;; 8837 8838 beos*) 8839 library_names_spec='${libname}${shared_ext}' 8840 dynamic_linker="$host_os ld.so" 8841 shlibpath_var=LIBRARY_PATH 8842 ;; 8843 8844 bsdi[45]*) 8845 version_type=linux 8846 need_version=no 8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8848 soname_spec='${libname}${release}${shared_ext}$major' 8849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8850 shlibpath_var=LD_LIBRARY_PATH 8851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8853 # the default ld.so.conf also contains /usr/contrib/lib and 8854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8855 # libtool to hard-code these into programs 8856 ;; 8857 8858 cygwin* | mingw* | pw32*) 8859 version_type=windows 8860 shrext_cmds=".dll" 8861 need_version=no 8862 need_lib_prefix=no 8863 8864 case $GCC,$host_os in 8865 yes,cygwin* | yes,mingw* | yes,pw32*) 8866 library_names_spec='$libname.dll.a' 8867 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8868 postinstall_cmds='base_file=`basename \${file}`~ 8869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8870 dldir=$destdir/`dirname \$dlpath`~ 8871 test -d \$dldir || mkdir -p \$dldir~ 8872 $install_prog $dir/$dlname \$dldir/$dlname~ 8873 chmod a+x \$dldir/$dlname' 8874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8875 dlpath=$dir/\$dldll~ 8876 $rm \$dlpath' 8877 shlibpath_overrides_runpath=yes 8878 8879 case $host_os in 8880 cygwin*) 8881 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8882 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8883 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8884 ;; 8885 mingw*) 8886 # MinGW DLLs use traditional 'lib' prefix 8887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8888 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8889 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8890 # It is most probably a Windows format PATH printed by 8891 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8892 # path with ; separators, and with drive letters. We can handle the 8893 # drive letters (cygwin fileutils understands them), so leave them, 8894 # especially as we might pass files found there to a mingw objdump, 8895 # which wouldn't understand a cygwinified path. Ahh. 8896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8897 else 8898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8899 fi 8900 ;; 8901 pw32*) 8902 # pw32 DLLs use 'pw' prefix rather than 'lib' 8903 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8904 ;; 8905 esac 8906 ;; 8907 8908 *) 8909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8910 ;; 8911 esac 8912 dynamic_linker='Win32 ld.exe' 8913 # FIXME: first we should search . and the directory the executable is in 8914 shlibpath_var=PATH 8915 ;; 8916 8917 darwin* | rhapsody*) 8918 dynamic_linker="$host_os dyld" 8919 version_type=darwin 8920 need_lib_prefix=no 8921 need_version=no 8922 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8923 soname_spec='${libname}${release}${major}$shared_ext' 8924 shlibpath_overrides_runpath=yes 8925 shlibpath_var=DYLD_LIBRARY_PATH 8926 shrext_cmds='.dylib' 8927 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8928 if test "$GCC" = yes; then 8929 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8930 else 8931 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8932 fi 8933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8934 ;; 8935 8936 dgux*) 8937 version_type=linux 8938 need_lib_prefix=no 8939 need_version=no 8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8941 soname_spec='${libname}${release}${shared_ext}$major' 8942 shlibpath_var=LD_LIBRARY_PATH 8943 ;; 8944 8945 freebsd1.*) 8946 dynamic_linker=no 8947 ;; 8948 8949 kfreebsd*-gnu) 8950 version_type=linux 8951 need_lib_prefix=no 8952 need_version=no 8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8954 soname_spec='${libname}${release}${shared_ext}$major' 8955 shlibpath_var=LD_LIBRARY_PATH 8956 shlibpath_overrides_runpath=no 8957 hardcode_into_libs=yes 8958 dynamic_linker='GNU ld.so' 8959 ;; 8960 8961 freebsd* | dragonfly*) 8962 # DragonFly does not have aout. When/if they implement a new 8963 # versioning mechanism, adjust this. 8964 if test -x /usr/bin/objformat; then 8965 objformat=`/usr/bin/objformat` 8966 else 8967 case $host_os in 8968 freebsd[123].*) objformat=aout ;; 8969 *) objformat=elf ;; 8970 esac 8971 fi 8972 version_type=freebsd-$objformat 8973 case $version_type in 8974 freebsd-elf*) 8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8976 need_version=no 8977 need_lib_prefix=no 8978 ;; 8979 freebsd-*) 8980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8981 need_version=yes 8982 ;; 8983 esac 8984 shlibpath_var=LD_LIBRARY_PATH 8985 case $host_os in 8986 freebsd2.*) 8987 shlibpath_overrides_runpath=yes 8988 ;; 8989 freebsd3.[01]* | freebsdelf3.[01]*) 8990 shlibpath_overrides_runpath=yes 8991 hardcode_into_libs=yes 8992 ;; 8993 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8994 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8995 shlibpath_overrides_runpath=no 8996 hardcode_into_libs=yes 8997 ;; 8998 freebsd*) # from 4.6 on 8999 shlibpath_overrides_runpath=yes 9000 hardcode_into_libs=yes 9001 ;; 9002 esac 9003 ;; 9004 9005 gnu*) 9006 version_type=linux 9007 need_lib_prefix=no 9008 need_version=no 9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9010 soname_spec='${libname}${release}${shared_ext}$major' 9011 shlibpath_var=LD_LIBRARY_PATH 9012 hardcode_into_libs=yes 9013 ;; 9014 9015 hpux9* | hpux10* | hpux11*) 9016 # Give a soname corresponding to the major version so that dld.sl refuses to 9017 # link against other versions. 9018 version_type=sunos 9019 need_lib_prefix=no 9020 need_version=no 9021 case $host_cpu in 9022 ia64*) 9023 shrext_cmds='.so' 9024 hardcode_into_libs=yes 9025 dynamic_linker="$host_os dld.so" 9026 shlibpath_var=LD_LIBRARY_PATH 9027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9029 soname_spec='${libname}${release}${shared_ext}$major' 9030 if test "X$HPUX_IA64_MODE" = X32; then 9031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9032 else 9033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9034 fi 9035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9036 ;; 9037 hppa*64*) 9038 shrext_cmds='.sl' 9039 hardcode_into_libs=yes 9040 dynamic_linker="$host_os dld.sl" 9041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9044 soname_spec='${libname}${release}${shared_ext}$major' 9045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9047 ;; 9048 *) 9049 shrext_cmds='.sl' 9050 dynamic_linker="$host_os dld.sl" 9051 shlibpath_var=SHLIB_PATH 9052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9054 soname_spec='${libname}${release}${shared_ext}$major' 9055 ;; 9056 esac 9057 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9058 postinstall_cmds='chmod 555 $lib' 9059 ;; 9060 9061 interix3*) 9062 version_type=linux 9063 need_lib_prefix=no 9064 need_version=no 9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9066 soname_spec='${libname}${release}${shared_ext}$major' 9067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9068 shlibpath_var=LD_LIBRARY_PATH 9069 shlibpath_overrides_runpath=no 9070 hardcode_into_libs=yes 9071 ;; 9072 9073 irix5* | irix6* | nonstopux*) 9074 case $host_os in 9075 nonstopux*) version_type=nonstopux ;; 9076 *) 9077 if test "$lt_cv_prog_gnu_ld" = yes; then 9078 version_type=linux 9079 else 9080 version_type=irix 9081 fi ;; 9082 esac 9083 need_lib_prefix=no 9084 need_version=no 9085 soname_spec='${libname}${release}${shared_ext}$major' 9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9087 case $host_os in 9088 irix5* | nonstopux*) 9089 libsuff= shlibsuff= 9090 ;; 9091 *) 9092 case $LD in # libtool.m4 will add one of these switches to LD 9093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9094 libsuff= shlibsuff= libmagic=32-bit;; 9095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9096 libsuff=32 shlibsuff=N32 libmagic=N32;; 9097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9098 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9099 *) libsuff= shlibsuff= libmagic=never-match;; 9100 esac 9101 ;; 9102 esac 9103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9104 shlibpath_overrides_runpath=no 9105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9107 hardcode_into_libs=yes 9108 ;; 9109 9110 # No shared lib support for Linux oldld, aout, or coff. 9111 linux*oldld* | linux*aout* | linux*coff*) 9112 dynamic_linker=no 9113 ;; 9114 9115 # This must be Linux ELF. 9116 linux*) 9117 version_type=linux 9118 need_lib_prefix=no 9119 need_version=no 9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9121 soname_spec='${libname}${release}${shared_ext}$major' 9122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9123 shlibpath_var=LD_LIBRARY_PATH 9124 shlibpath_overrides_runpath=no 9125 # This implies no fast_install, which is unacceptable. 9126 # Some rework will be needed to allow for fast_install 9127 # before this can be enabled. 9128 hardcode_into_libs=yes 9129 9130 # Append ld.so.conf contents to the search path 9131 if test -f /etc/ld.so.conf; then 9132 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9133 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9134 fi 9135 9136 # We used to test for /lib/ld.so.1 and disable shared libraries on 9137 # powerpc, because MkLinux only supported shared libraries with the 9138 # GNU dynamic linker. Since this was broken with cross compilers, 9139 # most powerpc-linux boxes support dynamic linking these days and 9140 # people can always --disable-shared, the test was removed, and we 9141 # assume the GNU/Linux dynamic linker is in use. 9142 dynamic_linker='GNU/Linux ld.so' 9143 ;; 9144 9145 knetbsd*-gnu) 9146 version_type=linux 9147 need_lib_prefix=no 9148 need_version=no 9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9150 soname_spec='${libname}${release}${shared_ext}$major' 9151 shlibpath_var=LD_LIBRARY_PATH 9152 shlibpath_overrides_runpath=no 9153 hardcode_into_libs=yes 9154 dynamic_linker='GNU ld.so' 9155 ;; 9156 9157 netbsd*) 9158 version_type=sunos 9159 need_lib_prefix=no 9160 need_version=no 9161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9164 dynamic_linker='NetBSD (a.out) ld.so' 9165 else 9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9167 soname_spec='${libname}${release}${shared_ext}$major' 9168 dynamic_linker='NetBSD ld.elf_so' 9169 fi 9170 shlibpath_var=LD_LIBRARY_PATH 9171 shlibpath_overrides_runpath=yes 9172 hardcode_into_libs=yes 9173 ;; 9174 9175 newsos6) 9176 version_type=linux 9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9178 shlibpath_var=LD_LIBRARY_PATH 9179 shlibpath_overrides_runpath=yes 9180 ;; 9181 9182 nto-qnx*) 9183 version_type=linux 9184 need_lib_prefix=no 9185 need_version=no 9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9187 soname_spec='${libname}${release}${shared_ext}$major' 9188 shlibpath_var=LD_LIBRARY_PATH 9189 shlibpath_overrides_runpath=yes 9190 ;; 9191 9192 openbsd* | bitrig*) 9193 version_type=sunos 9194 sys_lib_dlsearch_path_spec="/usr/lib" 9195 need_lib_prefix=no 9196 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9197 case $host_os in 9198 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9199 *) need_version=no ;; 9200 esac 9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9203 shlibpath_var=LD_LIBRARY_PATH 9204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9205 case $host_os in 9206 openbsd2.[89] | openbsd2.[89].*) 9207 shlibpath_overrides_runpath=no 9208 ;; 9209 *) 9210 shlibpath_overrides_runpath=yes 9211 ;; 9212 esac 9213 else 9214 shlibpath_overrides_runpath=yes 9215 fi 9216 ;; 9217 9218 os2*) 9219 libname_spec='$name' 9220 shrext_cmds=".dll" 9221 need_lib_prefix=no 9222 library_names_spec='$libname${shared_ext} $libname.a' 9223 dynamic_linker='OS/2 ld.exe' 9224 shlibpath_var=LIBPATH 9225 ;; 9226 9227 osf3* | osf4* | osf5*) 9228 version_type=osf 9229 need_lib_prefix=no 9230 need_version=no 9231 soname_spec='${libname}${release}${shared_ext}$major' 9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9233 shlibpath_var=LD_LIBRARY_PATH 9234 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9235 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9236 ;; 9237 9238 solaris*) 9239 version_type=linux 9240 need_lib_prefix=no 9241 need_version=no 9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9243 soname_spec='${libname}${release}${shared_ext}$major' 9244 shlibpath_var=LD_LIBRARY_PATH 9245 shlibpath_overrides_runpath=yes 9246 hardcode_into_libs=yes 9247 # ldd complains unless libraries are executable 9248 postinstall_cmds='chmod +x $lib' 9249 ;; 9250 9251 sunos4*) 9252 version_type=sunos 9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9255 shlibpath_var=LD_LIBRARY_PATH 9256 shlibpath_overrides_runpath=yes 9257 if test "$with_gnu_ld" = yes; then 9258 need_lib_prefix=no 9259 fi 9260 need_version=yes 9261 ;; 9262 9263 sysv4 | sysv4.3*) 9264 version_type=linux 9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9266 soname_spec='${libname}${release}${shared_ext}$major' 9267 shlibpath_var=LD_LIBRARY_PATH 9268 case $host_vendor in 9269 sni) 9270 shlibpath_overrides_runpath=no 9271 need_lib_prefix=no 9272 export_dynamic_flag_spec='${wl}-Blargedynsym' 9273 runpath_var=LD_RUN_PATH 9274 ;; 9275 siemens) 9276 need_lib_prefix=no 9277 ;; 9278 motorola) 9279 need_lib_prefix=no 9280 need_version=no 9281 shlibpath_overrides_runpath=no 9282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9283 ;; 9284 esac 9285 ;; 9286 9287 sysv4*MP*) 9288 if test -d /usr/nec ;then 9289 version_type=linux 9290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9291 soname_spec='$libname${shared_ext}.$major' 9292 shlibpath_var=LD_LIBRARY_PATH 9293 fi 9294 ;; 9295 9296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9297 version_type=freebsd-elf 9298 need_lib_prefix=no 9299 need_version=no 9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9301 soname_spec='${libname}${release}${shared_ext}$major' 9302 shlibpath_var=LD_LIBRARY_PATH 9303 hardcode_into_libs=yes 9304 if test "$with_gnu_ld" = yes; then 9305 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9306 shlibpath_overrides_runpath=no 9307 else 9308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9309 shlibpath_overrides_runpath=yes 9310 case $host_os in 9311 sco3.2v5*) 9312 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9313 ;; 9314 esac 9315 fi 9316 sys_lib_dlsearch_path_spec='/usr/lib' 9317 ;; 9318 9319 uts4*) 9320 version_type=linux 9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9322 soname_spec='${libname}${release}${shared_ext}$major' 9323 shlibpath_var=LD_LIBRARY_PATH 9324 ;; 9325 9326 *) 9327 dynamic_linker=no 9328 ;; 9329 esac 9330 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9331 echo "${ECHO_T}$dynamic_linker" >&6; } 9332 test "$dynamic_linker" = no && can_build_shared=no 9333 9334 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9335 if test "$GCC" = yes; then 9336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9337 fi 9338 9339 9340 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9341 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9342 if test "${libltdl_cv_shlibext+set}" = set; then 9343 echo $ECHO_N "(cached) $ECHO_C" >&6 9344 else 9345 9346 module=yes 9347 eval libltdl_cv_shlibext=$shrext_cmds 9348 9349 fi 9350 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9351 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9352 if test -n "$libltdl_cv_shlibext"; then 9353 9354 cat >>confdefs.h <<_ACEOF 9355 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9356 _ACEOF 9357 9358 fi 9359 9360 9361 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 9362 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 9363 if test "${libltdl_cv_shlibpath_var+set}" = set; then 9364 echo $ECHO_N "(cached) $ECHO_C" >&6 9365 else 9366 libltdl_cv_shlibpath_var="$shlibpath_var" 9367 fi 9368 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 9369 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 9370 if test -n "$libltdl_cv_shlibpath_var"; then 9371 9372 cat >>confdefs.h <<_ACEOF 9373 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 9374 _ACEOF 9375 9376 fi 9377 9378 9379 { echo "$as_me:$LINENO: checking for the default library search path" >&5 9380 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9381 if test "${libltdl_cv_sys_search_path+set}" = set; then 9382 echo $ECHO_N "(cached) $ECHO_C" >&6 9383 else 9384 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9385 fi 9386 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9387 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9388 if test -n "$libltdl_cv_sys_search_path"; then 9389 sys_search_path= 9390 for dir in $libltdl_cv_sys_search_path; do 9391 if test -z "$sys_search_path"; then 9392 sys_search_path="$dir" 9393 else 9394 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9395 fi 9396 done 9397 9398 cat >>confdefs.h <<_ACEOF 9399 #define LTDL_SYSSEARCHPATH "$sys_search_path" 9400 _ACEOF 9401 9402 fi 9403 9404 { echo "$as_me:$LINENO: checking for objdir" >&5 9405 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9406 if test "${libltdl_cv_objdir+set}" = set; then 9407 echo $ECHO_N "(cached) $ECHO_C" >&6 9408 else 9409 libltdl_cv_objdir="$objdir" 9410 if test -n "$objdir"; then 9411 : 9412 else 9413 rm -f .libs 2>/dev/null 9414 mkdir .libs 2>/dev/null 9415 if test -d .libs; then 9416 libltdl_cv_objdir=.libs 9417 else 9418 # MS-DOS does not allow filenames that begin with a dot. 9419 libltdl_cv_objdir=_libs 9420 fi 9421 rmdir .libs 2>/dev/null 9422 fi 9423 9424 fi 9425 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9426 echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9427 9428 cat >>confdefs.h <<_ACEOF 9429 #define LTDL_OBJDIR "$libltdl_cv_objdir/" 9430 _ACEOF 9431 9432 9433 9434 9435 9436 9437 # Check for command to grab the raw symbol name followed by C symbol from nm. 9438 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9439 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9440 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9441 echo $ECHO_N "(cached) $ECHO_C" >&6 9442 else 9443 9444 # These are sane defaults that work on at least a few old systems. 9445 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 9446 9447 # Character class describing NM global symbol codes. 9448 symcode='[BCDEGRST]' 9449 9450 # Regexp to match symbols that can be accessed directly from C. 9451 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9452 9453 # Transform an extracted symbol line into a proper C declaration 9454 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9455 9456 # Transform an extracted symbol line into symbol name and symbol address 9457 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9458 9459 # Define system-specific variables. 9460 case $host_os in 9461 aix*) 9462 symcode='[BCDT]' 9463 ;; 9464 cygwin* | mingw* | pw32*) 9465 symcode='[ABCDGISTW]' 9466 ;; 9467 hpux*) # Its linker distinguishes data from code symbols 9468 if test "$host_cpu" = ia64; then 9469 symcode='[ABCDEGRST]' 9470 fi 9471 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9472 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9473 ;; 9474 linux*) 9475 if test "$host_cpu" = ia64; then 9476 symcode='[ABCDGIRSTW]' 9477 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9478 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9479 fi 9480 ;; 9481 irix* | nonstopux*) 9482 symcode='[BCDEGRST]' 9483 ;; 9484 osf*) 9485 symcode='[BCDEGQRST]' 9486 ;; 9487 solaris*) 9488 symcode='[BDRT]' 9489 ;; 9490 sco3.2v5*) 9491 symcode='[DT]' 9492 ;; 9493 sysv4.2uw2*) 9494 symcode='[DT]' 9495 ;; 9496 sysv5* | sco5v6* | unixware* | OpenUNIX*) 9497 symcode='[ABDT]' 9498 ;; 9499 sysv4) 9500 symcode='[DFNSTU]' 9501 ;; 9502 esac 9503 9504 # Handle CRLF in mingw tool chain 9505 opt_cr= 9506 case $build_os in 9507 mingw*) 9508 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9509 ;; 9510 esac 9511 9512 # If we're using GNU nm, then use its standard symbol codes. 9513 case `$NM -V 2>&1` in 9514 *GNU* | *'with BFD'*) 9515 symcode='[ABCDGIRSTW]' ;; 9516 esac 9517 9518 # Try without a prefix undercore, then with it. 9519 for ac_symprfx in "" "_"; do 9520 9521 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9522 symxfrm="\\1 $ac_symprfx\\2 \\2" 9523 9524 # Write the raw and C identifiers. 9525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9526 9527 # Check to see that the pipe works correctly. 9528 pipe_works=no 9529 9530 rm -f conftest* 9531 cat > conftest.$ac_ext <<EOF 9532 #ifdef __cplusplus 9533 extern "C" { 9534 #endif 9535 char nm_test_var; 9536 void nm_test_func(){} 9537 #ifdef __cplusplus 9538 } 9539 #endif 9540 int main(){nm_test_var='a';nm_test_func();return(0);} 9541 EOF 9542 9543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9544 (eval $ac_compile) 2>&5 9545 ac_status=$? 9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9547 (exit $ac_status); }; then 9548 # Now try to grab the symbols. 9549 nlist=conftest.nm 9550 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9551 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9552 ac_status=$? 9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9554 (exit $ac_status); } && test -s "$nlist"; then 9555 # Try sorting and uniquifying the output. 9556 if sort "$nlist" | uniq > "$nlist"T; then 9557 mv -f "$nlist"T "$nlist" 9558 else 9559 rm -f "$nlist"T 9560 fi 9561 9562 # Make sure that we snagged all the symbols we need. 9563 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9564 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9565 cat <<EOF > conftest.$ac_ext 9566 #ifdef __cplusplus 9567 extern "C" { 9568 #endif 9569 9570 EOF 9571 # Now generate the symbol file. 9572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9573 9574 cat <<EOF >> conftest.$ac_ext 9575 #if defined (__STDC__) && __STDC__ 9576 # define lt_ptr_t void * 9577 #else 9578 # define lt_ptr_t char * 9579 # define const 9580 #endif 9581 9582 /* The mapping between symbol names and symbols. */ 9583 const struct { 9584 const char *name; 9585 lt_ptr_t address; 9586 } 9587 lt_preloaded_symbols[] = 9588 { 9589 EOF 9590 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9591 cat <<\EOF >> conftest.$ac_ext 9592 {0, (lt_ptr_t) 0} 9593 }; 9594 9595 #ifdef __cplusplus 9596 } 9597 #endif 9598 EOF 9599 # Now try linking the two files. 9600 mv conftest.$ac_objext conftstm.$ac_objext 9601 lt_save_LIBS="$LIBS" 9602 lt_save_CFLAGS="$CFLAGS" 9603 LIBS="conftstm.$ac_objext" 9604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9606 (eval $ac_link) 2>&5 9607 ac_status=$? 9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9609 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9610 pipe_works=yes 9611 fi 9612 LIBS="$lt_save_LIBS" 9613 CFLAGS="$lt_save_CFLAGS" 9614 else 9615 echo "cannot find nm_test_func in $nlist" >&5 9616 fi 9617 else 9618 echo "cannot find nm_test_var in $nlist" >&5 9619 fi 9620 else 9621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9622 fi 9623 else 9624 echo "$progname: failed program was:" >&5 9625 cat conftest.$ac_ext >&5 9626 fi 9627 rm -f conftest* conftst* 9628 9629 # Do not use the global_symbol_pipe unless it works. 9630 if test "$pipe_works" = yes; then 9631 break 9632 else 9633 lt_cv_sys_global_symbol_pipe= 9634 fi 9635 done 9636 9637 fi 9638 9639 if test -z "$lt_cv_sys_global_symbol_pipe"; then 9640 lt_cv_sys_global_symbol_to_cdecl= 9641 fi 9642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9643 { echo "$as_me:$LINENO: result: failed" >&5 9644 echo "${ECHO_T}failed" >&6; } 9645 else 9646 { echo "$as_me:$LINENO: result: ok" >&5 9647 echo "${ECHO_T}ok" >&6; } 9648 fi 9649 9650 9651 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9652 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9653 if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9654 echo $ECHO_N "(cached) $ECHO_C" >&6 9655 else 9656 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9657 libltdl_cv_preloaded_symbols=yes 9658 else 9659 libltdl_cv_preloaded_symbols=no 9660 fi 9661 9662 fi 9663 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9664 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9665 if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9666 9667 cat >>confdefs.h <<\_ACEOF 9668 #define HAVE_PRELOADED_SYMBOLS 1 9669 _ACEOF 9670 9671 fi 9672 9673 LIBADD_DL= 9674 9675 ac_ext=c 9676 ac_cpp='$CPP $CPPFLAGS' 9677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9679 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9680 9681 9682 { echo "$as_me:$LINENO: checking for shl_load" >&5 9683 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9684 if test "${ac_cv_func_shl_load+set}" = set; then 9685 echo $ECHO_N "(cached) $ECHO_C" >&6 9686 else 9687 cat >conftest.$ac_ext <<_ACEOF 9688 /* confdefs.h. */ 9689 _ACEOF 9690 cat confdefs.h >>conftest.$ac_ext 9691 cat >>conftest.$ac_ext <<_ACEOF 9692 /* end confdefs.h. */ 9693 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9694 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9695 #define shl_load innocuous_shl_load 9696 9697 /* System header to define __stub macros and hopefully few prototypes, 9698 which can conflict with char shl_load (); below. 9699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9700 <limits.h> exists even on freestanding compilers. */ 9701 9702 #ifdef __STDC__ 9703 # include <limits.h> 9704 #else 9705 # include <assert.h> 9706 #endif 9707 9708 #undef shl_load 9709 9710 /* Override any GCC internal prototype to avoid an error. 9711 Use char because int might match the return type of a GCC 9712 builtin and then its argument prototype would still apply. */ 9713 #ifdef __cplusplus 9714 extern "C" 9715 #endif 9716 char shl_load (); 9717 /* The GNU C library defines this for functions which it implements 9718 to always fail with ENOSYS. Some functions are actually named 9719 something starting with __ and the normal name is an alias. */ 9720 #if defined __stub_shl_load || defined __stub___shl_load 9721 choke me 9722 #endif 9723 9724 int 9725 main () 9726 { 9727 return shl_load (); 9728 ; 9729 return 0; 9730 } 9731 _ACEOF 9732 rm -f conftest.$ac_objext conftest$ac_exeext 9733 if { (ac_try="$ac_link" 9734 case "(($ac_try" in 9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9736 *) ac_try_echo=$ac_try;; 9737 esac 9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9739 (eval "$ac_link") 2>conftest.er1 9740 ac_status=$? 9741 grep -v '^ *+' conftest.er1 >conftest.err 9742 rm -f conftest.er1 9743 cat conftest.err >&5 9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9745 (exit $ac_status); } && 9746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9747 { (case "(($ac_try" in 9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9749 *) ac_try_echo=$ac_try;; 9750 esac 9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9752 (eval "$ac_try") 2>&5 9753 ac_status=$? 9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9755 (exit $ac_status); }; } && 9756 { ac_try='test -s conftest$ac_exeext' 9757 { (case "(($ac_try" in 9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9759 *) ac_try_echo=$ac_try;; 9760 esac 9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9762 (eval "$ac_try") 2>&5 9763 ac_status=$? 9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9765 (exit $ac_status); }; }; then 9766 ac_cv_func_shl_load=yes 9767 else 9768 echo "$as_me: failed program was:" >&5 9769 sed 's/^/| /' conftest.$ac_ext >&5 9770 9771 ac_cv_func_shl_load=no 9772 fi 9773 9774 rm -f core conftest.err conftest.$ac_objext \ 9775 conftest$ac_exeext conftest.$ac_ext 9776 fi 9777 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9779 if test $ac_cv_func_shl_load = yes; then 9780 9781 cat >>confdefs.h <<\_ACEOF 9782 #define HAVE_SHL_LOAD 1 9783 _ACEOF 9784 9785 else 9786 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9787 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9789 echo $ECHO_N "(cached) $ECHO_C" >&6 9790 else 9791 ac_check_lib_save_LIBS=$LIBS 9792 LIBS="-ldld $LIBS" 9793 cat >conftest.$ac_ext <<_ACEOF 9794 /* confdefs.h. */ 9795 _ACEOF 9796 cat confdefs.h >>conftest.$ac_ext 9797 cat >>conftest.$ac_ext <<_ACEOF 9798 /* end confdefs.h. */ 9799 9800 /* Override any GCC internal prototype to avoid an error. 9801 Use char because int might match the return type of a GCC 9802 builtin and then its argument prototype would still apply. */ 9803 #ifdef __cplusplus 9804 extern "C" 9805 #endif 9806 char shl_load (); 9807 int 9808 main () 9809 { 9810 return shl_load (); 9811 ; 9812 return 0; 9813 } 9814 _ACEOF 9815 rm -f conftest.$ac_objext conftest$ac_exeext 9816 if { (ac_try="$ac_link" 9817 case "(($ac_try" in 9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9819 *) ac_try_echo=$ac_try;; 9820 esac 9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9822 (eval "$ac_link") 2>conftest.er1 9823 ac_status=$? 9824 grep -v '^ *+' conftest.er1 >conftest.err 9825 rm -f conftest.er1 9826 cat conftest.err >&5 9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9828 (exit $ac_status); } && 9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9830 { (case "(($ac_try" in 9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9832 *) ac_try_echo=$ac_try;; 9833 esac 9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9835 (eval "$ac_try") 2>&5 9836 ac_status=$? 9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9838 (exit $ac_status); }; } && 9839 { ac_try='test -s conftest$ac_exeext' 9840 { (case "(($ac_try" in 9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9842 *) ac_try_echo=$ac_try;; 9843 esac 9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9845 (eval "$ac_try") 2>&5 9846 ac_status=$? 9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9848 (exit $ac_status); }; }; then 9849 ac_cv_lib_dld_shl_load=yes 9850 else 9851 echo "$as_me: failed program was:" >&5 9852 sed 's/^/| /' conftest.$ac_ext >&5 9853 9854 ac_cv_lib_dld_shl_load=no 9855 fi 9856 9857 rm -f core conftest.err conftest.$ac_objext \ 9858 conftest$ac_exeext conftest.$ac_ext 9859 LIBS=$ac_check_lib_save_LIBS 9860 fi 9861 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9862 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9863 if test $ac_cv_lib_dld_shl_load = yes; then 9864 9865 cat >>confdefs.h <<\_ACEOF 9866 #define HAVE_SHL_LOAD 1 9867 _ACEOF 9868 9869 LIBADD_DL="$LIBADD_DL -ldld" 9870 else 9871 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9872 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9874 echo $ECHO_N "(cached) $ECHO_C" >&6 9875 else 9876 ac_check_lib_save_LIBS=$LIBS 9877 LIBS="-ldl $LIBS" 9878 cat >conftest.$ac_ext <<_ACEOF 9879 /* confdefs.h. */ 9880 _ACEOF 9881 cat confdefs.h >>conftest.$ac_ext 9882 cat >>conftest.$ac_ext <<_ACEOF 9883 /* end confdefs.h. */ 9884 9885 /* Override any GCC internal prototype to avoid an error. 9886 Use char because int might match the return type of a GCC 9887 builtin and then its argument prototype would still apply. */ 9888 #ifdef __cplusplus 9889 extern "C" 9890 #endif 9891 char dlopen (); 9892 int 9893 main () 9894 { 9895 return dlopen (); 9896 ; 9897 return 0; 9898 } 9899 _ACEOF 9900 rm -f conftest.$ac_objext conftest$ac_exeext 9901 if { (ac_try="$ac_link" 9902 case "(($ac_try" in 9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9904 *) ac_try_echo=$ac_try;; 9905 esac 9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9907 (eval "$ac_link") 2>conftest.er1 9908 ac_status=$? 9909 grep -v '^ *+' conftest.er1 >conftest.err 9910 rm -f conftest.er1 9911 cat conftest.err >&5 9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9913 (exit $ac_status); } && 9914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9915 { (case "(($ac_try" in 9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9917 *) ac_try_echo=$ac_try;; 9918 esac 9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9920 (eval "$ac_try") 2>&5 9921 ac_status=$? 9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9923 (exit $ac_status); }; } && 9924 { ac_try='test -s conftest$ac_exeext' 9925 { (case "(($ac_try" in 9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9927 *) ac_try_echo=$ac_try;; 9928 esac 9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9930 (eval "$ac_try") 2>&5 9931 ac_status=$? 9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9933 (exit $ac_status); }; }; then 9934 ac_cv_lib_dl_dlopen=yes 9935 else 9936 echo "$as_me: failed program was:" >&5 9937 sed 's/^/| /' conftest.$ac_ext >&5 9938 9939 ac_cv_lib_dl_dlopen=no 9940 fi 9941 9942 rm -f core conftest.err conftest.$ac_objext \ 9943 conftest$ac_exeext conftest.$ac_ext 9944 LIBS=$ac_check_lib_save_LIBS 9945 fi 9946 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9948 if test $ac_cv_lib_dl_dlopen = yes; then 9949 9950 cat >>confdefs.h <<\_ACEOF 9951 #define HAVE_LIBDL 1 9952 _ACEOF 9953 9954 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 9955 else 9956 cat >conftest.$ac_ext <<_ACEOF 9957 /* confdefs.h. */ 9958 _ACEOF 9959 cat confdefs.h >>conftest.$ac_ext 9960 cat >>conftest.$ac_ext <<_ACEOF 9961 /* end confdefs.h. */ 9962 #if HAVE_DLFCN_H 9963 # include <dlfcn.h> 9964 #endif 9965 9966 int 9967 main () 9968 { 9969 dlopen(0, 0); 9970 ; 9971 return 0; 9972 } 9973 _ACEOF 9974 rm -f conftest.$ac_objext conftest$ac_exeext 9975 if { (ac_try="$ac_link" 9976 case "(($ac_try" in 9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9978 *) ac_try_echo=$ac_try;; 9979 esac 9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9981 (eval "$ac_link") 2>conftest.er1 9982 ac_status=$? 9983 grep -v '^ *+' conftest.er1 >conftest.err 9984 rm -f conftest.er1 9985 cat conftest.err >&5 9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9987 (exit $ac_status); } && 9988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9989 { (case "(($ac_try" in 9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9991 *) ac_try_echo=$ac_try;; 9992 esac 9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9994 (eval "$ac_try") 2>&5 9995 ac_status=$? 9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9997 (exit $ac_status); }; } && 9998 { ac_try='test -s conftest$ac_exeext' 9999 { (case "(($ac_try" in 10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10001 *) ac_try_echo=$ac_try;; 10002 esac 10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10004 (eval "$ac_try") 2>&5 10005 ac_status=$? 10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10007 (exit $ac_status); }; }; then 10008 10009 cat >>confdefs.h <<\_ACEOF 10010 #define HAVE_LIBDL 1 10011 _ACEOF 10012 libltdl_cv_func_dlopen="yes" 10013 else 10014 echo "$as_me: failed program was:" >&5 10015 sed 's/^/| /' conftest.$ac_ext >&5 10016 10017 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10018 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10019 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10020 echo $ECHO_N "(cached) $ECHO_C" >&6 10021 else 10022 ac_check_lib_save_LIBS=$LIBS 10023 LIBS="-lsvld $LIBS" 10024 cat >conftest.$ac_ext <<_ACEOF 10025 /* confdefs.h. */ 10026 _ACEOF 10027 cat confdefs.h >>conftest.$ac_ext 10028 cat >>conftest.$ac_ext <<_ACEOF 10029 /* end confdefs.h. */ 10030 10031 /* Override any GCC internal prototype to avoid an error. 10032 Use char because int might match the return type of a GCC 10033 builtin and then its argument prototype would still apply. */ 10034 #ifdef __cplusplus 10035 extern "C" 10036 #endif 10037 char dlopen (); 10038 int 10039 main () 10040 { 10041 return dlopen (); 10042 ; 10043 return 0; 10044 } 10045 _ACEOF 10046 rm -f conftest.$ac_objext conftest$ac_exeext 10047 if { (ac_try="$ac_link" 10048 case "(($ac_try" in 10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10050 *) ac_try_echo=$ac_try;; 10051 esac 10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10053 (eval "$ac_link") 2>conftest.er1 10054 ac_status=$? 10055 grep -v '^ *+' conftest.er1 >conftest.err 10056 rm -f conftest.er1 10057 cat conftest.err >&5 10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10059 (exit $ac_status); } && 10060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10061 { (case "(($ac_try" in 10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10063 *) ac_try_echo=$ac_try;; 10064 esac 10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10066 (eval "$ac_try") 2>&5 10067 ac_status=$? 10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10069 (exit $ac_status); }; } && 10070 { ac_try='test -s conftest$ac_exeext' 10071 { (case "(($ac_try" in 10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10073 *) ac_try_echo=$ac_try;; 10074 esac 10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10076 (eval "$ac_try") 2>&5 10077 ac_status=$? 10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10079 (exit $ac_status); }; }; then 10080 ac_cv_lib_svld_dlopen=yes 10081 else 10082 echo "$as_me: failed program was:" >&5 10083 sed 's/^/| /' conftest.$ac_ext >&5 10084 10085 ac_cv_lib_svld_dlopen=no 10086 fi 10087 10088 rm -f core conftest.err conftest.$ac_objext \ 10089 conftest$ac_exeext conftest.$ac_ext 10090 LIBS=$ac_check_lib_save_LIBS 10091 fi 10092 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10094 if test $ac_cv_lib_svld_dlopen = yes; then 10095 10096 cat >>confdefs.h <<\_ACEOF 10097 #define HAVE_LIBDL 1 10098 _ACEOF 10099 10100 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 10101 else 10102 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10103 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10104 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10105 echo $ECHO_N "(cached) $ECHO_C" >&6 10106 else 10107 ac_check_lib_save_LIBS=$LIBS 10108 LIBS="-ldld $LIBS" 10109 cat >conftest.$ac_ext <<_ACEOF 10110 /* confdefs.h. */ 10111 _ACEOF 10112 cat confdefs.h >>conftest.$ac_ext 10113 cat >>conftest.$ac_ext <<_ACEOF 10114 /* end confdefs.h. */ 10115 10116 /* Override any GCC internal prototype to avoid an error. 10117 Use char because int might match the return type of a GCC 10118 builtin and then its argument prototype would still apply. */ 10119 #ifdef __cplusplus 10120 extern "C" 10121 #endif 10122 char dld_link (); 10123 int 10124 main () 10125 { 10126 return dld_link (); 10127 ; 10128 return 0; 10129 } 10130 _ACEOF 10131 rm -f conftest.$ac_objext conftest$ac_exeext 10132 if { (ac_try="$ac_link" 10133 case "(($ac_try" in 10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10135 *) ac_try_echo=$ac_try;; 10136 esac 10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10138 (eval "$ac_link") 2>conftest.er1 10139 ac_status=$? 10140 grep -v '^ *+' conftest.er1 >conftest.err 10141 rm -f conftest.er1 10142 cat conftest.err >&5 10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10144 (exit $ac_status); } && 10145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10146 { (case "(($ac_try" in 10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10148 *) ac_try_echo=$ac_try;; 10149 esac 10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10151 (eval "$ac_try") 2>&5 10152 ac_status=$? 10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10154 (exit $ac_status); }; } && 10155 { ac_try='test -s conftest$ac_exeext' 10156 { (case "(($ac_try" in 10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10158 *) ac_try_echo=$ac_try;; 10159 esac 10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10161 (eval "$ac_try") 2>&5 10162 ac_status=$? 10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10164 (exit $ac_status); }; }; then 10165 ac_cv_lib_dld_dld_link=yes 10166 else 10167 echo "$as_me: failed program was:" >&5 10168 sed 's/^/| /' conftest.$ac_ext >&5 10169 10170 ac_cv_lib_dld_dld_link=no 10171 fi 10172 10173 rm -f core conftest.err conftest.$ac_objext \ 10174 conftest$ac_exeext conftest.$ac_ext 10175 LIBS=$ac_check_lib_save_LIBS 10176 fi 10177 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10178 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10179 if test $ac_cv_lib_dld_dld_link = yes; then 10180 10181 cat >>confdefs.h <<\_ACEOF 10182 #define HAVE_DLD 1 10183 _ACEOF 10184 10185 LIBADD_DL="$LIBADD_DL -ldld" 10186 else 10187 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 10188 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10189 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10190 echo $ECHO_N "(cached) $ECHO_C" >&6 10191 else 10192 cat >conftest.$ac_ext <<_ACEOF 10193 /* confdefs.h. */ 10194 _ACEOF 10195 cat confdefs.h >>conftest.$ac_ext 10196 cat >>conftest.$ac_ext <<_ACEOF 10197 /* end confdefs.h. */ 10198 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10199 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10200 #define _dyld_func_lookup innocuous__dyld_func_lookup 10201 10202 /* System header to define __stub macros and hopefully few prototypes, 10203 which can conflict with char _dyld_func_lookup (); below. 10204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10205 <limits.h> exists even on freestanding compilers. */ 10206 10207 #ifdef __STDC__ 10208 # include <limits.h> 10209 #else 10210 # include <assert.h> 10211 #endif 10212 10213 #undef _dyld_func_lookup 10214 10215 /* Override any GCC internal prototype to avoid an error. 10216 Use char because int might match the return type of a GCC 10217 builtin and then its argument prototype would still apply. */ 10218 #ifdef __cplusplus 10219 extern "C" 10220 #endif 10221 char _dyld_func_lookup (); 10222 /* The GNU C library defines this for functions which it implements 10223 to always fail with ENOSYS. Some functions are actually named 10224 something starting with __ and the normal name is an alias. */ 10225 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10226 choke me 10227 #endif 10228 10229 int 10230 main () 10231 { 10232 return _dyld_func_lookup (); 10233 ; 10234 return 0; 10235 } 10236 _ACEOF 10237 rm -f conftest.$ac_objext conftest$ac_exeext 10238 if { (ac_try="$ac_link" 10239 case "(($ac_try" in 10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10241 *) ac_try_echo=$ac_try;; 10242 esac 10243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10244 (eval "$ac_link") 2>conftest.er1 10245 ac_status=$? 10246 grep -v '^ *+' conftest.er1 >conftest.err 10247 rm -f conftest.er1 10248 cat conftest.err >&5 10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10250 (exit $ac_status); } && 10251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10252 { (case "(($ac_try" in 10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10254 *) ac_try_echo=$ac_try;; 10255 esac 10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10257 (eval "$ac_try") 2>&5 10258 ac_status=$? 10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10260 (exit $ac_status); }; } && 10261 { ac_try='test -s conftest$ac_exeext' 10262 { (case "(($ac_try" in 10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10264 *) ac_try_echo=$ac_try;; 10265 esac 10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10267 (eval "$ac_try") 2>&5 10268 ac_status=$? 10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10270 (exit $ac_status); }; }; then 10271 ac_cv_func__dyld_func_lookup=yes 10272 else 10273 echo "$as_me: failed program was:" >&5 10274 sed 's/^/| /' conftest.$ac_ext >&5 10275 10276 ac_cv_func__dyld_func_lookup=no 10277 fi 10278 10279 rm -f core conftest.err conftest.$ac_objext \ 10280 conftest$ac_exeext conftest.$ac_ext 10281 fi 10282 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10283 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10284 if test $ac_cv_func__dyld_func_lookup = yes; then 10285 10286 cat >>confdefs.h <<\_ACEOF 10287 #define HAVE_DYLD 1 10288 _ACEOF 10289 10290 fi 10291 10292 10293 fi 10294 10295 10296 fi 10297 10298 10299 fi 10300 10301 rm -f core conftest.err conftest.$ac_objext \ 10302 conftest$ac_exeext conftest.$ac_ext 10303 10304 fi 10305 10306 10307 fi 10308 10309 10310 fi 10311 10312 10313 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10314 then 10315 lt_save_LIBS="$LIBS" 10316 LIBS="$LIBS $LIBADD_DL" 10317 10318 for ac_func in dlerror 10319 do 10320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10321 { echo "$as_me:$LINENO: checking for $ac_func" >&5 10322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10324 echo $ECHO_N "(cached) $ECHO_C" >&6 10325 else 10326 cat >conftest.$ac_ext <<_ACEOF 10327 /* confdefs.h. */ 10328 _ACEOF 10329 cat confdefs.h >>conftest.$ac_ext 10330 cat >>conftest.$ac_ext <<_ACEOF 10331 /* end confdefs.h. */ 10332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10333 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10334 #define $ac_func innocuous_$ac_func 10335 10336 /* System header to define __stub macros and hopefully few prototypes, 10337 which can conflict with char $ac_func (); below. 10338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10339 <limits.h> exists even on freestanding compilers. */ 10340 10341 #ifdef __STDC__ 10342 # include <limits.h> 10343 #else 10344 # include <assert.h> 10345 #endif 10346 10347 #undef $ac_func 10348 10349 /* Override any GCC internal prototype to avoid an error. 10350 Use char because int might match the return type of a GCC 10351 builtin and then its argument prototype would still apply. */ 10352 #ifdef __cplusplus 10353 extern "C" 10354 #endif 10355 char $ac_func (); 10356 /* The GNU C library defines this for functions which it implements 10357 to always fail with ENOSYS. Some functions are actually named 10358 something starting with __ and the normal name is an alias. */ 10359 #if defined __stub_$ac_func || defined __stub___$ac_func 10360 choke me 10361 #endif 10362 10363 int 10364 main () 10365 { 10366 return $ac_func (); 10367 ; 10368 return 0; 10369 } 10370 _ACEOF 10371 rm -f conftest.$ac_objext conftest$ac_exeext 10372 if { (ac_try="$ac_link" 10373 case "(($ac_try" in 10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10375 *) ac_try_echo=$ac_try;; 10376 esac 10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10378 (eval "$ac_link") 2>conftest.er1 10379 ac_status=$? 10380 grep -v '^ *+' conftest.er1 >conftest.err 10381 rm -f conftest.er1 10382 cat conftest.err >&5 10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10384 (exit $ac_status); } && 10385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10386 { (case "(($ac_try" in 10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10388 *) ac_try_echo=$ac_try;; 10389 esac 10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10391 (eval "$ac_try") 2>&5 10392 ac_status=$? 10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10394 (exit $ac_status); }; } && 10395 { ac_try='test -s conftest$ac_exeext' 10396 { (case "(($ac_try" in 10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10398 *) ac_try_echo=$ac_try;; 10399 esac 10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10401 (eval "$ac_try") 2>&5 10402 ac_status=$? 10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10404 (exit $ac_status); }; }; then 10405 eval "$as_ac_var=yes" 10406 else 10407 echo "$as_me: failed program was:" >&5 10408 sed 's/^/| /' conftest.$ac_ext >&5 10409 10410 eval "$as_ac_var=no" 10411 fi 10412 10413 rm -f core conftest.err conftest.$ac_objext \ 10414 conftest$ac_exeext conftest.$ac_ext 10415 fi 10416 ac_res=`eval echo '${'$as_ac_var'}'` 10417 { echo "$as_me:$LINENO: result: $ac_res" >&5 10418 echo "${ECHO_T}$ac_res" >&6; } 10419 if test `eval echo '${'$as_ac_var'}'` = yes; then 10420 cat >>confdefs.h <<_ACEOF 10421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10422 _ACEOF 10423 10424 fi 10425 done 10426 10427 LIBS="$lt_save_LIBS" 10428 fi 10429 ac_ext=c 10430 ac_cpp='$CPP $CPPFLAGS' 10431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10433 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10434 10435 10436 10437 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10438 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10439 if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10440 echo $ECHO_N "(cached) $ECHO_C" >&6 10441 else 10442 ac_cv_sys_symbol_underscore=no 10443 cat > conftest.$ac_ext <<EOF 10444 void nm_test_func(){} 10445 int main(){nm_test_func;return 0;} 10446 EOF 10447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10448 (eval $ac_compile) 2>&5 10449 ac_status=$? 10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10451 (exit $ac_status); }; then 10452 # Now try to grab the symbols. 10453 ac_nlist=conftest.nm 10454 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10455 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10456 ac_status=$? 10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10458 (exit $ac_status); } && test -s "$ac_nlist"; then 10459 # See whether the symbols have a leading underscore. 10460 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10461 ac_cv_sys_symbol_underscore=yes 10462 else 10463 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10464 : 10465 else 10466 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10467 fi 10468 fi 10469 else 10470 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10471 fi 10472 else 10473 echo "configure: failed program was:" >&5 10474 cat conftest.c >&5 10475 fi 10476 rm -rf conftest* 10477 10478 fi 10479 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10480 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10481 10482 10483 if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10484 if test x"$libltdl_cv_func_dlopen" = xyes || 10485 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10486 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10487 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10488 if test "${libltdl_cv_need_uscore+set}" = set; then 10489 echo $ECHO_N "(cached) $ECHO_C" >&6 10490 else 10491 libltdl_cv_need_uscore=unknown 10492 save_LIBS="$LIBS" 10493 LIBS="$LIBS $LIBADD_DL" 10494 if test "$cross_compiling" = yes; then : 10495 libltdl_cv_need_uscore=cross 10496 else 10497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10498 lt_status=$lt_dlunknown 10499 cat > conftest.$ac_ext <<EOF 10500 #line 10500 "configure" 10501 #include "confdefs.h" 10502 10503 #if HAVE_DLFCN_H 10504 #include <dlfcn.h> 10505 #endif 10506 10507 #include <stdio.h> 10508 10509 #ifdef RTLD_GLOBAL 10510 # define LT_DLGLOBAL RTLD_GLOBAL 10511 #else 10512 # ifdef DL_GLOBAL 10513 # define LT_DLGLOBAL DL_GLOBAL 10514 # else 10515 # define LT_DLGLOBAL 0 10516 # endif 10517 #endif 10518 10519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10520 find out it does not work in some platform. */ 10521 #ifndef LT_DLLAZY_OR_NOW 10522 # ifdef RTLD_LAZY 10523 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10524 # else 10525 # ifdef DL_LAZY 10526 # define LT_DLLAZY_OR_NOW DL_LAZY 10527 # else 10528 # ifdef RTLD_NOW 10529 # define LT_DLLAZY_OR_NOW RTLD_NOW 10530 # else 10531 # ifdef DL_NOW 10532 # define LT_DLLAZY_OR_NOW DL_NOW 10533 # else 10534 # define LT_DLLAZY_OR_NOW 0 10535 # endif 10536 # endif 10537 # endif 10538 # endif 10539 #endif 10540 10541 #ifdef __cplusplus 10542 extern "C" void exit (int); 10543 #endif 10544 10545 void fnord() { int i=42;} 10546 int main () 10547 { 10548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10549 int status = $lt_dlunknown; 10550 10551 if (self) 10552 { 10553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10554 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10555 /* dlclose (self); */ 10556 } 10557 else 10558 puts (dlerror ()); 10559 10560 exit (status); 10561 } 10562 EOF 10563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10564 (eval $ac_link) 2>&5 10565 ac_status=$? 10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10567 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10568 (./conftest; exit; ) >&5 2>/dev/null 10569 lt_status=$? 10570 case x$lt_status in 10571 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10572 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10573 x$lt_dlunknown|x*) ;; 10574 esac 10575 else : 10576 # compilation failed 10577 10578 fi 10579 fi 10580 rm -fr conftest* 10581 10582 LIBS="$save_LIBS" 10583 10584 fi 10585 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10586 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10587 fi 10588 fi 10589 10590 if test x"$libltdl_cv_need_uscore" = xyes; then 10591 10592 cat >>confdefs.h <<\_ACEOF 10593 #define NEED_USCORE 1 10594 _ACEOF 10595 10596 fi 10597 10598 10599 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10600 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10601 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10602 echo $ECHO_N "(cached) $ECHO_C" >&6 10603 else 10604 # PORTME does your system automatically load deplibs for dlopen? 10605 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10606 # For now, we just catch OSes we know something about -- in the 10607 # future, we'll try test this programmatically. 10608 libltdl_cv_sys_dlopen_deplibs=unknown 10609 case "$host_os" in 10610 aix3*|aix4.1.*|aix4.2.*) 10611 # Unknown whether this is true for these versions of AIX, but 10612 # we want this `case' here to explicitly catch those versions. 10613 libltdl_cv_sys_dlopen_deplibs=unknown 10614 ;; 10615 aix[45]*) 10616 libltdl_cv_sys_dlopen_deplibs=yes 10617 ;; 10618 darwin*) 10619 # Assuming the user has installed a libdl from somewhere, this is true 10620 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10621 libltdl_cv_sys_dlopen_deplibs=yes 10622 ;; 10623 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10624 # GNU and its variants, using gnu ld.so (Glibc) 10625 libltdl_cv_sys_dlopen_deplibs=yes 10626 ;; 10627 hpux10*|hpux11*) 10628 libltdl_cv_sys_dlopen_deplibs=yes 10629 ;; 10630 interix*) 10631 libltdl_cv_sys_dlopen_deplibs=yes 10632 ;; 10633 irix[12345]*|irix6.[01]*) 10634 # Catch all versions of IRIX before 6.2, and indicate that we don't 10635 # know how it worked for any of those versions. 10636 libltdl_cv_sys_dlopen_deplibs=unknown 10637 ;; 10638 irix*) 10639 # The case above catches anything before 6.2, and it's known that 10640 # at 6.2 and later dlopen does load deplibs. 10641 libltdl_cv_sys_dlopen_deplibs=yes 10642 ;; 10643 netbsd*) 10644 libltdl_cv_sys_dlopen_deplibs=yes 10645 ;; 10646 openbsd*) 10647 libltdl_cv_sys_dlopen_deplibs=yes 10648 ;; 10649 osf[1234]*) 10650 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10651 # it did *not* use an RPATH in a shared library to find objects the 10652 # library depends on, so we explicitly say `no'. 10653 libltdl_cv_sys_dlopen_deplibs=no 10654 ;; 10655 osf5.0|osf5.0a|osf5.1) 10656 # dlopen *does* load deplibs and with the right loader patch applied 10657 # it even uses RPATH in a shared library to search for shared objects 10658 # that the library depends on, but there's no easy way to know if that 10659 # patch is installed. Since this is the case, all we can really 10660 # say is unknown -- it depends on the patch being installed. If 10661 # it is, this changes to `yes'. Without it, it would be `no'. 10662 libltdl_cv_sys_dlopen_deplibs=unknown 10663 ;; 10664 osf*) 10665 # the two cases above should catch all versions of osf <= 5.1. Read 10666 # the comments above for what we know about them. 10667 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10668 # is used to find them so we can finally say `yes'. 10669 libltdl_cv_sys_dlopen_deplibs=yes 10670 ;; 10671 solaris*) 10672 libltdl_cv_sys_dlopen_deplibs=yes 10673 ;; 10674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10675 libltdl_cv_sys_dlopen_deplibs=yes 10676 ;; 10677 esac 10678 10679 fi 10680 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10681 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10682 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10683 10684 cat >>confdefs.h <<\_ACEOF 10685 #define LTDL_DLOPEN_DEPLIBS 1 10686 _ACEOF 10687 10688 fi 10689 10690 10691 for ac_header in argz.h 10692 do 10693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10695 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10698 echo $ECHO_N "(cached) $ECHO_C" >&6 10699 fi 10700 ac_res=`eval echo '${'$as_ac_Header'}'` 10701 { echo "$as_me:$LINENO: result: $ac_res" >&5 10702 echo "${ECHO_T}$ac_res" >&6; } 10703 else 10704 # Is the header compilable? 10705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 10706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10707 cat >conftest.$ac_ext <<_ACEOF 10708 /* confdefs.h. */ 10709 _ACEOF 10710 cat confdefs.h >>conftest.$ac_ext 10711 cat >>conftest.$ac_ext <<_ACEOF 10712 /* end confdefs.h. */ 10713 $ac_includes_default 10714 #include <$ac_header> 10715 _ACEOF 10716 rm -f conftest.$ac_objext 10717 if { (ac_try="$ac_compile" 10718 case "(($ac_try" in 10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10720 *) ac_try_echo=$ac_try;; 10721 esac 10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10723 (eval "$ac_compile") 2>conftest.er1 10724 ac_status=$? 10725 grep -v '^ *+' conftest.er1 >conftest.err 10726 rm -f conftest.er1 10727 cat conftest.err >&5 10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10729 (exit $ac_status); } && 10730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10731 { (case "(($ac_try" in 10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10733 *) ac_try_echo=$ac_try;; 10734 esac 10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10736 (eval "$ac_try") 2>&5 10737 ac_status=$? 10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10739 (exit $ac_status); }; } && 10740 { ac_try='test -s conftest.$ac_objext' 10741 { (case "(($ac_try" in 10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10743 *) ac_try_echo=$ac_try;; 10744 esac 10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10746 (eval "$ac_try") 2>&5 10747 ac_status=$? 10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10749 (exit $ac_status); }; }; then 10750 ac_header_compiler=yes 10751 else 10752 echo "$as_me: failed program was:" >&5 10753 sed 's/^/| /' conftest.$ac_ext >&5 10754 10755 ac_header_compiler=no 10756 fi 10757 10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10760 echo "${ECHO_T}$ac_header_compiler" >&6; } 10761 10762 # Is the header present? 10763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 10764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10765 cat >conftest.$ac_ext <<_ACEOF 10766 /* confdefs.h. */ 10767 _ACEOF 10768 cat confdefs.h >>conftest.$ac_ext 10769 cat >>conftest.$ac_ext <<_ACEOF 10770 /* end confdefs.h. */ 10771 #include <$ac_header> 10772 _ACEOF 10773 if { (ac_try="$ac_cpp conftest.$ac_ext" 10774 case "(($ac_try" in 10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10776 *) ac_try_echo=$ac_try;; 10777 esac 10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10780 ac_status=$? 10781 grep -v '^ *+' conftest.er1 >conftest.err 10782 rm -f conftest.er1 10783 cat conftest.err >&5 10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10785 (exit $ac_status); } >/dev/null; then 10786 if test -s conftest.err; then 10787 ac_cpp_err=$ac_c_preproc_warn_flag 10788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10789 else 10790 ac_cpp_err= 10791 fi 10792 else 10793 ac_cpp_err=yes 10794 fi 10795 if test -z "$ac_cpp_err"; then 10796 ac_header_preproc=yes 10797 else 10798 echo "$as_me: failed program was:" >&5 10799 sed 's/^/| /' conftest.$ac_ext >&5 10800 10801 ac_header_preproc=no 10802 fi 10803 10804 rm -f conftest.err conftest.$ac_ext 10805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10806 echo "${ECHO_T}$ac_header_preproc" >&6; } 10807 10808 # So? What about this header? 10809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10810 yes:no: ) 10811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10815 ac_header_preproc=yes 10816 ;; 10817 no:yes:* ) 10818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10830 ( cat <<\_ASBOX 10831 ## ------------------------------------ ## 10832 ## Report this to http://llvm.org/bugs/ ## 10833 ## ------------------------------------ ## 10834 _ASBOX 10835 ) | sed "s/^/$as_me: WARNING: /" >&2 10836 ;; 10837 esac 10838 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10841 echo $ECHO_N "(cached) $ECHO_C" >&6 10842 else 10843 eval "$as_ac_Header=\$ac_header_preproc" 10844 fi 10845 ac_res=`eval echo '${'$as_ac_Header'}'` 10846 { echo "$as_me:$LINENO: result: $ac_res" >&5 10847 echo "${ECHO_T}$ac_res" >&6; } 10848 10849 fi 10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then 10851 cat >>confdefs.h <<_ACEOF 10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10853 _ACEOF 10854 10855 fi 10856 10857 done 10858 10859 10860 { echo "$as_me:$LINENO: checking for error_t" >&5 10861 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10862 if test "${ac_cv_type_error_t+set}" = set; then 10863 echo $ECHO_N "(cached) $ECHO_C" >&6 10864 else 10865 cat >conftest.$ac_ext <<_ACEOF 10866 /* confdefs.h. */ 10867 _ACEOF 10868 cat confdefs.h >>conftest.$ac_ext 10869 cat >>conftest.$ac_ext <<_ACEOF 10870 /* end confdefs.h. */ 10871 #if HAVE_ARGZ_H 10872 # include <argz.h> 10873 #endif 10874 10875 typedef error_t ac__type_new_; 10876 int 10877 main () 10878 { 10879 if ((ac__type_new_ *) 0) 10880 return 0; 10881 if (sizeof (ac__type_new_)) 10882 return 0; 10883 ; 10884 return 0; 10885 } 10886 _ACEOF 10887 rm -f conftest.$ac_objext 10888 if { (ac_try="$ac_compile" 10889 case "(($ac_try" in 10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10891 *) ac_try_echo=$ac_try;; 10892 esac 10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10894 (eval "$ac_compile") 2>conftest.er1 10895 ac_status=$? 10896 grep -v '^ *+' conftest.er1 >conftest.err 10897 rm -f conftest.er1 10898 cat conftest.err >&5 10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10900 (exit $ac_status); } && 10901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10902 { (case "(($ac_try" in 10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10904 *) ac_try_echo=$ac_try;; 10905 esac 10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10907 (eval "$ac_try") 2>&5 10908 ac_status=$? 10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10910 (exit $ac_status); }; } && 10911 { ac_try='test -s conftest.$ac_objext' 10912 { (case "(($ac_try" in 10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10914 *) ac_try_echo=$ac_try;; 10915 esac 10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10917 (eval "$ac_try") 2>&5 10918 ac_status=$? 10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10920 (exit $ac_status); }; }; then 10921 ac_cv_type_error_t=yes 10922 else 10923 echo "$as_me: failed program was:" >&5 10924 sed 's/^/| /' conftest.$ac_ext >&5 10925 10926 ac_cv_type_error_t=no 10927 fi 10928 10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10930 fi 10931 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10932 echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10933 if test $ac_cv_type_error_t = yes; then 10934 10935 cat >>confdefs.h <<_ACEOF 10936 #define HAVE_ERROR_T 1 10937 _ACEOF 10938 10939 10940 else 10941 10942 cat >>confdefs.h <<\_ACEOF 10943 #define error_t int 10944 _ACEOF 10945 10946 fi 10947 10948 10949 10950 10951 10952 10953 10954 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 10955 do 10956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10957 { echo "$as_me:$LINENO: checking for $ac_func" >&5 10958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10960 echo $ECHO_N "(cached) $ECHO_C" >&6 10961 else 10962 cat >conftest.$ac_ext <<_ACEOF 10963 /* confdefs.h. */ 10964 _ACEOF 10965 cat confdefs.h >>conftest.$ac_ext 10966 cat >>conftest.$ac_ext <<_ACEOF 10967 /* end confdefs.h. */ 10968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10969 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10970 #define $ac_func innocuous_$ac_func 10971 10972 /* System header to define __stub macros and hopefully few prototypes, 10973 which can conflict with char $ac_func (); below. 10974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10975 <limits.h> exists even on freestanding compilers. */ 10976 10977 #ifdef __STDC__ 10978 # include <limits.h> 10979 #else 10980 # include <assert.h> 10981 #endif 10982 10983 #undef $ac_func 10984 10985 /* Override any GCC internal prototype to avoid an error. 10986 Use char because int might match the return type of a GCC 10987 builtin and then its argument prototype would still apply. */ 10988 #ifdef __cplusplus 10989 extern "C" 10990 #endif 10991 char $ac_func (); 10992 /* The GNU C library defines this for functions which it implements 10993 to always fail with ENOSYS. Some functions are actually named 10994 something starting with __ and the normal name is an alias. */ 10995 #if defined __stub_$ac_func || defined __stub___$ac_func 10996 choke me 10997 #endif 10998 10999 int 11000 main () 11001 { 11002 return $ac_func (); 11003 ; 11004 return 0; 11005 } 11006 _ACEOF 11007 rm -f conftest.$ac_objext conftest$ac_exeext 11008 if { (ac_try="$ac_link" 11009 case "(($ac_try" in 11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11011 *) ac_try_echo=$ac_try;; 11012 esac 11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11014 (eval "$ac_link") 2>conftest.er1 11015 ac_status=$? 11016 grep -v '^ *+' conftest.er1 >conftest.err 11017 rm -f conftest.er1 11018 cat conftest.err >&5 11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11020 (exit $ac_status); } && 11021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11022 { (case "(($ac_try" in 11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11024 *) ac_try_echo=$ac_try;; 11025 esac 11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11027 (eval "$ac_try") 2>&5 11028 ac_status=$? 11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11030 (exit $ac_status); }; } && 11031 { ac_try='test -s conftest$ac_exeext' 11032 { (case "(($ac_try" in 11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11034 *) ac_try_echo=$ac_try;; 11035 esac 11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11037 (eval "$ac_try") 2>&5 11038 ac_status=$? 11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11040 (exit $ac_status); }; }; then 11041 eval "$as_ac_var=yes" 11042 else 11043 echo "$as_me: failed program was:" >&5 11044 sed 's/^/| /' conftest.$ac_ext >&5 11045 11046 eval "$as_ac_var=no" 11047 fi 11048 11049 rm -f core conftest.err conftest.$ac_objext \ 11050 conftest$ac_exeext conftest.$ac_ext 11051 fi 11052 ac_res=`eval echo '${'$as_ac_var'}'` 11053 { echo "$as_me:$LINENO: result: $ac_res" >&5 11054 echo "${ECHO_T}$ac_res" >&6; } 11055 if test `eval echo '${'$as_ac_var'}'` = yes; then 11056 cat >>confdefs.h <<_ACEOF 11057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11058 _ACEOF 11059 11060 fi 11061 done 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 11091 stdio.h unistd.h 11092 do 11093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11095 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11098 echo $ECHO_N "(cached) $ECHO_C" >&6 11099 fi 11100 ac_res=`eval echo '${'$as_ac_Header'}'` 11101 { echo "$as_me:$LINENO: result: $ac_res" >&5 11102 echo "${ECHO_T}$ac_res" >&6; } 11103 else 11104 # Is the header compilable? 11105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11107 cat >conftest.$ac_ext <<_ACEOF 11108 /* confdefs.h. */ 11109 _ACEOF 11110 cat confdefs.h >>conftest.$ac_ext 11111 cat >>conftest.$ac_ext <<_ACEOF 11112 /* end confdefs.h. */ 11113 $ac_includes_default 11114 #include <$ac_header> 11115 _ACEOF 11116 rm -f conftest.$ac_objext 11117 if { (ac_try="$ac_compile" 11118 case "(($ac_try" in 11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11120 *) ac_try_echo=$ac_try;; 11121 esac 11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11123 (eval "$ac_compile") 2>conftest.er1 11124 ac_status=$? 11125 grep -v '^ *+' conftest.er1 >conftest.err 11126 rm -f conftest.er1 11127 cat conftest.err >&5 11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11129 (exit $ac_status); } && 11130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11131 { (case "(($ac_try" in 11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11133 *) ac_try_echo=$ac_try;; 11134 esac 11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11136 (eval "$ac_try") 2>&5 11137 ac_status=$? 11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11139 (exit $ac_status); }; } && 11140 { ac_try='test -s conftest.$ac_objext' 11141 { (case "(($ac_try" in 11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11143 *) ac_try_echo=$ac_try;; 11144 esac 11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11146 (eval "$ac_try") 2>&5 11147 ac_status=$? 11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11149 (exit $ac_status); }; }; then 11150 ac_header_compiler=yes 11151 else 11152 echo "$as_me: failed program was:" >&5 11153 sed 's/^/| /' conftest.$ac_ext >&5 11154 11155 ac_header_compiler=no 11156 fi 11157 11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11160 echo "${ECHO_T}$ac_header_compiler" >&6; } 11161 11162 # Is the header present? 11163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11165 cat >conftest.$ac_ext <<_ACEOF 11166 /* confdefs.h. */ 11167 _ACEOF 11168 cat confdefs.h >>conftest.$ac_ext 11169 cat >>conftest.$ac_ext <<_ACEOF 11170 /* end confdefs.h. */ 11171 #include <$ac_header> 11172 _ACEOF 11173 if { (ac_try="$ac_cpp conftest.$ac_ext" 11174 case "(($ac_try" in 11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11176 *) ac_try_echo=$ac_try;; 11177 esac 11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11180 ac_status=$? 11181 grep -v '^ *+' conftest.er1 >conftest.err 11182 rm -f conftest.er1 11183 cat conftest.err >&5 11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11185 (exit $ac_status); } >/dev/null; then 11186 if test -s conftest.err; then 11187 ac_cpp_err=$ac_c_preproc_warn_flag 11188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11189 else 11190 ac_cpp_err= 11191 fi 11192 else 11193 ac_cpp_err=yes 11194 fi 11195 if test -z "$ac_cpp_err"; then 11196 ac_header_preproc=yes 11197 else 11198 echo "$as_me: failed program was:" >&5 11199 sed 's/^/| /' conftest.$ac_ext >&5 11200 11201 ac_header_preproc=no 11202 fi 11203 11204 rm -f conftest.err conftest.$ac_ext 11205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11206 echo "${ECHO_T}$ac_header_preproc" >&6; } 11207 11208 # So? What about this header? 11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11210 yes:no: ) 11211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11215 ac_header_preproc=yes 11216 ;; 11217 no:yes:* ) 11218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11230 ( cat <<\_ASBOX 11231 ## ------------------------------------ ## 11232 ## Report this to http://llvm.org/bugs/ ## 11233 ## ------------------------------------ ## 11234 _ASBOX 11235 ) | sed "s/^/$as_me: WARNING: /" >&2 11236 ;; 11237 esac 11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11241 echo $ECHO_N "(cached) $ECHO_C" >&6 11242 else 11243 eval "$as_ac_Header=\$ac_header_preproc" 11244 fi 11245 ac_res=`eval echo '${'$as_ac_Header'}'` 11246 { echo "$as_me:$LINENO: result: $ac_res" >&5 11247 echo "${ECHO_T}$ac_res" >&6; } 11248 11249 fi 11250 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11251 cat >>confdefs.h <<_ACEOF 11252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11253 _ACEOF 11254 11255 fi 11256 11257 done 11258 11259 11260 11261 11262 11263 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 11264 do 11265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11270 echo $ECHO_N "(cached) $ECHO_C" >&6 11271 fi 11272 ac_res=`eval echo '${'$as_ac_Header'}'` 11273 { echo "$as_me:$LINENO: result: $ac_res" >&5 11274 echo "${ECHO_T}$ac_res" >&6; } 11275 else 11276 # Is the header compilable? 11277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11279 cat >conftest.$ac_ext <<_ACEOF 11280 /* confdefs.h. */ 11281 _ACEOF 11282 cat confdefs.h >>conftest.$ac_ext 11283 cat >>conftest.$ac_ext <<_ACEOF 11284 /* end confdefs.h. */ 11285 $ac_includes_default 11286 #include <$ac_header> 11287 _ACEOF 11288 rm -f conftest.$ac_objext 11289 if { (ac_try="$ac_compile" 11290 case "(($ac_try" in 11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11292 *) ac_try_echo=$ac_try;; 11293 esac 11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11295 (eval "$ac_compile") 2>conftest.er1 11296 ac_status=$? 11297 grep -v '^ *+' conftest.er1 >conftest.err 11298 rm -f conftest.er1 11299 cat conftest.err >&5 11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11301 (exit $ac_status); } && 11302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11303 { (case "(($ac_try" in 11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11305 *) ac_try_echo=$ac_try;; 11306 esac 11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11308 (eval "$ac_try") 2>&5 11309 ac_status=$? 11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11311 (exit $ac_status); }; } && 11312 { ac_try='test -s conftest.$ac_objext' 11313 { (case "(($ac_try" in 11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11315 *) ac_try_echo=$ac_try;; 11316 esac 11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11318 (eval "$ac_try") 2>&5 11319 ac_status=$? 11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11321 (exit $ac_status); }; }; then 11322 ac_header_compiler=yes 11323 else 11324 echo "$as_me: failed program was:" >&5 11325 sed 's/^/| /' conftest.$ac_ext >&5 11326 11327 ac_header_compiler=no 11328 fi 11329 11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11332 echo "${ECHO_T}$ac_header_compiler" >&6; } 11333 11334 # Is the header present? 11335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11337 cat >conftest.$ac_ext <<_ACEOF 11338 /* confdefs.h. */ 11339 _ACEOF 11340 cat confdefs.h >>conftest.$ac_ext 11341 cat >>conftest.$ac_ext <<_ACEOF 11342 /* end confdefs.h. */ 11343 #include <$ac_header> 11344 _ACEOF 11345 if { (ac_try="$ac_cpp conftest.$ac_ext" 11346 case "(($ac_try" in 11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11348 *) ac_try_echo=$ac_try;; 11349 esac 11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11352 ac_status=$? 11353 grep -v '^ *+' conftest.er1 >conftest.err 11354 rm -f conftest.er1 11355 cat conftest.err >&5 11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11357 (exit $ac_status); } >/dev/null; then 11358 if test -s conftest.err; then 11359 ac_cpp_err=$ac_c_preproc_warn_flag 11360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11361 else 11362 ac_cpp_err= 11363 fi 11364 else 11365 ac_cpp_err=yes 11366 fi 11367 if test -z "$ac_cpp_err"; then 11368 ac_header_preproc=yes 11369 else 11370 echo "$as_me: failed program was:" >&5 11371 sed 's/^/| /' conftest.$ac_ext >&5 11372 11373 ac_header_preproc=no 11374 fi 11375 11376 rm -f conftest.err conftest.$ac_ext 11377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11378 echo "${ECHO_T}$ac_header_preproc" >&6; } 11379 11380 # So? What about this header? 11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11382 yes:no: ) 11383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11387 ac_header_preproc=yes 11388 ;; 11389 no:yes:* ) 11390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11402 ( cat <<\_ASBOX 11403 ## ------------------------------------ ## 11404 ## Report this to http://llvm.org/bugs/ ## 11405 ## ------------------------------------ ## 11406 _ASBOX 11407 ) | sed "s/^/$as_me: WARNING: /" >&2 11408 ;; 11409 esac 11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11413 echo $ECHO_N "(cached) $ECHO_C" >&6 11414 else 11415 eval "$as_ac_Header=\$ac_header_preproc" 11416 fi 11417 ac_res=`eval echo '${'$as_ac_Header'}'` 11418 { echo "$as_me:$LINENO: result: $ac_res" >&5 11419 echo "${ECHO_T}$ac_res" >&6; } 11420 11421 fi 11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11423 cat >>confdefs.h <<_ACEOF 11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11425 _ACEOF 11426 11427 fi 11428 11429 done 11430 11431 11432 11433 for ac_header in string.h strings.h 11434 do 11435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11437 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11440 echo $ECHO_N "(cached) $ECHO_C" >&6 11441 fi 11442 ac_res=`eval echo '${'$as_ac_Header'}'` 11443 { echo "$as_me:$LINENO: result: $ac_res" >&5 11444 echo "${ECHO_T}$ac_res" >&6; } 11445 else 11446 # Is the header compilable? 11447 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11449 cat >conftest.$ac_ext <<_ACEOF 11450 /* confdefs.h. */ 11451 _ACEOF 11452 cat confdefs.h >>conftest.$ac_ext 11453 cat >>conftest.$ac_ext <<_ACEOF 11454 /* end confdefs.h. */ 11455 $ac_includes_default 11456 #include <$ac_header> 11457 _ACEOF 11458 rm -f conftest.$ac_objext 11459 if { (ac_try="$ac_compile" 11460 case "(($ac_try" in 11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11462 *) ac_try_echo=$ac_try;; 11463 esac 11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11465 (eval "$ac_compile") 2>conftest.er1 11466 ac_status=$? 11467 grep -v '^ *+' conftest.er1 >conftest.err 11468 rm -f conftest.er1 11469 cat conftest.err >&5 11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11471 (exit $ac_status); } && 11472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11473 { (case "(($ac_try" in 11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11475 *) ac_try_echo=$ac_try;; 11476 esac 11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11478 (eval "$ac_try") 2>&5 11479 ac_status=$? 11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11481 (exit $ac_status); }; } && 11482 { ac_try='test -s conftest.$ac_objext' 11483 { (case "(($ac_try" in 11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11485 *) ac_try_echo=$ac_try;; 11486 esac 11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11488 (eval "$ac_try") 2>&5 11489 ac_status=$? 11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11491 (exit $ac_status); }; }; then 11492 ac_header_compiler=yes 11493 else 11494 echo "$as_me: failed program was:" >&5 11495 sed 's/^/| /' conftest.$ac_ext >&5 11496 11497 ac_header_compiler=no 11498 fi 11499 11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11502 echo "${ECHO_T}$ac_header_compiler" >&6; } 11503 11504 # Is the header present? 11505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11507 cat >conftest.$ac_ext <<_ACEOF 11508 /* confdefs.h. */ 11509 _ACEOF 11510 cat confdefs.h >>conftest.$ac_ext 11511 cat >>conftest.$ac_ext <<_ACEOF 11512 /* end confdefs.h. */ 11513 #include <$ac_header> 11514 _ACEOF 11515 if { (ac_try="$ac_cpp conftest.$ac_ext" 11516 case "(($ac_try" in 11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11518 *) ac_try_echo=$ac_try;; 11519 esac 11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11522 ac_status=$? 11523 grep -v '^ *+' conftest.er1 >conftest.err 11524 rm -f conftest.er1 11525 cat conftest.err >&5 11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11527 (exit $ac_status); } >/dev/null; then 11528 if test -s conftest.err; then 11529 ac_cpp_err=$ac_c_preproc_warn_flag 11530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11531 else 11532 ac_cpp_err= 11533 fi 11534 else 11535 ac_cpp_err=yes 11536 fi 11537 if test -z "$ac_cpp_err"; then 11538 ac_header_preproc=yes 11539 else 11540 echo "$as_me: failed program was:" >&5 11541 sed 's/^/| /' conftest.$ac_ext >&5 11542 11543 ac_header_preproc=no 11544 fi 11545 11546 rm -f conftest.err conftest.$ac_ext 11547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11548 echo "${ECHO_T}$ac_header_preproc" >&6; } 11549 11550 # So? What about this header? 11551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11552 yes:no: ) 11553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11557 ac_header_preproc=yes 11558 ;; 11559 no:yes:* ) 11560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11572 ( cat <<\_ASBOX 11573 ## ------------------------------------ ## 11574 ## Report this to http://llvm.org/bugs/ ## 11575 ## ------------------------------------ ## 11576 _ASBOX 11577 ) | sed "s/^/$as_me: WARNING: /" >&2 11578 ;; 11579 esac 11580 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11583 echo $ECHO_N "(cached) $ECHO_C" >&6 11584 else 11585 eval "$as_ac_Header=\$ac_header_preproc" 11586 fi 11587 ac_res=`eval echo '${'$as_ac_Header'}'` 11588 { echo "$as_me:$LINENO: result: $ac_res" >&5 11589 echo "${ECHO_T}$ac_res" >&6; } 11590 11591 fi 11592 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11593 cat >>confdefs.h <<_ACEOF 11594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11595 _ACEOF 11596 break 11597 fi 11598 11599 done 11600 11601 11602 11603 11604 for ac_func in strchr index 11605 do 11606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11607 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11610 echo $ECHO_N "(cached) $ECHO_C" >&6 11611 else 11612 cat >conftest.$ac_ext <<_ACEOF 11613 /* confdefs.h. */ 11614 _ACEOF 11615 cat confdefs.h >>conftest.$ac_ext 11616 cat >>conftest.$ac_ext <<_ACEOF 11617 /* end confdefs.h. */ 11618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11619 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11620 #define $ac_func innocuous_$ac_func 11621 11622 /* System header to define __stub macros and hopefully few prototypes, 11623 which can conflict with char $ac_func (); below. 11624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11625 <limits.h> exists even on freestanding compilers. */ 11626 11627 #ifdef __STDC__ 11628 # include <limits.h> 11629 #else 11630 # include <assert.h> 11631 #endif 11632 11633 #undef $ac_func 11634 11635 /* Override any GCC internal prototype to avoid an error. 11636 Use char because int might match the return type of a GCC 11637 builtin and then its argument prototype would still apply. */ 11638 #ifdef __cplusplus 11639 extern "C" 11640 #endif 11641 char $ac_func (); 11642 /* The GNU C library defines this for functions which it implements 11643 to always fail with ENOSYS. Some functions are actually named 11644 something starting with __ and the normal name is an alias. */ 11645 #if defined __stub_$ac_func || defined __stub___$ac_func 11646 choke me 11647 #endif 11648 11649 int 11650 main () 11651 { 11652 return $ac_func (); 11653 ; 11654 return 0; 11655 } 11656 _ACEOF 11657 rm -f conftest.$ac_objext conftest$ac_exeext 11658 if { (ac_try="$ac_link" 11659 case "(($ac_try" in 11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11661 *) ac_try_echo=$ac_try;; 11662 esac 11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11664 (eval "$ac_link") 2>conftest.er1 11665 ac_status=$? 11666 grep -v '^ *+' conftest.er1 >conftest.err 11667 rm -f conftest.er1 11668 cat conftest.err >&5 11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11670 (exit $ac_status); } && 11671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11672 { (case "(($ac_try" in 11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11674 *) ac_try_echo=$ac_try;; 11675 esac 11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11677 (eval "$ac_try") 2>&5 11678 ac_status=$? 11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11680 (exit $ac_status); }; } && 11681 { ac_try='test -s conftest$ac_exeext' 11682 { (case "(($ac_try" in 11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11684 *) ac_try_echo=$ac_try;; 11685 esac 11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11687 (eval "$ac_try") 2>&5 11688 ac_status=$? 11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11690 (exit $ac_status); }; }; then 11691 eval "$as_ac_var=yes" 11692 else 11693 echo "$as_me: failed program was:" >&5 11694 sed 's/^/| /' conftest.$ac_ext >&5 11695 11696 eval "$as_ac_var=no" 11697 fi 11698 11699 rm -f core conftest.err conftest.$ac_objext \ 11700 conftest$ac_exeext conftest.$ac_ext 11701 fi 11702 ac_res=`eval echo '${'$as_ac_var'}'` 11703 { echo "$as_me:$LINENO: result: $ac_res" >&5 11704 echo "${ECHO_T}$ac_res" >&6; } 11705 if test `eval echo '${'$as_ac_var'}'` = yes; then 11706 cat >>confdefs.h <<_ACEOF 11707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11708 _ACEOF 11709 break 11710 fi 11711 done 11712 11713 11714 11715 for ac_func in strrchr rindex 11716 do 11717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11718 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11721 echo $ECHO_N "(cached) $ECHO_C" >&6 11722 else 11723 cat >conftest.$ac_ext <<_ACEOF 11724 /* confdefs.h. */ 11725 _ACEOF 11726 cat confdefs.h >>conftest.$ac_ext 11727 cat >>conftest.$ac_ext <<_ACEOF 11728 /* end confdefs.h. */ 11729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11731 #define $ac_func innocuous_$ac_func 11732 11733 /* System header to define __stub macros and hopefully few prototypes, 11734 which can conflict with char $ac_func (); below. 11735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11736 <limits.h> exists even on freestanding compilers. */ 11737 11738 #ifdef __STDC__ 11739 # include <limits.h> 11740 #else 11741 # include <assert.h> 11742 #endif 11743 11744 #undef $ac_func 11745 11746 /* Override any GCC internal prototype to avoid an error. 11747 Use char because int might match the return type of a GCC 11748 builtin and then its argument prototype would still apply. */ 11749 #ifdef __cplusplus 11750 extern "C" 11751 #endif 11752 char $ac_func (); 11753 /* The GNU C library defines this for functions which it implements 11754 to always fail with ENOSYS. Some functions are actually named 11755 something starting with __ and the normal name is an alias. */ 11756 #if defined __stub_$ac_func || defined __stub___$ac_func 11757 choke me 11758 #endif 11759 11760 int 11761 main () 11762 { 11763 return $ac_func (); 11764 ; 11765 return 0; 11766 } 11767 _ACEOF 11768 rm -f conftest.$ac_objext conftest$ac_exeext 11769 if { (ac_try="$ac_link" 11770 case "(($ac_try" in 11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11772 *) ac_try_echo=$ac_try;; 11773 esac 11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11775 (eval "$ac_link") 2>conftest.er1 11776 ac_status=$? 11777 grep -v '^ *+' conftest.er1 >conftest.err 11778 rm -f conftest.er1 11779 cat conftest.err >&5 11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11781 (exit $ac_status); } && 11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11783 { (case "(($ac_try" in 11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11785 *) ac_try_echo=$ac_try;; 11786 esac 11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11788 (eval "$ac_try") 2>&5 11789 ac_status=$? 11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11791 (exit $ac_status); }; } && 11792 { ac_try='test -s conftest$ac_exeext' 11793 { (case "(($ac_try" in 11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11795 *) ac_try_echo=$ac_try;; 11796 esac 11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11798 (eval "$ac_try") 2>&5 11799 ac_status=$? 11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11801 (exit $ac_status); }; }; then 11802 eval "$as_ac_var=yes" 11803 else 11804 echo "$as_me: failed program was:" >&5 11805 sed 's/^/| /' conftest.$ac_ext >&5 11806 11807 eval "$as_ac_var=no" 11808 fi 11809 11810 rm -f core conftest.err conftest.$ac_objext \ 11811 conftest$ac_exeext conftest.$ac_ext 11812 fi 11813 ac_res=`eval echo '${'$as_ac_var'}'` 11814 { echo "$as_me:$LINENO: result: $ac_res" >&5 11815 echo "${ECHO_T}$ac_res" >&6; } 11816 if test `eval echo '${'$as_ac_var'}'` = yes; then 11817 cat >>confdefs.h <<_ACEOF 11818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11819 _ACEOF 11820 break 11821 fi 11822 done 11823 11824 11825 11826 for ac_func in memcpy bcopy 11827 do 11828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11829 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11832 echo $ECHO_N "(cached) $ECHO_C" >&6 11833 else 11834 cat >conftest.$ac_ext <<_ACEOF 11835 /* confdefs.h. */ 11836 _ACEOF 11837 cat confdefs.h >>conftest.$ac_ext 11838 cat >>conftest.$ac_ext <<_ACEOF 11839 /* end confdefs.h. */ 11840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11841 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11842 #define $ac_func innocuous_$ac_func 11843 11844 /* System header to define __stub macros and hopefully few prototypes, 11845 which can conflict with char $ac_func (); below. 11846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11847 <limits.h> exists even on freestanding compilers. */ 11848 11849 #ifdef __STDC__ 11850 # include <limits.h> 11851 #else 11852 # include <assert.h> 11853 #endif 11854 11855 #undef $ac_func 11856 11857 /* Override any GCC internal prototype to avoid an error. 11858 Use char because int might match the return type of a GCC 11859 builtin and then its argument prototype would still apply. */ 11860 #ifdef __cplusplus 11861 extern "C" 11862 #endif 11863 char $ac_func (); 11864 /* The GNU C library defines this for functions which it implements 11865 to always fail with ENOSYS. Some functions are actually named 11866 something starting with __ and the normal name is an alias. */ 11867 #if defined __stub_$ac_func || defined __stub___$ac_func 11868 choke me 11869 #endif 11870 11871 int 11872 main () 11873 { 11874 return $ac_func (); 11875 ; 11876 return 0; 11877 } 11878 _ACEOF 11879 rm -f conftest.$ac_objext conftest$ac_exeext 11880 if { (ac_try="$ac_link" 11881 case "(($ac_try" in 11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11883 *) ac_try_echo=$ac_try;; 11884 esac 11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11886 (eval "$ac_link") 2>conftest.er1 11887 ac_status=$? 11888 grep -v '^ *+' conftest.er1 >conftest.err 11889 rm -f conftest.er1 11890 cat conftest.err >&5 11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11892 (exit $ac_status); } && 11893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11894 { (case "(($ac_try" in 11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11896 *) ac_try_echo=$ac_try;; 11897 esac 11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11899 (eval "$ac_try") 2>&5 11900 ac_status=$? 11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11902 (exit $ac_status); }; } && 11903 { ac_try='test -s conftest$ac_exeext' 11904 { (case "(($ac_try" in 11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11906 *) ac_try_echo=$ac_try;; 11907 esac 11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11909 (eval "$ac_try") 2>&5 11910 ac_status=$? 11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11912 (exit $ac_status); }; }; then 11913 eval "$as_ac_var=yes" 11914 else 11915 echo "$as_me: failed program was:" >&5 11916 sed 's/^/| /' conftest.$ac_ext >&5 11917 11918 eval "$as_ac_var=no" 11919 fi 11920 11921 rm -f core conftest.err conftest.$ac_objext \ 11922 conftest$ac_exeext conftest.$ac_ext 11923 fi 11924 ac_res=`eval echo '${'$as_ac_var'}'` 11925 { echo "$as_me:$LINENO: result: $ac_res" >&5 11926 echo "${ECHO_T}$ac_res" >&6; } 11927 if test `eval echo '${'$as_ac_var'}'` = yes; then 11928 cat >>confdefs.h <<_ACEOF 11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11930 _ACEOF 11931 break 11932 fi 11933 done 11934 11935 11936 11937 for ac_func in memmove strcmp 11938 do 11939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11940 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11943 echo $ECHO_N "(cached) $ECHO_C" >&6 11944 else 11945 cat >conftest.$ac_ext <<_ACEOF 11946 /* confdefs.h. */ 11947 _ACEOF 11948 cat confdefs.h >>conftest.$ac_ext 11949 cat >>conftest.$ac_ext <<_ACEOF 11950 /* end confdefs.h. */ 11951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11953 #define $ac_func innocuous_$ac_func 11954 11955 /* System header to define __stub macros and hopefully few prototypes, 11956 which can conflict with char $ac_func (); below. 11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11958 <limits.h> exists even on freestanding compilers. */ 11959 11960 #ifdef __STDC__ 11961 # include <limits.h> 11962 #else 11963 # include <assert.h> 11964 #endif 11965 11966 #undef $ac_func 11967 11968 /* Override any GCC internal prototype to avoid an error. 11969 Use char because int might match the return type of a GCC 11970 builtin and then its argument prototype would still apply. */ 11971 #ifdef __cplusplus 11972 extern "C" 11973 #endif 11974 char $ac_func (); 11975 /* The GNU C library defines this for functions which it implements 11976 to always fail with ENOSYS. Some functions are actually named 11977 something starting with __ and the normal name is an alias. */ 11978 #if defined __stub_$ac_func || defined __stub___$ac_func 11979 choke me 11980 #endif 11981 11982 int 11983 main () 11984 { 11985 return $ac_func (); 11986 ; 11987 return 0; 11988 } 11989 _ACEOF 11990 rm -f conftest.$ac_objext conftest$ac_exeext 11991 if { (ac_try="$ac_link" 11992 case "(($ac_try" in 11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11994 *) ac_try_echo=$ac_try;; 11995 esac 11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11997 (eval "$ac_link") 2>conftest.er1 11998 ac_status=$? 11999 grep -v '^ *+' conftest.er1 >conftest.err 12000 rm -f conftest.er1 12001 cat conftest.err >&5 12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12003 (exit $ac_status); } && 12004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12005 { (case "(($ac_try" in 12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12007 *) ac_try_echo=$ac_try;; 12008 esac 12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12010 (eval "$ac_try") 2>&5 12011 ac_status=$? 12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12013 (exit $ac_status); }; } && 12014 { ac_try='test -s conftest$ac_exeext' 12015 { (case "(($ac_try" in 12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12017 *) ac_try_echo=$ac_try;; 12018 esac 12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12020 (eval "$ac_try") 2>&5 12021 ac_status=$? 12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12023 (exit $ac_status); }; }; then 12024 eval "$as_ac_var=yes" 12025 else 12026 echo "$as_me: failed program was:" >&5 12027 sed 's/^/| /' conftest.$ac_ext >&5 12028 12029 eval "$as_ac_var=no" 12030 fi 12031 12032 rm -f core conftest.err conftest.$ac_objext \ 12033 conftest$ac_exeext conftest.$ac_ext 12034 fi 12035 ac_res=`eval echo '${'$as_ac_var'}'` 12036 { echo "$as_me:$LINENO: result: $ac_res" >&5 12037 echo "${ECHO_T}$ac_res" >&6; } 12038 if test `eval echo '${'$as_ac_var'}'` = yes; then 12039 cat >>confdefs.h <<_ACEOF 12040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12041 _ACEOF 12042 12043 fi 12044 done 12045 12046 12047 12048 12049 for ac_func in closedir opendir readdir 12050 do 12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12052 { echo "$as_me:$LINENO: checking for $ac_func" >&5 12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12055 echo $ECHO_N "(cached) $ECHO_C" >&6 12056 else 12057 cat >conftest.$ac_ext <<_ACEOF 12058 /* confdefs.h. */ 12059 _ACEOF 12060 cat confdefs.h >>conftest.$ac_ext 12061 cat >>conftest.$ac_ext <<_ACEOF 12062 /* end confdefs.h. */ 12063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12064 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12065 #define $ac_func innocuous_$ac_func 12066 12067 /* System header to define __stub macros and hopefully few prototypes, 12068 which can conflict with char $ac_func (); below. 12069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12070 <limits.h> exists even on freestanding compilers. */ 12071 12072 #ifdef __STDC__ 12073 # include <limits.h> 12074 #else 12075 # include <assert.h> 12076 #endif 12077 12078 #undef $ac_func 12079 12080 /* Override any GCC internal prototype to avoid an error. 12081 Use char because int might match the return type of a GCC 12082 builtin and then its argument prototype would still apply. */ 12083 #ifdef __cplusplus 12084 extern "C" 12085 #endif 12086 char $ac_func (); 12087 /* The GNU C library defines this for functions which it implements 12088 to always fail with ENOSYS. Some functions are actually named 12089 something starting with __ and the normal name is an alias. */ 12090 #if defined __stub_$ac_func || defined __stub___$ac_func 12091 choke me 12092 #endif 12093 12094 int 12095 main () 12096 { 12097 return $ac_func (); 12098 ; 12099 return 0; 12100 } 12101 _ACEOF 12102 rm -f conftest.$ac_objext conftest$ac_exeext 12103 if { (ac_try="$ac_link" 12104 case "(($ac_try" in 12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12106 *) ac_try_echo=$ac_try;; 12107 esac 12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12109 (eval "$ac_link") 2>conftest.er1 12110 ac_status=$? 12111 grep -v '^ *+' conftest.er1 >conftest.err 12112 rm -f conftest.er1 12113 cat conftest.err >&5 12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12115 (exit $ac_status); } && 12116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12117 { (case "(($ac_try" in 12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12119 *) ac_try_echo=$ac_try;; 12120 esac 12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12122 (eval "$ac_try") 2>&5 12123 ac_status=$? 12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12125 (exit $ac_status); }; } && 12126 { ac_try='test -s conftest$ac_exeext' 12127 { (case "(($ac_try" in 12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12129 *) ac_try_echo=$ac_try;; 12130 esac 12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12132 (eval "$ac_try") 2>&5 12133 ac_status=$? 12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12135 (exit $ac_status); }; }; then 12136 eval "$as_ac_var=yes" 12137 else 12138 echo "$as_me: failed program was:" >&5 12139 sed 's/^/| /' conftest.$ac_ext >&5 12140 12141 eval "$as_ac_var=no" 12142 fi 12143 12144 rm -f core conftest.err conftest.$ac_objext \ 12145 conftest$ac_exeext conftest.$ac_ext 12146 fi 12147 ac_res=`eval echo '${'$as_ac_var'}'` 12148 { echo "$as_me:$LINENO: result: $ac_res" >&5 12149 echo "${ECHO_T}$ac_res" >&6; } 12150 if test `eval echo '${'$as_ac_var'}'` = yes; then 12151 cat >>confdefs.h <<_ACEOF 12152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12153 _ACEOF 12154 12155 fi 12156 done 12157 12158 12159 12160 { echo "$as_me:$LINENO: checking tool compatibility" >&5 12161 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 12162 12163 ICC=no 12164 IXX=no 12165 case $CC in 12166 icc*|icpc*) 12167 ICC=yes 12168 IXX=yes 12169 ;; 12170 *) 12171 ;; 12172 esac 12173 12174 if test "$GCC" != "yes" && test "$ICC" != "yes" 12175 then 12176 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 12177 echo "$as_me: error: gcc|icc required but not found" >&2;} 12178 { (exit 1); exit 1; }; } 12179 fi 12180 12181 if test "$GXX" != "yes" && test "$IXX" != "yes" 12182 then 12183 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 12184 echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 12185 { (exit 1); exit 1; }; } 12186 fi 12187 12188 if test "$GCC" = "yes" 12189 then 12190 cat >conftest.$ac_ext <<_ACEOF 12191 12192 /* confdefs.h. */ 12193 _ACEOF 12194 cat confdefs.h >>conftest.$ac_ext 12195 cat >>conftest.$ac_ext <<_ACEOF 12196 /* end confdefs.h. */ 12197 12198 #if !defined(__GNUC__) || __GNUC__ < 3 12199 #error Unsupported GCC version 12200 #endif 12201 12202 12203 _ACEOF 12204 rm -f conftest.$ac_objext 12205 if { (ac_try="$ac_compile" 12206 case "(($ac_try" in 12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12208 *) ac_try_echo=$ac_try;; 12209 esac 12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12211 (eval "$ac_compile") 2>conftest.er1 12212 ac_status=$? 12213 grep -v '^ *+' conftest.er1 >conftest.err 12214 rm -f conftest.er1 12215 cat conftest.err >&5 12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12217 (exit $ac_status); } && 12218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12219 { (case "(($ac_try" in 12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12221 *) ac_try_echo=$ac_try;; 12222 esac 12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12224 (eval "$ac_try") 2>&5 12225 ac_status=$? 12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12227 (exit $ac_status); }; } && 12228 { ac_try='test -s conftest.$ac_objext' 12229 { (case "(($ac_try" in 12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12231 *) ac_try_echo=$ac_try;; 12232 esac 12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12234 (eval "$ac_try") 2>&5 12235 ac_status=$? 12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12237 (exit $ac_status); }; }; then 12238 : 12239 else 12240 echo "$as_me: failed program was:" >&5 12241 sed 's/^/| /' conftest.$ac_ext >&5 12242 12243 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 12244 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 12245 { (exit 1); exit 1; }; } 12246 fi 12247 12248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12249 fi 12250 12251 if test -z "$llvm_cv_gnu_make_command" 12252 then 12253 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 12254 echo "$as_me: error: GNU Make required but not found" >&2;} 12255 { (exit 1); exit 1; }; } 12256 fi 12257 12258 { echo "$as_me:$LINENO: result: ok" >&5 12259 echo "${ECHO_T}ok" >&6; } 12260 12261 { echo "$as_me:$LINENO: checking optional compiler flags" >&5 12262 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 12263 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 12264 12265 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 12266 12267 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 12268 12269 12270 NO_UNINITIALIZED= 12271 NO_MAYBE_UNINITIALIZED= 12272 if test "$GXX" = "yes" 12273 then 12274 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized` 12275 12276 if test -z "$NO_MAYBE_UNINITIALIZED" 12277 then 12278 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized` 12279 12280 fi 12281 fi 12282 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5 12283 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; } 12284 12285 12286 # Check whether --with-python was given. 12287 if test "${with_python+set}" = set; then 12288 withval=$with_python; PYTHON="$withval" 12289 fi 12290 12291 12292 if test -n "$PYTHON" && test -x "$PYTHON" ; then 12293 { echo "$as_me:$LINENO: checking for python" >&5 12294 echo $ECHO_N "checking for python... $ECHO_C" >&6; } 12295 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5 12296 echo "${ECHO_T}user defined: $with_python" >&6; } 12297 else 12298 if test -n "$PYTHON" ; then 12299 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5 12300 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;} 12301 fi 12302 12303 # Extract the first word of "python python2 python26", so it can be a program name with args. 12304 set dummy python python2 python26; ac_word=$2 12305 { echo "$as_me:$LINENO: checking for $ac_word" >&5 12306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12307 if test "${ac_cv_path_PYTHON+set}" = set; then 12308 echo $ECHO_N "(cached) $ECHO_C" >&6 12309 else 12310 case $PYTHON in 12311 [\\/]* | ?:[\\/]*) 12312 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 12313 ;; 12314 *) 12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12316 for as_dir in $PATH 12317 do 12318 IFS=$as_save_IFS 12319 test -z "$as_dir" && as_dir=. 12320 for ac_exec_ext in '' $ac_executable_extensions; do 12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 12322 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 12323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12324 break 2 12325 fi 12326 done 12327 done 12328 IFS=$as_save_IFS 12329 12330 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5 12331 echo "${ECHO_T}not found" >&6; } 12332 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5 12333 echo "$as_me: error: could not find python 2.5 or higher" >&2;} 12334 { (exit 1); exit 1; }; }" 12335 ;; 12336 esac 12337 fi 12338 PYTHON=$ac_cv_path_PYTHON 12339 if test -n "$PYTHON"; then 12340 { echo "$as_me:$LINENO: result: $PYTHON" >&5 12341 echo "${ECHO_T}$PYTHON" >&6; } 12342 else 12343 { echo "$as_me:$LINENO: result: no" >&5 12344 echo "${ECHO_T}no" >&6; } 12345 fi 12346 12347 12348 fi 12349 12350 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5 12351 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; } 12352 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'` 12353 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1` 12354 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2` 12355 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3` 12356 if test "$ac_python_version_major" -eq "2" \ 12357 && test "$ac_python_version_minor" -ge "5" ; then 12358 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5 12359 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; } 12360 else 12361 { echo "$as_me:$LINENO: result: not found" >&5 12362 echo "${ECHO_T}not found" >&6; } 12363 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5 12364 See \`config.log' for more details." >&5 12365 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5 12366 See \`config.log' for more details." >&2;} 12367 { (exit 1); exit 1; }; } 12368 fi 12369 12370 12371 12372 { echo "$as_me:$LINENO: checking for sin in -lm" >&5 12373 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 12374 if test "${ac_cv_lib_m_sin+set}" = set; then 12375 echo $ECHO_N "(cached) $ECHO_C" >&6 12376 else 12377 ac_check_lib_save_LIBS=$LIBS 12378 LIBS="-lm $LIBS" 12379 cat >conftest.$ac_ext <<_ACEOF 12380 /* confdefs.h. */ 12381 _ACEOF 12382 cat confdefs.h >>conftest.$ac_ext 12383 cat >>conftest.$ac_ext <<_ACEOF 12384 /* end confdefs.h. */ 12385 12386 /* Override any GCC internal prototype to avoid an error. 12387 Use char because int might match the return type of a GCC 12388 builtin and then its argument prototype would still apply. */ 12389 #ifdef __cplusplus 12390 extern "C" 12391 #endif 12392 char sin (); 12393 int 12394 main () 12395 { 12396 return sin (); 12397 ; 12398 return 0; 12399 } 12400 _ACEOF 12401 rm -f conftest.$ac_objext conftest$ac_exeext 12402 if { (ac_try="$ac_link" 12403 case "(($ac_try" in 12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12405 *) ac_try_echo=$ac_try;; 12406 esac 12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12408 (eval "$ac_link") 2>conftest.er1 12409 ac_status=$? 12410 grep -v '^ *+' conftest.er1 >conftest.err 12411 rm -f conftest.er1 12412 cat conftest.err >&5 12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12414 (exit $ac_status); } && 12415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12416 { (case "(($ac_try" in 12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12418 *) ac_try_echo=$ac_try;; 12419 esac 12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12421 (eval "$ac_try") 2>&5 12422 ac_status=$? 12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12424 (exit $ac_status); }; } && 12425 { ac_try='test -s conftest$ac_exeext' 12426 { (case "(($ac_try" in 12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12428 *) ac_try_echo=$ac_try;; 12429 esac 12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12431 (eval "$ac_try") 2>&5 12432 ac_status=$? 12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12434 (exit $ac_status); }; }; then 12435 ac_cv_lib_m_sin=yes 12436 else 12437 echo "$as_me: failed program was:" >&5 12438 sed 's/^/| /' conftest.$ac_ext >&5 12439 12440 ac_cv_lib_m_sin=no 12441 fi 12442 12443 rm -f core conftest.err conftest.$ac_objext \ 12444 conftest$ac_exeext conftest.$ac_ext 12445 LIBS=$ac_check_lib_save_LIBS 12446 fi 12447 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 12448 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 12449 if test $ac_cv_lib_m_sin = yes; then 12450 cat >>confdefs.h <<_ACEOF 12451 #define HAVE_LIBM 1 12452 _ACEOF 12453 12454 LIBS="-lm $LIBS" 12455 12456 fi 12457 12458 if test "$llvm_cv_os_type" = "MingW" ; then 12459 12460 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 12461 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 12462 if test "${ac_cv_lib_imagehlp_main+set}" = set; then 12463 echo $ECHO_N "(cached) $ECHO_C" >&6 12464 else 12465 ac_check_lib_save_LIBS=$LIBS 12466 LIBS="-limagehlp $LIBS" 12467 cat >conftest.$ac_ext <<_ACEOF 12468 /* confdefs.h. */ 12469 _ACEOF 12470 cat confdefs.h >>conftest.$ac_ext 12471 cat >>conftest.$ac_ext <<_ACEOF 12472 /* end confdefs.h. */ 12473 12474 12475 int 12476 main () 12477 { 12478 return main (); 12479 ; 12480 return 0; 12481 } 12482 _ACEOF 12483 rm -f conftest.$ac_objext conftest$ac_exeext 12484 if { (ac_try="$ac_link" 12485 case "(($ac_try" in 12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12487 *) ac_try_echo=$ac_try;; 12488 esac 12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12490 (eval "$ac_link") 2>conftest.er1 12491 ac_status=$? 12492 grep -v '^ *+' conftest.er1 >conftest.err 12493 rm -f conftest.er1 12494 cat conftest.err >&5 12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12496 (exit $ac_status); } && 12497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12498 { (case "(($ac_try" in 12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12500 *) ac_try_echo=$ac_try;; 12501 esac 12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12503 (eval "$ac_try") 2>&5 12504 ac_status=$? 12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12506 (exit $ac_status); }; } && 12507 { ac_try='test -s conftest$ac_exeext' 12508 { (case "(($ac_try" in 12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12510 *) ac_try_echo=$ac_try;; 12511 esac 12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12513 (eval "$ac_try") 2>&5 12514 ac_status=$? 12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12516 (exit $ac_status); }; }; then 12517 ac_cv_lib_imagehlp_main=yes 12518 else 12519 echo "$as_me: failed program was:" >&5 12520 sed 's/^/| /' conftest.$ac_ext >&5 12521 12522 ac_cv_lib_imagehlp_main=no 12523 fi 12524 12525 rm -f core conftest.err conftest.$ac_objext \ 12526 conftest$ac_exeext conftest.$ac_ext 12527 LIBS=$ac_check_lib_save_LIBS 12528 fi 12529 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 12530 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 12531 if test $ac_cv_lib_imagehlp_main = yes; then 12532 cat >>confdefs.h <<_ACEOF 12533 #define HAVE_LIBIMAGEHLP 1 12534 _ACEOF 12535 12536 LIBS="-limagehlp $LIBS" 12537 12538 fi 12539 12540 12541 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 12542 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 12543 if test "${ac_cv_lib_psapi_main+set}" = set; then 12544 echo $ECHO_N "(cached) $ECHO_C" >&6 12545 else 12546 ac_check_lib_save_LIBS=$LIBS 12547 LIBS="-lpsapi $LIBS" 12548 cat >conftest.$ac_ext <<_ACEOF 12549 /* confdefs.h. */ 12550 _ACEOF 12551 cat confdefs.h >>conftest.$ac_ext 12552 cat >>conftest.$ac_ext <<_ACEOF 12553 /* end confdefs.h. */ 12554 12555 12556 int 12557 main () 12558 { 12559 return main (); 12560 ; 12561 return 0; 12562 } 12563 _ACEOF 12564 rm -f conftest.$ac_objext conftest$ac_exeext 12565 if { (ac_try="$ac_link" 12566 case "(($ac_try" in 12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12568 *) ac_try_echo=$ac_try;; 12569 esac 12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12571 (eval "$ac_link") 2>conftest.er1 12572 ac_status=$? 12573 grep -v '^ *+' conftest.er1 >conftest.err 12574 rm -f conftest.er1 12575 cat conftest.err >&5 12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12577 (exit $ac_status); } && 12578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12579 { (case "(($ac_try" in 12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12581 *) ac_try_echo=$ac_try;; 12582 esac 12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12584 (eval "$ac_try") 2>&5 12585 ac_status=$? 12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12587 (exit $ac_status); }; } && 12588 { ac_try='test -s conftest$ac_exeext' 12589 { (case "(($ac_try" in 12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12591 *) ac_try_echo=$ac_try;; 12592 esac 12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12594 (eval "$ac_try") 2>&5 12595 ac_status=$? 12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12597 (exit $ac_status); }; }; then 12598 ac_cv_lib_psapi_main=yes 12599 else 12600 echo "$as_me: failed program was:" >&5 12601 sed 's/^/| /' conftest.$ac_ext >&5 12602 12603 ac_cv_lib_psapi_main=no 12604 fi 12605 12606 rm -f core conftest.err conftest.$ac_objext \ 12607 conftest$ac_exeext conftest.$ac_ext 12608 LIBS=$ac_check_lib_save_LIBS 12609 fi 12610 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12611 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12612 if test $ac_cv_lib_psapi_main = yes; then 12613 cat >>confdefs.h <<_ACEOF 12614 #define HAVE_LIBPSAPI 1 12615 _ACEOF 12616 12617 LIBS="-lpsapi $LIBS" 12618 12619 fi 12620 12621 fi 12622 12623 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12624 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12625 if test "${ac_cv_search_dlopen+set}" = set; then 12626 echo $ECHO_N "(cached) $ECHO_C" >&6 12627 else 12628 ac_func_search_save_LIBS=$LIBS 12629 cat >conftest.$ac_ext <<_ACEOF 12630 /* confdefs.h. */ 12631 _ACEOF 12632 cat confdefs.h >>conftest.$ac_ext 12633 cat >>conftest.$ac_ext <<_ACEOF 12634 /* end confdefs.h. */ 12635 12636 /* Override any GCC internal prototype to avoid an error. 12637 Use char because int might match the return type of a GCC 12638 builtin and then its argument prototype would still apply. */ 12639 #ifdef __cplusplus 12640 extern "C" 12641 #endif 12642 char dlopen (); 12643 int 12644 main () 12645 { 12646 return dlopen (); 12647 ; 12648 return 0; 12649 } 12650 _ACEOF 12651 for ac_lib in '' dl; do 12652 if test -z "$ac_lib"; then 12653 ac_res="none required" 12654 else 12655 ac_res=-l$ac_lib 12656 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12657 fi 12658 rm -f conftest.$ac_objext conftest$ac_exeext 12659 if { (ac_try="$ac_link" 12660 case "(($ac_try" in 12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12662 *) ac_try_echo=$ac_try;; 12663 esac 12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12665 (eval "$ac_link") 2>conftest.er1 12666 ac_status=$? 12667 grep -v '^ *+' conftest.er1 >conftest.err 12668 rm -f conftest.er1 12669 cat conftest.err >&5 12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12671 (exit $ac_status); } && 12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12673 { (case "(($ac_try" in 12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12675 *) ac_try_echo=$ac_try;; 12676 esac 12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12678 (eval "$ac_try") 2>&5 12679 ac_status=$? 12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12681 (exit $ac_status); }; } && 12682 { ac_try='test -s conftest$ac_exeext' 12683 { (case "(($ac_try" in 12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12685 *) ac_try_echo=$ac_try;; 12686 esac 12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12688 (eval "$ac_try") 2>&5 12689 ac_status=$? 12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12691 (exit $ac_status); }; }; then 12692 ac_cv_search_dlopen=$ac_res 12693 else 12694 echo "$as_me: failed program was:" >&5 12695 sed 's/^/| /' conftest.$ac_ext >&5 12696 12697 12698 fi 12699 12700 rm -f core conftest.err conftest.$ac_objext \ 12701 conftest$ac_exeext 12702 if test "${ac_cv_search_dlopen+set}" = set; then 12703 break 12704 fi 12705 done 12706 if test "${ac_cv_search_dlopen+set}" = set; then 12707 : 12708 else 12709 ac_cv_search_dlopen=no 12710 fi 12711 rm conftest.$ac_ext 12712 LIBS=$ac_func_search_save_LIBS 12713 fi 12714 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12715 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12716 ac_res=$ac_cv_search_dlopen 12717 if test "$ac_res" != no; then 12718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12719 12720 cat >>confdefs.h <<\_ACEOF 12721 #define HAVE_DLOPEN 1 12722 _ACEOF 12723 12724 else 12725 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12726 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12727 fi 12728 12729 12730 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 12731 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } 12732 if test "${ac_cv_search_clock_gettime+set}" = set; then 12733 echo $ECHO_N "(cached) $ECHO_C" >&6 12734 else 12735 ac_func_search_save_LIBS=$LIBS 12736 cat >conftest.$ac_ext <<_ACEOF 12737 /* confdefs.h. */ 12738 _ACEOF 12739 cat confdefs.h >>conftest.$ac_ext 12740 cat >>conftest.$ac_ext <<_ACEOF 12741 /* end confdefs.h. */ 12742 12743 /* Override any GCC internal prototype to avoid an error. 12744 Use char because int might match the return type of a GCC 12745 builtin and then its argument prototype would still apply. */ 12746 #ifdef __cplusplus 12747 extern "C" 12748 #endif 12749 char clock_gettime (); 12750 int 12751 main () 12752 { 12753 return clock_gettime (); 12754 ; 12755 return 0; 12756 } 12757 _ACEOF 12758 for ac_lib in '' rt; do 12759 if test -z "$ac_lib"; then 12760 ac_res="none required" 12761 else 12762 ac_res=-l$ac_lib 12763 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12764 fi 12765 rm -f conftest.$ac_objext conftest$ac_exeext 12766 if { (ac_try="$ac_link" 12767 case "(($ac_try" in 12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12769 *) ac_try_echo=$ac_try;; 12770 esac 12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12772 (eval "$ac_link") 2>conftest.er1 12773 ac_status=$? 12774 grep -v '^ *+' conftest.er1 >conftest.err 12775 rm -f conftest.er1 12776 cat conftest.err >&5 12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12778 (exit $ac_status); } && 12779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12780 { (case "(($ac_try" in 12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12782 *) ac_try_echo=$ac_try;; 12783 esac 12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12785 (eval "$ac_try") 2>&5 12786 ac_status=$? 12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12788 (exit $ac_status); }; } && 12789 { ac_try='test -s conftest$ac_exeext' 12790 { (case "(($ac_try" in 12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12792 *) ac_try_echo=$ac_try;; 12793 esac 12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12795 (eval "$ac_try") 2>&5 12796 ac_status=$? 12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12798 (exit $ac_status); }; }; then 12799 ac_cv_search_clock_gettime=$ac_res 12800 else 12801 echo "$as_me: failed program was:" >&5 12802 sed 's/^/| /' conftest.$ac_ext >&5 12803 12804 12805 fi 12806 12807 rm -f core conftest.err conftest.$ac_objext \ 12808 conftest$ac_exeext 12809 if test "${ac_cv_search_clock_gettime+set}" = set; then 12810 break 12811 fi 12812 done 12813 if test "${ac_cv_search_clock_gettime+set}" = set; then 12814 : 12815 else 12816 ac_cv_search_clock_gettime=no 12817 fi 12818 rm conftest.$ac_ext 12819 LIBS=$ac_func_search_save_LIBS 12820 fi 12821 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 12822 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } 12823 ac_res=$ac_cv_search_clock_gettime 12824 if test "$ac_res" != no; then 12825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12826 12827 fi 12828 12829 12830 if test "$llvm_cv_enable_libffi" = "yes" ; then 12831 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12832 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12833 if test "${ac_cv_search_ffi_call+set}" = set; then 12834 echo $ECHO_N "(cached) $ECHO_C" >&6 12835 else 12836 ac_func_search_save_LIBS=$LIBS 12837 cat >conftest.$ac_ext <<_ACEOF 12838 /* confdefs.h. */ 12839 _ACEOF 12840 cat confdefs.h >>conftest.$ac_ext 12841 cat >>conftest.$ac_ext <<_ACEOF 12842 /* end confdefs.h. */ 12843 12844 /* Override any GCC internal prototype to avoid an error. 12845 Use char because int might match the return type of a GCC 12846 builtin and then its argument prototype would still apply. */ 12847 #ifdef __cplusplus 12848 extern "C" 12849 #endif 12850 char ffi_call (); 12851 int 12852 main () 12853 { 12854 return ffi_call (); 12855 ; 12856 return 0; 12857 } 12858 _ACEOF 12859 for ac_lib in '' ffi; do 12860 if test -z "$ac_lib"; then 12861 ac_res="none required" 12862 else 12863 ac_res=-l$ac_lib 12864 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12865 fi 12866 rm -f conftest.$ac_objext conftest$ac_exeext 12867 if { (ac_try="$ac_link" 12868 case "(($ac_try" in 12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12870 *) ac_try_echo=$ac_try;; 12871 esac 12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12873 (eval "$ac_link") 2>conftest.er1 12874 ac_status=$? 12875 grep -v '^ *+' conftest.er1 >conftest.err 12876 rm -f conftest.er1 12877 cat conftest.err >&5 12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12879 (exit $ac_status); } && 12880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12881 { (case "(($ac_try" in 12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12883 *) ac_try_echo=$ac_try;; 12884 esac 12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12886 (eval "$ac_try") 2>&5 12887 ac_status=$? 12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12889 (exit $ac_status); }; } && 12890 { ac_try='test -s conftest$ac_exeext' 12891 { (case "(($ac_try" in 12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12893 *) ac_try_echo=$ac_try;; 12894 esac 12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12896 (eval "$ac_try") 2>&5 12897 ac_status=$? 12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12899 (exit $ac_status); }; }; then 12900 ac_cv_search_ffi_call=$ac_res 12901 else 12902 echo "$as_me: failed program was:" >&5 12903 sed 's/^/| /' conftest.$ac_ext >&5 12904 12905 12906 fi 12907 12908 rm -f core conftest.err conftest.$ac_objext \ 12909 conftest$ac_exeext 12910 if test "${ac_cv_search_ffi_call+set}" = set; then 12911 break 12912 fi 12913 done 12914 if test "${ac_cv_search_ffi_call+set}" = set; then 12915 : 12916 else 12917 ac_cv_search_ffi_call=no 12918 fi 12919 rm conftest.$ac_ext 12920 LIBS=$ac_func_search_save_LIBS 12921 fi 12922 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12923 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12924 ac_res=$ac_cv_search_ffi_call 12925 if test "$ac_res" != no; then 12926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12927 12928 cat >>confdefs.h <<\_ACEOF 12929 #define HAVE_FFI_CALL 1 12930 _ACEOF 12931 12932 else 12933 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12934 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12935 { (exit 1); exit 1; }; } 12936 fi 12937 12938 fi 12939 12940 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12941 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12942 if test "${ac_cv_search_mallinfo+set}" = set; then 12943 echo $ECHO_N "(cached) $ECHO_C" >&6 12944 else 12945 ac_func_search_save_LIBS=$LIBS 12946 cat >conftest.$ac_ext <<_ACEOF 12947 /* confdefs.h. */ 12948 _ACEOF 12949 cat confdefs.h >>conftest.$ac_ext 12950 cat >>conftest.$ac_ext <<_ACEOF 12951 /* end confdefs.h. */ 12952 12953 /* Override any GCC internal prototype to avoid an error. 12954 Use char because int might match the return type of a GCC 12955 builtin and then its argument prototype would still apply. */ 12956 #ifdef __cplusplus 12957 extern "C" 12958 #endif 12959 char mallinfo (); 12960 int 12961 main () 12962 { 12963 return mallinfo (); 12964 ; 12965 return 0; 12966 } 12967 _ACEOF 12968 for ac_lib in '' malloc; do 12969 if test -z "$ac_lib"; then 12970 ac_res="none required" 12971 else 12972 ac_res=-l$ac_lib 12973 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12974 fi 12975 rm -f conftest.$ac_objext conftest$ac_exeext 12976 if { (ac_try="$ac_link" 12977 case "(($ac_try" in 12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12979 *) ac_try_echo=$ac_try;; 12980 esac 12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12982 (eval "$ac_link") 2>conftest.er1 12983 ac_status=$? 12984 grep -v '^ *+' conftest.er1 >conftest.err 12985 rm -f conftest.er1 12986 cat conftest.err >&5 12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12988 (exit $ac_status); } && 12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12990 { (case "(($ac_try" in 12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12992 *) ac_try_echo=$ac_try;; 12993 esac 12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12995 (eval "$ac_try") 2>&5 12996 ac_status=$? 12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12998 (exit $ac_status); }; } && 12999 { ac_try='test -s conftest$ac_exeext' 13000 { (case "(($ac_try" in 13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13002 *) ac_try_echo=$ac_try;; 13003 esac 13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13005 (eval "$ac_try") 2>&5 13006 ac_status=$? 13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13008 (exit $ac_status); }; }; then 13009 ac_cv_search_mallinfo=$ac_res 13010 else 13011 echo "$as_me: failed program was:" >&5 13012 sed 's/^/| /' conftest.$ac_ext >&5 13013 13014 13015 fi 13016 13017 rm -f core conftest.err conftest.$ac_objext \ 13018 conftest$ac_exeext 13019 if test "${ac_cv_search_mallinfo+set}" = set; then 13020 break 13021 fi 13022 done 13023 if test "${ac_cv_search_mallinfo+set}" = set; then 13024 : 13025 else 13026 ac_cv_search_mallinfo=no 13027 fi 13028 rm conftest.$ac_ext 13029 LIBS=$ac_func_search_save_LIBS 13030 fi 13031 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 13032 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 13033 ac_res=$ac_cv_search_mallinfo 13034 if test "$ac_res" != no; then 13035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13036 13037 cat >>confdefs.h <<\_ACEOF 13038 #define HAVE_MALLINFO 1 13039 _ACEOF 13040 13041 fi 13042 13043 13044 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 13045 13046 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 13047 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 13048 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 13049 echo $ECHO_N "(cached) $ECHO_C" >&6 13050 else 13051 ac_check_lib_save_LIBS=$LIBS 13052 LIBS="-lpthread $LIBS" 13053 cat >conftest.$ac_ext <<_ACEOF 13054 /* confdefs.h. */ 13055 _ACEOF 13056 cat confdefs.h >>conftest.$ac_ext 13057 cat >>conftest.$ac_ext <<_ACEOF 13058 /* end confdefs.h. */ 13059 13060 /* Override any GCC internal prototype to avoid an error. 13061 Use char because int might match the return type of a GCC 13062 builtin and then its argument prototype would still apply. */ 13063 #ifdef __cplusplus 13064 extern "C" 13065 #endif 13066 char pthread_mutex_init (); 13067 int 13068 main () 13069 { 13070 return pthread_mutex_init (); 13071 ; 13072 return 0; 13073 } 13074 _ACEOF 13075 rm -f conftest.$ac_objext conftest$ac_exeext 13076 if { (ac_try="$ac_link" 13077 case "(($ac_try" in 13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13079 *) ac_try_echo=$ac_try;; 13080 esac 13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13082 (eval "$ac_link") 2>conftest.er1 13083 ac_status=$? 13084 grep -v '^ *+' conftest.er1 >conftest.err 13085 rm -f conftest.er1 13086 cat conftest.err >&5 13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13088 (exit $ac_status); } && 13089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13090 { (case "(($ac_try" in 13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13092 *) ac_try_echo=$ac_try;; 13093 esac 13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13095 (eval "$ac_try") 2>&5 13096 ac_status=$? 13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13098 (exit $ac_status); }; } && 13099 { ac_try='test -s conftest$ac_exeext' 13100 { (case "(($ac_try" in 13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13102 *) ac_try_echo=$ac_try;; 13103 esac 13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13105 (eval "$ac_try") 2>&5 13106 ac_status=$? 13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13108 (exit $ac_status); }; }; then 13109 ac_cv_lib_pthread_pthread_mutex_init=yes 13110 else 13111 echo "$as_me: failed program was:" >&5 13112 sed 's/^/| /' conftest.$ac_ext >&5 13113 13114 ac_cv_lib_pthread_pthread_mutex_init=no 13115 fi 13116 13117 rm -f core conftest.err conftest.$ac_objext \ 13118 conftest$ac_exeext conftest.$ac_ext 13119 LIBS=$ac_check_lib_save_LIBS 13120 fi 13121 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 13122 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 13123 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 13124 cat >>confdefs.h <<_ACEOF 13125 #define HAVE_LIBPTHREAD 1 13126 _ACEOF 13127 13128 LIBS="-lpthread $LIBS" 13129 13130 fi 13131 13132 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 13133 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 13134 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13135 echo $ECHO_N "(cached) $ECHO_C" >&6 13136 else 13137 ac_func_search_save_LIBS=$LIBS 13138 cat >conftest.$ac_ext <<_ACEOF 13139 /* confdefs.h. */ 13140 _ACEOF 13141 cat confdefs.h >>conftest.$ac_ext 13142 cat >>conftest.$ac_ext <<_ACEOF 13143 /* end confdefs.h. */ 13144 13145 /* Override any GCC internal prototype to avoid an error. 13146 Use char because int might match the return type of a GCC 13147 builtin and then its argument prototype would still apply. */ 13148 #ifdef __cplusplus 13149 extern "C" 13150 #endif 13151 char pthread_mutex_lock (); 13152 int 13153 main () 13154 { 13155 return pthread_mutex_lock (); 13156 ; 13157 return 0; 13158 } 13159 _ACEOF 13160 for ac_lib in '' pthread; do 13161 if test -z "$ac_lib"; then 13162 ac_res="none required" 13163 else 13164 ac_res=-l$ac_lib 13165 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13166 fi 13167 rm -f conftest.$ac_objext conftest$ac_exeext 13168 if { (ac_try="$ac_link" 13169 case "(($ac_try" in 13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13171 *) ac_try_echo=$ac_try;; 13172 esac 13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13174 (eval "$ac_link") 2>conftest.er1 13175 ac_status=$? 13176 grep -v '^ *+' conftest.er1 >conftest.err 13177 rm -f conftest.er1 13178 cat conftest.err >&5 13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13180 (exit $ac_status); } && 13181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13182 { (case "(($ac_try" in 13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13184 *) ac_try_echo=$ac_try;; 13185 esac 13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13187 (eval "$ac_try") 2>&5 13188 ac_status=$? 13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13190 (exit $ac_status); }; } && 13191 { ac_try='test -s conftest$ac_exeext' 13192 { (case "(($ac_try" in 13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13194 *) ac_try_echo=$ac_try;; 13195 esac 13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13197 (eval "$ac_try") 2>&5 13198 ac_status=$? 13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13200 (exit $ac_status); }; }; then 13201 ac_cv_search_pthread_mutex_lock=$ac_res 13202 else 13203 echo "$as_me: failed program was:" >&5 13204 sed 's/^/| /' conftest.$ac_ext >&5 13205 13206 13207 fi 13208 13209 rm -f core conftest.err conftest.$ac_objext \ 13210 conftest$ac_exeext 13211 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13212 break 13213 fi 13214 done 13215 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13216 : 13217 else 13218 ac_cv_search_pthread_mutex_lock=no 13219 fi 13220 rm conftest.$ac_ext 13221 LIBS=$ac_func_search_save_LIBS 13222 fi 13223 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 13224 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 13225 ac_res=$ac_cv_search_pthread_mutex_lock 13226 if test "$ac_res" != no; then 13227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13228 13229 cat >>confdefs.h <<\_ACEOF 13230 #define HAVE_PTHREAD_MUTEX_LOCK 1 13231 _ACEOF 13232 13233 fi 13234 13235 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 13236 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 13237 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13238 echo $ECHO_N "(cached) $ECHO_C" >&6 13239 else 13240 ac_func_search_save_LIBS=$LIBS 13241 cat >conftest.$ac_ext <<_ACEOF 13242 /* confdefs.h. */ 13243 _ACEOF 13244 cat confdefs.h >>conftest.$ac_ext 13245 cat >>conftest.$ac_ext <<_ACEOF 13246 /* end confdefs.h. */ 13247 13248 /* Override any GCC internal prototype to avoid an error. 13249 Use char because int might match the return type of a GCC 13250 builtin and then its argument prototype would still apply. */ 13251 #ifdef __cplusplus 13252 extern "C" 13253 #endif 13254 char pthread_rwlock_init (); 13255 int 13256 main () 13257 { 13258 return pthread_rwlock_init (); 13259 ; 13260 return 0; 13261 } 13262 _ACEOF 13263 for ac_lib in '' pthread; do 13264 if test -z "$ac_lib"; then 13265 ac_res="none required" 13266 else 13267 ac_res=-l$ac_lib 13268 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13269 fi 13270 rm -f conftest.$ac_objext conftest$ac_exeext 13271 if { (ac_try="$ac_link" 13272 case "(($ac_try" in 13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13274 *) ac_try_echo=$ac_try;; 13275 esac 13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13277 (eval "$ac_link") 2>conftest.er1 13278 ac_status=$? 13279 grep -v '^ *+' conftest.er1 >conftest.err 13280 rm -f conftest.er1 13281 cat conftest.err >&5 13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13283 (exit $ac_status); } && 13284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13285 { (case "(($ac_try" in 13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13287 *) ac_try_echo=$ac_try;; 13288 esac 13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13290 (eval "$ac_try") 2>&5 13291 ac_status=$? 13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13293 (exit $ac_status); }; } && 13294 { ac_try='test -s conftest$ac_exeext' 13295 { (case "(($ac_try" in 13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13297 *) ac_try_echo=$ac_try;; 13298 esac 13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13300 (eval "$ac_try") 2>&5 13301 ac_status=$? 13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13303 (exit $ac_status); }; }; then 13304 ac_cv_search_pthread_rwlock_init=$ac_res 13305 else 13306 echo "$as_me: failed program was:" >&5 13307 sed 's/^/| /' conftest.$ac_ext >&5 13308 13309 13310 fi 13311 13312 rm -f core conftest.err conftest.$ac_objext \ 13313 conftest$ac_exeext 13314 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13315 break 13316 fi 13317 done 13318 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13319 : 13320 else 13321 ac_cv_search_pthread_rwlock_init=no 13322 fi 13323 rm conftest.$ac_ext 13324 LIBS=$ac_func_search_save_LIBS 13325 fi 13326 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 13327 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 13328 ac_res=$ac_cv_search_pthread_rwlock_init 13329 if test "$ac_res" != no; then 13330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13331 13332 cat >>confdefs.h <<\_ACEOF 13333 #define HAVE_PTHREAD_RWLOCK_INIT 1 13334 _ACEOF 13335 13336 fi 13337 13338 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 13339 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 13340 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13341 echo $ECHO_N "(cached) $ECHO_C" >&6 13342 else 13343 ac_func_search_save_LIBS=$LIBS 13344 cat >conftest.$ac_ext <<_ACEOF 13345 /* confdefs.h. */ 13346 _ACEOF 13347 cat confdefs.h >>conftest.$ac_ext 13348 cat >>conftest.$ac_ext <<_ACEOF 13349 /* end confdefs.h. */ 13350 13351 /* Override any GCC internal prototype to avoid an error. 13352 Use char because int might match the return type of a GCC 13353 builtin and then its argument prototype would still apply. */ 13354 #ifdef __cplusplus 13355 extern "C" 13356 #endif 13357 char pthread_getspecific (); 13358 int 13359 main () 13360 { 13361 return pthread_getspecific (); 13362 ; 13363 return 0; 13364 } 13365 _ACEOF 13366 for ac_lib in '' pthread; do 13367 if test -z "$ac_lib"; then 13368 ac_res="none required" 13369 else 13370 ac_res=-l$ac_lib 13371 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13372 fi 13373 rm -f conftest.$ac_objext conftest$ac_exeext 13374 if { (ac_try="$ac_link" 13375 case "(($ac_try" in 13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13377 *) ac_try_echo=$ac_try;; 13378 esac 13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13380 (eval "$ac_link") 2>conftest.er1 13381 ac_status=$? 13382 grep -v '^ *+' conftest.er1 >conftest.err 13383 rm -f conftest.er1 13384 cat conftest.err >&5 13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13386 (exit $ac_status); } && 13387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13388 { (case "(($ac_try" in 13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13390 *) ac_try_echo=$ac_try;; 13391 esac 13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13393 (eval "$ac_try") 2>&5 13394 ac_status=$? 13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13396 (exit $ac_status); }; } && 13397 { ac_try='test -s conftest$ac_exeext' 13398 { (case "(($ac_try" in 13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13400 *) ac_try_echo=$ac_try;; 13401 esac 13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13403 (eval "$ac_try") 2>&5 13404 ac_status=$? 13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13406 (exit $ac_status); }; }; then 13407 ac_cv_search_pthread_getspecific=$ac_res 13408 else 13409 echo "$as_me: failed program was:" >&5 13410 sed 's/^/| /' conftest.$ac_ext >&5 13411 13412 13413 fi 13414 13415 rm -f core conftest.err conftest.$ac_objext \ 13416 conftest$ac_exeext 13417 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13418 break 13419 fi 13420 done 13421 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13422 : 13423 else 13424 ac_cv_search_pthread_getspecific=no 13425 fi 13426 rm conftest.$ac_ext 13427 LIBS=$ac_func_search_save_LIBS 13428 fi 13429 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 13430 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 13431 ac_res=$ac_cv_search_pthread_getspecific 13432 if test "$ac_res" != no; then 13433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13434 13435 cat >>confdefs.h <<\_ACEOF 13436 #define HAVE_PTHREAD_GETSPECIFIC 1 13437 _ACEOF 13438 13439 fi 13440 13441 fi 13442 13443 13444 # Check whether --with-udis86 was given. 13445 if test "${with_udis86+set}" = set; then 13446 withval=$with_udis86; 13447 USE_UDIS86=1 13448 13449 case "$withval" in 13450 /usr/lib|yes) ;; 13451 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13452 esac 13453 13454 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 13455 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 13456 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 13457 echo $ECHO_N "(cached) $ECHO_C" >&6 13458 else 13459 ac_check_lib_save_LIBS=$LIBS 13460 LIBS="-ludis86 $LIBS" 13461 cat >conftest.$ac_ext <<_ACEOF 13462 /* confdefs.h. */ 13463 _ACEOF 13464 cat confdefs.h >>conftest.$ac_ext 13465 cat >>conftest.$ac_ext <<_ACEOF 13466 /* end confdefs.h. */ 13467 13468 /* Override any GCC internal prototype to avoid an error. 13469 Use char because int might match the return type of a GCC 13470 builtin and then its argument prototype would still apply. */ 13471 #ifdef __cplusplus 13472 extern "C" 13473 #endif 13474 char ud_init (); 13475 int 13476 main () 13477 { 13478 return ud_init (); 13479 ; 13480 return 0; 13481 } 13482 _ACEOF 13483 rm -f conftest.$ac_objext conftest$ac_exeext 13484 if { (ac_try="$ac_link" 13485 case "(($ac_try" in 13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13487 *) ac_try_echo=$ac_try;; 13488 esac 13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13490 (eval "$ac_link") 2>conftest.er1 13491 ac_status=$? 13492 grep -v '^ *+' conftest.er1 >conftest.err 13493 rm -f conftest.er1 13494 cat conftest.err >&5 13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13496 (exit $ac_status); } && 13497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13498 { (case "(($ac_try" in 13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13500 *) ac_try_echo=$ac_try;; 13501 esac 13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13503 (eval "$ac_try") 2>&5 13504 ac_status=$? 13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13506 (exit $ac_status); }; } && 13507 { ac_try='test -s conftest$ac_exeext' 13508 { (case "(($ac_try" in 13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13510 *) ac_try_echo=$ac_try;; 13511 esac 13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13513 (eval "$ac_try") 2>&5 13514 ac_status=$? 13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13516 (exit $ac_status); }; }; then 13517 ac_cv_lib_udis86_ud_init=yes 13518 else 13519 echo "$as_me: failed program was:" >&5 13520 sed 's/^/| /' conftest.$ac_ext >&5 13521 13522 ac_cv_lib_udis86_ud_init=no 13523 fi 13524 13525 rm -f core conftest.err conftest.$ac_objext \ 13526 conftest$ac_exeext conftest.$ac_ext 13527 LIBS=$ac_check_lib_save_LIBS 13528 fi 13529 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13530 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13531 if test $ac_cv_lib_udis86_ud_init = yes; then 13532 cat >>confdefs.h <<_ACEOF 13533 #define HAVE_LIBUDIS86 1 13534 _ACEOF 13535 13536 LIBS="-ludis86 $LIBS" 13537 13538 else 13539 13540 echo "Error! You need to have libudis86 around." 13541 exit -1 13542 13543 fi 13544 13545 13546 else 13547 USE_UDIS86=0 13548 13549 fi 13550 13551 13552 cat >>confdefs.h <<_ACEOF 13553 #define USE_UDIS86 $USE_UDIS86 13554 _ACEOF 13555 13556 13557 13558 # Check whether --with-oprofile was given. 13559 if test "${with_oprofile+set}" = set; then 13560 withval=$with_oprofile; 13561 USE_OPROFILE=1 13562 13563 case "$withval" in 13564 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13565 no) llvm_cv_oppath= 13566 USE_OPROFILE=0 13567 ;; 13568 *) llvm_cv_oppath="${withval}/lib/oprofile" 13569 CPPFLAGS="-I${withval}/include";; 13570 esac 13571 case $llvm_cv_os_type in 13572 Linux) 13573 if test -n "$llvm_cv_oppath" ; then 13574 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13575 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13576 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13577 if test "${ac_cv_search_bfd_init+set}" = set; then 13578 echo $ECHO_N "(cached) $ECHO_C" >&6 13579 else 13580 ac_func_search_save_LIBS=$LIBS 13581 cat >conftest.$ac_ext <<_ACEOF 13582 /* confdefs.h. */ 13583 _ACEOF 13584 cat confdefs.h >>conftest.$ac_ext 13585 cat >>conftest.$ac_ext <<_ACEOF 13586 /* end confdefs.h. */ 13587 13588 /* Override any GCC internal prototype to avoid an error. 13589 Use char because int might match the return type of a GCC 13590 builtin and then its argument prototype would still apply. */ 13591 #ifdef __cplusplus 13592 extern "C" 13593 #endif 13594 char bfd_init (); 13595 int 13596 main () 13597 { 13598 return bfd_init (); 13599 ; 13600 return 0; 13601 } 13602 _ACEOF 13603 for ac_lib in '' bfd; do 13604 if test -z "$ac_lib"; then 13605 ac_res="none required" 13606 else 13607 ac_res=-l$ac_lib 13608 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13609 fi 13610 rm -f conftest.$ac_objext conftest$ac_exeext 13611 if { (ac_try="$ac_link" 13612 case "(($ac_try" in 13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13614 *) ac_try_echo=$ac_try;; 13615 esac 13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13617 (eval "$ac_link") 2>conftest.er1 13618 ac_status=$? 13619 grep -v '^ *+' conftest.er1 >conftest.err 13620 rm -f conftest.er1 13621 cat conftest.err >&5 13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13623 (exit $ac_status); } && 13624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13625 { (case "(($ac_try" in 13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13627 *) ac_try_echo=$ac_try;; 13628 esac 13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13630 (eval "$ac_try") 2>&5 13631 ac_status=$? 13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13633 (exit $ac_status); }; } && 13634 { ac_try='test -s conftest$ac_exeext' 13635 { (case "(($ac_try" in 13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13637 *) ac_try_echo=$ac_try;; 13638 esac 13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13640 (eval "$ac_try") 2>&5 13641 ac_status=$? 13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13643 (exit $ac_status); }; }; then 13644 ac_cv_search_bfd_init=$ac_res 13645 else 13646 echo "$as_me: failed program was:" >&5 13647 sed 's/^/| /' conftest.$ac_ext >&5 13648 13649 13650 fi 13651 13652 rm -f core conftest.err conftest.$ac_objext \ 13653 conftest$ac_exeext 13654 if test "${ac_cv_search_bfd_init+set}" = set; then 13655 break 13656 fi 13657 done 13658 if test "${ac_cv_search_bfd_init+set}" = set; then 13659 : 13660 else 13661 ac_cv_search_bfd_init=no 13662 fi 13663 rm conftest.$ac_ext 13664 LIBS=$ac_func_search_save_LIBS 13665 fi 13666 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13667 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13668 ac_res=$ac_cv_search_bfd_init 13669 if test "$ac_res" != no; then 13670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13671 13672 fi 13673 13674 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13675 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13676 if test "${ac_cv_search_op_open_agent+set}" = set; then 13677 echo $ECHO_N "(cached) $ECHO_C" >&6 13678 else 13679 ac_func_search_save_LIBS=$LIBS 13680 cat >conftest.$ac_ext <<_ACEOF 13681 /* confdefs.h. */ 13682 _ACEOF 13683 cat confdefs.h >>conftest.$ac_ext 13684 cat >>conftest.$ac_ext <<_ACEOF 13685 /* end confdefs.h. */ 13686 13687 /* Override any GCC internal prototype to avoid an error. 13688 Use char because int might match the return type of a GCC 13689 builtin and then its argument prototype would still apply. */ 13690 #ifdef __cplusplus 13691 extern "C" 13692 #endif 13693 char op_open_agent (); 13694 int 13695 main () 13696 { 13697 return op_open_agent (); 13698 ; 13699 return 0; 13700 } 13701 _ACEOF 13702 for ac_lib in '' opagent; do 13703 if test -z "$ac_lib"; then 13704 ac_res="none required" 13705 else 13706 ac_res=-l$ac_lib 13707 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13708 fi 13709 rm -f conftest.$ac_objext conftest$ac_exeext 13710 if { (ac_try="$ac_link" 13711 case "(($ac_try" in 13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13713 *) ac_try_echo=$ac_try;; 13714 esac 13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13716 (eval "$ac_link") 2>conftest.er1 13717 ac_status=$? 13718 grep -v '^ *+' conftest.er1 >conftest.err 13719 rm -f conftest.er1 13720 cat conftest.err >&5 13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13722 (exit $ac_status); } && 13723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13724 { (case "(($ac_try" in 13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13726 *) ac_try_echo=$ac_try;; 13727 esac 13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13729 (eval "$ac_try") 2>&5 13730 ac_status=$? 13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13732 (exit $ac_status); }; } && 13733 { ac_try='test -s conftest$ac_exeext' 13734 { (case "(($ac_try" in 13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13736 *) ac_try_echo=$ac_try;; 13737 esac 13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13739 (eval "$ac_try") 2>&5 13740 ac_status=$? 13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13742 (exit $ac_status); }; }; then 13743 ac_cv_search_op_open_agent=$ac_res 13744 else 13745 echo "$as_me: failed program was:" >&5 13746 sed 's/^/| /' conftest.$ac_ext >&5 13747 13748 13749 fi 13750 13751 rm -f core conftest.err conftest.$ac_objext \ 13752 conftest$ac_exeext 13753 if test "${ac_cv_search_op_open_agent+set}" = set; then 13754 break 13755 fi 13756 done 13757 if test "${ac_cv_search_op_open_agent+set}" = set; then 13758 : 13759 else 13760 ac_cv_search_op_open_agent=no 13761 fi 13762 rm conftest.$ac_ext 13763 LIBS=$ac_func_search_save_LIBS 13764 fi 13765 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13766 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13767 ac_res=$ac_cv_search_op_open_agent 13768 if test "$ac_res" != no; then 13769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13770 13771 else 13772 13773 echo "Error! You need to have libopagent around." 13774 exit -1 13775 13776 fi 13777 13778 if test "${ac_cv_header_opagent_h+set}" = set; then 13779 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13780 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13781 if test "${ac_cv_header_opagent_h+set}" = set; then 13782 echo $ECHO_N "(cached) $ECHO_C" >&6 13783 fi 13784 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13785 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13786 else 13787 # Is the header compilable? 13788 { echo "$as_me:$LINENO: checking opagent.h usability" >&5 13789 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13790 cat >conftest.$ac_ext <<_ACEOF 13791 /* confdefs.h. */ 13792 _ACEOF 13793 cat confdefs.h >>conftest.$ac_ext 13794 cat >>conftest.$ac_ext <<_ACEOF 13795 /* end confdefs.h. */ 13796 $ac_includes_default 13797 #include <opagent.h> 13798 _ACEOF 13799 rm -f conftest.$ac_objext 13800 if { (ac_try="$ac_compile" 13801 case "(($ac_try" in 13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13803 *) ac_try_echo=$ac_try;; 13804 esac 13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13806 (eval "$ac_compile") 2>conftest.er1 13807 ac_status=$? 13808 grep -v '^ *+' conftest.er1 >conftest.err 13809 rm -f conftest.er1 13810 cat conftest.err >&5 13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13812 (exit $ac_status); } && 13813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13814 { (case "(($ac_try" in 13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13816 *) ac_try_echo=$ac_try;; 13817 esac 13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13819 (eval "$ac_try") 2>&5 13820 ac_status=$? 13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13822 (exit $ac_status); }; } && 13823 { ac_try='test -s conftest.$ac_objext' 13824 { (case "(($ac_try" in 13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13826 *) ac_try_echo=$ac_try;; 13827 esac 13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13829 (eval "$ac_try") 2>&5 13830 ac_status=$? 13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13832 (exit $ac_status); }; }; then 13833 ac_header_compiler=yes 13834 else 13835 echo "$as_me: failed program was:" >&5 13836 sed 's/^/| /' conftest.$ac_ext >&5 13837 13838 ac_header_compiler=no 13839 fi 13840 13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13843 echo "${ECHO_T}$ac_header_compiler" >&6; } 13844 13845 # Is the header present? 13846 { echo "$as_me:$LINENO: checking opagent.h presence" >&5 13847 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13848 cat >conftest.$ac_ext <<_ACEOF 13849 /* confdefs.h. */ 13850 _ACEOF 13851 cat confdefs.h >>conftest.$ac_ext 13852 cat >>conftest.$ac_ext <<_ACEOF 13853 /* end confdefs.h. */ 13854 #include <opagent.h> 13855 _ACEOF 13856 if { (ac_try="$ac_cpp conftest.$ac_ext" 13857 case "(($ac_try" in 13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13859 *) ac_try_echo=$ac_try;; 13860 esac 13861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13863 ac_status=$? 13864 grep -v '^ *+' conftest.er1 >conftest.err 13865 rm -f conftest.er1 13866 cat conftest.err >&5 13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13868 (exit $ac_status); } >/dev/null; then 13869 if test -s conftest.err; then 13870 ac_cpp_err=$ac_c_preproc_warn_flag 13871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13872 else 13873 ac_cpp_err= 13874 fi 13875 else 13876 ac_cpp_err=yes 13877 fi 13878 if test -z "$ac_cpp_err"; then 13879 ac_header_preproc=yes 13880 else 13881 echo "$as_me: failed program was:" >&5 13882 sed 's/^/| /' conftest.$ac_ext >&5 13883 13884 ac_header_preproc=no 13885 fi 13886 13887 rm -f conftest.err conftest.$ac_ext 13888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13889 echo "${ECHO_T}$ac_header_preproc" >&6; } 13890 13891 # So? What about this header? 13892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13893 yes:no: ) 13894 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 13895 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13896 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 13897 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 13898 ac_header_preproc=yes 13899 ;; 13900 no:yes:* ) 13901 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 13902 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 13903 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 13904 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 13905 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 13906 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 13907 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 13908 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 13909 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 13910 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 13911 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 13912 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 13913 ( cat <<\_ASBOX 13914 ## ------------------------------------ ## 13915 ## Report this to http://llvm.org/bugs/ ## 13916 ## ------------------------------------ ## 13917 _ASBOX 13918 ) | sed "s/^/$as_me: WARNING: /" >&2 13919 ;; 13920 esac 13921 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13922 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13923 if test "${ac_cv_header_opagent_h+set}" = set; then 13924 echo $ECHO_N "(cached) $ECHO_C" >&6 13925 else 13926 ac_cv_header_opagent_h=$ac_header_preproc 13927 fi 13928 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13929 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13930 13931 fi 13932 if test $ac_cv_header_opagent_h = yes; then 13933 : 13934 else 13935 13936 echo "Error! You need to have opagent.h around." 13937 exit -1 13938 13939 fi 13940 13941 13942 fi ;; 13943 *) 13944 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 13945 echo "$as_me: error: OProfile support is available on Linux only." >&2;} 13946 { (exit 1); exit 1; }; } ;; 13947 esac 13948 13949 else 13950 13951 USE_OPROFILE=0 13952 13953 13954 fi 13955 13956 13957 cat >>confdefs.h <<_ACEOF 13958 #define LLVM_USE_OPROFILE $USE_OPROFILE 13959 _ACEOF 13960 13961 13962 13963 # Check whether --with-intel-jitevents was given. 13964 if test "${with_intel_jitevents+set}" = set; then 13965 withval=$with_intel_jitevents; 13966 case "$withval" in 13967 yes) USE_INTEL_JITEVENTS=1 13968 ;; 13969 no) USE_INTEL_JITEVENTS=0 13970 ;; 13971 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5 13972 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;} 13973 { (exit 1); exit 1; }; };; 13974 esac 13975 13976 case $llvm_cv_os_type in 13977 Linux|Win32|Cygwin|MingW) ;; 13978 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5 13979 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;} 13980 { (exit 1); exit 1; }; };; 13981 esac 13982 13983 case "$llvm_cv_target_arch" in 13984 x86|x86_64) ;; 13985 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5 13986 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;} 13987 { (exit 1); exit 1; }; };; 13988 esac 13989 13990 else 13991 13992 USE_INTEL_JITEVENTS=0 13993 13994 13995 fi 13996 13997 13998 cat >>confdefs.h <<_ACEOF 13999 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 14000 _ACEOF 14001 14002 14003 for ac_prog in xml2-config 14004 do 14005 # Extract the first word of "$ac_prog", so it can be a program name with args. 14006 set dummy $ac_prog; ac_word=$2 14007 { echo "$as_me:$LINENO: checking for $ac_word" >&5 14008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 14009 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then 14010 echo $ECHO_N "(cached) $ECHO_C" >&6 14011 else 14012 if test -n "$XML2CONFIG"; then 14013 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test. 14014 else 14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14016 for as_dir in $PATH 14017 do 14018 IFS=$as_save_IFS 14019 test -z "$as_dir" && as_dir=. 14020 for ac_exec_ext in '' $ac_executable_extensions; do 14021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 14022 ac_cv_prog_XML2CONFIG="$ac_prog" 14023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14024 break 2 14025 fi 14026 done 14027 done 14028 IFS=$as_save_IFS 14029 14030 fi 14031 fi 14032 XML2CONFIG=$ac_cv_prog_XML2CONFIG 14033 if test -n "$XML2CONFIG"; then 14034 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5 14035 echo "${ECHO_T}$XML2CONFIG" >&6; } 14036 else 14037 { echo "$as_me:$LINENO: result: no" >&5 14038 echo "${ECHO_T}no" >&6; } 14039 fi 14040 14041 14042 test -n "$XML2CONFIG" && break 14043 done 14044 14045 14046 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5 14047 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; } 14048 if test "x$XML2CONFIG" = "x"; then 14049 { echo "$as_me:$LINENO: result: xml2-config not found" >&5 14050 echo "${ECHO_T}xml2-config not found" >&6; } 14051 else 14052 LIBXML2_INC=`$XML2CONFIG --cflags` 14053 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5 14054 echo "${ECHO_T}$LIBXML2_INC" >&6; } 14055 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5 14056 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; } 14057 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then 14058 echo $ECHO_N "(cached) $ECHO_C" >&6 14059 else 14060 ac_check_lib_save_LIBS=$LIBS 14061 LIBS="-lxml2 $LIBS" 14062 cat >conftest.$ac_ext <<_ACEOF 14063 /* confdefs.h. */ 14064 _ACEOF 14065 cat confdefs.h >>conftest.$ac_ext 14066 cat >>conftest.$ac_ext <<_ACEOF 14067 /* end confdefs.h. */ 14068 14069 /* Override any GCC internal prototype to avoid an error. 14070 Use char because int might match the return type of a GCC 14071 builtin and then its argument prototype would still apply. */ 14072 #ifdef __cplusplus 14073 extern "C" 14074 #endif 14075 char xmlReadFile (); 14076 int 14077 main () 14078 { 14079 return xmlReadFile (); 14080 ; 14081 return 0; 14082 } 14083 _ACEOF 14084 rm -f conftest.$ac_objext conftest$ac_exeext 14085 if { (ac_try="$ac_link" 14086 case "(($ac_try" in 14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14088 *) ac_try_echo=$ac_try;; 14089 esac 14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14091 (eval "$ac_link") 2>conftest.er1 14092 ac_status=$? 14093 grep -v '^ *+' conftest.er1 >conftest.err 14094 rm -f conftest.er1 14095 cat conftest.err >&5 14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14097 (exit $ac_status); } && 14098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14099 { (case "(($ac_try" in 14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14101 *) ac_try_echo=$ac_try;; 14102 esac 14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14104 (eval "$ac_try") 2>&5 14105 ac_status=$? 14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14107 (exit $ac_status); }; } && 14108 { ac_try='test -s conftest$ac_exeext' 14109 { (case "(($ac_try" in 14110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14111 *) ac_try_echo=$ac_try;; 14112 esac 14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14114 (eval "$ac_try") 2>&5 14115 ac_status=$? 14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14117 (exit $ac_status); }; }; then 14118 ac_cv_lib_xml2_xmlReadFile=yes 14119 else 14120 echo "$as_me: failed program was:" >&5 14121 sed 's/^/| /' conftest.$ac_ext >&5 14122 14123 ac_cv_lib_xml2_xmlReadFile=no 14124 fi 14125 14126 rm -f core conftest.err conftest.$ac_objext \ 14127 conftest$ac_exeext conftest.$ac_ext 14128 LIBS=$ac_check_lib_save_LIBS 14129 fi 14130 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5 14131 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; } 14132 if test $ac_cv_lib_xml2_xmlReadFile = yes; then 14133 14134 cat >>confdefs.h <<\_ACEOF 14135 #define CLANG_HAVE_LIBXML 1 14136 _ACEOF 14137 14138 LIBXML2_LIBS="-lxml2" 14139 fi 14140 14141 fi 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 ac_header_dirent=no 14152 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14153 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14154 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 14155 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 14156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14157 echo $ECHO_N "(cached) $ECHO_C" >&6 14158 else 14159 cat >conftest.$ac_ext <<_ACEOF 14160 /* confdefs.h. */ 14161 _ACEOF 14162 cat confdefs.h >>conftest.$ac_ext 14163 cat >>conftest.$ac_ext <<_ACEOF 14164 /* end confdefs.h. */ 14165 #include <sys/types.h> 14166 #include <$ac_hdr> 14167 14168 int 14169 main () 14170 { 14171 if ((DIR *) 0) 14172 return 0; 14173 ; 14174 return 0; 14175 } 14176 _ACEOF 14177 rm -f conftest.$ac_objext 14178 if { (ac_try="$ac_compile" 14179 case "(($ac_try" in 14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14181 *) ac_try_echo=$ac_try;; 14182 esac 14183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14184 (eval "$ac_compile") 2>conftest.er1 14185 ac_status=$? 14186 grep -v '^ *+' conftest.er1 >conftest.err 14187 rm -f conftest.er1 14188 cat conftest.err >&5 14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14190 (exit $ac_status); } && 14191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14192 { (case "(($ac_try" in 14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14194 *) ac_try_echo=$ac_try;; 14195 esac 14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14197 (eval "$ac_try") 2>&5 14198 ac_status=$? 14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14200 (exit $ac_status); }; } && 14201 { ac_try='test -s conftest.$ac_objext' 14202 { (case "(($ac_try" in 14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14204 *) ac_try_echo=$ac_try;; 14205 esac 14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14207 (eval "$ac_try") 2>&5 14208 ac_status=$? 14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14210 (exit $ac_status); }; }; then 14211 eval "$as_ac_Header=yes" 14212 else 14213 echo "$as_me: failed program was:" >&5 14214 sed 's/^/| /' conftest.$ac_ext >&5 14215 14216 eval "$as_ac_Header=no" 14217 fi 14218 14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14220 fi 14221 ac_res=`eval echo '${'$as_ac_Header'}'` 14222 { echo "$as_me:$LINENO: result: $ac_res" >&5 14223 echo "${ECHO_T}$ac_res" >&6; } 14224 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14225 cat >>confdefs.h <<_ACEOF 14226 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14227 _ACEOF 14228 14229 ac_header_dirent=$ac_hdr; break 14230 fi 14231 14232 done 14233 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14234 if test $ac_header_dirent = dirent.h; then 14235 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14236 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14237 if test "${ac_cv_search_opendir+set}" = set; then 14238 echo $ECHO_N "(cached) $ECHO_C" >&6 14239 else 14240 ac_func_search_save_LIBS=$LIBS 14241 cat >conftest.$ac_ext <<_ACEOF 14242 /* confdefs.h. */ 14243 _ACEOF 14244 cat confdefs.h >>conftest.$ac_ext 14245 cat >>conftest.$ac_ext <<_ACEOF 14246 /* end confdefs.h. */ 14247 14248 /* Override any GCC internal prototype to avoid an error. 14249 Use char because int might match the return type of a GCC 14250 builtin and then its argument prototype would still apply. */ 14251 #ifdef __cplusplus 14252 extern "C" 14253 #endif 14254 char opendir (); 14255 int 14256 main () 14257 { 14258 return opendir (); 14259 ; 14260 return 0; 14261 } 14262 _ACEOF 14263 for ac_lib in '' dir; do 14264 if test -z "$ac_lib"; then 14265 ac_res="none required" 14266 else 14267 ac_res=-l$ac_lib 14268 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14269 fi 14270 rm -f conftest.$ac_objext conftest$ac_exeext 14271 if { (ac_try="$ac_link" 14272 case "(($ac_try" in 14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14274 *) ac_try_echo=$ac_try;; 14275 esac 14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14277 (eval "$ac_link") 2>conftest.er1 14278 ac_status=$? 14279 grep -v '^ *+' conftest.er1 >conftest.err 14280 rm -f conftest.er1 14281 cat conftest.err >&5 14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14283 (exit $ac_status); } && 14284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14285 { (case "(($ac_try" in 14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14287 *) ac_try_echo=$ac_try;; 14288 esac 14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14290 (eval "$ac_try") 2>&5 14291 ac_status=$? 14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14293 (exit $ac_status); }; } && 14294 { ac_try='test -s conftest$ac_exeext' 14295 { (case "(($ac_try" in 14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14297 *) ac_try_echo=$ac_try;; 14298 esac 14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14300 (eval "$ac_try") 2>&5 14301 ac_status=$? 14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14303 (exit $ac_status); }; }; then 14304 ac_cv_search_opendir=$ac_res 14305 else 14306 echo "$as_me: failed program was:" >&5 14307 sed 's/^/| /' conftest.$ac_ext >&5 14308 14309 14310 fi 14311 14312 rm -f core conftest.err conftest.$ac_objext \ 14313 conftest$ac_exeext 14314 if test "${ac_cv_search_opendir+set}" = set; then 14315 break 14316 fi 14317 done 14318 if test "${ac_cv_search_opendir+set}" = set; then 14319 : 14320 else 14321 ac_cv_search_opendir=no 14322 fi 14323 rm conftest.$ac_ext 14324 LIBS=$ac_func_search_save_LIBS 14325 fi 14326 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14327 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14328 ac_res=$ac_cv_search_opendir 14329 if test "$ac_res" != no; then 14330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14331 14332 fi 14333 14334 else 14335 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14336 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14337 if test "${ac_cv_search_opendir+set}" = set; then 14338 echo $ECHO_N "(cached) $ECHO_C" >&6 14339 else 14340 ac_func_search_save_LIBS=$LIBS 14341 cat >conftest.$ac_ext <<_ACEOF 14342 /* confdefs.h. */ 14343 _ACEOF 14344 cat confdefs.h >>conftest.$ac_ext 14345 cat >>conftest.$ac_ext <<_ACEOF 14346 /* end confdefs.h. */ 14347 14348 /* Override any GCC internal prototype to avoid an error. 14349 Use char because int might match the return type of a GCC 14350 builtin and then its argument prototype would still apply. */ 14351 #ifdef __cplusplus 14352 extern "C" 14353 #endif 14354 char opendir (); 14355 int 14356 main () 14357 { 14358 return opendir (); 14359 ; 14360 return 0; 14361 } 14362 _ACEOF 14363 for ac_lib in '' x; do 14364 if test -z "$ac_lib"; then 14365 ac_res="none required" 14366 else 14367 ac_res=-l$ac_lib 14368 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14369 fi 14370 rm -f conftest.$ac_objext conftest$ac_exeext 14371 if { (ac_try="$ac_link" 14372 case "(($ac_try" in 14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14374 *) ac_try_echo=$ac_try;; 14375 esac 14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14377 (eval "$ac_link") 2>conftest.er1 14378 ac_status=$? 14379 grep -v '^ *+' conftest.er1 >conftest.err 14380 rm -f conftest.er1 14381 cat conftest.err >&5 14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14383 (exit $ac_status); } && 14384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14385 { (case "(($ac_try" in 14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14387 *) ac_try_echo=$ac_try;; 14388 esac 14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14390 (eval "$ac_try") 2>&5 14391 ac_status=$? 14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14393 (exit $ac_status); }; } && 14394 { ac_try='test -s conftest$ac_exeext' 14395 { (case "(($ac_try" in 14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14397 *) ac_try_echo=$ac_try;; 14398 esac 14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14400 (eval "$ac_try") 2>&5 14401 ac_status=$? 14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14403 (exit $ac_status); }; }; then 14404 ac_cv_search_opendir=$ac_res 14405 else 14406 echo "$as_me: failed program was:" >&5 14407 sed 's/^/| /' conftest.$ac_ext >&5 14408 14409 14410 fi 14411 14412 rm -f core conftest.err conftest.$ac_objext \ 14413 conftest$ac_exeext 14414 if test "${ac_cv_search_opendir+set}" = set; then 14415 break 14416 fi 14417 done 14418 if test "${ac_cv_search_opendir+set}" = set; then 14419 : 14420 else 14421 ac_cv_search_opendir=no 14422 fi 14423 rm conftest.$ac_ext 14424 LIBS=$ac_func_search_save_LIBS 14425 fi 14426 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14427 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14428 ac_res=$ac_cv_search_opendir 14429 if test "$ac_res" != no; then 14430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14431 14432 fi 14433 14434 fi 14435 14436 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 14437 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 14438 if test "${ac_cv_header_mmap_anon+set}" = set; then 14439 echo $ECHO_N "(cached) $ECHO_C" >&6 14440 else 14441 ac_ext=c 14442 ac_cpp='$CPP $CPPFLAGS' 14443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14445 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14446 14447 cat >conftest.$ac_ext <<_ACEOF 14448 /* confdefs.h. */ 14449 _ACEOF 14450 cat confdefs.h >>conftest.$ac_ext 14451 cat >>conftest.$ac_ext <<_ACEOF 14452 /* end confdefs.h. */ 14453 #include <sys/mman.h> 14454 #include <unistd.h> 14455 #include <fcntl.h> 14456 int 14457 main () 14458 { 14459 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 14460 ; 14461 return 0; 14462 } 14463 _ACEOF 14464 rm -f conftest.$ac_objext 14465 if { (ac_try="$ac_compile" 14466 case "(($ac_try" in 14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14468 *) ac_try_echo=$ac_try;; 14469 esac 14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14471 (eval "$ac_compile") 2>conftest.er1 14472 ac_status=$? 14473 grep -v '^ *+' conftest.er1 >conftest.err 14474 rm -f conftest.er1 14475 cat conftest.err >&5 14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14477 (exit $ac_status); } && 14478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14479 { (case "(($ac_try" in 14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14481 *) ac_try_echo=$ac_try;; 14482 esac 14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14484 (eval "$ac_try") 2>&5 14485 ac_status=$? 14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14487 (exit $ac_status); }; } && 14488 { ac_try='test -s conftest.$ac_objext' 14489 { (case "(($ac_try" in 14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14491 *) ac_try_echo=$ac_try;; 14492 esac 14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14494 (eval "$ac_try") 2>&5 14495 ac_status=$? 14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14497 (exit $ac_status); }; }; then 14498 ac_cv_header_mmap_anon=yes 14499 else 14500 echo "$as_me: failed program was:" >&5 14501 sed 's/^/| /' conftest.$ac_ext >&5 14502 14503 ac_cv_header_mmap_anon=no 14504 fi 14505 14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14507 ac_ext=c 14508 ac_cpp='$CPP $CPPFLAGS' 14509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14511 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14512 14513 14514 fi 14515 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 14516 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 14517 if test "$ac_cv_header_mmap_anon" = yes; then 14518 14519 cat >>confdefs.h <<\_ACEOF 14520 #define HAVE_MMAP_ANONYMOUS 1 14521 _ACEOF 14522 14523 fi 14524 14525 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 14526 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 14527 if test "${ac_cv_header_stat_broken+set}" = set; then 14528 echo $ECHO_N "(cached) $ECHO_C" >&6 14529 else 14530 cat >conftest.$ac_ext <<_ACEOF 14531 /* confdefs.h. */ 14532 _ACEOF 14533 cat confdefs.h >>conftest.$ac_ext 14534 cat >>conftest.$ac_ext <<_ACEOF 14535 /* end confdefs.h. */ 14536 #include <sys/types.h> 14537 #include <sys/stat.h> 14538 14539 #if defined S_ISBLK && defined S_IFDIR 14540 # if S_ISBLK (S_IFDIR) 14541 You lose. 14542 # endif 14543 #endif 14544 14545 #if defined S_ISBLK && defined S_IFCHR 14546 # if S_ISBLK (S_IFCHR) 14547 You lose. 14548 # endif 14549 #endif 14550 14551 #if defined S_ISLNK && defined S_IFREG 14552 # if S_ISLNK (S_IFREG) 14553 You lose. 14554 # endif 14555 #endif 14556 14557 #if defined S_ISSOCK && defined S_IFREG 14558 # if S_ISSOCK (S_IFREG) 14559 You lose. 14560 # endif 14561 #endif 14562 14563 _ACEOF 14564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14565 $EGREP "You lose" >/dev/null 2>&1; then 14566 ac_cv_header_stat_broken=yes 14567 else 14568 ac_cv_header_stat_broken=no 14569 fi 14570 rm -f conftest* 14571 14572 fi 14573 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14574 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14575 if test $ac_cv_header_stat_broken = yes; then 14576 14577 cat >>confdefs.h <<\_ACEOF 14578 #define STAT_MACROS_BROKEN 1 14579 _ACEOF 14580 14581 fi 14582 14583 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 14584 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14585 if test "${ac_cv_header_sys_wait_h+set}" = set; then 14586 echo $ECHO_N "(cached) $ECHO_C" >&6 14587 else 14588 cat >conftest.$ac_ext <<_ACEOF 14589 /* confdefs.h. */ 14590 _ACEOF 14591 cat confdefs.h >>conftest.$ac_ext 14592 cat >>conftest.$ac_ext <<_ACEOF 14593 /* end confdefs.h. */ 14594 #include <sys/types.h> 14595 #include <sys/wait.h> 14596 #ifndef WEXITSTATUS 14597 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14598 #endif 14599 #ifndef WIFEXITED 14600 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14601 #endif 14602 14603 int 14604 main () 14605 { 14606 int s; 14607 wait (&s); 14608 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14609 ; 14610 return 0; 14611 } 14612 _ACEOF 14613 rm -f conftest.$ac_objext 14614 if { (ac_try="$ac_compile" 14615 case "(($ac_try" in 14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14617 *) ac_try_echo=$ac_try;; 14618 esac 14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14620 (eval "$ac_compile") 2>conftest.er1 14621 ac_status=$? 14622 grep -v '^ *+' conftest.er1 >conftest.err 14623 rm -f conftest.er1 14624 cat conftest.err >&5 14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14626 (exit $ac_status); } && 14627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14628 { (case "(($ac_try" in 14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14630 *) ac_try_echo=$ac_try;; 14631 esac 14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14633 (eval "$ac_try") 2>&5 14634 ac_status=$? 14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14636 (exit $ac_status); }; } && 14637 { ac_try='test -s conftest.$ac_objext' 14638 { (case "(($ac_try" in 14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14640 *) ac_try_echo=$ac_try;; 14641 esac 14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14643 (eval "$ac_try") 2>&5 14644 ac_status=$? 14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14646 (exit $ac_status); }; }; then 14647 ac_cv_header_sys_wait_h=yes 14648 else 14649 echo "$as_me: failed program was:" >&5 14650 sed 's/^/| /' conftest.$ac_ext >&5 14651 14652 ac_cv_header_sys_wait_h=no 14653 fi 14654 14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14656 fi 14657 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14658 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14659 if test $ac_cv_header_sys_wait_h = yes; then 14660 14661 cat >>confdefs.h <<\_ACEOF 14662 #define HAVE_SYS_WAIT_H 1 14663 _ACEOF 14664 14665 fi 14666 14667 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14668 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14669 if test "${ac_cv_header_time+set}" = set; then 14670 echo $ECHO_N "(cached) $ECHO_C" >&6 14671 else 14672 cat >conftest.$ac_ext <<_ACEOF 14673 /* confdefs.h. */ 14674 _ACEOF 14675 cat confdefs.h >>conftest.$ac_ext 14676 cat >>conftest.$ac_ext <<_ACEOF 14677 /* end confdefs.h. */ 14678 #include <sys/types.h> 14679 #include <sys/time.h> 14680 #include <time.h> 14681 14682 int 14683 main () 14684 { 14685 if ((struct tm *) 0) 14686 return 0; 14687 ; 14688 return 0; 14689 } 14690 _ACEOF 14691 rm -f conftest.$ac_objext 14692 if { (ac_try="$ac_compile" 14693 case "(($ac_try" in 14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14695 *) ac_try_echo=$ac_try;; 14696 esac 14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14698 (eval "$ac_compile") 2>conftest.er1 14699 ac_status=$? 14700 grep -v '^ *+' conftest.er1 >conftest.err 14701 rm -f conftest.er1 14702 cat conftest.err >&5 14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14704 (exit $ac_status); } && 14705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14706 { (case "(($ac_try" in 14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14708 *) ac_try_echo=$ac_try;; 14709 esac 14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14711 (eval "$ac_try") 2>&5 14712 ac_status=$? 14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14714 (exit $ac_status); }; } && 14715 { ac_try='test -s conftest.$ac_objext' 14716 { (case "(($ac_try" in 14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14718 *) ac_try_echo=$ac_try;; 14719 esac 14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14721 (eval "$ac_try") 2>&5 14722 ac_status=$? 14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14724 (exit $ac_status); }; }; then 14725 ac_cv_header_time=yes 14726 else 14727 echo "$as_me: failed program was:" >&5 14728 sed 's/^/| /' conftest.$ac_ext >&5 14729 14730 ac_cv_header_time=no 14731 fi 14732 14733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14734 fi 14735 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14736 echo "${ECHO_T}$ac_cv_header_time" >&6; } 14737 if test $ac_cv_header_time = yes; then 14738 14739 cat >>confdefs.h <<\_ACEOF 14740 #define TIME_WITH_SYS_TIME 1 14741 _ACEOF 14742 14743 fi 14744 14745 14746 14747 14748 14749 14750 14751 14752 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 14753 do 14754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14756 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14759 echo $ECHO_N "(cached) $ECHO_C" >&6 14760 fi 14761 ac_res=`eval echo '${'$as_ac_Header'}'` 14762 { echo "$as_me:$LINENO: result: $ac_res" >&5 14763 echo "${ECHO_T}$ac_res" >&6; } 14764 else 14765 # Is the header compilable? 14766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14768 cat >conftest.$ac_ext <<_ACEOF 14769 /* confdefs.h. */ 14770 _ACEOF 14771 cat confdefs.h >>conftest.$ac_ext 14772 cat >>conftest.$ac_ext <<_ACEOF 14773 /* end confdefs.h. */ 14774 $ac_includes_default 14775 #include <$ac_header> 14776 _ACEOF 14777 rm -f conftest.$ac_objext 14778 if { (ac_try="$ac_compile" 14779 case "(($ac_try" in 14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14781 *) ac_try_echo=$ac_try;; 14782 esac 14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14784 (eval "$ac_compile") 2>conftest.er1 14785 ac_status=$? 14786 grep -v '^ *+' conftest.er1 >conftest.err 14787 rm -f conftest.er1 14788 cat conftest.err >&5 14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14790 (exit $ac_status); } && 14791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14792 { (case "(($ac_try" in 14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14794 *) ac_try_echo=$ac_try;; 14795 esac 14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14797 (eval "$ac_try") 2>&5 14798 ac_status=$? 14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14800 (exit $ac_status); }; } && 14801 { ac_try='test -s conftest.$ac_objext' 14802 { (case "(($ac_try" in 14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14804 *) ac_try_echo=$ac_try;; 14805 esac 14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14807 (eval "$ac_try") 2>&5 14808 ac_status=$? 14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14810 (exit $ac_status); }; }; then 14811 ac_header_compiler=yes 14812 else 14813 echo "$as_me: failed program was:" >&5 14814 sed 's/^/| /' conftest.$ac_ext >&5 14815 14816 ac_header_compiler=no 14817 fi 14818 14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14821 echo "${ECHO_T}$ac_header_compiler" >&6; } 14822 14823 # Is the header present? 14824 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14826 cat >conftest.$ac_ext <<_ACEOF 14827 /* confdefs.h. */ 14828 _ACEOF 14829 cat confdefs.h >>conftest.$ac_ext 14830 cat >>conftest.$ac_ext <<_ACEOF 14831 /* end confdefs.h. */ 14832 #include <$ac_header> 14833 _ACEOF 14834 if { (ac_try="$ac_cpp conftest.$ac_ext" 14835 case "(($ac_try" in 14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14837 *) ac_try_echo=$ac_try;; 14838 esac 14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14841 ac_status=$? 14842 grep -v '^ *+' conftest.er1 >conftest.err 14843 rm -f conftest.er1 14844 cat conftest.err >&5 14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14846 (exit $ac_status); } >/dev/null; then 14847 if test -s conftest.err; then 14848 ac_cpp_err=$ac_c_preproc_warn_flag 14849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14850 else 14851 ac_cpp_err= 14852 fi 14853 else 14854 ac_cpp_err=yes 14855 fi 14856 if test -z "$ac_cpp_err"; then 14857 ac_header_preproc=yes 14858 else 14859 echo "$as_me: failed program was:" >&5 14860 sed 's/^/| /' conftest.$ac_ext >&5 14861 14862 ac_header_preproc=no 14863 fi 14864 14865 rm -f conftest.err conftest.$ac_ext 14866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14867 echo "${ECHO_T}$ac_header_preproc" >&6; } 14868 14869 # So? What about this header? 14870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14871 yes:no: ) 14872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14876 ac_header_preproc=yes 14877 ;; 14878 no:yes:* ) 14879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14891 ( cat <<\_ASBOX 14892 ## ------------------------------------ ## 14893 ## Report this to http://llvm.org/bugs/ ## 14894 ## ------------------------------------ ## 14895 _ASBOX 14896 ) | sed "s/^/$as_me: WARNING: /" >&2 14897 ;; 14898 esac 14899 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14902 echo $ECHO_N "(cached) $ECHO_C" >&6 14903 else 14904 eval "$as_ac_Header=\$ac_header_preproc" 14905 fi 14906 ac_res=`eval echo '${'$as_ac_Header'}'` 14907 { echo "$as_me:$LINENO: result: $ac_res" >&5 14908 echo "${ECHO_T}$ac_res" >&6; } 14909 14910 fi 14911 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14912 cat >>confdefs.h <<_ACEOF 14913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14914 _ACEOF 14915 14916 fi 14917 14918 done 14919 14920 14921 14922 14923 14924 14925 14926 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 14927 do 14928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14930 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14933 echo $ECHO_N "(cached) $ECHO_C" >&6 14934 fi 14935 ac_res=`eval echo '${'$as_ac_Header'}'` 14936 { echo "$as_me:$LINENO: result: $ac_res" >&5 14937 echo "${ECHO_T}$ac_res" >&6; } 14938 else 14939 # Is the header compilable? 14940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14942 cat >conftest.$ac_ext <<_ACEOF 14943 /* confdefs.h. */ 14944 _ACEOF 14945 cat confdefs.h >>conftest.$ac_ext 14946 cat >>conftest.$ac_ext <<_ACEOF 14947 /* end confdefs.h. */ 14948 $ac_includes_default 14949 #include <$ac_header> 14950 _ACEOF 14951 rm -f conftest.$ac_objext 14952 if { (ac_try="$ac_compile" 14953 case "(($ac_try" in 14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14955 *) ac_try_echo=$ac_try;; 14956 esac 14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14958 (eval "$ac_compile") 2>conftest.er1 14959 ac_status=$? 14960 grep -v '^ *+' conftest.er1 >conftest.err 14961 rm -f conftest.er1 14962 cat conftest.err >&5 14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14964 (exit $ac_status); } && 14965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14966 { (case "(($ac_try" in 14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14968 *) ac_try_echo=$ac_try;; 14969 esac 14970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14971 (eval "$ac_try") 2>&5 14972 ac_status=$? 14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14974 (exit $ac_status); }; } && 14975 { ac_try='test -s conftest.$ac_objext' 14976 { (case "(($ac_try" in 14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14978 *) ac_try_echo=$ac_try;; 14979 esac 14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14981 (eval "$ac_try") 2>&5 14982 ac_status=$? 14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14984 (exit $ac_status); }; }; then 14985 ac_header_compiler=yes 14986 else 14987 echo "$as_me: failed program was:" >&5 14988 sed 's/^/| /' conftest.$ac_ext >&5 14989 14990 ac_header_compiler=no 14991 fi 14992 14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14995 echo "${ECHO_T}$ac_header_compiler" >&6; } 14996 14997 # Is the header present? 14998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15000 cat >conftest.$ac_ext <<_ACEOF 15001 /* confdefs.h. */ 15002 _ACEOF 15003 cat confdefs.h >>conftest.$ac_ext 15004 cat >>conftest.$ac_ext <<_ACEOF 15005 /* end confdefs.h. */ 15006 #include <$ac_header> 15007 _ACEOF 15008 if { (ac_try="$ac_cpp conftest.$ac_ext" 15009 case "(($ac_try" in 15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15011 *) ac_try_echo=$ac_try;; 15012 esac 15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15015 ac_status=$? 15016 grep -v '^ *+' conftest.er1 >conftest.err 15017 rm -f conftest.er1 15018 cat conftest.err >&5 15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15020 (exit $ac_status); } >/dev/null; then 15021 if test -s conftest.err; then 15022 ac_cpp_err=$ac_c_preproc_warn_flag 15023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15024 else 15025 ac_cpp_err= 15026 fi 15027 else 15028 ac_cpp_err=yes 15029 fi 15030 if test -z "$ac_cpp_err"; then 15031 ac_header_preproc=yes 15032 else 15033 echo "$as_me: failed program was:" >&5 15034 sed 's/^/| /' conftest.$ac_ext >&5 15035 15036 ac_header_preproc=no 15037 fi 15038 15039 rm -f conftest.err conftest.$ac_ext 15040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15041 echo "${ECHO_T}$ac_header_preproc" >&6; } 15042 15043 # So? What about this header? 15044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15045 yes:no: ) 15046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15050 ac_header_preproc=yes 15051 ;; 15052 no:yes:* ) 15053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15065 ( cat <<\_ASBOX 15066 ## ------------------------------------ ## 15067 ## Report this to http://llvm.org/bugs/ ## 15068 ## ------------------------------------ ## 15069 _ASBOX 15070 ) | sed "s/^/$as_me: WARNING: /" >&2 15071 ;; 15072 esac 15073 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15076 echo $ECHO_N "(cached) $ECHO_C" >&6 15077 else 15078 eval "$as_ac_Header=\$ac_header_preproc" 15079 fi 15080 ac_res=`eval echo '${'$as_ac_Header'}'` 15081 { echo "$as_me:$LINENO: result: $ac_res" >&5 15082 echo "${ECHO_T}$ac_res" >&6; } 15083 15084 fi 15085 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15086 cat >>confdefs.h <<_ACEOF 15087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15088 _ACEOF 15089 15090 fi 15091 15092 done 15093 15094 15095 15096 for ac_header in utime.h windows.h 15097 do 15098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15100 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15103 echo $ECHO_N "(cached) $ECHO_C" >&6 15104 fi 15105 ac_res=`eval echo '${'$as_ac_Header'}'` 15106 { echo "$as_me:$LINENO: result: $ac_res" >&5 15107 echo "${ECHO_T}$ac_res" >&6; } 15108 else 15109 # Is the header compilable? 15110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15112 cat >conftest.$ac_ext <<_ACEOF 15113 /* confdefs.h. */ 15114 _ACEOF 15115 cat confdefs.h >>conftest.$ac_ext 15116 cat >>conftest.$ac_ext <<_ACEOF 15117 /* end confdefs.h. */ 15118 $ac_includes_default 15119 #include <$ac_header> 15120 _ACEOF 15121 rm -f conftest.$ac_objext 15122 if { (ac_try="$ac_compile" 15123 case "(($ac_try" in 15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15125 *) ac_try_echo=$ac_try;; 15126 esac 15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15128 (eval "$ac_compile") 2>conftest.er1 15129 ac_status=$? 15130 grep -v '^ *+' conftest.er1 >conftest.err 15131 rm -f conftest.er1 15132 cat conftest.err >&5 15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15134 (exit $ac_status); } && 15135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15136 { (case "(($ac_try" in 15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15138 *) ac_try_echo=$ac_try;; 15139 esac 15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15141 (eval "$ac_try") 2>&5 15142 ac_status=$? 15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15144 (exit $ac_status); }; } && 15145 { ac_try='test -s conftest.$ac_objext' 15146 { (case "(($ac_try" in 15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15148 *) ac_try_echo=$ac_try;; 15149 esac 15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15151 (eval "$ac_try") 2>&5 15152 ac_status=$? 15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15154 (exit $ac_status); }; }; then 15155 ac_header_compiler=yes 15156 else 15157 echo "$as_me: failed program was:" >&5 15158 sed 's/^/| /' conftest.$ac_ext >&5 15159 15160 ac_header_compiler=no 15161 fi 15162 15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15165 echo "${ECHO_T}$ac_header_compiler" >&6; } 15166 15167 # Is the header present? 15168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15170 cat >conftest.$ac_ext <<_ACEOF 15171 /* confdefs.h. */ 15172 _ACEOF 15173 cat confdefs.h >>conftest.$ac_ext 15174 cat >>conftest.$ac_ext <<_ACEOF 15175 /* end confdefs.h. */ 15176 #include <$ac_header> 15177 _ACEOF 15178 if { (ac_try="$ac_cpp conftest.$ac_ext" 15179 case "(($ac_try" in 15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15181 *) ac_try_echo=$ac_try;; 15182 esac 15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15185 ac_status=$? 15186 grep -v '^ *+' conftest.er1 >conftest.err 15187 rm -f conftest.er1 15188 cat conftest.err >&5 15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15190 (exit $ac_status); } >/dev/null; then 15191 if test -s conftest.err; then 15192 ac_cpp_err=$ac_c_preproc_warn_flag 15193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15194 else 15195 ac_cpp_err= 15196 fi 15197 else 15198 ac_cpp_err=yes 15199 fi 15200 if test -z "$ac_cpp_err"; then 15201 ac_header_preproc=yes 15202 else 15203 echo "$as_me: failed program was:" >&5 15204 sed 's/^/| /' conftest.$ac_ext >&5 15205 15206 ac_header_preproc=no 15207 fi 15208 15209 rm -f conftest.err conftest.$ac_ext 15210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15211 echo "${ECHO_T}$ac_header_preproc" >&6; } 15212 15213 # So? What about this header? 15214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15215 yes:no: ) 15216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15220 ac_header_preproc=yes 15221 ;; 15222 no:yes:* ) 15223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15235 ( cat <<\_ASBOX 15236 ## ------------------------------------ ## 15237 ## Report this to http://llvm.org/bugs/ ## 15238 ## ------------------------------------ ## 15239 _ASBOX 15240 ) | sed "s/^/$as_me: WARNING: /" >&2 15241 ;; 15242 esac 15243 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15246 echo $ECHO_N "(cached) $ECHO_C" >&6 15247 else 15248 eval "$as_ac_Header=\$ac_header_preproc" 15249 fi 15250 ac_res=`eval echo '${'$as_ac_Header'}'` 15251 { echo "$as_me:$LINENO: result: $ac_res" >&5 15252 echo "${ECHO_T}$ac_res" >&6; } 15253 15254 fi 15255 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15256 cat >>confdefs.h <<_ACEOF 15257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15258 _ACEOF 15259 15260 fi 15261 15262 done 15263 15264 15265 15266 15267 15268 15269 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 15270 do 15271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15273 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15276 echo $ECHO_N "(cached) $ECHO_C" >&6 15277 fi 15278 ac_res=`eval echo '${'$as_ac_Header'}'` 15279 { echo "$as_me:$LINENO: result: $ac_res" >&5 15280 echo "${ECHO_T}$ac_res" >&6; } 15281 else 15282 # Is the header compilable? 15283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15285 cat >conftest.$ac_ext <<_ACEOF 15286 /* confdefs.h. */ 15287 _ACEOF 15288 cat confdefs.h >>conftest.$ac_ext 15289 cat >>conftest.$ac_ext <<_ACEOF 15290 /* end confdefs.h. */ 15291 $ac_includes_default 15292 #include <$ac_header> 15293 _ACEOF 15294 rm -f conftest.$ac_objext 15295 if { (ac_try="$ac_compile" 15296 case "(($ac_try" in 15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15298 *) ac_try_echo=$ac_try;; 15299 esac 15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15301 (eval "$ac_compile") 2>conftest.er1 15302 ac_status=$? 15303 grep -v '^ *+' conftest.er1 >conftest.err 15304 rm -f conftest.er1 15305 cat conftest.err >&5 15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15307 (exit $ac_status); } && 15308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15309 { (case "(($ac_try" in 15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15311 *) ac_try_echo=$ac_try;; 15312 esac 15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15314 (eval "$ac_try") 2>&5 15315 ac_status=$? 15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15317 (exit $ac_status); }; } && 15318 { ac_try='test -s conftest.$ac_objext' 15319 { (case "(($ac_try" in 15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15321 *) ac_try_echo=$ac_try;; 15322 esac 15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15324 (eval "$ac_try") 2>&5 15325 ac_status=$? 15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15327 (exit $ac_status); }; }; then 15328 ac_header_compiler=yes 15329 else 15330 echo "$as_me: failed program was:" >&5 15331 sed 's/^/| /' conftest.$ac_ext >&5 15332 15333 ac_header_compiler=no 15334 fi 15335 15336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15338 echo "${ECHO_T}$ac_header_compiler" >&6; } 15339 15340 # Is the header present? 15341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15343 cat >conftest.$ac_ext <<_ACEOF 15344 /* confdefs.h. */ 15345 _ACEOF 15346 cat confdefs.h >>conftest.$ac_ext 15347 cat >>conftest.$ac_ext <<_ACEOF 15348 /* end confdefs.h. */ 15349 #include <$ac_header> 15350 _ACEOF 15351 if { (ac_try="$ac_cpp conftest.$ac_ext" 15352 case "(($ac_try" in 15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15354 *) ac_try_echo=$ac_try;; 15355 esac 15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15358 ac_status=$? 15359 grep -v '^ *+' conftest.er1 >conftest.err 15360 rm -f conftest.er1 15361 cat conftest.err >&5 15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15363 (exit $ac_status); } >/dev/null; then 15364 if test -s conftest.err; then 15365 ac_cpp_err=$ac_c_preproc_warn_flag 15366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15367 else 15368 ac_cpp_err= 15369 fi 15370 else 15371 ac_cpp_err=yes 15372 fi 15373 if test -z "$ac_cpp_err"; then 15374 ac_header_preproc=yes 15375 else 15376 echo "$as_me: failed program was:" >&5 15377 sed 's/^/| /' conftest.$ac_ext >&5 15378 15379 ac_header_preproc=no 15380 fi 15381 15382 rm -f conftest.err conftest.$ac_ext 15383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15384 echo "${ECHO_T}$ac_header_preproc" >&6; } 15385 15386 # So? What about this header? 15387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15388 yes:no: ) 15389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15393 ac_header_preproc=yes 15394 ;; 15395 no:yes:* ) 15396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15408 ( cat <<\_ASBOX 15409 ## ------------------------------------ ## 15410 ## Report this to http://llvm.org/bugs/ ## 15411 ## ------------------------------------ ## 15412 _ASBOX 15413 ) | sed "s/^/$as_me: WARNING: /" >&2 15414 ;; 15415 esac 15416 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15419 echo $ECHO_N "(cached) $ECHO_C" >&6 15420 else 15421 eval "$as_ac_Header=\$ac_header_preproc" 15422 fi 15423 ac_res=`eval echo '${'$as_ac_Header'}'` 15424 { echo "$as_me:$LINENO: result: $ac_res" >&5 15425 echo "${ECHO_T}$ac_res" >&6; } 15426 15427 fi 15428 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15429 cat >>confdefs.h <<_ACEOF 15430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15431 _ACEOF 15432 15433 fi 15434 15435 done 15436 15437 15438 15439 15440 15441 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 15442 do 15443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15445 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15448 echo $ECHO_N "(cached) $ECHO_C" >&6 15449 fi 15450 ac_res=`eval echo '${'$as_ac_Header'}'` 15451 { echo "$as_me:$LINENO: result: $ac_res" >&5 15452 echo "${ECHO_T}$ac_res" >&6; } 15453 else 15454 # Is the header compilable? 15455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15457 cat >conftest.$ac_ext <<_ACEOF 15458 /* confdefs.h. */ 15459 _ACEOF 15460 cat confdefs.h >>conftest.$ac_ext 15461 cat >>conftest.$ac_ext <<_ACEOF 15462 /* end confdefs.h. */ 15463 $ac_includes_default 15464 #include <$ac_header> 15465 _ACEOF 15466 rm -f conftest.$ac_objext 15467 if { (ac_try="$ac_compile" 15468 case "(($ac_try" in 15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15470 *) ac_try_echo=$ac_try;; 15471 esac 15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15473 (eval "$ac_compile") 2>conftest.er1 15474 ac_status=$? 15475 grep -v '^ *+' conftest.er1 >conftest.err 15476 rm -f conftest.er1 15477 cat conftest.err >&5 15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15479 (exit $ac_status); } && 15480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15481 { (case "(($ac_try" in 15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15483 *) ac_try_echo=$ac_try;; 15484 esac 15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15486 (eval "$ac_try") 2>&5 15487 ac_status=$? 15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15489 (exit $ac_status); }; } && 15490 { ac_try='test -s conftest.$ac_objext' 15491 { (case "(($ac_try" in 15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15493 *) ac_try_echo=$ac_try;; 15494 esac 15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15496 (eval "$ac_try") 2>&5 15497 ac_status=$? 15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15499 (exit $ac_status); }; }; then 15500 ac_header_compiler=yes 15501 else 15502 echo "$as_me: failed program was:" >&5 15503 sed 's/^/| /' conftest.$ac_ext >&5 15504 15505 ac_header_compiler=no 15506 fi 15507 15508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15510 echo "${ECHO_T}$ac_header_compiler" >&6; } 15511 15512 # Is the header present? 15513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15515 cat >conftest.$ac_ext <<_ACEOF 15516 /* confdefs.h. */ 15517 _ACEOF 15518 cat confdefs.h >>conftest.$ac_ext 15519 cat >>conftest.$ac_ext <<_ACEOF 15520 /* end confdefs.h. */ 15521 #include <$ac_header> 15522 _ACEOF 15523 if { (ac_try="$ac_cpp conftest.$ac_ext" 15524 case "(($ac_try" in 15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15526 *) ac_try_echo=$ac_try;; 15527 esac 15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15530 ac_status=$? 15531 grep -v '^ *+' conftest.er1 >conftest.err 15532 rm -f conftest.er1 15533 cat conftest.err >&5 15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15535 (exit $ac_status); } >/dev/null; then 15536 if test -s conftest.err; then 15537 ac_cpp_err=$ac_c_preproc_warn_flag 15538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15539 else 15540 ac_cpp_err= 15541 fi 15542 else 15543 ac_cpp_err=yes 15544 fi 15545 if test -z "$ac_cpp_err"; then 15546 ac_header_preproc=yes 15547 else 15548 echo "$as_me: failed program was:" >&5 15549 sed 's/^/| /' conftest.$ac_ext >&5 15550 15551 ac_header_preproc=no 15552 fi 15553 15554 rm -f conftest.err conftest.$ac_ext 15555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15556 echo "${ECHO_T}$ac_header_preproc" >&6; } 15557 15558 # So? What about this header? 15559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15560 yes:no: ) 15561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15565 ac_header_preproc=yes 15566 ;; 15567 no:yes:* ) 15568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15580 ( cat <<\_ASBOX 15581 ## ------------------------------------ ## 15582 ## Report this to http://llvm.org/bugs/ ## 15583 ## ------------------------------------ ## 15584 _ASBOX 15585 ) | sed "s/^/$as_me: WARNING: /" >&2 15586 ;; 15587 esac 15588 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15591 echo $ECHO_N "(cached) $ECHO_C" >&6 15592 else 15593 eval "$as_ac_Header=\$ac_header_preproc" 15594 fi 15595 ac_res=`eval echo '${'$as_ac_Header'}'` 15596 { echo "$as_me:$LINENO: result: $ac_res" >&5 15597 echo "${ECHO_T}$ac_res" >&6; } 15598 15599 fi 15600 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15601 cat >>confdefs.h <<_ACEOF 15602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15603 _ACEOF 15604 15605 fi 15606 15607 done 15608 15609 15610 for ac_header in valgrind/valgrind.h 15611 do 15612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15614 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15617 echo $ECHO_N "(cached) $ECHO_C" >&6 15618 fi 15619 ac_res=`eval echo '${'$as_ac_Header'}'` 15620 { echo "$as_me:$LINENO: result: $ac_res" >&5 15621 echo "${ECHO_T}$ac_res" >&6; } 15622 else 15623 # Is the header compilable? 15624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15626 cat >conftest.$ac_ext <<_ACEOF 15627 /* confdefs.h. */ 15628 _ACEOF 15629 cat confdefs.h >>conftest.$ac_ext 15630 cat >>conftest.$ac_ext <<_ACEOF 15631 /* end confdefs.h. */ 15632 $ac_includes_default 15633 #include <$ac_header> 15634 _ACEOF 15635 rm -f conftest.$ac_objext 15636 if { (ac_try="$ac_compile" 15637 case "(($ac_try" in 15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15639 *) ac_try_echo=$ac_try;; 15640 esac 15641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15642 (eval "$ac_compile") 2>conftest.er1 15643 ac_status=$? 15644 grep -v '^ *+' conftest.er1 >conftest.err 15645 rm -f conftest.er1 15646 cat conftest.err >&5 15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15648 (exit $ac_status); } && 15649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15650 { (case "(($ac_try" in 15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15652 *) ac_try_echo=$ac_try;; 15653 esac 15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15655 (eval "$ac_try") 2>&5 15656 ac_status=$? 15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15658 (exit $ac_status); }; } && 15659 { ac_try='test -s conftest.$ac_objext' 15660 { (case "(($ac_try" in 15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15662 *) ac_try_echo=$ac_try;; 15663 esac 15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15665 (eval "$ac_try") 2>&5 15666 ac_status=$? 15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15668 (exit $ac_status); }; }; then 15669 ac_header_compiler=yes 15670 else 15671 echo "$as_me: failed program was:" >&5 15672 sed 's/^/| /' conftest.$ac_ext >&5 15673 15674 ac_header_compiler=no 15675 fi 15676 15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15679 echo "${ECHO_T}$ac_header_compiler" >&6; } 15680 15681 # Is the header present? 15682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15684 cat >conftest.$ac_ext <<_ACEOF 15685 /* confdefs.h. */ 15686 _ACEOF 15687 cat confdefs.h >>conftest.$ac_ext 15688 cat >>conftest.$ac_ext <<_ACEOF 15689 /* end confdefs.h. */ 15690 #include <$ac_header> 15691 _ACEOF 15692 if { (ac_try="$ac_cpp conftest.$ac_ext" 15693 case "(($ac_try" in 15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15695 *) ac_try_echo=$ac_try;; 15696 esac 15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15699 ac_status=$? 15700 grep -v '^ *+' conftest.er1 >conftest.err 15701 rm -f conftest.er1 15702 cat conftest.err >&5 15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15704 (exit $ac_status); } >/dev/null; then 15705 if test -s conftest.err; then 15706 ac_cpp_err=$ac_c_preproc_warn_flag 15707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15708 else 15709 ac_cpp_err= 15710 fi 15711 else 15712 ac_cpp_err=yes 15713 fi 15714 if test -z "$ac_cpp_err"; then 15715 ac_header_preproc=yes 15716 else 15717 echo "$as_me: failed program was:" >&5 15718 sed 's/^/| /' conftest.$ac_ext >&5 15719 15720 ac_header_preproc=no 15721 fi 15722 15723 rm -f conftest.err conftest.$ac_ext 15724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15725 echo "${ECHO_T}$ac_header_preproc" >&6; } 15726 15727 # So? What about this header? 15728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15729 yes:no: ) 15730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15734 ac_header_preproc=yes 15735 ;; 15736 no:yes:* ) 15737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15749 ( cat <<\_ASBOX 15750 ## ------------------------------------ ## 15751 ## Report this to http://llvm.org/bugs/ ## 15752 ## ------------------------------------ ## 15753 _ASBOX 15754 ) | sed "s/^/$as_me: WARNING: /" >&2 15755 ;; 15756 esac 15757 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15760 echo $ECHO_N "(cached) $ECHO_C" >&6 15761 else 15762 eval "$as_ac_Header=\$ac_header_preproc" 15763 fi 15764 ac_res=`eval echo '${'$as_ac_Header'}'` 15765 { echo "$as_me:$LINENO: result: $ac_res" >&5 15766 echo "${ECHO_T}$ac_res" >&6; } 15767 15768 fi 15769 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15770 cat >>confdefs.h <<_ACEOF 15771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15772 _ACEOF 15773 15774 fi 15775 15776 done 15777 15778 15779 for ac_header in fenv.h 15780 do 15781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15783 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15786 echo $ECHO_N "(cached) $ECHO_C" >&6 15787 fi 15788 ac_res=`eval echo '${'$as_ac_Header'}'` 15789 { echo "$as_me:$LINENO: result: $ac_res" >&5 15790 echo "${ECHO_T}$ac_res" >&6; } 15791 else 15792 # Is the header compilable? 15793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15795 cat >conftest.$ac_ext <<_ACEOF 15796 /* confdefs.h. */ 15797 _ACEOF 15798 cat confdefs.h >>conftest.$ac_ext 15799 cat >>conftest.$ac_ext <<_ACEOF 15800 /* end confdefs.h. */ 15801 $ac_includes_default 15802 #include <$ac_header> 15803 _ACEOF 15804 rm -f conftest.$ac_objext 15805 if { (ac_try="$ac_compile" 15806 case "(($ac_try" in 15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15808 *) ac_try_echo=$ac_try;; 15809 esac 15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15811 (eval "$ac_compile") 2>conftest.er1 15812 ac_status=$? 15813 grep -v '^ *+' conftest.er1 >conftest.err 15814 rm -f conftest.er1 15815 cat conftest.err >&5 15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15817 (exit $ac_status); } && 15818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15819 { (case "(($ac_try" in 15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15821 *) ac_try_echo=$ac_try;; 15822 esac 15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15824 (eval "$ac_try") 2>&5 15825 ac_status=$? 15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15827 (exit $ac_status); }; } && 15828 { ac_try='test -s conftest.$ac_objext' 15829 { (case "(($ac_try" in 15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15831 *) ac_try_echo=$ac_try;; 15832 esac 15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15834 (eval "$ac_try") 2>&5 15835 ac_status=$? 15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15837 (exit $ac_status); }; }; then 15838 ac_header_compiler=yes 15839 else 15840 echo "$as_me: failed program was:" >&5 15841 sed 's/^/| /' conftest.$ac_ext >&5 15842 15843 ac_header_compiler=no 15844 fi 15845 15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15848 echo "${ECHO_T}$ac_header_compiler" >&6; } 15849 15850 # Is the header present? 15851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15853 cat >conftest.$ac_ext <<_ACEOF 15854 /* confdefs.h. */ 15855 _ACEOF 15856 cat confdefs.h >>conftest.$ac_ext 15857 cat >>conftest.$ac_ext <<_ACEOF 15858 /* end confdefs.h. */ 15859 #include <$ac_header> 15860 _ACEOF 15861 if { (ac_try="$ac_cpp conftest.$ac_ext" 15862 case "(($ac_try" in 15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15864 *) ac_try_echo=$ac_try;; 15865 esac 15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15868 ac_status=$? 15869 grep -v '^ *+' conftest.er1 >conftest.err 15870 rm -f conftest.er1 15871 cat conftest.err >&5 15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15873 (exit $ac_status); } >/dev/null; then 15874 if test -s conftest.err; then 15875 ac_cpp_err=$ac_c_preproc_warn_flag 15876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15877 else 15878 ac_cpp_err= 15879 fi 15880 else 15881 ac_cpp_err=yes 15882 fi 15883 if test -z "$ac_cpp_err"; then 15884 ac_header_preproc=yes 15885 else 15886 echo "$as_me: failed program was:" >&5 15887 sed 's/^/| /' conftest.$ac_ext >&5 15888 15889 ac_header_preproc=no 15890 fi 15891 15892 rm -f conftest.err conftest.$ac_ext 15893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15894 echo "${ECHO_T}$ac_header_preproc" >&6; } 15895 15896 # So? What about this header? 15897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15898 yes:no: ) 15899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15903 ac_header_preproc=yes 15904 ;; 15905 no:yes:* ) 15906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15918 ( cat <<\_ASBOX 15919 ## ------------------------------------ ## 15920 ## Report this to http://llvm.org/bugs/ ## 15921 ## ------------------------------------ ## 15922 _ASBOX 15923 ) | sed "s/^/$as_me: WARNING: /" >&2 15924 ;; 15925 esac 15926 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15929 echo $ECHO_N "(cached) $ECHO_C" >&6 15930 else 15931 eval "$as_ac_Header=\$ac_header_preproc" 15932 fi 15933 ac_res=`eval echo '${'$as_ac_Header'}'` 15934 { echo "$as_me:$LINENO: result: $ac_res" >&5 15935 echo "${ECHO_T}$ac_res" >&6; } 15936 15937 fi 15938 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15939 cat >>confdefs.h <<_ACEOF 15940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15941 _ACEOF 15942 15943 fi 15944 15945 done 15946 15947 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 15948 15949 for ac_header in pthread.h 15950 do 15951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15953 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15956 echo $ECHO_N "(cached) $ECHO_C" >&6 15957 fi 15958 ac_res=`eval echo '${'$as_ac_Header'}'` 15959 { echo "$as_me:$LINENO: result: $ac_res" >&5 15960 echo "${ECHO_T}$ac_res" >&6; } 15961 else 15962 # Is the header compilable? 15963 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15965 cat >conftest.$ac_ext <<_ACEOF 15966 /* confdefs.h. */ 15967 _ACEOF 15968 cat confdefs.h >>conftest.$ac_ext 15969 cat >>conftest.$ac_ext <<_ACEOF 15970 /* end confdefs.h. */ 15971 $ac_includes_default 15972 #include <$ac_header> 15973 _ACEOF 15974 rm -f conftest.$ac_objext 15975 if { (ac_try="$ac_compile" 15976 case "(($ac_try" in 15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15978 *) ac_try_echo=$ac_try;; 15979 esac 15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15981 (eval "$ac_compile") 2>conftest.er1 15982 ac_status=$? 15983 grep -v '^ *+' conftest.er1 >conftest.err 15984 rm -f conftest.er1 15985 cat conftest.err >&5 15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15987 (exit $ac_status); } && 15988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15989 { (case "(($ac_try" in 15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15991 *) ac_try_echo=$ac_try;; 15992 esac 15993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15994 (eval "$ac_try") 2>&5 15995 ac_status=$? 15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15997 (exit $ac_status); }; } && 15998 { ac_try='test -s conftest.$ac_objext' 15999 { (case "(($ac_try" in 16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16001 *) ac_try_echo=$ac_try;; 16002 esac 16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16004 (eval "$ac_try") 2>&5 16005 ac_status=$? 16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16007 (exit $ac_status); }; }; then 16008 ac_header_compiler=yes 16009 else 16010 echo "$as_me: failed program was:" >&5 16011 sed 's/^/| /' conftest.$ac_ext >&5 16012 16013 ac_header_compiler=no 16014 fi 16015 16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16018 echo "${ECHO_T}$ac_header_compiler" >&6; } 16019 16020 # Is the header present? 16021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 16022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16023 cat >conftest.$ac_ext <<_ACEOF 16024 /* confdefs.h. */ 16025 _ACEOF 16026 cat confdefs.h >>conftest.$ac_ext 16027 cat >>conftest.$ac_ext <<_ACEOF 16028 /* end confdefs.h. */ 16029 #include <$ac_header> 16030 _ACEOF 16031 if { (ac_try="$ac_cpp conftest.$ac_ext" 16032 case "(($ac_try" in 16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16034 *) ac_try_echo=$ac_try;; 16035 esac 16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16038 ac_status=$? 16039 grep -v '^ *+' conftest.er1 >conftest.err 16040 rm -f conftest.er1 16041 cat conftest.err >&5 16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16043 (exit $ac_status); } >/dev/null; then 16044 if test -s conftest.err; then 16045 ac_cpp_err=$ac_c_preproc_warn_flag 16046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16047 else 16048 ac_cpp_err= 16049 fi 16050 else 16051 ac_cpp_err=yes 16052 fi 16053 if test -z "$ac_cpp_err"; then 16054 ac_header_preproc=yes 16055 else 16056 echo "$as_me: failed program was:" >&5 16057 sed 's/^/| /' conftest.$ac_ext >&5 16058 16059 ac_header_preproc=no 16060 fi 16061 16062 rm -f conftest.err conftest.$ac_ext 16063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16064 echo "${ECHO_T}$ac_header_preproc" >&6; } 16065 16066 # So? What about this header? 16067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16068 yes:no: ) 16069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16073 ac_header_preproc=yes 16074 ;; 16075 no:yes:* ) 16076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16088 ( cat <<\_ASBOX 16089 ## ------------------------------------ ## 16090 ## Report this to http://llvm.org/bugs/ ## 16091 ## ------------------------------------ ## 16092 _ASBOX 16093 ) | sed "s/^/$as_me: WARNING: /" >&2 16094 ;; 16095 esac 16096 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16099 echo $ECHO_N "(cached) $ECHO_C" >&6 16100 else 16101 eval "$as_ac_Header=\$ac_header_preproc" 16102 fi 16103 ac_res=`eval echo '${'$as_ac_Header'}'` 16104 { echo "$as_me:$LINENO: result: $ac_res" >&5 16105 echo "${ECHO_T}$ac_res" >&6; } 16106 16107 fi 16108 if test `eval echo '${'$as_ac_Header'}'` = yes; then 16109 cat >>confdefs.h <<_ACEOF 16110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16111 _ACEOF 16112 HAVE_PTHREAD=1 16113 16114 else 16115 HAVE_PTHREAD=0 16116 16117 fi 16118 16119 done 16120 16121 else 16122 HAVE_PTHREAD=0 16123 16124 fi 16125 16126 if test "$llvm_cv_enable_libffi" = "yes" ; then 16127 16128 16129 for ac_header in ffi.h ffi/ffi.h 16130 do 16131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16133 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16136 echo $ECHO_N "(cached) $ECHO_C" >&6 16137 fi 16138 ac_res=`eval echo '${'$as_ac_Header'}'` 16139 { echo "$as_me:$LINENO: result: $ac_res" >&5 16140 echo "${ECHO_T}$ac_res" >&6; } 16141 else 16142 # Is the header compilable? 16143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 16144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16145 cat >conftest.$ac_ext <<_ACEOF 16146 /* confdefs.h. */ 16147 _ACEOF 16148 cat confdefs.h >>conftest.$ac_ext 16149 cat >>conftest.$ac_ext <<_ACEOF 16150 /* end confdefs.h. */ 16151 $ac_includes_default 16152 #include <$ac_header> 16153 _ACEOF 16154 rm -f conftest.$ac_objext 16155 if { (ac_try="$ac_compile" 16156 case "(($ac_try" in 16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16158 *) ac_try_echo=$ac_try;; 16159 esac 16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16161 (eval "$ac_compile") 2>conftest.er1 16162 ac_status=$? 16163 grep -v '^ *+' conftest.er1 >conftest.err 16164 rm -f conftest.er1 16165 cat conftest.err >&5 16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16167 (exit $ac_status); } && 16168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16169 { (case "(($ac_try" in 16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16171 *) ac_try_echo=$ac_try;; 16172 esac 16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16174 (eval "$ac_try") 2>&5 16175 ac_status=$? 16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16177 (exit $ac_status); }; } && 16178 { ac_try='test -s conftest.$ac_objext' 16179 { (case "(($ac_try" in 16180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16181 *) ac_try_echo=$ac_try;; 16182 esac 16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16184 (eval "$ac_try") 2>&5 16185 ac_status=$? 16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16187 (exit $ac_status); }; }; then 16188 ac_header_compiler=yes 16189 else 16190 echo "$as_me: failed program was:" >&5 16191 sed 's/^/| /' conftest.$ac_ext >&5 16192 16193 ac_header_compiler=no 16194 fi 16195 16196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16198 echo "${ECHO_T}$ac_header_compiler" >&6; } 16199 16200 # Is the header present? 16201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 16202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16203 cat >conftest.$ac_ext <<_ACEOF 16204 /* confdefs.h. */ 16205 _ACEOF 16206 cat confdefs.h >>conftest.$ac_ext 16207 cat >>conftest.$ac_ext <<_ACEOF 16208 /* end confdefs.h. */ 16209 #include <$ac_header> 16210 _ACEOF 16211 if { (ac_try="$ac_cpp conftest.$ac_ext" 16212 case "(($ac_try" in 16213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16214 *) ac_try_echo=$ac_try;; 16215 esac 16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16218 ac_status=$? 16219 grep -v '^ *+' conftest.er1 >conftest.err 16220 rm -f conftest.er1 16221 cat conftest.err >&5 16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16223 (exit $ac_status); } >/dev/null; then 16224 if test -s conftest.err; then 16225 ac_cpp_err=$ac_c_preproc_warn_flag 16226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16227 else 16228 ac_cpp_err= 16229 fi 16230 else 16231 ac_cpp_err=yes 16232 fi 16233 if test -z "$ac_cpp_err"; then 16234 ac_header_preproc=yes 16235 else 16236 echo "$as_me: failed program was:" >&5 16237 sed 's/^/| /' conftest.$ac_ext >&5 16238 16239 ac_header_preproc=no 16240 fi 16241 16242 rm -f conftest.err conftest.$ac_ext 16243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16244 echo "${ECHO_T}$ac_header_preproc" >&6; } 16245 16246 # So? What about this header? 16247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16248 yes:no: ) 16249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16253 ac_header_preproc=yes 16254 ;; 16255 no:yes:* ) 16256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16268 ( cat <<\_ASBOX 16269 ## ------------------------------------ ## 16270 ## Report this to http://llvm.org/bugs/ ## 16271 ## ------------------------------------ ## 16272 _ASBOX 16273 ) | sed "s/^/$as_me: WARNING: /" >&2 16274 ;; 16275 esac 16276 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16279 echo $ECHO_N "(cached) $ECHO_C" >&6 16280 else 16281 eval "$as_ac_Header=\$ac_header_preproc" 16282 fi 16283 ac_res=`eval echo '${'$as_ac_Header'}'` 16284 { echo "$as_me:$LINENO: result: $ac_res" >&5 16285 echo "${ECHO_T}$ac_res" >&6; } 16286 16287 fi 16288 if test `eval echo '${'$as_ac_Header'}'` = yes; then 16289 cat >>confdefs.h <<_ACEOF 16290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16291 _ACEOF 16292 16293 fi 16294 16295 done 16296 16297 fi 16298 16299 16300 for ac_header in CrashReporterClient.h 16301 do 16302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16304 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16307 echo $ECHO_N "(cached) $ECHO_C" >&6 16308 fi 16309 ac_res=`eval echo '${'$as_ac_Header'}'` 16310 { echo "$as_me:$LINENO: result: $ac_res" >&5 16311 echo "${ECHO_T}$ac_res" >&6; } 16312 else 16313 # Is the header compilable? 16314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 16315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16316 cat >conftest.$ac_ext <<_ACEOF 16317 /* confdefs.h. */ 16318 _ACEOF 16319 cat confdefs.h >>conftest.$ac_ext 16320 cat >>conftest.$ac_ext <<_ACEOF 16321 /* end confdefs.h. */ 16322 $ac_includes_default 16323 #include <$ac_header> 16324 _ACEOF 16325 rm -f conftest.$ac_objext 16326 if { (ac_try="$ac_compile" 16327 case "(($ac_try" in 16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16329 *) ac_try_echo=$ac_try;; 16330 esac 16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16332 (eval "$ac_compile") 2>conftest.er1 16333 ac_status=$? 16334 grep -v '^ *+' conftest.er1 >conftest.err 16335 rm -f conftest.er1 16336 cat conftest.err >&5 16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16338 (exit $ac_status); } && 16339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16340 { (case "(($ac_try" in 16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16342 *) ac_try_echo=$ac_try;; 16343 esac 16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16345 (eval "$ac_try") 2>&5 16346 ac_status=$? 16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16348 (exit $ac_status); }; } && 16349 { ac_try='test -s conftest.$ac_objext' 16350 { (case "(($ac_try" in 16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16352 *) ac_try_echo=$ac_try;; 16353 esac 16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16355 (eval "$ac_try") 2>&5 16356 ac_status=$? 16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16358 (exit $ac_status); }; }; then 16359 ac_header_compiler=yes 16360 else 16361 echo "$as_me: failed program was:" >&5 16362 sed 's/^/| /' conftest.$ac_ext >&5 16363 16364 ac_header_compiler=no 16365 fi 16366 16367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16369 echo "${ECHO_T}$ac_header_compiler" >&6; } 16370 16371 # Is the header present? 16372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 16373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16374 cat >conftest.$ac_ext <<_ACEOF 16375 /* confdefs.h. */ 16376 _ACEOF 16377 cat confdefs.h >>conftest.$ac_ext 16378 cat >>conftest.$ac_ext <<_ACEOF 16379 /* end confdefs.h. */ 16380 #include <$ac_header> 16381 _ACEOF 16382 if { (ac_try="$ac_cpp conftest.$ac_ext" 16383 case "(($ac_try" in 16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16385 *) ac_try_echo=$ac_try;; 16386 esac 16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16389 ac_status=$? 16390 grep -v '^ *+' conftest.er1 >conftest.err 16391 rm -f conftest.er1 16392 cat conftest.err >&5 16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16394 (exit $ac_status); } >/dev/null; then 16395 if test -s conftest.err; then 16396 ac_cpp_err=$ac_c_preproc_warn_flag 16397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16398 else 16399 ac_cpp_err= 16400 fi 16401 else 16402 ac_cpp_err=yes 16403 fi 16404 if test -z "$ac_cpp_err"; then 16405 ac_header_preproc=yes 16406 else 16407 echo "$as_me: failed program was:" >&5 16408 sed 's/^/| /' conftest.$ac_ext >&5 16409 16410 ac_header_preproc=no 16411 fi 16412 16413 rm -f conftest.err conftest.$ac_ext 16414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16415 echo "${ECHO_T}$ac_header_preproc" >&6; } 16416 16417 # So? What about this header? 16418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16419 yes:no: ) 16420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16424 ac_header_preproc=yes 16425 ;; 16426 no:yes:* ) 16427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16439 ( cat <<\_ASBOX 16440 ## ------------------------------------ ## 16441 ## Report this to http://llvm.org/bugs/ ## 16442 ## ------------------------------------ ## 16443 _ASBOX 16444 ) | sed "s/^/$as_me: WARNING: /" >&2 16445 ;; 16446 esac 16447 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16450 echo $ECHO_N "(cached) $ECHO_C" >&6 16451 else 16452 eval "$as_ac_Header=\$ac_header_preproc" 16453 fi 16454 ac_res=`eval echo '${'$as_ac_Header'}'` 16455 { echo "$as_me:$LINENO: result: $ac_res" >&5 16456 echo "${ECHO_T}$ac_res" >&6; } 16457 16458 fi 16459 if test `eval echo '${'$as_ac_Header'}'` = yes; then 16460 cat >>confdefs.h <<_ACEOF 16461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16462 _ACEOF 16463 16464 fi 16465 16466 done 16467 16468 16469 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 16470 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 16471 cat >conftest.$ac_ext <<_ACEOF 16472 16473 /* confdefs.h. */ 16474 _ACEOF 16475 cat confdefs.h >>conftest.$ac_ext 16476 cat >>conftest.$ac_ext <<_ACEOF 16477 /* end confdefs.h. */ 16478 16479 extern const char *__crashreporter_info__; 16480 int main() { 16481 __crashreporter_info__ = "test"; 16482 return 0; 16483 } 16484 16485 16486 _ACEOF 16487 rm -f conftest.$ac_objext conftest$ac_exeext 16488 if { (ac_try="$ac_link" 16489 case "(($ac_try" in 16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16491 *) ac_try_echo=$ac_try;; 16492 esac 16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16494 (eval "$ac_link") 2>conftest.er1 16495 ac_status=$? 16496 grep -v '^ *+' conftest.er1 >conftest.err 16497 rm -f conftest.er1 16498 cat conftest.err >&5 16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16500 (exit $ac_status); } && 16501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16502 { (case "(($ac_try" in 16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16504 *) ac_try_echo=$ac_try;; 16505 esac 16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16507 (eval "$ac_try") 2>&5 16508 ac_status=$? 16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16510 (exit $ac_status); }; } && 16511 { ac_try='test -s conftest$ac_exeext' 16512 { (case "(($ac_try" in 16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16514 *) ac_try_echo=$ac_try;; 16515 esac 16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16517 (eval "$ac_try") 2>&5 16518 ac_status=$? 16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16520 (exit $ac_status); }; }; then 16521 16522 { echo "$as_me:$LINENO: result: yes" >&5 16523 echo "${ECHO_T}yes" >&6; } 16524 16525 cat >>confdefs.h <<\_ACEOF 16526 #define HAVE_CRASHREPORTER_INFO 1 16527 _ACEOF 16528 16529 16530 else 16531 echo "$as_me: failed program was:" >&5 16532 sed 's/^/| /' conftest.$ac_ext >&5 16533 16534 16535 { echo "$as_me:$LINENO: result: no" >&5 16536 echo "${ECHO_T}no" >&6; } 16537 16538 cat >>confdefs.h <<\_ACEOF 16539 #define HAVE_CRASHREPORTER_INFO 0 16540 _ACEOF 16541 16542 16543 fi 16544 16545 rm -f core conftest.err conftest.$ac_objext \ 16546 conftest$ac_exeext conftest.$ac_ext 16547 16548 16549 16550 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 16551 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 16552 if test "${ac_cv_huge_val_sanity+set}" = set; then 16553 echo $ECHO_N "(cached) $ECHO_C" >&6 16554 else 16555 16556 ac_ext=cpp 16557 ac_cpp='$CXXCPP $CPPFLAGS' 16558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16561 16562 ac_save_CXXFLAGS=$CXXFLAGS 16563 CXXFLAGS="$CXXFLAGS -pedantic" 16564 if test "$cross_compiling" = yes; then 16565 ac_cv_huge_val_sanity=yes 16566 else 16567 cat >conftest.$ac_ext <<_ACEOF 16568 /* confdefs.h. */ 16569 _ACEOF 16570 cat confdefs.h >>conftest.$ac_ext 16571 cat >>conftest.$ac_ext <<_ACEOF 16572 /* end confdefs.h. */ 16573 #include <math.h> 16574 int 16575 main () 16576 { 16577 double x = HUGE_VAL; return x != x; 16578 ; 16579 return 0; 16580 } 16581 _ACEOF 16582 rm -f conftest$ac_exeext 16583 if { (ac_try="$ac_link" 16584 case "(($ac_try" in 16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16586 *) ac_try_echo=$ac_try;; 16587 esac 16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16589 (eval "$ac_link") 2>&5 16590 ac_status=$? 16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16593 { (case "(($ac_try" in 16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16595 *) ac_try_echo=$ac_try;; 16596 esac 16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16598 (eval "$ac_try") 2>&5 16599 ac_status=$? 16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16601 (exit $ac_status); }; }; then 16602 ac_cv_huge_val_sanity=yes 16603 else 16604 echo "$as_me: program exited with status $ac_status" >&5 16605 echo "$as_me: failed program was:" >&5 16606 sed 's/^/| /' conftest.$ac_ext >&5 16607 16608 ( exit $ac_status ) 16609 ac_cv_huge_val_sanity=no 16610 fi 16611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16612 fi 16613 16614 16615 CXXFLAGS=$ac_save_CXXFLAGS 16616 ac_ext=c 16617 ac_cpp='$CPP $CPPFLAGS' 16618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16620 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16621 16622 16623 fi 16624 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16625 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16626 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16627 16628 16629 { echo "$as_me:$LINENO: checking for pid_t" >&5 16630 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16631 if test "${ac_cv_type_pid_t+set}" = set; then 16632 echo $ECHO_N "(cached) $ECHO_C" >&6 16633 else 16634 cat >conftest.$ac_ext <<_ACEOF 16635 /* confdefs.h. */ 16636 _ACEOF 16637 cat confdefs.h >>conftest.$ac_ext 16638 cat >>conftest.$ac_ext <<_ACEOF 16639 /* end confdefs.h. */ 16640 $ac_includes_default 16641 typedef pid_t ac__type_new_; 16642 int 16643 main () 16644 { 16645 if ((ac__type_new_ *) 0) 16646 return 0; 16647 if (sizeof (ac__type_new_)) 16648 return 0; 16649 ; 16650 return 0; 16651 } 16652 _ACEOF 16653 rm -f conftest.$ac_objext 16654 if { (ac_try="$ac_compile" 16655 case "(($ac_try" in 16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16657 *) ac_try_echo=$ac_try;; 16658 esac 16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16660 (eval "$ac_compile") 2>conftest.er1 16661 ac_status=$? 16662 grep -v '^ *+' conftest.er1 >conftest.err 16663 rm -f conftest.er1 16664 cat conftest.err >&5 16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16666 (exit $ac_status); } && 16667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16668 { (case "(($ac_try" in 16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16670 *) ac_try_echo=$ac_try;; 16671 esac 16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16673 (eval "$ac_try") 2>&5 16674 ac_status=$? 16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16676 (exit $ac_status); }; } && 16677 { ac_try='test -s conftest.$ac_objext' 16678 { (case "(($ac_try" in 16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16680 *) ac_try_echo=$ac_try;; 16681 esac 16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16683 (eval "$ac_try") 2>&5 16684 ac_status=$? 16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16686 (exit $ac_status); }; }; then 16687 ac_cv_type_pid_t=yes 16688 else 16689 echo "$as_me: failed program was:" >&5 16690 sed 's/^/| /' conftest.$ac_ext >&5 16691 16692 ac_cv_type_pid_t=no 16693 fi 16694 16695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16696 fi 16697 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16698 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16699 if test $ac_cv_type_pid_t = yes; then 16700 : 16701 else 16702 16703 cat >>confdefs.h <<_ACEOF 16704 #define pid_t int 16705 _ACEOF 16706 16707 fi 16708 16709 { echo "$as_me:$LINENO: checking for size_t" >&5 16710 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 16711 if test "${ac_cv_type_size_t+set}" = set; then 16712 echo $ECHO_N "(cached) $ECHO_C" >&6 16713 else 16714 cat >conftest.$ac_ext <<_ACEOF 16715 /* confdefs.h. */ 16716 _ACEOF 16717 cat confdefs.h >>conftest.$ac_ext 16718 cat >>conftest.$ac_ext <<_ACEOF 16719 /* end confdefs.h. */ 16720 $ac_includes_default 16721 typedef size_t ac__type_new_; 16722 int 16723 main () 16724 { 16725 if ((ac__type_new_ *) 0) 16726 return 0; 16727 if (sizeof (ac__type_new_)) 16728 return 0; 16729 ; 16730 return 0; 16731 } 16732 _ACEOF 16733 rm -f conftest.$ac_objext 16734 if { (ac_try="$ac_compile" 16735 case "(($ac_try" in 16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16737 *) ac_try_echo=$ac_try;; 16738 esac 16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16740 (eval "$ac_compile") 2>conftest.er1 16741 ac_status=$? 16742 grep -v '^ *+' conftest.er1 >conftest.err 16743 rm -f conftest.er1 16744 cat conftest.err >&5 16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16746 (exit $ac_status); } && 16747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16748 { (case "(($ac_try" in 16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16750 *) ac_try_echo=$ac_try;; 16751 esac 16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16753 (eval "$ac_try") 2>&5 16754 ac_status=$? 16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16756 (exit $ac_status); }; } && 16757 { ac_try='test -s conftest.$ac_objext' 16758 { (case "(($ac_try" in 16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16760 *) ac_try_echo=$ac_try;; 16761 esac 16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16763 (eval "$ac_try") 2>&5 16764 ac_status=$? 16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16766 (exit $ac_status); }; }; then 16767 ac_cv_type_size_t=yes 16768 else 16769 echo "$as_me: failed program was:" >&5 16770 sed 's/^/| /' conftest.$ac_ext >&5 16771 16772 ac_cv_type_size_t=no 16773 fi 16774 16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16776 fi 16777 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16778 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 16779 if test $ac_cv_type_size_t = yes; then 16780 : 16781 else 16782 16783 cat >>confdefs.h <<_ACEOF 16784 #define size_t unsigned int 16785 _ACEOF 16786 16787 fi 16788 16789 16790 cat >>confdefs.h <<_ACEOF 16791 #define RETSIGTYPE void 16792 _ACEOF 16793 16794 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 16795 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 16796 if test "${ac_cv_struct_tm+set}" = set; then 16797 echo $ECHO_N "(cached) $ECHO_C" >&6 16798 else 16799 cat >conftest.$ac_ext <<_ACEOF 16800 /* confdefs.h. */ 16801 _ACEOF 16802 cat confdefs.h >>conftest.$ac_ext 16803 cat >>conftest.$ac_ext <<_ACEOF 16804 /* end confdefs.h. */ 16805 #include <sys/types.h> 16806 #include <time.h> 16807 16808 int 16809 main () 16810 { 16811 struct tm *tp; tp->tm_sec; 16812 ; 16813 return 0; 16814 } 16815 _ACEOF 16816 rm -f conftest.$ac_objext 16817 if { (ac_try="$ac_compile" 16818 case "(($ac_try" in 16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16820 *) ac_try_echo=$ac_try;; 16821 esac 16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16823 (eval "$ac_compile") 2>conftest.er1 16824 ac_status=$? 16825 grep -v '^ *+' conftest.er1 >conftest.err 16826 rm -f conftest.er1 16827 cat conftest.err >&5 16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16829 (exit $ac_status); } && 16830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16831 { (case "(($ac_try" in 16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16833 *) ac_try_echo=$ac_try;; 16834 esac 16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16836 (eval "$ac_try") 2>&5 16837 ac_status=$? 16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16839 (exit $ac_status); }; } && 16840 { ac_try='test -s conftest.$ac_objext' 16841 { (case "(($ac_try" in 16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16843 *) ac_try_echo=$ac_try;; 16844 esac 16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16846 (eval "$ac_try") 2>&5 16847 ac_status=$? 16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16849 (exit $ac_status); }; }; then 16850 ac_cv_struct_tm=time.h 16851 else 16852 echo "$as_me: failed program was:" >&5 16853 sed 's/^/| /' conftest.$ac_ext >&5 16854 16855 ac_cv_struct_tm=sys/time.h 16856 fi 16857 16858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16859 fi 16860 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 16861 echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 16862 if test $ac_cv_struct_tm = sys/time.h; then 16863 16864 cat >>confdefs.h <<\_ACEOF 16865 #define TM_IN_SYS_TIME 1 16866 _ACEOF 16867 16868 fi 16869 16870 { echo "$as_me:$LINENO: checking for int64_t" >&5 16871 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 16872 if test "${ac_cv_type_int64_t+set}" = set; then 16873 echo $ECHO_N "(cached) $ECHO_C" >&6 16874 else 16875 cat >conftest.$ac_ext <<_ACEOF 16876 /* confdefs.h. */ 16877 _ACEOF 16878 cat confdefs.h >>conftest.$ac_ext 16879 cat >>conftest.$ac_ext <<_ACEOF 16880 /* end confdefs.h. */ 16881 $ac_includes_default 16882 typedef int64_t ac__type_new_; 16883 int 16884 main () 16885 { 16886 if ((ac__type_new_ *) 0) 16887 return 0; 16888 if (sizeof (ac__type_new_)) 16889 return 0; 16890 ; 16891 return 0; 16892 } 16893 _ACEOF 16894 rm -f conftest.$ac_objext 16895 if { (ac_try="$ac_compile" 16896 case "(($ac_try" in 16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16898 *) ac_try_echo=$ac_try;; 16899 esac 16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16901 (eval "$ac_compile") 2>conftest.er1 16902 ac_status=$? 16903 grep -v '^ *+' conftest.er1 >conftest.err 16904 rm -f conftest.er1 16905 cat conftest.err >&5 16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16907 (exit $ac_status); } && 16908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16909 { (case "(($ac_try" in 16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16911 *) ac_try_echo=$ac_try;; 16912 esac 16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16914 (eval "$ac_try") 2>&5 16915 ac_status=$? 16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16917 (exit $ac_status); }; } && 16918 { ac_try='test -s conftest.$ac_objext' 16919 { (case "(($ac_try" in 16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16921 *) ac_try_echo=$ac_try;; 16922 esac 16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16924 (eval "$ac_try") 2>&5 16925 ac_status=$? 16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16927 (exit $ac_status); }; }; then 16928 ac_cv_type_int64_t=yes 16929 else 16930 echo "$as_me: failed program was:" >&5 16931 sed 's/^/| /' conftest.$ac_ext >&5 16932 16933 ac_cv_type_int64_t=no 16934 fi 16935 16936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16937 fi 16938 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 16939 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 16940 if test $ac_cv_type_int64_t = yes; then 16941 16942 cat >>confdefs.h <<_ACEOF 16943 #define HAVE_INT64_T 1 16944 _ACEOF 16945 16946 16947 else 16948 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 16949 echo "$as_me: error: Type int64_t required but not found" >&2;} 16950 { (exit 1); exit 1; }; } 16951 fi 16952 16953 { echo "$as_me:$LINENO: checking for uint64_t" >&5 16954 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 16955 if test "${ac_cv_type_uint64_t+set}" = set; then 16956 echo $ECHO_N "(cached) $ECHO_C" >&6 16957 else 16958 cat >conftest.$ac_ext <<_ACEOF 16959 /* confdefs.h. */ 16960 _ACEOF 16961 cat confdefs.h >>conftest.$ac_ext 16962 cat >>conftest.$ac_ext <<_ACEOF 16963 /* end confdefs.h. */ 16964 $ac_includes_default 16965 typedef uint64_t ac__type_new_; 16966 int 16967 main () 16968 { 16969 if ((ac__type_new_ *) 0) 16970 return 0; 16971 if (sizeof (ac__type_new_)) 16972 return 0; 16973 ; 16974 return 0; 16975 } 16976 _ACEOF 16977 rm -f conftest.$ac_objext 16978 if { (ac_try="$ac_compile" 16979 case "(($ac_try" in 16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16981 *) ac_try_echo=$ac_try;; 16982 esac 16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16984 (eval "$ac_compile") 2>conftest.er1 16985 ac_status=$? 16986 grep -v '^ *+' conftest.er1 >conftest.err 16987 rm -f conftest.er1 16988 cat conftest.err >&5 16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16990 (exit $ac_status); } && 16991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16992 { (case "(($ac_try" in 16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16994 *) ac_try_echo=$ac_try;; 16995 esac 16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16997 (eval "$ac_try") 2>&5 16998 ac_status=$? 16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17000 (exit $ac_status); }; } && 17001 { ac_try='test -s conftest.$ac_objext' 17002 { (case "(($ac_try" in 17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17004 *) ac_try_echo=$ac_try;; 17005 esac 17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17007 (eval "$ac_try") 2>&5 17008 ac_status=$? 17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17010 (exit $ac_status); }; }; then 17011 ac_cv_type_uint64_t=yes 17012 else 17013 echo "$as_me: failed program was:" >&5 17014 sed 's/^/| /' conftest.$ac_ext >&5 17015 17016 ac_cv_type_uint64_t=no 17017 fi 17018 17019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17020 fi 17021 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 17022 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 17023 if test $ac_cv_type_uint64_t = yes; then 17024 17025 cat >>confdefs.h <<_ACEOF 17026 #define HAVE_UINT64_T 1 17027 _ACEOF 17028 17029 17030 else 17031 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 17032 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 17033 if test "${ac_cv_type_u_int64_t+set}" = set; then 17034 echo $ECHO_N "(cached) $ECHO_C" >&6 17035 else 17036 cat >conftest.$ac_ext <<_ACEOF 17037 /* confdefs.h. */ 17038 _ACEOF 17039 cat confdefs.h >>conftest.$ac_ext 17040 cat >>conftest.$ac_ext <<_ACEOF 17041 /* end confdefs.h. */ 17042 $ac_includes_default 17043 typedef u_int64_t ac__type_new_; 17044 int 17045 main () 17046 { 17047 if ((ac__type_new_ *) 0) 17048 return 0; 17049 if (sizeof (ac__type_new_)) 17050 return 0; 17051 ; 17052 return 0; 17053 } 17054 _ACEOF 17055 rm -f conftest.$ac_objext 17056 if { (ac_try="$ac_compile" 17057 case "(($ac_try" in 17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17059 *) ac_try_echo=$ac_try;; 17060 esac 17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17062 (eval "$ac_compile") 2>conftest.er1 17063 ac_status=$? 17064 grep -v '^ *+' conftest.er1 >conftest.err 17065 rm -f conftest.er1 17066 cat conftest.err >&5 17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17068 (exit $ac_status); } && 17069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17070 { (case "(($ac_try" in 17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17072 *) ac_try_echo=$ac_try;; 17073 esac 17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17075 (eval "$ac_try") 2>&5 17076 ac_status=$? 17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17078 (exit $ac_status); }; } && 17079 { ac_try='test -s conftest.$ac_objext' 17080 { (case "(($ac_try" in 17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17082 *) ac_try_echo=$ac_try;; 17083 esac 17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17085 (eval "$ac_try") 2>&5 17086 ac_status=$? 17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17088 (exit $ac_status); }; }; then 17089 ac_cv_type_u_int64_t=yes 17090 else 17091 echo "$as_me: failed program was:" >&5 17092 sed 's/^/| /' conftest.$ac_ext >&5 17093 17094 ac_cv_type_u_int64_t=no 17095 fi 17096 17097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17098 fi 17099 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 17100 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 17101 if test $ac_cv_type_u_int64_t = yes; then 17102 17103 cat >>confdefs.h <<_ACEOF 17104 #define HAVE_U_INT64_T 1 17105 _ACEOF 17106 17107 17108 else 17109 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 17110 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 17111 { (exit 1); exit 1; }; } 17112 fi 17113 17114 fi 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 17126 do 17127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17128 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17131 echo $ECHO_N "(cached) $ECHO_C" >&6 17132 else 17133 cat >conftest.$ac_ext <<_ACEOF 17134 /* confdefs.h. */ 17135 _ACEOF 17136 cat confdefs.h >>conftest.$ac_ext 17137 cat >>conftest.$ac_ext <<_ACEOF 17138 /* end confdefs.h. */ 17139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17140 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17141 #define $ac_func innocuous_$ac_func 17142 17143 /* System header to define __stub macros and hopefully few prototypes, 17144 which can conflict with char $ac_func (); below. 17145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17146 <limits.h> exists even on freestanding compilers. */ 17147 17148 #ifdef __STDC__ 17149 # include <limits.h> 17150 #else 17151 # include <assert.h> 17152 #endif 17153 17154 #undef $ac_func 17155 17156 /* Override any GCC internal prototype to avoid an error. 17157 Use char because int might match the return type of a GCC 17158 builtin and then its argument prototype would still apply. */ 17159 #ifdef __cplusplus 17160 extern "C" 17161 #endif 17162 char $ac_func (); 17163 /* The GNU C library defines this for functions which it implements 17164 to always fail with ENOSYS. Some functions are actually named 17165 something starting with __ and the normal name is an alias. */ 17166 #if defined __stub_$ac_func || defined __stub___$ac_func 17167 choke me 17168 #endif 17169 17170 int 17171 main () 17172 { 17173 return $ac_func (); 17174 ; 17175 return 0; 17176 } 17177 _ACEOF 17178 rm -f conftest.$ac_objext conftest$ac_exeext 17179 if { (ac_try="$ac_link" 17180 case "(($ac_try" in 17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17182 *) ac_try_echo=$ac_try;; 17183 esac 17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17185 (eval "$ac_link") 2>conftest.er1 17186 ac_status=$? 17187 grep -v '^ *+' conftest.er1 >conftest.err 17188 rm -f conftest.er1 17189 cat conftest.err >&5 17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17191 (exit $ac_status); } && 17192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17193 { (case "(($ac_try" in 17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17195 *) ac_try_echo=$ac_try;; 17196 esac 17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17198 (eval "$ac_try") 2>&5 17199 ac_status=$? 17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17201 (exit $ac_status); }; } && 17202 { ac_try='test -s conftest$ac_exeext' 17203 { (case "(($ac_try" in 17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17205 *) ac_try_echo=$ac_try;; 17206 esac 17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17208 (eval "$ac_try") 2>&5 17209 ac_status=$? 17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17211 (exit $ac_status); }; }; then 17212 eval "$as_ac_var=yes" 17213 else 17214 echo "$as_me: failed program was:" >&5 17215 sed 's/^/| /' conftest.$ac_ext >&5 17216 17217 eval "$as_ac_var=no" 17218 fi 17219 17220 rm -f core conftest.err conftest.$ac_objext \ 17221 conftest$ac_exeext conftest.$ac_ext 17222 fi 17223 ac_res=`eval echo '${'$as_ac_var'}'` 17224 { echo "$as_me:$LINENO: result: $ac_res" >&5 17225 echo "${ECHO_T}$ac_res" >&6; } 17226 if test `eval echo '${'$as_ac_var'}'` = yes; then 17227 cat >>confdefs.h <<_ACEOF 17228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17229 _ACEOF 17230 17231 fi 17232 done 17233 17234 17235 17236 17237 17238 for ac_func in powf fmodf strtof round 17239 do 17240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17241 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17244 echo $ECHO_N "(cached) $ECHO_C" >&6 17245 else 17246 cat >conftest.$ac_ext <<_ACEOF 17247 /* confdefs.h. */ 17248 _ACEOF 17249 cat confdefs.h >>conftest.$ac_ext 17250 cat >>conftest.$ac_ext <<_ACEOF 17251 /* end confdefs.h. */ 17252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17253 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17254 #define $ac_func innocuous_$ac_func 17255 17256 /* System header to define __stub macros and hopefully few prototypes, 17257 which can conflict with char $ac_func (); below. 17258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17259 <limits.h> exists even on freestanding compilers. */ 17260 17261 #ifdef __STDC__ 17262 # include <limits.h> 17263 #else 17264 # include <assert.h> 17265 #endif 17266 17267 #undef $ac_func 17268 17269 /* Override any GCC internal prototype to avoid an error. 17270 Use char because int might match the return type of a GCC 17271 builtin and then its argument prototype would still apply. */ 17272 #ifdef __cplusplus 17273 extern "C" 17274 #endif 17275 char $ac_func (); 17276 /* The GNU C library defines this for functions which it implements 17277 to always fail with ENOSYS. Some functions are actually named 17278 something starting with __ and the normal name is an alias. */ 17279 #if defined __stub_$ac_func || defined __stub___$ac_func 17280 choke me 17281 #endif 17282 17283 int 17284 main () 17285 { 17286 return $ac_func (); 17287 ; 17288 return 0; 17289 } 17290 _ACEOF 17291 rm -f conftest.$ac_objext conftest$ac_exeext 17292 if { (ac_try="$ac_link" 17293 case "(($ac_try" in 17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17295 *) ac_try_echo=$ac_try;; 17296 esac 17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17298 (eval "$ac_link") 2>conftest.er1 17299 ac_status=$? 17300 grep -v '^ *+' conftest.er1 >conftest.err 17301 rm -f conftest.er1 17302 cat conftest.err >&5 17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17304 (exit $ac_status); } && 17305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17306 { (case "(($ac_try" in 17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17308 *) ac_try_echo=$ac_try;; 17309 esac 17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17311 (eval "$ac_try") 2>&5 17312 ac_status=$? 17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17314 (exit $ac_status); }; } && 17315 { ac_try='test -s conftest$ac_exeext' 17316 { (case "(($ac_try" in 17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17318 *) ac_try_echo=$ac_try;; 17319 esac 17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17321 (eval "$ac_try") 2>&5 17322 ac_status=$? 17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17324 (exit $ac_status); }; }; then 17325 eval "$as_ac_var=yes" 17326 else 17327 echo "$as_me: failed program was:" >&5 17328 sed 's/^/| /' conftest.$ac_ext >&5 17329 17330 eval "$as_ac_var=no" 17331 fi 17332 17333 rm -f core conftest.err conftest.$ac_objext \ 17334 conftest$ac_exeext conftest.$ac_ext 17335 fi 17336 ac_res=`eval echo '${'$as_ac_var'}'` 17337 { echo "$as_me:$LINENO: result: $ac_res" >&5 17338 echo "${ECHO_T}$ac_res" >&6; } 17339 if test `eval echo '${'$as_ac_var'}'` = yes; then 17340 cat >>confdefs.h <<_ACEOF 17341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17342 _ACEOF 17343 17344 fi 17345 done 17346 17347 17348 17349 17350 17351 17352 for ac_func in log log2 log10 exp exp2 17353 do 17354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17355 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17358 echo $ECHO_N "(cached) $ECHO_C" >&6 17359 else 17360 cat >conftest.$ac_ext <<_ACEOF 17361 /* confdefs.h. */ 17362 _ACEOF 17363 cat confdefs.h >>conftest.$ac_ext 17364 cat >>conftest.$ac_ext <<_ACEOF 17365 /* end confdefs.h. */ 17366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17367 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17368 #define $ac_func innocuous_$ac_func 17369 17370 /* System header to define __stub macros and hopefully few prototypes, 17371 which can conflict with char $ac_func (); below. 17372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17373 <limits.h> exists even on freestanding compilers. */ 17374 17375 #ifdef __STDC__ 17376 # include <limits.h> 17377 #else 17378 # include <assert.h> 17379 #endif 17380 17381 #undef $ac_func 17382 17383 /* Override any GCC internal prototype to avoid an error. 17384 Use char because int might match the return type of a GCC 17385 builtin and then its argument prototype would still apply. */ 17386 #ifdef __cplusplus 17387 extern "C" 17388 #endif 17389 char $ac_func (); 17390 /* The GNU C library defines this for functions which it implements 17391 to always fail with ENOSYS. Some functions are actually named 17392 something starting with __ and the normal name is an alias. */ 17393 #if defined __stub_$ac_func || defined __stub___$ac_func 17394 choke me 17395 #endif 17396 17397 int 17398 main () 17399 { 17400 return $ac_func (); 17401 ; 17402 return 0; 17403 } 17404 _ACEOF 17405 rm -f conftest.$ac_objext conftest$ac_exeext 17406 if { (ac_try="$ac_link" 17407 case "(($ac_try" in 17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17409 *) ac_try_echo=$ac_try;; 17410 esac 17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17412 (eval "$ac_link") 2>conftest.er1 17413 ac_status=$? 17414 grep -v '^ *+' conftest.er1 >conftest.err 17415 rm -f conftest.er1 17416 cat conftest.err >&5 17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17418 (exit $ac_status); } && 17419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17420 { (case "(($ac_try" in 17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17422 *) ac_try_echo=$ac_try;; 17423 esac 17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17425 (eval "$ac_try") 2>&5 17426 ac_status=$? 17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17428 (exit $ac_status); }; } && 17429 { ac_try='test -s conftest$ac_exeext' 17430 { (case "(($ac_try" in 17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17432 *) ac_try_echo=$ac_try;; 17433 esac 17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17435 (eval "$ac_try") 2>&5 17436 ac_status=$? 17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17438 (exit $ac_status); }; }; then 17439 eval "$as_ac_var=yes" 17440 else 17441 echo "$as_me: failed program was:" >&5 17442 sed 's/^/| /' conftest.$ac_ext >&5 17443 17444 eval "$as_ac_var=no" 17445 fi 17446 17447 rm -f core conftest.err conftest.$ac_objext \ 17448 conftest$ac_exeext conftest.$ac_ext 17449 fi 17450 ac_res=`eval echo '${'$as_ac_var'}'` 17451 { echo "$as_me:$LINENO: result: $ac_res" >&5 17452 echo "${ECHO_T}$ac_res" >&6; } 17453 if test `eval echo '${'$as_ac_var'}'` = yes; then 17454 cat >>confdefs.h <<_ACEOF 17455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17456 _ACEOF 17457 17458 fi 17459 done 17460 17461 17462 17463 17464 17465 17466 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 17467 do 17468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17469 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17472 echo $ECHO_N "(cached) $ECHO_C" >&6 17473 else 17474 cat >conftest.$ac_ext <<_ACEOF 17475 /* confdefs.h. */ 17476 _ACEOF 17477 cat confdefs.h >>conftest.$ac_ext 17478 cat >>conftest.$ac_ext <<_ACEOF 17479 /* end confdefs.h. */ 17480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17481 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17482 #define $ac_func innocuous_$ac_func 17483 17484 /* System header to define __stub macros and hopefully few prototypes, 17485 which can conflict with char $ac_func (); below. 17486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17487 <limits.h> exists even on freestanding compilers. */ 17488 17489 #ifdef __STDC__ 17490 # include <limits.h> 17491 #else 17492 # include <assert.h> 17493 #endif 17494 17495 #undef $ac_func 17496 17497 /* Override any GCC internal prototype to avoid an error. 17498 Use char because int might match the return type of a GCC 17499 builtin and then its argument prototype would still apply. */ 17500 #ifdef __cplusplus 17501 extern "C" 17502 #endif 17503 char $ac_func (); 17504 /* The GNU C library defines this for functions which it implements 17505 to always fail with ENOSYS. Some functions are actually named 17506 something starting with __ and the normal name is an alias. */ 17507 #if defined __stub_$ac_func || defined __stub___$ac_func 17508 choke me 17509 #endif 17510 17511 int 17512 main () 17513 { 17514 return $ac_func (); 17515 ; 17516 return 0; 17517 } 17518 _ACEOF 17519 rm -f conftest.$ac_objext conftest$ac_exeext 17520 if { (ac_try="$ac_link" 17521 case "(($ac_try" in 17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17523 *) ac_try_echo=$ac_try;; 17524 esac 17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17526 (eval "$ac_link") 2>conftest.er1 17527 ac_status=$? 17528 grep -v '^ *+' conftest.er1 >conftest.err 17529 rm -f conftest.er1 17530 cat conftest.err >&5 17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17532 (exit $ac_status); } && 17533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17534 { (case "(($ac_try" in 17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17536 *) ac_try_echo=$ac_try;; 17537 esac 17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17539 (eval "$ac_try") 2>&5 17540 ac_status=$? 17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17542 (exit $ac_status); }; } && 17543 { ac_try='test -s conftest$ac_exeext' 17544 { (case "(($ac_try" in 17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17546 *) ac_try_echo=$ac_try;; 17547 esac 17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17549 (eval "$ac_try") 2>&5 17550 ac_status=$? 17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17552 (exit $ac_status); }; }; then 17553 eval "$as_ac_var=yes" 17554 else 17555 echo "$as_me: failed program was:" >&5 17556 sed 's/^/| /' conftest.$ac_ext >&5 17557 17558 eval "$as_ac_var=no" 17559 fi 17560 17561 rm -f core conftest.err conftest.$ac_objext \ 17562 conftest$ac_exeext conftest.$ac_ext 17563 fi 17564 ac_res=`eval echo '${'$as_ac_var'}'` 17565 { echo "$as_me:$LINENO: result: $ac_res" >&5 17566 echo "${ECHO_T}$ac_res" >&6; } 17567 if test `eval echo '${'$as_ac_var'}'` = yes; then 17568 cat >>confdefs.h <<_ACEOF 17569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17570 _ACEOF 17571 17572 fi 17573 done 17574 17575 17576 17577 17578 for ac_func in isatty mkdtemp mkstemp 17579 do 17580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17581 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17584 echo $ECHO_N "(cached) $ECHO_C" >&6 17585 else 17586 cat >conftest.$ac_ext <<_ACEOF 17587 /* confdefs.h. */ 17588 _ACEOF 17589 cat confdefs.h >>conftest.$ac_ext 17590 cat >>conftest.$ac_ext <<_ACEOF 17591 /* end confdefs.h. */ 17592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17594 #define $ac_func innocuous_$ac_func 17595 17596 /* System header to define __stub macros and hopefully few prototypes, 17597 which can conflict with char $ac_func (); below. 17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17599 <limits.h> exists even on freestanding compilers. */ 17600 17601 #ifdef __STDC__ 17602 # include <limits.h> 17603 #else 17604 # include <assert.h> 17605 #endif 17606 17607 #undef $ac_func 17608 17609 /* Override any GCC internal prototype to avoid an error. 17610 Use char because int might match the return type of a GCC 17611 builtin and then its argument prototype would still apply. */ 17612 #ifdef __cplusplus 17613 extern "C" 17614 #endif 17615 char $ac_func (); 17616 /* The GNU C library defines this for functions which it implements 17617 to always fail with ENOSYS. Some functions are actually named 17618 something starting with __ and the normal name is an alias. */ 17619 #if defined __stub_$ac_func || defined __stub___$ac_func 17620 choke me 17621 #endif 17622 17623 int 17624 main () 17625 { 17626 return $ac_func (); 17627 ; 17628 return 0; 17629 } 17630 _ACEOF 17631 rm -f conftest.$ac_objext conftest$ac_exeext 17632 if { (ac_try="$ac_link" 17633 case "(($ac_try" in 17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17635 *) ac_try_echo=$ac_try;; 17636 esac 17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17638 (eval "$ac_link") 2>conftest.er1 17639 ac_status=$? 17640 grep -v '^ *+' conftest.er1 >conftest.err 17641 rm -f conftest.er1 17642 cat conftest.err >&5 17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17644 (exit $ac_status); } && 17645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17646 { (case "(($ac_try" in 17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17648 *) ac_try_echo=$ac_try;; 17649 esac 17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17651 (eval "$ac_try") 2>&5 17652 ac_status=$? 17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17654 (exit $ac_status); }; } && 17655 { ac_try='test -s conftest$ac_exeext' 17656 { (case "(($ac_try" in 17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17658 *) ac_try_echo=$ac_try;; 17659 esac 17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17661 (eval "$ac_try") 2>&5 17662 ac_status=$? 17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17664 (exit $ac_status); }; }; then 17665 eval "$as_ac_var=yes" 17666 else 17667 echo "$as_me: failed program was:" >&5 17668 sed 's/^/| /' conftest.$ac_ext >&5 17669 17670 eval "$as_ac_var=no" 17671 fi 17672 17673 rm -f core conftest.err conftest.$ac_objext \ 17674 conftest$ac_exeext conftest.$ac_ext 17675 fi 17676 ac_res=`eval echo '${'$as_ac_var'}'` 17677 { echo "$as_me:$LINENO: result: $ac_res" >&5 17678 echo "${ECHO_T}$ac_res" >&6; } 17679 if test `eval echo '${'$as_ac_var'}'` = yes; then 17680 cat >>confdefs.h <<_ACEOF 17681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17682 _ACEOF 17683 17684 fi 17685 done 17686 17687 17688 17689 17690 17691 17692 17693 17694 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup 17695 do 17696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17697 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17700 echo $ECHO_N "(cached) $ECHO_C" >&6 17701 else 17702 cat >conftest.$ac_ext <<_ACEOF 17703 /* confdefs.h. */ 17704 _ACEOF 17705 cat confdefs.h >>conftest.$ac_ext 17706 cat >>conftest.$ac_ext <<_ACEOF 17707 /* end confdefs.h. */ 17708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17709 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17710 #define $ac_func innocuous_$ac_func 17711 17712 /* System header to define __stub macros and hopefully few prototypes, 17713 which can conflict with char $ac_func (); below. 17714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17715 <limits.h> exists even on freestanding compilers. */ 17716 17717 #ifdef __STDC__ 17718 # include <limits.h> 17719 #else 17720 # include <assert.h> 17721 #endif 17722 17723 #undef $ac_func 17724 17725 /* Override any GCC internal prototype to avoid an error. 17726 Use char because int might match the return type of a GCC 17727 builtin and then its argument prototype would still apply. */ 17728 #ifdef __cplusplus 17729 extern "C" 17730 #endif 17731 char $ac_func (); 17732 /* The GNU C library defines this for functions which it implements 17733 to always fail with ENOSYS. Some functions are actually named 17734 something starting with __ and the normal name is an alias. */ 17735 #if defined __stub_$ac_func || defined __stub___$ac_func 17736 choke me 17737 #endif 17738 17739 int 17740 main () 17741 { 17742 return $ac_func (); 17743 ; 17744 return 0; 17745 } 17746 _ACEOF 17747 rm -f conftest.$ac_objext conftest$ac_exeext 17748 if { (ac_try="$ac_link" 17749 case "(($ac_try" in 17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17751 *) ac_try_echo=$ac_try;; 17752 esac 17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17754 (eval "$ac_link") 2>conftest.er1 17755 ac_status=$? 17756 grep -v '^ *+' conftest.er1 >conftest.err 17757 rm -f conftest.er1 17758 cat conftest.err >&5 17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17760 (exit $ac_status); } && 17761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17762 { (case "(($ac_try" in 17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17764 *) ac_try_echo=$ac_try;; 17765 esac 17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17767 (eval "$ac_try") 2>&5 17768 ac_status=$? 17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17770 (exit $ac_status); }; } && 17771 { ac_try='test -s conftest$ac_exeext' 17772 { (case "(($ac_try" in 17773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17774 *) ac_try_echo=$ac_try;; 17775 esac 17776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17777 (eval "$ac_try") 2>&5 17778 ac_status=$? 17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17780 (exit $ac_status); }; }; then 17781 eval "$as_ac_var=yes" 17782 else 17783 echo "$as_me: failed program was:" >&5 17784 sed 's/^/| /' conftest.$ac_ext >&5 17785 17786 eval "$as_ac_var=no" 17787 fi 17788 17789 rm -f core conftest.err conftest.$ac_objext \ 17790 conftest$ac_exeext conftest.$ac_ext 17791 fi 17792 ac_res=`eval echo '${'$as_ac_var'}'` 17793 { echo "$as_me:$LINENO: result: $ac_res" >&5 17794 echo "${ECHO_T}$ac_res" >&6; } 17795 if test `eval echo '${'$as_ac_var'}'` = yes; then 17796 cat >>confdefs.h <<_ACEOF 17797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17798 _ACEOF 17799 17800 fi 17801 done 17802 17803 17804 17805 17806 17807 for ac_func in strerror strerror_r setenv arc4random 17808 do 17809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17810 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17813 echo $ECHO_N "(cached) $ECHO_C" >&6 17814 else 17815 cat >conftest.$ac_ext <<_ACEOF 17816 /* confdefs.h. */ 17817 _ACEOF 17818 cat confdefs.h >>conftest.$ac_ext 17819 cat >>conftest.$ac_ext <<_ACEOF 17820 /* end confdefs.h. */ 17821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17822 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17823 #define $ac_func innocuous_$ac_func 17824 17825 /* System header to define __stub macros and hopefully few prototypes, 17826 which can conflict with char $ac_func (); below. 17827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17828 <limits.h> exists even on freestanding compilers. */ 17829 17830 #ifdef __STDC__ 17831 # include <limits.h> 17832 #else 17833 # include <assert.h> 17834 #endif 17835 17836 #undef $ac_func 17837 17838 /* Override any GCC internal prototype to avoid an error. 17839 Use char because int might match the return type of a GCC 17840 builtin and then its argument prototype would still apply. */ 17841 #ifdef __cplusplus 17842 extern "C" 17843 #endif 17844 char $ac_func (); 17845 /* The GNU C library defines this for functions which it implements 17846 to always fail with ENOSYS. Some functions are actually named 17847 something starting with __ and the normal name is an alias. */ 17848 #if defined __stub_$ac_func || defined __stub___$ac_func 17849 choke me 17850 #endif 17851 17852 int 17853 main () 17854 { 17855 return $ac_func (); 17856 ; 17857 return 0; 17858 } 17859 _ACEOF 17860 rm -f conftest.$ac_objext conftest$ac_exeext 17861 if { (ac_try="$ac_link" 17862 case "(($ac_try" in 17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17864 *) ac_try_echo=$ac_try;; 17865 esac 17866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17867 (eval "$ac_link") 2>conftest.er1 17868 ac_status=$? 17869 grep -v '^ *+' conftest.er1 >conftest.err 17870 rm -f conftest.er1 17871 cat conftest.err >&5 17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17873 (exit $ac_status); } && 17874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17875 { (case "(($ac_try" in 17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17877 *) ac_try_echo=$ac_try;; 17878 esac 17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17880 (eval "$ac_try") 2>&5 17881 ac_status=$? 17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17883 (exit $ac_status); }; } && 17884 { ac_try='test -s conftest$ac_exeext' 17885 { (case "(($ac_try" in 17886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17887 *) ac_try_echo=$ac_try;; 17888 esac 17889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17890 (eval "$ac_try") 2>&5 17891 ac_status=$? 17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17893 (exit $ac_status); }; }; then 17894 eval "$as_ac_var=yes" 17895 else 17896 echo "$as_me: failed program was:" >&5 17897 sed 's/^/| /' conftest.$ac_ext >&5 17898 17899 eval "$as_ac_var=no" 17900 fi 17901 17902 rm -f core conftest.err conftest.$ac_objext \ 17903 conftest$ac_exeext conftest.$ac_ext 17904 fi 17905 ac_res=`eval echo '${'$as_ac_var'}'` 17906 { echo "$as_me:$LINENO: result: $ac_res" >&5 17907 echo "${ECHO_T}$ac_res" >&6; } 17908 if test `eval echo '${'$as_ac_var'}'` = yes; then 17909 cat >>confdefs.h <<_ACEOF 17910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17911 _ACEOF 17912 17913 fi 17914 done 17915 17916 17917 17918 17919 17920 for ac_func in strtoll strtoq sysconf malloc_zone_statistics 17921 do 17922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17923 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17926 echo $ECHO_N "(cached) $ECHO_C" >&6 17927 else 17928 cat >conftest.$ac_ext <<_ACEOF 17929 /* confdefs.h. */ 17930 _ACEOF 17931 cat confdefs.h >>conftest.$ac_ext 17932 cat >>conftest.$ac_ext <<_ACEOF 17933 /* end confdefs.h. */ 17934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17935 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17936 #define $ac_func innocuous_$ac_func 17937 17938 /* System header to define __stub macros and hopefully few prototypes, 17939 which can conflict with char $ac_func (); below. 17940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17941 <limits.h> exists even on freestanding compilers. */ 17942 17943 #ifdef __STDC__ 17944 # include <limits.h> 17945 #else 17946 # include <assert.h> 17947 #endif 17948 17949 #undef $ac_func 17950 17951 /* Override any GCC internal prototype to avoid an error. 17952 Use char because int might match the return type of a GCC 17953 builtin and then its argument prototype would still apply. */ 17954 #ifdef __cplusplus 17955 extern "C" 17956 #endif 17957 char $ac_func (); 17958 /* The GNU C library defines this for functions which it implements 17959 to always fail with ENOSYS. Some functions are actually named 17960 something starting with __ and the normal name is an alias. */ 17961 #if defined __stub_$ac_func || defined __stub___$ac_func 17962 choke me 17963 #endif 17964 17965 int 17966 main () 17967 { 17968 return $ac_func (); 17969 ; 17970 return 0; 17971 } 17972 _ACEOF 17973 rm -f conftest.$ac_objext conftest$ac_exeext 17974 if { (ac_try="$ac_link" 17975 case "(($ac_try" in 17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17977 *) ac_try_echo=$ac_try;; 17978 esac 17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17980 (eval "$ac_link") 2>conftest.er1 17981 ac_status=$? 17982 grep -v '^ *+' conftest.er1 >conftest.err 17983 rm -f conftest.er1 17984 cat conftest.err >&5 17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17986 (exit $ac_status); } && 17987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17988 { (case "(($ac_try" in 17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17990 *) ac_try_echo=$ac_try;; 17991 esac 17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17993 (eval "$ac_try") 2>&5 17994 ac_status=$? 17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17996 (exit $ac_status); }; } && 17997 { ac_try='test -s conftest$ac_exeext' 17998 { (case "(($ac_try" in 17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18000 *) ac_try_echo=$ac_try;; 18001 esac 18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18003 (eval "$ac_try") 2>&5 18004 ac_status=$? 18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18006 (exit $ac_status); }; }; then 18007 eval "$as_ac_var=yes" 18008 else 18009 echo "$as_me: failed program was:" >&5 18010 sed 's/^/| /' conftest.$ac_ext >&5 18011 18012 eval "$as_ac_var=no" 18013 fi 18014 18015 rm -f core conftest.err conftest.$ac_objext \ 18016 conftest$ac_exeext conftest.$ac_ext 18017 fi 18018 ac_res=`eval echo '${'$as_ac_var'}'` 18019 { echo "$as_me:$LINENO: result: $ac_res" >&5 18020 echo "${ECHO_T}$ac_res" >&6; } 18021 if test `eval echo '${'$as_ac_var'}'` = yes; then 18022 cat >>confdefs.h <<_ACEOF 18023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18024 _ACEOF 18025 18026 fi 18027 done 18028 18029 18030 18031 18032 18033 18034 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 18035 do 18036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18037 { echo "$as_me:$LINENO: checking for $ac_func" >&5 18038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18040 echo $ECHO_N "(cached) $ECHO_C" >&6 18041 else 18042 cat >conftest.$ac_ext <<_ACEOF 18043 /* confdefs.h. */ 18044 _ACEOF 18045 cat confdefs.h >>conftest.$ac_ext 18046 cat >>conftest.$ac_ext <<_ACEOF 18047 /* end confdefs.h. */ 18048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18049 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18050 #define $ac_func innocuous_$ac_func 18051 18052 /* System header to define __stub macros and hopefully few prototypes, 18053 which can conflict with char $ac_func (); below. 18054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18055 <limits.h> exists even on freestanding compilers. */ 18056 18057 #ifdef __STDC__ 18058 # include <limits.h> 18059 #else 18060 # include <assert.h> 18061 #endif 18062 18063 #undef $ac_func 18064 18065 /* Override any GCC internal prototype to avoid an error. 18066 Use char because int might match the return type of a GCC 18067 builtin and then its argument prototype would still apply. */ 18068 #ifdef __cplusplus 18069 extern "C" 18070 #endif 18071 char $ac_func (); 18072 /* The GNU C library defines this for functions which it implements 18073 to always fail with ENOSYS. Some functions are actually named 18074 something starting with __ and the normal name is an alias. */ 18075 #if defined __stub_$ac_func || defined __stub___$ac_func 18076 choke me 18077 #endif 18078 18079 int 18080 main () 18081 { 18082 return $ac_func (); 18083 ; 18084 return 0; 18085 } 18086 _ACEOF 18087 rm -f conftest.$ac_objext conftest$ac_exeext 18088 if { (ac_try="$ac_link" 18089 case "(($ac_try" in 18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18091 *) ac_try_echo=$ac_try;; 18092 esac 18093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18094 (eval "$ac_link") 2>conftest.er1 18095 ac_status=$? 18096 grep -v '^ *+' conftest.er1 >conftest.err 18097 rm -f conftest.er1 18098 cat conftest.err >&5 18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18100 (exit $ac_status); } && 18101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18102 { (case "(($ac_try" in 18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18104 *) ac_try_echo=$ac_try;; 18105 esac 18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18107 (eval "$ac_try") 2>&5 18108 ac_status=$? 18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18110 (exit $ac_status); }; } && 18111 { ac_try='test -s conftest$ac_exeext' 18112 { (case "(($ac_try" in 18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18114 *) ac_try_echo=$ac_try;; 18115 esac 18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18117 (eval "$ac_try") 2>&5 18118 ac_status=$? 18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18120 (exit $ac_status); }; }; then 18121 eval "$as_ac_var=yes" 18122 else 18123 echo "$as_me: failed program was:" >&5 18124 sed 's/^/| /' conftest.$ac_ext >&5 18125 18126 eval "$as_ac_var=no" 18127 fi 18128 18129 rm -f core conftest.err conftest.$ac_objext \ 18130 conftest$ac_exeext conftest.$ac_ext 18131 fi 18132 ac_res=`eval echo '${'$as_ac_var'}'` 18133 { echo "$as_me:$LINENO: result: $ac_res" >&5 18134 echo "${ECHO_T}$ac_res" >&6; } 18135 if test `eval echo '${'$as_ac_var'}'` = yes; then 18136 cat >>confdefs.h <<_ACEOF 18137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18138 _ACEOF 18139 18140 fi 18141 done 18142 18143 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 18144 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 18145 if test "${llvm_cv_c_printf_a+set}" = set; then 18146 echo $ECHO_N "(cached) $ECHO_C" >&6 18147 else 18148 ac_ext=c 18149 ac_cpp='$CPP $CPPFLAGS' 18150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18152 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18153 18154 if test "$cross_compiling" = yes; then 18155 llvmac_cv_c_printf_a=no 18156 else 18157 cat >conftest.$ac_ext <<_ACEOF 18158 18159 /* confdefs.h. */ 18160 _ACEOF 18161 cat confdefs.h >>conftest.$ac_ext 18162 cat >>conftest.$ac_ext <<_ACEOF 18163 /* end confdefs.h. */ 18164 18165 #include <stdio.h> 18166 #include <stdlib.h> 18167 18168 int 18169 main () 18170 { 18171 18172 volatile double A, B; 18173 char Buffer[100]; 18174 A = 1; 18175 A /= 10.0; 18176 sprintf(Buffer, "%a", A); 18177 B = atof(Buffer); 18178 if (A != B) 18179 return (1); 18180 if (A != 0x1.999999999999ap-4) 18181 return (1); 18182 return (0); 18183 ; 18184 return 0; 18185 } 18186 _ACEOF 18187 rm -f conftest$ac_exeext 18188 if { (ac_try="$ac_link" 18189 case "(($ac_try" in 18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18191 *) ac_try_echo=$ac_try;; 18192 esac 18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18194 (eval "$ac_link") 2>&5 18195 ac_status=$? 18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18198 { (case "(($ac_try" in 18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18200 *) ac_try_echo=$ac_try;; 18201 esac 18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18203 (eval "$ac_try") 2>&5 18204 ac_status=$? 18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18206 (exit $ac_status); }; }; then 18207 llvm_cv_c_printf_a=yes 18208 else 18209 echo "$as_me: program exited with status $ac_status" >&5 18210 echo "$as_me: failed program was:" >&5 18211 sed 's/^/| /' conftest.$ac_ext >&5 18212 18213 ( exit $ac_status ) 18214 llvmac_cv_c_printf_a=no 18215 fi 18216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18217 fi 18218 18219 18220 ac_ext=c 18221 ac_cpp='$CPP $CPPFLAGS' 18222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18224 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18225 18226 fi 18227 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 18228 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 18229 if test "$llvm_cv_c_printf_a" = "yes"; then 18230 18231 cat >>confdefs.h <<\_ACEOF 18232 #define HAVE_PRINTF_A 1 18233 _ACEOF 18234 18235 fi 18236 18237 18238 18239 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 18240 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 18241 if test "${ac_cv_func_rand48+set}" = set; then 18242 echo $ECHO_N "(cached) $ECHO_C" >&6 18243 else 18244 18245 ac_ext=cpp 18246 ac_cpp='$CXXCPP $CPPFLAGS' 18247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18250 18251 cat >conftest.$ac_ext <<_ACEOF 18252 /* confdefs.h. */ 18253 _ACEOF 18254 cat confdefs.h >>conftest.$ac_ext 18255 cat >>conftest.$ac_ext <<_ACEOF 18256 /* end confdefs.h. */ 18257 #include <stdlib.h> 18258 int 18259 main () 18260 { 18261 srand48(0);lrand48();drand48(); 18262 ; 18263 return 0; 18264 } 18265 _ACEOF 18266 rm -f conftest.$ac_objext 18267 if { (ac_try="$ac_compile" 18268 case "(($ac_try" in 18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18270 *) ac_try_echo=$ac_try;; 18271 esac 18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18273 (eval "$ac_compile") 2>conftest.er1 18274 ac_status=$? 18275 grep -v '^ *+' conftest.er1 >conftest.err 18276 rm -f conftest.er1 18277 cat conftest.err >&5 18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18279 (exit $ac_status); } && 18280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18281 { (case "(($ac_try" in 18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18283 *) ac_try_echo=$ac_try;; 18284 esac 18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18286 (eval "$ac_try") 2>&5 18287 ac_status=$? 18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18289 (exit $ac_status); }; } && 18290 { ac_try='test -s conftest.$ac_objext' 18291 { (case "(($ac_try" in 18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18293 *) ac_try_echo=$ac_try;; 18294 esac 18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18296 (eval "$ac_try") 2>&5 18297 ac_status=$? 18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18299 (exit $ac_status); }; }; then 18300 ac_cv_func_rand48=yes 18301 else 18302 echo "$as_me: failed program was:" >&5 18303 sed 's/^/| /' conftest.$ac_ext >&5 18304 18305 ac_cv_func_rand48=no 18306 fi 18307 18308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18309 ac_ext=c 18310 ac_cpp='$CPP $CPPFLAGS' 18311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18313 ac_compiler_gnu=$ac_cv_c_compiler_gnu 18314 18315 18316 fi 18317 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 18318 echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 18319 18320 if test "$ac_cv_func_rand48" = "yes" ; then 18321 18322 cat >>confdefs.h <<\_ACEOF 18323 #define HAVE_RAND48 1 18324 _ACEOF 18325 18326 fi 18327 18328 18329 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 18330 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 18331 if test "${ac_cv_have_decl_strerror_s+set}" = set; then 18332 echo $ECHO_N "(cached) $ECHO_C" >&6 18333 else 18334 cat >conftest.$ac_ext <<_ACEOF 18335 /* confdefs.h. */ 18336 _ACEOF 18337 cat confdefs.h >>conftest.$ac_ext 18338 cat >>conftest.$ac_ext <<_ACEOF 18339 /* end confdefs.h. */ 18340 $ac_includes_default 18341 int 18342 main () 18343 { 18344 #ifndef strerror_s 18345 char *p = (char *) strerror_s; 18346 return !p; 18347 #endif 18348 18349 ; 18350 return 0; 18351 } 18352 _ACEOF 18353 rm -f conftest.$ac_objext 18354 if { (ac_try="$ac_compile" 18355 case "(($ac_try" in 18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18357 *) ac_try_echo=$ac_try;; 18358 esac 18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18360 (eval "$ac_compile") 2>conftest.er1 18361 ac_status=$? 18362 grep -v '^ *+' conftest.er1 >conftest.err 18363 rm -f conftest.er1 18364 cat conftest.err >&5 18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18366 (exit $ac_status); } && 18367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18368 { (case "(($ac_try" in 18369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18370 *) ac_try_echo=$ac_try;; 18371 esac 18372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18373 (eval "$ac_try") 2>&5 18374 ac_status=$? 18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18376 (exit $ac_status); }; } && 18377 { ac_try='test -s conftest.$ac_objext' 18378 { (case "(($ac_try" in 18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18380 *) ac_try_echo=$ac_try;; 18381 esac 18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18383 (eval "$ac_try") 2>&5 18384 ac_status=$? 18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18386 (exit $ac_status); }; }; then 18387 ac_cv_have_decl_strerror_s=yes 18388 else 18389 echo "$as_me: failed program was:" >&5 18390 sed 's/^/| /' conftest.$ac_ext >&5 18391 18392 ac_cv_have_decl_strerror_s=no 18393 fi 18394 18395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18396 fi 18397 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 18398 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 18399 if test $ac_cv_have_decl_strerror_s = yes; then 18400 18401 cat >>confdefs.h <<_ACEOF 18402 #define HAVE_DECL_STRERROR_S 1 18403 _ACEOF 18404 18405 18406 else 18407 cat >>confdefs.h <<_ACEOF 18408 #define HAVE_DECL_STRERROR_S 0 18409 _ACEOF 18410 18411 18412 fi 18413 18414 18415 18416 if test "$llvm_cv_os_type" = "MingW" ; then 18417 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 18418 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 18419 if test "${ac_cv_lib_gcc__alloca+set}" = set; then 18420 echo $ECHO_N "(cached) $ECHO_C" >&6 18421 else 18422 ac_check_lib_save_LIBS=$LIBS 18423 LIBS="-lgcc $LIBS" 18424 cat >conftest.$ac_ext <<_ACEOF 18425 /* confdefs.h. */ 18426 _ACEOF 18427 cat confdefs.h >>conftest.$ac_ext 18428 cat >>conftest.$ac_ext <<_ACEOF 18429 /* end confdefs.h. */ 18430 18431 /* Override any GCC internal prototype to avoid an error. 18432 Use char because int might match the return type of a GCC 18433 builtin and then its argument prototype would still apply. */ 18434 #ifdef __cplusplus 18435 extern "C" 18436 #endif 18437 char _alloca (); 18438 int 18439 main () 18440 { 18441 return _alloca (); 18442 ; 18443 return 0; 18444 } 18445 _ACEOF 18446 rm -f conftest.$ac_objext conftest$ac_exeext 18447 if { (ac_try="$ac_link" 18448 case "(($ac_try" in 18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18450 *) ac_try_echo=$ac_try;; 18451 esac 18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18453 (eval "$ac_link") 2>conftest.er1 18454 ac_status=$? 18455 grep -v '^ *+' conftest.er1 >conftest.err 18456 rm -f conftest.er1 18457 cat conftest.err >&5 18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18459 (exit $ac_status); } && 18460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18461 { (case "(($ac_try" in 18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18463 *) ac_try_echo=$ac_try;; 18464 esac 18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18466 (eval "$ac_try") 2>&5 18467 ac_status=$? 18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18469 (exit $ac_status); }; } && 18470 { ac_try='test -s conftest$ac_exeext' 18471 { (case "(($ac_try" in 18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18473 *) ac_try_echo=$ac_try;; 18474 esac 18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18476 (eval "$ac_try") 2>&5 18477 ac_status=$? 18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18479 (exit $ac_status); }; }; then 18480 ac_cv_lib_gcc__alloca=yes 18481 else 18482 echo "$as_me: failed program was:" >&5 18483 sed 's/^/| /' conftest.$ac_ext >&5 18484 18485 ac_cv_lib_gcc__alloca=no 18486 fi 18487 18488 rm -f core conftest.err conftest.$ac_objext \ 18489 conftest$ac_exeext conftest.$ac_ext 18490 LIBS=$ac_check_lib_save_LIBS 18491 fi 18492 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 18493 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 18494 if test $ac_cv_lib_gcc__alloca = yes; then 18495 18496 cat >>confdefs.h <<\_ACEOF 18497 #define HAVE__ALLOCA 1 18498 _ACEOF 18499 18500 fi 18501 18502 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 18503 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 18504 if test "${ac_cv_lib_gcc___alloca+set}" = set; then 18505 echo $ECHO_N "(cached) $ECHO_C" >&6 18506 else 18507 ac_check_lib_save_LIBS=$LIBS 18508 LIBS="-lgcc $LIBS" 18509 cat >conftest.$ac_ext <<_ACEOF 18510 /* confdefs.h. */ 18511 _ACEOF 18512 cat confdefs.h >>conftest.$ac_ext 18513 cat >>conftest.$ac_ext <<_ACEOF 18514 /* end confdefs.h. */ 18515 18516 /* Override any GCC internal prototype to avoid an error. 18517 Use char because int might match the return type of a GCC 18518 builtin and then its argument prototype would still apply. */ 18519 #ifdef __cplusplus 18520 extern "C" 18521 #endif 18522 char __alloca (); 18523 int 18524 main () 18525 { 18526 return __alloca (); 18527 ; 18528 return 0; 18529 } 18530 _ACEOF 18531 rm -f conftest.$ac_objext conftest$ac_exeext 18532 if { (ac_try="$ac_link" 18533 case "(($ac_try" in 18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18535 *) ac_try_echo=$ac_try;; 18536 esac 18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18538 (eval "$ac_link") 2>conftest.er1 18539 ac_status=$? 18540 grep -v '^ *+' conftest.er1 >conftest.err 18541 rm -f conftest.er1 18542 cat conftest.err >&5 18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18544 (exit $ac_status); } && 18545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18546 { (case "(($ac_try" in 18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18548 *) ac_try_echo=$ac_try;; 18549 esac 18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18551 (eval "$ac_try") 2>&5 18552 ac_status=$? 18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18554 (exit $ac_status); }; } && 18555 { ac_try='test -s conftest$ac_exeext' 18556 { (case "(($ac_try" in 18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18558 *) ac_try_echo=$ac_try;; 18559 esac 18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18561 (eval "$ac_try") 2>&5 18562 ac_status=$? 18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18564 (exit $ac_status); }; }; then 18565 ac_cv_lib_gcc___alloca=yes 18566 else 18567 echo "$as_me: failed program was:" >&5 18568 sed 's/^/| /' conftest.$ac_ext >&5 18569 18570 ac_cv_lib_gcc___alloca=no 18571 fi 18572 18573 rm -f core conftest.err conftest.$ac_objext \ 18574 conftest$ac_exeext conftest.$ac_ext 18575 LIBS=$ac_check_lib_save_LIBS 18576 fi 18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 18578 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 18579 if test $ac_cv_lib_gcc___alloca = yes; then 18580 18581 cat >>confdefs.h <<\_ACEOF 18582 #define HAVE___ALLOCA 1 18583 _ACEOF 18584 18585 fi 18586 18587 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 18588 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 18589 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 18590 echo $ECHO_N "(cached) $ECHO_C" >&6 18591 else 18592 ac_check_lib_save_LIBS=$LIBS 18593 LIBS="-lgcc $LIBS" 18594 cat >conftest.$ac_ext <<_ACEOF 18595 /* confdefs.h. */ 18596 _ACEOF 18597 cat confdefs.h >>conftest.$ac_ext 18598 cat >>conftest.$ac_ext <<_ACEOF 18599 /* end confdefs.h. */ 18600 18601 /* Override any GCC internal prototype to avoid an error. 18602 Use char because int might match the return type of a GCC 18603 builtin and then its argument prototype would still apply. */ 18604 #ifdef __cplusplus 18605 extern "C" 18606 #endif 18607 char __chkstk (); 18608 int 18609 main () 18610 { 18611 return __chkstk (); 18612 ; 18613 return 0; 18614 } 18615 _ACEOF 18616 rm -f conftest.$ac_objext conftest$ac_exeext 18617 if { (ac_try="$ac_link" 18618 case "(($ac_try" in 18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18620 *) ac_try_echo=$ac_try;; 18621 esac 18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18623 (eval "$ac_link") 2>conftest.er1 18624 ac_status=$? 18625 grep -v '^ *+' conftest.er1 >conftest.err 18626 rm -f conftest.er1 18627 cat conftest.err >&5 18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18629 (exit $ac_status); } && 18630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18631 { (case "(($ac_try" in 18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18633 *) ac_try_echo=$ac_try;; 18634 esac 18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18636 (eval "$ac_try") 2>&5 18637 ac_status=$? 18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18639 (exit $ac_status); }; } && 18640 { ac_try='test -s conftest$ac_exeext' 18641 { (case "(($ac_try" in 18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18643 *) ac_try_echo=$ac_try;; 18644 esac 18645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18646 (eval "$ac_try") 2>&5 18647 ac_status=$? 18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18649 (exit $ac_status); }; }; then 18650 ac_cv_lib_gcc___chkstk=yes 18651 else 18652 echo "$as_me: failed program was:" >&5 18653 sed 's/^/| /' conftest.$ac_ext >&5 18654 18655 ac_cv_lib_gcc___chkstk=no 18656 fi 18657 18658 rm -f core conftest.err conftest.$ac_objext \ 18659 conftest$ac_exeext conftest.$ac_ext 18660 LIBS=$ac_check_lib_save_LIBS 18661 fi 18662 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 18663 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 18664 if test $ac_cv_lib_gcc___chkstk = yes; then 18665 18666 cat >>confdefs.h <<\_ACEOF 18667 #define HAVE___CHKSTK 1 18668 _ACEOF 18669 18670 fi 18671 18672 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 18673 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 18674 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 18675 echo $ECHO_N "(cached) $ECHO_C" >&6 18676 else 18677 ac_check_lib_save_LIBS=$LIBS 18678 LIBS="-lgcc $LIBS" 18679 cat >conftest.$ac_ext <<_ACEOF 18680 /* confdefs.h. */ 18681 _ACEOF 18682 cat confdefs.h >>conftest.$ac_ext 18683 cat >>conftest.$ac_ext <<_ACEOF 18684 /* end confdefs.h. */ 18685 18686 /* Override any GCC internal prototype to avoid an error. 18687 Use char because int might match the return type of a GCC 18688 builtin and then its argument prototype would still apply. */ 18689 #ifdef __cplusplus 18690 extern "C" 18691 #endif 18692 char ___chkstk (); 18693 int 18694 main () 18695 { 18696 return ___chkstk (); 18697 ; 18698 return 0; 18699 } 18700 _ACEOF 18701 rm -f conftest.$ac_objext conftest$ac_exeext 18702 if { (ac_try="$ac_link" 18703 case "(($ac_try" in 18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18705 *) ac_try_echo=$ac_try;; 18706 esac 18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18708 (eval "$ac_link") 2>conftest.er1 18709 ac_status=$? 18710 grep -v '^ *+' conftest.er1 >conftest.err 18711 rm -f conftest.er1 18712 cat conftest.err >&5 18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18714 (exit $ac_status); } && 18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18716 { (case "(($ac_try" in 18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18718 *) ac_try_echo=$ac_try;; 18719 esac 18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18721 (eval "$ac_try") 2>&5 18722 ac_status=$? 18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18724 (exit $ac_status); }; } && 18725 { ac_try='test -s conftest$ac_exeext' 18726 { (case "(($ac_try" in 18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18728 *) ac_try_echo=$ac_try;; 18729 esac 18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18731 (eval "$ac_try") 2>&5 18732 ac_status=$? 18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18734 (exit $ac_status); }; }; then 18735 ac_cv_lib_gcc____chkstk=yes 18736 else 18737 echo "$as_me: failed program was:" >&5 18738 sed 's/^/| /' conftest.$ac_ext >&5 18739 18740 ac_cv_lib_gcc____chkstk=no 18741 fi 18742 18743 rm -f core conftest.err conftest.$ac_objext \ 18744 conftest$ac_exeext conftest.$ac_ext 18745 LIBS=$ac_check_lib_save_LIBS 18746 fi 18747 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 18748 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 18749 if test $ac_cv_lib_gcc____chkstk = yes; then 18750 18751 cat >>confdefs.h <<\_ACEOF 18752 #define HAVE____CHKSTK 1 18753 _ACEOF 18754 18755 fi 18756 18757 18758 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 18759 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 18760 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 18761 echo $ECHO_N "(cached) $ECHO_C" >&6 18762 else 18763 ac_check_lib_save_LIBS=$LIBS 18764 LIBS="-lgcc $LIBS" 18765 cat >conftest.$ac_ext <<_ACEOF 18766 /* confdefs.h. */ 18767 _ACEOF 18768 cat confdefs.h >>conftest.$ac_ext 18769 cat >>conftest.$ac_ext <<_ACEOF 18770 /* end confdefs.h. */ 18771 18772 /* Override any GCC internal prototype to avoid an error. 18773 Use char because int might match the return type of a GCC 18774 builtin and then its argument prototype would still apply. */ 18775 #ifdef __cplusplus 18776 extern "C" 18777 #endif 18778 char __ashldi3 (); 18779 int 18780 main () 18781 { 18782 return __ashldi3 (); 18783 ; 18784 return 0; 18785 } 18786 _ACEOF 18787 rm -f conftest.$ac_objext conftest$ac_exeext 18788 if { (ac_try="$ac_link" 18789 case "(($ac_try" in 18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18791 *) ac_try_echo=$ac_try;; 18792 esac 18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18794 (eval "$ac_link") 2>conftest.er1 18795 ac_status=$? 18796 grep -v '^ *+' conftest.er1 >conftest.err 18797 rm -f conftest.er1 18798 cat conftest.err >&5 18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18800 (exit $ac_status); } && 18801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18802 { (case "(($ac_try" in 18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18804 *) ac_try_echo=$ac_try;; 18805 esac 18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18807 (eval "$ac_try") 2>&5 18808 ac_status=$? 18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18810 (exit $ac_status); }; } && 18811 { ac_try='test -s conftest$ac_exeext' 18812 { (case "(($ac_try" in 18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18814 *) ac_try_echo=$ac_try;; 18815 esac 18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18817 (eval "$ac_try") 2>&5 18818 ac_status=$? 18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18820 (exit $ac_status); }; }; then 18821 ac_cv_lib_gcc___ashldi3=yes 18822 else 18823 echo "$as_me: failed program was:" >&5 18824 sed 's/^/| /' conftest.$ac_ext >&5 18825 18826 ac_cv_lib_gcc___ashldi3=no 18827 fi 18828 18829 rm -f core conftest.err conftest.$ac_objext \ 18830 conftest$ac_exeext conftest.$ac_ext 18831 LIBS=$ac_check_lib_save_LIBS 18832 fi 18833 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 18834 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 18835 if test $ac_cv_lib_gcc___ashldi3 = yes; then 18836 18837 cat >>confdefs.h <<\_ACEOF 18838 #define HAVE___ASHLDI3 1 18839 _ACEOF 18840 18841 fi 18842 18843 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 18844 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 18845 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 18846 echo $ECHO_N "(cached) $ECHO_C" >&6 18847 else 18848 ac_check_lib_save_LIBS=$LIBS 18849 LIBS="-lgcc $LIBS" 18850 cat >conftest.$ac_ext <<_ACEOF 18851 /* confdefs.h. */ 18852 _ACEOF 18853 cat confdefs.h >>conftest.$ac_ext 18854 cat >>conftest.$ac_ext <<_ACEOF 18855 /* end confdefs.h. */ 18856 18857 /* Override any GCC internal prototype to avoid an error. 18858 Use char because int might match the return type of a GCC 18859 builtin and then its argument prototype would still apply. */ 18860 #ifdef __cplusplus 18861 extern "C" 18862 #endif 18863 char __ashrdi3 (); 18864 int 18865 main () 18866 { 18867 return __ashrdi3 (); 18868 ; 18869 return 0; 18870 } 18871 _ACEOF 18872 rm -f conftest.$ac_objext conftest$ac_exeext 18873 if { (ac_try="$ac_link" 18874 case "(($ac_try" in 18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18876 *) ac_try_echo=$ac_try;; 18877 esac 18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18879 (eval "$ac_link") 2>conftest.er1 18880 ac_status=$? 18881 grep -v '^ *+' conftest.er1 >conftest.err 18882 rm -f conftest.er1 18883 cat conftest.err >&5 18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18885 (exit $ac_status); } && 18886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18887 { (case "(($ac_try" in 18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18889 *) ac_try_echo=$ac_try;; 18890 esac 18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18892 (eval "$ac_try") 2>&5 18893 ac_status=$? 18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18895 (exit $ac_status); }; } && 18896 { ac_try='test -s conftest$ac_exeext' 18897 { (case "(($ac_try" in 18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18899 *) ac_try_echo=$ac_try;; 18900 esac 18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18902 (eval "$ac_try") 2>&5 18903 ac_status=$? 18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18905 (exit $ac_status); }; }; then 18906 ac_cv_lib_gcc___ashrdi3=yes 18907 else 18908 echo "$as_me: failed program was:" >&5 18909 sed 's/^/| /' conftest.$ac_ext >&5 18910 18911 ac_cv_lib_gcc___ashrdi3=no 18912 fi 18913 18914 rm -f core conftest.err conftest.$ac_objext \ 18915 conftest$ac_exeext conftest.$ac_ext 18916 LIBS=$ac_check_lib_save_LIBS 18917 fi 18918 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 18919 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 18920 if test $ac_cv_lib_gcc___ashrdi3 = yes; then 18921 18922 cat >>confdefs.h <<\_ACEOF 18923 #define HAVE___ASHRDI3 1 18924 _ACEOF 18925 18926 fi 18927 18928 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 18929 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 18930 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 18931 echo $ECHO_N "(cached) $ECHO_C" >&6 18932 else 18933 ac_check_lib_save_LIBS=$LIBS 18934 LIBS="-lgcc $LIBS" 18935 cat >conftest.$ac_ext <<_ACEOF 18936 /* confdefs.h. */ 18937 _ACEOF 18938 cat confdefs.h >>conftest.$ac_ext 18939 cat >>conftest.$ac_ext <<_ACEOF 18940 /* end confdefs.h. */ 18941 18942 /* Override any GCC internal prototype to avoid an error. 18943 Use char because int might match the return type of a GCC 18944 builtin and then its argument prototype would still apply. */ 18945 #ifdef __cplusplus 18946 extern "C" 18947 #endif 18948 char __divdi3 (); 18949 int 18950 main () 18951 { 18952 return __divdi3 (); 18953 ; 18954 return 0; 18955 } 18956 _ACEOF 18957 rm -f conftest.$ac_objext conftest$ac_exeext 18958 if { (ac_try="$ac_link" 18959 case "(($ac_try" in 18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18961 *) ac_try_echo=$ac_try;; 18962 esac 18963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18964 (eval "$ac_link") 2>conftest.er1 18965 ac_status=$? 18966 grep -v '^ *+' conftest.er1 >conftest.err 18967 rm -f conftest.er1 18968 cat conftest.err >&5 18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18970 (exit $ac_status); } && 18971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18972 { (case "(($ac_try" in 18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18974 *) ac_try_echo=$ac_try;; 18975 esac 18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18977 (eval "$ac_try") 2>&5 18978 ac_status=$? 18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18980 (exit $ac_status); }; } && 18981 { ac_try='test -s conftest$ac_exeext' 18982 { (case "(($ac_try" in 18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18984 *) ac_try_echo=$ac_try;; 18985 esac 18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18987 (eval "$ac_try") 2>&5 18988 ac_status=$? 18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18990 (exit $ac_status); }; }; then 18991 ac_cv_lib_gcc___divdi3=yes 18992 else 18993 echo "$as_me: failed program was:" >&5 18994 sed 's/^/| /' conftest.$ac_ext >&5 18995 18996 ac_cv_lib_gcc___divdi3=no 18997 fi 18998 18999 rm -f core conftest.err conftest.$ac_objext \ 19000 conftest$ac_exeext conftest.$ac_ext 19001 LIBS=$ac_check_lib_save_LIBS 19002 fi 19003 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 19004 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 19005 if test $ac_cv_lib_gcc___divdi3 = yes; then 19006 19007 cat >>confdefs.h <<\_ACEOF 19008 #define HAVE___DIVDI3 1 19009 _ACEOF 19010 19011 fi 19012 19013 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 19014 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 19015 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 19016 echo $ECHO_N "(cached) $ECHO_C" >&6 19017 else 19018 ac_check_lib_save_LIBS=$LIBS 19019 LIBS="-lgcc $LIBS" 19020 cat >conftest.$ac_ext <<_ACEOF 19021 /* confdefs.h. */ 19022 _ACEOF 19023 cat confdefs.h >>conftest.$ac_ext 19024 cat >>conftest.$ac_ext <<_ACEOF 19025 /* end confdefs.h. */ 19026 19027 /* Override any GCC internal prototype to avoid an error. 19028 Use char because int might match the return type of a GCC 19029 builtin and then its argument prototype would still apply. */ 19030 #ifdef __cplusplus 19031 extern "C" 19032 #endif 19033 char __fixdfdi (); 19034 int 19035 main () 19036 { 19037 return __fixdfdi (); 19038 ; 19039 return 0; 19040 } 19041 _ACEOF 19042 rm -f conftest.$ac_objext conftest$ac_exeext 19043 if { (ac_try="$ac_link" 19044 case "(($ac_try" in 19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19046 *) ac_try_echo=$ac_try;; 19047 esac 19048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19049 (eval "$ac_link") 2>conftest.er1 19050 ac_status=$? 19051 grep -v '^ *+' conftest.er1 >conftest.err 19052 rm -f conftest.er1 19053 cat conftest.err >&5 19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19055 (exit $ac_status); } && 19056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19057 { (case "(($ac_try" in 19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19059 *) ac_try_echo=$ac_try;; 19060 esac 19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19062 (eval "$ac_try") 2>&5 19063 ac_status=$? 19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19065 (exit $ac_status); }; } && 19066 { ac_try='test -s conftest$ac_exeext' 19067 { (case "(($ac_try" in 19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19069 *) ac_try_echo=$ac_try;; 19070 esac 19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19072 (eval "$ac_try") 2>&5 19073 ac_status=$? 19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19075 (exit $ac_status); }; }; then 19076 ac_cv_lib_gcc___fixdfdi=yes 19077 else 19078 echo "$as_me: failed program was:" >&5 19079 sed 's/^/| /' conftest.$ac_ext >&5 19080 19081 ac_cv_lib_gcc___fixdfdi=no 19082 fi 19083 19084 rm -f core conftest.err conftest.$ac_objext \ 19085 conftest$ac_exeext conftest.$ac_ext 19086 LIBS=$ac_check_lib_save_LIBS 19087 fi 19088 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 19089 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 19090 if test $ac_cv_lib_gcc___fixdfdi = yes; then 19091 19092 cat >>confdefs.h <<\_ACEOF 19093 #define HAVE___FIXDFDI 1 19094 _ACEOF 19095 19096 fi 19097 19098 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 19099 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 19100 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 19101 echo $ECHO_N "(cached) $ECHO_C" >&6 19102 else 19103 ac_check_lib_save_LIBS=$LIBS 19104 LIBS="-lgcc $LIBS" 19105 cat >conftest.$ac_ext <<_ACEOF 19106 /* confdefs.h. */ 19107 _ACEOF 19108 cat confdefs.h >>conftest.$ac_ext 19109 cat >>conftest.$ac_ext <<_ACEOF 19110 /* end confdefs.h. */ 19111 19112 /* Override any GCC internal prototype to avoid an error. 19113 Use char because int might match the return type of a GCC 19114 builtin and then its argument prototype would still apply. */ 19115 #ifdef __cplusplus 19116 extern "C" 19117 #endif 19118 char __fixsfdi (); 19119 int 19120 main () 19121 { 19122 return __fixsfdi (); 19123 ; 19124 return 0; 19125 } 19126 _ACEOF 19127 rm -f conftest.$ac_objext conftest$ac_exeext 19128 if { (ac_try="$ac_link" 19129 case "(($ac_try" in 19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19131 *) ac_try_echo=$ac_try;; 19132 esac 19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19134 (eval "$ac_link") 2>conftest.er1 19135 ac_status=$? 19136 grep -v '^ *+' conftest.er1 >conftest.err 19137 rm -f conftest.er1 19138 cat conftest.err >&5 19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19140 (exit $ac_status); } && 19141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19142 { (case "(($ac_try" in 19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19144 *) ac_try_echo=$ac_try;; 19145 esac 19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19147 (eval "$ac_try") 2>&5 19148 ac_status=$? 19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19150 (exit $ac_status); }; } && 19151 { ac_try='test -s conftest$ac_exeext' 19152 { (case "(($ac_try" in 19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19154 *) ac_try_echo=$ac_try;; 19155 esac 19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19157 (eval "$ac_try") 2>&5 19158 ac_status=$? 19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19160 (exit $ac_status); }; }; then 19161 ac_cv_lib_gcc___fixsfdi=yes 19162 else 19163 echo "$as_me: failed program was:" >&5 19164 sed 's/^/| /' conftest.$ac_ext >&5 19165 19166 ac_cv_lib_gcc___fixsfdi=no 19167 fi 19168 19169 rm -f core conftest.err conftest.$ac_objext \ 19170 conftest$ac_exeext conftest.$ac_ext 19171 LIBS=$ac_check_lib_save_LIBS 19172 fi 19173 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 19174 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 19175 if test $ac_cv_lib_gcc___fixsfdi = yes; then 19176 19177 cat >>confdefs.h <<\_ACEOF 19178 #define HAVE___FIXSFDI 1 19179 _ACEOF 19180 19181 fi 19182 19183 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 19184 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 19185 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 19186 echo $ECHO_N "(cached) $ECHO_C" >&6 19187 else 19188 ac_check_lib_save_LIBS=$LIBS 19189 LIBS="-lgcc $LIBS" 19190 cat >conftest.$ac_ext <<_ACEOF 19191 /* confdefs.h. */ 19192 _ACEOF 19193 cat confdefs.h >>conftest.$ac_ext 19194 cat >>conftest.$ac_ext <<_ACEOF 19195 /* end confdefs.h. */ 19196 19197 /* Override any GCC internal prototype to avoid an error. 19198 Use char because int might match the return type of a GCC 19199 builtin and then its argument prototype would still apply. */ 19200 #ifdef __cplusplus 19201 extern "C" 19202 #endif 19203 char __floatdidf (); 19204 int 19205 main () 19206 { 19207 return __floatdidf (); 19208 ; 19209 return 0; 19210 } 19211 _ACEOF 19212 rm -f conftest.$ac_objext conftest$ac_exeext 19213 if { (ac_try="$ac_link" 19214 case "(($ac_try" in 19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19216 *) ac_try_echo=$ac_try;; 19217 esac 19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19219 (eval "$ac_link") 2>conftest.er1 19220 ac_status=$? 19221 grep -v '^ *+' conftest.er1 >conftest.err 19222 rm -f conftest.er1 19223 cat conftest.err >&5 19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19225 (exit $ac_status); } && 19226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19227 { (case "(($ac_try" in 19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19229 *) ac_try_echo=$ac_try;; 19230 esac 19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19232 (eval "$ac_try") 2>&5 19233 ac_status=$? 19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19235 (exit $ac_status); }; } && 19236 { ac_try='test -s conftest$ac_exeext' 19237 { (case "(($ac_try" in 19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19239 *) ac_try_echo=$ac_try;; 19240 esac 19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19242 (eval "$ac_try") 2>&5 19243 ac_status=$? 19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19245 (exit $ac_status); }; }; then 19246 ac_cv_lib_gcc___floatdidf=yes 19247 else 19248 echo "$as_me: failed program was:" >&5 19249 sed 's/^/| /' conftest.$ac_ext >&5 19250 19251 ac_cv_lib_gcc___floatdidf=no 19252 fi 19253 19254 rm -f core conftest.err conftest.$ac_objext \ 19255 conftest$ac_exeext conftest.$ac_ext 19256 LIBS=$ac_check_lib_save_LIBS 19257 fi 19258 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 19259 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 19260 if test $ac_cv_lib_gcc___floatdidf = yes; then 19261 19262 cat >>confdefs.h <<\_ACEOF 19263 #define HAVE___FLOATDIDF 1 19264 _ACEOF 19265 19266 fi 19267 19268 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 19269 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 19270 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 19271 echo $ECHO_N "(cached) $ECHO_C" >&6 19272 else 19273 ac_check_lib_save_LIBS=$LIBS 19274 LIBS="-lgcc $LIBS" 19275 cat >conftest.$ac_ext <<_ACEOF 19276 /* confdefs.h. */ 19277 _ACEOF 19278 cat confdefs.h >>conftest.$ac_ext 19279 cat >>conftest.$ac_ext <<_ACEOF 19280 /* end confdefs.h. */ 19281 19282 /* Override any GCC internal prototype to avoid an error. 19283 Use char because int might match the return type of a GCC 19284 builtin and then its argument prototype would still apply. */ 19285 #ifdef __cplusplus 19286 extern "C" 19287 #endif 19288 char __lshrdi3 (); 19289 int 19290 main () 19291 { 19292 return __lshrdi3 (); 19293 ; 19294 return 0; 19295 } 19296 _ACEOF 19297 rm -f conftest.$ac_objext conftest$ac_exeext 19298 if { (ac_try="$ac_link" 19299 case "(($ac_try" in 19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19301 *) ac_try_echo=$ac_try;; 19302 esac 19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19304 (eval "$ac_link") 2>conftest.er1 19305 ac_status=$? 19306 grep -v '^ *+' conftest.er1 >conftest.err 19307 rm -f conftest.er1 19308 cat conftest.err >&5 19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19310 (exit $ac_status); } && 19311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19312 { (case "(($ac_try" in 19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19314 *) ac_try_echo=$ac_try;; 19315 esac 19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19317 (eval "$ac_try") 2>&5 19318 ac_status=$? 19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19320 (exit $ac_status); }; } && 19321 { ac_try='test -s conftest$ac_exeext' 19322 { (case "(($ac_try" in 19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19324 *) ac_try_echo=$ac_try;; 19325 esac 19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19327 (eval "$ac_try") 2>&5 19328 ac_status=$? 19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19330 (exit $ac_status); }; }; then 19331 ac_cv_lib_gcc___lshrdi3=yes 19332 else 19333 echo "$as_me: failed program was:" >&5 19334 sed 's/^/| /' conftest.$ac_ext >&5 19335 19336 ac_cv_lib_gcc___lshrdi3=no 19337 fi 19338 19339 rm -f core conftest.err conftest.$ac_objext \ 19340 conftest$ac_exeext conftest.$ac_ext 19341 LIBS=$ac_check_lib_save_LIBS 19342 fi 19343 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 19344 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 19345 if test $ac_cv_lib_gcc___lshrdi3 = yes; then 19346 19347 cat >>confdefs.h <<\_ACEOF 19348 #define HAVE___LSHRDI3 1 19349 _ACEOF 19350 19351 fi 19352 19353 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 19354 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 19355 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 19356 echo $ECHO_N "(cached) $ECHO_C" >&6 19357 else 19358 ac_check_lib_save_LIBS=$LIBS 19359 LIBS="-lgcc $LIBS" 19360 cat >conftest.$ac_ext <<_ACEOF 19361 /* confdefs.h. */ 19362 _ACEOF 19363 cat confdefs.h >>conftest.$ac_ext 19364 cat >>conftest.$ac_ext <<_ACEOF 19365 /* end confdefs.h. */ 19366 19367 /* Override any GCC internal prototype to avoid an error. 19368 Use char because int might match the return type of a GCC 19369 builtin and then its argument prototype would still apply. */ 19370 #ifdef __cplusplus 19371 extern "C" 19372 #endif 19373 char __moddi3 (); 19374 int 19375 main () 19376 { 19377 return __moddi3 (); 19378 ; 19379 return 0; 19380 } 19381 _ACEOF 19382 rm -f conftest.$ac_objext conftest$ac_exeext 19383 if { (ac_try="$ac_link" 19384 case "(($ac_try" in 19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19386 *) ac_try_echo=$ac_try;; 19387 esac 19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19389 (eval "$ac_link") 2>conftest.er1 19390 ac_status=$? 19391 grep -v '^ *+' conftest.er1 >conftest.err 19392 rm -f conftest.er1 19393 cat conftest.err >&5 19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19395 (exit $ac_status); } && 19396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19397 { (case "(($ac_try" in 19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19399 *) ac_try_echo=$ac_try;; 19400 esac 19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19402 (eval "$ac_try") 2>&5 19403 ac_status=$? 19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19405 (exit $ac_status); }; } && 19406 { ac_try='test -s conftest$ac_exeext' 19407 { (case "(($ac_try" in 19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19409 *) ac_try_echo=$ac_try;; 19410 esac 19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19412 (eval "$ac_try") 2>&5 19413 ac_status=$? 19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19415 (exit $ac_status); }; }; then 19416 ac_cv_lib_gcc___moddi3=yes 19417 else 19418 echo "$as_me: failed program was:" >&5 19419 sed 's/^/| /' conftest.$ac_ext >&5 19420 19421 ac_cv_lib_gcc___moddi3=no 19422 fi 19423 19424 rm -f core conftest.err conftest.$ac_objext \ 19425 conftest$ac_exeext conftest.$ac_ext 19426 LIBS=$ac_check_lib_save_LIBS 19427 fi 19428 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 19429 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 19430 if test $ac_cv_lib_gcc___moddi3 = yes; then 19431 19432 cat >>confdefs.h <<\_ACEOF 19433 #define HAVE___MODDI3 1 19434 _ACEOF 19435 19436 fi 19437 19438 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 19439 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 19440 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 19441 echo $ECHO_N "(cached) $ECHO_C" >&6 19442 else 19443 ac_check_lib_save_LIBS=$LIBS 19444 LIBS="-lgcc $LIBS" 19445 cat >conftest.$ac_ext <<_ACEOF 19446 /* confdefs.h. */ 19447 _ACEOF 19448 cat confdefs.h >>conftest.$ac_ext 19449 cat >>conftest.$ac_ext <<_ACEOF 19450 /* end confdefs.h. */ 19451 19452 /* Override any GCC internal prototype to avoid an error. 19453 Use char because int might match the return type of a GCC 19454 builtin and then its argument prototype would still apply. */ 19455 #ifdef __cplusplus 19456 extern "C" 19457 #endif 19458 char __udivdi3 (); 19459 int 19460 main () 19461 { 19462 return __udivdi3 (); 19463 ; 19464 return 0; 19465 } 19466 _ACEOF 19467 rm -f conftest.$ac_objext conftest$ac_exeext 19468 if { (ac_try="$ac_link" 19469 case "(($ac_try" in 19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19471 *) ac_try_echo=$ac_try;; 19472 esac 19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19474 (eval "$ac_link") 2>conftest.er1 19475 ac_status=$? 19476 grep -v '^ *+' conftest.er1 >conftest.err 19477 rm -f conftest.er1 19478 cat conftest.err >&5 19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19480 (exit $ac_status); } && 19481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19482 { (case "(($ac_try" in 19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19484 *) ac_try_echo=$ac_try;; 19485 esac 19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19487 (eval "$ac_try") 2>&5 19488 ac_status=$? 19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19490 (exit $ac_status); }; } && 19491 { ac_try='test -s conftest$ac_exeext' 19492 { (case "(($ac_try" in 19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19494 *) ac_try_echo=$ac_try;; 19495 esac 19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19497 (eval "$ac_try") 2>&5 19498 ac_status=$? 19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19500 (exit $ac_status); }; }; then 19501 ac_cv_lib_gcc___udivdi3=yes 19502 else 19503 echo "$as_me: failed program was:" >&5 19504 sed 's/^/| /' conftest.$ac_ext >&5 19505 19506 ac_cv_lib_gcc___udivdi3=no 19507 fi 19508 19509 rm -f core conftest.err conftest.$ac_objext \ 19510 conftest$ac_exeext conftest.$ac_ext 19511 LIBS=$ac_check_lib_save_LIBS 19512 fi 19513 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 19514 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 19515 if test $ac_cv_lib_gcc___udivdi3 = yes; then 19516 19517 cat >>confdefs.h <<\_ACEOF 19518 #define HAVE___UDIVDI3 1 19519 _ACEOF 19520 19521 fi 19522 19523 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 19524 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 19525 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 19526 echo $ECHO_N "(cached) $ECHO_C" >&6 19527 else 19528 ac_check_lib_save_LIBS=$LIBS 19529 LIBS="-lgcc $LIBS" 19530 cat >conftest.$ac_ext <<_ACEOF 19531 /* confdefs.h. */ 19532 _ACEOF 19533 cat confdefs.h >>conftest.$ac_ext 19534 cat >>conftest.$ac_ext <<_ACEOF 19535 /* end confdefs.h. */ 19536 19537 /* Override any GCC internal prototype to avoid an error. 19538 Use char because int might match the return type of a GCC 19539 builtin and then its argument prototype would still apply. */ 19540 #ifdef __cplusplus 19541 extern "C" 19542 #endif 19543 char __umoddi3 (); 19544 int 19545 main () 19546 { 19547 return __umoddi3 (); 19548 ; 19549 return 0; 19550 } 19551 _ACEOF 19552 rm -f conftest.$ac_objext conftest$ac_exeext 19553 if { (ac_try="$ac_link" 19554 case "(($ac_try" in 19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19556 *) ac_try_echo=$ac_try;; 19557 esac 19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19559 (eval "$ac_link") 2>conftest.er1 19560 ac_status=$? 19561 grep -v '^ *+' conftest.er1 >conftest.err 19562 rm -f conftest.er1 19563 cat conftest.err >&5 19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19565 (exit $ac_status); } && 19566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19567 { (case "(($ac_try" in 19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19569 *) ac_try_echo=$ac_try;; 19570 esac 19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19572 (eval "$ac_try") 2>&5 19573 ac_status=$? 19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19575 (exit $ac_status); }; } && 19576 { ac_try='test -s conftest$ac_exeext' 19577 { (case "(($ac_try" in 19578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19579 *) ac_try_echo=$ac_try;; 19580 esac 19581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19582 (eval "$ac_try") 2>&5 19583 ac_status=$? 19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19585 (exit $ac_status); }; }; then 19586 ac_cv_lib_gcc___umoddi3=yes 19587 else 19588 echo "$as_me: failed program was:" >&5 19589 sed 's/^/| /' conftest.$ac_ext >&5 19590 19591 ac_cv_lib_gcc___umoddi3=no 19592 fi 19593 19594 rm -f core conftest.err conftest.$ac_objext \ 19595 conftest$ac_exeext conftest.$ac_ext 19596 LIBS=$ac_check_lib_save_LIBS 19597 fi 19598 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 19599 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 19600 if test $ac_cv_lib_gcc___umoddi3 = yes; then 19601 19602 cat >>confdefs.h <<\_ACEOF 19603 #define HAVE___UMODDI3 1 19604 _ACEOF 19605 19606 fi 19607 19608 19609 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 19610 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 19611 if test "${ac_cv_lib_gcc___main+set}" = set; then 19612 echo $ECHO_N "(cached) $ECHO_C" >&6 19613 else 19614 ac_check_lib_save_LIBS=$LIBS 19615 LIBS="-lgcc $LIBS" 19616 cat >conftest.$ac_ext <<_ACEOF 19617 /* confdefs.h. */ 19618 _ACEOF 19619 cat confdefs.h >>conftest.$ac_ext 19620 cat >>conftest.$ac_ext <<_ACEOF 19621 /* end confdefs.h. */ 19622 19623 /* Override any GCC internal prototype to avoid an error. 19624 Use char because int might match the return type of a GCC 19625 builtin and then its argument prototype would still apply. */ 19626 #ifdef __cplusplus 19627 extern "C" 19628 #endif 19629 char __main (); 19630 int 19631 main () 19632 { 19633 return __main (); 19634 ; 19635 return 0; 19636 } 19637 _ACEOF 19638 rm -f conftest.$ac_objext conftest$ac_exeext 19639 if { (ac_try="$ac_link" 19640 case "(($ac_try" in 19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19642 *) ac_try_echo=$ac_try;; 19643 esac 19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19645 (eval "$ac_link") 2>conftest.er1 19646 ac_status=$? 19647 grep -v '^ *+' conftest.er1 >conftest.err 19648 rm -f conftest.er1 19649 cat conftest.err >&5 19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19651 (exit $ac_status); } && 19652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19653 { (case "(($ac_try" in 19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19655 *) ac_try_echo=$ac_try;; 19656 esac 19657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19658 (eval "$ac_try") 2>&5 19659 ac_status=$? 19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19661 (exit $ac_status); }; } && 19662 { ac_try='test -s conftest$ac_exeext' 19663 { (case "(($ac_try" in 19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19665 *) ac_try_echo=$ac_try;; 19666 esac 19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19668 (eval "$ac_try") 2>&5 19669 ac_status=$? 19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19671 (exit $ac_status); }; }; then 19672 ac_cv_lib_gcc___main=yes 19673 else 19674 echo "$as_me: failed program was:" >&5 19675 sed 's/^/| /' conftest.$ac_ext >&5 19676 19677 ac_cv_lib_gcc___main=no 19678 fi 19679 19680 rm -f core conftest.err conftest.$ac_objext \ 19681 conftest$ac_exeext conftest.$ac_ext 19682 LIBS=$ac_check_lib_save_LIBS 19683 fi 19684 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 19685 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 19686 if test $ac_cv_lib_gcc___main = yes; then 19687 19688 cat >>confdefs.h <<\_ACEOF 19689 #define HAVE___MAIN 1 19690 _ACEOF 19691 19692 fi 19693 19694 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 19695 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 19696 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 19697 echo $ECHO_N "(cached) $ECHO_C" >&6 19698 else 19699 ac_check_lib_save_LIBS=$LIBS 19700 LIBS="-lgcc $LIBS" 19701 cat >conftest.$ac_ext <<_ACEOF 19702 /* confdefs.h. */ 19703 _ACEOF 19704 cat confdefs.h >>conftest.$ac_ext 19705 cat >>conftest.$ac_ext <<_ACEOF 19706 /* end confdefs.h. */ 19707 19708 /* Override any GCC internal prototype to avoid an error. 19709 Use char because int might match the return type of a GCC 19710 builtin and then its argument prototype would still apply. */ 19711 #ifdef __cplusplus 19712 extern "C" 19713 #endif 19714 char __cmpdi2 (); 19715 int 19716 main () 19717 { 19718 return __cmpdi2 (); 19719 ; 19720 return 0; 19721 } 19722 _ACEOF 19723 rm -f conftest.$ac_objext conftest$ac_exeext 19724 if { (ac_try="$ac_link" 19725 case "(($ac_try" in 19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19727 *) ac_try_echo=$ac_try;; 19728 esac 19729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19730 (eval "$ac_link") 2>conftest.er1 19731 ac_status=$? 19732 grep -v '^ *+' conftest.er1 >conftest.err 19733 rm -f conftest.er1 19734 cat conftest.err >&5 19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19736 (exit $ac_status); } && 19737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19738 { (case "(($ac_try" in 19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19740 *) ac_try_echo=$ac_try;; 19741 esac 19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19743 (eval "$ac_try") 2>&5 19744 ac_status=$? 19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19746 (exit $ac_status); }; } && 19747 { ac_try='test -s conftest$ac_exeext' 19748 { (case "(($ac_try" in 19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19750 *) ac_try_echo=$ac_try;; 19751 esac 19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19753 (eval "$ac_try") 2>&5 19754 ac_status=$? 19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19756 (exit $ac_status); }; }; then 19757 ac_cv_lib_gcc___cmpdi2=yes 19758 else 19759 echo "$as_me: failed program was:" >&5 19760 sed 's/^/| /' conftest.$ac_ext >&5 19761 19762 ac_cv_lib_gcc___cmpdi2=no 19763 fi 19764 19765 rm -f core conftest.err conftest.$ac_objext \ 19766 conftest$ac_exeext conftest.$ac_ext 19767 LIBS=$ac_check_lib_save_LIBS 19768 fi 19769 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 19770 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 19771 if test $ac_cv_lib_gcc___cmpdi2 = yes; then 19772 19773 cat >>confdefs.h <<\_ACEOF 19774 #define HAVE___CMPDI2 1 19775 _ACEOF 19776 19777 fi 19778 19779 fi 19780 19781 if test "$llvm_cv_os_type" = "MingW" ; then 19782 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 19783 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 19784 cat >conftest.$ac_ext <<_ACEOF 19785 19786 /* confdefs.h. */ 19787 _ACEOF 19788 cat confdefs.h >>conftest.$ac_ext 19789 cat >>conftest.$ac_ext <<_ACEOF 19790 /* end confdefs.h. */ 19791 19792 #include <windows.h> 19793 #include <imagehlp.h> 19794 extern void foo(PENUMLOADED_MODULES_CALLBACK); 19795 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 19796 19797 19798 _ACEOF 19799 rm -f conftest.$ac_objext 19800 if { (ac_try="$ac_compile" 19801 case "(($ac_try" in 19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19803 *) ac_try_echo=$ac_try;; 19804 esac 19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19806 (eval "$ac_compile") 2>conftest.er1 19807 ac_status=$? 19808 grep -v '^ *+' conftest.er1 >conftest.err 19809 rm -f conftest.er1 19810 cat conftest.err >&5 19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19812 (exit $ac_status); } && 19813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19814 { (case "(($ac_try" in 19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19816 *) ac_try_echo=$ac_try;; 19817 esac 19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19819 (eval "$ac_try") 2>&5 19820 ac_status=$? 19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19822 (exit $ac_status); }; } && 19823 { ac_try='test -s conftest.$ac_objext' 19824 { (case "(($ac_try" in 19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19826 *) ac_try_echo=$ac_try;; 19827 esac 19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19829 (eval "$ac_try") 2>&5 19830 ac_status=$? 19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19832 (exit $ac_status); }; }; then 19833 19834 { echo "$as_me:$LINENO: result: yes" >&5 19835 echo "${ECHO_T}yes" >&6; } 19836 llvm_cv_win32_elmcb_pcstr="PCSTR" 19837 19838 else 19839 echo "$as_me: failed program was:" >&5 19840 sed 's/^/| /' conftest.$ac_ext >&5 19841 19842 19843 { echo "$as_me:$LINENO: result: no" >&5 19844 echo "${ECHO_T}no" >&6; } 19845 llvm_cv_win32_elmcb_pcstr="PSTR" 19846 19847 fi 19848 19849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19850 19851 cat >>confdefs.h <<_ACEOF 19852 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 19853 _ACEOF 19854 19855 fi 19856 19857 19858 19859 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 19860 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 19861 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 19862 echo $ECHO_N "(cached) $ECHO_C" >&6 19863 else 19864 19865 ac_ext=cpp 19866 ac_cpp='$CXXCPP $CPPFLAGS' 19867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19870 19871 cat >conftest.$ac_ext <<_ACEOF 19872 /* confdefs.h. */ 19873 _ACEOF 19874 cat confdefs.h >>conftest.$ac_ext 19875 cat >>conftest.$ac_ext <<_ACEOF 19876 /* end confdefs.h. */ 19877 #include <math.h> 19878 int 19879 main () 19880 { 19881 float f; isnan(f); 19882 ; 19883 return 0; 19884 } 19885 _ACEOF 19886 rm -f conftest.$ac_objext 19887 if { (ac_try="$ac_compile" 19888 case "(($ac_try" in 19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19890 *) ac_try_echo=$ac_try;; 19891 esac 19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19893 (eval "$ac_compile") 2>conftest.er1 19894 ac_status=$? 19895 grep -v '^ *+' conftest.er1 >conftest.err 19896 rm -f conftest.er1 19897 cat conftest.err >&5 19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19899 (exit $ac_status); } && 19900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19901 { (case "(($ac_try" in 19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19903 *) ac_try_echo=$ac_try;; 19904 esac 19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19906 (eval "$ac_try") 2>&5 19907 ac_status=$? 19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19909 (exit $ac_status); }; } && 19910 { ac_try='test -s conftest.$ac_objext' 19911 { (case "(($ac_try" in 19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19913 *) ac_try_echo=$ac_try;; 19914 esac 19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19916 (eval "$ac_try") 2>&5 19917 ac_status=$? 19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19919 (exit $ac_status); }; }; then 19920 ac_cv_func_isnan_in_math_h=yes 19921 else 19922 echo "$as_me: failed program was:" >&5 19923 sed 's/^/| /' conftest.$ac_ext >&5 19924 19925 ac_cv_func_isnan_in_math_h=no 19926 fi 19927 19928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19929 ac_ext=c 19930 ac_cpp='$CPP $CPPFLAGS' 19931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19933 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19934 19935 19936 fi 19937 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 19938 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 19939 19940 19941 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 19942 19943 cat >>confdefs.h <<\_ACEOF 19944 #define HAVE_ISNAN_IN_MATH_H 1 19945 _ACEOF 19946 19947 fi 19948 19949 19950 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 19951 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 19952 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 19953 echo $ECHO_N "(cached) $ECHO_C" >&6 19954 else 19955 19956 ac_ext=cpp 19957 ac_cpp='$CXXCPP $CPPFLAGS' 19958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19961 19962 cat >conftest.$ac_ext <<_ACEOF 19963 /* confdefs.h. */ 19964 _ACEOF 19965 cat confdefs.h >>conftest.$ac_ext 19966 cat >>conftest.$ac_ext <<_ACEOF 19967 /* end confdefs.h. */ 19968 #include <cmath> 19969 int 19970 main () 19971 { 19972 float f; isnan(f); 19973 ; 19974 return 0; 19975 } 19976 _ACEOF 19977 rm -f conftest.$ac_objext 19978 if { (ac_try="$ac_compile" 19979 case "(($ac_try" in 19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19981 *) ac_try_echo=$ac_try;; 19982 esac 19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19984 (eval "$ac_compile") 2>conftest.er1 19985 ac_status=$? 19986 grep -v '^ *+' conftest.er1 >conftest.err 19987 rm -f conftest.er1 19988 cat conftest.err >&5 19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19990 (exit $ac_status); } && 19991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19992 { (case "(($ac_try" in 19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19994 *) ac_try_echo=$ac_try;; 19995 esac 19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19997 (eval "$ac_try") 2>&5 19998 ac_status=$? 19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20000 (exit $ac_status); }; } && 20001 { ac_try='test -s conftest.$ac_objext' 20002 { (case "(($ac_try" in 20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20004 *) ac_try_echo=$ac_try;; 20005 esac 20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20007 (eval "$ac_try") 2>&5 20008 ac_status=$? 20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20010 (exit $ac_status); }; }; then 20011 ac_cv_func_isnan_in_cmath=yes 20012 else 20013 echo "$as_me: failed program was:" >&5 20014 sed 's/^/| /' conftest.$ac_ext >&5 20015 20016 ac_cv_func_isnan_in_cmath=no 20017 fi 20018 20019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20020 ac_ext=c 20021 ac_cpp='$CPP $CPPFLAGS' 20022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20024 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20025 20026 20027 fi 20028 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 20029 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 20030 20031 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 20032 20033 cat >>confdefs.h <<\_ACEOF 20034 #define HAVE_ISNAN_IN_CMATH 1 20035 _ACEOF 20036 20037 fi 20038 20039 20040 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 20041 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 20042 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 20043 echo $ECHO_N "(cached) $ECHO_C" >&6 20044 else 20045 20046 ac_ext=cpp 20047 ac_cpp='$CXXCPP $CPPFLAGS' 20048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20051 20052 cat >conftest.$ac_ext <<_ACEOF 20053 /* confdefs.h. */ 20054 _ACEOF 20055 cat confdefs.h >>conftest.$ac_ext 20056 cat >>conftest.$ac_ext <<_ACEOF 20057 /* end confdefs.h. */ 20058 #include <cmath> 20059 int 20060 main () 20061 { 20062 float f; std::isnan(f); 20063 ; 20064 return 0; 20065 } 20066 _ACEOF 20067 rm -f conftest.$ac_objext 20068 if { (ac_try="$ac_compile" 20069 case "(($ac_try" in 20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20071 *) ac_try_echo=$ac_try;; 20072 esac 20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20074 (eval "$ac_compile") 2>conftest.er1 20075 ac_status=$? 20076 grep -v '^ *+' conftest.er1 >conftest.err 20077 rm -f conftest.er1 20078 cat conftest.err >&5 20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20080 (exit $ac_status); } && 20081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20082 { (case "(($ac_try" in 20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20084 *) ac_try_echo=$ac_try;; 20085 esac 20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20087 (eval "$ac_try") 2>&5 20088 ac_status=$? 20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20090 (exit $ac_status); }; } && 20091 { ac_try='test -s conftest.$ac_objext' 20092 { (case "(($ac_try" in 20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20094 *) ac_try_echo=$ac_try;; 20095 esac 20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20097 (eval "$ac_try") 2>&5 20098 ac_status=$? 20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20100 (exit $ac_status); }; }; then 20101 ac_cv_func_std_isnan_in_cmath=yes 20102 else 20103 echo "$as_me: failed program was:" >&5 20104 sed 's/^/| /' conftest.$ac_ext >&5 20105 20106 ac_cv_func_std_isnan_in_cmath=no 20107 fi 20108 20109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20110 ac_ext=c 20111 ac_cpp='$CPP $CPPFLAGS' 20112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20114 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20115 20116 20117 fi 20118 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 20119 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 20120 20121 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 20122 20123 cat >>confdefs.h <<\_ACEOF 20124 #define HAVE_STD_ISNAN_IN_CMATH 1 20125 _ACEOF 20126 20127 fi 20128 20129 20130 20131 20132 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 20133 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 20134 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 20135 echo $ECHO_N "(cached) $ECHO_C" >&6 20136 else 20137 20138 ac_ext=cpp 20139 ac_cpp='$CXXCPP $CPPFLAGS' 20140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20143 20144 cat >conftest.$ac_ext <<_ACEOF 20145 /* confdefs.h. */ 20146 _ACEOF 20147 cat confdefs.h >>conftest.$ac_ext 20148 cat >>conftest.$ac_ext <<_ACEOF 20149 /* end confdefs.h. */ 20150 #include <math.h> 20151 int 20152 main () 20153 { 20154 float f; isinf(f); 20155 ; 20156 return 0; 20157 } 20158 _ACEOF 20159 rm -f conftest.$ac_objext 20160 if { (ac_try="$ac_compile" 20161 case "(($ac_try" in 20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20163 *) ac_try_echo=$ac_try;; 20164 esac 20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20166 (eval "$ac_compile") 2>conftest.er1 20167 ac_status=$? 20168 grep -v '^ *+' conftest.er1 >conftest.err 20169 rm -f conftest.er1 20170 cat conftest.err >&5 20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20172 (exit $ac_status); } && 20173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20174 { (case "(($ac_try" in 20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20176 *) ac_try_echo=$ac_try;; 20177 esac 20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20179 (eval "$ac_try") 2>&5 20180 ac_status=$? 20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20182 (exit $ac_status); }; } && 20183 { ac_try='test -s conftest.$ac_objext' 20184 { (case "(($ac_try" in 20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20186 *) ac_try_echo=$ac_try;; 20187 esac 20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20189 (eval "$ac_try") 2>&5 20190 ac_status=$? 20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20192 (exit $ac_status); }; }; then 20193 ac_cv_func_isinf_in_math_h=yes 20194 else 20195 echo "$as_me: failed program was:" >&5 20196 sed 's/^/| /' conftest.$ac_ext >&5 20197 20198 ac_cv_func_isinf_in_math_h=no 20199 fi 20200 20201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20202 ac_ext=c 20203 ac_cpp='$CPP $CPPFLAGS' 20204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20206 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20207 20208 20209 fi 20210 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 20211 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 20212 20213 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 20214 20215 cat >>confdefs.h <<\_ACEOF 20216 #define HAVE_ISINF_IN_MATH_H 1 20217 _ACEOF 20218 20219 fi 20220 20221 20222 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 20223 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 20224 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 20225 echo $ECHO_N "(cached) $ECHO_C" >&6 20226 else 20227 20228 ac_ext=cpp 20229 ac_cpp='$CXXCPP $CPPFLAGS' 20230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20233 20234 cat >conftest.$ac_ext <<_ACEOF 20235 /* confdefs.h. */ 20236 _ACEOF 20237 cat confdefs.h >>conftest.$ac_ext 20238 cat >>conftest.$ac_ext <<_ACEOF 20239 /* end confdefs.h. */ 20240 #include <cmath> 20241 int 20242 main () 20243 { 20244 float f; isinf(f); 20245 ; 20246 return 0; 20247 } 20248 _ACEOF 20249 rm -f conftest.$ac_objext 20250 if { (ac_try="$ac_compile" 20251 case "(($ac_try" in 20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20253 *) ac_try_echo=$ac_try;; 20254 esac 20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20256 (eval "$ac_compile") 2>conftest.er1 20257 ac_status=$? 20258 grep -v '^ *+' conftest.er1 >conftest.err 20259 rm -f conftest.er1 20260 cat conftest.err >&5 20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20262 (exit $ac_status); } && 20263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20264 { (case "(($ac_try" in 20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20266 *) ac_try_echo=$ac_try;; 20267 esac 20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20269 (eval "$ac_try") 2>&5 20270 ac_status=$? 20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20272 (exit $ac_status); }; } && 20273 { ac_try='test -s conftest.$ac_objext' 20274 { (case "(($ac_try" in 20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20276 *) ac_try_echo=$ac_try;; 20277 esac 20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20279 (eval "$ac_try") 2>&5 20280 ac_status=$? 20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20282 (exit $ac_status); }; }; then 20283 ac_cv_func_isinf_in_cmath=yes 20284 else 20285 echo "$as_me: failed program was:" >&5 20286 sed 's/^/| /' conftest.$ac_ext >&5 20287 20288 ac_cv_func_isinf_in_cmath=no 20289 fi 20290 20291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20292 ac_ext=c 20293 ac_cpp='$CPP $CPPFLAGS' 20294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20296 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20297 20298 20299 fi 20300 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 20301 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 20302 20303 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 20304 20305 cat >>confdefs.h <<\_ACEOF 20306 #define HAVE_ISINF_IN_CMATH 1 20307 _ACEOF 20308 20309 fi 20310 20311 20312 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 20313 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 20314 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 20315 echo $ECHO_N "(cached) $ECHO_C" >&6 20316 else 20317 20318 ac_ext=cpp 20319 ac_cpp='$CXXCPP $CPPFLAGS' 20320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20323 20324 cat >conftest.$ac_ext <<_ACEOF 20325 /* confdefs.h. */ 20326 _ACEOF 20327 cat confdefs.h >>conftest.$ac_ext 20328 cat >>conftest.$ac_ext <<_ACEOF 20329 /* end confdefs.h. */ 20330 #include <cmath> 20331 int 20332 main () 20333 { 20334 float f; std::isinf(f); 20335 ; 20336 return 0; 20337 } 20338 _ACEOF 20339 rm -f conftest.$ac_objext 20340 if { (ac_try="$ac_compile" 20341 case "(($ac_try" in 20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20343 *) ac_try_echo=$ac_try;; 20344 esac 20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20346 (eval "$ac_compile") 2>conftest.er1 20347 ac_status=$? 20348 grep -v '^ *+' conftest.er1 >conftest.err 20349 rm -f conftest.er1 20350 cat conftest.err >&5 20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20352 (exit $ac_status); } && 20353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20354 { (case "(($ac_try" in 20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20356 *) ac_try_echo=$ac_try;; 20357 esac 20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20359 (eval "$ac_try") 2>&5 20360 ac_status=$? 20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20362 (exit $ac_status); }; } && 20363 { ac_try='test -s conftest.$ac_objext' 20364 { (case "(($ac_try" in 20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20366 *) ac_try_echo=$ac_try;; 20367 esac 20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20369 (eval "$ac_try") 2>&5 20370 ac_status=$? 20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20372 (exit $ac_status); }; }; then 20373 ac_cv_func_std_isinf_in_cmath=yes 20374 else 20375 echo "$as_me: failed program was:" >&5 20376 sed 's/^/| /' conftest.$ac_ext >&5 20377 20378 ac_cv_func_std_isinf_in_cmath=no 20379 fi 20380 20381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20382 ac_ext=c 20383 ac_cpp='$CPP $CPPFLAGS' 20384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20386 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20387 20388 20389 fi 20390 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 20391 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 20392 20393 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 20394 20395 cat >>confdefs.h <<\_ACEOF 20396 #define HAVE_STD_ISINF_IN_CMATH 1 20397 _ACEOF 20398 20399 fi 20400 20401 20402 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 20403 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 20404 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 20405 echo $ECHO_N "(cached) $ECHO_C" >&6 20406 else 20407 20408 ac_ext=cpp 20409 ac_cpp='$CXXCPP $CPPFLAGS' 20410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20413 20414 cat >conftest.$ac_ext <<_ACEOF 20415 /* confdefs.h. */ 20416 _ACEOF 20417 cat confdefs.h >>conftest.$ac_ext 20418 cat >>conftest.$ac_ext <<_ACEOF 20419 /* end confdefs.h. */ 20420 #include <ieeefp.h> 20421 int 20422 main () 20423 { 20424 float f; finite(f); 20425 ; 20426 return 0; 20427 } 20428 _ACEOF 20429 rm -f conftest.$ac_objext 20430 if { (ac_try="$ac_compile" 20431 case "(($ac_try" in 20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20433 *) ac_try_echo=$ac_try;; 20434 esac 20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20436 (eval "$ac_compile") 2>conftest.er1 20437 ac_status=$? 20438 grep -v '^ *+' conftest.er1 >conftest.err 20439 rm -f conftest.er1 20440 cat conftest.err >&5 20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20442 (exit $ac_status); } && 20443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20444 { (case "(($ac_try" in 20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20446 *) ac_try_echo=$ac_try;; 20447 esac 20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20449 (eval "$ac_try") 2>&5 20450 ac_status=$? 20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20452 (exit $ac_status); }; } && 20453 { ac_try='test -s conftest.$ac_objext' 20454 { (case "(($ac_try" in 20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20456 *) ac_try_echo=$ac_try;; 20457 esac 20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20459 (eval "$ac_try") 2>&5 20460 ac_status=$? 20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20462 (exit $ac_status); }; }; then 20463 ac_cv_func_finite_in_ieeefp_h=yes 20464 else 20465 echo "$as_me: failed program was:" >&5 20466 sed 's/^/| /' conftest.$ac_ext >&5 20467 20468 ac_cv_func_finite_in_ieeefp_h=no 20469 fi 20470 20471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20472 ac_ext=c 20473 ac_cpp='$CPP $CPPFLAGS' 20474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20476 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20477 20478 20479 fi 20480 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 20481 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 20482 20483 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 20484 20485 cat >>confdefs.h <<\_ACEOF 20486 #define HAVE_FINITE_IN_IEEEFP_H 1 20487 _ACEOF 20488 20489 fi 20490 20491 20492 20493 if test "$llvm_cv_platform_type" = "Unix" ; then 20494 20495 20496 for ac_header in stdlib.h unistd.h 20497 do 20498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20500 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20503 echo $ECHO_N "(cached) $ECHO_C" >&6 20504 fi 20505 ac_res=`eval echo '${'$as_ac_Header'}'` 20506 { echo "$as_me:$LINENO: result: $ac_res" >&5 20507 echo "${ECHO_T}$ac_res" >&6; } 20508 else 20509 # Is the header compilable? 20510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 20511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20512 cat >conftest.$ac_ext <<_ACEOF 20513 /* confdefs.h. */ 20514 _ACEOF 20515 cat confdefs.h >>conftest.$ac_ext 20516 cat >>conftest.$ac_ext <<_ACEOF 20517 /* end confdefs.h. */ 20518 $ac_includes_default 20519 #include <$ac_header> 20520 _ACEOF 20521 rm -f conftest.$ac_objext 20522 if { (ac_try="$ac_compile" 20523 case "(($ac_try" in 20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20525 *) ac_try_echo=$ac_try;; 20526 esac 20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20528 (eval "$ac_compile") 2>conftest.er1 20529 ac_status=$? 20530 grep -v '^ *+' conftest.er1 >conftest.err 20531 rm -f conftest.er1 20532 cat conftest.err >&5 20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20534 (exit $ac_status); } && 20535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20536 { (case "(($ac_try" in 20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20538 *) ac_try_echo=$ac_try;; 20539 esac 20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20541 (eval "$ac_try") 2>&5 20542 ac_status=$? 20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20544 (exit $ac_status); }; } && 20545 { ac_try='test -s conftest.$ac_objext' 20546 { (case "(($ac_try" in 20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20548 *) ac_try_echo=$ac_try;; 20549 esac 20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20551 (eval "$ac_try") 2>&5 20552 ac_status=$? 20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20554 (exit $ac_status); }; }; then 20555 ac_header_compiler=yes 20556 else 20557 echo "$as_me: failed program was:" >&5 20558 sed 's/^/| /' conftest.$ac_ext >&5 20559 20560 ac_header_compiler=no 20561 fi 20562 20563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20565 echo "${ECHO_T}$ac_header_compiler" >&6; } 20566 20567 # Is the header present? 20568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 20569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20570 cat >conftest.$ac_ext <<_ACEOF 20571 /* confdefs.h. */ 20572 _ACEOF 20573 cat confdefs.h >>conftest.$ac_ext 20574 cat >>conftest.$ac_ext <<_ACEOF 20575 /* end confdefs.h. */ 20576 #include <$ac_header> 20577 _ACEOF 20578 if { (ac_try="$ac_cpp conftest.$ac_ext" 20579 case "(($ac_try" in 20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20581 *) ac_try_echo=$ac_try;; 20582 esac 20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20585 ac_status=$? 20586 grep -v '^ *+' conftest.er1 >conftest.err 20587 rm -f conftest.er1 20588 cat conftest.err >&5 20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20590 (exit $ac_status); } >/dev/null; then 20591 if test -s conftest.err; then 20592 ac_cpp_err=$ac_c_preproc_warn_flag 20593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20594 else 20595 ac_cpp_err= 20596 fi 20597 else 20598 ac_cpp_err=yes 20599 fi 20600 if test -z "$ac_cpp_err"; then 20601 ac_header_preproc=yes 20602 else 20603 echo "$as_me: failed program was:" >&5 20604 sed 's/^/| /' conftest.$ac_ext >&5 20605 20606 ac_header_preproc=no 20607 fi 20608 20609 rm -f conftest.err conftest.$ac_ext 20610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20611 echo "${ECHO_T}$ac_header_preproc" >&6; } 20612 20613 # So? What about this header? 20614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20615 yes:no: ) 20616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20620 ac_header_preproc=yes 20621 ;; 20622 no:yes:* ) 20623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20635 ( cat <<\_ASBOX 20636 ## ------------------------------------ ## 20637 ## Report this to http://llvm.org/bugs/ ## 20638 ## ------------------------------------ ## 20639 _ASBOX 20640 ) | sed "s/^/$as_me: WARNING: /" >&2 20641 ;; 20642 esac 20643 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20646 echo $ECHO_N "(cached) $ECHO_C" >&6 20647 else 20648 eval "$as_ac_Header=\$ac_header_preproc" 20649 fi 20650 ac_res=`eval echo '${'$as_ac_Header'}'` 20651 { echo "$as_me:$LINENO: result: $ac_res" >&5 20652 echo "${ECHO_T}$ac_res" >&6; } 20653 20654 fi 20655 if test `eval echo '${'$as_ac_Header'}'` = yes; then 20656 cat >>confdefs.h <<_ACEOF 20657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20658 _ACEOF 20659 20660 fi 20661 20662 done 20663 20664 20665 for ac_func in getpagesize 20666 do 20667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20668 { echo "$as_me:$LINENO: checking for $ac_func" >&5 20669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20671 echo $ECHO_N "(cached) $ECHO_C" >&6 20672 else 20673 cat >conftest.$ac_ext <<_ACEOF 20674 /* confdefs.h. */ 20675 _ACEOF 20676 cat confdefs.h >>conftest.$ac_ext 20677 cat >>conftest.$ac_ext <<_ACEOF 20678 /* end confdefs.h. */ 20679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20680 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20681 #define $ac_func innocuous_$ac_func 20682 20683 /* System header to define __stub macros and hopefully few prototypes, 20684 which can conflict with char $ac_func (); below. 20685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20686 <limits.h> exists even on freestanding compilers. */ 20687 20688 #ifdef __STDC__ 20689 # include <limits.h> 20690 #else 20691 # include <assert.h> 20692 #endif 20693 20694 #undef $ac_func 20695 20696 /* Override any GCC internal prototype to avoid an error. 20697 Use char because int might match the return type of a GCC 20698 builtin and then its argument prototype would still apply. */ 20699 #ifdef __cplusplus 20700 extern "C" 20701 #endif 20702 char $ac_func (); 20703 /* The GNU C library defines this for functions which it implements 20704 to always fail with ENOSYS. Some functions are actually named 20705 something starting with __ and the normal name is an alias. */ 20706 #if defined __stub_$ac_func || defined __stub___$ac_func 20707 choke me 20708 #endif 20709 20710 int 20711 main () 20712 { 20713 return $ac_func (); 20714 ; 20715 return 0; 20716 } 20717 _ACEOF 20718 rm -f conftest.$ac_objext conftest$ac_exeext 20719 if { (ac_try="$ac_link" 20720 case "(($ac_try" in 20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20722 *) ac_try_echo=$ac_try;; 20723 esac 20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20725 (eval "$ac_link") 2>conftest.er1 20726 ac_status=$? 20727 grep -v '^ *+' conftest.er1 >conftest.err 20728 rm -f conftest.er1 20729 cat conftest.err >&5 20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20731 (exit $ac_status); } && 20732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20733 { (case "(($ac_try" in 20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20735 *) ac_try_echo=$ac_try;; 20736 esac 20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20738 (eval "$ac_try") 2>&5 20739 ac_status=$? 20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20741 (exit $ac_status); }; } && 20742 { ac_try='test -s conftest$ac_exeext' 20743 { (case "(($ac_try" in 20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20745 *) ac_try_echo=$ac_try;; 20746 esac 20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20748 (eval "$ac_try") 2>&5 20749 ac_status=$? 20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20751 (exit $ac_status); }; }; then 20752 eval "$as_ac_var=yes" 20753 else 20754 echo "$as_me: failed program was:" >&5 20755 sed 's/^/| /' conftest.$ac_ext >&5 20756 20757 eval "$as_ac_var=no" 20758 fi 20759 20760 rm -f core conftest.err conftest.$ac_objext \ 20761 conftest$ac_exeext conftest.$ac_ext 20762 fi 20763 ac_res=`eval echo '${'$as_ac_var'}'` 20764 { echo "$as_me:$LINENO: result: $ac_res" >&5 20765 echo "${ECHO_T}$ac_res" >&6; } 20766 if test `eval echo '${'$as_ac_var'}'` = yes; then 20767 cat >>confdefs.h <<_ACEOF 20768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20769 _ACEOF 20770 20771 fi 20772 done 20773 20774 { echo "$as_me:$LINENO: checking for working mmap" >&5 20775 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 20776 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 20777 echo $ECHO_N "(cached) $ECHO_C" >&6 20778 else 20779 if test "$cross_compiling" = yes; then 20780 ac_cv_func_mmap_fixed_mapped=no 20781 else 20782 cat >conftest.$ac_ext <<_ACEOF 20783 /* confdefs.h. */ 20784 _ACEOF 20785 cat confdefs.h >>conftest.$ac_ext 20786 cat >>conftest.$ac_ext <<_ACEOF 20787 /* end confdefs.h. */ 20788 $ac_includes_default 20789 /* malloc might have been renamed as rpl_malloc. */ 20790 #undef malloc 20791 20792 /* Thanks to Mike Haertel and Jim Avera for this test. 20793 Here is a matrix of mmap possibilities: 20794 mmap private not fixed 20795 mmap private fixed at somewhere currently unmapped 20796 mmap private fixed at somewhere already mapped 20797 mmap shared not fixed 20798 mmap shared fixed at somewhere currently unmapped 20799 mmap shared fixed at somewhere already mapped 20800 For private mappings, we should verify that changes cannot be read() 20801 back from the file, nor mmap's back from the file at a different 20802 address. (There have been systems where private was not correctly 20803 implemented like the infamous i386 svr4.0, and systems where the 20804 VM page cache was not coherent with the file system buffer cache 20805 like early versions of FreeBSD and possibly contemporary NetBSD.) 20806 For shared mappings, we should conversely verify that changes get 20807 propagated back to all the places they're supposed to be. 20808 20809 Grep wants private fixed already mapped. 20810 The main things grep needs to know about mmap are: 20811 * does it exist and is it safe to write into the mmap'd area 20812 * how to use it (BSD variants) */ 20813 20814 #include <fcntl.h> 20815 #include <sys/mman.h> 20816 20817 #if !STDC_HEADERS && !HAVE_STDLIB_H 20818 char *malloc (); 20819 #endif 20820 20821 /* This mess was copied from the GNU getpagesize.h. */ 20822 #if !HAVE_GETPAGESIZE 20823 /* Assume that all systems that can run configure have sys/param.h. */ 20824 # if !HAVE_SYS_PARAM_H 20825 # define HAVE_SYS_PARAM_H 1 20826 # endif 20827 20828 # ifdef _SC_PAGESIZE 20829 # define getpagesize() sysconf(_SC_PAGESIZE) 20830 # else /* no _SC_PAGESIZE */ 20831 # if HAVE_SYS_PARAM_H 20832 # include <sys/param.h> 20833 # ifdef EXEC_PAGESIZE 20834 # define getpagesize() EXEC_PAGESIZE 20835 # else /* no EXEC_PAGESIZE */ 20836 # ifdef NBPG 20837 # define getpagesize() NBPG * CLSIZE 20838 # ifndef CLSIZE 20839 # define CLSIZE 1 20840 # endif /* no CLSIZE */ 20841 # else /* no NBPG */ 20842 # ifdef NBPC 20843 # define getpagesize() NBPC 20844 # else /* no NBPC */ 20845 # ifdef PAGESIZE 20846 # define getpagesize() PAGESIZE 20847 # endif /* PAGESIZE */ 20848 # endif /* no NBPC */ 20849 # endif /* no NBPG */ 20850 # endif /* no EXEC_PAGESIZE */ 20851 # else /* no HAVE_SYS_PARAM_H */ 20852 # define getpagesize() 8192 /* punt totally */ 20853 # endif /* no HAVE_SYS_PARAM_H */ 20854 # endif /* no _SC_PAGESIZE */ 20855 20856 #endif /* no HAVE_GETPAGESIZE */ 20857 20858 int 20859 main () 20860 { 20861 char *data, *data2, *data3; 20862 int i, pagesize; 20863 int fd; 20864 20865 pagesize = getpagesize (); 20866 20867 /* First, make a file with some known garbage in it. */ 20868 data = (char *) malloc (pagesize); 20869 if (!data) 20870 return 1; 20871 for (i = 0; i < pagesize; ++i) 20872 *(data + i) = rand (); 20873 umask (0); 20874 fd = creat ("conftest.mmap", 0600); 20875 if (fd < 0) 20876 return 1; 20877 if (write (fd, data, pagesize) != pagesize) 20878 return 1; 20879 close (fd); 20880 20881 /* Next, try to mmap the file at a fixed address which already has 20882 something else allocated at it. If we can, also make sure that 20883 we see the same garbage. */ 20884 fd = open ("conftest.mmap", O_RDWR); 20885 if (fd < 0) 20886 return 1; 20887 data2 = (char *) malloc (2 * pagesize); 20888 if (!data2) 20889 return 1; 20890 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 20891 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20892 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20893 return 1; 20894 for (i = 0; i < pagesize; ++i) 20895 if (*(data + i) != *(data2 + i)) 20896 return 1; 20897 20898 /* Finally, make sure that changes to the mapped area do not 20899 percolate back to the file as seen by read(). (This is a bug on 20900 some variants of i386 svr4.0.) */ 20901 for (i = 0; i < pagesize; ++i) 20902 *(data2 + i) = *(data2 + i) + 1; 20903 data3 = (char *) malloc (pagesize); 20904 if (!data3) 20905 return 1; 20906 if (read (fd, data3, pagesize) != pagesize) 20907 return 1; 20908 for (i = 0; i < pagesize; ++i) 20909 if (*(data + i) != *(data3 + i)) 20910 return 1; 20911 close (fd); 20912 return 0; 20913 } 20914 _ACEOF 20915 rm -f conftest$ac_exeext 20916 if { (ac_try="$ac_link" 20917 case "(($ac_try" in 20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20919 *) ac_try_echo=$ac_try;; 20920 esac 20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20922 (eval "$ac_link") 2>&5 20923 ac_status=$? 20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20926 { (case "(($ac_try" in 20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20928 *) ac_try_echo=$ac_try;; 20929 esac 20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20931 (eval "$ac_try") 2>&5 20932 ac_status=$? 20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20934 (exit $ac_status); }; }; then 20935 ac_cv_func_mmap_fixed_mapped=yes 20936 else 20937 echo "$as_me: program exited with status $ac_status" >&5 20938 echo "$as_me: failed program was:" >&5 20939 sed 's/^/| /' conftest.$ac_ext >&5 20940 20941 ( exit $ac_status ) 20942 ac_cv_func_mmap_fixed_mapped=no 20943 fi 20944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20945 fi 20946 20947 20948 fi 20949 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 20950 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 20951 if test $ac_cv_func_mmap_fixed_mapped = yes; then 20952 20953 cat >>confdefs.h <<\_ACEOF 20954 #define HAVE_MMAP 1 20955 _ACEOF 20956 20957 fi 20958 rm -f conftest.mmap 20959 20960 { echo "$as_me:$LINENO: checking for mmap of files" >&5 20961 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 20962 if test "${ac_cv_func_mmap_file+set}" = set; then 20963 echo $ECHO_N "(cached) $ECHO_C" >&6 20964 else 20965 ac_ext=c 20966 ac_cpp='$CPP $CPPFLAGS' 20967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20969 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20970 20971 if test "$cross_compiling" = yes; then 20972 ac_cv_func_mmap_file=no 20973 else 20974 cat >conftest.$ac_ext <<_ACEOF 20975 20976 /* confdefs.h. */ 20977 _ACEOF 20978 cat confdefs.h >>conftest.$ac_ext 20979 cat >>conftest.$ac_ext <<_ACEOF 20980 /* end confdefs.h. */ 20981 20982 #include <sys/types.h> 20983 #include <sys/mman.h> 20984 #include <fcntl.h> 20985 20986 int 20987 main () 20988 { 20989 20990 int fd; 20991 fd = creat ("foo",0777); 20992 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 20993 unlink ("foo"); 20994 return (fd != (int) MAP_FAILED); 20995 ; 20996 return 0; 20997 } 20998 _ACEOF 20999 rm -f conftest$ac_exeext 21000 if { (ac_try="$ac_link" 21001 case "(($ac_try" in 21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21003 *) ac_try_echo=$ac_try;; 21004 esac 21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21006 (eval "$ac_link") 2>&5 21007 ac_status=$? 21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21010 { (case "(($ac_try" in 21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21012 *) ac_try_echo=$ac_try;; 21013 esac 21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21015 (eval "$ac_try") 2>&5 21016 ac_status=$? 21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21018 (exit $ac_status); }; }; then 21019 ac_cv_func_mmap_file=yes 21020 else 21021 echo "$as_me: program exited with status $ac_status" >&5 21022 echo "$as_me: failed program was:" >&5 21023 sed 's/^/| /' conftest.$ac_ext >&5 21024 21025 ( exit $ac_status ) 21026 ac_cv_func_mmap_file=no 21027 fi 21028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21029 fi 21030 21031 21032 ac_ext=c 21033 ac_cpp='$CPP $CPPFLAGS' 21034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21036 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21037 21038 21039 fi 21040 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 21041 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 21042 if test "$ac_cv_func_mmap_file" = yes; then 21043 21044 cat >>confdefs.h <<\_ACEOF 21045 #define HAVE_MMAP_FILE 21046 _ACEOF 21047 21048 MMAP_FILE=yes 21049 21050 fi 21051 21052 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 21053 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 21054 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 21055 echo $ECHO_N "(cached) $ECHO_C" >&6 21056 else 21057 if test "$llvm_cv_os_type" = "Interix" ; then 21058 ac_cv_need_dev_zero_for_mmap=yes 21059 else 21060 ac_cv_need_dev_zero_for_mmap=no 21061 fi 21062 21063 fi 21064 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 21065 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 21066 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 21067 21068 cat >>confdefs.h <<\_ACEOF 21069 #define NEED_DEV_ZERO_FOR_MMAP 1 21070 _ACEOF 21071 21072 fi 21073 21074 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 21075 then 21076 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 21077 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 21078 fi 21079 if test "$ac_cv_func_mmap_file" = "no" 21080 then 21081 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 21082 echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 21083 fi 21084 fi 21085 21086 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 21087 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 21088 ac_ext=cpp 21089 ac_cpp='$CXXCPP $CPPFLAGS' 21090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21093 21094 cat >conftest.$ac_ext <<_ACEOF 21095 21096 /* confdefs.h. */ 21097 _ACEOF 21098 cat confdefs.h >>conftest.$ac_ext 21099 cat >>conftest.$ac_ext <<_ACEOF 21100 /* end confdefs.h. */ 21101 21102 int main() { 21103 volatile unsigned long val = 1; 21104 __sync_synchronize(); 21105 __sync_val_compare_and_swap(&val, 1, 0); 21106 __sync_add_and_fetch(&val, 1); 21107 __sync_sub_and_fetch(&val, 1); 21108 return 0; 21109 } 21110 21111 21112 _ACEOF 21113 rm -f conftest.$ac_objext conftest$ac_exeext 21114 if { (ac_try="$ac_link" 21115 case "(($ac_try" in 21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21117 *) ac_try_echo=$ac_try;; 21118 esac 21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21120 (eval "$ac_link") 2>conftest.er1 21121 ac_status=$? 21122 grep -v '^ *+' conftest.er1 >conftest.err 21123 rm -f conftest.er1 21124 cat conftest.err >&5 21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21126 (exit $ac_status); } && 21127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21128 { (case "(($ac_try" in 21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21130 *) ac_try_echo=$ac_try;; 21131 esac 21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21133 (eval "$ac_try") 2>&5 21134 ac_status=$? 21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21136 (exit $ac_status); }; } && 21137 { ac_try='test -s conftest$ac_exeext' 21138 { (case "(($ac_try" in 21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21140 *) ac_try_echo=$ac_try;; 21141 esac 21142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21143 (eval "$ac_try") 2>&5 21144 ac_status=$? 21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21146 (exit $ac_status); }; }; then 21147 21148 { echo "$as_me:$LINENO: result: yes" >&5 21149 echo "${ECHO_T}yes" >&6; } 21150 21151 cat >>confdefs.h <<\_ACEOF 21152 #define LLVM_HAS_ATOMICS 1 21153 _ACEOF 21154 21155 21156 else 21157 echo "$as_me: failed program was:" >&5 21158 sed 's/^/| /' conftest.$ac_ext >&5 21159 21160 21161 { echo "$as_me:$LINENO: result: no" >&5 21162 echo "${ECHO_T}no" >&6; } 21163 21164 cat >>confdefs.h <<\_ACEOF 21165 #define LLVM_HAS_ATOMICS 0 21166 _ACEOF 21167 21168 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 21169 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 21170 21171 fi 21172 21173 rm -f core conftest.err conftest.$ac_objext \ 21174 conftest$ac_exeext conftest.$ac_ext 21175 ac_ext=c 21176 ac_cpp='$CPP $CPPFLAGS' 21177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21179 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21180 21181 21182 21183 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 21184 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 21185 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 21186 if test "${llvm_cv_linux_mixed+set}" = set; then 21187 echo $ECHO_N "(cached) $ECHO_C" >&6 21188 else 21189 ac_ext=c 21190 ac_cpp='$CPP $CPPFLAGS' 21191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21193 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21194 21195 cat >conftest.$ac_ext <<_ACEOF 21196 /* confdefs.h. */ 21197 _ACEOF 21198 cat confdefs.h >>conftest.$ac_ext 21199 cat >>conftest.$ac_ext <<_ACEOF 21200 /* end confdefs.h. */ 21201 #ifndef __x86_64__ 21202 error: Not x86-64 even if uname says so! 21203 #endif 21204 21205 int 21206 main () 21207 { 21208 21209 ; 21210 return 0; 21211 } 21212 _ACEOF 21213 rm -f conftest.$ac_objext 21214 if { (ac_try="$ac_compile" 21215 case "(($ac_try" in 21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21217 *) ac_try_echo=$ac_try;; 21218 esac 21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21220 (eval "$ac_compile") 2>conftest.er1 21221 ac_status=$? 21222 grep -v '^ *+' conftest.er1 >conftest.err 21223 rm -f conftest.er1 21224 cat conftest.err >&5 21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21226 (exit $ac_status); } && 21227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21228 { (case "(($ac_try" in 21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21230 *) ac_try_echo=$ac_try;; 21231 esac 21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21233 (eval "$ac_try") 2>&5 21234 ac_status=$? 21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21236 (exit $ac_status); }; } && 21237 { ac_try='test -s conftest.$ac_objext' 21238 { (case "(($ac_try" in 21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21240 *) ac_try_echo=$ac_try;; 21241 esac 21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21243 (eval "$ac_try") 2>&5 21244 ac_status=$? 21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21246 (exit $ac_status); }; }; then 21247 llvm_cv_linux_mixed=no 21248 else 21249 echo "$as_me: failed program was:" >&5 21250 sed 's/^/| /' conftest.$ac_ext >&5 21251 21252 llvm_cv_linux_mixed=yes 21253 fi 21254 21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21256 ac_ext=c 21257 ac_cpp='$CPP $CPPFLAGS' 21258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21260 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21261 21262 21263 fi 21264 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 21265 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 21266 21267 if test "$llvm_cv_linux_mixed" = "yes"; then 21268 llvm_cv_target_arch="x86" 21269 ARCH="x86" 21270 fi 21271 fi 21272 21273 21274 for ac_func in __dso_handle 21275 do 21276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21277 { echo "$as_me:$LINENO: checking for $ac_func" >&5 21278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21280 echo $ECHO_N "(cached) $ECHO_C" >&6 21281 else 21282 cat >conftest.$ac_ext <<_ACEOF 21283 /* confdefs.h. */ 21284 _ACEOF 21285 cat confdefs.h >>conftest.$ac_ext 21286 cat >>conftest.$ac_ext <<_ACEOF 21287 /* end confdefs.h. */ 21288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21289 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21290 #define $ac_func innocuous_$ac_func 21291 21292 /* System header to define __stub macros and hopefully few prototypes, 21293 which can conflict with char $ac_func (); below. 21294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21295 <limits.h> exists even on freestanding compilers. */ 21296 21297 #ifdef __STDC__ 21298 # include <limits.h> 21299 #else 21300 # include <assert.h> 21301 #endif 21302 21303 #undef $ac_func 21304 21305 /* Override any GCC internal prototype to avoid an error. 21306 Use char because int might match the return type of a GCC 21307 builtin and then its argument prototype would still apply. */ 21308 #ifdef __cplusplus 21309 extern "C" 21310 #endif 21311 char $ac_func (); 21312 /* The GNU C library defines this for functions which it implements 21313 to always fail with ENOSYS. Some functions are actually named 21314 something starting with __ and the normal name is an alias. */ 21315 #if defined __stub_$ac_func || defined __stub___$ac_func 21316 choke me 21317 #endif 21318 21319 int 21320 main () 21321 { 21322 return $ac_func (); 21323 ; 21324 return 0; 21325 } 21326 _ACEOF 21327 rm -f conftest.$ac_objext conftest$ac_exeext 21328 if { (ac_try="$ac_link" 21329 case "(($ac_try" in 21330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21331 *) ac_try_echo=$ac_try;; 21332 esac 21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21334 (eval "$ac_link") 2>conftest.er1 21335 ac_status=$? 21336 grep -v '^ *+' conftest.er1 >conftest.err 21337 rm -f conftest.er1 21338 cat conftest.err >&5 21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21340 (exit $ac_status); } && 21341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21342 { (case "(($ac_try" in 21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21344 *) ac_try_echo=$ac_try;; 21345 esac 21346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21347 (eval "$ac_try") 2>&5 21348 ac_status=$? 21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21350 (exit $ac_status); }; } && 21351 { ac_try='test -s conftest$ac_exeext' 21352 { (case "(($ac_try" in 21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21354 *) ac_try_echo=$ac_try;; 21355 esac 21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21357 (eval "$ac_try") 2>&5 21358 ac_status=$? 21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21360 (exit $ac_status); }; }; then 21361 eval "$as_ac_var=yes" 21362 else 21363 echo "$as_me: failed program was:" >&5 21364 sed 's/^/| /' conftest.$ac_ext >&5 21365 21366 eval "$as_ac_var=no" 21367 fi 21368 21369 rm -f core conftest.err conftest.$ac_objext \ 21370 conftest$ac_exeext conftest.$ac_ext 21371 fi 21372 ac_res=`eval echo '${'$as_ac_var'}'` 21373 { echo "$as_me:$LINENO: result: $ac_res" >&5 21374 echo "${ECHO_T}$ac_res" >&6; } 21375 if test `eval echo '${'$as_ac_var'}'` = yes; then 21376 cat >>confdefs.h <<_ACEOF 21377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21378 _ACEOF 21379 21380 fi 21381 done 21382 21383 21384 SHLIBEXT=$libltdl_cv_shlibext 21385 21386 21387 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 21388 21389 21390 if test "${prefix}" = "NONE" ; then 21391 prefix="/usr/local" 21392 fi 21393 eval LLVM_PREFIX="${prefix}"; 21394 eval LLVM_BINDIR="${prefix}/bin"; 21395 eval LLVM_LIBDIR="${prefix}/lib"; 21396 eval LLVM_DATADIR="${prefix}/share/llvm"; 21397 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 21398 eval LLVM_ETCDIR="${prefix}/etc/llvm"; 21399 eval LLVM_INCLUDEDIR="${prefix}/include"; 21400 eval LLVM_INFODIR="${prefix}/info"; 21401 eval LLVM_MANDIR="${prefix}/man"; 21402 LLVM_CONFIGTIME=`date` 21403 21404 21405 21406 21407 21408 21409 21410 21411 21412 21413 21414 if test "${ENABLE_TIMESTAMPS}" = "0"; then 21415 LLVM_CONFIGTIME="(timestamp not enabled)" 21416 fi 21417 21418 21419 cat >>confdefs.h <<_ACEOF 21420 #define LLVM_PREFIX "$LLVM_PREFIX" 21421 _ACEOF 21422 21423 21424 cat >>confdefs.h <<_ACEOF 21425 #define LLVM_BINDIR "$LLVM_BINDIR" 21426 _ACEOF 21427 21428 21429 cat >>confdefs.h <<_ACEOF 21430 #define LLVM_LIBDIR "$LLVM_LIBDIR" 21431 _ACEOF 21432 21433 21434 cat >>confdefs.h <<_ACEOF 21435 #define LLVM_DATADIR "$LLVM_DATADIR" 21436 _ACEOF 21437 21438 21439 cat >>confdefs.h <<_ACEOF 21440 #define LLVM_DOCSDIR "$LLVM_DOCSDIR" 21441 _ACEOF 21442 21443 21444 cat >>confdefs.h <<_ACEOF 21445 #define LLVM_ETCDIR "$LLVM_ETCDIR" 21446 _ACEOF 21447 21448 21449 cat >>confdefs.h <<_ACEOF 21450 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 21451 _ACEOF 21452 21453 21454 cat >>confdefs.h <<_ACEOF 21455 #define LLVM_INFODIR "$LLVM_INFODIR" 21456 _ACEOF 21457 21458 21459 cat >>confdefs.h <<_ACEOF 21460 #define LLVM_MANDIR "$LLVM_MANDIR" 21461 _ACEOF 21462 21463 21464 cat >>confdefs.h <<_ACEOF 21465 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 21466 _ACEOF 21467 21468 21469 cat >>confdefs.h <<_ACEOF 21470 #define LLVM_HOSTTRIPLE "$host" 21471 _ACEOF 21472 21473 21474 cat >>confdefs.h <<_ACEOF 21475 #define LLVM_DEFAULT_TARGET_TRIPLE "$target" 21476 _ACEOF 21477 21478 21479 if test "$BINDINGS_TO_BUILD" = auto ; then 21480 BINDINGS_TO_BUILD="" 21481 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 21482 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 21483 fi 21484 fi 21485 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 21486 21487 21488 ALL_BINDINGS=ocaml 21489 21490 21491 binding_prereqs_failed=0 21492 for a_binding in $BINDINGS_TO_BUILD ; do 21493 case "$a_binding" in 21494 ocaml) 21495 if test "x$OCAMLC" = x ; then 21496 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 21497 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 21498 binding_prereqs_failed=1 21499 fi 21500 if test "x$OCAMLDEP" = x ; then 21501 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 21502 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 21503 binding_prereqs_failed=1 21504 fi 21505 if test "x$OCAMLOPT" = x ; then 21506 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 21507 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 21508 fi 21509 if test "x$with_ocaml_libdir" != xauto ; then 21510 OCAML_LIBDIR=$with_ocaml_libdir 21511 21512 else 21513 ocaml_stdlib="`"$OCAMLC" -where`" 21514 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 21515 then 21516 # ocaml stdlib is beneath our prefix; use stdlib 21517 OCAML_LIBDIR=$ocaml_stdlib 21518 21519 else 21520 # ocaml stdlib is outside our prefix; use libdir/ocaml 21521 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 21522 21523 fi 21524 fi 21525 ;; 21526 esac 21527 done 21528 if test "$binding_prereqs_failed" = 1 ; then 21529 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 21530 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 21531 { (exit 1); exit 1; }; } 21532 fi 21533 21534 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 21535 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 21536 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 21537 echo $ECHO_N "(cached) $ECHO_C" >&6 21538 else 21539 ac_ext=cpp 21540 ac_cpp='$CXXCPP $CPPFLAGS' 21541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21544 21545 oldcxxflags="$CXXFLAGS" 21546 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 21547 cat >conftest.$ac_ext <<_ACEOF 21548 /* confdefs.h. */ 21549 _ACEOF 21550 cat confdefs.h >>conftest.$ac_ext 21551 cat >>conftest.$ac_ext <<_ACEOF 21552 /* end confdefs.h. */ 21553 template <typename T> struct X { void __attribute__((noinline)) f() {} }; 21554 int 21555 main () 21556 { 21557 X<int>().f(); 21558 ; 21559 return 0; 21560 } 21561 _ACEOF 21562 rm -f conftest.$ac_objext 21563 if { (ac_try="$ac_compile" 21564 case "(($ac_try" in 21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21566 *) ac_try_echo=$ac_try;; 21567 esac 21568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21569 (eval "$ac_compile") 2>conftest.er1 21570 ac_status=$? 21571 grep -v '^ *+' conftest.er1 >conftest.err 21572 rm -f conftest.er1 21573 cat conftest.err >&5 21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21575 (exit $ac_status); } && 21576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21577 { (case "(($ac_try" in 21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21579 *) ac_try_echo=$ac_try;; 21580 esac 21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21582 (eval "$ac_try") 2>&5 21583 ac_status=$? 21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21585 (exit $ac_status); }; } && 21586 { ac_try='test -s conftest.$ac_objext' 21587 { (case "(($ac_try" in 21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21589 *) ac_try_echo=$ac_try;; 21590 esac 21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21592 (eval "$ac_try") 2>&5 21593 ac_status=$? 21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21595 (exit $ac_status); }; }; then 21596 llvm_cv_cxx_visibility_inlines_hidden=yes 21597 else 21598 echo "$as_me: failed program was:" >&5 21599 sed 's/^/| /' conftest.$ac_ext >&5 21600 21601 llvm_cv_cxx_visibility_inlines_hidden=no 21602 fi 21603 21604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21605 CXXFLAGS="$oldcxxflags" 21606 ac_ext=c 21607 ac_cpp='$CPP $CPPFLAGS' 21608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21610 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21611 21612 21613 fi 21614 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 21615 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 21616 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 21617 ENABLE_VISIBILITY_INLINES_HIDDEN=1 21618 21619 else 21620 ENABLE_VISIBILITY_INLINES_HIDDEN=0 21621 21622 fi 21623 21624 21625 if test "$llvm_cv_link_use_r" = "yes" ; then 21626 RPATH="-Wl,-R" 21627 else 21628 RPATH="-Wl,-rpath" 21629 fi 21630 21631 21632 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 21633 RDYNAMIC="-Wl,-export-dynamic" 21634 else 21635 RDYNAMIC="" 21636 fi 21637 21638 21639 21640 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 21641 21642 21643 21644 21645 21646 21647 ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 21648 21649 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 21650 21651 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 21652 21653 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 21654 21655 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 21656 21657 21658 ac_config_files="$ac_config_files Makefile.config" 21659 21660 21661 ac_config_files="$ac_config_files llvm.spec" 21662 21663 21664 ac_config_files="$ac_config_files docs/doxygen.cfg" 21665 21666 21667 if test "${clang_src_root}" = ""; then 21668 clang_src_root="$srcdir/tools/clang" 21669 fi 21670 if test -f ${clang_src_root}/README.txt; then 21671 configh="include/clang/Config/config.h" 21672 doxy="docs/doxygen.cfg" 21673 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" 21674 21675 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" 21676 21677 fi 21678 21679 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" 21680 21681 21682 test "x$program_prefix" = "xNONE" && program_prefix="" 21683 21684 21685 21686 ac_config_commands="$ac_config_commands setup" 21687 21688 ac_config_commands="$ac_config_commands Makefile" 21689 21690 21691 ac_config_commands="$ac_config_commands Makefile.common" 21692 21693 21694 ac_config_commands="$ac_config_commands examples/Makefile" 21695 21696 21697 ac_config_commands="$ac_config_commands lib/Makefile" 21698 21699 21700 ac_config_commands="$ac_config_commands runtime/Makefile" 21701 21702 21703 ac_config_commands="$ac_config_commands test/Makefile" 21704 21705 21706 ac_config_commands="$ac_config_commands test/Makefile.tests" 21707 21708 21709 ac_config_commands="$ac_config_commands unittests/Makefile" 21710 21711 21712 ac_config_commands="$ac_config_commands tools/Makefile" 21713 21714 21715 ac_config_commands="$ac_config_commands utils/Makefile" 21716 21717 21718 ac_config_commands="$ac_config_commands projects/Makefile" 21719 21720 21721 ac_config_commands="$ac_config_commands bindings/Makefile" 21722 21723 21724 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 21725 21726 21727 21728 cat >confcache <<\_ACEOF 21729 # This file is a shell script that caches the results of configure 21730 # tests run on this system so they can be shared between configure 21731 # scripts and configure runs, see configure's option --config-cache. 21732 # It is not useful on other systems. If it contains results you don't 21733 # want to keep, you may remove or edit it. 21734 # 21735 # config.status only pays attention to the cache file if you give it 21736 # the --recheck option to rerun configure. 21737 # 21738 # `ac_cv_env_foo' variables (set or unset) will be overridden when 21739 # loading this file, other *unset* `ac_cv_foo' will be assigned the 21740 # following values. 21741 21742 _ACEOF 21743 21744 # The following way of writing the cache mishandles newlines in values, 21745 # but we know of no workaround that is simple, portable, and efficient. 21746 # So, we kill variables containing newlines. 21747 # Ultrix sh set writes to stderr and can't be redirected directly, 21748 # and sets the high bit in the cache file unless we assign to the vars. 21749 ( 21750 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21751 eval ac_val=\$$ac_var 21752 case $ac_val in #( 21753 *${as_nl}*) 21754 case $ac_var in #( 21755 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21756 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21757 esac 21758 case $ac_var in #( 21759 _ | IFS | as_nl) ;; #( 21760 *) $as_unset $ac_var ;; 21761 esac ;; 21762 esac 21763 done 21764 21765 (set) 2>&1 | 21766 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21767 *${as_nl}ac_space=\ *) 21768 # `set' does not quote correctly, so add quotes (double-quote 21769 # substitution turns \\\\ into \\, and sed turns \\ into \). 21770 sed -n \ 21771 "s/'/'\\\\''/g; 21772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21773 ;; #( 21774 *) 21775 # `set' quotes correctly as required by POSIX, so do not add quotes. 21776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21777 ;; 21778 esac | 21779 sort 21780 ) | 21781 sed ' 21782 /^ac_cv_env_/b end 21783 t clear 21784 :clear 21785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21786 t end 21787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21788 :end' >>confcache 21789 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21790 if test -w "$cache_file"; then 21791 test "x$cache_file" != "x/dev/null" && 21792 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21793 echo "$as_me: updating cache $cache_file" >&6;} 21794 cat confcache >$cache_file 21795 else 21796 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21797 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21798 fi 21799 fi 21800 rm -f confcache 21801 21802 test "x$prefix" = xNONE && prefix=$ac_default_prefix 21803 # Let make expand exec_prefix. 21804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21805 21806 DEFS=-DHAVE_CONFIG_H 21807 21808 ac_libobjs= 21809 ac_ltlibobjs= 21810 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21811 # 1. Remove the extension, and $U if already installed. 21812 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21813 ac_i=`echo "$ac_i" | sed "$ac_script"` 21814 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21815 # will be set to the directory where LIBOBJS objects are built. 21816 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21817 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21818 done 21819 LIBOBJS=$ac_libobjs 21820 21821 LTLIBOBJS=$ac_ltlibobjs 21822 21823 21824 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 21825 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 21826 Usually this means the macro was only invoked conditionally." >&5 21827 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 21828 Usually this means the macro was only invoked conditionally." >&2;} 21829 { (exit 1); exit 1; }; } 21830 fi 21831 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 21832 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21833 Usually this means the macro was only invoked conditionally." >&5 21834 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21835 Usually this means the macro was only invoked conditionally." >&2;} 21836 { (exit 1); exit 1; }; } 21837 fi 21838 21839 : ${CONFIG_STATUS=./config.status} 21840 ac_clean_files_save=$ac_clean_files 21841 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21842 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21843 echo "$as_me: creating $CONFIG_STATUS" >&6;} 21844 cat >$CONFIG_STATUS <<_ACEOF 21845 #! $SHELL 21846 # Generated by $as_me. 21847 # Run this file to recreate the current configuration. 21848 # Compiler output produced by configure, useful for debugging 21849 # configure, is in config.log if it exists. 21850 21851 debug=false 21852 ac_cs_recheck=false 21853 ac_cs_silent=false 21854 SHELL=\${CONFIG_SHELL-$SHELL} 21855 _ACEOF 21856 21857 cat >>$CONFIG_STATUS <<\_ACEOF 21858 ## --------------------- ## 21859 ## M4sh Initialization. ## 21860 ## --------------------- ## 21861 21862 # Be Bourne compatible 21863 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21864 emulate sh 21865 NULLCMD=: 21866 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21867 # is contrary to our usage. Disable this feature. 21868 alias -g '${1+"$@"}'='"$@"' 21869 setopt NO_GLOB_SUBST 21870 else 21871 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21872 fi 21873 BIN_SH=xpg4; export BIN_SH # for Tru64 21874 DUALCASE=1; export DUALCASE # for MKS sh 21875 21876 21877 # PATH needs CR 21878 # Avoid depending upon Character Ranges. 21879 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21880 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21881 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21882 as_cr_digits='0123456789' 21883 as_cr_alnum=$as_cr_Letters$as_cr_digits 21884 21885 # The user is always right. 21886 if test "${PATH_SEPARATOR+set}" != set; then 21887 echo "#! /bin/sh" >conf$$.sh 21888 echo "exit 0" >>conf$$.sh 21889 chmod +x conf$$.sh 21890 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21891 PATH_SEPARATOR=';' 21892 else 21893 PATH_SEPARATOR=: 21894 fi 21895 rm -f conf$$.sh 21896 fi 21897 21898 # Support unset when possible. 21899 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21900 as_unset=unset 21901 else 21902 as_unset=false 21903 fi 21904 21905 21906 # IFS 21907 # We need space, tab and new line, in precisely that order. Quoting is 21908 # there to prevent editors from complaining about space-tab. 21909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 21910 # splitting by setting IFS to empty value.) 21911 as_nl=' 21912 ' 21913 IFS=" "" $as_nl" 21914 21915 # Find who we are. Look in the path if we contain no directory separator. 21916 case $0 in 21917 *[\\/]* ) as_myself=$0 ;; 21918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21919 for as_dir in $PATH 21920 do 21921 IFS=$as_save_IFS 21922 test -z "$as_dir" && as_dir=. 21923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21924 done 21925 IFS=$as_save_IFS 21926 21927 ;; 21928 esac 21929 # We did not find ourselves, most probably we were run as `sh COMMAND' 21930 # in which case we are not to be found in the path. 21931 if test "x$as_myself" = x; then 21932 as_myself=$0 21933 fi 21934 if test ! -f "$as_myself"; then 21935 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21936 { (exit 1); exit 1; } 21937 fi 21938 21939 # Work around bugs in pre-3.0 UWIN ksh. 21940 for as_var in ENV MAIL MAILPATH 21941 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21942 done 21943 PS1='$ ' 21944 PS2='> ' 21945 PS4='+ ' 21946 21947 # NLS nuisances. 21948 for as_var in \ 21949 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21950 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21951 LC_TELEPHONE LC_TIME 21952 do 21953 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21954 eval $as_var=C; export $as_var 21955 else 21956 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21957 fi 21958 done 21959 21960 # Required to use basename. 21961 if expr a : '\(a\)' >/dev/null 2>&1 && 21962 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21963 as_expr=expr 21964 else 21965 as_expr=false 21966 fi 21967 21968 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21969 as_basename=basename 21970 else 21971 as_basename=false 21972 fi 21973 21974 21975 # Name of the executable. 21976 as_me=`$as_basename -- "$0" || 21977 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21978 X"$0" : 'X\(//\)$' \| \ 21979 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21980 echo X/"$0" | 21981 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21982 s//\1/ 21983 q 21984 } 21985 /^X\/\(\/\/\)$/{ 21986 s//\1/ 21987 q 21988 } 21989 /^X\/\(\/\).*/{ 21990 s//\1/ 21991 q 21992 } 21993 s/.*/./; q'` 21994 21995 # CDPATH. 21996 $as_unset CDPATH 21997 21998 21999 22000 as_lineno_1=$LINENO 22001 as_lineno_2=$LINENO 22002 test "x$as_lineno_1" != "x$as_lineno_2" && 22003 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22004 22005 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22006 # uniformly replaced by the line number. The first 'sed' inserts a 22007 # line-number line after each line using $LINENO; the second 'sed' 22008 # does the real work. The second script uses 'N' to pair each 22009 # line-number line with the line containing $LINENO, and appends 22010 # trailing '-' during substitution so that $LINENO is not a special 22011 # case at line end. 22012 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22013 # scripts with optimization help from Paolo Bonzini. Blame Lee 22014 # E. McMahon (1931-1989) for sed's syntax. :-) 22015 sed -n ' 22016 p 22017 /[$]LINENO/= 22018 ' <$as_myself | 22019 sed ' 22020 s/[$]LINENO.*/&-/ 22021 t lineno 22022 b 22023 :lineno 22024 N 22025 :loop 22026 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22027 t loop 22028 s/-\n.*// 22029 ' >$as_me.lineno && 22030 chmod +x "$as_me.lineno" || 22031 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22032 { (exit 1); exit 1; }; } 22033 22034 # Don't try to exec as it changes $[0], causing all sort of problems 22035 # (the dirname of $[0] is not the place where we might find the 22036 # original and so on. Autoconf is especially sensitive to this). 22037 . "./$as_me.lineno" 22038 # Exit status is that of the last command. 22039 exit 22040 } 22041 22042 22043 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22044 as_dirname=dirname 22045 else 22046 as_dirname=false 22047 fi 22048 22049 ECHO_C= ECHO_N= ECHO_T= 22050 case `echo -n x` in 22051 -n*) 22052 case `echo 'x\c'` in 22053 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22054 *) ECHO_C='\c';; 22055 esac;; 22056 *) 22057 ECHO_N='-n';; 22058 esac 22059 22060 if expr a : '\(a\)' >/dev/null 2>&1 && 22061 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22062 as_expr=expr 22063 else 22064 as_expr=false 22065 fi 22066 22067 rm -f conf$$ conf$$.exe conf$$.file 22068 if test -d conf$$.dir; then 22069 rm -f conf$$.dir/conf$$.file 22070 else 22071 rm -f conf$$.dir 22072 mkdir conf$$.dir 22073 fi 22074 echo >conf$$.file 22075 if ln -s conf$$.file conf$$ 2>/dev/null; then 22076 as_ln_s='ln -s' 22077 # ... but there are two gotchas: 22078 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22079 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22080 # In both cases, we have to default to `cp -p'. 22081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22082 as_ln_s='cp -p' 22083 elif ln conf$$.file conf$$ 2>/dev/null; then 22084 as_ln_s=ln 22085 else 22086 as_ln_s='cp -p' 22087 fi 22088 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22089 rmdir conf$$.dir 2>/dev/null 22090 22091 if mkdir -p . 2>/dev/null; then 22092 as_mkdir_p=: 22093 else 22094 test -d ./-p && rmdir ./-p 22095 as_mkdir_p=false 22096 fi 22097 22098 # Find out whether ``test -x'' works. Don't use a zero-byte file, as 22099 # systems may use methods other than mode bits to determine executability. 22100 cat >conf$$.file <<_ASEOF 22101 #! /bin/sh 22102 exit 0 22103 _ASEOF 22104 chmod +x conf$$.file 22105 if test -x conf$$.file >/dev/null 2>&1; then 22106 as_executable_p="test -x" 22107 else 22108 as_executable_p=: 22109 fi 22110 rm -f conf$$.file 22111 22112 # Sed expression to map a string onto a valid CPP name. 22113 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22114 22115 # Sed expression to map a string onto a valid variable name. 22116 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22117 22118 22119 exec 6>&1 22120 22121 # Save the log message, to keep $[0] and so on meaningful, and to 22122 # report actual input values of CONFIG_FILES etc. instead of their 22123 # values after options handling. 22124 ac_log=" 22125 This file was extended by LLVM $as_me 3.3svn, which was 22126 generated by GNU Autoconf 2.60. Invocation command line was 22127 22128 CONFIG_FILES = $CONFIG_FILES 22129 CONFIG_HEADERS = $CONFIG_HEADERS 22130 CONFIG_LINKS = $CONFIG_LINKS 22131 CONFIG_COMMANDS = $CONFIG_COMMANDS 22132 $ $0 $@ 22133 22134 on `(hostname || uname -n) 2>/dev/null | sed 1q` 22135 " 22136 22137 _ACEOF 22138 22139 cat >>$CONFIG_STATUS <<_ACEOF 22140 # Files that config.status was made for. 22141 config_files="$ac_config_files" 22142 config_headers="$ac_config_headers" 22143 config_commands="$ac_config_commands" 22144 22145 _ACEOF 22146 22147 cat >>$CONFIG_STATUS <<\_ACEOF 22148 ac_cs_usage="\ 22149 \`$as_me' instantiates files from templates according to the 22150 current configuration. 22151 22152 Usage: $0 [OPTIONS] [FILE]... 22153 22154 -h, --help print this help, then exit 22155 -V, --version print version number, then exit 22156 -q, --quiet do not print progress messages 22157 -d, --debug don't remove temporary files 22158 --recheck update $as_me by reconfiguring in the same conditions 22159 --file=FILE[:TEMPLATE] 22160 instantiate the configuration file FILE 22161 --header=FILE[:TEMPLATE] 22162 instantiate the configuration header FILE 22163 22164 Configuration files: 22165 $config_files 22166 22167 Configuration headers: 22168 $config_headers 22169 22170 Configuration commands: 22171 $config_commands 22172 22173 Report bugs to <bug-autoconf@gnu.org>." 22174 22175 _ACEOF 22176 cat >>$CONFIG_STATUS <<_ACEOF 22177 ac_cs_version="\\ 22178 LLVM config.status 3.3svn 22179 configured by $0, generated by GNU Autoconf 2.60, 22180 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22181 22182 Copyright (C) 2006 Free Software Foundation, Inc. 22183 This config.status script is free software; the Free Software Foundation 22184 gives unlimited permission to copy, distribute and modify it." 22185 22186 ac_pwd='$ac_pwd' 22187 srcdir='$srcdir' 22188 INSTALL='$INSTALL' 22189 _ACEOF 22190 22191 cat >>$CONFIG_STATUS <<\_ACEOF 22192 # If no file are specified by the user, then we need to provide default 22193 # value. By we need to know if files were specified by the user. 22194 ac_need_defaults=: 22195 while test $# != 0 22196 do 22197 case $1 in 22198 --*=*) 22199 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22200 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22201 ac_shift=: 22202 ;; 22203 *) 22204 ac_option=$1 22205 ac_optarg=$2 22206 ac_shift=shift 22207 ;; 22208 esac 22209 22210 case $ac_option in 22211 # Handling of the options. 22212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22213 ac_cs_recheck=: ;; 22214 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22215 echo "$ac_cs_version"; exit ;; 22216 --debug | --debu | --deb | --de | --d | -d ) 22217 debug=: ;; 22218 --file | --fil | --fi | --f ) 22219 $ac_shift 22220 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22221 ac_need_defaults=false;; 22222 --header | --heade | --head | --hea ) 22223 $ac_shift 22224 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22225 ac_need_defaults=false;; 22226 --he | --h) 22227 # Conflict between --help and --header 22228 { echo "$as_me: error: ambiguous option: $1 22229 Try \`$0 --help' for more information." >&2 22230 { (exit 1); exit 1; }; };; 22231 --help | --hel | -h ) 22232 echo "$ac_cs_usage"; exit ;; 22233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22234 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22235 ac_cs_silent=: ;; 22236 22237 # This is an error. 22238 -*) { echo "$as_me: error: unrecognized option: $1 22239 Try \`$0 --help' for more information." >&2 22240 { (exit 1); exit 1; }; } ;; 22241 22242 *) ac_config_targets="$ac_config_targets $1" 22243 ac_need_defaults=false ;; 22244 22245 esac 22246 shift 22247 done 22248 22249 ac_configure_extra_args= 22250 22251 if $ac_cs_silent; then 22252 exec 6>/dev/null 22253 ac_configure_extra_args="$ac_configure_extra_args --silent" 22254 fi 22255 22256 _ACEOF 22257 cat >>$CONFIG_STATUS <<_ACEOF 22258 if \$ac_cs_recheck; then 22259 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22260 CONFIG_SHELL=$SHELL 22261 export CONFIG_SHELL 22262 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22263 fi 22264 22265 _ACEOF 22266 cat >>$CONFIG_STATUS <<\_ACEOF 22267 exec 5>>config.log 22268 { 22269 echo 22270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22271 ## Running $as_me. ## 22272 _ASBOX 22273 echo "$ac_log" 22274 } >&5 22275 22276 _ACEOF 22277 cat >>$CONFIG_STATUS <<_ACEOF 22278 # 22279 # INIT-COMMANDS 22280 # 22281 llvm_src="${srcdir}" 22282 22283 _ACEOF 22284 22285 cat >>$CONFIG_STATUS <<\_ACEOF 22286 22287 # Handling of arguments. 22288 for ac_config_target in $ac_config_targets 22289 do 22290 case $ac_config_target in 22291 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 22292 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 22293 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 22294 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 22295 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 22296 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 22297 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 22298 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 22299 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 22300 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 22301 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; 22302 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; 22303 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; 22304 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 22305 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 22306 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 22307 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 22308 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 22309 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 22310 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 22311 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 22312 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 22313 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 22314 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 22315 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 22316 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 22317 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 22318 22319 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22320 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22321 { (exit 1); exit 1; }; };; 22322 esac 22323 done 22324 22325 22326 # If the user did not use the arguments to specify the items to instantiate, 22327 # then the envvar interface is used. Set only those that are not. 22328 # We use the long form for the default assignment because of an extremely 22329 # bizarre bug on SunOS 4.1.3. 22330 if $ac_need_defaults; then 22331 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22332 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22334 fi 22335 22336 # Have a temporary directory for convenience. Make it in the build tree 22337 # simply because there is no reason against having it here, and in addition, 22338 # creating and moving files from /tmp can sometimes cause problems. 22339 # Hook for its removal unless debugging. 22340 # Note that there is a small window in which the directory will not be cleaned: 22341 # after its creation but before its name has been assigned to `$tmp'. 22342 $debug || 22343 { 22344 tmp= 22345 trap 'exit_status=$? 22346 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22347 ' 0 22348 trap '{ (exit 1); exit 1; }' 1 2 13 15 22349 } 22350 # Create a (secure) tmp directory for tmp files. 22351 22352 { 22353 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22354 test -n "$tmp" && test -d "$tmp" 22355 } || 22356 { 22357 tmp=./conf$$-$RANDOM 22358 (umask 077 && mkdir "$tmp") 22359 } || 22360 { 22361 echo "$me: cannot create a temporary directory in ." >&2 22362 { (exit 1); exit 1; } 22363 } 22364 22365 # 22366 # Set up the sed scripts for CONFIG_FILES section. 22367 # 22368 22369 # No need to generate the scripts if there are no CONFIG_FILES. 22370 # This happens for instance when ./config.status config.h 22371 if test -n "$CONFIG_FILES"; then 22372 22373 _ACEOF 22374 22375 22376 22377 ac_delim='%!_!# ' 22378 for ac_last_try in false false false false false :; do 22379 cat >conf$$subs.sed <<_ACEOF 22380 SHELL!$SHELL$ac_delim 22381 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22382 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22383 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22384 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22385 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22386 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22387 exec_prefix!$exec_prefix$ac_delim 22388 prefix!$prefix$ac_delim 22389 program_transform_name!$program_transform_name$ac_delim 22390 bindir!$bindir$ac_delim 22391 sbindir!$sbindir$ac_delim 22392 libexecdir!$libexecdir$ac_delim 22393 datarootdir!$datarootdir$ac_delim 22394 datadir!$datadir$ac_delim 22395 sysconfdir!$sysconfdir$ac_delim 22396 sharedstatedir!$sharedstatedir$ac_delim 22397 localstatedir!$localstatedir$ac_delim 22398 includedir!$includedir$ac_delim 22399 oldincludedir!$oldincludedir$ac_delim 22400 docdir!$docdir$ac_delim 22401 infodir!$infodir$ac_delim 22402 htmldir!$htmldir$ac_delim 22403 dvidir!$dvidir$ac_delim 22404 pdfdir!$pdfdir$ac_delim 22405 psdir!$psdir$ac_delim 22406 libdir!$libdir$ac_delim 22407 localedir!$localedir$ac_delim 22408 mandir!$mandir$ac_delim 22409 DEFS!$DEFS$ac_delim 22410 ECHO_C!$ECHO_C$ac_delim 22411 ECHO_N!$ECHO_N$ac_delim 22412 ECHO_T!$ECHO_T$ac_delim 22413 LIBS!$LIBS$ac_delim 22414 build_alias!$build_alias$ac_delim 22415 host_alias!$host_alias$ac_delim 22416 target_alias!$target_alias$ac_delim 22417 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 22418 CC!$CC$ac_delim 22419 CFLAGS!$CFLAGS$ac_delim 22420 LDFLAGS!$LDFLAGS$ac_delim 22421 CPPFLAGS!$CPPFLAGS$ac_delim 22422 ac_ct_CC!$ac_ct_CC$ac_delim 22423 EXEEXT!$EXEEXT$ac_delim 22424 OBJEXT!$OBJEXT$ac_delim 22425 CXX!$CXX$ac_delim 22426 CXXFLAGS!$CXXFLAGS$ac_delim 22427 ac_ct_CXX!$ac_ct_CXX$ac_delim 22428 CPP!$CPP$ac_delim 22429 subdirs!$subdirs$ac_delim 22430 ENABLE_POLLY!$ENABLE_POLLY$ac_delim 22431 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 22432 build!$build$ac_delim 22433 build_cpu!$build_cpu$ac_delim 22434 build_vendor!$build_vendor$ac_delim 22435 build_os!$build_os$ac_delim 22436 host!$host$ac_delim 22437 host_cpu!$host_cpu$ac_delim 22438 host_vendor!$host_vendor$ac_delim 22439 host_os!$host_os$ac_delim 22440 target!$target$ac_delim 22441 target_cpu!$target_cpu$ac_delim 22442 target_vendor!$target_vendor$ac_delim 22443 target_os!$target_os$ac_delim 22444 OS!$OS$ac_delim 22445 HOST_OS!$HOST_OS$ac_delim 22446 TARGET_OS!$TARGET_OS$ac_delim 22447 LINKALL!$LINKALL$ac_delim 22448 NOLINKALL!$NOLINKALL$ac_delim 22449 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 22450 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 22451 ARCH!$ARCH$ac_delim 22452 HOST_ARCH!$HOST_ARCH$ac_delim 22453 ENDIAN!$ENDIAN$ac_delim 22454 GREP!$GREP$ac_delim 22455 EGREP!$EGREP$ac_delim 22456 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 22457 BUILD_CC!$BUILD_CC$ac_delim 22458 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 22459 BUILD_CXX!$BUILD_CXX$ac_delim 22460 CVSBUILD!$CVSBUILD$ac_delim 22461 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 22462 ENABLE_CXX11!$ENABLE_CXX11$ac_delim 22463 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim 22464 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim 22465 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim 22466 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 22467 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 22468 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 22469 ENABLE_WERROR!$ENABLE_WERROR$ac_delim 22470 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 22471 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 22472 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 22473 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 22474 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim 22475 JIT!$JIT$ac_delim 22476 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 22477 _ACEOF 22478 22479 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22480 break 22481 elif $ac_last_try; then 22482 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22483 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22484 { (exit 1); exit 1; }; } 22485 else 22486 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22487 fi 22488 done 22489 22490 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22491 if test -n "$ac_eof"; then 22492 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22493 ac_eof=`expr $ac_eof + 1` 22494 fi 22495 22496 cat >>$CONFIG_STATUS <<_ACEOF 22497 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22499 _ACEOF 22500 sed ' 22501 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22502 s/^/s,@/; s/!/@,|#_!!_#|/ 22503 :n 22504 t n 22505 s/'"$ac_delim"'$/,g/; t 22506 s/$/\\/; p 22507 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22508 ' >>$CONFIG_STATUS <conf$$subs.sed 22509 rm -f conf$$subs.sed 22510 cat >>$CONFIG_STATUS <<_ACEOF 22511 CEOF$ac_eof 22512 _ACEOF 22513 22514 22515 ac_delim='%!_!# ' 22516 for ac_last_try in false false false false false :; do 22517 cat >conf$$subs.sed <<_ACEOF 22518 ENABLE_DOCS!$ENABLE_DOCS$ac_delim 22519 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 22520 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim 22521 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 22522 ENABLE_PIC!$ENABLE_PIC$ac_delim 22523 ENABLE_SHARED!$ENABLE_SHARED$ac_delim 22524 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 22525 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 22526 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim 22527 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 22528 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 22529 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 22530 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 22531 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 22532 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 22533 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 22534 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 22535 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim 22536 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 22537 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim 22538 NM!$NM$ac_delim 22539 ifGNUmake!$ifGNUmake$ac_delim 22540 LN_S!$LN_S$ac_delim 22541 CMP!$CMP$ac_delim 22542 CP!$CP$ac_delim 22543 DATE!$DATE$ac_delim 22544 FIND!$FIND$ac_delim 22545 MKDIR!$MKDIR$ac_delim 22546 MV!$MV$ac_delim 22547 RANLIB!$RANLIB$ac_delim 22548 AR!$AR$ac_delim 22549 RM!$RM$ac_delim 22550 SED!$SED$ac_delim 22551 TAR!$TAR$ac_delim 22552 BINPWD!$BINPWD$ac_delim 22553 GRAPHVIZ!$GRAPHVIZ$ac_delim 22554 DOT!$DOT$ac_delim 22555 FDP!$FDP$ac_delim 22556 NEATO!$NEATO$ac_delim 22557 TWOPI!$TWOPI$ac_delim 22558 CIRCO!$CIRCO$ac_delim 22559 GV!$GV$ac_delim 22560 DOTTY!$DOTTY$ac_delim 22561 XDOT_PY!$XDOT_PY$ac_delim 22562 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22563 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22564 INSTALL_DATA!$INSTALL_DATA$ac_delim 22565 BZIP2!$BZIP2$ac_delim 22566 CAT!$CAT$ac_delim 22567 DOXYGEN!$DOXYGEN$ac_delim 22568 GROFF!$GROFF$ac_delim 22569 GZIPBIN!$GZIPBIN$ac_delim 22570 PDFROFF!$PDFROFF$ac_delim 22571 ZIP!$ZIP$ac_delim 22572 OCAMLC!$OCAMLC$ac_delim 22573 OCAMLOPT!$OCAMLOPT$ac_delim 22574 OCAMLDEP!$OCAMLDEP$ac_delim 22575 OCAMLDOC!$OCAMLDOC$ac_delim 22576 GAS!$GAS$ac_delim 22577 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 22578 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 22579 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 22580 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 22581 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 22582 LIBADD_DL!$LIBADD_DL$ac_delim 22583 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 22584 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 22585 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 22586 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim 22587 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim 22588 PYTHON!$PYTHON$ac_delim 22589 USE_UDIS86!$USE_UDIS86$ac_delim 22590 USE_OPROFILE!$USE_OPROFILE$ac_delim 22591 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim 22592 XML2CONFIG!$XML2CONFIG$ac_delim 22593 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim 22594 LIBXML2_INC!$LIBXML2_INC$ac_delim 22595 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 22596 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 22597 MMAP_FILE!$MMAP_FILE$ac_delim 22598 SHLIBEXT!$SHLIBEXT$ac_delim 22599 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 22600 LLVM_PREFIX!$LLVM_PREFIX$ac_delim 22601 LLVM_BINDIR!$LLVM_BINDIR$ac_delim 22602 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 22603 LLVM_DATADIR!$LLVM_DATADIR$ac_delim 22604 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 22605 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 22606 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 22607 LLVM_INFODIR!$LLVM_INFODIR$ac_delim 22608 LLVM_MANDIR!$LLVM_MANDIR$ac_delim 22609 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 22610 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 22611 ALL_BINDINGS!$ALL_BINDINGS$ac_delim 22612 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 22613 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 22614 RPATH!$RPATH$ac_delim 22615 _ACEOF 22616 22617 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22618 break 22619 elif $ac_last_try; then 22620 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22621 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22622 { (exit 1); exit 1; }; } 22623 else 22624 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22625 fi 22626 done 22627 22628 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22629 if test -n "$ac_eof"; then 22630 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22631 ac_eof=`expr $ac_eof + 1` 22632 fi 22633 22634 cat >>$CONFIG_STATUS <<_ACEOF 22635 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22637 _ACEOF 22638 sed ' 22639 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22640 s/^/s,@/; s/!/@,|#_!!_#|/ 22641 :n 22642 t n 22643 s/'"$ac_delim"'$/,g/; t 22644 s/$/\\/; p 22645 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22646 ' >>$CONFIG_STATUS <conf$$subs.sed 22647 rm -f conf$$subs.sed 22648 cat >>$CONFIG_STATUS <<_ACEOF 22649 CEOF$ac_eof 22650 _ACEOF 22651 22652 22653 ac_delim='%!_!# ' 22654 for ac_last_try in false false false false false :; do 22655 cat >conf$$subs.sed <<_ACEOF 22656 RDYNAMIC!$RDYNAMIC$ac_delim 22657 program_prefix!$program_prefix$ac_delim 22658 LIBOBJS!$LIBOBJS$ac_delim 22659 LTLIBOBJS!$LTLIBOBJS$ac_delim 22660 _ACEOF 22661 22662 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then 22663 break 22664 elif $ac_last_try; then 22665 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22667 { (exit 1); exit 1; }; } 22668 else 22669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22670 fi 22671 done 22672 22673 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22674 if test -n "$ac_eof"; then 22675 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22676 ac_eof=`expr $ac_eof + 1` 22677 fi 22678 22679 cat >>$CONFIG_STATUS <<_ACEOF 22680 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 22681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22682 _ACEOF 22683 sed ' 22684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22685 s/^/s,@/; s/!/@,|#_!!_#|/ 22686 :n 22687 t n 22688 s/'"$ac_delim"'$/,g/; t 22689 s/$/\\/; p 22690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22691 ' >>$CONFIG_STATUS <conf$$subs.sed 22692 rm -f conf$$subs.sed 22693 cat >>$CONFIG_STATUS <<_ACEOF 22694 :end 22695 s/|#_!!_#|//g 22696 CEOF$ac_eof 22697 _ACEOF 22698 22699 22700 # VPATH may cause trouble with some makes, so we remove $(srcdir), 22701 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22702 # trailing colons and then remove the whole line if VPATH becomes empty 22703 # (actually we leave an empty line to preserve line numbers). 22704 if test "x$srcdir" = x.; then 22705 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22706 s/:*\$(srcdir):*/:/ 22707 s/:*\${srcdir}:*/:/ 22708 s/:*@srcdir@:*/:/ 22709 s/^\([^=]*=[ ]*\):*/\1/ 22710 s/:*$// 22711 s/^[^=]*=[ ]*$// 22712 }' 22713 fi 22714 22715 cat >>$CONFIG_STATUS <<\_ACEOF 22716 fi # test -n "$CONFIG_FILES" 22717 22718 22719 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22720 do 22721 case $ac_tag in 22722 :[FHLC]) ac_mode=$ac_tag; continue;; 22723 esac 22724 case $ac_mode$ac_tag in 22725 :[FHL]*:*);; 22726 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22727 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22728 { (exit 1); exit 1; }; };; 22729 :[FH]-) ac_tag=-:-;; 22730 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22731 esac 22732 ac_save_IFS=$IFS 22733 IFS=: 22734 set x $ac_tag 22735 IFS=$ac_save_IFS 22736 shift 22737 ac_file=$1 22738 shift 22739 22740 case $ac_mode in 22741 :L) ac_source=$1;; 22742 :[FH]) 22743 ac_file_inputs= 22744 for ac_f 22745 do 22746 case $ac_f in 22747 -) ac_f="$tmp/stdin";; 22748 *) # Look for the file first in the build tree, then in the source tree 22749 # (if the path is not absolute). The absolute path cannot be DOS-style, 22750 # because $ac_f cannot contain `:'. 22751 test -f "$ac_f" || 22752 case $ac_f in 22753 [\\/$]*) false;; 22754 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22755 esac || 22756 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22757 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22758 { (exit 1); exit 1; }; };; 22759 esac 22760 ac_file_inputs="$ac_file_inputs $ac_f" 22761 done 22762 22763 # Let's still pretend it is `configure' which instantiates (i.e., don't 22764 # use $as_me), people would be surprised to read: 22765 # /* config.h. Generated by config.status. */ 22766 configure_input="Generated from "`IFS=: 22767 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22768 if test x"$ac_file" != x-; then 22769 configure_input="$ac_file. $configure_input" 22770 { echo "$as_me:$LINENO: creating $ac_file" >&5 22771 echo "$as_me: creating $ac_file" >&6;} 22772 fi 22773 22774 case $ac_tag in 22775 *:-:* | *:-) cat >"$tmp/stdin";; 22776 esac 22777 ;; 22778 esac 22779 22780 ac_dir=`$as_dirname -- "$ac_file" || 22781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22782 X"$ac_file" : 'X\(//\)[^/]' \| \ 22783 X"$ac_file" : 'X\(//\)$' \| \ 22784 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22785 echo X"$ac_file" | 22786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22787 s//\1/ 22788 q 22789 } 22790 /^X\(\/\/\)[^/].*/{ 22791 s//\1/ 22792 q 22793 } 22794 /^X\(\/\/\)$/{ 22795 s//\1/ 22796 q 22797 } 22798 /^X\(\/\).*/{ 22799 s//\1/ 22800 q 22801 } 22802 s/.*/./; q'` 22803 { as_dir="$ac_dir" 22804 case $as_dir in #( 22805 -*) as_dir=./$as_dir;; 22806 esac 22807 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22808 as_dirs= 22809 while :; do 22810 case $as_dir in #( 22811 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22812 *) as_qdir=$as_dir;; 22813 esac 22814 as_dirs="'$as_qdir' $as_dirs" 22815 as_dir=`$as_dirname -- "$as_dir" || 22816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22817 X"$as_dir" : 'X\(//\)[^/]' \| \ 22818 X"$as_dir" : 'X\(//\)$' \| \ 22819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22820 echo X"$as_dir" | 22821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22822 s//\1/ 22823 q 22824 } 22825 /^X\(\/\/\)[^/].*/{ 22826 s//\1/ 22827 q 22828 } 22829 /^X\(\/\/\)$/{ 22830 s//\1/ 22831 q 22832 } 22833 /^X\(\/\).*/{ 22834 s//\1/ 22835 q 22836 } 22837 s/.*/./; q'` 22838 test -d "$as_dir" && break 22839 done 22840 test -z "$as_dirs" || eval "mkdir $as_dirs" 22841 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22842 echo "$as_me: error: cannot create directory $as_dir" >&2;} 22843 { (exit 1); exit 1; }; }; } 22844 ac_builddir=. 22845 22846 case "$ac_dir" in 22847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22848 *) 22849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22850 # A ".." for each directory in $ac_dir_suffix. 22851 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22852 case $ac_top_builddir_sub in 22853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22855 esac ;; 22856 esac 22857 ac_abs_top_builddir=$ac_pwd 22858 ac_abs_builddir=$ac_pwd$ac_dir_suffix 22859 # for backward compatibility: 22860 ac_top_builddir=$ac_top_build_prefix 22861 22862 case $srcdir in 22863 .) # We are building in place. 22864 ac_srcdir=. 22865 ac_top_srcdir=$ac_top_builddir_sub 22866 ac_abs_top_srcdir=$ac_pwd ;; 22867 [\\/]* | ?:[\\/]* ) # Absolute name. 22868 ac_srcdir=$srcdir$ac_dir_suffix; 22869 ac_top_srcdir=$srcdir 22870 ac_abs_top_srcdir=$srcdir ;; 22871 *) # Relative name. 22872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22873 ac_top_srcdir=$ac_top_build_prefix$srcdir 22874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22875 esac 22876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22877 22878 22879 case $ac_mode in 22880 :F) 22881 # 22882 # CONFIG_FILE 22883 # 22884 22885 case $INSTALL in 22886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22887 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22888 esac 22889 _ACEOF 22890 22891 cat >>$CONFIG_STATUS <<\_ACEOF 22892 # If the template does not know about datarootdir, expand it. 22893 # FIXME: This hack should be removed a few years after 2.60. 22894 ac_datarootdir_hack=; ac_datarootdir_seen= 22895 22896 case `sed -n '/datarootdir/ { 22897 p 22898 q 22899 } 22900 /@datadir@/p 22901 /@docdir@/p 22902 /@infodir@/p 22903 /@localedir@/p 22904 /@mandir@/p 22905 ' $ac_file_inputs` in 22906 *datarootdir*) ac_datarootdir_seen=yes;; 22907 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22908 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22909 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22910 _ACEOF 22911 cat >>$CONFIG_STATUS <<_ACEOF 22912 ac_datarootdir_hack=' 22913 s&@datadir@&$datadir&g 22914 s&@docdir@&$docdir&g 22915 s&@infodir@&$infodir&g 22916 s&@localedir@&$localedir&g 22917 s&@mandir@&$mandir&g 22918 s&\\\${datarootdir}&$datarootdir&g' ;; 22919 esac 22920 _ACEOF 22921 22922 # Neutralize VPATH when `$srcdir' = `.'. 22923 # Shell code in configure.ac might set extrasub. 22924 # FIXME: do we really want to maintain this feature? 22925 cat >>$CONFIG_STATUS <<_ACEOF 22926 sed "$ac_vpsub 22927 $extrasub 22928 _ACEOF 22929 cat >>$CONFIG_STATUS <<\_ACEOF 22930 :t 22931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22932 s&@configure_input@&$configure_input&;t t 22933 s&@top_builddir@&$ac_top_builddir_sub&;t t 22934 s&@srcdir@&$ac_srcdir&;t t 22935 s&@abs_srcdir@&$ac_abs_srcdir&;t t 22936 s&@top_srcdir@&$ac_top_srcdir&;t t 22937 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22938 s&@builddir@&$ac_builddir&;t t 22939 s&@abs_builddir@&$ac_abs_builddir&;t t 22940 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22941 s&@INSTALL@&$ac_INSTALL&;t t 22942 $ac_datarootdir_hack 22943 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 22944 22945 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22946 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22947 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22948 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22949 which seems to be undefined. Please make sure it is defined." >&5 22950 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22951 which seems to be undefined. Please make sure it is defined." >&2;} 22952 22953 rm -f "$tmp/stdin" 22954 case $ac_file in 22955 -) cat "$tmp/out"; rm -f "$tmp/out";; 22956 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22957 esac 22958 ;; 22959 :H) 22960 # 22961 # CONFIG_HEADER 22962 # 22963 _ACEOF 22964 22965 # Transform confdefs.h into a sed script `conftest.defines', that 22966 # substitutes the proper values into config.h.in to produce config.h. 22967 rm -f conftest.defines conftest.tail 22968 # First, append a space to every undef/define line, to ease matching. 22969 echo 's/$/ /' >conftest.defines 22970 # Then, protect against being on the right side of a sed subst, or in 22971 # an unquoted here document, in config.status. If some macros were 22972 # called several times there might be several #defines for the same 22973 # symbol, which is useless. But do not sort them, since the last 22974 # AC_DEFINE must be honored. 22975 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22976 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22977 # NAME is the cpp macro being defined, VALUE is the value it is being given. 22978 # PARAMS is the parameter list in the macro definition--in most cases, it's 22979 # just an empty string. 22980 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22981 ac_dB='\\)[ (].*,\\1define\\2' 22982 ac_dC=' ' 22983 ac_dD=' ,' 22984 22985 uniq confdefs.h | 22986 sed -n ' 22987 t rset 22988 :rset 22989 s/^[ ]*#[ ]*define[ ][ ]*// 22990 t ok 22991 d 22992 :ok 22993 s/[\\&,]/\\&/g 22994 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22995 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22996 ' >>conftest.defines 22997 22998 # Remove the space that was appended to ease matching. 22999 # Then replace #undef with comments. This is necessary, for 23000 # example, in the case of _POSIX_SOURCE, which is predefined and required 23001 # on some systems where configure will not decide to define it. 23002 # (The regexp can be short, since the line contains either #define or #undef.) 23003 echo 's/ $// 23004 s,^[ #]*u.*,/* & */,' >>conftest.defines 23005 23006 # Break up conftest.defines: 23007 ac_max_sed_lines=50 23008 23009 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23010 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23011 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23012 # et cetera. 23013 ac_in='$ac_file_inputs' 23014 ac_out='"$tmp/out1"' 23015 ac_nxt='"$tmp/out2"' 23016 23017 while : 23018 do 23019 # Write a here document: 23020 cat >>$CONFIG_STATUS <<_ACEOF 23021 # First, check the format of the line: 23022 cat >"\$tmp/defines.sed" <<\\CEOF 23023 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23024 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23025 b 23026 :def 23027 _ACEOF 23028 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23029 echo 'CEOF 23030 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23031 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23032 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23033 grep . conftest.tail >/dev/null || break 23034 rm -f conftest.defines 23035 mv conftest.tail conftest.defines 23036 done 23037 rm -f conftest.defines conftest.tail 23038 23039 echo "ac_result=$ac_in" >>$CONFIG_STATUS 23040 cat >>$CONFIG_STATUS <<\_ACEOF 23041 if test x"$ac_file" != x-; then 23042 echo "/* $configure_input */" >"$tmp/config.h" 23043 cat "$ac_result" >>"$tmp/config.h" 23044 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23045 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23046 echo "$as_me: $ac_file is unchanged" >&6;} 23047 else 23048 rm -f $ac_file 23049 mv "$tmp/config.h" $ac_file 23050 fi 23051 else 23052 echo "/* $configure_input */" 23053 cat "$ac_result" 23054 fi 23055 rm -f "$tmp/out12" 23056 ;; 23057 23058 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23059 echo "$as_me: executing $ac_file commands" >&6;} 23060 ;; 23061 esac 23062 23063 23064 case $ac_file$ac_mode in 23065 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 23066 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 23067 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 23068 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 23069 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 23070 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 23071 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 23072 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 23073 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 23074 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 23075 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 23076 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 23077 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 23078 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 23079 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 23080 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 23081 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 23082 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 23083 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 23084 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 23085 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 23086 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 23087 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 23088 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 23089 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 23090 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 23091 23092 esac 23093 done # for ac_tag 23094 23095 23096 { (exit 0); exit 0; } 23097 _ACEOF 23098 chmod +x $CONFIG_STATUS 23099 ac_clean_files=$ac_clean_files_save 23100 23101 23102 # configure is writing to config.log, and then calls config.status. 23103 # config.status does its own redirection, appending to config.log. 23104 # Unfortunately, on DOS this fails, as config.log is still kept open 23105 # by configure, so config.status won't be able to write to it; its 23106 # output is simply discarded. So we exec the FD to /dev/null, 23107 # effectively closing config.log, so it can be properly (re)opened and 23108 # appended to by config.status. When coming back to configure, we 23109 # need to make the FD available again. 23110 if test "$no_create" != yes; then 23111 ac_cs_success=: 23112 ac_config_status_args= 23113 test "$silent" = yes && 23114 ac_config_status_args="$ac_config_status_args --quiet" 23115 exec 5>/dev/null 23116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23117 exec 5>>config.log 23118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23119 # would make configure fail if this is the last instruction. 23120 $ac_cs_success || { (exit 1); exit 1; } 23121 fi 23122 23123 # 23124 # CONFIG_SUBDIRS section. 23125 # 23126 if test "$no_recursion" != yes; then 23127 23128 # Remove --cache-file and --srcdir arguments so they do not pile up. 23129 ac_sub_configure_args= 23130 ac_prev= 23131 eval "set x $ac_configure_args" 23132 shift 23133 for ac_arg 23134 do 23135 if test -n "$ac_prev"; then 23136 ac_prev= 23137 continue 23138 fi 23139 case $ac_arg in 23140 -cache-file | --cache-file | --cache-fil | --cache-fi \ 23141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 23142 ac_prev=cache_file ;; 23143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 23144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 23145 | --c=*) 23146 ;; 23147 --config-cache | -C) 23148 ;; 23149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 23150 ac_prev=srcdir ;; 23151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 23152 ;; 23153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 23154 ac_prev=prefix ;; 23155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 23156 ;; 23157 *) 23158 case $ac_arg in 23159 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23160 esac 23161 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 23162 esac 23163 done 23164 23165 # Always prepend --prefix to ensure using the same prefix 23166 # in subdir configurations. 23167 ac_arg="--prefix=$prefix" 23168 case $ac_arg in 23169 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23170 esac 23171 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 23172 23173 ac_popdir=`pwd` 23174 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 23175 23176 # Do not complain, so a configure script can configure whichever 23177 # parts of a large source tree are present. 23178 test -d "$srcdir/$ac_dir" || continue 23179 23180 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 23181 echo "$as_me:$LINENO: $ac_msg" >&5 23182 echo "$ac_msg" >&6 23183 { as_dir="$ac_dir" 23184 case $as_dir in #( 23185 -*) as_dir=./$as_dir;; 23186 esac 23187 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23188 as_dirs= 23189 while :; do 23190 case $as_dir in #( 23191 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23192 *) as_qdir=$as_dir;; 23193 esac 23194 as_dirs="'$as_qdir' $as_dirs" 23195 as_dir=`$as_dirname -- "$as_dir" || 23196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23197 X"$as_dir" : 'X\(//\)[^/]' \| \ 23198 X"$as_dir" : 'X\(//\)$' \| \ 23199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23200 echo X"$as_dir" | 23201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23202 s//\1/ 23203 q 23204 } 23205 /^X\(\/\/\)[^/].*/{ 23206 s//\1/ 23207 q 23208 } 23209 /^X\(\/\/\)$/{ 23210 s//\1/ 23211 q 23212 } 23213 /^X\(\/\).*/{ 23214 s//\1/ 23215 q 23216 } 23217 s/.*/./; q'` 23218 test -d "$as_dir" && break 23219 done 23220 test -z "$as_dirs" || eval "mkdir $as_dirs" 23221 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23222 echo "$as_me: error: cannot create directory $as_dir" >&2;} 23223 { (exit 1); exit 1; }; }; } 23224 ac_builddir=. 23225 23226 case "$ac_dir" in 23227 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23228 *) 23229 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23230 # A ".." for each directory in $ac_dir_suffix. 23231 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23232 case $ac_top_builddir_sub in 23233 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23234 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23235 esac ;; 23236 esac 23237 ac_abs_top_builddir=$ac_pwd 23238 ac_abs_builddir=$ac_pwd$ac_dir_suffix 23239 # for backward compatibility: 23240 ac_top_builddir=$ac_top_build_prefix 23241 23242 case $srcdir in 23243 .) # We are building in place. 23244 ac_srcdir=. 23245 ac_top_srcdir=$ac_top_builddir_sub 23246 ac_abs_top_srcdir=$ac_pwd ;; 23247 [\\/]* | ?:[\\/]* ) # Absolute name. 23248 ac_srcdir=$srcdir$ac_dir_suffix; 23249 ac_top_srcdir=$srcdir 23250 ac_abs_top_srcdir=$srcdir ;; 23251 *) # Relative name. 23252 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23253 ac_top_srcdir=$ac_top_build_prefix$srcdir 23254 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23255 esac 23256 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23257 23258 23259 cd "$ac_dir" 23260 23261 # Check for guested configure; otherwise get Cygnus style configure. 23262 if test -f "$ac_srcdir/configure.gnu"; then 23263 ac_sub_configure=$ac_srcdir/configure.gnu 23264 elif test -f "$ac_srcdir/configure"; then 23265 ac_sub_configure=$ac_srcdir/configure 23266 elif test -f "$ac_srcdir/configure.in"; then 23267 # This should be Cygnus configure. 23268 ac_sub_configure=$ac_aux_dir/configure 23269 else 23270 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 23271 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 23272 ac_sub_configure= 23273 fi 23274 23275 # The recursion is here. 23276 if test -n "$ac_sub_configure"; then 23277 # Make the cache file name correct relative to the subdirectory. 23278 case $cache_file in 23279 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23280 *) # Relative name. 23281 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 23282 esac 23283 23284 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23285 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23286 # The eval makes quoting arguments work. 23287 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 23288 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 23289 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 23290 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 23291 { (exit 1); exit 1; }; } 23292 fi 23293 23294 cd "$ac_popdir" 23295 done 23296 fi 23297 23298