1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.60 for LLVM 3.5.0svn. 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-2014 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.5.0svn' 565 PACKAGE_STRING='LLVM 3.5.0svn' 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_VERSION_MAJOR 643 LLVM_VERSION_MINOR 644 LLVM_VERSION_PATCH 645 LLVM_VERSION_SUFFIX 646 LLVM_COPYRIGHT 647 CC 648 CFLAGS 649 LDFLAGS 650 CPPFLAGS 651 ac_ct_CC 652 EXEEXT 653 OBJEXT 654 CXX 655 CXXFLAGS 656 ac_ct_CXX 657 CPP 658 subdirs 659 ENABLE_POLLY 660 LLVM_HAS_POLLY 661 build 662 build_cpu 663 build_vendor 664 build_os 665 host 666 host_cpu 667 host_vendor 668 host_os 669 target 670 target_cpu 671 target_vendor 672 target_os 673 OS 674 HOST_OS 675 TARGET_OS 676 LINKALL 677 NOLINKALL 678 LLVM_ON_UNIX 679 LLVM_ON_WIN32 680 ARCH 681 LLVM_NATIVE_ARCH 682 HOST_ARCH 683 LLVM_CROSS_COMPILING 684 BUILD_CC 685 BUILD_EXEEXT 686 BUILD_CXX 687 CVSBUILD 688 ENABLE_LIBCPP 689 ENABLE_CXX1Y 690 ENABLE_SPLIT_DWARF 691 ENABLE_CLANG_ARCMT 692 CLANG_PLUGIN_SUPPORT 693 ENABLE_CLANG_STATIC_ANALYZER 694 ENABLE_CLANG_REWRITER 695 ENABLE_OPTIMIZED 696 ENABLE_PROFILING 697 DISABLE_ASSERTIONS 698 ENABLE_WERROR 699 ENABLE_EXPENSIVE_CHECKS 700 EXPENSIVE_CHECKS 701 DEBUG_RUNTIME 702 DEBUG_SYMBOLS 703 KEEP_SYMBOLS 704 JIT 705 TARGET_HAS_JIT 706 TARGETS_WITH_JIT 707 ENABLE_DOCS 708 ENABLE_DOXYGEN 709 LLVM_ENABLE_THREADS 710 ENABLE_PTHREADS 711 LLVM_ENABLE_ZLIB 712 ENABLE_PIC 713 ENABLE_SHARED 714 ENABLE_EMBED_STDCXX 715 ENABLE_TIMESTAMPS 716 ALL_TARGETS 717 TARGETS_TO_BUILD 718 LLVM_ENUM_TARGETS 719 LLVM_ENUM_ASM_PRINTERS 720 LLVM_ENUM_ASM_PARSERS 721 LLVM_ENUM_DISASSEMBLERS 722 OPTIMIZE_OPTION 723 EXTRA_OPTIONS 724 EXTRA_LD_OPTIONS 725 CLANG_SRC_ROOT 726 BINUTILS_INCDIR 727 ENABLE_TERMINFO 728 INTERNAL_PREFIX 729 ifGNUmake 730 LN_S 731 NM 732 CMP 733 CP 734 DATE 735 FIND 736 GREP 737 MKDIR 738 MV 739 RANLIB 740 AR 741 RM 742 SED 743 TAR 744 BINPWD 745 GRAPHVIZ 746 DOT 747 FDP 748 NEATO 749 TWOPI 750 CIRCO 751 GV 752 DOTTY 753 XDOT 754 INSTALL_PROGRAM 755 INSTALL_SCRIPT 756 INSTALL_DATA 757 BZIP2 758 CAT 759 DOXYGEN 760 GROFF 761 GZIPBIN 762 PDFROFF 763 ZIP 764 OCAMLC 765 OCAMLOPT 766 OCAMLDEP 767 OCAMLDOC 768 GAS 769 HAVE_LINK_VERSION_SCRIPT 770 EGREP 771 NO_VARIADIC_MACROS 772 NO_MISSING_FIELD_INITIALIZERS 773 COVERED_SWITCH_DEFAULT 774 NO_MAYBE_UNINITIALIZED 775 NO_UNINITIALIZED 776 PYTHON 777 HAVE_DLOPEN 778 HAVE_TERMINFO 779 USE_UDIS86 780 USE_OPROFILE 781 USE_INTEL_JITEVENTS 782 XML2CONFIG 783 LIBXML2_LIBS 784 LIBXML2_INC 785 CXXCPP 786 HAVE_PTHREAD 787 HAVE_LIBZ 788 HUGE_VAL_SANITY 789 MMAP_FILE 790 SHLIBEXT 791 LLVM_PREFIX 792 LLVM_BINDIR 793 LLVM_DATADIR 794 LLVM_DOCSDIR 795 LLVM_ETCDIR 796 LLVM_INCLUDEDIR 797 LLVM_INFODIR 798 LLVM_MANDIR 799 LLVM_CONFIGTIME 800 BINDINGS_TO_BUILD 801 ALL_BINDINGS 802 OCAML_LIBDIR 803 ENABLE_VISIBILITY_INLINES_HIDDEN 804 RPATH 805 RDYNAMIC 806 program_prefix 807 LIBOBJS 808 LTLIBOBJS' 809 ac_subst_files='' 810 ac_precious_vars='build_alias 811 host_alias 812 target_alias 813 CC 814 CFLAGS 815 LDFLAGS 816 CPPFLAGS 817 CXX 818 CXXFLAGS 819 CCC 820 CPP 821 CXXCPP' 822 ac_subdirs_all='projects/test-suite 823 projects/llvm-test 824 projects/poolalloc 825 projects/llvm-poolalloc 826 projects/safecode 827 tools/polly' 828 829 # Initialize some variables set by options. 830 ac_init_help= 831 ac_init_version=false 832 # The variables have the same names as the options, with 833 # dashes changed to underlines. 834 cache_file=/dev/null 835 exec_prefix=NONE 836 no_create= 837 no_recursion= 838 prefix=NONE 839 program_prefix=NONE 840 program_suffix=NONE 841 program_transform_name=s,x,x, 842 silent= 843 site= 844 srcdir= 845 verbose= 846 x_includes=NONE 847 x_libraries=NONE 848 849 # Installation directory options. 850 # These are left unexpanded so users can "make install exec_prefix=/foo" 851 # and all the variables that are supposed to be based on exec_prefix 852 # by default will actually change. 853 # Use braces instead of parens because sh, perl, etc. also accept them. 854 # (The list follows the same order as the GNU Coding Standards.) 855 bindir='${exec_prefix}/bin' 856 sbindir='${exec_prefix}/sbin' 857 libexecdir='${exec_prefix}/libexec' 858 datarootdir='${prefix}/share' 859 datadir='${datarootdir}' 860 sysconfdir='${prefix}/etc' 861 sharedstatedir='${prefix}/com' 862 localstatedir='${prefix}/var' 863 includedir='${prefix}/include' 864 oldincludedir='/usr/include' 865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 866 infodir='${datarootdir}/info' 867 htmldir='${docdir}' 868 dvidir='${docdir}' 869 pdfdir='${docdir}' 870 psdir='${docdir}' 871 libdir='${exec_prefix}/lib' 872 localedir='${datarootdir}/locale' 873 mandir='${datarootdir}/man' 874 875 ac_prev= 876 ac_dashdash= 877 for ac_option 878 do 879 # If the previous option needs an argument, assign it. 880 if test -n "$ac_prev"; then 881 eval $ac_prev=\$ac_option 882 ac_prev= 883 continue 884 fi 885 886 case $ac_option in 887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 888 *) ac_optarg=yes ;; 889 esac 890 891 # Accept the important Cygnus configure options, so we can diagnose typos. 892 893 case $ac_dashdash$ac_option in 894 --) 895 ac_dashdash=yes ;; 896 897 -bindir | --bindir | --bindi | --bind | --bin | --bi) 898 ac_prev=bindir ;; 899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 900 bindir=$ac_optarg ;; 901 902 -build | --build | --buil | --bui | --bu) 903 ac_prev=build_alias ;; 904 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 905 build_alias=$ac_optarg ;; 906 907 -cache-file | --cache-file | --cache-fil | --cache-fi \ 908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 909 ac_prev=cache_file ;; 910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 912 cache_file=$ac_optarg ;; 913 914 --config-cache | -C) 915 cache_file=config.cache ;; 916 917 -datadir | --datadir | --datadi | --datad) 918 ac_prev=datadir ;; 919 -datadir=* | --datadir=* | --datadi=* | --datad=*) 920 datadir=$ac_optarg ;; 921 922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 923 | --dataroo | --dataro | --datar) 924 ac_prev=datarootdir ;; 925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 927 datarootdir=$ac_optarg ;; 928 929 -disable-* | --disable-*) 930 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 933 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 934 { (exit 1); exit 1; }; } 935 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 936 eval enable_$ac_feature=no ;; 937 938 -docdir | --docdir | --docdi | --doc | --do) 939 ac_prev=docdir ;; 940 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 941 docdir=$ac_optarg ;; 942 943 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 944 ac_prev=dvidir ;; 945 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 946 dvidir=$ac_optarg ;; 947 948 -enable-* | --enable-*) 949 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 950 # Reject names that are not valid shell variable names. 951 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 953 { (exit 1); exit 1; }; } 954 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 955 eval enable_$ac_feature=\$ac_optarg ;; 956 957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 959 | --exec | --exe | --ex) 960 ac_prev=exec_prefix ;; 961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 963 | --exec=* | --exe=* | --ex=*) 964 exec_prefix=$ac_optarg ;; 965 966 -gas | --gas | --ga | --g) 967 # Obsolete; use --with-gas. 968 with_gas=yes ;; 969 970 -help | --help | --hel | --he | -h) 971 ac_init_help=long ;; 972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 973 ac_init_help=recursive ;; 974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 975 ac_init_help=short ;; 976 977 -host | --host | --hos | --ho) 978 ac_prev=host_alias ;; 979 -host=* | --host=* | --hos=* | --ho=*) 980 host_alias=$ac_optarg ;; 981 982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 983 ac_prev=htmldir ;; 984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 985 | --ht=*) 986 htmldir=$ac_optarg ;; 987 988 -includedir | --includedir | --includedi | --included | --include \ 989 | --includ | --inclu | --incl | --inc) 990 ac_prev=includedir ;; 991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 992 | --includ=* | --inclu=* | --incl=* | --inc=*) 993 includedir=$ac_optarg ;; 994 995 -infodir | --infodir | --infodi | --infod | --info | --inf) 996 ac_prev=infodir ;; 997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 998 infodir=$ac_optarg ;; 999 1000 -libdir | --libdir | --libdi | --libd) 1001 ac_prev=libdir ;; 1002 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1003 libdir=$ac_optarg ;; 1004 1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1006 | --libexe | --libex | --libe) 1007 ac_prev=libexecdir ;; 1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1009 | --libexe=* | --libex=* | --libe=*) 1010 libexecdir=$ac_optarg ;; 1011 1012 -localedir | --localedir | --localedi | --localed | --locale) 1013 ac_prev=localedir ;; 1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1015 localedir=$ac_optarg ;; 1016 1017 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1018 | --localstate | --localstat | --localsta | --localst | --locals) 1019 ac_prev=localstatedir ;; 1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1022 localstatedir=$ac_optarg ;; 1023 1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1025 ac_prev=mandir ;; 1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1027 mandir=$ac_optarg ;; 1028 1029 -nfp | --nfp | --nf) 1030 # Obsolete; use --without-fp. 1031 with_fp=no ;; 1032 1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1034 | --no-cr | --no-c | -n) 1035 no_create=yes ;; 1036 1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1039 no_recursion=yes ;; 1040 1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1043 | --oldin | --oldi | --old | --ol | --o) 1044 ac_prev=oldincludedir ;; 1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1048 oldincludedir=$ac_optarg ;; 1049 1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1051 ac_prev=prefix ;; 1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1053 prefix=$ac_optarg ;; 1054 1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1056 | --program-pre | --program-pr | --program-p) 1057 ac_prev=program_prefix ;; 1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1060 program_prefix=$ac_optarg ;; 1061 1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1063 | --program-suf | --program-su | --program-s) 1064 ac_prev=program_suffix ;; 1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1067 program_suffix=$ac_optarg ;; 1068 1069 -program-transform-name | --program-transform-name \ 1070 | --program-transform-nam | --program-transform-na \ 1071 | --program-transform-n | --program-transform- \ 1072 | --program-transform | --program-transfor \ 1073 | --program-transfo | --program-transf \ 1074 | --program-trans | --program-tran \ 1075 | --progr-tra | --program-tr | --program-t) 1076 ac_prev=program_transform_name ;; 1077 -program-transform-name=* | --program-transform-name=* \ 1078 | --program-transform-nam=* | --program-transform-na=* \ 1079 | --program-transform-n=* | --program-transform-=* \ 1080 | --program-transform=* | --program-transfor=* \ 1081 | --program-transfo=* | --program-transf=* \ 1082 | --program-trans=* | --program-tran=* \ 1083 | --progr-tra=* | --program-tr=* | --program-t=*) 1084 program_transform_name=$ac_optarg ;; 1085 1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1087 ac_prev=pdfdir ;; 1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1089 pdfdir=$ac_optarg ;; 1090 1091 -psdir | --psdir | --psdi | --psd | --ps) 1092 ac_prev=psdir ;; 1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1094 psdir=$ac_optarg ;; 1095 1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1097 | -silent | --silent | --silen | --sile | --sil) 1098 silent=yes ;; 1099 1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1101 ac_prev=sbindir ;; 1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1103 | --sbi=* | --sb=*) 1104 sbindir=$ac_optarg ;; 1105 1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1108 | --sharedst | --shareds | --shared | --share | --shar \ 1109 | --sha | --sh) 1110 ac_prev=sharedstatedir ;; 1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1114 | --sha=* | --sh=*) 1115 sharedstatedir=$ac_optarg ;; 1116 1117 -site | --site | --sit) 1118 ac_prev=site ;; 1119 -site=* | --site=* | --sit=*) 1120 site=$ac_optarg ;; 1121 1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1123 ac_prev=srcdir ;; 1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1125 srcdir=$ac_optarg ;; 1126 1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1128 | --syscon | --sysco | --sysc | --sys | --sy) 1129 ac_prev=sysconfdir ;; 1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1132 sysconfdir=$ac_optarg ;; 1133 1134 -target | --target | --targe | --targ | --tar | --ta | --t) 1135 ac_prev=target_alias ;; 1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1137 target_alias=$ac_optarg ;; 1138 1139 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1140 verbose=yes ;; 1141 1142 -version | --version | --versio | --versi | --vers | -V) 1143 ac_init_version=: ;; 1144 1145 -with-* | --with-*) 1146 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1149 { echo "$as_me: error: invalid package name: $ac_package" >&2 1150 { (exit 1); exit 1; }; } 1151 ac_package=`echo $ac_package| sed 's/-/_/g'` 1152 eval with_$ac_package=\$ac_optarg ;; 1153 1154 -without-* | --without-*) 1155 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1156 # Reject names that are not valid shell variable names. 1157 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1158 { echo "$as_me: error: invalid package name: $ac_package" >&2 1159 { (exit 1); exit 1; }; } 1160 ac_package=`echo $ac_package | sed 's/-/_/g'` 1161 eval with_$ac_package=no ;; 1162 1163 --x) 1164 # Obsolete; use --with-x. 1165 with_x=yes ;; 1166 1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1168 | --x-incl | --x-inc | --x-in | --x-i) 1169 ac_prev=x_includes ;; 1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1172 x_includes=$ac_optarg ;; 1173 1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1176 ac_prev=x_libraries ;; 1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1179 x_libraries=$ac_optarg ;; 1180 1181 -*) { echo "$as_me: error: unrecognized option: $ac_option 1182 Try \`$0 --help' for more information." >&2 1183 { (exit 1); exit 1; }; } 1184 ;; 1185 1186 *=*) 1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1188 # Reject names that are not valid shell variable names. 1189 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1190 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1191 { (exit 1); exit 1; }; } 1192 eval $ac_envvar=\$ac_optarg 1193 export $ac_envvar ;; 1194 1195 *) 1196 # FIXME: should be removed in autoconf 3.0. 1197 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1199 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1200 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1201 ;; 1202 1203 esac 1204 done 1205 1206 if test -n "$ac_prev"; then 1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1208 { echo "$as_me: error: missing argument to $ac_option" >&2 1209 { (exit 1); exit 1; }; } 1210 fi 1211 1212 # Be sure to have absolute directory names. 1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1214 datadir sysconfdir sharedstatedir localstatedir includedir \ 1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1216 libdir localedir mandir 1217 do 1218 eval ac_val=\$$ac_var 1219 case $ac_val in 1220 [\\/$]* | ?:[\\/]* ) continue;; 1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1222 esac 1223 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1224 { (exit 1); exit 1; }; } 1225 done 1226 1227 # There might be people who depend on the old broken behavior: `$host' 1228 # used to hold the argument of --host etc. 1229 # FIXME: To remove some day. 1230 build=$build_alias 1231 host=$host_alias 1232 target=$target_alias 1233 1234 # FIXME: To remove some day. 1235 if test "x$host_alias" != x; then 1236 if test "x$build_alias" = x; then 1237 cross_compiling=maybe 1238 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1239 If a cross compiler is detected then cross compile mode will be used." >&2 1240 elif test "x$build_alias" != "x$host_alias"; then 1241 cross_compiling=yes 1242 fi 1243 fi 1244 1245 ac_tool_prefix= 1246 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1247 1248 test "$silent" = yes && exec 6>/dev/null 1249 1250 1251 ac_pwd=`pwd` && test -n "$ac_pwd" && 1252 ac_ls_di=`ls -di .` && 1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1254 { echo "$as_me: error: Working directory cannot be determined" >&2 1255 { (exit 1); exit 1; }; } 1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1257 { echo "$as_me: error: pwd does not report name of working directory" >&2 1258 { (exit 1); exit 1; }; } 1259 1260 1261 # Find the source files, if location was not specified. 1262 if test -z "$srcdir"; then 1263 ac_srcdir_defaulted=yes 1264 # Try the directory containing this script, then the parent directory. 1265 ac_confdir=`$as_dirname -- "$0" || 1266 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1267 X"$0" : 'X\(//\)[^/]' \| \ 1268 X"$0" : 'X\(//\)$' \| \ 1269 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1270 echo X"$0" | 1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1272 s//\1/ 1273 q 1274 } 1275 /^X\(\/\/\)[^/].*/{ 1276 s//\1/ 1277 q 1278 } 1279 /^X\(\/\/\)$/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\).*/{ 1284 s//\1/ 1285 q 1286 } 1287 s/.*/./; q'` 1288 srcdir=$ac_confdir 1289 if test ! -r "$srcdir/$ac_unique_file"; then 1290 srcdir=.. 1291 fi 1292 else 1293 ac_srcdir_defaulted=no 1294 fi 1295 if test ! -r "$srcdir/$ac_unique_file"; then 1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1297 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1298 { (exit 1); exit 1; }; } 1299 fi 1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1301 ac_abs_confdir=`( 1302 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1303 { (exit 1); exit 1; }; } 1304 pwd)` 1305 # When building in place, set srcdir=. 1306 if test "$ac_abs_confdir" = "$ac_pwd"; then 1307 srcdir=. 1308 fi 1309 # Remove unnecessary trailing slashes from srcdir. 1310 # Double slashes in file names in object file debugging info 1311 # mess up M-x gdb in Emacs. 1312 case $srcdir in 1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1314 esac 1315 for ac_var in $ac_precious_vars; do 1316 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1317 eval ac_env_${ac_var}_value=\$${ac_var} 1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1320 done 1321 1322 # 1323 # Report the --help message. 1324 # 1325 if test "$ac_init_help" = "long"; then 1326 # Omit some internal or obsolete options to make the list less imposing. 1327 # This message is too long to be a string in the A/UX 3.1 sh. 1328 cat <<_ACEOF 1329 \`configure' configures LLVM 3.5.0svn to adapt to many kinds of systems. 1330 1331 Usage: $0 [OPTION]... [VAR=VALUE]... 1332 1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1334 VAR=VALUE. See below for descriptions of some of the useful variables. 1335 1336 Defaults for the options are specified in brackets. 1337 1338 Configuration: 1339 -h, --help display this help and exit 1340 --help=short display options specific to this package 1341 --help=recursive display the short help of all the included packages 1342 -V, --version display version information and exit 1343 -q, --quiet, --silent do not print \`checking...' messages 1344 --cache-file=FILE cache test results in FILE [disabled] 1345 -C, --config-cache alias for \`--cache-file=config.cache' 1346 -n, --no-create do not create output files 1347 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1348 1349 Installation directories: 1350 --prefix=PREFIX install architecture-independent files in PREFIX 1351 [$ac_default_prefix] 1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1353 [PREFIX] 1354 1355 By default, \`make install' will install all the files in 1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1358 for instance \`--prefix=\$HOME'. 1359 1360 For better control, use the options below. 1361 1362 Fine tuning of the installation directories: 1363 --bindir=DIR user executables [EPREFIX/bin] 1364 --sbindir=DIR system admin executables [EPREFIX/sbin] 1365 --libexecdir=DIR program executables [EPREFIX/libexec] 1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1369 --libdir=DIR object code libraries [EPREFIX/lib] 1370 --includedir=DIR C header files [PREFIX/include] 1371 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1374 --infodir=DIR info documentation [DATAROOTDIR/info] 1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1376 --mandir=DIR man documentation [DATAROOTDIR/man] 1377 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1378 --htmldir=DIR html documentation [DOCDIR] 1379 --dvidir=DIR dvi documentation [DOCDIR] 1380 --pdfdir=DIR pdf documentation [DOCDIR] 1381 --psdir=DIR ps documentation [DOCDIR] 1382 _ACEOF 1383 1384 cat <<\_ACEOF 1385 1386 System types: 1387 --build=BUILD configure for building on BUILD [guessed] 1388 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1389 --target=TARGET configure for building compilers for TARGET [HOST] 1390 _ACEOF 1391 fi 1392 1393 if test -n "$ac_init_help"; then 1394 case $ac_init_help in 1395 short | recursive ) echo "Configuration of LLVM 3.5.0svn:";; 1396 esac 1397 cat <<\_ACEOF 1398 1399 Optional Features: 1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1402 --enable-polly Use polly if available (default is YES) 1403 --enable-libcpp Use libc++ if available (default is NO) 1404 --enable-compiler-version-checks 1405 Check the version of the host compiler (default is 1406 YES) 1407 --enable-cxx1y Use c++1y if available (default is NO) 1408 --enable-split-dwarf Use split-dwarf if available (default is NO) 1409 --enable-clang-arcmt Enable building of clang ARCMT (default is YES) 1410 --enable-clang-plugin-support 1411 Enable plugin support in clang (default is YES) 1412 --enable-clang-static-analyzer 1413 Enable building of clang Static Analyzer (default is 1414 YES) 1415 --enable-clang-rewriter Enable building of clang rewriter (default is YES) 1416 --enable-optimized Compile with optimizations enabled (default is NO) 1417 --enable-profiling Compile with profiling enabled (default is NO) 1418 --enable-assertions Compile with assertion checks enabled (default is 1419 YES) 1420 --enable-werror Compile with -Werror enabled (default is NO) 1421 --enable-expensive-checks 1422 Compile with expensive debug checks enabled (default 1423 is NO) 1424 --enable-debug-runtime Build runtime libs with debug symbols (default is 1425 NO) 1426 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1427 optimization is on and YES if it's off) 1428 --enable-keep-symbols Do not strip installed executables) 1429 --enable-jit Enable Just In Time Compiling (default is YES) 1430 --enable-docs Build documents (default is YES) 1431 --enable-doxygen Build doxygen documentation (default is NO) 1432 --enable-threads Use threads if available (default is YES) 1433 --enable-pthreads Use pthreads if available (default is YES) 1434 --enable-zlib Use zlib for compression/decompression if available 1435 (default is YES) 1436 --enable-pic Build LLVM with Position Independent Code (default 1437 is YES) 1438 --enable-shared Build a shared library and link tools against it 1439 (default is NO) 1440 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1441 Win32 DLL (default is NO) 1442 --enable-timestamps Enable embedding timestamp information in build 1443 (default is YES) 1444 --enable-backtraces Enable embedding backtraces on crash (default is 1445 YES) 1446 --enable-crash-overrides 1447 Enable crash handling overrides (default is YES) 1448 --enable-targets Build specific host targets: all or 1449 target1,target2,... Valid targets are: host, x86, 1450 x86_64, sparc, powerpc, arm64, arm, aarch64, mips, 1451 hexagon, xcore, msp430, nvptx, systemz, r600, and 1452 cpp (default=all) 1453 --enable-experimental-targets 1454 Build experimental host targets: disable or 1455 target1,target2,... (default=disable) 1456 --enable-bindings Build specific language bindings: 1457 all,auto,none,{binding-name} (default=auto) 1458 --enable-terminfo Query the terminfo database if available (default is 1459 YES) 1460 --enable-libedit Use libedit if available (default is YES) 1461 --enable-libffi Check for the presence of libffi (default is NO) 1462 1463 Optional Packages: 1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1466 --with-optimize-option Select the compiler options to use for optimized 1467 builds 1468 --with-extra-options Specify additional options to compile LLVM with 1469 --with-extra-ld-options Specify additional options to link LLVM with 1470 --with-ocaml-libdir Specify install location for ocaml bindings (default 1471 is stdlib) 1472 --with-clang-srcdir Directory to the out-of-tree Clang source 1473 --with-clang-resource-dir 1474 Relative directory from the Clang binary for 1475 resource files 1476 --with-c-include-dirs Colon separated list of directories clang will 1477 search for headers 1478 --with-gcc-toolchain Directory where gcc is installed. 1479 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1480 --with-binutils-include Specify path to binutils/include/ containing 1481 plugin-api.h file for gold plugin. 1482 --with-bug-report-url Specify the URL where bug reports should be 1483 submitted (default=http://llvm.org/bugs/) 1484 --with-internal-prefix Installation directory for internal files 1485 --with-python path to python 1486 --with-udis86=<path> Use udis86 external x86 disassembler library 1487 --with-oprofile=<prefix> 1488 Tell OProfile >= 0.9.4 how to symbolize JIT output 1489 --with-intel-jitevents Notify Intel JIT profiling API of generated code 1490 1491 1492 Some influential environment variables: 1493 CC C compiler command 1494 CFLAGS C compiler flags 1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1496 nonstandard directory <lib dir> 1497 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1498 you have headers in a nonstandard directory <include dir> 1499 CXX C++ compiler command 1500 CXXFLAGS C++ compiler flags 1501 CPP C preprocessor 1502 CXXCPP C++ preprocessor 1503 1504 Use these variables to override the choices made by `configure' or to help 1505 it to find libraries and programs with nonstandard names/locations. 1506 1507 Report bugs to <http://llvm.org/bugs/>. 1508 _ACEOF 1509 ac_status=$? 1510 fi 1511 1512 if test "$ac_init_help" = "recursive"; then 1513 # If there are subdirs, report their specific --help. 1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1515 test -d "$ac_dir" || continue 1516 ac_builddir=. 1517 1518 case "$ac_dir" in 1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1520 *) 1521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1522 # A ".." for each directory in $ac_dir_suffix. 1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1524 case $ac_top_builddir_sub in 1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1527 esac ;; 1528 esac 1529 ac_abs_top_builddir=$ac_pwd 1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1531 # for backward compatibility: 1532 ac_top_builddir=$ac_top_build_prefix 1533 1534 case $srcdir in 1535 .) # We are building in place. 1536 ac_srcdir=. 1537 ac_top_srcdir=$ac_top_builddir_sub 1538 ac_abs_top_srcdir=$ac_pwd ;; 1539 [\\/]* | ?:[\\/]* ) # Absolute name. 1540 ac_srcdir=$srcdir$ac_dir_suffix; 1541 ac_top_srcdir=$srcdir 1542 ac_abs_top_srcdir=$srcdir ;; 1543 *) # Relative name. 1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1545 ac_top_srcdir=$ac_top_build_prefix$srcdir 1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1547 esac 1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1549 1550 cd "$ac_dir" || { ac_status=$?; continue; } 1551 # Check for guested configure. 1552 if test -f "$ac_srcdir/configure.gnu"; then 1553 echo && 1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1555 elif test -f "$ac_srcdir/configure"; then 1556 echo && 1557 $SHELL "$ac_srcdir/configure" --help=recursive 1558 else 1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1560 fi || ac_status=$? 1561 cd "$ac_pwd" || { ac_status=$?; break; } 1562 done 1563 fi 1564 1565 test -n "$ac_init_help" && exit $ac_status 1566 if $ac_init_version; then 1567 cat <<\_ACEOF 1568 LLVM configure 3.5.0svn 1569 generated by GNU Autoconf 2.60 1570 1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1572 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1573 This configure script is free software; the Free Software Foundation 1574 gives unlimited permission to copy, distribute and modify it. 1575 1576 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign. 1577 _ACEOF 1578 exit 1579 fi 1580 cat >config.log <<_ACEOF 1581 This file contains any messages produced by compilers while 1582 running configure, to aid debugging if configure makes a mistake. 1583 1584 It was created by LLVM $as_me 3.5.0svn, which was 1585 generated by GNU Autoconf 2.60. Invocation command line was 1586 1587 $ $0 $@ 1588 1589 _ACEOF 1590 exec 5>>config.log 1591 { 1592 cat <<_ASUNAME 1593 ## --------- ## 1594 ## Platform. ## 1595 ## --------- ## 1596 1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1598 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1599 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1600 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1601 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1602 1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1605 1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1613 1614 _ASUNAME 1615 1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1617 for as_dir in $PATH 1618 do 1619 IFS=$as_save_IFS 1620 test -z "$as_dir" && as_dir=. 1621 echo "PATH: $as_dir" 1622 done 1623 IFS=$as_save_IFS 1624 1625 } >&5 1626 1627 cat >&5 <<_ACEOF 1628 1629 1630 ## ----------- ## 1631 ## Core tests. ## 1632 ## ----------- ## 1633 1634 _ACEOF 1635 1636 1637 # Keep a trace of the command line. 1638 # Strip out --no-create and --no-recursion so they do not pile up. 1639 # Strip out --silent because we don't want to record it for future runs. 1640 # Also quote any args containing shell meta-characters. 1641 # Make two passes to allow for proper duplicate-argument suppression. 1642 ac_configure_args= 1643 ac_configure_args0= 1644 ac_configure_args1= 1645 ac_must_keep_next=false 1646 for ac_pass in 1 2 1647 do 1648 for ac_arg 1649 do 1650 case $ac_arg in 1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1653 | -silent | --silent | --silen | --sile | --sil) 1654 continue ;; 1655 *\'*) 1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1657 esac 1658 case $ac_pass in 1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1660 2) 1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1662 if test $ac_must_keep_next = true; then 1663 ac_must_keep_next=false # Got value, back to normal. 1664 else 1665 case $ac_arg in 1666 *=* | --config-cache | -C | -disable-* | --disable-* \ 1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1669 | -with-* | --with-* | -without-* | --without-* | --x) 1670 case "$ac_configure_args0 " in 1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1672 esac 1673 ;; 1674 -* ) ac_must_keep_next=true ;; 1675 esac 1676 fi 1677 ac_configure_args="$ac_configure_args '$ac_arg'" 1678 ;; 1679 esac 1680 done 1681 done 1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1684 1685 # When interrupted or exit'd, cleanup temporary files, and complete 1686 # config.log. We remove comments because anyway the quotes in there 1687 # would cause problems or look ugly. 1688 # WARNING: Use '\'' to represent an apostrophe within the trap. 1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1690 trap 'exit_status=$? 1691 # Save into config.log some information that might help in debugging. 1692 { 1693 echo 1694 1695 cat <<\_ASBOX 1696 ## ---------------- ## 1697 ## Cache variables. ## 1698 ## ---------------- ## 1699 _ASBOX 1700 echo 1701 # The following way of writing the cache mishandles newlines in values, 1702 ( 1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1704 eval ac_val=\$$ac_var 1705 case $ac_val in #( 1706 *${as_nl}*) 1707 case $ac_var in #( 1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1710 esac 1711 case $ac_var in #( 1712 _ | IFS | as_nl) ;; #( 1713 *) $as_unset $ac_var ;; 1714 esac ;; 1715 esac 1716 done 1717 (set) 2>&1 | 1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1719 *${as_nl}ac_space=\ *) 1720 sed -n \ 1721 "s/'\''/'\''\\\\'\'''\''/g; 1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1723 ;; #( 1724 *) 1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1726 ;; 1727 esac | 1728 sort 1729 ) 1730 echo 1731 1732 cat <<\_ASBOX 1733 ## ----------------- ## 1734 ## Output variables. ## 1735 ## ----------------- ## 1736 _ASBOX 1737 echo 1738 for ac_var in $ac_subst_vars 1739 do 1740 eval ac_val=\$$ac_var 1741 case $ac_val in 1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1743 esac 1744 echo "$ac_var='\''$ac_val'\''" 1745 done | sort 1746 echo 1747 1748 if test -n "$ac_subst_files"; then 1749 cat <<\_ASBOX 1750 ## ------------------- ## 1751 ## File substitutions. ## 1752 ## ------------------- ## 1753 _ASBOX 1754 echo 1755 for ac_var in $ac_subst_files 1756 do 1757 eval ac_val=\$$ac_var 1758 case $ac_val in 1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1760 esac 1761 echo "$ac_var='\''$ac_val'\''" 1762 done | sort 1763 echo 1764 fi 1765 1766 if test -s confdefs.h; then 1767 cat <<\_ASBOX 1768 ## ----------- ## 1769 ## confdefs.h. ## 1770 ## ----------- ## 1771 _ASBOX 1772 echo 1773 cat confdefs.h 1774 echo 1775 fi 1776 test "$ac_signal" != 0 && 1777 echo "$as_me: caught signal $ac_signal" 1778 echo "$as_me: exit $exit_status" 1779 } >&5 1780 rm -f core *.core core.conftest.* && 1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1782 exit $exit_status 1783 ' 0 1784 for ac_signal in 1 2 13 15; do 1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1786 done 1787 ac_signal=0 1788 1789 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1790 rm -f -r conftest* confdefs.h 1791 1792 # Predefined preprocessor variables. 1793 1794 cat >>confdefs.h <<_ACEOF 1795 #define PACKAGE_NAME "$PACKAGE_NAME" 1796 _ACEOF 1797 1798 1799 cat >>confdefs.h <<_ACEOF 1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1801 _ACEOF 1802 1803 1804 cat >>confdefs.h <<_ACEOF 1805 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1806 _ACEOF 1807 1808 1809 cat >>confdefs.h <<_ACEOF 1810 #define PACKAGE_STRING "$PACKAGE_STRING" 1811 _ACEOF 1812 1813 1814 cat >>confdefs.h <<_ACEOF 1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1816 _ACEOF 1817 1818 1819 # Let the site file select an alternate cache file if it wants to. 1820 # Prefer explicitly selected file to automatically selected ones. 1821 if test -n "$CONFIG_SITE"; then 1822 set x "$CONFIG_SITE" 1823 elif test "x$prefix" != xNONE; then 1824 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1825 else 1826 set x "$ac_default_prefix/share/config.site" \ 1827 "$ac_default_prefix/etc/config.site" 1828 fi 1829 shift 1830 for ac_site_file 1831 do 1832 if test -r "$ac_site_file"; then 1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1834 echo "$as_me: loading site script $ac_site_file" >&6;} 1835 sed 's/^/| /' "$ac_site_file" >&5 1836 . "$ac_site_file" 1837 fi 1838 done 1839 1840 if test -r "$cache_file"; then 1841 # Some versions of bash will fail to source /dev/null (special 1842 # files actually), so we avoid doing that. 1843 if test -f "$cache_file"; then 1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1845 echo "$as_me: loading cache $cache_file" >&6;} 1846 case $cache_file in 1847 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1848 *) . "./$cache_file";; 1849 esac 1850 fi 1851 else 1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1853 echo "$as_me: creating cache $cache_file" >&6;} 1854 >$cache_file 1855 fi 1856 1857 # Check that the precious variables saved in the cache have kept the same 1858 # value. 1859 ac_cache_corrupted=false 1860 for ac_var in $ac_precious_vars; do 1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1862 eval ac_new_set=\$ac_env_${ac_var}_set 1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1864 eval ac_new_val=\$ac_env_${ac_var}_value 1865 case $ac_old_set,$ac_new_set in 1866 set,) 1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1869 ac_cache_corrupted=: ;; 1870 ,set) 1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1873 ac_cache_corrupted=: ;; 1874 ,);; 1875 *) 1876 if test "x$ac_old_val" != "x$ac_new_val"; then 1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1880 echo "$as_me: former value: $ac_old_val" >&2;} 1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1882 echo "$as_me: current value: $ac_new_val" >&2;} 1883 ac_cache_corrupted=: 1884 fi;; 1885 esac 1886 # Pass precious variables to config.status. 1887 if test "$ac_new_set" = set; then 1888 case $ac_new_val in 1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1890 *) ac_arg=$ac_var=$ac_new_val ;; 1891 esac 1892 case " $ac_configure_args " in 1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1895 esac 1896 fi 1897 done 1898 if $ac_cache_corrupted; then 1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1903 { (exit 1); exit 1; }; } 1904 fi 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 ac_ext=c 1931 ac_cpp='$CPP $CPPFLAGS' 1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1935 1936 1937 1938 LLVM_VERSION_MAJOR=3 1939 LLVM_VERSION_MINOR=5 1940 LLVM_VERSION_PATCH=0 1941 LLVM_VERSION_SUFFIX=svn 1942 1943 1944 cat >>confdefs.h <<_ACEOF 1945 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR 1946 _ACEOF 1947 1948 1949 cat >>confdefs.h <<_ACEOF 1950 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR 1951 _ACEOF 1952 1953 1954 cat >>confdefs.h <<_ACEOF 1955 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH 1956 _ACEOF 1957 1958 1959 1960 1961 1962 1963 1964 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign." 1965 1966 1967 1968 1969 1970 1971 1972 ac_aux_dir= 1973 for ac_dir in autoconf "$srcdir"/autoconf; do 1974 if test -f "$ac_dir/install-sh"; then 1975 ac_aux_dir=$ac_dir 1976 ac_install_sh="$ac_aux_dir/install-sh -c" 1977 break 1978 elif test -f "$ac_dir/install.sh"; then 1979 ac_aux_dir=$ac_dir 1980 ac_install_sh="$ac_aux_dir/install.sh -c" 1981 break 1982 elif test -f "$ac_dir/shtool"; then 1983 ac_aux_dir=$ac_dir 1984 ac_install_sh="$ac_aux_dir/shtool install -c" 1985 break 1986 fi 1987 done 1988 if test -z "$ac_aux_dir"; then 1989 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1990 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1991 { (exit 1); exit 1; }; } 1992 fi 1993 1994 # These three variables are undocumented and unsupported, 1995 # and are intended to be withdrawn in a future Autoconf release. 1996 # They can cause serious problems if a builder's source tree is in a directory 1997 # whose full name contains unusual characters. 1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2000 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2001 2002 2003 2004 if test ${srcdir} != "." ; then 2005 if test -f ${srcdir}/include/llvm/Config/config.h ; then 2006 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 2007 echo "$as_me: error: Already configured in ${srcdir}" >&2;} 2008 { (exit 1); exit 1; }; } 2009 fi 2010 fi 2011 2012 : ${CFLAGS=} 2013 : ${CXXFLAGS=} 2014 2015 ac_ext=c 2016 ac_cpp='$CPP $CPPFLAGS' 2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2020 if test -n "$ac_tool_prefix"; then 2021 for ac_prog in clang gcc 2022 do 2023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2027 if test "${ac_cv_prog_CC+set}" = set; then 2028 echo $ECHO_N "(cached) $ECHO_C" >&6 2029 else 2030 if test -n "$CC"; then 2031 ac_cv_prog_CC="$CC" # Let the user override the test. 2032 else 2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2034 for as_dir in $PATH 2035 do 2036 IFS=$as_save_IFS 2037 test -z "$as_dir" && as_dir=. 2038 for ac_exec_ext in '' $ac_executable_extensions; do 2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2042 break 2 2043 fi 2044 done 2045 done 2046 IFS=$as_save_IFS 2047 2048 fi 2049 fi 2050 CC=$ac_cv_prog_CC 2051 if test -n "$CC"; then 2052 { echo "$as_me:$LINENO: result: $CC" >&5 2053 echo "${ECHO_T}$CC" >&6; } 2054 else 2055 { echo "$as_me:$LINENO: result: no" >&5 2056 echo "${ECHO_T}no" >&6; } 2057 fi 2058 2059 2060 test -n "$CC" && break 2061 done 2062 fi 2063 if test -z "$CC"; then 2064 ac_ct_CC=$CC 2065 for ac_prog in clang gcc 2066 do 2067 # Extract the first word of "$ac_prog", so it can be a program name with args. 2068 set dummy $ac_prog; ac_word=$2 2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2072 echo $ECHO_N "(cached) $ECHO_C" >&6 2073 else 2074 if test -n "$ac_ct_CC"; then 2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2076 else 2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2078 for as_dir in $PATH 2079 do 2080 IFS=$as_save_IFS 2081 test -z "$as_dir" && as_dir=. 2082 for ac_exec_ext in '' $ac_executable_extensions; do 2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2084 ac_cv_prog_ac_ct_CC="$ac_prog" 2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2086 break 2 2087 fi 2088 done 2089 done 2090 IFS=$as_save_IFS 2091 2092 fi 2093 fi 2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2095 if test -n "$ac_ct_CC"; then 2096 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2097 echo "${ECHO_T}$ac_ct_CC" >&6; } 2098 else 2099 { echo "$as_me:$LINENO: result: no" >&5 2100 echo "${ECHO_T}no" >&6; } 2101 fi 2102 2103 2104 test -n "$ac_ct_CC" && break 2105 done 2106 2107 if test "x$ac_ct_CC" = x; then 2108 CC="" 2109 else 2110 case $cross_compiling:$ac_tool_warned in 2111 yes:) 2112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2113 whose name does not start with the host triplet. If you think this 2114 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2116 whose name does not start with the host triplet. If you think this 2117 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2118 ac_tool_warned=yes ;; 2119 esac 2120 CC=$ac_ct_CC 2121 fi 2122 fi 2123 2124 2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2126 See \`config.log' for more details." >&5 2127 echo "$as_me: error: no acceptable C compiler found in \$PATH 2128 See \`config.log' for more details." >&2;} 2129 { (exit 1); exit 1; }; } 2130 2131 # Provide some information about the compiler. 2132 echo "$as_me:$LINENO: checking for C compiler version" >&5 2133 ac_compiler=`set X $ac_compile; echo $2` 2134 { (ac_try="$ac_compiler --version >&5" 2135 case "(($ac_try" in 2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2137 *) ac_try_echo=$ac_try;; 2138 esac 2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2140 (eval "$ac_compiler --version >&5") 2>&5 2141 ac_status=$? 2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2143 (exit $ac_status); } 2144 { (ac_try="$ac_compiler -v >&5" 2145 case "(($ac_try" in 2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2147 *) ac_try_echo=$ac_try;; 2148 esac 2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2150 (eval "$ac_compiler -v >&5") 2>&5 2151 ac_status=$? 2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2153 (exit $ac_status); } 2154 { (ac_try="$ac_compiler -V >&5" 2155 case "(($ac_try" in 2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2157 *) ac_try_echo=$ac_try;; 2158 esac 2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2160 (eval "$ac_compiler -V >&5") 2>&5 2161 ac_status=$? 2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2163 (exit $ac_status); } 2164 2165 cat >conftest.$ac_ext <<_ACEOF 2166 /* confdefs.h. */ 2167 _ACEOF 2168 cat confdefs.h >>conftest.$ac_ext 2169 cat >>conftest.$ac_ext <<_ACEOF 2170 /* end confdefs.h. */ 2171 2172 int 2173 main () 2174 { 2175 2176 ; 2177 return 0; 2178 } 2179 _ACEOF 2180 ac_clean_files_save=$ac_clean_files 2181 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2182 # Try to create an executable without -o first, disregard a.out. 2183 # It will help us diagnose broken compilers, and finding out an intuition 2184 # of exeext. 2185 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2188 # 2189 # List of possible output files, starting from the most likely. 2190 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2191 # only as a last resort. b.out is created by i960 compilers. 2192 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2193 # 2194 # The IRIX 6 linker writes into existing files which may not be 2195 # executable, retaining their permissions. Remove them first so a 2196 # subsequent execution test works. 2197 ac_rmfiles= 2198 for ac_file in $ac_files 2199 do 2200 case $ac_file in 2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2202 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2203 esac 2204 done 2205 rm -f $ac_rmfiles 2206 2207 if { (ac_try="$ac_link_default" 2208 case "(($ac_try" in 2209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2210 *) ac_try_echo=$ac_try;; 2211 esac 2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2213 (eval "$ac_link_default") 2>&5 2214 ac_status=$? 2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2216 (exit $ac_status); }; then 2217 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2218 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2219 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2220 # so that the user can short-circuit this test for compilers unknown to 2221 # Autoconf. 2222 for ac_file in $ac_files 2223 do 2224 test -f "$ac_file" || continue 2225 case $ac_file in 2226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2227 ;; 2228 [ab].out ) 2229 # We found the default executable, but exeext='' is most 2230 # certainly right. 2231 break;; 2232 *.* ) 2233 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2234 then :; else 2235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2236 fi 2237 # We set ac_cv_exeext here because the later test for it is not 2238 # safe: cross compilers may not add the suffix if given an `-o' 2239 # argument, so we may need to know it at that point already. 2240 # Even if this section looks crufty: it has the advantage of 2241 # actually working. 2242 break;; 2243 * ) 2244 break;; 2245 esac 2246 done 2247 test "$ac_cv_exeext" = no && ac_cv_exeext= 2248 2249 else 2250 echo "$as_me: failed program was:" >&5 2251 sed 's/^/| /' conftest.$ac_ext >&5 2252 2253 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2254 See \`config.log' for more details." >&5 2255 echo "$as_me: error: C compiler cannot create executables 2256 See \`config.log' for more details." >&2;} 2257 { (exit 77); exit 77; }; } 2258 fi 2259 2260 ac_exeext=$ac_cv_exeext 2261 { echo "$as_me:$LINENO: result: $ac_file" >&5 2262 echo "${ECHO_T}$ac_file" >&6; } 2263 2264 # Check that the compiler produces executables we can run. If not, either 2265 # the compiler is broken, or we cross compile. 2266 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2267 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2269 # If not cross compiling, check that we can run a simple program. 2270 if test "$cross_compiling" != yes; then 2271 if { ac_try='./$ac_file' 2272 { (case "(($ac_try" in 2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2274 *) ac_try_echo=$ac_try;; 2275 esac 2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2277 (eval "$ac_try") 2>&5 2278 ac_status=$? 2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2280 (exit $ac_status); }; }; then 2281 cross_compiling=no 2282 else 2283 if test "$cross_compiling" = maybe; then 2284 cross_compiling=yes 2285 else 2286 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2287 If you meant to cross compile, use \`--host'. 2288 See \`config.log' for more details." >&5 2289 echo "$as_me: error: cannot run C compiled programs. 2290 If you meant to cross compile, use \`--host'. 2291 See \`config.log' for more details." >&2;} 2292 { (exit 1); exit 1; }; } 2293 fi 2294 fi 2295 fi 2296 { echo "$as_me:$LINENO: result: yes" >&5 2297 echo "${ECHO_T}yes" >&6; } 2298 2299 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2300 ac_clean_files=$ac_clean_files_save 2301 # Check that the compiler produces executables we can run. If not, either 2302 # the compiler is broken, or we cross compile. 2303 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2304 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2305 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2306 echo "${ECHO_T}$cross_compiling" >&6; } 2307 2308 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2309 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2310 if { (ac_try="$ac_link" 2311 case "(($ac_try" in 2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2313 *) ac_try_echo=$ac_try;; 2314 esac 2315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2316 (eval "$ac_link") 2>&5 2317 ac_status=$? 2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2319 (exit $ac_status); }; then 2320 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2321 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2322 # work properly (i.e., refer to `conftest.exe'), while it won't with 2323 # `rm'. 2324 for ac_file in conftest.exe conftest conftest.*; do 2325 test -f "$ac_file" || continue 2326 case $ac_file in 2327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2328 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2329 break;; 2330 * ) break;; 2331 esac 2332 done 2333 else 2334 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2335 See \`config.log' for more details." >&5 2336 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2337 See \`config.log' for more details." >&2;} 2338 { (exit 1); exit 1; }; } 2339 fi 2340 2341 rm -f conftest$ac_cv_exeext 2342 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2343 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2344 2345 rm -f conftest.$ac_ext 2346 EXEEXT=$ac_cv_exeext 2347 ac_exeext=$EXEEXT 2348 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2349 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2350 if test "${ac_cv_objext+set}" = set; then 2351 echo $ECHO_N "(cached) $ECHO_C" >&6 2352 else 2353 cat >conftest.$ac_ext <<_ACEOF 2354 /* confdefs.h. */ 2355 _ACEOF 2356 cat confdefs.h >>conftest.$ac_ext 2357 cat >>conftest.$ac_ext <<_ACEOF 2358 /* end confdefs.h. */ 2359 2360 int 2361 main () 2362 { 2363 2364 ; 2365 return 0; 2366 } 2367 _ACEOF 2368 rm -f conftest.o conftest.obj 2369 if { (ac_try="$ac_compile" 2370 case "(($ac_try" in 2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2372 *) ac_try_echo=$ac_try;; 2373 esac 2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2375 (eval "$ac_compile") 2>&5 2376 ac_status=$? 2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2378 (exit $ac_status); }; then 2379 for ac_file in conftest.o conftest.obj conftest.*; do 2380 test -f "$ac_file" || continue; 2381 case $ac_file in 2382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2384 break;; 2385 esac 2386 done 2387 else 2388 echo "$as_me: failed program was:" >&5 2389 sed 's/^/| /' conftest.$ac_ext >&5 2390 2391 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2392 See \`config.log' for more details." >&5 2393 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2394 See \`config.log' for more details." >&2;} 2395 { (exit 1); exit 1; }; } 2396 fi 2397 2398 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2399 fi 2400 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2401 echo "${ECHO_T}$ac_cv_objext" >&6; } 2402 OBJEXT=$ac_cv_objext 2403 ac_objext=$OBJEXT 2404 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2405 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2406 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2407 echo $ECHO_N "(cached) $ECHO_C" >&6 2408 else 2409 cat >conftest.$ac_ext <<_ACEOF 2410 /* confdefs.h. */ 2411 _ACEOF 2412 cat confdefs.h >>conftest.$ac_ext 2413 cat >>conftest.$ac_ext <<_ACEOF 2414 /* end confdefs.h. */ 2415 2416 int 2417 main () 2418 { 2419 #ifndef __GNUC__ 2420 choke me 2421 #endif 2422 2423 ; 2424 return 0; 2425 } 2426 _ACEOF 2427 rm -f conftest.$ac_objext 2428 if { (ac_try="$ac_compile" 2429 case "(($ac_try" in 2430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2431 *) ac_try_echo=$ac_try;; 2432 esac 2433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2434 (eval "$ac_compile") 2>conftest.er1 2435 ac_status=$? 2436 grep -v '^ *+' conftest.er1 >conftest.err 2437 rm -f conftest.er1 2438 cat conftest.err >&5 2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2440 (exit $ac_status); } && 2441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2442 { (case "(($ac_try" in 2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2444 *) ac_try_echo=$ac_try;; 2445 esac 2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2447 (eval "$ac_try") 2>&5 2448 ac_status=$? 2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2450 (exit $ac_status); }; } && 2451 { ac_try='test -s conftest.$ac_objext' 2452 { (case "(($ac_try" in 2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2454 *) ac_try_echo=$ac_try;; 2455 esac 2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2457 (eval "$ac_try") 2>&5 2458 ac_status=$? 2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2460 (exit $ac_status); }; }; then 2461 ac_compiler_gnu=yes 2462 else 2463 echo "$as_me: failed program was:" >&5 2464 sed 's/^/| /' conftest.$ac_ext >&5 2465 2466 ac_compiler_gnu=no 2467 fi 2468 2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2470 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2471 2472 fi 2473 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2474 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2475 GCC=`test $ac_compiler_gnu = yes && echo yes` 2476 ac_test_CFLAGS=${CFLAGS+set} 2477 ac_save_CFLAGS=$CFLAGS 2478 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2479 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2480 if test "${ac_cv_prog_cc_g+set}" = set; then 2481 echo $ECHO_N "(cached) $ECHO_C" >&6 2482 else 2483 ac_save_c_werror_flag=$ac_c_werror_flag 2484 ac_c_werror_flag=yes 2485 ac_cv_prog_cc_g=no 2486 CFLAGS="-g" 2487 cat >conftest.$ac_ext <<_ACEOF 2488 /* confdefs.h. */ 2489 _ACEOF 2490 cat confdefs.h >>conftest.$ac_ext 2491 cat >>conftest.$ac_ext <<_ACEOF 2492 /* end confdefs.h. */ 2493 2494 int 2495 main () 2496 { 2497 2498 ; 2499 return 0; 2500 } 2501 _ACEOF 2502 rm -f conftest.$ac_objext 2503 if { (ac_try="$ac_compile" 2504 case "(($ac_try" in 2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2506 *) ac_try_echo=$ac_try;; 2507 esac 2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2509 (eval "$ac_compile") 2>conftest.er1 2510 ac_status=$? 2511 grep -v '^ *+' conftest.er1 >conftest.err 2512 rm -f conftest.er1 2513 cat conftest.err >&5 2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2515 (exit $ac_status); } && 2516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2517 { (case "(($ac_try" in 2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2519 *) ac_try_echo=$ac_try;; 2520 esac 2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2522 (eval "$ac_try") 2>&5 2523 ac_status=$? 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); }; } && 2526 { ac_try='test -s conftest.$ac_objext' 2527 { (case "(($ac_try" in 2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2529 *) ac_try_echo=$ac_try;; 2530 esac 2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2532 (eval "$ac_try") 2>&5 2533 ac_status=$? 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2535 (exit $ac_status); }; }; then 2536 ac_cv_prog_cc_g=yes 2537 else 2538 echo "$as_me: failed program was:" >&5 2539 sed 's/^/| /' conftest.$ac_ext >&5 2540 2541 CFLAGS="" 2542 cat >conftest.$ac_ext <<_ACEOF 2543 /* confdefs.h. */ 2544 _ACEOF 2545 cat confdefs.h >>conftest.$ac_ext 2546 cat >>conftest.$ac_ext <<_ACEOF 2547 /* end confdefs.h. */ 2548 2549 int 2550 main () 2551 { 2552 2553 ; 2554 return 0; 2555 } 2556 _ACEOF 2557 rm -f conftest.$ac_objext 2558 if { (ac_try="$ac_compile" 2559 case "(($ac_try" in 2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2561 *) ac_try_echo=$ac_try;; 2562 esac 2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2564 (eval "$ac_compile") 2>conftest.er1 2565 ac_status=$? 2566 grep -v '^ *+' conftest.er1 >conftest.err 2567 rm -f conftest.er1 2568 cat conftest.err >&5 2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2570 (exit $ac_status); } && 2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2572 { (case "(($ac_try" in 2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2574 *) ac_try_echo=$ac_try;; 2575 esac 2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2577 (eval "$ac_try") 2>&5 2578 ac_status=$? 2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2580 (exit $ac_status); }; } && 2581 { ac_try='test -s conftest.$ac_objext' 2582 { (case "(($ac_try" in 2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2584 *) ac_try_echo=$ac_try;; 2585 esac 2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2587 (eval "$ac_try") 2>&5 2588 ac_status=$? 2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2590 (exit $ac_status); }; }; then 2591 : 2592 else 2593 echo "$as_me: failed program was:" >&5 2594 sed 's/^/| /' conftest.$ac_ext >&5 2595 2596 ac_c_werror_flag=$ac_save_c_werror_flag 2597 CFLAGS="-g" 2598 cat >conftest.$ac_ext <<_ACEOF 2599 /* confdefs.h. */ 2600 _ACEOF 2601 cat confdefs.h >>conftest.$ac_ext 2602 cat >>conftest.$ac_ext <<_ACEOF 2603 /* end confdefs.h. */ 2604 2605 int 2606 main () 2607 { 2608 2609 ; 2610 return 0; 2611 } 2612 _ACEOF 2613 rm -f conftest.$ac_objext 2614 if { (ac_try="$ac_compile" 2615 case "(($ac_try" in 2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2617 *) ac_try_echo=$ac_try;; 2618 esac 2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2620 (eval "$ac_compile") 2>conftest.er1 2621 ac_status=$? 2622 grep -v '^ *+' conftest.er1 >conftest.err 2623 rm -f conftest.er1 2624 cat conftest.err >&5 2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2626 (exit $ac_status); } && 2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2628 { (case "(($ac_try" in 2629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2630 *) ac_try_echo=$ac_try;; 2631 esac 2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2633 (eval "$ac_try") 2>&5 2634 ac_status=$? 2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2636 (exit $ac_status); }; } && 2637 { ac_try='test -s conftest.$ac_objext' 2638 { (case "(($ac_try" in 2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2640 *) ac_try_echo=$ac_try;; 2641 esac 2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2643 (eval "$ac_try") 2>&5 2644 ac_status=$? 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); }; }; then 2647 ac_cv_prog_cc_g=yes 2648 else 2649 echo "$as_me: failed program was:" >&5 2650 sed 's/^/| /' conftest.$ac_ext >&5 2651 2652 2653 fi 2654 2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2656 fi 2657 2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2659 fi 2660 2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2662 ac_c_werror_flag=$ac_save_c_werror_flag 2663 fi 2664 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2665 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2666 if test "$ac_test_CFLAGS" = set; then 2667 CFLAGS=$ac_save_CFLAGS 2668 elif test $ac_cv_prog_cc_g = yes; then 2669 if test "$GCC" = yes; then 2670 CFLAGS="-g -O2" 2671 else 2672 CFLAGS="-g" 2673 fi 2674 else 2675 if test "$GCC" = yes; then 2676 CFLAGS="-O2" 2677 else 2678 CFLAGS= 2679 fi 2680 fi 2681 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2682 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2683 if test "${ac_cv_prog_cc_c89+set}" = set; then 2684 echo $ECHO_N "(cached) $ECHO_C" >&6 2685 else 2686 ac_cv_prog_cc_c89=no 2687 ac_save_CC=$CC 2688 cat >conftest.$ac_ext <<_ACEOF 2689 /* confdefs.h. */ 2690 _ACEOF 2691 cat confdefs.h >>conftest.$ac_ext 2692 cat >>conftest.$ac_ext <<_ACEOF 2693 /* end confdefs.h. */ 2694 #include <stdarg.h> 2695 #include <stdio.h> 2696 #include <sys/types.h> 2697 #include <sys/stat.h> 2698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2699 struct buf { int x; }; 2700 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2701 static char *e (p, i) 2702 char **p; 2703 int i; 2704 { 2705 return p[i]; 2706 } 2707 static char *f (char * (*g) (char **, int), char **p, ...) 2708 { 2709 char *s; 2710 va_list v; 2711 va_start (v,p); 2712 s = g (p, va_arg (v,int)); 2713 va_end (v); 2714 return s; 2715 } 2716 2717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2718 function prototypes and stuff, but not '\xHH' hex character constants. 2719 These don't provoke an error unfortunately, instead are silently treated 2720 as 'x'. The following induces an error, until -std is added to get 2721 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2722 array size at least. It's necessary to write '\x00'==0 to get something 2723 that's true only with -std. */ 2724 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2725 2726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2727 inside strings and character constants. */ 2728 #define FOO(x) 'x' 2729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2730 2731 int test (int i, double x); 2732 struct s1 {int (*f) (int a);}; 2733 struct s2 {int (*f) (double a);}; 2734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2735 int argc; 2736 char **argv; 2737 int 2738 main () 2739 { 2740 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2741 ; 2742 return 0; 2743 } 2744 _ACEOF 2745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2746 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2747 do 2748 CC="$ac_save_CC $ac_arg" 2749 rm -f conftest.$ac_objext 2750 if { (ac_try="$ac_compile" 2751 case "(($ac_try" in 2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2753 *) ac_try_echo=$ac_try;; 2754 esac 2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2756 (eval "$ac_compile") 2>conftest.er1 2757 ac_status=$? 2758 grep -v '^ *+' conftest.er1 >conftest.err 2759 rm -f conftest.er1 2760 cat conftest.err >&5 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); } && 2763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2764 { (case "(($ac_try" in 2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2766 *) ac_try_echo=$ac_try;; 2767 esac 2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2769 (eval "$ac_try") 2>&5 2770 ac_status=$? 2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2772 (exit $ac_status); }; } && 2773 { ac_try='test -s conftest.$ac_objext' 2774 { (case "(($ac_try" in 2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2776 *) ac_try_echo=$ac_try;; 2777 esac 2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2779 (eval "$ac_try") 2>&5 2780 ac_status=$? 2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2782 (exit $ac_status); }; }; then 2783 ac_cv_prog_cc_c89=$ac_arg 2784 else 2785 echo "$as_me: failed program was:" >&5 2786 sed 's/^/| /' conftest.$ac_ext >&5 2787 2788 2789 fi 2790 2791 rm -f core conftest.err conftest.$ac_objext 2792 test "x$ac_cv_prog_cc_c89" != "xno" && break 2793 done 2794 rm -f conftest.$ac_ext 2795 CC=$ac_save_CC 2796 2797 fi 2798 # AC_CACHE_VAL 2799 case "x$ac_cv_prog_cc_c89" in 2800 x) 2801 { echo "$as_me:$LINENO: result: none needed" >&5 2802 echo "${ECHO_T}none needed" >&6; } ;; 2803 xno) 2804 { echo "$as_me:$LINENO: result: unsupported" >&5 2805 echo "${ECHO_T}unsupported" >&6; } ;; 2806 *) 2807 CC="$CC $ac_cv_prog_cc_c89" 2808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2809 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2810 esac 2811 2812 2813 ac_ext=c 2814 ac_cpp='$CPP $CPPFLAGS' 2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2818 2819 ac_ext=cpp 2820 ac_cpp='$CXXCPP $CPPFLAGS' 2821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2824 if test -z "$CXX"; then 2825 if test -n "$CCC"; then 2826 CXX=$CCC 2827 else 2828 if test -n "$ac_tool_prefix"; then 2829 for ac_prog in clang++ g++ 2830 do 2831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2835 if test "${ac_cv_prog_CXX+set}" = set; then 2836 echo $ECHO_N "(cached) $ECHO_C" >&6 2837 else 2838 if test -n "$CXX"; then 2839 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2840 else 2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2842 for as_dir in $PATH 2843 do 2844 IFS=$as_save_IFS 2845 test -z "$as_dir" && as_dir=. 2846 for ac_exec_ext in '' $ac_executable_extensions; do 2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2848 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2850 break 2 2851 fi 2852 done 2853 done 2854 IFS=$as_save_IFS 2855 2856 fi 2857 fi 2858 CXX=$ac_cv_prog_CXX 2859 if test -n "$CXX"; then 2860 { echo "$as_me:$LINENO: result: $CXX" >&5 2861 echo "${ECHO_T}$CXX" >&6; } 2862 else 2863 { echo "$as_me:$LINENO: result: no" >&5 2864 echo "${ECHO_T}no" >&6; } 2865 fi 2866 2867 2868 test -n "$CXX" && break 2869 done 2870 fi 2871 if test -z "$CXX"; then 2872 ac_ct_CXX=$CXX 2873 for ac_prog in clang++ g++ 2874 do 2875 # Extract the first word of "$ac_prog", so it can be a program name with args. 2876 set dummy $ac_prog; ac_word=$2 2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2879 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2880 echo $ECHO_N "(cached) $ECHO_C" >&6 2881 else 2882 if test -n "$ac_ct_CXX"; then 2883 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2884 else 2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2886 for as_dir in $PATH 2887 do 2888 IFS=$as_save_IFS 2889 test -z "$as_dir" && as_dir=. 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2892 ac_cv_prog_ac_ct_CXX="$ac_prog" 2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896 done 2897 done 2898 IFS=$as_save_IFS 2899 2900 fi 2901 fi 2902 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2903 if test -n "$ac_ct_CXX"; then 2904 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2905 echo "${ECHO_T}$ac_ct_CXX" >&6; } 2906 else 2907 { echo "$as_me:$LINENO: result: no" >&5 2908 echo "${ECHO_T}no" >&6; } 2909 fi 2910 2911 2912 test -n "$ac_ct_CXX" && break 2913 done 2914 2915 if test "x$ac_ct_CXX" = x; then 2916 CXX="g++" 2917 else 2918 case $cross_compiling:$ac_tool_warned in 2919 yes:) 2920 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2921 whose name does not start with the host triplet. If you think this 2922 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2923 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2924 whose name does not start with the host triplet. If you think this 2925 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2926 ac_tool_warned=yes ;; 2927 esac 2928 CXX=$ac_ct_CXX 2929 fi 2930 fi 2931 2932 fi 2933 fi 2934 # Provide some information about the compiler. 2935 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2936 ac_compiler=`set X $ac_compile; echo $2` 2937 { (ac_try="$ac_compiler --version >&5" 2938 case "(($ac_try" in 2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2940 *) ac_try_echo=$ac_try;; 2941 esac 2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2943 (eval "$ac_compiler --version >&5") 2>&5 2944 ac_status=$? 2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2946 (exit $ac_status); } 2947 { (ac_try="$ac_compiler -v >&5" 2948 case "(($ac_try" in 2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2950 *) ac_try_echo=$ac_try;; 2951 esac 2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2953 (eval "$ac_compiler -v >&5") 2>&5 2954 ac_status=$? 2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2956 (exit $ac_status); } 2957 { (ac_try="$ac_compiler -V >&5" 2958 case "(($ac_try" in 2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2960 *) ac_try_echo=$ac_try;; 2961 esac 2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2963 (eval "$ac_compiler -V >&5") 2>&5 2964 ac_status=$? 2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2966 (exit $ac_status); } 2967 2968 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2969 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2970 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2971 echo $ECHO_N "(cached) $ECHO_C" >&6 2972 else 2973 cat >conftest.$ac_ext <<_ACEOF 2974 /* confdefs.h. */ 2975 _ACEOF 2976 cat confdefs.h >>conftest.$ac_ext 2977 cat >>conftest.$ac_ext <<_ACEOF 2978 /* end confdefs.h. */ 2979 2980 int 2981 main () 2982 { 2983 #ifndef __GNUC__ 2984 choke me 2985 #endif 2986 2987 ; 2988 return 0; 2989 } 2990 _ACEOF 2991 rm -f conftest.$ac_objext 2992 if { (ac_try="$ac_compile" 2993 case "(($ac_try" in 2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2995 *) ac_try_echo=$ac_try;; 2996 esac 2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2998 (eval "$ac_compile") 2>conftest.er1 2999 ac_status=$? 3000 grep -v '^ *+' conftest.er1 >conftest.err 3001 rm -f conftest.er1 3002 cat conftest.err >&5 3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3004 (exit $ac_status); } && 3005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3006 { (case "(($ac_try" in 3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3008 *) ac_try_echo=$ac_try;; 3009 esac 3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3011 (eval "$ac_try") 2>&5 3012 ac_status=$? 3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3014 (exit $ac_status); }; } && 3015 { ac_try='test -s conftest.$ac_objext' 3016 { (case "(($ac_try" in 3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3018 *) ac_try_echo=$ac_try;; 3019 esac 3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3021 (eval "$ac_try") 2>&5 3022 ac_status=$? 3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3024 (exit $ac_status); }; }; then 3025 ac_compiler_gnu=yes 3026 else 3027 echo "$as_me: failed program was:" >&5 3028 sed 's/^/| /' conftest.$ac_ext >&5 3029 3030 ac_compiler_gnu=no 3031 fi 3032 3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3034 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3035 3036 fi 3037 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3038 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3039 GXX=`test $ac_compiler_gnu = yes && echo yes` 3040 ac_test_CXXFLAGS=${CXXFLAGS+set} 3041 ac_save_CXXFLAGS=$CXXFLAGS 3042 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3043 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3044 if test "${ac_cv_prog_cxx_g+set}" = set; then 3045 echo $ECHO_N "(cached) $ECHO_C" >&6 3046 else 3047 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3048 ac_cxx_werror_flag=yes 3049 ac_cv_prog_cxx_g=no 3050 CXXFLAGS="-g" 3051 cat >conftest.$ac_ext <<_ACEOF 3052 /* confdefs.h. */ 3053 _ACEOF 3054 cat confdefs.h >>conftest.$ac_ext 3055 cat >>conftest.$ac_ext <<_ACEOF 3056 /* end confdefs.h. */ 3057 3058 int 3059 main () 3060 { 3061 3062 ; 3063 return 0; 3064 } 3065 _ACEOF 3066 rm -f conftest.$ac_objext 3067 if { (ac_try="$ac_compile" 3068 case "(($ac_try" in 3069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3070 *) ac_try_echo=$ac_try;; 3071 esac 3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3073 (eval "$ac_compile") 2>conftest.er1 3074 ac_status=$? 3075 grep -v '^ *+' conftest.er1 >conftest.err 3076 rm -f conftest.er1 3077 cat conftest.err >&5 3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3079 (exit $ac_status); } && 3080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3081 { (case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084 esac 3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3086 (eval "$ac_try") 2>&5 3087 ac_status=$? 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); }; } && 3090 { ac_try='test -s conftest.$ac_objext' 3091 { (case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094 esac 3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3096 (eval "$ac_try") 2>&5 3097 ac_status=$? 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); }; }; then 3100 ac_cv_prog_cxx_g=yes 3101 else 3102 echo "$as_me: failed program was:" >&5 3103 sed 's/^/| /' conftest.$ac_ext >&5 3104 3105 CXXFLAGS="" 3106 cat >conftest.$ac_ext <<_ACEOF 3107 /* confdefs.h. */ 3108 _ACEOF 3109 cat confdefs.h >>conftest.$ac_ext 3110 cat >>conftest.$ac_ext <<_ACEOF 3111 /* end confdefs.h. */ 3112 3113 int 3114 main () 3115 { 3116 3117 ; 3118 return 0; 3119 } 3120 _ACEOF 3121 rm -f conftest.$ac_objext 3122 if { (ac_try="$ac_compile" 3123 case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126 esac 3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3128 (eval "$ac_compile") 2>conftest.er1 3129 ac_status=$? 3130 grep -v '^ *+' conftest.er1 >conftest.err 3131 rm -f conftest.er1 3132 cat conftest.err >&5 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3134 (exit $ac_status); } && 3135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3136 { (case "(($ac_try" in 3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3138 *) ac_try_echo=$ac_try;; 3139 esac 3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3141 (eval "$ac_try") 2>&5 3142 ac_status=$? 3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 (exit $ac_status); }; } && 3145 { ac_try='test -s conftest.$ac_objext' 3146 { (case "(($ac_try" in 3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3148 *) ac_try_echo=$ac_try;; 3149 esac 3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3151 (eval "$ac_try") 2>&5 3152 ac_status=$? 3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3154 (exit $ac_status); }; }; then 3155 : 3156 else 3157 echo "$as_me: failed program was:" >&5 3158 sed 's/^/| /' conftest.$ac_ext >&5 3159 3160 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3161 CXXFLAGS="-g" 3162 cat >conftest.$ac_ext <<_ACEOF 3163 /* confdefs.h. */ 3164 _ACEOF 3165 cat confdefs.h >>conftest.$ac_ext 3166 cat >>conftest.$ac_ext <<_ACEOF 3167 /* end confdefs.h. */ 3168 3169 int 3170 main () 3171 { 3172 3173 ; 3174 return 0; 3175 } 3176 _ACEOF 3177 rm -f conftest.$ac_objext 3178 if { (ac_try="$ac_compile" 3179 case "(($ac_try" in 3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3181 *) ac_try_echo=$ac_try;; 3182 esac 3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3184 (eval "$ac_compile") 2>conftest.er1 3185 ac_status=$? 3186 grep -v '^ *+' conftest.er1 >conftest.err 3187 rm -f conftest.er1 3188 cat conftest.err >&5 3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3190 (exit $ac_status); } && 3191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3192 { (case "(($ac_try" in 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3194 *) ac_try_echo=$ac_try;; 3195 esac 3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3197 (eval "$ac_try") 2>&5 3198 ac_status=$? 3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3200 (exit $ac_status); }; } && 3201 { ac_try='test -s conftest.$ac_objext' 3202 { (case "(($ac_try" in 3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3204 *) ac_try_echo=$ac_try;; 3205 esac 3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3207 (eval "$ac_try") 2>&5 3208 ac_status=$? 3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3210 (exit $ac_status); }; }; then 3211 ac_cv_prog_cxx_g=yes 3212 else 3213 echo "$as_me: failed program was:" >&5 3214 sed 's/^/| /' conftest.$ac_ext >&5 3215 3216 3217 fi 3218 3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3220 fi 3221 3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3223 fi 3224 3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3226 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3227 fi 3228 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3229 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3230 if test "$ac_test_CXXFLAGS" = set; then 3231 CXXFLAGS=$ac_save_CXXFLAGS 3232 elif test $ac_cv_prog_cxx_g = yes; then 3233 if test "$GXX" = yes; then 3234 CXXFLAGS="-g -O2" 3235 else 3236 CXXFLAGS="-g" 3237 fi 3238 else 3239 if test "$GXX" = yes; then 3240 CXXFLAGS="-O2" 3241 else 3242 CXXFLAGS= 3243 fi 3244 fi 3245 ac_ext=c 3246 ac_cpp='$CPP $CPPFLAGS' 3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3250 3251 ac_ext=c 3252 ac_cpp='$CPP $CPPFLAGS' 3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3256 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3257 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3258 # On Suns, sometimes $CPP names a directory. 3259 if test -n "$CPP" && test -d "$CPP"; then 3260 CPP= 3261 fi 3262 if test -z "$CPP"; then 3263 if test "${ac_cv_prog_CPP+set}" = set; then 3264 echo $ECHO_N "(cached) $ECHO_C" >&6 3265 else 3266 # Double quotes because CPP needs to be expanded 3267 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3268 do 3269 ac_preproc_ok=false 3270 for ac_c_preproc_warn_flag in '' yes 3271 do 3272 # Use a header file that comes with gcc, so configuring glibc 3273 # with a fresh cross-compiler works. 3274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3275 # <limits.h> exists even on freestanding compilers. 3276 # On the NeXT, cc -E runs the code through the compiler's parser, 3277 # not just through cpp. "Syntax error" is here to catch this case. 3278 cat >conftest.$ac_ext <<_ACEOF 3279 /* confdefs.h. */ 3280 _ACEOF 3281 cat confdefs.h >>conftest.$ac_ext 3282 cat >>conftest.$ac_ext <<_ACEOF 3283 /* end confdefs.h. */ 3284 #ifdef __STDC__ 3285 # include <limits.h> 3286 #else 3287 # include <assert.h> 3288 #endif 3289 Syntax error 3290 _ACEOF 3291 if { (ac_try="$ac_cpp conftest.$ac_ext" 3292 case "(($ac_try" in 3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3294 *) ac_try_echo=$ac_try;; 3295 esac 3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3298 ac_status=$? 3299 grep -v '^ *+' conftest.er1 >conftest.err 3300 rm -f conftest.er1 3301 cat conftest.err >&5 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); } >/dev/null; then 3304 if test -s conftest.err; then 3305 ac_cpp_err=$ac_c_preproc_warn_flag 3306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3307 else 3308 ac_cpp_err= 3309 fi 3310 else 3311 ac_cpp_err=yes 3312 fi 3313 if test -z "$ac_cpp_err"; then 3314 : 3315 else 3316 echo "$as_me: failed program was:" >&5 3317 sed 's/^/| /' conftest.$ac_ext >&5 3318 3319 # Broken: fails on valid input. 3320 continue 3321 fi 3322 3323 rm -f conftest.err conftest.$ac_ext 3324 3325 # OK, works on sane cases. Now check whether nonexistent headers 3326 # can be detected and how. 3327 cat >conftest.$ac_ext <<_ACEOF 3328 /* confdefs.h. */ 3329 _ACEOF 3330 cat confdefs.h >>conftest.$ac_ext 3331 cat >>conftest.$ac_ext <<_ACEOF 3332 /* end confdefs.h. */ 3333 #include <ac_nonexistent.h> 3334 _ACEOF 3335 if { (ac_try="$ac_cpp conftest.$ac_ext" 3336 case "(($ac_try" in 3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3338 *) ac_try_echo=$ac_try;; 3339 esac 3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3342 ac_status=$? 3343 grep -v '^ *+' conftest.er1 >conftest.err 3344 rm -f conftest.er1 3345 cat conftest.err >&5 3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3347 (exit $ac_status); } >/dev/null; then 3348 if test -s conftest.err; then 3349 ac_cpp_err=$ac_c_preproc_warn_flag 3350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3351 else 3352 ac_cpp_err= 3353 fi 3354 else 3355 ac_cpp_err=yes 3356 fi 3357 if test -z "$ac_cpp_err"; then 3358 # Broken: success on invalid input. 3359 continue 3360 else 3361 echo "$as_me: failed program was:" >&5 3362 sed 's/^/| /' conftest.$ac_ext >&5 3363 3364 # Passes both tests. 3365 ac_preproc_ok=: 3366 break 3367 fi 3368 3369 rm -f conftest.err conftest.$ac_ext 3370 3371 done 3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3373 rm -f conftest.err conftest.$ac_ext 3374 if $ac_preproc_ok; then 3375 break 3376 fi 3377 3378 done 3379 ac_cv_prog_CPP=$CPP 3380 3381 fi 3382 CPP=$ac_cv_prog_CPP 3383 else 3384 ac_cv_prog_CPP=$CPP 3385 fi 3386 { echo "$as_me:$LINENO: result: $CPP" >&5 3387 echo "${ECHO_T}$CPP" >&6; } 3388 ac_preproc_ok=false 3389 for ac_c_preproc_warn_flag in '' yes 3390 do 3391 # Use a header file that comes with gcc, so configuring glibc 3392 # with a fresh cross-compiler works. 3393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3394 # <limits.h> exists even on freestanding compilers. 3395 # On the NeXT, cc -E runs the code through the compiler's parser, 3396 # not just through cpp. "Syntax error" is here to catch this case. 3397 cat >conftest.$ac_ext <<_ACEOF 3398 /* confdefs.h. */ 3399 _ACEOF 3400 cat confdefs.h >>conftest.$ac_ext 3401 cat >>conftest.$ac_ext <<_ACEOF 3402 /* end confdefs.h. */ 3403 #ifdef __STDC__ 3404 # include <limits.h> 3405 #else 3406 # include <assert.h> 3407 #endif 3408 Syntax error 3409 _ACEOF 3410 if { (ac_try="$ac_cpp conftest.$ac_ext" 3411 case "(($ac_try" in 3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3413 *) ac_try_echo=$ac_try;; 3414 esac 3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3417 ac_status=$? 3418 grep -v '^ *+' conftest.er1 >conftest.err 3419 rm -f conftest.er1 3420 cat conftest.err >&5 3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3422 (exit $ac_status); } >/dev/null; then 3423 if test -s conftest.err; then 3424 ac_cpp_err=$ac_c_preproc_warn_flag 3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3426 else 3427 ac_cpp_err= 3428 fi 3429 else 3430 ac_cpp_err=yes 3431 fi 3432 if test -z "$ac_cpp_err"; then 3433 : 3434 else 3435 echo "$as_me: failed program was:" >&5 3436 sed 's/^/| /' conftest.$ac_ext >&5 3437 3438 # Broken: fails on valid input. 3439 continue 3440 fi 3441 3442 rm -f conftest.err conftest.$ac_ext 3443 3444 # OK, works on sane cases. Now check whether nonexistent headers 3445 # can be detected and how. 3446 cat >conftest.$ac_ext <<_ACEOF 3447 /* confdefs.h. */ 3448 _ACEOF 3449 cat confdefs.h >>conftest.$ac_ext 3450 cat >>conftest.$ac_ext <<_ACEOF 3451 /* end confdefs.h. */ 3452 #include <ac_nonexistent.h> 3453 _ACEOF 3454 if { (ac_try="$ac_cpp conftest.$ac_ext" 3455 case "(($ac_try" in 3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3457 *) ac_try_echo=$ac_try;; 3458 esac 3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3461 ac_status=$? 3462 grep -v '^ *+' conftest.er1 >conftest.err 3463 rm -f conftest.er1 3464 cat conftest.err >&5 3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3466 (exit $ac_status); } >/dev/null; then 3467 if test -s conftest.err; then 3468 ac_cpp_err=$ac_c_preproc_warn_flag 3469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3470 else 3471 ac_cpp_err= 3472 fi 3473 else 3474 ac_cpp_err=yes 3475 fi 3476 if test -z "$ac_cpp_err"; then 3477 # Broken: success on invalid input. 3478 continue 3479 else 3480 echo "$as_me: failed program was:" >&5 3481 sed 's/^/| /' conftest.$ac_ext >&5 3482 3483 # Passes both tests. 3484 ac_preproc_ok=: 3485 break 3486 fi 3487 3488 rm -f conftest.err conftest.$ac_ext 3489 3490 done 3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3492 rm -f conftest.err conftest.$ac_ext 3493 if $ac_preproc_ok; then 3494 : 3495 else 3496 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3497 See \`config.log' for more details." >&5 3498 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3499 See \`config.log' for more details." >&2;} 3500 { (exit 1); exit 1; }; } 3501 fi 3502 3503 ac_ext=c 3504 ac_cpp='$CPP $CPPFLAGS' 3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3508 3509 3510 if test "$CXX" = "clang++" ; then 3511 { echo "$as_me:$LINENO: checking whether clang works" >&5 3512 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; } 3513 ac_ext=cpp 3514 ac_cpp='$CXXCPP $CPPFLAGS' 3515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3518 3519 3520 cat >conftest.$ac_ext <<_ACEOF 3521 /* confdefs.h. */ 3522 _ACEOF 3523 cat confdefs.h >>conftest.$ac_ext 3524 cat >>conftest.$ac_ext <<_ACEOF 3525 /* end confdefs.h. */ 3526 #include <limits> 3527 #if __has_include (<cxxabi.h>) 3528 #include <cxxabi.h> 3529 #endif 3530 #if __has_include (<unwind.h>) 3531 #include <unwind.h> 3532 #endif 3533 3534 int 3535 main () 3536 { 3537 3538 ; 3539 return 0; 3540 } 3541 _ACEOF 3542 rm -f conftest.$ac_objext 3543 if { (ac_try="$ac_compile" 3544 case "(($ac_try" in 3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3546 *) ac_try_echo=$ac_try;; 3547 esac 3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3549 (eval "$ac_compile") 2>conftest.er1 3550 ac_status=$? 3551 grep -v '^ *+' conftest.er1 >conftest.err 3552 rm -f conftest.er1 3553 cat conftest.err >&5 3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); } && 3556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3557 { (case "(($ac_try" in 3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3559 *) ac_try_echo=$ac_try;; 3560 esac 3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3562 (eval "$ac_try") 2>&5 3563 ac_status=$? 3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3565 (exit $ac_status); }; } && 3566 { ac_try='test -s conftest.$ac_objext' 3567 { (case "(($ac_try" in 3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3569 *) ac_try_echo=$ac_try;; 3570 esac 3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3572 (eval "$ac_try") 2>&5 3573 ac_status=$? 3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3575 (exit $ac_status); }; }; then 3576 3577 { echo "$as_me:$LINENO: result: yes" >&5 3578 echo "${ECHO_T}yes" >&6; } 3579 3580 else 3581 echo "$as_me: failed program was:" >&5 3582 sed 's/^/| /' conftest.$ac_ext >&5 3583 3584 3585 { echo "$as_me:$LINENO: result: no" >&5 3586 echo "${ECHO_T}no" >&6; } 3587 { { 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 3588 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;} 3589 { (exit 1); exit 1; }; } 3590 3591 fi 3592 3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3594 ac_ext=c 3595 ac_cpp='$CPP $CPPFLAGS' 3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3599 3600 fi 3601 3602 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5 3603 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; } 3604 ac_ext=cpp 3605 ac_cpp='$CXXCPP $CPPFLAGS' 3606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3609 3610 llvm_cv_cxx_compiler=unknown 3611 cat >conftest.$ac_ext <<_ACEOF 3612 /* confdefs.h. */ 3613 _ACEOF 3614 cat confdefs.h >>conftest.$ac_ext 3615 cat >>conftest.$ac_ext <<_ACEOF 3616 /* end confdefs.h. */ 3617 #if ! __clang__ 3618 #error 3619 #endif 3620 3621 _ACEOF 3622 rm -f conftest.$ac_objext 3623 if { (ac_try="$ac_compile" 3624 case "(($ac_try" in 3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3626 *) ac_try_echo=$ac_try;; 3627 esac 3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3629 (eval "$ac_compile") 2>conftest.er1 3630 ac_status=$? 3631 grep -v '^ *+' conftest.er1 >conftest.err 3632 rm -f conftest.er1 3633 cat conftest.err >&5 3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3635 (exit $ac_status); } && 3636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3637 { (case "(($ac_try" in 3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3639 *) ac_try_echo=$ac_try;; 3640 esac 3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3642 (eval "$ac_try") 2>&5 3643 ac_status=$? 3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3645 (exit $ac_status); }; } && 3646 { ac_try='test -s conftest.$ac_objext' 3647 { (case "(($ac_try" in 3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3649 *) ac_try_echo=$ac_try;; 3650 esac 3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3652 (eval "$ac_try") 2>&5 3653 ac_status=$? 3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3655 (exit $ac_status); }; }; then 3656 llvm_cv_cxx_compiler=clang 3657 else 3658 echo "$as_me: failed program was:" >&5 3659 sed 's/^/| /' conftest.$ac_ext >&5 3660 3661 cat >conftest.$ac_ext <<_ACEOF 3662 /* confdefs.h. */ 3663 _ACEOF 3664 cat confdefs.h >>conftest.$ac_ext 3665 cat >>conftest.$ac_ext <<_ACEOF 3666 /* end confdefs.h. */ 3667 #if ! __GNUC__ 3668 #error 3669 #endif 3670 3671 _ACEOF 3672 rm -f conftest.$ac_objext 3673 if { (ac_try="$ac_compile" 3674 case "(($ac_try" in 3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3676 *) ac_try_echo=$ac_try;; 3677 esac 3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3679 (eval "$ac_compile") 2>conftest.er1 3680 ac_status=$? 3681 grep -v '^ *+' conftest.er1 >conftest.err 3682 rm -f conftest.er1 3683 cat conftest.err >&5 3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3685 (exit $ac_status); } && 3686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3687 { (case "(($ac_try" in 3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3689 *) ac_try_echo=$ac_try;; 3690 esac 3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3692 (eval "$ac_try") 2>&5 3693 ac_status=$? 3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3695 (exit $ac_status); }; } && 3696 { ac_try='test -s conftest.$ac_objext' 3697 { (case "(($ac_try" in 3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3699 *) ac_try_echo=$ac_try;; 3700 esac 3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3702 (eval "$ac_try") 2>&5 3703 ac_status=$? 3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3705 (exit $ac_status); }; }; then 3706 llvm_cv_cxx_compiler=gcc 3707 else 3708 echo "$as_me: failed program was:" >&5 3709 sed 's/^/| /' conftest.$ac_ext >&5 3710 3711 3712 fi 3713 3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3715 fi 3716 3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3718 ac_ext=c 3719 ac_cpp='$CPP $CPPFLAGS' 3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3723 3724 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5 3725 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; } 3726 3727 3728 3729 if test -d ${srcdir}/projects/test-suite ; then 3730 subdirs="$subdirs projects/test-suite" 3731 3732 fi 3733 3734 if test -d ${srcdir}/projects/llvm-test ; then 3735 subdirs="$subdirs projects/llvm-test" 3736 3737 fi 3738 3739 if test -d ${srcdir}/projects/poolalloc ; then 3740 subdirs="$subdirs projects/poolalloc" 3741 3742 fi 3743 3744 if test -d ${srcdir}/projects/llvm-poolalloc ; then 3745 subdirs="$subdirs projects/llvm-poolalloc" 3746 3747 fi 3748 3749 for i in `ls ${srcdir}/projects` 3750 do 3751 if test -d ${srcdir}/projects/${i} ; then 3752 case ${i} in 3753 safecode) subdirs="$subdirs projects/safecode" 3754 ;; 3755 compiler-rt) ;; 3756 test-suite) ;; 3757 llvm-test) ;; 3758 poolalloc) ;; 3759 llvm-poolalloc) ;; 3760 *) 3761 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3762 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3763 ;; 3764 esac 3765 fi 3766 done 3767 3768 # Check whether --enable-polly was given. 3769 if test "${enable_polly+set}" = set; then 3770 enableval=$enable_polly; 3771 else 3772 enableval=default 3773 fi 3774 3775 case "$enableval" in 3776 yes) ENABLE_POLLY=1 3777 ;; 3778 no) ENABLE_POLLY=0 3779 ;; 3780 default) ENABLE_POLLY=1 3781 ;; 3782 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3783 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3784 { (exit 1); exit 1; }; } ;; 3785 esac 3786 3787 3788 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3789 LLVM_HAS_POLLY=1 3790 3791 subdirs="$subdirs tools/polly" 3792 3793 fi 3794 3795 3796 # Make sure we can run config.sub. 3797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3800 { (exit 1); exit 1; }; } 3801 3802 { echo "$as_me:$LINENO: checking build system type" >&5 3803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3804 if test "${ac_cv_build+set}" = set; then 3805 echo $ECHO_N "(cached) $ECHO_C" >&6 3806 else 3807 ac_build_alias=$build_alias 3808 test "x$ac_build_alias" = x && 3809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3810 test "x$ac_build_alias" = x && 3811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3813 { (exit 1); exit 1; }; } 3814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3817 { (exit 1); exit 1; }; } 3818 3819 fi 3820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3821 echo "${ECHO_T}$ac_cv_build" >&6; } 3822 case $ac_cv_build in 3823 *-*-*) ;; 3824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3825 echo "$as_me: error: invalid value of canonical build" >&2;} 3826 { (exit 1); exit 1; }; };; 3827 esac 3828 build=$ac_cv_build 3829 ac_save_IFS=$IFS; IFS='-' 3830 set x $ac_cv_build 3831 shift 3832 build_cpu=$1 3833 build_vendor=$2 3834 shift; shift 3835 # Remember, the first character of IFS is used to create $*, 3836 # except with old shells: 3837 build_os=$* 3838 IFS=$ac_save_IFS 3839 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3840 3841 3842 { echo "$as_me:$LINENO: checking host system type" >&5 3843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3844 if test "${ac_cv_host+set}" = set; then 3845 echo $ECHO_N "(cached) $ECHO_C" >&6 3846 else 3847 if test "x$host_alias" = x; then 3848 ac_cv_host=$ac_cv_build 3849 else 3850 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3853 { (exit 1); exit 1; }; } 3854 fi 3855 3856 fi 3857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3858 echo "${ECHO_T}$ac_cv_host" >&6; } 3859 case $ac_cv_host in 3860 *-*-*) ;; 3861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3862 echo "$as_me: error: invalid value of canonical host" >&2;} 3863 { (exit 1); exit 1; }; };; 3864 esac 3865 host=$ac_cv_host 3866 ac_save_IFS=$IFS; IFS='-' 3867 set x $ac_cv_host 3868 shift 3869 host_cpu=$1 3870 host_vendor=$2 3871 shift; shift 3872 # Remember, the first character of IFS is used to create $*, 3873 # except with old shells: 3874 host_os=$* 3875 IFS=$ac_save_IFS 3876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3877 3878 3879 { echo "$as_me:$LINENO: checking target system type" >&5 3880 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3881 if test "${ac_cv_target+set}" = set; then 3882 echo $ECHO_N "(cached) $ECHO_C" >&6 3883 else 3884 if test "x$target_alias" = x; then 3885 ac_cv_target=$ac_cv_host 3886 else 3887 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3888 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3889 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3890 { (exit 1); exit 1; }; } 3891 fi 3892 3893 fi 3894 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3895 echo "${ECHO_T}$ac_cv_target" >&6; } 3896 case $ac_cv_target in 3897 *-*-*) ;; 3898 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3899 echo "$as_me: error: invalid value of canonical target" >&2;} 3900 { (exit 1); exit 1; }; };; 3901 esac 3902 target=$ac_cv_target 3903 ac_save_IFS=$IFS; IFS='-' 3904 set x $ac_cv_target 3905 shift 3906 target_cpu=$1 3907 target_vendor=$2 3908 shift; shift 3909 # Remember, the first character of IFS is used to create $*, 3910 # except with old shells: 3911 target_os=$* 3912 IFS=$ac_save_IFS 3913 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3914 3915 3916 # The aliases save the names the user supplied, while $host etc. 3917 # will get canonicalized. 3918 test -n "$target_alias" && 3919 test "$program_prefix$program_suffix$program_transform_name" = \ 3920 NONENONEs,x,x, && 3921 program_prefix=${target_alias}- 3922 3923 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3924 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3925 if test "${llvm_cv_os_type+set}" = set; then 3926 echo $ECHO_N "(cached) $ECHO_C" >&6 3927 else 3928 case $host in 3929 *-*-aix*) 3930 llvm_cv_link_all_option="-Wl,--whole-archive" 3931 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3932 llvm_cv_os_type="AIX" 3933 llvm_cv_platform_type="Unix" ;; 3934 *-*-irix*) 3935 llvm_cv_link_all_option="-Wl,--whole-archive" 3936 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3937 llvm_cv_os_type="IRIX" 3938 llvm_cv_platform_type="Unix" ;; 3939 *-*-cygwin*) 3940 llvm_cv_link_all_option="-Wl,--whole-archive" 3941 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3942 llvm_cv_os_type="Cygwin" 3943 llvm_cv_platform_type="Unix" ;; 3944 *-*-darwin*) 3945 llvm_cv_link_all_option="-Wl,-all_load" 3946 llvm_cv_no_link_all_option="-Wl,-noall_load" 3947 llvm_cv_os_type="Darwin" 3948 llvm_cv_platform_type="Unix" ;; 3949 *-*-minix*) 3950 llvm_cv_link_all_option="-Wl,-all_load" 3951 llvm_cv_no_link_all_option="-Wl,-noall_load" 3952 llvm_cv_os_type="Minix" 3953 llvm_cv_platform_type="Unix" ;; 3954 *-*-freebsd*) 3955 llvm_cv_link_all_option="-Wl,--whole-archive" 3956 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3957 llvm_cv_os_type="FreeBSD" 3958 llvm_cv_platform_type="Unix" ;; 3959 *-*-kfreebsd-gnu) 3960 llvm_cv_link_all_option="-Wl,--whole-archive" 3961 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3962 llvm_cv_os_type="GNU/kFreeBSD" 3963 llvm_cv_platform_type="Unix" ;; 3964 *-*-openbsd*) 3965 llvm_cv_link_all_option="-Wl,--whole-archive" 3966 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3967 llvm_cv_os_type="OpenBSD" 3968 llvm_cv_platform_type="Unix" ;; 3969 *-*-netbsd*) 3970 llvm_cv_link_all_option="-Wl,--whole-archive" 3971 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3972 llvm_cv_os_type="NetBSD" 3973 llvm_cv_platform_type="Unix" ;; 3974 *-*-dragonfly*) 3975 llvm_cv_link_all_option="-Wl,--whole-archive" 3976 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3977 llvm_cv_os_type="DragonFly" 3978 llvm_cv_platform_type="Unix" ;; 3979 *-*-hpux*) 3980 llvm_cv_link_all_option="-Wl,--whole-archive" 3981 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3982 llvm_cv_os_type="HP-UX" 3983 llvm_cv_platform_type="Unix" ;; 3984 *-*-interix*) 3985 llvm_cv_link_all_option="-Wl,--whole-archive" 3986 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3987 llvm_cv_os_type="Interix" 3988 llvm_cv_platform_type="Unix" ;; 3989 *-*-linux*) 3990 llvm_cv_link_all_option="-Wl,--whole-archive" 3991 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3992 llvm_cv_os_type="Linux" 3993 llvm_cv_platform_type="Unix" ;; 3994 *-*-gnu*) 3995 llvm_cv_link_all_option="-Wl,--whole-archive" 3996 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3997 llvm_cv_os_type="GNU" 3998 llvm_cv_platform_type="Unix" ;; 3999 *-*-solaris*) 4000 llvm_cv_link_all_option="-Wl,-z,allextract" 4001 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 4002 llvm_cv_os_type="SunOS" 4003 llvm_cv_platform_type="Unix" ;; 4004 *-*-auroraux*) 4005 llvm_cv_link_all_option="-Wl,-z,allextract" 4006 llvm_cv_link_all_option="-Wl,-z,defaultextract" 4007 llvm_cv_os_type="AuroraUX" 4008 llvm_cv_platform_type="Unix" ;; 4009 *-*-win32*) 4010 llvm_cv_link_all_option="-Wl,--whole-archive" 4011 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4012 llvm_cv_os_type="Win32" 4013 llvm_cv_platform_type="Win32" ;; 4014 *-*-mingw*) 4015 llvm_cv_link_all_option="-Wl,--whole-archive" 4016 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4017 llvm_cv_os_type="MingW" 4018 llvm_cv_platform_type="Win32" ;; 4019 *-*-haiku*) 4020 llvm_cv_link_all_option="-Wl,--whole-archive" 4021 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4022 llvm_cv_os_type="Haiku" 4023 llvm_cv_platform_type="Unix" ;; 4024 *-unknown-eabi*) 4025 llvm_cv_link_all_option="-Wl,--whole-archive" 4026 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4027 llvm_cv_os_type="Freestanding" 4028 llvm_cv_platform_type="Unix" ;; 4029 *-unknown-elf*) 4030 llvm_cv_link_all_option="-Wl,--whole-archive" 4031 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 4032 llvm_cv_os_type="Freestanding" 4033 llvm_cv_platform_type="Unix" ;; 4034 *) 4035 llvm_cv_link_all_option="" 4036 llvm_cv_no_link_all_option="" 4037 llvm_cv_os_type="Unknown" 4038 llvm_cv_platform_type="Unknown" ;; 4039 esac 4040 fi 4041 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 4042 echo "${ECHO_T}$llvm_cv_os_type" >&6; } 4043 4044 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 4045 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 4046 if test "${llvm_cv_target_os_type+set}" = set; then 4047 echo $ECHO_N "(cached) $ECHO_C" >&6 4048 else 4049 case $target in 4050 *-*-aix*) 4051 llvm_cv_target_os_type="AIX" ;; 4052 *-*-irix*) 4053 llvm_cv_target_os_type="IRIX" ;; 4054 *-*-cygwin*) 4055 llvm_cv_target_os_type="Cygwin" ;; 4056 *-*-darwin*) 4057 llvm_cv_target_os_type="Darwin" ;; 4058 *-*-minix*) 4059 llvm_cv_target_os_type="Minix" ;; 4060 *-*-freebsd*) 4061 llvm_cv_target_os_type="FreeBSD" ;; 4062 *-*-kfreebsd-gnu) 4063 llvm_cv_target_os_type="GNU/kFreeBSD" ;; 4064 *-*-openbsd*) 4065 llvm_cv_target_os_type="OpenBSD" ;; 4066 *-*-netbsd*) 4067 llvm_cv_target_os_type="NetBSD" ;; 4068 *-*-dragonfly*) 4069 llvm_cv_target_os_type="DragonFly" ;; 4070 *-*-hpux*) 4071 llvm_cv_target_os_type="HP-UX" ;; 4072 *-*-interix*) 4073 llvm_cv_target_os_type="Interix" ;; 4074 *-*-linux*) 4075 llvm_cv_target_os_type="Linux" ;; 4076 *-*-gnu*) 4077 llvm_cv_target_os_type="GNU" ;; 4078 *-*-solaris*) 4079 llvm_cv_target_os_type="SunOS" ;; 4080 *-*-auroraux*) 4081 llvm_cv_target_os_type="AuroraUX" ;; 4082 *-*-win32*) 4083 llvm_cv_target_os_type="Win32" ;; 4084 *-*-mingw*) 4085 llvm_cv_target_os_type="MingW" ;; 4086 *-*-haiku*) 4087 llvm_cv_target_os_type="Haiku" ;; 4088 *-*-rtems*) 4089 llvm_cv_target_os_type="RTEMS" ;; 4090 *-*-nacl*) 4091 llvm_cv_target_os_type="NativeClient" ;; 4092 *-unknown-eabi*) 4093 llvm_cv_target_os_type="Freestanding" ;; 4094 *) 4095 llvm_cv_target_os_type="Unknown" ;; 4096 esac 4097 fi 4098 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 4099 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 4100 4101 if test "$llvm_cv_os_type" = "Unknown" ; then 4102 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 4103 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 4104 { (exit 1); exit 1; }; } 4105 fi 4106 4107 OS=$llvm_cv_os_type 4108 4109 HOST_OS=$llvm_cv_os_type 4110 4111 TARGET_OS=$llvm_cv_target_os_type 4112 4113 4114 LINKALL=$llvm_cv_link_all_option 4115 4116 NOLINKALL=$llvm_cv_no_link_all_option 4117 4118 4119 case $llvm_cv_platform_type in 4120 Unix) 4121 4122 cat >>confdefs.h <<\_ACEOF 4123 #define LLVM_ON_UNIX 1 4124 _ACEOF 4125 4126 LLVM_ON_UNIX=1 4127 4128 LLVM_ON_WIN32=0 4129 4130 ;; 4131 Win32) 4132 4133 cat >>confdefs.h <<\_ACEOF 4134 #define LLVM_ON_WIN32 1 4135 _ACEOF 4136 4137 LLVM_ON_UNIX=0 4138 4139 LLVM_ON_WIN32=1 4140 4141 ;; 4142 esac 4143 4144 { echo "$as_me:$LINENO: checking target architecture" >&5 4145 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 4146 if test "${llvm_cv_target_arch+set}" = set; then 4147 echo $ECHO_N "(cached) $ECHO_C" >&6 4148 else 4149 case $target in 4150 i?86-*) llvm_cv_target_arch="x86" ;; 4151 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 4152 sparc*-*) llvm_cv_target_arch="Sparc" ;; 4153 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 4154 arm64*-*) llvm_cv_target_arch="AArch64" ;; 4155 arm*-*) llvm_cv_target_arch="ARM" ;; 4156 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 4157 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 4158 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 4159 xcore-*) llvm_cv_target_arch="XCore" ;; 4160 msp430-*) llvm_cv_target_arch="MSP430" ;; 4161 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 4162 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 4163 s390x-*) llvm_cv_target_arch="SystemZ" ;; 4164 *) llvm_cv_target_arch="Unknown" ;; 4165 esac 4166 fi 4167 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 4168 echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 4169 4170 if test "$llvm_cv_target_arch" = "Unknown" ; then 4171 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 4172 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 4173 fi 4174 4175 case "$llvm_cv_target_arch" in 4176 x86) LLVM_NATIVE_ARCH="X86" ;; 4177 x86_64) LLVM_NATIVE_ARCH="X86" ;; 4178 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 4179 esac 4180 4181 ARCH=$llvm_cv_target_arch 4182 4183 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH 4184 4185 4186 case $host in 4187 i?86-*) host_arch="x86" ;; 4188 amd64-* | x86_64-*) host_arch="x86_64" ;; 4189 sparc*-*) host_arch="Sparc" ;; 4190 powerpc*-*) host_arch="PowerPC" ;; 4191 arm64*-*) host_arch="AArch64" ;; 4192 arm*-*) host_arch="ARM" ;; 4193 aarch64*-*) host_arch="AArch64" ;; 4194 mips-* | mips64-*) host_arch="Mips" ;; 4195 mipsel-* | mips64el-*) host_arch="Mips" ;; 4196 xcore-*) host_arch="XCore" ;; 4197 msp430-*) host_arch="MSP430" ;; 4198 hexagon-*) host_arch="Hexagon" ;; 4199 s390x-*) host_arch="SystemZ" ;; 4200 *) host_arch="Unknown" ;; 4201 esac 4202 4203 if test "$host_arch" = "Unknown" ; then 4204 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 4205 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 4206 fi 4207 4208 HOST_ARCH=$host_arch 4209 4210 4211 if test "$cross_compiling" = yes; then 4212 LLVM_CROSS_COMPILING=1 4213 4214 4215 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4216 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4217 if test "${ac_cv_build_exeext+set}" = set; then 4218 echo $ECHO_N "(cached) $ECHO_C" >&6 4219 else 4220 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4221 ac_cv_build_exeext=.exe 4222 else 4223 ac_build_prefix=${build_alias}- 4224 4225 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4226 set dummy ${ac_build_prefix}gcc; ac_word=$2 4227 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4229 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4230 echo $ECHO_N "(cached) $ECHO_C" >&6 4231 else 4232 if test -n "$BUILD_CC"; then 4233 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4234 else 4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4236 for as_dir in $PATH 4237 do 4238 IFS=$as_save_IFS 4239 test -z "$as_dir" && as_dir=. 4240 for ac_exec_ext in '' $ac_executable_extensions; do 4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4242 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4244 break 2 4245 fi 4246 done 4247 done 4248 IFS=$as_save_IFS 4249 4250 fi 4251 fi 4252 BUILD_CC=$ac_cv_prog_BUILD_CC 4253 if test -n "$BUILD_CC"; then 4254 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4255 echo "${ECHO_T}$BUILD_CC" >&6; } 4256 else 4257 { echo "$as_me:$LINENO: result: no" >&5 4258 echo "${ECHO_T}no" >&6; } 4259 fi 4260 4261 4262 if test -z "$BUILD_CC"; then 4263 # Extract the first word of "gcc", so it can be a program name with args. 4264 set dummy gcc; ac_word=$2 4265 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4267 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4268 echo $ECHO_N "(cached) $ECHO_C" >&6 4269 else 4270 if test -n "$BUILD_CC"; then 4271 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4272 else 4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274 for as_dir in $PATH 4275 do 4276 IFS=$as_save_IFS 4277 test -z "$as_dir" && as_dir=. 4278 for ac_exec_ext in '' $ac_executable_extensions; do 4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4280 ac_cv_prog_BUILD_CC="gcc" 4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4282 break 2 4283 fi 4284 done 4285 done 4286 IFS=$as_save_IFS 4287 4288 fi 4289 fi 4290 BUILD_CC=$ac_cv_prog_BUILD_CC 4291 if test -n "$BUILD_CC"; then 4292 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4293 echo "${ECHO_T}$BUILD_CC" >&6; } 4294 else 4295 { echo "$as_me:$LINENO: result: no" >&5 4296 echo "${ECHO_T}no" >&6; } 4297 fi 4298 4299 4300 if test -z "$BUILD_CC"; then 4301 # Extract the first word of "cc", so it can be a program name with args. 4302 set dummy cc; ac_word=$2 4303 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4305 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4306 echo $ECHO_N "(cached) $ECHO_C" >&6 4307 else 4308 if test -n "$BUILD_CC"; then 4309 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4310 else 4311 ac_prog_rejected=no 4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4313 for as_dir in $PATH 4314 do 4315 IFS=$as_save_IFS 4316 test -z "$as_dir" && as_dir=. 4317 for ac_exec_ext in '' $ac_executable_extensions; do 4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4319 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4320 ac_prog_rejected=yes 4321 continue 4322 fi 4323 ac_cv_prog_BUILD_CC="cc" 4324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4325 break 2 4326 fi 4327 done 4328 done 4329 IFS=$as_save_IFS 4330 4331 if test $ac_prog_rejected = yes; then 4332 # We found a bogon in the path, so make sure we never use it. 4333 set dummy $ac_cv_prog_BUILD_CC 4334 shift 4335 if test $# != 0; then 4336 # We chose a different compiler from the bogus one. 4337 # However, it has the same basename, so the bogon will be chosen 4338 # first if we set BUILD_CC to just the basename; use the full file name. 4339 shift 4340 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4341 fi 4342 fi 4343 fi 4344 fi 4345 BUILD_CC=$ac_cv_prog_BUILD_CC 4346 if test -n "$BUILD_CC"; then 4347 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4348 echo "${ECHO_T}$BUILD_CC" >&6; } 4349 else 4350 { echo "$as_me:$LINENO: result: no" >&5 4351 echo "${ECHO_T}no" >&6; } 4352 fi 4353 4354 4355 fi 4356 fi 4357 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4358 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4359 { (exit 1); exit 1; }; } 4360 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4361 rm -f conftest* 4362 echo 'int main () { return 0; }' > conftest.$ac_ext 4363 ac_cv_build_exeext= 4364 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4365 (eval $ac_build_link) 2>&5 4366 ac_status=$? 4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4368 (exit $ac_status); }; then 4369 for file in conftest.*; do 4370 case $file in 4371 *.c | *.o | *.obj | *.dSYM) ;; 4372 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4373 esac 4374 done 4375 else 4376 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4377 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4378 { (exit 1); exit 1; }; } 4379 fi 4380 rm -f conftest* 4381 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4382 fi 4383 fi 4384 4385 BUILD_EXEEXT="" 4386 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4387 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4388 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4389 ac_build_exeext=$BUILD_EXEEXT 4390 4391 ac_build_prefix=${build_alias}- 4392 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4393 set dummy ${ac_build_prefix}g++; ac_word=$2 4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4396 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4397 echo $ECHO_N "(cached) $ECHO_C" >&6 4398 else 4399 if test -n "$BUILD_CXX"; then 4400 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4401 else 4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4403 for as_dir in $PATH 4404 do 4405 IFS=$as_save_IFS 4406 test -z "$as_dir" && as_dir=. 4407 for ac_exec_ext in '' $ac_executable_extensions; do 4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4409 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4411 break 2 4412 fi 4413 done 4414 done 4415 IFS=$as_save_IFS 4416 4417 fi 4418 fi 4419 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4420 if test -n "$BUILD_CXX"; then 4421 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4422 echo "${ECHO_T}$BUILD_CXX" >&6; } 4423 else 4424 { echo "$as_me:$LINENO: result: no" >&5 4425 echo "${ECHO_T}no" >&6; } 4426 fi 4427 4428 4429 if test -z "$BUILD_CXX"; then 4430 # Extract the first word of "g++", so it can be a program name with args. 4431 set dummy g++; ac_word=$2 4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4434 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4435 echo $ECHO_N "(cached) $ECHO_C" >&6 4436 else 4437 if test -n "$BUILD_CXX"; then 4438 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4439 else 4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4441 for as_dir in $PATH 4442 do 4443 IFS=$as_save_IFS 4444 test -z "$as_dir" && as_dir=. 4445 for ac_exec_ext in '' $ac_executable_extensions; do 4446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4447 ac_cv_prog_BUILD_CXX="g++" 4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4449 break 2 4450 fi 4451 done 4452 done 4453 IFS=$as_save_IFS 4454 4455 fi 4456 fi 4457 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4458 if test -n "$BUILD_CXX"; then 4459 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4460 echo "${ECHO_T}$BUILD_CXX" >&6; } 4461 else 4462 { echo "$as_me:$LINENO: result: no" >&5 4463 echo "${ECHO_T}no" >&6; } 4464 fi 4465 4466 4467 if test -z "$BUILD_CXX"; then 4468 # Extract the first word of "c++", so it can be a program name with args. 4469 set dummy c++; ac_word=$2 4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4472 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4473 echo $ECHO_N "(cached) $ECHO_C" >&6 4474 else 4475 if test -n "$BUILD_CXX"; then 4476 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4477 else 4478 ac_prog_rejected=no 4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4480 for as_dir in $PATH 4481 do 4482 IFS=$as_save_IFS 4483 test -z "$as_dir" && as_dir=. 4484 for ac_exec_ext in '' $ac_executable_extensions; do 4485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4487 ac_prog_rejected=yes 4488 continue 4489 fi 4490 ac_cv_prog_BUILD_CXX="c++" 4491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4492 break 2 4493 fi 4494 done 4495 done 4496 IFS=$as_save_IFS 4497 4498 if test $ac_prog_rejected = yes; then 4499 # We found a bogon in the path, so make sure we never use it. 4500 set dummy $ac_cv_prog_BUILD_CXX 4501 shift 4502 if test $# != 0; then 4503 # We chose a different compiler from the bogus one. 4504 # However, it has the same basename, so the bogon will be chosen 4505 # first if we set BUILD_CXX to just the basename; use the full file name. 4506 shift 4507 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4508 fi 4509 fi 4510 fi 4511 fi 4512 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4513 if test -n "$BUILD_CXX"; then 4514 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4515 echo "${ECHO_T}$BUILD_CXX" >&6; } 4516 else 4517 { echo "$as_me:$LINENO: result: no" >&5 4518 echo "${ECHO_T}no" >&6; } 4519 fi 4520 4521 4522 fi 4523 fi 4524 else 4525 LLVM_CROSS_COMPILING=0 4526 4527 fi 4528 4529 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4530 cvsbuild="yes" 4531 optimize="no" 4532 CVSBUILD=CVSBUILD=1 4533 4534 else 4535 cvsbuild="no" 4536 optimize="yes" 4537 fi 4538 4539 4540 # Check whether --enable-libcpp was given. 4541 if test "${enable_libcpp+set}" = set; then 4542 enableval=$enable_libcpp; 4543 else 4544 enableval=default 4545 fi 4546 4547 case "$enableval" in 4548 yes) ENABLE_LIBCPP=1 4549 ;; 4550 no) ENABLE_LIBCPP=0 4551 ;; 4552 default) ENABLE_LIBCPP=0 4553 ;; 4554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 4555 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 4556 { (exit 1); exit 1; }; } ;; 4557 esac 4558 4559 # Check whether --enable-compiler-version-checks was given. 4560 if test "${enable_compiler_version_checks+set}" = set; then 4561 enableval=$enable_compiler_version_checks; 4562 else 4563 enableval=default 4564 fi 4565 4566 case "$enableval" in 4567 no) 4568 ;; 4569 yes|default) 4570 ac_ext=cpp 4571 ac_cpp='$CXXCPP $CPPFLAGS' 4572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4575 4576 case "$llvm_cv_cxx_compiler" in 4577 clang) 4578 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5 4579 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; } 4580 cat >conftest.$ac_ext <<_ACEOF 4581 /* confdefs.h. */ 4582 _ACEOF 4583 cat confdefs.h >>conftest.$ac_ext 4584 cat >>conftest.$ac_ext <<_ACEOF 4585 /* end confdefs.h. */ 4586 4587 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1) 4588 #error This version of Clang is too old to build LLVM 4589 #endif 4590 4591 _ACEOF 4592 rm -f conftest.$ac_objext 4593 if { (ac_try="$ac_compile" 4594 case "(($ac_try" in 4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4596 *) ac_try_echo=$ac_try;; 4597 esac 4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4599 (eval "$ac_compile") 2>conftest.er1 4600 ac_status=$? 4601 grep -v '^ *+' conftest.er1 >conftest.err 4602 rm -f conftest.er1 4603 cat conftest.err >&5 4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4605 (exit $ac_status); } && 4606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4607 { (case "(($ac_try" in 4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4609 *) ac_try_echo=$ac_try;; 4610 esac 4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4612 (eval "$ac_try") 2>&5 4613 ac_status=$? 4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4615 (exit $ac_status); }; } && 4616 { ac_try='test -s conftest.$ac_objext' 4617 { (case "(($ac_try" in 4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4619 *) ac_try_echo=$ac_try;; 4620 esac 4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4622 (eval "$ac_try") 2>&5 4623 ac_status=$? 4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4625 (exit $ac_status); }; }; then 4626 { echo "$as_me:$LINENO: result: yes" >&5 4627 echo "${ECHO_T}yes" >&6; } 4628 else 4629 echo "$as_me: failed program was:" >&5 4630 sed 's/^/| /' conftest.$ac_ext >&5 4631 4632 { echo "$as_me:$LINENO: result: no" >&5 4633 echo "${ECHO_T}no" >&6; } 4634 { { echo "$as_me:$LINENO: error: 4635 The selected Clang compiler is not new enough to build LLVM. Please upgrade to 4636 Clang 3.1. You may pass --disable-compiler-version-checks to configure to 4637 bypass these sanity checks." >&5 4638 echo "$as_me: error: 4639 The selected Clang compiler is not new enough to build LLVM. Please upgrade to 4640 Clang 3.1. You may pass --disable-compiler-version-checks to configure to 4641 bypass these sanity checks." >&2;} 4642 { (exit 1); exit 1; }; } 4643 fi 4644 4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4646 4647 if test "$ENABLE_LIBCPP" -eq 0 ; then 4648 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5 4649 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; } 4650 llvm_cv_old_cxxflags="$CXXFLAGS" 4651 CXXFLAGS="$CXXFLAGS -std=c++0x" 4652 cat >conftest.$ac_ext <<_ACEOF 4653 /* confdefs.h. */ 4654 _ACEOF 4655 cat confdefs.h >>conftest.$ac_ext 4656 cat >>conftest.$ac_ext <<_ACEOF 4657 /* end confdefs.h. */ 4658 4659 #include <atomic> 4660 std::atomic<float> x(0.0f); 4661 int main() { return (float)x; } 4662 4663 _ACEOF 4664 rm -f conftest.$ac_objext conftest$ac_exeext 4665 if { (ac_try="$ac_link" 4666 case "(($ac_try" in 4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4668 *) ac_try_echo=$ac_try;; 4669 esac 4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4671 (eval "$ac_link") 2>conftest.er1 4672 ac_status=$? 4673 grep -v '^ *+' conftest.er1 >conftest.err 4674 rm -f conftest.er1 4675 cat conftest.err >&5 4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4677 (exit $ac_status); } && 4678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4679 { (case "(($ac_try" in 4680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4681 *) ac_try_echo=$ac_try;; 4682 esac 4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4684 (eval "$ac_try") 2>&5 4685 ac_status=$? 4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4687 (exit $ac_status); }; } && 4688 { ac_try='test -s conftest$ac_exeext' 4689 { (case "(($ac_try" in 4690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4691 *) ac_try_echo=$ac_try;; 4692 esac 4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4694 (eval "$ac_try") 2>&5 4695 ac_status=$? 4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4697 (exit $ac_status); }; }; then 4698 { echo "$as_me:$LINENO: result: yes" >&5 4699 echo "${ECHO_T}yes" >&6; } 4700 else 4701 echo "$as_me: failed program was:" >&5 4702 sed 's/^/| /' conftest.$ac_ext >&5 4703 4704 { echo "$as_me:$LINENO: result: no" >&5 4705 echo "${ECHO_T}no" >&6; } 4706 { { echo "$as_me:$LINENO: error: 4707 We detected a missing feature in the standard C++ library that was known to be 4708 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous 4709 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older 4710 than 4.7. You will need to update your system and ensure Clang uses the newer 4711 standard library. 4712 4713 If this error is incorrect or you need to force things to work, you may pass 4714 '--disable-compiler-version-checks' to configure to bypass this test." >&5 4715 echo "$as_me: error: 4716 We detected a missing feature in the standard C++ library that was known to be 4717 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous 4718 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older 4719 than 4.7. You will need to update your system and ensure Clang uses the newer 4720 standard library. 4721 4722 If this error is incorrect or you need to force things to work, you may pass 4723 '--disable-compiler-version-checks' to configure to bypass this test." >&2;} 4724 { (exit 1); exit 1; }; } 4725 fi 4726 4727 rm -f core conftest.err conftest.$ac_objext \ 4728 conftest$ac_exeext conftest.$ac_ext 4729 CXXFLAGS="$llvm_cv_old_cxxflags" 4730 fi 4731 ;; 4732 gcc) 4733 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5 4734 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; } 4735 cat >conftest.$ac_ext <<_ACEOF 4736 /* confdefs.h. */ 4737 _ACEOF 4738 cat confdefs.h >>conftest.$ac_ext 4739 cat >>conftest.$ac_ext <<_ACEOF 4740 /* end confdefs.h. */ 4741 4742 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) 4743 #error This version of GCC is too old to build LLVM 4744 #endif 4745 4746 _ACEOF 4747 rm -f conftest.$ac_objext 4748 if { (ac_try="$ac_compile" 4749 case "(($ac_try" in 4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4751 *) ac_try_echo=$ac_try;; 4752 esac 4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4754 (eval "$ac_compile") 2>conftest.er1 4755 ac_status=$? 4756 grep -v '^ *+' conftest.er1 >conftest.err 4757 rm -f conftest.er1 4758 cat conftest.err >&5 4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4760 (exit $ac_status); } && 4761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4762 { (case "(($ac_try" in 4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4764 *) ac_try_echo=$ac_try;; 4765 esac 4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4767 (eval "$ac_try") 2>&5 4768 ac_status=$? 4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4770 (exit $ac_status); }; } && 4771 { ac_try='test -s conftest.$ac_objext' 4772 { (case "(($ac_try" in 4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4774 *) ac_try_echo=$ac_try;; 4775 esac 4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4777 (eval "$ac_try") 2>&5 4778 ac_status=$? 4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4780 (exit $ac_status); }; }; then 4781 { echo "$as_me:$LINENO: result: yes" >&5 4782 echo "${ECHO_T}yes" >&6; } 4783 else 4784 echo "$as_me: failed program was:" >&5 4785 sed 's/^/| /' conftest.$ac_ext >&5 4786 4787 { echo "$as_me:$LINENO: result: no" >&5 4788 echo "${ECHO_T}no" >&6; } 4789 { { echo "$as_me:$LINENO: error: 4790 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade 4791 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to 4792 bypass these sanity checks." >&5 4793 echo "$as_me: error: 4794 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade 4795 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to 4796 bypass these sanity checks." >&2;} 4797 { (exit 1); exit 1; }; } 4798 fi 4799 4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4801 ;; 4802 unknown) 4803 ;; 4804 esac 4805 ac_ext=c 4806 ac_cpp='$CPP $CPPFLAGS' 4807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4809 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4810 4811 ;; 4812 *) 4813 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5 4814 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;} 4815 { (exit 1); exit 1; }; } 4816 ;; 4817 esac 4818 4819 # Check whether --enable-cxx1y was given. 4820 if test "${enable_cxx1y+set}" = set; then 4821 enableval=$enable_cxx1y; 4822 else 4823 enableval=default 4824 fi 4825 4826 case "$enableval" in 4827 yes) ENABLE_CXX1Y=1 4828 ;; 4829 no) ENABLE_CXX1Y=0 4830 ;; 4831 default) ENABLE_CXX1Y=0 4832 ;; 4833 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5 4834 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;} 4835 { (exit 1); exit 1; }; } ;; 4836 esac 4837 4838 # Check whether --enable-split-dwarf was given. 4839 if test "${enable_split_dwarf+set}" = set; then 4840 enableval=$enable_split_dwarf; 4841 else 4842 enableval=default 4843 fi 4844 4845 case "$enableval" in 4846 yes) ENABLE_SPLIT_DWARF=1 4847 ;; 4848 no) ENABLE_SPLIT_DWARF=0 4849 ;; 4850 default) ENABLE_SPLIT_DWARF=0 4851 ;; 4852 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5 4853 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;} 4854 { (exit 1); exit 1; }; } ;; 4855 esac 4856 4857 clang_arcmt="yes" 4858 # Check whether --enable-clang-arcmt was given. 4859 if test "${enable_clang_arcmt+set}" = set; then 4860 enableval=$enable_clang_arcmt; clang_arcmt="$enableval" 4861 else 4862 enableval="yes" 4863 fi 4864 4865 case "$enableval" in 4866 yes) ENABLE_CLANG_ARCMT=1 4867 ;; 4868 no) ENABLE_CLANG_ARCMT=0 4869 ;; 4870 default) ENABLE_CLANG_ARCMT=1 4871 ;; 4872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5 4873 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;} 4874 { (exit 1); exit 1; }; } ;; 4875 esac 4876 4877 clang_plugin_support="yes" 4878 # Check whether --enable-clang-plugin-support was given. 4879 if test "${enable_clang_plugin_support+set}" = set; then 4880 enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval" 4881 else 4882 enableval="yes" 4883 fi 4884 4885 case "$enableval" in 4886 yes) CLANG_PLUGIN_SUPPORT=1 4887 ;; 4888 no) CLANG_PLUGIN_SUPPORT=0 4889 ;; 4890 default) CLANG_PLUGIN_SUPPORT=1 4891 ;; 4892 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5 4893 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;} 4894 { (exit 1); exit 1; }; } ;; 4895 esac 4896 4897 clang_static_analyzer="yes" 4898 # Check whether --enable-clang-static-analyzer was given. 4899 if test "${enable_clang_static_analyzer+set}" = set; then 4900 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" 4901 else 4902 enableval="yes" 4903 fi 4904 4905 case "$enableval" in 4906 yes) ENABLE_CLANG_STATIC_ANALYZER=1 4907 ;; 4908 no) 4909 if test ${clang_arcmt} != "no" ; then 4910 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5 4911 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;} 4912 { (exit 1); exit 1; }; } 4913 fi 4914 ENABLE_CLANG_STATIC_ANALYZER=0 4915 4916 ;; 4917 default) ENABLE_CLANG_STATIC_ANALYZER=1 4918 ;; 4919 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5 4920 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;} 4921 { (exit 1); exit 1; }; } ;; 4922 esac 4923 4924 # Check whether --enable-clang-rewriter was given. 4925 if test "${enable_clang_rewriter+set}" = set; then 4926 enableval=$enable_clang_rewriter; 4927 else 4928 enableval="yes" 4929 fi 4930 4931 case "$enableval" in 4932 yes) ENABLE_CLANG_REWRITER=1 4933 ;; 4934 no) 4935 if test ${clang_arcmt} != "no" ; then 4936 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5 4937 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;} 4938 { (exit 1); exit 1; }; } 4939 fi 4940 if test ${clang_static_analyzer} != "no" ; then 4941 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5 4942 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;} 4943 { (exit 1); exit 1; }; } 4944 fi 4945 ENABLE_CLANG_REWRITER=0 4946 4947 ;; 4948 default) ENABLE_CLANG_REWRITER=1 4949 ;; 4950 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5 4951 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;} 4952 { (exit 1); exit 1; }; } ;; 4953 esac 4954 4955 # Check whether --enable-optimized was given. 4956 if test "${enable_optimized+set}" = set; then 4957 enableval=$enable_optimized; 4958 else 4959 enableval=$optimize 4960 fi 4961 4962 if test ${enableval} = "no" ; then 4963 ENABLE_OPTIMIZED= 4964 4965 else 4966 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4967 4968 fi 4969 4970 # Check whether --enable-profiling was given. 4971 if test "${enable_profiling+set}" = set; then 4972 enableval=$enable_profiling; 4973 else 4974 enableval="no" 4975 fi 4976 4977 if test ${enableval} = "no" ; then 4978 ENABLE_PROFILING= 4979 4980 else 4981 ENABLE_PROFILING=ENABLE_PROFILING=1 4982 4983 fi 4984 4985 # Check whether --enable-assertions was given. 4986 if test "${enable_assertions+set}" = set; then 4987 enableval=$enable_assertions; 4988 else 4989 enableval="yes" 4990 fi 4991 4992 if test ${enableval} = "yes" ; then 4993 DISABLE_ASSERTIONS= 4994 4995 else 4996 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 4997 4998 fi 4999 5000 # Check whether --enable-werror was given. 5001 if test "${enable_werror+set}" = set; then 5002 enableval=$enable_werror; 5003 else 5004 enableval="no" 5005 fi 5006 5007 case "$enableval" in 5008 yes) ENABLE_WERROR=1 5009 ;; 5010 no) ENABLE_WERROR=0 5011 ;; 5012 default) ENABLE_WERROR=0 5013 ;; 5014 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 5015 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} 5016 { (exit 1); exit 1; }; } ;; 5017 esac 5018 5019 # Check whether --enable-expensive-checks was given. 5020 if test "${enable_expensive_checks+set}" = set; then 5021 enableval=$enable_expensive_checks; 5022 else 5023 enableval="no" 5024 fi 5025 5026 if test ${enableval} = "yes" ; then 5027 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5028 5029 EXPENSIVE_CHECKS=yes 5030 5031 else 5032 ENABLE_EXPENSIVE_CHECKS= 5033 5034 EXPENSIVE_CHECKS=no 5035 5036 fi 5037 5038 # Check whether --enable-debug-runtime was given. 5039 if test "${enable_debug_runtime+set}" = set; then 5040 enableval=$enable_debug_runtime; 5041 else 5042 enableval=no 5043 fi 5044 5045 if test ${enableval} = "no" ; then 5046 DEBUG_RUNTIME= 5047 5048 else 5049 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5050 5051 fi 5052 5053 # Check whether --enable-debug-symbols was given. 5054 if test "${enable_debug_symbols+set}" = set; then 5055 enableval=$enable_debug_symbols; 5056 else 5057 enableval=no 5058 fi 5059 5060 if test ${enableval} = "no" ; then 5061 DEBUG_SYMBOLS= 5062 5063 else 5064 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5065 5066 fi 5067 5068 # Check whether --enable-keep-symbols was given. 5069 if test "${enable_keep_symbols+set}" = set; then 5070 enableval=$enable_keep_symbols; 5071 else 5072 enableval=no 5073 fi 5074 5075 if test ${enableval} = "no" ; then 5076 KEEP_SYMBOLS= 5077 5078 else 5079 KEEP_SYMBOLS=KEEP_SYMBOLS=1 5080 5081 fi 5082 5083 # Check whether --enable-jit was given. 5084 if test "${enable_jit+set}" = set; then 5085 enableval=$enable_jit; 5086 else 5087 enableval=default 5088 fi 5089 5090 if test ${enableval} = "no" 5091 then 5092 JIT= 5093 5094 else 5095 case "$llvm_cv_target_arch" in 5096 x86) TARGET_HAS_JIT=1 5097 ;; 5098 Sparc) TARGET_HAS_JIT=0 5099 ;; 5100 PowerPC) TARGET_HAS_JIT=1 5101 ;; 5102 x86_64) TARGET_HAS_JIT=1 5103 ;; 5104 ARM) TARGET_HAS_JIT=1 5105 ;; 5106 Mips) TARGET_HAS_JIT=1 5107 ;; 5108 XCore) TARGET_HAS_JIT=0 5109 ;; 5110 MSP430) TARGET_HAS_JIT=0 5111 ;; 5112 Hexagon) TARGET_HAS_JIT=0 5113 ;; 5114 NVPTX) TARGET_HAS_JIT=0 5115 ;; 5116 SystemZ) TARGET_HAS_JIT=1 5117 ;; 5118 *) TARGET_HAS_JIT=0 5119 ;; 5120 esac 5121 fi 5122 5123 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86" 5124 TARGETS_WITH_JIT=$TARGETS_WITH_JIT 5125 5126 5127 # Check whether --enable-docs was given. 5128 if test "${enable_docs+set}" = set; then 5129 enableval=$enable_docs; 5130 else 5131 enableval=default 5132 fi 5133 5134 case "$enableval" in 5135 yes) ENABLE_DOCS=1 5136 ;; 5137 no) ENABLE_DOCS=0 5138 ;; 5139 default) ENABLE_DOCS=1 5140 ;; 5141 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5142 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5143 { (exit 1); exit 1; }; } ;; 5144 esac 5145 5146 # Check whether --enable-doxygen was given. 5147 if test "${enable_doxygen+set}" = set; then 5148 enableval=$enable_doxygen; 5149 else 5150 enableval=default 5151 fi 5152 5153 case "$enableval" in 5154 yes) ENABLE_DOXYGEN=1 5155 ;; 5156 no) ENABLE_DOXYGEN=0 5157 ;; 5158 default) ENABLE_DOXYGEN=0 5159 ;; 5160 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5161 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5162 { (exit 1); exit 1; }; } ;; 5163 esac 5164 5165 # Check whether --enable-threads was given. 5166 if test "${enable_threads+set}" = set; then 5167 enableval=$enable_threads; 5168 else 5169 enableval=default 5170 fi 5171 5172 case "$enableval" in 5173 yes) LLVM_ENABLE_THREADS=1 5174 ;; 5175 no) LLVM_ENABLE_THREADS=0 5176 ;; 5177 default) LLVM_ENABLE_THREADS=1 5178 ;; 5179 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5180 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5181 { (exit 1); exit 1; }; } ;; 5182 esac 5183 5184 cat >>confdefs.h <<_ACEOF 5185 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5186 _ACEOF 5187 5188 5189 # Check whether --enable-pthreads was given. 5190 if test "${enable_pthreads+set}" = set; then 5191 enableval=$enable_pthreads; 5192 else 5193 enableval=default 5194 fi 5195 5196 case "$enableval" in 5197 yes) ENABLE_PTHREADS=1 5198 ;; 5199 no) ENABLE_PTHREADS=0 5200 ;; 5201 default) ENABLE_PTHREADS=1 5202 ;; 5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5204 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5205 { (exit 1); exit 1; }; } ;; 5206 esac 5207 5208 # Check whether --enable-zlib was given. 5209 if test "${enable_zlib+set}" = set; then 5210 enableval=$enable_zlib; 5211 else 5212 enableval=default 5213 fi 5214 5215 case "$enableval" in 5216 yes) LLVM_ENABLE_ZLIB=1 5217 ;; 5218 no) LLVM_ENABLE_ZLIB=0 5219 ;; 5220 default) LLVM_ENABLE_ZLIB=1 5221 ;; 5222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5 5223 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;} 5224 { (exit 1); exit 1; }; } ;; 5225 esac 5226 5227 cat >>confdefs.h <<_ACEOF 5228 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB 5229 _ACEOF 5230 5231 5232 # Check whether --enable-pic was given. 5233 if test "${enable_pic+set}" = set; then 5234 enableval=$enable_pic; 5235 else 5236 enableval=default 5237 fi 5238 5239 case "$enableval" in 5240 yes) ENABLE_PIC=1 5241 ;; 5242 no) ENABLE_PIC=0 5243 ;; 5244 default) ENABLE_PIC=1 5245 ;; 5246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5247 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5248 { (exit 1); exit 1; }; } ;; 5249 esac 5250 5251 cat >>confdefs.h <<_ACEOF 5252 #define ENABLE_PIC $ENABLE_PIC 5253 _ACEOF 5254 5255 5256 # Check whether --enable-shared was given. 5257 if test "${enable_shared+set}" = set; then 5258 enableval=$enable_shared; 5259 else 5260 enableval=default 5261 fi 5262 5263 case "$enableval" in 5264 yes) ENABLE_SHARED=1 5265 ;; 5266 no) ENABLE_SHARED=0 5267 ;; 5268 default) ENABLE_SHARED=0 5269 ;; 5270 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5271 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5272 { (exit 1); exit 1; }; } ;; 5273 esac 5274 5275 # Check whether --enable-embed-stdcxx was given. 5276 if test "${enable_embed_stdcxx+set}" = set; then 5277 enableval=$enable_embed_stdcxx; 5278 else 5279 enableval=default 5280 fi 5281 5282 case "$enableval" in 5283 yes) ENABLE_EMBED_STDCXX=1 5284 ;; 5285 no) ENABLE_EMBED_STDCXX=0 5286 ;; 5287 default) ENABLE_EMBED_STDCXX=0 5288 ;; 5289 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5290 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5291 { (exit 1); exit 1; }; } ;; 5292 esac 5293 5294 # Check whether --enable-timestamps was given. 5295 if test "${enable_timestamps+set}" = set; then 5296 enableval=$enable_timestamps; 5297 else 5298 enableval=default 5299 fi 5300 5301 case "$enableval" in 5302 yes) ENABLE_TIMESTAMPS=1 5303 ;; 5304 no) ENABLE_TIMESTAMPS=0 5305 ;; 5306 default) ENABLE_TIMESTAMPS=1 5307 ;; 5308 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5309 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5310 { (exit 1); exit 1; }; } ;; 5311 esac 5312 5313 cat >>confdefs.h <<_ACEOF 5314 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5315 _ACEOF 5316 5317 5318 # Check whether --enable-backtraces was given. 5319 if test "${enable_backtraces+set}" = set; then 5320 enableval=$enable_backtraces; case "$enableval" in 5321 yes) llvm_cv_enable_backtraces="yes" ;; 5322 no) llvm_cv_enable_backtraces="no" ;; 5323 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5 5324 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;} 5325 { (exit 1); exit 1; }; } ;; 5326 esac 5327 else 5328 llvm_cv_enable_backtraces="yes" 5329 fi 5330 5331 if test "$llvm_cv_enable_backtraces" = "yes" ; then 5332 5333 cat >>confdefs.h <<\_ACEOF 5334 #define ENABLE_BACKTRACES 1 5335 _ACEOF 5336 5337 fi 5338 5339 # Check whether --enable-crash-overrides was given. 5340 if test "${enable_crash_overrides+set}" = set; then 5341 enableval=$enable_crash_overrides; case "$enableval" in 5342 yes) llvm_cv_enable_crash_overrides="yes" ;; 5343 no) llvm_cv_enable_crash_overrides="no" ;; 5344 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5 5345 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;} 5346 { (exit 1); exit 1; }; } ;; 5347 esac 5348 else 5349 llvm_cv_enable_crash_overrides="yes" 5350 fi 5351 5352 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then 5353 5354 cat >>confdefs.h <<\_ACEOF 5355 #define ENABLE_CRASH_OVERRIDES 1 5356 _ACEOF 5357 5358 fi 5359 5360 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" 5361 ALL_TARGETS=$ALL_TARGETS 5362 5363 5364 TARGETS_TO_BUILD="" 5365 # Check whether --enable-targets was given. 5366 if test "${enable_targets+set}" = set; then 5367 enableval=$enable_targets; 5368 else 5369 enableval=all 5370 fi 5371 5372 if test "$enableval" = host-only ; then 5373 enableval=host 5374 fi 5375 case "$enableval" in 5376 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;; 5377 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5378 case "$a_target" in 5379 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5380 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5381 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5382 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5383 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5384 arm64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5385 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5386 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5387 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5388 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5389 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5390 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5391 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5392 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5393 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5394 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5395 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5396 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;; 5397 host) case "$llvm_cv_target_arch" in 5398 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5399 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5400 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5401 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5402 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5403 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5404 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5405 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5406 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5407 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5408 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5409 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5410 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5411 echo "$as_me: error: Can not set target to build" >&2;} 5412 { (exit 1); exit 1; }; } ;; 5413 esac ;; 5414 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5415 echo "$as_me: error: Unrecognized target $a_target" >&2;} 5416 { (exit 1); exit 1; }; } ;; 5417 esac 5418 done 5419 ;; 5420 esac 5421 5422 # Check whether --enable-experimental-targets was given. 5423 if test "${enable_experimental_targets+set}" = set; then 5424 enableval=$enable_experimental_targets; 5425 else 5426 enableval=disable 5427 fi 5428 5429 5430 if test ${enableval} != "disable" 5431 then 5432 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" 5433 fi 5434 5435 TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5436 5437 5438 for a_target in $TARGETS_TO_BUILD; do 5439 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5440 5441 cat >>confdefs.h <<_ACEOF 5442 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5443 _ACEOF 5444 5445 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5446 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5447 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5448 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5449 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5450 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5451 fi 5452 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5453 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5454 fi 5455 5456 cat >>confdefs.h <<_ACEOF 5457 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5458 _ACEOF 5459 5460 5461 cat >>confdefs.h <<_ACEOF 5462 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5463 _ACEOF 5464 5465 5466 cat >>confdefs.h <<_ACEOF 5467 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5468 _ACEOF 5469 5470 5471 cat >>confdefs.h <<_ACEOF 5472 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5473 _ACEOF 5474 5475 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5476 5477 cat >>confdefs.h <<_ACEOF 5478 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5479 _ACEOF 5480 5481 fi 5482 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5483 5484 cat >>confdefs.h <<_ACEOF 5485 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5486 _ACEOF 5487 5488 fi 5489 fi 5490 done 5491 5492 LLVM_ENUM_TARGETS="" 5493 LLVM_ENUM_ASM_PRINTERS="" 5494 LLVM_ENUM_ASM_PARSERS="" 5495 LLVM_ENUM_DISASSEMBLERS="" 5496 for target_to_build in $TARGETS_TO_BUILD; do 5497 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5498 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5499 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5500 fi 5501 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5502 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5503 fi 5504 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5505 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5506 fi 5507 done 5508 5509 5510 5511 5512 5513 5514 # Check whether --with-optimize-option was given. 5515 if test "${with_optimize_option+set}" = set; then 5516 withval=$with_optimize_option; 5517 else 5518 withval=default 5519 fi 5520 5521 { echo "$as_me:$LINENO: checking optimization flags" >&5 5522 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5523 case "$withval" in 5524 default) 5525 case "$llvm_cv_os_type" in 5526 FreeBSD) optimize_option=-O2 ;; 5527 MingW) optimize_option=-O2 ;; 5528 *) optimize_option=-O3 ;; 5529 esac ;; 5530 *) optimize_option="$withval" ;; 5531 esac 5532 OPTIMIZE_OPTION=$optimize_option 5533 5534 { echo "$as_me:$LINENO: result: $optimize_option" >&5 5535 echo "${ECHO_T}$optimize_option" >&6; } 5536 5537 5538 # Check whether --with-extra-options was given. 5539 if test "${with_extra_options+set}" = set; then 5540 withval=$with_extra_options; 5541 else 5542 withval=default 5543 fi 5544 5545 case "$withval" in 5546 default) EXTRA_OPTIONS= ;; 5547 *) EXTRA_OPTIONS=$withval ;; 5548 esac 5549 EXTRA_OPTIONS=$EXTRA_OPTIONS 5550 5551 5552 5553 # Check whether --with-extra-ld-options was given. 5554 if test "${with_extra_ld_options+set}" = set; then 5555 withval=$with_extra_ld_options; 5556 else 5557 withval=default 5558 fi 5559 5560 case "$withval" in 5561 default) EXTRA_LD_OPTIONS= ;; 5562 *) EXTRA_LD_OPTIONS=$withval ;; 5563 esac 5564 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5565 5566 5567 # Check whether --enable-bindings was given. 5568 if test "${enable_bindings+set}" = set; then 5569 enableval=$enable_bindings; 5570 else 5571 enableval=default 5572 fi 5573 5574 BINDINGS_TO_BUILD="" 5575 case "$enableval" in 5576 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5577 all ) BINDINGS_TO_BUILD="ocaml" ;; 5578 none | no) BINDINGS_TO_BUILD="" ;; 5579 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5580 case "$a_binding" in 5581 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5582 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5583 echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5584 { (exit 1); exit 1; }; } ;; 5585 esac 5586 done 5587 ;; 5588 esac 5589 5590 5591 # Check whether --with-ocaml-libdir was given. 5592 if test "${with_ocaml_libdir+set}" = set; then 5593 withval=$with_ocaml_libdir; 5594 else 5595 withval=auto 5596 fi 5597 5598 case "$withval" in 5599 auto) with_ocaml_libdir="$withval" ;; 5600 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5601 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5602 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5603 { (exit 1); exit 1; }; } ;; 5604 esac 5605 5606 5607 # Check whether --with-clang-srcdir was given. 5608 if test "${with_clang_srcdir+set}" = set; then 5609 withval=$with_clang_srcdir; 5610 else 5611 withval="-" 5612 fi 5613 5614 case "$withval" in 5615 -) clang_src_root="" ;; 5616 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5617 *) clang_src_root="$ac_pwd/$withval" ;; 5618 esac 5619 CLANG_SRC_ROOT=$clang_src_root 5620 5621 5622 5623 # Check whether --with-clang-resource-dir was given. 5624 if test "${with_clang_resource_dir+set}" = set; then 5625 withval=$with_clang_resource_dir; 5626 else 5627 withval="" 5628 fi 5629 5630 5631 cat >>confdefs.h <<_ACEOF 5632 #define CLANG_RESOURCE_DIR "$withval" 5633 _ACEOF 5634 5635 5636 5637 # Check whether --with-c-include-dirs was given. 5638 if test "${with_c_include_dirs+set}" = set; then 5639 withval=$with_c_include_dirs; 5640 else 5641 withval="" 5642 fi 5643 5644 5645 cat >>confdefs.h <<_ACEOF 5646 #define C_INCLUDE_DIRS "$withval" 5647 _ACEOF 5648 5649 5650 # Clang normally uses the system c++ headers and libraries. With this option, 5651 # clang will use the ones provided by a gcc installation instead. This option should 5652 # be passed the same value that was used with --prefix when configuring gcc. 5653 5654 # Check whether --with-gcc-toolchain was given. 5655 if test "${with_gcc_toolchain+set}" = set; then 5656 withval=$with_gcc_toolchain; 5657 else 5658 withval="" 5659 fi 5660 5661 5662 cat >>confdefs.h <<_ACEOF 5663 #define GCC_INSTALL_PREFIX "$withval" 5664 _ACEOF 5665 5666 5667 5668 # Check whether --with-default-sysroot was given. 5669 if test "${with_default_sysroot+set}" = set; then 5670 withval=$with_default_sysroot; 5671 else 5672 withval="" 5673 fi 5674 5675 5676 cat >>confdefs.h <<_ACEOF 5677 #define DEFAULT_SYSROOT "$withval" 5678 _ACEOF 5679 5680 5681 5682 # Check whether --with-binutils-include was given. 5683 if test "${with_binutils_include+set}" = set; then 5684 withval=$with_binutils_include; 5685 else 5686 withval=default 5687 fi 5688 5689 case "$withval" in 5690 default) WITH_BINUTILS_INCDIR=default ;; 5691 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5692 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5693 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5694 { (exit 1); exit 1; }; } ;; 5695 esac 5696 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5697 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5698 5699 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5700 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5701 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5702 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5703 { (exit 1); exit 1; }; }; 5704 fi 5705 fi 5706 5707 5708 # Check whether --with-bug-report-url was given. 5709 if test "${with_bug_report_url+set}" = set; then 5710 withval=$with_bug_report_url; 5711 else 5712 withval="http://llvm.org/bugs/" 5713 fi 5714 5715 5716 cat >>confdefs.h <<_ACEOF 5717 #define BUG_REPORT_URL "$withval" 5718 _ACEOF 5719 5720 5721 # Check whether --enable-terminfo was given. 5722 if test "${enable_terminfo+set}" = set; then 5723 enableval=$enable_terminfo; case "$enableval" in 5724 yes) llvm_cv_enable_terminfo="yes" ;; 5725 no) llvm_cv_enable_terminfo="no" ;; 5726 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5 5727 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;} 5728 { (exit 1); exit 1; }; } ;; 5729 esac 5730 else 5731 llvm_cv_enable_terminfo="yes" 5732 fi 5733 5734 case "$llvm_cv_enable_terminfo" in 5735 yes) ENABLE_TERMINFO=1 5736 ;; 5737 no) ENABLE_TERMINFO=0 5738 ;; 5739 esac 5740 5741 # Check whether --enable-libedit was given. 5742 if test "${enable_libedit+set}" = set; then 5743 enableval=$enable_libedit; case "$enableval" in 5744 yes) llvm_cv_enable_libedit="yes" ;; 5745 no) llvm_cv_enable_libedit="no" ;; 5746 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5 5747 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;} 5748 { (exit 1); exit 1; }; } ;; 5749 esac 5750 else 5751 llvm_cv_enable_libedit="yes" 5752 fi 5753 5754 5755 # Check whether --enable-libffi was given. 5756 if test "${enable_libffi+set}" = set; then 5757 enableval=$enable_libffi; case "$enableval" in 5758 yes) llvm_cv_enable_libffi="yes" ;; 5759 no) llvm_cv_enable_libffi="no" ;; 5760 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5761 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5762 { (exit 1); exit 1; }; } ;; 5763 esac 5764 else 5765 llvm_cv_enable_libffi=no 5766 fi 5767 5768 5769 5770 # Check whether --with-internal-prefix was given. 5771 if test "${with_internal_prefix+set}" = set; then 5772 withval=$with_internal_prefix; 5773 else 5774 withval="" 5775 fi 5776 5777 INTERNAL_PREFIX=$withval 5778 5779 5780 5781 { echo "$as_me:$LINENO: checking for GNU make" >&5 5782 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 5783 if test "${llvm_cv_gnu_make_command+set}" = set; then 5784 echo $ECHO_N "(cached) $ECHO_C" >&6 5785 else 5786 llvm_cv_gnu_make_command='' 5787 for a in "$MAKE" make gmake gnumake ; do 5788 if test -z "$a" ; then continue ; fi ; 5789 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 5790 then 5791 llvm_cv_gnu_make_command=$a ; 5792 break; 5793 fi 5794 done 5795 fi 5796 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 5797 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 5798 if test "x$llvm_cv_gnu_make_command" != "x" ; then 5799 ifGNUmake='' ; 5800 else 5801 ifGNUmake='#' ; 5802 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 5803 echo "${ECHO_T}\"Not found\"" >&6; }; 5804 fi 5805 5806 5807 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 5808 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5809 LN_S=$as_ln_s 5810 if test "$LN_S" = "ln -s"; then 5811 { echo "$as_me:$LINENO: result: yes" >&5 5812 echo "${ECHO_T}yes" >&6; } 5813 else 5814 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5815 echo "${ECHO_T}no, using $LN_S" >&6; } 5816 fi 5817 5818 # Extract the first word of "nm", so it can be a program name with args. 5819 set dummy nm; ac_word=$2 5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5822 if test "${ac_cv_path_NM+set}" = set; then 5823 echo $ECHO_N "(cached) $ECHO_C" >&6 5824 else 5825 case $NM in 5826 [\\/]* | ?:[\\/]*) 5827 ac_cv_path_NM="$NM" # Let the user override the test with a path. 5828 ;; 5829 *) 5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5831 for as_dir in $PATH 5832 do 5833 IFS=$as_save_IFS 5834 test -z "$as_dir" && as_dir=. 5835 for ac_exec_ext in '' $ac_executable_extensions; do 5836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5837 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 5838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5839 break 2 5840 fi 5841 done 5842 done 5843 IFS=$as_save_IFS 5844 5845 test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm" 5846 ;; 5847 esac 5848 fi 5849 NM=$ac_cv_path_NM 5850 if test -n "$NM"; then 5851 { echo "$as_me:$LINENO: result: $NM" >&5 5852 echo "${ECHO_T}$NM" >&6; } 5853 else 5854 { echo "$as_me:$LINENO: result: no" >&5 5855 echo "${ECHO_T}no" >&6; } 5856 fi 5857 5858 5859 # Extract the first word of "cmp", so it can be a program name with args. 5860 set dummy cmp; ac_word=$2 5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5863 if test "${ac_cv_path_CMP+set}" = set; then 5864 echo $ECHO_N "(cached) $ECHO_C" >&6 5865 else 5866 case $CMP in 5867 [\\/]* | ?:[\\/]*) 5868 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5869 ;; 5870 *) 5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5872 for as_dir in $PATH 5873 do 5874 IFS=$as_save_IFS 5875 test -z "$as_dir" && as_dir=. 5876 for ac_exec_ext in '' $ac_executable_extensions; do 5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5878 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5880 break 2 5881 fi 5882 done 5883 done 5884 IFS=$as_save_IFS 5885 5886 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 5887 ;; 5888 esac 5889 fi 5890 CMP=$ac_cv_path_CMP 5891 if test -n "$CMP"; then 5892 { echo "$as_me:$LINENO: result: $CMP" >&5 5893 echo "${ECHO_T}$CMP" >&6; } 5894 else 5895 { echo "$as_me:$LINENO: result: no" >&5 5896 echo "${ECHO_T}no" >&6; } 5897 fi 5898 5899 5900 # Extract the first word of "cp", so it can be a program name with args. 5901 set dummy cp; ac_word=$2 5902 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5904 if test "${ac_cv_path_CP+set}" = set; then 5905 echo $ECHO_N "(cached) $ECHO_C" >&6 5906 else 5907 case $CP in 5908 [\\/]* | ?:[\\/]*) 5909 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5910 ;; 5911 *) 5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5913 for as_dir in $PATH 5914 do 5915 IFS=$as_save_IFS 5916 test -z "$as_dir" && as_dir=. 5917 for ac_exec_ext in '' $ac_executable_extensions; do 5918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5919 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5921 break 2 5922 fi 5923 done 5924 done 5925 IFS=$as_save_IFS 5926 5927 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 5928 ;; 5929 esac 5930 fi 5931 CP=$ac_cv_path_CP 5932 if test -n "$CP"; then 5933 { echo "$as_me:$LINENO: result: $CP" >&5 5934 echo "${ECHO_T}$CP" >&6; } 5935 else 5936 { echo "$as_me:$LINENO: result: no" >&5 5937 echo "${ECHO_T}no" >&6; } 5938 fi 5939 5940 5941 # Extract the first word of "date", so it can be a program name with args. 5942 set dummy date; ac_word=$2 5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5945 if test "${ac_cv_path_DATE+set}" = set; then 5946 echo $ECHO_N "(cached) $ECHO_C" >&6 5947 else 5948 case $DATE in 5949 [\\/]* | ?:[\\/]*) 5950 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5951 ;; 5952 *) 5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5954 for as_dir in $PATH 5955 do 5956 IFS=$as_save_IFS 5957 test -z "$as_dir" && as_dir=. 5958 for ac_exec_ext in '' $ac_executable_extensions; do 5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5960 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5962 break 2 5963 fi 5964 done 5965 done 5966 IFS=$as_save_IFS 5967 5968 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 5969 ;; 5970 esac 5971 fi 5972 DATE=$ac_cv_path_DATE 5973 if test -n "$DATE"; then 5974 { echo "$as_me:$LINENO: result: $DATE" >&5 5975 echo "${ECHO_T}$DATE" >&6; } 5976 else 5977 { echo "$as_me:$LINENO: result: no" >&5 5978 echo "${ECHO_T}no" >&6; } 5979 fi 5980 5981 5982 # Extract the first word of "find", so it can be a program name with args. 5983 set dummy find; ac_word=$2 5984 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5986 if test "${ac_cv_path_FIND+set}" = set; then 5987 echo $ECHO_N "(cached) $ECHO_C" >&6 5988 else 5989 case $FIND in 5990 [\\/]* | ?:[\\/]*) 5991 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 5992 ;; 5993 *) 5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5995 for as_dir in $PATH 5996 do 5997 IFS=$as_save_IFS 5998 test -z "$as_dir" && as_dir=. 5999 for ac_exec_ext in '' $ac_executable_extensions; do 6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6001 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6003 break 2 6004 fi 6005 done 6006 done 6007 IFS=$as_save_IFS 6008 6009 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6010 ;; 6011 esac 6012 fi 6013 FIND=$ac_cv_path_FIND 6014 if test -n "$FIND"; then 6015 { echo "$as_me:$LINENO: result: $FIND" >&5 6016 echo "${ECHO_T}$FIND" >&6; } 6017 else 6018 { echo "$as_me:$LINENO: result: no" >&5 6019 echo "${ECHO_T}no" >&6; } 6020 fi 6021 6022 6023 # Extract the first word of "grep", so it can be a program name with args. 6024 set dummy grep; ac_word=$2 6025 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6027 if test "${ac_cv_path_GREP+set}" = set; then 6028 echo $ECHO_N "(cached) $ECHO_C" >&6 6029 else 6030 case $GREP in 6031 [\\/]* | ?:[\\/]*) 6032 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6033 ;; 6034 *) 6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6036 for as_dir in $PATH 6037 do 6038 IFS=$as_save_IFS 6039 test -z "$as_dir" && as_dir=. 6040 for ac_exec_ext in '' $ac_executable_extensions; do 6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6042 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6044 break 2 6045 fi 6046 done 6047 done 6048 IFS=$as_save_IFS 6049 6050 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6051 ;; 6052 esac 6053 fi 6054 GREP=$ac_cv_path_GREP 6055 if test -n "$GREP"; then 6056 { echo "$as_me:$LINENO: result: $GREP" >&5 6057 echo "${ECHO_T}$GREP" >&6; } 6058 else 6059 { echo "$as_me:$LINENO: result: no" >&5 6060 echo "${ECHO_T}no" >&6; } 6061 fi 6062 6063 6064 # Extract the first word of "mkdir", so it can be a program name with args. 6065 set dummy mkdir; 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_MKDIR+set}" = set; then 6069 echo $ECHO_N "(cached) $ECHO_C" >&6 6070 else 6071 case $MKDIR in 6072 [\\/]* | ?:[\\/]*) 6073 ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$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_MKDIR" && ac_cv_path_MKDIR="mkdir" 6092 ;; 6093 esac 6094 fi 6095 MKDIR=$ac_cv_path_MKDIR 6096 if test -n "$MKDIR"; then 6097 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6098 echo "${ECHO_T}$MKDIR" >&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 "mv", so it can be a program name with args. 6106 set dummy mv; 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_MV+set}" = set; then 6110 echo $ECHO_N "(cached) $ECHO_C" >&6 6111 else 6112 case $MV in 6113 [\\/]* | ?:[\\/]*) 6114 ac_cv_path_MV="$MV" # 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_MV="$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_MV" && ac_cv_path_MV="mv" 6133 ;; 6134 esac 6135 fi 6136 MV=$ac_cv_path_MV 6137 if test -n "$MV"; then 6138 { echo "$as_me:$LINENO: result: $MV" >&5 6139 echo "${ECHO_T}$MV" >&6; } 6140 else 6141 { echo "$as_me:$LINENO: result: no" >&5 6142 echo "${ECHO_T}no" >&6; } 6143 fi 6144 6145 6146 if test -n "$ac_tool_prefix"; then 6147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6151 if test "${ac_cv_prog_RANLIB+set}" = set; then 6152 echo $ECHO_N "(cached) $ECHO_C" >&6 6153 else 6154 if test -n "$RANLIB"; then 6155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6156 else 6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6158 for as_dir in $PATH 6159 do 6160 IFS=$as_save_IFS 6161 test -z "$as_dir" && as_dir=. 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168 done 6169 done 6170 IFS=$as_save_IFS 6171 6172 fi 6173 fi 6174 RANLIB=$ac_cv_prog_RANLIB 6175 if test -n "$RANLIB"; then 6176 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6177 echo "${ECHO_T}$RANLIB" >&6; } 6178 else 6179 { echo "$as_me:$LINENO: result: no" >&5 6180 echo "${ECHO_T}no" >&6; } 6181 fi 6182 6183 6184 fi 6185 if test -z "$ac_cv_prog_RANLIB"; then 6186 ac_ct_RANLIB=$RANLIB 6187 # Extract the first word of "ranlib", so it can be a program name with args. 6188 set dummy ranlib; 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_prog_ac_ct_RANLIB+set}" = set; then 6192 echo $ECHO_N "(cached) $ECHO_C" >&6 6193 else 6194 if test -n "$ac_ct_RANLIB"; then 6195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6196 else 6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6198 for as_dir in $PATH 6199 do 6200 IFS=$as_save_IFS 6201 test -z "$as_dir" && as_dir=. 6202 for ac_exec_ext in '' $ac_executable_extensions; do 6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6204 ac_cv_prog_ac_ct_RANLIB="ranlib" 6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6206 break 2 6207 fi 6208 done 6209 done 6210 IFS=$as_save_IFS 6211 6212 fi 6213 fi 6214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6215 if test -n "$ac_ct_RANLIB"; then 6216 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6217 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6218 else 6219 { echo "$as_me:$LINENO: result: no" >&5 6220 echo "${ECHO_T}no" >&6; } 6221 fi 6222 6223 if test "x$ac_ct_RANLIB" = x; then 6224 RANLIB=":" 6225 else 6226 case $cross_compiling:$ac_tool_warned in 6227 yes:) 6228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6229 whose name does not start with the host triplet. If you think this 6230 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6232 whose name does not start with the host triplet. If you think this 6233 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6234 ac_tool_warned=yes ;; 6235 esac 6236 RANLIB=$ac_ct_RANLIB 6237 fi 6238 else 6239 RANLIB="$ac_cv_prog_RANLIB" 6240 fi 6241 6242 if test -n "$ac_tool_prefix"; then 6243 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6244 set dummy ${ac_tool_prefix}ar; ac_word=$2 6245 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6247 if test "${ac_cv_prog_AR+set}" = set; then 6248 echo $ECHO_N "(cached) $ECHO_C" >&6 6249 else 6250 if test -n "$AR"; then 6251 ac_cv_prog_AR="$AR" # Let the user override the test. 6252 else 6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6254 for as_dir in $PATH 6255 do 6256 IFS=$as_save_IFS 6257 test -z "$as_dir" && as_dir=. 6258 for ac_exec_ext in '' $ac_executable_extensions; do 6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6260 ac_cv_prog_AR="${ac_tool_prefix}ar" 6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6262 break 2 6263 fi 6264 done 6265 done 6266 IFS=$as_save_IFS 6267 6268 fi 6269 fi 6270 AR=$ac_cv_prog_AR 6271 if test -n "$AR"; then 6272 { echo "$as_me:$LINENO: result: $AR" >&5 6273 echo "${ECHO_T}$AR" >&6; } 6274 else 6275 { echo "$as_me:$LINENO: result: no" >&5 6276 echo "${ECHO_T}no" >&6; } 6277 fi 6278 6279 6280 fi 6281 if test -z "$ac_cv_prog_AR"; then 6282 ac_ct_AR=$AR 6283 # Extract the first word of "ar", so it can be a program name with args. 6284 set dummy ar; ac_word=$2 6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6287 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6288 echo $ECHO_N "(cached) $ECHO_C" >&6 6289 else 6290 if test -n "$ac_ct_AR"; then 6291 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6292 else 6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6294 for as_dir in $PATH 6295 do 6296 IFS=$as_save_IFS 6297 test -z "$as_dir" && as_dir=. 6298 for ac_exec_ext in '' $ac_executable_extensions; do 6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6300 ac_cv_prog_ac_ct_AR="ar" 6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6302 break 2 6303 fi 6304 done 6305 done 6306 IFS=$as_save_IFS 6307 6308 fi 6309 fi 6310 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6311 if test -n "$ac_ct_AR"; then 6312 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6313 echo "${ECHO_T}$ac_ct_AR" >&6; } 6314 else 6315 { echo "$as_me:$LINENO: result: no" >&5 6316 echo "${ECHO_T}no" >&6; } 6317 fi 6318 6319 if test "x$ac_ct_AR" = x; then 6320 AR="false" 6321 else 6322 case $cross_compiling:$ac_tool_warned in 6323 yes:) 6324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6325 whose name does not start with the host triplet. If you think this 6326 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6328 whose name does not start with the host triplet. If you think this 6329 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6330 ac_tool_warned=yes ;; 6331 esac 6332 AR=$ac_ct_AR 6333 fi 6334 else 6335 AR="$ac_cv_prog_AR" 6336 fi 6337 6338 # Extract the first word of "rm", so it can be a program name with args. 6339 set dummy rm; ac_word=$2 6340 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6342 if test "${ac_cv_path_RM+set}" = set; then 6343 echo $ECHO_N "(cached) $ECHO_C" >&6 6344 else 6345 case $RM in 6346 [\\/]* | ?:[\\/]*) 6347 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6348 ;; 6349 *) 6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6351 for as_dir in $PATH 6352 do 6353 IFS=$as_save_IFS 6354 test -z "$as_dir" && as_dir=. 6355 for ac_exec_ext in '' $ac_executable_extensions; do 6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6357 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6359 break 2 6360 fi 6361 done 6362 done 6363 IFS=$as_save_IFS 6364 6365 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6366 ;; 6367 esac 6368 fi 6369 RM=$ac_cv_path_RM 6370 if test -n "$RM"; then 6371 { echo "$as_me:$LINENO: result: $RM" >&5 6372 echo "${ECHO_T}$RM" >&6; } 6373 else 6374 { echo "$as_me:$LINENO: result: no" >&5 6375 echo "${ECHO_T}no" >&6; } 6376 fi 6377 6378 6379 # Extract the first word of "sed", so it can be a program name with args. 6380 set dummy sed; ac_word=$2 6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6383 if test "${ac_cv_path_SED+set}" = set; then 6384 echo $ECHO_N "(cached) $ECHO_C" >&6 6385 else 6386 case $SED in 6387 [\\/]* | ?:[\\/]*) 6388 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6389 ;; 6390 *) 6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6392 for as_dir in $PATH 6393 do 6394 IFS=$as_save_IFS 6395 test -z "$as_dir" && as_dir=. 6396 for ac_exec_ext in '' $ac_executable_extensions; do 6397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6398 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6400 break 2 6401 fi 6402 done 6403 done 6404 IFS=$as_save_IFS 6405 6406 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6407 ;; 6408 esac 6409 fi 6410 SED=$ac_cv_path_SED 6411 if test -n "$SED"; then 6412 { echo "$as_me:$LINENO: result: $SED" >&5 6413 echo "${ECHO_T}$SED" >&6; } 6414 else 6415 { echo "$as_me:$LINENO: result: no" >&5 6416 echo "${ECHO_T}no" >&6; } 6417 fi 6418 6419 6420 # Extract the first word of "tar", so it can be a program name with args. 6421 set dummy tar; ac_word=$2 6422 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6424 if test "${ac_cv_path_TAR+set}" = set; then 6425 echo $ECHO_N "(cached) $ECHO_C" >&6 6426 else 6427 case $TAR in 6428 [\\/]* | ?:[\\/]*) 6429 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6430 ;; 6431 *) 6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6433 for as_dir in $PATH 6434 do 6435 IFS=$as_save_IFS 6436 test -z "$as_dir" && as_dir=. 6437 for ac_exec_ext in '' $ac_executable_extensions; do 6438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6439 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6441 break 2 6442 fi 6443 done 6444 done 6445 IFS=$as_save_IFS 6446 6447 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6448 ;; 6449 esac 6450 fi 6451 TAR=$ac_cv_path_TAR 6452 if test -n "$TAR"; then 6453 { echo "$as_me:$LINENO: result: $TAR" >&5 6454 echo "${ECHO_T}$TAR" >&6; } 6455 else 6456 { echo "$as_me:$LINENO: result: no" >&5 6457 echo "${ECHO_T}no" >&6; } 6458 fi 6459 6460 6461 # Extract the first word of "pwd", so it can be a program name with args. 6462 set dummy pwd; ac_word=$2 6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6465 if test "${ac_cv_path_BINPWD+set}" = set; then 6466 echo $ECHO_N "(cached) $ECHO_C" >&6 6467 else 6468 case $BINPWD in 6469 [\\/]* | ?:[\\/]*) 6470 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6471 ;; 6472 *) 6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6474 for as_dir in $PATH 6475 do 6476 IFS=$as_save_IFS 6477 test -z "$as_dir" && as_dir=. 6478 for ac_exec_ext in '' $ac_executable_extensions; do 6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6480 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6482 break 2 6483 fi 6484 done 6485 done 6486 IFS=$as_save_IFS 6487 6488 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6489 ;; 6490 esac 6491 fi 6492 BINPWD=$ac_cv_path_BINPWD 6493 if test -n "$BINPWD"; then 6494 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6495 echo "${ECHO_T}$BINPWD" >&6; } 6496 else 6497 { echo "$as_me:$LINENO: result: no" >&5 6498 echo "${ECHO_T}no" >&6; } 6499 fi 6500 6501 6502 6503 # Extract the first word of "Graphviz", so it can be a program name with args. 6504 set dummy Graphviz; ac_word=$2 6505 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6507 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6508 echo $ECHO_N "(cached) $ECHO_C" >&6 6509 else 6510 case $GRAPHVIZ in 6511 [\\/]* | ?:[\\/]*) 6512 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6513 ;; 6514 *) 6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6516 for as_dir in $PATH 6517 do 6518 IFS=$as_save_IFS 6519 test -z "$as_dir" && as_dir=. 6520 for ac_exec_ext in '' $ac_executable_extensions; do 6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6522 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6524 break 2 6525 fi 6526 done 6527 done 6528 IFS=$as_save_IFS 6529 6530 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6531 ;; 6532 esac 6533 fi 6534 GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6535 if test -n "$GRAPHVIZ"; then 6536 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6537 echo "${ECHO_T}$GRAPHVIZ" >&6; } 6538 else 6539 { echo "$as_me:$LINENO: result: no" >&5 6540 echo "${ECHO_T}no" >&6; } 6541 fi 6542 6543 6544 if test "$GRAPHVIZ" != "echo Graphviz" ; then 6545 6546 cat >>confdefs.h <<\_ACEOF 6547 #define HAVE_GRAPHVIZ 1 6548 _ACEOF 6549 6550 if test "$llvm_cv_os_type" = "MingW" ; then 6551 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6552 fi 6553 6554 cat >>confdefs.h <<_ACEOF 6555 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6556 _ACEOF 6557 6558 fi 6559 # Extract the first word of "dot", so it can be a program name with args. 6560 set dummy dot; ac_word=$2 6561 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6563 if test "${ac_cv_path_DOT+set}" = set; then 6564 echo $ECHO_N "(cached) $ECHO_C" >&6 6565 else 6566 case $DOT in 6567 [\\/]* | ?:[\\/]*) 6568 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6569 ;; 6570 *) 6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572 for as_dir in $PATH 6573 do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6578 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582 done 6583 done 6584 IFS=$as_save_IFS 6585 6586 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6587 ;; 6588 esac 6589 fi 6590 DOT=$ac_cv_path_DOT 6591 if test -n "$DOT"; then 6592 { echo "$as_me:$LINENO: result: $DOT" >&5 6593 echo "${ECHO_T}$DOT" >&6; } 6594 else 6595 { echo "$as_me:$LINENO: result: no" >&5 6596 echo "${ECHO_T}no" >&6; } 6597 fi 6598 6599 6600 if test "$DOT" != "echo dot" ; then 6601 6602 cat >>confdefs.h <<\_ACEOF 6603 #define HAVE_DOT 1 6604 _ACEOF 6605 6606 if test "$llvm_cv_os_type" = "MingW" ; then 6607 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6608 fi 6609 6610 cat >>confdefs.h <<_ACEOF 6611 #define LLVM_PATH_DOT "$DOT${EXEEXT}" 6612 _ACEOF 6613 6614 fi 6615 # Extract the first word of "fdp", so it can be a program name with args. 6616 set dummy fdp; ac_word=$2 6617 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6619 if test "${ac_cv_path_FDP+set}" = set; then 6620 echo $ECHO_N "(cached) $ECHO_C" >&6 6621 else 6622 case $FDP in 6623 [\\/]* | ?:[\\/]*) 6624 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6625 ;; 6626 *) 6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6628 for as_dir in $PATH 6629 do 6630 IFS=$as_save_IFS 6631 test -z "$as_dir" && as_dir=. 6632 for ac_exec_ext in '' $ac_executable_extensions; do 6633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6634 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6636 break 2 6637 fi 6638 done 6639 done 6640 IFS=$as_save_IFS 6641 6642 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6643 ;; 6644 esac 6645 fi 6646 FDP=$ac_cv_path_FDP 6647 if test -n "$FDP"; then 6648 { echo "$as_me:$LINENO: result: $FDP" >&5 6649 echo "${ECHO_T}$FDP" >&6; } 6650 else 6651 { echo "$as_me:$LINENO: result: no" >&5 6652 echo "${ECHO_T}no" >&6; } 6653 fi 6654 6655 6656 if test "$FDP" != "echo fdp" ; then 6657 6658 cat >>confdefs.h <<\_ACEOF 6659 #define HAVE_FDP 1 6660 _ACEOF 6661 6662 if test "$llvm_cv_os_type" = "MingW" ; then 6663 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6664 fi 6665 6666 cat >>confdefs.h <<_ACEOF 6667 #define LLVM_PATH_FDP "$FDP${EXEEXT}" 6668 _ACEOF 6669 6670 fi 6671 # Extract the first word of "neato", so it can be a program name with args. 6672 set dummy neato; ac_word=$2 6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6675 if test "${ac_cv_path_NEATO+set}" = set; then 6676 echo $ECHO_N "(cached) $ECHO_C" >&6 6677 else 6678 case $NEATO in 6679 [\\/]* | ?:[\\/]*) 6680 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6681 ;; 6682 *) 6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6684 for as_dir in $PATH 6685 do 6686 IFS=$as_save_IFS 6687 test -z "$as_dir" && as_dir=. 6688 for ac_exec_ext in '' $ac_executable_extensions; do 6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6690 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6692 break 2 6693 fi 6694 done 6695 done 6696 IFS=$as_save_IFS 6697 6698 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6699 ;; 6700 esac 6701 fi 6702 NEATO=$ac_cv_path_NEATO 6703 if test -n "$NEATO"; then 6704 { echo "$as_me:$LINENO: result: $NEATO" >&5 6705 echo "${ECHO_T}$NEATO" >&6; } 6706 else 6707 { echo "$as_me:$LINENO: result: no" >&5 6708 echo "${ECHO_T}no" >&6; } 6709 fi 6710 6711 6712 if test "$NEATO" != "echo neato" ; then 6713 6714 cat >>confdefs.h <<\_ACEOF 6715 #define HAVE_NEATO 1 6716 _ACEOF 6717 6718 if test "$llvm_cv_os_type" = "MingW" ; then 6719 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6720 fi 6721 6722 cat >>confdefs.h <<_ACEOF 6723 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6724 _ACEOF 6725 6726 fi 6727 # Extract the first word of "twopi", so it can be a program name with args. 6728 set dummy twopi; ac_word=$2 6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6731 if test "${ac_cv_path_TWOPI+set}" = set; then 6732 echo $ECHO_N "(cached) $ECHO_C" >&6 6733 else 6734 case $TWOPI in 6735 [\\/]* | ?:[\\/]*) 6736 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 6737 ;; 6738 *) 6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6740 for as_dir in $PATH 6741 do 6742 IFS=$as_save_IFS 6743 test -z "$as_dir" && as_dir=. 6744 for ac_exec_ext in '' $ac_executable_extensions; do 6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6746 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6748 break 2 6749 fi 6750 done 6751 done 6752 IFS=$as_save_IFS 6753 6754 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 6755 ;; 6756 esac 6757 fi 6758 TWOPI=$ac_cv_path_TWOPI 6759 if test -n "$TWOPI"; then 6760 { echo "$as_me:$LINENO: result: $TWOPI" >&5 6761 echo "${ECHO_T}$TWOPI" >&6; } 6762 else 6763 { echo "$as_me:$LINENO: result: no" >&5 6764 echo "${ECHO_T}no" >&6; } 6765 fi 6766 6767 6768 if test "$TWOPI" != "echo twopi" ; then 6769 6770 cat >>confdefs.h <<\_ACEOF 6771 #define HAVE_TWOPI 1 6772 _ACEOF 6773 6774 if test "$llvm_cv_os_type" = "MingW" ; then 6775 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6776 fi 6777 6778 cat >>confdefs.h <<_ACEOF 6779 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 6780 _ACEOF 6781 6782 fi 6783 # Extract the first word of "circo", so it can be a program name with args. 6784 set dummy circo; ac_word=$2 6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6787 if test "${ac_cv_path_CIRCO+set}" = set; then 6788 echo $ECHO_N "(cached) $ECHO_C" >&6 6789 else 6790 case $CIRCO in 6791 [\\/]* | ?:[\\/]*) 6792 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 6793 ;; 6794 *) 6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6796 for as_dir in $PATH 6797 do 6798 IFS=$as_save_IFS 6799 test -z "$as_dir" && as_dir=. 6800 for ac_exec_ext in '' $ac_executable_extensions; do 6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6802 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6804 break 2 6805 fi 6806 done 6807 done 6808 IFS=$as_save_IFS 6809 6810 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 6811 ;; 6812 esac 6813 fi 6814 CIRCO=$ac_cv_path_CIRCO 6815 if test -n "$CIRCO"; then 6816 { echo "$as_me:$LINENO: result: $CIRCO" >&5 6817 echo "${ECHO_T}$CIRCO" >&6; } 6818 else 6819 { echo "$as_me:$LINENO: result: no" >&5 6820 echo "${ECHO_T}no" >&6; } 6821 fi 6822 6823 6824 if test "$CIRCO" != "echo circo" ; then 6825 6826 cat >>confdefs.h <<\_ACEOF 6827 #define HAVE_CIRCO 1 6828 _ACEOF 6829 6830 if test "$llvm_cv_os_type" = "MingW" ; then 6831 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6832 fi 6833 6834 cat >>confdefs.h <<_ACEOF 6835 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 6836 _ACEOF 6837 6838 fi 6839 for ac_prog in gv gsview32 6840 do 6841 # Extract the first word of "$ac_prog", so it can be a program name with args. 6842 set dummy $ac_prog; ac_word=$2 6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6845 if test "${ac_cv_path_GV+set}" = set; then 6846 echo $ECHO_N "(cached) $ECHO_C" >&6 6847 else 6848 case $GV in 6849 [\\/]* | ?:[\\/]*) 6850 ac_cv_path_GV="$GV" # Let the user override the test with a path. 6851 ;; 6852 *) 6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6854 for as_dir in $PATH 6855 do 6856 IFS=$as_save_IFS 6857 test -z "$as_dir" && as_dir=. 6858 for ac_exec_ext in '' $ac_executable_extensions; do 6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6860 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6862 break 2 6863 fi 6864 done 6865 done 6866 IFS=$as_save_IFS 6867 6868 ;; 6869 esac 6870 fi 6871 GV=$ac_cv_path_GV 6872 if test -n "$GV"; then 6873 { echo "$as_me:$LINENO: result: $GV" >&5 6874 echo "${ECHO_T}$GV" >&6; } 6875 else 6876 { echo "$as_me:$LINENO: result: no" >&5 6877 echo "${ECHO_T}no" >&6; } 6878 fi 6879 6880 6881 test -n "$GV" && break 6882 done 6883 test -n "$GV" || GV="echo gv" 6884 6885 if test "$GV" != "echo gv" ; then 6886 6887 cat >>confdefs.h <<\_ACEOF 6888 #define HAVE_GV 1 6889 _ACEOF 6890 6891 if test "$llvm_cv_os_type" = "MingW" ; then 6892 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6893 fi 6894 6895 cat >>confdefs.h <<_ACEOF 6896 #define LLVM_PATH_GV "$GV${EXEEXT}" 6897 _ACEOF 6898 6899 fi 6900 # Extract the first word of "dotty", so it can be a program name with args. 6901 set dummy dotty; ac_word=$2 6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6904 if test "${ac_cv_path_DOTTY+set}" = set; then 6905 echo $ECHO_N "(cached) $ECHO_C" >&6 6906 else 6907 case $DOTTY in 6908 [\\/]* | ?:[\\/]*) 6909 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 6910 ;; 6911 *) 6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6913 for as_dir in $PATH 6914 do 6915 IFS=$as_save_IFS 6916 test -z "$as_dir" && as_dir=. 6917 for ac_exec_ext in '' $ac_executable_extensions; do 6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6919 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6921 break 2 6922 fi 6923 done 6924 done 6925 IFS=$as_save_IFS 6926 6927 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 6928 ;; 6929 esac 6930 fi 6931 DOTTY=$ac_cv_path_DOTTY 6932 if test -n "$DOTTY"; then 6933 { echo "$as_me:$LINENO: result: $DOTTY" >&5 6934 echo "${ECHO_T}$DOTTY" >&6; } 6935 else 6936 { echo "$as_me:$LINENO: result: no" >&5 6937 echo "${ECHO_T}no" >&6; } 6938 fi 6939 6940 6941 if test "$DOTTY" != "echo dotty" ; then 6942 6943 cat >>confdefs.h <<\_ACEOF 6944 #define HAVE_DOTTY 1 6945 _ACEOF 6946 6947 if test "$llvm_cv_os_type" = "MingW" ; then 6948 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6949 fi 6950 6951 cat >>confdefs.h <<_ACEOF 6952 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 6953 _ACEOF 6954 6955 fi 6956 for ac_prog in xdot xdot.py 6957 do 6958 # Extract the first word of "$ac_prog", so it can be a program name with args. 6959 set dummy $ac_prog; ac_word=$2 6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6962 if test "${ac_cv_path_XDOT+set}" = set; then 6963 echo $ECHO_N "(cached) $ECHO_C" >&6 6964 else 6965 case $XDOT in 6966 [\\/]* | ?:[\\/]*) 6967 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path. 6968 ;; 6969 *) 6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6971 for as_dir in $PATH 6972 do 6973 IFS=$as_save_IFS 6974 test -z "$as_dir" && as_dir=. 6975 for ac_exec_ext in '' $ac_executable_extensions; do 6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6977 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext" 6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6979 break 2 6980 fi 6981 done 6982 done 6983 IFS=$as_save_IFS 6984 6985 ;; 6986 esac 6987 fi 6988 XDOT=$ac_cv_path_XDOT 6989 if test -n "$XDOT"; then 6990 { echo "$as_me:$LINENO: result: $XDOT" >&5 6991 echo "${ECHO_T}$XDOT" >&6; } 6992 else 6993 { echo "$as_me:$LINENO: result: no" >&5 6994 echo "${ECHO_T}no" >&6; } 6995 fi 6996 6997 6998 test -n "$XDOT" && break 6999 done 7000 test -n "$XDOT" || XDOT="echo xdot" 7001 7002 if test "$XDOT" != "echo xdot" ; then 7003 7004 cat >>confdefs.h <<\_ACEOF 7005 #define HAVE_XDOT 1 7006 _ACEOF 7007 7008 if test "$llvm_cv_os_type" = "MingW" ; then 7009 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7010 fi 7011 7012 cat >>confdefs.h <<_ACEOF 7013 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}" 7014 _ACEOF 7015 7016 fi 7017 7018 # Find a good install program. We prefer a C program (faster), 7019 # so one script is as good as another. But avoid the broken or 7020 # incompatible versions: 7021 # SysV /etc/install, /usr/sbin/install 7022 # SunOS /usr/etc/install 7023 # IRIX /sbin/install 7024 # AIX /bin/install 7025 # AmigaOS /C/install, which installs bootblocks on floppy discs 7026 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7027 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 7028 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7029 # OS/2's system install, which has a completely different semantic 7030 # ./install, which can be erroneously created by make from ./install.sh. 7031 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 7032 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 7033 if test -z "$INSTALL"; then 7034 if test "${ac_cv_path_install+set}" = set; then 7035 echo $ECHO_N "(cached) $ECHO_C" >&6 7036 else 7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7038 for as_dir in $PATH 7039 do 7040 IFS=$as_save_IFS 7041 test -z "$as_dir" && as_dir=. 7042 # Account for people who put trailing slashes in PATH elements. 7043 case $as_dir/ in 7044 ./ | .// | /cC/* | \ 7045 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7046 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 7047 /usr/ucb/* ) ;; 7048 *) 7049 # OSF1 and SCO ODT 3.0 have their own names for install. 7050 # Don't use installbsd from OSF since it installs stuff as root 7051 # by default. 7052 for ac_prog in ginstall scoinst install; do 7053 for ac_exec_ext in '' $ac_executable_extensions; do 7054 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 7055 if test $ac_prog = install && 7056 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7057 # AIX install. It has an incompatible calling convention. 7058 : 7059 elif test $ac_prog = install && 7060 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7061 # program-specific install script used by HP pwplus--don't use. 7062 : 7063 else 7064 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7065 break 3 7066 fi 7067 fi 7068 done 7069 done 7070 ;; 7071 esac 7072 done 7073 IFS=$as_save_IFS 7074 7075 7076 fi 7077 if test "${ac_cv_path_install+set}" = set; then 7078 INSTALL=$ac_cv_path_install 7079 else 7080 # As a last resort, use the slow shell script. Don't cache a 7081 # value for INSTALL within a source directory, because that will 7082 # break other packages using the cache if that directory is 7083 # removed, or if the value is a relative name. 7084 INSTALL=$ac_install_sh 7085 fi 7086 fi 7087 { echo "$as_me:$LINENO: result: $INSTALL" >&5 7088 echo "${ECHO_T}$INSTALL" >&6; } 7089 7090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7091 # It thinks the first close brace ends the variable substitution. 7092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7093 7094 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7095 7096 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7097 7098 case "$INSTALL" in 7099 [\\/$]* | ?:[\\/]* ) ;; 7100 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 7101 esac 7102 7103 # Extract the first word of "bzip2", so it can be a program name with args. 7104 set dummy bzip2; ac_word=$2 7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7107 if test "${ac_cv_path_BZIP2+set}" = set; then 7108 echo $ECHO_N "(cached) $ECHO_C" >&6 7109 else 7110 case $BZIP2 in 7111 [\\/]* | ?:[\\/]*) 7112 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7113 ;; 7114 *) 7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7116 for as_dir in $PATH 7117 do 7118 IFS=$as_save_IFS 7119 test -z "$as_dir" && as_dir=. 7120 for ac_exec_ext in '' $ac_executable_extensions; do 7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7122 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7124 break 2 7125 fi 7126 done 7127 done 7128 IFS=$as_save_IFS 7129 7130 ;; 7131 esac 7132 fi 7133 BZIP2=$ac_cv_path_BZIP2 7134 if test -n "$BZIP2"; then 7135 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7136 echo "${ECHO_T}$BZIP2" >&6; } 7137 else 7138 { echo "$as_me:$LINENO: result: no" >&5 7139 echo "${ECHO_T}no" >&6; } 7140 fi 7141 7142 7143 # Extract the first word of "cat", so it can be a program name with args. 7144 set dummy cat; ac_word=$2 7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7147 if test "${ac_cv_path_CAT+set}" = set; then 7148 echo $ECHO_N "(cached) $ECHO_C" >&6 7149 else 7150 case $CAT in 7151 [\\/]* | ?:[\\/]*) 7152 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 7153 ;; 7154 *) 7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7156 for as_dir in $PATH 7157 do 7158 IFS=$as_save_IFS 7159 test -z "$as_dir" && as_dir=. 7160 for ac_exec_ext in '' $ac_executable_extensions; do 7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7162 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7164 break 2 7165 fi 7166 done 7167 done 7168 IFS=$as_save_IFS 7169 7170 ;; 7171 esac 7172 fi 7173 CAT=$ac_cv_path_CAT 7174 if test -n "$CAT"; then 7175 { echo "$as_me:$LINENO: result: $CAT" >&5 7176 echo "${ECHO_T}$CAT" >&6; } 7177 else 7178 { echo "$as_me:$LINENO: result: no" >&5 7179 echo "${ECHO_T}no" >&6; } 7180 fi 7181 7182 7183 # Extract the first word of "doxygen", so it can be a program name with args. 7184 set dummy doxygen; ac_word=$2 7185 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7187 if test "${ac_cv_path_DOXYGEN+set}" = set; then 7188 echo $ECHO_N "(cached) $ECHO_C" >&6 7189 else 7190 case $DOXYGEN in 7191 [\\/]* | ?:[\\/]*) 7192 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7193 ;; 7194 *) 7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7196 for as_dir in $PATH 7197 do 7198 IFS=$as_save_IFS 7199 test -z "$as_dir" && as_dir=. 7200 for ac_exec_ext in '' $ac_executable_extensions; do 7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7202 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7204 break 2 7205 fi 7206 done 7207 done 7208 IFS=$as_save_IFS 7209 7210 ;; 7211 esac 7212 fi 7213 DOXYGEN=$ac_cv_path_DOXYGEN 7214 if test -n "$DOXYGEN"; then 7215 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7216 echo "${ECHO_T}$DOXYGEN" >&6; } 7217 else 7218 { echo "$as_me:$LINENO: result: no" >&5 7219 echo "${ECHO_T}no" >&6; } 7220 fi 7221 7222 7223 # Extract the first word of "groff", so it can be a program name with args. 7224 set dummy groff; ac_word=$2 7225 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7227 if test "${ac_cv_path_GROFF+set}" = set; then 7228 echo $ECHO_N "(cached) $ECHO_C" >&6 7229 else 7230 case $GROFF in 7231 [\\/]* | ?:[\\/]*) 7232 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7233 ;; 7234 *) 7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7236 for as_dir in $PATH 7237 do 7238 IFS=$as_save_IFS 7239 test -z "$as_dir" && as_dir=. 7240 for ac_exec_ext in '' $ac_executable_extensions; do 7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7242 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7244 break 2 7245 fi 7246 done 7247 done 7248 IFS=$as_save_IFS 7249 7250 ;; 7251 esac 7252 fi 7253 GROFF=$ac_cv_path_GROFF 7254 if test -n "$GROFF"; then 7255 { echo "$as_me:$LINENO: result: $GROFF" >&5 7256 echo "${ECHO_T}$GROFF" >&6; } 7257 else 7258 { echo "$as_me:$LINENO: result: no" >&5 7259 echo "${ECHO_T}no" >&6; } 7260 fi 7261 7262 7263 # Extract the first word of "gzip", so it can be a program name with args. 7264 set dummy gzip; ac_word=$2 7265 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7267 if test "${ac_cv_path_GZIPBIN+set}" = set; then 7268 echo $ECHO_N "(cached) $ECHO_C" >&6 7269 else 7270 case $GZIPBIN in 7271 [\\/]* | ?:[\\/]*) 7272 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7273 ;; 7274 *) 7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7276 for as_dir in $PATH 7277 do 7278 IFS=$as_save_IFS 7279 test -z "$as_dir" && as_dir=. 7280 for ac_exec_ext in '' $ac_executable_extensions; do 7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7282 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7284 break 2 7285 fi 7286 done 7287 done 7288 IFS=$as_save_IFS 7289 7290 ;; 7291 esac 7292 fi 7293 GZIPBIN=$ac_cv_path_GZIPBIN 7294 if test -n "$GZIPBIN"; then 7295 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7296 echo "${ECHO_T}$GZIPBIN" >&6; } 7297 else 7298 { echo "$as_me:$LINENO: result: no" >&5 7299 echo "${ECHO_T}no" >&6; } 7300 fi 7301 7302 7303 # Extract the first word of "pdfroff", so it can be a program name with args. 7304 set dummy pdfroff; 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_PDFROFF+set}" = set; then 7308 echo $ECHO_N "(cached) $ECHO_C" >&6 7309 else 7310 case $PDFROFF in 7311 [\\/]* | ?:[\\/]*) 7312 ac_cv_path_PDFROFF="$PDFROFF" # 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_PDFROFF="$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 PDFROFF=$ac_cv_path_PDFROFF 7334 if test -n "$PDFROFF"; then 7335 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7336 echo "${ECHO_T}$PDFROFF" >&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 "zip", so it can be a program name with args. 7344 set dummy zip; 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_ZIP+set}" = set; then 7348 echo $ECHO_N "(cached) $ECHO_C" >&6 7349 else 7350 case $ZIP in 7351 [\\/]* | ?:[\\/]*) 7352 ac_cv_path_ZIP="$ZIP" # 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_ZIP="$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 ZIP=$ac_cv_path_ZIP 7374 if test -n "$ZIP"; then 7375 { echo "$as_me:$LINENO: result: $ZIP" >&5 7376 echo "${ECHO_T}$ZIP" >&6; } 7377 else 7378 { echo "$as_me:$LINENO: result: no" >&5 7379 echo "${ECHO_T}no" >&6; } 7380 fi 7381 7382 7383 for ac_prog in ocamlc 7384 do 7385 # Extract the first word of "$ac_prog", so it can be a program name with args. 7386 set dummy $ac_prog; ac_word=$2 7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7389 if test "${ac_cv_path_OCAMLC+set}" = set; then 7390 echo $ECHO_N "(cached) $ECHO_C" >&6 7391 else 7392 case $OCAMLC in 7393 [\\/]* | ?:[\\/]*) 7394 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7395 ;; 7396 *) 7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7398 for as_dir in $PATH 7399 do 7400 IFS=$as_save_IFS 7401 test -z "$as_dir" && as_dir=. 7402 for ac_exec_ext in '' $ac_executable_extensions; do 7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7404 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7406 break 2 7407 fi 7408 done 7409 done 7410 IFS=$as_save_IFS 7411 7412 ;; 7413 esac 7414 fi 7415 OCAMLC=$ac_cv_path_OCAMLC 7416 if test -n "$OCAMLC"; then 7417 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7418 echo "${ECHO_T}$OCAMLC" >&6; } 7419 else 7420 { echo "$as_me:$LINENO: result: no" >&5 7421 echo "${ECHO_T}no" >&6; } 7422 fi 7423 7424 7425 test -n "$OCAMLC" && break 7426 done 7427 7428 for ac_prog in ocamlopt 7429 do 7430 # Extract the first word of "$ac_prog", so it can be a program name with args. 7431 set dummy $ac_prog; ac_word=$2 7432 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7434 if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7435 echo $ECHO_N "(cached) $ECHO_C" >&6 7436 else 7437 case $OCAMLOPT in 7438 [\\/]* | ?:[\\/]*) 7439 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7440 ;; 7441 *) 7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7443 for as_dir in $PATH 7444 do 7445 IFS=$as_save_IFS 7446 test -z "$as_dir" && as_dir=. 7447 for ac_exec_ext in '' $ac_executable_extensions; do 7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7449 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7451 break 2 7452 fi 7453 done 7454 done 7455 IFS=$as_save_IFS 7456 7457 ;; 7458 esac 7459 fi 7460 OCAMLOPT=$ac_cv_path_OCAMLOPT 7461 if test -n "$OCAMLOPT"; then 7462 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7463 echo "${ECHO_T}$OCAMLOPT" >&6; } 7464 else 7465 { echo "$as_me:$LINENO: result: no" >&5 7466 echo "${ECHO_T}no" >&6; } 7467 fi 7468 7469 7470 test -n "$OCAMLOPT" && break 7471 done 7472 7473 for ac_prog in ocamldep 7474 do 7475 # Extract the first word of "$ac_prog", so it can be a program name with args. 7476 set dummy $ac_prog; ac_word=$2 7477 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7479 if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7480 echo $ECHO_N "(cached) $ECHO_C" >&6 7481 else 7482 case $OCAMLDEP in 7483 [\\/]* | ?:[\\/]*) 7484 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7485 ;; 7486 *) 7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7488 for as_dir in $PATH 7489 do 7490 IFS=$as_save_IFS 7491 test -z "$as_dir" && as_dir=. 7492 for ac_exec_ext in '' $ac_executable_extensions; do 7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7494 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7496 break 2 7497 fi 7498 done 7499 done 7500 IFS=$as_save_IFS 7501 7502 ;; 7503 esac 7504 fi 7505 OCAMLDEP=$ac_cv_path_OCAMLDEP 7506 if test -n "$OCAMLDEP"; then 7507 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7508 echo "${ECHO_T}$OCAMLDEP" >&6; } 7509 else 7510 { echo "$as_me:$LINENO: result: no" >&5 7511 echo "${ECHO_T}no" >&6; } 7512 fi 7513 7514 7515 test -n "$OCAMLDEP" && break 7516 done 7517 7518 for ac_prog in ocamldoc 7519 do 7520 # Extract the first word of "$ac_prog", so it can be a program name with args. 7521 set dummy $ac_prog; ac_word=$2 7522 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7524 if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7525 echo $ECHO_N "(cached) $ECHO_C" >&6 7526 else 7527 case $OCAMLDOC in 7528 [\\/]* | ?:[\\/]*) 7529 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7530 ;; 7531 *) 7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7533 for as_dir in $PATH 7534 do 7535 IFS=$as_save_IFS 7536 test -z "$as_dir" && as_dir=. 7537 for ac_exec_ext in '' $ac_executable_extensions; do 7538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7539 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7541 break 2 7542 fi 7543 done 7544 done 7545 IFS=$as_save_IFS 7546 7547 ;; 7548 esac 7549 fi 7550 OCAMLDOC=$ac_cv_path_OCAMLDOC 7551 if test -n "$OCAMLDOC"; then 7552 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7553 echo "${ECHO_T}$OCAMLDOC" >&6; } 7554 else 7555 { echo "$as_me:$LINENO: result: no" >&5 7556 echo "${ECHO_T}no" >&6; } 7557 fi 7558 7559 7560 test -n "$OCAMLDOC" && break 7561 done 7562 7563 for ac_prog in gas as 7564 do 7565 # Extract the first word of "$ac_prog", so it can be a program name with args. 7566 set dummy $ac_prog; ac_word=$2 7567 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7569 if test "${ac_cv_path_GAS+set}" = set; then 7570 echo $ECHO_N "(cached) $ECHO_C" >&6 7571 else 7572 case $GAS in 7573 [\\/]* | ?:[\\/]*) 7574 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7575 ;; 7576 *) 7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7578 for as_dir in $PATH 7579 do 7580 IFS=$as_save_IFS 7581 test -z "$as_dir" && as_dir=. 7582 for ac_exec_ext in '' $ac_executable_extensions; do 7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7584 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7586 break 2 7587 fi 7588 done 7589 done 7590 IFS=$as_save_IFS 7591 7592 ;; 7593 esac 7594 fi 7595 GAS=$ac_cv_path_GAS 7596 if test -n "$GAS"; then 7597 { echo "$as_me:$LINENO: result: $GAS" >&5 7598 echo "${ECHO_T}$GAS" >&6; } 7599 else 7600 { echo "$as_me:$LINENO: result: no" >&5 7601 echo "${ECHO_T}no" >&6; } 7602 fi 7603 7604 7605 test -n "$GAS" && break 7606 done 7607 7608 7609 { echo "$as_me:$LINENO: checking for linker version" >&5 7610 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7611 if test "${llvm_cv_link_version+set}" = set; then 7612 echo $ECHO_N "(cached) $ECHO_C" >&6 7613 else 7614 7615 version_string="$(${LD:-ld} -v 2>&1 | head -1)" 7616 7617 # Check for ld64. 7618 if (echo "$version_string" | grep -q "ld64"); then 7619 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7620 else 7621 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7622 fi 7623 7624 fi 7625 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7626 echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7627 7628 cat >>confdefs.h <<_ACEOF 7629 #define HOST_LINK_VERSION "$llvm_cv_link_version" 7630 _ACEOF 7631 7632 7633 7634 7635 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7636 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7637 if test "${llvm_cv_link_use_r+set}" = set; then 7638 echo $ECHO_N "(cached) $ECHO_C" >&6 7639 else 7640 ac_ext=c 7641 ac_cpp='$CPP $CPPFLAGS' 7642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7644 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7645 7646 oldcflags="$CFLAGS" 7647 CFLAGS="$CFLAGS -Wl,-R." 7648 cat >conftest.$ac_ext <<_ACEOF 7649 /* confdefs.h. */ 7650 _ACEOF 7651 cat confdefs.h >>conftest.$ac_ext 7652 cat >>conftest.$ac_ext <<_ACEOF 7653 /* end confdefs.h. */ 7654 7655 int 7656 main () 7657 { 7658 7659 ; 7660 return 0; 7661 } 7662 _ACEOF 7663 rm -f conftest.$ac_objext conftest$ac_exeext 7664 if { (ac_try="$ac_link" 7665 case "(($ac_try" in 7666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7667 *) ac_try_echo=$ac_try;; 7668 esac 7669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7670 (eval "$ac_link") 2>conftest.er1 7671 ac_status=$? 7672 grep -v '^ *+' conftest.er1 >conftest.err 7673 rm -f conftest.er1 7674 cat conftest.err >&5 7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7676 (exit $ac_status); } && 7677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7678 { (case "(($ac_try" in 7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7680 *) ac_try_echo=$ac_try;; 7681 esac 7682 eval "echo \"\$as_me:$LINENO: