1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx]. 4 # 5 # Report bugs to <bugs@yourdomain>. 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 ## M4sh Initialization. ## 13 ## --------------------- ## 14 15 # Be Bourne compatible 16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23 else 24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 25 fi 26 BIN_SH=xpg4; export BIN_SH # for Tru64 27 DUALCASE=1; export DUALCASE # for MKS sh 28 29 30 # PATH needs CR 31 # Avoid depending upon Character Ranges. 32 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35 as_cr_digits='0123456789' 36 as_cr_alnum=$as_cr_Letters$as_cr_digits 37 38 # The user is always right. 39 if test "${PATH_SEPARATOR+set}" != set; then 40 echo "#! /bin/sh" >conf$$.sh 41 echo "exit 0" >>conf$$.sh 42 chmod +x conf$$.sh 43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 44 PATH_SEPARATOR=';' 45 else 46 PATH_SEPARATOR=: 47 fi 48 rm -f conf$$.sh 49 fi 50 51 # Support unset when possible. 52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 53 as_unset=unset 54 else 55 as_unset=false 56 fi 57 58 59 # IFS 60 # We need space, tab and new line, in precisely that order. Quoting is 61 # there to prevent editors from complaining about space-tab. 62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 63 # splitting by setting IFS to empty value.) 64 as_nl=' 65 ' 66 IFS=" "" $as_nl" 67 68 # Find who we are. Look in the path if we contain no directory separator. 69 case $0 in 70 *[\\/]* ) as_myself=$0 ;; 71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 72 for as_dir in $PATH 73 do 74 IFS=$as_save_IFS 75 test -z "$as_dir" && as_dir=. 76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 77 done 78 IFS=$as_save_IFS 79 80 ;; 81 esac 82 # We did not find ourselves, most probably we were run as `sh COMMAND' 83 # in which case we are not to be found in the path. 84 if test "x$as_myself" = x; then 85 as_myself=$0 86 fi 87 if test ! -f "$as_myself"; then 88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 89 { (exit 1); exit 1; } 90 fi 91 92 # Work around bugs in pre-3.0 UWIN ksh. 93 for as_var in ENV MAIL MAILPATH 94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 95 done 96 PS1='$ ' 97 PS2='> ' 98 PS4='+ ' 99 100 # NLS nuisances. 101 for as_var in \ 102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 104 LC_TELEPHONE LC_TIME 105 do 106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 107 eval $as_var=C; export $as_var 108 else 109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 110 fi 111 done 112 113 # Required to use basename. 114 if expr a : '\(a\)' >/dev/null 2>&1 && 115 test "X`expr 00001 : '.*\(...\)'`" = X001; then 116 as_expr=expr 117 else 118 as_expr=false 119 fi 120 121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 122 as_basename=basename 123 else 124 as_basename=false 125 fi 126 127 128 # Name of the executable. 129 as_me=`$as_basename -- "$0" || 130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 131 X"$0" : 'X\(//\)$' \| \ 132 X"$0" : 'X\(/\)' \| . 2>/dev/null || 133 echo X/"$0" | 134 sed '/^.*\/\([^/][^/]*\)\/*$/{ 135 s//\1/ 136 q 137 } 138 /^X\/\(\/\/\)$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\).*/{ 143 s//\1/ 144 q 145 } 146 s/.*/./; q'` 147 148 # CDPATH. 149 $as_unset CDPATH 150 151 152 if test "x$CONFIG_SHELL" = x; then 153 if (eval ":") 2>/dev/null; then 154 as_have_required=yes 155 else 156 as_have_required=no 157 fi 158 159 if test $as_have_required = yes && (eval ": 160 (as_func_return () { 161 (exit \$1) 162 } 163 as_func_success () { 164 as_func_return 0 165 } 166 as_func_failure () { 167 as_func_return 1 168 } 169 as_func_ret_success () { 170 return 0 171 } 172 as_func_ret_failure () { 173 return 1 174 } 175 176 exitcode=0 177 if as_func_success; then 178 : 179 else 180 exitcode=1 181 echo as_func_success failed. 182 fi 183 184 if as_func_failure; then 185 exitcode=1 186 echo as_func_failure succeeded. 187 fi 188 189 if as_func_ret_success; then 190 : 191 else 192 exitcode=1 193 echo as_func_ret_success failed. 194 fi 195 196 if as_func_ret_failure; then 197 exitcode=1 198 echo as_func_ret_failure succeeded. 199 fi 200 201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 202 : 203 else 204 exitcode=1 205 echo positional parameters were not saved. 206 fi 207 208 test \$exitcode = 0) || { (exit 1); exit 1; } 209 210 ( 211 as_lineno_1=\$LINENO 212 as_lineno_2=\$LINENO 213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 215 ") 2> /dev/null; then 216 : 217 else 218 as_candidate_shells= 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 case $as_dir in 225 /*) 226 for as_base in sh bash ksh sh5; do 227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 228 done;; 229 esac 230 done 231 IFS=$as_save_IFS 232 233 234 for as_shell in $as_candidate_shells $SHELL; do 235 # Try only shells that exist, to save several forks. 236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 237 { ("$as_shell") 2> /dev/null <<\_ASEOF 238 # Be Bourne compatible 239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 240 emulate sh 241 NULLCMD=: 242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 243 # is contrary to our usage. Disable this feature. 244 alias -g '${1+"$@"}'='"$@"' 245 setopt NO_GLOB_SUBST 246 else 247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 248 fi 249 BIN_SH=xpg4; export BIN_SH # for Tru64 250 DUALCASE=1; export DUALCASE # for MKS sh 251 252 : 253 _ASEOF 254 }; then 255 CONFIG_SHELL=$as_shell 256 as_have_required=yes 257 if { "$as_shell" 2> /dev/null <<\_ASEOF 258 # Be Bourne compatible 259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266 else 267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 268 fi 269 BIN_SH=xpg4; export BIN_SH # for Tru64 270 DUALCASE=1; export DUALCASE # for MKS sh 271 272 : 273 (as_func_return () { 274 (exit $1) 275 } 276 as_func_success () { 277 as_func_return 0 278 } 279 as_func_failure () { 280 as_func_return 1 281 } 282 as_func_ret_success () { 283 return 0 284 } 285 as_func_ret_failure () { 286 return 1 287 } 288 289 exitcode=0 290 if as_func_success; then 291 : 292 else 293 exitcode=1 294 echo as_func_success failed. 295 fi 296 297 if as_func_failure; then 298 exitcode=1 299 echo as_func_failure succeeded. 300 fi 301 302 if as_func_ret_success; then 303 : 304 else 305 exitcode=1 306 echo as_func_ret_success failed. 307 fi 308 309 if as_func_ret_failure; then 310 exitcode=1 311 echo as_func_ret_failure succeeded. 312 fi 313 314 if ( set x; as_func_ret_success y && test x = "$1" ); then 315 : 316 else 317 exitcode=1 318 echo positional parameters were not saved. 319 fi 320 321 test $exitcode = 0) || { (exit 1); exit 1; } 322 323 ( 324 as_lineno_1=$LINENO 325 as_lineno_2=$LINENO 326 test "x$as_lineno_1" != "x$as_lineno_2" && 327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 328 329 _ASEOF 330 }; then 331 break 332 fi 333 334 fi 335 336 done 337 338 if test "x$CONFIG_SHELL" != x; then 339 for as_var in BASH_ENV ENV 340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 341 done 342 export CONFIG_SHELL 343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 344 fi 345 346 347 if test $as_have_required = no; then 348 echo This script requires a shell more modern than all the 349 echo shells that I found on your system. Please install a 350 echo modern shell, or manually run the script under such a 351 echo shell if you do have one. 352 { (exit 1); exit 1; } 353 fi 354 355 356 fi 357 358 fi 359 360 361 362 (eval "as_func_return () { 363 (exit \$1) 364 } 365 as_func_success () { 366 as_func_return 0 367 } 368 as_func_failure () { 369 as_func_return 1 370 } 371 as_func_ret_success () { 372 return 0 373 } 374 as_func_ret_failure () { 375 return 1 376 } 377 378 exitcode=0 379 if as_func_success; then 380 : 381 else 382 exitcode=1 383 echo as_func_success failed. 384 fi 385 386 if as_func_failure; then 387 exitcode=1 388 echo as_func_failure succeeded. 389 fi 390 391 if as_func_ret_success; then 392 : 393 else 394 exitcode=1 395 echo as_func_ret_success failed. 396 fi 397 398 if as_func_ret_failure; then 399 exitcode=1 400 echo as_func_ret_failure succeeded. 401 fi 402 403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 404 : 405 else 406 exitcode=1 407 echo positional parameters were not saved. 408 fi 409 410 test \$exitcode = 0") || { 411 echo No shell found that supports shell functions. 412 echo Please tell autoconf@gnu.org about your system, 413 echo including any error possibly output before this 414 echo message 415 } 416 417 418 419 as_lineno_1=$LINENO 420 as_lineno_2=$LINENO 421 test "x$as_lineno_1" != "x$as_lineno_2" && 422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 423 424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 425 # uniformly replaced by the line number. The first 'sed' inserts a 426 # line-number line after each line using $LINENO; the second 'sed' 427 # does the real work. The second script uses 'N' to pair each 428 # line-number line with the line containing $LINENO, and appends 429 # trailing '-' during substitution so that $LINENO is not a special 430 # case at line end. 431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 432 # scripts with optimization help from Paolo Bonzini. Blame Lee 433 # E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 451 { (exit 1); exit 1; }; } 452 453 # Don't try to exec as it changes $[0], causing all sort of problems 454 # (the dirname of $[0] is not the place where we might find the 455 # original and so on. Autoconf is especially sensitive to this). 456 . "./$as_me.lineno" 457 # Exit status is that of the last command. 458 exit 459 } 460 461 462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464 else 465 as_dirname=false 466 fi 467 468 ECHO_C= ECHO_N= ECHO_T= 469 case `echo -n x` in 470 -n*) 471 case `echo 'x\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 *) ECHO_C='\c';; 474 esac;; 475 *) 476 ECHO_N='-n';; 477 esac 478 479 if expr a : '\(a\)' >/dev/null 2>&1 && 480 test "X`expr 00001 : '.*\(...\)'`" = X001; then 481 as_expr=expr 482 else 483 as_expr=false 484 fi 485 486 rm -f conf$$ conf$$.exe conf$$.file 487 if test -d conf$$.dir; then 488 rm -f conf$$.dir/conf$$.file 489 else 490 rm -f conf$$.dir 491 mkdir conf$$.dir 492 fi 493 echo >conf$$.file 494 if ln -s conf$$.file conf$$ 2>/dev/null; then 495 as_ln_s='ln -s' 496 # ... but there are two gotchas: 497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 499 # In both cases, we have to default to `cp -p'. 500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 501 as_ln_s='cp -p' 502 elif ln conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s=ln 504 else 505 as_ln_s='cp -p' 506 fi 507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 508 rmdir conf$$.dir 2>/dev/null 509 510 if mkdir -p . 2>/dev/null; then 511 as_mkdir_p=: 512 else 513 test -d ./-p && rmdir ./-p 514 as_mkdir_p=false 515 fi 516 517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as 518 # systems may use methods other than mode bits to determine executability. 519 cat >conf$$.file <<_ASEOF 520 #! /bin/sh 521 exit 0 522 _ASEOF 523 chmod +x conf$$.file 524 if test -x conf$$.file >/dev/null 2>&1; then 525 as_executable_p="test -x" 526 else 527 as_executable_p=: 528 fi 529 rm -f conf$$.file 530 531 # Sed expression to map a string onto a valid CPP name. 532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 533 534 # Sed expression to map a string onto a valid variable name. 535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 536 537 538 539 exec 7<&0 </dev/null 6>&1 540 541 # Name of the host. 542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 543 # so uname gets run too. 544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 545 546 # 547 # Initializations. 548 # 549 ac_default_prefix=/usr/local 550 ac_clean_files= 551 ac_config_libobj_dir=. 552 LIBOBJS= 553 cross_compiling=no 554 subdirs= 555 MFLAGS= 556 MAKEFLAGS= 557 SHELL=${CONFIG_SHELL-/bin/sh} 558 559 # Identity of this package. 560 PACKAGE_NAME='[SAMPLE]' 561 PACKAGE_TARNAME='--sample--' 562 PACKAGE_VERSION='[x.xx]' 563 PACKAGE_STRING='[SAMPLE] [x.xx]' 564 PACKAGE_BUGREPORT='bugs@yourdomain' 565 566 ac_unique_file=""Makefile.common.in"" 567 # Factoring default headers for most tests. 568 ac_includes_default="\ 569 #include <stdio.h> 570 #if HAVE_SYS_TYPES_H 571 # include <sys/types.h> 572 #endif 573 #if HAVE_SYS_STAT_H 574 # include <sys/stat.h> 575 #endif 576 #if STDC_HEADERS 577 # include <stdlib.h> 578 # include <stddef.h> 579 #else 580 # if HAVE_STDLIB_H 581 # include <stdlib.h> 582 # endif 583 #endif 584 #if HAVE_STRING_H 585 # if !STDC_HEADERS && HAVE_MEMORY_H 586 # include <memory.h> 587 # endif 588 # include <string.h> 589 #endif 590 #if HAVE_STRINGS_H 591 # include <strings.h> 592 #endif 593 #if HAVE_INTTYPES_H 594 # include <inttypes.h> 595 #endif 596 #if HAVE_STDINT_H 597 # include <stdint.h> 598 #endif 599 #if HAVE_UNISTD_H 600 # include <unistd.h> 601 #endif" 602 603 ac_subst_vars='SHELL 604 PATH_SEPARATOR 605 PACKAGE_NAME 606 PACKAGE_TARNAME 607 PACKAGE_VERSION 608 PACKAGE_STRING 609 PACKAGE_BUGREPORT 610 exec_prefix 611 prefix 612 program_transform_name 613 bindir 614 sbindir 615 libexecdir 616 datarootdir 617 datadir 618 sysconfdir 619 sharedstatedir 620 localstatedir 621 includedir 622 oldincludedir 623 docdir 624 infodir 625 htmldir 626 dvidir 627 pdfdir 628 psdir 629 libdir 630 localedir 631 mandir 632 DEFS 633 ECHO_C 634 ECHO_N 635 ECHO_T 636 LIBS 637 build_alias 638 host_alias 639 target_alias 640 LLVM_SRC 641 LLVM_OBJ 642 LLVM_VERSION 643 CC 644 CFLAGS 645 LDFLAGS 646 CPPFLAGS 647 ac_ct_CC 648 EXEEXT 649 OBJEXT 650 CXX 651 CXXFLAGS 652 ac_ct_CXX 653 CPP 654 ENABLE_POLLY 655 LLVM_HAS_POLLY 656 subdirs 657 build 658 build_cpu 659 build_vendor 660 build_os 661 host 662 host_cpu 663 host_vendor 664 host_os 665 target 666 target_cpu 667 target_vendor 668 target_os 669 OS 670 HOST_OS 671 TARGET_OS 672 LINKALL 673 NOLINKALL 674 LLVM_ON_UNIX 675 LLVM_ON_WIN32 676 ARCH 677 ENDIAN 678 GREP 679 EGREP 680 LLVM_CROSS_COMPILING 681 BUILD_CC 682 BUILD_EXEEXT 683 BUILD_CXX 684 CVSBUILD 685 ENABLE_LIBCPP 686 ENABLE_OPTIMIZED 687 ENABLE_PROFILING 688 DISABLE_ASSERTIONS 689 ENABLE_EXPENSIVE_CHECKS 690 EXPENSIVE_CHECKS 691 DEBUG_RUNTIME 692 DEBUG_SYMBOLS 693 JIT 694 TARGET_HAS_JIT 695 ENABLE_DOCS 696 ENABLE_DOXYGEN 697 ENABLE_THREADS 698 ENABLE_PTHREADS 699 ENABLE_PIC 700 ENABLE_SHARED 701 ENABLE_EMBED_STDCXX 702 ENABLE_TIMESTAMPS 703 TARGETS_TO_BUILD 704 LLVM_ENUM_TARGETS 705 LLVM_ENUM_ASM_PRINTERS 706 LLVM_ENUM_ASM_PARSERS 707 LLVM_ENUM_DISASSEMBLERS 708 OPTIMIZE_OPTION 709 EXTRA_OPTIONS 710 EXTRA_LD_OPTIONS 711 BINUTILS_INCDIR 712 NM 713 ifGNUmake 714 LN_S 715 CMP 716 CP 717 DATE 718 FIND 719 MKDIR 720 MV 721 RANLIB 722 AR 723 RM 724 SED 725 TAR 726 BINPWD 727 GRAPHVIZ 728 DOT 729 FDP 730 NEATO 731 TWOPI 732 CIRCO 733 GV 734 DOTTY 735 XDOT_PY 736 INSTALL_PROGRAM 737 INSTALL_SCRIPT 738 INSTALL_DATA 739 BZIP2 740 CAT 741 DOXYGEN 742 GROFF 743 GZIPBIN 744 POD2HTML 745 POD2MAN 746 PDFROFF 747 RUNTEST 748 TCLSH 749 ZIP 750 OCAMLC 751 OCAMLOPT 752 OCAMLDEP 753 OCAMLDOC 754 GAS 755 HAVE_LINK_VERSION_SCRIPT 756 INSTALL_LTDL_TRUE 757 INSTALL_LTDL_FALSE 758 CONVENIENCE_LTDL_TRUE 759 CONVENIENCE_LTDL_FALSE 760 LIBADD_DL 761 NO_VARIADIC_MACROS 762 NO_MISSING_FIELD_INITIALIZERS 763 COVERED_SWITCH_DEFAULT 764 USE_UDIS86 765 USE_OPROFILE 766 HAVE_PTHREAD 767 HUGE_VAL_SANITY 768 MMAP_FILE 769 SHLIBEXT 770 SHLIBPATH_VAR 771 LLVM_PREFIX 772 LLVM_BINDIR 773 LLVM_LIBDIR 774 LLVM_DATADIR 775 LLVM_DOCSDIR 776 LLVM_ETCDIR 777 LLVM_INCLUDEDIR 778 LLVM_INFODIR 779 LLVM_MANDIR 780 LLVM_CONFIGTIME 781 BINDINGS_TO_BUILD 782 ALL_BINDINGS 783 OCAML_LIBDIR 784 ENABLE_VISIBILITY_INLINES_HIDDEN 785 RPATH 786 RDYNAMIC 787 LIBOBJS 788 LTLIBOBJS' 789 ac_subst_files='' 790 ac_precious_vars='build_alias 791 host_alias 792 target_alias 793 CC 794 CFLAGS 795 LDFLAGS 796 CPPFLAGS 797 CXX 798 CXXFLAGS 799 CCC 800 CPP' 801 ac_subdirs_all='tools/polly' 802 803 # Initialize some variables set by options. 804 ac_init_help= 805 ac_init_version=false 806 # The variables have the same names as the options, with 807 # dashes changed to underlines. 808 cache_file=/dev/null 809 exec_prefix=NONE 810 no_create= 811 no_recursion= 812 prefix=NONE 813 program_prefix=NONE 814 program_suffix=NONE 815 program_transform_name=s,x,x, 816 silent= 817 site= 818 srcdir= 819 verbose= 820 x_includes=NONE 821 x_libraries=NONE 822 823 # Installation directory options. 824 # These are left unexpanded so users can "make install exec_prefix=/foo" 825 # and all the variables that are supposed to be based on exec_prefix 826 # by default will actually change. 827 # Use braces instead of parens because sh, perl, etc. also accept them. 828 # (The list follows the same order as the GNU Coding Standards.) 829 bindir='${exec_prefix}/bin' 830 sbindir='${exec_prefix}/sbin' 831 libexecdir='${exec_prefix}/libexec' 832 datarootdir='${prefix}/share' 833 datadir='${datarootdir}' 834 sysconfdir='${prefix}/etc' 835 sharedstatedir='${prefix}/com' 836 localstatedir='${prefix}/var' 837 includedir='${prefix}/include' 838 oldincludedir='/usr/include' 839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 840 infodir='${datarootdir}/info' 841 htmldir='${docdir}' 842 dvidir='${docdir}' 843 pdfdir='${docdir}' 844 psdir='${docdir}' 845 libdir='${exec_prefix}/lib' 846 localedir='${datarootdir}/locale' 847 mandir='${datarootdir}/man' 848 849 ac_prev= 850 ac_dashdash= 851 for ac_option 852 do 853 # If the previous option needs an argument, assign it. 854 if test -n "$ac_prev"; then 855 eval $ac_prev=\$ac_option 856 ac_prev= 857 continue 858 fi 859 860 case $ac_option in 861 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 862 *) ac_optarg=yes ;; 863 esac 864 865 # Accept the important Cygnus configure options, so we can diagnose typos. 866 867 case $ac_dashdash$ac_option in 868 --) 869 ac_dashdash=yes ;; 870 871 -bindir | --bindir | --bindi | --bind | --bin | --bi) 872 ac_prev=bindir ;; 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874 bindir=$ac_optarg ;; 875 876 -build | --build | --buil | --bui | --bu) 877 ac_prev=build_alias ;; 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879 build_alias=$ac_optarg ;; 880 881 -cache-file | --cache-file | --cache-fil | --cache-fi \ 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883 ac_prev=cache_file ;; 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886 cache_file=$ac_optarg ;; 887 888 --config-cache | -C) 889 cache_file=config.cache ;; 890 891 -datadir | --datadir | --datadi | --datad) 892 ac_prev=datadir ;; 893 -datadir=* | --datadir=* | --datadi=* | --datad=*) 894 datadir=$ac_optarg ;; 895 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897 | --dataroo | --dataro | --datar) 898 ac_prev=datarootdir ;; 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901 datarootdir=$ac_optarg ;; 902 903 -disable-* | --disable-*) 904 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 907 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 908 { (exit 1); exit 1; }; } 909 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 910 eval enable_$ac_feature=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 927 { (exit 1); exit 1; }; } 928 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 929 eval enable_$ac_feature=\$ac_optarg ;; 930 931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 933 | --exec | --exe | --ex) 934 ac_prev=exec_prefix ;; 935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 937 | --exec=* | --exe=* | --ex=*) 938 exec_prefix=$ac_optarg ;; 939 940 -gas | --gas | --ga | --g) 941 # Obsolete; use --with-gas. 942 with_gas=yes ;; 943 944 -help | --help | --hel | --he | -h) 945 ac_init_help=long ;; 946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 947 ac_init_help=recursive ;; 948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 949 ac_init_help=short ;; 950 951 -host | --host | --hos | --ho) 952 ac_prev=host_alias ;; 953 -host=* | --host=* | --hos=* | --ho=*) 954 host_alias=$ac_optarg ;; 955 956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 957 ac_prev=htmldir ;; 958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 959 | --ht=*) 960 htmldir=$ac_optarg ;; 961 962 -includedir | --includedir | --includedi | --included | --include \ 963 | --includ | --inclu | --incl | --inc) 964 ac_prev=includedir ;; 965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 966 | --includ=* | --inclu=* | --incl=* | --inc=*) 967 includedir=$ac_optarg ;; 968 969 -infodir | --infodir | --infodi | --infod | --info | --inf) 970 ac_prev=infodir ;; 971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 972 infodir=$ac_optarg ;; 973 974 -libdir | --libdir | --libdi | --libd) 975 ac_prev=libdir ;; 976 -libdir=* | --libdir=* | --libdi=* | --libd=*) 977 libdir=$ac_optarg ;; 978 979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 980 | --libexe | --libex | --libe) 981 ac_prev=libexecdir ;; 982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 983 | --libexe=* | --libex=* | --libe=*) 984 libexecdir=$ac_optarg ;; 985 986 -localedir | --localedir | --localedi | --localed | --locale) 987 ac_prev=localedir ;; 988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 989 localedir=$ac_optarg ;; 990 991 -localstatedir | --localstatedir | --localstatedi | --localstated \ 992 | --localstate | --localstat | --localsta | --localst | --locals) 993 ac_prev=localstatedir ;; 994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 996 localstatedir=$ac_optarg ;; 997 998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 999 ac_prev=mandir ;; 1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1001 mandir=$ac_optarg ;; 1002 1003 -nfp | --nfp | --nf) 1004 # Obsolete; use --without-fp. 1005 with_fp=no ;; 1006 1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1008 | --no-cr | --no-c | -n) 1009 no_create=yes ;; 1010 1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1013 no_recursion=yes ;; 1014 1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1017 | --oldin | --oldi | --old | --ol | --o) 1018 ac_prev=oldincludedir ;; 1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1022 oldincludedir=$ac_optarg ;; 1023 1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1025 ac_prev=prefix ;; 1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1027 prefix=$ac_optarg ;; 1028 1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1030 | --program-pre | --program-pr | --program-p) 1031 ac_prev=program_prefix ;; 1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1034 program_prefix=$ac_optarg ;; 1035 1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1037 | --program-suf | --program-su | --program-s) 1038 ac_prev=program_suffix ;; 1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1041 program_suffix=$ac_optarg ;; 1042 1043 -program-transform-name | --program-transform-name \ 1044 | --program-transform-nam | --program-transform-na \ 1045 | --program-transform-n | --program-transform- \ 1046 | --program-transform | --program-transfor \ 1047 | --program-transfo | --program-transf \ 1048 | --program-trans | --program-tran \ 1049 | --progr-tra | --program-tr | --program-t) 1050 ac_prev=program_transform_name ;; 1051 -program-transform-name=* | --program-transform-name=* \ 1052 | --program-transform-nam=* | --program-transform-na=* \ 1053 | --program-transform-n=* | --program-transform-=* \ 1054 | --program-transform=* | --program-transfor=* \ 1055 | --program-transfo=* | --program-transf=* \ 1056 | --program-trans=* | --program-tran=* \ 1057 | --progr-tra=* | --program-tr=* | --program-t=*) 1058 program_transform_name=$ac_optarg ;; 1059 1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1061 ac_prev=pdfdir ;; 1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1063 pdfdir=$ac_optarg ;; 1064 1065 -psdir | --psdir | --psdi | --psd | --ps) 1066 ac_prev=psdir ;; 1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1068 psdir=$ac_optarg ;; 1069 1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1071 | -silent | --silent | --silen | --sile | --sil) 1072 silent=yes ;; 1073 1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1075 ac_prev=sbindir ;; 1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1077 | --sbi=* | --sb=*) 1078 sbindir=$ac_optarg ;; 1079 1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1082 | --sharedst | --shareds | --shared | --share | --shar \ 1083 | --sha | --sh) 1084 ac_prev=sharedstatedir ;; 1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1088 | --sha=* | --sh=*) 1089 sharedstatedir=$ac_optarg ;; 1090 1091 -site | --site | --sit) 1092 ac_prev=site ;; 1093 -site=* | --site=* | --sit=*) 1094 site=$ac_optarg ;; 1095 1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1097 ac_prev=srcdir ;; 1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1099 srcdir=$ac_optarg ;; 1100 1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1102 | --syscon | --sysco | --sysc | --sys | --sy) 1103 ac_prev=sysconfdir ;; 1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1106 sysconfdir=$ac_optarg ;; 1107 1108 -target | --target | --targe | --targ | --tar | --ta | --t) 1109 ac_prev=target_alias ;; 1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1111 target_alias=$ac_optarg ;; 1112 1113 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1114 verbose=yes ;; 1115 1116 -version | --version | --versio | --versi | --vers | -V) 1117 ac_init_version=: ;; 1118 1119 -with-* | --with-*) 1120 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1123 { echo "$as_me: error: invalid package name: $ac_package" >&2 1124 { (exit 1); exit 1; }; } 1125 ac_package=`echo $ac_package| sed 's/-/_/g'` 1126 eval with_$ac_package=\$ac_optarg ;; 1127 1128 -without-* | --without-*) 1129 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1130 # Reject names that are not valid shell variable names. 1131 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1132 { echo "$as_me: error: invalid package name: $ac_package" >&2 1133 { (exit 1); exit 1; }; } 1134 ac_package=`echo $ac_package | sed 's/-/_/g'` 1135 eval with_$ac_package=no ;; 1136 1137 --x) 1138 # Obsolete; use --with-x. 1139 with_x=yes ;; 1140 1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1142 | --x-incl | --x-inc | --x-in | --x-i) 1143 ac_prev=x_includes ;; 1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1146 x_includes=$ac_optarg ;; 1147 1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1150 ac_prev=x_libraries ;; 1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1153 x_libraries=$ac_optarg ;; 1154 1155 -*) { echo "$as_me: error: unrecognized option: $ac_option 1156 Try \`$0 --help' for more information." >&2 1157 { (exit 1); exit 1; }; } 1158 ;; 1159 1160 *=*) 1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1162 # Reject names that are not valid shell variable names. 1163 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1164 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1165 { (exit 1); exit 1; }; } 1166 eval $ac_envvar=\$ac_optarg 1167 export $ac_envvar ;; 1168 1169 *) 1170 # FIXME: should be removed in autoconf 3.0. 1171 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1173 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1175 ;; 1176 1177 esac 1178 done 1179 1180 if test -n "$ac_prev"; then 1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1182 { echo "$as_me: error: missing argument to $ac_option" >&2 1183 { (exit 1); exit 1; }; } 1184 fi 1185 1186 # Be sure to have absolute directory names. 1187 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1188 datadir sysconfdir sharedstatedir localstatedir includedir \ 1189 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1190 libdir localedir mandir 1191 do 1192 eval ac_val=\$$ac_var 1193 case $ac_val in 1194 [\\/$]* | ?:[\\/]* ) continue;; 1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1196 esac 1197 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1198 { (exit 1); exit 1; }; } 1199 done 1200 1201 # There might be people who depend on the old broken behavior: `$host' 1202 # used to hold the argument of --host etc. 1203 # FIXME: To remove some day. 1204 build=$build_alias 1205 host=$host_alias 1206 target=$target_alias 1207 1208 # FIXME: To remove some day. 1209 if test "x$host_alias" != x; then 1210 if test "x$build_alias" = x; then 1211 cross_compiling=maybe 1212 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1213 If a cross compiler is detected then cross compile mode will be used." >&2 1214 elif test "x$build_alias" != "x$host_alias"; then 1215 cross_compiling=yes 1216 fi 1217 fi 1218 1219 ac_tool_prefix= 1220 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1221 1222 test "$silent" = yes && exec 6>/dev/null 1223 1224 1225 ac_pwd=`pwd` && test -n "$ac_pwd" && 1226 ac_ls_di=`ls -di .` && 1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1228 { echo "$as_me: error: Working directory cannot be determined" >&2 1229 { (exit 1); exit 1; }; } 1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1231 { echo "$as_me: error: pwd does not report name of working directory" >&2 1232 { (exit 1); exit 1; }; } 1233 1234 1235 # Find the source files, if location was not specified. 1236 if test -z "$srcdir"; then 1237 ac_srcdir_defaulted=yes 1238 # Try the directory containing this script, then the parent directory. 1239 ac_confdir=`$as_dirname -- "$0" || 1240 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1241 X"$0" : 'X\(//\)[^/]' \| \ 1242 X"$0" : 'X\(//\)$' \| \ 1243 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1244 echo X"$0" | 1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1246 s//\1/ 1247 q 1248 } 1249 /^X\(\/\/\)[^/].*/{ 1250 s//\1/ 1251 q 1252 } 1253 /^X\(\/\/\)$/{ 1254 s//\1/ 1255 q 1256 } 1257 /^X\(\/\).*/{ 1258 s//\1/ 1259 q 1260 } 1261 s/.*/./; q'` 1262 srcdir=$ac_confdir 1263 if test ! -r "$srcdir/$ac_unique_file"; then 1264 srcdir=.. 1265 fi 1266 else 1267 ac_srcdir_defaulted=no 1268 fi 1269 if test ! -r "$srcdir/$ac_unique_file"; then 1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1271 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1272 { (exit 1); exit 1; }; } 1273 fi 1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1275 ac_abs_confdir=`( 1276 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1277 { (exit 1); exit 1; }; } 1278 pwd)` 1279 # When building in place, set srcdir=. 1280 if test "$ac_abs_confdir" = "$ac_pwd"; then 1281 srcdir=. 1282 fi 1283 # Remove unnecessary trailing slashes from srcdir. 1284 # Double slashes in file names in object file debugging info 1285 # mess up M-x gdb in Emacs. 1286 case $srcdir in 1287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1288 esac 1289 for ac_var in $ac_precious_vars; do 1290 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1291 eval ac_env_${ac_var}_value=\$${ac_var} 1292 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1293 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1294 done 1295 1296 # 1297 # Report the --help message. 1298 # 1299 if test "$ac_init_help" = "long"; then 1300 # Omit some internal or obsolete options to make the list less imposing. 1301 # This message is too long to be a string in the A/UX 3.1 sh. 1302 cat <<_ACEOF 1303 \`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems. 1304 1305 Usage: $0 [OPTION]... [VAR=VALUE]... 1306 1307 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1308 VAR=VALUE. See below for descriptions of some of the useful variables. 1309 1310 Defaults for the options are specified in brackets. 1311 1312 Configuration: 1313 -h, --help display this help and exit 1314 --help=short display options specific to this package 1315 --help=recursive display the short help of all the included packages 1316 -V, --version display version information and exit 1317 -q, --quiet, --silent do not print \`checking...' messages 1318 --cache-file=FILE cache test results in FILE [disabled] 1319 -C, --config-cache alias for \`--cache-file=config.cache' 1320 -n, --no-create do not create output files 1321 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1322 1323 Installation directories: 1324 --prefix=PREFIX install architecture-independent files in PREFIX 1325 [$ac_default_prefix] 1326 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1327 [PREFIX] 1328 1329 By default, \`make install' will install all the files in 1330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1331 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1332 for instance \`--prefix=\$HOME'. 1333 1334 For better control, use the options below. 1335 1336 Fine tuning of the installation directories: 1337 --bindir=DIR user executables [EPREFIX/bin] 1338 --sbindir=DIR system admin executables [EPREFIX/sbin] 1339 --libexecdir=DIR program executables [EPREFIX/libexec] 1340 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1341 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1342 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1343 --libdir=DIR object code libraries [EPREFIX/lib] 1344 --includedir=DIR C header files [PREFIX/include] 1345 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1346 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1347 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1348 --infodir=DIR info documentation [DATAROOTDIR/info] 1349 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1350 --mandir=DIR man documentation [DATAROOTDIR/man] 1351 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--] 1352 --htmldir=DIR html documentation [DOCDIR] 1353 --dvidir=DIR dvi documentation [DOCDIR] 1354 --pdfdir=DIR pdf documentation [DOCDIR] 1355 --psdir=DIR ps documentation [DOCDIR] 1356 _ACEOF 1357 1358 cat <<\_ACEOF 1359 1360 System types: 1361 --build=BUILD configure for building on BUILD [guessed] 1362 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1363 --target=TARGET configure for building compilers for TARGET [HOST] 1364 _ACEOF 1365 fi 1366 1367 if test -n "$ac_init_help"; then 1368 case $ac_init_help in 1369 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";; 1370 esac 1371 cat <<\_ACEOF 1372 1373 Optional Features: 1374 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1375 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1376 --enable-polly Use polly if available (default is YES) 1377 --enable-libcpp Use libc++ if available (default is NO) 1378 --enable-optimized Compile with optimizations enabled (default is NO) 1379 --enable-profiling Compile with profiling enabled (default is NO) 1380 --enable-assertions Compile with assertion checks enabled (default is 1381 YES) 1382 --enable-expensive-checks 1383 Compile with expensive debug checks enabled (default 1384 is NO) 1385 --enable-debug-runtime Build runtime libs with debug symbols (default is 1386 NO) 1387 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1388 optimization is on and YES if it's off) 1389 --enable-jit Enable Just In Time Compiling (default is YES) 1390 --enable-docs Build documents (default is YES) 1391 --enable-doxygen Build doxygen documentation (default is NO) 1392 --enable-threads Use threads if available (default is YES) 1393 --enable-pthreads Use pthreads if available (default is YES) 1394 --enable-pic Build LLVM with Position Independent Code (default 1395 is YES) 1396 --enable-shared Build a shared library and link tools against it 1397 (default is NO) 1398 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1399 Win32 DLL (default is YES) 1400 --enable-timestamps Enable embedding timestamp information in build 1401 (default is YES) 1402 --enable-targets Build specific host targets: all or 1403 target1,target2,... Valid targets are: host, x86, 1404 x86_64, sparc, powerpc, arm, mips, spu, hexagon, 1405 xcore, msp430, nvptx, cbe, and cpp (default=all) 1406 --enable-bindings Build specific language bindings: 1407 all,auto,none,{binding-name} (default=auto) 1408 --enable-libffi Check for the presence of libffi (default is NO) 1409 --enable-ltdl-install install libltdl 1410 1411 Optional Packages: 1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1414 --with-llvmsrc Location of LLVM Source Code 1415 --with-llvmobj Location of LLVM Object Code 1416 --with-optimize-option Select the compiler options to use for optimized 1417 builds 1418 --with-extra-options Specify additional options to compile LLVM with 1419 --with-extra-ld-options Specify additional options to link LLVM with 1420 --with-ocaml-libdir Specify install location for ocaml bindings (default 1421 is stdlib) 1422 --with-clang-resource-dir 1423 Relative directory from the Clang binary for 1424 resource files 1425 --with-c-include-dirs Colon separated list of directories clang will 1426 search for headers 1427 --with-gcc-toolchain Directory where gcc is installed. 1428 --with-binutils-include Specify path to binutils/include/ containing 1429 plugin-api.h file for gold plugin. 1430 --with-bug-report-url Specify the URL where bug reports should be 1431 submitted (default=http://llvm.org/bugs/) 1432 --with-tclinclude directory where tcl headers are 1433 --with-udis86=<path> Use udis86 external x86 disassembler library 1434 --with-oprofile=<prefix> 1435 Tell OProfile >= 0.9.4 how to symbolize JIT output 1436 1437 Some influential environment variables: 1438 CC C compiler command 1439 CFLAGS C compiler flags 1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1441 nonstandard directory <lib dir> 1442 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1443 you have headers in a nonstandard directory <include dir> 1444 CXX C++ compiler command 1445 CXXFLAGS C++ compiler flags 1446 CPP C preprocessor 1447 1448 Use these variables to override the choices made by `configure' or to help 1449 it to find libraries and programs with nonstandard names/locations. 1450 1451 Report bugs to <bugs@yourdomain>. 1452 _ACEOF 1453 ac_status=$? 1454 fi 1455 1456 if test "$ac_init_help" = "recursive"; then 1457 # If there are subdirs, report their specific --help. 1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1459 test -d "$ac_dir" || continue 1460 ac_builddir=. 1461 1462 case "$ac_dir" in 1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1464 *) 1465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1466 # A ".." for each directory in $ac_dir_suffix. 1467 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1468 case $ac_top_builddir_sub in 1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1471 esac ;; 1472 esac 1473 ac_abs_top_builddir=$ac_pwd 1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1475 # for backward compatibility: 1476 ac_top_builddir=$ac_top_build_prefix 1477 1478 case $srcdir in 1479 .) # We are building in place. 1480 ac_srcdir=. 1481 ac_top_srcdir=$ac_top_builddir_sub 1482 ac_abs_top_srcdir=$ac_pwd ;; 1483 [\\/]* | ?:[\\/]* ) # Absolute name. 1484 ac_srcdir=$srcdir$ac_dir_suffix; 1485 ac_top_srcdir=$srcdir 1486 ac_abs_top_srcdir=$srcdir ;; 1487 *) # Relative name. 1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1489 ac_top_srcdir=$ac_top_build_prefix$srcdir 1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1491 esac 1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1493 1494 cd "$ac_dir" || { ac_status=$?; continue; } 1495 # Check for guested configure. 1496 if test -f "$ac_srcdir/configure.gnu"; then 1497 echo && 1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1499 elif test -f "$ac_srcdir/configure"; then 1500 echo && 1501 $SHELL "$ac_srcdir/configure" --help=recursive 1502 else 1503 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1504 fi || ac_status=$? 1505 cd "$ac_pwd" || { ac_status=$?; break; } 1506 done 1507 fi 1508 1509 test -n "$ac_init_help" && exit $ac_status 1510 if $ac_init_version; then 1511 cat <<\_ACEOF 1512 [SAMPLE] configure [x.xx] 1513 generated by GNU Autoconf 2.60 1514 1515 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1516 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1517 This configure script is free software; the Free Software Foundation 1518 gives unlimited permission to copy, distribute and modify it. 1519 _ACEOF 1520 exit 1521 fi 1522 cat >config.log <<_ACEOF 1523 This file contains any messages produced by compilers while 1524 running configure, to aid debugging if configure makes a mistake. 1525 1526 It was created by [SAMPLE] $as_me [x.xx], which was 1527 generated by GNU Autoconf 2.60. Invocation command line was 1528 1529 $ $0 $@ 1530 1531 _ACEOF 1532 exec 5>>config.log 1533 { 1534 cat <<_ASUNAME 1535 ## --------- ## 1536 ## Platform. ## 1537 ## --------- ## 1538 1539 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1540 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1541 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1542 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1543 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1544 1545 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1546 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1547 1548 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1549 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1550 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1551 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1552 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1553 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1554 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1555 1556 _ASUNAME 1557 1558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1559 for as_dir in $PATH 1560 do 1561 IFS=$as_save_IFS 1562 test -z "$as_dir" && as_dir=. 1563 echo "PATH: $as_dir" 1564 done 1565 IFS=$as_save_IFS 1566 1567 } >&5 1568 1569 cat >&5 <<_ACEOF 1570 1571 1572 ## ----------- ## 1573 ## Core tests. ## 1574 ## ----------- ## 1575 1576 _ACEOF 1577 1578 1579 # Keep a trace of the command line. 1580 # Strip out --no-create and --no-recursion so they do not pile up. 1581 # Strip out --silent because we don't want to record it for future runs. 1582 # Also quote any args containing shell meta-characters. 1583 # Make two passes to allow for proper duplicate-argument suppression. 1584 ac_configure_args= 1585 ac_configure_args0= 1586 ac_configure_args1= 1587 ac_must_keep_next=false 1588 for ac_pass in 1 2 1589 do 1590 for ac_arg 1591 do 1592 case $ac_arg in 1593 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1595 | -silent | --silent | --silen | --sile | --sil) 1596 continue ;; 1597 *\'*) 1598 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1599 esac 1600 case $ac_pass in 1601 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1602 2) 1603 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1604 if test $ac_must_keep_next = true; then 1605 ac_must_keep_next=false # Got value, back to normal. 1606 else 1607 case $ac_arg in 1608 *=* | --config-cache | -C | -disable-* | --disable-* \ 1609 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1610 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1611 | -with-* | --with-* | -without-* | --without-* | --x) 1612 case "$ac_configure_args0 " in 1613 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1614 esac 1615 ;; 1616 -* ) ac_must_keep_next=true ;; 1617 esac 1618 fi 1619 ac_configure_args="$ac_configure_args '$ac_arg'" 1620 ;; 1621 esac 1622 done 1623 done 1624 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1625 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1626 1627 # When interrupted or exit'd, cleanup temporary files, and complete 1628 # config.log. We remove comments because anyway the quotes in there 1629 # would cause problems or look ugly. 1630 # WARNING: Use '\'' to represent an apostrophe within the trap. 1631 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1632 trap 'exit_status=$? 1633 # Save into config.log some information that might help in debugging. 1634 { 1635 echo 1636 1637 cat <<\_ASBOX 1638 ## ---------------- ## 1639 ## Cache variables. ## 1640 ## ---------------- ## 1641 _ASBOX 1642 echo 1643 # The following way of writing the cache mishandles newlines in values, 1644 ( 1645 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1646 eval ac_val=\$$ac_var 1647 case $ac_val in #( 1648 *${as_nl}*) 1649 case $ac_var in #( 1650 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1651 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1652 esac 1653 case $ac_var in #( 1654 _ | IFS | as_nl) ;; #( 1655 *) $as_unset $ac_var ;; 1656 esac ;; 1657 esac 1658 done 1659 (set) 2>&1 | 1660 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1661 *${as_nl}ac_space=\ *) 1662 sed -n \ 1663 "s/'\''/'\''\\\\'\'''\''/g; 1664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1665 ;; #( 1666 *) 1667 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1668 ;; 1669 esac | 1670 sort 1671 ) 1672 echo 1673 1674 cat <<\_ASBOX 1675 ## ----------------- ## 1676 ## Output variables. ## 1677 ## ----------------- ## 1678 _ASBOX 1679 echo 1680 for ac_var in $ac_subst_vars 1681 do 1682 eval ac_val=\$$ac_var 1683 case $ac_val in 1684 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1685 esac 1686 echo "$ac_var='\''$ac_val'\''" 1687 done | sort 1688 echo 1689 1690 if test -n "$ac_subst_files"; then 1691 cat <<\_ASBOX 1692 ## ------------------- ## 1693 ## File substitutions. ## 1694 ## ------------------- ## 1695 _ASBOX 1696 echo 1697 for ac_var in $ac_subst_files 1698 do 1699 eval ac_val=\$$ac_var 1700 case $ac_val in 1701 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1702 esac 1703 echo "$ac_var='\''$ac_val'\''" 1704 done | sort 1705 echo 1706 fi 1707 1708 if test -s confdefs.h; then 1709 cat <<\_ASBOX 1710 ## ----------- ## 1711 ## confdefs.h. ## 1712 ## ----------- ## 1713 _ASBOX 1714 echo 1715 cat confdefs.h 1716 echo 1717 fi 1718 test "$ac_signal" != 0 && 1719 echo "$as_me: caught signal $ac_signal" 1720 echo "$as_me: exit $exit_status" 1721 } >&5 1722 rm -f core *.core core.conftest.* && 1723 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1724 exit $exit_status 1725 ' 0 1726 for ac_signal in 1 2 13 15; do 1727 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1728 done 1729 ac_signal=0 1730 1731 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1732 rm -f -r conftest* confdefs.h 1733 1734 # Predefined preprocessor variables. 1735 1736 cat >>confdefs.h <<_ACEOF 1737 #define PACKAGE_NAME "$PACKAGE_NAME" 1738 _ACEOF 1739 1740 1741 cat >>confdefs.h <<_ACEOF 1742 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1743 _ACEOF 1744 1745 1746 cat >>confdefs.h <<_ACEOF 1747 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1748 _ACEOF 1749 1750 1751 cat >>confdefs.h <<_ACEOF 1752 #define PACKAGE_STRING "$PACKAGE_STRING" 1753 _ACEOF 1754 1755 1756 cat >>confdefs.h <<_ACEOF 1757 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1758 _ACEOF 1759 1760 1761 # Let the site file select an alternate cache file if it wants to. 1762 # Prefer explicitly selected file to automatically selected ones. 1763 if test -n "$CONFIG_SITE"; then 1764 set x "$CONFIG_SITE" 1765 elif test "x$prefix" != xNONE; then 1766 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1767 else 1768 set x "$ac_default_prefix/share/config.site" \ 1769 "$ac_default_prefix/etc/config.site" 1770 fi 1771 shift 1772 for ac_site_file 1773 do 1774 if test -r "$ac_site_file"; then 1775 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1776 echo "$as_me: loading site script $ac_site_file" >&6;} 1777 sed 's/^/| /' "$ac_site_file" >&5 1778 . "$ac_site_file" 1779 fi 1780 done 1781 1782 if test -r "$cache_file"; then 1783 # Some versions of bash will fail to source /dev/null (special 1784 # files actually), so we avoid doing that. 1785 if test -f "$cache_file"; then 1786 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1787 echo "$as_me: loading cache $cache_file" >&6;} 1788 case $cache_file in 1789 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1790 *) . "./$cache_file";; 1791 esac 1792 fi 1793 else 1794 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1795 echo "$as_me: creating cache $cache_file" >&6;} 1796 >$cache_file 1797 fi 1798 1799 # Check that the precious variables saved in the cache have kept the same 1800 # value. 1801 ac_cache_corrupted=false 1802 for ac_var in $ac_precious_vars; do 1803 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1804 eval ac_new_set=\$ac_env_${ac_var}_set 1805 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1806 eval ac_new_val=\$ac_env_${ac_var}_value 1807 case $ac_old_set,$ac_new_set in 1808 set,) 1809 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1810 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1811 ac_cache_corrupted=: ;; 1812 ,set) 1813 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1814 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1815 ac_cache_corrupted=: ;; 1816 ,);; 1817 *) 1818 if test "x$ac_old_val" != "x$ac_new_val"; then 1819 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1820 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1821 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1822 echo "$as_me: former value: $ac_old_val" >&2;} 1823 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1824 echo "$as_me: current value: $ac_new_val" >&2;} 1825 ac_cache_corrupted=: 1826 fi;; 1827 esac 1828 # Pass precious variables to config.status. 1829 if test "$ac_new_set" = set; then 1830 case $ac_new_val in 1831 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1832 *) ac_arg=$ac_var=$ac_new_val ;; 1833 esac 1834 case " $ac_configure_args " in 1835 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1836 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1837 esac 1838 fi 1839 done 1840 if $ac_cache_corrupted; then 1841 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1842 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1843 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1844 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1845 { (exit 1); exit 1; }; } 1846 fi 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 ac_ext=c 1873 ac_cpp='$CPP $CPPFLAGS' 1874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1876 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1877 1878 1879 1880 LLVM_SRC_ROOT="../.." 1881 LLVM_OBJ_ROOT="../.." 1882 1883 LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`" 1884 LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`" 1885 1886 1887 # Check whether --with-llvmsrc was given. 1888 if test "${with_llvmsrc+set}" = set; then 1889 withval=$with_llvmsrc; llvm_src="$withval" 1890 else 1891 llvm_src="$LLVM_ABS_SRC_ROOT" 1892 fi 1893 1894 LLVM_SRC=$llvm_src 1895 1896 1897 # Check whether --with-llvmobj was given. 1898 if test "${with_llvmobj+set}" = set; then 1899 withval=$with_llvmobj; llvm_obj="$withval" 1900 else 1901 llvm_obj="$LLVM_ABS_OBJ_ROOT" 1902 fi 1903 1904 LLVM_OBJ=$llvm_obj 1905 1906 ac_config_commands="$ac_config_commands setup" 1907 1908 1909 1910 { echo "$as_me:$LINENO: checking llvm-config" >&5 1911 echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; } 1912 llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`" 1913 if ! test -f "$llvm_config_path" ; then 1914 llvm_config_path="no" 1915 fi 1916 { echo "$as_me:$LINENO: result: $llvm_config_path" >&5 1917 echo "${ECHO_T}$llvm_config_path" >&6; } 1918 1919 { echo "$as_me:$LINENO: checking LLVM package version" >&5 1920 echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; } 1921 if test "$llvm_config_path" != no ; then 1922 llvm_package_version=`$llvm_config_path --version` 1923 else 1924 llvm_package_version="unknown"; 1925 fi 1926 { echo "$as_me:$LINENO: result: $llvm_package_version" >&5 1927 echo "${ECHO_T}$llvm_package_version" >&6; } 1928 LLVM_VERSION=$llvm_package_version 1929 1930 1931 1932 1933 ac_aux_dir= 1934 for ac_dir in autoconf "$srcdir"/autoconf; do 1935 if test -f "$ac_dir/install-sh"; then 1936 ac_aux_dir=$ac_dir 1937 ac_install_sh="$ac_aux_dir/install-sh -c" 1938 break 1939 elif test -f "$ac_dir/install.sh"; then 1940 ac_aux_dir=$ac_dir 1941 ac_install_sh="$ac_aux_dir/install.sh -c" 1942 break 1943 elif test -f "$ac_dir/shtool"; then 1944 ac_aux_dir=$ac_dir 1945 ac_install_sh="$ac_aux_dir/shtool install -c" 1946 break 1947 fi 1948 done 1949 if test -z "$ac_aux_dir"; then 1950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1951 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1952 { (exit 1); exit 1; }; } 1953 fi 1954 1955 # These three variables are undocumented and unsupported, 1956 # and are intended to be withdrawn in a future Autoconf release. 1957 # They can cause serious problems if a builder's source tree is in a directory 1958 # whose full name contains unusual characters. 1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1961 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1962 1963 1964 1965 1966 ac_ext=c 1967 ac_cpp='$CPP $CPPFLAGS' 1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1971 if test -n "$ac_tool_prefix"; then 1972 for ac_prog in clang llvm-gcc gcc 1973 do 1974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1976 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1978 if test "${ac_cv_prog_CC+set}" = set; then 1979 echo $ECHO_N "(cached) $ECHO_C" >&6 1980 else 1981 if test -n "$CC"; then 1982 ac_cv_prog_CC="$CC" # Let the user override the test. 1983 else 1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1985 for as_dir in $PATH 1986 do 1987 IFS=$as_save_IFS 1988 test -z "$as_dir" && as_dir=. 1989 for ac_exec_ext in '' $ac_executable_extensions; do 1990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 1991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1993 break 2 1994 fi 1995 done 1996 done 1997 IFS=$as_save_IFS 1998 1999 fi 2000 fi 2001 CC=$ac_cv_prog_CC 2002 if test -n "$CC"; then 2003 { echo "$as_me:$LINENO: result: $CC" >&5 2004 echo "${ECHO_T}$CC" >&6; } 2005 else 2006 { echo "$as_me:$LINENO: result: no" >&5 2007 echo "${ECHO_T}no" >&6; } 2008 fi 2009 2010 2011 test -n "$CC" && break 2012 done 2013 fi 2014 if test -z "$CC"; then 2015 ac_ct_CC=$CC 2016 for ac_prog in clang llvm-gcc gcc 2017 do 2018 # Extract the first word of "$ac_prog", so it can be a program name with args. 2019 set dummy $ac_prog; ac_word=$2 2020 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2023 echo $ECHO_N "(cached) $ECHO_C" >&6 2024 else 2025 if test -n "$ac_ct_CC"; then 2026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2027 else 2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2029 for as_dir in $PATH 2030 do 2031 IFS=$as_save_IFS 2032 test -z "$as_dir" && as_dir=. 2033 for ac_exec_ext in '' $ac_executable_extensions; do 2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2035 ac_cv_prog_ac_ct_CC="$ac_prog" 2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2037 break 2 2038 fi 2039 done 2040 done 2041 IFS=$as_save_IFS 2042 2043 fi 2044 fi 2045 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2046 if test -n "$ac_ct_CC"; then 2047 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2048 echo "${ECHO_T}$ac_ct_CC" >&6; } 2049 else 2050 { echo "$as_me:$LINENO: result: no" >&5 2051 echo "${ECHO_T}no" >&6; } 2052 fi 2053 2054 2055 test -n "$ac_ct_CC" && break 2056 done 2057 2058 if test "x$ac_ct_CC" = x; then 2059 CC="" 2060 else 2061 case $cross_compiling:$ac_tool_warned in 2062 yes:) 2063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2064 whose name does not start with the host triplet. If you think this 2065 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2067 whose name does not start with the host triplet. If you think this 2068 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2069 ac_tool_warned=yes ;; 2070 esac 2071 CC=$ac_ct_CC 2072 fi 2073 fi 2074 2075 2076 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2077 See \`config.log' for more details." >&5 2078 echo "$as_me: error: no acceptable C compiler found in \$PATH 2079 See \`config.log' for more details." >&2;} 2080 { (exit 1); exit 1; }; } 2081 2082 # Provide some information about the compiler. 2083 echo "$as_me:$LINENO: checking for C compiler version" >&5 2084 ac_compiler=`set X $ac_compile; echo $2` 2085 { (ac_try="$ac_compiler --version >&5" 2086 case "(($ac_try" in 2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2088 *) ac_try_echo=$ac_try;; 2089 esac 2090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2091 (eval "$ac_compiler --version >&5") 2>&5 2092 ac_status=$? 2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2094 (exit $ac_status); } 2095 { (ac_try="$ac_compiler -v >&5" 2096 case "(($ac_try" in 2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2098 *) ac_try_echo=$ac_try;; 2099 esac 2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2101 (eval "$ac_compiler -v >&5") 2>&5 2102 ac_status=$? 2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2104 (exit $ac_status); } 2105 { (ac_try="$ac_compiler -V >&5" 2106 case "(($ac_try" in 2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2108 *) ac_try_echo=$ac_try;; 2109 esac 2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2111 (eval "$ac_compiler -V >&5") 2>&5 2112 ac_status=$? 2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2114 (exit $ac_status); } 2115 2116 cat >conftest.$ac_ext <<_ACEOF 2117 /* confdefs.h. */ 2118 _ACEOF 2119 cat confdefs.h >>conftest.$ac_ext 2120 cat >>conftest.$ac_ext <<_ACEOF 2121 /* end confdefs.h. */ 2122 2123 int 2124 main () 2125 { 2126 2127 ; 2128 return 0; 2129 } 2130 _ACEOF 2131 ac_clean_files_save=$ac_clean_files 2132 ac_clean_files="$ac_clean_files a.out a.exe b.out" 2133 # Try to create an executable without -o first, disregard a.out. 2134 # It will help us diagnose broken compilers, and finding out an intuition 2135 # of exeext. 2136 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2137 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2138 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2139 # 2140 # List of possible output files, starting from the most likely. 2141 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2142 # only as a last resort. b.out is created by i960 compilers. 2143 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2144 # 2145 # The IRIX 6 linker writes into existing files which may not be 2146 # executable, retaining their permissions. Remove them first so a 2147 # subsequent execution test works. 2148 ac_rmfiles= 2149 for ac_file in $ac_files 2150 do 2151 case $ac_file in 2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2153 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2154 esac 2155 done 2156 rm -f $ac_rmfiles 2157 2158 if { (ac_try="$ac_link_default" 2159 case "(($ac_try" in 2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2161 *) ac_try_echo=$ac_try;; 2162 esac 2163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2164 (eval "$ac_link_default") 2>&5 2165 ac_status=$? 2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2167 (exit $ac_status); }; then 2168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2169 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2170 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2171 # so that the user can short-circuit this test for compilers unknown to 2172 # Autoconf. 2173 for ac_file in $ac_files 2174 do 2175 test -f "$ac_file" || continue 2176 case $ac_file in 2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2178 ;; 2179 [ab].out ) 2180 # We found the default executable, but exeext='' is most 2181 # certainly right. 2182 break;; 2183 *.* ) 2184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2185 then :; else 2186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2187 fi 2188 # We set ac_cv_exeext here because the later test for it is not 2189 # safe: cross compilers may not add the suffix if given an `-o' 2190 # argument, so we may need to know it at that point already. 2191 # Even if this section looks crufty: it has the advantage of 2192 # actually working. 2193 break;; 2194 * ) 2195 break;; 2196 esac 2197 done 2198 test "$ac_cv_exeext" = no && ac_cv_exeext= 2199 2200 else 2201 echo "$as_me: failed program was:" >&5 2202 sed 's/^/| /' conftest.$ac_ext >&5 2203 2204 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2205 See \`config.log' for more details." >&5 2206 echo "$as_me: error: C compiler cannot create executables 2207 See \`config.log' for more details." >&2;} 2208 { (exit 77); exit 77; }; } 2209 fi 2210 2211 ac_exeext=$ac_cv_exeext 2212 { echo "$as_me:$LINENO: result: $ac_file" >&5 2213 echo "${ECHO_T}$ac_file" >&6; } 2214 2215 # Check that the compiler produces executables we can run. If not, either 2216 # the compiler is broken, or we cross compile. 2217 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2218 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2219 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2220 # If not cross compiling, check that we can run a simple program. 2221 if test "$cross_compiling" != yes; then 2222 if { ac_try='./$ac_file' 2223 { (case "(($ac_try" in 2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2225 *) ac_try_echo=$ac_try;; 2226 esac 2227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2228 (eval "$ac_try") 2>&5 2229 ac_status=$? 2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2231 (exit $ac_status); }; }; then 2232 cross_compiling=no 2233 else 2234 if test "$cross_compiling" = maybe; then 2235 cross_compiling=yes 2236 else 2237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2238 If you meant to cross compile, use \`--host'. 2239 See \`config.log' for more details." >&5 2240 echo "$as_me: error: cannot run C compiled programs. 2241 If you meant to cross compile, use \`--host'. 2242 See \`config.log' for more details." >&2;} 2243 { (exit 1); exit 1; }; } 2244 fi 2245 fi 2246 fi 2247 { echo "$as_me:$LINENO: result: yes" >&5 2248 echo "${ECHO_T}yes" >&6; } 2249 2250 rm -f a.out a.exe conftest$ac_cv_exeext b.out 2251 ac_clean_files=$ac_clean_files_save 2252 # Check that the compiler produces executables we can run. If not, either 2253 # the compiler is broken, or we cross compile. 2254 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2255 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2256 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2257 echo "${ECHO_T}$cross_compiling" >&6; } 2258 2259 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2260 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2261 if { (ac_try="$ac_link" 2262 case "(($ac_try" in 2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2264 *) ac_try_echo=$ac_try;; 2265 esac 2266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2267 (eval "$ac_link") 2>&5 2268 ac_status=$? 2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2270 (exit $ac_status); }; then 2271 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2272 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2273 # work properly (i.e., refer to `conftest.exe'), while it won't with 2274 # `rm'. 2275 for ac_file in conftest.exe conftest conftest.*; do 2276 test -f "$ac_file" || continue 2277 case $ac_file in 2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2280 break;; 2281 * ) break;; 2282 esac 2283 done 2284 else 2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2286 See \`config.log' for more details." >&5 2287 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2288 See \`config.log' for more details." >&2;} 2289 { (exit 1); exit 1; }; } 2290 fi 2291 2292 rm -f conftest$ac_cv_exeext 2293 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2294 echo "${ECHO_T}$ac_cv_exeext" >&6; } 2295 2296 rm -f conftest.$ac_ext 2297 EXEEXT=$ac_cv_exeext 2298 ac_exeext=$EXEEXT 2299 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2300 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2301 if test "${ac_cv_objext+set}" = set; then 2302 echo $ECHO_N "(cached) $ECHO_C" >&6 2303 else 2304 cat >conftest.$ac_ext <<_ACEOF 2305 /* confdefs.h. */ 2306 _ACEOF 2307 cat confdefs.h >>conftest.$ac_ext 2308 cat >>conftest.$ac_ext <<_ACEOF 2309 /* end confdefs.h. */ 2310 2311 int 2312 main () 2313 { 2314 2315 ; 2316 return 0; 2317 } 2318 _ACEOF 2319 rm -f conftest.o conftest.obj 2320 if { (ac_try="$ac_compile" 2321 case "(($ac_try" in 2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2323 *) ac_try_echo=$ac_try;; 2324 esac 2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2326 (eval "$ac_compile") 2>&5 2327 ac_status=$? 2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2329 (exit $ac_status); }; then 2330 for ac_file in conftest.o conftest.obj conftest.*; do 2331 test -f "$ac_file" || continue; 2332 case $ac_file in 2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2335 break;; 2336 esac 2337 done 2338 else 2339 echo "$as_me: failed program was:" >&5 2340 sed 's/^/| /' conftest.$ac_ext >&5 2341 2342 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2343 See \`config.log' for more details." >&5 2344 echo "$as_me: error: cannot compute suffix of object files: cannot compile 2345 See \`config.log' for more details." >&2;} 2346 { (exit 1); exit 1; }; } 2347 fi 2348 2349 rm -f conftest.$ac_cv_objext conftest.$ac_ext 2350 fi 2351 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2352 echo "${ECHO_T}$ac_cv_objext" >&6; } 2353 OBJEXT=$ac_cv_objext 2354 ac_objext=$OBJEXT 2355 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2356 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2357 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2358 echo $ECHO_N "(cached) $ECHO_C" >&6 2359 else 2360 cat >conftest.$ac_ext <<_ACEOF 2361 /* confdefs.h. */ 2362 _ACEOF 2363 cat confdefs.h >>conftest.$ac_ext 2364 cat >>conftest.$ac_ext <<_ACEOF 2365 /* end confdefs.h. */ 2366 2367 int 2368 main () 2369 { 2370 #ifndef __GNUC__ 2371 choke me 2372 #endif 2373 2374 ; 2375 return 0; 2376 } 2377 _ACEOF 2378 rm -f conftest.$ac_objext 2379 if { (ac_try="$ac_compile" 2380 case "(($ac_try" in 2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2382 *) ac_try_echo=$ac_try;; 2383 esac 2384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2385 (eval "$ac_compile") 2>conftest.er1 2386 ac_status=$? 2387 grep -v '^ *+' conftest.er1 >conftest.err 2388 rm -f conftest.er1 2389 cat conftest.err >&5 2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2391 (exit $ac_status); } && 2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2393 { (case "(($ac_try" in 2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2395 *) ac_try_echo=$ac_try;; 2396 esac 2397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2398 (eval "$ac_try") 2>&5 2399 ac_status=$? 2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2401 (exit $ac_status); }; } && 2402 { ac_try='test -s conftest.$ac_objext' 2403 { (case "(($ac_try" in 2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2405 *) ac_try_echo=$ac_try;; 2406 esac 2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2408 (eval "$ac_try") 2>&5 2409 ac_status=$? 2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2411 (exit $ac_status); }; }; then 2412 ac_compiler_gnu=yes 2413 else 2414 echo "$as_me: failed program was:" >&5 2415 sed 's/^/| /' conftest.$ac_ext >&5 2416 2417 ac_compiler_gnu=no 2418 fi 2419 2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2421 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2422 2423 fi 2424 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2425 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2426 GCC=`test $ac_compiler_gnu = yes && echo yes` 2427 ac_test_CFLAGS=${CFLAGS+set} 2428 ac_save_CFLAGS=$CFLAGS 2429 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2430 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2431 if test "${ac_cv_prog_cc_g+set}" = set; then 2432 echo $ECHO_N "(cached) $ECHO_C" >&6 2433 else 2434 ac_save_c_werror_flag=$ac_c_werror_flag 2435 ac_c_werror_flag=yes 2436 ac_cv_prog_cc_g=no 2437 CFLAGS="-g" 2438 cat >conftest.$ac_ext <<_ACEOF 2439 /* confdefs.h. */ 2440 _ACEOF 2441 cat confdefs.h >>conftest.$ac_ext 2442 cat >>conftest.$ac_ext <<_ACEOF 2443 /* end confdefs.h. */ 2444 2445 int 2446 main () 2447 { 2448 2449 ; 2450 return 0; 2451 } 2452 _ACEOF 2453 rm -f conftest.$ac_objext 2454 if { (ac_try="$ac_compile" 2455 case "(($ac_try" in 2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2457 *) ac_try_echo=$ac_try;; 2458 esac 2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2460 (eval "$ac_compile") 2>conftest.er1 2461 ac_status=$? 2462 grep -v '^ *+' conftest.er1 >conftest.err 2463 rm -f conftest.er1 2464 cat conftest.err >&5 2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2466 (exit $ac_status); } && 2467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2468 { (case "(($ac_try" in 2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2470 *) ac_try_echo=$ac_try;; 2471 esac 2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2473 (eval "$ac_try") 2>&5 2474 ac_status=$? 2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2476 (exit $ac_status); }; } && 2477 { ac_try='test -s conftest.$ac_objext' 2478 { (case "(($ac_try" in 2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2480 *) ac_try_echo=$ac_try;; 2481 esac 2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2483 (eval "$ac_try") 2>&5 2484 ac_status=$? 2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2486 (exit $ac_status); }; }; then 2487 ac_cv_prog_cc_g=yes 2488 else 2489 echo "$as_me: failed program was:" >&5 2490 sed 's/^/| /' conftest.$ac_ext >&5 2491 2492 CFLAGS="" 2493 cat >conftest.$ac_ext <<_ACEOF 2494 /* confdefs.h. */ 2495 _ACEOF 2496 cat confdefs.h >>conftest.$ac_ext 2497 cat >>conftest.$ac_ext <<_ACEOF 2498 /* end confdefs.h. */ 2499 2500 int 2501 main () 2502 { 2503 2504 ; 2505 return 0; 2506 } 2507 _ACEOF 2508 rm -f conftest.$ac_objext 2509 if { (ac_try="$ac_compile" 2510 case "(($ac_try" in 2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2512 *) ac_try_echo=$ac_try;; 2513 esac 2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2515 (eval "$ac_compile") 2>conftest.er1 2516 ac_status=$? 2517 grep -v '^ *+' conftest.er1 >conftest.err 2518 rm -f conftest.er1 2519 cat conftest.err >&5 2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2521 (exit $ac_status); } && 2522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2523 { (case "(($ac_try" in 2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2525 *) ac_try_echo=$ac_try;; 2526 esac 2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2528 (eval "$ac_try") 2>&5 2529 ac_status=$? 2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2531 (exit $ac_status); }; } && 2532 { ac_try='test -s conftest.$ac_objext' 2533 { (case "(($ac_try" in 2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2535 *) ac_try_echo=$ac_try;; 2536 esac 2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2538 (eval "$ac_try") 2>&5 2539 ac_status=$? 2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2541 (exit $ac_status); }; }; then 2542 : 2543 else 2544 echo "$as_me: failed program was:" >&5 2545 sed 's/^/| /' conftest.$ac_ext >&5 2546 2547 ac_c_werror_flag=$ac_save_c_werror_flag 2548 CFLAGS="-g" 2549 cat >conftest.$ac_ext <<_ACEOF 2550 /* confdefs.h. */ 2551 _ACEOF 2552 cat confdefs.h >>conftest.$ac_ext 2553 cat >>conftest.$ac_ext <<_ACEOF 2554 /* end confdefs.h. */ 2555 2556 int 2557 main () 2558 { 2559 2560 ; 2561 return 0; 2562 } 2563 _ACEOF 2564 rm -f conftest.$ac_objext 2565 if { (ac_try="$ac_compile" 2566 case "(($ac_try" in 2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2568 *) ac_try_echo=$ac_try;; 2569 esac 2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2571 (eval "$ac_compile") 2>conftest.er1 2572 ac_status=$? 2573 grep -v '^ *+' conftest.er1 >conftest.err 2574 rm -f conftest.er1 2575 cat conftest.err >&5 2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2577 (exit $ac_status); } && 2578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2579 { (case "(($ac_try" in 2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2581 *) ac_try_echo=$ac_try;; 2582 esac 2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2584 (eval "$ac_try") 2>&5 2585 ac_status=$? 2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2587 (exit $ac_status); }; } && 2588 { ac_try='test -s conftest.$ac_objext' 2589 { (case "(($ac_try" in 2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2591 *) ac_try_echo=$ac_try;; 2592 esac 2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2594 (eval "$ac_try") 2>&5 2595 ac_status=$? 2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 (exit $ac_status); }; }; then 2598 ac_cv_prog_cc_g=yes 2599 else 2600 echo "$as_me: failed program was:" >&5 2601 sed 's/^/| /' conftest.$ac_ext >&5 2602 2603 2604 fi 2605 2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2607 fi 2608 2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2610 fi 2611 2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2613 ac_c_werror_flag=$ac_save_c_werror_flag 2614 fi 2615 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2616 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2617 if test "$ac_test_CFLAGS" = set; then 2618 CFLAGS=$ac_save_CFLAGS 2619 elif test $ac_cv_prog_cc_g = yes; then 2620 if test "$GCC" = yes; then 2621 CFLAGS="-g -O2" 2622 else 2623 CFLAGS="-g" 2624 fi 2625 else 2626 if test "$GCC" = yes; then 2627 CFLAGS="-O2" 2628 else 2629 CFLAGS= 2630 fi 2631 fi 2632 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2633 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2634 if test "${ac_cv_prog_cc_c89+set}" = set; then 2635 echo $ECHO_N "(cached) $ECHO_C" >&6 2636 else 2637 ac_cv_prog_cc_c89=no 2638 ac_save_CC=$CC 2639 cat >conftest.$ac_ext <<_ACEOF 2640 /* confdefs.h. */ 2641 _ACEOF 2642 cat confdefs.h >>conftest.$ac_ext 2643 cat >>conftest.$ac_ext <<_ACEOF 2644 /* end confdefs.h. */ 2645 #include <stdarg.h> 2646 #include <stdio.h> 2647 #include <sys/types.h> 2648 #include <sys/stat.h> 2649 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2650 struct buf { int x; }; 2651 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2652 static char *e (p, i) 2653 char **p; 2654 int i; 2655 { 2656 return p[i]; 2657 } 2658 static char *f (char * (*g) (char **, int), char **p, ...) 2659 { 2660 char *s; 2661 va_list v; 2662 va_start (v,p); 2663 s = g (p, va_arg (v,int)); 2664 va_end (v); 2665 return s; 2666 } 2667 2668 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2669 function prototypes and stuff, but not '\xHH' hex character constants. 2670 These don't provoke an error unfortunately, instead are silently treated 2671 as 'x'. The following induces an error, until -std is added to get 2672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2673 array size at least. It's necessary to write '\x00'==0 to get something 2674 that's true only with -std. */ 2675 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2676 2677 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2678 inside strings and character constants. */ 2679 #define FOO(x) 'x' 2680 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2681 2682 int test (int i, double x); 2683 struct s1 {int (*f) (int a);}; 2684 struct s2 {int (*f) (double a);}; 2685 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2686 int argc; 2687 char **argv; 2688 int 2689 main () 2690 { 2691 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2692 ; 2693 return 0; 2694 } 2695 _ACEOF 2696 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2698 do 2699 CC="$ac_save_CC $ac_arg" 2700 rm -f conftest.$ac_objext 2701 if { (ac_try="$ac_compile" 2702 case "(($ac_try" in 2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2704 *) ac_try_echo=$ac_try;; 2705 esac 2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2707 (eval "$ac_compile") 2>conftest.er1 2708 ac_status=$? 2709 grep -v '^ *+' conftest.er1 >conftest.err 2710 rm -f conftest.er1 2711 cat conftest.err >&5 2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2713 (exit $ac_status); } && 2714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2715 { (case "(($ac_try" in 2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2717 *) ac_try_echo=$ac_try;; 2718 esac 2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2720 (eval "$ac_try") 2>&5 2721 ac_status=$? 2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2723 (exit $ac_status); }; } && 2724 { ac_try='test -s conftest.$ac_objext' 2725 { (case "(($ac_try" in 2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2727 *) ac_try_echo=$ac_try;; 2728 esac 2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2730 (eval "$ac_try") 2>&5 2731 ac_status=$? 2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2733 (exit $ac_status); }; }; then 2734 ac_cv_prog_cc_c89=$ac_arg 2735 else 2736 echo "$as_me: failed program was:" >&5 2737 sed 's/^/| /' conftest.$ac_ext >&5 2738 2739 2740 fi 2741 2742 rm -f core conftest.err conftest.$ac_objext 2743 test "x$ac_cv_prog_cc_c89" != "xno" && break 2744 done 2745 rm -f conftest.$ac_ext 2746 CC=$ac_save_CC 2747 2748 fi 2749 # AC_CACHE_VAL 2750 case "x$ac_cv_prog_cc_c89" in 2751 x) 2752 { echo "$as_me:$LINENO: result: none needed" >&5 2753 echo "${ECHO_T}none needed" >&6; } ;; 2754 xno) 2755 { echo "$as_me:$LINENO: result: unsupported" >&5 2756 echo "${ECHO_T}unsupported" >&6; } ;; 2757 *) 2758 CC="$CC $ac_cv_prog_cc_c89" 2759 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2760 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2761 esac 2762 2763 2764 ac_ext=c 2765 ac_cpp='$CPP $CPPFLAGS' 2766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2768 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2769 2770 ac_ext=cpp 2771 ac_cpp='$CXXCPP $CPPFLAGS' 2772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2775 if test -z "$CXX"; then 2776 if test -n "$CCC"; then 2777 CXX=$CCC 2778 else 2779 if test -n "$ac_tool_prefix"; then 2780 for ac_prog in clang++ llvm-g++ g++ 2781 do 2782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2784 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2786 if test "${ac_cv_prog_CXX+set}" = set; then 2787 echo $ECHO_N "(cached) $ECHO_C" >&6 2788 else 2789 if test -n "$CXX"; then 2790 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2791 else 2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2793 for as_dir in $PATH 2794 do 2795 IFS=$as_save_IFS 2796 test -z "$as_dir" && as_dir=. 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2799 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2801 break 2 2802 fi 2803 done 2804 done 2805 IFS=$as_save_IFS 2806 2807 fi 2808 fi 2809 CXX=$ac_cv_prog_CXX 2810 if test -n "$CXX"; then 2811 { echo "$as_me:$LINENO: result: $CXX" >&5 2812 echo "${ECHO_T}$CXX" >&6; } 2813 else 2814 { echo "$as_me:$LINENO: result: no" >&5 2815 echo "${ECHO_T}no" >&6; } 2816 fi 2817 2818 2819 test -n "$CXX" && break 2820 done 2821 fi 2822 if test -z "$CXX"; then 2823 ac_ct_CXX=$CXX 2824 for ac_prog in clang++ llvm-g++ g++ 2825 do 2826 # Extract the first word of "$ac_prog", so it can be a program name with args. 2827 set dummy $ac_prog; ac_word=$2 2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2830 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2831 echo $ECHO_N "(cached) $ECHO_C" >&6 2832 else 2833 if test -n "$ac_ct_CXX"; then 2834 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2835 else 2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2837 for as_dir in $PATH 2838 do 2839 IFS=$as_save_IFS 2840 test -z "$as_dir" && as_dir=. 2841 for ac_exec_ext in '' $ac_executable_extensions; do 2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2843 ac_cv_prog_ac_ct_CXX="$ac_prog" 2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2845 break 2 2846 fi 2847 done 2848 done 2849 IFS=$as_save_IFS 2850 2851 fi 2852 fi 2853 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2854 if test -n "$ac_ct_CXX"; then 2855 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2856 echo "${ECHO_T}$ac_ct_CXX" >&6; } 2857 else 2858 { echo "$as_me:$LINENO: result: no" >&5 2859 echo "${ECHO_T}no" >&6; } 2860 fi 2861 2862 2863 test -n "$ac_ct_CXX" && break 2864 done 2865 2866 if test "x$ac_ct_CXX" = x; then 2867 CXX="g++" 2868 else 2869 case $cross_compiling:$ac_tool_warned in 2870 yes:) 2871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2872 whose name does not start with the host triplet. If you think this 2873 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 2874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2875 whose name does not start with the host triplet. If you think this 2876 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 2877 ac_tool_warned=yes ;; 2878 esac 2879 CXX=$ac_ct_CXX 2880 fi 2881 fi 2882 2883 fi 2884 fi 2885 # Provide some information about the compiler. 2886 echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2887 ac_compiler=`set X $ac_compile; echo $2` 2888 { (ac_try="$ac_compiler --version >&5" 2889 case "(($ac_try" in 2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2891 *) ac_try_echo=$ac_try;; 2892 esac 2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2894 (eval "$ac_compiler --version >&5") 2>&5 2895 ac_status=$? 2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2897 (exit $ac_status); } 2898 { (ac_try="$ac_compiler -v >&5" 2899 case "(($ac_try" in 2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2901 *) ac_try_echo=$ac_try;; 2902 esac 2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2904 (eval "$ac_compiler -v >&5") 2>&5 2905 ac_status=$? 2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2907 (exit $ac_status); } 2908 { (ac_try="$ac_compiler -V >&5" 2909 case "(($ac_try" in 2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2911 *) ac_try_echo=$ac_try;; 2912 esac 2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2914 (eval "$ac_compiler -V >&5") 2>&5 2915 ac_status=$? 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2917 (exit $ac_status); } 2918 2919 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2920 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2921 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2922 echo $ECHO_N "(cached) $ECHO_C" >&6 2923 else 2924 cat >conftest.$ac_ext <<_ACEOF 2925 /* confdefs.h. */ 2926 _ACEOF 2927 cat confdefs.h >>conftest.$ac_ext 2928 cat >>conftest.$ac_ext <<_ACEOF 2929 /* end confdefs.h. */ 2930 2931 int 2932 main () 2933 { 2934 #ifndef __GNUC__ 2935 choke me 2936 #endif 2937 2938 ; 2939 return 0; 2940 } 2941 _ACEOF 2942 rm -f conftest.$ac_objext 2943 if { (ac_try="$ac_compile" 2944 case "(($ac_try" in 2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2946 *) ac_try_echo=$ac_try;; 2947 esac 2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2949 (eval "$ac_compile") 2>conftest.er1 2950 ac_status=$? 2951 grep -v '^ *+' conftest.er1 >conftest.err 2952 rm -f conftest.er1 2953 cat conftest.err >&5 2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2955 (exit $ac_status); } && 2956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2957 { (case "(($ac_try" in 2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2959 *) ac_try_echo=$ac_try;; 2960 esac 2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2962 (eval "$ac_try") 2>&5 2963 ac_status=$? 2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2965 (exit $ac_status); }; } && 2966 { ac_try='test -s conftest.$ac_objext' 2967 { (case "(($ac_try" in 2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2969 *) ac_try_echo=$ac_try;; 2970 esac 2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2972 (eval "$ac_try") 2>&5 2973 ac_status=$? 2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2975 (exit $ac_status); }; }; then 2976 ac_compiler_gnu=yes 2977 else 2978 echo "$as_me: failed program was:" >&5 2979 sed 's/^/| /' conftest.$ac_ext >&5 2980 2981 ac_compiler_gnu=no 2982 fi 2983 2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2985 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2986 2987 fi 2988 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2989 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2990 GXX=`test $ac_compiler_gnu = yes && echo yes` 2991 ac_test_CXXFLAGS=${CXXFLAGS+set} 2992 ac_save_CXXFLAGS=$CXXFLAGS 2993 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2994 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 2995 if test "${ac_cv_prog_cxx_g+set}" = set; then 2996 echo $ECHO_N "(cached) $ECHO_C" >&6 2997 else 2998 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2999 ac_cxx_werror_flag=yes 3000 ac_cv_prog_cxx_g=no 3001 CXXFLAGS="-g" 3002 cat >conftest.$ac_ext <<_ACEOF 3003 /* confdefs.h. */ 3004 _ACEOF 3005 cat confdefs.h >>conftest.$ac_ext 3006 cat >>conftest.$ac_ext <<_ACEOF 3007 /* end confdefs.h. */ 3008 3009 int 3010 main () 3011 { 3012 3013 ; 3014 return 0; 3015 } 3016 _ACEOF 3017 rm -f conftest.$ac_objext 3018 if { (ac_try="$ac_compile" 3019 case "(($ac_try" in 3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3021 *) ac_try_echo=$ac_try;; 3022 esac 3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3024 (eval "$ac_compile") 2>conftest.er1 3025 ac_status=$? 3026 grep -v '^ *+' conftest.er1 >conftest.err 3027 rm -f conftest.er1 3028 cat conftest.err >&5 3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); } && 3031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3032 { (case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035 esac 3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3037 (eval "$ac_try") 2>&5 3038 ac_status=$? 3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3040 (exit $ac_status); }; } && 3041 { ac_try='test -s conftest.$ac_objext' 3042 { (case "(($ac_try" in 3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3044 *) ac_try_echo=$ac_try;; 3045 esac 3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3047 (eval "$ac_try") 2>&5 3048 ac_status=$? 3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3050 (exit $ac_status); }; }; then 3051 ac_cv_prog_cxx_g=yes 3052 else 3053 echo "$as_me: failed program was:" >&5 3054 sed 's/^/| /' conftest.$ac_ext >&5 3055 3056 CXXFLAGS="" 3057 cat >conftest.$ac_ext <<_ACEOF 3058 /* confdefs.h. */ 3059 _ACEOF 3060 cat confdefs.h >>conftest.$ac_ext 3061 cat >>conftest.$ac_ext <<_ACEOF 3062 /* end confdefs.h. */ 3063 3064 int 3065 main () 3066 { 3067 3068 ; 3069 return 0; 3070 } 3071 _ACEOF 3072 rm -f conftest.$ac_objext 3073 if { (ac_try="$ac_compile" 3074 case "(($ac_try" in 3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3076 *) ac_try_echo=$ac_try;; 3077 esac 3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3079 (eval "$ac_compile") 2>conftest.er1 3080 ac_status=$? 3081 grep -v '^ *+' conftest.er1 >conftest.err 3082 rm -f conftest.er1 3083 cat conftest.err >&5 3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3085 (exit $ac_status); } && 3086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3087 { (case "(($ac_try" in 3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3089 *) ac_try_echo=$ac_try;; 3090 esac 3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3092 (eval "$ac_try") 2>&5 3093 ac_status=$? 3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3095 (exit $ac_status); }; } && 3096 { ac_try='test -s conftest.$ac_objext' 3097 { (case "(($ac_try" in 3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3099 *) ac_try_echo=$ac_try;; 3100 esac 3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3102 (eval "$ac_try") 2>&5 3103 ac_status=$? 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105 (exit $ac_status); }; }; then 3106 : 3107 else 3108 echo "$as_me: failed program was:" >&5 3109 sed 's/^/| /' conftest.$ac_ext >&5 3110 3111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3112 CXXFLAGS="-g" 3113 cat >conftest.$ac_ext <<_ACEOF 3114 /* confdefs.h. */ 3115 _ACEOF 3116 cat confdefs.h >>conftest.$ac_ext 3117 cat >>conftest.$ac_ext <<_ACEOF 3118 /* end confdefs.h. */ 3119 3120 int 3121 main () 3122 { 3123 3124 ; 3125 return 0; 3126 } 3127 _ACEOF 3128 rm -f conftest.$ac_objext 3129 if { (ac_try="$ac_compile" 3130 case "(($ac_try" in 3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3132 *) ac_try_echo=$ac_try;; 3133 esac 3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3135 (eval "$ac_compile") 2>conftest.er1 3136 ac_status=$? 3137 grep -v '^ *+' conftest.er1 >conftest.err 3138 rm -f conftest.er1 3139 cat conftest.err >&5 3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3141 (exit $ac_status); } && 3142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3143 { (case "(($ac_try" in 3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3145 *) ac_try_echo=$ac_try;; 3146 esac 3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3148 (eval "$ac_try") 2>&5 3149 ac_status=$? 3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3151 (exit $ac_status); }; } && 3152 { ac_try='test -s conftest.$ac_objext' 3153 { (case "(($ac_try" in 3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3155 *) ac_try_echo=$ac_try;; 3156 esac 3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3158 (eval "$ac_try") 2>&5 3159 ac_status=$? 3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3161 (exit $ac_status); }; }; then 3162 ac_cv_prog_cxx_g=yes 3163 else 3164 echo "$as_me: failed program was:" >&5 3165 sed 's/^/| /' conftest.$ac_ext >&5 3166 3167 3168 fi 3169 3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3171 fi 3172 3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3174 fi 3175 3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3178 fi 3179 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3180 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3181 if test "$ac_test_CXXFLAGS" = set; then 3182 CXXFLAGS=$ac_save_CXXFLAGS 3183 elif test $ac_cv_prog_cxx_g = yes; then 3184 if test "$GXX" = yes; then 3185 CXXFLAGS="-g -O2" 3186 else 3187 CXXFLAGS="-g" 3188 fi 3189 else 3190 if test "$GXX" = yes; then 3191 CXXFLAGS="-O2" 3192 else 3193 CXXFLAGS= 3194 fi 3195 fi 3196 ac_ext=c 3197 ac_cpp='$CPP $CPPFLAGS' 3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3201 3202 ac_ext=c 3203 ac_cpp='$CPP $CPPFLAGS' 3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3207 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3209 # On Suns, sometimes $CPP names a directory. 3210 if test -n "$CPP" && test -d "$CPP"; then 3211 CPP= 3212 fi 3213 if test -z "$CPP"; then 3214 if test "${ac_cv_prog_CPP+set}" = set; then 3215 echo $ECHO_N "(cached) $ECHO_C" >&6 3216 else 3217 # Double quotes because CPP needs to be expanded 3218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3219 do 3220 ac_preproc_ok=false 3221 for ac_c_preproc_warn_flag in '' yes 3222 do 3223 # Use a header file that comes with gcc, so configuring glibc 3224 # with a fresh cross-compiler works. 3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3226 # <limits.h> exists even on freestanding compilers. 3227 # On the NeXT, cc -E runs the code through the compiler's parser, 3228 # not just through cpp. "Syntax error" is here to catch this case. 3229 cat >conftest.$ac_ext <<_ACEOF 3230 /* confdefs.h. */ 3231 _ACEOF 3232 cat confdefs.h >>conftest.$ac_ext 3233 cat >>conftest.$ac_ext <<_ACEOF 3234 /* end confdefs.h. */ 3235 #ifdef __STDC__ 3236 # include <limits.h> 3237 #else 3238 # include <assert.h> 3239 #endif 3240 Syntax error 3241 _ACEOF 3242 if { (ac_try="$ac_cpp conftest.$ac_ext" 3243 case "(($ac_try" in 3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3245 *) ac_try_echo=$ac_try;; 3246 esac 3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3249 ac_status=$? 3250 grep -v '^ *+' conftest.er1 >conftest.err 3251 rm -f conftest.er1 3252 cat conftest.err >&5 3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3254 (exit $ac_status); } >/dev/null; then 3255 if test -s conftest.err; then 3256 ac_cpp_err=$ac_c_preproc_warn_flag 3257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3258 else 3259 ac_cpp_err= 3260 fi 3261 else 3262 ac_cpp_err=yes 3263 fi 3264 if test -z "$ac_cpp_err"; then 3265 : 3266 else 3267 echo "$as_me: failed program was:" >&5 3268 sed 's/^/| /' conftest.$ac_ext >&5 3269 3270 # Broken: fails on valid input. 3271 continue 3272 fi 3273 3274 rm -f conftest.err conftest.$ac_ext 3275 3276 # OK, works on sane cases. Now check whether nonexistent headers 3277 # can be detected and how. 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 #include <ac_nonexistent.h> 3285 _ACEOF 3286 if { (ac_try="$ac_cpp conftest.$ac_ext" 3287 case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290 esac 3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3293 ac_status=$? 3294 grep -v '^ *+' conftest.er1 >conftest.err 3295 rm -f conftest.er1 3296 cat conftest.err >&5 3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3298 (exit $ac_status); } >/dev/null; then 3299 if test -s conftest.err; then 3300 ac_cpp_err=$ac_c_preproc_warn_flag 3301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3302 else 3303 ac_cpp_err= 3304 fi 3305 else 3306 ac_cpp_err=yes 3307 fi 3308 if test -z "$ac_cpp_err"; then 3309 # Broken: success on invalid input. 3310 continue 3311 else 3312 echo "$as_me: failed program was:" >&5 3313 sed 's/^/| /' conftest.$ac_ext >&5 3314 3315 # Passes both tests. 3316 ac_preproc_ok=: 3317 break 3318 fi 3319 3320 rm -f conftest.err conftest.$ac_ext 3321 3322 done 3323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3324 rm -f conftest.err conftest.$ac_ext 3325 if $ac_preproc_ok; then 3326 break 3327 fi 3328 3329 done 3330 ac_cv_prog_CPP=$CPP 3331 3332 fi 3333 CPP=$ac_cv_prog_CPP 3334 else 3335 ac_cv_prog_CPP=$CPP 3336 fi 3337 { echo "$as_me:$LINENO: result: $CPP" >&5 3338 echo "${ECHO_T}$CPP" >&6; } 3339 ac_preproc_ok=false 3340 for ac_c_preproc_warn_flag in '' yes 3341 do 3342 # Use a header file that comes with gcc, so configuring glibc 3343 # with a fresh cross-compiler works. 3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3345 # <limits.h> exists even on freestanding compilers. 3346 # On the NeXT, cc -E runs the code through the compiler's parser, 3347 # not just through cpp. "Syntax error" is here to catch this case. 3348 cat >conftest.$ac_ext <<_ACEOF 3349 /* confdefs.h. */ 3350 _ACEOF 3351 cat confdefs.h >>conftest.$ac_ext 3352 cat >>conftest.$ac_ext <<_ACEOF 3353 /* end confdefs.h. */ 3354 #ifdef __STDC__ 3355 # include <limits.h> 3356 #else 3357 # include <assert.h> 3358 #endif 3359 Syntax error 3360 _ACEOF 3361 if { (ac_try="$ac_cpp conftest.$ac_ext" 3362 case "(($ac_try" in 3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3364 *) ac_try_echo=$ac_try;; 3365 esac 3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3368 ac_status=$? 3369 grep -v '^ *+' conftest.er1 >conftest.err 3370 rm -f conftest.er1 3371 cat conftest.err >&5 3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3373 (exit $ac_status); } >/dev/null; then 3374 if test -s conftest.err; then 3375 ac_cpp_err=$ac_c_preproc_warn_flag 3376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3377 else 3378 ac_cpp_err= 3379 fi 3380 else 3381 ac_cpp_err=yes 3382 fi 3383 if test -z "$ac_cpp_err"; then 3384 : 3385 else 3386 echo "$as_me: failed program was:" >&5 3387 sed 's/^/| /' conftest.$ac_ext >&5 3388 3389 # Broken: fails on valid input. 3390 continue 3391 fi 3392 3393 rm -f conftest.err conftest.$ac_ext 3394 3395 # OK, works on sane cases. Now check whether nonexistent headers 3396 # can be detected and how. 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 #include <ac_nonexistent.h> 3404 _ACEOF 3405 if { (ac_try="$ac_cpp conftest.$ac_ext" 3406 case "(($ac_try" in 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3408 *) ac_try_echo=$ac_try;; 3409 esac 3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3412 ac_status=$? 3413 grep -v '^ *+' conftest.er1 >conftest.err 3414 rm -f conftest.er1 3415 cat conftest.err >&5 3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3417 (exit $ac_status); } >/dev/null; then 3418 if test -s conftest.err; then 3419 ac_cpp_err=$ac_c_preproc_warn_flag 3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3421 else 3422 ac_cpp_err= 3423 fi 3424 else 3425 ac_cpp_err=yes 3426 fi 3427 if test -z "$ac_cpp_err"; then 3428 # Broken: success on invalid input. 3429 continue 3430 else 3431 echo "$as_me: failed program was:" >&5 3432 sed 's/^/| /' conftest.$ac_ext >&5 3433 3434 # Passes both tests. 3435 ac_preproc_ok=: 3436 break 3437 fi 3438 3439 rm -f conftest.err conftest.$ac_ext 3440 3441 done 3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3443 rm -f conftest.err conftest.$ac_ext 3444 if $ac_preproc_ok; then 3445 : 3446 else 3447 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3448 See \`config.log' for more details." >&5 3449 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3450 See \`config.log' for more details." >&2;} 3451 { (exit 1); exit 1; }; } 3452 fi 3453 3454 ac_ext=c 3455 ac_cpp='$CPP $CPPFLAGS' 3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3459 3460 3461 3462 3463 # Check whether --enable-polly was given. 3464 if test "${enable_polly+set}" = set; then 3465 enableval=$enable_polly; 3466 else 3467 enableval=default 3468 fi 3469 3470 case "$enableval" in 3471 yes) ENABLE_POLLY=1 3472 ;; 3473 no) ENABLE_POLLY=0 3474 ;; 3475 default) ENABLE_POLLY=1 3476 ;; 3477 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3478 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3479 { (exit 1); exit 1; }; } ;; 3480 esac 3481 3482 3483 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3484 LLVM_HAS_POLLY=1 3485 3486 subdirs="$subdirs tools/polly" 3487 3488 fi 3489 3490 3491 # Make sure we can run config.sub. 3492 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3493 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3494 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3495 { (exit 1); exit 1; }; } 3496 3497 { echo "$as_me:$LINENO: checking build system type" >&5 3498 echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3499 if test "${ac_cv_build+set}" = set; then 3500 echo $ECHO_N "(cached) $ECHO_C" >&6 3501 else 3502 ac_build_alias=$build_alias 3503 test "x$ac_build_alias" = x && 3504 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3505 test "x$ac_build_alias" = x && 3506 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3507 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3508 { (exit 1); exit 1; }; } 3509 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3510 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3511 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3512 { (exit 1); exit 1; }; } 3513 3514 fi 3515 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3516 echo "${ECHO_T}$ac_cv_build" >&6; } 3517 case $ac_cv_build in 3518 *-*-*) ;; 3519 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3520 echo "$as_me: error: invalid value of canonical build" >&2;} 3521 { (exit 1); exit 1; }; };; 3522 esac 3523 build=$ac_cv_build 3524 ac_save_IFS=$IFS; IFS='-' 3525 set x $ac_cv_build 3526 shift 3527 build_cpu=$1 3528 build_vendor=$2 3529 shift; shift 3530 # Remember, the first character of IFS is used to create $*, 3531 # except with old shells: 3532 build_os=$* 3533 IFS=$ac_save_IFS 3534 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3535 3536 3537 { echo "$as_me:$LINENO: checking host system type" >&5 3538 echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3539 if test "${ac_cv_host+set}" = set; then 3540 echo $ECHO_N "(cached) $ECHO_C" >&6 3541 else 3542 if test "x$host_alias" = x; then 3543 ac_cv_host=$ac_cv_build 3544 else 3545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3546 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3547 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3548 { (exit 1); exit 1; }; } 3549 fi 3550 3551 fi 3552 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3553 echo "${ECHO_T}$ac_cv_host" >&6; } 3554 case $ac_cv_host in 3555 *-*-*) ;; 3556 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3557 echo "$as_me: error: invalid value of canonical host" >&2;} 3558 { (exit 1); exit 1; }; };; 3559 esac 3560 host=$ac_cv_host 3561 ac_save_IFS=$IFS; IFS='-' 3562 set x $ac_cv_host 3563 shift 3564 host_cpu=$1 3565 host_vendor=$2 3566 shift; shift 3567 # Remember, the first character of IFS is used to create $*, 3568 # except with old shells: 3569 host_os=$* 3570 IFS=$ac_save_IFS 3571 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3572 3573 3574 { echo "$as_me:$LINENO: checking target system type" >&5 3575 echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3576 if test "${ac_cv_target+set}" = set; then 3577 echo $ECHO_N "(cached) $ECHO_C" >&6 3578 else 3579 if test "x$target_alias" = x; then 3580 ac_cv_target=$ac_cv_host 3581 else 3582 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3583 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3584 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3585 { (exit 1); exit 1; }; } 3586 fi 3587 3588 fi 3589 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3590 echo "${ECHO_T}$ac_cv_target" >&6; } 3591 case $ac_cv_target in 3592 *-*-*) ;; 3593 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3594 echo "$as_me: error: invalid value of canonical target" >&2;} 3595 { (exit 1); exit 1; }; };; 3596 esac 3597 target=$ac_cv_target 3598 ac_save_IFS=$IFS; IFS='-' 3599 set x $ac_cv_target 3600 shift 3601 target_cpu=$1 3602 target_vendor=$2 3603 shift; shift 3604 # Remember, the first character of IFS is used to create $*, 3605 # except with old shells: 3606 target_os=$* 3607 IFS=$ac_save_IFS 3608 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3609 3610 3611 # The aliases save the names the user supplied, while $host etc. 3612 # will get canonicalized. 3613 test -n "$target_alias" && 3614 test "$program_prefix$program_suffix$program_transform_name" = \ 3615 NONENONEs,x,x, && 3616 program_prefix=${target_alias}- 3617 3618 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3619 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3620 if test "${llvm_cv_os_type+set}" = set; then 3621 echo $ECHO_N "(cached) $ECHO_C" >&6 3622 else 3623 case $host in 3624 *-*-aix*) 3625 llvm_cv_link_all_option="-Wl,--whole-archive" 3626 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3627 llvm_cv_os_type="AIX" 3628 llvm_cv_platform_type="Unix" ;; 3629 *-*-irix*) 3630 llvm_cv_link_all_option="-Wl,--whole-archive" 3631 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3632 llvm_cv_os_type="IRIX" 3633 llvm_cv_platform_type="Unix" ;; 3634 *-*-cygwin*) 3635 llvm_cv_link_all_option="-Wl,--whole-archive" 3636 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3637 llvm_cv_os_type="Cygwin" 3638 llvm_cv_platform_type="Unix" ;; 3639 *-*-darwin*) 3640 llvm_cv_link_all_option="-Wl,-all_load" 3641 llvm_cv_no_link_all_option="-Wl,-noall_load" 3642 llvm_cv_os_type="Darwin" 3643 llvm_cv_platform_type="Unix" ;; 3644 *-*-minix*) 3645 llvm_cv_link_all_option="-Wl,-all_load" 3646 llvm_cv_no_link_all_option="-Wl,-noall_load" 3647 llvm_cv_os_type="Minix" 3648 llvm_cv_platform_type="Unix" ;; 3649 *-*-freebsd* | *-*-kfreebsd-gnu) 3650 llvm_cv_link_all_option="-Wl,--whole-archive" 3651 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3652 llvm_cv_os_type="FreeBSD" 3653 llvm_cv_platform_type="Unix" ;; 3654 *-*-openbsd*) 3655 llvm_cv_link_all_option="-Wl,--whole-archive" 3656 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3657 llvm_cv_os_type="OpenBSD" 3658 llvm_cv_platform_type="Unix" ;; 3659 *-*-netbsd*) 3660 llvm_cv_link_all_option="-Wl,--whole-archive" 3661 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3662 llvm_cv_os_type="NetBSD" 3663 llvm_cv_platform_type="Unix" ;; 3664 *-*-dragonfly*) 3665 llvm_cv_link_all_option="-Wl,--whole-archive" 3666 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3667 llvm_cv_os_type="DragonFly" 3668 llvm_cv_platform_type="Unix" ;; 3669 *-*-hpux*) 3670 llvm_cv_link_all_option="-Wl,--whole-archive" 3671 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3672 llvm_cv_os_type="HP-UX" 3673 llvm_cv_platform_type="Unix" ;; 3674 *-*-interix*) 3675 llvm_cv_link_all_option="-Wl,--whole-archive" 3676 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3677 llvm_cv_os_type="Interix" 3678 llvm_cv_platform_type="Unix" ;; 3679 *-*-linux*) 3680 llvm_cv_link_all_option="-Wl,--whole-archive" 3681 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3682 llvm_cv_os_type="Linux" 3683 llvm_cv_platform_type="Unix" ;; 3684 *-*-gnu*) 3685 llvm_cv_link_all_option="-Wl,--whole-archive" 3686 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3687 llvm_cv_os_type="GNU" 3688 llvm_cv_platform_type="Unix" ;; 3689 *-*-solaris*) 3690 llvm_cv_link_all_option="-Wl,-z,allextract" 3691 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3692 llvm_cv_os_type="SunOS" 3693 llvm_cv_platform_type="Unix" ;; 3694 *-*-auroraux*) 3695 llvm_cv_link_all_option="-Wl,-z,allextract" 3696 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3697 llvm_cv_os_type="AuroraUX" 3698 llvm_cv_platform_type="Unix" ;; 3699 *-*-win32*) 3700 llvm_cv_link_all_option="-Wl,--whole-archive" 3701 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3702 llvm_cv_os_type="Win32" 3703 llvm_cv_platform_type="Win32" ;; 3704 *-*-mingw*) 3705 llvm_cv_link_all_option="-Wl,--whole-archive" 3706 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3707 llvm_cv_os_type="MingW" 3708 llvm_cv_platform_type="Win32" ;; 3709 *-*-haiku*) 3710 llvm_cv_link_all_option="-Wl,--whole-archive" 3711 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3712 llvm_cv_os_type="Haiku" 3713 llvm_cv_platform_type="Unix" ;; 3714 *-unknown-eabi*) 3715 llvm_cv_link_all_option="-Wl,--whole-archive" 3716 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3717 llvm_cv_os_type="Freestanding" 3718 llvm_cv_platform_type="Unix" ;; 3719 *-unknown-elf*) 3720 llvm_cv_link_all_option="-Wl,--whole-archive" 3721 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3722 llvm_cv_os_type="Freestanding" 3723 llvm_cv_platform_type="Unix" ;; 3724 *) 3725 llvm_cv_link_all_option="" 3726 llvm_cv_no_link_all_option="" 3727 llvm_cv_os_type="Unknown" 3728 llvm_cv_platform_type="Unknown" ;; 3729 esac 3730 fi 3731 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3732 echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3733 3734 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3735 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3736 if test "${llvm_cv_target_os_type+set}" = set; then 3737 echo $ECHO_N "(cached) $ECHO_C" >&6 3738 else 3739 case $target in 3740 *-*-aix*) 3741 llvm_cv_target_os_type="AIX" ;; 3742 *-*-irix*) 3743 llvm_cv_target_os_type="IRIX" ;; 3744 *-*-cygwin*) 3745 llvm_cv_target_os_type="Cygwin" ;; 3746 *-*-darwin*) 3747 llvm_cv_target_os_type="Darwin" ;; 3748 *-*-minix*) 3749 llvm_cv_target_os_type="Minix" ;; 3750 *-*-freebsd* | *-*-kfreebsd-gnu) 3751 llvm_cv_target_os_type="FreeBSD" ;; 3752 *-*-openbsd*) 3753 llvm_cv_target_os_type="OpenBSD" ;; 3754 *-*-netbsd*) 3755 llvm_cv_target_os_type="NetBSD" ;; 3756 *-*-dragonfly*) 3757 llvm_cv_target_os_type="DragonFly" ;; 3758 *-*-hpux*) 3759 llvm_cv_target_os_type="HP-UX" ;; 3760 *-*-interix*) 3761 llvm_cv_target_os_type="Interix" ;; 3762 *-*-linux*) 3763 llvm_cv_target_os_type="Linux" ;; 3764 *-*-gnu*) 3765 llvm_cv_target_os_type="GNU" ;; 3766 *-*-solaris*) 3767 llvm_cv_target_os_type="SunOS" ;; 3768 *-*-auroraux*) 3769 llvm_cv_target_os_type="AuroraUX" ;; 3770 *-*-win32*) 3771 llvm_cv_target_os_type="Win32" ;; 3772 *-*-mingw*) 3773 llvm_cv_target_os_type="MingW" ;; 3774 *-*-haiku*) 3775 llvm_cv_target_os_type="Haiku" ;; 3776 *-*-rtems*) 3777 llvm_cv_target_os_type="RTEMS" ;; 3778 *-*-nacl*) 3779 llvm_cv_target_os_type="NativeClient" ;; 3780 *-unknown-eabi*) 3781 llvm_cv_target_os_type="Freestanding" ;; 3782 *) 3783 llvm_cv_target_os_type="Unknown" ;; 3784 esac 3785 fi 3786 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3787 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3788 3789 if test "$llvm_cv_os_type" = "Unknown" ; then 3790 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3791 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3792 { (exit 1); exit 1; }; } 3793 fi 3794 3795 OS=$llvm_cv_os_type 3796 3797 HOST_OS=$llvm_cv_os_type 3798 3799 TARGET_OS=$llvm_cv_target_os_type 3800 3801 3802 LINKALL=$llvm_cv_link_all_option 3803 3804 NOLINKALL=$llvm_cv_no_link_all_option 3805 3806 3807 case $llvm_cv_platform_type in 3808 Unix) 3809 3810 cat >>confdefs.h <<\_ACEOF 3811 #define LLVM_ON_UNIX 1 3812 _ACEOF 3813 3814 LLVM_ON_UNIX=1 3815 3816 LLVM_ON_WIN32=0 3817 3818 ;; 3819 Win32) 3820 3821 cat >>confdefs.h <<\_ACEOF 3822 #define LLVM_ON_WIN32 1 3823 _ACEOF 3824 3825 LLVM_ON_UNIX=0 3826 3827 LLVM_ON_WIN32=1 3828 3829 ;; 3830 esac 3831 3832 { echo "$as_me:$LINENO: checking target architecture" >&5 3833 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 3834 if test "${llvm_cv_target_arch+set}" = set; then 3835 echo $ECHO_N "(cached) $ECHO_C" >&6 3836 else 3837 case $target in 3838 i?86-*) llvm_cv_target_arch="x86" ;; 3839 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 3840 sparc*-*) llvm_cv_target_arch="Sparc" ;; 3841 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 3842 arm*-*) llvm_cv_target_arch="ARM" ;; 3843 mips-*) llvm_cv_target_arch="Mips" ;; 3844 mipsel-*) llvm_cv_target_arch="Mips" ;; 3845 xcore-*) llvm_cv_target_arch="XCore" ;; 3846 msp430-*) llvm_cv_target_arch="MSP430" ;; 3847 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 3848 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 3849 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 3850 *) llvm_cv_target_arch="Unknown" ;; 3851 esac 3852 fi 3853 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 3854 echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 3855 3856 if test "$llvm_cv_target_arch" = "Unknown" ; then 3857 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 3858 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 3859 fi 3860 3861 # Determine the LLVM native architecture for the target 3862 case "$llvm_cv_target_arch" in 3863 x86) LLVM_NATIVE_ARCH="X86" ;; 3864 x86_64) LLVM_NATIVE_ARCH="X86" ;; 3865 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 3866 esac 3867 3868 ARCH=$llvm_cv_target_arch 3869 3870 3871 3872 3873 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3874 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3875 if test "${ac_cv_path_GREP+set}" = set; then 3876 echo $ECHO_N "(cached) $ECHO_C" >&6 3877 else 3878 # Extract the first word of "grep ggrep" to use in msg output 3879 if test -z "$GREP"; then 3880 set dummy grep ggrep; ac_prog_name=$2 3881 if test "${ac_cv_path_GREP+set}" = set; then 3882 echo $ECHO_N "(cached) $ECHO_C" >&6 3883 else 3884 ac_path_GREP_found=false 3885 # Loop through the user's path and test for each of PROGNAME-LIST 3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3888 do 3889 IFS=$as_save_IFS 3890 test -z "$as_dir" && as_dir=. 3891 for ac_prog in grep ggrep; do 3892 for ac_exec_ext in '' $ac_executable_extensions; do 3893 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3894 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3895 # Check for GNU ac_path_GREP and select it if it is found. 3896 # Check for GNU $ac_path_GREP 3897 case `"$ac_path_GREP" --version 2>&1` in 3898 *GNU*) 3899 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3900 *) 3901 ac_count=0 3902 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3903 while : 3904 do 3905 cat "conftest.in" "conftest.in" >"conftest.tmp" 3906 mv "conftest.tmp" "conftest.in" 3907 cp "conftest.in" "conftest.nl" 3908 echo 'GREP' >> "conftest.nl" 3909 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3911 ac_count=`expr $ac_count + 1` 3912 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3913 # Best one so far, save it but keep looking for a better one 3914 ac_cv_path_GREP="$ac_path_GREP" 3915 ac_path_GREP_max=$ac_count 3916 fi 3917 # 10*(2^10) chars as input seems more than enough 3918 test $ac_count -gt 10 && break 3919 done 3920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3921 esac 3922 3923 3924 $ac_path_GREP_found && break 3 3925 done 3926 done 3927 3928 done 3929 IFS=$as_save_IFS 3930 3931 3932 fi 3933 3934 GREP="$ac_cv_path_GREP" 3935 if test -z "$GREP"; then 3936 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3937 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3938 { (exit 1); exit 1; }; } 3939 fi 3940 3941 else 3942 ac_cv_path_GREP=$GREP 3943 fi 3944 3945 3946 fi 3947 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3948 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3949 GREP="$ac_cv_path_GREP" 3950 3951 3952 { echo "$as_me:$LINENO: checking for egrep" >&5 3953 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3954 if test "${ac_cv_path_EGREP+set}" = set; then 3955 echo $ECHO_N "(cached) $ECHO_C" >&6 3956 else 3957 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3958 then ac_cv_path_EGREP="$GREP -E" 3959 else 3960 # Extract the first word of "egrep" to use in msg output 3961 if test -z "$EGREP"; then 3962 set dummy egrep; ac_prog_name=$2 3963 if test "${ac_cv_path_EGREP+set}" = set; then 3964 echo $ECHO_N "(cached) $ECHO_C" >&6 3965 else 3966 ac_path_EGREP_found=false 3967 # Loop through the user's path and test for each of PROGNAME-LIST 3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3969 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3970 do 3971 IFS=$as_save_IFS 3972 test -z "$as_dir" && as_dir=. 3973 for ac_prog in egrep; do 3974 for ac_exec_ext in '' $ac_executable_extensions; do 3975 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3976 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3977 # Check for GNU ac_path_EGREP and select it if it is found. 3978 # Check for GNU $ac_path_EGREP 3979 case `"$ac_path_EGREP" --version 2>&1` in 3980 *GNU*) 3981 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3982 *) 3983 ac_count=0 3984 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3985 while : 3986 do 3987 cat "conftest.in" "conftest.in" >"conftest.tmp" 3988 mv "conftest.tmp" "conftest.in" 3989 cp "conftest.in" "conftest.nl" 3990 echo 'EGREP' >> "conftest.nl" 3991 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3993 ac_count=`expr $ac_count + 1` 3994 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3995 # Best one so far, save it but keep looking for a better one 3996 ac_cv_path_EGREP="$ac_path_EGREP" 3997 ac_path_EGREP_max=$ac_count 3998 fi 3999 # 10*(2^10) chars as input seems more than enough 4000 test $ac_count -gt 10 && break 4001 done 4002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4003 esac 4004 4005 4006 $ac_path_EGREP_found && break 3 4007 done 4008 done 4009 4010 done 4011 IFS=$as_save_IFS 4012 4013 4014 fi 4015 4016 EGREP="$ac_cv_path_EGREP" 4017 if test -z "$EGREP"; then 4018 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4019 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4020 { (exit 1); exit 1; }; } 4021 fi 4022 4023 else 4024 ac_cv_path_EGREP=$EGREP 4025 fi 4026 4027 4028 fi 4029 fi 4030 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4031 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4032 EGREP="$ac_cv_path_EGREP" 4033 4034 4035 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4036 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4037 if test "${ac_cv_header_stdc+set}" = set; then 4038 echo $ECHO_N "(cached) $ECHO_C" >&6 4039 else 4040 cat >conftest.$ac_ext <<_ACEOF 4041 /* confdefs.h. */ 4042 _ACEOF 4043 cat confdefs.h >>conftest.$ac_ext 4044 cat >>conftest.$ac_ext <<_ACEOF 4045 /* end confdefs.h. */ 4046 #include <stdlib.h> 4047 #include <stdarg.h> 4048 #include <string.h> 4049 #include <float.h> 4050 4051 int 4052 main () 4053 { 4054 4055 ; 4056 return 0; 4057 } 4058 _ACEOF 4059 rm -f conftest.$ac_objext 4060 if { (ac_try="$ac_compile" 4061 case "(($ac_try" in 4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4063 *) ac_try_echo=$ac_try;; 4064 esac 4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4066 (eval "$ac_compile") 2>conftest.er1 4067 ac_status=$? 4068 grep -v '^ *+' conftest.er1 >conftest.err 4069 rm -f conftest.er1 4070 cat conftest.err >&5 4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4072 (exit $ac_status); } && 4073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4074 { (case "(($ac_try" in 4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4076 *) ac_try_echo=$ac_try;; 4077 esac 4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4079 (eval "$ac_try") 2>&5 4080 ac_status=$? 4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4082 (exit $ac_status); }; } && 4083 { ac_try='test -s conftest.$ac_objext' 4084 { (case "(($ac_try" in 4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4086 *) ac_try_echo=$ac_try;; 4087 esac 4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4089 (eval "$ac_try") 2>&5 4090 ac_status=$? 4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4092 (exit $ac_status); }; }; then 4093 ac_cv_header_stdc=yes 4094 else 4095 echo "$as_me: failed program was:" >&5 4096 sed 's/^/| /' conftest.$ac_ext >&5 4097 4098 ac_cv_header_stdc=no 4099 fi 4100 4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4102 4103 if test $ac_cv_header_stdc = yes; then 4104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4105 cat >conftest.$ac_ext <<_ACEOF 4106 /* confdefs.h. */ 4107 _ACEOF 4108 cat confdefs.h >>conftest.$ac_ext 4109 cat >>conftest.$ac_ext <<_ACEOF 4110 /* end confdefs.h. */ 4111 #include <string.h> 4112 4113 _ACEOF 4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4115 $EGREP "memchr" >/dev/null 2>&1; then 4116 : 4117 else 4118 ac_cv_header_stdc=no 4119 fi 4120 rm -f conftest* 4121 4122 fi 4123 4124 if test $ac_cv_header_stdc = yes; then 4125 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4126 cat >conftest.$ac_ext <<_ACEOF 4127 /* confdefs.h. */ 4128 _ACEOF 4129 cat confdefs.h >>conftest.$ac_ext 4130 cat >>conftest.$ac_ext <<_ACEOF 4131 /* end confdefs.h. */ 4132 #include <stdlib.h> 4133 4134 _ACEOF 4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4136 $EGREP "free" >/dev/null 2>&1; then 4137 : 4138 else 4139 ac_cv_header_stdc=no 4140 fi 4141 rm -f conftest* 4142 4143 fi 4144 4145 if test $ac_cv_header_stdc = yes; then 4146 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4147 if test "$cross_compiling" = yes; then 4148 : 4149 else 4150 cat >conftest.$ac_ext <<_ACEOF 4151 /* confdefs.h. */ 4152 _ACEOF 4153 cat confdefs.h >>conftest.$ac_ext 4154 cat >>conftest.$ac_ext <<_ACEOF 4155 /* end confdefs.h. */ 4156 #include <ctype.h> 4157 #include <stdlib.h> 4158 #if ((' ' & 0x0FF) == 0x020) 4159 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4160 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4161 #else 4162 # define ISLOWER(c) \ 4163 (('a' <= (c) && (c) <= 'i') \ 4164 || ('j' <= (c) && (c) <= 'r') \ 4165 || ('s' <= (c) && (c) <= 'z')) 4166 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4167 #endif 4168 4169 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4170 int 4171 main () 4172 { 4173 int i; 4174 for (i = 0; i < 256; i++) 4175 if (XOR (islower (i), ISLOWER (i)) 4176 || toupper (i) != TOUPPER (i)) 4177 return 2; 4178 return 0; 4179 } 4180 _ACEOF 4181 rm -f conftest$ac_exeext 4182 if { (ac_try="$ac_link" 4183 case "(($ac_try" in 4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4185 *) ac_try_echo=$ac_try;; 4186 esac 4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4188 (eval "$ac_link") 2>&5 4189 ac_status=$? 4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4192 { (case "(($ac_try" in 4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4194 *) ac_try_echo=$ac_try;; 4195 esac 4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4197 (eval "$ac_try") 2>&5 4198 ac_status=$? 4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4200 (exit $ac_status); }; }; then 4201 : 4202 else 4203 echo "$as_me: program exited with status $ac_status" >&5 4204 echo "$as_me: failed program was:" >&5 4205 sed 's/^/| /' conftest.$ac_ext >&5 4206 4207 ( exit $ac_status ) 4208 ac_cv_header_stdc=no 4209 fi 4210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4211 fi 4212 4213 4214 fi 4215 fi 4216 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4217 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4218 if test $ac_cv_header_stdc = yes; then 4219 4220 cat >>confdefs.h <<\_ACEOF 4221 #define STDC_HEADERS 1 4222 _ACEOF 4223 4224 fi 4225 4226 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4237 inttypes.h stdint.h unistd.h 4238 do 4239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4240 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4243 echo $ECHO_N "(cached) $ECHO_C" >&6 4244 else 4245 cat >conftest.$ac_ext <<_ACEOF 4246 /* confdefs.h. */ 4247 _ACEOF 4248 cat confdefs.h >>conftest.$ac_ext 4249 cat >>conftest.$ac_ext <<_ACEOF 4250 /* end confdefs.h. */ 4251 $ac_includes_default 4252 4253 #include <$ac_header> 4254 _ACEOF 4255 rm -f conftest.$ac_objext 4256 if { (ac_try="$ac_compile" 4257 case "(($ac_try" in 4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4259 *) ac_try_echo=$ac_try;; 4260 esac 4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4262 (eval "$ac_compile") 2>conftest.er1 4263 ac_status=$? 4264 grep -v '^ *+' conftest.er1 >conftest.err 4265 rm -f conftest.er1 4266 cat conftest.err >&5 4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4268 (exit $ac_status); } && 4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4270 { (case "(($ac_try" in 4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4272 *) ac_try_echo=$ac_try;; 4273 esac 4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4275 (eval "$ac_try") 2>&5 4276 ac_status=$? 4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4278 (exit $ac_status); }; } && 4279 { ac_try='test -s conftest.$ac_objext' 4280 { (case "(($ac_try" in 4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4282 *) ac_try_echo=$ac_try;; 4283 esac 4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4285 (eval "$ac_try") 2>&5 4286 ac_status=$? 4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4288 (exit $ac_status); }; }; then 4289 eval "$as_ac_Header=yes" 4290 else 4291 echo "$as_me: failed program was:" >&5 4292 sed 's/^/| /' conftest.$ac_ext >&5 4293 4294 eval "$as_ac_Header=no" 4295 fi 4296 4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4298 fi 4299 ac_res=`eval echo '${'$as_ac_Header'}'` 4300 { echo "$as_me:$LINENO: result: $ac_res" >&5 4301 echo "${ECHO_T}$ac_res" >&6; } 4302 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4303 cat >>confdefs.h <<_ACEOF 4304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4305 _ACEOF 4306 4307 fi 4308 4309 done 4310 4311 4312 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4313 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4314 if test "${ac_cv_c_bigendian+set}" = set; then 4315 echo $ECHO_N "(cached) $ECHO_C" >&6 4316 else 4317 # See if sys/param.h defines the BYTE_ORDER macro. 4318 cat >conftest.$ac_ext <<_ACEOF 4319 /* confdefs.h. */ 4320 _ACEOF 4321 cat confdefs.h >>conftest.$ac_ext 4322 cat >>conftest.$ac_ext <<_ACEOF 4323 /* end confdefs.h. */ 4324 #include <sys/types.h> 4325 #include <sys/param.h> 4326 4327 int 4328 main () 4329 { 4330 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4331 bogus endian macros 4332 #endif 4333 4334 ; 4335 return 0; 4336 } 4337 _ACEOF 4338 rm -f conftest.$ac_objext 4339 if { (ac_try="$ac_compile" 4340 case "(($ac_try" in 4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4342 *) ac_try_echo=$ac_try;; 4343 esac 4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4345 (eval "$ac_compile") 2>conftest.er1 4346 ac_status=$? 4347 grep -v '^ *+' conftest.er1 >conftest.err 4348 rm -f conftest.er1 4349 cat conftest.err >&5 4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4351 (exit $ac_status); } && 4352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4353 { (case "(($ac_try" in 4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4355 *) ac_try_echo=$ac_try;; 4356 esac 4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4358 (eval "$ac_try") 2>&5 4359 ac_status=$? 4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4361 (exit $ac_status); }; } && 4362 { ac_try='test -s conftest.$ac_objext' 4363 { (case "(($ac_try" in 4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4365 *) ac_try_echo=$ac_try;; 4366 esac 4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4368 (eval "$ac_try") 2>&5 4369 ac_status=$? 4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4371 (exit $ac_status); }; }; then 4372 # It does; now see whether it defined to BIG_ENDIAN or not. 4373 cat >conftest.$ac_ext <<_ACEOF 4374 /* confdefs.h. */ 4375 _ACEOF 4376 cat confdefs.h >>conftest.$ac_ext 4377 cat >>conftest.$ac_ext <<_ACEOF 4378 /* end confdefs.h. */ 4379 #include <sys/types.h> 4380 #include <sys/param.h> 4381 4382 int 4383 main () 4384 { 4385 #if BYTE_ORDER != BIG_ENDIAN 4386 not big endian 4387 #endif 4388 4389 ; 4390 return 0; 4391 } 4392 _ACEOF 4393 rm -f conftest.$ac_objext 4394 if { (ac_try="$ac_compile" 4395 case "(($ac_try" in 4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4397 *) ac_try_echo=$ac_try;; 4398 esac 4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4400 (eval "$ac_compile") 2>conftest.er1 4401 ac_status=$? 4402 grep -v '^ *+' conftest.er1 >conftest.err 4403 rm -f conftest.er1 4404 cat conftest.err >&5 4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4406 (exit $ac_status); } && 4407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4408 { (case "(($ac_try" in 4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4410 *) ac_try_echo=$ac_try;; 4411 esac 4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4413 (eval "$ac_try") 2>&5 4414 ac_status=$? 4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4416 (exit $ac_status); }; } && 4417 { ac_try='test -s conftest.$ac_objext' 4418 { (case "(($ac_try" in 4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4420 *) ac_try_echo=$ac_try;; 4421 esac 4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4423 (eval "$ac_try") 2>&5 4424 ac_status=$? 4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4426 (exit $ac_status); }; }; then 4427 ac_cv_c_bigendian=yes 4428 else 4429 echo "$as_me: failed program was:" >&5 4430 sed 's/^/| /' conftest.$ac_ext >&5 4431 4432 ac_cv_c_bigendian=no 4433 fi 4434 4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4436 else 4437 echo "$as_me: failed program was:" >&5 4438 sed 's/^/| /' conftest.$ac_ext >&5 4439 4440 # It does not; compile a test program. 4441 if test "$cross_compiling" = yes; then 4442 # try to guess the endianness by grepping values into an object file 4443 ac_cv_c_bigendian=unknown 4444 cat >conftest.$ac_ext <<_ACEOF 4445 /* confdefs.h. */ 4446 _ACEOF 4447 cat confdefs.h >>conftest.$ac_ext 4448 cat >>conftest.$ac_ext <<_ACEOF 4449 /* end confdefs.h. */ 4450 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4451 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4452 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4453 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4454 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4455 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4456 int 4457 main () 4458 { 4459 _ascii (); _ebcdic (); 4460 ; 4461 return 0; 4462 } 4463 _ACEOF 4464 rm -f conftest.$ac_objext 4465 if { (ac_try="$ac_compile" 4466 case "(($ac_try" in 4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4468 *) ac_try_echo=$ac_try;; 4469 esac 4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4471 (eval "$ac_compile") 2>conftest.er1 4472 ac_status=$? 4473 grep -v '^ *+' conftest.er1 >conftest.err 4474 rm -f conftest.er1 4475 cat conftest.err >&5 4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4477 (exit $ac_status); } && 4478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4479 { (case "(($ac_try" in 4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4481 *) ac_try_echo=$ac_try;; 4482 esac 4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4484 (eval "$ac_try") 2>&5 4485 ac_status=$? 4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4487 (exit $ac_status); }; } && 4488 { ac_try='test -s conftest.$ac_objext' 4489 { (case "(($ac_try" in 4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4491 *) ac_try_echo=$ac_try;; 4492 esac 4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4494 (eval "$ac_try") 2>&5 4495 ac_status=$? 4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4497 (exit $ac_status); }; }; then 4498 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4499 ac_cv_c_bigendian=yes 4500 fi 4501 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4502 if test "$ac_cv_c_bigendian" = unknown; then 4503 ac_cv_c_bigendian=no 4504 else 4505 # finding both strings is unlikely to happen, but who knows? 4506 ac_cv_c_bigendian=unknown 4507 fi 4508 fi 4509 else 4510 echo "$as_me: failed program was:" >&5 4511 sed 's/^/| /' conftest.$ac_ext >&5 4512 4513 4514 fi 4515 4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4517 else 4518 cat >conftest.$ac_ext <<_ACEOF 4519 /* confdefs.h. */ 4520 _ACEOF 4521 cat confdefs.h >>conftest.$ac_ext 4522 cat >>conftest.$ac_ext <<_ACEOF 4523 /* end confdefs.h. */ 4524 $ac_includes_default 4525 int 4526 main () 4527 { 4528 4529 /* Are we little or big endian? From Harbison&Steele. */ 4530 union 4531 { 4532 long int l; 4533 char c[sizeof (long int)]; 4534 } u; 4535 u.l = 1; 4536 return u.c[sizeof (long int) - 1] == 1; 4537 4538 ; 4539 return 0; 4540 } 4541 _ACEOF 4542 rm -f conftest$ac_exeext 4543 if { (ac_try="$ac_link" 4544 case "(($ac_try" in 4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4546 *) ac_try_echo=$ac_try;; 4547 esac 4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4549 (eval "$ac_link") 2>&5 4550 ac_status=$? 4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4553 { (case "(($ac_try" in 4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4555 *) ac_try_echo=$ac_try;; 4556 esac 4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4558 (eval "$ac_try") 2>&5 4559 ac_status=$? 4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 (exit $ac_status); }; }; then 4562 ac_cv_c_bigendian=no 4563 else 4564 echo "$as_me: program exited with status $ac_status" >&5 4565 echo "$as_me: failed program was:" >&5 4566 sed 's/^/| /' conftest.$ac_ext >&5 4567 4568 ( exit $ac_status ) 4569 ac_cv_c_bigendian=yes 4570 fi 4571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4572 fi 4573 4574 4575 fi 4576 4577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4578 fi 4579 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4580 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4581 case $ac_cv_c_bigendian in 4582 yes) 4583 ENDIAN=big 4584 ;; 4585 no) 4586 ENDIAN=little 4587 ;; 4588 *) 4589 { { echo "$as_me:$LINENO: error: unknown endianness 4590 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4591 echo "$as_me: error: unknown endianness 4592 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4593 { (exit 1); exit 1; }; } ;; 4594 esac 4595 4596 4597 if test "$cross_compiling" = yes; then 4598 LLVM_CROSS_COMPILING=1 4599 4600 4601 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4602 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4603 if test "${ac_cv_build_exeext+set}" = set; then 4604 echo $ECHO_N "(cached) $ECHO_C" >&6 4605 else 4606 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4607 ac_cv_build_exeext=.exe 4608 else 4609 ac_build_prefix=${build_alias}- 4610 4611 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4612 set dummy ${ac_build_prefix}gcc; ac_word=$2 4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4615 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4616 echo $ECHO_N "(cached) $ECHO_C" >&6 4617 else 4618 if test -n "$BUILD_CC"; then 4619 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4620 else 4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4622 for as_dir in $PATH 4623 do 4624 IFS=$as_save_IFS 4625 test -z "$as_dir" && as_dir=. 4626 for ac_exec_ext in '' $ac_executable_extensions; do 4627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4628 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4630 break 2 4631 fi 4632 done 4633 done 4634 IFS=$as_save_IFS 4635 4636 fi 4637 fi 4638 BUILD_CC=$ac_cv_prog_BUILD_CC 4639 if test -n "$BUILD_CC"; then 4640 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4641 echo "${ECHO_T}$BUILD_CC" >&6; } 4642 else 4643 { echo "$as_me:$LINENO: result: no" >&5 4644 echo "${ECHO_T}no" >&6; } 4645 fi 4646 4647 4648 if test -z "$BUILD_CC"; then 4649 # Extract the first word of "gcc", so it can be a program name with args. 4650 set dummy gcc; ac_word=$2 4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4653 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4654 echo $ECHO_N "(cached) $ECHO_C" >&6 4655 else 4656 if test -n "$BUILD_CC"; then 4657 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4658 else 4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4660 for as_dir in $PATH 4661 do 4662 IFS=$as_save_IFS 4663 test -z "$as_dir" && as_dir=. 4664 for ac_exec_ext in '' $ac_executable_extensions; do 4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4666 ac_cv_prog_BUILD_CC="gcc" 4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4668 break 2 4669 fi 4670 done 4671 done 4672 IFS=$as_save_IFS 4673 4674 fi 4675 fi 4676 BUILD_CC=$ac_cv_prog_BUILD_CC 4677 if test -n "$BUILD_CC"; then 4678 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4679 echo "${ECHO_T}$BUILD_CC" >&6; } 4680 else 4681 { echo "$as_me:$LINENO: result: no" >&5 4682 echo "${ECHO_T}no" >&6; } 4683 fi 4684 4685 4686 if test -z "$BUILD_CC"; then 4687 # Extract the first word of "cc", so it can be a program name with args. 4688 set dummy cc; ac_word=$2 4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4691 if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4692 echo $ECHO_N "(cached) $ECHO_C" >&6 4693 else 4694 if test -n "$BUILD_CC"; then 4695 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4696 else 4697 ac_prog_rejected=no 4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4699 for as_dir in $PATH 4700 do 4701 IFS=$as_save_IFS 4702 test -z "$as_dir" && as_dir=. 4703 for ac_exec_ext in '' $ac_executable_extensions; do 4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4706 ac_prog_rejected=yes 4707 continue 4708 fi 4709 ac_cv_prog_BUILD_CC="cc" 4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4711 break 2 4712 fi 4713 done 4714 done 4715 IFS=$as_save_IFS 4716 4717 if test $ac_prog_rejected = yes; then 4718 # We found a bogon in the path, so make sure we never use it. 4719 set dummy $ac_cv_prog_BUILD_CC 4720 shift 4721 if test $# != 0; then 4722 # We chose a different compiler from the bogus one. 4723 # However, it has the same basename, so the bogon will be chosen 4724 # first if we set BUILD_CC to just the basename; use the full file name. 4725 shift 4726 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4727 fi 4728 fi 4729 fi 4730 fi 4731 BUILD_CC=$ac_cv_prog_BUILD_CC 4732 if test -n "$BUILD_CC"; then 4733 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4734 echo "${ECHO_T}$BUILD_CC" >&6; } 4735 else 4736 { echo "$as_me:$LINENO: result: no" >&5 4737 echo "${ECHO_T}no" >&6; } 4738 fi 4739 4740 4741 fi 4742 fi 4743 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4744 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4745 { (exit 1); exit 1; }; } 4746 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4747 rm -f conftest* 4748 echo 'int main () { return 0; }' > conftest.$ac_ext 4749 ac_cv_build_exeext= 4750 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4751 (eval $ac_build_link) 2>&5 4752 ac_status=$? 4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4754 (exit $ac_status); }; then 4755 for file in conftest.*; do 4756 case $file in 4757 *.c | *.o | *.obj | *.dSYM) ;; 4758 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4759 esac 4760 done 4761 else 4762 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4763 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4764 { (exit 1); exit 1; }; } 4765 fi 4766 rm -f conftest* 4767 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4768 fi 4769 fi 4770 4771 BUILD_EXEEXT="" 4772 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4773 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4774 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4775 ac_build_exeext=$BUILD_EXEEXT 4776 4777 ac_build_prefix=${build_alias}- 4778 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4779 set dummy ${ac_build_prefix}g++; ac_word=$2 4780 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4782 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4783 echo $ECHO_N "(cached) $ECHO_C" >&6 4784 else 4785 if test -n "$BUILD_CXX"; then 4786 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4787 else 4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4789 for as_dir in $PATH 4790 do 4791 IFS=$as_save_IFS 4792 test -z "$as_dir" && as_dir=. 4793 for ac_exec_ext in '' $ac_executable_extensions; do 4794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4795 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4797 break 2 4798 fi 4799 done 4800 done 4801 IFS=$as_save_IFS 4802 4803 fi 4804 fi 4805 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4806 if test -n "$BUILD_CXX"; then 4807 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4808 echo "${ECHO_T}$BUILD_CXX" >&6; } 4809 else 4810 { echo "$as_me:$LINENO: result: no" >&5 4811 echo "${ECHO_T}no" >&6; } 4812 fi 4813 4814 4815 if test -z "$BUILD_CXX"; then 4816 # Extract the first word of "g++", so it can be a program name with args. 4817 set dummy g++; ac_word=$2 4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4820 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4821 echo $ECHO_N "(cached) $ECHO_C" >&6 4822 else 4823 if test -n "$BUILD_CXX"; then 4824 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4825 else 4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4827 for as_dir in $PATH 4828 do 4829 IFS=$as_save_IFS 4830 test -z "$as_dir" && as_dir=. 4831 for ac_exec_ext in '' $ac_executable_extensions; do 4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4833 ac_cv_prog_BUILD_CXX="g++" 4834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4835 break 2 4836 fi 4837 done 4838 done 4839 IFS=$as_save_IFS 4840 4841 fi 4842 fi 4843 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4844 if test -n "$BUILD_CXX"; then 4845 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4846 echo "${ECHO_T}$BUILD_CXX" >&6; } 4847 else 4848 { echo "$as_me:$LINENO: result: no" >&5 4849 echo "${ECHO_T}no" >&6; } 4850 fi 4851 4852 4853 if test -z "$BUILD_CXX"; then 4854 # Extract the first word of "c++", so it can be a program name with args. 4855 set dummy c++; ac_word=$2 4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5 4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4858 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4859 echo $ECHO_N "(cached) $ECHO_C" >&6 4860 else 4861 if test -n "$BUILD_CXX"; then 4862 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4863 else 4864 ac_prog_rejected=no 4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4866 for as_dir in $PATH 4867 do 4868 IFS=$as_save_IFS 4869 test -z "$as_dir" && as_dir=. 4870 for ac_exec_ext in '' $ac_executable_extensions; do 4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4873 ac_prog_rejected=yes 4874 continue 4875 fi 4876 ac_cv_prog_BUILD_CXX="c++" 4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4878 break 2 4879 fi 4880 done 4881 done 4882 IFS=$as_save_IFS 4883 4884 if test $ac_prog_rejected = yes; then 4885 # We found a bogon in the path, so make sure we never use it. 4886 set dummy $ac_cv_prog_BUILD_CXX 4887 shift 4888 if test $# != 0; then 4889 # We chose a different compiler from the bogus one. 4890 # However, it has the same basename, so the bogon will be chosen 4891 # first if we set BUILD_CXX to just the basename; use the full file name. 4892 shift 4893 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4894 fi 4895 fi 4896 fi 4897 fi 4898 BUILD_CXX=$ac_cv_prog_BUILD_CXX 4899 if test -n "$BUILD_CXX"; then 4900 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4901 echo "${ECHO_T}$BUILD_CXX" >&6; } 4902 else 4903 { echo "$as_me:$LINENO: result: no" >&5 4904 echo "${ECHO_T}no" >&6; } 4905 fi 4906 4907 4908 fi 4909 fi 4910 else 4911 LLVM_CROSS_COMPILING=0 4912 4913 fi 4914 4915 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4916 cvsbuild="yes" 4917 optimize="no" 4918 CVSBUILD=CVSBUILD=1 4919 4920 else 4921 cvsbuild="no" 4922 optimize="yes" 4923 fi 4924 4925 4926 # Check whether --enable-libcpp was given. 4927 if test "${enable_libcpp+set}" = set; then 4928 enableval=$enable_libcpp; 4929 else 4930 enableval=default 4931 fi 4932 4933 case "$enableval" in 4934 yes) ENABLE_LIBCPP=1 4935 ;; 4936 no) ENABLE_LIBCPP=0 4937 ;; 4938 default) ENABLE_LIBCPP=0 4939 ;; 4940 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 4941 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 4942 { (exit 1); exit 1; }; } ;; 4943 esac 4944 4945 # Check whether --enable-optimized was given. 4946 if test "${enable_optimized+set}" = set; then 4947 enableval=$enable_optimized; 4948 else 4949 enableval=$optimize 4950 fi 4951 4952 if test ${enableval} = "no" ; then 4953 ENABLE_OPTIMIZED= 4954 4955 else 4956 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4957 4958 fi 4959 4960 # Check whether --enable-profiling was given. 4961 if test "${enable_profiling+set}" = set; then 4962 enableval=$enable_profiling; 4963 else 4964 enableval="no" 4965 fi 4966 4967 if test ${enableval} = "no" ; then 4968 ENABLE_PROFILING= 4969 4970 else 4971 ENABLE_PROFILING=ENABLE_PROFILING=1 4972 4973 fi 4974 4975 # Check whether --enable-assertions was given. 4976 if test "${enable_assertions+set}" = set; then 4977 enableval=$enable_assertions; 4978 else 4979 enableval="yes" 4980 fi 4981 4982 if test ${enableval} = "yes" ; then 4983 DISABLE_ASSERTIONS= 4984 4985 else 4986 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 4987 4988 fi 4989 4990 # Check whether --enable-expensive-checks was given. 4991 if test "${enable_expensive_checks+set}" = set; then 4992 enableval=$enable_expensive_checks; 4993 else 4994 enableval="no" 4995 fi 4996 4997 if test ${enableval} = "yes" ; then 4998 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 4999 5000 EXPENSIVE_CHECKS=yes 5001 5002 else 5003 ENABLE_EXPENSIVE_CHECKS= 5004 5005 EXPENSIVE_CHECKS=no 5006 5007 fi 5008 5009 # Check whether --enable-debug-runtime was given. 5010 if test "${enable_debug_runtime+set}" = set; then 5011 enableval=$enable_debug_runtime; 5012 else 5013 enableval=no 5014 fi 5015 5016 if test ${enableval} = "no" ; then 5017 DEBUG_RUNTIME= 5018 5019 else 5020 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5021 5022 fi 5023 5024 # Check whether --enable-debug-symbols was given. 5025 if test "${enable_debug_symbols+set}" = set; then 5026 enableval=$enable_debug_symbols; 5027 else 5028 enableval=no 5029 fi 5030 5031 if test ${enableval} = "no" ; then 5032 DEBUG_SYMBOLS= 5033 5034 else 5035 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5036 5037 fi 5038 5039 # Check whether --enable-jit was given. 5040 if test "${enable_jit+set}" = set; then 5041 enableval=$enable_jit; 5042 else 5043 enableval=default 5044 fi 5045 5046 if test ${enableval} = "no" 5047 then 5048 JIT= 5049 5050 else 5051 case "$llvm_cv_target_arch" in 5052 x86) TARGET_HAS_JIT=1 5053 ;; 5054 Sparc) TARGET_HAS_JIT=0 5055 ;; 5056 PowerPC) TARGET_HAS_JIT=1 5057 ;; 5058 x86_64) TARGET_HAS_JIT=1 5059 ;; 5060 ARM) TARGET_HAS_JIT=1 5061 ;; 5062 Mips) TARGET_HAS_JIT=1 5063 ;; 5064 XCore) TARGET_HAS_JIT=0 5065 ;; 5066 MSP430) TARGET_HAS_JIT=0 5067 ;; 5068 Hexagon) TARGET_HAS_JIT=0 5069 ;; 5070 MBlaze) TARGET_HAS_JIT=0 5071 ;; 5072 NVPTX) TARGET_HAS_JIT=0 5073 ;; 5074 *) TARGET_HAS_JIT=0 5075 ;; 5076 esac 5077 fi 5078 5079 # Check whether --enable-docs was given. 5080 if test "${enable_docs+set}" = set; then 5081 enableval=$enable_docs; 5082 else 5083 enableval=default 5084 fi 5085 5086 case "$enableval" in 5087 yes) ENABLE_DOCS=1 5088 ;; 5089 no) ENABLE_DOCS=0 5090 ;; 5091 default) ENABLE_DOCS=1 5092 ;; 5093 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5094 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5095 { (exit 1); exit 1; }; } ;; 5096 esac 5097 5098 # Check whether --enable-doxygen was given. 5099 if test "${enable_doxygen+set}" = set; then 5100 enableval=$enable_doxygen; 5101 else 5102 enableval=default 5103 fi 5104 5105 case "$enableval" in 5106 yes) ENABLE_DOXYGEN=1 5107 ;; 5108 no) ENABLE_DOXYGEN=0 5109 ;; 5110 default) ENABLE_DOXYGEN=0 5111 ;; 5112 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5113 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5114 { (exit 1); exit 1; }; } ;; 5115 esac 5116 5117 # Check whether --enable-threads was given. 5118 if test "${enable_threads+set}" = set; then 5119 enableval=$enable_threads; 5120 else 5121 enableval=default 5122 fi 5123 5124 case "$enableval" in 5125 yes) ENABLE_THREADS=1 5126 ;; 5127 no) ENABLE_THREADS=0 5128 ;; 5129 default) ENABLE_THREADS=1 5130 ;; 5131 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5132 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5133 { (exit 1); exit 1; }; } ;; 5134 esac 5135 5136 cat >>confdefs.h <<_ACEOF 5137 #define ENABLE_THREADS $ENABLE_THREADS 5138 _ACEOF 5139 5140 5141 # Check whether --enable-pthreads was given. 5142 if test "${enable_pthreads+set}" = set; then 5143 enableval=$enable_pthreads; 5144 else 5145 enableval=default 5146 fi 5147 5148 case "$enableval" in 5149 yes) ENABLE_PTHREADS=1 5150 ;; 5151 no) ENABLE_PTHREADS=0 5152 ;; 5153 default) ENABLE_PTHREADS=1 5154 ;; 5155 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5156 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5157 { (exit 1); exit 1; }; } ;; 5158 esac 5159 5160 # Check whether --enable-pic was given. 5161 if test "${enable_pic+set}" = set; then 5162 enableval=$enable_pic; 5163 else 5164 enableval=default 5165 fi 5166 5167 case "$enableval" in 5168 yes) ENABLE_PIC=1 5169 ;; 5170 no) ENABLE_PIC=0 5171 ;; 5172 default) ENABLE_PIC=1 5173 ;; 5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5175 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5176 { (exit 1); exit 1; }; } ;; 5177 esac 5178 5179 cat >>confdefs.h <<_ACEOF 5180 #define ENABLE_PIC $ENABLE_PIC 5181 _ACEOF 5182 5183 5184 # Check whether --enable-shared was given. 5185 if test "${enable_shared+set}" = set; then 5186 enableval=$enable_shared; 5187 else 5188 enableval=default 5189 fi 5190 5191 case "$enableval" in 5192 yes) ENABLE_SHARED=1 5193 ;; 5194 no) ENABLE_SHARED=0 5195 ;; 5196 default) ENABLE_SHARED=0 5197 ;; 5198 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5199 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5200 { (exit 1); exit 1; }; } ;; 5201 esac 5202 5203 # Check whether --enable-embed-stdcxx was given. 5204 if test "${enable_embed_stdcxx+set}" = set; then 5205 enableval=$enable_embed_stdcxx; 5206 else 5207 enableval=default 5208 fi 5209 5210 case "$enableval" in 5211 yes) ENABLE_EMBED_STDCXX=1 5212 ;; 5213 no) ENABLE_EMBED_STDCXX=0 5214 ;; 5215 default) ENABLE_EMBED_STDCXX=1 5216 ;; 5217 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5218 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5219 { (exit 1); exit 1; }; } ;; 5220 esac 5221 5222 # Check whether --enable-timestamps was given. 5223 if test "${enable_timestamps+set}" = set; then 5224 enableval=$enable_timestamps; 5225 else 5226 enableval=default 5227 fi 5228 5229 case "$enableval" in 5230 yes) ENABLE_TIMESTAMPS=1 5231 ;; 5232 no) ENABLE_TIMESTAMPS=0 5233 ;; 5234 default) ENABLE_TIMESTAMPS=1 5235 ;; 5236 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5237 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5238 { (exit 1); exit 1; }; } ;; 5239 esac 5240 5241 cat >>confdefs.h <<_ACEOF 5242 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5243 _ACEOF 5244 5245 5246 TARGETS_TO_BUILD="" 5247 # Check whether --enable-targets was given. 5248 if test "${enable_targets+set}" = set; then 5249 enableval=$enable_targets; 5250 else 5251 enableval=all 5252 fi 5253 5254 if test "$enableval" = host-only ; then 5255 enableval=host 5256 fi 5257 case "$enableval" in 5258 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 Hexagon CppBackend MBlaze NVPTX" ;; 5259 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5260 case "$a_target" in 5261 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5262 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5263 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5264 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5265 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5266 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5267 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5268 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5269 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5270 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5271 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5272 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5273 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5274 host) case "$llvm_cv_target_arch" in 5275 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5276 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5277 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5278 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5279 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5280 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5281 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5282 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5283 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5284 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5285 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5286 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5287 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5288 echo "$as_me: error: Can not set target to build" >&2;} 5289 { (exit 1); exit 1; }; } ;; 5290 esac ;; 5291 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5292 echo "$as_me: error: Unrecognized target $a_target" >&2;} 5293 { (exit 1); exit 1; }; } ;; 5294 esac 5295 done 5296 ;; 5297 esac 5298 TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5299 5300 5301 # Determine whether we are building LLVM support for the native architecture. 5302 # If so, define LLVM_NATIVE_ARCH to that LLVM target. 5303 for a_target in $TARGETS_TO_BUILD; do 5304 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5305 5306 cat >>confdefs.h <<_ACEOF 5307 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5308 _ACEOF 5309 5310 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5311 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5312 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5313 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5314 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5315 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5316 fi 5317 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5318 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5319 fi 5320 5321 cat >>confdefs.h <<_ACEOF 5322 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5323 _ACEOF 5324 5325 5326 cat >>confdefs.h <<_ACEOF 5327 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5328 _ACEOF 5329 5330 5331 cat >>confdefs.h <<_ACEOF 5332 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5333 _ACEOF 5334 5335 5336 cat >>confdefs.h <<_ACEOF 5337 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5338 _ACEOF 5339 5340 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5341 5342 cat >>confdefs.h <<_ACEOF 5343 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5344 _ACEOF 5345 5346 fi 5347 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5348 5349 cat >>confdefs.h <<_ACEOF 5350 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5351 _ACEOF 5352 5353 fi 5354 fi 5355 done 5356 5357 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual 5358 # target feature def files. 5359 LLVM_ENUM_TARGETS="" 5360 LLVM_ENUM_ASM_PRINTERS="" 5361 LLVM_ENUM_ASM_PARSERS="" 5362 LLVM_ENUM_DISASSEMBLERS="" 5363 for target_to_build in $TARGETS_TO_BUILD; do 5364 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5365 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5366 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5367 fi 5368 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5369 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5370 fi 5371 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5372 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5373 fi 5374 done 5375 5376 5377 5378 5379 5380 5381 # Check whether --with-optimize-option was given. 5382 if test "${with_optimize_option+set}" = set; then 5383 withval=$with_optimize_option; 5384 else 5385 withval=default 5386 fi 5387 5388 { echo "$as_me:$LINENO: checking optimization flags" >&5 5389 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5390 case "$withval" in 5391 default) 5392 case "$llvm_cv_os_type" in 5393 FreeBSD) optimize_option=-O2 ;; 5394 MingW) optimize_option=-O2 ;; 5395 *) optimize_option=-O3 ;; 5396 esac ;; 5397 *) optimize_option="$withval" ;; 5398 esac 5399 OPTIMIZE_OPTION=$optimize_option 5400 5401 { echo "$as_me:$LINENO: result: $optimize_option" >&5 5402 echo "${ECHO_T}$optimize_option" >&6; } 5403 5404 5405 # Check whether --with-extra-options was given. 5406 if test "${with_extra_options+set}" = set; then 5407 withval=$with_extra_options; 5408 else 5409 withval=default 5410 fi 5411 5412 case "$withval" in 5413 default) EXTRA_OPTIONS= ;; 5414 *) EXTRA_OPTIONS=$withval ;; 5415 esac 5416 EXTRA_OPTIONS=$EXTRA_OPTIONS 5417 5418 5419 5420 # Check whether --with-extra-ld-options was given. 5421 if test "${with_extra_ld_options+set}" = set; then 5422 withval=$with_extra_ld_options; 5423 else 5424 withval=default 5425 fi 5426 5427 case "$withval" in 5428 default) EXTRA_LD_OPTIONS= ;; 5429 *) EXTRA_LD_OPTIONS=$withval ;; 5430 esac 5431 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5432 5433 5434 # Check whether --enable-bindings was given. 5435 if test "${enable_bindings+set}" = set; then 5436 enableval=$enable_bindings; 5437 else 5438 enableval=default 5439 fi 5440 5441 BINDINGS_TO_BUILD="" 5442 case "$enableval" in 5443 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5444 all ) BINDINGS_TO_BUILD="ocaml" ;; 5445 none | no) BINDINGS_TO_BUILD="" ;; 5446 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5447 case "$a_binding" in 5448 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5449 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5450 echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5451 { (exit 1); exit 1; }; } ;; 5452 esac 5453 done 5454 ;; 5455 esac 5456 5457 5458 # Check whether --with-ocaml-libdir was given. 5459 if test "${with_ocaml_libdir+set}" = set; then 5460 withval=$with_ocaml_libdir; 5461 else 5462 withval=auto 5463 fi 5464 5465 case "$withval" in 5466 auto) with_ocaml_libdir="$withval" ;; 5467 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5468 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5469 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5470 { (exit 1); exit 1; }; } ;; 5471 esac 5472 5473 5474 # Check whether --with-clang-resource-dir was given. 5475 if test "${with_clang_resource_dir+set}" = set; then 5476 withval=$with_clang_resource_dir; 5477 else 5478 withval="" 5479 fi 5480 5481 5482 cat >>confdefs.h <<_ACEOF 5483 #define CLANG_RESOURCE_DIR "$withval" 5484 _ACEOF 5485 5486 5487 5488 # Check whether --with-c-include-dirs was given. 5489 if test "${with_c_include_dirs+set}" = set; then 5490 withval=$with_c_include_dirs; 5491 else 5492 withval="" 5493 fi 5494 5495 5496 cat >>confdefs.h <<_ACEOF 5497 #define C_INCLUDE_DIRS "$withval" 5498 _ACEOF 5499 5500 5501 # Clang normally uses the system c++ headers and libraries. With this option, 5502 # clang will use the ones provided by a gcc installation instead. This option should 5503 # be passed the same value that was used with --prefix when configuring gcc. 5504 5505 # Check whether --with-gcc-toolchain was given. 5506 if test "${with_gcc_toolchain+set}" = set; then 5507 withval=$with_gcc_toolchain; 5508 else 5509 withval="" 5510 fi 5511 5512 5513 cat >>confdefs.h <<_ACEOF 5514 #define GCC_INSTALL_PREFIX "$withval" 5515 _ACEOF 5516 5517 5518 5519 # Check whether --with-binutils-include was given. 5520 if test "${with_binutils_include+set}" = set; then 5521 withval=$with_binutils_include; 5522 else 5523 withval=default 5524 fi 5525 5526 case "$withval" in 5527 default) WITH_BINUTILS_INCDIR=default ;; 5528 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5529 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5530 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5531 { (exit 1); exit 1; }; } ;; 5532 esac 5533 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5534 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5535 5536 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5537 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5538 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5539 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5540 { (exit 1); exit 1; }; }; 5541 fi 5542 fi 5543 5544 5545 # Check whether --with-bug-report-url was given. 5546 if test "${with_bug_report_url+set}" = set; then 5547 withval=$with_bug_report_url; 5548 else 5549 withval="http://llvm.org/bugs/" 5550 fi 5551 5552 5553 cat >>confdefs.h <<_ACEOF 5554 #define BUG_REPORT_URL "$withval" 5555 _ACEOF 5556 5557 5558 # Check whether --enable-libffi was given. 5559 if test "${enable_libffi+set}" = set; then 5560 enableval=$enable_libffi; case "$enableval" in 5561 yes) llvm_cv_enable_libffi="yes" ;; 5562 no) llvm_cv_enable_libffi="no" ;; 5563 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5564 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5565 { (exit 1); exit 1; }; } ;; 5566 esac 5567 else 5568 llvm_cv_enable_libffi=no 5569 fi 5570 5571 5572 5573 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5574 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5575 if test "${lt_cv_path_NM+set}" = set; then 5576 echo $ECHO_N "(cached) $ECHO_C" >&6 5577 else 5578 if test -n "$NM"; then 5579 # Let the user override the test. 5580 lt_cv_path_NM="$NM" 5581 else 5582 lt_nm_to_check="${ac_tool_prefix}nm" 5583 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5584 lt_nm_to_check="$lt_nm_to_check nm" 5585 fi 5586 for lt_tmp_nm in $lt_nm_to_check; do 5587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5588 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5589 IFS="$lt_save_ifs" 5590 test -z "$ac_dir" && ac_dir=. 5591 tmp_nm="$ac_dir/$lt_tmp_nm" 5592 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5593 # Check to see if the nm accepts a BSD-compat flag. 5594 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5595 # nm: unknown option "B" ignored 5596 # Tru64's nm complains that /dev/null is an invalid object file 5597 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5598 */dev/null* | *'Invalid file or object type'*) 5599 lt_cv_path_NM="$tmp_nm -B" 5600 break 5601 ;; 5602 *) 5603 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5604 */dev/null*) 5605 lt_cv_path_NM="$tmp_nm -p" 5606 break 5607 ;; 5608 *) 5609 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5610 continue # so that we can try to find one that supports BSD flags 5611 ;; 5612 esac 5613 ;; 5614 esac 5615 fi 5616 done 5617 IFS="$lt_save_ifs" 5618 done 5619 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5620 fi 5621 fi 5622 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5623 echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5624 NM="$lt_cv_path_NM" 5625 5626 5627 5628 { echo "$as_me:$LINENO: checking for GNU make" >&5 5629 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 5630 if test "${llvm_cv_gnu_make_command+set}" = set; then 5631 echo $ECHO_N "(cached) $ECHO_C" >&6 5632 else 5633 llvm_cv_gnu_make_command='' 5634 for a in "$MAKE" make gmake gnumake ; do 5635 if test -z "$a" ; then continue ; fi ; 5636 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 5637 then 5638 llvm_cv_gnu_make_command=$a ; 5639 break; 5640 fi 5641 done 5642 fi 5643 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 5644 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 5645 if test "x$llvm_cv_gnu_make_command" != "x" ; then 5646 ifGNUmake='' ; 5647 else 5648 ifGNUmake='#' ; 5649 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 5650 echo "${ECHO_T}\"Not found\"" >&6; }; 5651 fi 5652 5653 5654 { echo "$as_me:$LINENO: checking whether ln -s works" >&5 5655 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5656 LN_S=$as_ln_s 5657 if test "$LN_S" = "ln -s"; then 5658 { echo "$as_me:$LINENO: result: yes" >&5 5659 echo "${ECHO_T}yes" >&6; } 5660 else 5661 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5662 echo "${ECHO_T}no, using $LN_S" >&6; } 5663 fi 5664 5665 # Extract the first word of "cmp", so it can be a program name with args. 5666 set dummy cmp; ac_word=$2 5667 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5669 if test "${ac_cv_path_CMP+set}" = set; then 5670 echo $ECHO_N "(cached) $ECHO_C" >&6 5671 else 5672 case $CMP in 5673 [\\/]* | ?:[\\/]*) 5674 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5675 ;; 5676 *) 5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5678 for as_dir in $PATH 5679 do 5680 IFS=$as_save_IFS 5681 test -z "$as_dir" && as_dir=. 5682 for ac_exec_ext in '' $ac_executable_extensions; do 5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5684 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5686 break 2 5687 fi 5688 done 5689 done 5690 IFS=$as_save_IFS 5691 5692 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 5693 ;; 5694 esac 5695 fi 5696 CMP=$ac_cv_path_CMP 5697 if test -n "$CMP"; then 5698 { echo "$as_me:$LINENO: result: $CMP" >&5 5699 echo "${ECHO_T}$CMP" >&6; } 5700 else 5701 { echo "$as_me:$LINENO: result: no" >&5 5702 echo "${ECHO_T}no" >&6; } 5703 fi 5704 5705 5706 # Extract the first word of "cp", so it can be a program name with args. 5707 set dummy cp; ac_word=$2 5708 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5710 if test "${ac_cv_path_CP+set}" = set; then 5711 echo $ECHO_N "(cached) $ECHO_C" >&6 5712 else 5713 case $CP in 5714 [\\/]* | ?:[\\/]*) 5715 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5716 ;; 5717 *) 5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5719 for as_dir in $PATH 5720 do 5721 IFS=$as_save_IFS 5722 test -z "$as_dir" && as_dir=. 5723 for ac_exec_ext in '' $ac_executable_extensions; do 5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5725 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5727 break 2 5728 fi 5729 done 5730 done 5731 IFS=$as_save_IFS 5732 5733 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 5734 ;; 5735 esac 5736 fi 5737 CP=$ac_cv_path_CP 5738 if test -n "$CP"; then 5739 { echo "$as_me:$LINENO: result: $CP" >&5 5740 echo "${ECHO_T}$CP" >&6; } 5741 else 5742 { echo "$as_me:$LINENO: result: no" >&5 5743 echo "${ECHO_T}no" >&6; } 5744 fi 5745 5746 5747 # Extract the first word of "date", so it can be a program name with args. 5748 set dummy date; ac_word=$2 5749 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5751 if test "${ac_cv_path_DATE+set}" = set; then 5752 echo $ECHO_N "(cached) $ECHO_C" >&6 5753 else 5754 case $DATE in 5755 [\\/]* | ?:[\\/]*) 5756 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5757 ;; 5758 *) 5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5760 for as_dir in $PATH 5761 do 5762 IFS=$as_save_IFS 5763 test -z "$as_dir" && as_dir=. 5764 for ac_exec_ext in '' $ac_executable_extensions; do 5765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5766 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5768 break 2 5769 fi 5770 done 5771 done 5772 IFS=$as_save_IFS 5773 5774 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 5775 ;; 5776 esac 5777 fi 5778 DATE=$ac_cv_path_DATE 5779 if test -n "$DATE"; then 5780 { echo "$as_me:$LINENO: result: $DATE" >&5 5781 echo "${ECHO_T}$DATE" >&6; } 5782 else 5783 { echo "$as_me:$LINENO: result: no" >&5 5784 echo "${ECHO_T}no" >&6; } 5785 fi 5786 5787 5788 # Extract the first word of "find", so it can be a program name with args. 5789 set dummy find; ac_word=$2 5790 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5792 if test "${ac_cv_path_FIND+set}" = set; then 5793 echo $ECHO_N "(cached) $ECHO_C" >&6 5794 else 5795 case $FIND in 5796 [\\/]* | ?:[\\/]*) 5797 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 5798 ;; 5799 *) 5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5801 for as_dir in $PATH 5802 do 5803 IFS=$as_save_IFS 5804 test -z "$as_dir" && as_dir=. 5805 for ac_exec_ext in '' $ac_executable_extensions; do 5806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5807 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 5808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5809 break 2 5810 fi 5811 done 5812 done 5813 IFS=$as_save_IFS 5814 5815 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 5816 ;; 5817 esac 5818 fi 5819 FIND=$ac_cv_path_FIND 5820 if test -n "$FIND"; then 5821 { echo "$as_me:$LINENO: result: $FIND" >&5 5822 echo "${ECHO_T}$FIND" >&6; } 5823 else 5824 { echo "$as_me:$LINENO: result: no" >&5 5825 echo "${ECHO_T}no" >&6; } 5826 fi 5827 5828 5829 # Extract the first word of "grep", so it can be a program name with args. 5830 set dummy grep; ac_word=$2 5831 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5833 if test "${ac_cv_path_GREP+set}" = set; then 5834 echo $ECHO_N "(cached) $ECHO_C" >&6 5835 else 5836 case $GREP in 5837 [\\/]* | ?:[\\/]*) 5838 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 5839 ;; 5840 *) 5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5842 for as_dir in $PATH 5843 do 5844 IFS=$as_save_IFS 5845 test -z "$as_dir" && as_dir=. 5846 for ac_exec_ext in '' $ac_executable_extensions; do 5847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5848 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 5849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5850 break 2 5851 fi 5852 done 5853 done 5854 IFS=$as_save_IFS 5855 5856 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 5857 ;; 5858 esac 5859 fi 5860 GREP=$ac_cv_path_GREP 5861 if test -n "$GREP"; then 5862 { echo "$as_me:$LINENO: result: $GREP" >&5 5863 echo "${ECHO_T}$GREP" >&6; } 5864 else 5865 { echo "$as_me:$LINENO: result: no" >&5 5866 echo "${ECHO_T}no" >&6; } 5867 fi 5868 5869 5870 # Extract the first word of "mkdir", so it can be a program name with args. 5871 set dummy mkdir; ac_word=$2 5872 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5874 if test "${ac_cv_path_MKDIR+set}" = set; then 5875 echo $ECHO_N "(cached) $ECHO_C" >&6 5876 else 5877 case $MKDIR in 5878 [\\/]* | ?:[\\/]*) 5879 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 5880 ;; 5881 *) 5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5883 for as_dir in $PATH 5884 do 5885 IFS=$as_save_IFS 5886 test -z "$as_dir" && as_dir=. 5887 for ac_exec_ext in '' $ac_executable_extensions; do 5888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5889 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5891 break 2 5892 fi 5893 done 5894 done 5895 IFS=$as_save_IFS 5896 5897 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 5898 ;; 5899 esac 5900 fi 5901 MKDIR=$ac_cv_path_MKDIR 5902 if test -n "$MKDIR"; then 5903 { echo "$as_me:$LINENO: result: $MKDIR" >&5 5904 echo "${ECHO_T}$MKDIR" >&6; } 5905 else 5906 { echo "$as_me:$LINENO: result: no" >&5 5907 echo "${ECHO_T}no" >&6; } 5908 fi 5909 5910 5911 # Extract the first word of "mv", so it can be a program name with args. 5912 set dummy mv; ac_word=$2 5913 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5915 if test "${ac_cv_path_MV+set}" = set; then 5916 echo $ECHO_N "(cached) $ECHO_C" >&6 5917 else 5918 case $MV in 5919 [\\/]* | ?:[\\/]*) 5920 ac_cv_path_MV="$MV" # Let the user override the test with a path. 5921 ;; 5922 *) 5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5924 for as_dir in $PATH 5925 do 5926 IFS=$as_save_IFS 5927 test -z "$as_dir" && as_dir=. 5928 for ac_exec_ext in '' $ac_executable_extensions; do 5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5930 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5932 break 2 5933 fi 5934 done 5935 done 5936 IFS=$as_save_IFS 5937 5938 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 5939 ;; 5940 esac 5941 fi 5942 MV=$ac_cv_path_MV 5943 if test -n "$MV"; then 5944 { echo "$as_me:$LINENO: result: $MV" >&5 5945 echo "${ECHO_T}$MV" >&6; } 5946 else 5947 { echo "$as_me:$LINENO: result: no" >&5 5948 echo "${ECHO_T}no" >&6; } 5949 fi 5950 5951 5952 if test -n "$ac_tool_prefix"; then 5953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5955 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5957 if test "${ac_cv_prog_RANLIB+set}" = set; then 5958 echo $ECHO_N "(cached) $ECHO_C" >&6 5959 else 5960 if test -n "$RANLIB"; then 5961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5962 else 5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5964 for as_dir in $PATH 5965 do 5966 IFS=$as_save_IFS 5967 test -z "$as_dir" && as_dir=. 5968 for ac_exec_ext in '' $ac_executable_extensions; do 5969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5972 break 2 5973 fi 5974 done 5975 done 5976 IFS=$as_save_IFS 5977 5978 fi 5979 fi 5980 RANLIB=$ac_cv_prog_RANLIB 5981 if test -n "$RANLIB"; then 5982 { echo "$as_me:$LINENO: result: $RANLIB" >&5 5983 echo "${ECHO_T}$RANLIB" >&6; } 5984 else 5985 { echo "$as_me:$LINENO: result: no" >&5 5986 echo "${ECHO_T}no" >&6; } 5987 fi 5988 5989 5990 fi 5991 if test -z "$ac_cv_prog_RANLIB"; then 5992 ac_ct_RANLIB=$RANLIB 5993 # Extract the first word of "ranlib", so it can be a program name with args. 5994 set dummy ranlib; ac_word=$2 5995 { echo "$as_me:$LINENO: checking for $ac_word" >&5 5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5997 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5998 echo $ECHO_N "(cached) $ECHO_C" >&6 5999 else 6000 if test -n "$ac_ct_RANLIB"; then 6001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6002 else 6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004 for as_dir in $PATH 6005 do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_exec_ext in '' $ac_executable_extensions; do 6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6010 ac_cv_prog_ac_ct_RANLIB="ranlib" 6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6012 break 2 6013 fi 6014 done 6015 done 6016 IFS=$as_save_IFS 6017 6018 fi 6019 fi 6020 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6021 if test -n "$ac_ct_RANLIB"; then 6022 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6023 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6024 else 6025 { echo "$as_me:$LINENO: result: no" >&5 6026 echo "${ECHO_T}no" >&6; } 6027 fi 6028 6029 if test "x$ac_ct_RANLIB" = x; then 6030 RANLIB=":" 6031 else 6032 case $cross_compiling:$ac_tool_warned in 6033 yes:) 6034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6035 whose name does not start with the host triplet. If you think this 6036 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6038 whose name does not start with the host triplet. If you think this 6039 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6040 ac_tool_warned=yes ;; 6041 esac 6042 RANLIB=$ac_ct_RANLIB 6043 fi 6044 else 6045 RANLIB="$ac_cv_prog_RANLIB" 6046 fi 6047 6048 if test -n "$ac_tool_prefix"; then 6049 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6050 set dummy ${ac_tool_prefix}ar; ac_word=$2 6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6053 if test "${ac_cv_prog_AR+set}" = set; then 6054 echo $ECHO_N "(cached) $ECHO_C" >&6 6055 else 6056 if test -n "$AR"; then 6057 ac_cv_prog_AR="$AR" # Let the user override the test. 6058 else 6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6060 for as_dir in $PATH 6061 do 6062 IFS=$as_save_IFS 6063 test -z "$as_dir" && as_dir=. 6064 for ac_exec_ext in '' $ac_executable_extensions; do 6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6066 ac_cv_prog_AR="${ac_tool_prefix}ar" 6067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6068 break 2 6069 fi 6070 done 6071 done 6072 IFS=$as_save_IFS 6073 6074 fi 6075 fi 6076 AR=$ac_cv_prog_AR 6077 if test -n "$AR"; then 6078 { echo "$as_me:$LINENO: result: $AR" >&5 6079 echo "${ECHO_T}$AR" >&6; } 6080 else 6081 { echo "$as_me:$LINENO: result: no" >&5 6082 echo "${ECHO_T}no" >&6; } 6083 fi 6084 6085 6086 fi 6087 if test -z "$ac_cv_prog_AR"; then 6088 ac_ct_AR=$AR 6089 # Extract the first word of "ar", so it can be a program name with args. 6090 set dummy ar; ac_word=$2 6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6093 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6094 echo $ECHO_N "(cached) $ECHO_C" >&6 6095 else 6096 if test -n "$ac_ct_AR"; then 6097 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6098 else 6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6100 for as_dir in $PATH 6101 do 6102 IFS=$as_save_IFS 6103 test -z "$as_dir" && as_dir=. 6104 for ac_exec_ext in '' $ac_executable_extensions; do 6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6106 ac_cv_prog_ac_ct_AR="ar" 6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6108 break 2 6109 fi 6110 done 6111 done 6112 IFS=$as_save_IFS 6113 6114 fi 6115 fi 6116 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6117 if test -n "$ac_ct_AR"; then 6118 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6119 echo "${ECHO_T}$ac_ct_AR" >&6; } 6120 else 6121 { echo "$as_me:$LINENO: result: no" >&5 6122 echo "${ECHO_T}no" >&6; } 6123 fi 6124 6125 if test "x$ac_ct_AR" = x; then 6126 AR="false" 6127 else 6128 case $cross_compiling:$ac_tool_warned in 6129 yes:) 6130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6131 whose name does not start with the host triplet. If you think this 6132 configuration is useful to you, please write to autoconf (at] gnu.org." >&5 6133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6134 whose name does not start with the host triplet. If you think this 6135 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;} 6136 ac_tool_warned=yes ;; 6137 esac 6138 AR=$ac_ct_AR 6139 fi 6140 else 6141 AR="$ac_cv_prog_AR" 6142 fi 6143 6144 # Extract the first word of "rm", so it can be a program name with args. 6145 set dummy rm; ac_word=$2 6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6148 if test "${ac_cv_path_RM+set}" = set; then 6149 echo $ECHO_N "(cached) $ECHO_C" >&6 6150 else 6151 case $RM in 6152 [\\/]* | ?:[\\/]*) 6153 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6154 ;; 6155 *) 6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6157 for as_dir in $PATH 6158 do 6159 IFS=$as_save_IFS 6160 test -z "$as_dir" && as_dir=. 6161 for ac_exec_ext in '' $ac_executable_extensions; do 6162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6163 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6165 break 2 6166 fi 6167 done 6168 done 6169 IFS=$as_save_IFS 6170 6171 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6172 ;; 6173 esac 6174 fi 6175 RM=$ac_cv_path_RM 6176 if test -n "$RM"; then 6177 { echo "$as_me:$LINENO: result: $RM" >&5 6178 echo "${ECHO_T}$RM" >&6; } 6179 else 6180 { echo "$as_me:$LINENO: result: no" >&5 6181 echo "${ECHO_T}no" >&6; } 6182 fi 6183 6184 6185 # Extract the first word of "sed", so it can be a program name with args. 6186 set dummy sed; ac_word=$2 6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6189 if test "${ac_cv_path_SED+set}" = set; then 6190 echo $ECHO_N "(cached) $ECHO_C" >&6 6191 else 6192 case $SED in 6193 [\\/]* | ?:[\\/]*) 6194 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6195 ;; 6196 *) 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_path_SED="$as_dir/$ac_word$ac_exec_ext" 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 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6213 ;; 6214 esac 6215 fi 6216 SED=$ac_cv_path_SED 6217 if test -n "$SED"; then 6218 { echo "$as_me:$LINENO: result: $SED" >&5 6219 echo "${ECHO_T}$SED" >&6; } 6220 else 6221 { echo "$as_me:$LINENO: result: no" >&5 6222 echo "${ECHO_T}no" >&6; } 6223 fi 6224 6225 6226 # Extract the first word of "tar", so it can be a program name with args. 6227 set dummy tar; ac_word=$2 6228 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6230 if test "${ac_cv_path_TAR+set}" = set; then 6231 echo $ECHO_N "(cached) $ECHO_C" >&6 6232 else 6233 case $TAR in 6234 [\\/]* | ?:[\\/]*) 6235 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6236 ;; 6237 *) 6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6239 for as_dir in $PATH 6240 do 6241 IFS=$as_save_IFS 6242 test -z "$as_dir" && as_dir=. 6243 for ac_exec_ext in '' $ac_executable_extensions; do 6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6245 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6247 break 2 6248 fi 6249 done 6250 done 6251 IFS=$as_save_IFS 6252 6253 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6254 ;; 6255 esac 6256 fi 6257 TAR=$ac_cv_path_TAR 6258 if test -n "$TAR"; then 6259 { echo "$as_me:$LINENO: result: $TAR" >&5 6260 echo "${ECHO_T}$TAR" >&6; } 6261 else 6262 { echo "$as_me:$LINENO: result: no" >&5 6263 echo "${ECHO_T}no" >&6; } 6264 fi 6265 6266 6267 # Extract the first word of "pwd", so it can be a program name with args. 6268 set dummy pwd; ac_word=$2 6269 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6271 if test "${ac_cv_path_BINPWD+set}" = set; then 6272 echo $ECHO_N "(cached) $ECHO_C" >&6 6273 else 6274 case $BINPWD in 6275 [\\/]* | ?:[\\/]*) 6276 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6277 ;; 6278 *) 6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6280 for as_dir in $PATH 6281 do 6282 IFS=$as_save_IFS 6283 test -z "$as_dir" && as_dir=. 6284 for ac_exec_ext in '' $ac_executable_extensions; do 6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6286 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6288 break 2 6289 fi 6290 done 6291 done 6292 IFS=$as_save_IFS 6293 6294 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6295 ;; 6296 esac 6297 fi 6298 BINPWD=$ac_cv_path_BINPWD 6299 if test -n "$BINPWD"; then 6300 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6301 echo "${ECHO_T}$BINPWD" >&6; } 6302 else 6303 { echo "$as_me:$LINENO: result: no" >&5 6304 echo "${ECHO_T}no" >&6; } 6305 fi 6306 6307 6308 6309 # Extract the first word of "Graphviz", so it can be a program name with args. 6310 set dummy Graphviz; ac_word=$2 6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6313 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6314 echo $ECHO_N "(cached) $ECHO_C" >&6 6315 else 6316 case $GRAPHVIZ in 6317 [\\/]* | ?:[\\/]*) 6318 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6319 ;; 6320 *) 6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6322 for as_dir in $PATH 6323 do 6324 IFS=$as_save_IFS 6325 test -z "$as_dir" && as_dir=. 6326 for ac_exec_ext in '' $ac_executable_extensions; do 6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6328 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6330 break 2 6331 fi 6332 done 6333 done 6334 IFS=$as_save_IFS 6335 6336 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6337 ;; 6338 esac 6339 fi 6340 GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6341 if test -n "$GRAPHVIZ"; then 6342 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6343 echo "${ECHO_T}$GRAPHVIZ" >&6; } 6344 else 6345 { echo "$as_me:$LINENO: result: no" >&5 6346 echo "${ECHO_T}no" >&6; } 6347 fi 6348 6349 6350 if test "$GRAPHVIZ" != "echo Graphviz" ; then 6351 6352 cat >>confdefs.h <<\_ACEOF 6353 #define HAVE_GRAPHVIZ 1 6354 _ACEOF 6355 6356 if test "$llvm_cv_os_type" = "MingW" ; then 6357 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6358 fi 6359 6360 cat >>confdefs.h <<_ACEOF 6361 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6362 _ACEOF 6363 6364 fi 6365 # Extract the first word of "dot", so it can be a program name with args. 6366 set dummy dot; ac_word=$2 6367 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6369 if test "${ac_cv_path_DOT+set}" = set; then 6370 echo $ECHO_N "(cached) $ECHO_C" >&6 6371 else 6372 case $DOT in 6373 [\\/]* | ?:[\\/]*) 6374 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6375 ;; 6376 *) 6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6378 for as_dir in $PATH 6379 do 6380 IFS=$as_save_IFS 6381 test -z "$as_dir" && as_dir=. 6382 for ac_exec_ext in '' $ac_executable_extensions; do 6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6384 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6386 break 2 6387 fi 6388 done 6389 done 6390 IFS=$as_save_IFS 6391 6392 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6393 ;; 6394 esac 6395 fi 6396 DOT=$ac_cv_path_DOT 6397 if test -n "$DOT"; then 6398 { echo "$as_me:$LINENO: result: $DOT" >&5 6399 echo "${ECHO_T}$DOT" >&6; } 6400 else 6401 { echo "$as_me:$LINENO: result: no" >&5 6402 echo "${ECHO_T}no" >&6; } 6403 fi 6404 6405 6406 if test "$DOT" != "echo dot" ; then 6407 6408 cat >>confdefs.h <<\_ACEOF 6409 #define HAVE_DOT 1 6410 _ACEOF 6411 6412 if test "$llvm_cv_os_type" = "MingW" ; then 6413 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6414 fi 6415 6416 cat >>confdefs.h <<_ACEOF 6417 #define LLVM_PATH_DOT "$DOT${EXEEXT}" 6418 _ACEOF 6419 6420 fi 6421 # Extract the first word of "fdp", so it can be a program name with args. 6422 set dummy fdp; ac_word=$2 6423 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6425 if test "${ac_cv_path_FDP+set}" = set; then 6426 echo $ECHO_N "(cached) $ECHO_C" >&6 6427 else 6428 case $FDP in 6429 [\\/]* | ?:[\\/]*) 6430 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6431 ;; 6432 *) 6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6434 for as_dir in $PATH 6435 do 6436 IFS=$as_save_IFS 6437 test -z "$as_dir" && as_dir=. 6438 for ac_exec_ext in '' $ac_executable_extensions; do 6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6440 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6442 break 2 6443 fi 6444 done 6445 done 6446 IFS=$as_save_IFS 6447 6448 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6449 ;; 6450 esac 6451 fi 6452 FDP=$ac_cv_path_FDP 6453 if test -n "$FDP"; then 6454 { echo "$as_me:$LINENO: result: $FDP" >&5 6455 echo "${ECHO_T}$FDP" >&6; } 6456 else 6457 { echo "$as_me:$LINENO: result: no" >&5 6458 echo "${ECHO_T}no" >&6; } 6459 fi 6460 6461 6462 if test "$FDP" != "echo fdp" ; then 6463 6464 cat >>confdefs.h <<\_ACEOF 6465 #define HAVE_FDP 1 6466 _ACEOF 6467 6468 if test "$llvm_cv_os_type" = "MingW" ; then 6469 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6470 fi 6471 6472 cat >>confdefs.h <<_ACEOF 6473 #define LLVM_PATH_FDP "$FDP${EXEEXT}" 6474 _ACEOF 6475 6476 fi 6477 # Extract the first word of "neato", so it can be a program name with args. 6478 set dummy neato; ac_word=$2 6479 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6481 if test "${ac_cv_path_NEATO+set}" = set; then 6482 echo $ECHO_N "(cached) $ECHO_C" >&6 6483 else 6484 case $NEATO in 6485 [\\/]* | ?:[\\/]*) 6486 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6487 ;; 6488 *) 6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6490 for as_dir in $PATH 6491 do 6492 IFS=$as_save_IFS 6493 test -z "$as_dir" && as_dir=. 6494 for ac_exec_ext in '' $ac_executable_extensions; do 6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6496 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6498 break 2 6499 fi 6500 done 6501 done 6502 IFS=$as_save_IFS 6503 6504 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6505 ;; 6506 esac 6507 fi 6508 NEATO=$ac_cv_path_NEATO 6509 if test -n "$NEATO"; then 6510 { echo "$as_me:$LINENO: result: $NEATO" >&5 6511 echo "${ECHO_T}$NEATO" >&6; } 6512 else 6513 { echo "$as_me:$LINENO: result: no" >&5 6514 echo "${ECHO_T}no" >&6; } 6515 fi 6516 6517 6518 if test "$NEATO" != "echo neato" ; then 6519 6520 cat >>confdefs.h <<\_ACEOF 6521 #define HAVE_NEATO 1 6522 _ACEOF 6523 6524 if test "$llvm_cv_os_type" = "MingW" ; then 6525 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6526 fi 6527 6528 cat >>confdefs.h <<_ACEOF 6529 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6530 _ACEOF 6531 6532 fi 6533 # Extract the first word of "twopi", so it can be a program name with args. 6534 set dummy twopi; ac_word=$2 6535 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6537 if test "${ac_cv_path_TWOPI+set}" = set; then 6538 echo $ECHO_N "(cached) $ECHO_C" >&6 6539 else 6540 case $TWOPI in 6541 [\\/]* | ?:[\\/]*) 6542 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 6543 ;; 6544 *) 6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6546 for as_dir in $PATH 6547 do 6548 IFS=$as_save_IFS 6549 test -z "$as_dir" && as_dir=. 6550 for ac_exec_ext in '' $ac_executable_extensions; do 6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6552 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 6553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6554 break 2 6555 fi 6556 done 6557 done 6558 IFS=$as_save_IFS 6559 6560 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 6561 ;; 6562 esac 6563 fi 6564 TWOPI=$ac_cv_path_TWOPI 6565 if test -n "$TWOPI"; then 6566 { echo "$as_me:$LINENO: result: $TWOPI" >&5 6567 echo "${ECHO_T}$TWOPI" >&6; } 6568 else 6569 { echo "$as_me:$LINENO: result: no" >&5 6570 echo "${ECHO_T}no" >&6; } 6571 fi 6572 6573 6574 if test "$TWOPI" != "echo twopi" ; then 6575 6576 cat >>confdefs.h <<\_ACEOF 6577 #define HAVE_TWOPI 1 6578 _ACEOF 6579 6580 if test "$llvm_cv_os_type" = "MingW" ; then 6581 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6582 fi 6583 6584 cat >>confdefs.h <<_ACEOF 6585 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 6586 _ACEOF 6587 6588 fi 6589 # Extract the first word of "circo", so it can be a program name with args. 6590 set dummy circo; ac_word=$2 6591 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6593 if test "${ac_cv_path_CIRCO+set}" = set; then 6594 echo $ECHO_N "(cached) $ECHO_C" >&6 6595 else 6596 case $CIRCO in 6597 [\\/]* | ?:[\\/]*) 6598 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 6599 ;; 6600 *) 6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6602 for as_dir in $PATH 6603 do 6604 IFS=$as_save_IFS 6605 test -z "$as_dir" && as_dir=. 6606 for ac_exec_ext in '' $ac_executable_extensions; do 6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6608 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 6609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6610 break 2 6611 fi 6612 done 6613 done 6614 IFS=$as_save_IFS 6615 6616 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 6617 ;; 6618 esac 6619 fi 6620 CIRCO=$ac_cv_path_CIRCO 6621 if test -n "$CIRCO"; then 6622 { echo "$as_me:$LINENO: result: $CIRCO" >&5 6623 echo "${ECHO_T}$CIRCO" >&6; } 6624 else 6625 { echo "$as_me:$LINENO: result: no" >&5 6626 echo "${ECHO_T}no" >&6; } 6627 fi 6628 6629 6630 if test "$CIRCO" != "echo circo" ; then 6631 6632 cat >>confdefs.h <<\_ACEOF 6633 #define HAVE_CIRCO 1 6634 _ACEOF 6635 6636 if test "$llvm_cv_os_type" = "MingW" ; then 6637 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6638 fi 6639 6640 cat >>confdefs.h <<_ACEOF 6641 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 6642 _ACEOF 6643 6644 fi 6645 for ac_prog in gv gsview32 6646 do 6647 # Extract the first word of "$ac_prog", so it can be a program name with args. 6648 set dummy $ac_prog; ac_word=$2 6649 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6651 if test "${ac_cv_path_GV+set}" = set; then 6652 echo $ECHO_N "(cached) $ECHO_C" >&6 6653 else 6654 case $GV in 6655 [\\/]* | ?:[\\/]*) 6656 ac_cv_path_GV="$GV" # Let the user override the test with a path. 6657 ;; 6658 *) 6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6660 for as_dir in $PATH 6661 do 6662 IFS=$as_save_IFS 6663 test -z "$as_dir" && as_dir=. 6664 for ac_exec_ext in '' $ac_executable_extensions; do 6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6666 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 6667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6668 break 2 6669 fi 6670 done 6671 done 6672 IFS=$as_save_IFS 6673 6674 ;; 6675 esac 6676 fi 6677 GV=$ac_cv_path_GV 6678 if test -n "$GV"; then 6679 { echo "$as_me:$LINENO: result: $GV" >&5 6680 echo "${ECHO_T}$GV" >&6; } 6681 else 6682 { echo "$as_me:$LINENO: result: no" >&5 6683 echo "${ECHO_T}no" >&6; } 6684 fi 6685 6686 6687 test -n "$GV" && break 6688 done 6689 test -n "$GV" || GV="echo gv" 6690 6691 if test "$GV" != "echo gv" ; then 6692 6693 cat >>confdefs.h <<\_ACEOF 6694 #define HAVE_GV 1 6695 _ACEOF 6696 6697 if test "$llvm_cv_os_type" = "MingW" ; then 6698 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6699 fi 6700 6701 cat >>confdefs.h <<_ACEOF 6702 #define LLVM_PATH_GV "$GV${EXEEXT}" 6703 _ACEOF 6704 6705 fi 6706 # Extract the first word of "dotty", so it can be a program name with args. 6707 set dummy dotty; ac_word=$2 6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6710 if test "${ac_cv_path_DOTTY+set}" = set; then 6711 echo $ECHO_N "(cached) $ECHO_C" >&6 6712 else 6713 case $DOTTY in 6714 [\\/]* | ?:[\\/]*) 6715 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 6716 ;; 6717 *) 6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6719 for as_dir in $PATH 6720 do 6721 IFS=$as_save_IFS 6722 test -z "$as_dir" && as_dir=. 6723 for ac_exec_ext in '' $ac_executable_extensions; do 6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6725 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 6726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6727 break 2 6728 fi 6729 done 6730 done 6731 IFS=$as_save_IFS 6732 6733 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 6734 ;; 6735 esac 6736 fi 6737 DOTTY=$ac_cv_path_DOTTY 6738 if test -n "$DOTTY"; then 6739 { echo "$as_me:$LINENO: result: $DOTTY" >&5 6740 echo "${ECHO_T}$DOTTY" >&6; } 6741 else 6742 { echo "$as_me:$LINENO: result: no" >&5 6743 echo "${ECHO_T}no" >&6; } 6744 fi 6745 6746 6747 if test "$DOTTY" != "echo dotty" ; then 6748 6749 cat >>confdefs.h <<\_ACEOF 6750 #define HAVE_DOTTY 1 6751 _ACEOF 6752 6753 if test "$llvm_cv_os_type" = "MingW" ; then 6754 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6755 fi 6756 6757 cat >>confdefs.h <<_ACEOF 6758 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 6759 _ACEOF 6760 6761 fi 6762 # Extract the first word of "xdot.py", so it can be a program name with args. 6763 set dummy xdot.py; ac_word=$2 6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6766 if test "${ac_cv_path_XDOT_PY+set}" = set; then 6767 echo $ECHO_N "(cached) $ECHO_C" >&6 6768 else 6769 case $XDOT_PY in 6770 [\\/]* | ?:[\\/]*) 6771 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 6772 ;; 6773 *) 6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6775 for as_dir in $PATH 6776 do 6777 IFS=$as_save_IFS 6778 test -z "$as_dir" && as_dir=. 6779 for ac_exec_ext in '' $ac_executable_extensions; do 6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6781 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6783 break 2 6784 fi 6785 done 6786 done 6787 IFS=$as_save_IFS 6788 6789 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 6790 ;; 6791 esac 6792 fi 6793 XDOT_PY=$ac_cv_path_XDOT_PY 6794 if test -n "$XDOT_PY"; then 6795 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 6796 echo "${ECHO_T}$XDOT_PY" >&6; } 6797 else 6798 { echo "$as_me:$LINENO: result: no" >&5 6799 echo "${ECHO_T}no" >&6; } 6800 fi 6801 6802 6803 if test "$XDOT_PY" != "echo xdot.py" ; then 6804 6805 cat >>confdefs.h <<\_ACEOF 6806 #define HAVE_XDOT_PY 1 6807 _ACEOF 6808 6809 if test "$llvm_cv_os_type" = "MingW" ; then 6810 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6811 fi 6812 6813 cat >>confdefs.h <<_ACEOF 6814 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 6815 _ACEOF 6816 6817 fi 6818 6819 # Find a good install program. We prefer a C program (faster), 6820 # so one script is as good as another. But avoid the broken or 6821 # incompatible versions: 6822 # SysV /etc/install, /usr/sbin/install 6823 # SunOS /usr/etc/install 6824 # IRIX /sbin/install 6825 # AIX /bin/install 6826 # AmigaOS /C/install, which installs bootblocks on floppy discs 6827 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 6829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6830 # OS/2's system install, which has a completely different semantic 6831 # ./install, which can be erroneously created by make from ./install.sh. 6832 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 6833 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 6834 if test -z "$INSTALL"; then 6835 if test "${ac_cv_path_install+set}" = set; then 6836 echo $ECHO_N "(cached) $ECHO_C" >&6 6837 else 6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6839 for as_dir in $PATH 6840 do 6841 IFS=$as_save_IFS 6842 test -z "$as_dir" && as_dir=. 6843 # Account for people who put trailing slashes in PATH elements. 6844 case $as_dir/ in 6845 ./ | .// | /cC/* | \ 6846 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6847 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 6848 /usr/ucb/* ) ;; 6849 *) 6850 # OSF1 and SCO ODT 3.0 have their own names for install. 6851 # Don't use installbsd from OSF since it installs stuff as root 6852 # by default. 6853 for ac_prog in ginstall scoinst install; do 6854 for ac_exec_ext in '' $ac_executable_extensions; do 6855 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 6856 if test $ac_prog = install && 6857 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6858 # AIX install. It has an incompatible calling convention. 6859 : 6860 elif test $ac_prog = install && 6861 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6862 # program-specific install script used by HP pwplus--don't use. 6863 : 6864 else 6865 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6866 break 3 6867 fi 6868 fi 6869 done 6870 done 6871 ;; 6872 esac 6873 done 6874 IFS=$as_save_IFS 6875 6876 6877 fi 6878 if test "${ac_cv_path_install+set}" = set; then 6879 INSTALL=$ac_cv_path_install 6880 else 6881 # As a last resort, use the slow shell script. Don't cache a 6882 # value for INSTALL within a source directory, because that will 6883 # break other packages using the cache if that directory is 6884 # removed, or if the value is a relative name. 6885 INSTALL=$ac_install_sh 6886 fi 6887 fi 6888 { echo "$as_me:$LINENO: result: $INSTALL" >&5 6889 echo "${ECHO_T}$INSTALL" >&6; } 6890 6891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6892 # It thinks the first close brace ends the variable substitution. 6893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6894 6895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6896 6897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6898 6899 case "$INSTALL" in 6900 [\\/$]* | ?:[\\/]* ) ;; 6901 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 6902 esac 6903 6904 # Extract the first word of "bzip2", so it can be a program name with args. 6905 set dummy bzip2; ac_word=$2 6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6908 if test "${ac_cv_path_BZIP2+set}" = set; then 6909 echo $ECHO_N "(cached) $ECHO_C" >&6 6910 else 6911 case $BZIP2 in 6912 [\\/]* | ?:[\\/]*) 6913 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 6914 ;; 6915 *) 6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917 for as_dir in $PATH 6918 do 6919 IFS=$as_save_IFS 6920 test -z "$as_dir" && as_dir=. 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6923 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927 done 6928 done 6929 IFS=$as_save_IFS 6930 6931 ;; 6932 esac 6933 fi 6934 BZIP2=$ac_cv_path_BZIP2 6935 if test -n "$BZIP2"; then 6936 { echo "$as_me:$LINENO: result: $BZIP2" >&5 6937 echo "${ECHO_T}$BZIP2" >&6; } 6938 else 6939 { echo "$as_me:$LINENO: result: no" >&5 6940 echo "${ECHO_T}no" >&6; } 6941 fi 6942 6943 6944 # Extract the first word of "cat", so it can be a program name with args. 6945 set dummy cat; ac_word=$2 6946 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6948 if test "${ac_cv_path_CAT+set}" = set; then 6949 echo $ECHO_N "(cached) $ECHO_C" >&6 6950 else 6951 case $CAT in 6952 [\\/]* | ?:[\\/]*) 6953 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 6954 ;; 6955 *) 6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6957 for as_dir in $PATH 6958 do 6959 IFS=$as_save_IFS 6960 test -z "$as_dir" && as_dir=. 6961 for ac_exec_ext in '' $ac_executable_extensions; do 6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6963 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 6964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6965 break 2 6966 fi 6967 done 6968 done 6969 IFS=$as_save_IFS 6970 6971 ;; 6972 esac 6973 fi 6974 CAT=$ac_cv_path_CAT 6975 if test -n "$CAT"; then 6976 { echo "$as_me:$LINENO: result: $CAT" >&5 6977 echo "${ECHO_T}$CAT" >&6; } 6978 else 6979 { echo "$as_me:$LINENO: result: no" >&5 6980 echo "${ECHO_T}no" >&6; } 6981 fi 6982 6983 6984 # Extract the first word of "doxygen", so it can be a program name with args. 6985 set dummy doxygen; ac_word=$2 6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5 6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6988 if test "${ac_cv_path_DOXYGEN+set}" = set; then 6989 echo $ECHO_N "(cached) $ECHO_C" >&6 6990 else 6991 case $DOXYGEN in 6992 [\\/]* | ?:[\\/]*) 6993 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 6994 ;; 6995 *) 6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6997 for as_dir in $PATH 6998 do 6999 IFS=$as_save_IFS 7000 test -z "$as_dir" && as_dir=. 7001 for ac_exec_ext in '' $ac_executable_extensions; do 7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7003 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7005 break 2 7006 fi 7007 done 7008 done 7009 IFS=$as_save_IFS 7010 7011 ;; 7012 esac 7013 fi 7014 DOXYGEN=$ac_cv_path_DOXYGEN 7015 if test -n "$DOXYGEN"; then 7016 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7017 echo "${ECHO_T}$DOXYGEN" >&6; } 7018 else 7019 { echo "$as_me:$LINENO: result: no" >&5 7020 echo "${ECHO_T}no" >&6; } 7021 fi 7022 7023 7024 # Extract the first word of "groff", so it can be a program name with args. 7025 set dummy groff; ac_word=$2 7026 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7028 if test "${ac_cv_path_GROFF+set}" = set; then 7029 echo $ECHO_N "(cached) $ECHO_C" >&6 7030 else 7031 case $GROFF in 7032 [\\/]* | ?:[\\/]*) 7033 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7034 ;; 7035 *) 7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7037 for as_dir in $PATH 7038 do 7039 IFS=$as_save_IFS 7040 test -z "$as_dir" && as_dir=. 7041 for ac_exec_ext in '' $ac_executable_extensions; do 7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7043 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7045 break 2 7046 fi 7047 done 7048 done 7049 IFS=$as_save_IFS 7050 7051 ;; 7052 esac 7053 fi 7054 GROFF=$ac_cv_path_GROFF 7055 if test -n "$GROFF"; then 7056 { echo "$as_me:$LINENO: result: $GROFF" >&5 7057 echo "${ECHO_T}$GROFF" >&6; } 7058 else 7059 { echo "$as_me:$LINENO: result: no" >&5 7060 echo "${ECHO_T}no" >&6; } 7061 fi 7062 7063 7064 # Extract the first word of "gzip", so it can be a program name with args. 7065 set dummy gzip; ac_word=$2 7066 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7068 if test "${ac_cv_path_GZIPBIN+set}" = set; then 7069 echo $ECHO_N "(cached) $ECHO_C" >&6 7070 else 7071 case $GZIPBIN in 7072 [\\/]* | ?:[\\/]*) 7073 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7074 ;; 7075 *) 7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7077 for as_dir in $PATH 7078 do 7079 IFS=$as_save_IFS 7080 test -z "$as_dir" && as_dir=. 7081 for ac_exec_ext in '' $ac_executable_extensions; do 7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7083 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7085 break 2 7086 fi 7087 done 7088 done 7089 IFS=$as_save_IFS 7090 7091 ;; 7092 esac 7093 fi 7094 GZIPBIN=$ac_cv_path_GZIPBIN 7095 if test -n "$GZIPBIN"; then 7096 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7097 echo "${ECHO_T}$GZIPBIN" >&6; } 7098 else 7099 { echo "$as_me:$LINENO: result: no" >&5 7100 echo "${ECHO_T}no" >&6; } 7101 fi 7102 7103 7104 # Extract the first word of "pod2html", so it can be a program name with args. 7105 set dummy pod2html; ac_word=$2 7106 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7108 if test "${ac_cv_path_POD2HTML+set}" = set; then 7109 echo $ECHO_N "(cached) $ECHO_C" >&6 7110 else 7111 case $POD2HTML in 7112 [\\/]* | ?:[\\/]*) 7113 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. 7114 ;; 7115 *) 7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7117 for as_dir in $PATH 7118 do 7119 IFS=$as_save_IFS 7120 test -z "$as_dir" && as_dir=. 7121 for ac_exec_ext in '' $ac_executable_extensions; do 7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7123 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" 7124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7125 break 2 7126 fi 7127 done 7128 done 7129 IFS=$as_save_IFS 7130 7131 ;; 7132 esac 7133 fi 7134 POD2HTML=$ac_cv_path_POD2HTML 7135 if test -n "$POD2HTML"; then 7136 { echo "$as_me:$LINENO: result: $POD2HTML" >&5 7137 echo "${ECHO_T}$POD2HTML" >&6; } 7138 else 7139 { echo "$as_me:$LINENO: result: no" >&5 7140 echo "${ECHO_T}no" >&6; } 7141 fi 7142 7143 7144 # Extract the first word of "pod2man", so it can be a program name with args. 7145 set dummy pod2man; ac_word=$2 7146 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7148 if test "${ac_cv_path_POD2MAN+set}" = set; then 7149 echo $ECHO_N "(cached) $ECHO_C" >&6 7150 else 7151 case $POD2MAN in 7152 [\\/]* | ?:[\\/]*) 7153 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. 7154 ;; 7155 *) 7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7157 for as_dir in $PATH 7158 do 7159 IFS=$as_save_IFS 7160 test -z "$as_dir" && as_dir=. 7161 for ac_exec_ext in '' $ac_executable_extensions; do 7162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7163 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" 7164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7165 break 2 7166 fi 7167 done 7168 done 7169 IFS=$as_save_IFS 7170 7171 ;; 7172 esac 7173 fi 7174 POD2MAN=$ac_cv_path_POD2MAN 7175 if test -n "$POD2MAN"; then 7176 { echo "$as_me:$LINENO: result: $POD2MAN" >&5 7177 echo "${ECHO_T}$POD2MAN" >&6; } 7178 else 7179 { echo "$as_me:$LINENO: result: no" >&5 7180 echo "${ECHO_T}no" >&6; } 7181 fi 7182 7183 7184 # Extract the first word of "pdfroff", so it can be a program name with args. 7185 set dummy pdfroff; ac_word=$2 7186 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7188 if test "${ac_cv_path_PDFROFF+set}" = set; then 7189 echo $ECHO_N "(cached) $ECHO_C" >&6 7190 else 7191 case $PDFROFF in 7192 [\\/]* | ?:[\\/]*) 7193 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7194 ;; 7195 *) 7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7197 for as_dir in $PATH 7198 do 7199 IFS=$as_save_IFS 7200 test -z "$as_dir" && as_dir=. 7201 for ac_exec_ext in '' $ac_executable_extensions; do 7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7203 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7205 break 2 7206 fi 7207 done 7208 done 7209 IFS=$as_save_IFS 7210 7211 ;; 7212 esac 7213 fi 7214 PDFROFF=$ac_cv_path_PDFROFF 7215 if test -n "$PDFROFF"; then 7216 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7217 echo "${ECHO_T}$PDFROFF" >&6; } 7218 else 7219 { echo "$as_me:$LINENO: result: no" >&5 7220 echo "${ECHO_T}no" >&6; } 7221 fi 7222 7223 7224 # Extract the first word of "runtest", so it can be a program name with args. 7225 set dummy runtest; ac_word=$2 7226 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7228 if test "${ac_cv_path_RUNTEST+set}" = set; then 7229 echo $ECHO_N "(cached) $ECHO_C" >&6 7230 else 7231 case $RUNTEST in 7232 [\\/]* | ?:[\\/]*) 7233 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. 7234 ;; 7235 *) 7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7237 for as_dir in $PATH 7238 do 7239 IFS=$as_save_IFS 7240 test -z "$as_dir" && as_dir=. 7241 for ac_exec_ext in '' $ac_executable_extensions; do 7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7243 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" 7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7245 break 2 7246 fi 7247 done 7248 done 7249 IFS=$as_save_IFS 7250 7251 ;; 7252 esac 7253 fi 7254 RUNTEST=$ac_cv_path_RUNTEST 7255 if test -n "$RUNTEST"; then 7256 { echo "$as_me:$LINENO: result: $RUNTEST" >&5 7257 echo "${ECHO_T}$RUNTEST" >&6; } 7258 else 7259 { echo "$as_me:$LINENO: result: no" >&5 7260 echo "${ECHO_T}no" >&6; } 7261 fi 7262 7263 7264 7265 no_itcl=true 7266 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 7267 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } 7268 7269 # Check whether --with-tclinclude was given. 7270 if test "${with_tclinclude+set}" = set; then 7271 withval=$with_tclinclude; with_tclinclude=${withval} 7272 else 7273 with_tclinclude='' 7274 fi 7275 7276 if test "${ac_cv_path_tclsh+set}" = set; then 7277 echo $ECHO_N "(cached) $ECHO_C" >&6 7278 else 7279 7280 if test x"${with_tclinclude}" != x ; then 7281 if test -f ${with_tclinclude}/tclsh ; then 7282 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` 7283 elif test -f ${with_tclinclude}/src/tclsh ; then 7284 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` 7285 else 7286 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 7287 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} 7288 { (exit 1); exit 1; }; } 7289 fi 7290 fi 7291 fi 7292 7293 7294 if test x"${ac_cv_path_tclsh}" = x ; then 7295 { echo "$as_me:$LINENO: result: none" >&5 7296 echo "${ECHO_T}none" >&6; } 7297 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh 7298 do 7299 # Extract the first word of "$ac_prog", so it can be a program name with args. 7300 set dummy $ac_prog; ac_word=$2 7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7303 if test "${ac_cv_path_TCLSH+set}" = set; then 7304 echo $ECHO_N "(cached) $ECHO_C" >&6 7305 else 7306 case $TCLSH in 7307 [\\/]* | ?:[\\/]*) 7308 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. 7309 ;; 7310 *) 7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7312 for as_dir in $PATH 7313 do 7314 IFS=$as_save_IFS 7315 test -z "$as_dir" && as_dir=. 7316 for ac_exec_ext in '' $ac_executable_extensions; do 7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7318 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" 7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7320 break 2 7321 fi 7322 done 7323 done 7324 IFS=$as_save_IFS 7325 7326 ;; 7327 esac 7328 fi 7329 TCLSH=$ac_cv_path_TCLSH 7330 if test -n "$TCLSH"; then 7331 { echo "$as_me:$LINENO: result: $TCLSH" >&5 7332 echo "${ECHO_T}$TCLSH" >&6; } 7333 else 7334 { echo "$as_me:$LINENO: result: no" >&5 7335 echo "${ECHO_T}no" >&6; } 7336 fi 7337 7338 7339 test -n "$TCLSH" && break 7340 done 7341 7342 if test x"${TCLSH}" = x ; then 7343 ac_cv_path_tclsh=''; 7344 else 7345 ac_cv_path_tclsh="${TCLSH}"; 7346 fi 7347 else 7348 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 7349 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } 7350 TCLSH="${ac_cv_path_tclsh}" 7351 7352 fi 7353 7354 # Extract the first word of "zip", so it can be a program name with args. 7355 set dummy zip; ac_word=$2 7356 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7358 if test "${ac_cv_path_ZIP+set}" = set; then 7359 echo $ECHO_N "(cached) $ECHO_C" >&6 7360 else 7361 case $ZIP in 7362 [\\/]* | ?:[\\/]*) 7363 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7364 ;; 7365 *) 7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7367 for as_dir in $PATH 7368 do 7369 IFS=$as_save_IFS 7370 test -z "$as_dir" && as_dir=. 7371 for ac_exec_ext in '' $ac_executable_extensions; do 7372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7373 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7375 break 2 7376 fi 7377 done 7378 done 7379 IFS=$as_save_IFS 7380 7381 ;; 7382 esac 7383 fi 7384 ZIP=$ac_cv_path_ZIP 7385 if test -n "$ZIP"; then 7386 { echo "$as_me:$LINENO: result: $ZIP" >&5 7387 echo "${ECHO_T}$ZIP" >&6; } 7388 else 7389 { echo "$as_me:$LINENO: result: no" >&5 7390 echo "${ECHO_T}no" >&6; } 7391 fi 7392 7393 7394 for ac_prog in ocamlc 7395 do 7396 # Extract the first word of "$ac_prog", so it can be a program name with args. 7397 set dummy $ac_prog; ac_word=$2 7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7400 if test "${ac_cv_path_OCAMLC+set}" = set; then 7401 echo $ECHO_N "(cached) $ECHO_C" >&6 7402 else 7403 case $OCAMLC in 7404 [\\/]* | ?:[\\/]*) 7405 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7406 ;; 7407 *) 7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7409 for as_dir in $PATH 7410 do 7411 IFS=$as_save_IFS 7412 test -z "$as_dir" && as_dir=. 7413 for ac_exec_ext in '' $ac_executable_extensions; do 7414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7415 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7417 break 2 7418 fi 7419 done 7420 done 7421 IFS=$as_save_IFS 7422 7423 ;; 7424 esac 7425 fi 7426 OCAMLC=$ac_cv_path_OCAMLC 7427 if test -n "$OCAMLC"; then 7428 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7429 echo "${ECHO_T}$OCAMLC" >&6; } 7430 else 7431 { echo "$as_me:$LINENO: result: no" >&5 7432 echo "${ECHO_T}no" >&6; } 7433 fi 7434 7435 7436 test -n "$OCAMLC" && break 7437 done 7438 7439 for ac_prog in ocamlopt 7440 do 7441 # Extract the first word of "$ac_prog", so it can be a program name with args. 7442 set dummy $ac_prog; ac_word=$2 7443 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7445 if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7446 echo $ECHO_N "(cached) $ECHO_C" >&6 7447 else 7448 case $OCAMLOPT in 7449 [\\/]* | ?:[\\/]*) 7450 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7451 ;; 7452 *) 7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7454 for as_dir in $PATH 7455 do 7456 IFS=$as_save_IFS 7457 test -z "$as_dir" && as_dir=. 7458 for ac_exec_ext in '' $ac_executable_extensions; do 7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7460 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7462 break 2 7463 fi 7464 done 7465 done 7466 IFS=$as_save_IFS 7467 7468 ;; 7469 esac 7470 fi 7471 OCAMLOPT=$ac_cv_path_OCAMLOPT 7472 if test -n "$OCAMLOPT"; then 7473 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7474 echo "${ECHO_T}$OCAMLOPT" >&6; } 7475 else 7476 { echo "$as_me:$LINENO: result: no" >&5 7477 echo "${ECHO_T}no" >&6; } 7478 fi 7479 7480 7481 test -n "$OCAMLOPT" && break 7482 done 7483 7484 for ac_prog in ocamldep 7485 do 7486 # Extract the first word of "$ac_prog", so it can be a program name with args. 7487 set dummy $ac_prog; ac_word=$2 7488 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7490 if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7491 echo $ECHO_N "(cached) $ECHO_C" >&6 7492 else 7493 case $OCAMLDEP in 7494 [\\/]* | ?:[\\/]*) 7495 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7496 ;; 7497 *) 7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7499 for as_dir in $PATH 7500 do 7501 IFS=$as_save_IFS 7502 test -z "$as_dir" && as_dir=. 7503 for ac_exec_ext in '' $ac_executable_extensions; do 7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7505 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7507 break 2 7508 fi 7509 done 7510 done 7511 IFS=$as_save_IFS 7512 7513 ;; 7514 esac 7515 fi 7516 OCAMLDEP=$ac_cv_path_OCAMLDEP 7517 if test -n "$OCAMLDEP"; then 7518 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7519 echo "${ECHO_T}$OCAMLDEP" >&6; } 7520 else 7521 { echo "$as_me:$LINENO: result: no" >&5 7522 echo "${ECHO_T}no" >&6; } 7523 fi 7524 7525 7526 test -n "$OCAMLDEP" && break 7527 done 7528 7529 for ac_prog in ocamldoc 7530 do 7531 # Extract the first word of "$ac_prog", so it can be a program name with args. 7532 set dummy $ac_prog; ac_word=$2 7533 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7535 if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7536 echo $ECHO_N "(cached) $ECHO_C" >&6 7537 else 7538 case $OCAMLDOC in 7539 [\\/]* | ?:[\\/]*) 7540 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7541 ;; 7542 *) 7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7544 for as_dir in $PATH 7545 do 7546 IFS=$as_save_IFS 7547 test -z "$as_dir" && as_dir=. 7548 for ac_exec_ext in '' $ac_executable_extensions; do 7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7550 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7552 break 2 7553 fi 7554 done 7555 done 7556 IFS=$as_save_IFS 7557 7558 ;; 7559 esac 7560 fi 7561 OCAMLDOC=$ac_cv_path_OCAMLDOC 7562 if test -n "$OCAMLDOC"; then 7563 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7564 echo "${ECHO_T}$OCAMLDOC" >&6; } 7565 else 7566 { echo "$as_me:$LINENO: result: no" >&5 7567 echo "${ECHO_T}no" >&6; } 7568 fi 7569 7570 7571 test -n "$OCAMLDOC" && break 7572 done 7573 7574 for ac_prog in gas as 7575 do 7576 # Extract the first word of "$ac_prog", so it can be a program name with args. 7577 set dummy $ac_prog; ac_word=$2 7578 { echo "$as_me:$LINENO: checking for $ac_word" >&5 7579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7580 if test "${ac_cv_path_GAS+set}" = set; then 7581 echo $ECHO_N "(cached) $ECHO_C" >&6 7582 else 7583 case $GAS in 7584 [\\/]* | ?:[\\/]*) 7585 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7586 ;; 7587 *) 7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7589 for as_dir in $PATH 7590 do 7591 IFS=$as_save_IFS 7592 test -z "$as_dir" && as_dir=. 7593 for ac_exec_ext in '' $ac_executable_extensions; do 7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7595 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7597 break 2 7598 fi 7599 done 7600 done 7601 IFS=$as_save_IFS 7602 7603 ;; 7604 esac 7605 fi 7606 GAS=$ac_cv_path_GAS 7607 if test -n "$GAS"; then 7608 { echo "$as_me:$LINENO: result: $GAS" >&5 7609 echo "${ECHO_T}$GAS" >&6; } 7610 else 7611 { echo "$as_me:$LINENO: result: no" >&5 7612 echo "${ECHO_T}no" >&6; } 7613 fi 7614 7615 7616 test -n "$GAS" && break 7617 done 7618 7619 7620 { echo "$as_me:$LINENO: checking for linker version" >&5 7621 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7622 if test "${llvm_cv_link_version+set}" = set; then 7623 echo $ECHO_N "(cached) $ECHO_C" >&6 7624 else 7625 7626 version_string="$(ld -v 2>&1 | head -1)" 7627 7628 # Check for ld64. 7629 if (echo "$version_string" | grep -q "ld64"); then 7630 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7631 else 7632 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7633 fi 7634 7635 fi 7636 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7637 echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7638 7639 cat >>confdefs.h <<_ACEOF 7640 #define HOST_LINK_VERSION "$llvm_cv_link_version" 7641 _ACEOF 7642 7643 7644 7645 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7646 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7647 if test "${llvm_cv_link_use_r+set}" = set; then 7648 echo $ECHO_N "(cached) $ECHO_C" >&6 7649 else 7650 ac_ext=c 7651 ac_cpp='$CPP $CPPFLAGS' 7652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7654 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7655 7656 oldcflags="$CFLAGS" 7657 CFLAGS="$CFLAGS -Wl,-R." 7658 cat >conftest.$ac_ext <<_ACEOF 7659 /* confdefs.h. */ 7660 _ACEOF 7661 cat confdefs.h >>conftest.$ac_ext 7662 cat >>conftest.$ac_ext <<_ACEOF 7663 /* end confdefs.h. */ 7664 7665 int 7666 main () 7667 { 7668 7669 ; 7670 return 0; 7671 } 7672 _ACEOF 7673 rm -f conftest.$ac_objext conftest$ac_exeext 7674 if { (ac_try="$ac_link" 7675 case "(($ac_try" in 7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7677 *) ac_try_echo=$ac_try;; 7678 esac 7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7680 (eval "$ac_link") 2>conftest.er1 7681 ac_status=$? 7682 grep -v '^ *+' conftest.er1 >conftest.err 7683 rm -f conftest.er1 7684 cat conftest.err >&5 7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7686 (exit $ac_status); } && 7687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7688 { (case "(($ac_try" in 7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7690 *) ac_try_echo=$ac_try;; 7691 esac 7692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7693 (eval "$ac_try") 2>&5 7694 ac_status=$? 7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7696 (exit $ac_status); }; } && 7697 { ac_try='test -s conftest$ac_exeext' 7698 { (case "(($ac_try" in 7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7700 *) ac_try_echo=$ac_try;; 7701 esac 7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7703 (eval "$ac_try") 2>&5 7704 ac_status=$? 7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7706 (exit $ac_status); }; }; then 7707 llvm_cv_link_use_r=yes 7708 else 7709 echo "$as_me: failed program was:" >&5 7710 sed 's/^/| /' conftest.$ac_ext >&5 7711 7712 llvm_cv_link_use_r=no 7713 fi 7714 7715 rm -f core conftest.err conftest.$ac_objext \ 7716 conftest$ac_exeext conftest.$ac_ext 7717 CFLAGS="$oldcflags" 7718 ac_ext=c 7719 ac_cpp='$CPP $CPPFLAGS' 7720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7722 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7723 7724 7725 fi 7726 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7727 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7728 if test "$llvm_cv_link_use_r" = yes ; then 7729 7730 cat >>confdefs.h <<\_ACEOF 7731 #define HAVE_LINK_R 1 7732 _ACEOF 7733 7734 fi 7735 7736 7737 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 7738 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 7739 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7740 echo $ECHO_N "(cached) $ECHO_C" >&6 7741 else 7742 ac_ext=c 7743 ac_cpp='$CPP $CPPFLAGS' 7744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7746 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7747 7748 oldcflags="$CFLAGS" 7749 CFLAGS="$CFLAGS -Wl,-export-dynamic" 7750 cat >conftest.$ac_ext <<_ACEOF 7751 /* confdefs.h. */ 7752 _ACEOF 7753 cat confdefs.h >>conftest.$ac_ext 7754 cat >>conftest.$ac_ext <<_ACEOF 7755 /* end confdefs.h. */ 7756 7757 int 7758 main () 7759 { 7760 7761 ; 7762 return 0; 7763 } 7764 _ACEOF 7765 rm -f conftest.$ac_objext conftest$ac_exeext 7766 if { (ac_try="$ac_link" 7767 case "(($ac_try" in 7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7769 *) ac_try_echo=$ac_try;; 7770 esac 7771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7772 (eval "$ac_link") 2>conftest.er1 7773 ac_status=$? 7774 grep -v '^ *+' conftest.er1 >conftest.err 7775 rm -f conftest.er1 7776 cat conftest.err >&5 7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7778 (exit $ac_status); } && 7779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7780 { (case "(($ac_try" in 7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7782 *) ac_try_echo=$ac_try;; 7783 esac 7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7785 (eval "$ac_try") 2>&5 7786 ac_status=$? 7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7788 (exit $ac_status); }; } && 7789 { ac_try='test -s conftest$ac_exeext' 7790 { (case "(($ac_try" in 7791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7792 *) ac_try_echo=$ac_try;; 7793 esac 7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7795 (eval "$ac_try") 2>&5 7796 ac_status=$? 7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7798 (exit $ac_status); }; }; then 7799 llvm_cv_link_use_export_dynamic=yes 7800 else 7801 echo "$as_me: failed program was:" >&5 7802 sed 's/^/| /' conftest.$ac_ext >&5 7803 7804 llvm_cv_link_use_export_dynamic=no 7805 fi 7806 7807 rm -f core conftest.err conftest.$ac_objext \ 7808 conftest$ac_exeext conftest.$ac_ext 7809 CFLAGS="$oldcflags" 7810 ac_ext=c 7811 ac_cpp='$CPP $CPPFLAGS' 7812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7814 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7815 7816 7817 fi 7818 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 7819 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 7820 if test "$llvm_cv_link_use_export_dynamic" = yes ; then 7821 7822 cat >>confdefs.h <<\_ACEOF 7823 #define HAVE_LINK_EXPORT_DYNAMIC 1 7824 _ACEOF 7825 7826 fi 7827 7828 7829 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 7830 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 7831 if test "${llvm_cv_link_use_version_script+set}" = set; then 7832 echo $ECHO_N "(cached) $ECHO_C" >&6 7833 else 7834 ac_ext=c 7835 ac_cpp='$CPP $CPPFLAGS' 7836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7838 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7839 7840 oldcflags="$CFLAGS" 7841 7842 # The following code is from the autoconf manual, 7843 # "11.13: Limitations of Usual Tools". 7844 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 7845 # Use mktemp if possible; otherwise fall back on mkdir, 7846 # with $RANDOM to make collisions less likely. 7847 : ${TMPDIR=/tmp} 7848 { 7849 tmp=` 7850 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 7851 ` && 7852 test -n "$tmp" && test -d "$tmp" 7853 } || { 7854 tmp=$TMPDIR/foo$$-$RANDOM 7855 (umask 077 && mkdir "$tmp") 7856 } || exit $? 7857 7858 echo "{" > "$tmp/export.map" 7859 echo " global: main;" >> "$tmp/export.map" 7860 echo " local: *;" >> "$tmp/export.map" 7861 echo "};" >> "$tmp/export.map" 7862 7863 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 7864 cat >conftest.$ac_ext <<_ACEOF 7865 /* confdefs.h. */ 7866 _ACEOF 7867 cat confdefs.h >>conftest.$ac_ext 7868 cat >>conftest.$ac_ext <<_ACEOF 7869 /* end confdefs.h. */ 7870 7871 int 7872 main () 7873 { 7874 7875 ; 7876 return 0; 7877 } 7878 _ACEOF 7879 rm -f conftest.$ac_objext conftest$ac_exeext 7880 if { (ac_try="$ac_link" 7881 case "(($ac_try" in 7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7883 *) ac_try_echo=$ac_try;; 7884 esac 7885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7886 (eval "$ac_link") 2>conftest.er1 7887 ac_status=$? 7888 grep -v '^ *+' conftest.er1 >conftest.err 7889 rm -f conftest.er1 7890 cat conftest.err >&5 7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7892 (exit $ac_status); } && 7893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7894 { (case "(($ac_try" in 7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7896 *) ac_try_echo=$ac_try;; 7897 esac 7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7899 (eval "$ac_try") 2>&5 7900 ac_status=$? 7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7902 (exit $ac_status); }; } && 7903 { ac_try='test -s conftest$ac_exeext' 7904 { (case "(($ac_try" in 7905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7906 *) ac_try_echo=$ac_try;; 7907 esac 7908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7909 (eval "$ac_try") 2>&5 7910 ac_status=$? 7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7912 (exit $ac_status); }; }; then 7913 llvm_cv_link_use_version_script=yes 7914 else 7915 echo "$as_me: failed program was:" >&5 7916 sed 's/^/| /' conftest.$ac_ext >&5 7917 7918 llvm_cv_link_use_version_script=no 7919 fi 7920 7921 rm -f core conftest.err conftest.$ac_objext \ 7922 conftest$ac_exeext conftest.$ac_ext 7923 rm "$tmp/export.map" 7924 rmdir "$tmp" 7925 CFLAGS="$oldcflags" 7926 ac_ext=c 7927 ac_cpp='$CPP $CPPFLAGS' 7928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7930 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7931 7932 7933 fi 7934 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 7935 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 7936 if test "$llvm_cv_link_use_version_script" = yes ; then 7937 HAVE_LINK_VERSION_SCRIPT=1 7938 7939 fi 7940 7941 7942 7943 7944 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7945 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 7946 if test "${ac_cv_c_const+set}" = set; then 7947 echo $ECHO_N "(cached) $ECHO_C" >&6 7948 else 7949 cat >conftest.$ac_ext <<_ACEOF 7950 /* confdefs.h. */ 7951 _ACEOF 7952 cat confdefs.h >>conftest.$ac_ext 7953 cat >>conftest.$ac_ext <<_ACEOF 7954 /* end confdefs.h. */ 7955 7956 int 7957 main () 7958 { 7959 /* FIXME: Include the comments suggested by Paul. */ 7960 #ifndef __cplusplus 7961 /* Ultrix mips cc rejects this. */ 7962 typedef int charset[2]; 7963 const charset x; 7964 /* SunOS 4.1.1 cc rejects this. */ 7965 char const *const *ccp; 7966 char **p; 7967 /* NEC SVR4.0.2 mips cc rejects this. */ 7968 struct point {int x, y;}; 7969 static struct point const zero = {0,0}; 7970 /* AIX XL C 1.02.0.0 rejects this. 7971 It does not let you subtract one const X* pointer from another in 7972 an arm of an if-expression whose if-part is not a constant 7973 expression */ 7974 const char *g = "string"; 7975 ccp = &g + (g ? g-g : 0); 7976 /* HPUX 7.0 cc rejects these. */ 7977 ++ccp; 7978 p = (char**) ccp; 7979 ccp = (char const *const *) p; 7980 { /* SCO 3.2v4 cc rejects this. */ 7981 char *t; 7982 char const *s = 0 ? (char *) 0 : (char const *) 0; 7983 7984 *t++ = 0; 7985 if (s) return 0; 7986 } 7987 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7988 int x[] = {25, 17}; 7989 const int *foo = &x[0]; 7990 ++foo; 7991 } 7992 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7993 typedef const int *iptr; 7994 iptr p = 0; 7995 ++p; 7996 } 7997 { /* AIX XL C 1.02.0.0 rejects this saying 7998 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7999 struct s { int j; const int *ap[3]; }; 8000 struct s *b; b->j = 5; 8001 } 8002 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8003 const int foo = 10; 8004 if (!foo) return 0; 8005 } 8006 return !x[0] && !zero.x; 8007 #endif 8008 8009 ; 8010 return 0; 8011 } 8012 _ACEOF 8013 rm -f conftest.$ac_objext 8014 if { (ac_try="$ac_compile" 8015 case "(($ac_try" in 8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8017 *) ac_try_echo=$ac_try;; 8018 esac 8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8020 (eval "$ac_compile") 2>conftest.er1 8021 ac_status=$? 8022 grep -v '^ *+' conftest.er1 >conftest.err 8023 rm -f conftest.er1 8024 cat conftest.err >&5 8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8026 (exit $ac_status); } && 8027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8028 { (case "(($ac_try" in 8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8030 *) ac_try_echo=$ac_try;; 8031 esac 8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8033 (eval "$ac_try") 2>&5 8034 ac_status=$? 8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8036 (exit $ac_status); }; } && 8037 { ac_try='test -s conftest.$ac_objext' 8038 { (case "(($ac_try" in 8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8040 *) ac_try_echo=$ac_try;; 8041 esac 8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8043 (eval "$ac_try") 2>&5 8044 ac_status=$? 8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8046 (exit $ac_status); }; }; then 8047 ac_cv_c_const=yes 8048 else 8049 echo "$as_me: failed program was:" >&5 8050 sed 's/^/| /' conftest.$ac_ext >&5 8051 8052 ac_cv_c_const=no 8053 fi 8054 8055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8056 fi 8057 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8058 echo "${ECHO_T}$ac_cv_c_const" >&6; } 8059 if test $ac_cv_c_const = no; then 8060 8061 cat >>confdefs.h <<\_ACEOF 8062 #define const 8063 _ACEOF 8064 8065 fi 8066 8067 8068 8069 8070 8071 8072 ac_header_dirent=no 8073 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8074 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8075 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8076 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8078 echo $ECHO_N "(cached) $ECHO_C" >&6 8079 else 8080 cat >conftest.$ac_ext <<_ACEOF 8081 /* confdefs.h. */ 8082 _ACEOF 8083 cat confdefs.h >>conftest.$ac_ext 8084 cat >>conftest.$ac_ext <<_ACEOF 8085 /* end confdefs.h. */ 8086 #include <sys/types.h> 8087 #include <$ac_hdr> 8088 8089 int 8090 main () 8091 { 8092 if ((DIR *) 0) 8093 return 0; 8094 ; 8095 return 0; 8096 } 8097 _ACEOF 8098 rm -f conftest.$ac_objext 8099 if { (ac_try="$ac_compile" 8100 case "(($ac_try" in 8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8102 *) ac_try_echo=$ac_try;; 8103 esac 8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8105 (eval "$ac_compile") 2>conftest.er1 8106 ac_status=$? 8107 grep -v '^ *+' conftest.er1 >conftest.err 8108 rm -f conftest.er1 8109 cat conftest.err >&5 8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8111 (exit $ac_status); } && 8112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8113 { (case "(($ac_try" in 8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8115 *) ac_try_echo=$ac_try;; 8116 esac 8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8118 (eval "$ac_try") 2>&5 8119 ac_status=$? 8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8121 (exit $ac_status); }; } && 8122 { ac_try='test -s conftest.$ac_objext' 8123 { (case "(($ac_try" in 8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8125 *) ac_try_echo=$ac_try;; 8126 esac 8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8128 (eval "$ac_try") 2>&5 8129 ac_status=$? 8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8131 (exit $ac_status); }; }; then 8132 eval "$as_ac_Header=yes" 8133 else 8134 echo "$as_me: failed program was:" >&5 8135 sed 's/^/| /' conftest.$ac_ext >&5 8136 8137 eval "$as_ac_Header=no" 8138 fi 8139 8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8141 fi 8142 ac_res=`eval echo '${'$as_ac_Header'}'` 8143 { echo "$as_me:$LINENO: result: $ac_res" >&5 8144 echo "${ECHO_T}$ac_res" >&6; } 8145 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8146 cat >>confdefs.h <<_ACEOF 8147 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8148 _ACEOF 8149 8150 ac_header_dirent=$ac_hdr; break 8151 fi 8152 8153 done 8154 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8155 if test $ac_header_dirent = dirent.h; then 8156 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8157 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8158 if test "${ac_cv_search_opendir+set}" = set; then 8159 echo $ECHO_N "(cached) $ECHO_C" >&6 8160 else 8161 ac_func_search_save_LIBS=$LIBS 8162 cat >conftest.$ac_ext <<_ACEOF 8163 /* confdefs.h. */ 8164 _ACEOF 8165 cat confdefs.h >>conftest.$ac_ext 8166 cat >>conftest.$ac_ext <<_ACEOF 8167 /* end confdefs.h. */ 8168 8169 /* Override any GCC internal prototype to avoid an error. 8170 Use char because int might match the return type of a GCC 8171 builtin and then its argument prototype would still apply. */ 8172 #ifdef __cplusplus 8173 extern "C" 8174 #endif 8175 char opendir (); 8176 int 8177 main () 8178 { 8179 return opendir (); 8180 ; 8181 return 0; 8182 } 8183 _ACEOF 8184 for ac_lib in '' dir; do 8185 if test -z "$ac_lib"; then 8186 ac_res="none required" 8187 else 8188 ac_res=-l$ac_lib 8189 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8190 fi 8191 rm -f conftest.$ac_objext conftest$ac_exeext 8192 if { (ac_try="$ac_link" 8193 case "(($ac_try" in 8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8195 *) ac_try_echo=$ac_try;; 8196 esac 8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8198 (eval "$ac_link") 2>conftest.er1 8199 ac_status=$? 8200 grep -v '^ *+' conftest.er1 >conftest.err 8201 rm -f conftest.er1 8202 cat conftest.err >&5 8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8204 (exit $ac_status); } && 8205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8206 { (case "(($ac_try" in 8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8208 *) ac_try_echo=$ac_try;; 8209 esac 8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8211 (eval "$ac_try") 2>&5 8212 ac_status=$? 8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8214 (exit $ac_status); }; } && 8215 { ac_try='test -s conftest$ac_exeext' 8216 { (case "(($ac_try" in 8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8218 *) ac_try_echo=$ac_try;; 8219 esac 8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8221 (eval "$ac_try") 2>&5 8222 ac_status=$? 8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8224 (exit $ac_status); }; }; then 8225 ac_cv_search_opendir=$ac_res 8226 else 8227 echo "$as_me: failed program was:" >&5 8228 sed 's/^/| /' conftest.$ac_ext >&5 8229 8230 8231 fi 8232 8233 rm -f core conftest.err conftest.$ac_objext \ 8234 conftest$ac_exeext 8235 if test "${ac_cv_search_opendir+set}" = set; then 8236 break 8237 fi 8238 done 8239 if test "${ac_cv_search_opendir+set}" = set; then 8240 : 8241 else 8242 ac_cv_search_opendir=no 8243 fi 8244 rm conftest.$ac_ext 8245 LIBS=$ac_func_search_save_LIBS 8246 fi 8247 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8248 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8249 ac_res=$ac_cv_search_opendir 8250 if test "$ac_res" != no; then 8251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8252 8253 fi 8254 8255 else 8256 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8257 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8258 if test "${ac_cv_search_opendir+set}" = set; then 8259 echo $ECHO_N "(cached) $ECHO_C" >&6 8260 else 8261 ac_func_search_save_LIBS=$LIBS 8262 cat >conftest.$ac_ext <<_ACEOF 8263 /* confdefs.h. */ 8264 _ACEOF 8265 cat confdefs.h >>conftest.$ac_ext 8266 cat >>conftest.$ac_ext <<_ACEOF 8267 /* end confdefs.h. */ 8268 8269 /* Override any GCC internal prototype to avoid an error. 8270 Use char because int might match the return type of a GCC 8271 builtin and then its argument prototype would still apply. */ 8272 #ifdef __cplusplus 8273 extern "C" 8274 #endif 8275 char opendir (); 8276 int 8277 main () 8278 { 8279 return opendir (); 8280 ; 8281 return 0; 8282 } 8283 _ACEOF 8284 for ac_lib in '' x; do 8285 if test -z "$ac_lib"; then 8286 ac_res="none required" 8287 else 8288 ac_res=-l$ac_lib 8289 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8290 fi 8291 rm -f conftest.$ac_objext conftest$ac_exeext 8292 if { (ac_try="$ac_link" 8293 case "(($ac_try" in 8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8295 *) ac_try_echo=$ac_try;; 8296 esac 8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8298 (eval "$ac_link") 2>conftest.er1 8299 ac_status=$? 8300 grep -v '^ *+' conftest.er1 >conftest.err 8301 rm -f conftest.er1 8302 cat conftest.err >&5 8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8304 (exit $ac_status); } && 8305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8306 { (case "(($ac_try" in 8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8308 *) ac_try_echo=$ac_try;; 8309 esac 8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8311 (eval "$ac_try") 2>&5 8312 ac_status=$? 8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8314 (exit $ac_status); }; } && 8315 { ac_try='test -s conftest$ac_exeext' 8316 { (case "(($ac_try" in 8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8318 *) ac_try_echo=$ac_try;; 8319 esac 8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8321 (eval "$ac_try") 2>&5 8322 ac_status=$? 8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8324 (exit $ac_status); }; }; then 8325 ac_cv_search_opendir=$ac_res 8326 else 8327 echo "$as_me: failed program was:" >&5 8328 sed 's/^/| /' conftest.$ac_ext >&5 8329 8330 8331 fi 8332 8333 rm -f core conftest.err conftest.$ac_objext \ 8334 conftest$ac_exeext 8335 if test "${ac_cv_search_opendir+set}" = set; then 8336 break 8337 fi 8338 done 8339 if test "${ac_cv_search_opendir+set}" = set; then 8340 : 8341 else 8342 ac_cv_search_opendir=no 8343 fi 8344 rm conftest.$ac_ext 8345 LIBS=$ac_func_search_save_LIBS 8346 fi 8347 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8348 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8349 ac_res=$ac_cv_search_opendir 8350 if test "$ac_res" != no; then 8351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8352 8353 fi 8354 8355 fi 8356 8357 8358 for ac_header in dlfcn.h 8359 do 8360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8362 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8365 echo $ECHO_N "(cached) $ECHO_C" >&6 8366 fi 8367 ac_res=`eval echo '${'$as_ac_Header'}'` 8368 { echo "$as_me:$LINENO: result: $ac_res" >&5 8369 echo "${ECHO_T}$ac_res" >&6; } 8370 else 8371 # Is the header compilable? 8372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 8373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8374 cat >conftest.$ac_ext <<_ACEOF 8375 /* confdefs.h. */ 8376 _ACEOF 8377 cat confdefs.h >>conftest.$ac_ext 8378 cat >>conftest.$ac_ext <<_ACEOF 8379 /* end confdefs.h. */ 8380 $ac_includes_default 8381 #include <$ac_header> 8382 _ACEOF 8383 rm -f conftest.$ac_objext 8384 if { (ac_try="$ac_compile" 8385 case "(($ac_try" in 8386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8387 *) ac_try_echo=$ac_try;; 8388 esac 8389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8390 (eval "$ac_compile") 2>conftest.er1 8391 ac_status=$? 8392 grep -v '^ *+' conftest.er1 >conftest.err 8393 rm -f conftest.er1 8394 cat conftest.err >&5 8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8396 (exit $ac_status); } && 8397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8398 { (case "(($ac_try" in 8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8400 *) ac_try_echo=$ac_try;; 8401 esac 8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8403 (eval "$ac_try") 2>&5 8404 ac_status=$? 8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8406 (exit $ac_status); }; } && 8407 { ac_try='test -s conftest.$ac_objext' 8408 { (case "(($ac_try" in 8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8410 *) ac_try_echo=$ac_try;; 8411 esac 8412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8413 (eval "$ac_try") 2>&5 8414 ac_status=$? 8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8416 (exit $ac_status); }; }; then 8417 ac_header_compiler=yes 8418 else 8419 echo "$as_me: failed program was:" >&5 8420 sed 's/^/| /' conftest.$ac_ext >&5 8421 8422 ac_header_compiler=no 8423 fi 8424 8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8427 echo "${ECHO_T}$ac_header_compiler" >&6; } 8428 8429 # Is the header present? 8430 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 8431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8432 cat >conftest.$ac_ext <<_ACEOF 8433 /* confdefs.h. */ 8434 _ACEOF 8435 cat confdefs.h >>conftest.$ac_ext 8436 cat >>conftest.$ac_ext <<_ACEOF 8437 /* end confdefs.h. */ 8438 #include <$ac_header> 8439 _ACEOF 8440 if { (ac_try="$ac_cpp conftest.$ac_ext" 8441 case "(($ac_try" in 8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8443 *) ac_try_echo=$ac_try;; 8444 esac 8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8447 ac_status=$? 8448 grep -v '^ *+' conftest.er1 >conftest.err 8449 rm -f conftest.er1 8450 cat conftest.err >&5 8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8452 (exit $ac_status); } >/dev/null; then 8453 if test -s conftest.err; then 8454 ac_cpp_err=$ac_c_preproc_warn_flag 8455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8456 else 8457 ac_cpp_err= 8458 fi 8459 else 8460 ac_cpp_err=yes 8461 fi 8462 if test -z "$ac_cpp_err"; then 8463 ac_header_preproc=yes 8464 else 8465 echo "$as_me: failed program was:" >&5 8466 sed 's/^/| /' conftest.$ac_ext >&5 8467 8468 ac_header_preproc=no 8469 fi 8470 8471 rm -f conftest.err conftest.$ac_ext 8472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8473 echo "${ECHO_T}$ac_header_preproc" >&6; } 8474 8475 # So? What about this header? 8476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8477 yes:no: ) 8478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8482 ac_header_preproc=yes 8483 ;; 8484 no:yes:* ) 8485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8497 ( cat <<\_ASBOX 8498 ## ------------------------------ ## 8499 ## Report this to bugs@yourdomain ## 8500 ## ------------------------------ ## 8501 _ASBOX 8502 ) | sed "s/^/$as_me: WARNING: /" >&2 8503 ;; 8504 esac 8505 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8508 echo $ECHO_N "(cached) $ECHO_C" >&6 8509 else 8510 eval "$as_ac_Header=\$ac_header_preproc" 8511 fi 8512 ac_res=`eval echo '${'$as_ac_Header'}'` 8513 { echo "$as_me:$LINENO: result: $ac_res" >&5 8514 echo "${ECHO_T}$ac_res" >&6; } 8515 8516 fi 8517 if test `eval echo '${'$as_ac_Header'}'` = yes; then 8518 cat >>confdefs.h <<_ACEOF 8519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8520 _ACEOF 8521 8522 fi 8523 8524 done 8525 8526 # Check whether --enable-ltdl-install was given. 8527 if test "${enable_ltdl_install+set}" = set; then 8528 enableval=$enable_ltdl_install; 8529 fi 8530 8531 8532 8533 8534 if test x"${enable_ltdl_install-no}" != xno; then 8535 INSTALL_LTDL_TRUE= 8536 INSTALL_LTDL_FALSE='#' 8537 else 8538 INSTALL_LTDL_TRUE='#' 8539 INSTALL_LTDL_FALSE= 8540 fi 8541 8542 8543 8544 if test x"${enable_ltdl_convenience-no}" != xno; then 8545 CONVENIENCE_LTDL_TRUE= 8546 CONVENIENCE_LTDL_FALSE='#' 8547 else 8548 CONVENIENCE_LTDL_TRUE='#' 8549 CONVENIENCE_LTDL_FALSE= 8550 fi 8551 8552 8553 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8554 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8555 library_names_spec= 8556 libname_spec='lib$name' 8557 soname_spec= 8558 shrext_cmds=".so" 8559 postinstall_cmds= 8560 postuninstall_cmds= 8561 finish_cmds= 8562 finish_eval= 8563 shlibpath_var= 8564 shlibpath_overrides_runpath=unknown 8565 version_type=none 8566 dynamic_linker="$host_os ld.so" 8567 sys_lib_dlsearch_path_spec="/lib /usr/lib" 8568 if test "$GCC" = yes; then 8569 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8570 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8571 # if the path contains ";" then we assume it to be the separator 8572 # otherwise default to the standard path separator (i.e. ":") - it is 8573 # assumed that no part of a normal pathname contains ";" but that should 8574 # okay in the real world where ";" in dirpaths is itself problematic. 8575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8576 else 8577 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8578 fi 8579 else 8580 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8581 fi 8582 need_lib_prefix=unknown 8583 hardcode_into_libs=no 8584 8585 # when you set need_version to no, make sure it does not cause -set_version 8586 # flags to be left without arguments 8587 need_version=unknown 8588 8589 case $host_os in 8590 aix3*) 8591 version_type=linux 8592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8593 shlibpath_var=LIBPATH 8594 8595 # AIX 3 has no versioning support, so we append a major version to the name. 8596 soname_spec='${libname}${release}${shared_ext}$major' 8597 ;; 8598 8599 aix4* | aix5*) 8600 version_type=linux 8601 need_lib_prefix=no 8602 need_version=no 8603 hardcode_into_libs=yes 8604 if test "$host_cpu" = ia64; then 8605 # AIX 5 supports IA64 8606 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8607 shlibpath_var=LD_LIBRARY_PATH 8608 else 8609 # With GCC up to 2.95.x, collect2 would create an import file 8610 # for dependence libraries. The import file would start with 8611 # the line `#! .'. This would cause the generated library to 8612 # depend on `.', always an invalid library. This was fixed in 8613 # development snapshots of GCC prior to 3.0. 8614 case $host_os in 8615 aix4 | aix4.[01] | aix4.[01].*) 8616 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8617 echo ' yes ' 8618 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8619 : 8620 else 8621 can_build_shared=no 8622 fi 8623 ;; 8624 esac 8625 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8626 # soname into executable. Probably we can add versioning support to 8627 # collect2, so additional links can be useful in future. 8628 if test "$aix_use_runtimelinking" = yes; then 8629 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8630 # instead of lib<name>.a to let people know that these are not 8631 # typical AIX shared libraries. 8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8633 else 8634 # We preserve .a as extension for shared libraries through AIX4.2 8635 # and later when we are not doing run time linking. 8636 library_names_spec='${libname}${release}.a $libname.a' 8637 soname_spec='${libname}${release}${shared_ext}$major' 8638 fi 8639 shlibpath_var=LIBPATH 8640 fi 8641 ;; 8642 8643 amigaos*) 8644 library_names_spec='$libname.ixlibrary $libname.a' 8645 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8646 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 8647 ;; 8648 8649 beos*) 8650 library_names_spec='${libname}${shared_ext}' 8651 dynamic_linker="$host_os ld.so" 8652 shlibpath_var=LIBRARY_PATH 8653 ;; 8654 8655 bsdi[45]*) 8656 version_type=linux 8657 need_version=no 8658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8659 soname_spec='${libname}${release}${shared_ext}$major' 8660 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8661 shlibpath_var=LD_LIBRARY_PATH 8662 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8663 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8664 # the default ld.so.conf also contains /usr/contrib/lib and 8665 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8666 # libtool to hard-code these into programs 8667 ;; 8668 8669 cygwin* | mingw* | pw32*) 8670 version_type=windows 8671 shrext_cmds=".dll" 8672 need_version=no 8673 need_lib_prefix=no 8674 8675 case $GCC,$host_os in 8676 yes,cygwin* | yes,mingw* | yes,pw32*) 8677 library_names_spec='$libname.dll.a' 8678 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8679 postinstall_cmds='base_file=`basename \${file}`~ 8680 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8681 dldir=$destdir/`dirname \$dlpath`~ 8682 test -d \$dldir || mkdir -p \$dldir~ 8683 $install_prog $dir/$dlname \$dldir/$dlname~ 8684 chmod a+x \$dldir/$dlname' 8685 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8686 dlpath=$dir/\$dldll~ 8687 $rm \$dlpath' 8688 shlibpath_overrides_runpath=yes 8689 8690 case $host_os in 8691 cygwin*) 8692 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8693 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8694 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8695 ;; 8696 mingw*) 8697 # MinGW DLLs use traditional 'lib' prefix 8698 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8699 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8700 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8701 # It is most probably a Windows format PATH printed by 8702 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8703 # path with ; separators, and with drive letters. We can handle the 8704 # drive letters (cygwin fileutils understands them), so leave them, 8705 # especially as we might pass files found there to a mingw objdump, 8706 # which wouldn't understand a cygwinified path. Ahh. 8707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8708 else 8709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8710 fi 8711 ;; 8712 pw32*) 8713 # pw32 DLLs use 'pw' prefix rather than 'lib' 8714 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8715 ;; 8716 esac 8717 ;; 8718 8719 *) 8720 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8721 ;; 8722 esac 8723 dynamic_linker='Win32 ld.exe' 8724 # FIXME: first we should search . and the directory the executable is in 8725 shlibpath_var=PATH 8726 ;; 8727 8728 darwin* | rhapsody*) 8729 dynamic_linker="$host_os dyld" 8730 version_type=darwin 8731 need_lib_prefix=no 8732 need_version=no 8733 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8734 soname_spec='${libname}${release}${major}$shared_ext' 8735 shlibpath_overrides_runpath=yes 8736 shlibpath_var=DYLD_LIBRARY_PATH 8737 shrext_cmds='.dylib' 8738 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8739 if test "$GCC" = yes; then 8740 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 8741 else 8742 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8743 fi 8744 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8745 ;; 8746 8747 dgux*) 8748 version_type=linux 8749 need_lib_prefix=no 8750 need_version=no 8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8752 soname_spec='${libname}${release}${shared_ext}$major' 8753 shlibpath_var=LD_LIBRARY_PATH 8754 ;; 8755 8756 freebsd1.*) 8757 dynamic_linker=no 8758 ;; 8759 8760 kfreebsd*-gnu) 8761 version_type=linux 8762 need_lib_prefix=no 8763 need_version=no 8764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8765 soname_spec='${libname}${release}${shared_ext}$major' 8766 shlibpath_var=LD_LIBRARY_PATH 8767 shlibpath_overrides_runpath=no 8768 hardcode_into_libs=yes 8769 dynamic_linker='GNU ld.so' 8770 ;; 8771 8772 freebsd* | dragonfly*) 8773 # DragonFly does not have aout. When/if they implement a new 8774 # versioning mechanism, adjust this. 8775 if test -x /usr/bin/objformat; then 8776 objformat=`/usr/bin/objformat` 8777 else 8778 case $host_os in 8779 freebsd[123].*) objformat=aout ;; 8780 *) objformat=elf ;; 8781 esac 8782 fi 8783 version_type=freebsd-$objformat 8784 case $version_type in 8785 freebsd-elf*) 8786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8787 need_version=no 8788 need_lib_prefix=no 8789 ;; 8790 freebsd-*) 8791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8792 need_version=yes 8793 ;; 8794 esac 8795 shlibpath_var=LD_LIBRARY_PATH 8796 case $host_os in 8797 freebsd2.*) 8798 shlibpath_overrides_runpath=yes 8799 ;; 8800 freebsd3.[01]* | freebsdelf3.[01]*) 8801 shlibpath_overrides_runpath=yes 8802 hardcode_into_libs=yes 8803 ;; 8804 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8805 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8806 shlibpath_overrides_runpath=no 8807 hardcode_into_libs=yes 8808 ;; 8809 freebsd*) # from 4.6 on 8810 shlibpath_overrides_runpath=yes 8811 hardcode_into_libs=yes 8812 ;; 8813 esac 8814 ;; 8815 8816 gnu*) 8817 version_type=linux 8818 need_lib_prefix=no 8819 need_version=no 8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8821 soname_spec='${libname}${release}${shared_ext}$major' 8822 shlibpath_var=LD_LIBRARY_PATH 8823 hardcode_into_libs=yes 8824 ;; 8825 8826 hpux9* | hpux10* | hpux11*) 8827 # Give a soname corresponding to the major version so that dld.sl refuses to 8828 # link against other versions. 8829 version_type=sunos 8830 need_lib_prefix=no 8831 need_version=no 8832 case $host_cpu in 8833 ia64*) 8834 shrext_cmds='.so' 8835 hardcode_into_libs=yes 8836 dynamic_linker="$host_os dld.so" 8837 shlibpath_var=LD_LIBRARY_PATH 8838 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8840 soname_spec='${libname}${release}${shared_ext}$major' 8841 if test "X$HPUX_IA64_MODE" = X32; then 8842 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8843 else 8844 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8845 fi 8846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8847 ;; 8848 hppa*64*) 8849 shrext_cmds='.sl' 8850 hardcode_into_libs=yes 8851 dynamic_linker="$host_os dld.sl" 8852 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8855 soname_spec='${libname}${release}${shared_ext}$major' 8856 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8858 ;; 8859 *) 8860 shrext_cmds='.sl' 8861 dynamic_linker="$host_os dld.sl" 8862 shlibpath_var=SHLIB_PATH 8863 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8865 soname_spec='${libname}${release}${shared_ext}$major' 8866 ;; 8867 esac 8868 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8869 postinstall_cmds='chmod 555 $lib' 8870 ;; 8871 8872 interix3*) 8873 version_type=linux 8874 need_lib_prefix=no 8875 need_version=no 8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8877 soname_spec='${libname}${release}${shared_ext}$major' 8878 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8879 shlibpath_var=LD_LIBRARY_PATH 8880 shlibpath_overrides_runpath=no 8881 hardcode_into_libs=yes 8882 ;; 8883 8884 irix5* | irix6* | nonstopux*) 8885 case $host_os in 8886 nonstopux*) version_type=nonstopux ;; 8887 *) 8888 if test "$lt_cv_prog_gnu_ld" = yes; then 8889 version_type=linux 8890 else 8891 version_type=irix 8892 fi ;; 8893 esac 8894 need_lib_prefix=no 8895 need_version=no 8896 soname_spec='${libname}${release}${shared_ext}$major' 8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8898 case $host_os in 8899 irix5* | nonstopux*) 8900 libsuff= shlibsuff= 8901 ;; 8902 *) 8903 case $LD in # libtool.m4 will add one of these switches to LD 8904 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8905 libsuff= shlibsuff= libmagic=32-bit;; 8906 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8907 libsuff=32 shlibsuff=N32 libmagic=N32;; 8908 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8909 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8910 *) libsuff= shlibsuff= libmagic=never-match;; 8911 esac 8912 ;; 8913 esac 8914 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8915 shlibpath_overrides_runpath=no 8916 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8917 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8918 hardcode_into_libs=yes 8919 ;; 8920 8921 # No shared lib support for Linux oldld, aout, or coff. 8922 linux*oldld* | linux*aout* | linux*coff*) 8923 dynamic_linker=no 8924 ;; 8925 8926 # This must be Linux ELF. 8927 linux*) 8928 version_type=linux 8929 need_lib_prefix=no 8930 need_version=no 8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8932 soname_spec='${libname}${release}${shared_ext}$major' 8933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8934 shlibpath_var=LD_LIBRARY_PATH 8935 shlibpath_overrides_runpath=no 8936 # This implies no fast_install, which is unacceptable. 8937 # Some rework will be needed to allow for fast_install 8938 # before this can be enabled. 8939 hardcode_into_libs=yes 8940 8941 # Append ld.so.conf contents to the search path 8942 if test -f /etc/ld.so.conf; then 8943 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8944 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8945 fi 8946 8947 # We used to test for /lib/ld.so.1 and disable shared libraries on 8948 # powerpc, because MkLinux only supported shared libraries with the 8949 # GNU dynamic linker. Since this was broken with cross compilers, 8950 # most powerpc-linux boxes support dynamic linking these days and 8951 # people can always --disable-shared, the test was removed, and we 8952 # assume the GNU/Linux dynamic linker is in use. 8953 dynamic_linker='GNU/Linux ld.so' 8954 ;; 8955 8956 knetbsd*-gnu) 8957 version_type=linux 8958 need_lib_prefix=no 8959 need_version=no 8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8961 soname_spec='${libname}${release}${shared_ext}$major' 8962 shlibpath_var=LD_LIBRARY_PATH 8963 shlibpath_overrides_runpath=no 8964 hardcode_into_libs=yes 8965 dynamic_linker='GNU ld.so' 8966 ;; 8967 8968 netbsd*) 8969 version_type=sunos 8970 need_lib_prefix=no 8971 need_version=no 8972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8975 dynamic_linker='NetBSD (a.out) ld.so' 8976 else 8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8978 soname_spec='${libname}${release}${shared_ext}$major' 8979 dynamic_linker='NetBSD ld.elf_so' 8980 fi 8981 shlibpath_var=LD_LIBRARY_PATH 8982 shlibpath_overrides_runpath=yes 8983 hardcode_into_libs=yes 8984 ;; 8985 8986 newsos6) 8987 version_type=linux 8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8989 shlibpath_var=LD_LIBRARY_PATH 8990 shlibpath_overrides_runpath=yes 8991 ;; 8992 8993 nto-qnx*) 8994 version_type=linux 8995 need_lib_prefix=no 8996 need_version=no 8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8998 soname_spec='${libname}${release}${shared_ext}$major' 8999 shlibpath_var=LD_LIBRARY_PATH 9000 shlibpath_overrides_runpath=yes 9001 ;; 9002 9003 openbsd*) 9004 version_type=sunos 9005 sys_lib_dlsearch_path_spec="/usr/lib" 9006 need_lib_prefix=no 9007 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9008 case $host_os in 9009 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9010 *) need_version=no ;; 9011 esac 9012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9014 shlibpath_var=LD_LIBRARY_PATH 9015 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9016 case $host_os in 9017 openbsd2.[89] | openbsd2.[89].*) 9018 shlibpath_overrides_runpath=no 9019 ;; 9020 *) 9021 shlibpath_overrides_runpath=yes 9022 ;; 9023 esac 9024 else 9025 shlibpath_overrides_runpath=yes 9026 fi 9027 ;; 9028 9029 os2*) 9030 libname_spec='$name' 9031 shrext_cmds=".dll" 9032 need_lib_prefix=no 9033 library_names_spec='$libname${shared_ext} $libname.a' 9034 dynamic_linker='OS/2 ld.exe' 9035 shlibpath_var=LIBPATH 9036 ;; 9037 9038 osf3* | osf4* | osf5*) 9039 version_type=osf 9040 need_lib_prefix=no 9041 need_version=no 9042 soname_spec='${libname}${release}${shared_ext}$major' 9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9044 shlibpath_var=LD_LIBRARY_PATH 9045 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9046 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9047 ;; 9048 9049 solaris*) 9050 version_type=linux 9051 need_lib_prefix=no 9052 need_version=no 9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9054 soname_spec='${libname}${release}${shared_ext}$major' 9055 shlibpath_var=LD_LIBRARY_PATH 9056 shlibpath_overrides_runpath=yes 9057 hardcode_into_libs=yes 9058 # ldd complains unless libraries are executable 9059 postinstall_cmds='chmod +x $lib' 9060 ;; 9061 9062 sunos4*) 9063 version_type=sunos 9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9065 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9066 shlibpath_var=LD_LIBRARY_PATH 9067 shlibpath_overrides_runpath=yes 9068 if test "$with_gnu_ld" = yes; then 9069 need_lib_prefix=no 9070 fi 9071 need_version=yes 9072 ;; 9073 9074 sysv4 | sysv4.3*) 9075 version_type=linux 9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9077 soname_spec='${libname}${release}${shared_ext}$major' 9078 shlibpath_var=LD_LIBRARY_PATH 9079 case $host_vendor in 9080 sni) 9081 shlibpath_overrides_runpath=no 9082 need_lib_prefix=no 9083 export_dynamic_flag_spec='${wl}-Blargedynsym' 9084 runpath_var=LD_RUN_PATH 9085 ;; 9086 siemens) 9087 need_lib_prefix=no 9088 ;; 9089 motorola) 9090 need_lib_prefix=no 9091 need_version=no 9092 shlibpath_overrides_runpath=no 9093 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9094 ;; 9095 esac 9096 ;; 9097 9098 sysv4*MP*) 9099 if test -d /usr/nec ;then 9100 version_type=linux 9101 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9102 soname_spec='$libname${shared_ext}.$major' 9103 shlibpath_var=LD_LIBRARY_PATH 9104 fi 9105 ;; 9106 9107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9108 version_type=freebsd-elf 9109 need_lib_prefix=no 9110 need_version=no 9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9112 soname_spec='${libname}${release}${shared_ext}$major' 9113 shlibpath_var=LD_LIBRARY_PATH 9114 hardcode_into_libs=yes 9115 if test "$with_gnu_ld" = yes; then 9116 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9117 shlibpath_overrides_runpath=no 9118 else 9119 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9120 shlibpath_overrides_runpath=yes 9121 case $host_os in 9122 sco3.2v5*) 9123 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9124 ;; 9125 esac 9126 fi 9127 sys_lib_dlsearch_path_spec='/usr/lib' 9128 ;; 9129 9130 uts4*) 9131 version_type=linux 9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9133 soname_spec='${libname}${release}${shared_ext}$major' 9134 shlibpath_var=LD_LIBRARY_PATH 9135 ;; 9136 9137 *) 9138 dynamic_linker=no 9139 ;; 9140 esac 9141 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9142 echo "${ECHO_T}$dynamic_linker" >&6; } 9143 test "$dynamic_linker" = no && can_build_shared=no 9144 9145 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9146 if test "$GCC" = yes; then 9147 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9148 fi 9149 9150 9151 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9152 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9153 if test "${libltdl_cv_shlibext+set}" = set; then 9154 echo $ECHO_N "(cached) $ECHO_C" >&6 9155 else 9156 9157 module=yes 9158 eval libltdl_cv_shlibext=$shrext_cmds 9159 9160 fi 9161 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9162 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9163 if test -n "$libltdl_cv_shlibext"; then 9164 9165 cat >>confdefs.h <<_ACEOF 9166 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9167 _ACEOF 9168 9169 fi 9170 9171 9172 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 9173 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 9174 if test "${libltdl_cv_shlibpath_var+set}" = set; then 9175 echo $ECHO_N "(cached) $ECHO_C" >&6 9176 else 9177 libltdl_cv_shlibpath_var="$shlibpath_var" 9178 fi 9179 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 9180 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 9181 if test -n "$libltdl_cv_shlibpath_var"; then 9182 9183 cat >>confdefs.h <<_ACEOF 9184 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 9185 _ACEOF 9186 9187 fi 9188 9189 9190 { echo "$as_me:$LINENO: checking for the default library search path" >&5 9191 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9192 if test "${libltdl_cv_sys_search_path+set}" = set; then 9193 echo $ECHO_N "(cached) $ECHO_C" >&6 9194 else 9195 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9196 fi 9197 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9198 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9199 if test -n "$libltdl_cv_sys_search_path"; then 9200 sys_search_path= 9201 for dir in $libltdl_cv_sys_search_path; do 9202 if test -z "$sys_search_path"; then 9203 sys_search_path="$dir" 9204 else 9205 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9206 fi 9207 done 9208 9209 cat >>confdefs.h <<_ACEOF 9210 #define LTDL_SYSSEARCHPATH "$sys_search_path" 9211 _ACEOF 9212 9213 fi 9214 9215 { echo "$as_me:$LINENO: checking for objdir" >&5 9216 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9217 if test "${libltdl_cv_objdir+set}" = set; then 9218 echo $ECHO_N "(cached) $ECHO_C" >&6 9219 else 9220 libltdl_cv_objdir="$objdir" 9221 if test -n "$objdir"; then 9222 : 9223 else 9224 rm -f .libs 2>/dev/null 9225 mkdir .libs 2>/dev/null 9226 if test -d .libs; then 9227 libltdl_cv_objdir=.libs 9228 else 9229 # MS-DOS does not allow filenames that begin with a dot. 9230 libltdl_cv_objdir=_libs 9231 fi 9232 rmdir .libs 2>/dev/null 9233 fi 9234 9235 fi 9236 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9237 echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9238 9239 cat >>confdefs.h <<_ACEOF 9240 #define LTDL_OBJDIR "$libltdl_cv_objdir/" 9241 _ACEOF 9242 9243 9244 9245 9246 9247 9248 # Check for command to grab the raw symbol name followed by C symbol from nm. 9249 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9250 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9251 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9252 echo $ECHO_N "(cached) $ECHO_C" >&6 9253 else 9254 9255 # These are sane defaults that work on at least a few old systems. 9256 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 9257 9258 # Character class describing NM global symbol codes. 9259 symcode='[BCDEGRST]' 9260 9261 # Regexp to match symbols that can be accessed directly from C. 9262 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9263 9264 # Transform an extracted symbol line into a proper C declaration 9265 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9266 9267 # Transform an extracted symbol line into symbol name and symbol address 9268 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9269 9270 # Define system-specific variables. 9271 case $host_os in 9272 aix*) 9273 symcode='[BCDT]' 9274 ;; 9275 cygwin* | mingw* | pw32*) 9276 symcode='[ABCDGISTW]' 9277 ;; 9278 hpux*) # Its linker distinguishes data from code symbols 9279 if test "$host_cpu" = ia64; then 9280 symcode='[ABCDEGRST]' 9281 fi 9282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9283 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9284 ;; 9285 linux*) 9286 if test "$host_cpu" = ia64; then 9287 symcode='[ABCDGIRSTW]' 9288 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9289 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 9290 fi 9291 ;; 9292 irix* | nonstopux*) 9293 symcode='[BCDEGRST]' 9294 ;; 9295 osf*) 9296 symcode='[BCDEGQRST]' 9297 ;; 9298 solaris*) 9299 symcode='[BDRT]' 9300 ;; 9301 sco3.2v5*) 9302 symcode='[DT]' 9303 ;; 9304 sysv4.2uw2*) 9305 symcode='[DT]' 9306 ;; 9307 sysv5* | sco5v6* | unixware* | OpenUNIX*) 9308 symcode='[ABDT]' 9309 ;; 9310 sysv4) 9311 symcode='[DFNSTU]' 9312 ;; 9313 esac 9314 9315 # Handle CRLF in mingw tool chain 9316 opt_cr= 9317 case $build_os in 9318 mingw*) 9319 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9320 ;; 9321 esac 9322 9323 # If we're using GNU nm, then use its standard symbol codes. 9324 case `$NM -V 2>&1` in 9325 *GNU* | *'with BFD'*) 9326 symcode='[ABCDGIRSTW]' ;; 9327 esac 9328 9329 # Try without a prefix undercore, then with it. 9330 for ac_symprfx in "" "_"; do 9331 9332 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9333 symxfrm="\\1 $ac_symprfx\\2 \\2" 9334 9335 # Write the raw and C identifiers. 9336 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9337 9338 # Check to see that the pipe works correctly. 9339 pipe_works=no 9340 9341 rm -f conftest* 9342 cat > conftest.$ac_ext <<EOF 9343 #ifdef __cplusplus 9344 extern "C" { 9345 #endif 9346 char nm_test_var; 9347 void nm_test_func(){} 9348 #ifdef __cplusplus 9349 } 9350 #endif 9351 int main(){nm_test_var='a';nm_test_func();return(0);} 9352 EOF 9353 9354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9355 (eval $ac_compile) 2>&5 9356 ac_status=$? 9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9358 (exit $ac_status); }; then 9359 # Now try to grab the symbols. 9360 nlist=conftest.nm 9361 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9362 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9363 ac_status=$? 9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9365 (exit $ac_status); } && test -s "$nlist"; then 9366 # Try sorting and uniquifying the output. 9367 if sort "$nlist" | uniq > "$nlist"T; then 9368 mv -f "$nlist"T "$nlist" 9369 else 9370 rm -f "$nlist"T 9371 fi 9372 9373 # Make sure that we snagged all the symbols we need. 9374 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9375 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9376 cat <<EOF > conftest.$ac_ext 9377 #ifdef __cplusplus 9378 extern "C" { 9379 #endif 9380 9381 EOF 9382 # Now generate the symbol file. 9383 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9384 9385 cat <<EOF >> conftest.$ac_ext 9386 #if defined (__STDC__) && __STDC__ 9387 # define lt_ptr_t void * 9388 #else 9389 # define lt_ptr_t char * 9390 # define const 9391 #endif 9392 9393 /* The mapping between symbol names and symbols. */ 9394 const struct { 9395 const char *name; 9396 lt_ptr_t address; 9397 } 9398 lt_preloaded_symbols[] = 9399 { 9400 EOF 9401 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9402 cat <<\EOF >> conftest.$ac_ext 9403 {0, (lt_ptr_t) 0} 9404 }; 9405 9406 #ifdef __cplusplus 9407 } 9408 #endif 9409 EOF 9410 # Now try linking the two files. 9411 mv conftest.$ac_objext conftstm.$ac_objext 9412 lt_save_LIBS="$LIBS" 9413 lt_save_CFLAGS="$CFLAGS" 9414 LIBS="conftstm.$ac_objext" 9415 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9417 (eval $ac_link) 2>&5 9418 ac_status=$? 9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9420 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9421 pipe_works=yes 9422 fi 9423 LIBS="$lt_save_LIBS" 9424 CFLAGS="$lt_save_CFLAGS" 9425 else 9426 echo "cannot find nm_test_func in $nlist" >&5 9427 fi 9428 else 9429 echo "cannot find nm_test_var in $nlist" >&5 9430 fi 9431 else 9432 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9433 fi 9434 else 9435 echo "$progname: failed program was:" >&5 9436 cat conftest.$ac_ext >&5 9437 fi 9438 rm -f conftest* conftst* 9439 9440 # Do not use the global_symbol_pipe unless it works. 9441 if test "$pipe_works" = yes; then 9442 break 9443 else 9444 lt_cv_sys_global_symbol_pipe= 9445 fi 9446 done 9447 9448 fi 9449 9450 if test -z "$lt_cv_sys_global_symbol_pipe"; then 9451 lt_cv_sys_global_symbol_to_cdecl= 9452 fi 9453 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9454 { echo "$as_me:$LINENO: result: failed" >&5 9455 echo "${ECHO_T}failed" >&6; } 9456 else 9457 { echo "$as_me:$LINENO: result: ok" >&5 9458 echo "${ECHO_T}ok" >&6; } 9459 fi 9460 9461 9462 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9463 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9464 if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9465 echo $ECHO_N "(cached) $ECHO_C" >&6 9466 else 9467 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9468 libltdl_cv_preloaded_symbols=yes 9469 else 9470 libltdl_cv_preloaded_symbols=no 9471 fi 9472 9473 fi 9474 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9475 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9476 if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9477 9478 cat >>confdefs.h <<\_ACEOF 9479 #define HAVE_PRELOADED_SYMBOLS 1 9480 _ACEOF 9481 9482 fi 9483 9484 LIBADD_DL= 9485 9486 ac_ext=c 9487 ac_cpp='$CPP $CPPFLAGS' 9488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9490 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9491 9492 9493 { echo "$as_me:$LINENO: checking for shl_load" >&5 9494 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9495 if test "${ac_cv_func_shl_load+set}" = set; then 9496 echo $ECHO_N "(cached) $ECHO_C" >&6 9497 else 9498 cat >conftest.$ac_ext <<_ACEOF 9499 /* confdefs.h. */ 9500 _ACEOF 9501 cat confdefs.h >>conftest.$ac_ext 9502 cat >>conftest.$ac_ext <<_ACEOF 9503 /* end confdefs.h. */ 9504 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9505 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9506 #define shl_load innocuous_shl_load 9507 9508 /* System header to define __stub macros and hopefully few prototypes, 9509 which can conflict with char shl_load (); below. 9510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9511 <limits.h> exists even on freestanding compilers. */ 9512 9513 #ifdef __STDC__ 9514 # include <limits.h> 9515 #else 9516 # include <assert.h> 9517 #endif 9518 9519 #undef shl_load 9520 9521 /* Override any GCC internal prototype to avoid an error. 9522 Use char because int might match the return type of a GCC 9523 builtin and then its argument prototype would still apply. */ 9524 #ifdef __cplusplus 9525 extern "C" 9526 #endif 9527 char shl_load (); 9528 /* The GNU C library defines this for functions which it implements 9529 to always fail with ENOSYS. Some functions are actually named 9530 something starting with __ and the normal name is an alias. */ 9531 #if defined __stub_shl_load || defined __stub___shl_load 9532 choke me 9533 #endif 9534 9535 int 9536 main () 9537 { 9538 return shl_load (); 9539 ; 9540 return 0; 9541 } 9542 _ACEOF 9543 rm -f conftest.$ac_objext conftest$ac_exeext 9544 if { (ac_try="$ac_link" 9545 case "(($ac_try" in 9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9547 *) ac_try_echo=$ac_try;; 9548 esac 9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9550 (eval "$ac_link") 2>conftest.er1 9551 ac_status=$? 9552 grep -v '^ *+' conftest.er1 >conftest.err 9553 rm -f conftest.er1 9554 cat conftest.err >&5 9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9556 (exit $ac_status); } && 9557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9558 { (case "(($ac_try" in 9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9560 *) ac_try_echo=$ac_try;; 9561 esac 9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9563 (eval "$ac_try") 2>&5 9564 ac_status=$? 9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9566 (exit $ac_status); }; } && 9567 { ac_try='test -s conftest$ac_exeext' 9568 { (case "(($ac_try" in 9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9570 *) ac_try_echo=$ac_try;; 9571 esac 9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9573 (eval "$ac_try") 2>&5 9574 ac_status=$? 9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9576 (exit $ac_status); }; }; then 9577 ac_cv_func_shl_load=yes 9578 else 9579 echo "$as_me: failed program was:" >&5 9580 sed 's/^/| /' conftest.$ac_ext >&5 9581 9582 ac_cv_func_shl_load=no 9583 fi 9584 9585 rm -f core conftest.err conftest.$ac_objext \ 9586 conftest$ac_exeext conftest.$ac_ext 9587 fi 9588 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9589 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9590 if test $ac_cv_func_shl_load = yes; then 9591 9592 cat >>confdefs.h <<\_ACEOF 9593 #define HAVE_SHL_LOAD 1 9594 _ACEOF 9595 9596 else 9597 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9598 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9599 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9600 echo $ECHO_N "(cached) $ECHO_C" >&6 9601 else 9602 ac_check_lib_save_LIBS=$LIBS 9603 LIBS="-ldld $LIBS" 9604 cat >conftest.$ac_ext <<_ACEOF 9605 /* confdefs.h. */ 9606 _ACEOF 9607 cat confdefs.h >>conftest.$ac_ext 9608 cat >>conftest.$ac_ext <<_ACEOF 9609 /* end confdefs.h. */ 9610 9611 /* Override any GCC internal prototype to avoid an error. 9612 Use char because int might match the return type of a GCC 9613 builtin and then its argument prototype would still apply. */ 9614 #ifdef __cplusplus 9615 extern "C" 9616 #endif 9617 char shl_load (); 9618 int 9619 main () 9620 { 9621 return shl_load (); 9622 ; 9623 return 0; 9624 } 9625 _ACEOF 9626 rm -f conftest.$ac_objext conftest$ac_exeext 9627 if { (ac_try="$ac_link" 9628 case "(($ac_try" in 9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9630 *) ac_try_echo=$ac_try;; 9631 esac 9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9633 (eval "$ac_link") 2>conftest.er1 9634 ac_status=$? 9635 grep -v '^ *+' conftest.er1 >conftest.err 9636 rm -f conftest.er1 9637 cat conftest.err >&5 9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9639 (exit $ac_status); } && 9640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9641 { (case "(($ac_try" in 9642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9643 *) ac_try_echo=$ac_try;; 9644 esac 9645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9646 (eval "$ac_try") 2>&5 9647 ac_status=$? 9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9649 (exit $ac_status); }; } && 9650 { ac_try='test -s conftest$ac_exeext' 9651 { (case "(($ac_try" in 9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9653 *) ac_try_echo=$ac_try;; 9654 esac 9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9656 (eval "$ac_try") 2>&5 9657 ac_status=$? 9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9659 (exit $ac_status); }; }; then 9660 ac_cv_lib_dld_shl_load=yes 9661 else 9662 echo "$as_me: failed program was:" >&5 9663 sed 's/^/| /' conftest.$ac_ext >&5 9664 9665 ac_cv_lib_dld_shl_load=no 9666 fi 9667 9668 rm -f core conftest.err conftest.$ac_objext \ 9669 conftest$ac_exeext conftest.$ac_ext 9670 LIBS=$ac_check_lib_save_LIBS 9671 fi 9672 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9673 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9674 if test $ac_cv_lib_dld_shl_load = yes; then 9675 9676 cat >>confdefs.h <<\_ACEOF 9677 #define HAVE_SHL_LOAD 1 9678 _ACEOF 9679 9680 LIBADD_DL="$LIBADD_DL -ldld" 9681 else 9682 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9683 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9684 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9685 echo $ECHO_N "(cached) $ECHO_C" >&6 9686 else 9687 ac_check_lib_save_LIBS=$LIBS 9688 LIBS="-ldl $LIBS" 9689 cat >conftest.$ac_ext <<_ACEOF 9690 /* confdefs.h. */ 9691 _ACEOF 9692 cat confdefs.h >>conftest.$ac_ext 9693 cat >>conftest.$ac_ext <<_ACEOF 9694 /* end confdefs.h. */ 9695 9696 /* Override any GCC internal prototype to avoid an error. 9697 Use char because int might match the return type of a GCC 9698 builtin and then its argument prototype would still apply. */ 9699 #ifdef __cplusplus 9700 extern "C" 9701 #endif 9702 char dlopen (); 9703 int 9704 main () 9705 { 9706 return dlopen (); 9707 ; 9708 return 0; 9709 } 9710 _ACEOF 9711 rm -f conftest.$ac_objext conftest$ac_exeext 9712 if { (ac_try="$ac_link" 9713 case "(($ac_try" in 9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9715 *) ac_try_echo=$ac_try;; 9716 esac 9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9718 (eval "$ac_link") 2>conftest.er1 9719 ac_status=$? 9720 grep -v '^ *+' conftest.er1 >conftest.err 9721 rm -f conftest.er1 9722 cat conftest.err >&5 9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9724 (exit $ac_status); } && 9725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9726 { (case "(($ac_try" in 9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9728 *) ac_try_echo=$ac_try;; 9729 esac 9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9731 (eval "$ac_try") 2>&5 9732 ac_status=$? 9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9734 (exit $ac_status); }; } && 9735 { ac_try='test -s conftest$ac_exeext' 9736 { (case "(($ac_try" in 9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9738 *) ac_try_echo=$ac_try;; 9739 esac 9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9741 (eval "$ac_try") 2>&5 9742 ac_status=$? 9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9744 (exit $ac_status); }; }; then 9745 ac_cv_lib_dl_dlopen=yes 9746 else 9747 echo "$as_me: failed program was:" >&5 9748 sed 's/^/| /' conftest.$ac_ext >&5 9749 9750 ac_cv_lib_dl_dlopen=no 9751 fi 9752 9753 rm -f core conftest.err conftest.$ac_objext \ 9754 conftest$ac_exeext conftest.$ac_ext 9755 LIBS=$ac_check_lib_save_LIBS 9756 fi 9757 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9758 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9759 if test $ac_cv_lib_dl_dlopen = yes; then 9760 9761 cat >>confdefs.h <<\_ACEOF 9762 #define HAVE_LIBDL 1 9763 _ACEOF 9764 9765 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 9766 else 9767 cat >conftest.$ac_ext <<_ACEOF 9768 /* confdefs.h. */ 9769 _ACEOF 9770 cat confdefs.h >>conftest.$ac_ext 9771 cat >>conftest.$ac_ext <<_ACEOF 9772 /* end confdefs.h. */ 9773 #if HAVE_DLFCN_H 9774 # include <dlfcn.h> 9775 #endif 9776 9777 int 9778 main () 9779 { 9780 dlopen(0, 0); 9781 ; 9782 return 0; 9783 } 9784 _ACEOF 9785 rm -f conftest.$ac_objext conftest$ac_exeext 9786 if { (ac_try="$ac_link" 9787 case "(($ac_try" in 9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9789 *) ac_try_echo=$ac_try;; 9790 esac 9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9792 (eval "$ac_link") 2>conftest.er1 9793 ac_status=$? 9794 grep -v '^ *+' conftest.er1 >conftest.err 9795 rm -f conftest.er1 9796 cat conftest.err >&5 9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9798 (exit $ac_status); } && 9799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9800 { (case "(($ac_try" in 9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9802 *) ac_try_echo=$ac_try;; 9803 esac 9804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9805 (eval "$ac_try") 2>&5 9806 ac_status=$? 9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9808 (exit $ac_status); }; } && 9809 { ac_try='test -s conftest$ac_exeext' 9810 { (case "(($ac_try" in 9811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9812 *) ac_try_echo=$ac_try;; 9813 esac 9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9815 (eval "$ac_try") 2>&5 9816 ac_status=$? 9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9818 (exit $ac_status); }; }; then 9819 9820 cat >>confdefs.h <<\_ACEOF 9821 #define HAVE_LIBDL 1 9822 _ACEOF 9823 libltdl_cv_func_dlopen="yes" 9824 else 9825 echo "$as_me: failed program was:" >&5 9826 sed 's/^/| /' conftest.$ac_ext >&5 9827 9828 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9829 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9830 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9831 echo $ECHO_N "(cached) $ECHO_C" >&6 9832 else 9833 ac_check_lib_save_LIBS=$LIBS 9834 LIBS="-lsvld $LIBS" 9835 cat >conftest.$ac_ext <<_ACEOF 9836 /* confdefs.h. */ 9837 _ACEOF 9838 cat confdefs.h >>conftest.$ac_ext 9839 cat >>conftest.$ac_ext <<_ACEOF 9840 /* end confdefs.h. */ 9841 9842 /* Override any GCC internal prototype to avoid an error. 9843 Use char because int might match the return type of a GCC 9844 builtin and then its argument prototype would still apply. */ 9845 #ifdef __cplusplus 9846 extern "C" 9847 #endif 9848 char dlopen (); 9849 int 9850 main () 9851 { 9852 return dlopen (); 9853 ; 9854 return 0; 9855 } 9856 _ACEOF 9857 rm -f conftest.$ac_objext conftest$ac_exeext 9858 if { (ac_try="$ac_link" 9859 case "(($ac_try" in 9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9861 *) ac_try_echo=$ac_try;; 9862 esac 9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9864 (eval "$ac_link") 2>conftest.er1 9865 ac_status=$? 9866 grep -v '^ *+' conftest.er1 >conftest.err 9867 rm -f conftest.er1 9868 cat conftest.err >&5 9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9870 (exit $ac_status); } && 9871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9872 { (case "(($ac_try" in 9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9874 *) ac_try_echo=$ac_try;; 9875 esac 9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9877 (eval "$ac_try") 2>&5 9878 ac_status=$? 9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9880 (exit $ac_status); }; } && 9881 { ac_try='test -s conftest$ac_exeext' 9882 { (case "(($ac_try" in 9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9884 *) ac_try_echo=$ac_try;; 9885 esac 9886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9887 (eval "$ac_try") 2>&5 9888 ac_status=$? 9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9890 (exit $ac_status); }; }; then 9891 ac_cv_lib_svld_dlopen=yes 9892 else 9893 echo "$as_me: failed program was:" >&5 9894 sed 's/^/| /' conftest.$ac_ext >&5 9895 9896 ac_cv_lib_svld_dlopen=no 9897 fi 9898 9899 rm -f core conftest.err conftest.$ac_objext \ 9900 conftest$ac_exeext conftest.$ac_ext 9901 LIBS=$ac_check_lib_save_LIBS 9902 fi 9903 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9904 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9905 if test $ac_cv_lib_svld_dlopen = yes; then 9906 9907 cat >>confdefs.h <<\_ACEOF 9908 #define HAVE_LIBDL 1 9909 _ACEOF 9910 9911 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 9912 else 9913 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9914 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9915 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9916 echo $ECHO_N "(cached) $ECHO_C" >&6 9917 else 9918 ac_check_lib_save_LIBS=$LIBS 9919 LIBS="-ldld $LIBS" 9920 cat >conftest.$ac_ext <<_ACEOF 9921 /* confdefs.h. */ 9922 _ACEOF 9923 cat confdefs.h >>conftest.$ac_ext 9924 cat >>conftest.$ac_ext <<_ACEOF 9925 /* end confdefs.h. */ 9926 9927 /* Override any GCC internal prototype to avoid an error. 9928 Use char because int might match the return type of a GCC 9929 builtin and then its argument prototype would still apply. */ 9930 #ifdef __cplusplus 9931 extern "C" 9932 #endif 9933 char dld_link (); 9934 int 9935 main () 9936 { 9937 return dld_link (); 9938 ; 9939 return 0; 9940 } 9941 _ACEOF 9942 rm -f conftest.$ac_objext conftest$ac_exeext 9943 if { (ac_try="$ac_link" 9944 case "(($ac_try" in 9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9946 *) ac_try_echo=$ac_try;; 9947 esac 9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9949 (eval "$ac_link") 2>conftest.er1 9950 ac_status=$? 9951 grep -v '^ *+' conftest.er1 >conftest.err 9952 rm -f conftest.er1 9953 cat conftest.err >&5 9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9955 (exit $ac_status); } && 9956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9957 { (case "(($ac_try" in 9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9959 *) ac_try_echo=$ac_try;; 9960 esac 9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9962 (eval "$ac_try") 2>&5 9963 ac_status=$? 9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9965 (exit $ac_status); }; } && 9966 { ac_try='test -s conftest$ac_exeext' 9967 { (case "(($ac_try" in 9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9969 *) ac_try_echo=$ac_try;; 9970 esac 9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9972 (eval "$ac_try") 2>&5 9973 ac_status=$? 9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9975 (exit $ac_status); }; }; then 9976 ac_cv_lib_dld_dld_link=yes 9977 else 9978 echo "$as_me: failed program was:" >&5 9979 sed 's/^/| /' conftest.$ac_ext >&5 9980 9981 ac_cv_lib_dld_dld_link=no 9982 fi 9983 9984 rm -f core conftest.err conftest.$ac_objext \ 9985 conftest$ac_exeext conftest.$ac_ext 9986 LIBS=$ac_check_lib_save_LIBS 9987 fi 9988 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9989 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9990 if test $ac_cv_lib_dld_dld_link = yes; then 9991 9992 cat >>confdefs.h <<\_ACEOF 9993 #define HAVE_DLD 1 9994 _ACEOF 9995 9996 LIBADD_DL="$LIBADD_DL -ldld" 9997 else 9998 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 9999 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10000 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10001 echo $ECHO_N "(cached) $ECHO_C" >&6 10002 else 10003 cat >conftest.$ac_ext <<_ACEOF 10004 /* confdefs.h. */ 10005 _ACEOF 10006 cat confdefs.h >>conftest.$ac_ext 10007 cat >>conftest.$ac_ext <<_ACEOF 10008 /* end confdefs.h. */ 10009 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10010 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10011 #define _dyld_func_lookup innocuous__dyld_func_lookup 10012 10013 /* System header to define __stub macros and hopefully few prototypes, 10014 which can conflict with char _dyld_func_lookup (); below. 10015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10016 <limits.h> exists even on freestanding compilers. */ 10017 10018 #ifdef __STDC__ 10019 # include <limits.h> 10020 #else 10021 # include <assert.h> 10022 #endif 10023 10024 #undef _dyld_func_lookup 10025 10026 /* Override any GCC internal prototype to avoid an error. 10027 Use char because int might match the return type of a GCC 10028 builtin and then its argument prototype would still apply. */ 10029 #ifdef __cplusplus 10030 extern "C" 10031 #endif 10032 char _dyld_func_lookup (); 10033 /* The GNU C library defines this for functions which it implements 10034 to always fail with ENOSYS. Some functions are actually named 10035 something starting with __ and the normal name is an alias. */ 10036 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10037 choke me 10038 #endif 10039 10040 int 10041 main () 10042 { 10043 return _dyld_func_lookup (); 10044 ; 10045 return 0; 10046 } 10047 _ACEOF 10048 rm -f conftest.$ac_objext conftest$ac_exeext 10049 if { (ac_try="$ac_link" 10050 case "(($ac_try" in 10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10052 *) ac_try_echo=$ac_try;; 10053 esac 10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10055 (eval "$ac_link") 2>conftest.er1 10056 ac_status=$? 10057 grep -v '^ *+' conftest.er1 >conftest.err 10058 rm -f conftest.er1 10059 cat conftest.err >&5 10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10061 (exit $ac_status); } && 10062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10063 { (case "(($ac_try" in 10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10065 *) ac_try_echo=$ac_try;; 10066 esac 10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10068 (eval "$ac_try") 2>&5 10069 ac_status=$? 10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10071 (exit $ac_status); }; } && 10072 { ac_try='test -s conftest$ac_exeext' 10073 { (case "(($ac_try" in 10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10075 *) ac_try_echo=$ac_try;; 10076 esac 10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10078 (eval "$ac_try") 2>&5 10079 ac_status=$? 10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10081 (exit $ac_status); }; }; then 10082 ac_cv_func__dyld_func_lookup=yes 10083 else 10084 echo "$as_me: failed program was:" >&5 10085 sed 's/^/| /' conftest.$ac_ext >&5 10086 10087 ac_cv_func__dyld_func_lookup=no 10088 fi 10089 10090 rm -f core conftest.err conftest.$ac_objext \ 10091 conftest$ac_exeext conftest.$ac_ext 10092 fi 10093 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10094 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10095 if test $ac_cv_func__dyld_func_lookup = yes; then 10096 10097 cat >>confdefs.h <<\_ACEOF 10098 #define HAVE_DYLD 1 10099 _ACEOF 10100 10101 fi 10102 10103 10104 fi 10105 10106 10107 fi 10108 10109 10110 fi 10111 10112 rm -f core conftest.err conftest.$ac_objext \ 10113 conftest$ac_exeext conftest.$ac_ext 10114 10115 fi 10116 10117 10118 fi 10119 10120 10121 fi 10122 10123 10124 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10125 then 10126 lt_save_LIBS="$LIBS" 10127 LIBS="$LIBS $LIBADD_DL" 10128 10129 for ac_func in dlerror 10130 do 10131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10132 { echo "$as_me:$LINENO: checking for $ac_func" >&5 10133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10135 echo $ECHO_N "(cached) $ECHO_C" >&6 10136 else 10137 cat >conftest.$ac_ext <<_ACEOF 10138 /* confdefs.h. */ 10139 _ACEOF 10140 cat confdefs.h >>conftest.$ac_ext 10141 cat >>conftest.$ac_ext <<_ACEOF 10142 /* end confdefs.h. */ 10143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10144 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10145 #define $ac_func innocuous_$ac_func 10146 10147 /* System header to define __stub macros and hopefully few prototypes, 10148 which can conflict with char $ac_func (); below. 10149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10150 <limits.h> exists even on freestanding compilers. */ 10151 10152 #ifdef __STDC__ 10153 # include <limits.h> 10154 #else 10155 # include <assert.h> 10156 #endif 10157 10158 #undef $ac_func 10159 10160 /* Override any GCC internal prototype to avoid an error. 10161 Use char because int might match the return type of a GCC 10162 builtin and then its argument prototype would still apply. */ 10163 #ifdef __cplusplus 10164 extern "C" 10165 #endif 10166 char $ac_func (); 10167 /* The GNU C library defines this for functions which it implements 10168 to always fail with ENOSYS. Some functions are actually named 10169 something starting with __ and the normal name is an alias. */ 10170 #if defined __stub_$ac_func || defined __stub___$ac_func 10171 choke me 10172 #endif 10173 10174 int 10175 main () 10176 { 10177 return $ac_func (); 10178 ; 10179 return 0; 10180 } 10181 _ACEOF 10182 rm -f conftest.$ac_objext conftest$ac_exeext 10183 if { (ac_try="$ac_link" 10184 case "(($ac_try" in 10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10186 *) ac_try_echo=$ac_try;; 10187 esac 10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10189 (eval "$ac_link") 2>conftest.er1 10190 ac_status=$? 10191 grep -v '^ *+' conftest.er1 >conftest.err 10192 rm -f conftest.er1 10193 cat conftest.err >&5 10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10195 (exit $ac_status); } && 10196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10197 { (case "(($ac_try" in 10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10199 *) ac_try_echo=$ac_try;; 10200 esac 10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10202 (eval "$ac_try") 2>&5 10203 ac_status=$? 10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10205 (exit $ac_status); }; } && 10206 { ac_try='test -s conftest$ac_exeext' 10207 { (case "(($ac_try" in 10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10209 *) ac_try_echo=$ac_try;; 10210 esac 10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10212 (eval "$ac_try") 2>&5 10213 ac_status=$? 10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10215 (exit $ac_status); }; }; then 10216 eval "$as_ac_var=yes" 10217 else 10218 echo "$as_me: failed program was:" >&5 10219 sed 's/^/| /' conftest.$ac_ext >&5 10220 10221 eval "$as_ac_var=no" 10222 fi 10223 10224 rm -f core conftest.err conftest.$ac_objext \ 10225 conftest$ac_exeext conftest.$ac_ext 10226 fi 10227 ac_res=`eval echo '${'$as_ac_var'}'` 10228 { echo "$as_me:$LINENO: result: $ac_res" >&5 10229 echo "${ECHO_T}$ac_res" >&6; } 10230 if test `eval echo '${'$as_ac_var'}'` = yes; then 10231 cat >>confdefs.h <<_ACEOF 10232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10233 _ACEOF 10234 10235 fi 10236 done 10237 10238 LIBS="$lt_save_LIBS" 10239 fi 10240 ac_ext=c 10241 ac_cpp='$CPP $CPPFLAGS' 10242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10244 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10245 10246 10247 10248 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10249 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10250 if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10251 echo $ECHO_N "(cached) $ECHO_C" >&6 10252 else 10253 ac_cv_sys_symbol_underscore=no 10254 cat > conftest.$ac_ext <<EOF 10255 void nm_test_func(){} 10256 int main(){nm_test_func;return 0;} 10257 EOF 10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10259 (eval $ac_compile) 2>&5 10260 ac_status=$? 10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10262 (exit $ac_status); }; then 10263 # Now try to grab the symbols. 10264 ac_nlist=conftest.nm 10265 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10266 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10267 ac_status=$? 10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10269 (exit $ac_status); } && test -s "$ac_nlist"; then 10270 # See whether the symbols have a leading underscore. 10271 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10272 ac_cv_sys_symbol_underscore=yes 10273 else 10274 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10275 : 10276 else 10277 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10278 fi 10279 fi 10280 else 10281 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10282 fi 10283 else 10284 echo "configure: failed program was:" >&5 10285 cat conftest.c >&5 10286 fi 10287 rm -rf conftest* 10288 10289 fi 10290 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10291 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10292 10293 10294 if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10295 if test x"$libltdl_cv_func_dlopen" = xyes || 10296 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10297 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10298 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10299 if test "${libltdl_cv_need_uscore+set}" = set; then 10300 echo $ECHO_N "(cached) $ECHO_C" >&6 10301 else 10302 libltdl_cv_need_uscore=unknown 10303 save_LIBS="$LIBS" 10304 LIBS="$LIBS $LIBADD_DL" 10305 if test "$cross_compiling" = yes; then : 10306 libltdl_cv_need_uscore=cross 10307 else 10308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10309 lt_status=$lt_dlunknown 10310 cat > conftest.$ac_ext <<EOF 10311 #line 10311 "configure" 10312 #include "confdefs.h" 10313 10314 #if HAVE_DLFCN_H 10315 #include <dlfcn.h> 10316 #endif 10317 10318 #include <stdio.h> 10319 10320 #ifdef RTLD_GLOBAL 10321 # define LT_DLGLOBAL RTLD_GLOBAL 10322 #else 10323 # ifdef DL_GLOBAL 10324 # define LT_DLGLOBAL DL_GLOBAL 10325 # else 10326 # define LT_DLGLOBAL 0 10327 # endif 10328 #endif 10329 10330 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10331 find out it does not work in some platform. */ 10332 #ifndef LT_DLLAZY_OR_NOW 10333 # ifdef RTLD_LAZY 10334 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10335 # else 10336 # ifdef DL_LAZY 10337 # define LT_DLLAZY_OR_NOW DL_LAZY 10338 # else 10339 # ifdef RTLD_NOW 10340 # define LT_DLLAZY_OR_NOW RTLD_NOW 10341 # else 10342 # ifdef DL_NOW 10343 # define LT_DLLAZY_OR_NOW DL_NOW 10344 # else 10345 # define LT_DLLAZY_OR_NOW 0 10346 # endif 10347 # endif 10348 # endif 10349 # endif 10350 #endif 10351 10352 #ifdef __cplusplus 10353 extern "C" void exit (int); 10354 #endif 10355 10356 void fnord() { int i=42;} 10357 int main () 10358 { 10359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10360 int status = $lt_dlunknown; 10361 10362 if (self) 10363 { 10364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10365 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10366 /* dlclose (self); */ 10367 } 10368 else 10369 puts (dlerror ()); 10370 10371 exit (status); 10372 } 10373 EOF 10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10375 (eval $ac_link) 2>&5 10376 ac_status=$? 10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10378 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10379 (./conftest; exit; ) >&5 2>/dev/null 10380 lt_status=$? 10381 case x$lt_status in 10382 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10383 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10384 x$lt_dlunknown|x*) ;; 10385 esac 10386 else : 10387 # compilation failed 10388 10389 fi 10390 fi 10391 rm -fr conftest* 10392 10393 LIBS="$save_LIBS" 10394 10395 fi 10396 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10397 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10398 fi 10399 fi 10400 10401 if test x"$libltdl_cv_need_uscore" = xyes; then 10402 10403 cat >>confdefs.h <<\_ACEOF 10404 #define NEED_USCORE 1 10405 _ACEOF 10406 10407 fi 10408 10409 10410 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10411 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10412 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10413 echo $ECHO_N "(cached) $ECHO_C" >&6 10414 else 10415 # PORTME does your system automatically load deplibs for dlopen? 10416 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10417 # For now, we just catch OSes we know something about -- in the 10418 # future, we'll try test this programmatically. 10419 libltdl_cv_sys_dlopen_deplibs=unknown 10420 case "$host_os" in 10421 aix3*|aix4.1.*|aix4.2.*) 10422 # Unknown whether this is true for these versions of AIX, but 10423 # we want this `case' here to explicitly catch those versions. 10424 libltdl_cv_sys_dlopen_deplibs=unknown 10425 ;; 10426 aix[45]*) 10427 libltdl_cv_sys_dlopen_deplibs=yes 10428 ;; 10429 darwin*) 10430 # Assuming the user has installed a libdl from somewhere, this is true 10431 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10432 libltdl_cv_sys_dlopen_deplibs=yes 10433 ;; 10434 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10435 # GNU and its variants, using gnu ld.so (Glibc) 10436 libltdl_cv_sys_dlopen_deplibs=yes 10437 ;; 10438 hpux10*|hpux11*) 10439 libltdl_cv_sys_dlopen_deplibs=yes 10440 ;; 10441 interix*) 10442 libltdl_cv_sys_dlopen_deplibs=yes 10443 ;; 10444 irix[12345]*|irix6.[01]*) 10445 # Catch all versions of IRIX before 6.2, and indicate that we don't 10446 # know how it worked for any of those versions. 10447 libltdl_cv_sys_dlopen_deplibs=unknown 10448 ;; 10449 irix*) 10450 # The case above catches anything before 6.2, and it's known that 10451 # at 6.2 and later dlopen does load deplibs. 10452 libltdl_cv_sys_dlopen_deplibs=yes 10453 ;; 10454 netbsd*) 10455 libltdl_cv_sys_dlopen_deplibs=yes 10456 ;; 10457 openbsd*) 10458 libltdl_cv_sys_dlopen_deplibs=yes 10459 ;; 10460 osf[1234]*) 10461 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10462 # it did *not* use an RPATH in a shared library to find objects the 10463 # library depends on, so we explicitly say `no'. 10464 libltdl_cv_sys_dlopen_deplibs=no 10465 ;; 10466 osf5.0|osf5.0a|osf5.1) 10467 # dlopen *does* load deplibs and with the right loader patch applied 10468 # it even uses RPATH in a shared library to search for shared objects 10469 # that the library depends on, but there's no easy way to know if that 10470 # patch is installed. Since this is the case, all we can really 10471 # say is unknown -- it depends on the patch being installed. If 10472 # it is, this changes to `yes'. Without it, it would be `no'. 10473 libltdl_cv_sys_dlopen_deplibs=unknown 10474 ;; 10475 osf*) 10476 # the two cases above should catch all versions of osf <= 5.1. Read 10477 # the comments above for what we know about them. 10478 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10479 # is used to find them so we can finally say `yes'. 10480 libltdl_cv_sys_dlopen_deplibs=yes 10481 ;; 10482 solaris*) 10483 libltdl_cv_sys_dlopen_deplibs=yes 10484 ;; 10485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10486 libltdl_cv_sys_dlopen_deplibs=yes 10487 ;; 10488 esac 10489 10490 fi 10491 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10492 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10493 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10494 10495 cat >>confdefs.h <<\_ACEOF 10496 #define LTDL_DLOPEN_DEPLIBS 1 10497 _ACEOF 10498 10499 fi 10500 10501 10502 for ac_header in argz.h 10503 do 10504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10506 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10509 echo $ECHO_N "(cached) $ECHO_C" >&6 10510 fi 10511 ac_res=`eval echo '${'$as_ac_Header'}'` 10512 { echo "$as_me:$LINENO: result: $ac_res" >&5 10513 echo "${ECHO_T}$ac_res" >&6; } 10514 else 10515 # Is the header compilable? 10516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 10517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10518 cat >conftest.$ac_ext <<_ACEOF 10519 /* confdefs.h. */ 10520 _ACEOF 10521 cat confdefs.h >>conftest.$ac_ext 10522 cat >>conftest.$ac_ext <<_ACEOF 10523 /* end confdefs.h. */ 10524 $ac_includes_default 10525 #include <$ac_header> 10526 _ACEOF 10527 rm -f conftest.$ac_objext 10528 if { (ac_try="$ac_compile" 10529 case "(($ac_try" in 10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10531 *) ac_try_echo=$ac_try;; 10532 esac 10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10534 (eval "$ac_compile") 2>conftest.er1 10535 ac_status=$? 10536 grep -v '^ *+' conftest.er1 >conftest.err 10537 rm -f conftest.er1 10538 cat conftest.err >&5 10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10540 (exit $ac_status); } && 10541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10542 { (case "(($ac_try" in 10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10544 *) ac_try_echo=$ac_try;; 10545 esac 10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10547 (eval "$ac_try") 2>&5 10548 ac_status=$? 10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10550 (exit $ac_status); }; } && 10551 { ac_try='test -s conftest.$ac_objext' 10552 { (case "(($ac_try" in 10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10554 *) ac_try_echo=$ac_try;; 10555 esac 10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10557 (eval "$ac_try") 2>&5 10558 ac_status=$? 10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10560 (exit $ac_status); }; }; then 10561 ac_header_compiler=yes 10562 else 10563 echo "$as_me: failed program was:" >&5 10564 sed 's/^/| /' conftest.$ac_ext >&5 10565 10566 ac_header_compiler=no 10567 fi 10568 10569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10571 echo "${ECHO_T}$ac_header_compiler" >&6; } 10572 10573 # Is the header present? 10574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 10575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10576 cat >conftest.$ac_ext <<_ACEOF 10577 /* confdefs.h. */ 10578 _ACEOF 10579 cat confdefs.h >>conftest.$ac_ext 10580 cat >>conftest.$ac_ext <<_ACEOF 10581 /* end confdefs.h. */ 10582 #include <$ac_header> 10583 _ACEOF 10584 if { (ac_try="$ac_cpp conftest.$ac_ext" 10585 case "(($ac_try" in 10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10587 *) ac_try_echo=$ac_try;; 10588 esac 10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10591 ac_status=$? 10592 grep -v '^ *+' conftest.er1 >conftest.err 10593 rm -f conftest.er1 10594 cat conftest.err >&5 10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10596 (exit $ac_status); } >/dev/null; then 10597 if test -s conftest.err; then 10598 ac_cpp_err=$ac_c_preproc_warn_flag 10599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10600 else 10601 ac_cpp_err= 10602 fi 10603 else 10604 ac_cpp_err=yes 10605 fi 10606 if test -z "$ac_cpp_err"; then 10607 ac_header_preproc=yes 10608 else 10609 echo "$as_me: failed program was:" >&5 10610 sed 's/^/| /' conftest.$ac_ext >&5 10611 10612 ac_header_preproc=no 10613 fi 10614 10615 rm -f conftest.err conftest.$ac_ext 10616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10617 echo "${ECHO_T}$ac_header_preproc" >&6; } 10618 10619 # So? What about this header? 10620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10621 yes:no: ) 10622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10626 ac_header_preproc=yes 10627 ;; 10628 no:yes:* ) 10629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10632 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10636 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10641 ( cat <<\_ASBOX 10642 ## ------------------------------ ## 10643 ## Report this to bugs@yourdomain ## 10644 ## ------------------------------ ## 10645 _ASBOX 10646 ) | sed "s/^/$as_me: WARNING: /" >&2 10647 ;; 10648 esac 10649 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10652 echo $ECHO_N "(cached) $ECHO_C" >&6 10653 else 10654 eval "$as_ac_Header=\$ac_header_preproc" 10655 fi 10656 ac_res=`eval echo '${'$as_ac_Header'}'` 10657 { echo "$as_me:$LINENO: result: $ac_res" >&5 10658 echo "${ECHO_T}$ac_res" >&6; } 10659 10660 fi 10661 if test `eval echo '${'$as_ac_Header'}'` = yes; then 10662 cat >>confdefs.h <<_ACEOF 10663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10664 _ACEOF 10665 10666 fi 10667 10668 done 10669 10670 10671 { echo "$as_me:$LINENO: checking for error_t" >&5 10672 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10673 if test "${ac_cv_type_error_t+set}" = set; then 10674 echo $ECHO_N "(cached) $ECHO_C" >&6 10675 else 10676 cat >conftest.$ac_ext <<_ACEOF 10677 /* confdefs.h. */ 10678 _ACEOF 10679 cat confdefs.h >>conftest.$ac_ext 10680 cat >>conftest.$ac_ext <<_ACEOF 10681 /* end confdefs.h. */ 10682 #if HAVE_ARGZ_H 10683 # include <argz.h> 10684 #endif 10685 10686 typedef error_t ac__type_new_; 10687 int 10688 main () 10689 { 10690 if ((ac__type_new_ *) 0) 10691 return 0; 10692 if (sizeof (ac__type_new_)) 10693 return 0; 10694 ; 10695 return 0; 10696 } 10697 _ACEOF 10698 rm -f conftest.$ac_objext 10699 if { (ac_try="$ac_compile" 10700 case "(($ac_try" in 10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10702 *) ac_try_echo=$ac_try;; 10703 esac 10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10705 (eval "$ac_compile") 2>conftest.er1 10706 ac_status=$? 10707 grep -v '^ *+' conftest.er1 >conftest.err 10708 rm -f conftest.er1 10709 cat conftest.err >&5 10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10711 (exit $ac_status); } && 10712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10713 { (case "(($ac_try" in 10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10715 *) ac_try_echo=$ac_try;; 10716 esac 10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10718 (eval "$ac_try") 2>&5 10719 ac_status=$? 10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10721 (exit $ac_status); }; } && 10722 { ac_try='test -s conftest.$ac_objext' 10723 { (case "(($ac_try" in 10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10725 *) ac_try_echo=$ac_try;; 10726 esac 10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10728 (eval "$ac_try") 2>&5 10729 ac_status=$? 10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10731 (exit $ac_status); }; }; then 10732 ac_cv_type_error_t=yes 10733 else 10734 echo "$as_me: failed program was:" >&5 10735 sed 's/^/| /' conftest.$ac_ext >&5 10736 10737 ac_cv_type_error_t=no 10738 fi 10739 10740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10741 fi 10742 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10743 echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10744 if test $ac_cv_type_error_t = yes; then 10745 10746 cat >>confdefs.h <<_ACEOF 10747 #define HAVE_ERROR_T 1 10748 _ACEOF 10749 10750 10751 else 10752 10753 cat >>confdefs.h <<\_ACEOF 10754 #define error_t int 10755 _ACEOF 10756 10757 fi 10758 10759 10760 10761 10762 10763 10764 10765 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 10766 do 10767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10768 { echo "$as_me:$LINENO: checking for $ac_func" >&5 10769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10770 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10771 echo $ECHO_N "(cached) $ECHO_C" >&6 10772 else 10773 cat >conftest.$ac_ext <<_ACEOF 10774 /* confdefs.h. */ 10775 _ACEOF 10776 cat confdefs.h >>conftest.$ac_ext 10777 cat >>conftest.$ac_ext <<_ACEOF 10778 /* end confdefs.h. */ 10779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10780 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10781 #define $ac_func innocuous_$ac_func 10782 10783 /* System header to define __stub macros and hopefully few prototypes, 10784 which can conflict with char $ac_func (); below. 10785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10786 <limits.h> exists even on freestanding compilers. */ 10787 10788 #ifdef __STDC__ 10789 # include <limits.h> 10790 #else 10791 # include <assert.h> 10792 #endif 10793 10794 #undef $ac_func 10795 10796 /* Override any GCC internal prototype to avoid an error. 10797 Use char because int might match the return type of a GCC 10798 builtin and then its argument prototype would still apply. */ 10799 #ifdef __cplusplus 10800 extern "C" 10801 #endif 10802 char $ac_func (); 10803 /* The GNU C library defines this for functions which it implements 10804 to always fail with ENOSYS. Some functions are actually named 10805 something starting with __ and the normal name is an alias. */ 10806 #if defined __stub_$ac_func || defined __stub___$ac_func 10807 choke me 10808 #endif 10809 10810 int 10811 main () 10812 { 10813 return $ac_func (); 10814 ; 10815 return 0; 10816 } 10817 _ACEOF 10818 rm -f conftest.$ac_objext conftest$ac_exeext 10819 if { (ac_try="$ac_link" 10820 case "(($ac_try" in 10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10822 *) ac_try_echo=$ac_try;; 10823 esac 10824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10825 (eval "$ac_link") 2>conftest.er1 10826 ac_status=$? 10827 grep -v '^ *+' conftest.er1 >conftest.err 10828 rm -f conftest.er1 10829 cat conftest.err >&5 10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10831 (exit $ac_status); } && 10832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10833 { (case "(($ac_try" in 10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10835 *) ac_try_echo=$ac_try;; 10836 esac 10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10838 (eval "$ac_try") 2>&5 10839 ac_status=$? 10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10841 (exit $ac_status); }; } && 10842 { ac_try='test -s conftest$ac_exeext' 10843 { (case "(($ac_try" in 10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10845 *) ac_try_echo=$ac_try;; 10846 esac 10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10848 (eval "$ac_try") 2>&5 10849 ac_status=$? 10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10851 (exit $ac_status); }; }; then 10852 eval "$as_ac_var=yes" 10853 else 10854 echo "$as_me: failed program was:" >&5 10855 sed 's/^/| /' conftest.$ac_ext >&5 10856 10857 eval "$as_ac_var=no" 10858 fi 10859 10860 rm -f core conftest.err conftest.$ac_objext \ 10861 conftest$ac_exeext conftest.$ac_ext 10862 fi 10863 ac_res=`eval echo '${'$as_ac_var'}'` 10864 { echo "$as_me:$LINENO: result: $ac_res" >&5 10865 echo "${ECHO_T}$ac_res" >&6; } 10866 if test `eval echo '${'$as_ac_var'}'` = yes; then 10867 cat >>confdefs.h <<_ACEOF 10868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10869 _ACEOF 10870 10871 fi 10872 done 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 10902 stdio.h unistd.h 10903 do 10904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10906 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10909 echo $ECHO_N "(cached) $ECHO_C" >&6 10910 fi 10911 ac_res=`eval echo '${'$as_ac_Header'}'` 10912 { echo "$as_me:$LINENO: result: $ac_res" >&5 10913 echo "${ECHO_T}$ac_res" >&6; } 10914 else 10915 # Is the header compilable? 10916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 10917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10918 cat >conftest.$ac_ext <<_ACEOF 10919 /* confdefs.h. */ 10920 _ACEOF 10921 cat confdefs.h >>conftest.$ac_ext 10922 cat >>conftest.$ac_ext <<_ACEOF 10923 /* end confdefs.h. */ 10924 $ac_includes_default 10925 #include <$ac_header> 10926 _ACEOF 10927 rm -f conftest.$ac_objext 10928 if { (ac_try="$ac_compile" 10929 case "(($ac_try" in 10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10931 *) ac_try_echo=$ac_try;; 10932 esac 10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10934 (eval "$ac_compile") 2>conftest.er1 10935 ac_status=$? 10936 grep -v '^ *+' conftest.er1 >conftest.err 10937 rm -f conftest.er1 10938 cat conftest.err >&5 10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10940 (exit $ac_status); } && 10941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10942 { (case "(($ac_try" in 10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10944 *) ac_try_echo=$ac_try;; 10945 esac 10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10947 (eval "$ac_try") 2>&5 10948 ac_status=$? 10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10950 (exit $ac_status); }; } && 10951 { ac_try='test -s conftest.$ac_objext' 10952 { (case "(($ac_try" in 10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10954 *) ac_try_echo=$ac_try;; 10955 esac 10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10957 (eval "$ac_try") 2>&5 10958 ac_status=$? 10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10960 (exit $ac_status); }; }; then 10961 ac_header_compiler=yes 10962 else 10963 echo "$as_me: failed program was:" >&5 10964 sed 's/^/| /' conftest.$ac_ext >&5 10965 10966 ac_header_compiler=no 10967 fi 10968 10969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10971 echo "${ECHO_T}$ac_header_compiler" >&6; } 10972 10973 # Is the header present? 10974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 10975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10976 cat >conftest.$ac_ext <<_ACEOF 10977 /* confdefs.h. */ 10978 _ACEOF 10979 cat confdefs.h >>conftest.$ac_ext 10980 cat >>conftest.$ac_ext <<_ACEOF 10981 /* end confdefs.h. */ 10982 #include <$ac_header> 10983 _ACEOF 10984 if { (ac_try="$ac_cpp conftest.$ac_ext" 10985 case "(($ac_try" in 10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10987 *) ac_try_echo=$ac_try;; 10988 esac 10989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10991 ac_status=$? 10992 grep -v '^ *+' conftest.er1 >conftest.err 10993 rm -f conftest.er1 10994 cat conftest.err >&5 10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10996 (exit $ac_status); } >/dev/null; then 10997 if test -s conftest.err; then 10998 ac_cpp_err=$ac_c_preproc_warn_flag 10999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11000 else 11001 ac_cpp_err= 11002 fi 11003 else 11004 ac_cpp_err=yes 11005 fi 11006 if test -z "$ac_cpp_err"; then 11007 ac_header_preproc=yes 11008 else 11009 echo "$as_me: failed program was:" >&5 11010 sed 's/^/| /' conftest.$ac_ext >&5 11011 11012 ac_header_preproc=no 11013 fi 11014 11015 rm -f conftest.err conftest.$ac_ext 11016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11017 echo "${ECHO_T}$ac_header_preproc" >&6; } 11018 11019 # So? What about this header? 11020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11021 yes:no: ) 11022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11026 ac_header_preproc=yes 11027 ;; 11028 no:yes:* ) 11029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11041 ( cat <<\_ASBOX 11042 ## ------------------------------ ## 11043 ## Report this to bugs@yourdomain ## 11044 ## ------------------------------ ## 11045 _ASBOX 11046 ) | sed "s/^/$as_me: WARNING: /" >&2 11047 ;; 11048 esac 11049 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11052 echo $ECHO_N "(cached) $ECHO_C" >&6 11053 else 11054 eval "$as_ac_Header=\$ac_header_preproc" 11055 fi 11056 ac_res=`eval echo '${'$as_ac_Header'}'` 11057 { echo "$as_me:$LINENO: result: $ac_res" >&5 11058 echo "${ECHO_T}$ac_res" >&6; } 11059 11060 fi 11061 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11062 cat >>confdefs.h <<_ACEOF 11063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11064 _ACEOF 11065 11066 fi 11067 11068 done 11069 11070 11071 11072 11073 11074 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 11075 do 11076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11078 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11081 echo $ECHO_N "(cached) $ECHO_C" >&6 11082 fi 11083 ac_res=`eval echo '${'$as_ac_Header'}'` 11084 { echo "$as_me:$LINENO: result: $ac_res" >&5 11085 echo "${ECHO_T}$ac_res" >&6; } 11086 else 11087 # Is the header compilable? 11088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11090 cat >conftest.$ac_ext <<_ACEOF 11091 /* confdefs.h. */ 11092 _ACEOF 11093 cat confdefs.h >>conftest.$ac_ext 11094 cat >>conftest.$ac_ext <<_ACEOF 11095 /* end confdefs.h. */ 11096 $ac_includes_default 11097 #include <$ac_header> 11098 _ACEOF 11099 rm -f conftest.$ac_objext 11100 if { (ac_try="$ac_compile" 11101 case "(($ac_try" in 11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11103 *) ac_try_echo=$ac_try;; 11104 esac 11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11106 (eval "$ac_compile") 2>conftest.er1 11107 ac_status=$? 11108 grep -v '^ *+' conftest.er1 >conftest.err 11109 rm -f conftest.er1 11110 cat conftest.err >&5 11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11112 (exit $ac_status); } && 11113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11114 { (case "(($ac_try" in 11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11116 *) ac_try_echo=$ac_try;; 11117 esac 11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11119 (eval "$ac_try") 2>&5 11120 ac_status=$? 11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11122 (exit $ac_status); }; } && 11123 { ac_try='test -s conftest.$ac_objext' 11124 { (case "(($ac_try" in 11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11126 *) ac_try_echo=$ac_try;; 11127 esac 11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11129 (eval "$ac_try") 2>&5 11130 ac_status=$? 11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11132 (exit $ac_status); }; }; then 11133 ac_header_compiler=yes 11134 else 11135 echo "$as_me: failed program was:" >&5 11136 sed 's/^/| /' conftest.$ac_ext >&5 11137 11138 ac_header_compiler=no 11139 fi 11140 11141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11143 echo "${ECHO_T}$ac_header_compiler" >&6; } 11144 11145 # Is the header present? 11146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11148 cat >conftest.$ac_ext <<_ACEOF 11149 /* confdefs.h. */ 11150 _ACEOF 11151 cat confdefs.h >>conftest.$ac_ext 11152 cat >>conftest.$ac_ext <<_ACEOF 11153 /* end confdefs.h. */ 11154 #include <$ac_header> 11155 _ACEOF 11156 if { (ac_try="$ac_cpp conftest.$ac_ext" 11157 case "(($ac_try" in 11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11159 *) ac_try_echo=$ac_try;; 11160 esac 11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11163 ac_status=$? 11164 grep -v '^ *+' conftest.er1 >conftest.err 11165 rm -f conftest.er1 11166 cat conftest.err >&5 11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11168 (exit $ac_status); } >/dev/null; then 11169 if test -s conftest.err; then 11170 ac_cpp_err=$ac_c_preproc_warn_flag 11171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11172 else 11173 ac_cpp_err= 11174 fi 11175 else 11176 ac_cpp_err=yes 11177 fi 11178 if test -z "$ac_cpp_err"; then 11179 ac_header_preproc=yes 11180 else 11181 echo "$as_me: failed program was:" >&5 11182 sed 's/^/| /' conftest.$ac_ext >&5 11183 11184 ac_header_preproc=no 11185 fi 11186 11187 rm -f conftest.err conftest.$ac_ext 11188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11189 echo "${ECHO_T}$ac_header_preproc" >&6; } 11190 11191 # So? What about this header? 11192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11193 yes:no: ) 11194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11198 ac_header_preproc=yes 11199 ;; 11200 no:yes:* ) 11201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11213 ( cat <<\_ASBOX 11214 ## ------------------------------ ## 11215 ## Report this to bugs@yourdomain ## 11216 ## ------------------------------ ## 11217 _ASBOX 11218 ) | sed "s/^/$as_me: WARNING: /" >&2 11219 ;; 11220 esac 11221 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11224 echo $ECHO_N "(cached) $ECHO_C" >&6 11225 else 11226 eval "$as_ac_Header=\$ac_header_preproc" 11227 fi 11228 ac_res=`eval echo '${'$as_ac_Header'}'` 11229 { echo "$as_me:$LINENO: result: $ac_res" >&5 11230 echo "${ECHO_T}$ac_res" >&6; } 11231 11232 fi 11233 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11234 cat >>confdefs.h <<_ACEOF 11235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11236 _ACEOF 11237 11238 fi 11239 11240 done 11241 11242 11243 11244 for ac_header in string.h strings.h 11245 do 11246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11248 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11251 echo $ECHO_N "(cached) $ECHO_C" >&6 11252 fi 11253 ac_res=`eval echo '${'$as_ac_Header'}'` 11254 { echo "$as_me:$LINENO: result: $ac_res" >&5 11255 echo "${ECHO_T}$ac_res" >&6; } 11256 else 11257 # Is the header compilable? 11258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 11259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11260 cat >conftest.$ac_ext <<_ACEOF 11261 /* confdefs.h. */ 11262 _ACEOF 11263 cat confdefs.h >>conftest.$ac_ext 11264 cat >>conftest.$ac_ext <<_ACEOF 11265 /* end confdefs.h. */ 11266 $ac_includes_default 11267 #include <$ac_header> 11268 _ACEOF 11269 rm -f conftest.$ac_objext 11270 if { (ac_try="$ac_compile" 11271 case "(($ac_try" in 11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11273 *) ac_try_echo=$ac_try;; 11274 esac 11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11276 (eval "$ac_compile") 2>conftest.er1 11277 ac_status=$? 11278 grep -v '^ *+' conftest.er1 >conftest.err 11279 rm -f conftest.er1 11280 cat conftest.err >&5 11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11282 (exit $ac_status); } && 11283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11284 { (case "(($ac_try" in 11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11286 *) ac_try_echo=$ac_try;; 11287 esac 11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11289 (eval "$ac_try") 2>&5 11290 ac_status=$? 11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11292 (exit $ac_status); }; } && 11293 { ac_try='test -s conftest.$ac_objext' 11294 { (case "(($ac_try" in 11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11296 *) ac_try_echo=$ac_try;; 11297 esac 11298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11299 (eval "$ac_try") 2>&5 11300 ac_status=$? 11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11302 (exit $ac_status); }; }; then 11303 ac_header_compiler=yes 11304 else 11305 echo "$as_me: failed program was:" >&5 11306 sed 's/^/| /' conftest.$ac_ext >&5 11307 11308 ac_header_compiler=no 11309 fi 11310 11311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11313 echo "${ECHO_T}$ac_header_compiler" >&6; } 11314 11315 # Is the header present? 11316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 11317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11318 cat >conftest.$ac_ext <<_ACEOF 11319 /* confdefs.h. */ 11320 _ACEOF 11321 cat confdefs.h >>conftest.$ac_ext 11322 cat >>conftest.$ac_ext <<_ACEOF 11323 /* end confdefs.h. */ 11324 #include <$ac_header> 11325 _ACEOF 11326 if { (ac_try="$ac_cpp conftest.$ac_ext" 11327 case "(($ac_try" in 11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11329 *) ac_try_echo=$ac_try;; 11330 esac 11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11333 ac_status=$? 11334 grep -v '^ *+' conftest.er1 >conftest.err 11335 rm -f conftest.er1 11336 cat conftest.err >&5 11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11338 (exit $ac_status); } >/dev/null; then 11339 if test -s conftest.err; then 11340 ac_cpp_err=$ac_c_preproc_warn_flag 11341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11342 else 11343 ac_cpp_err= 11344 fi 11345 else 11346 ac_cpp_err=yes 11347 fi 11348 if test -z "$ac_cpp_err"; then 11349 ac_header_preproc=yes 11350 else 11351 echo "$as_me: failed program was:" >&5 11352 sed 's/^/| /' conftest.$ac_ext >&5 11353 11354 ac_header_preproc=no 11355 fi 11356 11357 rm -f conftest.err conftest.$ac_ext 11358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11359 echo "${ECHO_T}$ac_header_preproc" >&6; } 11360 11361 # So? What about this header? 11362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11363 yes:no: ) 11364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11368 ac_header_preproc=yes 11369 ;; 11370 no:yes:* ) 11371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11383 ( cat <<\_ASBOX 11384 ## ------------------------------ ## 11385 ## Report this to bugs@yourdomain ## 11386 ## ------------------------------ ## 11387 _ASBOX 11388 ) | sed "s/^/$as_me: WARNING: /" >&2 11389 ;; 11390 esac 11391 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11394 echo $ECHO_N "(cached) $ECHO_C" >&6 11395 else 11396 eval "$as_ac_Header=\$ac_header_preproc" 11397 fi 11398 ac_res=`eval echo '${'$as_ac_Header'}'` 11399 { echo "$as_me:$LINENO: result: $ac_res" >&5 11400 echo "${ECHO_T}$ac_res" >&6; } 11401 11402 fi 11403 if test `eval echo '${'$as_ac_Header'}'` = yes; then 11404 cat >>confdefs.h <<_ACEOF 11405 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11406 _ACEOF 11407 break 11408 fi 11409 11410 done 11411 11412 11413 11414 11415 for ac_func in strchr index 11416 do 11417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11418 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11421 echo $ECHO_N "(cached) $ECHO_C" >&6 11422 else 11423 cat >conftest.$ac_ext <<_ACEOF 11424 /* confdefs.h. */ 11425 _ACEOF 11426 cat confdefs.h >>conftest.$ac_ext 11427 cat >>conftest.$ac_ext <<_ACEOF 11428 /* end confdefs.h. */ 11429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11430 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11431 #define $ac_func innocuous_$ac_func 11432 11433 /* System header to define __stub macros and hopefully few prototypes, 11434 which can conflict with char $ac_func (); below. 11435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11436 <limits.h> exists even on freestanding compilers. */ 11437 11438 #ifdef __STDC__ 11439 # include <limits.h> 11440 #else 11441 # include <assert.h> 11442 #endif 11443 11444 #undef $ac_func 11445 11446 /* Override any GCC internal prototype to avoid an error. 11447 Use char because int might match the return type of a GCC 11448 builtin and then its argument prototype would still apply. */ 11449 #ifdef __cplusplus 11450 extern "C" 11451 #endif 11452 char $ac_func (); 11453 /* The GNU C library defines this for functions which it implements 11454 to always fail with ENOSYS. Some functions are actually named 11455 something starting with __ and the normal name is an alias. */ 11456 #if defined __stub_$ac_func || defined __stub___$ac_func 11457 choke me 11458 #endif 11459 11460 int 11461 main () 11462 { 11463 return $ac_func (); 11464 ; 11465 return 0; 11466 } 11467 _ACEOF 11468 rm -f conftest.$ac_objext conftest$ac_exeext 11469 if { (ac_try="$ac_link" 11470 case "(($ac_try" in 11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11472 *) ac_try_echo=$ac_try;; 11473 esac 11474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11475 (eval "$ac_link") 2>conftest.er1 11476 ac_status=$? 11477 grep -v '^ *+' conftest.er1 >conftest.err 11478 rm -f conftest.er1 11479 cat conftest.err >&5 11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11481 (exit $ac_status); } && 11482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11483 { (case "(($ac_try" in 11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11485 *) ac_try_echo=$ac_try;; 11486 esac 11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11488 (eval "$ac_try") 2>&5 11489 ac_status=$? 11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11491 (exit $ac_status); }; } && 11492 { ac_try='test -s conftest$ac_exeext' 11493 { (case "(($ac_try" in 11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11495 *) ac_try_echo=$ac_try;; 11496 esac 11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11498 (eval "$ac_try") 2>&5 11499 ac_status=$? 11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11501 (exit $ac_status); }; }; then 11502 eval "$as_ac_var=yes" 11503 else 11504 echo "$as_me: failed program was:" >&5 11505 sed 's/^/| /' conftest.$ac_ext >&5 11506 11507 eval "$as_ac_var=no" 11508 fi 11509 11510 rm -f core conftest.err conftest.$ac_objext \ 11511 conftest$ac_exeext conftest.$ac_ext 11512 fi 11513 ac_res=`eval echo '${'$as_ac_var'}'` 11514 { echo "$as_me:$LINENO: result: $ac_res" >&5 11515 echo "${ECHO_T}$ac_res" >&6; } 11516 if test `eval echo '${'$as_ac_var'}'` = yes; then 11517 cat >>confdefs.h <<_ACEOF 11518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11519 _ACEOF 11520 break 11521 fi 11522 done 11523 11524 11525 11526 for ac_func in strrchr rindex 11527 do 11528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11529 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11532 echo $ECHO_N "(cached) $ECHO_C" >&6 11533 else 11534 cat >conftest.$ac_ext <<_ACEOF 11535 /* confdefs.h. */ 11536 _ACEOF 11537 cat confdefs.h >>conftest.$ac_ext 11538 cat >>conftest.$ac_ext <<_ACEOF 11539 /* end confdefs.h. */ 11540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11541 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11542 #define $ac_func innocuous_$ac_func 11543 11544 /* System header to define __stub macros and hopefully few prototypes, 11545 which can conflict with char $ac_func (); below. 11546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11547 <limits.h> exists even on freestanding compilers. */ 11548 11549 #ifdef __STDC__ 11550 # include <limits.h> 11551 #else 11552 # include <assert.h> 11553 #endif 11554 11555 #undef $ac_func 11556 11557 /* Override any GCC internal prototype to avoid an error. 11558 Use char because int might match the return type of a GCC 11559 builtin and then its argument prototype would still apply. */ 11560 #ifdef __cplusplus 11561 extern "C" 11562 #endif 11563 char $ac_func (); 11564 /* The GNU C library defines this for functions which it implements 11565 to always fail with ENOSYS. Some functions are actually named 11566 something starting with __ and the normal name is an alias. */ 11567 #if defined __stub_$ac_func || defined __stub___$ac_func 11568 choke me 11569 #endif 11570 11571 int 11572 main () 11573 { 11574 return $ac_func (); 11575 ; 11576 return 0; 11577 } 11578 _ACEOF 11579 rm -f conftest.$ac_objext conftest$ac_exeext 11580 if { (ac_try="$ac_link" 11581 case "(($ac_try" in 11582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11583 *) ac_try_echo=$ac_try;; 11584 esac 11585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11586 (eval "$ac_link") 2>conftest.er1 11587 ac_status=$? 11588 grep -v '^ *+' conftest.er1 >conftest.err 11589 rm -f conftest.er1 11590 cat conftest.err >&5 11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11592 (exit $ac_status); } && 11593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11594 { (case "(($ac_try" in 11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11596 *) ac_try_echo=$ac_try;; 11597 esac 11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11599 (eval "$ac_try") 2>&5 11600 ac_status=$? 11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11602 (exit $ac_status); }; } && 11603 { ac_try='test -s conftest$ac_exeext' 11604 { (case "(($ac_try" in 11605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11606 *) ac_try_echo=$ac_try;; 11607 esac 11608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11609 (eval "$ac_try") 2>&5 11610 ac_status=$? 11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11612 (exit $ac_status); }; }; then 11613 eval "$as_ac_var=yes" 11614 else 11615 echo "$as_me: failed program was:" >&5 11616 sed 's/^/| /' conftest.$ac_ext >&5 11617 11618 eval "$as_ac_var=no" 11619 fi 11620 11621 rm -f core conftest.err conftest.$ac_objext \ 11622 conftest$ac_exeext conftest.$ac_ext 11623 fi 11624 ac_res=`eval echo '${'$as_ac_var'}'` 11625 { echo "$as_me:$LINENO: result: $ac_res" >&5 11626 echo "${ECHO_T}$ac_res" >&6; } 11627 if test `eval echo '${'$as_ac_var'}'` = yes; then 11628 cat >>confdefs.h <<_ACEOF 11629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11630 _ACEOF 11631 break 11632 fi 11633 done 11634 11635 11636 11637 for ac_func in memcpy bcopy 11638 do 11639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11640 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11643 echo $ECHO_N "(cached) $ECHO_C" >&6 11644 else 11645 cat >conftest.$ac_ext <<_ACEOF 11646 /* confdefs.h. */ 11647 _ACEOF 11648 cat confdefs.h >>conftest.$ac_ext 11649 cat >>conftest.$ac_ext <<_ACEOF 11650 /* end confdefs.h. */ 11651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11652 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11653 #define $ac_func innocuous_$ac_func 11654 11655 /* System header to define __stub macros and hopefully few prototypes, 11656 which can conflict with char $ac_func (); below. 11657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11658 <limits.h> exists even on freestanding compilers. */ 11659 11660 #ifdef __STDC__ 11661 # include <limits.h> 11662 #else 11663 # include <assert.h> 11664 #endif 11665 11666 #undef $ac_func 11667 11668 /* Override any GCC internal prototype to avoid an error. 11669 Use char because int might match the return type of a GCC 11670 builtin and then its argument prototype would still apply. */ 11671 #ifdef __cplusplus 11672 extern "C" 11673 #endif 11674 char $ac_func (); 11675 /* The GNU C library defines this for functions which it implements 11676 to always fail with ENOSYS. Some functions are actually named 11677 something starting with __ and the normal name is an alias. */ 11678 #if defined __stub_$ac_func || defined __stub___$ac_func 11679 choke me 11680 #endif 11681 11682 int 11683 main () 11684 { 11685 return $ac_func (); 11686 ; 11687 return 0; 11688 } 11689 _ACEOF 11690 rm -f conftest.$ac_objext conftest$ac_exeext 11691 if { (ac_try="$ac_link" 11692 case "(($ac_try" in 11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11694 *) ac_try_echo=$ac_try;; 11695 esac 11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11697 (eval "$ac_link") 2>conftest.er1 11698 ac_status=$? 11699 grep -v '^ *+' conftest.er1 >conftest.err 11700 rm -f conftest.er1 11701 cat conftest.err >&5 11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11703 (exit $ac_status); } && 11704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11705 { (case "(($ac_try" in 11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11707 *) ac_try_echo=$ac_try;; 11708 esac 11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11710 (eval "$ac_try") 2>&5 11711 ac_status=$? 11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11713 (exit $ac_status); }; } && 11714 { ac_try='test -s conftest$ac_exeext' 11715 { (case "(($ac_try" in 11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11717 *) ac_try_echo=$ac_try;; 11718 esac 11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11720 (eval "$ac_try") 2>&5 11721 ac_status=$? 11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11723 (exit $ac_status); }; }; then 11724 eval "$as_ac_var=yes" 11725 else 11726 echo "$as_me: failed program was:" >&5 11727 sed 's/^/| /' conftest.$ac_ext >&5 11728 11729 eval "$as_ac_var=no" 11730 fi 11731 11732 rm -f core conftest.err conftest.$ac_objext \ 11733 conftest$ac_exeext conftest.$ac_ext 11734 fi 11735 ac_res=`eval echo '${'$as_ac_var'}'` 11736 { echo "$as_me:$LINENO: result: $ac_res" >&5 11737 echo "${ECHO_T}$ac_res" >&6; } 11738 if test `eval echo '${'$as_ac_var'}'` = yes; then 11739 cat >>confdefs.h <<_ACEOF 11740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11741 _ACEOF 11742 break 11743 fi 11744 done 11745 11746 11747 11748 for ac_func in memmove strcmp 11749 do 11750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11751 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11754 echo $ECHO_N "(cached) $ECHO_C" >&6 11755 else 11756 cat >conftest.$ac_ext <<_ACEOF 11757 /* confdefs.h. */ 11758 _ACEOF 11759 cat confdefs.h >>conftest.$ac_ext 11760 cat >>conftest.$ac_ext <<_ACEOF 11761 /* end confdefs.h. */ 11762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11763 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11764 #define $ac_func innocuous_$ac_func 11765 11766 /* System header to define __stub macros and hopefully few prototypes, 11767 which can conflict with char $ac_func (); below. 11768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11769 <limits.h> exists even on freestanding compilers. */ 11770 11771 #ifdef __STDC__ 11772 # include <limits.h> 11773 #else 11774 # include <assert.h> 11775 #endif 11776 11777 #undef $ac_func 11778 11779 /* Override any GCC internal prototype to avoid an error. 11780 Use char because int might match the return type of a GCC 11781 builtin and then its argument prototype would still apply. */ 11782 #ifdef __cplusplus 11783 extern "C" 11784 #endif 11785 char $ac_func (); 11786 /* The GNU C library defines this for functions which it implements 11787 to always fail with ENOSYS. Some functions are actually named 11788 something starting with __ and the normal name is an alias. */ 11789 #if defined __stub_$ac_func || defined __stub___$ac_func 11790 choke me 11791 #endif 11792 11793 int 11794 main () 11795 { 11796 return $ac_func (); 11797 ; 11798 return 0; 11799 } 11800 _ACEOF 11801 rm -f conftest.$ac_objext conftest$ac_exeext 11802 if { (ac_try="$ac_link" 11803 case "(($ac_try" in 11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11805 *) ac_try_echo=$ac_try;; 11806 esac 11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11808 (eval "$ac_link") 2>conftest.er1 11809 ac_status=$? 11810 grep -v '^ *+' conftest.er1 >conftest.err 11811 rm -f conftest.er1 11812 cat conftest.err >&5 11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11814 (exit $ac_status); } && 11815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11816 { (case "(($ac_try" in 11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11818 *) ac_try_echo=$ac_try;; 11819 esac 11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11821 (eval "$ac_try") 2>&5 11822 ac_status=$? 11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11824 (exit $ac_status); }; } && 11825 { ac_try='test -s conftest$ac_exeext' 11826 { (case "(($ac_try" in 11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11828 *) ac_try_echo=$ac_try;; 11829 esac 11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11831 (eval "$ac_try") 2>&5 11832 ac_status=$? 11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11834 (exit $ac_status); }; }; then 11835 eval "$as_ac_var=yes" 11836 else 11837 echo "$as_me: failed program was:" >&5 11838 sed 's/^/| /' conftest.$ac_ext >&5 11839 11840 eval "$as_ac_var=no" 11841 fi 11842 11843 rm -f core conftest.err conftest.$ac_objext \ 11844 conftest$ac_exeext conftest.$ac_ext 11845 fi 11846 ac_res=`eval echo '${'$as_ac_var'}'` 11847 { echo "$as_me:$LINENO: result: $ac_res" >&5 11848 echo "${ECHO_T}$ac_res" >&6; } 11849 if test `eval echo '${'$as_ac_var'}'` = yes; then 11850 cat >>confdefs.h <<_ACEOF 11851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11852 _ACEOF 11853 11854 fi 11855 done 11856 11857 11858 11859 11860 for ac_func in closedir opendir readdir 11861 do 11862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11863 { echo "$as_me:$LINENO: checking for $ac_func" >&5 11864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11866 echo $ECHO_N "(cached) $ECHO_C" >&6 11867 else 11868 cat >conftest.$ac_ext <<_ACEOF 11869 /* confdefs.h. */ 11870 _ACEOF 11871 cat confdefs.h >>conftest.$ac_ext 11872 cat >>conftest.$ac_ext <<_ACEOF 11873 /* end confdefs.h. */ 11874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11875 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11876 #define $ac_func innocuous_$ac_func 11877 11878 /* System header to define __stub macros and hopefully few prototypes, 11879 which can conflict with char $ac_func (); below. 11880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11881 <limits.h> exists even on freestanding compilers. */ 11882 11883 #ifdef __STDC__ 11884 # include <limits.h> 11885 #else 11886 # include <assert.h> 11887 #endif 11888 11889 #undef $ac_func 11890 11891 /* Override any GCC internal prototype to avoid an error. 11892 Use char because int might match the return type of a GCC 11893 builtin and then its argument prototype would still apply. */ 11894 #ifdef __cplusplus 11895 extern "C" 11896 #endif 11897 char $ac_func (); 11898 /* The GNU C library defines this for functions which it implements 11899 to always fail with ENOSYS. Some functions are actually named 11900 something starting with __ and the normal name is an alias. */ 11901 #if defined __stub_$ac_func || defined __stub___$ac_func 11902 choke me 11903 #endif 11904 11905 int 11906 main () 11907 { 11908 return $ac_func (); 11909 ; 11910 return 0; 11911 } 11912 _ACEOF 11913 rm -f conftest.$ac_objext conftest$ac_exeext 11914 if { (ac_try="$ac_link" 11915 case "(($ac_try" in 11916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11917 *) ac_try_echo=$ac_try;; 11918 esac 11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11920 (eval "$ac_link") 2>conftest.er1 11921 ac_status=$? 11922 grep -v '^ *+' conftest.er1 >conftest.err 11923 rm -f conftest.er1 11924 cat conftest.err >&5 11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11926 (exit $ac_status); } && 11927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11928 { (case "(($ac_try" in 11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11930 *) ac_try_echo=$ac_try;; 11931 esac 11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11933 (eval "$ac_try") 2>&5 11934 ac_status=$? 11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11936 (exit $ac_status); }; } && 11937 { ac_try='test -s conftest$ac_exeext' 11938 { (case "(($ac_try" in 11939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11940 *) ac_try_echo=$ac_try;; 11941 esac 11942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11943 (eval "$ac_try") 2>&5 11944 ac_status=$? 11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11946 (exit $ac_status); }; }; then 11947 eval "$as_ac_var=yes" 11948 else 11949 echo "$as_me: failed program was:" >&5 11950 sed 's/^/| /' conftest.$ac_ext >&5 11951 11952 eval "$as_ac_var=no" 11953 fi 11954 11955 rm -f core conftest.err conftest.$ac_objext \ 11956 conftest$ac_exeext conftest.$ac_ext 11957 fi 11958 ac_res=`eval echo '${'$as_ac_var'}'` 11959 { echo "$as_me:$LINENO: result: $ac_res" >&5 11960 echo "${ECHO_T}$ac_res" >&6; } 11961 if test `eval echo '${'$as_ac_var'}'` = yes; then 11962 cat >>confdefs.h <<_ACEOF 11963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11964 _ACEOF 11965 11966 fi 11967 done 11968 11969 11970 11971 { echo "$as_me:$LINENO: checking tool compatibility" >&5 11972 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 11973 11974 ICC=no 11975 IXX=no 11976 case $CC in 11977 icc*|icpc*) 11978 ICC=yes 11979 IXX=yes 11980 ;; 11981 *) 11982 ;; 11983 esac 11984 11985 if test "$GCC" != "yes" && test "$ICC" != "yes" 11986 then 11987 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 11988 echo "$as_me: error: gcc|icc required but not found" >&2;} 11989 { (exit 1); exit 1; }; } 11990 fi 11991 11992 if test "$GXX" != "yes" && test "$IXX" != "yes" 11993 then 11994 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 11995 echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 11996 { (exit 1); exit 1; }; } 11997 fi 11998 11999 if test "$GCC" = "yes" 12000 then 12001 cat >conftest.$ac_ext <<_ACEOF 12002 #if !defined(__GNUC__) || __GNUC__ < 3 12003 #error Unsupported GCC version 12004 #endif 12005 12006 _ACEOF 12007 rm -f conftest.$ac_objext 12008 if { (ac_try="$ac_compile" 12009 case "(($ac_try" in 12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12011 *) ac_try_echo=$ac_try;; 12012 esac 12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12014 (eval "$ac_compile") 2>conftest.er1 12015 ac_status=$? 12016 grep -v '^ *+' conftest.er1 >conftest.err 12017 rm -f conftest.er1 12018 cat conftest.err >&5 12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12020 (exit $ac_status); } && 12021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12022 { (case "(($ac_try" in 12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12024 *) ac_try_echo=$ac_try;; 12025 esac 12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12027 (eval "$ac_try") 2>&5 12028 ac_status=$? 12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12030 (exit $ac_status); }; } && 12031 { ac_try='test -s conftest.$ac_objext' 12032 { (case "(($ac_try" in 12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12034 *) ac_try_echo=$ac_try;; 12035 esac 12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12037 (eval "$ac_try") 2>&5 12038 ac_status=$? 12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12040 (exit $ac_status); }; }; then 12041 : 12042 else 12043 echo "$as_me: failed program was:" >&5 12044 sed 's/^/| /' conftest.$ac_ext >&5 12045 12046 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 12047 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 12048 { (exit 1); exit 1; }; } 12049 fi 12050 12051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12052 fi 12053 12054 if test -z "$llvm_cv_gnu_make_command" 12055 then 12056 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 12057 echo "$as_me: error: GNU Make required but not found" >&2;} 12058 { (exit 1); exit 1; }; } 12059 fi 12060 12061 { echo "$as_me:$LINENO: result: ok" >&5 12062 echo "${ECHO_T}ok" >&6; } 12063 12064 { echo "$as_me:$LINENO: checking optional compiler flags" >&5 12065 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 12066 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 12067 12068 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 12069 12070 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 12071 12072 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5 12073 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; } 12074 12075 12076 12077 { echo "$as_me:$LINENO: checking for sin in -lm" >&5 12078 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 12079 if test "${ac_cv_lib_m_sin+set}" = set; then 12080 echo $ECHO_N "(cached) $ECHO_C" >&6 12081 else 12082 ac_check_lib_save_LIBS=$LIBS 12083 LIBS="-lm $LIBS" 12084 cat >conftest.$ac_ext <<_ACEOF 12085 /* confdefs.h. */ 12086 _ACEOF 12087 cat confdefs.h >>conftest.$ac_ext 12088 cat >>conftest.$ac_ext <<_ACEOF 12089 /* end confdefs.h. */ 12090 12091 /* Override any GCC internal prototype to avoid an error. 12092 Use char because int might match the return type of a GCC 12093 builtin and then its argument prototype would still apply. */ 12094 #ifdef __cplusplus 12095 extern "C" 12096 #endif 12097 char sin (); 12098 int 12099 main () 12100 { 12101 return sin (); 12102 ; 12103 return 0; 12104 } 12105 _ACEOF 12106 rm -f conftest.$ac_objext conftest$ac_exeext 12107 if { (ac_try="$ac_link" 12108 case "(($ac_try" in 12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12110 *) ac_try_echo=$ac_try;; 12111 esac 12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12113 (eval "$ac_link") 2>conftest.er1 12114 ac_status=$? 12115 grep -v '^ *+' conftest.er1 >conftest.err 12116 rm -f conftest.er1 12117 cat conftest.err >&5 12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12119 (exit $ac_status); } && 12120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12121 { (case "(($ac_try" in 12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12123 *) ac_try_echo=$ac_try;; 12124 esac 12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12126 (eval "$ac_try") 2>&5 12127 ac_status=$? 12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12129 (exit $ac_status); }; } && 12130 { ac_try='test -s conftest$ac_exeext' 12131 { (case "(($ac_try" in 12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12133 *) ac_try_echo=$ac_try;; 12134 esac 12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12136 (eval "$ac_try") 2>&5 12137 ac_status=$? 12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12139 (exit $ac_status); }; }; then 12140 ac_cv_lib_m_sin=yes 12141 else 12142 echo "$as_me: failed program was:" >&5 12143 sed 's/^/| /' conftest.$ac_ext >&5 12144 12145 ac_cv_lib_m_sin=no 12146 fi 12147 12148 rm -f core conftest.err conftest.$ac_objext \ 12149 conftest$ac_exeext conftest.$ac_ext 12150 LIBS=$ac_check_lib_save_LIBS 12151 fi 12152 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 12153 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 12154 if test $ac_cv_lib_m_sin = yes; then 12155 cat >>confdefs.h <<_ACEOF 12156 #define HAVE_LIBM 1 12157 _ACEOF 12158 12159 LIBS="-lm $LIBS" 12160 12161 fi 12162 12163 if test "$llvm_cv_os_type" = "MingW" ; then 12164 12165 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 12166 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 12167 if test "${ac_cv_lib_imagehlp_main+set}" = set; then 12168 echo $ECHO_N "(cached) $ECHO_C" >&6 12169 else 12170 ac_check_lib_save_LIBS=$LIBS 12171 LIBS="-limagehlp $LIBS" 12172 cat >conftest.$ac_ext <<_ACEOF 12173 /* confdefs.h. */ 12174 _ACEOF 12175 cat confdefs.h >>conftest.$ac_ext 12176 cat >>conftest.$ac_ext <<_ACEOF 12177 /* end confdefs.h. */ 12178 12179 12180 int 12181 main () 12182 { 12183 return main (); 12184 ; 12185 return 0; 12186 } 12187 _ACEOF 12188 rm -f conftest.$ac_objext conftest$ac_exeext 12189 if { (ac_try="$ac_link" 12190 case "(($ac_try" in 12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12192 *) ac_try_echo=$ac_try;; 12193 esac 12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12195 (eval "$ac_link") 2>conftest.er1 12196 ac_status=$? 12197 grep -v '^ *+' conftest.er1 >conftest.err 12198 rm -f conftest.er1 12199 cat conftest.err >&5 12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12201 (exit $ac_status); } && 12202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12203 { (case "(($ac_try" in 12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12205 *) ac_try_echo=$ac_try;; 12206 esac 12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12208 (eval "$ac_try") 2>&5 12209 ac_status=$? 12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12211 (exit $ac_status); }; } && 12212 { ac_try='test -s conftest$ac_exeext' 12213 { (case "(($ac_try" in 12214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12215 *) ac_try_echo=$ac_try;; 12216 esac 12217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12218 (eval "$ac_try") 2>&5 12219 ac_status=$? 12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12221 (exit $ac_status); }; }; then 12222 ac_cv_lib_imagehlp_main=yes 12223 else 12224 echo "$as_me: failed program was:" >&5 12225 sed 's/^/| /' conftest.$ac_ext >&5 12226 12227 ac_cv_lib_imagehlp_main=no 12228 fi 12229 12230 rm -f core conftest.err conftest.$ac_objext \ 12231 conftest$ac_exeext conftest.$ac_ext 12232 LIBS=$ac_check_lib_save_LIBS 12233 fi 12234 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 12235 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 12236 if test $ac_cv_lib_imagehlp_main = yes; then 12237 cat >>confdefs.h <<_ACEOF 12238 #define HAVE_LIBIMAGEHLP 1 12239 _ACEOF 12240 12241 LIBS="-limagehlp $LIBS" 12242 12243 fi 12244 12245 12246 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 12247 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 12248 if test "${ac_cv_lib_psapi_main+set}" = set; then 12249 echo $ECHO_N "(cached) $ECHO_C" >&6 12250 else 12251 ac_check_lib_save_LIBS=$LIBS 12252 LIBS="-lpsapi $LIBS" 12253 cat >conftest.$ac_ext <<_ACEOF 12254 /* confdefs.h. */ 12255 _ACEOF 12256 cat confdefs.h >>conftest.$ac_ext 12257 cat >>conftest.$ac_ext <<_ACEOF 12258 /* end confdefs.h. */ 12259 12260 12261 int 12262 main () 12263 { 12264 return main (); 12265 ; 12266 return 0; 12267 } 12268 _ACEOF 12269 rm -f conftest.$ac_objext conftest$ac_exeext 12270 if { (ac_try="$ac_link" 12271 case "(($ac_try" in 12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12273 *) ac_try_echo=$ac_try;; 12274 esac 12275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12276 (eval "$ac_link") 2>conftest.er1 12277 ac_status=$? 12278 grep -v '^ *+' conftest.er1 >conftest.err 12279 rm -f conftest.er1 12280 cat conftest.err >&5 12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12282 (exit $ac_status); } && 12283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12284 { (case "(($ac_try" in 12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12286 *) ac_try_echo=$ac_try;; 12287 esac 12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12289 (eval "$ac_try") 2>&5 12290 ac_status=$? 12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12292 (exit $ac_status); }; } && 12293 { ac_try='test -s conftest$ac_exeext' 12294 { (case "(($ac_try" in 12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12296 *) ac_try_echo=$ac_try;; 12297 esac 12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12299 (eval "$ac_try") 2>&5 12300 ac_status=$? 12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12302 (exit $ac_status); }; }; then 12303 ac_cv_lib_psapi_main=yes 12304 else 12305 echo "$as_me: failed program was:" >&5 12306 sed 's/^/| /' conftest.$ac_ext >&5 12307 12308 ac_cv_lib_psapi_main=no 12309 fi 12310 12311 rm -f core conftest.err conftest.$ac_objext \ 12312 conftest$ac_exeext conftest.$ac_ext 12313 LIBS=$ac_check_lib_save_LIBS 12314 fi 12315 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12316 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12317 if test $ac_cv_lib_psapi_main = yes; then 12318 cat >>confdefs.h <<_ACEOF 12319 #define HAVE_LIBPSAPI 1 12320 _ACEOF 12321 12322 LIBS="-lpsapi $LIBS" 12323 12324 fi 12325 12326 fi 12327 12328 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12329 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12330 if test "${ac_cv_search_dlopen+set}" = set; then 12331 echo $ECHO_N "(cached) $ECHO_C" >&6 12332 else 12333 ac_func_search_save_LIBS=$LIBS 12334 cat >conftest.$ac_ext <<_ACEOF 12335 /* confdefs.h. */ 12336 _ACEOF 12337 cat confdefs.h >>conftest.$ac_ext 12338 cat >>conftest.$ac_ext <<_ACEOF 12339 /* end confdefs.h. */ 12340 12341 /* Override any GCC internal prototype to avoid an error. 12342 Use char because int might match the return type of a GCC 12343 builtin and then its argument prototype would still apply. */ 12344 #ifdef __cplusplus 12345 extern "C" 12346 #endif 12347 char dlopen (); 12348 int 12349 main () 12350 { 12351 return dlopen (); 12352 ; 12353 return 0; 12354 } 12355 _ACEOF 12356 for ac_lib in '' dl; do 12357 if test -z "$ac_lib"; then 12358 ac_res="none required" 12359 else 12360 ac_res=-l$ac_lib 12361 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12362 fi 12363 rm -f conftest.$ac_objext conftest$ac_exeext 12364 if { (ac_try="$ac_link" 12365 case "(($ac_try" in 12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12367 *) ac_try_echo=$ac_try;; 12368 esac 12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12370 (eval "$ac_link") 2>conftest.er1 12371 ac_status=$? 12372 grep -v '^ *+' conftest.er1 >conftest.err 12373 rm -f conftest.er1 12374 cat conftest.err >&5 12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12376 (exit $ac_status); } && 12377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12378 { (case "(($ac_try" in 12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12380 *) ac_try_echo=$ac_try;; 12381 esac 12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12383 (eval "$ac_try") 2>&5 12384 ac_status=$? 12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12386 (exit $ac_status); }; } && 12387 { ac_try='test -s conftest$ac_exeext' 12388 { (case "(($ac_try" in 12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12390 *) ac_try_echo=$ac_try;; 12391 esac 12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12393 (eval "$ac_try") 2>&5 12394 ac_status=$? 12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12396 (exit $ac_status); }; }; then 12397 ac_cv_search_dlopen=$ac_res 12398 else 12399 echo "$as_me: failed program was:" >&5 12400 sed 's/^/| /' conftest.$ac_ext >&5 12401 12402 12403 fi 12404 12405 rm -f core conftest.err conftest.$ac_objext \ 12406 conftest$ac_exeext 12407 if test "${ac_cv_search_dlopen+set}" = set; then 12408 break 12409 fi 12410 done 12411 if test "${ac_cv_search_dlopen+set}" = set; then 12412 : 12413 else 12414 ac_cv_search_dlopen=no 12415 fi 12416 rm conftest.$ac_ext 12417 LIBS=$ac_func_search_save_LIBS 12418 fi 12419 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12420 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12421 ac_res=$ac_cv_search_dlopen 12422 if test "$ac_res" != no; then 12423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12424 12425 cat >>confdefs.h <<\_ACEOF 12426 #define HAVE_DLOPEN 1 12427 _ACEOF 12428 12429 else 12430 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12431 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12432 fi 12433 12434 12435 if test "$llvm_cv_enable_libffi" = "yes" ; then 12436 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12437 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12438 if test "${ac_cv_search_ffi_call+set}" = set; then 12439 echo $ECHO_N "(cached) $ECHO_C" >&6 12440 else 12441 ac_func_search_save_LIBS=$LIBS 12442 cat >conftest.$ac_ext <<_ACEOF 12443 /* confdefs.h. */ 12444 _ACEOF 12445 cat confdefs.h >>conftest.$ac_ext 12446 cat >>conftest.$ac_ext <<_ACEOF 12447 /* end confdefs.h. */ 12448 12449 /* Override any GCC internal prototype to avoid an error. 12450 Use char because int might match the return type of a GCC 12451 builtin and then its argument prototype would still apply. */ 12452 #ifdef __cplusplus 12453 extern "C" 12454 #endif 12455 char ffi_call (); 12456 int 12457 main () 12458 { 12459 return ffi_call (); 12460 ; 12461 return 0; 12462 } 12463 _ACEOF 12464 for ac_lib in '' ffi; do 12465 if test -z "$ac_lib"; then 12466 ac_res="none required" 12467 else 12468 ac_res=-l$ac_lib 12469 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12470 fi 12471 rm -f conftest.$ac_objext conftest$ac_exeext 12472 if { (ac_try="$ac_link" 12473 case "(($ac_try" in 12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12475 *) ac_try_echo=$ac_try;; 12476 esac 12477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12478 (eval "$ac_link") 2>conftest.er1 12479 ac_status=$? 12480 grep -v '^ *+' conftest.er1 >conftest.err 12481 rm -f conftest.er1 12482 cat conftest.err >&5 12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12484 (exit $ac_status); } && 12485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12486 { (case "(($ac_try" in 12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12488 *) ac_try_echo=$ac_try;; 12489 esac 12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12491 (eval "$ac_try") 2>&5 12492 ac_status=$? 12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12494 (exit $ac_status); }; } && 12495 { ac_try='test -s conftest$ac_exeext' 12496 { (case "(($ac_try" in 12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12498 *) ac_try_echo=$ac_try;; 12499 esac 12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12501 (eval "$ac_try") 2>&5 12502 ac_status=$? 12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12504 (exit $ac_status); }; }; then 12505 ac_cv_search_ffi_call=$ac_res 12506 else 12507 echo "$as_me: failed program was:" >&5 12508 sed 's/^/| /' conftest.$ac_ext >&5 12509 12510 12511 fi 12512 12513 rm -f core conftest.err conftest.$ac_objext \ 12514 conftest$ac_exeext 12515 if test "${ac_cv_search_ffi_call+set}" = set; then 12516 break 12517 fi 12518 done 12519 if test "${ac_cv_search_ffi_call+set}" = set; then 12520 : 12521 else 12522 ac_cv_search_ffi_call=no 12523 fi 12524 rm conftest.$ac_ext 12525 LIBS=$ac_func_search_save_LIBS 12526 fi 12527 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12528 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12529 ac_res=$ac_cv_search_ffi_call 12530 if test "$ac_res" != no; then 12531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12532 12533 cat >>confdefs.h <<\_ACEOF 12534 #define HAVE_FFI_CALL 1 12535 _ACEOF 12536 12537 else 12538 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12539 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12540 { (exit 1); exit 1; }; } 12541 fi 12542 12543 fi 12544 12545 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12546 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12547 if test "${ac_cv_search_mallinfo+set}" = set; then 12548 echo $ECHO_N "(cached) $ECHO_C" >&6 12549 else 12550 ac_func_search_save_LIBS=$LIBS 12551 cat >conftest.$ac_ext <<_ACEOF 12552 /* confdefs.h. */ 12553 _ACEOF 12554 cat confdefs.h >>conftest.$ac_ext 12555 cat >>conftest.$ac_ext <<_ACEOF 12556 /* end confdefs.h. */ 12557 12558 /* Override any GCC internal prototype to avoid an error. 12559 Use char because int might match the return type of a GCC 12560 builtin and then its argument prototype would still apply. */ 12561 #ifdef __cplusplus 12562 extern "C" 12563 #endif 12564 char mallinfo (); 12565 int 12566 main () 12567 { 12568 return mallinfo (); 12569 ; 12570 return 0; 12571 } 12572 _ACEOF 12573 for ac_lib in '' malloc; do 12574 if test -z "$ac_lib"; then 12575 ac_res="none required" 12576 else 12577 ac_res=-l$ac_lib 12578 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12579 fi 12580 rm -f conftest.$ac_objext conftest$ac_exeext 12581 if { (ac_try="$ac_link" 12582 case "(($ac_try" in 12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12584 *) ac_try_echo=$ac_try;; 12585 esac 12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12587 (eval "$ac_link") 2>conftest.er1 12588 ac_status=$? 12589 grep -v '^ *+' conftest.er1 >conftest.err 12590 rm -f conftest.er1 12591 cat conftest.err >&5 12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12593 (exit $ac_status); } && 12594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12595 { (case "(($ac_try" in 12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12597 *) ac_try_echo=$ac_try;; 12598 esac 12599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12600 (eval "$ac_try") 2>&5 12601 ac_status=$? 12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12603 (exit $ac_status); }; } && 12604 { ac_try='test -s conftest$ac_exeext' 12605 { (case "(($ac_try" in 12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12607 *) ac_try_echo=$ac_try;; 12608 esac 12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12610 (eval "$ac_try") 2>&5 12611 ac_status=$? 12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12613 (exit $ac_status); }; }; then 12614 ac_cv_search_mallinfo=$ac_res 12615 else 12616 echo "$as_me: failed program was:" >&5 12617 sed 's/^/| /' conftest.$ac_ext >&5 12618 12619 12620 fi 12621 12622 rm -f core conftest.err conftest.$ac_objext \ 12623 conftest$ac_exeext 12624 if test "${ac_cv_search_mallinfo+set}" = set; then 12625 break 12626 fi 12627 done 12628 if test "${ac_cv_search_mallinfo+set}" = set; then 12629 : 12630 else 12631 ac_cv_search_mallinfo=no 12632 fi 12633 rm conftest.$ac_ext 12634 LIBS=$ac_func_search_save_LIBS 12635 fi 12636 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 12637 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 12638 ac_res=$ac_cv_search_mallinfo 12639 if test "$ac_res" != no; then 12640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12641 12642 cat >>confdefs.h <<\_ACEOF 12643 #define HAVE_MALLINFO 1 12644 _ACEOF 12645 12646 fi 12647 12648 12649 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 12650 12651 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 12652 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 12653 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 12654 echo $ECHO_N "(cached) $ECHO_C" >&6 12655 else 12656 ac_check_lib_save_LIBS=$LIBS 12657 LIBS="-lpthread $LIBS" 12658 cat >conftest.$ac_ext <<_ACEOF 12659 /* confdefs.h. */ 12660 _ACEOF 12661 cat confdefs.h >>conftest.$ac_ext 12662 cat >>conftest.$ac_ext <<_ACEOF 12663 /* end confdefs.h. */ 12664 12665 /* Override any GCC internal prototype to avoid an error. 12666 Use char because int might match the return type of a GCC 12667 builtin and then its argument prototype would still apply. */ 12668 #ifdef __cplusplus 12669 extern "C" 12670 #endif 12671 char pthread_mutex_init (); 12672 int 12673 main () 12674 { 12675 return pthread_mutex_init (); 12676 ; 12677 return 0; 12678 } 12679 _ACEOF 12680 rm -f conftest.$ac_objext conftest$ac_exeext 12681 if { (ac_try="$ac_link" 12682 case "(($ac_try" in 12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12684 *) ac_try_echo=$ac_try;; 12685 esac 12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12687 (eval "$ac_link") 2>conftest.er1 12688 ac_status=$? 12689 grep -v '^ *+' conftest.er1 >conftest.err 12690 rm -f conftest.er1 12691 cat conftest.err >&5 12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12693 (exit $ac_status); } && 12694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12695 { (case "(($ac_try" in 12696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12697 *) ac_try_echo=$ac_try;; 12698 esac 12699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12700 (eval "$ac_try") 2>&5 12701 ac_status=$? 12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12703 (exit $ac_status); }; } && 12704 { ac_try='test -s conftest$ac_exeext' 12705 { (case "(($ac_try" in 12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12707 *) ac_try_echo=$ac_try;; 12708 esac 12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12710 (eval "$ac_try") 2>&5 12711 ac_status=$? 12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12713 (exit $ac_status); }; }; then 12714 ac_cv_lib_pthread_pthread_mutex_init=yes 12715 else 12716 echo "$as_me: failed program was:" >&5 12717 sed 's/^/| /' conftest.$ac_ext >&5 12718 12719 ac_cv_lib_pthread_pthread_mutex_init=no 12720 fi 12721 12722 rm -f core conftest.err conftest.$ac_objext \ 12723 conftest$ac_exeext conftest.$ac_ext 12724 LIBS=$ac_check_lib_save_LIBS 12725 fi 12726 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 12727 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 12728 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 12729 cat >>confdefs.h <<_ACEOF 12730 #define HAVE_LIBPTHREAD 1 12731 _ACEOF 12732 12733 LIBS="-lpthread $LIBS" 12734 12735 fi 12736 12737 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 12738 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 12739 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12740 echo $ECHO_N "(cached) $ECHO_C" >&6 12741 else 12742 ac_func_search_save_LIBS=$LIBS 12743 cat >conftest.$ac_ext <<_ACEOF 12744 /* confdefs.h. */ 12745 _ACEOF 12746 cat confdefs.h >>conftest.$ac_ext 12747 cat >>conftest.$ac_ext <<_ACEOF 12748 /* end confdefs.h. */ 12749 12750 /* Override any GCC internal prototype to avoid an error. 12751 Use char because int might match the return type of a GCC 12752 builtin and then its argument prototype would still apply. */ 12753 #ifdef __cplusplus 12754 extern "C" 12755 #endif 12756 char pthread_mutex_lock (); 12757 int 12758 main () 12759 { 12760 return pthread_mutex_lock (); 12761 ; 12762 return 0; 12763 } 12764 _ACEOF 12765 for ac_lib in '' pthread; do 12766 if test -z "$ac_lib"; then 12767 ac_res="none required" 12768 else 12769 ac_res=-l$ac_lib 12770 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12771 fi 12772 rm -f conftest.$ac_objext conftest$ac_exeext 12773 if { (ac_try="$ac_link" 12774 case "(($ac_try" in 12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12776 *) ac_try_echo=$ac_try;; 12777 esac 12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12779 (eval "$ac_link") 2>conftest.er1 12780 ac_status=$? 12781 grep -v '^ *+' conftest.er1 >conftest.err 12782 rm -f conftest.er1 12783 cat conftest.err >&5 12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12785 (exit $ac_status); } && 12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12787 { (case "(($ac_try" in 12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12789 *) ac_try_echo=$ac_try;; 12790 esac 12791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12792 (eval "$ac_try") 2>&5 12793 ac_status=$? 12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12795 (exit $ac_status); }; } && 12796 { ac_try='test -s conftest$ac_exeext' 12797 { (case "(($ac_try" in 12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12799 *) ac_try_echo=$ac_try;; 12800 esac 12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12802 (eval "$ac_try") 2>&5 12803 ac_status=$? 12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12805 (exit $ac_status); }; }; then 12806 ac_cv_search_pthread_mutex_lock=$ac_res 12807 else 12808 echo "$as_me: failed program was:" >&5 12809 sed 's/^/| /' conftest.$ac_ext >&5 12810 12811 12812 fi 12813 12814 rm -f core conftest.err conftest.$ac_objext \ 12815 conftest$ac_exeext 12816 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12817 break 12818 fi 12819 done 12820 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12821 : 12822 else 12823 ac_cv_search_pthread_mutex_lock=no 12824 fi 12825 rm conftest.$ac_ext 12826 LIBS=$ac_func_search_save_LIBS 12827 fi 12828 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 12829 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 12830 ac_res=$ac_cv_search_pthread_mutex_lock 12831 if test "$ac_res" != no; then 12832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12833 12834 cat >>confdefs.h <<\_ACEOF 12835 #define HAVE_PTHREAD_MUTEX_LOCK 1 12836 _ACEOF 12837 12838 fi 12839 12840 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 12841 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 12842 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12843 echo $ECHO_N "(cached) $ECHO_C" >&6 12844 else 12845 ac_func_search_save_LIBS=$LIBS 12846 cat >conftest.$ac_ext <<_ACEOF 12847 /* confdefs.h. */ 12848 _ACEOF 12849 cat confdefs.h >>conftest.$ac_ext 12850 cat >>conftest.$ac_ext <<_ACEOF 12851 /* end confdefs.h. */ 12852 12853 /* Override any GCC internal prototype to avoid an error. 12854 Use char because int might match the return type of a GCC 12855 builtin and then its argument prototype would still apply. */ 12856 #ifdef __cplusplus 12857 extern "C" 12858 #endif 12859 char pthread_rwlock_init (); 12860 int 12861 main () 12862 { 12863 return pthread_rwlock_init (); 12864 ; 12865 return 0; 12866 } 12867 _ACEOF 12868 for ac_lib in '' pthread; do 12869 if test -z "$ac_lib"; then 12870 ac_res="none required" 12871 else 12872 ac_res=-l$ac_lib 12873 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12874 fi 12875 rm -f conftest.$ac_objext conftest$ac_exeext 12876 if { (ac_try="$ac_link" 12877 case "(($ac_try" in 12878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12879 *) ac_try_echo=$ac_try;; 12880 esac 12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12882 (eval "$ac_link") 2>conftest.er1 12883 ac_status=$? 12884 grep -v '^ *+' conftest.er1 >conftest.err 12885 rm -f conftest.er1 12886 cat conftest.err >&5 12887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12888 (exit $ac_status); } && 12889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12890 { (case "(($ac_try" in 12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12892 *) ac_try_echo=$ac_try;; 12893 esac 12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12895 (eval "$ac_try") 2>&5 12896 ac_status=$? 12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12898 (exit $ac_status); }; } && 12899 { ac_try='test -s conftest$ac_exeext' 12900 { (case "(($ac_try" in 12901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12902 *) ac_try_echo=$ac_try;; 12903 esac 12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12905 (eval "$ac_try") 2>&5 12906 ac_status=$? 12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12908 (exit $ac_status); }; }; then 12909 ac_cv_search_pthread_rwlock_init=$ac_res 12910 else 12911 echo "$as_me: failed program was:" >&5 12912 sed 's/^/| /' conftest.$ac_ext >&5 12913 12914 12915 fi 12916 12917 rm -f core conftest.err conftest.$ac_objext \ 12918 conftest$ac_exeext 12919 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12920 break 12921 fi 12922 done 12923 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12924 : 12925 else 12926 ac_cv_search_pthread_rwlock_init=no 12927 fi 12928 rm conftest.$ac_ext 12929 LIBS=$ac_func_search_save_LIBS 12930 fi 12931 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 12932 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 12933 ac_res=$ac_cv_search_pthread_rwlock_init 12934 if test "$ac_res" != no; then 12935 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12936 12937 cat >>confdefs.h <<\_ACEOF 12938 #define HAVE_PTHREAD_RWLOCK_INIT 1 12939 _ACEOF 12940 12941 fi 12942 12943 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 12944 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 12945 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12946 echo $ECHO_N "(cached) $ECHO_C" >&6 12947 else 12948 ac_func_search_save_LIBS=$LIBS 12949 cat >conftest.$ac_ext <<_ACEOF 12950 /* confdefs.h. */ 12951 _ACEOF 12952 cat confdefs.h >>conftest.$ac_ext 12953 cat >>conftest.$ac_ext <<_ACEOF 12954 /* end confdefs.h. */ 12955 12956 /* Override any GCC internal prototype to avoid an error. 12957 Use char because int might match the return type of a GCC 12958 builtin and then its argument prototype would still apply. */ 12959 #ifdef __cplusplus 12960 extern "C" 12961 #endif 12962 char pthread_getspecific (); 12963 int 12964 main () 12965 { 12966 return pthread_getspecific (); 12967 ; 12968 return 0; 12969 } 12970 _ACEOF 12971 for ac_lib in '' pthread; do 12972 if test -z "$ac_lib"; then 12973 ac_res="none required" 12974 else 12975 ac_res=-l$ac_lib 12976 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12977 fi 12978 rm -f conftest.$ac_objext conftest$ac_exeext 12979 if { (ac_try="$ac_link" 12980 case "(($ac_try" in 12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12982 *) ac_try_echo=$ac_try;; 12983 esac 12984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12985 (eval "$ac_link") 2>conftest.er1 12986 ac_status=$? 12987 grep -v '^ *+' conftest.er1 >conftest.err 12988 rm -f conftest.er1 12989 cat conftest.err >&5 12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12991 (exit $ac_status); } && 12992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12993 { (case "(($ac_try" in 12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12995 *) ac_try_echo=$ac_try;; 12996 esac 12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12998 (eval "$ac_try") 2>&5 12999 ac_status=$? 13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13001 (exit $ac_status); }; } && 13002 { ac_try='test -s conftest$ac_exeext' 13003 { (case "(($ac_try" in 13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13005 *) ac_try_echo=$ac_try;; 13006 esac 13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13008 (eval "$ac_try") 2>&5 13009 ac_status=$? 13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13011 (exit $ac_status); }; }; then 13012 ac_cv_search_pthread_getspecific=$ac_res 13013 else 13014 echo "$as_me: failed program was:" >&5 13015 sed 's/^/| /' conftest.$ac_ext >&5 13016 13017 13018 fi 13019 13020 rm -f core conftest.err conftest.$ac_objext \ 13021 conftest$ac_exeext 13022 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13023 break 13024 fi 13025 done 13026 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13027 : 13028 else 13029 ac_cv_search_pthread_getspecific=no 13030 fi 13031 rm conftest.$ac_ext 13032 LIBS=$ac_func_search_save_LIBS 13033 fi 13034 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 13035 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 13036 ac_res=$ac_cv_search_pthread_getspecific 13037 if test "$ac_res" != no; then 13038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13039 13040 cat >>confdefs.h <<\_ACEOF 13041 #define HAVE_PTHREAD_GETSPECIFIC 1 13042 _ACEOF 13043 13044 fi 13045 13046 fi 13047 13048 13049 # Check whether --with-udis86 was given. 13050 if test "${with_udis86+set}" = set; then 13051 withval=$with_udis86; 13052 USE_UDIS86=1 13053 13054 case "$withval" in 13055 /usr/lib|yes) ;; 13056 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13057 esac 13058 13059 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 13060 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 13061 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 13062 echo $ECHO_N "(cached) $ECHO_C" >&6 13063 else 13064 ac_check_lib_save_LIBS=$LIBS 13065 LIBS="-ludis86 $LIBS" 13066 cat >conftest.$ac_ext <<_ACEOF 13067 /* confdefs.h. */ 13068 _ACEOF 13069 cat confdefs.h >>conftest.$ac_ext 13070 cat >>conftest.$ac_ext <<_ACEOF 13071 /* end confdefs.h. */ 13072 13073 /* Override any GCC internal prototype to avoid an error. 13074 Use char because int might match the return type of a GCC 13075 builtin and then its argument prototype would still apply. */ 13076 #ifdef __cplusplus 13077 extern "C" 13078 #endif 13079 char ud_init (); 13080 int 13081 main () 13082 { 13083 return ud_init (); 13084 ; 13085 return 0; 13086 } 13087 _ACEOF 13088 rm -f conftest.$ac_objext conftest$ac_exeext 13089 if { (ac_try="$ac_link" 13090 case "(($ac_try" in 13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13092 *) ac_try_echo=$ac_try;; 13093 esac 13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13095 (eval "$ac_link") 2>conftest.er1 13096 ac_status=$? 13097 grep -v '^ *+' conftest.er1 >conftest.err 13098 rm -f conftest.er1 13099 cat conftest.err >&5 13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13101 (exit $ac_status); } && 13102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13103 { (case "(($ac_try" in 13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13105 *) ac_try_echo=$ac_try;; 13106 esac 13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13108 (eval "$ac_try") 2>&5 13109 ac_status=$? 13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13111 (exit $ac_status); }; } && 13112 { ac_try='test -s conftest$ac_exeext' 13113 { (case "(($ac_try" in 13114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13115 *) ac_try_echo=$ac_try;; 13116 esac 13117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13118 (eval "$ac_try") 2>&5 13119 ac_status=$? 13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13121 (exit $ac_status); }; }; then 13122 ac_cv_lib_udis86_ud_init=yes 13123 else 13124 echo "$as_me: failed program was:" >&5 13125 sed 's/^/| /' conftest.$ac_ext >&5 13126 13127 ac_cv_lib_udis86_ud_init=no 13128 fi 13129 13130 rm -f core conftest.err conftest.$ac_objext \ 13131 conftest$ac_exeext conftest.$ac_ext 13132 LIBS=$ac_check_lib_save_LIBS 13133 fi 13134 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13135 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13136 if test $ac_cv_lib_udis86_ud_init = yes; then 13137 cat >>confdefs.h <<_ACEOF 13138 #define HAVE_LIBUDIS86 1 13139 _ACEOF 13140 13141 LIBS="-ludis86 $LIBS" 13142 13143 else 13144 13145 echo "Error! You need to have libudis86 around." 13146 exit -1 13147 13148 fi 13149 13150 13151 else 13152 USE_UDIS86=0 13153 13154 fi 13155 13156 13157 cat >>confdefs.h <<_ACEOF 13158 #define USE_UDIS86 $USE_UDIS86 13159 _ACEOF 13160 13161 13162 13163 # Check whether --with-oprofile was given. 13164 if test "${with_oprofile+set}" = set; then 13165 withval=$with_oprofile; 13166 USE_OPROFILE=1 13167 13168 case "$withval" in 13169 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13170 no) llvm_cv_oppath= 13171 USE_OPROFILE=0 13172 ;; 13173 *) llvm_cv_oppath="${withval}/lib/oprofile" 13174 CPPFLAGS="-I${withval}/include";; 13175 esac 13176 if test -n "$llvm_cv_oppath" ; then 13177 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13178 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13179 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13180 if test "${ac_cv_search_bfd_init+set}" = set; then 13181 echo $ECHO_N "(cached) $ECHO_C" >&6 13182 else 13183 ac_func_search_save_LIBS=$LIBS 13184 cat >conftest.$ac_ext <<_ACEOF 13185 /* confdefs.h. */ 13186 _ACEOF 13187 cat confdefs.h >>conftest.$ac_ext 13188 cat >>conftest.$ac_ext <<_ACEOF 13189 /* end confdefs.h. */ 13190 13191 /* Override any GCC internal prototype to avoid an error. 13192 Use char because int might match the return type of a GCC 13193 builtin and then its argument prototype would still apply. */ 13194 #ifdef __cplusplus 13195 extern "C" 13196 #endif 13197 char bfd_init (); 13198 int 13199 main () 13200 { 13201 return bfd_init (); 13202 ; 13203 return 0; 13204 } 13205 _ACEOF 13206 for ac_lib in '' bfd; do 13207 if test -z "$ac_lib"; then 13208 ac_res="none required" 13209 else 13210 ac_res=-l$ac_lib 13211 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13212 fi 13213 rm -f conftest.$ac_objext conftest$ac_exeext 13214 if { (ac_try="$ac_link" 13215 case "(($ac_try" in 13216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13217 *) ac_try_echo=$ac_try;; 13218 esac 13219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13220 (eval "$ac_link") 2>conftest.er1 13221 ac_status=$? 13222 grep -v '^ *+' conftest.er1 >conftest.err 13223 rm -f conftest.er1 13224 cat conftest.err >&5 13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13226 (exit $ac_status); } && 13227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13228 { (case "(($ac_try" in 13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13230 *) ac_try_echo=$ac_try;; 13231 esac 13232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13233 (eval "$ac_try") 2>&5 13234 ac_status=$? 13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13236 (exit $ac_status); }; } && 13237 { ac_try='test -s conftest$ac_exeext' 13238 { (case "(($ac_try" in 13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13240 *) ac_try_echo=$ac_try;; 13241 esac 13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13243 (eval "$ac_try") 2>&5 13244 ac_status=$? 13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13246 (exit $ac_status); }; }; then 13247 ac_cv_search_bfd_init=$ac_res 13248 else 13249 echo "$as_me: failed program was:" >&5 13250 sed 's/^/| /' conftest.$ac_ext >&5 13251 13252 13253 fi 13254 13255 rm -f core conftest.err conftest.$ac_objext \ 13256 conftest$ac_exeext 13257 if test "${ac_cv_search_bfd_init+set}" = set; then 13258 break 13259 fi 13260 done 13261 if test "${ac_cv_search_bfd_init+set}" = set; then 13262 : 13263 else 13264 ac_cv_search_bfd_init=no 13265 fi 13266 rm conftest.$ac_ext 13267 LIBS=$ac_func_search_save_LIBS 13268 fi 13269 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13270 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13271 ac_res=$ac_cv_search_bfd_init 13272 if test "$ac_res" != no; then 13273 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13274 13275 fi 13276 13277 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13278 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13279 if test "${ac_cv_search_op_open_agent+set}" = set; then 13280 echo $ECHO_N "(cached) $ECHO_C" >&6 13281 else 13282 ac_func_search_save_LIBS=$LIBS 13283 cat >conftest.$ac_ext <<_ACEOF 13284 /* confdefs.h. */ 13285 _ACEOF 13286 cat confdefs.h >>conftest.$ac_ext 13287 cat >>conftest.$ac_ext <<_ACEOF 13288 /* end confdefs.h. */ 13289 13290 /* Override any GCC internal prototype to avoid an error. 13291 Use char because int might match the return type of a GCC 13292 builtin and then its argument prototype would still apply. */ 13293 #ifdef __cplusplus 13294 extern "C" 13295 #endif 13296 char op_open_agent (); 13297 int 13298 main () 13299 { 13300 return op_open_agent (); 13301 ; 13302 return 0; 13303 } 13304 _ACEOF 13305 for ac_lib in '' opagent; do 13306 if test -z "$ac_lib"; then 13307 ac_res="none required" 13308 else 13309 ac_res=-l$ac_lib 13310 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13311 fi 13312 rm -f conftest.$ac_objext conftest$ac_exeext 13313 if { (ac_try="$ac_link" 13314 case "(($ac_try" in 13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13316 *) ac_try_echo=$ac_try;; 13317 esac 13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13319 (eval "$ac_link") 2>conftest.er1 13320 ac_status=$? 13321 grep -v '^ *+' conftest.er1 >conftest.err 13322 rm -f conftest.er1 13323 cat conftest.err >&5 13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13325 (exit $ac_status); } && 13326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13327 { (case "(($ac_try" in 13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13329 *) ac_try_echo=$ac_try;; 13330 esac 13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13332 (eval "$ac_try") 2>&5 13333 ac_status=$? 13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13335 (exit $ac_status); }; } && 13336 { ac_try='test -s conftest$ac_exeext' 13337 { (case "(($ac_try" in 13338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13339 *) ac_try_echo=$ac_try;; 13340 esac 13341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13342 (eval "$ac_try") 2>&5 13343 ac_status=$? 13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13345 (exit $ac_status); }; }; then 13346 ac_cv_search_op_open_agent=$ac_res 13347 else 13348 echo "$as_me: failed program was:" >&5 13349 sed 's/^/| /' conftest.$ac_ext >&5 13350 13351 13352 fi 13353 13354 rm -f core conftest.err conftest.$ac_objext \ 13355 conftest$ac_exeext 13356 if test "${ac_cv_search_op_open_agent+set}" = set; then 13357 break 13358 fi 13359 done 13360 if test "${ac_cv_search_op_open_agent+set}" = set; then 13361 : 13362 else 13363 ac_cv_search_op_open_agent=no 13364 fi 13365 rm conftest.$ac_ext 13366 LIBS=$ac_func_search_save_LIBS 13367 fi 13368 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13369 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13370 ac_res=$ac_cv_search_op_open_agent 13371 if test "$ac_res" != no; then 13372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13373 13374 else 13375 13376 echo "Error! You need to have libopagent around." 13377 exit -1 13378 13379 fi 13380 13381 if test "${ac_cv_header_opagent_h+set}" = set; then 13382 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13383 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13384 if test "${ac_cv_header_opagent_h+set}" = set; then 13385 echo $ECHO_N "(cached) $ECHO_C" >&6 13386 fi 13387 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13388 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13389 else 13390 # Is the header compilable? 13391 { echo "$as_me:$LINENO: checking opagent.h usability" >&5 13392 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13393 cat >conftest.$ac_ext <<_ACEOF 13394 /* confdefs.h. */ 13395 _ACEOF 13396 cat confdefs.h >>conftest.$ac_ext 13397 cat >>conftest.$ac_ext <<_ACEOF 13398 /* end confdefs.h. */ 13399 $ac_includes_default 13400 #include <opagent.h> 13401 _ACEOF 13402 rm -f conftest.$ac_objext 13403 if { (ac_try="$ac_compile" 13404 case "(($ac_try" in 13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13406 *) ac_try_echo=$ac_try;; 13407 esac 13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13409 (eval "$ac_compile") 2>conftest.er1 13410 ac_status=$? 13411 grep -v '^ *+' conftest.er1 >conftest.err 13412 rm -f conftest.er1 13413 cat conftest.err >&5 13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13415 (exit $ac_status); } && 13416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13417 { (case "(($ac_try" in 13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13419 *) ac_try_echo=$ac_try;; 13420 esac 13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13422 (eval "$ac_try") 2>&5 13423 ac_status=$? 13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13425 (exit $ac_status); }; } && 13426 { ac_try='test -s conftest.$ac_objext' 13427 { (case "(($ac_try" in 13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13429 *) ac_try_echo=$ac_try;; 13430 esac 13431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13432 (eval "$ac_try") 2>&5 13433 ac_status=$? 13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13435 (exit $ac_status); }; }; then 13436 ac_header_compiler=yes 13437 else 13438 echo "$as_me: failed program was:" >&5 13439 sed 's/^/| /' conftest.$ac_ext >&5 13440 13441 ac_header_compiler=no 13442 fi 13443 13444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13446 echo "${ECHO_T}$ac_header_compiler" >&6; } 13447 13448 # Is the header present? 13449 { echo "$as_me:$LINENO: checking opagent.h presence" >&5 13450 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13451 cat >conftest.$ac_ext <<_ACEOF 13452 /* confdefs.h. */ 13453 _ACEOF 13454 cat confdefs.h >>conftest.$ac_ext 13455 cat >>conftest.$ac_ext <<_ACEOF 13456 /* end confdefs.h. */ 13457 #include <opagent.h> 13458 _ACEOF 13459 if { (ac_try="$ac_cpp conftest.$ac_ext" 13460 case "(($ac_try" in 13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13462 *) ac_try_echo=$ac_try;; 13463 esac 13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13466 ac_status=$? 13467 grep -v '^ *+' conftest.er1 >conftest.err 13468 rm -f conftest.er1 13469 cat conftest.err >&5 13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13471 (exit $ac_status); } >/dev/null; then 13472 if test -s conftest.err; then 13473 ac_cpp_err=$ac_c_preproc_warn_flag 13474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13475 else 13476 ac_cpp_err= 13477 fi 13478 else 13479 ac_cpp_err=yes 13480 fi 13481 if test -z "$ac_cpp_err"; then 13482 ac_header_preproc=yes 13483 else 13484 echo "$as_me: failed program was:" >&5 13485 sed 's/^/| /' conftest.$ac_ext >&5 13486 13487 ac_header_preproc=no 13488 fi 13489 13490 rm -f conftest.err conftest.$ac_ext 13491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13492 echo "${ECHO_T}$ac_header_preproc" >&6; } 13493 13494 # So? What about this header? 13495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13496 yes:no: ) 13497 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 13498 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13499 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 13500 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 13501 ac_header_preproc=yes 13502 ;; 13503 no:yes:* ) 13504 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 13505 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 13506 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 13507 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 13508 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 13509 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 13510 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 13511 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 13512 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 13513 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 13514 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 13515 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 13516 ( cat <<\_ASBOX 13517 ## ------------------------------ ## 13518 ## Report this to bugs@yourdomain ## 13519 ## ------------------------------ ## 13520 _ASBOX 13521 ) | sed "s/^/$as_me: WARNING: /" >&2 13522 ;; 13523 esac 13524 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13525 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13526 if test "${ac_cv_header_opagent_h+set}" = set; then 13527 echo $ECHO_N "(cached) $ECHO_C" >&6 13528 else 13529 ac_cv_header_opagent_h=$ac_header_preproc 13530 fi 13531 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13532 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13533 13534 fi 13535 if test $ac_cv_header_opagent_h = yes; then 13536 : 13537 else 13538 13539 echo "Error! You need to have opagent.h around." 13540 exit -1 13541 13542 fi 13543 13544 13545 fi 13546 13547 else 13548 13549 USE_OPROFILE=0 13550 13551 13552 fi 13553 13554 13555 cat >>confdefs.h <<_ACEOF 13556 #define USE_OPROFILE $USE_OPROFILE 13557 _ACEOF 13558 13559 13560 13561 13562 13563 13564 13565 13566 ac_header_dirent=no 13567 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 13568 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 13569 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 13570 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 13571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13572 echo $ECHO_N "(cached) $ECHO_C" >&6 13573 else 13574 cat >conftest.$ac_ext <<_ACEOF 13575 /* confdefs.h. */ 13576 _ACEOF 13577 cat confdefs.h >>conftest.$ac_ext 13578 cat >>conftest.$ac_ext <<_ACEOF 13579 /* end confdefs.h. */ 13580 #include <sys/types.h> 13581 #include <$ac_hdr> 13582 13583 int 13584 main () 13585 { 13586 if ((DIR *) 0) 13587 return 0; 13588 ; 13589 return 0; 13590 } 13591 _ACEOF 13592 rm -f conftest.$ac_objext 13593 if { (ac_try="$ac_compile" 13594 case "(($ac_try" in 13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13596 *) ac_try_echo=$ac_try;; 13597 esac 13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13599 (eval "$ac_compile") 2>conftest.er1 13600 ac_status=$? 13601 grep -v '^ *+' conftest.er1 >conftest.err 13602 rm -f conftest.er1 13603 cat conftest.err >&5 13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13605 (exit $ac_status); } && 13606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13607 { (case "(($ac_try" in 13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13609 *) ac_try_echo=$ac_try;; 13610 esac 13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13612 (eval "$ac_try") 2>&5 13613 ac_status=$? 13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13615 (exit $ac_status); }; } && 13616 { ac_try='test -s conftest.$ac_objext' 13617 { (case "(($ac_try" in 13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13619 *) ac_try_echo=$ac_try;; 13620 esac 13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13622 (eval "$ac_try") 2>&5 13623 ac_status=$? 13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13625 (exit $ac_status); }; }; then 13626 eval "$as_ac_Header=yes" 13627 else 13628 echo "$as_me: failed program was:" >&5 13629 sed 's/^/| /' conftest.$ac_ext >&5 13630 13631 eval "$as_ac_Header=no" 13632 fi 13633 13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13635 fi 13636 ac_res=`eval echo '${'$as_ac_Header'}'` 13637 { echo "$as_me:$LINENO: result: $ac_res" >&5 13638 echo "${ECHO_T}$ac_res" >&6; } 13639 if test `eval echo '${'$as_ac_Header'}'` = yes; then 13640 cat >>confdefs.h <<_ACEOF 13641 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 13642 _ACEOF 13643 13644 ac_header_dirent=$ac_hdr; break 13645 fi 13646 13647 done 13648 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 13649 if test $ac_header_dirent = dirent.h; then 13650 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13651 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13652 if test "${ac_cv_search_opendir+set}" = set; then 13653 echo $ECHO_N "(cached) $ECHO_C" >&6 13654 else 13655 ac_func_search_save_LIBS=$LIBS 13656 cat >conftest.$ac_ext <<_ACEOF 13657 /* confdefs.h. */ 13658 _ACEOF 13659 cat confdefs.h >>conftest.$ac_ext 13660 cat >>conftest.$ac_ext <<_ACEOF 13661 /* end confdefs.h. */ 13662 13663 /* Override any GCC internal prototype to avoid an error. 13664 Use char because int might match the return type of a GCC 13665 builtin and then its argument prototype would still apply. */ 13666 #ifdef __cplusplus 13667 extern "C" 13668 #endif 13669 char opendir (); 13670 int 13671 main () 13672 { 13673 return opendir (); 13674 ; 13675 return 0; 13676 } 13677 _ACEOF 13678 for ac_lib in '' dir; do 13679 if test -z "$ac_lib"; then 13680 ac_res="none required" 13681 else 13682 ac_res=-l$ac_lib 13683 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13684 fi 13685 rm -f conftest.$ac_objext conftest$ac_exeext 13686 if { (ac_try="$ac_link" 13687 case "(($ac_try" in 13688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13689 *) ac_try_echo=$ac_try;; 13690 esac 13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13692 (eval "$ac_link") 2>conftest.er1 13693 ac_status=$? 13694 grep -v '^ *+' conftest.er1 >conftest.err 13695 rm -f conftest.er1 13696 cat conftest.err >&5 13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13698 (exit $ac_status); } && 13699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13700 { (case "(($ac_try" in 13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13702 *) ac_try_echo=$ac_try;; 13703 esac 13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13705 (eval "$ac_try") 2>&5 13706 ac_status=$? 13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13708 (exit $ac_status); }; } && 13709 { ac_try='test -s conftest$ac_exeext' 13710 { (case "(($ac_try" in 13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13712 *) ac_try_echo=$ac_try;; 13713 esac 13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13715 (eval "$ac_try") 2>&5 13716 ac_status=$? 13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13718 (exit $ac_status); }; }; then 13719 ac_cv_search_opendir=$ac_res 13720 else 13721 echo "$as_me: failed program was:" >&5 13722 sed 's/^/| /' conftest.$ac_ext >&5 13723 13724 13725 fi 13726 13727 rm -f core conftest.err conftest.$ac_objext \ 13728 conftest$ac_exeext 13729 if test "${ac_cv_search_opendir+set}" = set; then 13730 break 13731 fi 13732 done 13733 if test "${ac_cv_search_opendir+set}" = set; then 13734 : 13735 else 13736 ac_cv_search_opendir=no 13737 fi 13738 rm conftest.$ac_ext 13739 LIBS=$ac_func_search_save_LIBS 13740 fi 13741 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13742 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 13743 ac_res=$ac_cv_search_opendir 13744 if test "$ac_res" != no; then 13745 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13746 13747 fi 13748 13749 else 13750 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13751 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13752 if test "${ac_cv_search_opendir+set}" = set; then 13753 echo $ECHO_N "(cached) $ECHO_C" >&6 13754 else 13755 ac_func_search_save_LIBS=$LIBS 13756 cat >conftest.$ac_ext <<_ACEOF 13757 /* confdefs.h. */ 13758 _ACEOF 13759 cat confdefs.h >>conftest.$ac_ext 13760 cat >>conftest.$ac_ext <<_ACEOF 13761 /* end confdefs.h. */ 13762 13763 /* Override any GCC internal prototype to avoid an error. 13764 Use char because int might match the return type of a GCC 13765 builtin and then its argument prototype would still apply. */ 13766 #ifdef __cplusplus 13767 extern "C" 13768 #endif 13769 char opendir (); 13770 int 13771 main () 13772 { 13773 return opendir (); 13774 ; 13775 return 0; 13776 } 13777 _ACEOF 13778 for ac_lib in '' x; do 13779 if test -z "$ac_lib"; then 13780 ac_res="none required" 13781 else 13782 ac_res=-l$ac_lib 13783 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13784 fi 13785 rm -f conftest.$ac_objext conftest$ac_exeext 13786 if { (ac_try="$ac_link" 13787 case "(($ac_try" in 13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13789 *) ac_try_echo=$ac_try;; 13790 esac 13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13792 (eval "$ac_link") 2>conftest.er1 13793 ac_status=$? 13794 grep -v '^ *+' conftest.er1 >conftest.err 13795 rm -f conftest.er1 13796 cat conftest.err >&5 13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13798 (exit $ac_status); } && 13799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13800 { (case "(($ac_try" in 13801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13802 *) ac_try_echo=$ac_try;; 13803 esac 13804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13805 (eval "$ac_try") 2>&5 13806 ac_status=$? 13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13808 (exit $ac_status); }; } && 13809 { ac_try='test -s conftest$ac_exeext' 13810 { (case "(($ac_try" in 13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13812 *) ac_try_echo=$ac_try;; 13813 esac 13814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13815 (eval "$ac_try") 2>&5 13816 ac_status=$? 13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13818 (exit $ac_status); }; }; then 13819 ac_cv_search_opendir=$ac_res 13820 else 13821 echo "$as_me: failed program was:" >&5 13822 sed 's/^/| /' conftest.$ac_ext >&5 13823 13824 13825 fi 13826 13827 rm -f core conftest.err conftest.$ac_objext \ 13828 conftest$ac_exeext 13829 if test "${ac_cv_search_opendir+set}" = set; then 13830 break 13831 fi 13832 done 13833 if test "${ac_cv_search_opendir+set}" = set; then 13834 : 13835 else 13836 ac_cv_search_opendir=no 13837 fi 13838 rm conftest.$ac_ext 13839 LIBS=$ac_func_search_save_LIBS 13840 fi 13841 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13842 echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 13843 ac_res=$ac_cv_search_opendir 13844 if test "$ac_res" != no; then 13845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13846 13847 fi 13848 13849 fi 13850 13851 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 13852 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 13853 if test "${ac_cv_header_mmap_anon+set}" = set; then 13854 echo $ECHO_N "(cached) $ECHO_C" >&6 13855 else 13856 ac_ext=c 13857 ac_cpp='$CPP $CPPFLAGS' 13858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13860 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13861 13862 cat >conftest.$ac_ext <<_ACEOF 13863 /* confdefs.h. */ 13864 _ACEOF 13865 cat confdefs.h >>conftest.$ac_ext 13866 cat >>conftest.$ac_ext <<_ACEOF 13867 /* end confdefs.h. */ 13868 #include <sys/mman.h> 13869 #include <unistd.h> 13870 #include <fcntl.h> 13871 int 13872 main () 13873 { 13874 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 13875 ; 13876 return 0; 13877 } 13878 _ACEOF 13879 rm -f conftest.$ac_objext 13880 if { (ac_try="$ac_compile" 13881 case "(($ac_try" in 13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13883 *) ac_try_echo=$ac_try;; 13884 esac 13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13886 (eval "$ac_compile") 2>conftest.er1 13887 ac_status=$? 13888 grep -v '^ *+' conftest.er1 >conftest.err 13889 rm -f conftest.er1 13890 cat conftest.err >&5 13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13892 (exit $ac_status); } && 13893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13894 { (case "(($ac_try" in 13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13896 *) ac_try_echo=$ac_try;; 13897 esac 13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13899 (eval "$ac_try") 2>&5 13900 ac_status=$? 13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13902 (exit $ac_status); }; } && 13903 { ac_try='test -s conftest.$ac_objext' 13904 { (case "(($ac_try" in 13905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13906 *) ac_try_echo=$ac_try;; 13907 esac 13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13909 (eval "$ac_try") 2>&5 13910 ac_status=$? 13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13912 (exit $ac_status); }; }; then 13913 ac_cv_header_mmap_anon=yes 13914 else 13915 echo "$as_me: failed program was:" >&5 13916 sed 's/^/| /' conftest.$ac_ext >&5 13917 13918 ac_cv_header_mmap_anon=no 13919 fi 13920 13921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13922 ac_ext=c 13923 ac_cpp='$CPP $CPPFLAGS' 13924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13926 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13927 13928 13929 fi 13930 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 13931 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 13932 if test "$ac_cv_header_mmap_anon" = yes; then 13933 13934 cat >>confdefs.h <<\_ACEOF 13935 #define HAVE_MMAP_ANONYMOUS 1 13936 _ACEOF 13937 13938 fi 13939 13940 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 13941 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 13942 if test "${ac_cv_header_stat_broken+set}" = set; then 13943 echo $ECHO_N "(cached) $ECHO_C" >&6 13944 else 13945 cat >conftest.$ac_ext <<_ACEOF 13946 /* confdefs.h. */ 13947 _ACEOF 13948 cat confdefs.h >>conftest.$ac_ext 13949 cat >>conftest.$ac_ext <<_ACEOF 13950 /* end confdefs.h. */ 13951 #include <sys/types.h> 13952 #include <sys/stat.h> 13953 13954 #if defined S_ISBLK && defined S_IFDIR 13955 # if S_ISBLK (S_IFDIR) 13956 You lose. 13957 # endif 13958 #endif 13959 13960 #if defined S_ISBLK && defined S_IFCHR 13961 # if S_ISBLK (S_IFCHR) 13962 You lose. 13963 # endif 13964 #endif 13965 13966 #if defined S_ISLNK && defined S_IFREG 13967 # if S_ISLNK (S_IFREG) 13968 You lose. 13969 # endif 13970 #endif 13971 13972 #if defined S_ISSOCK && defined S_IFREG 13973 # if S_ISSOCK (S_IFREG) 13974 You lose. 13975 # endif 13976 #endif 13977 13978 _ACEOF 13979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13980 $EGREP "You lose" >/dev/null 2>&1; then 13981 ac_cv_header_stat_broken=yes 13982 else 13983 ac_cv_header_stat_broken=no 13984 fi 13985 rm -f conftest* 13986 13987 fi 13988 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 13989 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 13990 if test $ac_cv_header_stat_broken = yes; then 13991 13992 cat >>confdefs.h <<\_ACEOF 13993 #define STAT_MACROS_BROKEN 1 13994 _ACEOF 13995 13996 fi 13997 13998 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 13999 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14000 if test "${ac_cv_header_sys_wait_h+set}" = set; then 14001 echo $ECHO_N "(cached) $ECHO_C" >&6 14002 else 14003 cat >conftest.$ac_ext <<_ACEOF 14004 /* confdefs.h. */ 14005 _ACEOF 14006 cat confdefs.h >>conftest.$ac_ext 14007 cat >>conftest.$ac_ext <<_ACEOF 14008 /* end confdefs.h. */ 14009 #include <sys/types.h> 14010 #include <sys/wait.h> 14011 #ifndef WEXITSTATUS 14012 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14013 #endif 14014 #ifndef WIFEXITED 14015 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14016 #endif 14017 14018 int 14019 main () 14020 { 14021 int s; 14022 wait (&s); 14023 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14024 ; 14025 return 0; 14026 } 14027 _ACEOF 14028 rm -f conftest.$ac_objext 14029 if { (ac_try="$ac_compile" 14030 case "(($ac_try" in 14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14032 *) ac_try_echo=$ac_try;; 14033 esac 14034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14035 (eval "$ac_compile") 2>conftest.er1 14036 ac_status=$? 14037 grep -v '^ *+' conftest.er1 >conftest.err 14038 rm -f conftest.er1 14039 cat conftest.err >&5 14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14041 (exit $ac_status); } && 14042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14043 { (case "(($ac_try" in 14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14045 *) ac_try_echo=$ac_try;; 14046 esac 14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14048 (eval "$ac_try") 2>&5 14049 ac_status=$? 14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14051 (exit $ac_status); }; } && 14052 { ac_try='test -s conftest.$ac_objext' 14053 { (case "(($ac_try" in 14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14055 *) ac_try_echo=$ac_try;; 14056 esac 14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14058 (eval "$ac_try") 2>&5 14059 ac_status=$? 14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14061 (exit $ac_status); }; }; then 14062 ac_cv_header_sys_wait_h=yes 14063 else 14064 echo "$as_me: failed program was:" >&5 14065 sed 's/^/| /' conftest.$ac_ext >&5 14066 14067 ac_cv_header_sys_wait_h=no 14068 fi 14069 14070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14071 fi 14072 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14073 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14074 if test $ac_cv_header_sys_wait_h = yes; then 14075 14076 cat >>confdefs.h <<\_ACEOF 14077 #define HAVE_SYS_WAIT_H 1 14078 _ACEOF 14079 14080 fi 14081 14082 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14083 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14084 if test "${ac_cv_header_time+set}" = set; then 14085 echo $ECHO_N "(cached) $ECHO_C" >&6 14086 else 14087 cat >conftest.$ac_ext <<_ACEOF 14088 /* confdefs.h. */ 14089 _ACEOF 14090 cat confdefs.h >>conftest.$ac_ext 14091 cat >>conftest.$ac_ext <<_ACEOF 14092 /* end confdefs.h. */ 14093 #include <sys/types.h> 14094 #include <sys/time.h> 14095 #include <time.h> 14096 14097 int 14098 main () 14099 { 14100 if ((struct tm *) 0) 14101 return 0; 14102 ; 14103 return 0; 14104 } 14105 _ACEOF 14106 rm -f conftest.$ac_objext 14107 if { (ac_try="$ac_compile" 14108 case "(($ac_try" in 14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14110 *) ac_try_echo=$ac_try;; 14111 esac 14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14113 (eval "$ac_compile") 2>conftest.er1 14114 ac_status=$? 14115 grep -v '^ *+' conftest.er1 >conftest.err 14116 rm -f conftest.er1 14117 cat conftest.err >&5 14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14119 (exit $ac_status); } && 14120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14121 { (case "(($ac_try" in 14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14123 *) ac_try_echo=$ac_try;; 14124 esac 14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14126 (eval "$ac_try") 2>&5 14127 ac_status=$? 14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14129 (exit $ac_status); }; } && 14130 { ac_try='test -s conftest.$ac_objext' 14131 { (case "(($ac_try" in 14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14133 *) ac_try_echo=$ac_try;; 14134 esac 14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14136 (eval "$ac_try") 2>&5 14137 ac_status=$? 14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14139 (exit $ac_status); }; }; then 14140 ac_cv_header_time=yes 14141 else 14142 echo "$as_me: failed program was:" >&5 14143 sed 's/^/| /' conftest.$ac_ext >&5 14144 14145 ac_cv_header_time=no 14146 fi 14147 14148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14149 fi 14150 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14151 echo "${ECHO_T}$ac_cv_header_time" >&6; } 14152 if test $ac_cv_header_time = yes; then 14153 14154 cat >>confdefs.h <<\_ACEOF 14155 #define TIME_WITH_SYS_TIME 1 14156 _ACEOF 14157 14158 fi 14159 14160 14161 14162 14163 14164 14165 14166 14167 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 14168 do 14169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14171 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14174 echo $ECHO_N "(cached) $ECHO_C" >&6 14175 fi 14176 ac_res=`eval echo '${'$as_ac_Header'}'` 14177 { echo "$as_me:$LINENO: result: $ac_res" >&5 14178 echo "${ECHO_T}$ac_res" >&6; } 14179 else 14180 # Is the header compilable? 14181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14183 cat >conftest.$ac_ext <<_ACEOF 14184 /* confdefs.h. */ 14185 _ACEOF 14186 cat confdefs.h >>conftest.$ac_ext 14187 cat >>conftest.$ac_ext <<_ACEOF 14188 /* end confdefs.h. */ 14189 $ac_includes_default 14190 #include <$ac_header> 14191 _ACEOF 14192 rm -f conftest.$ac_objext 14193 if { (ac_try="$ac_compile" 14194 case "(($ac_try" in 14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14196 *) ac_try_echo=$ac_try;; 14197 esac 14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14199 (eval "$ac_compile") 2>conftest.er1 14200 ac_status=$? 14201 grep -v '^ *+' conftest.er1 >conftest.err 14202 rm -f conftest.er1 14203 cat conftest.err >&5 14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14205 (exit $ac_status); } && 14206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14207 { (case "(($ac_try" in 14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14209 *) ac_try_echo=$ac_try;; 14210 esac 14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14212 (eval "$ac_try") 2>&5 14213 ac_status=$? 14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14215 (exit $ac_status); }; } && 14216 { ac_try='test -s conftest.$ac_objext' 14217 { (case "(($ac_try" in 14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14219 *) ac_try_echo=$ac_try;; 14220 esac 14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14222 (eval "$ac_try") 2>&5 14223 ac_status=$? 14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14225 (exit $ac_status); }; }; then 14226 ac_header_compiler=yes 14227 else 14228 echo "$as_me: failed program was:" >&5 14229 sed 's/^/| /' conftest.$ac_ext >&5 14230 14231 ac_header_compiler=no 14232 fi 14233 14234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14236 echo "${ECHO_T}$ac_header_compiler" >&6; } 14237 14238 # Is the header present? 14239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14241 cat >conftest.$ac_ext <<_ACEOF 14242 /* confdefs.h. */ 14243 _ACEOF 14244 cat confdefs.h >>conftest.$ac_ext 14245 cat >>conftest.$ac_ext <<_ACEOF 14246 /* end confdefs.h. */ 14247 #include <$ac_header> 14248 _ACEOF 14249 if { (ac_try="$ac_cpp conftest.$ac_ext" 14250 case "(($ac_try" in 14251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14252 *) ac_try_echo=$ac_try;; 14253 esac 14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14256 ac_status=$? 14257 grep -v '^ *+' conftest.er1 >conftest.err 14258 rm -f conftest.er1 14259 cat conftest.err >&5 14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14261 (exit $ac_status); } >/dev/null; then 14262 if test -s conftest.err; then 14263 ac_cpp_err=$ac_c_preproc_warn_flag 14264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14265 else 14266 ac_cpp_err= 14267 fi 14268 else 14269 ac_cpp_err=yes 14270 fi 14271 if test -z "$ac_cpp_err"; then 14272 ac_header_preproc=yes 14273 else 14274 echo "$as_me: failed program was:" >&5 14275 sed 's/^/| /' conftest.$ac_ext >&5 14276 14277 ac_header_preproc=no 14278 fi 14279 14280 rm -f conftest.err conftest.$ac_ext 14281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14282 echo "${ECHO_T}$ac_header_preproc" >&6; } 14283 14284 # So? What about this header? 14285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14286 yes:no: ) 14287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14291 ac_header_preproc=yes 14292 ;; 14293 no:yes:* ) 14294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14297 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14301 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14306 ( cat <<\_ASBOX 14307 ## ------------------------------ ## 14308 ## Report this to bugs@yourdomain ## 14309 ## ------------------------------ ## 14310 _ASBOX 14311 ) | sed "s/^/$as_me: WARNING: /" >&2 14312 ;; 14313 esac 14314 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14317 echo $ECHO_N "(cached) $ECHO_C" >&6 14318 else 14319 eval "$as_ac_Header=\$ac_header_preproc" 14320 fi 14321 ac_res=`eval echo '${'$as_ac_Header'}'` 14322 { echo "$as_me:$LINENO: result: $ac_res" >&5 14323 echo "${ECHO_T}$ac_res" >&6; } 14324 14325 fi 14326 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14327 cat >>confdefs.h <<_ACEOF 14328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14329 _ACEOF 14330 14331 fi 14332 14333 done 14334 14335 14336 14337 14338 14339 14340 14341 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 14342 do 14343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14345 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14348 echo $ECHO_N "(cached) $ECHO_C" >&6 14349 fi 14350 ac_res=`eval echo '${'$as_ac_Header'}'` 14351 { echo "$as_me:$LINENO: result: $ac_res" >&5 14352 echo "${ECHO_T}$ac_res" >&6; } 14353 else 14354 # Is the header compilable? 14355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14357 cat >conftest.$ac_ext <<_ACEOF 14358 /* confdefs.h. */ 14359 _ACEOF 14360 cat confdefs.h >>conftest.$ac_ext 14361 cat >>conftest.$ac_ext <<_ACEOF 14362 /* end confdefs.h. */ 14363 $ac_includes_default 14364 #include <$ac_header> 14365 _ACEOF 14366 rm -f conftest.$ac_objext 14367 if { (ac_try="$ac_compile" 14368 case "(($ac_try" in 14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14370 *) ac_try_echo=$ac_try;; 14371 esac 14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14373 (eval "$ac_compile") 2>conftest.er1 14374 ac_status=$? 14375 grep -v '^ *+' conftest.er1 >conftest.err 14376 rm -f conftest.er1 14377 cat conftest.err >&5 14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14379 (exit $ac_status); } && 14380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14381 { (case "(($ac_try" in 14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14383 *) ac_try_echo=$ac_try;; 14384 esac 14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14386 (eval "$ac_try") 2>&5 14387 ac_status=$? 14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14389 (exit $ac_status); }; } && 14390 { ac_try='test -s conftest.$ac_objext' 14391 { (case "(($ac_try" in 14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14393 *) ac_try_echo=$ac_try;; 14394 esac 14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14396 (eval "$ac_try") 2>&5 14397 ac_status=$? 14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14399 (exit $ac_status); }; }; then 14400 ac_header_compiler=yes 14401 else 14402 echo "$as_me: failed program was:" >&5 14403 sed 's/^/| /' conftest.$ac_ext >&5 14404 14405 ac_header_compiler=no 14406 fi 14407 14408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14410 echo "${ECHO_T}$ac_header_compiler" >&6; } 14411 14412 # Is the header present? 14413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14415 cat >conftest.$ac_ext <<_ACEOF 14416 /* confdefs.h. */ 14417 _ACEOF 14418 cat confdefs.h >>conftest.$ac_ext 14419 cat >>conftest.$ac_ext <<_ACEOF 14420 /* end confdefs.h. */ 14421 #include <$ac_header> 14422 _ACEOF 14423 if { (ac_try="$ac_cpp conftest.$ac_ext" 14424 case "(($ac_try" in 14425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14426 *) ac_try_echo=$ac_try;; 14427 esac 14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14430 ac_status=$? 14431 grep -v '^ *+' conftest.er1 >conftest.err 14432 rm -f conftest.er1 14433 cat conftest.err >&5 14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14435 (exit $ac_status); } >/dev/null; then 14436 if test -s conftest.err; then 14437 ac_cpp_err=$ac_c_preproc_warn_flag 14438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14439 else 14440 ac_cpp_err= 14441 fi 14442 else 14443 ac_cpp_err=yes 14444 fi 14445 if test -z "$ac_cpp_err"; then 14446 ac_header_preproc=yes 14447 else 14448 echo "$as_me: failed program was:" >&5 14449 sed 's/^/| /' conftest.$ac_ext >&5 14450 14451 ac_header_preproc=no 14452 fi 14453 14454 rm -f conftest.err conftest.$ac_ext 14455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14456 echo "${ECHO_T}$ac_header_preproc" >&6; } 14457 14458 # So? What about this header? 14459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14460 yes:no: ) 14461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14465 ac_header_preproc=yes 14466 ;; 14467 no:yes:* ) 14468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14480 ( cat <<\_ASBOX 14481 ## ------------------------------ ## 14482 ## Report this to bugs@yourdomain ## 14483 ## ------------------------------ ## 14484 _ASBOX 14485 ) | sed "s/^/$as_me: WARNING: /" >&2 14486 ;; 14487 esac 14488 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14491 echo $ECHO_N "(cached) $ECHO_C" >&6 14492 else 14493 eval "$as_ac_Header=\$ac_header_preproc" 14494 fi 14495 ac_res=`eval echo '${'$as_ac_Header'}'` 14496 { echo "$as_me:$LINENO: result: $ac_res" >&5 14497 echo "${ECHO_T}$ac_res" >&6; } 14498 14499 fi 14500 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14501 cat >>confdefs.h <<_ACEOF 14502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14503 _ACEOF 14504 14505 fi 14506 14507 done 14508 14509 14510 14511 for ac_header in utime.h windows.h 14512 do 14513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14515 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14518 echo $ECHO_N "(cached) $ECHO_C" >&6 14519 fi 14520 ac_res=`eval echo '${'$as_ac_Header'}'` 14521 { echo "$as_me:$LINENO: result: $ac_res" >&5 14522 echo "${ECHO_T}$ac_res" >&6; } 14523 else 14524 # Is the header compilable? 14525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14527 cat >conftest.$ac_ext <<_ACEOF 14528 /* confdefs.h. */ 14529 _ACEOF 14530 cat confdefs.h >>conftest.$ac_ext 14531 cat >>conftest.$ac_ext <<_ACEOF 14532 /* end confdefs.h. */ 14533 $ac_includes_default 14534 #include <$ac_header> 14535 _ACEOF 14536 rm -f conftest.$ac_objext 14537 if { (ac_try="$ac_compile" 14538 case "(($ac_try" in 14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14540 *) ac_try_echo=$ac_try;; 14541 esac 14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14543 (eval "$ac_compile") 2>conftest.er1 14544 ac_status=$? 14545 grep -v '^ *+' conftest.er1 >conftest.err 14546 rm -f conftest.er1 14547 cat conftest.err >&5 14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14549 (exit $ac_status); } && 14550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14551 { (case "(($ac_try" in 14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14553 *) ac_try_echo=$ac_try;; 14554 esac 14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14556 (eval "$ac_try") 2>&5 14557 ac_status=$? 14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14559 (exit $ac_status); }; } && 14560 { ac_try='test -s conftest.$ac_objext' 14561 { (case "(($ac_try" in 14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14563 *) ac_try_echo=$ac_try;; 14564 esac 14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14566 (eval "$ac_try") 2>&5 14567 ac_status=$? 14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14569 (exit $ac_status); }; }; then 14570 ac_header_compiler=yes 14571 else 14572 echo "$as_me: failed program was:" >&5 14573 sed 's/^/| /' conftest.$ac_ext >&5 14574 14575 ac_header_compiler=no 14576 fi 14577 14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14580 echo "${ECHO_T}$ac_header_compiler" >&6; } 14581 14582 # Is the header present? 14583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14585 cat >conftest.$ac_ext <<_ACEOF 14586 /* confdefs.h. */ 14587 _ACEOF 14588 cat confdefs.h >>conftest.$ac_ext 14589 cat >>conftest.$ac_ext <<_ACEOF 14590 /* end confdefs.h. */ 14591 #include <$ac_header> 14592 _ACEOF 14593 if { (ac_try="$ac_cpp conftest.$ac_ext" 14594 case "(($ac_try" in 14595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14596 *) ac_try_echo=$ac_try;; 14597 esac 14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14600 ac_status=$? 14601 grep -v '^ *+' conftest.er1 >conftest.err 14602 rm -f conftest.er1 14603 cat conftest.err >&5 14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14605 (exit $ac_status); } >/dev/null; then 14606 if test -s conftest.err; then 14607 ac_cpp_err=$ac_c_preproc_warn_flag 14608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14609 else 14610 ac_cpp_err= 14611 fi 14612 else 14613 ac_cpp_err=yes 14614 fi 14615 if test -z "$ac_cpp_err"; then 14616 ac_header_preproc=yes 14617 else 14618 echo "$as_me: failed program was:" >&5 14619 sed 's/^/| /' conftest.$ac_ext >&5 14620 14621 ac_header_preproc=no 14622 fi 14623 14624 rm -f conftest.err conftest.$ac_ext 14625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14626 echo "${ECHO_T}$ac_header_preproc" >&6; } 14627 14628 # So? What about this header? 14629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14630 yes:no: ) 14631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14635 ac_header_preproc=yes 14636 ;; 14637 no:yes:* ) 14638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14650 ( cat <<\_ASBOX 14651 ## ------------------------------ ## 14652 ## Report this to bugs@yourdomain ## 14653 ## ------------------------------ ## 14654 _ASBOX 14655 ) | sed "s/^/$as_me: WARNING: /" >&2 14656 ;; 14657 esac 14658 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14661 echo $ECHO_N "(cached) $ECHO_C" >&6 14662 else 14663 eval "$as_ac_Header=\$ac_header_preproc" 14664 fi 14665 ac_res=`eval echo '${'$as_ac_Header'}'` 14666 { echo "$as_me:$LINENO: result: $ac_res" >&5 14667 echo "${ECHO_T}$ac_res" >&6; } 14668 14669 fi 14670 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14671 cat >>confdefs.h <<_ACEOF 14672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14673 _ACEOF 14674 14675 fi 14676 14677 done 14678 14679 14680 14681 14682 14683 14684 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 14685 do 14686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14688 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14691 echo $ECHO_N "(cached) $ECHO_C" >&6 14692 fi 14693 ac_res=`eval echo '${'$as_ac_Header'}'` 14694 { echo "$as_me:$LINENO: result: $ac_res" >&5 14695 echo "${ECHO_T}$ac_res" >&6; } 14696 else 14697 # Is the header compilable? 14698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14700 cat >conftest.$ac_ext <<_ACEOF 14701 /* confdefs.h. */ 14702 _ACEOF 14703 cat confdefs.h >>conftest.$ac_ext 14704 cat >>conftest.$ac_ext <<_ACEOF 14705 /* end confdefs.h. */ 14706 $ac_includes_default 14707 #include <$ac_header> 14708 _ACEOF 14709 rm -f conftest.$ac_objext 14710 if { (ac_try="$ac_compile" 14711 case "(($ac_try" in 14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14713 *) ac_try_echo=$ac_try;; 14714 esac 14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14716 (eval "$ac_compile") 2>conftest.er1 14717 ac_status=$? 14718 grep -v '^ *+' conftest.er1 >conftest.err 14719 rm -f conftest.er1 14720 cat conftest.err >&5 14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14722 (exit $ac_status); } && 14723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14724 { (case "(($ac_try" in 14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14726 *) ac_try_echo=$ac_try;; 14727 esac 14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14729 (eval "$ac_try") 2>&5 14730 ac_status=$? 14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14732 (exit $ac_status); }; } && 14733 { ac_try='test -s conftest.$ac_objext' 14734 { (case "(($ac_try" in 14735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14736 *) ac_try_echo=$ac_try;; 14737 esac 14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14739 (eval "$ac_try") 2>&5 14740 ac_status=$? 14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14742 (exit $ac_status); }; }; then 14743 ac_header_compiler=yes 14744 else 14745 echo "$as_me: failed program was:" >&5 14746 sed 's/^/| /' conftest.$ac_ext >&5 14747 14748 ac_header_compiler=no 14749 fi 14750 14751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14753 echo "${ECHO_T}$ac_header_compiler" >&6; } 14754 14755 # Is the header present? 14756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14758 cat >conftest.$ac_ext <<_ACEOF 14759 /* confdefs.h. */ 14760 _ACEOF 14761 cat confdefs.h >>conftest.$ac_ext 14762 cat >>conftest.$ac_ext <<_ACEOF 14763 /* end confdefs.h. */ 14764 #include <$ac_header> 14765 _ACEOF 14766 if { (ac_try="$ac_cpp conftest.$ac_ext" 14767 case "(($ac_try" in 14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14769 *) ac_try_echo=$ac_try;; 14770 esac 14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14773 ac_status=$? 14774 grep -v '^ *+' conftest.er1 >conftest.err 14775 rm -f conftest.er1 14776 cat conftest.err >&5 14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14778 (exit $ac_status); } >/dev/null; then 14779 if test -s conftest.err; then 14780 ac_cpp_err=$ac_c_preproc_warn_flag 14781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14782 else 14783 ac_cpp_err= 14784 fi 14785 else 14786 ac_cpp_err=yes 14787 fi 14788 if test -z "$ac_cpp_err"; then 14789 ac_header_preproc=yes 14790 else 14791 echo "$as_me: failed program was:" >&5 14792 sed 's/^/| /' conftest.$ac_ext >&5 14793 14794 ac_header_preproc=no 14795 fi 14796 14797 rm -f conftest.err conftest.$ac_ext 14798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14799 echo "${ECHO_T}$ac_header_preproc" >&6; } 14800 14801 # So? What about this header? 14802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14803 yes:no: ) 14804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14808 ac_header_preproc=yes 14809 ;; 14810 no:yes:* ) 14811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14823 ( cat <<\_ASBOX 14824 ## ------------------------------ ## 14825 ## Report this to bugs@yourdomain ## 14826 ## ------------------------------ ## 14827 _ASBOX 14828 ) | sed "s/^/$as_me: WARNING: /" >&2 14829 ;; 14830 esac 14831 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14834 echo $ECHO_N "(cached) $ECHO_C" >&6 14835 else 14836 eval "$as_ac_Header=\$ac_header_preproc" 14837 fi 14838 ac_res=`eval echo '${'$as_ac_Header'}'` 14839 { echo "$as_me:$LINENO: result: $ac_res" >&5 14840 echo "${ECHO_T}$ac_res" >&6; } 14841 14842 fi 14843 if test `eval echo '${'$as_ac_Header'}'` = yes; then 14844 cat >>confdefs.h <<_ACEOF 14845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14846 _ACEOF 14847 14848 fi 14849 14850 done 14851 14852 14853 14854 14855 14856 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 14857 do 14858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14860 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14863 echo $ECHO_N "(cached) $ECHO_C" >&6 14864 fi 14865 ac_res=`eval echo '${'$as_ac_Header'}'` 14866 { echo "$as_me:$LINENO: result: $ac_res" >&5 14867 echo "${ECHO_T}$ac_res" >&6; } 14868 else 14869 # Is the header compilable? 14870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 14871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14872 cat >conftest.$ac_ext <<_ACEOF 14873 /* confdefs.h. */ 14874 _ACEOF 14875 cat confdefs.h >>conftest.$ac_ext 14876 cat >>conftest.$ac_ext <<_ACEOF 14877 /* end confdefs.h. */ 14878 $ac_includes_default 14879 #include <$ac_header> 14880 _ACEOF 14881 rm -f conftest.$ac_objext 14882 if { (ac_try="$ac_compile" 14883 case "(($ac_try" in 14884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14885 *) ac_try_echo=$ac_try;; 14886 esac 14887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14888 (eval "$ac_compile") 2>conftest.er1 14889 ac_status=$? 14890 grep -v '^ *+' conftest.er1 >conftest.err 14891 rm -f conftest.er1 14892 cat conftest.err >&5 14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14894 (exit $ac_status); } && 14895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14896 { (case "(($ac_try" in 14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14898 *) ac_try_echo=$ac_try;; 14899 esac 14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14901 (eval "$ac_try") 2>&5 14902 ac_status=$? 14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14904 (exit $ac_status); }; } && 14905 { ac_try='test -s conftest.$ac_objext' 14906 { (case "(($ac_try" in 14907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14908 *) ac_try_echo=$ac_try;; 14909 esac 14910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14911 (eval "$ac_try") 2>&5 14912 ac_status=$? 14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14914 (exit $ac_status); }; }; then 14915 ac_header_compiler=yes 14916 else 14917 echo "$as_me: failed program was:" >&5 14918 sed 's/^/| /' conftest.$ac_ext >&5 14919 14920 ac_header_compiler=no 14921 fi 14922 14923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14925 echo "${ECHO_T}$ac_header_compiler" >&6; } 14926 14927 # Is the header present? 14928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 14929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14930 cat >conftest.$ac_ext <<_ACEOF 14931 /* confdefs.h. */ 14932 _ACEOF 14933 cat confdefs.h >>conftest.$ac_ext 14934 cat >>conftest.$ac_ext <<_ACEOF 14935 /* end confdefs.h. */ 14936 #include <$ac_header> 14937 _ACEOF 14938 if { (ac_try="$ac_cpp conftest.$ac_ext" 14939 case "(($ac_try" in 14940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14941 *) ac_try_echo=$ac_try;; 14942 esac 14943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14945 ac_status=$? 14946 grep -v '^ *+' conftest.er1 >conftest.err 14947 rm -f conftest.er1 14948 cat conftest.err >&5 14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14950 (exit $ac_status); } >/dev/null; then 14951 if test -s conftest.err; then 14952 ac_cpp_err=$ac_c_preproc_warn_flag 14953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14954 else 14955 ac_cpp_err= 14956 fi 14957 else 14958 ac_cpp_err=yes 14959 fi 14960 if test -z "$ac_cpp_err"; then 14961 ac_header_preproc=yes 14962 else 14963 echo "$as_me: failed program was:" >&5 14964 sed 's/^/| /' conftest.$ac_ext >&5 14965 14966 ac_header_preproc=no 14967 fi 14968 14969 rm -f conftest.err conftest.$ac_ext 14970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14971 echo "${ECHO_T}$ac_header_preproc" >&6; } 14972 14973 # So? What about this header? 14974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14975 yes:no: ) 14976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14980 ac_header_preproc=yes 14981 ;; 14982 no:yes:* ) 14983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14995 ( cat <<\_ASBOX 14996 ## ------------------------------ ## 14997 ## Report this to bugs@yourdomain ## 14998 ## ------------------------------ ## 14999 _ASBOX 15000 ) | sed "s/^/$as_me: WARNING: /" >&2 15001 ;; 15002 esac 15003 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15006 echo $ECHO_N "(cached) $ECHO_C" >&6 15007 else 15008 eval "$as_ac_Header=\$ac_header_preproc" 15009 fi 15010 ac_res=`eval echo '${'$as_ac_Header'}'` 15011 { echo "$as_me:$LINENO: result: $ac_res" >&5 15012 echo "${ECHO_T}$ac_res" >&6; } 15013 15014 fi 15015 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15016 cat >>confdefs.h <<_ACEOF 15017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15018 _ACEOF 15019 15020 fi 15021 15022 done 15023 15024 15025 for ac_header in valgrind/valgrind.h 15026 do 15027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15029 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15032 echo $ECHO_N "(cached) $ECHO_C" >&6 15033 fi 15034 ac_res=`eval echo '${'$as_ac_Header'}'` 15035 { echo "$as_me:$LINENO: result: $ac_res" >&5 15036 echo "${ECHO_T}$ac_res" >&6; } 15037 else 15038 # Is the header compilable? 15039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15041 cat >conftest.$ac_ext <<_ACEOF 15042 /* confdefs.h. */ 15043 _ACEOF 15044 cat confdefs.h >>conftest.$ac_ext 15045 cat >>conftest.$ac_ext <<_ACEOF 15046 /* end confdefs.h. */ 15047 $ac_includes_default 15048 #include <$ac_header> 15049 _ACEOF 15050 rm -f conftest.$ac_objext 15051 if { (ac_try="$ac_compile" 15052 case "(($ac_try" in 15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15054 *) ac_try_echo=$ac_try;; 15055 esac 15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15057 (eval "$ac_compile") 2>conftest.er1 15058 ac_status=$? 15059 grep -v '^ *+' conftest.er1 >conftest.err 15060 rm -f conftest.er1 15061 cat conftest.err >&5 15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15063 (exit $ac_status); } && 15064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15065 { (case "(($ac_try" in 15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15067 *) ac_try_echo=$ac_try;; 15068 esac 15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15070 (eval "$ac_try") 2>&5 15071 ac_status=$? 15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15073 (exit $ac_status); }; } && 15074 { ac_try='test -s conftest.$ac_objext' 15075 { (case "(($ac_try" in 15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15077 *) ac_try_echo=$ac_try;; 15078 esac 15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15080 (eval "$ac_try") 2>&5 15081 ac_status=$? 15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15083 (exit $ac_status); }; }; then 15084 ac_header_compiler=yes 15085 else 15086 echo "$as_me: failed program was:" >&5 15087 sed 's/^/| /' conftest.$ac_ext >&5 15088 15089 ac_header_compiler=no 15090 fi 15091 15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15094 echo "${ECHO_T}$ac_header_compiler" >&6; } 15095 15096 # Is the header present? 15097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15099 cat >conftest.$ac_ext <<_ACEOF 15100 /* confdefs.h. */ 15101 _ACEOF 15102 cat confdefs.h >>conftest.$ac_ext 15103 cat >>conftest.$ac_ext <<_ACEOF 15104 /* end confdefs.h. */ 15105 #include <$ac_header> 15106 _ACEOF 15107 if { (ac_try="$ac_cpp conftest.$ac_ext" 15108 case "(($ac_try" in 15109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15110 *) ac_try_echo=$ac_try;; 15111 esac 15112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15114 ac_status=$? 15115 grep -v '^ *+' conftest.er1 >conftest.err 15116 rm -f conftest.er1 15117 cat conftest.err >&5 15118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15119 (exit $ac_status); } >/dev/null; then 15120 if test -s conftest.err; then 15121 ac_cpp_err=$ac_c_preproc_warn_flag 15122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15123 else 15124 ac_cpp_err= 15125 fi 15126 else 15127 ac_cpp_err=yes 15128 fi 15129 if test -z "$ac_cpp_err"; then 15130 ac_header_preproc=yes 15131 else 15132 echo "$as_me: failed program was:" >&5 15133 sed 's/^/| /' conftest.$ac_ext >&5 15134 15135 ac_header_preproc=no 15136 fi 15137 15138 rm -f conftest.err conftest.$ac_ext 15139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15140 echo "${ECHO_T}$ac_header_preproc" >&6; } 15141 15142 # So? What about this header? 15143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15144 yes:no: ) 15145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15149 ac_header_preproc=yes 15150 ;; 15151 no:yes:* ) 15152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15164 ( cat <<\_ASBOX 15165 ## ------------------------------ ## 15166 ## Report this to bugs@yourdomain ## 15167 ## ------------------------------ ## 15168 _ASBOX 15169 ) | sed "s/^/$as_me: WARNING: /" >&2 15170 ;; 15171 esac 15172 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15175 echo $ECHO_N "(cached) $ECHO_C" >&6 15176 else 15177 eval "$as_ac_Header=\$ac_header_preproc" 15178 fi 15179 ac_res=`eval echo '${'$as_ac_Header'}'` 15180 { echo "$as_me:$LINENO: result: $ac_res" >&5 15181 echo "${ECHO_T}$ac_res" >&6; } 15182 15183 fi 15184 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15185 cat >>confdefs.h <<_ACEOF 15186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15187 _ACEOF 15188 15189 fi 15190 15191 done 15192 15193 15194 for ac_header in fenv.h 15195 do 15196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15198 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15201 echo $ECHO_N "(cached) $ECHO_C" >&6 15202 fi 15203 ac_res=`eval echo '${'$as_ac_Header'}'` 15204 { echo "$as_me:$LINENO: result: $ac_res" >&5 15205 echo "${ECHO_T}$ac_res" >&6; } 15206 else 15207 # Is the header compilable? 15208 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15210 cat >conftest.$ac_ext <<_ACEOF 15211 /* confdefs.h. */ 15212 _ACEOF 15213 cat confdefs.h >>conftest.$ac_ext 15214 cat >>conftest.$ac_ext <<_ACEOF 15215 /* end confdefs.h. */ 15216 $ac_includes_default 15217 #include <$ac_header> 15218 _ACEOF 15219 rm -f conftest.$ac_objext 15220 if { (ac_try="$ac_compile" 15221 case "(($ac_try" in 15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15223 *) ac_try_echo=$ac_try;; 15224 esac 15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15226 (eval "$ac_compile") 2>conftest.er1 15227 ac_status=$? 15228 grep -v '^ *+' conftest.er1 >conftest.err 15229 rm -f conftest.er1 15230 cat conftest.err >&5 15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15232 (exit $ac_status); } && 15233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15234 { (case "(($ac_try" in 15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15236 *) ac_try_echo=$ac_try;; 15237 esac 15238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15239 (eval "$ac_try") 2>&5 15240 ac_status=$? 15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15242 (exit $ac_status); }; } && 15243 { ac_try='test -s conftest.$ac_objext' 15244 { (case "(($ac_try" in 15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15246 *) ac_try_echo=$ac_try;; 15247 esac 15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15249 (eval "$ac_try") 2>&5 15250 ac_status=$? 15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15252 (exit $ac_status); }; }; then 15253 ac_header_compiler=yes 15254 else 15255 echo "$as_me: failed program was:" >&5 15256 sed 's/^/| /' conftest.$ac_ext >&5 15257 15258 ac_header_compiler=no 15259 fi 15260 15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15263 echo "${ECHO_T}$ac_header_compiler" >&6; } 15264 15265 # Is the header present? 15266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15268 cat >conftest.$ac_ext <<_ACEOF 15269 /* confdefs.h. */ 15270 _ACEOF 15271 cat confdefs.h >>conftest.$ac_ext 15272 cat >>conftest.$ac_ext <<_ACEOF 15273 /* end confdefs.h. */ 15274 #include <$ac_header> 15275 _ACEOF 15276 if { (ac_try="$ac_cpp conftest.$ac_ext" 15277 case "(($ac_try" in 15278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15279 *) ac_try_echo=$ac_try;; 15280 esac 15281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15283 ac_status=$? 15284 grep -v '^ *+' conftest.er1 >conftest.err 15285 rm -f conftest.er1 15286 cat conftest.err >&5 15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15288 (exit $ac_status); } >/dev/null; then 15289 if test -s conftest.err; then 15290 ac_cpp_err=$ac_c_preproc_warn_flag 15291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15292 else 15293 ac_cpp_err= 15294 fi 15295 else 15296 ac_cpp_err=yes 15297 fi 15298 if test -z "$ac_cpp_err"; then 15299 ac_header_preproc=yes 15300 else 15301 echo "$as_me: failed program was:" >&5 15302 sed 's/^/| /' conftest.$ac_ext >&5 15303 15304 ac_header_preproc=no 15305 fi 15306 15307 rm -f conftest.err conftest.$ac_ext 15308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15309 echo "${ECHO_T}$ac_header_preproc" >&6; } 15310 15311 # So? What about this header? 15312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15313 yes:no: ) 15314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15318 ac_header_preproc=yes 15319 ;; 15320 no:yes:* ) 15321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15333 ( cat <<\_ASBOX 15334 ## ------------------------------ ## 15335 ## Report this to bugs@yourdomain ## 15336 ## ------------------------------ ## 15337 _ASBOX 15338 ) | sed "s/^/$as_me: WARNING: /" >&2 15339 ;; 15340 esac 15341 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15344 echo $ECHO_N "(cached) $ECHO_C" >&6 15345 else 15346 eval "$as_ac_Header=\$ac_header_preproc" 15347 fi 15348 ac_res=`eval echo '${'$as_ac_Header'}'` 15349 { echo "$as_me:$LINENO: result: $ac_res" >&5 15350 echo "${ECHO_T}$ac_res" >&6; } 15351 15352 fi 15353 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15354 cat >>confdefs.h <<_ACEOF 15355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15356 _ACEOF 15357 15358 fi 15359 15360 done 15361 15362 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 15363 15364 for ac_header in pthread.h 15365 do 15366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15368 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15371 echo $ECHO_N "(cached) $ECHO_C" >&6 15372 fi 15373 ac_res=`eval echo '${'$as_ac_Header'}'` 15374 { echo "$as_me:$LINENO: result: $ac_res" >&5 15375 echo "${ECHO_T}$ac_res" >&6; } 15376 else 15377 # Is the header compilable? 15378 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15380 cat >conftest.$ac_ext <<_ACEOF 15381 /* confdefs.h. */ 15382 _ACEOF 15383 cat confdefs.h >>conftest.$ac_ext 15384 cat >>conftest.$ac_ext <<_ACEOF 15385 /* end confdefs.h. */ 15386 $ac_includes_default 15387 #include <$ac_header> 15388 _ACEOF 15389 rm -f conftest.$ac_objext 15390 if { (ac_try="$ac_compile" 15391 case "(($ac_try" in 15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15393 *) ac_try_echo=$ac_try;; 15394 esac 15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15396 (eval "$ac_compile") 2>conftest.er1 15397 ac_status=$? 15398 grep -v '^ *+' conftest.er1 >conftest.err 15399 rm -f conftest.er1 15400 cat conftest.err >&5 15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15402 (exit $ac_status); } && 15403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15404 { (case "(($ac_try" in 15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15406 *) ac_try_echo=$ac_try;; 15407 esac 15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15409 (eval "$ac_try") 2>&5 15410 ac_status=$? 15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15412 (exit $ac_status); }; } && 15413 { ac_try='test -s conftest.$ac_objext' 15414 { (case "(($ac_try" in 15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15416 *) ac_try_echo=$ac_try;; 15417 esac 15418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15419 (eval "$ac_try") 2>&5 15420 ac_status=$? 15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15422 (exit $ac_status); }; }; then 15423 ac_header_compiler=yes 15424 else 15425 echo "$as_me: failed program was:" >&5 15426 sed 's/^/| /' conftest.$ac_ext >&5 15427 15428 ac_header_compiler=no 15429 fi 15430 15431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15433 echo "${ECHO_T}$ac_header_compiler" >&6; } 15434 15435 # Is the header present? 15436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15438 cat >conftest.$ac_ext <<_ACEOF 15439 /* confdefs.h. */ 15440 _ACEOF 15441 cat confdefs.h >>conftest.$ac_ext 15442 cat >>conftest.$ac_ext <<_ACEOF 15443 /* end confdefs.h. */ 15444 #include <$ac_header> 15445 _ACEOF 15446 if { (ac_try="$ac_cpp conftest.$ac_ext" 15447 case "(($ac_try" in 15448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15449 *) ac_try_echo=$ac_try;; 15450 esac 15451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15453 ac_status=$? 15454 grep -v '^ *+' conftest.er1 >conftest.err 15455 rm -f conftest.er1 15456 cat conftest.err >&5 15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15458 (exit $ac_status); } >/dev/null; then 15459 if test -s conftest.err; then 15460 ac_cpp_err=$ac_c_preproc_warn_flag 15461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15462 else 15463 ac_cpp_err= 15464 fi 15465 else 15466 ac_cpp_err=yes 15467 fi 15468 if test -z "$ac_cpp_err"; then 15469 ac_header_preproc=yes 15470 else 15471 echo "$as_me: failed program was:" >&5 15472 sed 's/^/| /' conftest.$ac_ext >&5 15473 15474 ac_header_preproc=no 15475 fi 15476 15477 rm -f conftest.err conftest.$ac_ext 15478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15479 echo "${ECHO_T}$ac_header_preproc" >&6; } 15480 15481 # So? What about this header? 15482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15483 yes:no: ) 15484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15488 ac_header_preproc=yes 15489 ;; 15490 no:yes:* ) 15491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15503 ( cat <<\_ASBOX 15504 ## ------------------------------ ## 15505 ## Report this to bugs@yourdomain ## 15506 ## ------------------------------ ## 15507 _ASBOX 15508 ) | sed "s/^/$as_me: WARNING: /" >&2 15509 ;; 15510 esac 15511 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15514 echo $ECHO_N "(cached) $ECHO_C" >&6 15515 else 15516 eval "$as_ac_Header=\$ac_header_preproc" 15517 fi 15518 ac_res=`eval echo '${'$as_ac_Header'}'` 15519 { echo "$as_me:$LINENO: result: $ac_res" >&5 15520 echo "${ECHO_T}$ac_res" >&6; } 15521 15522 fi 15523 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15524 cat >>confdefs.h <<_ACEOF 15525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15526 _ACEOF 15527 HAVE_PTHREAD=1 15528 15529 else 15530 HAVE_PTHREAD=0 15531 15532 fi 15533 15534 done 15535 15536 else 15537 HAVE_PTHREAD=0 15538 15539 fi 15540 15541 if test "$llvm_cv_enable_libffi" = "yes" ; then 15542 15543 15544 for ac_header in ffi.h ffi/ffi.h 15545 do 15546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15548 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15551 echo $ECHO_N "(cached) $ECHO_C" >&6 15552 fi 15553 ac_res=`eval echo '${'$as_ac_Header'}'` 15554 { echo "$as_me:$LINENO: result: $ac_res" >&5 15555 echo "${ECHO_T}$ac_res" >&6; } 15556 else 15557 # Is the header compilable? 15558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15560 cat >conftest.$ac_ext <<_ACEOF 15561 /* confdefs.h. */ 15562 _ACEOF 15563 cat confdefs.h >>conftest.$ac_ext 15564 cat >>conftest.$ac_ext <<_ACEOF 15565 /* end confdefs.h. */ 15566 $ac_includes_default 15567 #include <$ac_header> 15568 _ACEOF 15569 rm -f conftest.$ac_objext 15570 if { (ac_try="$ac_compile" 15571 case "(($ac_try" in 15572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15573 *) ac_try_echo=$ac_try;; 15574 esac 15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15576 (eval "$ac_compile") 2>conftest.er1 15577 ac_status=$? 15578 grep -v '^ *+' conftest.er1 >conftest.err 15579 rm -f conftest.er1 15580 cat conftest.err >&5 15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15582 (exit $ac_status); } && 15583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15584 { (case "(($ac_try" in 15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15586 *) ac_try_echo=$ac_try;; 15587 esac 15588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15589 (eval "$ac_try") 2>&5 15590 ac_status=$? 15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15592 (exit $ac_status); }; } && 15593 { ac_try='test -s conftest.$ac_objext' 15594 { (case "(($ac_try" in 15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15596 *) ac_try_echo=$ac_try;; 15597 esac 15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15599 (eval "$ac_try") 2>&5 15600 ac_status=$? 15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15602 (exit $ac_status); }; }; then 15603 ac_header_compiler=yes 15604 else 15605 echo "$as_me: failed program was:" >&5 15606 sed 's/^/| /' conftest.$ac_ext >&5 15607 15608 ac_header_compiler=no 15609 fi 15610 15611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15613 echo "${ECHO_T}$ac_header_compiler" >&6; } 15614 15615 # Is the header present? 15616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15618 cat >conftest.$ac_ext <<_ACEOF 15619 /* confdefs.h. */ 15620 _ACEOF 15621 cat confdefs.h >>conftest.$ac_ext 15622 cat >>conftest.$ac_ext <<_ACEOF 15623 /* end confdefs.h. */ 15624 #include <$ac_header> 15625 _ACEOF 15626 if { (ac_try="$ac_cpp conftest.$ac_ext" 15627 case "(($ac_try" in 15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15629 *) ac_try_echo=$ac_try;; 15630 esac 15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15633 ac_status=$? 15634 grep -v '^ *+' conftest.er1 >conftest.err 15635 rm -f conftest.er1 15636 cat conftest.err >&5 15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15638 (exit $ac_status); } >/dev/null; then 15639 if test -s conftest.err; then 15640 ac_cpp_err=$ac_c_preproc_warn_flag 15641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15642 else 15643 ac_cpp_err= 15644 fi 15645 else 15646 ac_cpp_err=yes 15647 fi 15648 if test -z "$ac_cpp_err"; then 15649 ac_header_preproc=yes 15650 else 15651 echo "$as_me: failed program was:" >&5 15652 sed 's/^/| /' conftest.$ac_ext >&5 15653 15654 ac_header_preproc=no 15655 fi 15656 15657 rm -f conftest.err conftest.$ac_ext 15658 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15659 echo "${ECHO_T}$ac_header_preproc" >&6; } 15660 15661 # So? What about this header? 15662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15663 yes:no: ) 15664 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15665 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15667 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15668 ac_header_preproc=yes 15669 ;; 15670 no:yes:* ) 15671 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15673 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15675 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15676 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15677 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15678 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15680 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15681 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15682 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15683 ( cat <<\_ASBOX 15684 ## ------------------------------ ## 15685 ## Report this to bugs@yourdomain ## 15686 ## ------------------------------ ## 15687 _ASBOX 15688 ) | sed "s/^/$as_me: WARNING: /" >&2 15689 ;; 15690 esac 15691 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15694 echo $ECHO_N "(cached) $ECHO_C" >&6 15695 else 15696 eval "$as_ac_Header=\$ac_header_preproc" 15697 fi 15698 ac_res=`eval echo '${'$as_ac_Header'}'` 15699 { echo "$as_me:$LINENO: result: $ac_res" >&5 15700 echo "${ECHO_T}$ac_res" >&6; } 15701 15702 fi 15703 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15704 cat >>confdefs.h <<_ACEOF 15705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15706 _ACEOF 15707 15708 fi 15709 15710 done 15711 15712 fi 15713 15714 15715 for ac_header in CrashReporterClient.h 15716 do 15717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15719 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15722 echo $ECHO_N "(cached) $ECHO_C" >&6 15723 fi 15724 ac_res=`eval echo '${'$as_ac_Header'}'` 15725 { echo "$as_me:$LINENO: result: $ac_res" >&5 15726 echo "${ECHO_T}$ac_res" >&6; } 15727 else 15728 # Is the header compilable? 15729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 15730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15731 cat >conftest.$ac_ext <<_ACEOF 15732 /* confdefs.h. */ 15733 _ACEOF 15734 cat confdefs.h >>conftest.$ac_ext 15735 cat >>conftest.$ac_ext <<_ACEOF 15736 /* end confdefs.h. */ 15737 $ac_includes_default 15738 #include <$ac_header> 15739 _ACEOF 15740 rm -f conftest.$ac_objext 15741 if { (ac_try="$ac_compile" 15742 case "(($ac_try" in 15743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15744 *) ac_try_echo=$ac_try;; 15745 esac 15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15747 (eval "$ac_compile") 2>conftest.er1 15748 ac_status=$? 15749 grep -v '^ *+' conftest.er1 >conftest.err 15750 rm -f conftest.er1 15751 cat conftest.err >&5 15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15753 (exit $ac_status); } && 15754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15755 { (case "(($ac_try" in 15756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15757 *) ac_try_echo=$ac_try;; 15758 esac 15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15760 (eval "$ac_try") 2>&5 15761 ac_status=$? 15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15763 (exit $ac_status); }; } && 15764 { ac_try='test -s conftest.$ac_objext' 15765 { (case "(($ac_try" in 15766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15767 *) ac_try_echo=$ac_try;; 15768 esac 15769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15770 (eval "$ac_try") 2>&5 15771 ac_status=$? 15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15773 (exit $ac_status); }; }; then 15774 ac_header_compiler=yes 15775 else 15776 echo "$as_me: failed program was:" >&5 15777 sed 's/^/| /' conftest.$ac_ext >&5 15778 15779 ac_header_compiler=no 15780 fi 15781 15782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15784 echo "${ECHO_T}$ac_header_compiler" >&6; } 15785 15786 # Is the header present? 15787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 15788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15789 cat >conftest.$ac_ext <<_ACEOF 15790 /* confdefs.h. */ 15791 _ACEOF 15792 cat confdefs.h >>conftest.$ac_ext 15793 cat >>conftest.$ac_ext <<_ACEOF 15794 /* end confdefs.h. */ 15795 #include <$ac_header> 15796 _ACEOF 15797 if { (ac_try="$ac_cpp conftest.$ac_ext" 15798 case "(($ac_try" in 15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15800 *) ac_try_echo=$ac_try;; 15801 esac 15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15804 ac_status=$? 15805 grep -v '^ *+' conftest.er1 >conftest.err 15806 rm -f conftest.er1 15807 cat conftest.err >&5 15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15809 (exit $ac_status); } >/dev/null; then 15810 if test -s conftest.err; then 15811 ac_cpp_err=$ac_c_preproc_warn_flag 15812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15813 else 15814 ac_cpp_err= 15815 fi 15816 else 15817 ac_cpp_err=yes 15818 fi 15819 if test -z "$ac_cpp_err"; then 15820 ac_header_preproc=yes 15821 else 15822 echo "$as_me: failed program was:" >&5 15823 sed 's/^/| /' conftest.$ac_ext >&5 15824 15825 ac_header_preproc=no 15826 fi 15827 15828 rm -f conftest.err conftest.$ac_ext 15829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15830 echo "${ECHO_T}$ac_header_preproc" >&6; } 15831 15832 # So? What about this header? 15833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15834 yes:no: ) 15835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15839 ac_header_preproc=yes 15840 ;; 15841 no:yes:* ) 15842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15854 ( cat <<\_ASBOX 15855 ## ------------------------------ ## 15856 ## Report this to bugs@yourdomain ## 15857 ## ------------------------------ ## 15858 _ASBOX 15859 ) | sed "s/^/$as_me: WARNING: /" >&2 15860 ;; 15861 esac 15862 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15865 echo $ECHO_N "(cached) $ECHO_C" >&6 15866 else 15867 eval "$as_ac_Header=\$ac_header_preproc" 15868 fi 15869 ac_res=`eval echo '${'$as_ac_Header'}'` 15870 { echo "$as_me:$LINENO: result: $ac_res" >&5 15871 echo "${ECHO_T}$ac_res" >&6; } 15872 15873 fi 15874 if test `eval echo '${'$as_ac_Header'}'` = yes; then 15875 cat >>confdefs.h <<_ACEOF 15876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15877 _ACEOF 15878 15879 fi 15880 15881 done 15882 15883 15884 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 15885 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 15886 cat >conftest.$ac_ext <<_ACEOF 15887 /* confdefs.h. */ 15888 _ACEOF 15889 cat confdefs.h >>conftest.$ac_ext 15890 cat >>conftest.$ac_ext <<_ACEOF 15891 /* end confdefs.h. */ 15892 extern const char *__crashreporter_info__; 15893 int main() { 15894 __crashreporter_info__ = "test"; 15895 return 0; 15896 } 15897 15898 _ACEOF 15899 rm -f conftest.$ac_objext conftest$ac_exeext 15900 if { (ac_try="$ac_link" 15901 case "(($ac_try" in 15902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15903 *) ac_try_echo=$ac_try;; 15904 esac 15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15906 (eval "$ac_link") 2>conftest.er1 15907 ac_status=$? 15908 grep -v '^ *+' conftest.er1 >conftest.err 15909 rm -f conftest.er1 15910 cat conftest.err >&5 15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15912 (exit $ac_status); } && 15913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15914 { (case "(($ac_try" in 15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15916 *) ac_try_echo=$ac_try;; 15917 esac 15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15919 (eval "$ac_try") 2>&5 15920 ac_status=$? 15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15922 (exit $ac_status); }; } && 15923 { ac_try='test -s conftest$ac_exeext' 15924 { (case "(($ac_try" in 15925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15926 *) ac_try_echo=$ac_try;; 15927 esac 15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15929 (eval "$ac_try") 2>&5 15930 ac_status=$? 15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15932 (exit $ac_status); }; }; then 15933 { echo "$as_me:$LINENO: result: yes" >&5 15934 echo "${ECHO_T}yes" >&6; } 15935 15936 cat >>confdefs.h <<\_ACEOF 15937 #define HAVE_CRASHREPORTER_INFO 1 15938 _ACEOF 15939 15940 else 15941 echo "$as_me: failed program was:" >&5 15942 sed 's/^/| /' conftest.$ac_ext >&5 15943 15944 { echo "$as_me:$LINENO: result: no" >&5 15945 echo "${ECHO_T}no" >&6; } 15946 15947 cat >>confdefs.h <<\_ACEOF 15948 #define HAVE_CRASHREPORTER_INFO 0 15949 _ACEOF 15950 15951 fi 15952 15953 rm -f core conftest.err conftest.$ac_objext \ 15954 conftest$ac_exeext conftest.$ac_ext 15955 15956 15957 15958 15959 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 15960 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 15961 if test "${ac_cv_huge_val_sanity+set}" = set; then 15962 echo $ECHO_N "(cached) $ECHO_C" >&6 15963 else 15964 15965 ac_ext=cpp 15966 ac_cpp='$CXXCPP $CPPFLAGS' 15967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15970 15971 ac_save_CXXFLAGS=$CXXFLAGS 15972 CXXFLAGS="$CXXFLAGS -pedantic" 15973 if test "$cross_compiling" = yes; then 15974 ac_cv_huge_val_sanity=yes 15975 else 15976 cat >conftest.$ac_ext <<_ACEOF 15977 /* confdefs.h. */ 15978 _ACEOF 15979 cat confdefs.h >>conftest.$ac_ext 15980 cat >>conftest.$ac_ext <<_ACEOF 15981 /* end confdefs.h. */ 15982 #include <math.h> 15983 int 15984 main () 15985 { 15986 double x = HUGE_VAL; return x != x; 15987 ; 15988 return 0; 15989 } 15990 _ACEOF 15991 rm -f conftest$ac_exeext 15992 if { (ac_try="$ac_link" 15993 case "(($ac_try" in 15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15995 *) ac_try_echo=$ac_try;; 15996 esac 15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15998 (eval "$ac_link") 2>&5 15999 ac_status=$? 16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16002 { (case "(($ac_try" in 16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16004 *) ac_try_echo=$ac_try;; 16005 esac 16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16007 (eval "$ac_try") 2>&5 16008 ac_status=$? 16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16010 (exit $ac_status); }; }; then 16011 ac_cv_huge_val_sanity=yes 16012 else 16013 echo "$as_me: program exited with status $ac_status" >&5 16014 echo "$as_me: failed program was:" >&5 16015 sed 's/^/| /' conftest.$ac_ext >&5 16016 16017 ( exit $ac_status ) 16018 ac_cv_huge_val_sanity=no 16019 fi 16020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16021 fi 16022 16023 16024 CXXFLAGS=$ac_save_CXXFLAGS 16025 ac_ext=c 16026 ac_cpp='$CPP $CPPFLAGS' 16027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16029 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16030 16031 16032 fi 16033 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16034 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16035 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16036 16037 16038 { echo "$as_me:$LINENO: checking for pid_t" >&5 16039 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16040 if test "${ac_cv_type_pid_t+set}" = set; then 16041 echo $ECHO_N "(cached) $ECHO_C" >&6 16042 else 16043 cat >conftest.$ac_ext <<_ACEOF 16044 /* confdefs.h. */ 16045 _ACEOF 16046 cat confdefs.h >>conftest.$ac_ext 16047 cat >>conftest.$ac_ext <<_ACEOF 16048 /* end confdefs.h. */ 16049 $ac_includes_default 16050 typedef pid_t ac__type_new_; 16051 int 16052 main () 16053 { 16054 if ((ac__type_new_ *) 0) 16055 return 0; 16056 if (sizeof (ac__type_new_)) 16057 return 0; 16058 ; 16059 return 0; 16060 } 16061 _ACEOF 16062 rm -f conftest.$ac_objext 16063 if { (ac_try="$ac_compile" 16064 case "(($ac_try" in 16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16066 *) ac_try_echo=$ac_try;; 16067 esac 16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16069 (eval "$ac_compile") 2>conftest.er1 16070 ac_status=$? 16071 grep -v '^ *+' conftest.er1 >conftest.err 16072 rm -f conftest.er1 16073 cat conftest.err >&5 16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16075 (exit $ac_status); } && 16076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16077 { (case "(($ac_try" in 16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16079 *) ac_try_echo=$ac_try;; 16080 esac 16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16082 (eval "$ac_try") 2>&5 16083 ac_status=$? 16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16085 (exit $ac_status); }; } && 16086 { ac_try='test -s conftest.$ac_objext' 16087 { (case "(($ac_try" in 16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16089 *) ac_try_echo=$ac_try;; 16090 esac 16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16092 (eval "$ac_try") 2>&5 16093 ac_status=$? 16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16095 (exit $ac_status); }; }; then 16096 ac_cv_type_pid_t=yes 16097 else 16098 echo "$as_me: failed program was:" >&5 16099 sed 's/^/| /' conftest.$ac_ext >&5 16100 16101 ac_cv_type_pid_t=no 16102 fi 16103 16104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16105 fi 16106 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16107 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16108 if test $ac_cv_type_pid_t = yes; then 16109 : 16110 else 16111 16112 cat >>confdefs.h <<_ACEOF 16113 #define pid_t int 16114 _ACEOF 16115 16116 fi 16117 16118 { echo "$as_me:$LINENO: checking for size_t" >&5 16119 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 16120 if test "${ac_cv_type_size_t+set}" = set; then 16121 echo $ECHO_N "(cached) $ECHO_C" >&6 16122 else 16123 cat >conftest.$ac_ext <<_ACEOF 16124 /* confdefs.h. */ 16125 _ACEOF 16126 cat confdefs.h >>conftest.$ac_ext 16127 cat >>conftest.$ac_ext <<_ACEOF 16128 /* end confdefs.h. */ 16129 $ac_includes_default 16130 typedef size_t ac__type_new_; 16131 int 16132 main () 16133 { 16134 if ((ac__type_new_ *) 0) 16135 return 0; 16136 if (sizeof (ac__type_new_)) 16137 return 0; 16138 ; 16139 return 0; 16140 } 16141 _ACEOF 16142 rm -f conftest.$ac_objext 16143 if { (ac_try="$ac_compile" 16144 case "(($ac_try" in 16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16146 *) ac_try_echo=$ac_try;; 16147 esac 16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16149 (eval "$ac_compile") 2>conftest.er1 16150 ac_status=$? 16151 grep -v '^ *+' conftest.er1 >conftest.err 16152 rm -f conftest.er1 16153 cat conftest.err >&5 16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16155 (exit $ac_status); } && 16156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16157 { (case "(($ac_try" in 16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16159 *) ac_try_echo=$ac_try;; 16160 esac 16161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16162 (eval "$ac_try") 2>&5 16163 ac_status=$? 16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16165 (exit $ac_status); }; } && 16166 { ac_try='test -s conftest.$ac_objext' 16167 { (case "(($ac_try" in 16168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16169 *) ac_try_echo=$ac_try;; 16170 esac 16171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16172 (eval "$ac_try") 2>&5 16173 ac_status=$? 16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16175 (exit $ac_status); }; }; then 16176 ac_cv_type_size_t=yes 16177 else 16178 echo "$as_me: failed program was:" >&5 16179 sed 's/^/| /' conftest.$ac_ext >&5 16180 16181 ac_cv_type_size_t=no 16182 fi 16183 16184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16185 fi 16186 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16187 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 16188 if test $ac_cv_type_size_t = yes; then 16189 : 16190 else 16191 16192 cat >>confdefs.h <<_ACEOF 16193 #define size_t unsigned int 16194 _ACEOF 16195 16196 fi 16197 16198 16199 cat >>confdefs.h <<_ACEOF 16200 #define RETSIGTYPE void 16201 _ACEOF 16202 16203 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 16204 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 16205 if test "${ac_cv_struct_tm+set}" = set; then 16206 echo $ECHO_N "(cached) $ECHO_C" >&6 16207 else 16208 cat >conftest.$ac_ext <<_ACEOF 16209 /* confdefs.h. */ 16210 _ACEOF 16211 cat confdefs.h >>conftest.$ac_ext 16212 cat >>conftest.$ac_ext <<_ACEOF 16213 /* end confdefs.h. */ 16214 #include <sys/types.h> 16215 #include <time.h> 16216 16217 int 16218 main () 16219 { 16220 struct tm *tp; tp->tm_sec; 16221 ; 16222 return 0; 16223 } 16224 _ACEOF 16225 rm -f conftest.$ac_objext 16226 if { (ac_try="$ac_compile" 16227 case "(($ac_try" in 16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16229 *) ac_try_echo=$ac_try;; 16230 esac 16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16232 (eval "$ac_compile") 2>conftest.er1 16233 ac_status=$? 16234 grep -v '^ *+' conftest.er1 >conftest.err 16235 rm -f conftest.er1 16236 cat conftest.err >&5 16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16238 (exit $ac_status); } && 16239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16240 { (case "(($ac_try" in 16241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16242 *) ac_try_echo=$ac_try;; 16243 esac 16244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16245 (eval "$ac_try") 2>&5 16246 ac_status=$? 16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16248 (exit $ac_status); }; } && 16249 { ac_try='test -s conftest.$ac_objext' 16250 { (case "(($ac_try" in 16251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16252 *) ac_try_echo=$ac_try;; 16253 esac 16254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16255 (eval "$ac_try") 2>&5 16256 ac_status=$? 16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16258 (exit $ac_status); }; }; then 16259 ac_cv_struct_tm=time.h 16260 else 16261 echo "$as_me: failed program was:" >&5 16262 sed 's/^/| /' conftest.$ac_ext >&5 16263 16264 ac_cv_struct_tm=sys/time.h 16265 fi 16266 16267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16268 fi 16269 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 16270 echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 16271 if test $ac_cv_struct_tm = sys/time.h; then 16272 16273 cat >>confdefs.h <<\_ACEOF 16274 #define TM_IN_SYS_TIME 1 16275 _ACEOF 16276 16277 fi 16278 16279 { echo "$as_me:$LINENO: checking for int64_t" >&5 16280 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 16281 if test "${ac_cv_type_int64_t+set}" = set; then 16282 echo $ECHO_N "(cached) $ECHO_C" >&6 16283 else 16284 cat >conftest.$ac_ext <<_ACEOF 16285 /* confdefs.h. */ 16286 _ACEOF 16287 cat confdefs.h >>conftest.$ac_ext 16288 cat >>conftest.$ac_ext <<_ACEOF 16289 /* end confdefs.h. */ 16290 $ac_includes_default 16291 typedef int64_t ac__type_new_; 16292 int 16293 main () 16294 { 16295 if ((ac__type_new_ *) 0) 16296 return 0; 16297 if (sizeof (ac__type_new_)) 16298 return 0; 16299 ; 16300 return 0; 16301 } 16302 _ACEOF 16303 rm -f conftest.$ac_objext 16304 if { (ac_try="$ac_compile" 16305 case "(($ac_try" in 16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16307 *) ac_try_echo=$ac_try;; 16308 esac 16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16310 (eval "$ac_compile") 2>conftest.er1 16311 ac_status=$? 16312 grep -v '^ *+' conftest.er1 >conftest.err 16313 rm -f conftest.er1 16314 cat conftest.err >&5 16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16316 (exit $ac_status); } && 16317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16318 { (case "(($ac_try" in 16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16320 *) ac_try_echo=$ac_try;; 16321 esac 16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16323 (eval "$ac_try") 2>&5 16324 ac_status=$? 16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16326 (exit $ac_status); }; } && 16327 { ac_try='test -s conftest.$ac_objext' 16328 { (case "(($ac_try" in 16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16330 *) ac_try_echo=$ac_try;; 16331 esac 16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16333 (eval "$ac_try") 2>&5 16334 ac_status=$? 16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16336 (exit $ac_status); }; }; then 16337 ac_cv_type_int64_t=yes 16338 else 16339 echo "$as_me: failed program was:" >&5 16340 sed 's/^/| /' conftest.$ac_ext >&5 16341 16342 ac_cv_type_int64_t=no 16343 fi 16344 16345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16346 fi 16347 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 16348 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 16349 if test $ac_cv_type_int64_t = yes; then 16350 16351 cat >>confdefs.h <<_ACEOF 16352 #define HAVE_INT64_T 1 16353 _ACEOF 16354 16355 16356 else 16357 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 16358 echo "$as_me: error: Type int64_t required but not found" >&2;} 16359 { (exit 1); exit 1; }; } 16360 fi 16361 16362 { echo "$as_me:$LINENO: checking for uint64_t" >&5 16363 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 16364 if test "${ac_cv_type_uint64_t+set}" = set; then 16365 echo $ECHO_N "(cached) $ECHO_C" >&6 16366 else 16367 cat >conftest.$ac_ext <<_ACEOF 16368 /* confdefs.h. */ 16369 _ACEOF 16370 cat confdefs.h >>conftest.$ac_ext 16371 cat >>conftest.$ac_ext <<_ACEOF 16372 /* end confdefs.h. */ 16373 $ac_includes_default 16374 typedef uint64_t ac__type_new_; 16375 int 16376 main () 16377 { 16378 if ((ac__type_new_ *) 0) 16379 return 0; 16380 if (sizeof (ac__type_new_)) 16381 return 0; 16382 ; 16383 return 0; 16384 } 16385 _ACEOF 16386 rm -f conftest.$ac_objext 16387 if { (ac_try="$ac_compile" 16388 case "(($ac_try" in 16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16390 *) ac_try_echo=$ac_try;; 16391 esac 16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16393 (eval "$ac_compile") 2>conftest.er1 16394 ac_status=$? 16395 grep -v '^ *+' conftest.er1 >conftest.err 16396 rm -f conftest.er1 16397 cat conftest.err >&5 16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16399 (exit $ac_status); } && 16400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16401 { (case "(($ac_try" in 16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16403 *) ac_try_echo=$ac_try;; 16404 esac 16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16406 (eval "$ac_try") 2>&5 16407 ac_status=$? 16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16409 (exit $ac_status); }; } && 16410 { ac_try='test -s conftest.$ac_objext' 16411 { (case "(($ac_try" in 16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16413 *) ac_try_echo=$ac_try;; 16414 esac 16415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16416 (eval "$ac_try") 2>&5 16417 ac_status=$? 16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16419 (exit $ac_status); }; }; then 16420 ac_cv_type_uint64_t=yes 16421 else 16422 echo "$as_me: failed program was:" >&5 16423 sed 's/^/| /' conftest.$ac_ext >&5 16424 16425 ac_cv_type_uint64_t=no 16426 fi 16427 16428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16429 fi 16430 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 16431 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 16432 if test $ac_cv_type_uint64_t = yes; then 16433 16434 cat >>confdefs.h <<_ACEOF 16435 #define HAVE_UINT64_T 1 16436 _ACEOF 16437 16438 16439 else 16440 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 16441 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 16442 if test "${ac_cv_type_u_int64_t+set}" = set; then 16443 echo $ECHO_N "(cached) $ECHO_C" >&6 16444 else 16445 cat >conftest.$ac_ext <<_ACEOF 16446 /* confdefs.h. */ 16447 _ACEOF 16448 cat confdefs.h >>conftest.$ac_ext 16449 cat >>conftest.$ac_ext <<_ACEOF 16450 /* end confdefs.h. */ 16451 $ac_includes_default 16452 typedef u_int64_t ac__type_new_; 16453 int 16454 main () 16455 { 16456 if ((ac__type_new_ *) 0) 16457 return 0; 16458 if (sizeof (ac__type_new_)) 16459 return 0; 16460 ; 16461 return 0; 16462 } 16463 _ACEOF 16464 rm -f conftest.$ac_objext 16465 if { (ac_try="$ac_compile" 16466 case "(($ac_try" in 16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16468 *) ac_try_echo=$ac_try;; 16469 esac 16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16471 (eval "$ac_compile") 2>conftest.er1 16472 ac_status=$? 16473 grep -v '^ *+' conftest.er1 >conftest.err 16474 rm -f conftest.er1 16475 cat conftest.err >&5 16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16477 (exit $ac_status); } && 16478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16479 { (case "(($ac_try" in 16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16481 *) ac_try_echo=$ac_try;; 16482 esac 16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16484 (eval "$ac_try") 2>&5 16485 ac_status=$? 16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16487 (exit $ac_status); }; } && 16488 { ac_try='test -s conftest.$ac_objext' 16489 { (case "(($ac_try" in 16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16491 *) ac_try_echo=$ac_try;; 16492 esac 16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16494 (eval "$ac_try") 2>&5 16495 ac_status=$? 16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16497 (exit $ac_status); }; }; then 16498 ac_cv_type_u_int64_t=yes 16499 else 16500 echo "$as_me: failed program was:" >&5 16501 sed 's/^/| /' conftest.$ac_ext >&5 16502 16503 ac_cv_type_u_int64_t=no 16504 fi 16505 16506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16507 fi 16508 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 16509 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 16510 if test $ac_cv_type_u_int64_t = yes; then 16511 16512 cat >>confdefs.h <<_ACEOF 16513 #define HAVE_U_INT64_T 1 16514 _ACEOF 16515 16516 16517 else 16518 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 16519 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 16520 { (exit 1); exit 1; }; } 16521 fi 16522 16523 fi 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 16535 do 16536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16537 { echo "$as_me:$LINENO: checking for $ac_func" >&5 16538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16540 echo $ECHO_N "(cached) $ECHO_C" >&6 16541 else 16542 cat >conftest.$ac_ext <<_ACEOF 16543 /* confdefs.h. */ 16544 _ACEOF 16545 cat confdefs.h >>conftest.$ac_ext 16546 cat >>conftest.$ac_ext <<_ACEOF 16547 /* end confdefs.h. */ 16548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16549 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16550 #define $ac_func innocuous_$ac_func 16551 16552 /* System header to define __stub macros and hopefully few prototypes, 16553 which can conflict with char $ac_func (); below. 16554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16555 <limits.h> exists even on freestanding compilers. */ 16556 16557 #ifdef __STDC__ 16558 # include <limits.h> 16559 #else 16560 # include <assert.h> 16561 #endif 16562 16563 #undef $ac_func 16564 16565 /* Override any GCC internal prototype to avoid an error. 16566 Use char because int might match the return type of a GCC 16567 builtin and then its argument prototype would still apply. */ 16568 #ifdef __cplusplus 16569 extern "C" 16570 #endif 16571 char $ac_func (); 16572 /* The GNU C library defines this for functions which it implements 16573 to always fail with ENOSYS. Some functions are actually named 16574 something starting with __ and the normal name is an alias. */ 16575 #if defined __stub_$ac_func || defined __stub___$ac_func 16576 choke me 16577 #endif 16578 16579 int 16580 main () 16581 { 16582 return $ac_func (); 16583 ; 16584 return 0; 16585 } 16586 _ACEOF 16587 rm -f conftest.$ac_objext conftest$ac_exeext 16588 if { (ac_try="$ac_link" 16589 case "(($ac_try" in 16590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16591 *) ac_try_echo=$ac_try;; 16592 esac 16593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16594 (eval "$ac_link") 2>conftest.er1 16595 ac_status=$? 16596 grep -v '^ *+' conftest.er1 >conftest.err 16597 rm -f conftest.er1 16598 cat conftest.err >&5 16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16600 (exit $ac_status); } && 16601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16602 { (case "(($ac_try" in 16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16604 *) ac_try_echo=$ac_try;; 16605 esac 16606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16607 (eval "$ac_try") 2>&5 16608 ac_status=$? 16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16610 (exit $ac_status); }; } && 16611 { ac_try='test -s conftest$ac_exeext' 16612 { (case "(($ac_try" in 16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16614 *) ac_try_echo=$ac_try;; 16615 esac 16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16617 (eval "$ac_try") 2>&5 16618 ac_status=$? 16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16620 (exit $ac_status); }; }; then 16621 eval "$as_ac_var=yes" 16622 else 16623 echo "$as_me: failed program was:" >&5 16624 sed 's/^/| /' conftest.$ac_ext >&5 16625 16626 eval "$as_ac_var=no" 16627 fi 16628 16629 rm -f core conftest.err conftest.$ac_objext \ 16630 conftest$ac_exeext conftest.$ac_ext 16631 fi 16632 ac_res=`eval echo '${'$as_ac_var'}'` 16633 { echo "$as_me:$LINENO: result: $ac_res" >&5 16634 echo "${ECHO_T}$ac_res" >&6; } 16635 if test `eval echo '${'$as_ac_var'}'` = yes; then 16636 cat >>confdefs.h <<_ACEOF 16637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16638 _ACEOF 16639 16640 fi 16641 done 16642 16643 16644 16645 16646 16647 for ac_func in powf fmodf strtof round 16648 do 16649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16650 { echo "$as_me:$LINENO: checking for $ac_func" >&5 16651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16653 echo $ECHO_N "(cached) $ECHO_C" >&6 16654 else 16655 cat >conftest.$ac_ext <<_ACEOF 16656 /* confdefs.h. */ 16657 _ACEOF 16658 cat confdefs.h >>conftest.$ac_ext 16659 cat >>conftest.$ac_ext <<_ACEOF 16660 /* end confdefs.h. */ 16661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16662 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16663 #define $ac_func innocuous_$ac_func 16664 16665 /* System header to define __stub macros and hopefully few prototypes, 16666 which can conflict with char $ac_func (); below. 16667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16668 <limits.h> exists even on freestanding compilers. */ 16669 16670 #ifdef __STDC__ 16671 # include <limits.h> 16672 #else 16673 # include <assert.h> 16674 #endif 16675 16676 #undef $ac_func 16677 16678 /* Override any GCC internal prototype to avoid an error. 16679 Use char because int might match the return type of a GCC 16680 builtin and then its argument prototype would still apply. */ 16681 #ifdef __cplusplus 16682 extern "C" 16683 #endif 16684 char $ac_func (); 16685 /* The GNU C library defines this for functions which it implements 16686 to always fail with ENOSYS. Some functions are actually named 16687 something starting with __ and the normal name is an alias. */ 16688 #if defined __stub_$ac_func || defined __stub___$ac_func 16689 choke me 16690 #endif 16691 16692 int 16693 main () 16694 { 16695 return $ac_func (); 16696 ; 16697 return 0; 16698 } 16699 _ACEOF 16700 rm -f conftest.$ac_objext conftest$ac_exeext 16701 if { (ac_try="$ac_link" 16702 case "(($ac_try" in 16703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16704 *) ac_try_echo=$ac_try;; 16705 esac 16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16707 (eval "$ac_link") 2>conftest.er1 16708 ac_status=$? 16709 grep -v '^ *+' conftest.er1 >conftest.err 16710 rm -f conftest.er1 16711 cat conftest.err >&5 16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16713 (exit $ac_status); } && 16714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16715 { (case "(($ac_try" in 16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16717 *) ac_try_echo=$ac_try;; 16718 esac 16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16720 (eval "$ac_try") 2>&5 16721 ac_status=$? 16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16723 (exit $ac_status); }; } && 16724 { ac_try='test -s conftest$ac_exeext' 16725 { (case "(($ac_try" in 16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16727 *) ac_try_echo=$ac_try;; 16728 esac 16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16730 (eval "$ac_try") 2>&5 16731 ac_status=$? 16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16733 (exit $ac_status); }; }; then 16734 eval "$as_ac_var=yes" 16735 else 16736 echo "$as_me: failed program was:" >&5 16737 sed 's/^/| /' conftest.$ac_ext >&5 16738 16739 eval "$as_ac_var=no" 16740 fi 16741 16742 rm -f core conftest.err conftest.$ac_objext \ 16743 conftest$ac_exeext conftest.$ac_ext 16744 fi 16745 ac_res=`eval echo '${'$as_ac_var'}'` 16746 { echo "$as_me:$LINENO: result: $ac_res" >&5 16747 echo "${ECHO_T}$ac_res" >&6; } 16748 if test `eval echo '${'$as_ac_var'}'` = yes; then 16749 cat >>confdefs.h <<_ACEOF 16750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16751 _ACEOF 16752 16753 fi 16754 done 16755 16756 16757 16758 16759 16760 16761 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 16762 do 16763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16764 { echo "$as_me:$LINENO: checking for $ac_func" >&5 16765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16767 echo $ECHO_N "(cached) $ECHO_C" >&6 16768 else 16769 cat >conftest.$ac_ext <<_ACEOF 16770 /* confdefs.h. */ 16771 _ACEOF 16772 cat confdefs.h >>conftest.$ac_ext 16773 cat >>conftest.$ac_ext <<_ACEOF 16774 /* end confdefs.h. */ 16775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16776 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16777 #define $ac_func innocuous_$ac_func 16778 16779 /* System header to define __stub macros and hopefully few prototypes, 16780 which can conflict with char $ac_func (); below. 16781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16782 <limits.h> exists even on freestanding compilers. */ 16783 16784 #ifdef __STDC__ 16785 # include <limits.h> 16786 #else 16787 # include <assert.h> 16788 #endif 16789 16790 #undef $ac_func 16791 16792 /* Override any GCC internal prototype to avoid an error. 16793 Use char because int might match the return type of a GCC 16794 builtin and then its argument prototype would still apply. */ 16795 #ifdef __cplusplus 16796 extern "C" 16797 #endif 16798 char $ac_func (); 16799 /* The GNU C library defines this for functions which it implements 16800 to always fail with ENOSYS. Some functions are actually named 16801 something starting with __ and the normal name is an alias. */ 16802 #if defined __stub_$ac_func || defined __stub___$ac_func 16803 choke me 16804 #endif 16805 16806 int 16807 main () 16808 { 16809 return $ac_func (); 16810 ; 16811 return 0; 16812 } 16813 _ACEOF 16814 rm -f conftest.$ac_objext conftest$ac_exeext 16815 if { (ac_try="$ac_link" 16816 case "(($ac_try" in 16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16818 *) ac_try_echo=$ac_try;; 16819 esac 16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16821 (eval "$ac_link") 2>conftest.er1 16822 ac_status=$? 16823 grep -v '^ *+' conftest.er1 >conftest.err 16824 rm -f conftest.er1 16825 cat conftest.err >&5 16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16827 (exit $ac_status); } && 16828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16829 { (case "(($ac_try" in 16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16831 *) ac_try_echo=$ac_try;; 16832 esac 16833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16834 (eval "$ac_try") 2>&5 16835 ac_status=$? 16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16837 (exit $ac_status); }; } && 16838 { ac_try='test -s conftest$ac_exeext' 16839 { (case "(($ac_try" in 16840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16841 *) ac_try_echo=$ac_try;; 16842 esac 16843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16844 (eval "$ac_try") 2>&5 16845 ac_status=$? 16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16847 (exit $ac_status); }; }; then 16848 eval "$as_ac_var=yes" 16849 else 16850 echo "$as_me: failed program was:" >&5 16851 sed 's/^/| /' conftest.$ac_ext >&5 16852 16853 eval "$as_ac_var=no" 16854 fi 16855 16856 rm -f core conftest.err conftest.$ac_objext \ 16857 conftest$ac_exeext conftest.$ac_ext 16858 fi 16859 ac_res=`eval echo '${'$as_ac_var'}'` 16860 { echo "$as_me:$LINENO: result: $ac_res" >&5 16861 echo "${ECHO_T}$ac_res" >&6; } 16862 if test `eval echo '${'$as_ac_var'}'` = yes; then 16863 cat >>confdefs.h <<_ACEOF 16864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16865 _ACEOF 16866 16867 fi 16868 done 16869 16870 16871 16872 16873 for ac_func in isatty mkdtemp mkstemp 16874 do 16875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16876 { echo "$as_me:$LINENO: checking for $ac_func" >&5 16877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16879 echo $ECHO_N "(cached) $ECHO_C" >&6 16880 else 16881 cat >conftest.$ac_ext <<_ACEOF 16882 /* confdefs.h. */ 16883 _ACEOF 16884 cat confdefs.h >>conftest.$ac_ext 16885 cat >>conftest.$ac_ext <<_ACEOF 16886 /* end confdefs.h. */ 16887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16888 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16889 #define $ac_func innocuous_$ac_func 16890 16891 /* System header to define __stub macros and hopefully few prototypes, 16892 which can conflict with char $ac_func (); below. 16893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16894 <limits.h> exists even on freestanding compilers. */ 16895 16896 #ifdef __STDC__ 16897 # include <limits.h> 16898 #else 16899 # include <assert.h> 16900 #endif 16901 16902 #undef $ac_func 16903 16904 /* Override any GCC internal prototype to avoid an error. 16905 Use char because int might match the return type of a GCC 16906 builtin and then its argument prototype would still apply. */ 16907 #ifdef __cplusplus 16908 extern "C" 16909 #endif 16910 char $ac_func (); 16911 /* The GNU C library defines this for functions which it implements 16912 to always fail with ENOSYS. Some functions are actually named 16913 something starting with __ and the normal name is an alias. */ 16914 #if defined __stub_$ac_func || defined __stub___$ac_func 16915 choke me 16916 #endif 16917 16918 int 16919 main () 16920 { 16921 return $ac_func (); 16922 ; 16923 return 0; 16924 } 16925 _ACEOF 16926 rm -f conftest.$ac_objext conftest$ac_exeext 16927 if { (ac_try="$ac_link" 16928 case "(($ac_try" in 16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16930 *) ac_try_echo=$ac_try;; 16931 esac 16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16933 (eval "$ac_link") 2>conftest.er1 16934 ac_status=$? 16935 grep -v '^ *+' conftest.er1 >conftest.err 16936 rm -f conftest.er1 16937 cat conftest.err >&5 16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16939 (exit $ac_status); } && 16940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16941 { (case "(($ac_try" in 16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16943 *) ac_try_echo=$ac_try;; 16944 esac 16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16946 (eval "$ac_try") 2>&5 16947 ac_status=$? 16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16949 (exit $ac_status); }; } && 16950 { ac_try='test -s conftest$ac_exeext' 16951 { (case "(($ac_try" in 16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16953 *) ac_try_echo=$ac_try;; 16954 esac 16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16956 (eval "$ac_try") 2>&5 16957 ac_status=$? 16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16959 (exit $ac_status); }; }; then 16960 eval "$as_ac_var=yes" 16961 else 16962 echo "$as_me: failed program was:" >&5 16963 sed 's/^/| /' conftest.$ac_ext >&5 16964 16965 eval "$as_ac_var=no" 16966 fi 16967 16968 rm -f core conftest.err conftest.$ac_objext \ 16969 conftest$ac_exeext conftest.$ac_ext 16970 fi 16971 ac_res=`eval echo '${'$as_ac_var'}'` 16972 { echo "$as_me:$LINENO: result: $ac_res" >&5 16973 echo "${ECHO_T}$ac_res" >&6; } 16974 if test `eval echo '${'$as_ac_var'}'` = yes; then 16975 cat >>confdefs.h <<_ACEOF 16976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16977 _ACEOF 16978 16979 fi 16980 done 16981 16982 16983 16984 16985 16986 16987 16988 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup 16989 do 16990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16991 { echo "$as_me:$LINENO: checking for $ac_func" >&5 16992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16994 echo $ECHO_N "(cached) $ECHO_C" >&6 16995 else 16996 cat >conftest.$ac_ext <<_ACEOF 16997 /* confdefs.h. */ 16998 _ACEOF 16999 cat confdefs.h >>conftest.$ac_ext 17000 cat >>conftest.$ac_ext <<_ACEOF 17001 /* end confdefs.h. */ 17002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17003 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17004 #define $ac_func innocuous_$ac_func 17005 17006 /* System header to define __stub macros and hopefully few prototypes, 17007 which can conflict with char $ac_func (); below. 17008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17009 <limits.h> exists even on freestanding compilers. */ 17010 17011 #ifdef __STDC__ 17012 # include <limits.h> 17013 #else 17014 # include <assert.h> 17015 #endif 17016 17017 #undef $ac_func 17018 17019 /* Override any GCC internal prototype to avoid an error. 17020 Use char because int might match the return type of a GCC 17021 builtin and then its argument prototype would still apply. */ 17022 #ifdef __cplusplus 17023 extern "C" 17024 #endif 17025 char $ac_func (); 17026 /* The GNU C library defines this for functions which it implements 17027 to always fail with ENOSYS. Some functions are actually named 17028 something starting with __ and the normal name is an alias. */ 17029 #if defined __stub_$ac_func || defined __stub___$ac_func 17030 choke me 17031 #endif 17032 17033 int 17034 main () 17035 { 17036 return $ac_func (); 17037 ; 17038 return 0; 17039 } 17040 _ACEOF 17041 rm -f conftest.$ac_objext conftest$ac_exeext 17042 if { (ac_try="$ac_link" 17043 case "(($ac_try" in 17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17045 *) ac_try_echo=$ac_try;; 17046 esac 17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17048 (eval "$ac_link") 2>conftest.er1 17049 ac_status=$? 17050 grep -v '^ *+' conftest.er1 >conftest.err 17051 rm -f conftest.er1 17052 cat conftest.err >&5 17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17054 (exit $ac_status); } && 17055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17056 { (case "(($ac_try" in 17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17058 *) ac_try_echo=$ac_try;; 17059 esac 17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17061 (eval "$ac_try") 2>&5 17062 ac_status=$? 17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17064 (exit $ac_status); }; } && 17065 { ac_try='test -s conftest$ac_exeext' 17066 { (case "(($ac_try" in 17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17068 *) ac_try_echo=$ac_try;; 17069 esac 17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17071 (eval "$ac_try") 2>&5 17072 ac_status=$? 17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17074 (exit $ac_status); }; }; then 17075 eval "$as_ac_var=yes" 17076 else 17077 echo "$as_me: failed program was:" >&5 17078 sed 's/^/| /' conftest.$ac_ext >&5 17079 17080 eval "$as_ac_var=no" 17081 fi 17082 17083 rm -f core conftest.err conftest.$ac_objext \ 17084 conftest$ac_exeext conftest.$ac_ext 17085 fi 17086 ac_res=`eval echo '${'$as_ac_var'}'` 17087 { echo "$as_me:$LINENO: result: $ac_res" >&5 17088 echo "${ECHO_T}$ac_res" >&6; } 17089 if test `eval echo '${'$as_ac_var'}'` = yes; then 17090 cat >>confdefs.h <<_ACEOF 17091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17092 _ACEOF 17093 17094 fi 17095 done 17096 17097 17098 17099 17100 for ac_func in strerror strerror_r setenv 17101 do 17102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17103 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17106 echo $ECHO_N "(cached) $ECHO_C" >&6 17107 else 17108 cat >conftest.$ac_ext <<_ACEOF 17109 /* confdefs.h. */ 17110 _ACEOF 17111 cat confdefs.h >>conftest.$ac_ext 17112 cat >>conftest.$ac_ext <<_ACEOF 17113 /* end confdefs.h. */ 17114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17115 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17116 #define $ac_func innocuous_$ac_func 17117 17118 /* System header to define __stub macros and hopefully few prototypes, 17119 which can conflict with char $ac_func (); below. 17120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17121 <limits.h> exists even on freestanding compilers. */ 17122 17123 #ifdef __STDC__ 17124 # include <limits.h> 17125 #else 17126 # include <assert.h> 17127 #endif 17128 17129 #undef $ac_func 17130 17131 /* Override any GCC internal prototype to avoid an error. 17132 Use char because int might match the return type of a GCC 17133 builtin and then its argument prototype would still apply. */ 17134 #ifdef __cplusplus 17135 extern "C" 17136 #endif 17137 char $ac_func (); 17138 /* The GNU C library defines this for functions which it implements 17139 to always fail with ENOSYS. Some functions are actually named 17140 something starting with __ and the normal name is an alias. */ 17141 #if defined __stub_$ac_func || defined __stub___$ac_func 17142 choke me 17143 #endif 17144 17145 int 17146 main () 17147 { 17148 return $ac_func (); 17149 ; 17150 return 0; 17151 } 17152 _ACEOF 17153 rm -f conftest.$ac_objext conftest$ac_exeext 17154 if { (ac_try="$ac_link" 17155 case "(($ac_try" in 17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17157 *) ac_try_echo=$ac_try;; 17158 esac 17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17160 (eval "$ac_link") 2>conftest.er1 17161 ac_status=$? 17162 grep -v '^ *+' conftest.er1 >conftest.err 17163 rm -f conftest.er1 17164 cat conftest.err >&5 17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17166 (exit $ac_status); } && 17167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17168 { (case "(($ac_try" in 17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17170 *) ac_try_echo=$ac_try;; 17171 esac 17172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17173 (eval "$ac_try") 2>&5 17174 ac_status=$? 17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17176 (exit $ac_status); }; } && 17177 { ac_try='test -s conftest$ac_exeext' 17178 { (case "(($ac_try" in 17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17180 *) ac_try_echo=$ac_try;; 17181 esac 17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17183 (eval "$ac_try") 2>&5 17184 ac_status=$? 17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17186 (exit $ac_status); }; }; then 17187 eval "$as_ac_var=yes" 17188 else 17189 echo "$as_me: failed program was:" >&5 17190 sed 's/^/| /' conftest.$ac_ext >&5 17191 17192 eval "$as_ac_var=no" 17193 fi 17194 17195 rm -f core conftest.err conftest.$ac_objext \ 17196 conftest$ac_exeext conftest.$ac_ext 17197 fi 17198 ac_res=`eval echo '${'$as_ac_var'}'` 17199 { echo "$as_me:$LINENO: result: $ac_res" >&5 17200 echo "${ECHO_T}$ac_res" >&6; } 17201 if test `eval echo '${'$as_ac_var'}'` = yes; then 17202 cat >>confdefs.h <<_ACEOF 17203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17204 _ACEOF 17205 17206 fi 17207 done 17208 17209 17210 17211 17212 17213 for ac_func in strtoll strtoq sysconf malloc_zone_statistics 17214 do 17215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17216 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17219 echo $ECHO_N "(cached) $ECHO_C" >&6 17220 else 17221 cat >conftest.$ac_ext <<_ACEOF 17222 /* confdefs.h. */ 17223 _ACEOF 17224 cat confdefs.h >>conftest.$ac_ext 17225 cat >>conftest.$ac_ext <<_ACEOF 17226 /* end confdefs.h. */ 17227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17228 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17229 #define $ac_func innocuous_$ac_func 17230 17231 /* System header to define __stub macros and hopefully few prototypes, 17232 which can conflict with char $ac_func (); below. 17233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17234 <limits.h> exists even on freestanding compilers. */ 17235 17236 #ifdef __STDC__ 17237 # include <limits.h> 17238 #else 17239 # include <assert.h> 17240 #endif 17241 17242 #undef $ac_func 17243 17244 /* Override any GCC internal prototype to avoid an error. 17245 Use char because int might match the return type of a GCC 17246 builtin and then its argument prototype would still apply. */ 17247 #ifdef __cplusplus 17248 extern "C" 17249 #endif 17250 char $ac_func (); 17251 /* The GNU C library defines this for functions which it implements 17252 to always fail with ENOSYS. Some functions are actually named 17253 something starting with __ and the normal name is an alias. */ 17254 #if defined __stub_$ac_func || defined __stub___$ac_func 17255 choke me 17256 #endif 17257 17258 int 17259 main () 17260 { 17261 return $ac_func (); 17262 ; 17263 return 0; 17264 } 17265 _ACEOF 17266 rm -f conftest.$ac_objext conftest$ac_exeext 17267 if { (ac_try="$ac_link" 17268 case "(($ac_try" in 17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17270 *) ac_try_echo=$ac_try;; 17271 esac 17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17273 (eval "$ac_link") 2>conftest.er1 17274 ac_status=$? 17275 grep -v '^ *+' conftest.er1 >conftest.err 17276 rm -f conftest.er1 17277 cat conftest.err >&5 17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17279 (exit $ac_status); } && 17280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17281 { (case "(($ac_try" in 17282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17283 *) ac_try_echo=$ac_try;; 17284 esac 17285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17286 (eval "$ac_try") 2>&5 17287 ac_status=$? 17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17289 (exit $ac_status); }; } && 17290 { ac_try='test -s conftest$ac_exeext' 17291 { (case "(($ac_try" in 17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17293 *) ac_try_echo=$ac_try;; 17294 esac 17295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17296 (eval "$ac_try") 2>&5 17297 ac_status=$? 17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17299 (exit $ac_status); }; }; then 17300 eval "$as_ac_var=yes" 17301 else 17302 echo "$as_me: failed program was:" >&5 17303 sed 's/^/| /' conftest.$ac_ext >&5 17304 17305 eval "$as_ac_var=no" 17306 fi 17307 17308 rm -f core conftest.err conftest.$ac_objext \ 17309 conftest$ac_exeext conftest.$ac_ext 17310 fi 17311 ac_res=`eval echo '${'$as_ac_var'}'` 17312 { echo "$as_me:$LINENO: result: $ac_res" >&5 17313 echo "${ECHO_T}$ac_res" >&6; } 17314 if test `eval echo '${'$as_ac_var'}'` = yes; then 17315 cat >>confdefs.h <<_ACEOF 17316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17317 _ACEOF 17318 17319 fi 17320 done 17321 17322 17323 17324 17325 17326 17327 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 17328 do 17329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17330 { echo "$as_me:$LINENO: checking for $ac_func" >&5 17331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17333 echo $ECHO_N "(cached) $ECHO_C" >&6 17334 else 17335 cat >conftest.$ac_ext <<_ACEOF 17336 /* confdefs.h. */ 17337 _ACEOF 17338 cat confdefs.h >>conftest.$ac_ext 17339 cat >>conftest.$ac_ext <<_ACEOF 17340 /* end confdefs.h. */ 17341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17342 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17343 #define $ac_func innocuous_$ac_func 17344 17345 /* System header to define __stub macros and hopefully few prototypes, 17346 which can conflict with char $ac_func (); below. 17347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17348 <limits.h> exists even on freestanding compilers. */ 17349 17350 #ifdef __STDC__ 17351 # include <limits.h> 17352 #else 17353 # include <assert.h> 17354 #endif 17355 17356 #undef $ac_func 17357 17358 /* Override any GCC internal prototype to avoid an error. 17359 Use char because int might match the return type of a GCC 17360 builtin and then its argument prototype would still apply. */ 17361 #ifdef __cplusplus 17362 extern "C" 17363 #endif 17364 char $ac_func (); 17365 /* The GNU C library defines this for functions which it implements 17366 to always fail with ENOSYS. Some functions are actually named 17367 something starting with __ and the normal name is an alias. */ 17368 #if defined __stub_$ac_func || defined __stub___$ac_func 17369 choke me 17370 #endif 17371 17372 int 17373 main () 17374 { 17375 return $ac_func (); 17376 ; 17377 return 0; 17378 } 17379 _ACEOF 17380 rm -f conftest.$ac_objext conftest$ac_exeext 17381 if { (ac_try="$ac_link" 17382 case "(($ac_try" in 17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17384 *) ac_try_echo=$ac_try;; 17385 esac 17386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17387 (eval "$ac_link") 2>conftest.er1 17388 ac_status=$? 17389 grep -v '^ *+' conftest.er1 >conftest.err 17390 rm -f conftest.er1 17391 cat conftest.err >&5 17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17393 (exit $ac_status); } && 17394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17395 { (case "(($ac_try" in 17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17397 *) ac_try_echo=$ac_try;; 17398 esac 17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17400 (eval "$ac_try") 2>&5 17401 ac_status=$? 17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17403 (exit $ac_status); }; } && 17404 { ac_try='test -s conftest$ac_exeext' 17405 { (case "(($ac_try" in 17406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17407 *) ac_try_echo=$ac_try;; 17408 esac 17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17410 (eval "$ac_try") 2>&5 17411 ac_status=$? 17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17413 (exit $ac_status); }; }; then 17414 eval "$as_ac_var=yes" 17415 else 17416 echo "$as_me: failed program was:" >&5 17417 sed 's/^/| /' conftest.$ac_ext >&5 17418 17419 eval "$as_ac_var=no" 17420 fi 17421 17422 rm -f core conftest.err conftest.$ac_objext \ 17423 conftest$ac_exeext conftest.$ac_ext 17424 fi 17425 ac_res=`eval echo '${'$as_ac_var'}'` 17426 { echo "$as_me:$LINENO: result: $ac_res" >&5 17427 echo "${ECHO_T}$ac_res" >&6; } 17428 if test `eval echo '${'$as_ac_var'}'` = yes; then 17429 cat >>confdefs.h <<_ACEOF 17430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17431 _ACEOF 17432 17433 fi 17434 done 17435 17436 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 17437 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 17438 if test "${llvm_cv_c_printf_a+set}" = set; then 17439 echo $ECHO_N "(cached) $ECHO_C" >&6 17440 else 17441 ac_ext=c 17442 ac_cpp='$CPP $CPPFLAGS' 17443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17445 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17446 17447 if test "$cross_compiling" = yes; then 17448 llvmac_cv_c_printf_a=no 17449 else 17450 cat >conftest.$ac_ext <<_ACEOF 17451 17452 /* confdefs.h. */ 17453 _ACEOF 17454 cat confdefs.h >>conftest.$ac_ext 17455 cat >>conftest.$ac_ext <<_ACEOF 17456 /* end confdefs.h. */ 17457 17458 #include <stdio.h> 17459 #include <stdlib.h> 17460 17461 int 17462 main () 17463 { 17464 17465 volatile double A, B; 17466 char Buffer[100]; 17467 A = 1; 17468 A /= 10.0; 17469 sprintf(Buffer, "%a", A); 17470 B = atof(Buffer); 17471 if (A != B) 17472 return (1); 17473 if (A != 0x1.999999999999ap-4) 17474 return (1); 17475 return (0); 17476 ; 17477 return 0; 17478 } 17479 _ACEOF 17480 rm -f conftest$ac_exeext 17481 if { (ac_try="$ac_link" 17482 case "(($ac_try" in 17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17484 *) ac_try_echo=$ac_try;; 17485 esac 17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17487 (eval "$ac_link") 2>&5 17488 ac_status=$? 17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17491 { (case "(($ac_try" in 17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17493 *) ac_try_echo=$ac_try;; 17494 esac 17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17496 (eval "$ac_try") 2>&5 17497 ac_status=$? 17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17499 (exit $ac_status); }; }; then 17500 llvm_cv_c_printf_a=yes 17501 else 17502 echo "$as_me: program exited with status $ac_status" >&5 17503 echo "$as_me: failed program was:" >&5 17504 sed 's/^/| /' conftest.$ac_ext >&5 17505 17506 ( exit $ac_status ) 17507 llvmac_cv_c_printf_a=no 17508 fi 17509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17510 fi 17511 17512 17513 ac_ext=c 17514 ac_cpp='$CPP $CPPFLAGS' 17515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17517 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17518 17519 fi 17520 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 17521 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 17522 if test "$llvm_cv_c_printf_a" = "yes"; then 17523 17524 cat >>confdefs.h <<\_ACEOF 17525 #define HAVE_PRINTF_A 1 17526 _ACEOF 17527 17528 fi 17529 17530 17531 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 17532 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 17533 if test "${ac_cv_func_rand48+set}" = set; then 17534 echo $ECHO_N "(cached) $ECHO_C" >&6 17535 else 17536 ac_ext=cpp 17537 ac_cpp='$CXXCPP $CPPFLAGS' 17538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17541 17542 cat >conftest.$ac_ext <<_ACEOF 17543 /* confdefs.h. */ 17544 _ACEOF 17545 cat confdefs.h >>conftest.$ac_ext 17546 cat >>conftest.$ac_ext <<_ACEOF 17547 /* end confdefs.h. */ 17548 #include <stdlib.h> 17549 int 17550 main () 17551 { 17552 srand48(0);lrand48();drand48(); 17553 ; 17554 return 0; 17555 } 17556 _ACEOF 17557 rm -f conftest.$ac_objext 17558 if { (ac_try="$ac_compile" 17559 case "(($ac_try" in 17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17561 *) ac_try_echo=$ac_try;; 17562 esac 17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17564 (eval "$ac_compile") 2>conftest.er1 17565 ac_status=$? 17566 grep -v '^ *+' conftest.er1 >conftest.err 17567 rm -f conftest.er1 17568 cat conftest.err >&5 17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17570 (exit $ac_status); } && 17571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 17572 { (case "(($ac_try" in 17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17574 *) ac_try_echo=$ac_try;; 17575 esac 17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17577 (eval "$ac_try") 2>&5 17578 ac_status=$? 17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17580 (exit $ac_status); }; } && 17581 { ac_try='test -s conftest.$ac_objext' 17582 { (case "(($ac_try" in 17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17584 *) ac_try_echo=$ac_try;; 17585 esac 17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17587 (eval "$ac_try") 2>&5 17588 ac_status=$? 17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17590 (exit $ac_status); }; }; then 17591 ac_cv_func_rand48=yes 17592 else 17593 echo "$as_me: failed program was:" >&5 17594 sed 's/^/| /' conftest.$ac_ext >&5 17595 17596 ac_cv_func_rand48=no 17597 fi 17598 17599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17600 ac_ext=c 17601 ac_cpp='$CPP $CPPFLAGS' 17602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17604 ac_compiler_gnu=$ac_cv_c_compiler_gnu 17605 17606 fi 17607 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 17608 echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 17609 17610 if test "$ac_cv_func_rand48" = "yes" ; then 17611 17612 cat >>confdefs.h <<\_ACEOF 17613 #define HAVE_RAND48 1 17614 _ACEOF 17615 17616 fi 17617 17618 17619 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 17620 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 17621 if test "${ac_cv_have_decl_strerror_s+set}" = set; then 17622 echo $ECHO_N "(cached) $ECHO_C" >&6 17623 else 17624 cat >conftest.$ac_ext <<_ACEOF 17625 /* confdefs.h. */ 17626 _ACEOF 17627 cat confdefs.h >>conftest.$ac_ext 17628 cat >>conftest.$ac_ext <<_ACEOF 17629 /* end confdefs.h. */ 17630 $ac_includes_default 17631 int 17632 main () 17633 { 17634 #ifndef strerror_s 17635 char *p = (char *) strerror_s; 17636 return !p; 17637 #endif 17638 17639 ; 17640 return 0; 17641 } 17642 _ACEOF 17643 rm -f conftest.$ac_objext 17644 if { (ac_try="$ac_compile" 17645 case "(($ac_try" in 17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17647 *) ac_try_echo=$ac_try;; 17648 esac 17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17650 (eval "$ac_compile") 2>conftest.er1 17651 ac_status=$? 17652 grep -v '^ *+' conftest.er1 >conftest.err 17653 rm -f conftest.er1 17654 cat conftest.err >&5 17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17656 (exit $ac_status); } && 17657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17658 { (case "(($ac_try" in 17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17660 *) ac_try_echo=$ac_try;; 17661 esac 17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17663 (eval "$ac_try") 2>&5 17664 ac_status=$? 17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17666 (exit $ac_status); }; } && 17667 { ac_try='test -s conftest.$ac_objext' 17668 { (case "(($ac_try" in 17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17670 *) ac_try_echo=$ac_try;; 17671 esac 17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17673 (eval "$ac_try") 2>&5 17674 ac_status=$? 17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17676 (exit $ac_status); }; }; then 17677 ac_cv_have_decl_strerror_s=yes 17678 else 17679 echo "$as_me: failed program was:" >&5 17680 sed 's/^/| /' conftest.$ac_ext >&5 17681 17682 ac_cv_have_decl_strerror_s=no 17683 fi 17684 17685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17686 fi 17687 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 17688 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 17689 if test $ac_cv_have_decl_strerror_s = yes; then 17690 17691 cat >>confdefs.h <<_ACEOF 17692 #define HAVE_DECL_STRERROR_S 1 17693 _ACEOF 17694 17695 17696 else 17697 cat >>confdefs.h <<_ACEOF 17698 #define HAVE_DECL_STRERROR_S 0 17699 _ACEOF 17700 17701 17702 fi 17703 17704 17705 17706 if test "$llvm_cv_os_type" = "MingW" ; then 17707 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 17708 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 17709 if test "${ac_cv_lib_gcc__alloca+set}" = set; then 17710 echo $ECHO_N "(cached) $ECHO_C" >&6 17711 else 17712 ac_check_lib_save_LIBS=$LIBS 17713 LIBS="-lgcc $LIBS" 17714 cat >conftest.$ac_ext <<_ACEOF 17715 /* confdefs.h. */ 17716 _ACEOF 17717 cat confdefs.h >>conftest.$ac_ext 17718 cat >>conftest.$ac_ext <<_ACEOF 17719 /* end confdefs.h. */ 17720 17721 /* Override any GCC internal prototype to avoid an error. 17722 Use char because int might match the return type of a GCC 17723 builtin and then its argument prototype would still apply. */ 17724 #ifdef __cplusplus 17725 extern "C" 17726 #endif 17727 char _alloca (); 17728 int 17729 main () 17730 { 17731 return _alloca (); 17732 ; 17733 return 0; 17734 } 17735 _ACEOF 17736 rm -f conftest.$ac_objext conftest$ac_exeext 17737 if { (ac_try="$ac_link" 17738 case "(($ac_try" in 17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17740 *) ac_try_echo=$ac_try;; 17741 esac 17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17743 (eval "$ac_link") 2>conftest.er1 17744 ac_status=$? 17745 grep -v '^ *+' conftest.er1 >conftest.err 17746 rm -f conftest.er1 17747 cat conftest.err >&5 17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17749 (exit $ac_status); } && 17750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17751 { (case "(($ac_try" in 17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17753 *) ac_try_echo=$ac_try;; 17754 esac 17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17756 (eval "$ac_try") 2>&5 17757 ac_status=$? 17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17759 (exit $ac_status); }; } && 17760 { ac_try='test -s conftest$ac_exeext' 17761 { (case "(($ac_try" in 17762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17763 *) ac_try_echo=$ac_try;; 17764 esac 17765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17766 (eval "$ac_try") 2>&5 17767 ac_status=$? 17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17769 (exit $ac_status); }; }; then 17770 ac_cv_lib_gcc__alloca=yes 17771 else 17772 echo "$as_me: failed program was:" >&5 17773 sed 's/^/| /' conftest.$ac_ext >&5 17774 17775 ac_cv_lib_gcc__alloca=no 17776 fi 17777 17778 rm -f core conftest.err conftest.$ac_objext \ 17779 conftest$ac_exeext conftest.$ac_ext 17780 LIBS=$ac_check_lib_save_LIBS 17781 fi 17782 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 17783 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 17784 if test $ac_cv_lib_gcc__alloca = yes; then 17785 17786 cat >>confdefs.h <<\_ACEOF 17787 #define HAVE__ALLOCA 1 17788 _ACEOF 17789 17790 fi 17791 17792 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 17793 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 17794 if test "${ac_cv_lib_gcc___alloca+set}" = set; then 17795 echo $ECHO_N "(cached) $ECHO_C" >&6 17796 else 17797 ac_check_lib_save_LIBS=$LIBS 17798 LIBS="-lgcc $LIBS" 17799 cat >conftest.$ac_ext <<_ACEOF 17800 /* confdefs.h. */ 17801 _ACEOF 17802 cat confdefs.h >>conftest.$ac_ext 17803 cat >>conftest.$ac_ext <<_ACEOF 17804 /* end confdefs.h. */ 17805 17806 /* Override any GCC internal prototype to avoid an error. 17807 Use char because int might match the return type of a GCC 17808 builtin and then its argument prototype would still apply. */ 17809 #ifdef __cplusplus 17810 extern "C" 17811 #endif 17812 char __alloca (); 17813 int 17814 main () 17815 { 17816 return __alloca (); 17817 ; 17818 return 0; 17819 } 17820 _ACEOF 17821 rm -f conftest.$ac_objext conftest$ac_exeext 17822 if { (ac_try="$ac_link" 17823 case "(($ac_try" in 17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17825 *) ac_try_echo=$ac_try;; 17826 esac 17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17828 (eval "$ac_link") 2>conftest.er1 17829 ac_status=$? 17830 grep -v '^ *+' conftest.er1 >conftest.err 17831 rm -f conftest.er1 17832 cat conftest.err >&5 17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17834 (exit $ac_status); } && 17835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17836 { (case "(($ac_try" in 17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17838 *) ac_try_echo=$ac_try;; 17839 esac 17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17841 (eval "$ac_try") 2>&5 17842 ac_status=$? 17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17844 (exit $ac_status); }; } && 17845 { ac_try='test -s conftest$ac_exeext' 17846 { (case "(($ac_try" in 17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17848 *) ac_try_echo=$ac_try;; 17849 esac 17850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17851 (eval "$ac_try") 2>&5 17852 ac_status=$? 17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17854 (exit $ac_status); }; }; then 17855 ac_cv_lib_gcc___alloca=yes 17856 else 17857 echo "$as_me: failed program was:" >&5 17858 sed 's/^/| /' conftest.$ac_ext >&5 17859 17860 ac_cv_lib_gcc___alloca=no 17861 fi 17862 17863 rm -f core conftest.err conftest.$ac_objext \ 17864 conftest$ac_exeext conftest.$ac_ext 17865 LIBS=$ac_check_lib_save_LIBS 17866 fi 17867 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 17868 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 17869 if test $ac_cv_lib_gcc___alloca = yes; then 17870 17871 cat >>confdefs.h <<\_ACEOF 17872 #define HAVE___ALLOCA 1 17873 _ACEOF 17874 17875 fi 17876 17877 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 17878 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 17879 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 17880 echo $ECHO_N "(cached) $ECHO_C" >&6 17881 else 17882 ac_check_lib_save_LIBS=$LIBS 17883 LIBS="-lgcc $LIBS" 17884 cat >conftest.$ac_ext <<_ACEOF 17885 /* confdefs.h. */ 17886 _ACEOF 17887 cat confdefs.h >>conftest.$ac_ext 17888 cat >>conftest.$ac_ext <<_ACEOF 17889 /* end confdefs.h. */ 17890 17891 /* Override any GCC internal prototype to avoid an error. 17892 Use char because int might match the return type of a GCC 17893 builtin and then its argument prototype would still apply. */ 17894 #ifdef __cplusplus 17895 extern "C" 17896 #endif 17897 char __chkstk (); 17898 int 17899 main () 17900 { 17901 return __chkstk (); 17902 ; 17903 return 0; 17904 } 17905 _ACEOF 17906 rm -f conftest.$ac_objext conftest$ac_exeext 17907 if { (ac_try="$ac_link" 17908 case "(($ac_try" in 17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17910 *) ac_try_echo=$ac_try;; 17911 esac 17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17913 (eval "$ac_link") 2>conftest.er1 17914 ac_status=$? 17915 grep -v '^ *+' conftest.er1 >conftest.err 17916 rm -f conftest.er1 17917 cat conftest.err >&5 17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17919 (exit $ac_status); } && 17920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17921 { (case "(($ac_try" in 17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17923 *) ac_try_echo=$ac_try;; 17924 esac 17925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17926 (eval "$ac_try") 2>&5 17927 ac_status=$? 17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17929 (exit $ac_status); }; } && 17930 { ac_try='test -s conftest$ac_exeext' 17931 { (case "(($ac_try" in 17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17933 *) ac_try_echo=$ac_try;; 17934 esac 17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17936 (eval "$ac_try") 2>&5 17937 ac_status=$? 17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17939 (exit $ac_status); }; }; then 17940 ac_cv_lib_gcc___chkstk=yes 17941 else 17942 echo "$as_me: failed program was:" >&5 17943 sed 's/^/| /' conftest.$ac_ext >&5 17944 17945 ac_cv_lib_gcc___chkstk=no 17946 fi 17947 17948 rm -f core conftest.err conftest.$ac_objext \ 17949 conftest$ac_exeext conftest.$ac_ext 17950 LIBS=$ac_check_lib_save_LIBS 17951 fi 17952 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 17953 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 17954 if test $ac_cv_lib_gcc___chkstk = yes; then 17955 17956 cat >>confdefs.h <<\_ACEOF 17957 #define HAVE___CHKSTK 1 17958 _ACEOF 17959 17960 fi 17961 17962 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 17963 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 17964 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 17965 echo $ECHO_N "(cached) $ECHO_C" >&6 17966 else 17967 ac_check_lib_save_LIBS=$LIBS 17968 LIBS="-lgcc $LIBS" 17969 cat >conftest.$ac_ext <<_ACEOF 17970 /* confdefs.h. */ 17971 _ACEOF 17972 cat confdefs.h >>conftest.$ac_ext 17973 cat >>conftest.$ac_ext <<_ACEOF 17974 /* end confdefs.h. */ 17975 17976 /* Override any GCC internal prototype to avoid an error. 17977 Use char because int might match the return type of a GCC 17978 builtin and then its argument prototype would still apply. */ 17979 #ifdef __cplusplus 17980 extern "C" 17981 #endif 17982 char ___chkstk (); 17983 int 17984 main () 17985 { 17986 return ___chkstk (); 17987 ; 17988 return 0; 17989 } 17990 _ACEOF 17991 rm -f conftest.$ac_objext conftest$ac_exeext 17992 if { (ac_try="$ac_link" 17993 case "(($ac_try" in 17994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17995 *) ac_try_echo=$ac_try;; 17996 esac 17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17998 (eval "$ac_link") 2>conftest.er1 17999 ac_status=$? 18000 grep -v '^ *+' conftest.er1 >conftest.err 18001 rm -f conftest.er1 18002 cat conftest.err >&5 18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18004 (exit $ac_status); } && 18005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18006 { (case "(($ac_try" in 18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18008 *) ac_try_echo=$ac_try;; 18009 esac 18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18011 (eval "$ac_try") 2>&5 18012 ac_status=$? 18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18014 (exit $ac_status); }; } && 18015 { ac_try='test -s conftest$ac_exeext' 18016 { (case "(($ac_try" in 18017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18018 *) ac_try_echo=$ac_try;; 18019 esac 18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18021 (eval "$ac_try") 2>&5 18022 ac_status=$? 18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18024 (exit $ac_status); }; }; then 18025 ac_cv_lib_gcc____chkstk=yes 18026 else 18027 echo "$as_me: failed program was:" >&5 18028 sed 's/^/| /' conftest.$ac_ext >&5 18029 18030 ac_cv_lib_gcc____chkstk=no 18031 fi 18032 18033 rm -f core conftest.err conftest.$ac_objext \ 18034 conftest$ac_exeext conftest.$ac_ext 18035 LIBS=$ac_check_lib_save_LIBS 18036 fi 18037 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 18038 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 18039 if test $ac_cv_lib_gcc____chkstk = yes; then 18040 18041 cat >>confdefs.h <<\_ACEOF 18042 #define HAVE____CHKSTK 1 18043 _ACEOF 18044 18045 fi 18046 18047 18048 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 18049 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 18050 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 18051 echo $ECHO_N "(cached) $ECHO_C" >&6 18052 else 18053 ac_check_lib_save_LIBS=$LIBS 18054 LIBS="-lgcc $LIBS" 18055 cat >conftest.$ac_ext <<_ACEOF 18056 /* confdefs.h. */ 18057 _ACEOF 18058 cat confdefs.h >>conftest.$ac_ext 18059 cat >>conftest.$ac_ext <<_ACEOF 18060 /* end confdefs.h. */ 18061 18062 /* Override any GCC internal prototype to avoid an error. 18063 Use char because int might match the return type of a GCC 18064 builtin and then its argument prototype would still apply. */ 18065 #ifdef __cplusplus 18066 extern "C" 18067 #endif 18068 char __ashldi3 (); 18069 int 18070 main () 18071 { 18072 return __ashldi3 (); 18073 ; 18074 return 0; 18075 } 18076 _ACEOF 18077 rm -f conftest.$ac_objext conftest$ac_exeext 18078 if { (ac_try="$ac_link" 18079 case "(($ac_try" in 18080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18081 *) ac_try_echo=$ac_try;; 18082 esac 18083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18084 (eval "$ac_link") 2>conftest.er1 18085 ac_status=$? 18086 grep -v '^ *+' conftest.er1 >conftest.err 18087 rm -f conftest.er1 18088 cat conftest.err >&5 18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18090 (exit $ac_status); } && 18091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18092 { (case "(($ac_try" in 18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18094 *) ac_try_echo=$ac_try;; 18095 esac 18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18097 (eval "$ac_try") 2>&5 18098 ac_status=$? 18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18100 (exit $ac_status); }; } && 18101 { ac_try='test -s conftest$ac_exeext' 18102 { (case "(($ac_try" in 18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18104 *) ac_try_echo=$ac_try;; 18105 esac 18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18107 (eval "$ac_try") 2>&5 18108 ac_status=$? 18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18110 (exit $ac_status); }; }; then 18111 ac_cv_lib_gcc___ashldi3=yes 18112 else 18113 echo "$as_me: failed program was:" >&5 18114 sed 's/^/| /' conftest.$ac_ext >&5 18115 18116 ac_cv_lib_gcc___ashldi3=no 18117 fi 18118 18119 rm -f core conftest.err conftest.$ac_objext \ 18120 conftest$ac_exeext conftest.$ac_ext 18121 LIBS=$ac_check_lib_save_LIBS 18122 fi 18123 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 18124 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 18125 if test $ac_cv_lib_gcc___ashldi3 = yes; then 18126 18127 cat >>confdefs.h <<\_ACEOF 18128 #define HAVE___ASHLDI3 1 18129 _ACEOF 18130 18131 fi 18132 18133 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 18134 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 18135 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 18136 echo $ECHO_N "(cached) $ECHO_C" >&6 18137 else 18138 ac_check_lib_save_LIBS=$LIBS 18139 LIBS="-lgcc $LIBS" 18140 cat >conftest.$ac_ext <<_ACEOF 18141 /* confdefs.h. */ 18142 _ACEOF 18143 cat confdefs.h >>conftest.$ac_ext 18144 cat >>conftest.$ac_ext <<_ACEOF 18145 /* end confdefs.h. */ 18146 18147 /* Override any GCC internal prototype to avoid an error. 18148 Use char because int might match the return type of a GCC 18149 builtin and then its argument prototype would still apply. */ 18150 #ifdef __cplusplus 18151 extern "C" 18152 #endif 18153 char __ashrdi3 (); 18154 int 18155 main () 18156 { 18157 return __ashrdi3 (); 18158 ; 18159 return 0; 18160 } 18161 _ACEOF 18162 rm -f conftest.$ac_objext conftest$ac_exeext 18163 if { (ac_try="$ac_link" 18164 case "(($ac_try" in 18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18166 *) ac_try_echo=$ac_try;; 18167 esac 18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18169 (eval "$ac_link") 2>conftest.er1 18170 ac_status=$? 18171 grep -v '^ *+' conftest.er1 >conftest.err 18172 rm -f conftest.er1 18173 cat conftest.err >&5 18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18175 (exit $ac_status); } && 18176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18177 { (case "(($ac_try" in 18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18179 *) ac_try_echo=$ac_try;; 18180 esac 18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18182 (eval "$ac_try") 2>&5 18183 ac_status=$? 18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18185 (exit $ac_status); }; } && 18186 { ac_try='test -s conftest$ac_exeext' 18187 { (case "(($ac_try" in 18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18189 *) ac_try_echo=$ac_try;; 18190 esac 18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18192 (eval "$ac_try") 2>&5 18193 ac_status=$? 18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18195 (exit $ac_status); }; }; then 18196 ac_cv_lib_gcc___ashrdi3=yes 18197 else 18198 echo "$as_me: failed program was:" >&5 18199 sed 's/^/| /' conftest.$ac_ext >&5 18200 18201 ac_cv_lib_gcc___ashrdi3=no 18202 fi 18203 18204 rm -f core conftest.err conftest.$ac_objext \ 18205 conftest$ac_exeext conftest.$ac_ext 18206 LIBS=$ac_check_lib_save_LIBS 18207 fi 18208 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 18209 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 18210 if test $ac_cv_lib_gcc___ashrdi3 = yes; then 18211 18212 cat >>confdefs.h <<\_ACEOF 18213 #define HAVE___ASHRDI3 1 18214 _ACEOF 18215 18216 fi 18217 18218 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 18219 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 18220 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 18221 echo $ECHO_N "(cached) $ECHO_C" >&6 18222 else 18223 ac_check_lib_save_LIBS=$LIBS 18224 LIBS="-lgcc $LIBS" 18225 cat >conftest.$ac_ext <<_ACEOF 18226 /* confdefs.h. */ 18227 _ACEOF 18228 cat confdefs.h >>conftest.$ac_ext 18229 cat >>conftest.$ac_ext <<_ACEOF 18230 /* end confdefs.h. */ 18231 18232 /* Override any GCC internal prototype to avoid an error. 18233 Use char because int might match the return type of a GCC 18234 builtin and then its argument prototype would still apply. */ 18235 #ifdef __cplusplus 18236 extern "C" 18237 #endif 18238 char __divdi3 (); 18239 int 18240 main () 18241 { 18242 return __divdi3 (); 18243 ; 18244 return 0; 18245 } 18246 _ACEOF 18247 rm -f conftest.$ac_objext conftest$ac_exeext 18248 if { (ac_try="$ac_link" 18249 case "(($ac_try" in 18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18251 *) ac_try_echo=$ac_try;; 18252 esac 18253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18254 (eval "$ac_link") 2>conftest.er1 18255 ac_status=$? 18256 grep -v '^ *+' conftest.er1 >conftest.err 18257 rm -f conftest.er1 18258 cat conftest.err >&5 18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18260 (exit $ac_status); } && 18261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18262 { (case "(($ac_try" in 18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18264 *) ac_try_echo=$ac_try;; 18265 esac 18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18267 (eval "$ac_try") 2>&5 18268 ac_status=$? 18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18270 (exit $ac_status); }; } && 18271 { ac_try='test -s conftest$ac_exeext' 18272 { (case "(($ac_try" in 18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18274 *) ac_try_echo=$ac_try;; 18275 esac 18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18277 (eval "$ac_try") 2>&5 18278 ac_status=$? 18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18280 (exit $ac_status); }; }; then 18281 ac_cv_lib_gcc___divdi3=yes 18282 else 18283 echo "$as_me: failed program was:" >&5 18284 sed 's/^/| /' conftest.$ac_ext >&5 18285 18286 ac_cv_lib_gcc___divdi3=no 18287 fi 18288 18289 rm -f core conftest.err conftest.$ac_objext \ 18290 conftest$ac_exeext conftest.$ac_ext 18291 LIBS=$ac_check_lib_save_LIBS 18292 fi 18293 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 18294 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 18295 if test $ac_cv_lib_gcc___divdi3 = yes; then 18296 18297 cat >>confdefs.h <<\_ACEOF 18298 #define HAVE___DIVDI3 1 18299 _ACEOF 18300 18301 fi 18302 18303 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 18304 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 18305 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 18306 echo $ECHO_N "(cached) $ECHO_C" >&6 18307 else 18308 ac_check_lib_save_LIBS=$LIBS 18309 LIBS="-lgcc $LIBS" 18310 cat >conftest.$ac_ext <<_ACEOF 18311 /* confdefs.h. */ 18312 _ACEOF 18313 cat confdefs.h >>conftest.$ac_ext 18314 cat >>conftest.$ac_ext <<_ACEOF 18315 /* end confdefs.h. */ 18316 18317 /* Override any GCC internal prototype to avoid an error. 18318 Use char because int might match the return type of a GCC 18319 builtin and then its argument prototype would still apply. */ 18320 #ifdef __cplusplus 18321 extern "C" 18322 #endif 18323 char __fixdfdi (); 18324 int 18325 main () 18326 { 18327 return __fixdfdi (); 18328 ; 18329 return 0; 18330 } 18331 _ACEOF 18332 rm -f conftest.$ac_objext conftest$ac_exeext 18333 if { (ac_try="$ac_link" 18334 case "(($ac_try" in 18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18336 *) ac_try_echo=$ac_try;; 18337 esac 18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18339 (eval "$ac_link") 2>conftest.er1 18340 ac_status=$? 18341 grep -v '^ *+' conftest.er1 >conftest.err 18342 rm -f conftest.er1 18343 cat conftest.err >&5 18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18345 (exit $ac_status); } && 18346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18347 { (case "(($ac_try" in 18348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18349 *) ac_try_echo=$ac_try;; 18350 esac 18351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18352 (eval "$ac_try") 2>&5 18353 ac_status=$? 18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18355 (exit $ac_status); }; } && 18356 { ac_try='test -s conftest$ac_exeext' 18357 { (case "(($ac_try" in 18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18359 *) ac_try_echo=$ac_try;; 18360 esac 18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18362 (eval "$ac_try") 2>&5 18363 ac_status=$? 18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18365 (exit $ac_status); }; }; then 18366 ac_cv_lib_gcc___fixdfdi=yes 18367 else 18368 echo "$as_me: failed program was:" >&5 18369 sed 's/^/| /' conftest.$ac_ext >&5 18370 18371 ac_cv_lib_gcc___fixdfdi=no 18372 fi 18373 18374 rm -f core conftest.err conftest.$ac_objext \ 18375 conftest$ac_exeext conftest.$ac_ext 18376 LIBS=$ac_check_lib_save_LIBS 18377 fi 18378 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 18379 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 18380 if test $ac_cv_lib_gcc___fixdfdi = yes; then 18381 18382 cat >>confdefs.h <<\_ACEOF 18383 #define HAVE___FIXDFDI 1 18384 _ACEOF 18385 18386 fi 18387 18388 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 18389 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 18390 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 18391 echo $ECHO_N "(cached) $ECHO_C" >&6 18392 else 18393 ac_check_lib_save_LIBS=$LIBS 18394 LIBS="-lgcc $LIBS" 18395 cat >conftest.$ac_ext <<_ACEOF 18396 /* confdefs.h. */ 18397 _ACEOF 18398 cat confdefs.h >>conftest.$ac_ext 18399 cat >>conftest.$ac_ext <<_ACEOF 18400 /* end confdefs.h. */ 18401 18402 /* Override any GCC internal prototype to avoid an error. 18403 Use char because int might match the return type of a GCC 18404 builtin and then its argument prototype would still apply. */ 18405 #ifdef __cplusplus 18406 extern "C" 18407 #endif 18408 char __fixsfdi (); 18409 int 18410 main () 18411 { 18412 return __fixsfdi (); 18413 ; 18414 return 0; 18415 } 18416 _ACEOF 18417 rm -f conftest.$ac_objext conftest$ac_exeext 18418 if { (ac_try="$ac_link" 18419 case "(($ac_try" in 18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18421 *) ac_try_echo=$ac_try;; 18422 esac 18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18424 (eval "$ac_link") 2>conftest.er1 18425 ac_status=$? 18426 grep -v '^ *+' conftest.er1 >conftest.err 18427 rm -f conftest.er1 18428 cat conftest.err >&5 18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18430 (exit $ac_status); } && 18431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18432 { (case "(($ac_try" in 18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18434 *) ac_try_echo=$ac_try;; 18435 esac 18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18437 (eval "$ac_try") 2>&5 18438 ac_status=$? 18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18440 (exit $ac_status); }; } && 18441 { ac_try='test -s conftest$ac_exeext' 18442 { (case "(($ac_try" in 18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18444 *) ac_try_echo=$ac_try;; 18445 esac 18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18447 (eval "$ac_try") 2>&5 18448 ac_status=$? 18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18450 (exit $ac_status); }; }; then 18451 ac_cv_lib_gcc___fixsfdi=yes 18452 else 18453 echo "$as_me: failed program was:" >&5 18454 sed 's/^/| /' conftest.$ac_ext >&5 18455 18456 ac_cv_lib_gcc___fixsfdi=no 18457 fi 18458 18459 rm -f core conftest.err conftest.$ac_objext \ 18460 conftest$ac_exeext conftest.$ac_ext 18461 LIBS=$ac_check_lib_save_LIBS 18462 fi 18463 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 18464 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 18465 if test $ac_cv_lib_gcc___fixsfdi = yes; then 18466 18467 cat >>confdefs.h <<\_ACEOF 18468 #define HAVE___FIXSFDI 1 18469 _ACEOF 18470 18471 fi 18472 18473 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 18474 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 18475 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 18476 echo $ECHO_N "(cached) $ECHO_C" >&6 18477 else 18478 ac_check_lib_save_LIBS=$LIBS 18479 LIBS="-lgcc $LIBS" 18480 cat >conftest.$ac_ext <<_ACEOF 18481 /* confdefs.h. */ 18482 _ACEOF 18483 cat confdefs.h >>conftest.$ac_ext 18484 cat >>conftest.$ac_ext <<_ACEOF 18485 /* end confdefs.h. */ 18486 18487 /* Override any GCC internal prototype to avoid an error. 18488 Use char because int might match the return type of a GCC 18489 builtin and then its argument prototype would still apply. */ 18490 #ifdef __cplusplus 18491 extern "C" 18492 #endif 18493 char __floatdidf (); 18494 int 18495 main () 18496 { 18497 return __floatdidf (); 18498 ; 18499 return 0; 18500 } 18501 _ACEOF 18502 rm -f conftest.$ac_objext conftest$ac_exeext 18503 if { (ac_try="$ac_link" 18504 case "(($ac_try" in 18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18506 *) ac_try_echo=$ac_try;; 18507 esac 18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18509 (eval "$ac_link") 2>conftest.er1 18510 ac_status=$? 18511 grep -v '^ *+' conftest.er1 >conftest.err 18512 rm -f conftest.er1 18513 cat conftest.err >&5 18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18515 (exit $ac_status); } && 18516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18517 { (case "(($ac_try" in 18518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18519 *) ac_try_echo=$ac_try;; 18520 esac 18521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18522 (eval "$ac_try") 2>&5 18523 ac_status=$? 18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18525 (exit $ac_status); }; } && 18526 { ac_try='test -s conftest$ac_exeext' 18527 { (case "(($ac_try" in 18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18529 *) ac_try_echo=$ac_try;; 18530 esac 18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18532 (eval "$ac_try") 2>&5 18533 ac_status=$? 18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18535 (exit $ac_status); }; }; then 18536 ac_cv_lib_gcc___floatdidf=yes 18537 else 18538 echo "$as_me: failed program was:" >&5 18539 sed 's/^/| /' conftest.$ac_ext >&5 18540 18541 ac_cv_lib_gcc___floatdidf=no 18542 fi 18543 18544 rm -f core conftest.err conftest.$ac_objext \ 18545 conftest$ac_exeext conftest.$ac_ext 18546 LIBS=$ac_check_lib_save_LIBS 18547 fi 18548 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 18549 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 18550 if test $ac_cv_lib_gcc___floatdidf = yes; then 18551 18552 cat >>confdefs.h <<\_ACEOF 18553 #define HAVE___FLOATDIDF 1 18554 _ACEOF 18555 18556 fi 18557 18558 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 18559 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 18560 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 18561 echo $ECHO_N "(cached) $ECHO_C" >&6 18562 else 18563 ac_check_lib_save_LIBS=$LIBS 18564 LIBS="-lgcc $LIBS" 18565 cat >conftest.$ac_ext <<_ACEOF 18566 /* confdefs.h. */ 18567 _ACEOF 18568 cat confdefs.h >>conftest.$ac_ext 18569 cat >>conftest.$ac_ext <<_ACEOF 18570 /* end confdefs.h. */ 18571 18572 /* Override any GCC internal prototype to avoid an error. 18573 Use char because int might match the return type of a GCC 18574 builtin and then its argument prototype would still apply. */ 18575 #ifdef __cplusplus 18576 extern "C" 18577 #endif 18578 char __lshrdi3 (); 18579 int 18580 main () 18581 { 18582 return __lshrdi3 (); 18583 ; 18584 return 0; 18585 } 18586 _ACEOF 18587 rm -f conftest.$ac_objext conftest$ac_exeext 18588 if { (ac_try="$ac_link" 18589 case "(($ac_try" in 18590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18591 *) ac_try_echo=$ac_try;; 18592 esac 18593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18594 (eval "$ac_link") 2>conftest.er1 18595 ac_status=$? 18596 grep -v '^ *+' conftest.er1 >conftest.err 18597 rm -f conftest.er1 18598 cat conftest.err >&5 18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18600 (exit $ac_status); } && 18601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18602 { (case "(($ac_try" in 18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18604 *) ac_try_echo=$ac_try;; 18605 esac 18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18607 (eval "$ac_try") 2>&5 18608 ac_status=$? 18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18610 (exit $ac_status); }; } && 18611 { ac_try='test -s conftest$ac_exeext' 18612 { (case "(($ac_try" in 18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18614 *) ac_try_echo=$ac_try;; 18615 esac 18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18617 (eval "$ac_try") 2>&5 18618 ac_status=$? 18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18620 (exit $ac_status); }; }; then 18621 ac_cv_lib_gcc___lshrdi3=yes 18622 else 18623 echo "$as_me: failed program was:" >&5 18624 sed 's/^/| /' conftest.$ac_ext >&5 18625 18626 ac_cv_lib_gcc___lshrdi3=no 18627 fi 18628 18629 rm -f core conftest.err conftest.$ac_objext \ 18630 conftest$ac_exeext conftest.$ac_ext 18631 LIBS=$ac_check_lib_save_LIBS 18632 fi 18633 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 18634 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 18635 if test $ac_cv_lib_gcc___lshrdi3 = yes; then 18636 18637 cat >>confdefs.h <<\_ACEOF 18638 #define HAVE___LSHRDI3 1 18639 _ACEOF 18640 18641 fi 18642 18643 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 18644 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 18645 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 18646 echo $ECHO_N "(cached) $ECHO_C" >&6 18647 else 18648 ac_check_lib_save_LIBS=$LIBS 18649 LIBS="-lgcc $LIBS" 18650 cat >conftest.$ac_ext <<_ACEOF 18651 /* confdefs.h. */ 18652 _ACEOF 18653 cat confdefs.h >>conftest.$ac_ext 18654 cat >>conftest.$ac_ext <<_ACEOF 18655 /* end confdefs.h. */ 18656 18657 /* Override any GCC internal prototype to avoid an error. 18658 Use char because int might match the return type of a GCC 18659 builtin and then its argument prototype would still apply. */ 18660 #ifdef __cplusplus 18661 extern "C" 18662 #endif 18663 char __moddi3 (); 18664 int 18665 main () 18666 { 18667 return __moddi3 (); 18668 ; 18669 return 0; 18670 } 18671 _ACEOF 18672 rm -f conftest.$ac_objext conftest$ac_exeext 18673 if { (ac_try="$ac_link" 18674 case "(($ac_try" in 18675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18676 *) ac_try_echo=$ac_try;; 18677 esac 18678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18679 (eval "$ac_link") 2>conftest.er1 18680 ac_status=$? 18681 grep -v '^ *+' conftest.er1 >conftest.err 18682 rm -f conftest.er1 18683 cat conftest.err >&5 18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18685 (exit $ac_status); } && 18686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18687 { (case "(($ac_try" in 18688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18689 *) ac_try_echo=$ac_try;; 18690 esac 18691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18692 (eval "$ac_try") 2>&5 18693 ac_status=$? 18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18695 (exit $ac_status); }; } && 18696 { ac_try='test -s conftest$ac_exeext' 18697 { (case "(($ac_try" in 18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18699 *) ac_try_echo=$ac_try;; 18700 esac 18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18702 (eval "$ac_try") 2>&5 18703 ac_status=$? 18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18705 (exit $ac_status); }; }; then 18706 ac_cv_lib_gcc___moddi3=yes 18707 else 18708 echo "$as_me: failed program was:" >&5 18709 sed 's/^/| /' conftest.$ac_ext >&5 18710 18711 ac_cv_lib_gcc___moddi3=no 18712 fi 18713 18714 rm -f core conftest.err conftest.$ac_objext \ 18715 conftest$ac_exeext conftest.$ac_ext 18716 LIBS=$ac_check_lib_save_LIBS 18717 fi 18718 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 18719 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 18720 if test $ac_cv_lib_gcc___moddi3 = yes; then 18721 18722 cat >>confdefs.h <<\_ACEOF 18723 #define HAVE___MODDI3 1 18724 _ACEOF 18725 18726 fi 18727 18728 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 18729 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 18730 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 18731 echo $ECHO_N "(cached) $ECHO_C" >&6 18732 else 18733 ac_check_lib_save_LIBS=$LIBS 18734 LIBS="-lgcc $LIBS" 18735 cat >conftest.$ac_ext <<_ACEOF 18736 /* confdefs.h. */ 18737 _ACEOF 18738 cat confdefs.h >>conftest.$ac_ext 18739 cat >>conftest.$ac_ext <<_ACEOF 18740 /* end confdefs.h. */ 18741 18742 /* Override any GCC internal prototype to avoid an error. 18743 Use char because int might match the return type of a GCC 18744 builtin and then its argument prototype would still apply. */ 18745 #ifdef __cplusplus 18746 extern "C" 18747 #endif 18748 char __udivdi3 (); 18749 int 18750 main () 18751 { 18752 return __udivdi3 (); 18753 ; 18754 return 0; 18755 } 18756 _ACEOF 18757 rm -f conftest.$ac_objext conftest$ac_exeext 18758 if { (ac_try="$ac_link" 18759 case "(($ac_try" in 18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18761 *) ac_try_echo=$ac_try;; 18762 esac 18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18764 (eval "$ac_link") 2>conftest.er1 18765 ac_status=$? 18766 grep -v '^ *+' conftest.er1 >conftest.err 18767 rm -f conftest.er1 18768 cat conftest.err >&5 18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18770 (exit $ac_status); } && 18771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18772 { (case "(($ac_try" in 18773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18774 *) ac_try_echo=$ac_try;; 18775 esac 18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18777 (eval "$ac_try") 2>&5 18778 ac_status=$? 18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18780 (exit $ac_status); }; } && 18781 { ac_try='test -s conftest$ac_exeext' 18782 { (case "(($ac_try" in 18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18784 *) ac_try_echo=$ac_try;; 18785 esac 18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18787 (eval "$ac_try") 2>&5 18788 ac_status=$? 18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18790 (exit $ac_status); }; }; then 18791 ac_cv_lib_gcc___udivdi3=yes 18792 else 18793 echo "$as_me: failed program was:" >&5 18794 sed 's/^/| /' conftest.$ac_ext >&5 18795 18796 ac_cv_lib_gcc___udivdi3=no 18797 fi 18798 18799 rm -f core conftest.err conftest.$ac_objext \ 18800 conftest$ac_exeext conftest.$ac_ext 18801 LIBS=$ac_check_lib_save_LIBS 18802 fi 18803 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 18804 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 18805 if test $ac_cv_lib_gcc___udivdi3 = yes; then 18806 18807 cat >>confdefs.h <<\_ACEOF 18808 #define HAVE___UDIVDI3 1 18809 _ACEOF 18810 18811 fi 18812 18813 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 18814 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 18815 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 18816 echo $ECHO_N "(cached) $ECHO_C" >&6 18817 else 18818 ac_check_lib_save_LIBS=$LIBS 18819 LIBS="-lgcc $LIBS" 18820 cat >conftest.$ac_ext <<_ACEOF 18821 /* confdefs.h. */ 18822 _ACEOF 18823 cat confdefs.h >>conftest.$ac_ext 18824 cat >>conftest.$ac_ext <<_ACEOF 18825 /* end confdefs.h. */ 18826 18827 /* Override any GCC internal prototype to avoid an error. 18828 Use char because int might match the return type of a GCC 18829 builtin and then its argument prototype would still apply. */ 18830 #ifdef __cplusplus 18831 extern "C" 18832 #endif 18833 char __umoddi3 (); 18834 int 18835 main () 18836 { 18837 return __umoddi3 (); 18838 ; 18839 return 0; 18840 } 18841 _ACEOF 18842 rm -f conftest.$ac_objext conftest$ac_exeext 18843 if { (ac_try="$ac_link" 18844 case "(($ac_try" in 18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18846 *) ac_try_echo=$ac_try;; 18847 esac 18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18849 (eval "$ac_link") 2>conftest.er1 18850 ac_status=$? 18851 grep -v '^ *+' conftest.er1 >conftest.err 18852 rm -f conftest.er1 18853 cat conftest.err >&5 18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18855 (exit $ac_status); } && 18856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18857 { (case "(($ac_try" in 18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18859 *) ac_try_echo=$ac_try;; 18860 esac 18861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18862 (eval "$ac_try") 2>&5 18863 ac_status=$? 18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18865 (exit $ac_status); }; } && 18866 { ac_try='test -s conftest$ac_exeext' 18867 { (case "(($ac_try" in 18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18869 *) ac_try_echo=$ac_try;; 18870 esac 18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18872 (eval "$ac_try") 2>&5 18873 ac_status=$? 18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18875 (exit $ac_status); }; }; then 18876 ac_cv_lib_gcc___umoddi3=yes 18877 else 18878 echo "$as_me: failed program was:" >&5 18879 sed 's/^/| /' conftest.$ac_ext >&5 18880 18881 ac_cv_lib_gcc___umoddi3=no 18882 fi 18883 18884 rm -f core conftest.err conftest.$ac_objext \ 18885 conftest$ac_exeext conftest.$ac_ext 18886 LIBS=$ac_check_lib_save_LIBS 18887 fi 18888 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 18889 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 18890 if test $ac_cv_lib_gcc___umoddi3 = yes; then 18891 18892 cat >>confdefs.h <<\_ACEOF 18893 #define HAVE___UMODDI3 1 18894 _ACEOF 18895 18896 fi 18897 18898 18899 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 18900 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 18901 if test "${ac_cv_lib_gcc___main+set}" = set; then 18902 echo $ECHO_N "(cached) $ECHO_C" >&6 18903 else 18904 ac_check_lib_save_LIBS=$LIBS 18905 LIBS="-lgcc $LIBS" 18906 cat >conftest.$ac_ext <<_ACEOF 18907 /* confdefs.h. */ 18908 _ACEOF 18909 cat confdefs.h >>conftest.$ac_ext 18910 cat >>conftest.$ac_ext <<_ACEOF 18911 /* end confdefs.h. */ 18912 18913 /* Override any GCC internal prototype to avoid an error. 18914 Use char because int might match the return type of a GCC 18915 builtin and then its argument prototype would still apply. */ 18916 #ifdef __cplusplus 18917 extern "C" 18918 #endif 18919 char __main (); 18920 int 18921 main () 18922 { 18923 return __main (); 18924 ; 18925 return 0; 18926 } 18927 _ACEOF 18928 rm -f conftest.$ac_objext conftest$ac_exeext 18929 if { (ac_try="$ac_link" 18930 case "(($ac_try" in 18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18932 *) ac_try_echo=$ac_try;; 18933 esac 18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18935 (eval "$ac_link") 2>conftest.er1 18936 ac_status=$? 18937 grep -v '^ *+' conftest.er1 >conftest.err 18938 rm -f conftest.er1 18939 cat conftest.err >&5 18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18941 (exit $ac_status); } && 18942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18943 { (case "(($ac_try" in 18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18945 *) ac_try_echo=$ac_try;; 18946 esac 18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18948 (eval "$ac_try") 2>&5 18949 ac_status=$? 18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18951 (exit $ac_status); }; } && 18952 { ac_try='test -s conftest$ac_exeext' 18953 { (case "(($ac_try" in 18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18955 *) ac_try_echo=$ac_try;; 18956 esac 18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18958 (eval "$ac_try") 2>&5 18959 ac_status=$? 18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18961 (exit $ac_status); }; }; then 18962 ac_cv_lib_gcc___main=yes 18963 else 18964 echo "$as_me: failed program was:" >&5 18965 sed 's/^/| /' conftest.$ac_ext >&5 18966 18967 ac_cv_lib_gcc___main=no 18968 fi 18969 18970 rm -f core conftest.err conftest.$ac_objext \ 18971 conftest$ac_exeext conftest.$ac_ext 18972 LIBS=$ac_check_lib_save_LIBS 18973 fi 18974 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 18975 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 18976 if test $ac_cv_lib_gcc___main = yes; then 18977 18978 cat >>confdefs.h <<\_ACEOF 18979 #define HAVE___MAIN 1 18980 _ACEOF 18981 18982 fi 18983 18984 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 18985 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 18986 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 18987 echo $ECHO_N "(cached) $ECHO_C" >&6 18988 else 18989 ac_check_lib_save_LIBS=$LIBS 18990 LIBS="-lgcc $LIBS" 18991 cat >conftest.$ac_ext <<_ACEOF 18992 /* confdefs.h. */ 18993 _ACEOF 18994 cat confdefs.h >>conftest.$ac_ext 18995 cat >>conftest.$ac_ext <<_ACEOF 18996 /* end confdefs.h. */ 18997 18998 /* Override any GCC internal prototype to avoid an error. 18999 Use char because int might match the return type of a GCC 19000 builtin and then its argument prototype would still apply. */ 19001 #ifdef __cplusplus 19002 extern "C" 19003 #endif 19004 char __cmpdi2 (); 19005 int 19006 main () 19007 { 19008 return __cmpdi2 (); 19009 ; 19010 return 0; 19011 } 19012 _ACEOF 19013 rm -f conftest.$ac_objext conftest$ac_exeext 19014 if { (ac_try="$ac_link" 19015 case "(($ac_try" in 19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19017 *) ac_try_echo=$ac_try;; 19018 esac 19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19020 (eval "$ac_link") 2>conftest.er1 19021 ac_status=$? 19022 grep -v '^ *+' conftest.er1 >conftest.err 19023 rm -f conftest.er1 19024 cat conftest.err >&5 19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19026 (exit $ac_status); } && 19027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19028 { (case "(($ac_try" in 19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19030 *) ac_try_echo=$ac_try;; 19031 esac 19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19033 (eval "$ac_try") 2>&5 19034 ac_status=$? 19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19036 (exit $ac_status); }; } && 19037 { ac_try='test -s conftest$ac_exeext' 19038 { (case "(($ac_try" in 19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19040 *) ac_try_echo=$ac_try;; 19041 esac 19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19043 (eval "$ac_try") 2>&5 19044 ac_status=$? 19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19046 (exit $ac_status); }; }; then 19047 ac_cv_lib_gcc___cmpdi2=yes 19048 else 19049 echo "$as_me: failed program was:" >&5 19050 sed 's/^/| /' conftest.$ac_ext >&5 19051 19052 ac_cv_lib_gcc___cmpdi2=no 19053 fi 19054 19055 rm -f core conftest.err conftest.$ac_objext \ 19056 conftest$ac_exeext conftest.$ac_ext 19057 LIBS=$ac_check_lib_save_LIBS 19058 fi 19059 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 19060 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 19061 if test $ac_cv_lib_gcc___cmpdi2 = yes; then 19062 19063 cat >>confdefs.h <<\_ACEOF 19064 #define HAVE___CMPDI2 1 19065 _ACEOF 19066 19067 fi 19068 19069 fi 19070 19071 if test "$llvm_cv_os_type" = "MingW" ; then 19072 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 19073 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 19074 cat >conftest.$ac_ext <<_ACEOF 19075 #include <windows.h> 19076 #include <imagehlp.h> 19077 extern void foo(PENUMLOADED_MODULES_CALLBACK); 19078 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 19079 _ACEOF 19080 rm -f conftest.$ac_objext 19081 if { (ac_try="$ac_compile" 19082 case "(($ac_try" in 19083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19084 *) ac_try_echo=$ac_try;; 19085 esac 19086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19087 (eval "$ac_compile") 2>conftest.er1 19088 ac_status=$? 19089 grep -v '^ *+' conftest.er1 >conftest.err 19090 rm -f conftest.er1 19091 cat conftest.err >&5 19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19093 (exit $ac_status); } && 19094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19095 { (case "(($ac_try" in 19096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19097 *) ac_try_echo=$ac_try;; 19098 esac 19099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19100 (eval "$ac_try") 2>&5 19101 ac_status=$? 19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19103 (exit $ac_status); }; } && 19104 { ac_try='test -s conftest.$ac_objext' 19105 { (case "(($ac_try" in 19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19107 *) ac_try_echo=$ac_try;; 19108 esac 19109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19110 (eval "$ac_try") 2>&5 19111 ac_status=$? 19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19113 (exit $ac_status); }; }; then 19114 19115 { echo "$as_me:$LINENO: result: yes" >&5 19116 echo "${ECHO_T}yes" >&6; } 19117 llvm_cv_win32_elmcb_pcstr="PCSTR" 19118 19119 else 19120 echo "$as_me: failed program was:" >&5 19121 sed 's/^/| /' conftest.$ac_ext >&5 19122 19123 19124 { echo "$as_me:$LINENO: result: no" >&5 19125 echo "${ECHO_T}no" >&6; } 19126 llvm_cv_win32_elmcb_pcstr="PSTR" 19127 19128 fi 19129 19130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19131 19132 cat >>confdefs.h <<_ACEOF 19133 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 19134 _ACEOF 19135 19136 fi 19137 19138 19139 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 19140 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 19141 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 19142 echo $ECHO_N "(cached) $ECHO_C" >&6 19143 else 19144 ac_ext=cpp 19145 ac_cpp='$CXXCPP $CPPFLAGS' 19146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19149 19150 cat >conftest.$ac_ext <<_ACEOF 19151 /* confdefs.h. */ 19152 _ACEOF 19153 cat confdefs.h >>conftest.$ac_ext 19154 cat >>conftest.$ac_ext <<_ACEOF 19155 /* end confdefs.h. */ 19156 #include <math.h> 19157 int 19158 main () 19159 { 19160 float f; isnan(f); 19161 ; 19162 return 0; 19163 } 19164 _ACEOF 19165 rm -f conftest.$ac_objext 19166 if { (ac_try="$ac_compile" 19167 case "(($ac_try" in 19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19169 *) ac_try_echo=$ac_try;; 19170 esac 19171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19172 (eval "$ac_compile") 2>conftest.er1 19173 ac_status=$? 19174 grep -v '^ *+' conftest.er1 >conftest.err 19175 rm -f conftest.er1 19176 cat conftest.err >&5 19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19178 (exit $ac_status); } && 19179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19180 { (case "(($ac_try" in 19181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19182 *) ac_try_echo=$ac_try;; 19183 esac 19184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19185 (eval "$ac_try") 2>&5 19186 ac_status=$? 19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19188 (exit $ac_status); }; } && 19189 { ac_try='test -s conftest.$ac_objext' 19190 { (case "(($ac_try" in 19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19192 *) ac_try_echo=$ac_try;; 19193 esac 19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19195 (eval "$ac_try") 2>&5 19196 ac_status=$? 19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19198 (exit $ac_status); }; }; then 19199 ac_cv_func_isnan_in_math_h=yes 19200 else 19201 echo "$as_me: failed program was:" >&5 19202 sed 's/^/| /' conftest.$ac_ext >&5 19203 19204 ac_cv_func_isnan_in_math_h=no 19205 fi 19206 19207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19208 ac_ext=c 19209 ac_cpp='$CPP $CPPFLAGS' 19210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19212 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19213 19214 fi 19215 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 19216 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 19217 19218 19219 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 19220 19221 cat >>confdefs.h <<\_ACEOF 19222 #define HAVE_ISNAN_IN_MATH_H 1 19223 _ACEOF 19224 19225 fi 19226 19227 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 19228 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 19229 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 19230 echo $ECHO_N "(cached) $ECHO_C" >&6 19231 else 19232 ac_ext=cpp 19233 ac_cpp='$CXXCPP $CPPFLAGS' 19234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19237 19238 cat >conftest.$ac_ext <<_ACEOF 19239 /* confdefs.h. */ 19240 _ACEOF 19241 cat confdefs.h >>conftest.$ac_ext 19242 cat >>conftest.$ac_ext <<_ACEOF 19243 /* end confdefs.h. */ 19244 #include <cmath> 19245 int 19246 main () 19247 { 19248 float f; isnan(f); 19249 ; 19250 return 0; 19251 } 19252 _ACEOF 19253 rm -f conftest.$ac_objext 19254 if { (ac_try="$ac_compile" 19255 case "(($ac_try" in 19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19257 *) ac_try_echo=$ac_try;; 19258 esac 19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19260 (eval "$ac_compile") 2>conftest.er1 19261 ac_status=$? 19262 grep -v '^ *+' conftest.er1 >conftest.err 19263 rm -f conftest.er1 19264 cat conftest.err >&5 19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19266 (exit $ac_status); } && 19267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19268 { (case "(($ac_try" in 19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19270 *) ac_try_echo=$ac_try;; 19271 esac 19272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19273 (eval "$ac_try") 2>&5 19274 ac_status=$? 19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19276 (exit $ac_status); }; } && 19277 { ac_try='test -s conftest.$ac_objext' 19278 { (case "(($ac_try" in 19279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19280 *) ac_try_echo=$ac_try;; 19281 esac 19282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19283 (eval "$ac_try") 2>&5 19284 ac_status=$? 19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19286 (exit $ac_status); }; }; then 19287 ac_cv_func_isnan_in_cmath=yes 19288 else 19289 echo "$as_me: failed program was:" >&5 19290 sed 's/^/| /' conftest.$ac_ext >&5 19291 19292 ac_cv_func_isnan_in_cmath=no 19293 fi 19294 19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19296 ac_ext=c 19297 ac_cpp='$CPP $CPPFLAGS' 19298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19300 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19301 19302 fi 19303 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 19304 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 19305 19306 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 19307 19308 cat >>confdefs.h <<\_ACEOF 19309 #define HAVE_ISNAN_IN_CMATH 1 19310 _ACEOF 19311 19312 fi 19313 19314 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 19315 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 19316 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 19317 echo $ECHO_N "(cached) $ECHO_C" >&6 19318 else 19319 ac_ext=cpp 19320 ac_cpp='$CXXCPP $CPPFLAGS' 19321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19324 19325 cat >conftest.$ac_ext <<_ACEOF 19326 /* confdefs.h. */ 19327 _ACEOF 19328 cat confdefs.h >>conftest.$ac_ext 19329 cat >>conftest.$ac_ext <<_ACEOF 19330 /* end confdefs.h. */ 19331 #include <cmath> 19332 int 19333 main () 19334 { 19335 float f; std::isnan(f); 19336 ; 19337 return 0; 19338 } 19339 _ACEOF 19340 rm -f conftest.$ac_objext 19341 if { (ac_try="$ac_compile" 19342 case "(($ac_try" in 19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19344 *) ac_try_echo=$ac_try;; 19345 esac 19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19347 (eval "$ac_compile") 2>conftest.er1 19348 ac_status=$? 19349 grep -v '^ *+' conftest.er1 >conftest.err 19350 rm -f conftest.er1 19351 cat conftest.err >&5 19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19353 (exit $ac_status); } && 19354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19355 { (case "(($ac_try" in 19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19357 *) ac_try_echo=$ac_try;; 19358 esac 19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19360 (eval "$ac_try") 2>&5 19361 ac_status=$? 19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19363 (exit $ac_status); }; } && 19364 { ac_try='test -s conftest.$ac_objext' 19365 { (case "(($ac_try" in 19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19367 *) ac_try_echo=$ac_try;; 19368 esac 19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19370 (eval "$ac_try") 2>&5 19371 ac_status=$? 19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19373 (exit $ac_status); }; }; then 19374 ac_cv_func_std_isnan_in_cmath=yes 19375 else 19376 echo "$as_me: failed program was:" >&5 19377 sed 's/^/| /' conftest.$ac_ext >&5 19378 19379 ac_cv_func_std_isnan_in_cmath=no 19380 fi 19381 19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19383 ac_ext=c 19384 ac_cpp='$CPP $CPPFLAGS' 19385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19387 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19388 19389 fi 19390 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 19391 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 19392 19393 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 19394 19395 cat >>confdefs.h <<\_ACEOF 19396 #define HAVE_STD_ISNAN_IN_CMATH 1 19397 _ACEOF 19398 19399 fi 19400 19401 19402 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 19403 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 19404 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 19405 echo $ECHO_N "(cached) $ECHO_C" >&6 19406 else 19407 ac_ext=cpp 19408 ac_cpp='$CXXCPP $CPPFLAGS' 19409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19412 19413 cat >conftest.$ac_ext <<_ACEOF 19414 /* confdefs.h. */ 19415 _ACEOF 19416 cat confdefs.h >>conftest.$ac_ext 19417 cat >>conftest.$ac_ext <<_ACEOF 19418 /* end confdefs.h. */ 19419 #include <math.h> 19420 int 19421 main () 19422 { 19423 float f; isinf(f); 19424 ; 19425 return 0; 19426 } 19427 _ACEOF 19428 rm -f conftest.$ac_objext 19429 if { (ac_try="$ac_compile" 19430 case "(($ac_try" in 19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19432 *) ac_try_echo=$ac_try;; 19433 esac 19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19435 (eval "$ac_compile") 2>conftest.er1 19436 ac_status=$? 19437 grep -v '^ *+' conftest.er1 >conftest.err 19438 rm -f conftest.er1 19439 cat conftest.err >&5 19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19441 (exit $ac_status); } && 19442 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19443 { (case "(($ac_try" in 19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19445 *) ac_try_echo=$ac_try;; 19446 esac 19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19448 (eval "$ac_try") 2>&5 19449 ac_status=$? 19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19451 (exit $ac_status); }; } && 19452 { ac_try='test -s conftest.$ac_objext' 19453 { (case "(($ac_try" in 19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19455 *) ac_try_echo=$ac_try;; 19456 esac 19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19458 (eval "$ac_try") 2>&5 19459 ac_status=$? 19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19461 (exit $ac_status); }; }; then 19462 ac_cv_func_isinf_in_math_h=yes 19463 else 19464 echo "$as_me: failed program was:" >&5 19465 sed 's/^/| /' conftest.$ac_ext >&5 19466 19467 ac_cv_func_isinf_in_math_h=no 19468 fi 19469 19470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19471 ac_ext=c 19472 ac_cpp='$CPP $CPPFLAGS' 19473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19475 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19476 19477 fi 19478 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 19479 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 19480 19481 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 19482 19483 cat >>confdefs.h <<\_ACEOF 19484 #define HAVE_ISINF_IN_MATH_H 1 19485 _ACEOF 19486 19487 fi 19488 19489 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 19490 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 19491 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 19492 echo $ECHO_N "(cached) $ECHO_C" >&6 19493 else 19494 ac_ext=cpp 19495 ac_cpp='$CXXCPP $CPPFLAGS' 19496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19499 19500 cat >conftest.$ac_ext <<_ACEOF 19501 /* confdefs.h. */ 19502 _ACEOF 19503 cat confdefs.h >>conftest.$ac_ext 19504 cat >>conftest.$ac_ext <<_ACEOF 19505 /* end confdefs.h. */ 19506 #include <cmath> 19507 int 19508 main () 19509 { 19510 float f; isinf(f); 19511 ; 19512 return 0; 19513 } 19514 _ACEOF 19515 rm -f conftest.$ac_objext 19516 if { (ac_try="$ac_compile" 19517 case "(($ac_try" in 19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19519 *) ac_try_echo=$ac_try;; 19520 esac 19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19522 (eval "$ac_compile") 2>conftest.er1 19523 ac_status=$? 19524 grep -v '^ *+' conftest.er1 >conftest.err 19525 rm -f conftest.er1 19526 cat conftest.err >&5 19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19528 (exit $ac_status); } && 19529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19530 { (case "(($ac_try" in 19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19532 *) ac_try_echo=$ac_try;; 19533 esac 19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19535 (eval "$ac_try") 2>&5 19536 ac_status=$? 19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19538 (exit $ac_status); }; } && 19539 { ac_try='test -s conftest.$ac_objext' 19540 { (case "(($ac_try" in 19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19542 *) ac_try_echo=$ac_try;; 19543 esac 19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19545 (eval "$ac_try") 2>&5 19546 ac_status=$? 19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19548 (exit $ac_status); }; }; then 19549 ac_cv_func_isinf_in_cmath=yes 19550 else 19551 echo "$as_me: failed program was:" >&5 19552 sed 's/^/| /' conftest.$ac_ext >&5 19553 19554 ac_cv_func_isinf_in_cmath=no 19555 fi 19556 19557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19558 ac_ext=c 19559 ac_cpp='$CPP $CPPFLAGS' 19560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19562 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19563 19564 fi 19565 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 19566 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 19567 19568 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 19569 19570 cat >>confdefs.h <<\_ACEOF 19571 #define HAVE_ISINF_IN_CMATH 1 19572 _ACEOF 19573 19574 fi 19575 19576 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 19577 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 19578 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 19579 echo $ECHO_N "(cached) $ECHO_C" >&6 19580 else 19581 ac_ext=cpp 19582 ac_cpp='$CXXCPP $CPPFLAGS' 19583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19586 19587 cat >conftest.$ac_ext <<_ACEOF 19588 /* confdefs.h. */ 19589 _ACEOF 19590 cat confdefs.h >>conftest.$ac_ext 19591 cat >>conftest.$ac_ext <<_ACEOF 19592 /* end confdefs.h. */ 19593 #include <cmath> 19594 int 19595 main () 19596 { 19597 float f; std::isinf(f); 19598 ; 19599 return 0; 19600 } 19601 _ACEOF 19602 rm -f conftest.$ac_objext 19603 if { (ac_try="$ac_compile" 19604 case "(($ac_try" in 19605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19606 *) ac_try_echo=$ac_try;; 19607 esac 19608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19609 (eval "$ac_compile") 2>conftest.er1 19610 ac_status=$? 19611 grep -v '^ *+' conftest.er1 >conftest.err 19612 rm -f conftest.er1 19613 cat conftest.err >&5 19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19615 (exit $ac_status); } && 19616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19617 { (case "(($ac_try" in 19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19619 *) ac_try_echo=$ac_try;; 19620 esac 19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19622 (eval "$ac_try") 2>&5 19623 ac_status=$? 19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19625 (exit $ac_status); }; } && 19626 { ac_try='test -s conftest.$ac_objext' 19627 { (case "(($ac_try" in 19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19629 *) ac_try_echo=$ac_try;; 19630 esac 19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19632 (eval "$ac_try") 2>&5 19633 ac_status=$? 19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19635 (exit $ac_status); }; }; then 19636 ac_cv_func_std_isinf_in_cmath=yes 19637 else 19638 echo "$as_me: failed program was:" >&5 19639 sed 's/^/| /' conftest.$ac_ext >&5 19640 19641 ac_cv_func_std_isinf_in_cmath=no 19642 fi 19643 19644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19645 ac_ext=c 19646 ac_cpp='$CPP $CPPFLAGS' 19647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19649 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19650 19651 fi 19652 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 19653 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 19654 19655 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 19656 19657 cat >>confdefs.h <<\_ACEOF 19658 #define HAVE_STD_ISINF_IN_CMATH 1 19659 _ACEOF 19660 19661 fi 19662 19663 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 19664 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 19665 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 19666 echo $ECHO_N "(cached) $ECHO_C" >&6 19667 else 19668 ac_ext=cpp 19669 ac_cpp='$CXXCPP $CPPFLAGS' 19670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19673 19674 cat >conftest.$ac_ext <<_ACEOF 19675 /* confdefs.h. */ 19676 _ACEOF 19677 cat confdefs.h >>conftest.$ac_ext 19678 cat >>conftest.$ac_ext <<_ACEOF 19679 /* end confdefs.h. */ 19680 #include <ieeefp.h> 19681 int 19682 main () 19683 { 19684 float f; finite(f); 19685 ; 19686 return 0; 19687 } 19688 _ACEOF 19689 rm -f conftest.$ac_objext 19690 if { (ac_try="$ac_compile" 19691 case "(($ac_try" in 19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19693 *) ac_try_echo=$ac_try;; 19694 esac 19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19696 (eval "$ac_compile") 2>conftest.er1 19697 ac_status=$? 19698 grep -v '^ *+' conftest.er1 >conftest.err 19699 rm -f conftest.er1 19700 cat conftest.err >&5 19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19702 (exit $ac_status); } && 19703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19704 { (case "(($ac_try" in 19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19706 *) ac_try_echo=$ac_try;; 19707 esac 19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19709 (eval "$ac_try") 2>&5 19710 ac_status=$? 19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19712 (exit $ac_status); }; } && 19713 { ac_try='test -s conftest.$ac_objext' 19714 { (case "(($ac_try" in 19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19716 *) ac_try_echo=$ac_try;; 19717 esac 19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19719 (eval "$ac_try") 2>&5 19720 ac_status=$? 19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19722 (exit $ac_status); }; }; then 19723 ac_cv_func_finite_in_ieeefp_h=yes 19724 else 19725 echo "$as_me: failed program was:" >&5 19726 sed 's/^/| /' conftest.$ac_ext >&5 19727 19728 ac_cv_func_finite_in_ieeefp_h=no 19729 fi 19730 19731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19732 ac_ext=c 19733 ac_cpp='$CPP $CPPFLAGS' 19734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19736 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19737 19738 fi 19739 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 19740 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 19741 19742 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 19743 19744 cat >>confdefs.h <<\_ACEOF 19745 #define HAVE_FINITE_IN_IEEEFP_H 1 19746 _ACEOF 19747 19748 fi 19749 19750 19751 19752 if test "$llvm_cv_platform_type" = "Unix" ; then 19753 19754 19755 for ac_header in stdlib.h unistd.h 19756 do 19757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19759 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19762 echo $ECHO_N "(cached) $ECHO_C" >&6 19763 fi 19764 ac_res=`eval echo '${'$as_ac_Header'}'` 19765 { echo "$as_me:$LINENO: result: $ac_res" >&5 19766 echo "${ECHO_T}$ac_res" >&6; } 19767 else 19768 # Is the header compilable? 19769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 19770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 19771 cat >conftest.$ac_ext <<_ACEOF 19772 /* confdefs.h. */ 19773 _ACEOF 19774 cat confdefs.h >>conftest.$ac_ext 19775 cat >>conftest.$ac_ext <<_ACEOF 19776 /* end confdefs.h. */ 19777 $ac_includes_default 19778 #include <$ac_header> 19779 _ACEOF 19780 rm -f conftest.$ac_objext 19781 if { (ac_try="$ac_compile" 19782 case "(($ac_try" in 19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19784 *) ac_try_echo=$ac_try;; 19785 esac 19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19787 (eval "$ac_compile") 2>conftest.er1 19788 ac_status=$? 19789 grep -v '^ *+' conftest.er1 >conftest.err 19790 rm -f conftest.er1 19791 cat conftest.err >&5 19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19793 (exit $ac_status); } && 19794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19795 { (case "(($ac_try" in 19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19797 *) ac_try_echo=$ac_try;; 19798 esac 19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19800 (eval "$ac_try") 2>&5 19801 ac_status=$? 19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19803 (exit $ac_status); }; } && 19804 { ac_try='test -s conftest.$ac_objext' 19805 { (case "(($ac_try" in 19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19807 *) ac_try_echo=$ac_try;; 19808 esac 19809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19810 (eval "$ac_try") 2>&5 19811 ac_status=$? 19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19813 (exit $ac_status); }; }; then 19814 ac_header_compiler=yes 19815 else 19816 echo "$as_me: failed program was:" >&5 19817 sed 's/^/| /' conftest.$ac_ext >&5 19818 19819 ac_header_compiler=no 19820 fi 19821 19822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19824 echo "${ECHO_T}$ac_header_compiler" >&6; } 19825 19826 # Is the header present? 19827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 19828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 19829 cat >conftest.$ac_ext <<_ACEOF 19830 /* confdefs.h. */ 19831 _ACEOF 19832 cat confdefs.h >>conftest.$ac_ext 19833 cat >>conftest.$ac_ext <<_ACEOF 19834 /* end confdefs.h. */ 19835 #include <$ac_header> 19836 _ACEOF 19837 if { (ac_try="$ac_cpp conftest.$ac_ext" 19838 case "(($ac_try" in 19839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19840 *) ac_try_echo=$ac_try;; 19841 esac 19842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19844 ac_status=$? 19845 grep -v '^ *+' conftest.er1 >conftest.err 19846 rm -f conftest.er1 19847 cat conftest.err >&5 19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19849 (exit $ac_status); } >/dev/null; then 19850 if test -s conftest.err; then 19851 ac_cpp_err=$ac_c_preproc_warn_flag 19852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19853 else 19854 ac_cpp_err= 19855 fi 19856 else 19857 ac_cpp_err=yes 19858 fi 19859 if test -z "$ac_cpp_err"; then 19860 ac_header_preproc=yes 19861 else 19862 echo "$as_me: failed program was:" >&5 19863 sed 's/^/| /' conftest.$ac_ext >&5 19864 19865 ac_header_preproc=no 19866 fi 19867 19868 rm -f conftest.err conftest.$ac_ext 19869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19870 echo "${ECHO_T}$ac_header_preproc" >&6; } 19871 19872 # So? What about this header? 19873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19874 yes:no: ) 19875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19879 ac_header_preproc=yes 19880 ;; 19881 no:yes:* ) 19882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19894 ( cat <<\_ASBOX 19895 ## ------------------------------ ## 19896 ## Report this to bugs@yourdomain ## 19897 ## ------------------------------ ## 19898 _ASBOX 19899 ) | sed "s/^/$as_me: WARNING: /" >&2 19900 ;; 19901 esac 19902 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19905 echo $ECHO_N "(cached) $ECHO_C" >&6 19906 else 19907 eval "$as_ac_Header=\$ac_header_preproc" 19908 fi 19909 ac_res=`eval echo '${'$as_ac_Header'}'` 19910 { echo "$as_me:$LINENO: result: $ac_res" >&5 19911 echo "${ECHO_T}$ac_res" >&6; } 19912 19913 fi 19914 if test `eval echo '${'$as_ac_Header'}'` = yes; then 19915 cat >>confdefs.h <<_ACEOF 19916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19917 _ACEOF 19918 19919 fi 19920 19921 done 19922 19923 19924 for ac_func in getpagesize 19925 do 19926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19927 { echo "$as_me:$LINENO: checking for $ac_func" >&5 19928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 19929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 19930 echo $ECHO_N "(cached) $ECHO_C" >&6 19931 else 19932 cat >conftest.$ac_ext <<_ACEOF 19933 /* confdefs.h. */ 19934 _ACEOF 19935 cat confdefs.h >>conftest.$ac_ext 19936 cat >>conftest.$ac_ext <<_ACEOF 19937 /* end confdefs.h. */ 19938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19939 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19940 #define $ac_func innocuous_$ac_func 19941 19942 /* System header to define __stub macros and hopefully few prototypes, 19943 which can conflict with char $ac_func (); below. 19944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19945 <limits.h> exists even on freestanding compilers. */ 19946 19947 #ifdef __STDC__ 19948 # include <limits.h> 19949 #else 19950 # include <assert.h> 19951 #endif 19952 19953 #undef $ac_func 19954 19955 /* Override any GCC internal prototype to avoid an error. 19956 Use char because int might match the return type of a GCC 19957 builtin and then its argument prototype would still apply. */ 19958 #ifdef __cplusplus 19959 extern "C" 19960 #endif 19961 char $ac_func (); 19962 /* The GNU C library defines this for functions which it implements 19963 to always fail with ENOSYS. Some functions are actually named 19964 something starting with __ and the normal name is an alias. */ 19965 #if defined __stub_$ac_func || defined __stub___$ac_func 19966 choke me 19967 #endif 19968 19969 int 19970 main () 19971 { 19972 return $ac_func (); 19973 ; 19974 return 0; 19975 } 19976 _ACEOF 19977 rm -f conftest.$ac_objext conftest$ac_exeext 19978 if { (ac_try="$ac_link" 19979 case "(($ac_try" in 19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19981 *) ac_try_echo=$ac_try;; 19982 esac 19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19984 (eval "$ac_link") 2>conftest.er1 19985 ac_status=$? 19986 grep -v '^ *+' conftest.er1 >conftest.err 19987 rm -f conftest.er1 19988 cat conftest.err >&5 19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19990 (exit $ac_status); } && 19991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19992 { (case "(($ac_try" in 19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19994 *) ac_try_echo=$ac_try;; 19995 esac 19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19997 (eval "$ac_try") 2>&5 19998 ac_status=$? 19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20000 (exit $ac_status); }; } && 20001 { ac_try='test -s conftest$ac_exeext' 20002 { (case "(($ac_try" in 20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20004 *) ac_try_echo=$ac_try;; 20005 esac 20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20007 (eval "$ac_try") 2>&5 20008 ac_status=$? 20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20010 (exit $ac_status); }; }; then 20011 eval "$as_ac_var=yes" 20012 else 20013 echo "$as_me: failed program was:" >&5 20014 sed 's/^/| /' conftest.$ac_ext >&5 20015 20016 eval "$as_ac_var=no" 20017 fi 20018 20019 rm -f core conftest.err conftest.$ac_objext \ 20020 conftest$ac_exeext conftest.$ac_ext 20021 fi 20022 ac_res=`eval echo '${'$as_ac_var'}'` 20023 { echo "$as_me:$LINENO: result: $ac_res" >&5 20024 echo "${ECHO_T}$ac_res" >&6; } 20025 if test `eval echo '${'$as_ac_var'}'` = yes; then 20026 cat >>confdefs.h <<_ACEOF 20027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20028 _ACEOF 20029 20030 fi 20031 done 20032 20033 { echo "$as_me:$LINENO: checking for working mmap" >&5 20034 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 20035 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 20036 echo $ECHO_N "(cached) $ECHO_C" >&6 20037 else 20038 if test "$cross_compiling" = yes; then 20039 ac_cv_func_mmap_fixed_mapped=no 20040 else 20041 cat >conftest.$ac_ext <<_ACEOF 20042 /* confdefs.h. */ 20043 _ACEOF 20044 cat confdefs.h >>conftest.$ac_ext 20045 cat >>conftest.$ac_ext <<_ACEOF 20046 /* end confdefs.h. */ 20047 $ac_includes_default 20048 /* malloc might have been renamed as rpl_malloc. */ 20049 #undef malloc 20050 20051 /* Thanks to Mike Haertel and Jim Avera for this test. 20052 Here is a matrix of mmap possibilities: 20053 mmap private not fixed 20054 mmap private fixed at somewhere currently unmapped 20055 mmap private fixed at somewhere already mapped 20056 mmap shared not fixed 20057 mmap shared fixed at somewhere currently unmapped 20058 mmap shared fixed at somewhere already mapped 20059 For private mappings, we should verify that changes cannot be read() 20060 back from the file, nor mmap's back from the file at a different 20061 address. (There have been systems where private was not correctly 20062 implemented like the infamous i386 svr4.0, and systems where the 20063 VM page cache was not coherent with the file system buffer cache 20064 like early versions of FreeBSD and possibly contemporary NetBSD.) 20065 For shared mappings, we should conversely verify that changes get 20066 propagated back to all the places they're supposed to be. 20067 20068 Grep wants private fixed already mapped. 20069 The main things grep needs to know about mmap are: 20070 * does it exist and is it safe to write into the mmap'd area 20071 * how to use it (BSD variants) */ 20072 20073 #include <fcntl.h> 20074 #include <sys/mman.h> 20075 20076 #if !STDC_HEADERS && !HAVE_STDLIB_H 20077 char *malloc (); 20078 #endif 20079 20080 /* This mess was copied from the GNU getpagesize.h. */ 20081 #if !HAVE_GETPAGESIZE 20082 /* Assume that all systems that can run configure have sys/param.h. */ 20083 # if !HAVE_SYS_PARAM_H 20084 # define HAVE_SYS_PARAM_H 1 20085 # endif 20086 20087 # ifdef _SC_PAGESIZE 20088 # define getpagesize() sysconf(_SC_PAGESIZE) 20089 # else /* no _SC_PAGESIZE */ 20090 # if HAVE_SYS_PARAM_H 20091 # include <sys/param.h> 20092 # ifdef EXEC_PAGESIZE 20093 # define getpagesize() EXEC_PAGESIZE 20094 # else /* no EXEC_PAGESIZE */ 20095 # ifdef NBPG 20096 # define getpagesize() NBPG * CLSIZE 20097 # ifndef CLSIZE 20098 # define CLSIZE 1 20099 # endif /* no CLSIZE */ 20100 # else /* no NBPG */ 20101 # ifdef NBPC 20102 # define getpagesize() NBPC 20103 # else /* no NBPC */ 20104 # ifdef PAGESIZE 20105 # define getpagesize() PAGESIZE 20106 # endif /* PAGESIZE */ 20107 # endif /* no NBPC */ 20108 # endif /* no NBPG */ 20109 # endif /* no EXEC_PAGESIZE */ 20110 # else /* no HAVE_SYS_PARAM_H */ 20111 # define getpagesize() 8192 /* punt totally */ 20112 # endif /* no HAVE_SYS_PARAM_H */ 20113 # endif /* no _SC_PAGESIZE */ 20114 20115 #endif /* no HAVE_GETPAGESIZE */ 20116 20117 int 20118 main () 20119 { 20120 char *data, *data2, *data3; 20121 int i, pagesize; 20122 int fd; 20123 20124 pagesize = getpagesize (); 20125 20126 /* First, make a file with some known garbage in it. */ 20127 data = (char *) malloc (pagesize); 20128 if (!data) 20129 return 1; 20130 for (i = 0; i < pagesize; ++i) 20131 *(data + i) = rand (); 20132 umask (0); 20133 fd = creat ("conftest.mmap", 0600); 20134 if (fd < 0) 20135 return 1; 20136 if (write (fd, data, pagesize) != pagesize) 20137 return 1; 20138 close (fd); 20139 20140 /* Next, try to mmap the file at a fixed address which already has 20141 something else allocated at it. If we can, also make sure that 20142 we see the same garbage. */ 20143 fd = open ("conftest.mmap", O_RDWR); 20144 if (fd < 0) 20145 return 1; 20146 data2 = (char *) malloc (2 * pagesize); 20147 if (!data2) 20148 return 1; 20149 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 20150 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20151 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20152 return 1; 20153 for (i = 0; i < pagesize; ++i) 20154 if (*(data + i) != *(data2 + i)) 20155 return 1; 20156 20157 /* Finally, make sure that changes to the mapped area do not 20158 percolate back to the file as seen by read(). (This is a bug on 20159 some variants of i386 svr4.0.) */ 20160 for (i = 0; i < pagesize; ++i) 20161 *(data2 + i) = *(data2 + i) + 1; 20162 data3 = (char *) malloc (pagesize); 20163 if (!data3) 20164 return 1; 20165 if (read (fd, data3, pagesize) != pagesize) 20166 return 1; 20167 for (i = 0; i < pagesize; ++i) 20168 if (*(data + i) != *(data3 + i)) 20169 return 1; 20170 close (fd); 20171 return 0; 20172 } 20173 _ACEOF 20174 rm -f conftest$ac_exeext 20175 if { (ac_try="$ac_link" 20176 case "(($ac_try" in 20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20178 *) ac_try_echo=$ac_try;; 20179 esac 20180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20181 (eval "$ac_link") 2>&5 20182 ac_status=$? 20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20185 { (case "(($ac_try" in 20186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20187 *) ac_try_echo=$ac_try;; 20188 esac 20189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20190 (eval "$ac_try") 2>&5 20191 ac_status=$? 20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20193 (exit $ac_status); }; }; then 20194 ac_cv_func_mmap_fixed_mapped=yes 20195 else 20196 echo "$as_me: program exited with status $ac_status" >&5 20197 echo "$as_me: failed program was:" >&5 20198 sed 's/^/| /' conftest.$ac_ext >&5 20199 20200 ( exit $ac_status ) 20201 ac_cv_func_mmap_fixed_mapped=no 20202 fi 20203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20204 fi 20205 20206 20207 fi 20208 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 20209 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 20210 if test $ac_cv_func_mmap_fixed_mapped = yes; then 20211 20212 cat >>confdefs.h <<\_ACEOF 20213 #define HAVE_MMAP 1 20214 _ACEOF 20215 20216 fi 20217 rm -f conftest.mmap 20218 20219 { echo "$as_me:$LINENO: checking for mmap of files" >&5 20220 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 20221 if test "${ac_cv_func_mmap_file+set}" = set; then 20222 echo $ECHO_N "(cached) $ECHO_C" >&6 20223 else 20224 ac_ext=c 20225 ac_cpp='$CPP $CPPFLAGS' 20226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20228 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20229 20230 if test "$cross_compiling" = yes; then 20231 ac_cv_func_mmap_file=no 20232 else 20233 cat >conftest.$ac_ext <<_ACEOF 20234 20235 /* confdefs.h. */ 20236 _ACEOF 20237 cat confdefs.h >>conftest.$ac_ext 20238 cat >>conftest.$ac_ext <<_ACEOF 20239 /* end confdefs.h. */ 20240 20241 #include <sys/types.h> 20242 #include <sys/mman.h> 20243 #include <fcntl.h> 20244 20245 int 20246 main () 20247 { 20248 20249 int fd; 20250 fd = creat ("foo",0777); 20251 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 20252 unlink ("foo"); 20253 return (fd != (int) MAP_FAILED); 20254 ; 20255 return 0; 20256 } 20257 _ACEOF 20258 rm -f conftest$ac_exeext 20259 if { (ac_try="$ac_link" 20260 case "(($ac_try" in 20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20262 *) ac_try_echo=$ac_try;; 20263 esac 20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20265 (eval "$ac_link") 2>&5 20266 ac_status=$? 20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20269 { (case "(($ac_try" in 20270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20271 *) ac_try_echo=$ac_try;; 20272 esac 20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20274 (eval "$ac_try") 2>&5 20275 ac_status=$? 20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20277 (exit $ac_status); }; }; then 20278 ac_cv_func_mmap_file=yes 20279 else 20280 echo "$as_me: program exited with status $ac_status" >&5 20281 echo "$as_me: failed program was:" >&5 20282 sed 's/^/| /' conftest.$ac_ext >&5 20283 20284 ( exit $ac_status ) 20285 ac_cv_func_mmap_file=no 20286 fi 20287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20288 fi 20289 20290 20291 ac_ext=c 20292 ac_cpp='$CPP $CPPFLAGS' 20293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20295 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20296 20297 20298 fi 20299 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 20300 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 20301 if test "$ac_cv_func_mmap_file" = yes; then 20302 20303 cat >>confdefs.h <<\_ACEOF 20304 #define HAVE_MMAP_FILE 20305 _ACEOF 20306 20307 MMAP_FILE=yes 20308 20309 fi 20310 20311 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 20312 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 20313 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 20314 echo $ECHO_N "(cached) $ECHO_C" >&6 20315 else 20316 if test "$llvm_cv_os_type" = "Interix" ; then 20317 ac_cv_need_dev_zero_for_mmap=yes 20318 else 20319 ac_cv_need_dev_zero_for_mmap=no 20320 fi 20321 20322 fi 20323 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 20324 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 20325 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 20326 20327 cat >>confdefs.h <<\_ACEOF 20328 #define NEED_DEV_ZERO_FOR_MMAP 1 20329 _ACEOF 20330 20331 fi 20332 20333 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 20334 then 20335 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 20336 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 20337 fi 20338 if test "$ac_cv_func_mmap_file" = "no" 20339 then 20340 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 20341 echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 20342 fi 20343 fi 20344 20345 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 20346 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 20347 ac_ext=cpp 20348 ac_cpp='$CXXCPP $CPPFLAGS' 20349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20352 20353 cat >conftest.$ac_ext <<_ACEOF 20354 /* confdefs.h. */ 20355 _ACEOF 20356 cat confdefs.h >>conftest.$ac_ext 20357 cat >>conftest.$ac_ext <<_ACEOF 20358 /* end confdefs.h. */ 20359 int main() { 20360 volatile unsigned long val = 1; 20361 __sync_synchronize(); 20362 __sync_val_compare_and_swap(&val, 1, 0); 20363 __sync_add_and_fetch(&val, 1); 20364 __sync_sub_and_fetch(&val, 1); 20365 return 0; 20366 } 20367 20368 _ACEOF 20369 rm -f conftest.$ac_objext conftest$ac_exeext 20370 if { (ac_try="$ac_link" 20371 case "(($ac_try" in 20372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20373 *) ac_try_echo=$ac_try;; 20374 esac 20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20376 (eval "$ac_link") 2>conftest.er1 20377 ac_status=$? 20378 grep -v '^ *+' conftest.er1 >conftest.err 20379 rm -f conftest.er1 20380 cat conftest.err >&5 20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20382 (exit $ac_status); } && 20383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20384 { (case "(($ac_try" in 20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20386 *) ac_try_echo=$ac_try;; 20387 esac 20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20389 (eval "$ac_try") 2>&5 20390 ac_status=$? 20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20392 (exit $ac_status); }; } && 20393 { ac_try='test -s conftest$ac_exeext' 20394 { (case "(($ac_try" in 20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20396 *) ac_try_echo=$ac_try;; 20397 esac 20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20399 (eval "$ac_try") 2>&5 20400 ac_status=$? 20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20402 (exit $ac_status); }; }; then 20403 ac_ext=c 20404 ac_cpp='$CPP $CPPFLAGS' 20405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20407 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20408 20409 { echo "$as_me:$LINENO: result: yes" >&5 20410 echo "${ECHO_T}yes" >&6; } 20411 20412 cat >>confdefs.h <<\_ACEOF 20413 #define LLVM_HAS_ATOMICS 1 20414 _ACEOF 20415 20416 else 20417 echo "$as_me: failed program was:" >&5 20418 sed 's/^/| /' conftest.$ac_ext >&5 20419 20420 { echo "$as_me:$LINENO: result: no" >&5 20421 echo "${ECHO_T}no" >&6; } 20422 20423 cat >>confdefs.h <<\_ACEOF 20424 #define LLVM_HAS_ATOMICS 0 20425 _ACEOF 20426 20427 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 20428 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 20429 fi 20430 20431 rm -f core conftest.err conftest.$ac_objext \ 20432 conftest$ac_exeext conftest.$ac_ext 20433 20434 20435 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 20436 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 20437 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 20438 if test "${llvm_cv_linux_mixed+set}" = set; then 20439 echo $ECHO_N "(cached) $ECHO_C" >&6 20440 else 20441 ac_ext=c 20442 ac_cpp='$CPP $CPPFLAGS' 20443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20445 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20446 20447 cat >conftest.$ac_ext <<_ACEOF 20448 /* confdefs.h. */ 20449 _ACEOF 20450 cat confdefs.h >>conftest.$ac_ext 20451 cat >>conftest.$ac_ext <<_ACEOF 20452 /* end confdefs.h. */ 20453 #ifndef __x86_64__ 20454 error: Not x86-64 even if uname says so! 20455 #endif 20456 20457 int 20458 main () 20459 { 20460 20461 ; 20462 return 0; 20463 } 20464 _ACEOF 20465 rm -f conftest.$ac_objext 20466 if { (ac_try="$ac_compile" 20467 case "(($ac_try" in 20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20469 *) ac_try_echo=$ac_try;; 20470 esac 20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20472 (eval "$ac_compile") 2>conftest.er1 20473 ac_status=$? 20474 grep -v '^ *+' conftest.er1 >conftest.err 20475 rm -f conftest.er1 20476 cat conftest.err >&5 20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20478 (exit $ac_status); } && 20479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20480 { (case "(($ac_try" in 20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20482 *) ac_try_echo=$ac_try;; 20483 esac 20484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20485 (eval "$ac_try") 2>&5 20486 ac_status=$? 20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20488 (exit $ac_status); }; } && 20489 { ac_try='test -s conftest.$ac_objext' 20490 { (case "(($ac_try" in 20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20492 *) ac_try_echo=$ac_try;; 20493 esac 20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20495 (eval "$ac_try") 2>&5 20496 ac_status=$? 20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20498 (exit $ac_status); }; }; then 20499 llvm_cv_linux_mixed=no 20500 else 20501 echo "$as_me: failed program was:" >&5 20502 sed 's/^/| /' conftest.$ac_ext >&5 20503 20504 llvm_cv_linux_mixed=yes 20505 fi 20506 20507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20508 ac_ext=c 20509 ac_cpp='$CPP $CPPFLAGS' 20510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20512 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20513 20514 20515 fi 20516 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 20517 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 20518 20519 if test "$llvm_cv_linux_mixed" = "yes"; then 20520 llvm_cv_target_arch="x86" 20521 ARCH="x86" 20522 fi 20523 fi 20524 20525 20526 for ac_func in __dso_handle 20527 do 20528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20529 { echo "$as_me:$LINENO: checking for $ac_func" >&5 20530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20532 echo $ECHO_N "(cached) $ECHO_C" >&6 20533 else 20534 cat >conftest.$ac_ext <<_ACEOF 20535 /* confdefs.h. */ 20536 _ACEOF 20537 cat confdefs.h >>conftest.$ac_ext 20538 cat >>conftest.$ac_ext <<_ACEOF 20539 /* end confdefs.h. */ 20540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20541 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20542 #define $ac_func innocuous_$ac_func 20543 20544 /* System header to define __stub macros and hopefully few prototypes, 20545 which can conflict with char $ac_func (); below. 20546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20547 <limits.h> exists even on freestanding compilers. */ 20548 20549 #ifdef __STDC__ 20550 # include <limits.h> 20551 #else 20552 # include <assert.h> 20553 #endif 20554 20555 #undef $ac_func 20556 20557 /* Override any GCC internal prototype to avoid an error. 20558 Use char because int might match the return type of a GCC 20559 builtin and then its argument prototype would still apply. */ 20560 #ifdef __cplusplus 20561 extern "C" 20562 #endif 20563 char $ac_func (); 20564 /* The GNU C library defines this for functions which it implements 20565 to always fail with ENOSYS. Some functions are actually named 20566 something starting with __ and the normal name is an alias. */ 20567 #if defined __stub_$ac_func || defined __stub___$ac_func 20568 choke me 20569 #endif 20570 20571 int 20572 main () 20573 { 20574 return $ac_func (); 20575 ; 20576 return 0; 20577 } 20578 _ACEOF 20579 rm -f conftest.$ac_objext conftest$ac_exeext 20580 if { (ac_try="$ac_link" 20581 case "(($ac_try" in 20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20583 *) ac_try_echo=$ac_try;; 20584 esac 20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20586 (eval "$ac_link") 2>conftest.er1 20587 ac_status=$? 20588 grep -v '^ *+' conftest.er1 >conftest.err 20589 rm -f conftest.er1 20590 cat conftest.err >&5 20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20592 (exit $ac_status); } && 20593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20594 { (case "(($ac_try" in 20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20596 *) ac_try_echo=$ac_try;; 20597 esac 20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20599 (eval "$ac_try") 2>&5 20600 ac_status=$? 20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20602 (exit $ac_status); }; } && 20603 { ac_try='test -s conftest$ac_exeext' 20604 { (case "(($ac_try" in 20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20606 *) ac_try_echo=$ac_try;; 20607 esac 20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20609 (eval "$ac_try") 2>&5 20610 ac_status=$? 20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20612 (exit $ac_status); }; }; then 20613 eval "$as_ac_var=yes" 20614 else 20615 echo "$as_me: failed program was:" >&5 20616 sed 's/^/| /' conftest.$ac_ext >&5 20617 20618 eval "$as_ac_var=no" 20619 fi 20620 20621 rm -f core conftest.err conftest.$ac_objext \ 20622 conftest$ac_exeext conftest.$ac_ext 20623 fi 20624 ac_res=`eval echo '${'$as_ac_var'}'` 20625 { echo "$as_me:$LINENO: result: $ac_res" >&5 20626 echo "${ECHO_T}$ac_res" >&6; } 20627 if test `eval echo '${'$as_ac_var'}'` = yes; then 20628 cat >>confdefs.h <<_ACEOF 20629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20630 _ACEOF 20631 20632 fi 20633 done 20634 20635 20636 SHLIBEXT=$libltdl_cv_shlibext 20637 20638 20639 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 20640 20641 20642 # Translate the various configuration directories and other basic 20643 # information into substitutions that will end up in Makefile.config.in 20644 # that these configured values can be used by the makefiles 20645 if test "${prefix}" = "NONE" ; then 20646 prefix="/usr/local" 20647 fi 20648 eval LLVM_PREFIX="${prefix}"; 20649 eval LLVM_BINDIR="${prefix}/bin"; 20650 eval LLVM_LIBDIR="${prefix}/lib"; 20651 eval LLVM_DATADIR="${prefix}/share/llvm"; 20652 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 20653 eval LLVM_ETCDIR="${prefix}/etc/llvm"; 20654 eval LLVM_INCLUDEDIR="${prefix}/include"; 20655 eval LLVM_INFODIR="${prefix}/info"; 20656 eval LLVM_MANDIR="${prefix}/man"; 20657 LLVM_CONFIGTIME=`date` 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 # Place the various directores into the config.h file as #defines so that we 20670 # can know about the installation paths within LLVM. 20671 20672 cat >>confdefs.h <<_ACEOF 20673 #define LLVM_PREFIX "$LLVM_PREFIX" 20674 _ACEOF 20675 20676 20677 cat >>confdefs.h <<_ACEOF 20678 #define LLVM_BINDIR "$LLVM_BINDIR" 20679 _ACEOF 20680 20681 20682 cat >>confdefs.h <<_ACEOF 20683 #define LLVM_LIBDIR "$LLVM_LIBDIR" 20684 _ACEOF 20685 20686 20687 cat >>confdefs.h <<_ACEOF 20688 #define LLVM_DATADIR "$LLVM_DATADIR" 20689 _ACEOF 20690 20691 20692 cat >>confdefs.h <<_ACEOF 20693 #define LLVM_DOCSDIR "$LLVM_DOCSDIR" 20694 _ACEOF 20695 20696 20697 cat >>confdefs.h <<_ACEOF 20698 #define LLVM_ETCDIR "$LLVM_ETCDIR" 20699 _ACEOF 20700 20701 20702 cat >>confdefs.h <<_ACEOF 20703 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 20704 _ACEOF 20705 20706 20707 cat >>confdefs.h <<_ACEOF 20708 #define LLVM_INFODIR "$LLVM_INFODIR" 20709 _ACEOF 20710 20711 20712 cat >>confdefs.h <<_ACEOF 20713 #define LLVM_MANDIR "$LLVM_MANDIR" 20714 _ACEOF 20715 20716 20717 cat >>confdefs.h <<_ACEOF 20718 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 20719 _ACEOF 20720 20721 20722 cat >>confdefs.h <<_ACEOF 20723 #define LLVM_DEFAULT_TARGET_TRIPLE "$target" 20724 _ACEOF 20725 20726 20727 # Determine which bindings to build. 20728 if test "$BINDINGS_TO_BUILD" = auto ; then 20729 BINDINGS_TO_BUILD="" 20730 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 20731 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 20732 fi 20733 fi 20734 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 20735 20736 20737 # This isn't really configurey, but it avoids having to repeat the list in 20738 # other files. 20739 ALL_BINDINGS=ocaml 20740 20741 20742 # Do any work necessary to ensure that bindings have what they need. 20743 binding_prereqs_failed=0 20744 for a_binding in $BINDINGS_TO_BUILD ; do 20745 case "$a_binding" in 20746 ocaml) 20747 if test "x$OCAMLC" = x ; then 20748 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 20749 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 20750 binding_prereqs_failed=1 20751 fi 20752 if test "x$OCAMLDEP" = x ; then 20753 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 20754 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 20755 binding_prereqs_failed=1 20756 fi 20757 if test "x$OCAMLOPT" = x ; then 20758 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 20759 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 20760 fi 20761 if test "x$with_ocaml_libdir" != xauto ; then 20762 OCAML_LIBDIR=$with_ocaml_libdir 20763 20764 else 20765 ocaml_stdlib="`"$OCAMLC" -where`" 20766 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 20767 then 20768 # ocaml stdlib is beneath our prefix; use stdlib 20769 OCAML_LIBDIR=$ocaml_stdlib 20770 20771 else 20772 # ocaml stdlib is outside our prefix; use libdir/ocaml 20773 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 20774 20775 fi 20776 fi 20777 ;; 20778 esac 20779 done 20780 if test "$binding_prereqs_failed" = 1 ; then 20781 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 20782 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 20783 { (exit 1); exit 1; }; } 20784 fi 20785 20786 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 20787 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 20788 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 20789 echo $ECHO_N "(cached) $ECHO_C" >&6 20790 else 20791 ac_ext=cpp 20792 ac_cpp='$CXXCPP $CPPFLAGS' 20793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20796 20797 oldcxxflags="$CXXFLAGS" 20798 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 20799 cat >conftest.$ac_ext <<_ACEOF 20800 /* confdefs.h. */ 20801 _ACEOF 20802 cat confdefs.h >>conftest.$ac_ext 20803 cat >>conftest.$ac_ext <<_ACEOF 20804 /* end confdefs.h. */ 20805 template <typename T> struct X { void __attribute__((noinline)) f() {} }; 20806 int 20807 main () 20808 { 20809 X<int>().f(); 20810 ; 20811 return 0; 20812 } 20813 _ACEOF 20814 rm -f conftest.$ac_objext 20815 if { (ac_try="$ac_compile" 20816 case "(($ac_try" in 20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20818 *) ac_try_echo=$ac_try;; 20819 esac 20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20821 (eval "$ac_compile") 2>conftest.er1 20822 ac_status=$? 20823 grep -v '^ *+' conftest.er1 >conftest.err 20824 rm -f conftest.er1 20825 cat conftest.err >&5 20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20827 (exit $ac_status); } && 20828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20829 { (case "(($ac_try" in 20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20831 *) ac_try_echo=$ac_try;; 20832 esac 20833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20834 (eval "$ac_try") 2>&5 20835 ac_status=$? 20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20837 (exit $ac_status); }; } && 20838 { ac_try='test -s conftest.$ac_objext' 20839 { (case "(($ac_try" in 20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20841 *) ac_try_echo=$ac_try;; 20842 esac 20843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20844 (eval "$ac_try") 2>&5 20845 ac_status=$? 20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20847 (exit $ac_status); }; }; then 20848 llvm_cv_cxx_visibility_inlines_hidden=yes 20849 else 20850 echo "$as_me: failed program was:" >&5 20851 sed 's/^/| /' conftest.$ac_ext >&5 20852 20853 llvm_cv_cxx_visibility_inlines_hidden=no 20854 fi 20855 20856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20857 CXXFLAGS="$oldcxxflags" 20858 ac_ext=c 20859 ac_cpp='$CPP $CPPFLAGS' 20860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20862 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20863 20864 20865 fi 20866 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 20867 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 20868 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 20869 ENABLE_VISIBILITY_INLINES_HIDDEN=1 20870 20871 else 20872 ENABLE_VISIBILITY_INLINES_HIDDEN=0 20873 20874 fi 20875 20876 20877 if test "$llvm_cv_link_use_r" = "yes" ; then 20878 RPATH="-Wl,-R" 20879 else 20880 RPATH="-Wl,-rpath" 20881 fi 20882 20883 20884 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 20885 RDYNAMIC="-Wl,-export-dynamic" 20886 else 20887 RDYNAMIC="" 20888 fi 20889 20890 20891 20892 20893 ac_config_files="$ac_config_files Makefile.common" 20894 20895 ac_config_files="$ac_config_files Makefile.llvm.config" 20896 20897 20898 ac_config_commands="$ac_config_commands Makefile" 20899 20900 20901 ac_config_commands="$ac_config_commands lib/Makefile" 20902 20903 20904 ac_config_commands="$ac_config_commands lib/sample/Makefile" 20905 20906 20907 ac_config_commands="$ac_config_commands tools/Makefile" 20908 20909 20910 ac_config_commands="$ac_config_commands tools/sample/Makefile" 20911 20912 20913 20914 cat >confcache <<\_ACEOF 20915 # This file is a shell script that caches the results of configure 20916 # tests run on this system so they can be shared between configure 20917 # scripts and configure runs, see configure's option --config-cache. 20918 # It is not useful on other systems. If it contains results you don't 20919 # want to keep, you may remove or edit it. 20920 # 20921 # config.status only pays attention to the cache file if you give it 20922 # the --recheck option to rerun configure. 20923 # 20924 # `ac_cv_env_foo' variables (set or unset) will be overridden when 20925 # loading this file, other *unset* `ac_cv_foo' will be assigned the 20926 # following values. 20927 20928 _ACEOF 20929 20930 # The following way of writing the cache mishandles newlines in values, 20931 # but we know of no workaround that is simple, portable, and efficient. 20932 # So, we kill variables containing newlines. 20933 # Ultrix sh set writes to stderr and can't be redirected directly, 20934 # and sets the high bit in the cache file unless we assign to the vars. 20935 ( 20936 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20937 eval ac_val=\$$ac_var 20938 case $ac_val in #( 20939 *${as_nl}*) 20940 case $ac_var in #( 20941 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20942 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20943 esac 20944 case $ac_var in #( 20945 _ | IFS | as_nl) ;; #( 20946 *) $as_unset $ac_var ;; 20947 esac ;; 20948 esac 20949 done 20950 20951 (set) 2>&1 | 20952 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20953 *${as_nl}ac_space=\ *) 20954 # `set' does not quote correctly, so add quotes (double-quote 20955 # substitution turns \\\\ into \\, and sed turns \\ into \). 20956 sed -n \ 20957 "s/'/'\\\\''/g; 20958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20959 ;; #( 20960 *) 20961 # `set' quotes correctly as required by POSIX, so do not add quotes. 20962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20963 ;; 20964 esac | 20965 sort 20966 ) | 20967 sed ' 20968 /^ac_cv_env_/b end 20969 t clear 20970 :clear 20971 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20972 t end 20973 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20974 :end' >>confcache 20975 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20976 if test -w "$cache_file"; then 20977 test "x$cache_file" != "x/dev/null" && 20978 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20979 echo "$as_me: updating cache $cache_file" >&6;} 20980 cat confcache >$cache_file 20981 else 20982 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20983 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20984 fi 20985 fi 20986 rm -f confcache 20987 20988 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20989 # Let make expand exec_prefix. 20990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20991 20992 # Transform confdefs.h into DEFS. 20993 # Protect against shell expansion while executing Makefile rules. 20994 # Protect against Makefile macro expansion. 20995 # 20996 # If the first sed substitution is executed (which looks for macros that 20997 # take arguments), then branch to the quote section. Otherwise, 20998 # look for a macro that doesn't take arguments. 20999 ac_script=' 21000 t clear 21001 :clear 21002 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 21003 t quote 21004 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 21005 t quote 21006 b any 21007 :quote 21008 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 21009 s/\[/\\&/g 21010 s/\]/\\&/g 21011 s/\$/$$/g 21012 H 21013 :any 21014 ${ 21015 g 21016 s/^\n// 21017 s/\n/ /g 21018 p 21019 } 21020 ' 21021 DEFS=`sed -n "$ac_script" confdefs.h` 21022 21023 21024 ac_libobjs= 21025 ac_ltlibobjs= 21026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21027 # 1. Remove the extension, and $U if already installed. 21028 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21029 ac_i=`echo "$ac_i" | sed "$ac_script"` 21030 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21031 # will be set to the directory where LIBOBJS objects are built. 21032 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21033 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21034 done 21035 LIBOBJS=$ac_libobjs 21036 21037 LTLIBOBJS=$ac_ltlibobjs 21038 21039 21040 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 21041 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 21042 Usually this means the macro was only invoked conditionally." >&5 21043 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 21044 Usually this means the macro was only invoked conditionally." >&2;} 21045 { (exit 1); exit 1; }; } 21046 fi 21047 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 21048 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21049 Usually this means the macro was only invoked conditionally." >&5 21050 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21051 Usually this means the macro was only invoked conditionally." >&2;} 21052 { (exit 1); exit 1; }; } 21053 fi 21054 21055 : ${CONFIG_STATUS=./config.status} 21056 ac_clean_files_save=$ac_clean_files 21057 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21058 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21059 echo "$as_me: creating $CONFIG_STATUS" >&6;} 21060 cat >$CONFIG_STATUS <<_ACEOF 21061 #! $SHELL 21062 # Generated by $as_me. 21063 # Run this file to recreate the current configuration. 21064 # Compiler output produced by configure, useful for debugging 21065 # configure, is in config.log if it exists. 21066 21067 debug=false 21068 ac_cs_recheck=false 21069 ac_cs_silent=false 21070 SHELL=\${CONFIG_SHELL-$SHELL} 21071 _ACEOF 21072 21073 cat >>$CONFIG_STATUS <<\_ACEOF 21074 ## --------------------- ## 21075 ## M4sh Initialization. ## 21076 ## --------------------- ## 21077 21078 # Be Bourne compatible 21079 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21080 emulate sh 21081 NULLCMD=: 21082 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21083 # is contrary to our usage. Disable this feature. 21084 alias -g '${1+"$@"}'='"$@"' 21085 setopt NO_GLOB_SUBST 21086 else 21087 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21088 fi 21089 BIN_SH=xpg4; export BIN_SH # for Tru64 21090 DUALCASE=1; export DUALCASE # for MKS sh 21091 21092 21093 # PATH needs CR 21094 # Avoid depending upon Character Ranges. 21095 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21096 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21097 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21098 as_cr_digits='0123456789' 21099 as_cr_alnum=$as_cr_Letters$as_cr_digits 21100 21101 # The user is always right. 21102 if test "${PATH_SEPARATOR+set}" != set; then 21103 echo "#! /bin/sh" >conf$$.sh 21104 echo "exit 0" >>conf$$.sh 21105 chmod +x conf$$.sh 21106 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21107 PATH_SEPARATOR=';' 21108 else 21109 PATH_SEPARATOR=: 21110 fi 21111 rm -f conf$$.sh 21112 fi 21113 21114 # Support unset when possible. 21115 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21116 as_unset=unset 21117 else 21118 as_unset=false 21119 fi 21120 21121 21122 # IFS 21123 # We need space, tab and new line, in precisely that order. Quoting is 21124 # there to prevent editors from complaining about space-tab. 21125 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 21126 # splitting by setting IFS to empty value.) 21127 as_nl=' 21128 ' 21129 IFS=" "" $as_nl" 21130 21131 # Find who we are. Look in the path if we contain no directory separator. 21132 case $0 in 21133 *[\\/]* ) as_myself=$0 ;; 21134 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21135 for as_dir in $PATH 21136 do 21137 IFS=$as_save_IFS 21138 test -z "$as_dir" && as_dir=. 21139 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21140 done 21141 IFS=$as_save_IFS 21142 21143 ;; 21144 esac 21145 # We did not find ourselves, most probably we were run as `sh COMMAND' 21146 # in which case we are not to be found in the path. 21147 if test "x$as_myself" = x; then 21148 as_myself=$0 21149 fi 21150 if test ! -f "$as_myself"; then 21151 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21152 { (exit 1); exit 1; } 21153 fi 21154 21155 # Work around bugs in pre-3.0 UWIN ksh. 21156 for as_var in ENV MAIL MAILPATH 21157 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21158 done 21159 PS1='$ ' 21160 PS2='> ' 21161 PS4='+ ' 21162 21163 # NLS nuisances. 21164 for as_var in \ 21165 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21166 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21167 LC_TELEPHONE LC_TIME 21168 do 21169 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21170 eval $as_var=C; export $as_var 21171 else 21172 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21173 fi 21174 done 21175 21176 # Required to use basename. 21177 if expr a : '\(a\)' >/dev/null 2>&1 && 21178 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21179 as_expr=expr 21180 else 21181 as_expr=false 21182 fi 21183 21184 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21185 as_basename=basename 21186 else 21187 as_basename=false 21188 fi 21189 21190 21191 # Name of the executable. 21192 as_me=`$as_basename -- "$0" || 21193 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21194 X"$0" : 'X\(//\)$' \| \ 21195 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21196 echo X/"$0" | 21197 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21198 s//\1/ 21199 q 21200 } 21201 /^X\/\(\/\/\)$/{ 21202 s//\1/ 21203 q 21204 } 21205 /^X\/\(\/\).*/{ 21206 s//\1/ 21207 q 21208 } 21209 s/.*/./; q'` 21210 21211 # CDPATH. 21212 $as_unset CDPATH 21213 21214 21215 21216 as_lineno_1=$LINENO 21217 as_lineno_2=$LINENO 21218 test "x$as_lineno_1" != "x$as_lineno_2" && 21219 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21220 21221 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21222 # uniformly replaced by the line number. The first 'sed' inserts a 21223 # line-number line after each line using $LINENO; the second 'sed' 21224 # does the real work. The second script uses 'N' to pair each 21225 # line-number line with the line containing $LINENO, and appends 21226 # trailing '-' during substitution so that $LINENO is not a special 21227 # case at line end. 21228 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21229 # scripts with optimization help from Paolo Bonzini. Blame Lee 21230 # E. McMahon (1931-1989) for sed's syntax. :-) 21231 sed -n ' 21232 p 21233 /[$]LINENO/= 21234 ' <$as_myself | 21235 sed ' 21236 s/[$]LINENO.*/&-/ 21237 t lineno 21238 b 21239 :lineno 21240 N 21241 :loop 21242 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21243 t loop 21244 s/-\n.*// 21245 ' >$as_me.lineno && 21246 chmod +x "$as_me.lineno" || 21247 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21248 { (exit 1); exit 1; }; } 21249 21250 # Don't try to exec as it changes $[0], causing all sort of problems 21251 # (the dirname of $[0] is not the place where we might find the 21252 # original and so on. Autoconf is especially sensitive to this). 21253 . "./$as_me.lineno" 21254 # Exit status is that of the last command. 21255 exit 21256 } 21257 21258 21259 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21260 as_dirname=dirname 21261 else 21262 as_dirname=false 21263 fi 21264 21265 ECHO_C= ECHO_N= ECHO_T= 21266 case `echo -n x` in 21267 -n*) 21268 case `echo 'x\c'` in 21269 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21270 *) ECHO_C='\c';; 21271 esac;; 21272 *) 21273 ECHO_N='-n';; 21274 esac 21275 21276 if expr a : '\(a\)' >/dev/null 2>&1 && 21277 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21278 as_expr=expr 21279 else 21280 as_expr=false 21281 fi 21282 21283 rm -f conf$$ conf$$.exe conf$$.file 21284 if test -d conf$$.dir; then 21285 rm -f conf$$.dir/conf$$.file 21286 else 21287 rm -f conf$$.dir 21288 mkdir conf$$.dir 21289 fi 21290 echo >conf$$.file 21291 if ln -s conf$$.file conf$$ 2>/dev/null; then 21292 as_ln_s='ln -s' 21293 # ... but there are two gotchas: 21294 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21295 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21296 # In both cases, we have to default to `cp -p'. 21297 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21298 as_ln_s='cp -p' 21299 elif ln conf$$.file conf$$ 2>/dev/null; then 21300 as_ln_s=ln 21301 else 21302 as_ln_s='cp -p' 21303 fi 21304 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21305 rmdir conf$$.dir 2>/dev/null 21306 21307 if mkdir -p . 2>/dev/null; then 21308 as_mkdir_p=: 21309 else 21310 test -d ./-p && rmdir ./-p 21311 as_mkdir_p=false 21312 fi 21313 21314 # Find out whether ``test -x'' works. Don't use a zero-byte file, as 21315 # systems may use methods other than mode bits to determine executability. 21316 cat >conf$$.file <<_ASEOF 21317 #! /bin/sh 21318 exit 0 21319 _ASEOF 21320 chmod +x conf$$.file 21321 if test -x conf$$.file >/dev/null 2>&1; then 21322 as_executable_p="test -x" 21323 else 21324 as_executable_p=: 21325 fi 21326 rm -f conf$$.file 21327 21328 # Sed expression to map a string onto a valid CPP name. 21329 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21330 21331 # Sed expression to map a string onto a valid variable name. 21332 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21333 21334 21335 exec 6>&1 21336 21337 # Save the log message, to keep $[0] and so on meaningful, and to 21338 # report actual input values of CONFIG_FILES etc. instead of their 21339 # values after options handling. 21340 ac_log=" 21341 This file was extended by [SAMPLE] $as_me [x.xx], which was 21342 generated by GNU Autoconf 2.60. Invocation command line was 21343 21344 CONFIG_FILES = $CONFIG_FILES 21345 CONFIG_HEADERS = $CONFIG_HEADERS 21346 CONFIG_LINKS = $CONFIG_LINKS 21347 CONFIG_COMMANDS = $CONFIG_COMMANDS 21348 $ $0 $@ 21349 21350 on `(hostname || uname -n) 2>/dev/null | sed 1q` 21351 " 21352 21353 _ACEOF 21354 21355 cat >>$CONFIG_STATUS <<_ACEOF 21356 # Files that config.status was made for. 21357 config_files="$ac_config_files" 21358 config_commands="$ac_config_commands" 21359 21360 _ACEOF 21361 21362 cat >>$CONFIG_STATUS <<\_ACEOF 21363 ac_cs_usage="\ 21364 \`$as_me' instantiates files from templates according to the 21365 current configuration. 21366 21367 Usage: $0 [OPTIONS] [FILE]... 21368 21369 -h, --help print this help, then exit 21370 -V, --version print version number, then exit 21371 -q, --quiet do not print progress messages 21372 -d, --debug don't remove temporary files 21373 --recheck update $as_me by reconfiguring in the same conditions 21374 --file=FILE[:TEMPLATE] 21375 instantiate the configuration file FILE 21376 21377 Configuration files: 21378 $config_files 21379 21380 Configuration commands: 21381 $config_commands 21382 21383 Report bugs to <bug-autoconf@gnu.org>." 21384 21385 _ACEOF 21386 cat >>$CONFIG_STATUS <<_ACEOF 21387 ac_cs_version="\\ 21388 [SAMPLE] config.status [x.xx] 21389 configured by $0, generated by GNU Autoconf 2.60, 21390 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21391 21392 Copyright (C) 2006 Free Software Foundation, Inc. 21393 This config.status script is free software; the Free Software Foundation 21394 gives unlimited permission to copy, distribute and modify it." 21395 21396 ac_pwd='$ac_pwd' 21397 srcdir='$srcdir' 21398 INSTALL='$INSTALL' 21399 _ACEOF 21400 21401 cat >>$CONFIG_STATUS <<\_ACEOF 21402 # If no file are specified by the user, then we need to provide default 21403 # value. By we need to know if files were specified by the user. 21404 ac_need_defaults=: 21405 while test $# != 0 21406 do 21407 case $1 in 21408 --*=*) 21409 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21410 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21411 ac_shift=: 21412 ;; 21413 *) 21414 ac_option=$1 21415 ac_optarg=$2 21416 ac_shift=shift 21417 ;; 21418 esac 21419 21420 case $ac_option in 21421 # Handling of the options. 21422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21423 ac_cs_recheck=: ;; 21424 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21425 echo "$ac_cs_version"; exit ;; 21426 --debug | --debu | --deb | --de | --d | -d ) 21427 debug=: ;; 21428 --file | --fil | --fi | --f ) 21429 $ac_shift 21430 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21431 ac_need_defaults=false;; 21432 --he | --h | --help | --hel | -h ) 21433 echo "$ac_cs_usage"; exit ;; 21434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21435 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21436 ac_cs_silent=: ;; 21437 21438 # This is an error. 21439 -*) { echo "$as_me: error: unrecognized option: $1 21440 Try \`$0 --help' for more information." >&2 21441 { (exit 1); exit 1; }; } ;; 21442 21443 *) ac_config_targets="$ac_config_targets $1" 21444 ac_need_defaults=false ;; 21445 21446 esac 21447 shift 21448 done 21449 21450 ac_configure_extra_args= 21451 21452 if $ac_cs_silent; then 21453 exec 6>/dev/null 21454 ac_configure_extra_args="$ac_configure_extra_args --silent" 21455 fi 21456 21457 _ACEOF 21458 cat >>$CONFIG_STATUS <<_ACEOF 21459 if \$ac_cs_recheck; then 21460 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21461 CONFIG_SHELL=$SHELL 21462 export CONFIG_SHELL 21463 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21464 fi 21465 21466 _ACEOF 21467 cat >>$CONFIG_STATUS <<\_ACEOF 21468 exec 5>>config.log 21469 { 21470 echo 21471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21472 ## Running $as_me. ## 21473 _ASBOX 21474 echo "$ac_log" 21475 } >&5 21476 21477 _ACEOF 21478 cat >>$CONFIG_STATUS <<_ACEOF 21479 # 21480 # INIT-COMMANDS 21481 # 21482 llvm_src="${LLVM_SRC}" 21483 21484 _ACEOF 21485 21486 cat >>$CONFIG_STATUS <<\_ACEOF 21487 21488 # Handling of arguments. 21489 for ac_config_target in $ac_config_targets 21490 do 21491 case $ac_config_target in 21492 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 21493 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;; 21494 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;; 21495 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 21496 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 21497 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;; 21498 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 21499 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;; 21500 21501 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21502 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21503 { (exit 1); exit 1; }; };; 21504 esac 21505 done 21506 21507 21508 # If the user did not use the arguments to specify the items to instantiate, 21509 # then the envvar interface is used. Set only those that are not. 21510 # We use the long form for the default assignment because of an extremely 21511 # bizarre bug on SunOS 4.1.3. 21512 if $ac_need_defaults; then 21513 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21514 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21515 fi 21516 21517 # Have a temporary directory for convenience. Make it in the build tree 21518 # simply because there is no reason against having it here, and in addition, 21519 # creating and moving files from /tmp can sometimes cause problems. 21520 # Hook for its removal unless debugging. 21521 # Note that there is a small window in which the directory will not be cleaned: 21522 # after its creation but before its name has been assigned to `$tmp'. 21523 $debug || 21524 { 21525 tmp= 21526 trap 'exit_status=$? 21527 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21528 ' 0 21529 trap '{ (exit 1); exit 1; }' 1 2 13 15 21530 } 21531 # Create a (secure) tmp directory for tmp files. 21532 21533 { 21534 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21535 test -n "$tmp" && test -d "$tmp" 21536 } || 21537 { 21538 tmp=./conf$$-$RANDOM 21539 (umask 077 && mkdir "$tmp") 21540 } || 21541 { 21542 echo "$me: cannot create a temporary directory in ." >&2 21543 { (exit 1); exit 1; } 21544 } 21545 21546 # 21547 # Set up the sed scripts for CONFIG_FILES section. 21548 # 21549 21550 # No need to generate the scripts if there are no CONFIG_FILES. 21551 # This happens for instance when ./config.status config.h 21552 if test -n "$CONFIG_FILES"; then 21553 21554 _ACEOF 21555 21556 21557 21558 ac_delim='%!_!# ' 21559 for ac_last_try in false false false false false :; do 21560 cat >conf$$subs.sed <<_ACEOF 21561 SHELL!$SHELL$ac_delim 21562 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21563 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21564 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21565 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21566 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21567 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21568 exec_prefix!$exec_prefix$ac_delim 21569 prefix!$prefix$ac_delim 21570 program_transform_name!$program_transform_name$ac_delim 21571 bindir!$bindir$ac_delim 21572 sbindir!$sbindir$ac_delim 21573 libexecdir!$libexecdir$ac_delim 21574 datarootdir!$datarootdir$ac_delim 21575 datadir!$datadir$ac_delim 21576 sysconfdir!$sysconfdir$ac_delim 21577 sharedstatedir!$sharedstatedir$ac_delim 21578 localstatedir!$localstatedir$ac_delim 21579 includedir!$includedir$ac_delim 21580 oldincludedir!$oldincludedir$ac_delim 21581 docdir!$docdir$ac_delim 21582 infodir!$infodir$ac_delim 21583 htmldir!$htmldir$ac_delim 21584 dvidir!$dvidir$ac_delim 21585 pdfdir!$pdfdir$ac_delim 21586 psdir!$psdir$ac_delim 21587 libdir!$libdir$ac_delim 21588 localedir!$localedir$ac_delim 21589 mandir!$mandir$ac_delim 21590 DEFS!$DEFS$ac_delim 21591 ECHO_C!$ECHO_C$ac_delim 21592 ECHO_N!$ECHO_N$ac_delim 21593 ECHO_T!$ECHO_T$ac_delim 21594 LIBS!$LIBS$ac_delim 21595 build_alias!$build_alias$ac_delim 21596 host_alias!$host_alias$ac_delim 21597 target_alias!$target_alias$ac_delim 21598 LLVM_SRC!$LLVM_SRC$ac_delim 21599 LLVM_OBJ!$LLVM_OBJ$ac_delim 21600 LLVM_VERSION!$LLVM_VERSION$ac_delim 21601 CC!$CC$ac_delim 21602 CFLAGS!$CFLAGS$ac_delim 21603 LDFLAGS!$LDFLAGS$ac_delim 21604 CPPFLAGS!$CPPFLAGS$ac_delim 21605 ac_ct_CC!$ac_ct_CC$ac_delim 21606 EXEEXT!$EXEEXT$ac_delim 21607 OBJEXT!$OBJEXT$ac_delim 21608 CXX!$CXX$ac_delim 21609 CXXFLAGS!$CXXFLAGS$ac_delim 21610 ac_ct_CXX!$ac_ct_CXX$ac_delim 21611 CPP!$CPP$ac_delim 21612 ENABLE_POLLY!$ENABLE_POLLY$ac_delim 21613 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 21614 subdirs!$subdirs$ac_delim 21615 build!$build$ac_delim 21616 build_cpu!$build_cpu$ac_delim 21617 build_vendor!$build_vendor$ac_delim 21618 build_os!$build_os$ac_delim 21619 host!$host$ac_delim 21620 host_cpu!$host_cpu$ac_delim 21621 host_vendor!$host_vendor$ac_delim 21622 host_os!$host_os$ac_delim 21623 target!$target$ac_delim 21624 target_cpu!$target_cpu$ac_delim 21625 target_vendor!$target_vendor$ac_delim 21626 target_os!$target_os$ac_delim 21627 OS!$OS$ac_delim 21628 HOST_OS!$HOST_OS$ac_delim 21629 TARGET_OS!$TARGET_OS$ac_delim 21630 LINKALL!$LINKALL$ac_delim 21631 NOLINKALL!$NOLINKALL$ac_delim 21632 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 21633 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 21634 ARCH!$ARCH$ac_delim 21635 ENDIAN!$ENDIAN$ac_delim 21636 GREP!$GREP$ac_delim 21637 EGREP!$EGREP$ac_delim 21638 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 21639 BUILD_CC!$BUILD_CC$ac_delim 21640 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 21641 BUILD_CXX!$BUILD_CXX$ac_delim 21642 CVSBUILD!$CVSBUILD$ac_delim 21643 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 21644 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 21645 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 21646 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 21647 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 21648 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 21649 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 21650 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 21651 JIT!$JIT$ac_delim 21652 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 21653 ENABLE_DOCS!$ENABLE_DOCS$ac_delim 21654 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 21655 ENABLE_THREADS!$ENABLE_THREADS$ac_delim 21656 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 21657 ENABLE_PIC!$ENABLE_PIC$ac_delim 21658 _ACEOF 21659 21660 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21661 break 21662 elif $ac_last_try; then 21663 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21664 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21665 { (exit 1); exit 1; }; } 21666 else 21667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21668 fi 21669 done 21670 21671 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21672 if test -n "$ac_eof"; then 21673 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21674 ac_eof=`expr $ac_eof + 1` 21675 fi 21676 21677 cat >>$CONFIG_STATUS <<_ACEOF 21678 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21680 _ACEOF 21681 sed ' 21682 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21683 s/^/s,@/; s/!/@,|#_!!_#|/ 21684 :n 21685 t n 21686 s/'"$ac_delim"'$/,g/; t 21687 s/$/\\/; p 21688 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21689 ' >>$CONFIG_STATUS <conf$$subs.sed 21690 rm -f conf$$subs.sed 21691 cat >>$CONFIG_STATUS <<_ACEOF 21692 CEOF$ac_eof 21693 _ACEOF 21694 21695 21696 ac_delim='%!_!# ' 21697 for ac_last_try in false false false false false :; do 21698 cat >conf$$subs.sed <<_ACEOF 21699 ENABLE_SHARED!$ENABLE_SHARED$ac_delim 21700 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 21701 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 21702 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 21703 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 21704 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 21705 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 21706 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 21707 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 21708 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 21709 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 21710 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 21711 NM!$NM$ac_delim 21712 ifGNUmake!$ifGNUmake$ac_delim 21713 LN_S!$LN_S$ac_delim 21714 CMP!$CMP$ac_delim 21715 CP!$CP$ac_delim 21716 DATE!$DATE$ac_delim 21717 FIND!$FIND$ac_delim 21718 MKDIR!$MKDIR$ac_delim 21719 MV!$MV$ac_delim 21720 RANLIB!$RANLIB$ac_delim 21721 AR!$AR$ac_delim 21722 RM!$RM$ac_delim 21723 SED!$SED$ac_delim 21724 TAR!$TAR$ac_delim 21725 BINPWD!$BINPWD$ac_delim 21726 GRAPHVIZ!$GRAPHVIZ$ac_delim 21727 DOT!$DOT$ac_delim 21728 FDP!$FDP$ac_delim 21729 NEATO!$NEATO$ac_delim 21730 TWOPI!$TWOPI$ac_delim 21731 CIRCO!$CIRCO$ac_delim 21732 GV!$GV$ac_delim 21733 DOTTY!$DOTTY$ac_delim 21734 XDOT_PY!$XDOT_PY$ac_delim 21735 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21736 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21737 INSTALL_DATA!$INSTALL_DATA$ac_delim 21738 BZIP2!$BZIP2$ac_delim 21739 CAT!$CAT$ac_delim 21740 DOXYGEN!$DOXYGEN$ac_delim 21741 GROFF!$GROFF$ac_delim 21742 GZIPBIN!$GZIPBIN$ac_delim 21743 POD2HTML!$POD2HTML$ac_delim 21744 POD2MAN!$POD2MAN$ac_delim 21745 PDFROFF!$PDFROFF$ac_delim 21746 RUNTEST!$RUNTEST$ac_delim 21747 TCLSH!$TCLSH$ac_delim 21748 ZIP!$ZIP$ac_delim 21749 OCAMLC!$OCAMLC$ac_delim 21750 OCAMLOPT!$OCAMLOPT$ac_delim 21751 OCAMLDEP!$OCAMLDEP$ac_delim 21752 OCAMLDOC!$OCAMLDOC$ac_delim 21753 GAS!$GAS$ac_delim 21754 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 21755 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 21756 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 21757 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 21758 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 21759 LIBADD_DL!$LIBADD_DL$ac_delim 21760 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 21761 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 21762 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 21763 USE_UDIS86!$USE_UDIS86$ac_delim 21764 USE_OPROFILE!$USE_OPROFILE$ac_delim 21765 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 21766 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 21767 MMAP_FILE!$MMAP_FILE$ac_delim 21768 SHLIBEXT!$SHLIBEXT$ac_delim 21769 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 21770 LLVM_PREFIX!$LLVM_PREFIX$ac_delim 21771 LLVM_BINDIR!$LLVM_BINDIR$ac_delim 21772 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 21773 LLVM_DATADIR!$LLVM_DATADIR$ac_delim 21774 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 21775 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 21776 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 21777 LLVM_INFODIR!$LLVM_INFODIR$ac_delim 21778 LLVM_MANDIR!$LLVM_MANDIR$ac_delim 21779 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 21780 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 21781 ALL_BINDINGS!$ALL_BINDINGS$ac_delim 21782 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 21783 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 21784 RPATH!$RPATH$ac_delim 21785 RDYNAMIC!$RDYNAMIC$ac_delim 21786 LIBOBJS!$LIBOBJS$ac_delim 21787 LTLIBOBJS!$LTLIBOBJS$ac_delim 21788 _ACEOF 21789 21790 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then 21791 break 21792 elif $ac_last_try; then 21793 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21794 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21795 { (exit 1); exit 1; }; } 21796 else 21797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21798 fi 21799 done 21800 21801 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21802 if test -n "$ac_eof"; then 21803 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21804 ac_eof=`expr $ac_eof + 1` 21805 fi 21806 21807 cat >>$CONFIG_STATUS <<_ACEOF 21808 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21810 _ACEOF 21811 sed ' 21812 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21813 s/^/s,@/; s/!/@,|#_!!_#|/ 21814 :n 21815 t n 21816 s/'"$ac_delim"'$/,g/; t 21817 s/$/\\/; p 21818 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21819 ' >>$CONFIG_STATUS <conf$$subs.sed 21820 rm -f conf$$subs.sed 21821 cat >>$CONFIG_STATUS <<_ACEOF 21822 :end 21823 s/|#_!!_#|//g 21824 CEOF$ac_eof 21825 _ACEOF 21826 21827 21828 # VPATH may cause trouble with some makes, so we remove $(srcdir), 21829 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21830 # trailing colons and then remove the whole line if VPATH becomes empty 21831 # (actually we leave an empty line to preserve line numbers). 21832 if test "x$srcdir" = x.; then 21833 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21834 s/:*\$(srcdir):*/:/ 21835 s/:*\${srcdir}:*/:/ 21836 s/:*@srcdir@:*/:/ 21837 s/^\([^=]*=[ ]*\):*/\1/ 21838 s/:*$// 21839 s/^[^=]*=[ ]*$// 21840 }' 21841 fi 21842 21843 cat >>$CONFIG_STATUS <<\_ACEOF 21844 fi # test -n "$CONFIG_FILES" 21845 21846 21847 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 21848 do 21849 case $ac_tag in 21850 :[FHLC]) ac_mode=$ac_tag; continue;; 21851 esac 21852 case $ac_mode$ac_tag in 21853 :[FHL]*:*);; 21854 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21855 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21856 { (exit 1); exit 1; }; };; 21857 :[FH]-) ac_tag=-:-;; 21858 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21859 esac 21860 ac_save_IFS=$IFS 21861 IFS=: 21862 set x $ac_tag 21863 IFS=$ac_save_IFS 21864 shift 21865 ac_file=$1 21866 shift 21867 21868 case $ac_mode in 21869 :L) ac_source=$1;; 21870 :[FH]) 21871 ac_file_inputs= 21872 for ac_f 21873 do 21874 case $ac_f in 21875 -) ac_f="$tmp/stdin";; 21876 *) # Look for the file first in the build tree, then in the source tree 21877 # (if the path is not absolute). The absolute path cannot be DOS-style, 21878 # because $ac_f cannot contain `:'. 21879 test -f "$ac_f" || 21880 case $ac_f in 21881 [\\/$]*) false;; 21882 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21883 esac || 21884 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21885 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21886 { (exit 1); exit 1; }; };; 21887 esac 21888 ac_file_inputs="$ac_file_inputs $ac_f" 21889 done 21890 21891 # Let's still pretend it is `configure' which instantiates (i.e., don't 21892 # use $as_me), people would be surprised to read: 21893 # /* config.h. Generated by config.status. */ 21894 configure_input="Generated from "`IFS=: 21895 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21896 if test x"$ac_file" != x-; then 21897 configure_input="$ac_file. $configure_input" 21898 { echo "$as_me:$LINENO: creating $ac_file" >&5 21899 echo "$as_me: creating $ac_file" >&6;} 21900 fi 21901 21902 case $ac_tag in 21903 *:-:* | *:-) cat >"$tmp/stdin";; 21904 esac 21905 ;; 21906 esac 21907 21908 ac_dir=`$as_dirname -- "$ac_file" || 21909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21910 X"$ac_file" : 'X\(//\)[^/]' \| \ 21911 X"$ac_file" : 'X\(//\)$' \| \ 21912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21913 echo X"$ac_file" | 21914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21915 s//\1/ 21916 q 21917 } 21918 /^X\(\/\/\)[^/].*/{ 21919 s//\1/ 21920 q 21921 } 21922 /^X\(\/\/\)$/{ 21923 s//\1/ 21924 q 21925 } 21926 /^X\(\/\).*/{ 21927 s//\1/ 21928 q 21929 } 21930 s/.*/./; q'` 21931 { as_dir="$ac_dir" 21932 case $as_dir in #( 21933 -*) as_dir=./$as_dir;; 21934 esac 21935 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21936 as_dirs= 21937 while :; do 21938 case $as_dir in #( 21939 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21940 *) as_qdir=$as_dir;; 21941 esac 21942 as_dirs="'$as_qdir' $as_dirs" 21943 as_dir=`$as_dirname -- "$as_dir" || 21944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21945 X"$as_dir" : 'X\(//\)[^/]' \| \ 21946 X"$as_dir" : 'X\(//\)$' \| \ 21947 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21948 echo X"$as_dir" | 21949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21950 s//\1/ 21951 q 21952 } 21953 /^X\(\/\/\)[^/].*/{ 21954 s//\1/ 21955 q 21956 } 21957 /^X\(\/\/\)$/{ 21958 s//\1/ 21959 q 21960 } 21961 /^X\(\/\).*/{ 21962 s//\1/ 21963 q 21964 } 21965 s/.*/./; q'` 21966 test -d "$as_dir" && break 21967 done 21968 test -z "$as_dirs" || eval "mkdir $as_dirs" 21969 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21970 echo "$as_me: error: cannot create directory $as_dir" >&2;} 21971 { (exit 1); exit 1; }; }; } 21972 ac_builddir=. 21973 21974 case "$ac_dir" in 21975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21976 *) 21977 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21978 # A ".." for each directory in $ac_dir_suffix. 21979 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21980 case $ac_top_builddir_sub in 21981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21983 esac ;; 21984 esac 21985 ac_abs_top_builddir=$ac_pwd 21986 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21987 # for backward compatibility: 21988 ac_top_builddir=$ac_top_build_prefix 21989 21990 case $srcdir in 21991 .) # We are building in place. 21992 ac_srcdir=. 21993 ac_top_srcdir=$ac_top_builddir_sub 21994 ac_abs_top_srcdir=$ac_pwd ;; 21995 [\\/]* | ?:[\\/]* ) # Absolute name. 21996 ac_srcdir=$srcdir$ac_dir_suffix; 21997 ac_top_srcdir=$srcdir 21998 ac_abs_top_srcdir=$srcdir ;; 21999 *) # Relative name. 22000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22001 ac_top_srcdir=$ac_top_build_prefix$srcdir 22002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22003 esac 22004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22005 22006 22007 case $ac_mode in 22008 :F) 22009 # 22010 # CONFIG_FILE 22011 # 22012 22013 case $INSTALL in 22014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22016 esac 22017 _ACEOF 22018 22019 cat >>$CONFIG_STATUS <<\_ACEOF 22020 # If the template does not know about datarootdir, expand it. 22021 # FIXME: This hack should be removed a few years after 2.60. 22022 ac_datarootdir_hack=; ac_datarootdir_seen= 22023 22024 case `sed -n '/datarootdir/ { 22025 p 22026 q 22027 } 22028 /@datadir@/p 22029 /@docdir@/p 22030 /@infodir@/p 22031 /@localedir@/p 22032 /@mandir@/p 22033 ' $ac_file_inputs` in 22034 *datarootdir*) ac_datarootdir_seen=yes;; 22035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22036 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22037 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22038 _ACEOF 22039 cat >>$CONFIG_STATUS <<_ACEOF 22040 ac_datarootdir_hack=' 22041 s&@datadir@&$datadir&g 22042 s&@docdir@&$docdir&g 22043 s&@infodir@&$infodir&g 22044 s&@localedir@&$localedir&g 22045 s&@mandir@&$mandir&g 22046 s&\\\${datarootdir}&$datarootdir&g' ;; 22047 esac 22048 _ACEOF 22049 22050 # Neutralize VPATH when `$srcdir' = `.'. 22051 # Shell code in configure.ac might set extrasub. 22052 # FIXME: do we really want to maintain this feature? 22053 cat >>$CONFIG_STATUS <<_ACEOF 22054 sed "$ac_vpsub 22055 $extrasub 22056 _ACEOF 22057 cat >>$CONFIG_STATUS <<\_ACEOF 22058 :t 22059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22060 s&@configure_input@&$configure_input&;t t 22061 s&@top_builddir@&$ac_top_builddir_sub&;t t 22062 s&@srcdir@&$ac_srcdir&;t t 22063 s&@abs_srcdir@&$ac_abs_srcdir&;t t 22064 s&@top_srcdir@&$ac_top_srcdir&;t t 22065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22066 s&@builddir@&$ac_builddir&;t t 22067 s&@abs_builddir@&$ac_abs_builddir&;t t 22068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22069 s&@INSTALL@&$ac_INSTALL&;t t 22070 $ac_datarootdir_hack 22071 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22072 22073 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22074 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22075 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22076 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22077 which seems to be undefined. Please make sure it is defined." >&5 22078 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22079 which seems to be undefined. Please make sure it is defined." >&2;} 22080 22081 rm -f "$tmp/stdin" 22082 case $ac_file in 22083 -) cat "$tmp/out"; rm -f "$tmp/out";; 22084 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22085 esac 22086 ;; 22087 22088 22089 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22090 echo "$as_me: executing $ac_file commands" >&6;} 22091 ;; 22092 esac 22093 22094 22095 case $ac_file$ac_mode in 22096 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 22097 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 22098 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 22099 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 22100 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile` 22101 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;; 22102 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 22103 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 22104 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile` 22105 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;; 22106 22107 esac 22108 done # for ac_tag 22109 22110 22111 { (exit 0); exit 0; } 22112 _ACEOF 22113 chmod +x $CONFIG_STATUS 22114 ac_clean_files=$ac_clean_files_save 22115 22116 22117 # configure is writing to config.log, and then calls config.status. 22118 # config.status does its own redirection, appending to config.log. 22119 # Unfortunately, on DOS this fails, as config.log is still kept open 22120 # by configure, so config.status won't be able to write to it; its 22121 # output is simply discarded. So we exec the FD to /dev/null, 22122 # effectively closing config.log, so it can be properly (re)opened and 22123 # appended to by config.status. When coming back to configure, we 22124 # need to make the FD available again. 22125 if test "$no_create" != yes; then 22126 ac_cs_success=: 22127 ac_config_status_args= 22128 test "$silent" = yes && 22129 ac_config_status_args="$ac_config_status_args --quiet" 22130 exec 5>/dev/null 22131 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22132 exec 5>>config.log 22133 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22134 # would make configure fail if this is the last instruction. 22135 $ac_cs_success || { (exit 1); exit 1; } 22136 fi 22137 22138 # 22139 # CONFIG_SUBDIRS section. 22140 # 22141 if test "$no_recursion" != yes; then 22142 22143 # Remove --cache-file and --srcdir arguments so they do not pile up. 22144 ac_sub_configure_args= 22145 ac_prev= 22146 eval "set x $ac_configure_args" 22147 shift 22148 for ac_arg 22149 do 22150 if test -n "$ac_prev"; then 22151 ac_prev= 22152 continue 22153 fi 22154 case $ac_arg in 22155 -cache-file | --cache-file | --cache-fil | --cache-fi \ 22156 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 22157 ac_prev=cache_file ;; 22158 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 22159 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 22160 | --c=*) 22161 ;; 22162 --config-cache | -C) 22163 ;; 22164 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 22165 ac_prev=srcdir ;; 22166 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 22167 ;; 22168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 22169 ac_prev=prefix ;; 22170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 22171 ;; 22172 *) 22173 case $ac_arg in 22174 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22175 esac 22176 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 22177 esac 22178 done 22179 22180 # Always prepend --prefix to ensure using the same prefix 22181 # in subdir configurations. 22182 ac_arg="--prefix=$prefix" 22183 case $ac_arg in 22184 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22185 esac 22186 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 22187 22188 ac_popdir=`pwd` 22189 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 22190 22191 # Do not complain, so a configure script can configure whichever 22192 # parts of a large source tree are present. 22193 test -d "$srcdir/$ac_dir" || continue 22194 22195 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 22196 echo "$as_me:$LINENO: $ac_msg" >&5 22197 echo "$ac_msg" >&6 22198 { as_dir="$ac_dir" 22199 case $as_dir in #( 22200 -*) as_dir=./$as_dir;; 22201 esac 22202 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22203 as_dirs= 22204 while :; do 22205 case $as_dir in #( 22206 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22207 *) as_qdir=$as_dir;; 22208 esac 22209 as_dirs="'$as_qdir' $as_dirs" 22210 as_dir=`$as_dirname -- "$as_dir" || 22211 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22212 X"$as_dir" : 'X\(//\)[^/]' \| \ 22213 X"$as_dir" : 'X\(//\)$' \| \ 22214 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22215 echo X"$as_dir" | 22216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22217 s//\1/ 22218 q 22219 } 22220 /^X\(\/\/\)[^/].*/{ 22221 s//\1/ 22222 q 22223 } 22224 /^X\(\/\/\)$/{ 22225 s//\1/ 22226 q 22227 } 22228 /^X\(\/\).*/{ 22229 s//\1/ 22230 q 22231 } 22232 s/.*/./; q'` 22233 test -d "$as_dir" && break 22234 done 22235 test -z "$as_dirs" || eval "mkdir $as_dirs" 22236 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22237 echo "$as_me: error: cannot create directory $as_dir" >&2;} 22238 { (exit 1); exit 1; }; }; } 22239 ac_builddir=. 22240 22241 case "$ac_dir" in 22242 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22243 *) 22244 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22245 # A ".." for each directory in $ac_dir_suffix. 22246 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22247 case $ac_top_builddir_sub in 22248 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22249 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22250 esac ;; 22251 esac 22252 ac_abs_top_builddir=$ac_pwd 22253 ac_abs_builddir=$ac_pwd$ac_dir_suffix 22254 # for backward compatibility: 22255 ac_top_builddir=$ac_top_build_prefix 22256 22257 case $srcdir in 22258 .) # We are building in place. 22259 ac_srcdir=. 22260 ac_top_srcdir=$ac_top_builddir_sub 22261 ac_abs_top_srcdir=$ac_pwd ;; 22262 [\\/]* | ?:[\\/]* ) # Absolute name. 22263 ac_srcdir=$srcdir$ac_dir_suffix; 22264 ac_top_srcdir=$srcdir 22265 ac_abs_top_srcdir=$srcdir ;; 22266 *) # Relative name. 22267 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22268 ac_top_srcdir=$ac_top_build_prefix$srcdir 22269 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22270 esac 22271 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22272 22273 22274 cd "$ac_dir" 22275 22276 # Check for guested configure; otherwise get Cygnus style configure. 22277 if test -f "$ac_srcdir/configure.gnu"; then 22278 ac_sub_configure=$ac_srcdir/configure.gnu 22279 elif test -f "$ac_srcdir/configure"; then 22280 ac_sub_configure=$ac_srcdir/configure 22281 elif test -f "$ac_srcdir/configure.in"; then 22282 # This should be Cygnus configure. 22283 ac_sub_configure=$ac_aux_dir/configure 22284 else 22285 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 22286 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 22287 ac_sub_configure= 22288 fi 22289 22290 # The recursion is here. 22291 if test -n "$ac_sub_configure"; then 22292 # Make the cache file name correct relative to the subdirectory. 22293 case $cache_file in 22294 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 22295 *) # Relative name. 22296 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 22297 esac 22298 22299 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 22300 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 22301 # The eval makes quoting arguments work. 22302 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 22303 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 22304 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 22305 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 22306 { (exit 1); exit 1; }; } 22307 fi 22308 22309 cd "$ac_popdir" 22310 done 22311 fi 22312 22313