configure revision d23cd02ffe8399be976729d0d48106194dd43820
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for LLVM 3.4svn. 4# 5# Report bugs to <http://llvm.org/bugs/>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11# 12# Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign. 13## --------------------- ## 14## M4sh Initialization. ## 15## --------------------- ## 16 17# Be Bourne compatible 18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 emulate sh 20 NULLCMD=: 21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # is contrary to our usage. Disable this feature. 23 alias -g '${1+"$@"}'='"$@"' 24 setopt NO_GLOB_SUBST 25else 26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 27fi 28BIN_SH=xpg4; export BIN_SH # for Tru64 29DUALCASE=1; export DUALCASE # for MKS sh 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240# Be Bourne compatible 241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 242 emulate sh 243 NULLCMD=: 244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 245 # is contrary to our usage. Disable this feature. 246 alias -g '${1+"$@"}'='"$@"' 247 setopt NO_GLOB_SUBST 248else 249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 250fi 251BIN_SH=xpg4; export BIN_SH # for Tru64 252DUALCASE=1; export DUALCASE # for MKS sh 253 254: 255_ASEOF 256}; then 257 CONFIG_SHELL=$as_shell 258 as_have_required=yes 259 if { "$as_shell" 2> /dev/null <<\_ASEOF 260# Be Bourne compatible 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 270fi 271BIN_SH=xpg4; export BIN_SH # for Tru64 272DUALCASE=1; export DUALCASE # for MKS sh 273 274: 275(as_func_return () { 276 (exit $1) 277} 278as_func_success () { 279 as_func_return 0 280} 281as_func_failure () { 282 as_func_return 1 283} 284as_func_ret_success () { 285 return 0 286} 287as_func_ret_failure () { 288 return 1 289} 290 291exitcode=0 292if as_func_success; then 293 : 294else 295 exitcode=1 296 echo as_func_success failed. 297fi 298 299if as_func_failure; then 300 exitcode=1 301 echo as_func_failure succeeded. 302fi 303 304if as_func_ret_success; then 305 : 306else 307 exitcode=1 308 echo as_func_ret_success failed. 309fi 310 311if as_func_ret_failure; then 312 exitcode=1 313 echo as_func_ret_failure succeeded. 314fi 315 316if ( set x; as_func_ret_success y && test x = "$1" ); then 317 : 318else 319 exitcode=1 320 echo positional parameters were not saved. 321fi 322 323test $exitcode = 0) || { (exit 1); exit 1; } 324 325( 326 as_lineno_1=$LINENO 327 as_lineno_2=$LINENO 328 test "x$as_lineno_1" != "x$as_lineno_2" && 329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 330 331_ASEOF 332}; then 333 break 334fi 335 336fi 337 338 done 339 340 if test "x$CONFIG_SHELL" != x; then 341 for as_var in BASH_ENV ENV 342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 343 done 344 export CONFIG_SHELL 345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 346fi 347 348 349 if test $as_have_required = no; then 350 echo This script requires a shell more modern than all the 351 echo shells that I found on your system. Please install a 352 echo modern shell, or manually run the script under such a 353 echo shell if you do have one. 354 { (exit 1); exit 1; } 355fi 356 357 358fi 359 360fi 361 362 363 364(eval "as_func_return () { 365 (exit \$1) 366} 367as_func_success () { 368 as_func_return 0 369} 370as_func_failure () { 371 as_func_return 1 372} 373as_func_ret_success () { 374 return 0 375} 376as_func_ret_failure () { 377 return 1 378} 379 380exitcode=0 381if as_func_success; then 382 : 383else 384 exitcode=1 385 echo as_func_success failed. 386fi 387 388if as_func_failure; then 389 exitcode=1 390 echo as_func_failure succeeded. 391fi 392 393if as_func_ret_success; then 394 : 395else 396 exitcode=1 397 echo as_func_ret_success failed. 398fi 399 400if as_func_ret_failure; then 401 exitcode=1 402 echo as_func_ret_failure succeeded. 403fi 404 405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 406 : 407else 408 exitcode=1 409 echo positional parameters were not saved. 410fi 411 412test \$exitcode = 0") || { 413 echo No shell found that supports shell functions. 414 echo Please tell autoconf@gnu.org about your system, 415 echo including any error possibly output before this 416 echo message 417} 418 419 420 421 as_lineno_1=$LINENO 422 as_lineno_2=$LINENO 423 test "x$as_lineno_1" != "x$as_lineno_2" && 424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 425 426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 427 # uniformly replaced by the line number. The first 'sed' inserts a 428 # line-number line after each line using $LINENO; the second 'sed' 429 # does the real work. The second script uses 'N' to pair each 430 # line-number line with the line containing $LINENO, and appends 431 # trailing '-' during substitution so that $LINENO is not a special 432 # case at line end. 433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 434 # scripts with optimization help from Paolo Bonzini. Blame Lee 435 # E. McMahon (1931-1989) for sed's syntax. :-) 436 sed -n ' 437 p 438 /[$]LINENO/= 439 ' <$as_myself | 440 sed ' 441 s/[$]LINENO.*/&-/ 442 t lineno 443 b 444 :lineno 445 N 446 :loop 447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 448 t loop 449 s/-\n.*// 450 ' >$as_me.lineno && 451 chmod +x "$as_me.lineno" || 452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 453 { (exit 1); exit 1; }; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461} 462 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470ECHO_C= ECHO_N= ECHO_T= 471case `echo -n x` in 472-n*) 473 case `echo 'x\c'` in 474 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 475 *) ECHO_C='\c';; 476 esac;; 477*) 478 ECHO_N='-n';; 479esac 480 481if expr a : '\(a\)' >/dev/null 2>&1 && 482 test "X`expr 00001 : '.*\(...\)'`" = X001; then 483 as_expr=expr 484else 485 as_expr=false 486fi 487 488rm -f conf$$ conf$$.exe conf$$.file 489if test -d conf$$.dir; then 490 rm -f conf$$.dir/conf$$.file 491else 492 rm -f conf$$.dir 493 mkdir conf$$.dir 494fi 495echo >conf$$.file 496if ln -s conf$$.file conf$$ 2>/dev/null; then 497 as_ln_s='ln -s' 498 # ... but there are two gotchas: 499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 501 # In both cases, we have to default to `cp -p'. 502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 503 as_ln_s='cp -p' 504elif ln conf$$.file conf$$ 2>/dev/null; then 505 as_ln_s=ln 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p=: 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519# Find out whether ``test -x'' works. Don't use a zero-byte file, as 520# systems may use methods other than mode bits to determine executability. 521cat >conf$$.file <<_ASEOF 522#! /bin/sh 523exit 0 524_ASEOF 525chmod +x conf$$.file 526if test -x conf$$.file >/dev/null 2>&1; then 527 as_executable_p="test -x" 528else 529 as_executable_p=: 530fi 531rm -f conf$$.file 532 533# Sed expression to map a string onto a valid CPP name. 534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536# Sed expression to map a string onto a valid variable name. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 541exec 7<&0 </dev/null 6>&1 542 543# Name of the host. 544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 545# so uname gets run too. 546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 547 548# 549# Initializations. 550# 551ac_default_prefix=/usr/local 552ac_clean_files= 553ac_config_libobj_dir=. 554LIBOBJS= 555cross_compiling=no 556subdirs= 557MFLAGS= 558MAKEFLAGS= 559SHELL=${CONFIG_SHELL-/bin/sh} 560 561# Identity of this package. 562PACKAGE_NAME='LLVM' 563PACKAGE_TARNAME='llvm' 564PACKAGE_VERSION='3.4svn' 565PACKAGE_STRING='LLVM 3.4svn' 566PACKAGE_BUGREPORT='http://llvm.org/bugs/' 567 568ac_unique_file="lib/IR/Module.cpp" 569# Factoring default headers for most tests. 570ac_includes_default="\ 571#include <stdio.h> 572#if HAVE_SYS_TYPES_H 573# include <sys/types.h> 574#endif 575#if HAVE_SYS_STAT_H 576# include <sys/stat.h> 577#endif 578#if STDC_HEADERS 579# include <stdlib.h> 580# include <stddef.h> 581#else 582# if HAVE_STDLIB_H 583# include <stdlib.h> 584# endif 585#endif 586#if HAVE_STRING_H 587# if !STDC_HEADERS && HAVE_MEMORY_H 588# include <memory.h> 589# endif 590# include <string.h> 591#endif 592#if HAVE_STRINGS_H 593# include <strings.h> 594#endif 595#if HAVE_INTTYPES_H 596# include <inttypes.h> 597#endif 598#if HAVE_STDINT_H 599# include <stdint.h> 600#endif 601#if HAVE_UNISTD_H 602# include <unistd.h> 603#endif" 604 605ac_subst_vars='SHELL 606PATH_SEPARATOR 607PACKAGE_NAME 608PACKAGE_TARNAME 609PACKAGE_VERSION 610PACKAGE_STRING 611PACKAGE_BUGREPORT 612exec_prefix 613prefix 614program_transform_name 615bindir 616sbindir 617libexecdir 618datarootdir 619datadir 620sysconfdir 621sharedstatedir 622localstatedir 623includedir 624oldincludedir 625docdir 626infodir 627htmldir 628dvidir 629pdfdir 630psdir 631libdir 632localedir 633mandir 634DEFS 635ECHO_C 636ECHO_N 637ECHO_T 638LIBS 639build_alias 640host_alias 641target_alias 642LLVM_COPYRIGHT 643CC 644CFLAGS 645LDFLAGS 646CPPFLAGS 647ac_ct_CC 648EXEEXT 649OBJEXT 650CXX 651CXXFLAGS 652ac_ct_CXX 653CPP 654subdirs 655ENABLE_POLLY 656LLVM_HAS_POLLY 657build 658build_cpu 659build_vendor 660build_os 661host 662host_cpu 663host_vendor 664host_os 665target 666target_cpu 667target_vendor 668target_os 669OS 670HOST_OS 671TARGET_OS 672LINKALL 673NOLINKALL 674LLVM_ON_UNIX 675LLVM_ON_WIN32 676ARCH 677HOST_ARCH 678ENDIAN 679GREP 680EGREP 681LLVM_CROSS_COMPILING 682BUILD_CC 683BUILD_EXEEXT 684BUILD_CXX 685CVSBUILD 686ENABLE_LIBCPP 687ENABLE_CXX11 688ENABLE_SPLIT_DWARF 689ENABLE_CLANG_ARCMT 690ENABLE_CLANG_STATIC_ANALYZER 691ENABLE_CLANG_REWRITER 692ENABLE_OPTIMIZED 693ENABLE_PROFILING 694DISABLE_ASSERTIONS 695ENABLE_WERROR 696ENABLE_EXPENSIVE_CHECKS 697EXPENSIVE_CHECKS 698DEBUG_RUNTIME 699DEBUG_SYMBOLS 700KEEP_SYMBOLS 701JIT 702TARGET_HAS_JIT 703ENABLE_DOCS 704ENABLE_DOXYGEN 705LLVM_ENABLE_THREADS 706ENABLE_PTHREADS 707LLVM_ENABLE_ZLIB 708ENABLE_PIC 709ENABLE_SHARED 710ENABLE_EMBED_STDCXX 711ENABLE_TIMESTAMPS 712ENABLE_BACKTRACES 713TARGETS_TO_BUILD 714LLVM_ENUM_TARGETS 715LLVM_ENUM_ASM_PRINTERS 716LLVM_ENUM_ASM_PARSERS 717LLVM_ENUM_DISASSEMBLERS 718OPTIMIZE_OPTION 719EXTRA_OPTIONS 720EXTRA_LD_OPTIONS 721CLANG_SRC_ROOT 722BINUTILS_INCDIR 723INTERNAL_PREFIX 724NM 725ifGNUmake 726LN_S 727CMP 728CP 729DATE 730FIND 731MKDIR 732MV 733RANLIB 734AR 735RM 736SED 737TAR 738BINPWD 739GRAPHVIZ 740DOT 741FDP 742NEATO 743TWOPI 744CIRCO 745GV 746DOTTY 747XDOT 748INSTALL_PROGRAM 749INSTALL_SCRIPT 750INSTALL_DATA 751BZIP2 752CAT 753DOXYGEN 754GROFF 755GZIPBIN 756PDFROFF 757ZIP 758OCAMLC 759OCAMLOPT 760OCAMLDEP 761OCAMLDOC 762GAS 763HAVE_LINK_VERSION_SCRIPT 764INSTALL_LTDL_TRUE 765INSTALL_LTDL_FALSE 766CONVENIENCE_LTDL_TRUE 767CONVENIENCE_LTDL_FALSE 768LIBADD_DL 769NO_VARIADIC_MACROS 770NO_MISSING_FIELD_INITIALIZERS 771COVERED_SWITCH_DEFAULT 772NO_MAYBE_UNINITIALIZED 773NO_UNINITIALIZED 774PYTHON 775USE_UDIS86 776USE_OPROFILE 777USE_INTEL_JITEVENTS 778XML2CONFIG 779LIBXML2_LIBS 780LIBXML2_INC 781CXXCPP 782HAVE_PTHREAD 783HAVE_LIBZ 784HUGE_VAL_SANITY 785MMAP_FILE 786SHLIBEXT 787SHLIBPATH_VAR 788LLVM_PREFIX 789LLVM_BINDIR 790LLVM_DATADIR 791LLVM_DOCSDIR 792LLVM_ETCDIR 793LLVM_INCLUDEDIR 794LLVM_INFODIR 795LLVM_MANDIR 796LLVM_CONFIGTIME 797BINDINGS_TO_BUILD 798ALL_BINDINGS 799OCAML_LIBDIR 800ENABLE_VISIBILITY_INLINES_HIDDEN 801RPATH 802RDYNAMIC 803program_prefix 804LIBOBJS 805LTLIBOBJS' 806ac_subst_files='' 807 ac_precious_vars='build_alias 808host_alias 809target_alias 810CC 811CFLAGS 812LDFLAGS 813CPPFLAGS 814CXX 815CXXFLAGS 816CCC 817CPP 818CXXCPP' 819ac_subdirs_all='projects/llvm-gcc 820projects/test-suite 821projects/llvm-test 822projects/poolalloc 823projects/llvm-poolalloc 824projects/sample 825projects/privbracket 826projects/llvm-stacker 827projects/llvm-reopt 828projects/llvm-java 829projects/llvm-tv 830projects/safecode 831projects/llvm-kernel 832tools/polly' 833 834# Initialize some variables set by options. 835ac_init_help= 836ac_init_version=false 837# The variables have the same names as the options, with 838# dashes changed to underlines. 839cache_file=/dev/null 840exec_prefix=NONE 841no_create= 842no_recursion= 843prefix=NONE 844program_prefix=NONE 845program_suffix=NONE 846program_transform_name=s,x,x, 847silent= 848site= 849srcdir= 850verbose= 851x_includes=NONE 852x_libraries=NONE 853 854# Installation directory options. 855# These are left unexpanded so users can "make install exec_prefix=/foo" 856# and all the variables that are supposed to be based on exec_prefix 857# by default will actually change. 858# Use braces instead of parens because sh, perl, etc. also accept them. 859# (The list follows the same order as the GNU Coding Standards.) 860bindir='${exec_prefix}/bin' 861sbindir='${exec_prefix}/sbin' 862libexecdir='${exec_prefix}/libexec' 863datarootdir='${prefix}/share' 864datadir='${datarootdir}' 865sysconfdir='${prefix}/etc' 866sharedstatedir='${prefix}/com' 867localstatedir='${prefix}/var' 868includedir='${prefix}/include' 869oldincludedir='/usr/include' 870docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 871infodir='${datarootdir}/info' 872htmldir='${docdir}' 873dvidir='${docdir}' 874pdfdir='${docdir}' 875psdir='${docdir}' 876libdir='${exec_prefix}/lib' 877localedir='${datarootdir}/locale' 878mandir='${datarootdir}/man' 879 880ac_prev= 881ac_dashdash= 882for ac_option 883do 884 # If the previous option needs an argument, assign it. 885 if test -n "$ac_prev"; then 886 eval $ac_prev=\$ac_option 887 ac_prev= 888 continue 889 fi 890 891 case $ac_option in 892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 893 *) ac_optarg=yes ;; 894 esac 895 896 # Accept the important Cygnus configure options, so we can diagnose typos. 897 898 case $ac_dashdash$ac_option in 899 --) 900 ac_dashdash=yes ;; 901 902 -bindir | --bindir | --bindi | --bind | --bin | --bi) 903 ac_prev=bindir ;; 904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 905 bindir=$ac_optarg ;; 906 907 -build | --build | --buil | --bui | --bu) 908 ac_prev=build_alias ;; 909 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 910 build_alias=$ac_optarg ;; 911 912 -cache-file | --cache-file | --cache-fil | --cache-fi \ 913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 914 ac_prev=cache_file ;; 915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 917 cache_file=$ac_optarg ;; 918 919 --config-cache | -C) 920 cache_file=config.cache ;; 921 922 -datadir | --datadir | --datadi | --datad) 923 ac_prev=datadir ;; 924 -datadir=* | --datadir=* | --datadi=* | --datad=*) 925 datadir=$ac_optarg ;; 926 927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 928 | --dataroo | --dataro | --datar) 929 ac_prev=datarootdir ;; 930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 932 datarootdir=$ac_optarg ;; 933 934 -disable-* | --disable-*) 935 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 936 # Reject names that are not valid shell variable names. 937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 939 { (exit 1); exit 1; }; } 940 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 941 eval enable_$ac_feature=no ;; 942 943 -docdir | --docdir | --docdi | --doc | --do) 944 ac_prev=docdir ;; 945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 946 docdir=$ac_optarg ;; 947 948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 949 ac_prev=dvidir ;; 950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 951 dvidir=$ac_optarg ;; 952 953 -enable-* | --enable-*) 954 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 955 # Reject names that are not valid shell variable names. 956 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 957 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 958 { (exit 1); exit 1; }; } 959 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 960 eval enable_$ac_feature=\$ac_optarg ;; 961 962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 964 | --exec | --exe | --ex) 965 ac_prev=exec_prefix ;; 966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 968 | --exec=* | --exe=* | --ex=*) 969 exec_prefix=$ac_optarg ;; 970 971 -gas | --gas | --ga | --g) 972 # Obsolete; use --with-gas. 973 with_gas=yes ;; 974 975 -help | --help | --hel | --he | -h) 976 ac_init_help=long ;; 977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 978 ac_init_help=recursive ;; 979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 980 ac_init_help=short ;; 981 982 -host | --host | --hos | --ho) 983 ac_prev=host_alias ;; 984 -host=* | --host=* | --hos=* | --ho=*) 985 host_alias=$ac_optarg ;; 986 987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 988 ac_prev=htmldir ;; 989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 990 | --ht=*) 991 htmldir=$ac_optarg ;; 992 993 -includedir | --includedir | --includedi | --included | --include \ 994 | --includ | --inclu | --incl | --inc) 995 ac_prev=includedir ;; 996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 997 | --includ=* | --inclu=* | --incl=* | --inc=*) 998 includedir=$ac_optarg ;; 999 1000 -infodir | --infodir | --infodi | --infod | --info | --inf) 1001 ac_prev=infodir ;; 1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1003 infodir=$ac_optarg ;; 1004 1005 -libdir | --libdir | --libdi | --libd) 1006 ac_prev=libdir ;; 1007 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1008 libdir=$ac_optarg ;; 1009 1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1011 | --libexe | --libex | --libe) 1012 ac_prev=libexecdir ;; 1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1014 | --libexe=* | --libex=* | --libe=*) 1015 libexecdir=$ac_optarg ;; 1016 1017 -localedir | --localedir | --localedi | --localed | --locale) 1018 ac_prev=localedir ;; 1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1020 localedir=$ac_optarg ;; 1021 1022 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1023 | --localstate | --localstat | --localsta | --localst | --locals) 1024 ac_prev=localstatedir ;; 1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1027 localstatedir=$ac_optarg ;; 1028 1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1030 ac_prev=mandir ;; 1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1032 mandir=$ac_optarg ;; 1033 1034 -nfp | --nfp | --nf) 1035 # Obsolete; use --without-fp. 1036 with_fp=no ;; 1037 1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1039 | --no-cr | --no-c | -n) 1040 no_create=yes ;; 1041 1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1044 no_recursion=yes ;; 1045 1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1048 | --oldin | --oldi | --old | --ol | --o) 1049 ac_prev=oldincludedir ;; 1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1053 oldincludedir=$ac_optarg ;; 1054 1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1056 ac_prev=prefix ;; 1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1058 prefix=$ac_optarg ;; 1059 1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1061 | --program-pre | --program-pr | --program-p) 1062 ac_prev=program_prefix ;; 1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1065 program_prefix=$ac_optarg ;; 1066 1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1068 | --program-suf | --program-su | --program-s) 1069 ac_prev=program_suffix ;; 1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1072 program_suffix=$ac_optarg ;; 1073 1074 -program-transform-name | --program-transform-name \ 1075 | --program-transform-nam | --program-transform-na \ 1076 | --program-transform-n | --program-transform- \ 1077 | --program-transform | --program-transfor \ 1078 | --program-transfo | --program-transf \ 1079 | --program-trans | --program-tran \ 1080 | --progr-tra | --program-tr | --program-t) 1081 ac_prev=program_transform_name ;; 1082 -program-transform-name=* | --program-transform-name=* \ 1083 | --program-transform-nam=* | --program-transform-na=* \ 1084 | --program-transform-n=* | --program-transform-=* \ 1085 | --program-transform=* | --program-transfor=* \ 1086 | --program-transfo=* | --program-transf=* \ 1087 | --program-trans=* | --program-tran=* \ 1088 | --progr-tra=* | --program-tr=* | --program-t=*) 1089 program_transform_name=$ac_optarg ;; 1090 1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1092 ac_prev=pdfdir ;; 1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1094 pdfdir=$ac_optarg ;; 1095 1096 -psdir | --psdir | --psdi | --psd | --ps) 1097 ac_prev=psdir ;; 1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1099 psdir=$ac_optarg ;; 1100 1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1102 | -silent | --silent | --silen | --sile | --sil) 1103 silent=yes ;; 1104 1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1106 ac_prev=sbindir ;; 1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1108 | --sbi=* | --sb=*) 1109 sbindir=$ac_optarg ;; 1110 1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1113 | --sharedst | --shareds | --shared | --share | --shar \ 1114 | --sha | --sh) 1115 ac_prev=sharedstatedir ;; 1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1119 | --sha=* | --sh=*) 1120 sharedstatedir=$ac_optarg ;; 1121 1122 -site | --site | --sit) 1123 ac_prev=site ;; 1124 -site=* | --site=* | --sit=*) 1125 site=$ac_optarg ;; 1126 1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1128 ac_prev=srcdir ;; 1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1130 srcdir=$ac_optarg ;; 1131 1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1133 | --syscon | --sysco | --sysc | --sys | --sy) 1134 ac_prev=sysconfdir ;; 1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1137 sysconfdir=$ac_optarg ;; 1138 1139 -target | --target | --targe | --targ | --tar | --ta | --t) 1140 ac_prev=target_alias ;; 1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1142 target_alias=$ac_optarg ;; 1143 1144 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1145 verbose=yes ;; 1146 1147 -version | --version | --versio | --versi | --vers | -V) 1148 ac_init_version=: ;; 1149 1150 -with-* | --with-*) 1151 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1152 # Reject names that are not valid shell variable names. 1153 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1154 { echo "$as_me: error: invalid package name: $ac_package" >&2 1155 { (exit 1); exit 1; }; } 1156 ac_package=`echo $ac_package| sed 's/-/_/g'` 1157 eval with_$ac_package=\$ac_optarg ;; 1158 1159 -without-* | --without-*) 1160 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1163 { echo "$as_me: error: invalid package name: $ac_package" >&2 1164 { (exit 1); exit 1; }; } 1165 ac_package=`echo $ac_package | sed 's/-/_/g'` 1166 eval with_$ac_package=no ;; 1167 1168 --x) 1169 # Obsolete; use --with-x. 1170 with_x=yes ;; 1171 1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1173 | --x-incl | --x-inc | --x-in | --x-i) 1174 ac_prev=x_includes ;; 1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1177 x_includes=$ac_optarg ;; 1178 1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1181 ac_prev=x_libraries ;; 1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1184 x_libraries=$ac_optarg ;; 1185 1186 -*) { echo "$as_me: error: unrecognized option: $ac_option 1187Try \`$0 --help' for more information." >&2 1188 { (exit 1); exit 1; }; } 1189 ;; 1190 1191 *=*) 1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1193 # Reject names that are not valid shell variable names. 1194 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1195 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1196 { (exit 1); exit 1; }; } 1197 eval $ac_envvar=\$ac_optarg 1198 export $ac_envvar ;; 1199 1200 *) 1201 # FIXME: should be removed in autoconf 3.0. 1202 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1204 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1205 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1206 ;; 1207 1208 esac 1209done 1210 1211if test -n "$ac_prev"; then 1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1213 { echo "$as_me: error: missing argument to $ac_option" >&2 1214 { (exit 1); exit 1; }; } 1215fi 1216 1217# Be sure to have absolute directory names. 1218for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1219 datadir sysconfdir sharedstatedir localstatedir includedir \ 1220 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1221 libdir localedir mandir 1222do 1223 eval ac_val=\$$ac_var 1224 case $ac_val in 1225 [\\/$]* | ?:[\\/]* ) continue;; 1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1227 esac 1228 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1229 { (exit 1); exit 1; }; } 1230done 1231 1232# There might be people who depend on the old broken behavior: `$host' 1233# used to hold the argument of --host etc. 1234# FIXME: To remove some day. 1235build=$build_alias 1236host=$host_alias 1237target=$target_alias 1238 1239# FIXME: To remove some day. 1240if test "x$host_alias" != x; then 1241 if test "x$build_alias" = x; then 1242 cross_compiling=maybe 1243 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1244 If a cross compiler is detected then cross compile mode will be used." >&2 1245 elif test "x$build_alias" != "x$host_alias"; then 1246 cross_compiling=yes 1247 fi 1248fi 1249 1250ac_tool_prefix= 1251test -n "$host_alias" && ac_tool_prefix=$host_alias- 1252 1253test "$silent" = yes && exec 6>/dev/null 1254 1255 1256ac_pwd=`pwd` && test -n "$ac_pwd" && 1257ac_ls_di=`ls -di .` && 1258ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1259 { echo "$as_me: error: Working directory cannot be determined" >&2 1260 { (exit 1); exit 1; }; } 1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1262 { echo "$as_me: error: pwd does not report name of working directory" >&2 1263 { (exit 1); exit 1; }; } 1264 1265 1266# Find the source files, if location was not specified. 1267if test -z "$srcdir"; then 1268 ac_srcdir_defaulted=yes 1269 # Try the directory containing this script, then the parent directory. 1270 ac_confdir=`$as_dirname -- "$0" || 1271$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1272 X"$0" : 'X\(//\)[^/]' \| \ 1273 X"$0" : 'X\(//\)$' \| \ 1274 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1275echo X"$0" | 1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)[^/].*/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\/\)$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\).*/{ 1289 s//\1/ 1290 q 1291 } 1292 s/.*/./; q'` 1293 srcdir=$ac_confdir 1294 if test ! -r "$srcdir/$ac_unique_file"; then 1295 srcdir=.. 1296 fi 1297else 1298 ac_srcdir_defaulted=no 1299fi 1300if test ! -r "$srcdir/$ac_unique_file"; then 1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1302 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1303 { (exit 1); exit 1; }; } 1304fi 1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1306ac_abs_confdir=`( 1307 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1308 { (exit 1); exit 1; }; } 1309 pwd)` 1310# When building in place, set srcdir=. 1311if test "$ac_abs_confdir" = "$ac_pwd"; then 1312 srcdir=. 1313fi 1314# Remove unnecessary trailing slashes from srcdir. 1315# Double slashes in file names in object file debugging info 1316# mess up M-x gdb in Emacs. 1317case $srcdir in 1318*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1319esac 1320for ac_var in $ac_precious_vars; do 1321 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1322 eval ac_env_${ac_var}_value=\$${ac_var} 1323 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1324 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1325done 1326 1327# 1328# Report the --help message. 1329# 1330if test "$ac_init_help" = "long"; then 1331 # Omit some internal or obsolete options to make the list less imposing. 1332 # This message is too long to be a string in the A/UX 3.1 sh. 1333 cat <<_ACEOF 1334\`configure' configures LLVM 3.4svn to adapt to many kinds of systems. 1335 1336Usage: $0 [OPTION]... [VAR=VALUE]... 1337 1338To assign environment variables (e.g., CC, CFLAGS...), specify them as 1339VAR=VALUE. See below for descriptions of some of the useful variables. 1340 1341Defaults for the options are specified in brackets. 1342 1343Configuration: 1344 -h, --help display this help and exit 1345 --help=short display options specific to this package 1346 --help=recursive display the short help of all the included packages 1347 -V, --version display version information and exit 1348 -q, --quiet, --silent do not print \`checking...' messages 1349 --cache-file=FILE cache test results in FILE [disabled] 1350 -C, --config-cache alias for \`--cache-file=config.cache' 1351 -n, --no-create do not create output files 1352 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1353 1354Installation directories: 1355 --prefix=PREFIX install architecture-independent files in PREFIX 1356 [$ac_default_prefix] 1357 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1358 [PREFIX] 1359 1360By default, \`make install' will install all the files in 1361\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1362an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1363for instance \`--prefix=\$HOME'. 1364 1365For better control, use the options below. 1366 1367Fine tuning of the installation directories: 1368 --bindir=DIR user executables [EPREFIX/bin] 1369 --sbindir=DIR system admin executables [EPREFIX/sbin] 1370 --libexecdir=DIR program executables [EPREFIX/libexec] 1371 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1372 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1373 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1374 --libdir=DIR object code libraries [EPREFIX/lib] 1375 --includedir=DIR C header files [PREFIX/include] 1376 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1377 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1378 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1379 --infodir=DIR info documentation [DATAROOTDIR/info] 1380 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1381 --mandir=DIR man documentation [DATAROOTDIR/man] 1382 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1383 --htmldir=DIR html documentation [DOCDIR] 1384 --dvidir=DIR dvi documentation [DOCDIR] 1385 --pdfdir=DIR pdf documentation [DOCDIR] 1386 --psdir=DIR ps documentation [DOCDIR] 1387_ACEOF 1388 1389 cat <<\_ACEOF 1390 1391System types: 1392 --build=BUILD configure for building on BUILD [guessed] 1393 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1394 --target=TARGET configure for building compilers for TARGET [HOST] 1395_ACEOF 1396fi 1397 1398if test -n "$ac_init_help"; then 1399 case $ac_init_help in 1400 short | recursive ) echo "Configuration of LLVM 3.4svn:";; 1401 esac 1402 cat <<\_ACEOF 1403 1404Optional Features: 1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1407 --enable-polly Use polly if available (default is YES) 1408 --enable-libcpp Use libc++ if available (default is NO) 1409 --enable-cxx11 Use c++11 if available (default is NO) 1410 --enable-split-dwarf Use split-dwarf if available (default is NO) 1411 --enable-clang-arcmt Enable building of clang ARCMT (default is YES) 1412 --enable-clang-static-analyzer 1413 Enable building of clang Static Analyzer (default is 1414 YES) 1415 --enable-clang-rewriter Enable building of clang rewriter (default is YES) 1416 --enable-optimized Compile with optimizations enabled (default is NO) 1417 --enable-profiling Compile with profiling enabled (default is NO) 1418 --enable-assertions Compile with assertion checks enabled (default is 1419 YES) 1420 --enable-werror Compile with -Werror enabled (default is NO) 1421 --enable-expensive-checks 1422 Compile with expensive debug checks enabled (default 1423 is NO) 1424 --enable-debug-runtime Build runtime libs with debug symbols (default is 1425 NO) 1426 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1427 optimization is on and YES if it's off) 1428 --enable-keep-symbols Do not strip installed executables) 1429 --enable-jit Enable Just In Time Compiling (default is YES) 1430 --enable-docs Build documents (default is YES) 1431 --enable-doxygen Build doxygen documentation (default is NO) 1432 --enable-threads Use threads if available (default is YES) 1433 --enable-pthreads Use pthreads if available (default is YES) 1434 --enable-zlib Use zlib for compression/decompression if available 1435 (default is YES) 1436 --enable-pic Build LLVM with Position Independent Code (default 1437 is YES) 1438 --enable-shared Build a shared library and link tools against it 1439 (default is NO) 1440 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1441 Win32 DLL (default is NO) 1442 --enable-timestamps Enable embedding timestamp information in build 1443 (default is YES) 1444 --enable-backtraces Enable embedding backtraces on crash (default is 1445 YES) 1446 --enable-targets Build specific host targets: all or 1447 target1,target2,... Valid targets are: host, x86, 1448 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon, 1449 xcore, msp430, nvptx, systemz, r600, and cpp 1450 (default=all) 1451 --enable-experimental-targets 1452 Build experimental host targets: disable or 1453 target1,target2,... (default=disable) 1454 --enable-bindings Build specific language bindings: 1455 all,auto,none,{binding-name} (default=auto) 1456 --enable-libffi Check for the presence of libffi (default is NO) 1457 --enable-ltdl-install install libltdl 1458 1459Optional Packages: 1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1462 --with-optimize-option Select the compiler options to use for optimized 1463 builds 1464 --with-extra-options Specify additional options to compile LLVM with 1465 --with-extra-ld-options Specify additional options to link LLVM with 1466 --with-ocaml-libdir Specify install location for ocaml bindings (default 1467 is stdlib) 1468 --with-clang-srcdir Directory to the out-of-tree Clang source 1469 --with-clang-resource-dir 1470 Relative directory from the Clang binary for 1471 resource files 1472 --with-c-include-dirs Colon separated list of directories clang will 1473 search for headers 1474 --with-gcc-toolchain Directory where gcc is installed. 1475 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1476 --with-binutils-include Specify path to binutils/include/ containing 1477 plugin-api.h file for gold plugin. 1478 --with-bug-report-url Specify the URL where bug reports should be 1479 submitted (default=http://llvm.org/bugs/) 1480 --with-internal-prefix Installation directory for internal files 1481 --with-python path to python 1482 --with-udis86=<path> Use udis86 external x86 disassembler library 1483 --with-oprofile=<prefix> 1484 Tell OProfile >= 0.9.4 how to symbolize JIT output 1485 --with-intel-jitevents Notify Intel JIT profiling API of generated code 1486 1487 1488Some influential environment variables: 1489 CC C compiler command 1490 CFLAGS C compiler flags 1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1492 nonstandard directory <lib dir> 1493 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1494 you have headers in a nonstandard directory <include dir> 1495 CXX C++ compiler command 1496 CXXFLAGS C++ compiler flags 1497 CPP C preprocessor 1498 CXXCPP C++ preprocessor 1499 1500Use these variables to override the choices made by `configure' or to help 1501it to find libraries and programs with nonstandard names/locations. 1502 1503Report bugs to <http://llvm.org/bugs/>. 1504_ACEOF 1505ac_status=$? 1506fi 1507 1508if test "$ac_init_help" = "recursive"; then 1509 # If there are subdirs, report their specific --help. 1510 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1511 test -d "$ac_dir" || continue 1512 ac_builddir=. 1513 1514case "$ac_dir" in 1515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1516*) 1517 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1518 # A ".." for each directory in $ac_dir_suffix. 1519 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1520 case $ac_top_builddir_sub in 1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1523 esac ;; 1524esac 1525ac_abs_top_builddir=$ac_pwd 1526ac_abs_builddir=$ac_pwd$ac_dir_suffix 1527# for backward compatibility: 1528ac_top_builddir=$ac_top_build_prefix 1529 1530case $srcdir in 1531 .) # We are building in place. 1532 ac_srcdir=. 1533 ac_top_srcdir=$ac_top_builddir_sub 1534 ac_abs_top_srcdir=$ac_pwd ;; 1535 [\\/]* | ?:[\\/]* ) # Absolute name. 1536 ac_srcdir=$srcdir$ac_dir_suffix; 1537 ac_top_srcdir=$srcdir 1538 ac_abs_top_srcdir=$srcdir ;; 1539 *) # Relative name. 1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1541 ac_top_srcdir=$ac_top_build_prefix$srcdir 1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1543esac 1544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1545 1546 cd "$ac_dir" || { ac_status=$?; continue; } 1547 # Check for guested configure. 1548 if test -f "$ac_srcdir/configure.gnu"; then 1549 echo && 1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1551 elif test -f "$ac_srcdir/configure"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure" --help=recursive 1554 else 1555 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1556 fi || ac_status=$? 1557 cd "$ac_pwd" || { ac_status=$?; break; } 1558 done 1559fi 1560 1561test -n "$ac_init_help" && exit $ac_status 1562if $ac_init_version; then 1563 cat <<\_ACEOF 1564LLVM configure 3.4svn 1565generated by GNU Autoconf 2.60 1566 1567Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15682002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1569This configure script is free software; the Free Software Foundation 1570gives unlimited permission to copy, distribute and modify it. 1571 1572Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign. 1573_ACEOF 1574 exit 1575fi 1576cat >config.log <<_ACEOF 1577This file contains any messages produced by compilers while 1578running configure, to aid debugging if configure makes a mistake. 1579 1580It was created by LLVM $as_me 3.4svn, which was 1581generated by GNU Autoconf 2.60. Invocation command line was 1582 1583 $ $0 $@ 1584 1585_ACEOF 1586exec 5>>config.log 1587{ 1588cat <<_ASUNAME 1589## --------- ## 1590## Platform. ## 1591## --------- ## 1592 1593hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1594uname -m = `(uname -m) 2>/dev/null || echo unknown` 1595uname -r = `(uname -r) 2>/dev/null || echo unknown` 1596uname -s = `(uname -s) 2>/dev/null || echo unknown` 1597uname -v = `(uname -v) 2>/dev/null || echo unknown` 1598 1599/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1600/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1601 1602/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1603/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1604/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1605/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1606/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1607/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1608/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1609 1610_ASUNAME 1611 1612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1613for as_dir in $PATH 1614do 1615 IFS=$as_save_IFS 1616 test -z "$as_dir" && as_dir=. 1617 echo "PATH: $as_dir" 1618done 1619IFS=$as_save_IFS 1620 1621} >&5 1622 1623cat >&5 <<_ACEOF 1624 1625 1626## ----------- ## 1627## Core tests. ## 1628## ----------- ## 1629 1630_ACEOF 1631 1632 1633# Keep a trace of the command line. 1634# Strip out --no-create and --no-recursion so they do not pile up. 1635# Strip out --silent because we don't want to record it for future runs. 1636# Also quote any args containing shell meta-characters. 1637# Make two passes to allow for proper duplicate-argument suppression. 1638ac_configure_args= 1639ac_configure_args0= 1640ac_configure_args1= 1641ac_must_keep_next=false 1642for ac_pass in 1 2 1643do 1644 for ac_arg 1645 do 1646 case $ac_arg in 1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1649 | -silent | --silent | --silen | --sile | --sil) 1650 continue ;; 1651 *\'*) 1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1653 esac 1654 case $ac_pass in 1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1656 2) 1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1658 if test $ac_must_keep_next = true; then 1659 ac_must_keep_next=false # Got value, back to normal. 1660 else 1661 case $ac_arg in 1662 *=* | --config-cache | -C | -disable-* | --disable-* \ 1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1665 | -with-* | --with-* | -without-* | --without-* | --x) 1666 case "$ac_configure_args0 " in 1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1668 esac 1669 ;; 1670 -* ) ac_must_keep_next=true ;; 1671 esac 1672 fi 1673 ac_configure_args="$ac_configure_args '$ac_arg'" 1674 ;; 1675 esac 1676 done 1677done 1678$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1679$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1680 1681# When interrupted or exit'd, cleanup temporary files, and complete 1682# config.log. We remove comments because anyway the quotes in there 1683# would cause problems or look ugly. 1684# WARNING: Use '\'' to represent an apostrophe within the trap. 1685# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1686trap 'exit_status=$? 1687 # Save into config.log some information that might help in debugging. 1688 { 1689 echo 1690 1691 cat <<\_ASBOX 1692## ---------------- ## 1693## Cache variables. ## 1694## ---------------- ## 1695_ASBOX 1696 echo 1697 # The following way of writing the cache mishandles newlines in values, 1698( 1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1700 eval ac_val=\$$ac_var 1701 case $ac_val in #( 1702 *${as_nl}*) 1703 case $ac_var in #( 1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1705echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1706 esac 1707 case $ac_var in #( 1708 _ | IFS | as_nl) ;; #( 1709 *) $as_unset $ac_var ;; 1710 esac ;; 1711 esac 1712 done 1713 (set) 2>&1 | 1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1715 *${as_nl}ac_space=\ *) 1716 sed -n \ 1717 "s/'\''/'\''\\\\'\'''\''/g; 1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1719 ;; #( 1720 *) 1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1722 ;; 1723 esac | 1724 sort 1725) 1726 echo 1727 1728 cat <<\_ASBOX 1729## ----------------- ## 1730## Output variables. ## 1731## ----------------- ## 1732_ASBOX 1733 echo 1734 for ac_var in $ac_subst_vars 1735 do 1736 eval ac_val=\$$ac_var 1737 case $ac_val in 1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1739 esac 1740 echo "$ac_var='\''$ac_val'\''" 1741 done | sort 1742 echo 1743 1744 if test -n "$ac_subst_files"; then 1745 cat <<\_ASBOX 1746## ------------------- ## 1747## File substitutions. ## 1748## ------------------- ## 1749_ASBOX 1750 echo 1751 for ac_var in $ac_subst_files 1752 do 1753 eval ac_val=\$$ac_var 1754 case $ac_val in 1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1756 esac 1757 echo "$ac_var='\''$ac_val'\''" 1758 done | sort 1759 echo 1760 fi 1761 1762 if test -s confdefs.h; then 1763 cat <<\_ASBOX 1764## ----------- ## 1765## confdefs.h. ## 1766## ----------- ## 1767_ASBOX 1768 echo 1769 cat confdefs.h 1770 echo 1771 fi 1772 test "$ac_signal" != 0 && 1773 echo "$as_me: caught signal $ac_signal" 1774 echo "$as_me: exit $exit_status" 1775 } >&5 1776 rm -f core *.core core.conftest.* && 1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1778 exit $exit_status 1779' 0 1780for ac_signal in 1 2 13 15; do 1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1782done 1783ac_signal=0 1784 1785# confdefs.h avoids OS command line length limits that DEFS can exceed. 1786rm -f -r conftest* confdefs.h 1787 1788# Predefined preprocessor variables. 1789 1790cat >>confdefs.h <<_ACEOF 1791#define PACKAGE_NAME "$PACKAGE_NAME" 1792_ACEOF 1793 1794 1795cat >>confdefs.h <<_ACEOF 1796#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1797_ACEOF 1798 1799 1800cat >>confdefs.h <<_ACEOF 1801#define PACKAGE_VERSION "$PACKAGE_VERSION" 1802_ACEOF 1803 1804 1805cat >>confdefs.h <<_ACEOF 1806#define PACKAGE_STRING "$PACKAGE_STRING" 1807_ACEOF 1808 1809 1810cat >>confdefs.h <<_ACEOF 1811#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1812_ACEOF 1813 1814 1815# Let the site file select an alternate cache file if it wants to. 1816# Prefer explicitly selected file to automatically selected ones. 1817if test -n "$CONFIG_SITE"; then 1818 set x "$CONFIG_SITE" 1819elif test "x$prefix" != xNONE; then 1820 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1821else 1822 set x "$ac_default_prefix/share/config.site" \ 1823 "$ac_default_prefix/etc/config.site" 1824fi 1825shift 1826for ac_site_file 1827do 1828 if test -r "$ac_site_file"; then 1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1830echo "$as_me: loading site script $ac_site_file" >&6;} 1831 sed 's/^/| /' "$ac_site_file" >&5 1832 . "$ac_site_file" 1833 fi 1834done 1835 1836if test -r "$cache_file"; then 1837 # Some versions of bash will fail to source /dev/null (special 1838 # files actually), so we avoid doing that. 1839 if test -f "$cache_file"; then 1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1841echo "$as_me: loading cache $cache_file" >&6;} 1842 case $cache_file in 1843 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1844 *) . "./$cache_file";; 1845 esac 1846 fi 1847else 1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1849echo "$as_me: creating cache $cache_file" >&6;} 1850 >$cache_file 1851fi 1852 1853# Check that the precious variables saved in the cache have kept the same 1854# value. 1855ac_cache_corrupted=false 1856for ac_var in $ac_precious_vars; do 1857 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1858 eval ac_new_set=\$ac_env_${ac_var}_set 1859 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1860 eval ac_new_val=\$ac_env_${ac_var}_value 1861 case $ac_old_set,$ac_new_set in 1862 set,) 1863 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1864echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1865 ac_cache_corrupted=: ;; 1866 ,set) 1867 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1868echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1869 ac_cache_corrupted=: ;; 1870 ,);; 1871 *) 1872 if test "x$ac_old_val" != "x$ac_new_val"; then 1873 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1874echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1875 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1876echo "$as_me: former value: $ac_old_val" >&2;} 1877 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1878echo "$as_me: current value: $ac_new_val" >&2;} 1879 ac_cache_corrupted=: 1880 fi;; 1881 esac 1882 # Pass precious variables to config.status. 1883 if test "$ac_new_set" = set; then 1884 case $ac_new_val in 1885 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1886 *) ac_arg=$ac_var=$ac_new_val ;; 1887 esac 1888 case " $ac_configure_args " in 1889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1890 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1891 esac 1892 fi 1893done 1894if $ac_cache_corrupted; then 1895 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1896echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1897 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1898echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1899 { (exit 1); exit 1; }; } 1900fi 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926ac_ext=c 1927ac_cpp='$CPP $CPPFLAGS' 1928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1930ac_compiler_gnu=$ac_cv_c_compiler_gnu 1931 1932 1933 1934cat >>confdefs.h <<\_ACEOF 1935#define LLVM_VERSION_MAJOR 3 1936_ACEOF 1937 1938 1939cat >>confdefs.h <<\_ACEOF 1940#define LLVM_VERSION_MINOR 4 1941_ACEOF 1942 1943 1944LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign." 1945 1946 1947 1948 1949 1950 1951 1952ac_aux_dir= 1953for ac_dir in autoconf "$srcdir"/autoconf; do 1954 if test -f "$ac_dir/install-sh"; then 1955 ac_aux_dir=$ac_dir 1956 ac_install_sh="$ac_aux_dir/install-sh -c" 1957 break 1958 elif test -f "$ac_dir/install.sh"; then 1959 ac_aux_dir=$ac_dir 1960 ac_install_sh="$ac_aux_dir/install.sh -c" 1961 break 1962 elif test -f "$ac_dir/shtool"; then 1963 ac_aux_dir=$ac_dir 1964 ac_install_sh="$ac_aux_dir/shtool install -c" 1965 break 1966 fi 1967done 1968if test -z "$ac_aux_dir"; then 1969 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1970echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1971 { (exit 1); exit 1; }; } 1972fi 1973 1974# These three variables are undocumented and unsupported, 1975# and are intended to be withdrawn in a future Autoconf release. 1976# They can cause serious problems if a builder's source tree is in a directory 1977# whose full name contains unusual characters. 1978ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1979ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1980ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1981 1982 1983 1984if test ${srcdir} != "." ; then 1985 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1986 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1987echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1988 { (exit 1); exit 1; }; } 1989 fi 1990fi 1991 1992${CFLAGS=} 1993${CXXFLAGS=} 1994 1995ac_ext=c 1996ac_cpp='$CPP $CPPFLAGS' 1997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1999ac_compiler_gnu=$ac_cv_c_compiler_gnu 2000if test -n "$ac_tool_prefix"; then 2001 for ac_prog in clang llvm-gcc gcc 2002 do 2003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2004set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2005{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2007if test "${ac_cv_prog_CC+set}" = set; then 2008 echo $ECHO_N "(cached) $ECHO_C" >&6 2009else 2010 if test -n "$CC"; then 2011 ac_cv_prog_CC="$CC" # Let the user override the test. 2012else 2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2014for as_dir in $PATH 2015do 2016 IFS=$as_save_IFS 2017 test -z "$as_dir" && as_dir=. 2018 for ac_exec_ext in '' $ac_executable_extensions; do 2019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2020 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2022 break 2 2023 fi 2024done 2025done 2026IFS=$as_save_IFS 2027 2028fi 2029fi 2030CC=$ac_cv_prog_CC 2031if test -n "$CC"; then 2032 { echo "$as_me:$LINENO: result: $CC" >&5 2033echo "${ECHO_T}$CC" >&6; } 2034else 2035 { echo "$as_me:$LINENO: result: no" >&5 2036echo "${ECHO_T}no" >&6; } 2037fi 2038 2039 2040 test -n "$CC" && break 2041 done 2042fi 2043if test -z "$CC"; then 2044 ac_ct_CC=$CC 2045 for ac_prog in clang llvm-gcc gcc 2046do 2047 # Extract the first word of "$ac_prog", so it can be a program name with args. 2048set dummy $ac_prog; ac_word=$2 2049{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2051if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2052 echo $ECHO_N "(cached) $ECHO_C" >&6 2053else 2054 if test -n "$ac_ct_CC"; then 2055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2056else 2057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2058for as_dir in $PATH 2059do 2060 IFS=$as_save_IFS 2061 test -z "$as_dir" && as_dir=. 2062 for ac_exec_ext in '' $ac_executable_extensions; do 2063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2064 ac_cv_prog_ac_ct_CC="$ac_prog" 2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2066 break 2 2067 fi 2068done 2069done 2070IFS=$as_save_IFS 2071 2072fi 2073fi 2074ac_ct_CC=$ac_cv_prog_ac_ct_CC 2075if test -n "$ac_ct_CC"; then 2076 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2077echo "${ECHO_T}$ac_ct_CC" >&6; } 2078else 2079 { echo "$as_me:$LINENO: result: no" >&5 2080echo "${ECHO_T}no" >&6; } 2081fi 2082 2083 2084 test -n "$ac_ct_CC" && break 2085done 2086 2087 if test "x$ac_ct_CC" = x; then 2088 CC="" 2089 else 2090 case $cross_compiling:$ac_tool_warned in 2091yes:) 2092{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2093whose name does not start with the host triplet. If you think this 2094configuration is useful to you, please write to autoconf@gnu.org." >&5 2095echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2096whose name does not start with the host triplet. If you think this 2097configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2098ac_tool_warned=yes ;; 2099esac 2100 CC=$ac_ct_CC 2101 fi 2102fi 2103 2104 2105test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2106See \`config.log' for more details." >&5 2107echo "$as_me: error: no acceptable C compiler found in \$PATH 2108See \`config.log' for more details." >&2;} 2109 { (exit 1); exit 1; }; } 2110 2111# Provide some information about the compiler. 2112echo "$as_me:$LINENO: checking for C compiler version" >&5 2113ac_compiler=`set X $ac_compile; echo $2` 2114{ (ac_try="$ac_compiler --version >&5" 2115case "(($ac_try" in 2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2117 *) ac_try_echo=$ac_try;; 2118esac 2119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2120 (eval "$ac_compiler --version >&5") 2>&5 2121 ac_status=$? 2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2123 (exit $ac_status); } 2124{ (ac_try="$ac_compiler -v >&5" 2125case "(($ac_try" in 2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2127 *) ac_try_echo=$ac_try;; 2128esac 2129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2130 (eval "$ac_compiler -v >&5") 2>&5 2131 ac_status=$? 2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2133 (exit $ac_status); } 2134{ (ac_try="$ac_compiler -V >&5" 2135case "(($ac_try" in 2136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2137 *) ac_try_echo=$ac_try;; 2138esac 2139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2140 (eval "$ac_compiler -V >&5") 2>&5 2141 ac_status=$? 2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2143 (exit $ac_status); } 2144 2145cat >conftest.$ac_ext <<_ACEOF 2146/* confdefs.h. */ 2147_ACEOF 2148cat confdefs.h >>conftest.$ac_ext 2149cat >>conftest.$ac_ext <<_ACEOF 2150/* end confdefs.h. */ 2151 2152int 2153main () 2154{ 2155 2156 ; 2157 return 0; 2158} 2159_ACEOF 2160ac_clean_files_save=$ac_clean_files 2161ac_clean_files="$ac_clean_files a.out a.exe b.out" 2162# Try to create an executable without -o first, disregard a.out. 2163# It will help us diagnose broken compilers, and finding out an intuition 2164# of exeext. 2165{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2166echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2167ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2168# 2169# List of possible output files, starting from the most likely. 2170# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2171# only as a last resort. b.out is created by i960 compilers. 2172ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2173# 2174# The IRIX 6 linker writes into existing files which may not be 2175# executable, retaining their permissions. Remove them first so a 2176# subsequent execution test works. 2177ac_rmfiles= 2178for ac_file in $ac_files 2179do 2180 case $ac_file in 2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2182 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2183 esac 2184done 2185rm -f $ac_rmfiles 2186 2187if { (ac_try="$ac_link_default" 2188case "(($ac_try" in 2189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2190 *) ac_try_echo=$ac_try;; 2191esac 2192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2193 (eval "$ac_link_default") 2>&5 2194 ac_status=$? 2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2196 (exit $ac_status); }; then 2197 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2198# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2199# in a Makefile. We should not override ac_cv_exeext if it was cached, 2200# so that the user can short-circuit this test for compilers unknown to 2201# Autoconf. 2202for ac_file in $ac_files 2203do 2204 test -f "$ac_file" || continue 2205 case $ac_file in 2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2207 ;; 2208 [ab].out ) 2209 # We found the default executable, but exeext='' is most 2210 # certainly right. 2211 break;; 2212 *.* ) 2213 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2214 then :; else 2215 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2216 fi 2217 # We set ac_cv_exeext here because the later test for it is not 2218 # safe: cross compilers may not add the suffix if given an `-o' 2219 # argument, so we may need to know it at that point already. 2220 # Even if this section looks crufty: it has the advantage of 2221 # actually working. 2222 break;; 2223 * ) 2224 break;; 2225 esac 2226done 2227test "$ac_cv_exeext" = no && ac_cv_exeext= 2228 2229else 2230 echo "$as_me: failed program was:" >&5 2231sed 's/^/| /' conftest.$ac_ext >&5 2232 2233{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2234See \`config.log' for more details." >&5 2235echo "$as_me: error: C compiler cannot create executables 2236See \`config.log' for more details." >&2;} 2237 { (exit 77); exit 77; }; } 2238fi 2239 2240ac_exeext=$ac_cv_exeext 2241{ echo "$as_me:$LINENO: result: $ac_file" >&5 2242echo "${ECHO_T}$ac_file" >&6; } 2243 2244# Check that the compiler produces executables we can run. If not, either 2245# the compiler is broken, or we cross compile. 2246{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2247echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2248# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2249# If not cross compiling, check that we can run a simple program. 2250if test "$cross_compiling" != yes; then 2251 if { ac_try='./$ac_file' 2252 { (case "(($ac_try" in 2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2254 *) ac_try_echo=$ac_try;; 2255esac 2256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2257 (eval "$ac_try") 2>&5 2258 ac_status=$? 2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2260 (exit $ac_status); }; }; then 2261 cross_compiling=no 2262 else 2263 if test "$cross_compiling" = maybe; then 2264 cross_compiling=yes 2265 else 2266 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2267If you meant to cross compile, use \`--host'. 2268See \`config.log' for more details." >&5 2269echo "$as_me: error: cannot run C compiled programs. 2270If you meant to cross compile, use \`--host'. 2271See \`config.log' for more details." >&2;} 2272 { (exit 1); exit 1; }; } 2273 fi 2274 fi 2275fi 2276{ echo "$as_me:$LINENO: result: yes" >&5 2277echo "${ECHO_T}yes" >&6; } 2278 2279rm -f a.out a.exe conftest$ac_cv_exeext b.out 2280ac_clean_files=$ac_clean_files_save 2281# Check that the compiler produces executables we can run. If not, either 2282# the compiler is broken, or we cross compile. 2283{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2284echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2285{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2286echo "${ECHO_T}$cross_compiling" >&6; } 2287 2288{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2289echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2290if { (ac_try="$ac_link" 2291case "(($ac_try" in 2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2293 *) ac_try_echo=$ac_try;; 2294esac 2295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2296 (eval "$ac_link") 2>&5 2297 ac_status=$? 2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2299 (exit $ac_status); }; then 2300 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2301# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2302# work properly (i.e., refer to `conftest.exe'), while it won't with 2303# `rm'. 2304for ac_file in conftest.exe conftest conftest.*; do 2305 test -f "$ac_file" || continue 2306 case $ac_file in 2307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2309 break;; 2310 * ) break;; 2311 esac 2312done 2313else 2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2315See \`config.log' for more details." >&5 2316echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2317See \`config.log' for more details." >&2;} 2318 { (exit 1); exit 1; }; } 2319fi 2320 2321rm -f conftest$ac_cv_exeext 2322{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2323echo "${ECHO_T}$ac_cv_exeext" >&6; } 2324 2325rm -f conftest.$ac_ext 2326EXEEXT=$ac_cv_exeext 2327ac_exeext=$EXEEXT 2328{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2329echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2330if test "${ac_cv_objext+set}" = set; then 2331 echo $ECHO_N "(cached) $ECHO_C" >&6 2332else 2333 cat >conftest.$ac_ext <<_ACEOF 2334/* confdefs.h. */ 2335_ACEOF 2336cat confdefs.h >>conftest.$ac_ext 2337cat >>conftest.$ac_ext <<_ACEOF 2338/* end confdefs.h. */ 2339 2340int 2341main () 2342{ 2343 2344 ; 2345 return 0; 2346} 2347_ACEOF 2348rm -f conftest.o conftest.obj 2349if { (ac_try="$ac_compile" 2350case "(($ac_try" in 2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2352 *) ac_try_echo=$ac_try;; 2353esac 2354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2355 (eval "$ac_compile") 2>&5 2356 ac_status=$? 2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2358 (exit $ac_status); }; then 2359 for ac_file in conftest.o conftest.obj conftest.*; do 2360 test -f "$ac_file" || continue; 2361 case $ac_file in 2362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2364 break;; 2365 esac 2366done 2367else 2368 echo "$as_me: failed program was:" >&5 2369sed 's/^/| /' conftest.$ac_ext >&5 2370 2371{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2372See \`config.log' for more details." >&5 2373echo "$as_me: error: cannot compute suffix of object files: cannot compile 2374See \`config.log' for more details." >&2;} 2375 { (exit 1); exit 1; }; } 2376fi 2377 2378rm -f conftest.$ac_cv_objext conftest.$ac_ext 2379fi 2380{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2381echo "${ECHO_T}$ac_cv_objext" >&6; } 2382OBJEXT=$ac_cv_objext 2383ac_objext=$OBJEXT 2384{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2385echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2386if test "${ac_cv_c_compiler_gnu+set}" = set; then 2387 echo $ECHO_N "(cached) $ECHO_C" >&6 2388else 2389 cat >conftest.$ac_ext <<_ACEOF 2390/* confdefs.h. */ 2391_ACEOF 2392cat confdefs.h >>conftest.$ac_ext 2393cat >>conftest.$ac_ext <<_ACEOF 2394/* end confdefs.h. */ 2395 2396int 2397main () 2398{ 2399#ifndef __GNUC__ 2400 choke me 2401#endif 2402 2403 ; 2404 return 0; 2405} 2406_ACEOF 2407rm -f conftest.$ac_objext 2408if { (ac_try="$ac_compile" 2409case "(($ac_try" in 2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2411 *) ac_try_echo=$ac_try;; 2412esac 2413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2414 (eval "$ac_compile") 2>conftest.er1 2415 ac_status=$? 2416 grep -v '^ *+' conftest.er1 >conftest.err 2417 rm -f conftest.er1 2418 cat conftest.err >&5 2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2420 (exit $ac_status); } && 2421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2422 { (case "(($ac_try" in 2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2424 *) ac_try_echo=$ac_try;; 2425esac 2426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2427 (eval "$ac_try") 2>&5 2428 ac_status=$? 2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2430 (exit $ac_status); }; } && 2431 { ac_try='test -s conftest.$ac_objext' 2432 { (case "(($ac_try" in 2433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2434 *) ac_try_echo=$ac_try;; 2435esac 2436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2437 (eval "$ac_try") 2>&5 2438 ac_status=$? 2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2440 (exit $ac_status); }; }; then 2441 ac_compiler_gnu=yes 2442else 2443 echo "$as_me: failed program was:" >&5 2444sed 's/^/| /' conftest.$ac_ext >&5 2445 2446 ac_compiler_gnu=no 2447fi 2448 2449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2450ac_cv_c_compiler_gnu=$ac_compiler_gnu 2451 2452fi 2453{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2454echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2455GCC=`test $ac_compiler_gnu = yes && echo yes` 2456ac_test_CFLAGS=${CFLAGS+set} 2457ac_save_CFLAGS=$CFLAGS 2458{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2459echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2460if test "${ac_cv_prog_cc_g+set}" = set; then 2461 echo $ECHO_N "(cached) $ECHO_C" >&6 2462else 2463 ac_save_c_werror_flag=$ac_c_werror_flag 2464 ac_c_werror_flag=yes 2465 ac_cv_prog_cc_g=no 2466 CFLAGS="-g" 2467 cat >conftest.$ac_ext <<_ACEOF 2468/* confdefs.h. */ 2469_ACEOF 2470cat confdefs.h >>conftest.$ac_ext 2471cat >>conftest.$ac_ext <<_ACEOF 2472/* end confdefs.h. */ 2473 2474int 2475main () 2476{ 2477 2478 ; 2479 return 0; 2480} 2481_ACEOF 2482rm -f conftest.$ac_objext 2483if { (ac_try="$ac_compile" 2484case "(($ac_try" in 2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2486 *) ac_try_echo=$ac_try;; 2487esac 2488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2489 (eval "$ac_compile") 2>conftest.er1 2490 ac_status=$? 2491 grep -v '^ *+' conftest.er1 >conftest.err 2492 rm -f conftest.er1 2493 cat conftest.err >&5 2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2495 (exit $ac_status); } && 2496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2497 { (case "(($ac_try" in 2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2499 *) ac_try_echo=$ac_try;; 2500esac 2501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2502 (eval "$ac_try") 2>&5 2503 ac_status=$? 2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2505 (exit $ac_status); }; } && 2506 { ac_try='test -s conftest.$ac_objext' 2507 { (case "(($ac_try" in 2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2509 *) ac_try_echo=$ac_try;; 2510esac 2511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2512 (eval "$ac_try") 2>&5 2513 ac_status=$? 2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2515 (exit $ac_status); }; }; then 2516 ac_cv_prog_cc_g=yes 2517else 2518 echo "$as_me: failed program was:" >&5 2519sed 's/^/| /' conftest.$ac_ext >&5 2520 2521 CFLAGS="" 2522 cat >conftest.$ac_ext <<_ACEOF 2523/* confdefs.h. */ 2524_ACEOF 2525cat confdefs.h >>conftest.$ac_ext 2526cat >>conftest.$ac_ext <<_ACEOF 2527/* end confdefs.h. */ 2528 2529int 2530main () 2531{ 2532 2533 ; 2534 return 0; 2535} 2536_ACEOF 2537rm -f conftest.$ac_objext 2538if { (ac_try="$ac_compile" 2539case "(($ac_try" in 2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2541 *) ac_try_echo=$ac_try;; 2542esac 2543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2544 (eval "$ac_compile") 2>conftest.er1 2545 ac_status=$? 2546 grep -v '^ *+' conftest.er1 >conftest.err 2547 rm -f conftest.er1 2548 cat conftest.err >&5 2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2550 (exit $ac_status); } && 2551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2552 { (case "(($ac_try" in 2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2554 *) ac_try_echo=$ac_try;; 2555esac 2556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2557 (eval "$ac_try") 2>&5 2558 ac_status=$? 2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2560 (exit $ac_status); }; } && 2561 { ac_try='test -s conftest.$ac_objext' 2562 { (case "(($ac_try" in 2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2564 *) ac_try_echo=$ac_try;; 2565esac 2566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2567 (eval "$ac_try") 2>&5 2568 ac_status=$? 2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2570 (exit $ac_status); }; }; then 2571 : 2572else 2573 echo "$as_me: failed program was:" >&5 2574sed 's/^/| /' conftest.$ac_ext >&5 2575 2576 ac_c_werror_flag=$ac_save_c_werror_flag 2577 CFLAGS="-g" 2578 cat >conftest.$ac_ext <<_ACEOF 2579/* confdefs.h. */ 2580_ACEOF 2581cat confdefs.h >>conftest.$ac_ext 2582cat >>conftest.$ac_ext <<_ACEOF 2583/* end confdefs.h. */ 2584 2585int 2586main () 2587{ 2588 2589 ; 2590 return 0; 2591} 2592_ACEOF 2593rm -f conftest.$ac_objext 2594if { (ac_try="$ac_compile" 2595case "(($ac_try" in 2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2597 *) ac_try_echo=$ac_try;; 2598esac 2599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2600 (eval "$ac_compile") 2>conftest.er1 2601 ac_status=$? 2602 grep -v '^ *+' conftest.er1 >conftest.err 2603 rm -f conftest.er1 2604 cat conftest.err >&5 2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2606 (exit $ac_status); } && 2607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2608 { (case "(($ac_try" in 2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2610 *) ac_try_echo=$ac_try;; 2611esac 2612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2613 (eval "$ac_try") 2>&5 2614 ac_status=$? 2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2616 (exit $ac_status); }; } && 2617 { ac_try='test -s conftest.$ac_objext' 2618 { (case "(($ac_try" in 2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2620 *) ac_try_echo=$ac_try;; 2621esac 2622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2623 (eval "$ac_try") 2>&5 2624 ac_status=$? 2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2626 (exit $ac_status); }; }; then 2627 ac_cv_prog_cc_g=yes 2628else 2629 echo "$as_me: failed program was:" >&5 2630sed 's/^/| /' conftest.$ac_ext >&5 2631 2632 2633fi 2634 2635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2636fi 2637 2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2639fi 2640 2641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2642 ac_c_werror_flag=$ac_save_c_werror_flag 2643fi 2644{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2645echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2646if test "$ac_test_CFLAGS" = set; then 2647 CFLAGS=$ac_save_CFLAGS 2648elif test $ac_cv_prog_cc_g = yes; then 2649 if test "$GCC" = yes; then 2650 CFLAGS="-g -O2" 2651 else 2652 CFLAGS="-g" 2653 fi 2654else 2655 if test "$GCC" = yes; then 2656 CFLAGS="-O2" 2657 else 2658 CFLAGS= 2659 fi 2660fi 2661{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2662echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2663if test "${ac_cv_prog_cc_c89+set}" = set; then 2664 echo $ECHO_N "(cached) $ECHO_C" >&6 2665else 2666 ac_cv_prog_cc_c89=no 2667ac_save_CC=$CC 2668cat >conftest.$ac_ext <<_ACEOF 2669/* confdefs.h. */ 2670_ACEOF 2671cat confdefs.h >>conftest.$ac_ext 2672cat >>conftest.$ac_ext <<_ACEOF 2673/* end confdefs.h. */ 2674#include <stdarg.h> 2675#include <stdio.h> 2676#include <sys/types.h> 2677#include <sys/stat.h> 2678/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2679struct buf { int x; }; 2680FILE * (*rcsopen) (struct buf *, struct stat *, int); 2681static char *e (p, i) 2682 char **p; 2683 int i; 2684{ 2685 return p[i]; 2686} 2687static char *f (char * (*g) (char **, int), char **p, ...) 2688{ 2689 char *s; 2690 va_list v; 2691 va_start (v,p); 2692 s = g (p, va_arg (v,int)); 2693 va_end (v); 2694 return s; 2695} 2696 2697/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2698 function prototypes and stuff, but not '\xHH' hex character constants. 2699 These don't provoke an error unfortunately, instead are silently treated 2700 as 'x'. The following induces an error, until -std is added to get 2701 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2702 array size at least. It's necessary to write '\x00'==0 to get something 2703 that's true only with -std. */ 2704int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2705 2706/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2707 inside strings and character constants. */ 2708#define FOO(x) 'x' 2709int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2710 2711int test (int i, double x); 2712struct s1 {int (*f) (int a);}; 2713struct s2 {int (*f) (double a);}; 2714int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2715int argc; 2716char **argv; 2717int 2718main () 2719{ 2720return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2721 ; 2722 return 0; 2723} 2724_ACEOF 2725for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2727do 2728 CC="$ac_save_CC $ac_arg" 2729 rm -f conftest.$ac_objext 2730if { (ac_try="$ac_compile" 2731case "(($ac_try" in 2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2733 *) ac_try_echo=$ac_try;; 2734esac 2735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2736 (eval "$ac_compile") 2>conftest.er1 2737 ac_status=$? 2738 grep -v '^ *+' conftest.er1 >conftest.err 2739 rm -f conftest.er1 2740 cat conftest.err >&5 2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2742 (exit $ac_status); } && 2743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2744 { (case "(($ac_try" in 2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2746 *) ac_try_echo=$ac_try;; 2747esac 2748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2749 (eval "$ac_try") 2>&5 2750 ac_status=$? 2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2752 (exit $ac_status); }; } && 2753 { ac_try='test -s conftest.$ac_objext' 2754 { (case "(($ac_try" in 2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2756 *) ac_try_echo=$ac_try;; 2757esac 2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2759 (eval "$ac_try") 2>&5 2760 ac_status=$? 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); }; }; then 2763 ac_cv_prog_cc_c89=$ac_arg 2764else 2765 echo "$as_me: failed program was:" >&5 2766sed 's/^/| /' conftest.$ac_ext >&5 2767 2768 2769fi 2770 2771rm -f core conftest.err conftest.$ac_objext 2772 test "x$ac_cv_prog_cc_c89" != "xno" && break 2773done 2774rm -f conftest.$ac_ext 2775CC=$ac_save_CC 2776 2777fi 2778# AC_CACHE_VAL 2779case "x$ac_cv_prog_cc_c89" in 2780 x) 2781 { echo "$as_me:$LINENO: result: none needed" >&5 2782echo "${ECHO_T}none needed" >&6; } ;; 2783 xno) 2784 { echo "$as_me:$LINENO: result: unsupported" >&5 2785echo "${ECHO_T}unsupported" >&6; } ;; 2786 *) 2787 CC="$CC $ac_cv_prog_cc_c89" 2788 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2789echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2790esac 2791 2792 2793ac_ext=c 2794ac_cpp='$CPP $CPPFLAGS' 2795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2797ac_compiler_gnu=$ac_cv_c_compiler_gnu 2798 2799ac_ext=cpp 2800ac_cpp='$CXXCPP $CPPFLAGS' 2801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2804if test -z "$CXX"; then 2805 if test -n "$CCC"; then 2806 CXX=$CCC 2807 else 2808 if test -n "$ac_tool_prefix"; then 2809 for ac_prog in clang++ llvm-g++ g++ 2810 do 2811 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2812set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2813{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2815if test "${ac_cv_prog_CXX+set}" = set; then 2816 echo $ECHO_N "(cached) $ECHO_C" >&6 2817else 2818 if test -n "$CXX"; then 2819 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2820else 2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2822for as_dir in $PATH 2823do 2824 IFS=$as_save_IFS 2825 test -z "$as_dir" && as_dir=. 2826 for ac_exec_ext in '' $ac_executable_extensions; do 2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2828 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2830 break 2 2831 fi 2832done 2833done 2834IFS=$as_save_IFS 2835 2836fi 2837fi 2838CXX=$ac_cv_prog_CXX 2839if test -n "$CXX"; then 2840 { echo "$as_me:$LINENO: result: $CXX" >&5 2841echo "${ECHO_T}$CXX" >&6; } 2842else 2843 { echo "$as_me:$LINENO: result: no" >&5 2844echo "${ECHO_T}no" >&6; } 2845fi 2846 2847 2848 test -n "$CXX" && break 2849 done 2850fi 2851if test -z "$CXX"; then 2852 ac_ct_CXX=$CXX 2853 for ac_prog in clang++ llvm-g++ g++ 2854do 2855 # Extract the first word of "$ac_prog", so it can be a program name with args. 2856set dummy $ac_prog; ac_word=$2 2857{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2859if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2860 echo $ECHO_N "(cached) $ECHO_C" >&6 2861else 2862 if test -n "$ac_ct_CXX"; then 2863 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2864else 2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2866for as_dir in $PATH 2867do 2868 IFS=$as_save_IFS 2869 test -z "$as_dir" && as_dir=. 2870 for ac_exec_ext in '' $ac_executable_extensions; do 2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2872 ac_cv_prog_ac_ct_CXX="$ac_prog" 2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2874 break 2 2875 fi 2876done 2877done 2878IFS=$as_save_IFS 2879 2880fi 2881fi 2882ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2883if test -n "$ac_ct_CXX"; then 2884 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2885echo "${ECHO_T}$ac_ct_CXX" >&6; } 2886else 2887 { echo "$as_me:$LINENO: result: no" >&5 2888echo "${ECHO_T}no" >&6; } 2889fi 2890 2891 2892 test -n "$ac_ct_CXX" && break 2893done 2894 2895 if test "x$ac_ct_CXX" = x; then 2896 CXX="g++" 2897 else 2898 case $cross_compiling:$ac_tool_warned in 2899yes:) 2900{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2901whose name does not start with the host triplet. If you think this 2902configuration is useful to you, please write to autoconf@gnu.org." >&5 2903echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2904whose name does not start with the host triplet. If you think this 2905configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2906ac_tool_warned=yes ;; 2907esac 2908 CXX=$ac_ct_CXX 2909 fi 2910fi 2911 2912 fi 2913fi 2914# Provide some information about the compiler. 2915echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2916ac_compiler=`set X $ac_compile; echo $2` 2917{ (ac_try="$ac_compiler --version >&5" 2918case "(($ac_try" in 2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2920 *) ac_try_echo=$ac_try;; 2921esac 2922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2923 (eval "$ac_compiler --version >&5") 2>&5 2924 ac_status=$? 2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2926 (exit $ac_status); } 2927{ (ac_try="$ac_compiler -v >&5" 2928case "(($ac_try" in 2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2930 *) ac_try_echo=$ac_try;; 2931esac 2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2933 (eval "$ac_compiler -v >&5") 2>&5 2934 ac_status=$? 2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2936 (exit $ac_status); } 2937{ (ac_try="$ac_compiler -V >&5" 2938case "(($ac_try" in 2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2940 *) ac_try_echo=$ac_try;; 2941esac 2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2943 (eval "$ac_compiler -V >&5") 2>&5 2944 ac_status=$? 2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2946 (exit $ac_status); } 2947 2948{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2949echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2950if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2951 echo $ECHO_N "(cached) $ECHO_C" >&6 2952else 2953 cat >conftest.$ac_ext <<_ACEOF 2954/* confdefs.h. */ 2955_ACEOF 2956cat confdefs.h >>conftest.$ac_ext 2957cat >>conftest.$ac_ext <<_ACEOF 2958/* end confdefs.h. */ 2959 2960int 2961main () 2962{ 2963#ifndef __GNUC__ 2964 choke me 2965#endif 2966 2967 ; 2968 return 0; 2969} 2970_ACEOF 2971rm -f conftest.$ac_objext 2972if { (ac_try="$ac_compile" 2973case "(($ac_try" in 2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2975 *) ac_try_echo=$ac_try;; 2976esac 2977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2978 (eval "$ac_compile") 2>conftest.er1 2979 ac_status=$? 2980 grep -v '^ *+' conftest.er1 >conftest.err 2981 rm -f conftest.er1 2982 cat conftest.err >&5 2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2984 (exit $ac_status); } && 2985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2986 { (case "(($ac_try" in 2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2988 *) ac_try_echo=$ac_try;; 2989esac 2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2991 (eval "$ac_try") 2>&5 2992 ac_status=$? 2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2994 (exit $ac_status); }; } && 2995 { ac_try='test -s conftest.$ac_objext' 2996 { (case "(($ac_try" in 2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2998 *) ac_try_echo=$ac_try;; 2999esac 3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3001 (eval "$ac_try") 2>&5 3002 ac_status=$? 3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3004 (exit $ac_status); }; }; then 3005 ac_compiler_gnu=yes 3006else 3007 echo "$as_me: failed program was:" >&5 3008sed 's/^/| /' conftest.$ac_ext >&5 3009 3010 ac_compiler_gnu=no 3011fi 3012 3013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3014ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3015 3016fi 3017{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3018echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3019GXX=`test $ac_compiler_gnu = yes && echo yes` 3020ac_test_CXXFLAGS=${CXXFLAGS+set} 3021ac_save_CXXFLAGS=$CXXFLAGS 3022{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3023echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3024if test "${ac_cv_prog_cxx_g+set}" = set; then 3025 echo $ECHO_N "(cached) $ECHO_C" >&6 3026else 3027 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3028 ac_cxx_werror_flag=yes 3029 ac_cv_prog_cxx_g=no 3030 CXXFLAGS="-g" 3031 cat >conftest.$ac_ext <<_ACEOF 3032/* confdefs.h. */ 3033_ACEOF 3034cat confdefs.h >>conftest.$ac_ext 3035cat >>conftest.$ac_ext <<_ACEOF 3036/* end confdefs.h. */ 3037 3038int 3039main () 3040{ 3041 3042 ; 3043 return 0; 3044} 3045_ACEOF 3046rm -f conftest.$ac_objext 3047if { (ac_try="$ac_compile" 3048case "(($ac_try" in 3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3050 *) ac_try_echo=$ac_try;; 3051esac 3052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3053 (eval "$ac_compile") 2>conftest.er1 3054 ac_status=$? 3055 grep -v '^ *+' conftest.er1 >conftest.err 3056 rm -f conftest.er1 3057 cat conftest.err >&5 3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3059 (exit $ac_status); } && 3060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3061 { (case "(($ac_try" in 3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3063 *) ac_try_echo=$ac_try;; 3064esac 3065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3066 (eval "$ac_try") 2>&5 3067 ac_status=$? 3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3069 (exit $ac_status); }; } && 3070 { ac_try='test -s conftest.$ac_objext' 3071 { (case "(($ac_try" in 3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3073 *) ac_try_echo=$ac_try;; 3074esac 3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3076 (eval "$ac_try") 2>&5 3077 ac_status=$? 3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3079 (exit $ac_status); }; }; then 3080 ac_cv_prog_cxx_g=yes 3081else 3082 echo "$as_me: failed program was:" >&5 3083sed 's/^/| /' conftest.$ac_ext >&5 3084 3085 CXXFLAGS="" 3086 cat >conftest.$ac_ext <<_ACEOF 3087/* confdefs.h. */ 3088_ACEOF 3089cat confdefs.h >>conftest.$ac_ext 3090cat >>conftest.$ac_ext <<_ACEOF 3091/* end confdefs.h. */ 3092 3093int 3094main () 3095{ 3096 3097 ; 3098 return 0; 3099} 3100_ACEOF 3101rm -f conftest.$ac_objext 3102if { (ac_try="$ac_compile" 3103case "(($ac_try" in 3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3105 *) ac_try_echo=$ac_try;; 3106esac 3107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3108 (eval "$ac_compile") 2>conftest.er1 3109 ac_status=$? 3110 grep -v '^ *+' conftest.er1 >conftest.err 3111 rm -f conftest.er1 3112 cat conftest.err >&5 3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3114 (exit $ac_status); } && 3115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3116 { (case "(($ac_try" in 3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3118 *) ac_try_echo=$ac_try;; 3119esac 3120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3121 (eval "$ac_try") 2>&5 3122 ac_status=$? 3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3124 (exit $ac_status); }; } && 3125 { ac_try='test -s conftest.$ac_objext' 3126 { (case "(($ac_try" in 3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3128 *) ac_try_echo=$ac_try;; 3129esac 3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3131 (eval "$ac_try") 2>&5 3132 ac_status=$? 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3134 (exit $ac_status); }; }; then 3135 : 3136else 3137 echo "$as_me: failed program was:" >&5 3138sed 's/^/| /' conftest.$ac_ext >&5 3139 3140 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3141 CXXFLAGS="-g" 3142 cat >conftest.$ac_ext <<_ACEOF 3143/* confdefs.h. */ 3144_ACEOF 3145cat confdefs.h >>conftest.$ac_ext 3146cat >>conftest.$ac_ext <<_ACEOF 3147/* end confdefs.h. */ 3148 3149int 3150main () 3151{ 3152 3153 ; 3154 return 0; 3155} 3156_ACEOF 3157rm -f conftest.$ac_objext 3158if { (ac_try="$ac_compile" 3159case "(($ac_try" in 3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3161 *) ac_try_echo=$ac_try;; 3162esac 3163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3164 (eval "$ac_compile") 2>conftest.er1 3165 ac_status=$? 3166 grep -v '^ *+' conftest.er1 >conftest.err 3167 rm -f conftest.er1 3168 cat conftest.err >&5 3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3170 (exit $ac_status); } && 3171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3172 { (case "(($ac_try" in 3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3174 *) ac_try_echo=$ac_try;; 3175esac 3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3177 (eval "$ac_try") 2>&5 3178 ac_status=$? 3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3180 (exit $ac_status); }; } && 3181 { ac_try='test -s conftest.$ac_objext' 3182 { (case "(($ac_try" in 3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3184 *) ac_try_echo=$ac_try;; 3185esac 3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3187 (eval "$ac_try") 2>&5 3188 ac_status=$? 3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3190 (exit $ac_status); }; }; then 3191 ac_cv_prog_cxx_g=yes 3192else 3193 echo "$as_me: failed program was:" >&5 3194sed 's/^/| /' conftest.$ac_ext >&5 3195 3196 3197fi 3198 3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3200fi 3201 3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3203fi 3204 3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3206 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3207fi 3208{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3209echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3210if test "$ac_test_CXXFLAGS" = set; then 3211 CXXFLAGS=$ac_save_CXXFLAGS 3212elif test $ac_cv_prog_cxx_g = yes; then 3213 if test "$GXX" = yes; then 3214 CXXFLAGS="-g -O2" 3215 else 3216 CXXFLAGS="-g" 3217 fi 3218else 3219 if test "$GXX" = yes; then 3220 CXXFLAGS="-O2" 3221 else 3222 CXXFLAGS= 3223 fi 3224fi 3225ac_ext=c 3226ac_cpp='$CPP $CPPFLAGS' 3227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3229ac_compiler_gnu=$ac_cv_c_compiler_gnu 3230 3231ac_ext=c 3232ac_cpp='$CPP $CPPFLAGS' 3233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3235ac_compiler_gnu=$ac_cv_c_compiler_gnu 3236{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3237echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3238# On Suns, sometimes $CPP names a directory. 3239if test -n "$CPP" && test -d "$CPP"; then 3240 CPP= 3241fi 3242if test -z "$CPP"; then 3243 if test "${ac_cv_prog_CPP+set}" = set; then 3244 echo $ECHO_N "(cached) $ECHO_C" >&6 3245else 3246 # Double quotes because CPP needs to be expanded 3247 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3248 do 3249 ac_preproc_ok=false 3250for ac_c_preproc_warn_flag in '' yes 3251do 3252 # Use a header file that comes with gcc, so configuring glibc 3253 # with a fresh cross-compiler works. 3254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3255 # <limits.h> exists even on freestanding compilers. 3256 # On the NeXT, cc -E runs the code through the compiler's parser, 3257 # not just through cpp. "Syntax error" is here to catch this case. 3258 cat >conftest.$ac_ext <<_ACEOF 3259/* confdefs.h. */ 3260_ACEOF 3261cat confdefs.h >>conftest.$ac_ext 3262cat >>conftest.$ac_ext <<_ACEOF 3263/* end confdefs.h. */ 3264#ifdef __STDC__ 3265# include <limits.h> 3266#else 3267# include <assert.h> 3268#endif 3269 Syntax error 3270_ACEOF 3271if { (ac_try="$ac_cpp conftest.$ac_ext" 3272case "(($ac_try" in 3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3274 *) ac_try_echo=$ac_try;; 3275esac 3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3278 ac_status=$? 3279 grep -v '^ *+' conftest.er1 >conftest.err 3280 rm -f conftest.er1 3281 cat conftest.err >&5 3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3283 (exit $ac_status); } >/dev/null; then 3284 if test -s conftest.err; then 3285 ac_cpp_err=$ac_c_preproc_warn_flag 3286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3287 else 3288 ac_cpp_err= 3289 fi 3290else 3291 ac_cpp_err=yes 3292fi 3293if test -z "$ac_cpp_err"; then 3294 : 3295else 3296 echo "$as_me: failed program was:" >&5 3297sed 's/^/| /' conftest.$ac_ext >&5 3298 3299 # Broken: fails on valid input. 3300continue 3301fi 3302 3303rm -f conftest.err conftest.$ac_ext 3304 3305 # OK, works on sane cases. Now check whether nonexistent headers 3306 # can be detected and how. 3307 cat >conftest.$ac_ext <<_ACEOF 3308/* confdefs.h. */ 3309_ACEOF 3310cat confdefs.h >>conftest.$ac_ext 3311cat >>conftest.$ac_ext <<_ACEOF 3312/* end confdefs.h. */ 3313#include <ac_nonexistent.h> 3314_ACEOF 3315if { (ac_try="$ac_cpp conftest.$ac_ext" 3316case "(($ac_try" in 3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3318 *) ac_try_echo=$ac_try;; 3319esac 3320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3322 ac_status=$? 3323 grep -v '^ *+' conftest.er1 >conftest.err 3324 rm -f conftest.er1 3325 cat conftest.err >&5 3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3327 (exit $ac_status); } >/dev/null; then 3328 if test -s conftest.err; then 3329 ac_cpp_err=$ac_c_preproc_warn_flag 3330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3331 else 3332 ac_cpp_err= 3333 fi 3334else 3335 ac_cpp_err=yes 3336fi 3337if test -z "$ac_cpp_err"; then 3338 # Broken: success on invalid input. 3339continue 3340else 3341 echo "$as_me: failed program was:" >&5 3342sed 's/^/| /' conftest.$ac_ext >&5 3343 3344 # Passes both tests. 3345ac_preproc_ok=: 3346break 3347fi 3348 3349rm -f conftest.err conftest.$ac_ext 3350 3351done 3352# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3353rm -f conftest.err conftest.$ac_ext 3354if $ac_preproc_ok; then 3355 break 3356fi 3357 3358 done 3359 ac_cv_prog_CPP=$CPP 3360 3361fi 3362 CPP=$ac_cv_prog_CPP 3363else 3364 ac_cv_prog_CPP=$CPP 3365fi 3366{ echo "$as_me:$LINENO: result: $CPP" >&5 3367echo "${ECHO_T}$CPP" >&6; } 3368ac_preproc_ok=false 3369for ac_c_preproc_warn_flag in '' yes 3370do 3371 # Use a header file that comes with gcc, so configuring glibc 3372 # with a fresh cross-compiler works. 3373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3374 # <limits.h> exists even on freestanding compilers. 3375 # On the NeXT, cc -E runs the code through the compiler's parser, 3376 # not just through cpp. "Syntax error" is here to catch this case. 3377 cat >conftest.$ac_ext <<_ACEOF 3378/* confdefs.h. */ 3379_ACEOF 3380cat confdefs.h >>conftest.$ac_ext 3381cat >>conftest.$ac_ext <<_ACEOF 3382/* end confdefs.h. */ 3383#ifdef __STDC__ 3384# include <limits.h> 3385#else 3386# include <assert.h> 3387#endif 3388 Syntax error 3389_ACEOF 3390if { (ac_try="$ac_cpp conftest.$ac_ext" 3391case "(($ac_try" in 3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3393 *) ac_try_echo=$ac_try;; 3394esac 3395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3397 ac_status=$? 3398 grep -v '^ *+' conftest.er1 >conftest.err 3399 rm -f conftest.er1 3400 cat conftest.err >&5 3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3402 (exit $ac_status); } >/dev/null; then 3403 if test -s conftest.err; then 3404 ac_cpp_err=$ac_c_preproc_warn_flag 3405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3406 else 3407 ac_cpp_err= 3408 fi 3409else 3410 ac_cpp_err=yes 3411fi 3412if test -z "$ac_cpp_err"; then 3413 : 3414else 3415 echo "$as_me: failed program was:" >&5 3416sed 's/^/| /' conftest.$ac_ext >&5 3417 3418 # Broken: fails on valid input. 3419continue 3420fi 3421 3422rm -f conftest.err conftest.$ac_ext 3423 3424 # OK, works on sane cases. Now check whether nonexistent headers 3425 # can be detected and how. 3426 cat >conftest.$ac_ext <<_ACEOF 3427/* confdefs.h. */ 3428_ACEOF 3429cat confdefs.h >>conftest.$ac_ext 3430cat >>conftest.$ac_ext <<_ACEOF 3431/* end confdefs.h. */ 3432#include <ac_nonexistent.h> 3433_ACEOF 3434if { (ac_try="$ac_cpp conftest.$ac_ext" 3435case "(($ac_try" in 3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3437 *) ac_try_echo=$ac_try;; 3438esac 3439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3441 ac_status=$? 3442 grep -v '^ *+' conftest.er1 >conftest.err 3443 rm -f conftest.er1 3444 cat conftest.err >&5 3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3446 (exit $ac_status); } >/dev/null; then 3447 if test -s conftest.err; then 3448 ac_cpp_err=$ac_c_preproc_warn_flag 3449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3450 else 3451 ac_cpp_err= 3452 fi 3453else 3454 ac_cpp_err=yes 3455fi 3456if test -z "$ac_cpp_err"; then 3457 # Broken: success on invalid input. 3458continue 3459else 3460 echo "$as_me: failed program was:" >&5 3461sed 's/^/| /' conftest.$ac_ext >&5 3462 3463 # Passes both tests. 3464ac_preproc_ok=: 3465break 3466fi 3467 3468rm -f conftest.err conftest.$ac_ext 3469 3470done 3471# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3472rm -f conftest.err conftest.$ac_ext 3473if $ac_preproc_ok; then 3474 : 3475else 3476 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3477See \`config.log' for more details." >&5 3478echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3479See \`config.log' for more details." >&2;} 3480 { (exit 1); exit 1; }; } 3481fi 3482 3483ac_ext=c 3484ac_cpp='$CPP $CPPFLAGS' 3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3487ac_compiler_gnu=$ac_cv_c_compiler_gnu 3488 3489 3490if test "$CXX" = "clang++" ; then 3491 { echo "$as_me:$LINENO: checking whether clang works" >&5 3492echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; } 3493 ac_ext=cpp 3494ac_cpp='$CXXCPP $CPPFLAGS' 3495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3498 3499 3500cat >conftest.$ac_ext <<_ACEOF 3501/* confdefs.h. */ 3502_ACEOF 3503cat confdefs.h >>conftest.$ac_ext 3504cat >>conftest.$ac_ext <<_ACEOF 3505/* end confdefs.h. */ 3506#include <limits> 3507#if __has_include (<cxxabi.h>) 3508#include <cxxabi.h> 3509#endif 3510#if __has_include (<unwind.h>) 3511#include <unwind.h> 3512#endif 3513 3514int 3515main () 3516{ 3517 3518 ; 3519 return 0; 3520} 3521_ACEOF 3522rm -f conftest.$ac_objext 3523if { (ac_try="$ac_compile" 3524case "(($ac_try" in 3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3526 *) ac_try_echo=$ac_try;; 3527esac 3528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3529 (eval "$ac_compile") 2>conftest.er1 3530 ac_status=$? 3531 grep -v '^ *+' conftest.er1 >conftest.err 3532 rm -f conftest.er1 3533 cat conftest.err >&5 3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3535 (exit $ac_status); } && 3536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3537 { (case "(($ac_try" in 3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3539 *) ac_try_echo=$ac_try;; 3540esac 3541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3542 (eval "$ac_try") 2>&5 3543 ac_status=$? 3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3545 (exit $ac_status); }; } && 3546 { ac_try='test -s conftest.$ac_objext' 3547 { (case "(($ac_try" in 3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3549 *) ac_try_echo=$ac_try;; 3550esac 3551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3552 (eval "$ac_try") 2>&5 3553 ac_status=$? 3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3555 (exit $ac_status); }; }; then 3556 3557 { echo "$as_me:$LINENO: result: yes" >&5 3558echo "${ECHO_T}yes" >&6; } 3559 3560else 3561 echo "$as_me: failed program was:" >&5 3562sed 's/^/| /' conftest.$ac_ext >&5 3563 3564 3565 { echo "$as_me:$LINENO: result: no" >&5 3566echo "${ECHO_T}no" >&6; } 3567 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5 3568echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;} 3569 { (exit 1); exit 1; }; } 3570 3571fi 3572 3573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3574 ac_ext=c 3575ac_cpp='$CPP $CPPFLAGS' 3576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3578ac_compiler_gnu=$ac_cv_c_compiler_gnu 3579 3580fi 3581 3582 3583 3584if test -d ${srcdir}/projects/llvm-gcc ; then 3585 subdirs="$subdirs projects/llvm-gcc" 3586 3587fi 3588 3589if test -d ${srcdir}/projects/test-suite ; then 3590 subdirs="$subdirs projects/test-suite" 3591 3592fi 3593 3594if test -d ${srcdir}/projects/llvm-test ; then 3595 subdirs="$subdirs projects/llvm-test" 3596 3597fi 3598 3599if test -d ${srcdir}/projects/poolalloc ; then 3600 subdirs="$subdirs projects/poolalloc" 3601 3602fi 3603 3604if test -d ${srcdir}/projects/llvm-poolalloc ; then 3605 subdirs="$subdirs projects/llvm-poolalloc" 3606 3607fi 3608 3609for i in `ls ${srcdir}/projects` 3610do 3611 if test -d ${srcdir}/projects/${i} ; then 3612 case ${i} in 3613 sample) subdirs="$subdirs projects/sample" 3614 ;; 3615 privbracket) subdirs="$subdirs projects/privbracket" 3616 ;; 3617 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 3618 ;; 3619 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 3620;; 3621 llvm-java) subdirs="$subdirs projects/llvm-java" 3622 ;; 3623 llvm-tv) subdirs="$subdirs projects/llvm-tv" 3624 ;; 3625 safecode) subdirs="$subdirs projects/safecode" 3626 ;; 3627 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 3628 ;; 3629 compiler-rt) ;; 3630 llvm-gcc) ;; 3631 test-suite) ;; 3632 llvm-test) ;; 3633 poolalloc) ;; 3634 llvm-poolalloc) ;; 3635 *) 3636 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3637echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3638 ;; 3639 esac 3640 fi 3641done 3642 3643# Check whether --enable-polly was given. 3644if test "${enable_polly+set}" = set; then 3645 enableval=$enable_polly; 3646else 3647 enableval=default 3648fi 3649 3650case "$enableval" in 3651 yes) ENABLE_POLLY=1 3652 ;; 3653 no) ENABLE_POLLY=0 3654 ;; 3655 default) ENABLE_POLLY=1 3656 ;; 3657 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3658echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3659 { (exit 1); exit 1; }; } ;; 3660esac 3661 3662 3663if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3664 LLVM_HAS_POLLY=1 3665 3666 subdirs="$subdirs tools/polly" 3667 3668fi 3669 3670 3671# Make sure we can run config.sub. 3672$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3673 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3674echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3675 { (exit 1); exit 1; }; } 3676 3677{ echo "$as_me:$LINENO: checking build system type" >&5 3678echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3679if test "${ac_cv_build+set}" = set; then 3680 echo $ECHO_N "(cached) $ECHO_C" >&6 3681else 3682 ac_build_alias=$build_alias 3683test "x$ac_build_alias" = x && 3684 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3685test "x$ac_build_alias" = x && 3686 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3687echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3688 { (exit 1); exit 1; }; } 3689ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3690 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3691echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3692 { (exit 1); exit 1; }; } 3693 3694fi 3695{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3696echo "${ECHO_T}$ac_cv_build" >&6; } 3697case $ac_cv_build in 3698*-*-*) ;; 3699*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3700echo "$as_me: error: invalid value of canonical build" >&2;} 3701 { (exit 1); exit 1; }; };; 3702esac 3703build=$ac_cv_build 3704ac_save_IFS=$IFS; IFS='-' 3705set x $ac_cv_build 3706shift 3707build_cpu=$1 3708build_vendor=$2 3709shift; shift 3710# Remember, the first character of IFS is used to create $*, 3711# except with old shells: 3712build_os=$* 3713IFS=$ac_save_IFS 3714case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3715 3716 3717{ echo "$as_me:$LINENO: checking host system type" >&5 3718echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3719if test "${ac_cv_host+set}" = set; then 3720 echo $ECHO_N "(cached) $ECHO_C" >&6 3721else 3722 if test "x$host_alias" = x; then 3723 ac_cv_host=$ac_cv_build 3724else 3725 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3726 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3727echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3728 { (exit 1); exit 1; }; } 3729fi 3730 3731fi 3732{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3733echo "${ECHO_T}$ac_cv_host" >&6; } 3734case $ac_cv_host in 3735*-*-*) ;; 3736*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3737echo "$as_me: error: invalid value of canonical host" >&2;} 3738 { (exit 1); exit 1; }; };; 3739esac 3740host=$ac_cv_host 3741ac_save_IFS=$IFS; IFS='-' 3742set x $ac_cv_host 3743shift 3744host_cpu=$1 3745host_vendor=$2 3746shift; shift 3747# Remember, the first character of IFS is used to create $*, 3748# except with old shells: 3749host_os=$* 3750IFS=$ac_save_IFS 3751case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3752 3753 3754{ echo "$as_me:$LINENO: checking target system type" >&5 3755echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3756if test "${ac_cv_target+set}" = set; then 3757 echo $ECHO_N "(cached) $ECHO_C" >&6 3758else 3759 if test "x$target_alias" = x; then 3760 ac_cv_target=$ac_cv_host 3761else 3762 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3763 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3764echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3765 { (exit 1); exit 1; }; } 3766fi 3767 3768fi 3769{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3770echo "${ECHO_T}$ac_cv_target" >&6; } 3771case $ac_cv_target in 3772*-*-*) ;; 3773*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3774echo "$as_me: error: invalid value of canonical target" >&2;} 3775 { (exit 1); exit 1; }; };; 3776esac 3777target=$ac_cv_target 3778ac_save_IFS=$IFS; IFS='-' 3779set x $ac_cv_target 3780shift 3781target_cpu=$1 3782target_vendor=$2 3783shift; shift 3784# Remember, the first character of IFS is used to create $*, 3785# except with old shells: 3786target_os=$* 3787IFS=$ac_save_IFS 3788case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3789 3790 3791# The aliases save the names the user supplied, while $host etc. 3792# will get canonicalized. 3793test -n "$target_alias" && 3794 test "$program_prefix$program_suffix$program_transform_name" = \ 3795 NONENONEs,x,x, && 3796 program_prefix=${target_alias}- 3797 3798{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3799echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3800if test "${llvm_cv_os_type+set}" = set; then 3801 echo $ECHO_N "(cached) $ECHO_C" >&6 3802else 3803 case $host in 3804 *-*-aix*) 3805 llvm_cv_link_all_option="-Wl,--whole-archive" 3806 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3807 llvm_cv_os_type="AIX" 3808 llvm_cv_platform_type="Unix" ;; 3809 *-*-irix*) 3810 llvm_cv_link_all_option="-Wl,--whole-archive" 3811 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3812 llvm_cv_os_type="IRIX" 3813 llvm_cv_platform_type="Unix" ;; 3814 *-*-cygwin*) 3815 llvm_cv_link_all_option="-Wl,--whole-archive" 3816 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3817 llvm_cv_os_type="Cygwin" 3818 llvm_cv_platform_type="Unix" ;; 3819 *-*-darwin*) 3820 llvm_cv_link_all_option="-Wl,-all_load" 3821 llvm_cv_no_link_all_option="-Wl,-noall_load" 3822 llvm_cv_os_type="Darwin" 3823 llvm_cv_platform_type="Unix" ;; 3824 *-*-minix*) 3825 llvm_cv_link_all_option="-Wl,-all_load" 3826 llvm_cv_no_link_all_option="-Wl,-noall_load" 3827 llvm_cv_os_type="Minix" 3828 llvm_cv_platform_type="Unix" ;; 3829 *-*-freebsd*) 3830 llvm_cv_link_all_option="-Wl,--whole-archive" 3831 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3832 llvm_cv_os_type="FreeBSD" 3833 llvm_cv_platform_type="Unix" ;; 3834 *-*-kfreebsd-gnu) 3835 llvm_cv_link_all_option="-Wl,--whole-archive" 3836 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3837 llvm_cv_os_type="GNU/kFreeBSD" 3838 llvm_cv_platform_type="Unix" ;; 3839 *-*-openbsd*) 3840 llvm_cv_link_all_option="-Wl,--whole-archive" 3841 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3842 llvm_cv_os_type="OpenBSD" 3843 llvm_cv_platform_type="Unix" ;; 3844 *-*-netbsd*) 3845 llvm_cv_link_all_option="-Wl,--whole-archive" 3846 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3847 llvm_cv_os_type="NetBSD" 3848 llvm_cv_platform_type="Unix" ;; 3849 *-*-dragonfly*) 3850 llvm_cv_link_all_option="-Wl,--whole-archive" 3851 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3852 llvm_cv_os_type="DragonFly" 3853 llvm_cv_platform_type="Unix" ;; 3854 *-*-hpux*) 3855 llvm_cv_link_all_option="-Wl,--whole-archive" 3856 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3857 llvm_cv_os_type="HP-UX" 3858 llvm_cv_platform_type="Unix" ;; 3859 *-*-interix*) 3860 llvm_cv_link_all_option="-Wl,--whole-archive" 3861 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3862 llvm_cv_os_type="Interix" 3863 llvm_cv_platform_type="Unix" ;; 3864 *-*-linux*) 3865 llvm_cv_link_all_option="-Wl,--whole-archive" 3866 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3867 llvm_cv_os_type="Linux" 3868 llvm_cv_platform_type="Unix" ;; 3869 *-*-gnu*) 3870 llvm_cv_link_all_option="-Wl,--whole-archive" 3871 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3872 llvm_cv_os_type="GNU" 3873 llvm_cv_platform_type="Unix" ;; 3874 *-*-solaris*) 3875 llvm_cv_link_all_option="-Wl,-z,allextract" 3876 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3877 llvm_cv_os_type="SunOS" 3878 llvm_cv_platform_type="Unix" ;; 3879 *-*-auroraux*) 3880 llvm_cv_link_all_option="-Wl,-z,allextract" 3881 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3882 llvm_cv_os_type="AuroraUX" 3883 llvm_cv_platform_type="Unix" ;; 3884 *-*-win32*) 3885 llvm_cv_link_all_option="-Wl,--whole-archive" 3886 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3887 llvm_cv_os_type="Win32" 3888 llvm_cv_platform_type="Win32" ;; 3889 *-*-mingw*) 3890 llvm_cv_link_all_option="-Wl,--whole-archive" 3891 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3892 llvm_cv_os_type="MingW" 3893 llvm_cv_platform_type="Win32" ;; 3894 *-*-haiku*) 3895 llvm_cv_link_all_option="-Wl,--whole-archive" 3896 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3897 llvm_cv_os_type="Haiku" 3898 llvm_cv_platform_type="Unix" ;; 3899 *-unknown-eabi*) 3900 llvm_cv_link_all_option="-Wl,--whole-archive" 3901 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3902 llvm_cv_os_type="Freestanding" 3903 llvm_cv_platform_type="Unix" ;; 3904 *-unknown-elf*) 3905 llvm_cv_link_all_option="-Wl,--whole-archive" 3906 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3907 llvm_cv_os_type="Freestanding" 3908 llvm_cv_platform_type="Unix" ;; 3909 *) 3910 llvm_cv_link_all_option="" 3911 llvm_cv_no_link_all_option="" 3912 llvm_cv_os_type="Unknown" 3913 llvm_cv_platform_type="Unknown" ;; 3914esac 3915fi 3916{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3917echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3918 3919{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3920echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3921if test "${llvm_cv_target_os_type+set}" = set; then 3922 echo $ECHO_N "(cached) $ECHO_C" >&6 3923else 3924 case $target in 3925 *-*-aix*) 3926 llvm_cv_target_os_type="AIX" ;; 3927 *-*-irix*) 3928 llvm_cv_target_os_type="IRIX" ;; 3929 *-*-cygwin*) 3930 llvm_cv_target_os_type="Cygwin" ;; 3931 *-*-darwin*) 3932 llvm_cv_target_os_type="Darwin" ;; 3933 *-*-minix*) 3934 llvm_cv_target_os_type="Minix" ;; 3935 *-*-freebsd*) 3936 llvm_cv_target_os_type="FreeBSD" ;; 3937 *-*-kfreebsd-gnu) 3938 llvm_cv_target_os_type="GNU/kFreeBSD" ;; 3939 *-*-openbsd*) 3940 llvm_cv_target_os_type="OpenBSD" ;; 3941 *-*-netbsd*) 3942 llvm_cv_target_os_type="NetBSD" ;; 3943 *-*-dragonfly*) 3944 llvm_cv_target_os_type="DragonFly" ;; 3945 *-*-hpux*) 3946 llvm_cv_target_os_type="HP-UX" ;; 3947 *-*-interix*) 3948 llvm_cv_target_os_type="Interix" ;; 3949 *-*-linux*) 3950 llvm_cv_target_os_type="Linux" ;; 3951 *-*-gnu*) 3952 llvm_cv_target_os_type="GNU" ;; 3953 *-*-solaris*) 3954 llvm_cv_target_os_type="SunOS" ;; 3955 *-*-auroraux*) 3956 llvm_cv_target_os_type="AuroraUX" ;; 3957 *-*-win32*) 3958 llvm_cv_target_os_type="Win32" ;; 3959 *-*-mingw*) 3960 llvm_cv_target_os_type="MingW" ;; 3961 *-*-haiku*) 3962 llvm_cv_target_os_type="Haiku" ;; 3963 *-*-rtems*) 3964 llvm_cv_target_os_type="RTEMS" ;; 3965 *-*-nacl*) 3966 llvm_cv_target_os_type="NativeClient" ;; 3967 *-unknown-eabi*) 3968 llvm_cv_target_os_type="Freestanding" ;; 3969 *) 3970 llvm_cv_target_os_type="Unknown" ;; 3971esac 3972fi 3973{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3974echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3975 3976if test "$llvm_cv_os_type" = "Unknown" ; then 3977 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3978echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3979 { (exit 1); exit 1; }; } 3980fi 3981 3982OS=$llvm_cv_os_type 3983 3984HOST_OS=$llvm_cv_os_type 3985 3986TARGET_OS=$llvm_cv_target_os_type 3987 3988 3989LINKALL=$llvm_cv_link_all_option 3990 3991NOLINKALL=$llvm_cv_no_link_all_option 3992 3993 3994case $llvm_cv_platform_type in 3995 Unix) 3996 3997cat >>confdefs.h <<\_ACEOF 3998#define LLVM_ON_UNIX 1 3999_ACEOF 4000 4001 LLVM_ON_UNIX=1 4002 4003 LLVM_ON_WIN32=0 4004 4005 ;; 4006 Win32) 4007 4008cat >>confdefs.h <<\_ACEOF 4009#define LLVM_ON_WIN32 1 4010_ACEOF 4011 4012 LLVM_ON_UNIX=0 4013 4014 LLVM_ON_WIN32=1 4015 4016 ;; 4017esac 4018 4019{ echo "$as_me:$LINENO: checking target architecture" >&5 4020echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 4021if test "${llvm_cv_target_arch+set}" = set; then 4022 echo $ECHO_N "(cached) $ECHO_C" >&6 4023else 4024 case $target in 4025 i?86-*) llvm_cv_target_arch="x86" ;; 4026 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 4027 sparc*-*) llvm_cv_target_arch="Sparc" ;; 4028 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 4029 arm*-*) llvm_cv_target_arch="ARM" ;; 4030 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 4031 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 4032 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 4033 xcore-*) llvm_cv_target_arch="XCore" ;; 4034 msp430-*) llvm_cv_target_arch="MSP430" ;; 4035 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 4036 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 4037 s390x-*) llvm_cv_target_arch="SystemZ" ;; 4038 *) llvm_cv_target_arch="Unknown" ;; 4039esac 4040fi 4041{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 4042echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 4043 4044if test "$llvm_cv_target_arch" = "Unknown" ; then 4045 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 4046echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 4047fi 4048 4049case "$llvm_cv_target_arch" in 4050 x86) LLVM_NATIVE_ARCH="X86" ;; 4051 x86_64) LLVM_NATIVE_ARCH="X86" ;; 4052 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 4053esac 4054 4055ARCH=$llvm_cv_target_arch 4056 4057 4058case $host in 4059 i?86-*) host_arch="x86" ;; 4060 amd64-* | x86_64-*) host_arch="x86_64" ;; 4061 sparc*-*) host_arch="Sparc" ;; 4062 powerpc*-*) host_arch="PowerPC" ;; 4063 arm*-*) host_arch="ARM" ;; 4064 aarch64*-*) host_arch="AArch64" ;; 4065 mips-* | mips64-*) host_arch="Mips" ;; 4066 mipsel-* | mips64el-*) host_arch="Mips" ;; 4067 xcore-*) host_arch="XCore" ;; 4068 msp430-*) host_arch="MSP430" ;; 4069 hexagon-*) host_arch="Hexagon" ;; 4070 s390x-*) host_arch="SystemZ" ;; 4071 *) host_arch="Unknown" ;; 4072esac 4073 4074if test "$host_arch" = "Unknown" ; then 4075 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 4076echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 4077fi 4078 4079HOST_ARCH=$host_arch 4080 4081 4082 4083 4084{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4085echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4086if test "${ac_cv_path_GREP+set}" = set; then 4087 echo $ECHO_N "(cached) $ECHO_C" >&6 4088else 4089 # Extract the first word of "grep ggrep" to use in msg output 4090if test -z "$GREP"; then 4091set dummy grep ggrep; ac_prog_name=$2 4092if test "${ac_cv_path_GREP+set}" = set; then 4093 echo $ECHO_N "(cached) $ECHO_C" >&6 4094else 4095 ac_path_GREP_found=false 4096# Loop through the user's path and test for each of PROGNAME-LIST 4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4098for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4099do 4100 IFS=$as_save_IFS 4101 test -z "$as_dir" && as_dir=. 4102 for ac_prog in grep ggrep; do 4103 for ac_exec_ext in '' $ac_executable_extensions; do 4104 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4105 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 4106 # Check for GNU ac_path_GREP and select it if it is found. 4107 # Check for GNU $ac_path_GREP 4108case `"$ac_path_GREP" --version 2>&1` in 4109*GNU*) 4110 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4111*) 4112 ac_count=0 4113 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4114 while : 4115 do 4116 cat "conftest.in" "conftest.in" >"conftest.tmp" 4117 mv "conftest.tmp" "conftest.in" 4118 cp "conftest.in" "conftest.nl" 4119 echo 'GREP' >> "conftest.nl" 4120 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4122 ac_count=`expr $ac_count + 1` 4123 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4124 # Best one so far, save it but keep looking for a better one 4125 ac_cv_path_GREP="$ac_path_GREP" 4126 ac_path_GREP_max=$ac_count 4127 fi 4128 # 10*(2^10) chars as input seems more than enough 4129 test $ac_count -gt 10 && break 4130 done 4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4132esac 4133 4134 4135 $ac_path_GREP_found && break 3 4136 done 4137done 4138 4139done 4140IFS=$as_save_IFS 4141 4142 4143fi 4144 4145GREP="$ac_cv_path_GREP" 4146if test -z "$GREP"; then 4147 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4148echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4149 { (exit 1); exit 1; }; } 4150fi 4151 4152else 4153 ac_cv_path_GREP=$GREP 4154fi 4155 4156 4157fi 4158{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4159echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4160 GREP="$ac_cv_path_GREP" 4161 4162 4163{ echo "$as_me:$LINENO: checking for egrep" >&5 4164echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4165if test "${ac_cv_path_EGREP+set}" = set; then 4166 echo $ECHO_N "(cached) $ECHO_C" >&6 4167else 4168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4169 then ac_cv_path_EGREP="$GREP -E" 4170 else 4171 # Extract the first word of "egrep" to use in msg output 4172if test -z "$EGREP"; then 4173set dummy egrep; ac_prog_name=$2 4174if test "${ac_cv_path_EGREP+set}" = set; then 4175 echo $ECHO_N "(cached) $ECHO_C" >&6 4176else 4177 ac_path_EGREP_found=false 4178# Loop through the user's path and test for each of PROGNAME-LIST 4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4180for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4181do 4182 IFS=$as_save_IFS 4183 test -z "$as_dir" && as_dir=. 4184 for ac_prog in egrep; do 4185 for ac_exec_ext in '' $ac_executable_extensions; do 4186 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4187 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4188 # Check for GNU ac_path_EGREP and select it if it is found. 4189 # Check for GNU $ac_path_EGREP 4190case `"$ac_path_EGREP" --version 2>&1` in 4191*GNU*) 4192 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4193*) 4194 ac_count=0 4195 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4196 while : 4197 do 4198 cat "conftest.in" "conftest.in" >"conftest.tmp" 4199 mv "conftest.tmp" "conftest.in" 4200 cp "conftest.in" "conftest.nl" 4201 echo 'EGREP' >> "conftest.nl" 4202 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4203 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4204 ac_count=`expr $ac_count + 1` 4205 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4206 # Best one so far, save it but keep looking for a better one 4207 ac_cv_path_EGREP="$ac_path_EGREP" 4208 ac_path_EGREP_max=$ac_count 4209 fi 4210 # 10*(2^10) chars as input seems more than enough 4211 test $ac_count -gt 10 && break 4212 done 4213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4214esac 4215 4216 4217 $ac_path_EGREP_found && break 3 4218 done 4219done 4220 4221done 4222IFS=$as_save_IFS 4223 4224 4225fi 4226 4227EGREP="$ac_cv_path_EGREP" 4228if test -z "$EGREP"; then 4229 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4230echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4231 { (exit 1); exit 1; }; } 4232fi 4233 4234else 4235 ac_cv_path_EGREP=$EGREP 4236fi 4237 4238 4239 fi 4240fi 4241{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4242echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4243 EGREP="$ac_cv_path_EGREP" 4244 4245 4246{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4247echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4248if test "${ac_cv_header_stdc+set}" = set; then 4249 echo $ECHO_N "(cached) $ECHO_C" >&6 4250else 4251 cat >conftest.$ac_ext <<_ACEOF 4252/* confdefs.h. */ 4253_ACEOF 4254cat confdefs.h >>conftest.$ac_ext 4255cat >>conftest.$ac_ext <<_ACEOF 4256/* end confdefs.h. */ 4257#include <stdlib.h> 4258#include <stdarg.h> 4259#include <string.h> 4260#include <float.h> 4261 4262int 4263main () 4264{ 4265 4266 ; 4267 return 0; 4268} 4269_ACEOF 4270rm -f conftest.$ac_objext 4271if { (ac_try="$ac_compile" 4272case "(($ac_try" in 4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4274 *) ac_try_echo=$ac_try;; 4275esac 4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4277 (eval "$ac_compile") 2>conftest.er1 4278 ac_status=$? 4279 grep -v '^ *+' conftest.er1 >conftest.err 4280 rm -f conftest.er1 4281 cat conftest.err >&5 4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4283 (exit $ac_status); } && 4284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4285 { (case "(($ac_try" in 4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4287 *) ac_try_echo=$ac_try;; 4288esac 4289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4290 (eval "$ac_try") 2>&5 4291 ac_status=$? 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4293 (exit $ac_status); }; } && 4294 { ac_try='test -s conftest.$ac_objext' 4295 { (case "(($ac_try" in 4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4297 *) ac_try_echo=$ac_try;; 4298esac 4299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4300 (eval "$ac_try") 2>&5 4301 ac_status=$? 4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4303 (exit $ac_status); }; }; then 4304 ac_cv_header_stdc=yes 4305else 4306 echo "$as_me: failed program was:" >&5 4307sed 's/^/| /' conftest.$ac_ext >&5 4308 4309 ac_cv_header_stdc=no 4310fi 4311 4312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4313 4314if test $ac_cv_header_stdc = yes; then 4315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4316 cat >conftest.$ac_ext <<_ACEOF 4317/* confdefs.h. */ 4318_ACEOF 4319cat confdefs.h >>conftest.$ac_ext 4320cat >>conftest.$ac_ext <<_ACEOF 4321/* end confdefs.h. */ 4322#include <string.h> 4323 4324_ACEOF 4325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4326 $EGREP "memchr" >/dev/null 2>&1; then 4327 : 4328else 4329 ac_cv_header_stdc=no 4330fi 4331rm -f conftest* 4332 4333fi 4334 4335if test $ac_cv_header_stdc = yes; then 4336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4337 cat >conftest.$ac_ext <<_ACEOF 4338/* confdefs.h. */ 4339_ACEOF 4340cat confdefs.h >>conftest.$ac_ext 4341cat >>conftest.$ac_ext <<_ACEOF 4342/* end confdefs.h. */ 4343#include <stdlib.h> 4344 4345_ACEOF 4346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4347 $EGREP "free" >/dev/null 2>&1; then 4348 : 4349else 4350 ac_cv_header_stdc=no 4351fi 4352rm -f conftest* 4353 4354fi 4355 4356if test $ac_cv_header_stdc = yes; then 4357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4358 if test "$cross_compiling" = yes; then 4359 : 4360else 4361 cat >conftest.$ac_ext <<_ACEOF 4362/* confdefs.h. */ 4363_ACEOF 4364cat confdefs.h >>conftest.$ac_ext 4365cat >>conftest.$ac_ext <<_ACEOF 4366/* end confdefs.h. */ 4367#include <ctype.h> 4368#include <stdlib.h> 4369#if ((' ' & 0x0FF) == 0x020) 4370# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4371# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4372#else 4373# define ISLOWER(c) \ 4374 (('a' <= (c) && (c) <= 'i') \ 4375 || ('j' <= (c) && (c) <= 'r') \ 4376 || ('s' <= (c) && (c) <= 'z')) 4377# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4378#endif 4379 4380#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4381int 4382main () 4383{ 4384 int i; 4385 for (i = 0; i < 256; i++) 4386 if (XOR (islower (i), ISLOWER (i)) 4387 || toupper (i) != TOUPPER (i)) 4388 return 2; 4389 return 0; 4390} 4391_ACEOF 4392rm -f conftest$ac_exeext 4393if { (ac_try="$ac_link" 4394case "(($ac_try" in 4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4396 *) ac_try_echo=$ac_try;; 4397esac 4398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4399 (eval "$ac_link") 2>&5 4400 ac_status=$? 4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4403 { (case "(($ac_try" in 4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4405 *) ac_try_echo=$ac_try;; 4406esac 4407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4408 (eval "$ac_try") 2>&5 4409 ac_status=$? 4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4411 (exit $ac_status); }; }; then 4412 : 4413else 4414 echo "$as_me: program exited with status $ac_status" >&5 4415echo "$as_me: failed program was:" >&5 4416sed 's/^/| /' conftest.$ac_ext >&5 4417 4418( exit $ac_status ) 4419ac_cv_header_stdc=no 4420fi 4421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4422fi 4423 4424 4425fi 4426fi 4427{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4428echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4429if test $ac_cv_header_stdc = yes; then 4430 4431cat >>confdefs.h <<\_ACEOF 4432#define STDC_HEADERS 1 4433_ACEOF 4434 4435fi 4436 4437# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4448 inttypes.h stdint.h unistd.h 4449do 4450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4451{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4454 echo $ECHO_N "(cached) $ECHO_C" >&6 4455else 4456 cat >conftest.$ac_ext <<_ACEOF 4457/* confdefs.h. */ 4458_ACEOF 4459cat confdefs.h >>conftest.$ac_ext 4460cat >>conftest.$ac_ext <<_ACEOF 4461/* end confdefs.h. */ 4462$ac_includes_default 4463 4464#include <$ac_header> 4465_ACEOF 4466rm -f conftest.$ac_objext 4467if { (ac_try="$ac_compile" 4468case "(($ac_try" in 4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4470 *) ac_try_echo=$ac_try;; 4471esac 4472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4473 (eval "$ac_compile") 2>conftest.er1 4474 ac_status=$? 4475 grep -v '^ *+' conftest.er1 >conftest.err 4476 rm -f conftest.er1 4477 cat conftest.err >&5 4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4479 (exit $ac_status); } && 4480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4481 { (case "(($ac_try" in 4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4483 *) ac_try_echo=$ac_try;; 4484esac 4485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4486 (eval "$ac_try") 2>&5 4487 ac_status=$? 4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4489 (exit $ac_status); }; } && 4490 { ac_try='test -s conftest.$ac_objext' 4491 { (case "(($ac_try" in 4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4493 *) ac_try_echo=$ac_try;; 4494esac 4495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4496 (eval "$ac_try") 2>&5 4497 ac_status=$? 4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4499 (exit $ac_status); }; }; then 4500 eval "$as_ac_Header=yes" 4501else 4502 echo "$as_me: failed program was:" >&5 4503sed 's/^/| /' conftest.$ac_ext >&5 4504 4505 eval "$as_ac_Header=no" 4506fi 4507 4508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4509fi 4510ac_res=`eval echo '${'$as_ac_Header'}'` 4511 { echo "$as_me:$LINENO: result: $ac_res" >&5 4512echo "${ECHO_T}$ac_res" >&6; } 4513if test `eval echo '${'$as_ac_Header'}'` = yes; then 4514 cat >>confdefs.h <<_ACEOF 4515#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4516_ACEOF 4517 4518fi 4519 4520done 4521 4522 4523{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4524echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4525if test "${ac_cv_c_bigendian+set}" = set; then 4526 echo $ECHO_N "(cached) $ECHO_C" >&6 4527else 4528 # See if sys/param.h defines the BYTE_ORDER macro. 4529cat >conftest.$ac_ext <<_ACEOF 4530/* confdefs.h. */ 4531_ACEOF 4532cat confdefs.h >>conftest.$ac_ext 4533cat >>conftest.$ac_ext <<_ACEOF 4534/* end confdefs.h. */ 4535#include <sys/types.h> 4536#include <sys/param.h> 4537 4538int 4539main () 4540{ 4541#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4542 bogus endian macros 4543#endif 4544 4545 ; 4546 return 0; 4547} 4548_ACEOF 4549rm -f conftest.$ac_objext 4550if { (ac_try="$ac_compile" 4551case "(($ac_try" in 4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4553 *) ac_try_echo=$ac_try;; 4554esac 4555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4556 (eval "$ac_compile") 2>conftest.er1 4557 ac_status=$? 4558 grep -v '^ *+' conftest.er1 >conftest.err 4559 rm -f conftest.er1 4560 cat conftest.err >&5 4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4562 (exit $ac_status); } && 4563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4564 { (case "(($ac_try" in 4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4566 *) ac_try_echo=$ac_try;; 4567esac 4568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4569 (eval "$ac_try") 2>&5 4570 ac_status=$? 4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4572 (exit $ac_status); }; } && 4573 { ac_try='test -s conftest.$ac_objext' 4574 { (case "(($ac_try" in 4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4576 *) ac_try_echo=$ac_try;; 4577esac 4578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4579 (eval "$ac_try") 2>&5 4580 ac_status=$? 4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4582 (exit $ac_status); }; }; then 4583 # It does; now see whether it defined to BIG_ENDIAN or not. 4584cat >conftest.$ac_ext <<_ACEOF 4585/* confdefs.h. */ 4586_ACEOF 4587cat confdefs.h >>conftest.$ac_ext 4588cat >>conftest.$ac_ext <<_ACEOF 4589/* end confdefs.h. */ 4590#include <sys/types.h> 4591#include <sys/param.h> 4592 4593int 4594main () 4595{ 4596#if BYTE_ORDER != BIG_ENDIAN 4597 not big endian 4598#endif 4599 4600 ; 4601 return 0; 4602} 4603_ACEOF 4604rm -f conftest.$ac_objext 4605if { (ac_try="$ac_compile" 4606case "(($ac_try" in 4607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4608 *) ac_try_echo=$ac_try;; 4609esac 4610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4611 (eval "$ac_compile") 2>conftest.er1 4612 ac_status=$? 4613 grep -v '^ *+' conftest.er1 >conftest.err 4614 rm -f conftest.er1 4615 cat conftest.err >&5 4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4617 (exit $ac_status); } && 4618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4619 { (case "(($ac_try" in 4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4621 *) ac_try_echo=$ac_try;; 4622esac 4623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4624 (eval "$ac_try") 2>&5 4625 ac_status=$? 4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4627 (exit $ac_status); }; } && 4628 { ac_try='test -s conftest.$ac_objext' 4629 { (case "(($ac_try" in 4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4631 *) ac_try_echo=$ac_try;; 4632esac 4633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4634 (eval "$ac_try") 2>&5 4635 ac_status=$? 4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4637 (exit $ac_status); }; }; then 4638 ac_cv_c_bigendian=yes 4639else 4640 echo "$as_me: failed program was:" >&5 4641sed 's/^/| /' conftest.$ac_ext >&5 4642 4643 ac_cv_c_bigendian=no 4644fi 4645 4646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4647else 4648 echo "$as_me: failed program was:" >&5 4649sed 's/^/| /' conftest.$ac_ext >&5 4650 4651 # It does not; compile a test program. 4652if test "$cross_compiling" = yes; then 4653 # try to guess the endianness by grepping values into an object file 4654 ac_cv_c_bigendian=unknown 4655 cat >conftest.$ac_ext <<_ACEOF 4656/* confdefs.h. */ 4657_ACEOF 4658cat confdefs.h >>conftest.$ac_ext 4659cat >>conftest.$ac_ext <<_ACEOF 4660/* end confdefs.h. */ 4661short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4662short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4663void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4664short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4665short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4666void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4667int 4668main () 4669{ 4670 _ascii (); _ebcdic (); 4671 ; 4672 return 0; 4673} 4674_ACEOF 4675rm -f conftest.$ac_objext 4676if { (ac_try="$ac_compile" 4677case "(($ac_try" in 4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4679 *) ac_try_echo=$ac_try;; 4680esac 4681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4682 (eval "$ac_compile") 2>conftest.er1 4683 ac_status=$? 4684 grep -v '^ *+' conftest.er1 >conftest.err 4685 rm -f conftest.er1 4686 cat conftest.err >&5 4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4688 (exit $ac_status); } && 4689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4690 { (case "(($ac_try" in 4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4692 *) ac_try_echo=$ac_try;; 4693esac 4694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4695 (eval "$ac_try") 2>&5 4696 ac_status=$? 4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4698 (exit $ac_status); }; } && 4699 { ac_try='test -s conftest.$ac_objext' 4700 { (case "(($ac_try" in 4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4702 *) ac_try_echo=$ac_try;; 4703esac 4704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4705 (eval "$ac_try") 2>&5 4706 ac_status=$? 4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4708 (exit $ac_status); }; }; then 4709 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4710 ac_cv_c_bigendian=yes 4711fi 4712if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4713 if test "$ac_cv_c_bigendian" = unknown; then 4714 ac_cv_c_bigendian=no 4715 else 4716 # finding both strings is unlikely to happen, but who knows? 4717 ac_cv_c_bigendian=unknown 4718 fi 4719fi 4720else 4721 echo "$as_me: failed program was:" >&5 4722sed 's/^/| /' conftest.$ac_ext >&5 4723 4724 4725fi 4726 4727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4728else 4729 cat >conftest.$ac_ext <<_ACEOF 4730/* confdefs.h. */ 4731_ACEOF 4732cat confdefs.h >>conftest.$ac_ext 4733cat >>conftest.$ac_ext <<_ACEOF 4734/* end confdefs.h. */ 4735$ac_includes_default 4736int 4737main () 4738{ 4739 4740 /* Are we little or big endian? From Harbison&Steele. */ 4741 union 4742 { 4743 long int l; 4744 char c[sizeof (long int)]; 4745 } u; 4746 u.l = 1; 4747 return u.c[sizeof (long int) - 1] == 1; 4748 4749 ; 4750 return 0; 4751} 4752_ACEOF 4753rm -f conftest$ac_exeext 4754if { (ac_try="$ac_link" 4755case "(($ac_try" in 4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4757 *) ac_try_echo=$ac_try;; 4758esac 4759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4760 (eval "$ac_link") 2>&5 4761 ac_status=$? 4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4764 { (case "(($ac_try" in 4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4766 *) ac_try_echo=$ac_try;; 4767esac 4768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4769 (eval "$ac_try") 2>&5 4770 ac_status=$? 4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4772 (exit $ac_status); }; }; then 4773 ac_cv_c_bigendian=no 4774else 4775 echo "$as_me: program exited with status $ac_status" >&5 4776echo "$as_me: failed program was:" >&5 4777sed 's/^/| /' conftest.$ac_ext >&5 4778 4779( exit $ac_status ) 4780ac_cv_c_bigendian=yes 4781fi 4782rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4783fi 4784 4785 4786fi 4787 4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4789fi 4790{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4791echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4792case $ac_cv_c_bigendian in 4793 yes) 4794 ENDIAN=big 4795 ;; 4796 no) 4797 ENDIAN=little 4798 ;; 4799 *) 4800 { { echo "$as_me:$LINENO: error: unknown endianness 4801presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4802echo "$as_me: error: unknown endianness 4803presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4804 { (exit 1); exit 1; }; } ;; 4805esac 4806 4807 4808if test "$cross_compiling" = yes; then 4809 LLVM_CROSS_COMPILING=1 4810 4811 4812{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4813echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4814if test "${ac_cv_build_exeext+set}" = set; then 4815 echo $ECHO_N "(cached) $ECHO_C" >&6 4816else 4817 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4818 ac_cv_build_exeext=.exe 4819else 4820 ac_build_prefix=${build_alias}- 4821 4822 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4823set dummy ${ac_build_prefix}gcc; ac_word=$2 4824{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4826if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4827 echo $ECHO_N "(cached) $ECHO_C" >&6 4828else 4829 if test -n "$BUILD_CC"; then 4830 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4831else 4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4833for as_dir in $PATH 4834do 4835 IFS=$as_save_IFS 4836 test -z "$as_dir" && as_dir=. 4837 for ac_exec_ext in '' $ac_executable_extensions; do 4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4839 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4841 break 2 4842 fi 4843done 4844done 4845IFS=$as_save_IFS 4846 4847fi 4848fi 4849BUILD_CC=$ac_cv_prog_BUILD_CC 4850if test -n "$BUILD_CC"; then 4851 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4852echo "${ECHO_T}$BUILD_CC" >&6; } 4853else 4854 { echo "$as_me:$LINENO: result: no" >&5 4855echo "${ECHO_T}no" >&6; } 4856fi 4857 4858 4859 if test -z "$BUILD_CC"; then 4860 # Extract the first word of "gcc", so it can be a program name with args. 4861set dummy gcc; ac_word=$2 4862{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4864if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4865 echo $ECHO_N "(cached) $ECHO_C" >&6 4866else 4867 if test -n "$BUILD_CC"; then 4868 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4869else 4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4871for as_dir in $PATH 4872do 4873 IFS=$as_save_IFS 4874 test -z "$as_dir" && as_dir=. 4875 for ac_exec_ext in '' $ac_executable_extensions; do 4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4877 ac_cv_prog_BUILD_CC="gcc" 4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4879 break 2 4880 fi 4881done 4882done 4883IFS=$as_save_IFS 4884 4885fi 4886fi 4887BUILD_CC=$ac_cv_prog_BUILD_CC 4888if test -n "$BUILD_CC"; then 4889 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4890echo "${ECHO_T}$BUILD_CC" >&6; } 4891else 4892 { echo "$as_me:$LINENO: result: no" >&5 4893echo "${ECHO_T}no" >&6; } 4894fi 4895 4896 4897 if test -z "$BUILD_CC"; then 4898 # Extract the first word of "cc", so it can be a program name with args. 4899set dummy cc; ac_word=$2 4900{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4902if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4903 echo $ECHO_N "(cached) $ECHO_C" >&6 4904else 4905 if test -n "$BUILD_CC"; then 4906 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4907else 4908 ac_prog_rejected=no 4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4910for as_dir in $PATH 4911do 4912 IFS=$as_save_IFS 4913 test -z "$as_dir" && as_dir=. 4914 for ac_exec_ext in '' $ac_executable_extensions; do 4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4917 ac_prog_rejected=yes 4918 continue 4919 fi 4920 ac_cv_prog_BUILD_CC="cc" 4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4922 break 2 4923 fi 4924done 4925done 4926IFS=$as_save_IFS 4927 4928if test $ac_prog_rejected = yes; then 4929 # We found a bogon in the path, so make sure we never use it. 4930 set dummy $ac_cv_prog_BUILD_CC 4931 shift 4932 if test $# != 0; then 4933 # We chose a different compiler from the bogus one. 4934 # However, it has the same basename, so the bogon will be chosen 4935 # first if we set BUILD_CC to just the basename; use the full file name. 4936 shift 4937 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4938 fi 4939fi 4940fi 4941fi 4942BUILD_CC=$ac_cv_prog_BUILD_CC 4943if test -n "$BUILD_CC"; then 4944 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4945echo "${ECHO_T}$BUILD_CC" >&6; } 4946else 4947 { echo "$as_me:$LINENO: result: no" >&5 4948echo "${ECHO_T}no" >&6; } 4949fi 4950 4951 4952 fi 4953 fi 4954 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4955echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4956 { (exit 1); exit 1; }; } 4957 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4958 rm -f conftest* 4959 echo 'int main () { return 0; }' > conftest.$ac_ext 4960 ac_cv_build_exeext= 4961 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4962 (eval $ac_build_link) 2>&5 4963 ac_status=$? 4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4965 (exit $ac_status); }; then 4966 for file in conftest.*; do 4967 case $file in 4968 *.c | *.o | *.obj | *.dSYM) ;; 4969 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4970 esac 4971 done 4972 else 4973 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4974echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4975 { (exit 1); exit 1; }; } 4976 fi 4977 rm -f conftest* 4978 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4979fi 4980fi 4981 4982BUILD_EXEEXT="" 4983test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4984{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4985echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4986ac_build_exeext=$BUILD_EXEEXT 4987 4988 ac_build_prefix=${build_alias}- 4989 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4990set dummy ${ac_build_prefix}g++; ac_word=$2 4991{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4993if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4994 echo $ECHO_N "(cached) $ECHO_C" >&6 4995else 4996 if test -n "$BUILD_CXX"; then 4997 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4998else 4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5000for as_dir in $PATH 5001do 5002 IFS=$as_save_IFS 5003 test -z "$as_dir" && as_dir=. 5004 for ac_exec_ext in '' $ac_executable_extensions; do 5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5006 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5008 break 2 5009 fi 5010done 5011done 5012IFS=$as_save_IFS 5013 5014fi 5015fi 5016BUILD_CXX=$ac_cv_prog_BUILD_CXX 5017if test -n "$BUILD_CXX"; then 5018 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5019echo "${ECHO_T}$BUILD_CXX" >&6; } 5020else 5021 { echo "$as_me:$LINENO: result: no" >&5 5022echo "${ECHO_T}no" >&6; } 5023fi 5024 5025 5026 if test -z "$BUILD_CXX"; then 5027 # Extract the first word of "g++", so it can be a program name with args. 5028set dummy g++; ac_word=$2 5029{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5031if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 5032 echo $ECHO_N "(cached) $ECHO_C" >&6 5033else 5034 if test -n "$BUILD_CXX"; then 5035 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5036else 5037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5038for as_dir in $PATH 5039do 5040 IFS=$as_save_IFS 5041 test -z "$as_dir" && as_dir=. 5042 for ac_exec_ext in '' $ac_executable_extensions; do 5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5044 ac_cv_prog_BUILD_CXX="g++" 5045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5046 break 2 5047 fi 5048done 5049done 5050IFS=$as_save_IFS 5051 5052fi 5053fi 5054BUILD_CXX=$ac_cv_prog_BUILD_CXX 5055if test -n "$BUILD_CXX"; then 5056 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5057echo "${ECHO_T}$BUILD_CXX" >&6; } 5058else 5059 { echo "$as_me:$LINENO: result: no" >&5 5060echo "${ECHO_T}no" >&6; } 5061fi 5062 5063 5064 if test -z "$BUILD_CXX"; then 5065 # Extract the first word of "c++", so it can be a program name with args. 5066set dummy c++; ac_word=$2 5067{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5069if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 5070 echo $ECHO_N "(cached) $ECHO_C" >&6 5071else 5072 if test -n "$BUILD_CXX"; then 5073 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5074else 5075 ac_prog_rejected=no 5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5077for as_dir in $PATH 5078do 5079 IFS=$as_save_IFS 5080 test -z "$as_dir" && as_dir=. 5081 for ac_exec_ext in '' $ac_executable_extensions; do 5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 5084 ac_prog_rejected=yes 5085 continue 5086 fi 5087 ac_cv_prog_BUILD_CXX="c++" 5088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5089 break 2 5090 fi 5091done 5092done 5093IFS=$as_save_IFS 5094 5095if test $ac_prog_rejected = yes; then 5096 # We found a bogon in the path, so make sure we never use it. 5097 set dummy $ac_cv_prog_BUILD_CXX 5098 shift 5099 if test $# != 0; then 5100 # We chose a different compiler from the bogus one. 5101 # However, it has the same basename, so the bogon will be chosen 5102 # first if we set BUILD_CXX to just the basename; use the full file name. 5103 shift 5104 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 5105 fi 5106fi 5107fi 5108fi 5109BUILD_CXX=$ac_cv_prog_BUILD_CXX 5110if test -n "$BUILD_CXX"; then 5111 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5112echo "${ECHO_T}$BUILD_CXX" >&6; } 5113else 5114 { echo "$as_me:$LINENO: result: no" >&5 5115echo "${ECHO_T}no" >&6; } 5116fi 5117 5118 5119 fi 5120 fi 5121else 5122 LLVM_CROSS_COMPILING=0 5123 5124fi 5125 5126if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 5127 cvsbuild="yes" 5128 optimize="no" 5129 CVSBUILD=CVSBUILD=1 5130 5131else 5132 cvsbuild="no" 5133 optimize="yes" 5134fi 5135 5136 5137# Check whether --enable-libcpp was given. 5138if test "${enable_libcpp+set}" = set; then 5139 enableval=$enable_libcpp; 5140else 5141 enableval=default 5142fi 5143 5144case "$enableval" in 5145 yes) ENABLE_LIBCPP=1 5146 ;; 5147 no) ENABLE_LIBCPP=0 5148 ;; 5149 default) ENABLE_LIBCPP=0 5150;; 5151 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 5152echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 5153 { (exit 1); exit 1; }; } ;; 5154esac 5155 5156# Check whether --enable-cxx11 was given. 5157if test "${enable_cxx11+set}" = set; then 5158 enableval=$enable_cxx11; 5159else 5160 enableval=default 5161fi 5162 5163case "$enableval" in 5164 yes) ENABLE_CXX11=1 5165 ;; 5166 no) ENABLE_CXX11=0 5167 ;; 5168 default) ENABLE_CXX11=0 5169;; 5170 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5 5171echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;} 5172 { (exit 1); exit 1; }; } ;; 5173esac 5174 5175# Check whether --enable-split-dwarf was given. 5176if test "${enable_split_dwarf+set}" = set; then 5177 enableval=$enable_split_dwarf; 5178else 5179 enableval=default 5180fi 5181 5182case "$enableval" in 5183 yes) ENABLE_SPLIT_DWARF=1 5184 ;; 5185 no) ENABLE_SPLIT_DWARF=0 5186 ;; 5187 default) ENABLE_SPLIT_DWARF=0 5188;; 5189 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5 5190echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;} 5191 { (exit 1); exit 1; }; } ;; 5192esac 5193 5194clang_arcmt="yes" 5195# Check whether --enable-clang-arcmt was given. 5196if test "${enable_clang_arcmt+set}" = set; then 5197 enableval=$enable_clang_arcmt; clang_arcmt="$enableval" 5198else 5199 enableval="yes" 5200fi 5201 5202case "$enableval" in 5203 yes) ENABLE_CLANG_ARCMT=1 5204 ;; 5205 no) ENABLE_CLANG_ARCMT=0 5206 ;; 5207 default) ENABLE_CLANG_ARCMT=1 5208;; 5209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5 5210echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;} 5211 { (exit 1); exit 1; }; } ;; 5212esac 5213 5214clang_static_analyzer="yes" 5215# Check whether --enable-clang-static-analyzer was given. 5216if test "${enable_clang_static_analyzer+set}" = set; then 5217 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" 5218else 5219 enableval="yes" 5220fi 5221 5222case "$enableval" in 5223 yes) ENABLE_CLANG_STATIC_ANALYZER=1 5224 ;; 5225 no) ENABLE_CLANG_STATIC_ANALYZER=0 5226 ;; 5227 default) ENABLE_CLANG_STATIC_ANALYZER=1 5228;; 5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5 5230echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;} 5231 { (exit 1); exit 1; }; } ;; 5232esac 5233 5234# Check whether --enable-clang-rewriter was given. 5235if test "${enable_clang_rewriter+set}" = set; then 5236 enableval=$enable_clang_rewriter; 5237else 5238 enableval="yes" 5239fi 5240 5241case "$enableval" in 5242 yes) ENABLE_CLANG_REWRITER=1 5243 ;; 5244 no) 5245 if test ${clang_arcmt} != "no" ; then 5246 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5 5247echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;} 5248 { (exit 1); exit 1; }; } 5249 fi 5250 if test ${clang_static_analyzer} != "no" ; then 5251 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5 5252echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;} 5253 { (exit 1); exit 1; }; } 5254 fi 5255 ENABLE_CLANG_REWRITER=0 5256 5257 ;; 5258 default) ENABLE_CLANG_REWRITER=1 5259;; 5260 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5 5261echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;} 5262 { (exit 1); exit 1; }; } ;; 5263esac 5264 5265# Check whether --enable-optimized was given. 5266if test "${enable_optimized+set}" = set; then 5267 enableval=$enable_optimized; 5268else 5269 enableval=$optimize 5270fi 5271 5272if test ${enableval} = "no" ; then 5273 ENABLE_OPTIMIZED= 5274 5275else 5276 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 5277 5278fi 5279 5280# Check whether --enable-profiling was given. 5281if test "${enable_profiling+set}" = set; then 5282 enableval=$enable_profiling; 5283else 5284 enableval="no" 5285fi 5286 5287if test ${enableval} = "no" ; then 5288 ENABLE_PROFILING= 5289 5290else 5291 ENABLE_PROFILING=ENABLE_PROFILING=1 5292 5293fi 5294 5295# Check whether --enable-assertions was given. 5296if test "${enable_assertions+set}" = set; then 5297 enableval=$enable_assertions; 5298else 5299 enableval="yes" 5300fi 5301 5302if test ${enableval} = "yes" ; then 5303 DISABLE_ASSERTIONS= 5304 5305else 5306 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5307 5308fi 5309 5310# Check whether --enable-werror was given. 5311if test "${enable_werror+set}" = set; then 5312 enableval=$enable_werror; 5313else 5314 enableval="no" 5315fi 5316 5317case "$enableval" in 5318 yes) ENABLE_WERROR=1 5319 ;; 5320 no) ENABLE_WERROR=0 5321 ;; 5322 default) ENABLE_WERROR=0 5323;; 5324 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 5325echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} 5326 { (exit 1); exit 1; }; } ;; 5327esac 5328 5329# Check whether --enable-expensive-checks was given. 5330if test "${enable_expensive_checks+set}" = set; then 5331 enableval=$enable_expensive_checks; 5332else 5333 enableval="no" 5334fi 5335 5336if test ${enableval} = "yes" ; then 5337 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5338 5339 EXPENSIVE_CHECKS=yes 5340 5341else 5342 ENABLE_EXPENSIVE_CHECKS= 5343 5344 EXPENSIVE_CHECKS=no 5345 5346fi 5347 5348# Check whether --enable-debug-runtime was given. 5349if test "${enable_debug_runtime+set}" = set; then 5350 enableval=$enable_debug_runtime; 5351else 5352 enableval=no 5353fi 5354 5355if test ${enableval} = "no" ; then 5356 DEBUG_RUNTIME= 5357 5358else 5359 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5360 5361fi 5362 5363# Check whether --enable-debug-symbols was given. 5364if test "${enable_debug_symbols+set}" = set; then 5365 enableval=$enable_debug_symbols; 5366else 5367 enableval=no 5368fi 5369 5370if test ${enableval} = "no" ; then 5371 DEBUG_SYMBOLS= 5372 5373else 5374 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5375 5376fi 5377 5378# Check whether --enable-keep-symbols was given. 5379if test "${enable_keep_symbols+set}" = set; then 5380 enableval=$enable_keep_symbols; 5381else 5382 enableval=no 5383fi 5384 5385if test ${enableval} = "no" ; then 5386 KEEP_SYMBOLS= 5387 5388else 5389 KEEP_SYMBOLS=KEEP_SYMBOLS=1 5390 5391fi 5392 5393# Check whether --enable-jit was given. 5394if test "${enable_jit+set}" = set; then 5395 enableval=$enable_jit; 5396else 5397 enableval=default 5398fi 5399 5400if test ${enableval} = "no" 5401then 5402 JIT= 5403 5404else 5405 case "$llvm_cv_target_arch" in 5406 x86) TARGET_HAS_JIT=1 5407 ;; 5408 Sparc) TARGET_HAS_JIT=0 5409 ;; 5410 PowerPC) TARGET_HAS_JIT=1 5411 ;; 5412 x86_64) TARGET_HAS_JIT=1 5413 ;; 5414 ARM) TARGET_HAS_JIT=1 5415 ;; 5416 AArch64) TARGET_HAS_JIT=0 5417 ;; 5418 Mips) TARGET_HAS_JIT=1 5419 ;; 5420 XCore) TARGET_HAS_JIT=0 5421 ;; 5422 MSP430) TARGET_HAS_JIT=0 5423 ;; 5424 Hexagon) TARGET_HAS_JIT=0 5425 ;; 5426 NVPTX) TARGET_HAS_JIT=0 5427 ;; 5428 SystemZ) TARGET_HAS_JIT=1 5429 ;; 5430 *) TARGET_HAS_JIT=0 5431 ;; 5432 esac 5433fi 5434 5435# Check whether --enable-docs was given. 5436if test "${enable_docs+set}" = set; then 5437 enableval=$enable_docs; 5438else 5439 enableval=default 5440fi 5441 5442case "$enableval" in 5443 yes) ENABLE_DOCS=1 5444 ;; 5445 no) ENABLE_DOCS=0 5446 ;; 5447 default) ENABLE_DOCS=1 5448 ;; 5449 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5450echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5451 { (exit 1); exit 1; }; } ;; 5452esac 5453 5454# Check whether --enable-doxygen was given. 5455if test "${enable_doxygen+set}" = set; then 5456 enableval=$enable_doxygen; 5457else 5458 enableval=default 5459fi 5460 5461case "$enableval" in 5462 yes) ENABLE_DOXYGEN=1 5463 ;; 5464 no) ENABLE_DOXYGEN=0 5465 ;; 5466 default) ENABLE_DOXYGEN=0 5467 ;; 5468 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5469echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5470 { (exit 1); exit 1; }; } ;; 5471esac 5472 5473# Check whether --enable-threads was given. 5474if test "${enable_threads+set}" = set; then 5475 enableval=$enable_threads; 5476else 5477 enableval=default 5478fi 5479 5480case "$enableval" in 5481 yes) LLVM_ENABLE_THREADS=1 5482 ;; 5483 no) LLVM_ENABLE_THREADS=0 5484 ;; 5485 default) LLVM_ENABLE_THREADS=1 5486 ;; 5487 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5488echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5489 { (exit 1); exit 1; }; } ;; 5490esac 5491 5492cat >>confdefs.h <<_ACEOF 5493#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5494_ACEOF 5495 5496 5497# Check whether --enable-pthreads was given. 5498if test "${enable_pthreads+set}" = set; then 5499 enableval=$enable_pthreads; 5500else 5501 enableval=default 5502fi 5503 5504case "$enableval" in 5505 yes) ENABLE_PTHREADS=1 5506 ;; 5507 no) ENABLE_PTHREADS=0 5508 ;; 5509 default) ENABLE_PTHREADS=1 5510 ;; 5511 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5512echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5513 { (exit 1); exit 1; }; } ;; 5514esac 5515 5516# Check whether --enable-zlib was given. 5517if test "${enable_zlib+set}" = set; then 5518 enableval=$enable_zlib; 5519else 5520 enableval=default 5521fi 5522 5523case "$enableval" in 5524 yes) LLVM_ENABLE_ZLIB=1 5525 ;; 5526 no) LLVM_ENABLE_ZLIB=0 5527 ;; 5528 default) LLVM_ENABLE_ZLIB=1 5529 ;; 5530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5 5531echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;} 5532 { (exit 1); exit 1; }; } ;; 5533esac 5534 5535cat >>confdefs.h <<_ACEOF 5536#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB 5537_ACEOF 5538 5539 5540# Check whether --enable-pic was given. 5541if test "${enable_pic+set}" = set; then 5542 enableval=$enable_pic; 5543else 5544 enableval=default 5545fi 5546 5547case "$enableval" in 5548 yes) ENABLE_PIC=1 5549 ;; 5550 no) ENABLE_PIC=0 5551 ;; 5552 default) ENABLE_PIC=1 5553 ;; 5554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5555echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5556 { (exit 1); exit 1; }; } ;; 5557esac 5558 5559cat >>confdefs.h <<_ACEOF 5560#define ENABLE_PIC $ENABLE_PIC 5561_ACEOF 5562 5563 5564# Check whether --enable-shared was given. 5565if test "${enable_shared+set}" = set; then 5566 enableval=$enable_shared; 5567else 5568 enableval=default 5569fi 5570 5571case "$enableval" in 5572 yes) ENABLE_SHARED=1 5573 ;; 5574 no) ENABLE_SHARED=0 5575 ;; 5576 default) ENABLE_SHARED=0 5577 ;; 5578 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5579echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5580 { (exit 1); exit 1; }; } ;; 5581esac 5582 5583# Check whether --enable-embed-stdcxx was given. 5584if test "${enable_embed_stdcxx+set}" = set; then 5585 enableval=$enable_embed_stdcxx; 5586else 5587 enableval=default 5588fi 5589 5590case "$enableval" in 5591 yes) ENABLE_EMBED_STDCXX=1 5592 ;; 5593 no) ENABLE_EMBED_STDCXX=0 5594 ;; 5595 default) ENABLE_EMBED_STDCXX=0 5596 ;; 5597 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5598echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5599 { (exit 1); exit 1; }; } ;; 5600esac 5601 5602# Check whether --enable-timestamps was given. 5603if test "${enable_timestamps+set}" = set; then 5604 enableval=$enable_timestamps; 5605else 5606 enableval=default 5607fi 5608 5609case "$enableval" in 5610 yes) ENABLE_TIMESTAMPS=1 5611 ;; 5612 no) ENABLE_TIMESTAMPS=0 5613 ;; 5614 default) ENABLE_TIMESTAMPS=1 5615 ;; 5616 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5617echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5618 { (exit 1); exit 1; }; } ;; 5619esac 5620 5621cat >>confdefs.h <<_ACEOF 5622#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5623_ACEOF 5624 5625 5626 5627# Check whether --enable-backtraces was given. 5628if test "${enable_backtraces+set}" = set; then 5629 enableval=$enable_backtraces; 5630else 5631 enableval=default 5632fi 5633 5634case "$enableval" in 5635 yes) ENABLE_BACKTRACES=1 5636 ;; 5637 no) ENABLE_BACKTRACES=0 5638 ;; 5639 default) ENABLE_BACKTRACES=1 5640 ;; 5641 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5 5642echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;} 5643 { (exit 1); exit 1; }; } ;; 5644esac 5645 5646cat >>confdefs.h <<_ACEOF 5647#define ENABLE_BACKTRACES $ENABLE_BACKTRACES 5648_ACEOF 5649 5650 5651TARGETS_TO_BUILD="" 5652# Check whether --enable-targets was given. 5653if test "${enable_targets+set}" = set; then 5654 enableval=$enable_targets; 5655else 5656 enableval=all 5657fi 5658 5659if test "$enableval" = host-only ; then 5660 enableval=host 5661fi 5662case "$enableval" in 5663 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;; 5664 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5665 case "$a_target" in 5666 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5667 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5668 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5669 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5670 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5671 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5672 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5673 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5674 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5675 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5676 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5677 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5678 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5679 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5680 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5681 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5682 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;; 5683 host) case "$llvm_cv_target_arch" in 5684 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5685 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5686 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5687 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5688 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5689 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5690 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5691 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5692 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5693 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5694 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5695 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5696 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5697echo "$as_me: error: Can not set target to build" >&2;} 5698 { (exit 1); exit 1; }; } ;; 5699 esac ;; 5700 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5701echo "$as_me: error: Unrecognized target $a_target" >&2;} 5702 { (exit 1); exit 1; }; } ;; 5703 esac 5704 done 5705 ;; 5706esac 5707 5708# Check whether --enable-experimental-targets was given. 5709if test "${enable_experimental_targets+set}" = set; then 5710 enableval=$enable_experimental_targets; 5711else 5712 enableval=disable 5713fi 5714 5715 5716if test ${enableval} != "disable" 5717then 5718 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" 5719fi 5720 5721TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5722 5723 5724for a_target in $TARGETS_TO_BUILD; do 5725 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5726 5727cat >>confdefs.h <<_ACEOF 5728#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5729_ACEOF 5730 5731 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5732 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5733 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5734 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5735 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5736 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5737 fi 5738 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5739 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5740 fi 5741 5742cat >>confdefs.h <<_ACEOF 5743#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5744_ACEOF 5745 5746 5747cat >>confdefs.h <<_ACEOF 5748#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5749_ACEOF 5750 5751 5752cat >>confdefs.h <<_ACEOF 5753#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5754_ACEOF 5755 5756 5757cat >>confdefs.h <<_ACEOF 5758#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5759_ACEOF 5760 5761 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5762 5763cat >>confdefs.h <<_ACEOF 5764#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5765_ACEOF 5766 5767 fi 5768 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5769 5770cat >>confdefs.h <<_ACEOF 5771#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5772_ACEOF 5773 5774 fi 5775 fi 5776done 5777 5778LLVM_ENUM_TARGETS="" 5779LLVM_ENUM_ASM_PRINTERS="" 5780LLVM_ENUM_ASM_PARSERS="" 5781LLVM_ENUM_DISASSEMBLERS="" 5782for target_to_build in $TARGETS_TO_BUILD; do 5783 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5784 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5785 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5786 fi 5787 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5788 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5789 fi 5790 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5791 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5792 fi 5793done 5794 5795 5796 5797 5798 5799 5800# Check whether --with-optimize-option was given. 5801if test "${with_optimize_option+set}" = set; then 5802 withval=$with_optimize_option; 5803else 5804 withval=default 5805fi 5806 5807{ echo "$as_me:$LINENO: checking optimization flags" >&5 5808echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5809case "$withval" in 5810 default) 5811 case "$llvm_cv_os_type" in 5812 FreeBSD) optimize_option=-O2 ;; 5813 MingW) optimize_option=-O2 ;; 5814 *) optimize_option=-O3 ;; 5815 esac ;; 5816 *) optimize_option="$withval" ;; 5817esac 5818OPTIMIZE_OPTION=$optimize_option 5819 5820{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5821echo "${ECHO_T}$optimize_option" >&6; } 5822 5823 5824# Check whether --with-extra-options was given. 5825if test "${with_extra_options+set}" = set; then 5826 withval=$with_extra_options; 5827else 5828 withval=default 5829fi 5830 5831case "$withval" in 5832 default) EXTRA_OPTIONS= ;; 5833 *) EXTRA_OPTIONS=$withval ;; 5834esac 5835EXTRA_OPTIONS=$EXTRA_OPTIONS 5836 5837 5838 5839# Check whether --with-extra-ld-options was given. 5840if test "${with_extra_ld_options+set}" = set; then 5841 withval=$with_extra_ld_options; 5842else 5843 withval=default 5844fi 5845 5846case "$withval" in 5847 default) EXTRA_LD_OPTIONS= ;; 5848 *) EXTRA_LD_OPTIONS=$withval ;; 5849esac 5850EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5851 5852 5853# Check whether --enable-bindings was given. 5854if test "${enable_bindings+set}" = set; then 5855 enableval=$enable_bindings; 5856else 5857 enableval=default 5858fi 5859 5860BINDINGS_TO_BUILD="" 5861case "$enableval" in 5862 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5863 all ) BINDINGS_TO_BUILD="ocaml" ;; 5864 none | no) BINDINGS_TO_BUILD="" ;; 5865 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5866 case "$a_binding" in 5867 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5868 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5869echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5870 { (exit 1); exit 1; }; } ;; 5871 esac 5872 done 5873 ;; 5874esac 5875 5876 5877# Check whether --with-ocaml-libdir was given. 5878if test "${with_ocaml_libdir+set}" = set; then 5879 withval=$with_ocaml_libdir; 5880else 5881 withval=auto 5882fi 5883 5884case "$withval" in 5885 auto) with_ocaml_libdir="$withval" ;; 5886 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5887 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5888echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5889 { (exit 1); exit 1; }; } ;; 5890esac 5891 5892 5893# Check whether --with-clang-srcdir was given. 5894if test "${with_clang_srcdir+set}" = set; then 5895 withval=$with_clang_srcdir; 5896else 5897 withval="-" 5898fi 5899 5900case "$withval" in 5901 -) clang_src_root="" ;; 5902 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5903 *) clang_src_root="$ac_pwd/$withval" ;; 5904esac 5905CLANG_SRC_ROOT=$clang_src_root 5906 5907 5908 5909# Check whether --with-clang-resource-dir was given. 5910if test "${with_clang_resource_dir+set}" = set; then 5911 withval=$with_clang_resource_dir; 5912else 5913 withval="" 5914fi 5915 5916 5917cat >>confdefs.h <<_ACEOF 5918#define CLANG_RESOURCE_DIR "$withval" 5919_ACEOF 5920 5921 5922 5923# Check whether --with-c-include-dirs was given. 5924if test "${with_c_include_dirs+set}" = set; then 5925 withval=$with_c_include_dirs; 5926else 5927 withval="" 5928fi 5929 5930 5931cat >>confdefs.h <<_ACEOF 5932#define C_INCLUDE_DIRS "$withval" 5933_ACEOF 5934 5935 5936# Clang normally uses the system c++ headers and libraries. With this option, 5937# clang will use the ones provided by a gcc installation instead. This option should 5938# be passed the same value that was used with --prefix when configuring gcc. 5939 5940# Check whether --with-gcc-toolchain was given. 5941if test "${with_gcc_toolchain+set}" = set; then 5942 withval=$with_gcc_toolchain; 5943else 5944 withval="" 5945fi 5946 5947 5948cat >>confdefs.h <<_ACEOF 5949#define GCC_INSTALL_PREFIX "$withval" 5950_ACEOF 5951 5952 5953 5954# Check whether --with-default-sysroot was given. 5955if test "${with_default_sysroot+set}" = set; then 5956 withval=$with_default_sysroot; 5957else 5958 withval="" 5959fi 5960 5961 5962cat >>confdefs.h <<_ACEOF 5963#define DEFAULT_SYSROOT "$withval" 5964_ACEOF 5965 5966 5967 5968# Check whether --with-binutils-include was given. 5969if test "${with_binutils_include+set}" = set; then 5970 withval=$with_binutils_include; 5971else 5972 withval=default 5973fi 5974 5975case "$withval" in 5976 default) WITH_BINUTILS_INCDIR=default ;; 5977 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5978 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5979echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5980 { (exit 1); exit 1; }; } ;; 5981esac 5982if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5983 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5984 5985 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5986 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5987 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5988echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5989 { (exit 1); exit 1; }; }; 5990 fi 5991fi 5992 5993 5994# Check whether --with-bug-report-url was given. 5995if test "${with_bug_report_url+set}" = set; then 5996 withval=$with_bug_report_url; 5997else 5998 withval="http://llvm.org/bugs/" 5999fi 6000 6001 6002cat >>confdefs.h <<_ACEOF 6003#define BUG_REPORT_URL "$withval" 6004_ACEOF 6005 6006 6007# Check whether --enable-libffi was given. 6008if test "${enable_libffi+set}" = set; then 6009 enableval=$enable_libffi; case "$enableval" in 6010 yes) llvm_cv_enable_libffi="yes" ;; 6011 no) llvm_cv_enable_libffi="no" ;; 6012 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 6013echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 6014 { (exit 1); exit 1; }; } ;; 6015 esac 6016else 6017 llvm_cv_enable_libffi=no 6018fi 6019 6020 6021 6022# Check whether --with-internal-prefix was given. 6023if test "${with_internal_prefix+set}" = set; then 6024 withval=$with_internal_prefix; 6025else 6026 withval="" 6027fi 6028 6029INTERNAL_PREFIX=$withval 6030 6031 6032 6033{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6034echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 6035if test "${lt_cv_path_NM+set}" = set; then 6036 echo $ECHO_N "(cached) $ECHO_C" >&6 6037else 6038 if test -n "$NM"; then 6039 # Let the user override the test. 6040 lt_cv_path_NM="$NM" 6041else 6042 lt_nm_to_check="${ac_tool_prefix}nm" 6043 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6044 lt_nm_to_check="$lt_nm_to_check nm" 6045 fi 6046 for lt_tmp_nm in $lt_nm_to_check; do 6047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6048 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6049 IFS="$lt_save_ifs" 6050 test -z "$ac_dir" && ac_dir=. 6051 tmp_nm="$ac_dir/$lt_tmp_nm" 6052 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6053 # Check to see if the nm accepts a BSD-compat flag. 6054 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6055 # nm: unknown option "B" ignored 6056 # Tru64's nm complains that /dev/null is an invalid object file 6057 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6058 */dev/null* | *'Invalid file or object type'*) 6059 lt_cv_path_NM="$tmp_nm -B" 6060 break 6061 ;; 6062 *) 6063 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6064 */dev/null*) 6065 lt_cv_path_NM="$tmp_nm -p" 6066 break 6067 ;; 6068 *) 6069 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6070 continue # so that we can try to find one that supports BSD flags 6071 ;; 6072 esac 6073 ;; 6074 esac 6075 fi 6076 done 6077 IFS="$lt_save_ifs" 6078 done 6079 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6080fi 6081fi 6082{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6083echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6084NM="$lt_cv_path_NM" 6085 6086 6087 6088{ echo "$as_me:$LINENO: checking for GNU make" >&5 6089echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6090if test "${llvm_cv_gnu_make_command+set}" = set; then 6091 echo $ECHO_N "(cached) $ECHO_C" >&6 6092else 6093 llvm_cv_gnu_make_command='' 6094 for a in "$MAKE" make gmake gnumake ; do 6095 if test -z "$a" ; then continue ; fi ; 6096 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6097 then 6098 llvm_cv_gnu_make_command=$a ; 6099 break; 6100 fi 6101 done 6102fi 6103{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6104echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6105 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6106 ifGNUmake='' ; 6107 else 6108 ifGNUmake='#' ; 6109 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6110echo "${ECHO_T}\"Not found\"" >&6; }; 6111 fi 6112 6113 6114{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6115echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6116LN_S=$as_ln_s 6117if test "$LN_S" = "ln -s"; then 6118 { echo "$as_me:$LINENO: result: yes" >&5 6119echo "${ECHO_T}yes" >&6; } 6120else 6121 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6122echo "${ECHO_T}no, using $LN_S" >&6; } 6123fi 6124 6125# Extract the first word of "cmp", so it can be a program name with args. 6126set dummy cmp; ac_word=$2 6127{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6129if test "${ac_cv_path_CMP+set}" = set; then 6130 echo $ECHO_N "(cached) $ECHO_C" >&6 6131else 6132 case $CMP in 6133 [\\/]* | ?:[\\/]*) 6134 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6135 ;; 6136 *) 6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6138for as_dir in $PATH 6139do 6140 IFS=$as_save_IFS 6141 test -z "$as_dir" && as_dir=. 6142 for ac_exec_ext in '' $ac_executable_extensions; do 6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6144 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6146 break 2 6147 fi 6148done 6149done 6150IFS=$as_save_IFS 6151 6152 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6153 ;; 6154esac 6155fi 6156CMP=$ac_cv_path_CMP 6157if test -n "$CMP"; then 6158 { echo "$as_me:$LINENO: result: $CMP" >&5 6159echo "${ECHO_T}$CMP" >&6; } 6160else 6161 { echo "$as_me:$LINENO: result: no" >&5 6162echo "${ECHO_T}no" >&6; } 6163fi 6164 6165 6166# Extract the first word of "cp", so it can be a program name with args. 6167set dummy cp; ac_word=$2 6168{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6170if test "${ac_cv_path_CP+set}" = set; then 6171 echo $ECHO_N "(cached) $ECHO_C" >&6 6172else 6173 case $CP in 6174 [\\/]* | ?:[\\/]*) 6175 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6176 ;; 6177 *) 6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6179for as_dir in $PATH 6180do 6181 IFS=$as_save_IFS 6182 test -z "$as_dir" && as_dir=. 6183 for ac_exec_ext in '' $ac_executable_extensions; do 6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6185 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6187 break 2 6188 fi 6189done 6190done 6191IFS=$as_save_IFS 6192 6193 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6194 ;; 6195esac 6196fi 6197CP=$ac_cv_path_CP 6198if test -n "$CP"; then 6199 { echo "$as_me:$LINENO: result: $CP" >&5 6200echo "${ECHO_T}$CP" >&6; } 6201else 6202 { echo "$as_me:$LINENO: result: no" >&5 6203echo "${ECHO_T}no" >&6; } 6204fi 6205 6206 6207# Extract the first word of "date", so it can be a program name with args. 6208set dummy date; ac_word=$2 6209{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6211if test "${ac_cv_path_DATE+set}" = set; then 6212 echo $ECHO_N "(cached) $ECHO_C" >&6 6213else 6214 case $DATE in 6215 [\\/]* | ?:[\\/]*) 6216 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6217 ;; 6218 *) 6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6220for as_dir in $PATH 6221do 6222 IFS=$as_save_IFS 6223 test -z "$as_dir" && as_dir=. 6224 for ac_exec_ext in '' $ac_executable_extensions; do 6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6226 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6228 break 2 6229 fi 6230done 6231done 6232IFS=$as_save_IFS 6233 6234 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6235 ;; 6236esac 6237fi 6238DATE=$ac_cv_path_DATE 6239if test -n "$DATE"; then 6240 { echo "$as_me:$LINENO: result: $DATE" >&5 6241echo "${ECHO_T}$DATE" >&6; } 6242else 6243 { echo "$as_me:$LINENO: result: no" >&5 6244echo "${ECHO_T}no" >&6; } 6245fi 6246 6247 6248# Extract the first word of "find", so it can be a program name with args. 6249set dummy find; ac_word=$2 6250{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6252if test "${ac_cv_path_FIND+set}" = set; then 6253 echo $ECHO_N "(cached) $ECHO_C" >&6 6254else 6255 case $FIND in 6256 [\\/]* | ?:[\\/]*) 6257 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6258 ;; 6259 *) 6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6261for as_dir in $PATH 6262do 6263 IFS=$as_save_IFS 6264 test -z "$as_dir" && as_dir=. 6265 for ac_exec_ext in '' $ac_executable_extensions; do 6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6267 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6269 break 2 6270 fi 6271done 6272done 6273IFS=$as_save_IFS 6274 6275 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6276 ;; 6277esac 6278fi 6279FIND=$ac_cv_path_FIND 6280if test -n "$FIND"; then 6281 { echo "$as_me:$LINENO: result: $FIND" >&5 6282echo "${ECHO_T}$FIND" >&6; } 6283else 6284 { echo "$as_me:$LINENO: result: no" >&5 6285echo "${ECHO_T}no" >&6; } 6286fi 6287 6288 6289# Extract the first word of "grep", so it can be a program name with args. 6290set dummy grep; ac_word=$2 6291{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6293if test "${ac_cv_path_GREP+set}" = set; then 6294 echo $ECHO_N "(cached) $ECHO_C" >&6 6295else 6296 case $GREP in 6297 [\\/]* | ?:[\\/]*) 6298 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6299 ;; 6300 *) 6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6302for as_dir in $PATH 6303do 6304 IFS=$as_save_IFS 6305 test -z "$as_dir" && as_dir=. 6306 for ac_exec_ext in '' $ac_executable_extensions; do 6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6308 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6310 break 2 6311 fi 6312done 6313done 6314IFS=$as_save_IFS 6315 6316 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6317 ;; 6318esac 6319fi 6320GREP=$ac_cv_path_GREP 6321if test -n "$GREP"; then 6322 { echo "$as_me:$LINENO: result: $GREP" >&5 6323echo "${ECHO_T}$GREP" >&6; } 6324else 6325 { echo "$as_me:$LINENO: result: no" >&5 6326echo "${ECHO_T}no" >&6; } 6327fi 6328 6329 6330# Extract the first word of "mkdir", so it can be a program name with args. 6331set dummy mkdir; ac_word=$2 6332{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6334if test "${ac_cv_path_MKDIR+set}" = set; then 6335 echo $ECHO_N "(cached) $ECHO_C" >&6 6336else 6337 case $MKDIR in 6338 [\\/]* | ?:[\\/]*) 6339 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6340 ;; 6341 *) 6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6343for as_dir in $PATH 6344do 6345 IFS=$as_save_IFS 6346 test -z "$as_dir" && as_dir=. 6347 for ac_exec_ext in '' $ac_executable_extensions; do 6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6349 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6351 break 2 6352 fi 6353done 6354done 6355IFS=$as_save_IFS 6356 6357 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6358 ;; 6359esac 6360fi 6361MKDIR=$ac_cv_path_MKDIR 6362if test -n "$MKDIR"; then 6363 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6364echo "${ECHO_T}$MKDIR" >&6; } 6365else 6366 { echo "$as_me:$LINENO: result: no" >&5 6367echo "${ECHO_T}no" >&6; } 6368fi 6369 6370 6371# Extract the first word of "mv", so it can be a program name with args. 6372set dummy mv; ac_word=$2 6373{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6375if test "${ac_cv_path_MV+set}" = set; then 6376 echo $ECHO_N "(cached) $ECHO_C" >&6 6377else 6378 case $MV in 6379 [\\/]* | ?:[\\/]*) 6380 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6381 ;; 6382 *) 6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6384for as_dir in $PATH 6385do 6386 IFS=$as_save_IFS 6387 test -z "$as_dir" && as_dir=. 6388 for ac_exec_ext in '' $ac_executable_extensions; do 6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6390 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6392 break 2 6393 fi 6394done 6395done 6396IFS=$as_save_IFS 6397 6398 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6399 ;; 6400esac 6401fi 6402MV=$ac_cv_path_MV 6403if test -n "$MV"; then 6404 { echo "$as_me:$LINENO: result: $MV" >&5 6405echo "${ECHO_T}$MV" >&6; } 6406else 6407 { echo "$as_me:$LINENO: result: no" >&5 6408echo "${ECHO_T}no" >&6; } 6409fi 6410 6411 6412if test -n "$ac_tool_prefix"; then 6413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6414set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6415{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6417if test "${ac_cv_prog_RANLIB+set}" = set; then 6418 echo $ECHO_N "(cached) $ECHO_C" >&6 6419else 6420 if test -n "$RANLIB"; then 6421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6422else 6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6424for as_dir in $PATH 6425do 6426 IFS=$as_save_IFS 6427 test -z "$as_dir" && as_dir=. 6428 for ac_exec_ext in '' $ac_executable_extensions; do 6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6432 break 2 6433 fi 6434done 6435done 6436IFS=$as_save_IFS 6437 6438fi 6439fi 6440RANLIB=$ac_cv_prog_RANLIB 6441if test -n "$RANLIB"; then 6442 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6443echo "${ECHO_T}$RANLIB" >&6; } 6444else 6445 { echo "$as_me:$LINENO: result: no" >&5 6446echo "${ECHO_T}no" >&6; } 6447fi 6448 6449 6450fi 6451if test -z "$ac_cv_prog_RANLIB"; then 6452 ac_ct_RANLIB=$RANLIB 6453 # Extract the first word of "ranlib", so it can be a program name with args. 6454set dummy ranlib; ac_word=$2 6455{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6457if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6458 echo $ECHO_N "(cached) $ECHO_C" >&6 6459else 6460 if test -n "$ac_ct_RANLIB"; then 6461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6462else 6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6464for as_dir in $PATH 6465do 6466 IFS=$as_save_IFS 6467 test -z "$as_dir" && as_dir=. 6468 for ac_exec_ext in '' $ac_executable_extensions; do 6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6470 ac_cv_prog_ac_ct_RANLIB="ranlib" 6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6472 break 2 6473 fi 6474done 6475done 6476IFS=$as_save_IFS 6477 6478fi 6479fi 6480ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6481if test -n "$ac_ct_RANLIB"; then 6482 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6483echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6484else 6485 { echo "$as_me:$LINENO: result: no" >&5 6486echo "${ECHO_T}no" >&6; } 6487fi 6488 6489 if test "x$ac_ct_RANLIB" = x; then 6490 RANLIB=":" 6491 else 6492 case $cross_compiling:$ac_tool_warned in 6493yes:) 6494{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6495whose name does not start with the host triplet. If you think this 6496configuration is useful to you, please write to autoconf@gnu.org." >&5 6497echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6498whose name does not start with the host triplet. If you think this 6499configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6500ac_tool_warned=yes ;; 6501esac 6502 RANLIB=$ac_ct_RANLIB 6503 fi 6504else 6505 RANLIB="$ac_cv_prog_RANLIB" 6506fi 6507 6508if test -n "$ac_tool_prefix"; then 6509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6510set dummy ${ac_tool_prefix}ar; ac_word=$2 6511{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6513if test "${ac_cv_prog_AR+set}" = set; then 6514 echo $ECHO_N "(cached) $ECHO_C" >&6 6515else 6516 if test -n "$AR"; then 6517 ac_cv_prog_AR="$AR" # Let the user override the test. 6518else 6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6520for as_dir in $PATH 6521do 6522 IFS=$as_save_IFS 6523 test -z "$as_dir" && as_dir=. 6524 for ac_exec_ext in '' $ac_executable_extensions; do 6525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6526 ac_cv_prog_AR="${ac_tool_prefix}ar" 6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6528 break 2 6529 fi 6530done 6531done 6532IFS=$as_save_IFS 6533 6534fi 6535fi 6536AR=$ac_cv_prog_AR 6537if test -n "$AR"; then 6538 { echo "$as_me:$LINENO: result: $AR" >&5 6539echo "${ECHO_T}$AR" >&6; } 6540else 6541 { echo "$as_me:$LINENO: result: no" >&5 6542echo "${ECHO_T}no" >&6; } 6543fi 6544 6545 6546fi 6547if test -z "$ac_cv_prog_AR"; then 6548 ac_ct_AR=$AR 6549 # Extract the first word of "ar", so it can be a program name with args. 6550set dummy ar; ac_word=$2 6551{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6553if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6554 echo $ECHO_N "(cached) $ECHO_C" >&6 6555else 6556 if test -n "$ac_ct_AR"; then 6557 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6558else 6559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6560for as_dir in $PATH 6561do 6562 IFS=$as_save_IFS 6563 test -z "$as_dir" && as_dir=. 6564 for ac_exec_ext in '' $ac_executable_extensions; do 6565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6566 ac_cv_prog_ac_ct_AR="ar" 6567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6568 break 2 6569 fi 6570done 6571done 6572IFS=$as_save_IFS 6573 6574fi 6575fi 6576ac_ct_AR=$ac_cv_prog_ac_ct_AR 6577if test -n "$ac_ct_AR"; then 6578 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6579echo "${ECHO_T}$ac_ct_AR" >&6; } 6580else 6581 { echo "$as_me:$LINENO: result: no" >&5 6582echo "${ECHO_T}no" >&6; } 6583fi 6584 6585 if test "x$ac_ct_AR" = x; then 6586 AR="false" 6587 else 6588 case $cross_compiling:$ac_tool_warned in 6589yes:) 6590{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6591whose name does not start with the host triplet. If you think this 6592configuration is useful to you, please write to autoconf@gnu.org." >&5 6593echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6594whose name does not start with the host triplet. If you think this 6595configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6596ac_tool_warned=yes ;; 6597esac 6598 AR=$ac_ct_AR 6599 fi 6600else 6601 AR="$ac_cv_prog_AR" 6602fi 6603 6604# Extract the first word of "rm", so it can be a program name with args. 6605set dummy rm; ac_word=$2 6606{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6608if test "${ac_cv_path_RM+set}" = set; then 6609 echo $ECHO_N "(cached) $ECHO_C" >&6 6610else 6611 case $RM in 6612 [\\/]* | ?:[\\/]*) 6613 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6614 ;; 6615 *) 6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6617for as_dir in $PATH 6618do 6619 IFS=$as_save_IFS 6620 test -z "$as_dir" && as_dir=. 6621 for ac_exec_ext in '' $ac_executable_extensions; do 6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6623 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6625 break 2 6626 fi 6627done 6628done 6629IFS=$as_save_IFS 6630 6631 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6632 ;; 6633esac 6634fi 6635RM=$ac_cv_path_RM 6636if test -n "$RM"; then 6637 { echo "$as_me:$LINENO: result: $RM" >&5 6638echo "${ECHO_T}$RM" >&6; } 6639else 6640 { echo "$as_me:$LINENO: result: no" >&5 6641echo "${ECHO_T}no" >&6; } 6642fi 6643 6644 6645# Extract the first word of "sed", so it can be a program name with args. 6646set dummy sed; ac_word=$2 6647{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6649if test "${ac_cv_path_SED+set}" = set; then 6650 echo $ECHO_N "(cached) $ECHO_C" >&6 6651else 6652 case $SED in 6653 [\\/]* | ?:[\\/]*) 6654 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6655 ;; 6656 *) 6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6658for as_dir in $PATH 6659do 6660 IFS=$as_save_IFS 6661 test -z "$as_dir" && as_dir=. 6662 for ac_exec_ext in '' $ac_executable_extensions; do 6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6664 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6666 break 2 6667 fi 6668done 6669done 6670IFS=$as_save_IFS 6671 6672 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6673 ;; 6674esac 6675fi 6676SED=$ac_cv_path_SED 6677if test -n "$SED"; then 6678 { echo "$as_me:$LINENO: result: $SED" >&5 6679echo "${ECHO_T}$SED" >&6; } 6680else 6681 { echo "$as_me:$LINENO: result: no" >&5 6682echo "${ECHO_T}no" >&6; } 6683fi 6684 6685 6686# Extract the first word of "tar", so it can be a program name with args. 6687set dummy tar; ac_word=$2 6688{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6690if test "${ac_cv_path_TAR+set}" = set; then 6691 echo $ECHO_N "(cached) $ECHO_C" >&6 6692else 6693 case $TAR in 6694 [\\/]* | ?:[\\/]*) 6695 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6696 ;; 6697 *) 6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6699for as_dir in $PATH 6700do 6701 IFS=$as_save_IFS 6702 test -z "$as_dir" && as_dir=. 6703 for ac_exec_ext in '' $ac_executable_extensions; do 6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6705 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6707 break 2 6708 fi 6709done 6710done 6711IFS=$as_save_IFS 6712 6713 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6714 ;; 6715esac 6716fi 6717TAR=$ac_cv_path_TAR 6718if test -n "$TAR"; then 6719 { echo "$as_me:$LINENO: result: $TAR" >&5 6720echo "${ECHO_T}$TAR" >&6; } 6721else 6722 { echo "$as_me:$LINENO: result: no" >&5 6723echo "${ECHO_T}no" >&6; } 6724fi 6725 6726 6727# Extract the first word of "pwd", so it can be a program name with args. 6728set dummy pwd; ac_word=$2 6729{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6731if test "${ac_cv_path_BINPWD+set}" = set; then 6732 echo $ECHO_N "(cached) $ECHO_C" >&6 6733else 6734 case $BINPWD in 6735 [\\/]* | ?:[\\/]*) 6736 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6737 ;; 6738 *) 6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6740for as_dir in $PATH 6741do 6742 IFS=$as_save_IFS 6743 test -z "$as_dir" && as_dir=. 6744 for ac_exec_ext in '' $ac_executable_extensions; do 6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6746 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6748 break 2 6749 fi 6750done 6751done 6752IFS=$as_save_IFS 6753 6754 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6755 ;; 6756esac 6757fi 6758BINPWD=$ac_cv_path_BINPWD 6759if test -n "$BINPWD"; then 6760 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6761echo "${ECHO_T}$BINPWD" >&6; } 6762else 6763 { echo "$as_me:$LINENO: result: no" >&5 6764echo "${ECHO_T}no" >&6; } 6765fi 6766 6767 6768 6769# Extract the first word of "Graphviz", so it can be a program name with args. 6770set dummy Graphviz; ac_word=$2 6771{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6773if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6774 echo $ECHO_N "(cached) $ECHO_C" >&6 6775else 6776 case $GRAPHVIZ in 6777 [\\/]* | ?:[\\/]*) 6778 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6779 ;; 6780 *) 6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6782for as_dir in $PATH 6783do 6784 IFS=$as_save_IFS 6785 test -z "$as_dir" && as_dir=. 6786 for ac_exec_ext in '' $ac_executable_extensions; do 6787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6788 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6790 break 2 6791 fi 6792done 6793done 6794IFS=$as_save_IFS 6795 6796 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6797 ;; 6798esac 6799fi 6800GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6801if test -n "$GRAPHVIZ"; then 6802 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6803echo "${ECHO_T}$GRAPHVIZ" >&6; } 6804else 6805 { echo "$as_me:$LINENO: result: no" >&5 6806echo "${ECHO_T}no" >&6; } 6807fi 6808 6809 6810if test "$GRAPHVIZ" != "echo Graphviz" ; then 6811 6812cat >>confdefs.h <<\_ACEOF 6813#define HAVE_GRAPHVIZ 1 6814_ACEOF 6815 6816 if test "$llvm_cv_os_type" = "MingW" ; then 6817 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6818 fi 6819 6820cat >>confdefs.h <<_ACEOF 6821#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6822_ACEOF 6823 6824fi 6825# Extract the first word of "dot", so it can be a program name with args. 6826set dummy dot; ac_word=$2 6827{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6829if test "${ac_cv_path_DOT+set}" = set; then 6830 echo $ECHO_N "(cached) $ECHO_C" >&6 6831else 6832 case $DOT in 6833 [\\/]* | ?:[\\/]*) 6834 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6835 ;; 6836 *) 6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6838for as_dir in $PATH 6839do 6840 IFS=$as_save_IFS 6841 test -z "$as_dir" && as_dir=. 6842 for ac_exec_ext in '' $ac_executable_extensions; do 6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6844 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6846 break 2 6847 fi 6848done 6849done 6850IFS=$as_save_IFS 6851 6852 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6853 ;; 6854esac 6855fi 6856DOT=$ac_cv_path_DOT 6857if test -n "$DOT"; then 6858 { echo "$as_me:$LINENO: result: $DOT" >&5 6859echo "${ECHO_T}$DOT" >&6; } 6860else 6861 { echo "$as_me:$LINENO: result: no" >&5 6862echo "${ECHO_T}no" >&6; } 6863fi 6864 6865 6866if test "$DOT" != "echo dot" ; then 6867 6868cat >>confdefs.h <<\_ACEOF 6869#define HAVE_DOT 1 6870_ACEOF 6871 6872 if test "$llvm_cv_os_type" = "MingW" ; then 6873 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6874 fi 6875 6876cat >>confdefs.h <<_ACEOF 6877#define LLVM_PATH_DOT "$DOT${EXEEXT}" 6878_ACEOF 6879 6880fi 6881# Extract the first word of "fdp", so it can be a program name with args. 6882set dummy fdp; ac_word=$2 6883{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6885if test "${ac_cv_path_FDP+set}" = set; then 6886 echo $ECHO_N "(cached) $ECHO_C" >&6 6887else 6888 case $FDP in 6889 [\\/]* | ?:[\\/]*) 6890 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6891 ;; 6892 *) 6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6894for as_dir in $PATH 6895do 6896 IFS=$as_save_IFS 6897 test -z "$as_dir" && as_dir=. 6898 for ac_exec_ext in '' $ac_executable_extensions; do 6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6900 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6902 break 2 6903 fi 6904done 6905done 6906IFS=$as_save_IFS 6907 6908 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6909 ;; 6910esac 6911fi 6912FDP=$ac_cv_path_FDP 6913if test -n "$FDP"; then 6914 { echo "$as_me:$LINENO: result: $FDP" >&5 6915echo "${ECHO_T}$FDP" >&6; } 6916else 6917 { echo "$as_me:$LINENO: result: no" >&5 6918echo "${ECHO_T}no" >&6; } 6919fi 6920 6921 6922if test "$FDP" != "echo fdp" ; then 6923 6924cat >>confdefs.h <<\_ACEOF 6925#define HAVE_FDP 1 6926_ACEOF 6927 6928 if test "$llvm_cv_os_type" = "MingW" ; then 6929 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6930 fi 6931 6932cat >>confdefs.h <<_ACEOF 6933#define LLVM_PATH_FDP "$FDP${EXEEXT}" 6934_ACEOF 6935 6936fi 6937# Extract the first word of "neato", so it can be a program name with args. 6938set dummy neato; ac_word=$2 6939{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6941if test "${ac_cv_path_NEATO+set}" = set; then 6942 echo $ECHO_N "(cached) $ECHO_C" >&6 6943else 6944 case $NEATO in 6945 [\\/]* | ?:[\\/]*) 6946 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6947 ;; 6948 *) 6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6950for as_dir in $PATH 6951do 6952 IFS=$as_save_IFS 6953 test -z "$as_dir" && as_dir=. 6954 for ac_exec_ext in '' $ac_executable_extensions; do 6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6956 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6958 break 2 6959 fi 6960done 6961done 6962IFS=$as_save_IFS 6963 6964 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6965 ;; 6966esac 6967fi 6968NEATO=$ac_cv_path_NEATO 6969if test -n "$NEATO"; then 6970 { echo "$as_me:$LINENO: result: $NEATO" >&5 6971echo "${ECHO_T}$NEATO" >&6; } 6972else 6973 { echo "$as_me:$LINENO: result: no" >&5 6974echo "${ECHO_T}no" >&6; } 6975fi 6976 6977 6978if test "$NEATO" != "echo neato" ; then 6979 6980cat >>confdefs.h <<\_ACEOF 6981#define HAVE_NEATO 1 6982_ACEOF 6983 6984 if test "$llvm_cv_os_type" = "MingW" ; then 6985 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6986 fi 6987 6988cat >>confdefs.h <<_ACEOF 6989#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6990_ACEOF 6991 6992fi 6993# Extract the first word of "twopi", so it can be a program name with args. 6994set dummy twopi; ac_word=$2 6995{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6997if test "${ac_cv_path_TWOPI+set}" = set; then 6998 echo $ECHO_N "(cached) $ECHO_C" >&6 6999else 7000 case $TWOPI in 7001 [\\/]* | ?:[\\/]*) 7002 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 7003 ;; 7004 *) 7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7006for as_dir in $PATH 7007do 7008 IFS=$as_save_IFS 7009 test -z "$as_dir" && as_dir=. 7010 for ac_exec_ext in '' $ac_executable_extensions; do 7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7012 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7014 break 2 7015 fi 7016done 7017done 7018IFS=$as_save_IFS 7019 7020 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 7021 ;; 7022esac 7023fi 7024TWOPI=$ac_cv_path_TWOPI 7025if test -n "$TWOPI"; then 7026 { echo "$as_me:$LINENO: result: $TWOPI" >&5 7027echo "${ECHO_T}$TWOPI" >&6; } 7028else 7029 { echo "$as_me:$LINENO: result: no" >&5 7030echo "${ECHO_T}no" >&6; } 7031fi 7032 7033 7034if test "$TWOPI" != "echo twopi" ; then 7035 7036cat >>confdefs.h <<\_ACEOF 7037#define HAVE_TWOPI 1 7038_ACEOF 7039 7040 if test "$llvm_cv_os_type" = "MingW" ; then 7041 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7042 fi 7043 7044cat >>confdefs.h <<_ACEOF 7045#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 7046_ACEOF 7047 7048fi 7049# Extract the first word of "circo", so it can be a program name with args. 7050set dummy circo; ac_word=$2 7051{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7053if test "${ac_cv_path_CIRCO+set}" = set; then 7054 echo $ECHO_N "(cached) $ECHO_C" >&6 7055else 7056 case $CIRCO in 7057 [\\/]* | ?:[\\/]*) 7058 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 7059 ;; 7060 *) 7061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7062for as_dir in $PATH 7063do 7064 IFS=$as_save_IFS 7065 test -z "$as_dir" && as_dir=. 7066 for ac_exec_ext in '' $ac_executable_extensions; do 7067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7068 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 7069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7070 break 2 7071 fi 7072done 7073done 7074IFS=$as_save_IFS 7075 7076 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 7077 ;; 7078esac 7079fi 7080CIRCO=$ac_cv_path_CIRCO 7081if test -n "$CIRCO"; then 7082 { echo "$as_me:$LINENO: result: $CIRCO" >&5 7083echo "${ECHO_T}$CIRCO" >&6; } 7084else 7085 { echo "$as_me:$LINENO: result: no" >&5 7086echo "${ECHO_T}no" >&6; } 7087fi 7088 7089 7090if test "$CIRCO" != "echo circo" ; then 7091 7092cat >>confdefs.h <<\_ACEOF 7093#define HAVE_CIRCO 1 7094_ACEOF 7095 7096 if test "$llvm_cv_os_type" = "MingW" ; then 7097 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7098 fi 7099 7100cat >>confdefs.h <<_ACEOF 7101#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 7102_ACEOF 7103 7104fi 7105for ac_prog in gv gsview32 7106do 7107 # Extract the first word of "$ac_prog", so it can be a program name with args. 7108set dummy $ac_prog; ac_word=$2 7109{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7111if test "${ac_cv_path_GV+set}" = set; then 7112 echo $ECHO_N "(cached) $ECHO_C" >&6 7113else 7114 case $GV in 7115 [\\/]* | ?:[\\/]*) 7116 ac_cv_path_GV="$GV" # Let the user override the test with a path. 7117 ;; 7118 *) 7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7120for as_dir in $PATH 7121do 7122 IFS=$as_save_IFS 7123 test -z "$as_dir" && as_dir=. 7124 for ac_exec_ext in '' $ac_executable_extensions; do 7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7126 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 7127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7128 break 2 7129 fi 7130done 7131done 7132IFS=$as_save_IFS 7133 7134 ;; 7135esac 7136fi 7137GV=$ac_cv_path_GV 7138if test -n "$GV"; then 7139 { echo "$as_me:$LINENO: result: $GV" >&5 7140echo "${ECHO_T}$GV" >&6; } 7141else 7142 { echo "$as_me:$LINENO: result: no" >&5 7143echo "${ECHO_T}no" >&6; } 7144fi 7145 7146 7147 test -n "$GV" && break 7148done 7149test -n "$GV" || GV="echo gv" 7150 7151if test "$GV" != "echo gv" ; then 7152 7153cat >>confdefs.h <<\_ACEOF 7154#define HAVE_GV 1 7155_ACEOF 7156 7157 if test "$llvm_cv_os_type" = "MingW" ; then 7158 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7159 fi 7160 7161cat >>confdefs.h <<_ACEOF 7162#define LLVM_PATH_GV "$GV${EXEEXT}" 7163_ACEOF 7164 7165fi 7166# Extract the first word of "dotty", so it can be a program name with args. 7167set dummy dotty; ac_word=$2 7168{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7170if test "${ac_cv_path_DOTTY+set}" = set; then 7171 echo $ECHO_N "(cached) $ECHO_C" >&6 7172else 7173 case $DOTTY in 7174 [\\/]* | ?:[\\/]*) 7175 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 7176 ;; 7177 *) 7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7179for as_dir in $PATH 7180do 7181 IFS=$as_save_IFS 7182 test -z "$as_dir" && as_dir=. 7183 for ac_exec_ext in '' $ac_executable_extensions; do 7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7185 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7187 break 2 7188 fi 7189done 7190done 7191IFS=$as_save_IFS 7192 7193 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 7194 ;; 7195esac 7196fi 7197DOTTY=$ac_cv_path_DOTTY 7198if test -n "$DOTTY"; then 7199 { echo "$as_me:$LINENO: result: $DOTTY" >&5 7200echo "${ECHO_T}$DOTTY" >&6; } 7201else 7202 { echo "$as_me:$LINENO: result: no" >&5 7203echo "${ECHO_T}no" >&6; } 7204fi 7205 7206 7207if test "$DOTTY" != "echo dotty" ; then 7208 7209cat >>confdefs.h <<\_ACEOF 7210#define HAVE_DOTTY 1 7211_ACEOF 7212 7213 if test "$llvm_cv_os_type" = "MingW" ; then 7214 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7215 fi 7216 7217cat >>confdefs.h <<_ACEOF 7218#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 7219_ACEOF 7220 7221fi 7222for ac_prog in xdot xdot.py 7223do 7224 # Extract the first word of "$ac_prog", so it can be a program name with args. 7225set dummy $ac_prog; ac_word=$2 7226{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7228if test "${ac_cv_path_XDOT+set}" = set; then 7229 echo $ECHO_N "(cached) $ECHO_C" >&6 7230else 7231 case $XDOT in 7232 [\\/]* | ?:[\\/]*) 7233 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path. 7234 ;; 7235 *) 7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7237for as_dir in $PATH 7238do 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_XDOT="$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 7247done 7248done 7249IFS=$as_save_IFS 7250 7251 ;; 7252esac 7253fi 7254XDOT=$ac_cv_path_XDOT 7255if test -n "$XDOT"; then 7256 { echo "$as_me:$LINENO: result: $XDOT" >&5 7257echo "${ECHO_T}$XDOT" >&6; } 7258else 7259 { echo "$as_me:$LINENO: result: no" >&5 7260echo "${ECHO_T}no" >&6; } 7261fi 7262 7263 7264 test -n "$XDOT" && break 7265done 7266test -n "$XDOT" || XDOT="echo xdot" 7267 7268if test "$XDOT" != "echo xdot" ; then 7269 7270cat >>confdefs.h <<\_ACEOF 7271#define HAVE_XDOT 1 7272_ACEOF 7273 7274 if test "$llvm_cv_os_type" = "MingW" ; then 7275 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7276 fi 7277 7278cat >>confdefs.h <<_ACEOF 7279#define LLVM_PATH_XDOT "$XDOT${EXEEXT}" 7280_ACEOF 7281 7282fi 7283 7284# Find a good install program. We prefer a C program (faster), 7285# so one script is as good as another. But avoid the broken or 7286# incompatible versions: 7287# SysV /etc/install, /usr/sbin/install 7288# SunOS /usr/etc/install 7289# IRIX /sbin/install 7290# AIX /bin/install 7291# AmigaOS /C/install, which installs bootblocks on floppy discs 7292# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7293# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7294# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7295# OS/2's system install, which has a completely different semantic 7296# ./install, which can be erroneously created by make from ./install.sh. 7297{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 7298echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 7299if test -z "$INSTALL"; then 7300if test "${ac_cv_path_install+set}" = set; then 7301 echo $ECHO_N "(cached) $ECHO_C" >&6 7302else 7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7304for as_dir in $PATH 7305do 7306 IFS=$as_save_IFS 7307 test -z "$as_dir" && as_dir=. 7308 # Account for people who put trailing slashes in PATH elements. 7309case $as_dir/ in 7310 ./ | .// | /cC/* | \ 7311 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7312 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 7313 /usr/ucb/* ) ;; 7314 *) 7315 # OSF1 and SCO ODT 3.0 have their own names for install. 7316 # Don't use installbsd from OSF since it installs stuff as root 7317 # by default. 7318 for ac_prog in ginstall scoinst install; do 7319 for ac_exec_ext in '' $ac_executable_extensions; do 7320 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 7321 if test $ac_prog = install && 7322 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7323 # AIX install. It has an incompatible calling convention. 7324 : 7325 elif test $ac_prog = install && 7326 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7327 # program-specific install script used by HP pwplus--don't use. 7328 : 7329 else 7330 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7331 break 3 7332 fi 7333 fi 7334 done 7335 done 7336 ;; 7337esac 7338done 7339IFS=$as_save_IFS 7340 7341 7342fi 7343 if test "${ac_cv_path_install+set}" = set; then 7344 INSTALL=$ac_cv_path_install 7345 else 7346 # As a last resort, use the slow shell script. Don't cache a 7347 # value for INSTALL within a source directory, because that will 7348 # break other packages using the cache if that directory is 7349 # removed, or if the value is a relative name. 7350 INSTALL=$ac_install_sh 7351 fi 7352fi 7353{ echo "$as_me:$LINENO: result: $INSTALL" >&5 7354echo "${ECHO_T}$INSTALL" >&6; } 7355 7356# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7357# It thinks the first close brace ends the variable substitution. 7358test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7359 7360test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7361 7362test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7363 7364case "$INSTALL" in 7365 [\\/$]* | ?:[\\/]* ) ;; 7366 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 7367esac 7368 7369# Extract the first word of "bzip2", so it can be a program name with args. 7370set dummy bzip2; ac_word=$2 7371{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7373if test "${ac_cv_path_BZIP2+set}" = set; then 7374 echo $ECHO_N "(cached) $ECHO_C" >&6 7375else 7376 case $BZIP2 in 7377 [\\/]* | ?:[\\/]*) 7378 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7379 ;; 7380 *) 7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7382for as_dir in $PATH 7383do 7384 IFS=$as_save_IFS 7385 test -z "$as_dir" && as_dir=. 7386 for ac_exec_ext in '' $ac_executable_extensions; do 7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7388 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7390 break 2 7391 fi 7392done 7393done 7394IFS=$as_save_IFS 7395 7396 ;; 7397esac 7398fi 7399BZIP2=$ac_cv_path_BZIP2 7400if test -n "$BZIP2"; then 7401 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7402echo "${ECHO_T}$BZIP2" >&6; } 7403else 7404 { echo "$as_me:$LINENO: result: no" >&5 7405echo "${ECHO_T}no" >&6; } 7406fi 7407 7408 7409# Extract the first word of "cat", so it can be a program name with args. 7410set dummy cat; ac_word=$2 7411{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7413if test "${ac_cv_path_CAT+set}" = set; then 7414 echo $ECHO_N "(cached) $ECHO_C" >&6 7415else 7416 case $CAT in 7417 [\\/]* | ?:[\\/]*) 7418 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 7419 ;; 7420 *) 7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7422for as_dir in $PATH 7423do 7424 IFS=$as_save_IFS 7425 test -z "$as_dir" && as_dir=. 7426 for ac_exec_ext in '' $ac_executable_extensions; do 7427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7428 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 7429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7430 break 2 7431 fi 7432done 7433done 7434IFS=$as_save_IFS 7435 7436 ;; 7437esac 7438fi 7439CAT=$ac_cv_path_CAT 7440if test -n "$CAT"; then 7441 { echo "$as_me:$LINENO: result: $CAT" >&5 7442echo "${ECHO_T}$CAT" >&6; } 7443else 7444 { echo "$as_me:$LINENO: result: no" >&5 7445echo "${ECHO_T}no" >&6; } 7446fi 7447 7448 7449# Extract the first word of "doxygen", so it can be a program name with args. 7450set dummy doxygen; ac_word=$2 7451{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7453if test "${ac_cv_path_DOXYGEN+set}" = set; then 7454 echo $ECHO_N "(cached) $ECHO_C" >&6 7455else 7456 case $DOXYGEN in 7457 [\\/]* | ?:[\\/]*) 7458 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7459 ;; 7460 *) 7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7462for as_dir in $PATH 7463do 7464 IFS=$as_save_IFS 7465 test -z "$as_dir" && as_dir=. 7466 for ac_exec_ext in '' $ac_executable_extensions; do 7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7468 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7470 break 2 7471 fi 7472done 7473done 7474IFS=$as_save_IFS 7475 7476 ;; 7477esac 7478fi 7479DOXYGEN=$ac_cv_path_DOXYGEN 7480if test -n "$DOXYGEN"; then 7481 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7482echo "${ECHO_T}$DOXYGEN" >&6; } 7483else 7484 { echo "$as_me:$LINENO: result: no" >&5 7485echo "${ECHO_T}no" >&6; } 7486fi 7487 7488 7489# Extract the first word of "groff", so it can be a program name with args. 7490set dummy groff; ac_word=$2 7491{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7493if test "${ac_cv_path_GROFF+set}" = set; then 7494 echo $ECHO_N "(cached) $ECHO_C" >&6 7495else 7496 case $GROFF in 7497 [\\/]* | ?:[\\/]*) 7498 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7499 ;; 7500 *) 7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7502for as_dir in $PATH 7503do 7504 IFS=$as_save_IFS 7505 test -z "$as_dir" && as_dir=. 7506 for ac_exec_ext in '' $ac_executable_extensions; do 7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7508 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7510 break 2 7511 fi 7512done 7513done 7514IFS=$as_save_IFS 7515 7516 ;; 7517esac 7518fi 7519GROFF=$ac_cv_path_GROFF 7520if test -n "$GROFF"; then 7521 { echo "$as_me:$LINENO: result: $GROFF" >&5 7522echo "${ECHO_T}$GROFF" >&6; } 7523else 7524 { echo "$as_me:$LINENO: result: no" >&5 7525echo "${ECHO_T}no" >&6; } 7526fi 7527 7528 7529# Extract the first word of "gzip", so it can be a program name with args. 7530set dummy gzip; ac_word=$2 7531{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7533if test "${ac_cv_path_GZIPBIN+set}" = set; then 7534 echo $ECHO_N "(cached) $ECHO_C" >&6 7535else 7536 case $GZIPBIN in 7537 [\\/]* | ?:[\\/]*) 7538 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7539 ;; 7540 *) 7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7542for as_dir in $PATH 7543do 7544 IFS=$as_save_IFS 7545 test -z "$as_dir" && as_dir=. 7546 for ac_exec_ext in '' $ac_executable_extensions; do 7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7548 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7550 break 2 7551 fi 7552done 7553done 7554IFS=$as_save_IFS 7555 7556 ;; 7557esac 7558fi 7559GZIPBIN=$ac_cv_path_GZIPBIN 7560if test -n "$GZIPBIN"; then 7561 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7562echo "${ECHO_T}$GZIPBIN" >&6; } 7563else 7564 { echo "$as_me:$LINENO: result: no" >&5 7565echo "${ECHO_T}no" >&6; } 7566fi 7567 7568 7569# Extract the first word of "pdfroff", so it can be a program name with args. 7570set dummy pdfroff; ac_word=$2 7571{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7573if test "${ac_cv_path_PDFROFF+set}" = set; then 7574 echo $ECHO_N "(cached) $ECHO_C" >&6 7575else 7576 case $PDFROFF in 7577 [\\/]* | ?:[\\/]*) 7578 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7579 ;; 7580 *) 7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7582for as_dir in $PATH 7583do 7584 IFS=$as_save_IFS 7585 test -z "$as_dir" && as_dir=. 7586 for ac_exec_ext in '' $ac_executable_extensions; do 7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7588 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7590 break 2 7591 fi 7592done 7593done 7594IFS=$as_save_IFS 7595 7596 ;; 7597esac 7598fi 7599PDFROFF=$ac_cv_path_PDFROFF 7600if test -n "$PDFROFF"; then 7601 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7602echo "${ECHO_T}$PDFROFF" >&6; } 7603else 7604 { echo "$as_me:$LINENO: result: no" >&5 7605echo "${ECHO_T}no" >&6; } 7606fi 7607 7608 7609# Extract the first word of "zip", so it can be a program name with args. 7610set dummy zip; ac_word=$2 7611{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7613if test "${ac_cv_path_ZIP+set}" = set; then 7614 echo $ECHO_N "(cached) $ECHO_C" >&6 7615else 7616 case $ZIP in 7617 [\\/]* | ?:[\\/]*) 7618 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7619 ;; 7620 *) 7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7622for as_dir in $PATH 7623do 7624 IFS=$as_save_IFS 7625 test -z "$as_dir" && as_dir=. 7626 for ac_exec_ext in '' $ac_executable_extensions; do 7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7628 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7630 break 2 7631 fi 7632done 7633done 7634IFS=$as_save_IFS 7635 7636 ;; 7637esac 7638fi 7639ZIP=$ac_cv_path_ZIP 7640if test -n "$ZIP"; then 7641 { echo "$as_me:$LINENO: result: $ZIP" >&5 7642echo "${ECHO_T}$ZIP" >&6; } 7643else 7644 { echo "$as_me:$LINENO: result: no" >&5 7645echo "${ECHO_T}no" >&6; } 7646fi 7647 7648 7649for ac_prog in ocamlc 7650do 7651 # Extract the first word of "$ac_prog", so it can be a program name with args. 7652set dummy $ac_prog; ac_word=$2 7653{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7655if test "${ac_cv_path_OCAMLC+set}" = set; then 7656 echo $ECHO_N "(cached) $ECHO_C" >&6 7657else 7658 case $OCAMLC in 7659 [\\/]* | ?:[\\/]*) 7660 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7661 ;; 7662 *) 7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7664for as_dir in $PATH 7665do 7666 IFS=$as_save_IFS 7667 test -z "$as_dir" && as_dir=. 7668 for ac_exec_ext in '' $ac_executable_extensions; do 7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7670 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7672 break 2 7673 fi 7674done 7675done 7676IFS=$as_save_IFS 7677 7678 ;; 7679esac 7680fi 7681OCAMLC=$ac_cv_path_OCAMLC 7682if test -n "$OCAMLC"; then 7683 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7684echo "${ECHO_T}$OCAMLC" >&6; } 7685else 7686 { echo "$as_me:$LINENO: result: no" >&5 7687echo "${ECHO_T}no" >&6; } 7688fi 7689 7690 7691 test -n "$OCAMLC" && break 7692done 7693 7694for ac_prog in ocamlopt 7695do 7696 # Extract the first word of "$ac_prog", so it can be a program name with args. 7697set dummy $ac_prog; ac_word=$2 7698{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7700if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7701 echo $ECHO_N "(cached) $ECHO_C" >&6 7702else 7703 case $OCAMLOPT in 7704 [\\/]* | ?:[\\/]*) 7705 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7706 ;; 7707 *) 7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7709for as_dir in $PATH 7710do 7711 IFS=$as_save_IFS 7712 test -z "$as_dir" && as_dir=. 7713 for ac_exec_ext in '' $ac_executable_extensions; do 7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7715 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7717 break 2 7718 fi 7719done 7720done 7721IFS=$as_save_IFS 7722 7723 ;; 7724esac 7725fi 7726OCAMLOPT=$ac_cv_path_OCAMLOPT 7727if test -n "$OCAMLOPT"; then 7728 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7729echo "${ECHO_T}$OCAMLOPT" >&6; } 7730else 7731 { echo "$as_me:$LINENO: result: no" >&5 7732echo "${ECHO_T}no" >&6; } 7733fi 7734 7735 7736 test -n "$OCAMLOPT" && break 7737done 7738 7739for ac_prog in ocamldep 7740do 7741 # Extract the first word of "$ac_prog", so it can be a program name with args. 7742set dummy $ac_prog; ac_word=$2 7743{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7745if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7746 echo $ECHO_N "(cached) $ECHO_C" >&6 7747else 7748 case $OCAMLDEP in 7749 [\\/]* | ?:[\\/]*) 7750 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7751 ;; 7752 *) 7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7754for as_dir in $PATH 7755do 7756 IFS=$as_save_IFS 7757 test -z "$as_dir" && as_dir=. 7758 for ac_exec_ext in '' $ac_executable_extensions; do 7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7760 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7762 break 2 7763 fi 7764done 7765done 7766IFS=$as_save_IFS 7767 7768 ;; 7769esac 7770fi 7771OCAMLDEP=$ac_cv_path_OCAMLDEP 7772if test -n "$OCAMLDEP"; then 7773 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7774echo "${ECHO_T}$OCAMLDEP" >&6; } 7775else 7776 { echo "$as_me:$LINENO: result: no" >&5 7777echo "${ECHO_T}no" >&6; } 7778fi 7779 7780 7781 test -n "$OCAMLDEP" && break 7782done 7783 7784for ac_prog in ocamldoc 7785do 7786 # Extract the first word of "$ac_prog", so it can be a program name with args. 7787set dummy $ac_prog; ac_word=$2 7788{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7790if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7791 echo $ECHO_N "(cached) $ECHO_C" >&6 7792else 7793 case $OCAMLDOC in 7794 [\\/]* | ?:[\\/]*) 7795 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7796 ;; 7797 *) 7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7799for as_dir in $PATH 7800do 7801 IFS=$as_save_IFS 7802 test -z "$as_dir" && as_dir=. 7803 for ac_exec_ext in '' $ac_executable_extensions; do 7804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7805 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7807 break 2 7808 fi 7809done 7810done 7811IFS=$as_save_IFS 7812 7813 ;; 7814esac 7815fi 7816OCAMLDOC=$ac_cv_path_OCAMLDOC 7817if test -n "$OCAMLDOC"; then 7818 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7819echo "${ECHO_T}$OCAMLDOC" >&6; } 7820else 7821 { echo "$as_me:$LINENO: result: no" >&5 7822echo "${ECHO_T}no" >&6; } 7823fi 7824 7825 7826 test -n "$OCAMLDOC" && break 7827done 7828 7829for ac_prog in gas as 7830do 7831 # Extract the first word of "$ac_prog", so it can be a program name with args. 7832set dummy $ac_prog; ac_word=$2 7833{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7835if test "${ac_cv_path_GAS+set}" = set; then 7836 echo $ECHO_N "(cached) $ECHO_C" >&6 7837else 7838 case $GAS in 7839 [\\/]* | ?:[\\/]*) 7840 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7841 ;; 7842 *) 7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7844for as_dir in $PATH 7845do 7846 IFS=$as_save_IFS 7847 test -z "$as_dir" && as_dir=. 7848 for ac_exec_ext in '' $ac_executable_extensions; do 7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7850 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7852 break 2 7853 fi 7854done 7855done 7856IFS=$as_save_IFS 7857 7858 ;; 7859esac 7860fi 7861GAS=$ac_cv_path_GAS 7862if test -n "$GAS"; then 7863 { echo "$as_me:$LINENO: result: $GAS" >&5 7864echo "${ECHO_T}$GAS" >&6; } 7865else 7866 { echo "$as_me:$LINENO: result: no" >&5 7867echo "${ECHO_T}no" >&6; } 7868fi 7869 7870 7871 test -n "$GAS" && break 7872done 7873 7874 7875{ echo "$as_me:$LINENO: checking for linker version" >&5 7876echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7877if test "${llvm_cv_link_version+set}" = set; then 7878 echo $ECHO_N "(cached) $ECHO_C" >&6 7879else 7880 7881 version_string="$(ld -v 2>&1 | head -1)" 7882 7883 # Check for ld64. 7884 if (echo "$version_string" | grep -q "ld64"); then 7885 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7886 else 7887 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7888 fi 7889 7890fi 7891{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7892echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7893 7894cat >>confdefs.h <<_ACEOF 7895#define HOST_LINK_VERSION "$llvm_cv_link_version" 7896_ACEOF 7897 7898 7899 7900{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7901echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7902if test "${llvm_cv_link_use_r+set}" = set; then 7903 echo $ECHO_N "(cached) $ECHO_C" >&6 7904else 7905 ac_ext=c 7906ac_cpp='$CPP $CPPFLAGS' 7907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7909ac_compiler_gnu=$ac_cv_c_compiler_gnu 7910 7911 oldcflags="$CFLAGS" 7912 CFLAGS="$CFLAGS -Wl,-R." 7913 cat >conftest.$ac_ext <<_ACEOF 7914/* confdefs.h. */ 7915_ACEOF 7916cat confdefs.h >>conftest.$ac_ext 7917cat >>conftest.$ac_ext <<_ACEOF 7918/* end confdefs.h. */ 7919 7920int 7921main () 7922{ 7923 7924 ; 7925 return 0; 7926} 7927_ACEOF 7928rm -f conftest.$ac_objext conftest$ac_exeext 7929if { (ac_try="$ac_link" 7930case "(($ac_try" in 7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7932 *) ac_try_echo=$ac_try;; 7933esac 7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7935 (eval "$ac_link") 2>conftest.er1 7936 ac_status=$? 7937 grep -v '^ *+' conftest.er1 >conftest.err 7938 rm -f conftest.er1 7939 cat conftest.err >&5 7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7941 (exit $ac_status); } && 7942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7943 { (case "(($ac_try" in 7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7945 *) ac_try_echo=$ac_try;; 7946esac 7947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7948 (eval "$ac_try") 2>&5 7949 ac_status=$? 7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7951 (exit $ac_status); }; } && 7952 { ac_try='test -s conftest$ac_exeext' 7953 { (case "(($ac_try" in 7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7955 *) ac_try_echo=$ac_try;; 7956esac 7957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7958 (eval "$ac_try") 2>&5 7959 ac_status=$? 7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7961 (exit $ac_status); }; }; then 7962 llvm_cv_link_use_r=yes 7963else 7964 echo "$as_me: failed program was:" >&5 7965sed 's/^/| /' conftest.$ac_ext >&5 7966 7967 llvm_cv_link_use_r=no 7968fi 7969 7970rm -f core conftest.err conftest.$ac_objext \ 7971 conftest$ac_exeext conftest.$ac_ext 7972 CFLAGS="$oldcflags" 7973 ac_ext=c 7974ac_cpp='$CPP $CPPFLAGS' 7975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7977ac_compiler_gnu=$ac_cv_c_compiler_gnu 7978 7979 7980fi 7981{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7982echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7983if test "$llvm_cv_link_use_r" = yes ; then 7984 7985cat >>confdefs.h <<\_ACEOF 7986#define HAVE_LINK_R 1 7987_ACEOF 7988 7989 fi 7990 7991 7992{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 7993echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 7994if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7995 echo $ECHO_N "(cached) $ECHO_C" >&6 7996else 7997 ac_ext=c 7998ac_cpp='$CPP $CPPFLAGS' 7999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8001ac_compiler_gnu=$ac_cv_c_compiler_gnu 8002 8003 oldcflags="$CFLAGS" 8004 CFLAGS="$CFLAGS -Wl,-export-dynamic" 8005 cat >conftest.$ac_ext <<_ACEOF 8006/* confdefs.h. */ 8007_ACEOF 8008cat confdefs.h >>conftest.$ac_ext 8009cat >>conftest.$ac_ext <<_ACEOF 8010/* end confdefs.h. */ 8011 8012int 8013main () 8014{ 8015 8016 ; 8017 return 0; 8018} 8019_ACEOF 8020rm -f conftest.$ac_objext conftest$ac_exeext 8021if { (ac_try="$ac_link" 8022case "(($ac_try" in 8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8024 *) ac_try_echo=$ac_try;; 8025esac 8026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8027 (eval "$ac_link") 2>conftest.er1 8028 ac_status=$? 8029 grep -v '^ *+' conftest.er1 >conftest.err 8030 rm -f conftest.er1 8031 cat conftest.err >&5 8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8033 (exit $ac_status); } && 8034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8035 { (case "(($ac_try" in 8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8037 *) ac_try_echo=$ac_try;; 8038esac 8039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8040 (eval "$ac_try") 2>&5 8041 ac_status=$? 8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8043 (exit $ac_status); }; } && 8044 { ac_try='test -s conftest$ac_exeext' 8045 { (case "(($ac_try" in 8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8047 *) ac_try_echo=$ac_try;; 8048esac 8049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8050 (eval "$ac_try") 2>&5 8051 ac_status=$? 8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8053 (exit $ac_status); }; }; then 8054 llvm_cv_link_use_export_dynamic=yes 8055else 8056 echo "$as_me: failed program was:" >&5 8057sed 's/^/| /' conftest.$ac_ext >&5 8058 8059 llvm_cv_link_use_export_dynamic=no 8060fi 8061 8062rm -f core conftest.err conftest.$ac_objext \ 8063 conftest$ac_exeext conftest.$ac_ext 8064 CFLAGS="$oldcflags" 8065 ac_ext=c 8066ac_cpp='$CPP $CPPFLAGS' 8067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8069ac_compiler_gnu=$ac_cv_c_compiler_gnu 8070 8071 8072fi 8073{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 8074echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 8075if test "$llvm_cv_link_use_export_dynamic" = yes ; then 8076 8077cat >>confdefs.h <<\_ACEOF 8078#define HAVE_LINK_EXPORT_DYNAMIC 1 8079_ACEOF 8080 8081 fi 8082 8083 8084{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 8085echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 8086if test "${llvm_cv_link_use_version_script+set}" = set; then 8087 echo $ECHO_N "(cached) $ECHO_C" >&6 8088else 8089 ac_ext=c 8090ac_cpp='$CPP $CPPFLAGS' 8091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8093ac_compiler_gnu=$ac_cv_c_compiler_gnu 8094 8095 oldcflags="$CFLAGS" 8096 8097 # The following code is from the autoconf manual, 8098 # "11.13: Limitations of Usual Tools". 8099 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 8100 # Use mktemp if possible; otherwise fall back on mkdir, 8101 # with $RANDOM to make collisions less likely. 8102 : ${TMPDIR=/tmp} 8103 { 8104 tmp=` 8105 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 8106 ` && 8107 test -n "$tmp" && test -d "$tmp" 8108 } || { 8109 tmp=$TMPDIR/foo$$-$RANDOM 8110 (umask 077 && mkdir "$tmp") 8111 } || exit $? 8112 8113 echo "{" > "$tmp/export.map" 8114 echo " global: main;" >> "$tmp/export.map" 8115 echo " local: *;" >> "$tmp/export.map" 8116 echo "};" >> "$tmp/export.map" 8117 8118 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 8119 cat >conftest.$ac_ext <<_ACEOF 8120/* confdefs.h. */ 8121_ACEOF 8122cat confdefs.h >>conftest.$ac_ext 8123cat >>conftest.$ac_ext <<_ACEOF 8124/* end confdefs.h. */ 8125 8126int 8127main () 8128{ 8129 8130 ; 8131 return 0; 8132} 8133_ACEOF 8134rm -f conftest.$ac_objext conftest$ac_exeext 8135if { (ac_try="$ac_link" 8136case "(($ac_try" in 8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8138 *) ac_try_echo=$ac_try;; 8139esac 8140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8141 (eval "$ac_link") 2>conftest.er1 8142 ac_status=$? 8143 grep -v '^ *+' conftest.er1 >conftest.err 8144 rm -f conftest.er1 8145 cat conftest.err >&5 8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8147 (exit $ac_status); } && 8148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8149 { (case "(($ac_try" in 8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8151 *) ac_try_echo=$ac_try;; 8152esac 8153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8154 (eval "$ac_try") 2>&5 8155 ac_status=$? 8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8157 (exit $ac_status); }; } && 8158 { ac_try='test -s conftest$ac_exeext' 8159 { (case "(($ac_try" in 8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8161 *) ac_try_echo=$ac_try;; 8162esac 8163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8164 (eval "$ac_try") 2>&5 8165 ac_status=$? 8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8167 (exit $ac_status); }; }; then 8168 llvm_cv_link_use_version_script=yes 8169else 8170 echo "$as_me: failed program was:" >&5 8171sed 's/^/| /' conftest.$ac_ext >&5 8172 8173 llvm_cv_link_use_version_script=no 8174fi 8175 8176rm -f core conftest.err conftest.$ac_objext \ 8177 conftest$ac_exeext conftest.$ac_ext 8178 rm "$tmp/export.map" 8179 rmdir "$tmp" 8180 CFLAGS="$oldcflags" 8181 ac_ext=c 8182ac_cpp='$CPP $CPPFLAGS' 8183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8185ac_compiler_gnu=$ac_cv_c_compiler_gnu 8186 8187 8188fi 8189{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 8190echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 8191if test "$llvm_cv_link_use_version_script" = yes ; then 8192 HAVE_LINK_VERSION_SCRIPT=1 8193 8194 fi 8195 8196 8197 8198 8199{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8200echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 8201if test "${ac_cv_c_const+set}" = set; then 8202 echo $ECHO_N "(cached) $ECHO_C" >&6 8203else 8204 cat >conftest.$ac_ext <<_ACEOF 8205/* confdefs.h. */ 8206_ACEOF 8207cat confdefs.h >>conftest.$ac_ext 8208cat >>conftest.$ac_ext <<_ACEOF 8209/* end confdefs.h. */ 8210 8211int 8212main () 8213{ 8214/* FIXME: Include the comments suggested by Paul. */ 8215#ifndef __cplusplus 8216 /* Ultrix mips cc rejects this. */ 8217 typedef int charset[2]; 8218 const charset x; 8219 /* SunOS 4.1.1 cc rejects this. */ 8220 char const *const *ccp; 8221 char **p; 8222 /* NEC SVR4.0.2 mips cc rejects this. */ 8223 struct point {int x, y;}; 8224 static struct point const zero = {0,0}; 8225 /* AIX XL C 1.02.0.0 rejects this. 8226 It does not let you subtract one const X* pointer from another in 8227 an arm of an if-expression whose if-part is not a constant 8228 expression */ 8229 const char *g = "string"; 8230 ccp = &g + (g ? g-g : 0); 8231 /* HPUX 7.0 cc rejects these. */ 8232 ++ccp; 8233 p = (char**) ccp; 8234 ccp = (char const *const *) p; 8235 { /* SCO 3.2v4 cc rejects this. */ 8236 char *t; 8237 char const *s = 0 ? (char *) 0 : (char const *) 0; 8238 8239 *t++ = 0; 8240 if (s) return 0; 8241 } 8242 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8243 int x[] = {25, 17}; 8244 const int *foo = &x[0]; 8245 ++foo; 8246 } 8247 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8248 typedef const int *iptr; 8249 iptr p = 0; 8250 ++p; 8251 } 8252 { /* AIX XL C 1.02.0.0 rejects this saying 8253 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8254 struct s { int j; const int *ap[3]; }; 8255 struct s *b; b->j = 5; 8256 } 8257 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8258 const int foo = 10; 8259 if (!foo) return 0; 8260 } 8261 return !x[0] && !zero.x; 8262#endif 8263 8264 ; 8265 return 0; 8266} 8267_ACEOF 8268rm -f conftest.$ac_objext 8269if { (ac_try="$ac_compile" 8270case "(($ac_try" in 8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8272 *) ac_try_echo=$ac_try;; 8273esac 8274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8275 (eval "$ac_compile") 2>conftest.er1 8276 ac_status=$? 8277 grep -v '^ *+' conftest.er1 >conftest.err 8278 rm -f conftest.er1 8279 cat conftest.err >&5 8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8281 (exit $ac_status); } && 8282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8283 { (case "(($ac_try" in 8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8285 *) ac_try_echo=$ac_try;; 8286esac 8287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8288 (eval "$ac_try") 2>&5 8289 ac_status=$? 8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8291 (exit $ac_status); }; } && 8292 { ac_try='test -s conftest.$ac_objext' 8293 { (case "(($ac_try" in 8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8295 *) ac_try_echo=$ac_try;; 8296esac 8297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8298 (eval "$ac_try") 2>&5 8299 ac_status=$? 8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8301 (exit $ac_status); }; }; then 8302 ac_cv_c_const=yes 8303else 8304 echo "$as_me: failed program was:" >&5 8305sed 's/^/| /' conftest.$ac_ext >&5 8306 8307 ac_cv_c_const=no 8308fi 8309 8310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8311fi 8312{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8313echo "${ECHO_T}$ac_cv_c_const" >&6; } 8314if test $ac_cv_c_const = no; then 8315 8316cat >>confdefs.h <<\_ACEOF 8317#define const 8318_ACEOF 8319 8320fi 8321 8322 8323 8324 8325 8326 8327ac_header_dirent=no 8328for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8329 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8330{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8331echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8333 echo $ECHO_N "(cached) $ECHO_C" >&6 8334else 8335 cat >conftest.$ac_ext <<_ACEOF 8336/* confdefs.h. */ 8337_ACEOF 8338cat confdefs.h >>conftest.$ac_ext 8339cat >>conftest.$ac_ext <<_ACEOF 8340/* end confdefs.h. */ 8341#include <sys/types.h> 8342#include <$ac_hdr> 8343 8344int 8345main () 8346{ 8347if ((DIR *) 0) 8348return 0; 8349 ; 8350 return 0; 8351} 8352_ACEOF 8353rm -f conftest.$ac_objext 8354if { (ac_try="$ac_compile" 8355case "(($ac_try" in 8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8357 *) ac_try_echo=$ac_try;; 8358esac 8359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8360 (eval "$ac_compile") 2>conftest.er1 8361 ac_status=$? 8362 grep -v '^ *+' conftest.er1 >conftest.err 8363 rm -f conftest.er1 8364 cat conftest.err >&5 8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8366 (exit $ac_status); } && 8367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8368 { (case "(($ac_try" in 8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8370 *) ac_try_echo=$ac_try;; 8371esac 8372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8373 (eval "$ac_try") 2>&5 8374 ac_status=$? 8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8376 (exit $ac_status); }; } && 8377 { ac_try='test -s conftest.$ac_objext' 8378 { (case "(($ac_try" in 8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8380 *) ac_try_echo=$ac_try;; 8381esac 8382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8383 (eval "$ac_try") 2>&5 8384 ac_status=$? 8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8386 (exit $ac_status); }; }; then 8387 eval "$as_ac_Header=yes" 8388else 8389 echo "$as_me: failed program was:" >&5 8390sed 's/^/| /' conftest.$ac_ext >&5 8391 8392 eval "$as_ac_Header=no" 8393fi 8394 8395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8396fi 8397ac_res=`eval echo '${'$as_ac_Header'}'` 8398 { echo "$as_me:$LINENO: result: $ac_res" >&5 8399echo "${ECHO_T}$ac_res" >&6; } 8400if test `eval echo '${'$as_ac_Header'}'` = yes; then 8401 cat >>confdefs.h <<_ACEOF 8402#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8403_ACEOF 8404 8405ac_header_dirent=$ac_hdr; break 8406fi 8407 8408done 8409# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8410if test $ac_header_dirent = dirent.h; then 8411 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8412echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8413if test "${ac_cv_search_opendir+set}" = set; then 8414 echo $ECHO_N "(cached) $ECHO_C" >&6 8415else 8416 ac_func_search_save_LIBS=$LIBS 8417cat >conftest.$ac_ext <<_ACEOF 8418/* confdefs.h. */ 8419_ACEOF 8420cat confdefs.h >>conftest.$ac_ext 8421cat >>conftest.$ac_ext <<_ACEOF 8422/* end confdefs.h. */ 8423 8424/* Override any GCC internal prototype to avoid an error. 8425 Use char because int might match the return type of a GCC 8426 builtin and then its argument prototype would still apply. */ 8427#ifdef __cplusplus 8428extern "C" 8429#endif 8430char opendir (); 8431int 8432main () 8433{ 8434return opendir (); 8435 ; 8436 return 0; 8437} 8438_ACEOF 8439for ac_lib in '' dir; do 8440 if test -z "$ac_lib"; then 8441 ac_res="none required" 8442 else 8443 ac_res=-l$ac_lib 8444 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8445 fi 8446 rm -f conftest.$ac_objext conftest$ac_exeext 8447if { (ac_try="$ac_link" 8448case "(($ac_try" in 8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8450 *) ac_try_echo=$ac_try;; 8451esac 8452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8453 (eval "$ac_link") 2>conftest.er1 8454 ac_status=$? 8455 grep -v '^ *+' conftest.er1 >conftest.err 8456 rm -f conftest.er1 8457 cat conftest.err >&5 8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8459 (exit $ac_status); } && 8460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8461 { (case "(($ac_try" in 8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8463 *) ac_try_echo=$ac_try;; 8464esac 8465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8466 (eval "$ac_try") 2>&5 8467 ac_status=$? 8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8469 (exit $ac_status); }; } && 8470 { ac_try='test -s conftest$ac_exeext' 8471 { (case "(($ac_try" in 8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8473 *) ac_try_echo=$ac_try;; 8474esac 8475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8476 (eval "$ac_try") 2>&5 8477 ac_status=$? 8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8479 (exit $ac_status); }; }; then 8480 ac_cv_search_opendir=$ac_res 8481else 8482 echo "$as_me: failed program was:" >&5 8483sed 's/^/| /' conftest.$ac_ext >&5 8484 8485 8486fi 8487 8488rm -f core conftest.err conftest.$ac_objext \ 8489 conftest$ac_exeext 8490 if test "${ac_cv_search_opendir+set}" = set; then 8491 break 8492fi 8493done 8494if test "${ac_cv_search_opendir+set}" = set; then 8495 : 8496else 8497 ac_cv_search_opendir=no 8498fi 8499rm conftest.$ac_ext 8500LIBS=$ac_func_search_save_LIBS 8501fi 8502{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8503echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8504ac_res=$ac_cv_search_opendir 8505if test "$ac_res" != no; then 8506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8507 8508fi 8509 8510else 8511 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8512echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8513if test "${ac_cv_search_opendir+set}" = set; then 8514 echo $ECHO_N "(cached) $ECHO_C" >&6 8515else 8516 ac_func_search_save_LIBS=$LIBS 8517cat >conftest.$ac_ext <<_ACEOF 8518/* confdefs.h. */ 8519_ACEOF 8520cat confdefs.h >>conftest.$ac_ext 8521cat >>conftest.$ac_ext <<_ACEOF 8522/* end confdefs.h. */ 8523 8524/* Override any GCC internal prototype to avoid an error. 8525 Use char because int might match the return type of a GCC 8526 builtin and then its argument prototype would still apply. */ 8527#ifdef __cplusplus 8528extern "C" 8529#endif 8530char opendir (); 8531int 8532main () 8533{ 8534return opendir (); 8535 ; 8536 return 0; 8537} 8538_ACEOF 8539for ac_lib in '' x; do 8540 if test -z "$ac_lib"; then 8541 ac_res="none required" 8542 else 8543 ac_res=-l$ac_lib 8544 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8545 fi 8546 rm -f conftest.$ac_objext conftest$ac_exeext 8547if { (ac_try="$ac_link" 8548case "(($ac_try" in 8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8550 *) ac_try_echo=$ac_try;; 8551esac 8552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8553 (eval "$ac_link") 2>conftest.er1 8554 ac_status=$? 8555 grep -v '^ *+' conftest.er1 >conftest.err 8556 rm -f conftest.er1 8557 cat conftest.err >&5 8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8559 (exit $ac_status); } && 8560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8561 { (case "(($ac_try" in 8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8563 *) ac_try_echo=$ac_try;; 8564esac 8565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8566 (eval "$ac_try") 2>&5 8567 ac_status=$? 8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8569 (exit $ac_status); }; } && 8570 { ac_try='test -s conftest$ac_exeext' 8571 { (case "(($ac_try" in 8572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8573 *) ac_try_echo=$ac_try;; 8574esac 8575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8576 (eval "$ac_try") 2>&5 8577 ac_status=$? 8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8579 (exit $ac_status); }; }; then 8580 ac_cv_search_opendir=$ac_res 8581else 8582 echo "$as_me: failed program was:" >&5 8583sed 's/^/| /' conftest.$ac_ext >&5 8584 8585 8586fi 8587 8588rm -f core conftest.err conftest.$ac_objext \ 8589 conftest$ac_exeext 8590 if test "${ac_cv_search_opendir+set}" = set; then 8591 break 8592fi 8593done 8594if test "${ac_cv_search_opendir+set}" = set; then 8595 : 8596else 8597 ac_cv_search_opendir=no 8598fi 8599rm conftest.$ac_ext 8600LIBS=$ac_func_search_save_LIBS 8601fi 8602{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8603echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8604ac_res=$ac_cv_search_opendir 8605if test "$ac_res" != no; then 8606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8607 8608fi 8609 8610fi 8611 8612 8613for ac_header in dlfcn.h 8614do 8615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8617 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8620 echo $ECHO_N "(cached) $ECHO_C" >&6 8621fi 8622ac_res=`eval echo '${'$as_ac_Header'}'` 8623 { echo "$as_me:$LINENO: result: $ac_res" >&5 8624echo "${ECHO_T}$ac_res" >&6; } 8625else 8626 # Is the header compilable? 8627{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8629cat >conftest.$ac_ext <<_ACEOF 8630/* confdefs.h. */ 8631_ACEOF 8632cat confdefs.h >>conftest.$ac_ext 8633cat >>conftest.$ac_ext <<_ACEOF 8634/* end confdefs.h. */ 8635$ac_includes_default 8636#include <$ac_header> 8637_ACEOF 8638rm -f conftest.$ac_objext 8639if { (ac_try="$ac_compile" 8640case "(($ac_try" in 8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8642 *) ac_try_echo=$ac_try;; 8643esac 8644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8645 (eval "$ac_compile") 2>conftest.er1 8646 ac_status=$? 8647 grep -v '^ *+' conftest.er1 >conftest.err 8648 rm -f conftest.er1 8649 cat conftest.err >&5 8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8651 (exit $ac_status); } && 8652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8653 { (case "(($ac_try" in 8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8655 *) ac_try_echo=$ac_try;; 8656esac 8657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8658 (eval "$ac_try") 2>&5 8659 ac_status=$? 8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8661 (exit $ac_status); }; } && 8662 { ac_try='test -s conftest.$ac_objext' 8663 { (case "(($ac_try" in 8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8665 *) ac_try_echo=$ac_try;; 8666esac 8667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8668 (eval "$ac_try") 2>&5 8669 ac_status=$? 8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8671 (exit $ac_status); }; }; then 8672 ac_header_compiler=yes 8673else 8674 echo "$as_me: failed program was:" >&5 8675sed 's/^/| /' conftest.$ac_ext >&5 8676 8677 ac_header_compiler=no 8678fi 8679 8680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8681{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8682echo "${ECHO_T}$ac_header_compiler" >&6; } 8683 8684# Is the header present? 8685{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8686echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8687cat >conftest.$ac_ext <<_ACEOF 8688/* confdefs.h. */ 8689_ACEOF 8690cat confdefs.h >>conftest.$ac_ext 8691cat >>conftest.$ac_ext <<_ACEOF 8692/* end confdefs.h. */ 8693#include <$ac_header> 8694_ACEOF 8695if { (ac_try="$ac_cpp conftest.$ac_ext" 8696case "(($ac_try" in 8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8698 *) ac_try_echo=$ac_try;; 8699esac 8700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8702 ac_status=$? 8703 grep -v '^ *+' conftest.er1 >conftest.err 8704 rm -f conftest.er1 8705 cat conftest.err >&5 8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8707 (exit $ac_status); } >/dev/null; then 8708 if test -s conftest.err; then 8709 ac_cpp_err=$ac_c_preproc_warn_flag 8710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8711 else 8712 ac_cpp_err= 8713 fi 8714else 8715 ac_cpp_err=yes 8716fi 8717if test -z "$ac_cpp_err"; then 8718 ac_header_preproc=yes 8719else 8720 echo "$as_me: failed program was:" >&5 8721sed 's/^/| /' conftest.$ac_ext >&5 8722 8723 ac_header_preproc=no 8724fi 8725 8726rm -f conftest.err conftest.$ac_ext 8727{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8728echo "${ECHO_T}$ac_header_preproc" >&6; } 8729 8730# So? What about this header? 8731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8732 yes:no: ) 8733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8737 ac_header_preproc=yes 8738 ;; 8739 no:yes:* ) 8740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8752 ( cat <<\_ASBOX 8753## ------------------------------------ ## 8754## Report this to http://llvm.org/bugs/ ## 8755## ------------------------------------ ## 8756_ASBOX 8757 ) | sed "s/^/$as_me: WARNING: /" >&2 8758 ;; 8759esac 8760{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8763 echo $ECHO_N "(cached) $ECHO_C" >&6 8764else 8765 eval "$as_ac_Header=\$ac_header_preproc" 8766fi 8767ac_res=`eval echo '${'$as_ac_Header'}'` 8768 { echo "$as_me:$LINENO: result: $ac_res" >&5 8769echo "${ECHO_T}$ac_res" >&6; } 8770 8771fi 8772if test `eval echo '${'$as_ac_Header'}'` = yes; then 8773 cat >>confdefs.h <<_ACEOF 8774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8775_ACEOF 8776 8777fi 8778 8779done 8780 8781# Check whether --enable-ltdl-install was given. 8782if test "${enable_ltdl_install+set}" = set; then 8783 enableval=$enable_ltdl_install; 8784fi 8785 8786 8787 8788 8789if test x"${enable_ltdl_install-no}" != xno; then 8790 INSTALL_LTDL_TRUE= 8791 INSTALL_LTDL_FALSE='#' 8792else 8793 INSTALL_LTDL_TRUE='#' 8794 INSTALL_LTDL_FALSE= 8795fi 8796 8797 8798 8799if test x"${enable_ltdl_convenience-no}" != xno; then 8800 CONVENIENCE_LTDL_TRUE= 8801 CONVENIENCE_LTDL_FALSE='#' 8802else 8803 CONVENIENCE_LTDL_TRUE='#' 8804 CONVENIENCE_LTDL_FALSE= 8805fi 8806 8807 8808{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8809echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8810library_names_spec= 8811libname_spec='lib$name' 8812soname_spec= 8813shrext_cmds=".so" 8814postinstall_cmds= 8815postuninstall_cmds= 8816finish_cmds= 8817finish_eval= 8818shlibpath_var= 8819shlibpath_overrides_runpath=unknown 8820version_type=none 8821dynamic_linker="$host_os ld.so" 8822sys_lib_dlsearch_path_spec="/lib /usr/lib" 8823if test "$GCC" = yes; then 8824 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8825 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8826 # if the path contains ";" then we assume it to be the separator 8827 # otherwise default to the standard path separator (i.e. ":") - it is 8828 # assumed that no part of a normal pathname contains ";" but that should 8829 # okay in the real world where ";" in dirpaths is itself problematic. 8830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8831 else 8832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8833 fi 8834else 8835 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8836fi 8837need_lib_prefix=unknown 8838hardcode_into_libs=no 8839 8840# when you set need_version to no, make sure it does not cause -set_version 8841# flags to be left without arguments 8842need_version=unknown 8843 8844case $host_os in 8845aix3*) 8846 version_type=linux 8847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8848 shlibpath_var=LIBPATH 8849 8850 # AIX 3 has no versioning support, so we append a major version to the name. 8851 soname_spec='${libname}${release}${shared_ext}$major' 8852 ;; 8853 8854aix4* | aix5*) 8855 version_type=linux 8856 need_lib_prefix=no 8857 need_version=no 8858 hardcode_into_libs=yes 8859 if test "$host_cpu" = ia64; then 8860 # AIX 5 supports IA64 8861 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8862 shlibpath_var=LD_LIBRARY_PATH 8863 else 8864 # With GCC up to 2.95.x, collect2 would create an import file 8865 # for dependence libraries. The import file would start with 8866 # the line `#! .'. This would cause the generated library to 8867 # depend on `.', always an invalid library. This was fixed in 8868 # development snapshots of GCC prior to 3.0. 8869 case $host_os in 8870 aix4 | aix4.[01] | aix4.[01].*) 8871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8872 echo ' yes ' 8873 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8874 : 8875 else 8876 can_build_shared=no 8877 fi 8878 ;; 8879 esac 8880 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8881 # soname into executable. Probably we can add versioning support to 8882 # collect2, so additional links can be useful in future. 8883 if test "$aix_use_runtimelinking" = yes; then 8884 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8885 # instead of lib<name>.a to let people know that these are not 8886 # typical AIX shared libraries. 8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8888 else 8889 # We preserve .a as extension for shared libraries through AIX4.2 8890 # and later when we are not doing run time linking. 8891 library_names_spec='${libname}${release}.a $libname.a' 8892 soname_spec='${libname}${release}${shared_ext}$major' 8893 fi 8894 shlibpath_var=LIBPATH 8895 fi 8896 ;; 8897 8898amigaos*) 8899 library_names_spec='$libname.ixlibrary $libname.a' 8900 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8901 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' 8902 ;; 8903 8904beos*) 8905 library_names_spec='${libname}${shared_ext}' 8906 dynamic_linker="$host_os ld.so" 8907 shlibpath_var=LIBRARY_PATH 8908 ;; 8909 8910bsdi[45]*) 8911 version_type=linux 8912 need_version=no 8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8914 soname_spec='${libname}${release}${shared_ext}$major' 8915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8916 shlibpath_var=LD_LIBRARY_PATH 8917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8919 # the default ld.so.conf also contains /usr/contrib/lib and 8920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8921 # libtool to hard-code these into programs 8922 ;; 8923 8924cygwin* | mingw* | pw32*) 8925 version_type=windows 8926 shrext_cmds=".dll" 8927 need_version=no 8928 need_lib_prefix=no 8929 8930 case $GCC,$host_os in 8931 yes,cygwin* | yes,mingw* | yes,pw32*) 8932 library_names_spec='$libname.dll.a' 8933 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8934 postinstall_cmds='base_file=`basename \${file}`~ 8935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8936 dldir=$destdir/`dirname \$dlpath`~ 8937 test -d \$dldir || mkdir -p \$dldir~ 8938 $install_prog $dir/$dlname \$dldir/$dlname~ 8939 chmod a+x \$dldir/$dlname' 8940 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8941 dlpath=$dir/\$dldll~ 8942 $rm \$dlpath' 8943 shlibpath_overrides_runpath=yes 8944 8945 case $host_os in 8946 cygwin*) 8947 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8948 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8949 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8950 ;; 8951 mingw*) 8952 # MinGW DLLs use traditional 'lib' prefix 8953 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8954 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8955 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8956 # It is most probably a Windows format PATH printed by 8957 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8958 # path with ; separators, and with drive letters. We can handle the 8959 # drive letters (cygwin fileutils understands them), so leave them, 8960 # especially as we might pass files found there to a mingw objdump, 8961 # which wouldn't understand a cygwinified path. Ahh. 8962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8963 else 8964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8965 fi 8966 ;; 8967 pw32*) 8968 # pw32 DLLs use 'pw' prefix rather than 'lib' 8969 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8970 ;; 8971 esac 8972 ;; 8973 8974 *) 8975 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8976 ;; 8977 esac 8978 dynamic_linker='Win32 ld.exe' 8979 # FIXME: first we should search . and the directory the executable is in 8980 shlibpath_var=PATH 8981 ;; 8982 8983darwin* | rhapsody*) 8984 dynamic_linker="$host_os dyld" 8985 version_type=darwin 8986 need_lib_prefix=no 8987 need_version=no 8988 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8989 soname_spec='${libname}${release}${major}$shared_ext' 8990 shlibpath_overrides_runpath=yes 8991 shlibpath_var=DYLD_LIBRARY_PATH 8992 shrext_cmds='.dylib' 8993 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8994 if test "$GCC" = yes; then 8995 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"` 8996 else 8997 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8998 fi 8999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9000 ;; 9001 9002dgux*) 9003 version_type=linux 9004 need_lib_prefix=no 9005 need_version=no 9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9007 soname_spec='${libname}${release}${shared_ext}$major' 9008 shlibpath_var=LD_LIBRARY_PATH 9009 ;; 9010 9011freebsd1.*) 9012 dynamic_linker=no 9013 ;; 9014 9015kfreebsd*-gnu) 9016 version_type=linux 9017 need_lib_prefix=no 9018 need_version=no 9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9020 soname_spec='${libname}${release}${shared_ext}$major' 9021 shlibpath_var=LD_LIBRARY_PATH 9022 shlibpath_overrides_runpath=no 9023 hardcode_into_libs=yes 9024 dynamic_linker='GNU ld.so' 9025 ;; 9026 9027freebsd* | dragonfly*) 9028 # DragonFly does not have aout. When/if they implement a new 9029 # versioning mechanism, adjust this. 9030 if test -x /usr/bin/objformat; then 9031 objformat=`/usr/bin/objformat` 9032 else 9033 case $host_os in 9034 freebsd[123].*) objformat=aout ;; 9035 *) objformat=elf ;; 9036 esac 9037 fi 9038 version_type=freebsd-$objformat 9039 case $version_type in 9040 freebsd-elf*) 9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9042 need_version=no 9043 need_lib_prefix=no 9044 ;; 9045 freebsd-*) 9046 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9047 need_version=yes 9048 ;; 9049 esac 9050 shlibpath_var=LD_LIBRARY_PATH 9051 case $host_os in 9052 freebsd2.*) 9053 shlibpath_overrides_runpath=yes 9054 ;; 9055 freebsd3.[01]* | freebsdelf3.[01]*) 9056 shlibpath_overrides_runpath=yes 9057 hardcode_into_libs=yes 9058 ;; 9059 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9060 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9061 shlibpath_overrides_runpath=no 9062 hardcode_into_libs=yes 9063 ;; 9064 freebsd*) # from 4.6 on 9065 shlibpath_overrides_runpath=yes 9066 hardcode_into_libs=yes 9067 ;; 9068 esac 9069 ;; 9070 9071gnu*) 9072 version_type=linux 9073 need_lib_prefix=no 9074 need_version=no 9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9076 soname_spec='${libname}${release}${shared_ext}$major' 9077 shlibpath_var=LD_LIBRARY_PATH 9078 hardcode_into_libs=yes 9079 ;; 9080 9081hpux9* | hpux10* | hpux11*) 9082 # Give a soname corresponding to the major version so that dld.sl refuses to 9083 # link against other versions. 9084 version_type=sunos 9085 need_lib_prefix=no 9086 need_version=no 9087 case $host_cpu in 9088 ia64*) 9089 shrext_cmds='.so' 9090 hardcode_into_libs=yes 9091 dynamic_linker="$host_os dld.so" 9092 shlibpath_var=LD_LIBRARY_PATH 9093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9095 soname_spec='${libname}${release}${shared_ext}$major' 9096 if test "X$HPUX_IA64_MODE" = X32; then 9097 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9098 else 9099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9100 fi 9101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9102 ;; 9103 hppa*64*) 9104 shrext_cmds='.sl' 9105 hardcode_into_libs=yes 9106 dynamic_linker="$host_os dld.sl" 9107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9110 soname_spec='${libname}${release}${shared_ext}$major' 9111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9113 ;; 9114 *) 9115 shrext_cmds='.sl' 9116 dynamic_linker="$host_os dld.sl" 9117 shlibpath_var=SHLIB_PATH 9118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9120 soname_spec='${libname}${release}${shared_ext}$major' 9121 ;; 9122 esac 9123 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9124 postinstall_cmds='chmod 555 $lib' 9125 ;; 9126 9127interix3*) 9128 version_type=linux 9129 need_lib_prefix=no 9130 need_version=no 9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9132 soname_spec='${libname}${release}${shared_ext}$major' 9133 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9134 shlibpath_var=LD_LIBRARY_PATH 9135 shlibpath_overrides_runpath=no 9136 hardcode_into_libs=yes 9137 ;; 9138 9139irix5* | irix6* | nonstopux*) 9140 case $host_os in 9141 nonstopux*) version_type=nonstopux ;; 9142 *) 9143 if test "$lt_cv_prog_gnu_ld" = yes; then 9144 version_type=linux 9145 else 9146 version_type=irix 9147 fi ;; 9148 esac 9149 need_lib_prefix=no 9150 need_version=no 9151 soname_spec='${libname}${release}${shared_ext}$major' 9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9153 case $host_os in 9154 irix5* | nonstopux*) 9155 libsuff= shlibsuff= 9156 ;; 9157 *) 9158 case $LD in # libtool.m4 will add one of these switches to LD 9159 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9160 libsuff= shlibsuff= libmagic=32-bit;; 9161 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9162 libsuff=32 shlibsuff=N32 libmagic=N32;; 9163 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9164 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9165 *) libsuff= shlibsuff= libmagic=never-match;; 9166 esac 9167 ;; 9168 esac 9169 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9170 shlibpath_overrides_runpath=no 9171 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9172 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9173 hardcode_into_libs=yes 9174 ;; 9175 9176# No shared lib support for Linux oldld, aout, or coff. 9177linux*oldld* | linux*aout* | linux*coff*) 9178 dynamic_linker=no 9179 ;; 9180 9181# This must be Linux ELF. 9182linux*) 9183 version_type=linux 9184 need_lib_prefix=no 9185 need_version=no 9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9187 soname_spec='${libname}${release}${shared_ext}$major' 9188 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9189 shlibpath_var=LD_LIBRARY_PATH 9190 shlibpath_overrides_runpath=no 9191 # This implies no fast_install, which is unacceptable. 9192 # Some rework will be needed to allow for fast_install 9193 # before this can be enabled. 9194 hardcode_into_libs=yes 9195 9196 # Append ld.so.conf contents to the search path 9197 if test -f /etc/ld.so.conf; then 9198 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' ' '` 9199 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9200 fi 9201 9202 # We used to test for /lib/ld.so.1 and disable shared libraries on 9203 # powerpc, because MkLinux only supported shared libraries with the 9204 # GNU dynamic linker. Since this was broken with cross compilers, 9205 # most powerpc-linux boxes support dynamic linking these days and 9206 # people can always --disable-shared, the test was removed, and we 9207 # assume the GNU/Linux dynamic linker is in use. 9208 dynamic_linker='GNU/Linux ld.so' 9209 ;; 9210 9211knetbsd*-gnu) 9212 version_type=linux 9213 need_lib_prefix=no 9214 need_version=no 9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9216 soname_spec='${libname}${release}${shared_ext}$major' 9217 shlibpath_var=LD_LIBRARY_PATH 9218 shlibpath_overrides_runpath=no 9219 hardcode_into_libs=yes 9220 dynamic_linker='GNU ld.so' 9221 ;; 9222 9223netbsd*) 9224 version_type=sunos 9225 need_lib_prefix=no 9226 need_version=no 9227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9229 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9230 dynamic_linker='NetBSD (a.out) ld.so' 9231 else 9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9233 soname_spec='${libname}${release}${shared_ext}$major' 9234 dynamic_linker='NetBSD ld.elf_so' 9235 fi 9236 shlibpath_var=LD_LIBRARY_PATH 9237 shlibpath_overrides_runpath=yes 9238 hardcode_into_libs=yes 9239 ;; 9240 9241newsos6) 9242 version_type=linux 9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9244 shlibpath_var=LD_LIBRARY_PATH 9245 shlibpath_overrides_runpath=yes 9246 ;; 9247 9248nto-qnx*) 9249 version_type=linux 9250 need_lib_prefix=no 9251 need_version=no 9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9253 soname_spec='${libname}${release}${shared_ext}$major' 9254 shlibpath_var=LD_LIBRARY_PATH 9255 shlibpath_overrides_runpath=yes 9256 ;; 9257 9258openbsd* | bitrig*) 9259 version_type=sunos 9260 sys_lib_dlsearch_path_spec="/usr/lib" 9261 need_lib_prefix=no 9262 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9263 case $host_os in 9264 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9265 *) need_version=no ;; 9266 esac 9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9269 shlibpath_var=LD_LIBRARY_PATH 9270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9271 case $host_os in 9272 openbsd2.[89] | openbsd2.[89].*) 9273 shlibpath_overrides_runpath=no 9274 ;; 9275 *) 9276 shlibpath_overrides_runpath=yes 9277 ;; 9278 esac 9279 else 9280 shlibpath_overrides_runpath=yes 9281 fi 9282 ;; 9283 9284os2*) 9285 libname_spec='$name' 9286 shrext_cmds=".dll" 9287 need_lib_prefix=no 9288 library_names_spec='$libname${shared_ext} $libname.a' 9289 dynamic_linker='OS/2 ld.exe' 9290 shlibpath_var=LIBPATH 9291 ;; 9292 9293osf3* | osf4* | osf5*) 9294 version_type=osf 9295 need_lib_prefix=no 9296 need_version=no 9297 soname_spec='${libname}${release}${shared_ext}$major' 9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9299 shlibpath_var=LD_LIBRARY_PATH 9300 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9301 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9302 ;; 9303 9304solaris*) 9305 version_type=linux 9306 need_lib_prefix=no 9307 need_version=no 9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9309 soname_spec='${libname}${release}${shared_ext}$major' 9310 shlibpath_var=LD_LIBRARY_PATH 9311 shlibpath_overrides_runpath=yes 9312 hardcode_into_libs=yes 9313 # ldd complains unless libraries are executable 9314 postinstall_cmds='chmod +x $lib' 9315 ;; 9316 9317sunos4*) 9318 version_type=sunos 9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9321 shlibpath_var=LD_LIBRARY_PATH 9322 shlibpath_overrides_runpath=yes 9323 if test "$with_gnu_ld" = yes; then 9324 need_lib_prefix=no 9325 fi 9326 need_version=yes 9327 ;; 9328 9329sysv4 | sysv4.3*) 9330 version_type=linux 9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9332 soname_spec='${libname}${release}${shared_ext}$major' 9333 shlibpath_var=LD_LIBRARY_PATH 9334 case $host_vendor in 9335 sni) 9336 shlibpath_overrides_runpath=no 9337 need_lib_prefix=no 9338 export_dynamic_flag_spec='${wl}-Blargedynsym' 9339 runpath_var=LD_RUN_PATH 9340 ;; 9341 siemens) 9342 need_lib_prefix=no 9343 ;; 9344 motorola) 9345 need_lib_prefix=no 9346 need_version=no 9347 shlibpath_overrides_runpath=no 9348 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9349 ;; 9350 esac 9351 ;; 9352 9353sysv4*MP*) 9354 if test -d /usr/nec ;then 9355 version_type=linux 9356 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9357 soname_spec='$libname${shared_ext}.$major' 9358 shlibpath_var=LD_LIBRARY_PATH 9359 fi 9360 ;; 9361 9362sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9363 version_type=freebsd-elf 9364 need_lib_prefix=no 9365 need_version=no 9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9367 soname_spec='${libname}${release}${shared_ext}$major' 9368 shlibpath_var=LD_LIBRARY_PATH 9369 hardcode_into_libs=yes 9370 if test "$with_gnu_ld" = yes; then 9371 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9372 shlibpath_overrides_runpath=no 9373 else 9374 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9375 shlibpath_overrides_runpath=yes 9376 case $host_os in 9377 sco3.2v5*) 9378 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9379 ;; 9380 esac 9381 fi 9382 sys_lib_dlsearch_path_spec='/usr/lib' 9383 ;; 9384 9385uts4*) 9386 version_type=linux 9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9388 soname_spec='${libname}${release}${shared_ext}$major' 9389 shlibpath_var=LD_LIBRARY_PATH 9390 ;; 9391 9392*) 9393 dynamic_linker=no 9394 ;; 9395esac 9396{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9397echo "${ECHO_T}$dynamic_linker" >&6; } 9398test "$dynamic_linker" = no && can_build_shared=no 9399 9400variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9401if test "$GCC" = yes; then 9402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9403fi 9404 9405 9406{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9407echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9408if test "${libltdl_cv_shlibext+set}" = set; then 9409 echo $ECHO_N "(cached) $ECHO_C" >&6 9410else 9411 9412module=yes 9413eval libltdl_cv_shlibext=$shrext_cmds 9414 9415fi 9416{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9417echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9418if test -n "$libltdl_cv_shlibext"; then 9419 9420cat >>confdefs.h <<_ACEOF 9421#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9422_ACEOF 9423 9424fi 9425 9426 9427{ echo "$as_me:$LINENO: checking for the default library search path" >&5 9428echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9429if test "${libltdl_cv_sys_search_path+set}" = set; then 9430 echo $ECHO_N "(cached) $ECHO_C" >&6 9431else 9432 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9433fi 9434{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9435echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9436if test -n "$libltdl_cv_sys_search_path"; then 9437 sys_search_path= 9438 for dir in $libltdl_cv_sys_search_path; do 9439 if test -z "$sys_search_path"; then 9440 sys_search_path="$dir" 9441 else 9442 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9443 fi 9444 done 9445 9446cat >>confdefs.h <<_ACEOF 9447#define LTDL_SYSSEARCHPATH "$sys_search_path" 9448_ACEOF 9449 9450fi 9451 9452{ echo "$as_me:$LINENO: checking for objdir" >&5 9453echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9454if test "${libltdl_cv_objdir+set}" = set; then 9455 echo $ECHO_N "(cached) $ECHO_C" >&6 9456else 9457 libltdl_cv_objdir="$objdir" 9458 if test -n "$objdir"; then 9459 : 9460 else 9461 rm -f .libs 2>/dev/null 9462 mkdir .libs 2>/dev/null 9463 if test -d .libs; then 9464 libltdl_cv_objdir=.libs 9465 else 9466 # MS-DOS does not allow filenames that begin with a dot. 9467 libltdl_cv_objdir=_libs 9468 fi 9469 rmdir .libs 2>/dev/null 9470 fi 9471 9472fi 9473{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9474echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9475 9476cat >>confdefs.h <<_ACEOF 9477#define LTDL_OBJDIR "$libltdl_cv_objdir/" 9478_ACEOF 9479 9480 9481 9482 9483 9484 9485# Check for command to grab the raw symbol name followed by C symbol from nm. 9486{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9487echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9488if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9489 echo $ECHO_N "(cached) $ECHO_C" >&6 9490else 9491 9492# These are sane defaults that work on at least a few old systems. 9493# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9494 9495# Character class describing NM global symbol codes. 9496symcode='[BCDEGRST]' 9497 9498# Regexp to match symbols that can be accessed directly from C. 9499sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9500 9501# Transform an extracted symbol line into a proper C declaration 9502lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9503 9504# Transform an extracted symbol line into symbol name and symbol address 9505lt_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'" 9506 9507# Define system-specific variables. 9508case $host_os in 9509aix*) 9510 symcode='[BCDT]' 9511 ;; 9512cygwin* | mingw* | pw32*) 9513 symcode='[ABCDGISTW]' 9514 ;; 9515hpux*) # Its linker distinguishes data from code symbols 9516 if test "$host_cpu" = ia64; then 9517 symcode='[ABCDEGRST]' 9518 fi 9519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9520 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'" 9521 ;; 9522linux*) 9523 if test "$host_cpu" = ia64; then 9524 symcode='[ABCDGIRSTW]' 9525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9526 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'" 9527 fi 9528 ;; 9529irix* | nonstopux*) 9530 symcode='[BCDEGRST]' 9531 ;; 9532osf*) 9533 symcode='[BCDEGQRST]' 9534 ;; 9535solaris*) 9536 symcode='[BDRT]' 9537 ;; 9538sco3.2v5*) 9539 symcode='[DT]' 9540 ;; 9541sysv4.2uw2*) 9542 symcode='[DT]' 9543 ;; 9544sysv5* | sco5v6* | unixware* | OpenUNIX*) 9545 symcode='[ABDT]' 9546 ;; 9547sysv4) 9548 symcode='[DFNSTU]' 9549 ;; 9550esac 9551 9552# Handle CRLF in mingw tool chain 9553opt_cr= 9554case $build_os in 9555mingw*) 9556 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9557 ;; 9558esac 9559 9560# If we're using GNU nm, then use its standard symbol codes. 9561case `$NM -V 2>&1` in 9562*GNU* | *'with BFD'*) 9563 symcode='[ABCDGIRSTW]' ;; 9564esac 9565 9566# Try without a prefix undercore, then with it. 9567for ac_symprfx in "" "_"; do 9568 9569 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9570 symxfrm="\\1 $ac_symprfx\\2 \\2" 9571 9572 # Write the raw and C identifiers. 9573 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9574 9575 # Check to see that the pipe works correctly. 9576 pipe_works=no 9577 9578 rm -f conftest* 9579 cat > conftest.$ac_ext <<EOF 9580#ifdef __cplusplus 9581extern "C" { 9582#endif 9583char nm_test_var; 9584void nm_test_func(){} 9585#ifdef __cplusplus 9586} 9587#endif 9588int main(){nm_test_var='a';nm_test_func();return(0);} 9589EOF 9590 9591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9592 (eval $ac_compile) 2>&5 9593 ac_status=$? 9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9595 (exit $ac_status); }; then 9596 # Now try to grab the symbols. 9597 nlist=conftest.nm 9598 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9599 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9600 ac_status=$? 9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 (exit $ac_status); } && test -s "$nlist"; then 9603 # Try sorting and uniquifying the output. 9604 if sort "$nlist" | uniq > "$nlist"T; then 9605 mv -f "$nlist"T "$nlist" 9606 else 9607 rm -f "$nlist"T 9608 fi 9609 9610 # Make sure that we snagged all the symbols we need. 9611 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9612 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9613 cat <<EOF > conftest.$ac_ext 9614#ifdef __cplusplus 9615extern "C" { 9616#endif 9617 9618EOF 9619 # Now generate the symbol file. 9620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9621 9622 cat <<EOF >> conftest.$ac_ext 9623#if defined (__STDC__) && __STDC__ 9624# define lt_ptr_t void * 9625#else 9626# define lt_ptr_t char * 9627# define const 9628#endif 9629 9630/* The mapping between symbol names and symbols. */ 9631const struct { 9632 const char *name; 9633 lt_ptr_t address; 9634} 9635lt_preloaded_symbols[] = 9636{ 9637EOF 9638 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9639 cat <<\EOF >> conftest.$ac_ext 9640 {0, (lt_ptr_t) 0} 9641}; 9642 9643#ifdef __cplusplus 9644} 9645#endif 9646EOF 9647 # Now try linking the two files. 9648 mv conftest.$ac_objext conftstm.$ac_objext 9649 lt_save_LIBS="$LIBS" 9650 lt_save_CFLAGS="$CFLAGS" 9651 LIBS="conftstm.$ac_objext" 9652 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9654 (eval $ac_link) 2>&5 9655 ac_status=$? 9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9657 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9658 pipe_works=yes 9659 fi 9660 LIBS="$lt_save_LIBS" 9661 CFLAGS="$lt_save_CFLAGS" 9662 else 9663 echo "cannot find nm_test_func in $nlist" >&5 9664 fi 9665 else 9666 echo "cannot find nm_test_var in $nlist" >&5 9667 fi 9668 else 9669 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9670 fi 9671 else 9672 echo "$progname: failed program was:" >&5 9673 cat conftest.$ac_ext >&5 9674 fi 9675 rm -f conftest* conftst* 9676 9677 # Do not use the global_symbol_pipe unless it works. 9678 if test "$pipe_works" = yes; then 9679 break 9680 else 9681 lt_cv_sys_global_symbol_pipe= 9682 fi 9683done 9684 9685fi 9686 9687if test -z "$lt_cv_sys_global_symbol_pipe"; then 9688 lt_cv_sys_global_symbol_to_cdecl= 9689fi 9690if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9691 { echo "$as_me:$LINENO: result: failed" >&5 9692echo "${ECHO_T}failed" >&6; } 9693else 9694 { echo "$as_me:$LINENO: result: ok" >&5 9695echo "${ECHO_T}ok" >&6; } 9696fi 9697 9698 9699{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9700echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9701if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9702 echo $ECHO_N "(cached) $ECHO_C" >&6 9703else 9704 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9705 libltdl_cv_preloaded_symbols=yes 9706 else 9707 libltdl_cv_preloaded_symbols=no 9708 fi 9709 9710fi 9711{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9712echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9713if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9714 9715cat >>confdefs.h <<\_ACEOF 9716#define HAVE_PRELOADED_SYMBOLS 1 9717_ACEOF 9718 9719fi 9720 9721LIBADD_DL= 9722 9723ac_ext=c 9724ac_cpp='$CPP $CPPFLAGS' 9725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9727ac_compiler_gnu=$ac_cv_c_compiler_gnu 9728 9729 9730{ echo "$as_me:$LINENO: checking for shl_load" >&5 9731echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9732if test "${ac_cv_func_shl_load+set}" = set; then 9733 echo $ECHO_N "(cached) $ECHO_C" >&6 9734else 9735 cat >conftest.$ac_ext <<_ACEOF 9736/* confdefs.h. */ 9737_ACEOF 9738cat confdefs.h >>conftest.$ac_ext 9739cat >>conftest.$ac_ext <<_ACEOF 9740/* end confdefs.h. */ 9741/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9742 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9743#define shl_load innocuous_shl_load 9744 9745/* System header to define __stub macros and hopefully few prototypes, 9746 which can conflict with char shl_load (); below. 9747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9748 <limits.h> exists even on freestanding compilers. */ 9749 9750#ifdef __STDC__ 9751# include <limits.h> 9752#else 9753# include <assert.h> 9754#endif 9755 9756#undef shl_load 9757 9758/* Override any GCC internal prototype to avoid an error. 9759 Use char because int might match the return type of a GCC 9760 builtin and then its argument prototype would still apply. */ 9761#ifdef __cplusplus 9762extern "C" 9763#endif 9764char shl_load (); 9765/* The GNU C library defines this for functions which it implements 9766 to always fail with ENOSYS. Some functions are actually named 9767 something starting with __ and the normal name is an alias. */ 9768#if defined __stub_shl_load || defined __stub___shl_load 9769choke me 9770#endif 9771 9772int 9773main () 9774{ 9775return shl_load (); 9776 ; 9777 return 0; 9778} 9779_ACEOF 9780rm -f conftest.$ac_objext conftest$ac_exeext 9781if { (ac_try="$ac_link" 9782case "(($ac_try" in 9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9784 *) ac_try_echo=$ac_try;; 9785esac 9786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9787 (eval "$ac_link") 2>conftest.er1 9788 ac_status=$? 9789 grep -v '^ *+' conftest.er1 >conftest.err 9790 rm -f conftest.er1 9791 cat conftest.err >&5 9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9793 (exit $ac_status); } && 9794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9795 { (case "(($ac_try" in 9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9797 *) ac_try_echo=$ac_try;; 9798esac 9799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9800 (eval "$ac_try") 2>&5 9801 ac_status=$? 9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9803 (exit $ac_status); }; } && 9804 { ac_try='test -s conftest$ac_exeext' 9805 { (case "(($ac_try" in 9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9807 *) ac_try_echo=$ac_try;; 9808esac 9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9810 (eval "$ac_try") 2>&5 9811 ac_status=$? 9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9813 (exit $ac_status); }; }; then 9814 ac_cv_func_shl_load=yes 9815else 9816 echo "$as_me: failed program was:" >&5 9817sed 's/^/| /' conftest.$ac_ext >&5 9818 9819 ac_cv_func_shl_load=no 9820fi 9821 9822rm -f core conftest.err conftest.$ac_objext \ 9823 conftest$ac_exeext conftest.$ac_ext 9824fi 9825{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9826echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9827if test $ac_cv_func_shl_load = yes; then 9828 9829cat >>confdefs.h <<\_ACEOF 9830#define HAVE_SHL_LOAD 1 9831_ACEOF 9832 9833else 9834 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9835echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9836if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9837 echo $ECHO_N "(cached) $ECHO_C" >&6 9838else 9839 ac_check_lib_save_LIBS=$LIBS 9840LIBS="-ldld $LIBS" 9841cat >conftest.$ac_ext <<_ACEOF 9842/* confdefs.h. */ 9843_ACEOF 9844cat confdefs.h >>conftest.$ac_ext 9845cat >>conftest.$ac_ext <<_ACEOF 9846/* end confdefs.h. */ 9847 9848/* Override any GCC internal prototype to avoid an error. 9849 Use char because int might match the return type of a GCC 9850 builtin and then its argument prototype would still apply. */ 9851#ifdef __cplusplus 9852extern "C" 9853#endif 9854char shl_load (); 9855int 9856main () 9857{ 9858return shl_load (); 9859 ; 9860 return 0; 9861} 9862_ACEOF 9863rm -f conftest.$ac_objext conftest$ac_exeext 9864if { (ac_try="$ac_link" 9865case "(($ac_try" in 9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9867 *) ac_try_echo=$ac_try;; 9868esac 9869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9870 (eval "$ac_link") 2>conftest.er1 9871 ac_status=$? 9872 grep -v '^ *+' conftest.er1 >conftest.err 9873 rm -f conftest.er1 9874 cat conftest.err >&5 9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9876 (exit $ac_status); } && 9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9878 { (case "(($ac_try" in 9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9880 *) ac_try_echo=$ac_try;; 9881esac 9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9883 (eval "$ac_try") 2>&5 9884 ac_status=$? 9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9886 (exit $ac_status); }; } && 9887 { ac_try='test -s conftest$ac_exeext' 9888 { (case "(($ac_try" in 9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9890 *) ac_try_echo=$ac_try;; 9891esac 9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9893 (eval "$ac_try") 2>&5 9894 ac_status=$? 9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9896 (exit $ac_status); }; }; then 9897 ac_cv_lib_dld_shl_load=yes 9898else 9899 echo "$as_me: failed program was:" >&5 9900sed 's/^/| /' conftest.$ac_ext >&5 9901 9902 ac_cv_lib_dld_shl_load=no 9903fi 9904 9905rm -f core conftest.err conftest.$ac_objext \ 9906 conftest$ac_exeext conftest.$ac_ext 9907LIBS=$ac_check_lib_save_LIBS 9908fi 9909{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9910echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9911if test $ac_cv_lib_dld_shl_load = yes; then 9912 9913cat >>confdefs.h <<\_ACEOF 9914#define HAVE_SHL_LOAD 1 9915_ACEOF 9916 9917 LIBADD_DL="$LIBADD_DL -ldld" 9918else 9919 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9920echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9921if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9922 echo $ECHO_N "(cached) $ECHO_C" >&6 9923else 9924 ac_check_lib_save_LIBS=$LIBS 9925LIBS="-ldl $LIBS" 9926cat >conftest.$ac_ext <<_ACEOF 9927/* confdefs.h. */ 9928_ACEOF 9929cat confdefs.h >>conftest.$ac_ext 9930cat >>conftest.$ac_ext <<_ACEOF 9931/* end confdefs.h. */ 9932 9933/* Override any GCC internal prototype to avoid an error. 9934 Use char because int might match the return type of a GCC 9935 builtin and then its argument prototype would still apply. */ 9936#ifdef __cplusplus 9937extern "C" 9938#endif 9939char dlopen (); 9940int 9941main () 9942{ 9943return dlopen (); 9944 ; 9945 return 0; 9946} 9947_ACEOF 9948rm -f conftest.$ac_objext conftest$ac_exeext 9949if { (ac_try="$ac_link" 9950case "(($ac_try" in 9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9952 *) ac_try_echo=$ac_try;; 9953esac 9954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9955 (eval "$ac_link") 2>conftest.er1 9956 ac_status=$? 9957 grep -v '^ *+' conftest.er1 >conftest.err 9958 rm -f conftest.er1 9959 cat conftest.err >&5 9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9961 (exit $ac_status); } && 9962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9963 { (case "(($ac_try" in 9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9965 *) ac_try_echo=$ac_try;; 9966esac 9967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9968 (eval "$ac_try") 2>&5 9969 ac_status=$? 9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9971 (exit $ac_status); }; } && 9972 { ac_try='test -s conftest$ac_exeext' 9973 { (case "(($ac_try" in 9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9975 *) ac_try_echo=$ac_try;; 9976esac 9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9978 (eval "$ac_try") 2>&5 9979 ac_status=$? 9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9981 (exit $ac_status); }; }; then 9982 ac_cv_lib_dl_dlopen=yes 9983else 9984 echo "$as_me: failed program was:" >&5 9985sed 's/^/| /' conftest.$ac_ext >&5 9986 9987 ac_cv_lib_dl_dlopen=no 9988fi 9989 9990rm -f core conftest.err conftest.$ac_objext \ 9991 conftest$ac_exeext conftest.$ac_ext 9992LIBS=$ac_check_lib_save_LIBS 9993fi 9994{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9995echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9996if test $ac_cv_lib_dl_dlopen = yes; then 9997 9998cat >>confdefs.h <<\_ACEOF 9999#define HAVE_LIBDL 1 10000_ACEOF 10001 10002 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 10003else 10004 cat >conftest.$ac_ext <<_ACEOF 10005/* confdefs.h. */ 10006_ACEOF 10007cat confdefs.h >>conftest.$ac_ext 10008cat >>conftest.$ac_ext <<_ACEOF 10009/* end confdefs.h. */ 10010#if HAVE_DLFCN_H 10011# include <dlfcn.h> 10012#endif 10013 10014int 10015main () 10016{ 10017dlopen(0, 0); 10018 ; 10019 return 0; 10020} 10021_ACEOF 10022rm -f conftest.$ac_objext conftest$ac_exeext 10023if { (ac_try="$ac_link" 10024case "(($ac_try" in 10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10026 *) ac_try_echo=$ac_try;; 10027esac 10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10029 (eval "$ac_link") 2>conftest.er1 10030 ac_status=$? 10031 grep -v '^ *+' conftest.er1 >conftest.err 10032 rm -f conftest.er1 10033 cat conftest.err >&5 10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10035 (exit $ac_status); } && 10036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10037 { (case "(($ac_try" in 10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10039 *) ac_try_echo=$ac_try;; 10040esac 10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10042 (eval "$ac_try") 2>&5 10043 ac_status=$? 10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10045 (exit $ac_status); }; } && 10046 { ac_try='test -s conftest$ac_exeext' 10047 { (case "(($ac_try" in 10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10049 *) ac_try_echo=$ac_try;; 10050esac 10051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10052 (eval "$ac_try") 2>&5 10053 ac_status=$? 10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10055 (exit $ac_status); }; }; then 10056 10057cat >>confdefs.h <<\_ACEOF 10058#define HAVE_LIBDL 1 10059_ACEOF 10060 libltdl_cv_func_dlopen="yes" 10061else 10062 echo "$as_me: failed program was:" >&5 10063sed 's/^/| /' conftest.$ac_ext >&5 10064 10065 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10066echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10067if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10068 echo $ECHO_N "(cached) $ECHO_C" >&6 10069else 10070 ac_check_lib_save_LIBS=$LIBS 10071LIBS="-lsvld $LIBS" 10072cat >conftest.$ac_ext <<_ACEOF 10073/* confdefs.h. */ 10074_ACEOF 10075cat confdefs.h >>conftest.$ac_ext 10076cat >>conftest.$ac_ext <<_ACEOF 10077/* end confdefs.h. */ 10078 10079/* Override any GCC internal prototype to avoid an error. 10080 Use char because int might match the return type of a GCC 10081 builtin and then its argument prototype would still apply. */ 10082#ifdef __cplusplus 10083extern "C" 10084#endif 10085char dlopen (); 10086int 10087main () 10088{ 10089return dlopen (); 10090 ; 10091 return 0; 10092} 10093_ACEOF 10094rm -f conftest.$ac_objext conftest$ac_exeext 10095if { (ac_try="$ac_link" 10096case "(($ac_try" in 10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10098 *) ac_try_echo=$ac_try;; 10099esac 10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10101 (eval "$ac_link") 2>conftest.er1 10102 ac_status=$? 10103 grep -v '^ *+' conftest.er1 >conftest.err 10104 rm -f conftest.er1 10105 cat conftest.err >&5 10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10107 (exit $ac_status); } && 10108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10109 { (case "(($ac_try" in 10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10111 *) ac_try_echo=$ac_try;; 10112esac 10113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10114 (eval "$ac_try") 2>&5 10115 ac_status=$? 10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10117 (exit $ac_status); }; } && 10118 { ac_try='test -s conftest$ac_exeext' 10119 { (case "(($ac_try" in 10120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10121 *) ac_try_echo=$ac_try;; 10122esac 10123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10124 (eval "$ac_try") 2>&5 10125 ac_status=$? 10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10127 (exit $ac_status); }; }; then 10128 ac_cv_lib_svld_dlopen=yes 10129else 10130 echo "$as_me: failed program was:" >&5 10131sed 's/^/| /' conftest.$ac_ext >&5 10132 10133 ac_cv_lib_svld_dlopen=no 10134fi 10135 10136rm -f core conftest.err conftest.$ac_objext \ 10137 conftest$ac_exeext conftest.$ac_ext 10138LIBS=$ac_check_lib_save_LIBS 10139fi 10140{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10141echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10142if test $ac_cv_lib_svld_dlopen = yes; then 10143 10144cat >>confdefs.h <<\_ACEOF 10145#define HAVE_LIBDL 1 10146_ACEOF 10147 10148 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 10149else 10150 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10151echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10152if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10153 echo $ECHO_N "(cached) $ECHO_C" >&6 10154else 10155 ac_check_lib_save_LIBS=$LIBS 10156LIBS="-ldld $LIBS" 10157cat >conftest.$ac_ext <<_ACEOF 10158/* confdefs.h. */ 10159_ACEOF 10160cat confdefs.h >>conftest.$ac_ext 10161cat >>conftest.$ac_ext <<_ACEOF 10162/* end confdefs.h. */ 10163 10164/* Override any GCC internal prototype to avoid an error. 10165 Use char because int might match the return type of a GCC 10166 builtin and then its argument prototype would still apply. */ 10167#ifdef __cplusplus 10168extern "C" 10169#endif 10170char dld_link (); 10171int 10172main () 10173{ 10174return dld_link (); 10175 ; 10176 return 0; 10177} 10178_ACEOF 10179rm -f conftest.$ac_objext conftest$ac_exeext 10180if { (ac_try="$ac_link" 10181case "(($ac_try" in 10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10183 *) ac_try_echo=$ac_try;; 10184esac 10185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10186 (eval "$ac_link") 2>conftest.er1 10187 ac_status=$? 10188 grep -v '^ *+' conftest.er1 >conftest.err 10189 rm -f conftest.er1 10190 cat conftest.err >&5 10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10192 (exit $ac_status); } && 10193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10194 { (case "(($ac_try" in 10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10196 *) ac_try_echo=$ac_try;; 10197esac 10198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10199 (eval "$ac_try") 2>&5 10200 ac_status=$? 10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10202 (exit $ac_status); }; } && 10203 { ac_try='test -s conftest$ac_exeext' 10204 { (case "(($ac_try" in 10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10206 *) ac_try_echo=$ac_try;; 10207esac 10208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10209 (eval "$ac_try") 2>&5 10210 ac_status=$? 10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10212 (exit $ac_status); }; }; then 10213 ac_cv_lib_dld_dld_link=yes 10214else 10215 echo "$as_me: failed program was:" >&5 10216sed 's/^/| /' conftest.$ac_ext >&5 10217 10218 ac_cv_lib_dld_dld_link=no 10219fi 10220 10221rm -f core conftest.err conftest.$ac_objext \ 10222 conftest$ac_exeext conftest.$ac_ext 10223LIBS=$ac_check_lib_save_LIBS 10224fi 10225{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10226echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10227if test $ac_cv_lib_dld_dld_link = yes; then 10228 10229cat >>confdefs.h <<\_ACEOF 10230#define HAVE_DLD 1 10231_ACEOF 10232 10233 LIBADD_DL="$LIBADD_DL -ldld" 10234else 10235 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 10236echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10237if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10238 echo $ECHO_N "(cached) $ECHO_C" >&6 10239else 10240 cat >conftest.$ac_ext <<_ACEOF 10241/* confdefs.h. */ 10242_ACEOF 10243cat confdefs.h >>conftest.$ac_ext 10244cat >>conftest.$ac_ext <<_ACEOF 10245/* end confdefs.h. */ 10246/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10247 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10248#define _dyld_func_lookup innocuous__dyld_func_lookup 10249 10250/* System header to define __stub macros and hopefully few prototypes, 10251 which can conflict with char _dyld_func_lookup (); below. 10252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10253 <limits.h> exists even on freestanding compilers. */ 10254 10255#ifdef __STDC__ 10256# include <limits.h> 10257#else 10258# include <assert.h> 10259#endif 10260 10261#undef _dyld_func_lookup 10262 10263/* Override any GCC internal prototype to avoid an error. 10264 Use char because int might match the return type of a GCC 10265 builtin and then its argument prototype would still apply. */ 10266#ifdef __cplusplus 10267extern "C" 10268#endif 10269char _dyld_func_lookup (); 10270/* The GNU C library defines this for functions which it implements 10271 to always fail with ENOSYS. Some functions are actually named 10272 something starting with __ and the normal name is an alias. */ 10273#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10274choke me 10275#endif 10276 10277int 10278main () 10279{ 10280return _dyld_func_lookup (); 10281 ; 10282 return 0; 10283} 10284_ACEOF 10285rm -f conftest.$ac_objext conftest$ac_exeext 10286if { (ac_try="$ac_link" 10287case "(($ac_try" in 10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10289 *) ac_try_echo=$ac_try;; 10290esac 10291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10292 (eval "$ac_link") 2>conftest.er1 10293 ac_status=$? 10294 grep -v '^ *+' conftest.er1 >conftest.err 10295 rm -f conftest.er1 10296 cat conftest.err >&5 10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10298 (exit $ac_status); } && 10299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10300 { (case "(($ac_try" in 10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10302 *) ac_try_echo=$ac_try;; 10303esac 10304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10305 (eval "$ac_try") 2>&5 10306 ac_status=$? 10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10308 (exit $ac_status); }; } && 10309 { ac_try='test -s conftest$ac_exeext' 10310 { (case "(($ac_try" in 10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10312 *) ac_try_echo=$ac_try;; 10313esac 10314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10315 (eval "$ac_try") 2>&5 10316 ac_status=$? 10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10318 (exit $ac_status); }; }; then 10319 ac_cv_func__dyld_func_lookup=yes 10320else 10321 echo "$as_me: failed program was:" >&5 10322sed 's/^/| /' conftest.$ac_ext >&5 10323 10324 ac_cv_func__dyld_func_lookup=no 10325fi 10326 10327rm -f core conftest.err conftest.$ac_objext \ 10328 conftest$ac_exeext conftest.$ac_ext 10329fi 10330{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10331echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10332if test $ac_cv_func__dyld_func_lookup = yes; then 10333 10334cat >>confdefs.h <<\_ACEOF 10335#define HAVE_DYLD 1 10336_ACEOF 10337 10338fi 10339 10340 10341fi 10342 10343 10344fi 10345 10346 10347fi 10348 10349rm -f core conftest.err conftest.$ac_objext \ 10350 conftest$ac_exeext conftest.$ac_ext 10351 10352fi 10353 10354 10355fi 10356 10357 10358fi 10359 10360 10361if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10362then 10363 lt_save_LIBS="$LIBS" 10364 LIBS="$LIBS $LIBADD_DL" 10365 10366for ac_func in dlerror 10367do 10368as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10369{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10370echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10371if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10372 echo $ECHO_N "(cached) $ECHO_C" >&6 10373else 10374 cat >conftest.$ac_ext <<_ACEOF 10375/* confdefs.h. */ 10376_ACEOF 10377cat confdefs.h >>conftest.$ac_ext 10378cat >>conftest.$ac_ext <<_ACEOF 10379/* end confdefs.h. */ 10380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10381 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10382#define $ac_func innocuous_$ac_func 10383 10384/* System header to define __stub macros and hopefully few prototypes, 10385 which can conflict with char $ac_func (); below. 10386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10387 <limits.h> exists even on freestanding compilers. */ 10388 10389#ifdef __STDC__ 10390# include <limits.h> 10391#else 10392# include <assert.h> 10393#endif 10394 10395#undef $ac_func 10396 10397/* Override any GCC internal prototype to avoid an error. 10398 Use char because int might match the return type of a GCC 10399 builtin and then its argument prototype would still apply. */ 10400#ifdef __cplusplus 10401extern "C" 10402#endif 10403char $ac_func (); 10404/* The GNU C library defines this for functions which it implements 10405 to always fail with ENOSYS. Some functions are actually named 10406 something starting with __ and the normal name is an alias. */ 10407#if defined __stub_$ac_func || defined __stub___$ac_func 10408choke me 10409#endif 10410 10411int 10412main () 10413{ 10414return $ac_func (); 10415 ; 10416 return 0; 10417} 10418_ACEOF 10419rm -f conftest.$ac_objext conftest$ac_exeext 10420if { (ac_try="$ac_link" 10421case "(($ac_try" in 10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10423 *) ac_try_echo=$ac_try;; 10424esac 10425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10426 (eval "$ac_link") 2>conftest.er1 10427 ac_status=$? 10428 grep -v '^ *+' conftest.er1 >conftest.err 10429 rm -f conftest.er1 10430 cat conftest.err >&5 10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10432 (exit $ac_status); } && 10433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10434 { (case "(($ac_try" in 10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10436 *) ac_try_echo=$ac_try;; 10437esac 10438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10439 (eval "$ac_try") 2>&5 10440 ac_status=$? 10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10442 (exit $ac_status); }; } && 10443 { ac_try='test -s conftest$ac_exeext' 10444 { (case "(($ac_try" in 10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10446 *) ac_try_echo=$ac_try;; 10447esac 10448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10449 (eval "$ac_try") 2>&5 10450 ac_status=$? 10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10452 (exit $ac_status); }; }; then 10453 eval "$as_ac_var=yes" 10454else 10455 echo "$as_me: failed program was:" >&5 10456sed 's/^/| /' conftest.$ac_ext >&5 10457 10458 eval "$as_ac_var=no" 10459fi 10460 10461rm -f core conftest.err conftest.$ac_objext \ 10462 conftest$ac_exeext conftest.$ac_ext 10463fi 10464ac_res=`eval echo '${'$as_ac_var'}'` 10465 { echo "$as_me:$LINENO: result: $ac_res" >&5 10466echo "${ECHO_T}$ac_res" >&6; } 10467if test `eval echo '${'$as_ac_var'}'` = yes; then 10468 cat >>confdefs.h <<_ACEOF 10469#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10470_ACEOF 10471 10472fi 10473done 10474 10475 LIBS="$lt_save_LIBS" 10476fi 10477ac_ext=c 10478ac_cpp='$CPP $CPPFLAGS' 10479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10481ac_compiler_gnu=$ac_cv_c_compiler_gnu 10482 10483 10484 10485{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10486echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10487if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10488 echo $ECHO_N "(cached) $ECHO_C" >&6 10489else 10490 ac_cv_sys_symbol_underscore=no 10491 cat > conftest.$ac_ext <<EOF 10492void nm_test_func(){} 10493int main(){nm_test_func;return 0;} 10494EOF 10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10496 (eval $ac_compile) 2>&5 10497 ac_status=$? 10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10499 (exit $ac_status); }; then 10500 # Now try to grab the symbols. 10501 ac_nlist=conftest.nm 10502 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10503 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10504 ac_status=$? 10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10506 (exit $ac_status); } && test -s "$ac_nlist"; then 10507 # See whether the symbols have a leading underscore. 10508 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10509 ac_cv_sys_symbol_underscore=yes 10510 else 10511 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10512 : 10513 else 10514 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10515 fi 10516 fi 10517 else 10518 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10519 fi 10520 else 10521 echo "configure: failed program was:" >&5 10522 cat conftest.c >&5 10523 fi 10524 rm -rf conftest* 10525 10526fi 10527{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10528echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10529 10530 10531if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10532 if test x"$libltdl_cv_func_dlopen" = xyes || 10533 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10534 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10535echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10536if test "${libltdl_cv_need_uscore+set}" = set; then 10537 echo $ECHO_N "(cached) $ECHO_C" >&6 10538else 10539 libltdl_cv_need_uscore=unknown 10540 save_LIBS="$LIBS" 10541 LIBS="$LIBS $LIBADD_DL" 10542 if test "$cross_compiling" = yes; then : 10543 libltdl_cv_need_uscore=cross 10544else 10545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10546 lt_status=$lt_dlunknown 10547 cat > conftest.$ac_ext <<EOF 10548#line 10548 "configure" 10549#include "confdefs.h" 10550 10551#if HAVE_DLFCN_H 10552#include <dlfcn.h> 10553#endif 10554 10555#include <stdio.h> 10556 10557#ifdef RTLD_GLOBAL 10558# define LT_DLGLOBAL RTLD_GLOBAL 10559#else 10560# ifdef DL_GLOBAL 10561# define LT_DLGLOBAL DL_GLOBAL 10562# else 10563# define LT_DLGLOBAL 0 10564# endif 10565#endif 10566 10567/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10568 find out it does not work in some platform. */ 10569#ifndef LT_DLLAZY_OR_NOW 10570# ifdef RTLD_LAZY 10571# define LT_DLLAZY_OR_NOW RTLD_LAZY 10572# else 10573# ifdef DL_LAZY 10574# define LT_DLLAZY_OR_NOW DL_LAZY 10575# else 10576# ifdef RTLD_NOW 10577# define LT_DLLAZY_OR_NOW RTLD_NOW 10578# else 10579# ifdef DL_NOW 10580# define LT_DLLAZY_OR_NOW DL_NOW 10581# else 10582# define LT_DLLAZY_OR_NOW 0 10583# endif 10584# endif 10585# endif 10586# endif 10587#endif 10588 10589#ifdef __cplusplus 10590extern "C" void exit (int); 10591#endif 10592 10593void fnord() { int i=42;} 10594int main () 10595{ 10596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10597 int status = $lt_dlunknown; 10598 10599 if (self) 10600 { 10601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10602 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10603 /* dlclose (self); */ 10604 } 10605 else 10606 puts (dlerror ()); 10607 10608 exit (status); 10609} 10610EOF 10611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10612 (eval $ac_link) 2>&5 10613 ac_status=$? 10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10615 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10616 (./conftest; exit; ) >&5 2>/dev/null 10617 lt_status=$? 10618 case x$lt_status in 10619 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10620 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10621 x$lt_dlunknown|x*) ;; 10622 esac 10623 else : 10624 # compilation failed 10625 10626 fi 10627fi 10628rm -fr conftest* 10629 10630 LIBS="$save_LIBS" 10631 10632fi 10633{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10634echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10635 fi 10636fi 10637 10638if test x"$libltdl_cv_need_uscore" = xyes; then 10639 10640cat >>confdefs.h <<\_ACEOF 10641#define NEED_USCORE 1 10642_ACEOF 10643 10644fi 10645 10646 10647{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10648echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10649if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10650 echo $ECHO_N "(cached) $ECHO_C" >&6 10651else 10652 # PORTME does your system automatically load deplibs for dlopen? 10653 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10654 # For now, we just catch OSes we know something about -- in the 10655 # future, we'll try test this programmatically. 10656 libltdl_cv_sys_dlopen_deplibs=unknown 10657 case "$host_os" in 10658 aix3*|aix4.1.*|aix4.2.*) 10659 # Unknown whether this is true for these versions of AIX, but 10660 # we want this `case' here to explicitly catch those versions. 10661 libltdl_cv_sys_dlopen_deplibs=unknown 10662 ;; 10663 aix[45]*) 10664 libltdl_cv_sys_dlopen_deplibs=yes 10665 ;; 10666 darwin*) 10667 # Assuming the user has installed a libdl from somewhere, this is true 10668 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10669 libltdl_cv_sys_dlopen_deplibs=yes 10670 ;; 10671 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10672 # GNU and its variants, using gnu ld.so (Glibc) 10673 libltdl_cv_sys_dlopen_deplibs=yes 10674 ;; 10675 hpux10*|hpux11*) 10676 libltdl_cv_sys_dlopen_deplibs=yes 10677 ;; 10678 interix*) 10679 libltdl_cv_sys_dlopen_deplibs=yes 10680 ;; 10681 irix[12345]*|irix6.[01]*) 10682 # Catch all versions of IRIX before 6.2, and indicate that we don't 10683 # know how it worked for any of those versions. 10684 libltdl_cv_sys_dlopen_deplibs=unknown 10685 ;; 10686 irix*) 10687 # The case above catches anything before 6.2, and it's known that 10688 # at 6.2 and later dlopen does load deplibs. 10689 libltdl_cv_sys_dlopen_deplibs=yes 10690 ;; 10691 netbsd*) 10692 libltdl_cv_sys_dlopen_deplibs=yes 10693 ;; 10694 openbsd*) 10695 libltdl_cv_sys_dlopen_deplibs=yes 10696 ;; 10697 osf[1234]*) 10698 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10699 # it did *not* use an RPATH in a shared library to find objects the 10700 # library depends on, so we explicitly say `no'. 10701 libltdl_cv_sys_dlopen_deplibs=no 10702 ;; 10703 osf5.0|osf5.0a|osf5.1) 10704 # dlopen *does* load deplibs and with the right loader patch applied 10705 # it even uses RPATH in a shared library to search for shared objects 10706 # that the library depends on, but there's no easy way to know if that 10707 # patch is installed. Since this is the case, all we can really 10708 # say is unknown -- it depends on the patch being installed. If 10709 # it is, this changes to `yes'. Without it, it would be `no'. 10710 libltdl_cv_sys_dlopen_deplibs=unknown 10711 ;; 10712 osf*) 10713 # the two cases above should catch all versions of osf <= 5.1. Read 10714 # the comments above for what we know about them. 10715 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10716 # is used to find them so we can finally say `yes'. 10717 libltdl_cv_sys_dlopen_deplibs=yes 10718 ;; 10719 solaris*) 10720 libltdl_cv_sys_dlopen_deplibs=yes 10721 ;; 10722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10723 libltdl_cv_sys_dlopen_deplibs=yes 10724 ;; 10725 esac 10726 10727fi 10728{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10729echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10730if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10731 10732cat >>confdefs.h <<\_ACEOF 10733#define LTDL_DLOPEN_DEPLIBS 1 10734_ACEOF 10735 10736fi 10737 10738 10739for ac_header in argz.h 10740do 10741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10743 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10746 echo $ECHO_N "(cached) $ECHO_C" >&6 10747fi 10748ac_res=`eval echo '${'$as_ac_Header'}'` 10749 { echo "$as_me:$LINENO: result: $ac_res" >&5 10750echo "${ECHO_T}$ac_res" >&6; } 10751else 10752 # Is the header compilable? 10753{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10754echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10755cat >conftest.$ac_ext <<_ACEOF 10756/* confdefs.h. */ 10757_ACEOF 10758cat confdefs.h >>conftest.$ac_ext 10759cat >>conftest.$ac_ext <<_ACEOF 10760/* end confdefs.h. */ 10761$ac_includes_default 10762#include <$ac_header> 10763_ACEOF 10764rm -f conftest.$ac_objext 10765if { (ac_try="$ac_compile" 10766case "(($ac_try" in 10767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10768 *) ac_try_echo=$ac_try;; 10769esac 10770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10771 (eval "$ac_compile") 2>conftest.er1 10772 ac_status=$? 10773 grep -v '^ *+' conftest.er1 >conftest.err 10774 rm -f conftest.er1 10775 cat conftest.err >&5 10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10777 (exit $ac_status); } && 10778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10779 { (case "(($ac_try" in 10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10781 *) ac_try_echo=$ac_try;; 10782esac 10783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10784 (eval "$ac_try") 2>&5 10785 ac_status=$? 10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10787 (exit $ac_status); }; } && 10788 { ac_try='test -s conftest.$ac_objext' 10789 { (case "(($ac_try" in 10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10791 *) ac_try_echo=$ac_try;; 10792esac 10793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10794 (eval "$ac_try") 2>&5 10795 ac_status=$? 10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10797 (exit $ac_status); }; }; then 10798 ac_header_compiler=yes 10799else 10800 echo "$as_me: failed program was:" >&5 10801sed 's/^/| /' conftest.$ac_ext >&5 10802 10803 ac_header_compiler=no 10804fi 10805 10806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10807{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10808echo "${ECHO_T}$ac_header_compiler" >&6; } 10809 10810# Is the header present? 10811{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10812echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10813cat >conftest.$ac_ext <<_ACEOF 10814/* confdefs.h. */ 10815_ACEOF 10816cat confdefs.h >>conftest.$ac_ext 10817cat >>conftest.$ac_ext <<_ACEOF 10818/* end confdefs.h. */ 10819#include <$ac_header> 10820_ACEOF 10821if { (ac_try="$ac_cpp conftest.$ac_ext" 10822case "(($ac_try" in 10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10824 *) ac_try_echo=$ac_try;; 10825esac 10826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10828 ac_status=$? 10829 grep -v '^ *+' conftest.er1 >conftest.err 10830 rm -f conftest.er1 10831 cat conftest.err >&5 10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10833 (exit $ac_status); } >/dev/null; then 10834 if test -s conftest.err; then 10835 ac_cpp_err=$ac_c_preproc_warn_flag 10836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10837 else 10838 ac_cpp_err= 10839 fi 10840else 10841 ac_cpp_err=yes 10842fi 10843if test -z "$ac_cpp_err"; then 10844 ac_header_preproc=yes 10845else 10846 echo "$as_me: failed program was:" >&5 10847sed 's/^/| /' conftest.$ac_ext >&5 10848 10849 ac_header_preproc=no 10850fi 10851 10852rm -f conftest.err conftest.$ac_ext 10853{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10854echo "${ECHO_T}$ac_header_preproc" >&6; } 10855 10856# So? What about this header? 10857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10858 yes:no: ) 10859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10863 ac_header_preproc=yes 10864 ;; 10865 no:yes:* ) 10866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10869echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10873echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10878 ( cat <<\_ASBOX 10879## ------------------------------------ ## 10880## Report this to http://llvm.org/bugs/ ## 10881## ------------------------------------ ## 10882_ASBOX 10883 ) | sed "s/^/$as_me: WARNING: /" >&2 10884 ;; 10885esac 10886{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10889 echo $ECHO_N "(cached) $ECHO_C" >&6 10890else 10891 eval "$as_ac_Header=\$ac_header_preproc" 10892fi 10893ac_res=`eval echo '${'$as_ac_Header'}'` 10894 { echo "$as_me:$LINENO: result: $ac_res" >&5 10895echo "${ECHO_T}$ac_res" >&6; } 10896 10897fi 10898if test `eval echo '${'$as_ac_Header'}'` = yes; then 10899 cat >>confdefs.h <<_ACEOF 10900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10901_ACEOF 10902 10903fi 10904 10905done 10906 10907 10908{ echo "$as_me:$LINENO: checking for error_t" >&5 10909echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10910if test "${ac_cv_type_error_t+set}" = set; then 10911 echo $ECHO_N "(cached) $ECHO_C" >&6 10912else 10913 cat >conftest.$ac_ext <<_ACEOF 10914/* confdefs.h. */ 10915_ACEOF 10916cat confdefs.h >>conftest.$ac_ext 10917cat >>conftest.$ac_ext <<_ACEOF 10918/* end confdefs.h. */ 10919#if HAVE_ARGZ_H 10920# include <argz.h> 10921#endif 10922 10923typedef error_t ac__type_new_; 10924int 10925main () 10926{ 10927if ((ac__type_new_ *) 0) 10928 return 0; 10929if (sizeof (ac__type_new_)) 10930 return 0; 10931 ; 10932 return 0; 10933} 10934_ACEOF 10935rm -f conftest.$ac_objext 10936if { (ac_try="$ac_compile" 10937case "(($ac_try" in 10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10939 *) ac_try_echo=$ac_try;; 10940esac 10941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10942 (eval "$ac_compile") 2>conftest.er1 10943 ac_status=$? 10944 grep -v '^ *+' conftest.er1 >conftest.err 10945 rm -f conftest.er1 10946 cat conftest.err >&5 10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10948 (exit $ac_status); } && 10949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10950 { (case "(($ac_try" in 10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10952 *) ac_try_echo=$ac_try;; 10953esac 10954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10955 (eval "$ac_try") 2>&5 10956 ac_status=$? 10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10958 (exit $ac_status); }; } && 10959 { ac_try='test -s conftest.$ac_objext' 10960 { (case "(($ac_try" in 10961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10962 *) ac_try_echo=$ac_try;; 10963esac 10964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10965 (eval "$ac_try") 2>&5 10966 ac_status=$? 10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10968 (exit $ac_status); }; }; then 10969 ac_cv_type_error_t=yes 10970else 10971 echo "$as_me: failed program was:" >&5 10972sed 's/^/| /' conftest.$ac_ext >&5 10973 10974 ac_cv_type_error_t=no 10975fi 10976 10977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10978fi 10979{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10980echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10981if test $ac_cv_type_error_t = yes; then 10982 10983cat >>confdefs.h <<_ACEOF 10984#define HAVE_ERROR_T 1 10985_ACEOF 10986 10987 10988else 10989 10990cat >>confdefs.h <<\_ACEOF 10991#define error_t int 10992_ACEOF 10993 10994fi 10995 10996 10997 10998 10999 11000 11001 11002for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 11003do 11004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11005{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11007if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11008 echo $ECHO_N "(cached) $ECHO_C" >&6 11009else 11010 cat >conftest.$ac_ext <<_ACEOF 11011/* confdefs.h. */ 11012_ACEOF 11013cat confdefs.h >>conftest.$ac_ext 11014cat >>conftest.$ac_ext <<_ACEOF 11015/* end confdefs.h. */ 11016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11017 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11018#define $ac_func innocuous_$ac_func 11019 11020/* System header to define __stub macros and hopefully few prototypes, 11021 which can conflict with char $ac_func (); below. 11022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11023 <limits.h> exists even on freestanding compilers. */ 11024 11025#ifdef __STDC__ 11026# include <limits.h> 11027#else 11028# include <assert.h> 11029#endif 11030 11031#undef $ac_func 11032 11033/* Override any GCC internal prototype to avoid an error. 11034 Use char because int might match the return type of a GCC 11035 builtin and then its argument prototype would still apply. */ 11036#ifdef __cplusplus 11037extern "C" 11038#endif 11039char $ac_func (); 11040/* The GNU C library defines this for functions which it implements 11041 to always fail with ENOSYS. Some functions are actually named 11042 something starting with __ and the normal name is an alias. */ 11043#if defined __stub_$ac_func || defined __stub___$ac_func 11044choke me 11045#endif 11046 11047int 11048main () 11049{ 11050return $ac_func (); 11051 ; 11052 return 0; 11053} 11054_ACEOF 11055rm -f conftest.$ac_objext conftest$ac_exeext 11056if { (ac_try="$ac_link" 11057case "(($ac_try" in 11058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11059 *) ac_try_echo=$ac_try;; 11060esac 11061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11062 (eval "$ac_link") 2>conftest.er1 11063 ac_status=$? 11064 grep -v '^ *+' conftest.er1 >conftest.err 11065 rm -f conftest.er1 11066 cat conftest.err >&5 11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11068 (exit $ac_status); } && 11069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11070 { (case "(($ac_try" in 11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11072 *) ac_try_echo=$ac_try;; 11073esac 11074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11075 (eval "$ac_try") 2>&5 11076 ac_status=$? 11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11078 (exit $ac_status); }; } && 11079 { ac_try='test -s conftest$ac_exeext' 11080 { (case "(($ac_try" in 11081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11082 *) ac_try_echo=$ac_try;; 11083esac 11084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11085 (eval "$ac_try") 2>&5 11086 ac_status=$? 11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11088 (exit $ac_status); }; }; then 11089 eval "$as_ac_var=yes" 11090else 11091 echo "$as_me: failed program was:" >&5 11092sed 's/^/| /' conftest.$ac_ext >&5 11093 11094 eval "$as_ac_var=no" 11095fi 11096 11097rm -f core conftest.err conftest.$ac_objext \ 11098 conftest$ac_exeext conftest.$ac_ext 11099fi 11100ac_res=`eval echo '${'$as_ac_var'}'` 11101 { echo "$as_me:$LINENO: result: $ac_res" >&5 11102echo "${ECHO_T}$ac_res" >&6; } 11103if test `eval echo '${'$as_ac_var'}'` = yes; then 11104 cat >>confdefs.h <<_ACEOF 11105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11106_ACEOF 11107 11108fi 11109done 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133for ac_header in errno.h malloc.h memory.h unistd.h 11134do 11135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11137 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11140 echo $ECHO_N "(cached) $ECHO_C" >&6 11141fi 11142ac_res=`eval echo '${'$as_ac_Header'}'` 11143 { echo "$as_me:$LINENO: result: $ac_res" >&5 11144echo "${ECHO_T}$ac_res" >&6; } 11145else 11146 # Is the header compilable? 11147{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11149cat >conftest.$ac_ext <<_ACEOF 11150/* confdefs.h. */ 11151_ACEOF 11152cat confdefs.h >>conftest.$ac_ext 11153cat >>conftest.$ac_ext <<_ACEOF 11154/* end confdefs.h. */ 11155$ac_includes_default 11156#include <$ac_header> 11157_ACEOF 11158rm -f conftest.$ac_objext 11159if { (ac_try="$ac_compile" 11160case "(($ac_try" in 11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11162 *) ac_try_echo=$ac_try;; 11163esac 11164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11165 (eval "$ac_compile") 2>conftest.er1 11166 ac_status=$? 11167 grep -v '^ *+' conftest.er1 >conftest.err 11168 rm -f conftest.er1 11169 cat conftest.err >&5 11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11171 (exit $ac_status); } && 11172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11173 { (case "(($ac_try" in 11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11175 *) ac_try_echo=$ac_try;; 11176esac 11177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11178 (eval "$ac_try") 2>&5 11179 ac_status=$? 11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11181 (exit $ac_status); }; } && 11182 { ac_try='test -s conftest.$ac_objext' 11183 { (case "(($ac_try" in 11184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11185 *) ac_try_echo=$ac_try;; 11186esac 11187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11188 (eval "$ac_try") 2>&5 11189 ac_status=$? 11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11191 (exit $ac_status); }; }; then 11192 ac_header_compiler=yes 11193else 11194 echo "$as_me: failed program was:" >&5 11195sed 's/^/| /' conftest.$ac_ext >&5 11196 11197 ac_header_compiler=no 11198fi 11199 11200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11201{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11202echo "${ECHO_T}$ac_header_compiler" >&6; } 11203 11204# Is the header present? 11205{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11206echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11207cat >conftest.$ac_ext <<_ACEOF 11208/* confdefs.h. */ 11209_ACEOF 11210cat confdefs.h >>conftest.$ac_ext 11211cat >>conftest.$ac_ext <<_ACEOF 11212/* end confdefs.h. */ 11213#include <$ac_header> 11214_ACEOF 11215if { (ac_try="$ac_cpp conftest.$ac_ext" 11216case "(($ac_try" in 11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11218 *) ac_try_echo=$ac_try;; 11219esac 11220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11222 ac_status=$? 11223 grep -v '^ *+' conftest.er1 >conftest.err 11224 rm -f conftest.er1 11225 cat conftest.err >&5 11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11227 (exit $ac_status); } >/dev/null; then 11228 if test -s conftest.err; then 11229 ac_cpp_err=$ac_c_preproc_warn_flag 11230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11231 else 11232 ac_cpp_err= 11233 fi 11234else 11235 ac_cpp_err=yes 11236fi 11237if test -z "$ac_cpp_err"; then 11238 ac_header_preproc=yes 11239else 11240 echo "$as_me: failed program was:" >&5 11241sed 's/^/| /' conftest.$ac_ext >&5 11242 11243 ac_header_preproc=no 11244fi 11245 11246rm -f conftest.err conftest.$ac_ext 11247{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11248echo "${ECHO_T}$ac_header_preproc" >&6; } 11249 11250# So? What about this header? 11251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11252 yes:no: ) 11253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11257 ac_header_preproc=yes 11258 ;; 11259 no:yes:* ) 11260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11267echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11272 ( cat <<\_ASBOX 11273## ------------------------------------ ## 11274## Report this to http://llvm.org/bugs/ ## 11275## ------------------------------------ ## 11276_ASBOX 11277 ) | sed "s/^/$as_me: WARNING: /" >&2 11278 ;; 11279esac 11280{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11283 echo $ECHO_N "(cached) $ECHO_C" >&6 11284else 11285 eval "$as_ac_Header=\$ac_header_preproc" 11286fi 11287ac_res=`eval echo '${'$as_ac_Header'}'` 11288 { echo "$as_me:$LINENO: result: $ac_res" >&5 11289echo "${ECHO_T}$ac_res" >&6; } 11290 11291fi 11292if test `eval echo '${'$as_ac_Header'}'` = yes; then 11293 cat >>confdefs.h <<_ACEOF 11294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11295_ACEOF 11296 11297fi 11298 11299done 11300 11301 11302for ac_header in mach-o/dyld.h 11303do 11304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11306 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11309 echo $ECHO_N "(cached) $ECHO_C" >&6 11310fi 11311ac_res=`eval echo '${'$as_ac_Header'}'` 11312 { echo "$as_me:$LINENO: result: $ac_res" >&5 11313echo "${ECHO_T}$ac_res" >&6; } 11314else 11315 # Is the header compilable? 11316{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11318cat >conftest.$ac_ext <<_ACEOF 11319/* confdefs.h. */ 11320_ACEOF 11321cat confdefs.h >>conftest.$ac_ext 11322cat >>conftest.$ac_ext <<_ACEOF 11323/* end confdefs.h. */ 11324$ac_includes_default 11325#include <$ac_header> 11326_ACEOF 11327rm -f conftest.$ac_objext 11328if { (ac_try="$ac_compile" 11329case "(($ac_try" in 11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11331 *) ac_try_echo=$ac_try;; 11332esac 11333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11334 (eval "$ac_compile") 2>conftest.er1 11335 ac_status=$? 11336 grep -v '^ *+' conftest.er1 >conftest.err 11337 rm -f conftest.er1 11338 cat conftest.err >&5 11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11340 (exit $ac_status); } && 11341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11342 { (case "(($ac_try" in 11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11344 *) ac_try_echo=$ac_try;; 11345esac 11346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11347 (eval "$ac_try") 2>&5 11348 ac_status=$? 11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11350 (exit $ac_status); }; } && 11351 { ac_try='test -s conftest.$ac_objext' 11352 { (case "(($ac_try" in 11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11354 *) ac_try_echo=$ac_try;; 11355esac 11356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11357 (eval "$ac_try") 2>&5 11358 ac_status=$? 11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11360 (exit $ac_status); }; }; then 11361 ac_header_compiler=yes 11362else 11363 echo "$as_me: failed program was:" >&5 11364sed 's/^/| /' conftest.$ac_ext >&5 11365 11366 ac_header_compiler=no 11367fi 11368 11369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11370{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11371echo "${ECHO_T}$ac_header_compiler" >&6; } 11372 11373# Is the header present? 11374{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11376cat >conftest.$ac_ext <<_ACEOF 11377/* confdefs.h. */ 11378_ACEOF 11379cat confdefs.h >>conftest.$ac_ext 11380cat >>conftest.$ac_ext <<_ACEOF 11381/* end confdefs.h. */ 11382#include <$ac_header> 11383_ACEOF 11384if { (ac_try="$ac_cpp conftest.$ac_ext" 11385case "(($ac_try" in 11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11387 *) ac_try_echo=$ac_try;; 11388esac 11389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11391 ac_status=$? 11392 grep -v '^ *+' conftest.er1 >conftest.err 11393 rm -f conftest.er1 11394 cat conftest.err >&5 11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11396 (exit $ac_status); } >/dev/null; then 11397 if test -s conftest.err; then 11398 ac_cpp_err=$ac_c_preproc_warn_flag 11399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11400 else 11401 ac_cpp_err= 11402 fi 11403else 11404 ac_cpp_err=yes 11405fi 11406if test -z "$ac_cpp_err"; then 11407 ac_header_preproc=yes 11408else 11409 echo "$as_me: failed program was:" >&5 11410sed 's/^/| /' conftest.$ac_ext >&5 11411 11412 ac_header_preproc=no 11413fi 11414 11415rm -f conftest.err conftest.$ac_ext 11416{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11417echo "${ECHO_T}$ac_header_preproc" >&6; } 11418 11419# So? What about this header? 11420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11421 yes:no: ) 11422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11426 ac_header_preproc=yes 11427 ;; 11428 no:yes:* ) 11429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11432echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11436echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11441 ( cat <<\_ASBOX 11442## ------------------------------------ ## 11443## Report this to http://llvm.org/bugs/ ## 11444## ------------------------------------ ## 11445_ASBOX 11446 ) | sed "s/^/$as_me: WARNING: /" >&2 11447 ;; 11448esac 11449{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11452 echo $ECHO_N "(cached) $ECHO_C" >&6 11453else 11454 eval "$as_ac_Header=\$ac_header_preproc" 11455fi 11456ac_res=`eval echo '${'$as_ac_Header'}'` 11457 { echo "$as_me:$LINENO: result: $ac_res" >&5 11458echo "${ECHO_T}$ac_res" >&6; } 11459 11460fi 11461if test `eval echo '${'$as_ac_Header'}'` = yes; then 11462 cat >>confdefs.h <<_ACEOF 11463#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11464_ACEOF 11465 11466fi 11467 11468done 11469 11470 11471 11472 11473 11474for ac_func in closedir opendir readdir 11475do 11476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11477{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11479if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11480 echo $ECHO_N "(cached) $ECHO_C" >&6 11481else 11482 cat >conftest.$ac_ext <<_ACEOF 11483/* confdefs.h. */ 11484_ACEOF 11485cat confdefs.h >>conftest.$ac_ext 11486cat >>conftest.$ac_ext <<_ACEOF 11487/* end confdefs.h. */ 11488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11489 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11490#define $ac_func innocuous_$ac_func 11491 11492/* System header to define __stub macros and hopefully few prototypes, 11493 which can conflict with char $ac_func (); below. 11494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11495 <limits.h> exists even on freestanding compilers. */ 11496 11497#ifdef __STDC__ 11498# include <limits.h> 11499#else 11500# include <assert.h> 11501#endif 11502 11503#undef $ac_func 11504 11505/* Override any GCC internal prototype to avoid an error. 11506 Use char because int might match the return type of a GCC 11507 builtin and then its argument prototype would still apply. */ 11508#ifdef __cplusplus 11509extern "C" 11510#endif 11511char $ac_func (); 11512/* The GNU C library defines this for functions which it implements 11513 to always fail with ENOSYS. Some functions are actually named 11514 something starting with __ and the normal name is an alias. */ 11515#if defined __stub_$ac_func || defined __stub___$ac_func 11516choke me 11517#endif 11518 11519int 11520main () 11521{ 11522return $ac_func (); 11523 ; 11524 return 0; 11525} 11526_ACEOF 11527rm -f conftest.$ac_objext conftest$ac_exeext 11528if { (ac_try="$ac_link" 11529case "(($ac_try" in 11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11531 *) ac_try_echo=$ac_try;; 11532esac 11533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11534 (eval "$ac_link") 2>conftest.er1 11535 ac_status=$? 11536 grep -v '^ *+' conftest.er1 >conftest.err 11537 rm -f conftest.er1 11538 cat conftest.err >&5 11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11540 (exit $ac_status); } && 11541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11542 { (case "(($ac_try" in 11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11544 *) ac_try_echo=$ac_try;; 11545esac 11546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11547 (eval "$ac_try") 2>&5 11548 ac_status=$? 11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11550 (exit $ac_status); }; } && 11551 { ac_try='test -s conftest$ac_exeext' 11552 { (case "(($ac_try" in 11553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11554 *) ac_try_echo=$ac_try;; 11555esac 11556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11557 (eval "$ac_try") 2>&5 11558 ac_status=$? 11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11560 (exit $ac_status); }; }; then 11561 eval "$as_ac_var=yes" 11562else 11563 echo "$as_me: failed program was:" >&5 11564sed 's/^/| /' conftest.$ac_ext >&5 11565 11566 eval "$as_ac_var=no" 11567fi 11568 11569rm -f core conftest.err conftest.$ac_objext \ 11570 conftest$ac_exeext conftest.$ac_ext 11571fi 11572ac_res=`eval echo '${'$as_ac_var'}'` 11573 { echo "$as_me:$LINENO: result: $ac_res" >&5 11574echo "${ECHO_T}$ac_res" >&6; } 11575if test `eval echo '${'$as_ac_var'}'` = yes; then 11576 cat >>confdefs.h <<_ACEOF 11577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11578_ACEOF 11579 11580fi 11581done 11582 11583 11584 11585{ echo "$as_me:$LINENO: checking tool compatibility" >&5 11586echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 11587 11588ICC=no 11589IXX=no 11590case $CC in 11591 icc*|icpc*) 11592 ICC=yes 11593 IXX=yes 11594 ;; 11595 *) 11596 ;; 11597esac 11598 11599if test "$GCC" != "yes" && test "$ICC" != "yes" 11600then 11601 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 11602echo "$as_me: error: gcc|icc required but not found" >&2;} 11603 { (exit 1); exit 1; }; } 11604fi 11605 11606if test "$GXX" != "yes" && test "$IXX" != "yes" 11607then 11608 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 11609echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 11610 { (exit 1); exit 1; }; } 11611fi 11612 11613if test "$GCC" = "yes" 11614then 11615 cat >conftest.$ac_ext <<_ACEOF 11616 11617 /* confdefs.h. */ 11618_ACEOF 11619cat confdefs.h >>conftest.$ac_ext 11620cat >>conftest.$ac_ext <<_ACEOF 11621/* end confdefs.h. */ 11622 11623 #if !defined(__GNUC__) || __GNUC__ < 3 11624 #error Unsupported GCC version 11625 #endif 11626 11627 11628_ACEOF 11629rm -f conftest.$ac_objext 11630if { (ac_try="$ac_compile" 11631case "(($ac_try" in 11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11633 *) ac_try_echo=$ac_try;; 11634esac 11635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11636 (eval "$ac_compile") 2>conftest.er1 11637 ac_status=$? 11638 grep -v '^ *+' conftest.er1 >conftest.err 11639 rm -f conftest.er1 11640 cat conftest.err >&5 11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11642 (exit $ac_status); } && 11643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11644 { (case "(($ac_try" in 11645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11646 *) ac_try_echo=$ac_try;; 11647esac 11648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11649 (eval "$ac_try") 2>&5 11650 ac_status=$? 11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11652 (exit $ac_status); }; } && 11653 { ac_try='test -s conftest.$ac_objext' 11654 { (case "(($ac_try" in 11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11656 *) ac_try_echo=$ac_try;; 11657esac 11658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11659 (eval "$ac_try") 2>&5 11660 ac_status=$? 11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11662 (exit $ac_status); }; }; then 11663 : 11664else 11665 echo "$as_me: failed program was:" >&5 11666sed 's/^/| /' conftest.$ac_ext >&5 11667 11668 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 11669echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 11670 { (exit 1); exit 1; }; } 11671fi 11672 11673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11674fi 11675 11676if test -z "$llvm_cv_gnu_make_command" 11677then 11678 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 11679echo "$as_me: error: GNU Make required but not found" >&2;} 11680 { (exit 1); exit 1; }; } 11681fi 11682 11683{ echo "$as_me:$LINENO: result: ok" >&5 11684echo "${ECHO_T}ok" >&6; } 11685 11686{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 11687echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 11688NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 11689 11690NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 11691 11692COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 11693 11694 11695NO_UNINITIALIZED= 11696NO_MAYBE_UNINITIALIZED= 11697if test "$GXX" = "yes" 11698then 11699 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized` 11700 11701 if test -z "$NO_MAYBE_UNINITIALIZED" 11702 then 11703 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized` 11704 11705 fi 11706fi 11707{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5 11708echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; } 11709 11710 11711# Check whether --with-python was given. 11712if test "${with_python+set}" = set; then 11713 withval=$with_python; PYTHON="$withval" 11714fi 11715 11716 11717if test -n "$PYTHON" && test -x "$PYTHON" ; then 11718 { echo "$as_me:$LINENO: checking for python" >&5 11719echo $ECHO_N "checking for python... $ECHO_C" >&6; } 11720 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5 11721echo "${ECHO_T}user defined: $with_python" >&6; } 11722else 11723 if test -n "$PYTHON" ; then 11724 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5 11725echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;} 11726 fi 11727 11728 # Extract the first word of "python python2 python26", so it can be a program name with args. 11729set dummy python python2 python26; ac_word=$2 11730{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11732if test "${ac_cv_path_PYTHON+set}" = set; then 11733 echo $ECHO_N "(cached) $ECHO_C" >&6 11734else 11735 case $PYTHON in 11736 [\\/]* | ?:[\\/]*) 11737 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 11738 ;; 11739 *) 11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11741for as_dir in $PATH 11742do 11743 IFS=$as_save_IFS 11744 test -z "$as_dir" && as_dir=. 11745 for ac_exec_ext in '' $ac_executable_extensions; do 11746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 11747 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 11748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11749 break 2 11750 fi 11751done 11752done 11753IFS=$as_save_IFS 11754 11755 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5 11756echo "${ECHO_T}not found" >&6; } 11757 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5 11758echo "$as_me: error: could not find python 2.5 or higher" >&2;} 11759 { (exit 1); exit 1; }; }" 11760 ;; 11761esac 11762fi 11763PYTHON=$ac_cv_path_PYTHON 11764if test -n "$PYTHON"; then 11765 { echo "$as_me:$LINENO: result: $PYTHON" >&5 11766echo "${ECHO_T}$PYTHON" >&6; } 11767else 11768 { echo "$as_me:$LINENO: result: no" >&5 11769echo "${ECHO_T}no" >&6; } 11770fi 11771 11772 11773fi 11774 11775{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5 11776echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; } 11777ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'` 11778ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1` 11779ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2` 11780ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3` 11781if test "$ac_python_version_major" -eq "2" \ 11782 && test "$ac_python_version_minor" -ge "5" ; then 11783 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5 11784echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; } 11785else 11786 { echo "$as_me:$LINENO: result: not found" >&5 11787echo "${ECHO_T}not found" >&6; } 11788 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5 11789See \`config.log' for more details." >&5 11790echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5 11791See \`config.log' for more details." >&2;} 11792 { (exit 1); exit 1; }; } 11793fi 11794 11795 11796 11797{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 11798echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 11799if test "${ac_cv_lib_m_sin+set}" = set; then 11800 echo $ECHO_N "(cached) $ECHO_C" >&6 11801else 11802 ac_check_lib_save_LIBS=$LIBS 11803LIBS="-lm $LIBS" 11804cat >conftest.$ac_ext <<_ACEOF 11805/* confdefs.h. */ 11806_ACEOF 11807cat confdefs.h >>conftest.$ac_ext 11808cat >>conftest.$ac_ext <<_ACEOF 11809/* end confdefs.h. */ 11810 11811/* Override any GCC internal prototype to avoid an error. 11812 Use char because int might match the return type of a GCC 11813 builtin and then its argument prototype would still apply. */ 11814#ifdef __cplusplus 11815extern "C" 11816#endif 11817char sin (); 11818int 11819main () 11820{ 11821return sin (); 11822 ; 11823 return 0; 11824} 11825_ACEOF 11826rm -f conftest.$ac_objext conftest$ac_exeext 11827if { (ac_try="$ac_link" 11828case "(($ac_try" in 11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11830 *) ac_try_echo=$ac_try;; 11831esac 11832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11833 (eval "$ac_link") 2>conftest.er1 11834 ac_status=$? 11835 grep -v '^ *+' conftest.er1 >conftest.err 11836 rm -f conftest.er1 11837 cat conftest.err >&5 11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11839 (exit $ac_status); } && 11840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11841 { (case "(($ac_try" in 11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11843 *) ac_try_echo=$ac_try;; 11844esac 11845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11846 (eval "$ac_try") 2>&5 11847 ac_status=$? 11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11849 (exit $ac_status); }; } && 11850 { ac_try='test -s conftest$ac_exeext' 11851 { (case "(($ac_try" in 11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11853 *) ac_try_echo=$ac_try;; 11854esac 11855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11856 (eval "$ac_try") 2>&5 11857 ac_status=$? 11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11859 (exit $ac_status); }; }; then 11860 ac_cv_lib_m_sin=yes 11861else 11862 echo "$as_me: failed program was:" >&5 11863sed 's/^/| /' conftest.$ac_ext >&5 11864 11865 ac_cv_lib_m_sin=no 11866fi 11867 11868rm -f core conftest.err conftest.$ac_objext \ 11869 conftest$ac_exeext conftest.$ac_ext 11870LIBS=$ac_check_lib_save_LIBS 11871fi 11872{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 11873echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 11874if test $ac_cv_lib_m_sin = yes; then 11875 cat >>confdefs.h <<_ACEOF 11876#define HAVE_LIBM 1 11877_ACEOF 11878 11879 LIBS="-lm $LIBS" 11880 11881fi 11882 11883if test "$llvm_cv_os_type" = "MingW" ; then 11884 11885{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 11886echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 11887if test "${ac_cv_lib_imagehlp_main+set}" = set; then 11888 echo $ECHO_N "(cached) $ECHO_C" >&6 11889else 11890 ac_check_lib_save_LIBS=$LIBS 11891LIBS="-limagehlp $LIBS" 11892cat >conftest.$ac_ext <<_ACEOF 11893/* confdefs.h. */ 11894_ACEOF 11895cat confdefs.h >>conftest.$ac_ext 11896cat >>conftest.$ac_ext <<_ACEOF 11897/* end confdefs.h. */ 11898 11899 11900int 11901main () 11902{ 11903return main (); 11904 ; 11905 return 0; 11906} 11907_ACEOF 11908rm -f conftest.$ac_objext conftest$ac_exeext 11909if { (ac_try="$ac_link" 11910case "(($ac_try" in 11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11912 *) ac_try_echo=$ac_try;; 11913esac 11914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11915 (eval "$ac_link") 2>conftest.er1 11916 ac_status=$? 11917 grep -v '^ *+' conftest.er1 >conftest.err 11918 rm -f conftest.er1 11919 cat conftest.err >&5 11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11921 (exit $ac_status); } && 11922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11923 { (case "(($ac_try" in 11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11925 *) ac_try_echo=$ac_try;; 11926esac 11927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11928 (eval "$ac_try") 2>&5 11929 ac_status=$? 11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11931 (exit $ac_status); }; } && 11932 { ac_try='test -s conftest$ac_exeext' 11933 { (case "(($ac_try" in 11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11935 *) ac_try_echo=$ac_try;; 11936esac 11937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11938 (eval "$ac_try") 2>&5 11939 ac_status=$? 11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11941 (exit $ac_status); }; }; then 11942 ac_cv_lib_imagehlp_main=yes 11943else 11944 echo "$as_me: failed program was:" >&5 11945sed 's/^/| /' conftest.$ac_ext >&5 11946 11947 ac_cv_lib_imagehlp_main=no 11948fi 11949 11950rm -f core conftest.err conftest.$ac_objext \ 11951 conftest$ac_exeext conftest.$ac_ext 11952LIBS=$ac_check_lib_save_LIBS 11953fi 11954{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 11955echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 11956if test $ac_cv_lib_imagehlp_main = yes; then 11957 cat >>confdefs.h <<_ACEOF 11958#define HAVE_LIBIMAGEHLP 1 11959_ACEOF 11960 11961 LIBS="-limagehlp $LIBS" 11962 11963fi 11964 11965 11966{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 11967echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 11968if test "${ac_cv_lib_psapi_main+set}" = set; then 11969 echo $ECHO_N "(cached) $ECHO_C" >&6 11970else 11971 ac_check_lib_save_LIBS=$LIBS 11972LIBS="-lpsapi $LIBS" 11973cat >conftest.$ac_ext <<_ACEOF 11974/* confdefs.h. */ 11975_ACEOF 11976cat confdefs.h >>conftest.$ac_ext 11977cat >>conftest.$ac_ext <<_ACEOF 11978/* end confdefs.h. */ 11979 11980 11981int 11982main () 11983{ 11984return main (); 11985 ; 11986 return 0; 11987} 11988_ACEOF 11989rm -f conftest.$ac_objext conftest$ac_exeext 11990if { (ac_try="$ac_link" 11991case "(($ac_try" in 11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11993 *) ac_try_echo=$ac_try;; 11994esac 11995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11996 (eval "$ac_link") 2>conftest.er1 11997 ac_status=$? 11998 grep -v '^ *+' conftest.er1 >conftest.err 11999 rm -f conftest.er1 12000 cat conftest.err >&5 12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12002 (exit $ac_status); } && 12003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12004 { (case "(($ac_try" in 12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12006 *) ac_try_echo=$ac_try;; 12007esac 12008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12009 (eval "$ac_try") 2>&5 12010 ac_status=$? 12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12012 (exit $ac_status); }; } && 12013 { ac_try='test -s conftest$ac_exeext' 12014 { (case "(($ac_try" in 12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12016 *) ac_try_echo=$ac_try;; 12017esac 12018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12019 (eval "$ac_try") 2>&5 12020 ac_status=$? 12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12022 (exit $ac_status); }; }; then 12023 ac_cv_lib_psapi_main=yes 12024else 12025 echo "$as_me: failed program was:" >&5 12026sed 's/^/| /' conftest.$ac_ext >&5 12027 12028 ac_cv_lib_psapi_main=no 12029fi 12030 12031rm -f core conftest.err conftest.$ac_objext \ 12032 conftest$ac_exeext conftest.$ac_ext 12033LIBS=$ac_check_lib_save_LIBS 12034fi 12035{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12036echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12037if test $ac_cv_lib_psapi_main = yes; then 12038 cat >>confdefs.h <<_ACEOF 12039#define HAVE_LIBPSAPI 1 12040_ACEOF 12041 12042 LIBS="-lpsapi $LIBS" 12043 12044fi 12045 12046fi 12047 12048{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12049echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12050if test "${ac_cv_search_dlopen+set}" = set; then 12051 echo $ECHO_N "(cached) $ECHO_C" >&6 12052else 12053 ac_func_search_save_LIBS=$LIBS 12054cat >conftest.$ac_ext <<_ACEOF 12055/* confdefs.h. */ 12056_ACEOF 12057cat confdefs.h >>conftest.$ac_ext 12058cat >>conftest.$ac_ext <<_ACEOF 12059/* end confdefs.h. */ 12060 12061/* Override any GCC internal prototype to avoid an error. 12062 Use char because int might match the return type of a GCC 12063 builtin and then its argument prototype would still apply. */ 12064#ifdef __cplusplus 12065extern "C" 12066#endif 12067char dlopen (); 12068int 12069main () 12070{ 12071return dlopen (); 12072 ; 12073 return 0; 12074} 12075_ACEOF 12076for ac_lib in '' dl; do 12077 if test -z "$ac_lib"; then 12078 ac_res="none required" 12079 else 12080 ac_res=-l$ac_lib 12081 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12082 fi 12083 rm -f conftest.$ac_objext conftest$ac_exeext 12084if { (ac_try="$ac_link" 12085case "(($ac_try" in 12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12087 *) ac_try_echo=$ac_try;; 12088esac 12089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12090 (eval "$ac_link") 2>conftest.er1 12091 ac_status=$? 12092 grep -v '^ *+' conftest.er1 >conftest.err 12093 rm -f conftest.er1 12094 cat conftest.err >&5 12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12096 (exit $ac_status); } && 12097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12098 { (case "(($ac_try" in 12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12100 *) ac_try_echo=$ac_try;; 12101esac 12102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12103 (eval "$ac_try") 2>&5 12104 ac_status=$? 12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12106 (exit $ac_status); }; } && 12107 { ac_try='test -s conftest$ac_exeext' 12108 { (case "(($ac_try" in 12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12110 *) ac_try_echo=$ac_try;; 12111esac 12112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12113 (eval "$ac_try") 2>&5 12114 ac_status=$? 12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12116 (exit $ac_status); }; }; then 12117 ac_cv_search_dlopen=$ac_res 12118else 12119 echo "$as_me: failed program was:" >&5 12120sed 's/^/| /' conftest.$ac_ext >&5 12121 12122 12123fi 12124 12125rm -f core conftest.err conftest.$ac_objext \ 12126 conftest$ac_exeext 12127 if test "${ac_cv_search_dlopen+set}" = set; then 12128 break 12129fi 12130done 12131if test "${ac_cv_search_dlopen+set}" = set; then 12132 : 12133else 12134 ac_cv_search_dlopen=no 12135fi 12136rm conftest.$ac_ext 12137LIBS=$ac_func_search_save_LIBS 12138fi 12139{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12140echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12141ac_res=$ac_cv_search_dlopen 12142if test "$ac_res" != no; then 12143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12144 12145cat >>confdefs.h <<\_ACEOF 12146#define HAVE_DLOPEN 1 12147_ACEOF 12148 12149else 12150 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12151echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12152fi 12153 12154 12155{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 12156echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } 12157if test "${ac_cv_search_clock_gettime+set}" = set; then 12158 echo $ECHO_N "(cached) $ECHO_C" >&6 12159else 12160 ac_func_search_save_LIBS=$LIBS 12161cat >conftest.$ac_ext <<_ACEOF 12162/* confdefs.h. */ 12163_ACEOF 12164cat confdefs.h >>conftest.$ac_ext 12165cat >>conftest.$ac_ext <<_ACEOF 12166/* end confdefs.h. */ 12167 12168/* Override any GCC internal prototype to avoid an error. 12169 Use char because int might match the return type of a GCC 12170 builtin and then its argument prototype would still apply. */ 12171#ifdef __cplusplus 12172extern "C" 12173#endif 12174char clock_gettime (); 12175int 12176main () 12177{ 12178return clock_gettime (); 12179 ; 12180 return 0; 12181} 12182_ACEOF 12183for ac_lib in '' rt; do 12184 if test -z "$ac_lib"; then 12185 ac_res="none required" 12186 else 12187 ac_res=-l$ac_lib 12188 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12189 fi 12190 rm -f conftest.$ac_objext conftest$ac_exeext 12191if { (ac_try="$ac_link" 12192case "(($ac_try" in 12193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12194 *) ac_try_echo=$ac_try;; 12195esac 12196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12197 (eval "$ac_link") 2>conftest.er1 12198 ac_status=$? 12199 grep -v '^ *+' conftest.er1 >conftest.err 12200 rm -f conftest.er1 12201 cat conftest.err >&5 12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12203 (exit $ac_status); } && 12204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12205 { (case "(($ac_try" in 12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12207 *) ac_try_echo=$ac_try;; 12208esac 12209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12210 (eval "$ac_try") 2>&5 12211 ac_status=$? 12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12213 (exit $ac_status); }; } && 12214 { ac_try='test -s conftest$ac_exeext' 12215 { (case "(($ac_try" in 12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12217 *) ac_try_echo=$ac_try;; 12218esac 12219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12220 (eval "$ac_try") 2>&5 12221 ac_status=$? 12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12223 (exit $ac_status); }; }; then 12224 ac_cv_search_clock_gettime=$ac_res 12225else 12226 echo "$as_me: failed program was:" >&5 12227sed 's/^/| /' conftest.$ac_ext >&5 12228 12229 12230fi 12231 12232rm -f core conftest.err conftest.$ac_objext \ 12233 conftest$ac_exeext 12234 if test "${ac_cv_search_clock_gettime+set}" = set; then 12235 break 12236fi 12237done 12238if test "${ac_cv_search_clock_gettime+set}" = set; then 12239 : 12240else 12241 ac_cv_search_clock_gettime=no 12242fi 12243rm conftest.$ac_ext 12244LIBS=$ac_func_search_save_LIBS 12245fi 12246{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 12247echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } 12248ac_res=$ac_cv_search_clock_gettime 12249if test "$ac_res" != no; then 12250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12251 12252fi 12253 12254 12255if test "$llvm_cv_enable_libffi" = "yes" ; then 12256 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12257echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12258if test "${ac_cv_search_ffi_call+set}" = set; then 12259 echo $ECHO_N "(cached) $ECHO_C" >&6 12260else 12261 ac_func_search_save_LIBS=$LIBS 12262cat >conftest.$ac_ext <<_ACEOF 12263/* confdefs.h. */ 12264_ACEOF 12265cat confdefs.h >>conftest.$ac_ext 12266cat >>conftest.$ac_ext <<_ACEOF 12267/* end confdefs.h. */ 12268 12269/* Override any GCC internal prototype to avoid an error. 12270 Use char because int might match the return type of a GCC 12271 builtin and then its argument prototype would still apply. */ 12272#ifdef __cplusplus 12273extern "C" 12274#endif 12275char ffi_call (); 12276int 12277main () 12278{ 12279return ffi_call (); 12280 ; 12281 return 0; 12282} 12283_ACEOF 12284for ac_lib in '' ffi; do 12285 if test -z "$ac_lib"; then 12286 ac_res="none required" 12287 else 12288 ac_res=-l$ac_lib 12289 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12290 fi 12291 rm -f conftest.$ac_objext conftest$ac_exeext 12292if { (ac_try="$ac_link" 12293case "(($ac_try" in 12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12295 *) ac_try_echo=$ac_try;; 12296esac 12297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12298 (eval "$ac_link") 2>conftest.er1 12299 ac_status=$? 12300 grep -v '^ *+' conftest.er1 >conftest.err 12301 rm -f conftest.er1 12302 cat conftest.err >&5 12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12304 (exit $ac_status); } && 12305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12306 { (case "(($ac_try" in 12307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12308 *) ac_try_echo=$ac_try;; 12309esac 12310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12311 (eval "$ac_try") 2>&5 12312 ac_status=$? 12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12314 (exit $ac_status); }; } && 12315 { ac_try='test -s conftest$ac_exeext' 12316 { (case "(($ac_try" in 12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12318 *) ac_try_echo=$ac_try;; 12319esac 12320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12321 (eval "$ac_try") 2>&5 12322 ac_status=$? 12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12324 (exit $ac_status); }; }; then 12325 ac_cv_search_ffi_call=$ac_res 12326else 12327 echo "$as_me: failed program was:" >&5 12328sed 's/^/| /' conftest.$ac_ext >&5 12329 12330 12331fi 12332 12333rm -f core conftest.err conftest.$ac_objext \ 12334 conftest$ac_exeext 12335 if test "${ac_cv_search_ffi_call+set}" = set; then 12336 break 12337fi 12338done 12339if test "${ac_cv_search_ffi_call+set}" = set; then 12340 : 12341else 12342 ac_cv_search_ffi_call=no 12343fi 12344rm conftest.$ac_ext 12345LIBS=$ac_func_search_save_LIBS 12346fi 12347{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12348echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12349ac_res=$ac_cv_search_ffi_call 12350if test "$ac_res" != no; then 12351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12352 12353cat >>confdefs.h <<\_ACEOF 12354#define HAVE_FFI_CALL 1 12355_ACEOF 12356 12357else 12358 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12359echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12360 { (exit 1); exit 1; }; } 12361fi 12362 12363fi 12364 12365{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12366echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12367if test "${ac_cv_search_mallinfo+set}" = set; then 12368 echo $ECHO_N "(cached) $ECHO_C" >&6 12369else 12370 ac_func_search_save_LIBS=$LIBS 12371cat >conftest.$ac_ext <<_ACEOF 12372/* confdefs.h. */ 12373_ACEOF 12374cat confdefs.h >>conftest.$ac_ext 12375cat >>conftest.$ac_ext <<_ACEOF 12376/* end confdefs.h. */ 12377 12378/* Override any GCC internal prototype to avoid an error. 12379 Use char because int might match the return type of a GCC 12380 builtin and then its argument prototype would still apply. */ 12381#ifdef __cplusplus 12382extern "C" 12383#endif 12384char mallinfo (); 12385int 12386main () 12387{ 12388return mallinfo (); 12389 ; 12390 return 0; 12391} 12392_ACEOF 12393for ac_lib in '' malloc; do 12394 if test -z "$ac_lib"; then 12395 ac_res="none required" 12396 else 12397 ac_res=-l$ac_lib 12398 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12399 fi 12400 rm -f conftest.$ac_objext conftest$ac_exeext 12401if { (ac_try="$ac_link" 12402case "(($ac_try" in 12403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12404 *) ac_try_echo=$ac_try;; 12405esac 12406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12407 (eval "$ac_link") 2>conftest.er1 12408 ac_status=$? 12409 grep -v '^ *+' conftest.er1 >conftest.err 12410 rm -f conftest.er1 12411 cat conftest.err >&5 12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12413 (exit $ac_status); } && 12414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12415 { (case "(($ac_try" in 12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12417 *) ac_try_echo=$ac_try;; 12418esac 12419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12420 (eval "$ac_try") 2>&5 12421 ac_status=$? 12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12423 (exit $ac_status); }; } && 12424 { ac_try='test -s conftest$ac_exeext' 12425 { (case "(($ac_try" in 12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12427 *) ac_try_echo=$ac_try;; 12428esac 12429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12430 (eval "$ac_try") 2>&5 12431 ac_status=$? 12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12433 (exit $ac_status); }; }; then 12434 ac_cv_search_mallinfo=$ac_res 12435else 12436 echo "$as_me: failed program was:" >&5 12437sed 's/^/| /' conftest.$ac_ext >&5 12438 12439 12440fi 12441 12442rm -f core conftest.err conftest.$ac_objext \ 12443 conftest$ac_exeext 12444 if test "${ac_cv_search_mallinfo+set}" = set; then 12445 break 12446fi 12447done 12448if test "${ac_cv_search_mallinfo+set}" = set; then 12449 : 12450else 12451 ac_cv_search_mallinfo=no 12452fi 12453rm conftest.$ac_ext 12454LIBS=$ac_func_search_save_LIBS 12455fi 12456{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 12457echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 12458ac_res=$ac_cv_search_mallinfo 12459if test "$ac_res" != no; then 12460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12461 12462cat >>confdefs.h <<\_ACEOF 12463#define HAVE_MALLINFO 1 12464_ACEOF 12465 12466fi 12467 12468 12469if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 12470 12471{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 12472echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 12473if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 12474 echo $ECHO_N "(cached) $ECHO_C" >&6 12475else 12476 ac_check_lib_save_LIBS=$LIBS 12477LIBS="-lpthread $LIBS" 12478cat >conftest.$ac_ext <<_ACEOF 12479/* confdefs.h. */ 12480_ACEOF 12481cat confdefs.h >>conftest.$ac_ext 12482cat >>conftest.$ac_ext <<_ACEOF 12483/* end confdefs.h. */ 12484 12485/* Override any GCC internal prototype to avoid an error. 12486 Use char because int might match the return type of a GCC 12487 builtin and then its argument prototype would still apply. */ 12488#ifdef __cplusplus 12489extern "C" 12490#endif 12491char pthread_mutex_init (); 12492int 12493main () 12494{ 12495return pthread_mutex_init (); 12496 ; 12497 return 0; 12498} 12499_ACEOF 12500rm -f conftest.$ac_objext conftest$ac_exeext 12501if { (ac_try="$ac_link" 12502case "(($ac_try" in 12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12504 *) ac_try_echo=$ac_try;; 12505esac 12506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12507 (eval "$ac_link") 2>conftest.er1 12508 ac_status=$? 12509 grep -v '^ *+' conftest.er1 >conftest.err 12510 rm -f conftest.er1 12511 cat conftest.err >&5 12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12513 (exit $ac_status); } && 12514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12515 { (case "(($ac_try" in 12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12517 *) ac_try_echo=$ac_try;; 12518esac 12519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12520 (eval "$ac_try") 2>&5 12521 ac_status=$? 12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12523 (exit $ac_status); }; } && 12524 { ac_try='test -s conftest$ac_exeext' 12525 { (case "(($ac_try" in 12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12527 *) ac_try_echo=$ac_try;; 12528esac 12529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12530 (eval "$ac_try") 2>&5 12531 ac_status=$? 12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12533 (exit $ac_status); }; }; then 12534 ac_cv_lib_pthread_pthread_mutex_init=yes 12535else 12536 echo "$as_me: failed program was:" >&5 12537sed 's/^/| /' conftest.$ac_ext >&5 12538 12539 ac_cv_lib_pthread_pthread_mutex_init=no 12540fi 12541 12542rm -f core conftest.err conftest.$ac_objext \ 12543 conftest$ac_exeext conftest.$ac_ext 12544LIBS=$ac_check_lib_save_LIBS 12545fi 12546{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 12547echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 12548if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 12549 cat >>confdefs.h <<_ACEOF 12550#define HAVE_LIBPTHREAD 1 12551_ACEOF 12552 12553 LIBS="-lpthread $LIBS" 12554 12555fi 12556 12557 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 12558echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 12559if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12560 echo $ECHO_N "(cached) $ECHO_C" >&6 12561else 12562 ac_func_search_save_LIBS=$LIBS 12563cat >conftest.$ac_ext <<_ACEOF 12564/* confdefs.h. */ 12565_ACEOF 12566cat confdefs.h >>conftest.$ac_ext 12567cat >>conftest.$ac_ext <<_ACEOF 12568/* end confdefs.h. */ 12569 12570/* Override any GCC internal prototype to avoid an error. 12571 Use char because int might match the return type of a GCC 12572 builtin and then its argument prototype would still apply. */ 12573#ifdef __cplusplus 12574extern "C" 12575#endif 12576char pthread_mutex_lock (); 12577int 12578main () 12579{ 12580return pthread_mutex_lock (); 12581 ; 12582 return 0; 12583} 12584_ACEOF 12585for ac_lib in '' pthread; do 12586 if test -z "$ac_lib"; then 12587 ac_res="none required" 12588 else 12589 ac_res=-l$ac_lib 12590 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12591 fi 12592 rm -f conftest.$ac_objext conftest$ac_exeext 12593if { (ac_try="$ac_link" 12594case "(($ac_try" in 12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12596 *) ac_try_echo=$ac_try;; 12597esac 12598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12599 (eval "$ac_link") 2>conftest.er1 12600 ac_status=$? 12601 grep -v '^ *+' conftest.er1 >conftest.err 12602 rm -f conftest.er1 12603 cat conftest.err >&5 12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12605 (exit $ac_status); } && 12606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12607 { (case "(($ac_try" in 12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12609 *) ac_try_echo=$ac_try;; 12610esac 12611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12612 (eval "$ac_try") 2>&5 12613 ac_status=$? 12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12615 (exit $ac_status); }; } && 12616 { ac_try='test -s conftest$ac_exeext' 12617 { (case "(($ac_try" in 12618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12619 *) ac_try_echo=$ac_try;; 12620esac 12621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12622 (eval "$ac_try") 2>&5 12623 ac_status=$? 12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12625 (exit $ac_status); }; }; then 12626 ac_cv_search_pthread_mutex_lock=$ac_res 12627else 12628 echo "$as_me: failed program was:" >&5 12629sed 's/^/| /' conftest.$ac_ext >&5 12630 12631 12632fi 12633 12634rm -f core conftest.err conftest.$ac_objext \ 12635 conftest$ac_exeext 12636 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12637 break 12638fi 12639done 12640if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12641 : 12642else 12643 ac_cv_search_pthread_mutex_lock=no 12644fi 12645rm conftest.$ac_ext 12646LIBS=$ac_func_search_save_LIBS 12647fi 12648{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 12649echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 12650ac_res=$ac_cv_search_pthread_mutex_lock 12651if test "$ac_res" != no; then 12652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12653 12654cat >>confdefs.h <<\_ACEOF 12655#define HAVE_PTHREAD_MUTEX_LOCK 1 12656_ACEOF 12657 12658fi 12659 12660 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 12661echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 12662if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12663 echo $ECHO_N "(cached) $ECHO_C" >&6 12664else 12665 ac_func_search_save_LIBS=$LIBS 12666cat >conftest.$ac_ext <<_ACEOF 12667/* confdefs.h. */ 12668_ACEOF 12669cat confdefs.h >>conftest.$ac_ext 12670cat >>conftest.$ac_ext <<_ACEOF 12671/* end confdefs.h. */ 12672 12673/* Override any GCC internal prototype to avoid an error. 12674 Use char because int might match the return type of a GCC 12675 builtin and then its argument prototype would still apply. */ 12676#ifdef __cplusplus 12677extern "C" 12678#endif 12679char pthread_rwlock_init (); 12680int 12681main () 12682{ 12683return pthread_rwlock_init (); 12684 ; 12685 return 0; 12686} 12687_ACEOF 12688for ac_lib in '' pthread; do 12689 if test -z "$ac_lib"; then 12690 ac_res="none required" 12691 else 12692 ac_res=-l$ac_lib 12693 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12694 fi 12695 rm -f conftest.$ac_objext conftest$ac_exeext 12696if { (ac_try="$ac_link" 12697case "(($ac_try" in 12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12699 *) ac_try_echo=$ac_try;; 12700esac 12701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12702 (eval "$ac_link") 2>conftest.er1 12703 ac_status=$? 12704 grep -v '^ *+' conftest.er1 >conftest.err 12705 rm -f conftest.er1 12706 cat conftest.err >&5 12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12708 (exit $ac_status); } && 12709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12710 { (case "(($ac_try" in 12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12712 *) ac_try_echo=$ac_try;; 12713esac 12714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12715 (eval "$ac_try") 2>&5 12716 ac_status=$? 12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12718 (exit $ac_status); }; } && 12719 { ac_try='test -s conftest$ac_exeext' 12720 { (case "(($ac_try" in 12721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12722 *) ac_try_echo=$ac_try;; 12723esac 12724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12725 (eval "$ac_try") 2>&5 12726 ac_status=$? 12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12728 (exit $ac_status); }; }; then 12729 ac_cv_search_pthread_rwlock_init=$ac_res 12730else 12731 echo "$as_me: failed program was:" >&5 12732sed 's/^/| /' conftest.$ac_ext >&5 12733 12734 12735fi 12736 12737rm -f core conftest.err conftest.$ac_objext \ 12738 conftest$ac_exeext 12739 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12740 break 12741fi 12742done 12743if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12744 : 12745else 12746 ac_cv_search_pthread_rwlock_init=no 12747fi 12748rm conftest.$ac_ext 12749LIBS=$ac_func_search_save_LIBS 12750fi 12751{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 12752echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 12753ac_res=$ac_cv_search_pthread_rwlock_init 12754if test "$ac_res" != no; then 12755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12756 12757cat >>confdefs.h <<\_ACEOF 12758#define HAVE_PTHREAD_RWLOCK_INIT 1 12759_ACEOF 12760 12761fi 12762 12763 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 12764echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 12765if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12766 echo $ECHO_N "(cached) $ECHO_C" >&6 12767else 12768 ac_func_search_save_LIBS=$LIBS 12769cat >conftest.$ac_ext <<_ACEOF 12770/* confdefs.h. */ 12771_ACEOF 12772cat confdefs.h >>conftest.$ac_ext 12773cat >>conftest.$ac_ext <<_ACEOF 12774/* end confdefs.h. */ 12775 12776/* Override any GCC internal prototype to avoid an error. 12777 Use char because int might match the return type of a GCC 12778 builtin and then its argument prototype would still apply. */ 12779#ifdef __cplusplus 12780extern "C" 12781#endif 12782char pthread_getspecific (); 12783int 12784main () 12785{ 12786return pthread_getspecific (); 12787 ; 12788 return 0; 12789} 12790_ACEOF 12791for ac_lib in '' pthread; do 12792 if test -z "$ac_lib"; then 12793 ac_res="none required" 12794 else 12795 ac_res=-l$ac_lib 12796 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12797 fi 12798 rm -f conftest.$ac_objext conftest$ac_exeext 12799if { (ac_try="$ac_link" 12800case "(($ac_try" in 12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12802 *) ac_try_echo=$ac_try;; 12803esac 12804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12805 (eval "$ac_link") 2>conftest.er1 12806 ac_status=$? 12807 grep -v '^ *+' conftest.er1 >conftest.err 12808 rm -f conftest.er1 12809 cat conftest.err >&5 12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12811 (exit $ac_status); } && 12812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12813 { (case "(($ac_try" in 12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12815 *) ac_try_echo=$ac_try;; 12816esac 12817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12818 (eval "$ac_try") 2>&5 12819 ac_status=$? 12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12821 (exit $ac_status); }; } && 12822 { ac_try='test -s conftest$ac_exeext' 12823 { (case "(($ac_try" in 12824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12825 *) ac_try_echo=$ac_try;; 12826esac 12827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12828 (eval "$ac_try") 2>&5 12829 ac_status=$? 12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12831 (exit $ac_status); }; }; then 12832 ac_cv_search_pthread_getspecific=$ac_res 12833else 12834 echo "$as_me: failed program was:" >&5 12835sed 's/^/| /' conftest.$ac_ext >&5 12836 12837 12838fi 12839 12840rm -f core conftest.err conftest.$ac_objext \ 12841 conftest$ac_exeext 12842 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12843 break 12844fi 12845done 12846if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12847 : 12848else 12849 ac_cv_search_pthread_getspecific=no 12850fi 12851rm conftest.$ac_ext 12852LIBS=$ac_func_search_save_LIBS 12853fi 12854{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 12855echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 12856ac_res=$ac_cv_search_pthread_getspecific 12857if test "$ac_res" != no; then 12858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12859 12860cat >>confdefs.h <<\_ACEOF 12861#define HAVE_PTHREAD_GETSPECIFIC 1 12862_ACEOF 12863 12864fi 12865 12866fi 12867 12868if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 12869 12870{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 12871echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; } 12872if test "${ac_cv_lib_z_compress2+set}" = set; then 12873 echo $ECHO_N "(cached) $ECHO_C" >&6 12874else 12875 ac_check_lib_save_LIBS=$LIBS 12876LIBS="-lz $LIBS" 12877cat >conftest.$ac_ext <<_ACEOF 12878/* confdefs.h. */ 12879_ACEOF 12880cat confdefs.h >>conftest.$ac_ext 12881cat >>conftest.$ac_ext <<_ACEOF 12882/* end confdefs.h. */ 12883 12884/* Override any GCC internal prototype to avoid an error. 12885 Use char because int might match the return type of a GCC 12886 builtin and then its argument prototype would still apply. */ 12887#ifdef __cplusplus 12888extern "C" 12889#endif 12890char compress2 (); 12891int 12892main () 12893{ 12894return compress2 (); 12895 ; 12896 return 0; 12897} 12898_ACEOF 12899rm -f conftest.$ac_objext conftest$ac_exeext 12900if { (ac_try="$ac_link" 12901case "(($ac_try" in 12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12903 *) ac_try_echo=$ac_try;; 12904esac 12905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12906 (eval "$ac_link") 2>conftest.er1 12907 ac_status=$? 12908 grep -v '^ *+' conftest.er1 >conftest.err 12909 rm -f conftest.er1 12910 cat conftest.err >&5 12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12912 (exit $ac_status); } && 12913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12914 { (case "(($ac_try" in 12915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12916 *) ac_try_echo=$ac_try;; 12917esac 12918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12919 (eval "$ac_try") 2>&5 12920 ac_status=$? 12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12922 (exit $ac_status); }; } && 12923 { ac_try='test -s conftest$ac_exeext' 12924 { (case "(($ac_try" in 12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12926 *) ac_try_echo=$ac_try;; 12927esac 12928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12929 (eval "$ac_try") 2>&5 12930 ac_status=$? 12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12932 (exit $ac_status); }; }; then 12933 ac_cv_lib_z_compress2=yes 12934else 12935 echo "$as_me: failed program was:" >&5 12936sed 's/^/| /' conftest.$ac_ext >&5 12937 12938 ac_cv_lib_z_compress2=no 12939fi 12940 12941rm -f core conftest.err conftest.$ac_objext \ 12942 conftest$ac_exeext conftest.$ac_ext 12943LIBS=$ac_check_lib_save_LIBS 12944fi 12945{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 12946echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; } 12947if test $ac_cv_lib_z_compress2 = yes; then 12948 cat >>confdefs.h <<_ACEOF 12949#define HAVE_LIBZ 1 12950_ACEOF 12951 12952 LIBS="-lz $LIBS" 12953 12954fi 12955 12956fi 12957 12958 12959# Check whether --with-udis86 was given. 12960if test "${with_udis86+set}" = set; then 12961 withval=$with_udis86; 12962 USE_UDIS86=1 12963 12964 case "$withval" in 12965 /usr/lib|yes) ;; 12966 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 12967 esac 12968 12969{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 12970echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 12971if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 12972 echo $ECHO_N "(cached) $ECHO_C" >&6 12973else 12974 ac_check_lib_save_LIBS=$LIBS 12975LIBS="-ludis86 $LIBS" 12976cat >conftest.$ac_ext <<_ACEOF 12977/* confdefs.h. */ 12978_ACEOF 12979cat confdefs.h >>conftest.$ac_ext 12980cat >>conftest.$ac_ext <<_ACEOF 12981/* end confdefs.h. */ 12982 12983/* Override any GCC internal prototype to avoid an error. 12984 Use char because int might match the return type of a GCC 12985 builtin and then its argument prototype would still apply. */ 12986#ifdef __cplusplus 12987extern "C" 12988#endif 12989char ud_init (); 12990int 12991main () 12992{ 12993return ud_init (); 12994 ; 12995 return 0; 12996} 12997_ACEOF 12998rm -f conftest.$ac_objext conftest$ac_exeext 12999if { (ac_try="$ac_link" 13000case "(($ac_try" in 13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13002 *) ac_try_echo=$ac_try;; 13003esac 13004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13005 (eval "$ac_link") 2>conftest.er1 13006 ac_status=$? 13007 grep -v '^ *+' conftest.er1 >conftest.err 13008 rm -f conftest.er1 13009 cat conftest.err >&5 13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13011 (exit $ac_status); } && 13012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13013 { (case "(($ac_try" in 13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13015 *) ac_try_echo=$ac_try;; 13016esac 13017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13018 (eval "$ac_try") 2>&5 13019 ac_status=$? 13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13021 (exit $ac_status); }; } && 13022 { ac_try='test -s conftest$ac_exeext' 13023 { (case "(($ac_try" in 13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13025 *) ac_try_echo=$ac_try;; 13026esac 13027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13028 (eval "$ac_try") 2>&5 13029 ac_status=$? 13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13031 (exit $ac_status); }; }; then 13032 ac_cv_lib_udis86_ud_init=yes 13033else 13034 echo "$as_me: failed program was:" >&5 13035sed 's/^/| /' conftest.$ac_ext >&5 13036 13037 ac_cv_lib_udis86_ud_init=no 13038fi 13039 13040rm -f core conftest.err conftest.$ac_objext \ 13041 conftest$ac_exeext conftest.$ac_ext 13042LIBS=$ac_check_lib_save_LIBS 13043fi 13044{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13045echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13046if test $ac_cv_lib_udis86_ud_init = yes; then 13047 cat >>confdefs.h <<_ACEOF 13048#define HAVE_LIBUDIS86 1 13049_ACEOF 13050 13051 LIBS="-ludis86 $LIBS" 13052 13053else 13054 13055 echo "Error! You need to have libudis86 around." 13056 exit -1 13057 13058fi 13059 13060 13061else 13062 USE_UDIS86=0 13063 13064fi 13065 13066 13067cat >>confdefs.h <<_ACEOF 13068#define USE_UDIS86 $USE_UDIS86 13069_ACEOF 13070 13071 13072 13073# Check whether --with-oprofile was given. 13074if test "${with_oprofile+set}" = set; then 13075 withval=$with_oprofile; 13076 USE_OPROFILE=1 13077 13078 case "$withval" in 13079 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13080 no) llvm_cv_oppath= 13081 USE_OPROFILE=0 13082 ;; 13083 *) llvm_cv_oppath="${withval}/lib/oprofile" 13084 CPPFLAGS="-I${withval}/include";; 13085 esac 13086 case $llvm_cv_os_type in 13087 Linux) 13088 if test -n "$llvm_cv_oppath" ; then 13089 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13090 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13091echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13092if test "${ac_cv_search_bfd_init+set}" = set; then 13093 echo $ECHO_N "(cached) $ECHO_C" >&6 13094else 13095 ac_func_search_save_LIBS=$LIBS 13096cat >conftest.$ac_ext <<_ACEOF 13097/* confdefs.h. */ 13098_ACEOF 13099cat confdefs.h >>conftest.$ac_ext 13100cat >>conftest.$ac_ext <<_ACEOF 13101/* end confdefs.h. */ 13102 13103/* Override any GCC internal prototype to avoid an error. 13104 Use char because int might match the return type of a GCC 13105 builtin and then its argument prototype would still apply. */ 13106#ifdef __cplusplus 13107extern "C" 13108#endif 13109char bfd_init (); 13110int 13111main () 13112{ 13113return bfd_init (); 13114 ; 13115 return 0; 13116} 13117_ACEOF 13118for ac_lib in '' bfd; do 13119 if test -z "$ac_lib"; then 13120 ac_res="none required" 13121 else 13122 ac_res=-l$ac_lib 13123 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13124 fi 13125 rm -f conftest.$ac_objext conftest$ac_exeext 13126if { (ac_try="$ac_link" 13127case "(($ac_try" in 13128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13129 *) ac_try_echo=$ac_try;; 13130esac 13131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13132 (eval "$ac_link") 2>conftest.er1 13133 ac_status=$? 13134 grep -v '^ *+' conftest.er1 >conftest.err 13135 rm -f conftest.er1 13136 cat conftest.err >&5 13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13138 (exit $ac_status); } && 13139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13140 { (case "(($ac_try" in 13141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13142 *) ac_try_echo=$ac_try;; 13143esac 13144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13145 (eval "$ac_try") 2>&5 13146 ac_status=$? 13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13148 (exit $ac_status); }; } && 13149 { ac_try='test -s conftest$ac_exeext' 13150 { (case "(($ac_try" in 13151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13152 *) ac_try_echo=$ac_try;; 13153esac 13154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13155 (eval "$ac_try") 2>&5 13156 ac_status=$? 13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13158 (exit $ac_status); }; }; then 13159 ac_cv_search_bfd_init=$ac_res 13160else 13161 echo "$as_me: failed program was:" >&5 13162sed 's/^/| /' conftest.$ac_ext >&5 13163 13164 13165fi 13166 13167rm -f core conftest.err conftest.$ac_objext \ 13168 conftest$ac_exeext 13169 if test "${ac_cv_search_bfd_init+set}" = set; then 13170 break 13171fi 13172done 13173if test "${ac_cv_search_bfd_init+set}" = set; then 13174 : 13175else 13176 ac_cv_search_bfd_init=no 13177fi 13178rm conftest.$ac_ext 13179LIBS=$ac_func_search_save_LIBS 13180fi 13181{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13182echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13183ac_res=$ac_cv_search_bfd_init 13184if test "$ac_res" != no; then 13185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13186 13187fi 13188 13189 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13190echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13191if test "${ac_cv_search_op_open_agent+set}" = set; then 13192 echo $ECHO_N "(cached) $ECHO_C" >&6 13193else 13194 ac_func_search_save_LIBS=$LIBS 13195cat >conftest.$ac_ext <<_ACEOF 13196/* confdefs.h. */ 13197_ACEOF 13198cat confdefs.h >>conftest.$ac_ext 13199cat >>conftest.$ac_ext <<_ACEOF 13200/* end confdefs.h. */ 13201 13202/* Override any GCC internal prototype to avoid an error. 13203 Use char because int might match the return type of a GCC 13204 builtin and then its argument prototype would still apply. */ 13205#ifdef __cplusplus 13206extern "C" 13207#endif 13208char op_open_agent (); 13209int 13210main () 13211{ 13212return op_open_agent (); 13213 ; 13214 return 0; 13215} 13216_ACEOF 13217for ac_lib in '' opagent; do 13218 if test -z "$ac_lib"; then 13219 ac_res="none required" 13220 else 13221 ac_res=-l$ac_lib 13222 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13223 fi 13224 rm -f conftest.$ac_objext conftest$ac_exeext 13225if { (ac_try="$ac_link" 13226case "(($ac_try" in 13227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13228 *) ac_try_echo=$ac_try;; 13229esac 13230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13231 (eval "$ac_link") 2>conftest.er1 13232 ac_status=$? 13233 grep -v '^ *+' conftest.er1 >conftest.err 13234 rm -f conftest.er1 13235 cat conftest.err >&5 13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13237 (exit $ac_status); } && 13238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13239 { (case "(($ac_try" in 13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13241 *) ac_try_echo=$ac_try;; 13242esac 13243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13244 (eval "$ac_try") 2>&5 13245 ac_status=$? 13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13247 (exit $ac_status); }; } && 13248 { ac_try='test -s conftest$ac_exeext' 13249 { (case "(($ac_try" in 13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13251 *) ac_try_echo=$ac_try;; 13252esac 13253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13254 (eval "$ac_try") 2>&5 13255 ac_status=$? 13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13257 (exit $ac_status); }; }; then 13258 ac_cv_search_op_open_agent=$ac_res 13259else 13260 echo "$as_me: failed program was:" >&5 13261sed 's/^/| /' conftest.$ac_ext >&5 13262 13263 13264fi 13265 13266rm -f core conftest.err conftest.$ac_objext \ 13267 conftest$ac_exeext 13268 if test "${ac_cv_search_op_open_agent+set}" = set; then 13269 break 13270fi 13271done 13272if test "${ac_cv_search_op_open_agent+set}" = set; then 13273 : 13274else 13275 ac_cv_search_op_open_agent=no 13276fi 13277rm conftest.$ac_ext 13278LIBS=$ac_func_search_save_LIBS 13279fi 13280{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13281echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13282ac_res=$ac_cv_search_op_open_agent 13283if test "$ac_res" != no; then 13284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13285 13286else 13287 13288 echo "Error! You need to have libopagent around." 13289 exit -1 13290 13291fi 13292 13293 if test "${ac_cv_header_opagent_h+set}" = set; then 13294 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13295echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13296if test "${ac_cv_header_opagent_h+set}" = set; then 13297 echo $ECHO_N "(cached) $ECHO_C" >&6 13298fi 13299{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13300echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13301else 13302 # Is the header compilable? 13303{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 13304echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13305cat >conftest.$ac_ext <<_ACEOF 13306/* confdefs.h. */ 13307_ACEOF 13308cat confdefs.h >>conftest.$ac_ext 13309cat >>conftest.$ac_ext <<_ACEOF 13310/* end confdefs.h. */ 13311$ac_includes_default 13312#include <opagent.h> 13313_ACEOF 13314rm -f conftest.$ac_objext 13315if { (ac_try="$ac_compile" 13316case "(($ac_try" in 13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13318 *) ac_try_echo=$ac_try;; 13319esac 13320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13321 (eval "$ac_compile") 2>conftest.er1 13322 ac_status=$? 13323 grep -v '^ *+' conftest.er1 >conftest.err 13324 rm -f conftest.er1 13325 cat conftest.err >&5 13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13327 (exit $ac_status); } && 13328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13329 { (case "(($ac_try" in 13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13331 *) ac_try_echo=$ac_try;; 13332esac 13333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13334 (eval "$ac_try") 2>&5 13335 ac_status=$? 13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13337 (exit $ac_status); }; } && 13338 { ac_try='test -s conftest.$ac_objext' 13339 { (case "(($ac_try" in 13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13341 *) ac_try_echo=$ac_try;; 13342esac 13343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13344 (eval "$ac_try") 2>&5 13345 ac_status=$? 13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13347 (exit $ac_status); }; }; then 13348 ac_header_compiler=yes 13349else 13350 echo "$as_me: failed program was:" >&5 13351sed 's/^/| /' conftest.$ac_ext >&5 13352 13353 ac_header_compiler=no 13354fi 13355 13356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13357{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13358echo "${ECHO_T}$ac_header_compiler" >&6; } 13359 13360# Is the header present? 13361{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 13362echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13363cat >conftest.$ac_ext <<_ACEOF 13364/* confdefs.h. */ 13365_ACEOF 13366cat confdefs.h >>conftest.$ac_ext 13367cat >>conftest.$ac_ext <<_ACEOF 13368/* end confdefs.h. */ 13369#include <opagent.h> 13370_ACEOF 13371if { (ac_try="$ac_cpp conftest.$ac_ext" 13372case "(($ac_try" in 13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13374 *) ac_try_echo=$ac_try;; 13375esac 13376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13378 ac_status=$? 13379 grep -v '^ *+' conftest.er1 >conftest.err 13380 rm -f conftest.er1 13381 cat conftest.err >&5 13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13383 (exit $ac_status); } >/dev/null; then 13384 if test -s conftest.err; then 13385 ac_cpp_err=$ac_c_preproc_warn_flag 13386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13387 else 13388 ac_cpp_err= 13389 fi 13390else 13391 ac_cpp_err=yes 13392fi 13393if test -z "$ac_cpp_err"; then 13394 ac_header_preproc=yes 13395else 13396 echo "$as_me: failed program was:" >&5 13397sed 's/^/| /' conftest.$ac_ext >&5 13398 13399 ac_header_preproc=no 13400fi 13401 13402rm -f conftest.err conftest.$ac_ext 13403{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13404echo "${ECHO_T}$ac_header_preproc" >&6; } 13405 13406# So? What about this header? 13407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13408 yes:no: ) 13409 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 13410echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13411 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 13412echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 13413 ac_header_preproc=yes 13414 ;; 13415 no:yes:* ) 13416 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 13417echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 13418 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 13419echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 13420 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 13421echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 13422 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 13423echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 13424 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 13425echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 13426 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 13427echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 13428 ( cat <<\_ASBOX 13429## ------------------------------------ ## 13430## Report this to http://llvm.org/bugs/ ## 13431## ------------------------------------ ## 13432_ASBOX 13433 ) | sed "s/^/$as_me: WARNING: /" >&2 13434 ;; 13435esac 13436{ echo "$as_me:$LINENO: checking for opagent.h" >&5 13437echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13438if test "${ac_cv_header_opagent_h+set}" = set; then 13439 echo $ECHO_N "(cached) $ECHO_C" >&6 13440else 13441 ac_cv_header_opagent_h=$ac_header_preproc 13442fi 13443{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13444echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13445 13446fi 13447if test $ac_cv_header_opagent_h = yes; then 13448 : 13449else 13450 13451 echo "Error! You need to have opagent.h around." 13452 exit -1 13453 13454fi 13455 13456 13457 fi ;; 13458 *) 13459 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 13460echo "$as_me: error: OProfile support is available on Linux only." >&2;} 13461 { (exit 1); exit 1; }; } ;; 13462 esac 13463 13464else 13465 13466 USE_OPROFILE=0 13467 13468 13469fi 13470 13471 13472cat >>confdefs.h <<_ACEOF 13473#define LLVM_USE_OPROFILE $USE_OPROFILE 13474_ACEOF 13475 13476 13477 13478# Check whether --with-intel-jitevents was given. 13479if test "${with_intel_jitevents+set}" = set; then 13480 withval=$with_intel_jitevents; 13481 case "$withval" in 13482 yes) USE_INTEL_JITEVENTS=1 13483;; 13484 no) USE_INTEL_JITEVENTS=0 13485;; 13486 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5 13487echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;} 13488 { (exit 1); exit 1; }; };; 13489 esac 13490 13491 case $llvm_cv_os_type in 13492 Linux|Win32|Cygwin|MingW) ;; 13493 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5 13494echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;} 13495 { (exit 1); exit 1; }; };; 13496 esac 13497 13498 case "$llvm_cv_target_arch" in 13499 x86|x86_64) ;; 13500 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5 13501echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;} 13502 { (exit 1); exit 1; }; };; 13503 esac 13504 13505else 13506 13507 USE_INTEL_JITEVENTS=0 13508 13509 13510fi 13511 13512 13513cat >>confdefs.h <<_ACEOF 13514#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 13515_ACEOF 13516 13517 13518for ac_prog in xml2-config 13519do 13520 # Extract the first word of "$ac_prog", so it can be a program name with args. 13521set dummy $ac_prog; ac_word=$2 13522{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13524if test "${ac_cv_prog_XML2CONFIG+set}" = set; then 13525 echo $ECHO_N "(cached) $ECHO_C" >&6 13526else 13527 if test -n "$XML2CONFIG"; then 13528 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test. 13529else 13530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13531for as_dir in $PATH 13532do 13533 IFS=$as_save_IFS 13534 test -z "$as_dir" && as_dir=. 13535 for ac_exec_ext in '' $ac_executable_extensions; do 13536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 13537 ac_cv_prog_XML2CONFIG="$ac_prog" 13538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13539 break 2 13540 fi 13541done 13542done 13543IFS=$as_save_IFS 13544 13545fi 13546fi 13547XML2CONFIG=$ac_cv_prog_XML2CONFIG 13548if test -n "$XML2CONFIG"; then 13549 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5 13550echo "${ECHO_T}$XML2CONFIG" >&6; } 13551else 13552 { echo "$as_me:$LINENO: result: no" >&5 13553echo "${ECHO_T}no" >&6; } 13554fi 13555 13556 13557 test -n "$XML2CONFIG" && break 13558done 13559 13560 13561{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5 13562echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; } 13563if test "x$XML2CONFIG" = "x"; then 13564 { echo "$as_me:$LINENO: result: xml2-config not found" >&5 13565echo "${ECHO_T}xml2-config not found" >&6; } 13566else 13567 LIBXML2_INC=`$XML2CONFIG --cflags` 13568 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5 13569echo "${ECHO_T}$LIBXML2_INC" >&6; } 13570 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5 13571echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; } 13572if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then 13573 echo $ECHO_N "(cached) $ECHO_C" >&6 13574else 13575 ac_check_lib_save_LIBS=$LIBS 13576LIBS="-lxml2 $LIBS" 13577cat >conftest.$ac_ext <<_ACEOF 13578/* confdefs.h. */ 13579_ACEOF 13580cat confdefs.h >>conftest.$ac_ext 13581cat >>conftest.$ac_ext <<_ACEOF 13582/* end confdefs.h. */ 13583 13584/* Override any GCC internal prototype to avoid an error. 13585 Use char because int might match the return type of a GCC 13586 builtin and then its argument prototype would still apply. */ 13587#ifdef __cplusplus 13588extern "C" 13589#endif 13590char xmlReadFile (); 13591int 13592main () 13593{ 13594return xmlReadFile (); 13595 ; 13596 return 0; 13597} 13598_ACEOF 13599rm -f conftest.$ac_objext conftest$ac_exeext 13600if { (ac_try="$ac_link" 13601case "(($ac_try" in 13602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13603 *) ac_try_echo=$ac_try;; 13604esac 13605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13606 (eval "$ac_link") 2>conftest.er1 13607 ac_status=$? 13608 grep -v '^ *+' conftest.er1 >conftest.err 13609 rm -f conftest.er1 13610 cat conftest.err >&5 13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13612 (exit $ac_status); } && 13613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13614 { (case "(($ac_try" in 13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13616 *) ac_try_echo=$ac_try;; 13617esac 13618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13619 (eval "$ac_try") 2>&5 13620 ac_status=$? 13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13622 (exit $ac_status); }; } && 13623 { ac_try='test -s conftest$ac_exeext' 13624 { (case "(($ac_try" in 13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13626 *) ac_try_echo=$ac_try;; 13627esac 13628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13629 (eval "$ac_try") 2>&5 13630 ac_status=$? 13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13632 (exit $ac_status); }; }; then 13633 ac_cv_lib_xml2_xmlReadFile=yes 13634else 13635 echo "$as_me: failed program was:" >&5 13636sed 's/^/| /' conftest.$ac_ext >&5 13637 13638 ac_cv_lib_xml2_xmlReadFile=no 13639fi 13640 13641rm -f core conftest.err conftest.$ac_objext \ 13642 conftest$ac_exeext conftest.$ac_ext 13643LIBS=$ac_check_lib_save_LIBS 13644fi 13645{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5 13646echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; } 13647if test $ac_cv_lib_xml2_xmlReadFile = yes; then 13648 13649cat >>confdefs.h <<\_ACEOF 13650#define CLANG_HAVE_LIBXML 1 13651_ACEOF 13652 13653 LIBXML2_LIBS="-lxml2" 13654fi 13655 13656fi 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666ac_header_dirent=no 13667for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 13668 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 13669{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 13670echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 13671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13672 echo $ECHO_N "(cached) $ECHO_C" >&6 13673else 13674 cat >conftest.$ac_ext <<_ACEOF 13675/* confdefs.h. */ 13676_ACEOF 13677cat confdefs.h >>conftest.$ac_ext 13678cat >>conftest.$ac_ext <<_ACEOF 13679/* end confdefs.h. */ 13680#include <sys/types.h> 13681#include <$ac_hdr> 13682 13683int 13684main () 13685{ 13686if ((DIR *) 0) 13687return 0; 13688 ; 13689 return 0; 13690} 13691_ACEOF 13692rm -f conftest.$ac_objext 13693if { (ac_try="$ac_compile" 13694case "(($ac_try" in 13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13696 *) ac_try_echo=$ac_try;; 13697esac 13698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13699 (eval "$ac_compile") 2>conftest.er1 13700 ac_status=$? 13701 grep -v '^ *+' conftest.er1 >conftest.err 13702 rm -f conftest.er1 13703 cat conftest.err >&5 13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13705 (exit $ac_status); } && 13706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13707 { (case "(($ac_try" in 13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13709 *) ac_try_echo=$ac_try;; 13710esac 13711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13712 (eval "$ac_try") 2>&5 13713 ac_status=$? 13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13715 (exit $ac_status); }; } && 13716 { ac_try='test -s conftest.$ac_objext' 13717 { (case "(($ac_try" in 13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13719 *) ac_try_echo=$ac_try;; 13720esac 13721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13722 (eval "$ac_try") 2>&5 13723 ac_status=$? 13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13725 (exit $ac_status); }; }; then 13726 eval "$as_ac_Header=yes" 13727else 13728 echo "$as_me: failed program was:" >&5 13729sed 's/^/| /' conftest.$ac_ext >&5 13730 13731 eval "$as_ac_Header=no" 13732fi 13733 13734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13735fi 13736ac_res=`eval echo '${'$as_ac_Header'}'` 13737 { echo "$as_me:$LINENO: result: $ac_res" >&5 13738echo "${ECHO_T}$ac_res" >&6; } 13739if test `eval echo '${'$as_ac_Header'}'` = yes; then 13740 cat >>confdefs.h <<_ACEOF 13741#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 13742_ACEOF 13743 13744ac_header_dirent=$ac_hdr; break 13745fi 13746 13747done 13748# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 13749if test $ac_header_dirent = dirent.h; then 13750 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13751echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13752if test "${ac_cv_search_opendir+set}" = set; then 13753 echo $ECHO_N "(cached) $ECHO_C" >&6 13754else 13755 ac_func_search_save_LIBS=$LIBS 13756cat >conftest.$ac_ext <<_ACEOF 13757/* confdefs.h. */ 13758_ACEOF 13759cat confdefs.h >>conftest.$ac_ext 13760cat >>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 13767extern "C" 13768#endif 13769char opendir (); 13770int 13771main () 13772{ 13773return opendir (); 13774 ; 13775 return 0; 13776} 13777_ACEOF 13778for ac_lib in '' dir; 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 13786if { (ac_try="$ac_link" 13787case "(($ac_try" in 13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13789 *) ac_try_echo=$ac_try;; 13790esac 13791eval "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;; 13803esac 13804eval "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;; 13813esac 13814eval "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 13820else 13821 echo "$as_me: failed program was:" >&5 13822sed 's/^/| /' conftest.$ac_ext >&5 13823 13824 13825fi 13826 13827rm -f core conftest.err conftest.$ac_objext \ 13828 conftest$ac_exeext 13829 if test "${ac_cv_search_opendir+set}" = set; then 13830 break 13831fi 13832done 13833if test "${ac_cv_search_opendir+set}" = set; then 13834 : 13835else 13836 ac_cv_search_opendir=no 13837fi 13838rm conftest.$ac_ext 13839LIBS=$ac_func_search_save_LIBS 13840fi 13841{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13842echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 13843ac_res=$ac_cv_search_opendir 13844if test "$ac_res" != no; then 13845 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13846 13847fi 13848 13849else 13850 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13851echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13852if test "${ac_cv_search_opendir+set}" = set; then 13853 echo $ECHO_N "(cached) $ECHO_C" >&6 13854else 13855 ac_func_search_save_LIBS=$LIBS 13856cat >conftest.$ac_ext <<_ACEOF 13857/* confdefs.h. */ 13858_ACEOF 13859cat confdefs.h >>conftest.$ac_ext 13860cat >>conftest.$ac_ext <<_ACEOF 13861/* end confdefs.h. */ 13862 13863/* Override any GCC internal prototype to avoid an error. 13864 Use char because int might match the return type of a GCC 13865 builtin and then its argument prototype would still apply. */ 13866#ifdef __cplusplus 13867extern "C" 13868#endif 13869char opendir (); 13870int 13871main () 13872{ 13873return opendir (); 13874 ; 13875 return 0; 13876} 13877_ACEOF 13878for ac_lib in '' x; do 13879 if test -z "$ac_lib"; then 13880 ac_res="none required" 13881 else 13882 ac_res=-l$ac_lib 13883 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13884 fi 13885 rm -f conftest.$ac_objext conftest$ac_exeext 13886if { (ac_try="$ac_link" 13887case "(($ac_try" in 13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13889 *) ac_try_echo=$ac_try;; 13890esac 13891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13892 (eval "$ac_link") 2>conftest.er1 13893 ac_status=$? 13894 grep -v '^ *+' conftest.er1 >conftest.err 13895 rm -f conftest.er1 13896 cat conftest.err >&5 13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13898 (exit $ac_status); } && 13899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13900 { (case "(($ac_try" in 13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13902 *) ac_try_echo=$ac_try;; 13903esac 13904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13905 (eval "$ac_try") 2>&5 13906 ac_status=$? 13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13908 (exit $ac_status); }; } && 13909 { ac_try='test -s conftest$ac_exeext' 13910 { (case "(($ac_try" in 13911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13912 *) ac_try_echo=$ac_try;; 13913esac 13914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13915 (eval "$ac_try") 2>&5 13916 ac_status=$? 13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13918 (exit $ac_status); }; }; then 13919 ac_cv_search_opendir=$ac_res 13920else 13921 echo "$as_me: failed program was:" >&5 13922sed 's/^/| /' conftest.$ac_ext >&5 13923 13924 13925fi 13926 13927rm -f core conftest.err conftest.$ac_objext \ 13928 conftest$ac_exeext 13929 if test "${ac_cv_search_opendir+set}" = set; then 13930 break 13931fi 13932done 13933if test "${ac_cv_search_opendir+set}" = set; then 13934 : 13935else 13936 ac_cv_search_opendir=no 13937fi 13938rm conftest.$ac_ext 13939LIBS=$ac_func_search_save_LIBS 13940fi 13941{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13942echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 13943ac_res=$ac_cv_search_opendir 13944if test "$ac_res" != no; then 13945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13946 13947fi 13948 13949fi 13950 13951{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 13952echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 13953if test "${ac_cv_header_mmap_anon+set}" = set; then 13954 echo $ECHO_N "(cached) $ECHO_C" >&6 13955else 13956 ac_ext=c 13957ac_cpp='$CPP $CPPFLAGS' 13958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13960ac_compiler_gnu=$ac_cv_c_compiler_gnu 13961 13962 cat >conftest.$ac_ext <<_ACEOF 13963/* confdefs.h. */ 13964_ACEOF 13965cat confdefs.h >>conftest.$ac_ext 13966cat >>conftest.$ac_ext <<_ACEOF 13967/* end confdefs.h. */ 13968#include <sys/mman.h> 13969#include <unistd.h> 13970#include <fcntl.h> 13971int 13972main () 13973{ 13974mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 13975 ; 13976 return 0; 13977} 13978_ACEOF 13979rm -f conftest.$ac_objext 13980if { (ac_try="$ac_compile" 13981case "(($ac_try" in 13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13983 *) ac_try_echo=$ac_try;; 13984esac 13985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13986 (eval "$ac_compile") 2>conftest.er1 13987 ac_status=$? 13988 grep -v '^ *+' conftest.er1 >conftest.err 13989 rm -f conftest.er1 13990 cat conftest.err >&5 13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13992 (exit $ac_status); } && 13993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13994 { (case "(($ac_try" in 13995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13996 *) ac_try_echo=$ac_try;; 13997esac 13998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13999 (eval "$ac_try") 2>&5 14000 ac_status=$? 14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14002 (exit $ac_status); }; } && 14003 { ac_try='test -s conftest.$ac_objext' 14004 { (case "(($ac_try" in 14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14006 *) ac_try_echo=$ac_try;; 14007esac 14008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14009 (eval "$ac_try") 2>&5 14010 ac_status=$? 14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14012 (exit $ac_status); }; }; then 14013 ac_cv_header_mmap_anon=yes 14014else 14015 echo "$as_me: failed program was:" >&5 14016sed 's/^/| /' conftest.$ac_ext >&5 14017 14018 ac_cv_header_mmap_anon=no 14019fi 14020 14021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14022 ac_ext=c 14023ac_cpp='$CPP $CPPFLAGS' 14024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14026ac_compiler_gnu=$ac_cv_c_compiler_gnu 14027 14028 14029fi 14030{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 14031echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 14032if test "$ac_cv_header_mmap_anon" = yes; then 14033 14034cat >>confdefs.h <<\_ACEOF 14035#define HAVE_MMAP_ANONYMOUS 1 14036_ACEOF 14037 14038fi 14039 14040{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 14041echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 14042if test "${ac_cv_header_stat_broken+set}" = set; then 14043 echo $ECHO_N "(cached) $ECHO_C" >&6 14044else 14045 cat >conftest.$ac_ext <<_ACEOF 14046/* confdefs.h. */ 14047_ACEOF 14048cat confdefs.h >>conftest.$ac_ext 14049cat >>conftest.$ac_ext <<_ACEOF 14050/* end confdefs.h. */ 14051#include <sys/types.h> 14052#include <sys/stat.h> 14053 14054#if defined S_ISBLK && defined S_IFDIR 14055# if S_ISBLK (S_IFDIR) 14056You lose. 14057# endif 14058#endif 14059 14060#if defined S_ISBLK && defined S_IFCHR 14061# if S_ISBLK (S_IFCHR) 14062You lose. 14063# endif 14064#endif 14065 14066#if defined S_ISLNK && defined S_IFREG 14067# if S_ISLNK (S_IFREG) 14068You lose. 14069# endif 14070#endif 14071 14072#if defined S_ISSOCK && defined S_IFREG 14073# if S_ISSOCK (S_IFREG) 14074You lose. 14075# endif 14076#endif 14077 14078_ACEOF 14079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14080 $EGREP "You lose" >/dev/null 2>&1; then 14081 ac_cv_header_stat_broken=yes 14082else 14083 ac_cv_header_stat_broken=no 14084fi 14085rm -f conftest* 14086 14087fi 14088{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14089echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14090if test $ac_cv_header_stat_broken = yes; then 14091 14092cat >>confdefs.h <<\_ACEOF 14093#define STAT_MACROS_BROKEN 1 14094_ACEOF 14095 14096fi 14097 14098{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 14099echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14100if test "${ac_cv_header_sys_wait_h+set}" = set; then 14101 echo $ECHO_N "(cached) $ECHO_C" >&6 14102else 14103 cat >conftest.$ac_ext <<_ACEOF 14104/* confdefs.h. */ 14105_ACEOF 14106cat confdefs.h >>conftest.$ac_ext 14107cat >>conftest.$ac_ext <<_ACEOF 14108/* end confdefs.h. */ 14109#include <sys/types.h> 14110#include <sys/wait.h> 14111#ifndef WEXITSTATUS 14112# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14113#endif 14114#ifndef WIFEXITED 14115# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14116#endif 14117 14118int 14119main () 14120{ 14121 int s; 14122 wait (&s); 14123 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14124 ; 14125 return 0; 14126} 14127_ACEOF 14128rm -f conftest.$ac_objext 14129if { (ac_try="$ac_compile" 14130case "(($ac_try" in 14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14132 *) ac_try_echo=$ac_try;; 14133esac 14134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14135 (eval "$ac_compile") 2>conftest.er1 14136 ac_status=$? 14137 grep -v '^ *+' conftest.er1 >conftest.err 14138 rm -f conftest.er1 14139 cat conftest.err >&5 14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14141 (exit $ac_status); } && 14142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14143 { (case "(($ac_try" in 14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14145 *) ac_try_echo=$ac_try;; 14146esac 14147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14148 (eval "$ac_try") 2>&5 14149 ac_status=$? 14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14151 (exit $ac_status); }; } && 14152 { ac_try='test -s conftest.$ac_objext' 14153 { (case "(($ac_try" in 14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14155 *) ac_try_echo=$ac_try;; 14156esac 14157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14158 (eval "$ac_try") 2>&5 14159 ac_status=$? 14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14161 (exit $ac_status); }; }; then 14162 ac_cv_header_sys_wait_h=yes 14163else 14164 echo "$as_me: failed program was:" >&5 14165sed 's/^/| /' conftest.$ac_ext >&5 14166 14167 ac_cv_header_sys_wait_h=no 14168fi 14169 14170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14171fi 14172{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14173echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14174if test $ac_cv_header_sys_wait_h = yes; then 14175 14176cat >>confdefs.h <<\_ACEOF 14177#define HAVE_SYS_WAIT_H 1 14178_ACEOF 14179 14180fi 14181 14182{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14183echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14184if test "${ac_cv_header_time+set}" = set; then 14185 echo $ECHO_N "(cached) $ECHO_C" >&6 14186else 14187 cat >conftest.$ac_ext <<_ACEOF 14188/* confdefs.h. */ 14189_ACEOF 14190cat confdefs.h >>conftest.$ac_ext 14191cat >>conftest.$ac_ext <<_ACEOF 14192/* end confdefs.h. */ 14193#include <sys/types.h> 14194#include <sys/time.h> 14195#include <time.h> 14196 14197int 14198main () 14199{ 14200if ((struct tm *) 0) 14201return 0; 14202 ; 14203 return 0; 14204} 14205_ACEOF 14206rm -f conftest.$ac_objext 14207if { (ac_try="$ac_compile" 14208case "(($ac_try" in 14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14210 *) ac_try_echo=$ac_try;; 14211esac 14212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14213 (eval "$ac_compile") 2>conftest.er1 14214 ac_status=$? 14215 grep -v '^ *+' conftest.er1 >conftest.err 14216 rm -f conftest.er1 14217 cat conftest.err >&5 14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14219 (exit $ac_status); } && 14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14221 { (case "(($ac_try" in 14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14223 *) ac_try_echo=$ac_try;; 14224esac 14225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14226 (eval "$ac_try") 2>&5 14227 ac_status=$? 14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14229 (exit $ac_status); }; } && 14230 { ac_try='test -s conftest.$ac_objext' 14231 { (case "(($ac_try" in 14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14233 *) ac_try_echo=$ac_try;; 14234esac 14235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14236 (eval "$ac_try") 2>&5 14237 ac_status=$? 14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14239 (exit $ac_status); }; }; then 14240 ac_cv_header_time=yes 14241else 14242 echo "$as_me: failed program was:" >&5 14243sed 's/^/| /' conftest.$ac_ext >&5 14244 14245 ac_cv_header_time=no 14246fi 14247 14248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14249fi 14250{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14251echo "${ECHO_T}$ac_cv_header_time" >&6; } 14252if test $ac_cv_header_time = yes; then 14253 14254cat >>confdefs.h <<\_ACEOF 14255#define TIME_WITH_SYS_TIME 1 14256_ACEOF 14257 14258fi 14259 14260 14261ac_ext=cpp 14262ac_cpp='$CXXCPP $CPPFLAGS' 14263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14266 14267ac_ext=cpp 14268ac_cpp='$CXXCPP $CPPFLAGS' 14269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14272{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 14273echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 14274if test -z "$CXXCPP"; then 14275 if test "${ac_cv_prog_CXXCPP+set}" = set; then 14276 echo $ECHO_N "(cached) $ECHO_C" >&6 14277else 14278 # Double quotes because CXXCPP needs to be expanded 14279 for CXXCPP in "$CXX -E" "/lib/cpp" 14280 do 14281 ac_preproc_ok=false 14282for ac_cxx_preproc_warn_flag in '' yes 14283do 14284 # Use a header file that comes with gcc, so configuring glibc 14285 # with a fresh cross-compiler works. 14286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14287 # <limits.h> exists even on freestanding compilers. 14288 # On the NeXT, cc -E runs the code through the compiler's parser, 14289 # not just through cpp. "Syntax error" is here to catch this case. 14290 cat >conftest.$ac_ext <<_ACEOF 14291/* confdefs.h. */ 14292_ACEOF 14293cat confdefs.h >>conftest.$ac_ext 14294cat >>conftest.$ac_ext <<_ACEOF 14295/* end confdefs.h. */ 14296#ifdef __STDC__ 14297# include <limits.h> 14298#else 14299# include <assert.h> 14300#endif 14301 Syntax error 14302_ACEOF 14303if { (ac_try="$ac_cpp conftest.$ac_ext" 14304case "(($ac_try" in 14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14306 *) ac_try_echo=$ac_try;; 14307esac 14308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14310 ac_status=$? 14311 grep -v '^ *+' conftest.er1 >conftest.err 14312 rm -f conftest.er1 14313 cat conftest.err >&5 14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14315 (exit $ac_status); } >/dev/null; then 14316 if test -s conftest.err; then 14317 ac_cpp_err=$ac_cxx_preproc_warn_flag 14318 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 14319 else 14320 ac_cpp_err= 14321 fi 14322else 14323 ac_cpp_err=yes 14324fi 14325if test -z "$ac_cpp_err"; then 14326 : 14327else 14328 echo "$as_me: failed program was:" >&5 14329sed 's/^/| /' conftest.$ac_ext >&5 14330 14331 # Broken: fails on valid input. 14332continue 14333fi 14334 14335rm -f conftest.err conftest.$ac_ext 14336 14337 # OK, works on sane cases. Now check whether nonexistent headers 14338 # can be detected and how. 14339 cat >conftest.$ac_ext <<_ACEOF 14340/* confdefs.h. */ 14341_ACEOF 14342cat confdefs.h >>conftest.$ac_ext 14343cat >>conftest.$ac_ext <<_ACEOF 14344/* end confdefs.h. */ 14345#include <ac_nonexistent.h> 14346_ACEOF 14347if { (ac_try="$ac_cpp conftest.$ac_ext" 14348case "(($ac_try" in 14349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14350 *) ac_try_echo=$ac_try;; 14351esac 14352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14354 ac_status=$? 14355 grep -v '^ *+' conftest.er1 >conftest.err 14356 rm -f conftest.er1 14357 cat conftest.err >&5 14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14359 (exit $ac_status); } >/dev/null; then 14360 if test -s conftest.err; then 14361 ac_cpp_err=$ac_cxx_preproc_warn_flag 14362 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 14363 else 14364 ac_cpp_err= 14365 fi 14366else 14367 ac_cpp_err=yes 14368fi 14369if test -z "$ac_cpp_err"; then 14370 # Broken: success on invalid input. 14371continue 14372else 14373 echo "$as_me: failed program was:" >&5 14374sed 's/^/| /' conftest.$ac_ext >&5 14375 14376 # Passes both tests. 14377ac_preproc_ok=: 14378break 14379fi 14380 14381rm -f conftest.err conftest.$ac_ext 14382 14383done 14384# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14385rm -f conftest.err conftest.$ac_ext 14386if $ac_preproc_ok; then 14387 break 14388fi 14389 14390 done 14391 ac_cv_prog_CXXCPP=$CXXCPP 14392 14393fi 14394 CXXCPP=$ac_cv_prog_CXXCPP 14395else 14396 ac_cv_prog_CXXCPP=$CXXCPP 14397fi 14398{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 14399echo "${ECHO_T}$CXXCPP" >&6; } 14400ac_preproc_ok=false 14401for ac_cxx_preproc_warn_flag in '' yes 14402do 14403 # Use a header file that comes with gcc, so configuring glibc 14404 # with a fresh cross-compiler works. 14405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14406 # <limits.h> exists even on freestanding compilers. 14407 # On the NeXT, cc -E runs the code through the compiler's parser, 14408 # not just through cpp. "Syntax error" is here to catch this case. 14409 cat >conftest.$ac_ext <<_ACEOF 14410/* confdefs.h. */ 14411_ACEOF 14412cat confdefs.h >>conftest.$ac_ext 14413cat >>conftest.$ac_ext <<_ACEOF 14414/* end confdefs.h. */ 14415#ifdef __STDC__ 14416# include <limits.h> 14417#else 14418# include <assert.h> 14419#endif 14420 Syntax error 14421_ACEOF 14422if { (ac_try="$ac_cpp conftest.$ac_ext" 14423case "(($ac_try" in 14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14425 *) ac_try_echo=$ac_try;; 14426esac 14427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14429 ac_status=$? 14430 grep -v '^ *+' conftest.er1 >conftest.err 14431 rm -f conftest.er1 14432 cat conftest.err >&5 14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14434 (exit $ac_status); } >/dev/null; then 14435 if test -s conftest.err; then 14436 ac_cpp_err=$ac_cxx_preproc_warn_flag 14437 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 14438 else 14439 ac_cpp_err= 14440 fi 14441else 14442 ac_cpp_err=yes 14443fi 14444if test -z "$ac_cpp_err"; then 14445 : 14446else 14447 echo "$as_me: failed program was:" >&5 14448sed 's/^/| /' conftest.$ac_ext >&5 14449 14450 # Broken: fails on valid input. 14451continue 14452fi 14453 14454rm -f conftest.err conftest.$ac_ext 14455 14456 # OK, works on sane cases. Now check whether nonexistent headers 14457 # can be detected and how. 14458 cat >conftest.$ac_ext <<_ACEOF 14459/* confdefs.h. */ 14460_ACEOF 14461cat confdefs.h >>conftest.$ac_ext 14462cat >>conftest.$ac_ext <<_ACEOF 14463/* end confdefs.h. */ 14464#include <ac_nonexistent.h> 14465_ACEOF 14466if { (ac_try="$ac_cpp conftest.$ac_ext" 14467case "(($ac_try" in 14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14469 *) ac_try_echo=$ac_try;; 14470esac 14471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14473 ac_status=$? 14474 grep -v '^ *+' conftest.er1 >conftest.err 14475 rm -f conftest.er1 14476 cat conftest.err >&5 14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14478 (exit $ac_status); } >/dev/null; then 14479 if test -s conftest.err; then 14480 ac_cpp_err=$ac_cxx_preproc_warn_flag 14481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 14482 else 14483 ac_cpp_err= 14484 fi 14485else 14486 ac_cpp_err=yes 14487fi 14488if test -z "$ac_cpp_err"; then 14489 # Broken: success on invalid input. 14490continue 14491else 14492 echo "$as_me: failed program was:" >&5 14493sed 's/^/| /' conftest.$ac_ext >&5 14494 14495 # Passes both tests. 14496ac_preproc_ok=: 14497break 14498fi 14499 14500rm -f conftest.err conftest.$ac_ext 14501 14502done 14503# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14504rm -f conftest.err conftest.$ac_ext 14505if $ac_preproc_ok; then 14506 : 14507else 14508 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 14509See \`config.log' for more details." >&5 14510echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 14511See \`config.log' for more details." >&2;} 14512 { (exit 1); exit 1; }; } 14513fi 14514 14515ac_ext=cpp 14516ac_cpp='$CXXCPP $CPPFLAGS' 14517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14520 14521 14522 14523for ac_header in cxxabi.h 14524do 14525as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14527 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14530 echo $ECHO_N "(cached) $ECHO_C" >&6 14531fi 14532ac_res=`eval echo '${'$as_ac_Header'}'` 14533 { echo "$as_me:$LINENO: result: $ac_res" >&5 14534echo "${ECHO_T}$ac_res" >&6; } 14535else 14536 # Is the header compilable? 14537{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14539cat >conftest.$ac_ext <<_ACEOF 14540/* confdefs.h. */ 14541_ACEOF 14542cat confdefs.h >>conftest.$ac_ext 14543cat >>conftest.$ac_ext <<_ACEOF 14544/* end confdefs.h. */ 14545$ac_includes_default 14546#include <$ac_header> 14547_ACEOF 14548rm -f conftest.$ac_objext 14549if { (ac_try="$ac_compile" 14550case "(($ac_try" in 14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14552 *) ac_try_echo=$ac_try;; 14553esac 14554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14555 (eval "$ac_compile") 2>conftest.er1 14556 ac_status=$? 14557 grep -v '^ *+' conftest.er1 >conftest.err 14558 rm -f conftest.er1 14559 cat conftest.err >&5 14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14561 (exit $ac_status); } && 14562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 14563 { (case "(($ac_try" in 14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14565 *) ac_try_echo=$ac_try;; 14566esac 14567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14568 (eval "$ac_try") 2>&5 14569 ac_status=$? 14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14571 (exit $ac_status); }; } && 14572 { ac_try='test -s conftest.$ac_objext' 14573 { (case "(($ac_try" in 14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14575 *) ac_try_echo=$ac_try;; 14576esac 14577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14578 (eval "$ac_try") 2>&5 14579 ac_status=$? 14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14581 (exit $ac_status); }; }; then 14582 ac_header_compiler=yes 14583else 14584 echo "$as_me: failed program was:" >&5 14585sed 's/^/| /' conftest.$ac_ext >&5 14586 14587 ac_header_compiler=no 14588fi 14589 14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14591{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14592echo "${ECHO_T}$ac_header_compiler" >&6; } 14593 14594# Is the header present? 14595{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14596echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14597cat >conftest.$ac_ext <<_ACEOF 14598/* confdefs.h. */ 14599_ACEOF 14600cat confdefs.h >>conftest.$ac_ext 14601cat >>conftest.$ac_ext <<_ACEOF 14602/* end confdefs.h. */ 14603#include <$ac_header> 14604_ACEOF 14605if { (ac_try="$ac_cpp conftest.$ac_ext" 14606case "(($ac_try" in 14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14608 *) ac_try_echo=$ac_try;; 14609esac 14610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14612 ac_status=$? 14613 grep -v '^ *+' conftest.er1 >conftest.err 14614 rm -f conftest.er1 14615 cat conftest.err >&5 14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14617 (exit $ac_status); } >/dev/null; then 14618 if test -s conftest.err; then 14619 ac_cpp_err=$ac_cxx_preproc_warn_flag 14620 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 14621 else 14622 ac_cpp_err= 14623 fi 14624else 14625 ac_cpp_err=yes 14626fi 14627if test -z "$ac_cpp_err"; then 14628 ac_header_preproc=yes 14629else 14630 echo "$as_me: failed program was:" >&5 14631sed 's/^/| /' conftest.$ac_ext >&5 14632 14633 ac_header_preproc=no 14634fi 14635 14636rm -f conftest.err conftest.$ac_ext 14637{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14638echo "${ECHO_T}$ac_header_preproc" >&6; } 14639 14640# So? What about this header? 14641case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 14642 yes:no: ) 14643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14644echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14646echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14647 ac_header_preproc=yes 14648 ;; 14649 no:yes:* ) 14650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14651echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14653echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14655echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14657echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14659echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14661echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14662 ( cat <<\_ASBOX 14663## ------------------------------------ ## 14664## Report this to http://llvm.org/bugs/ ## 14665## ------------------------------------ ## 14666_ASBOX 14667 ) | sed "s/^/$as_me: WARNING: /" >&2 14668 ;; 14669esac 14670{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14673 echo $ECHO_N "(cached) $ECHO_C" >&6 14674else 14675 eval "$as_ac_Header=\$ac_header_preproc" 14676fi 14677ac_res=`eval echo '${'$as_ac_Header'}'` 14678 { echo "$as_me:$LINENO: result: $ac_res" >&5 14679echo "${ECHO_T}$ac_res" >&6; } 14680 14681fi 14682if test `eval echo '${'$as_ac_Header'}'` = yes; then 14683 cat >>confdefs.h <<_ACEOF 14684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14685_ACEOF 14686 14687fi 14688 14689done 14690 14691ac_ext=c 14692ac_cpp='$CPP $CPPFLAGS' 14693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14695ac_compiler_gnu=$ac_cv_c_compiler_gnu 14696 14697 14698 14699 14700 14701 14702for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h 14703do 14704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14706 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14709 echo $ECHO_N "(cached) $ECHO_C" >&6 14710fi 14711ac_res=`eval echo '${'$as_ac_Header'}'` 14712 { echo "$as_me:$LINENO: result: $ac_res" >&5 14713echo "${ECHO_T}$ac_res" >&6; } 14714else 14715 # Is the header compilable? 14716{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14717echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14718cat >conftest.$ac_ext <<_ACEOF 14719/* confdefs.h. */ 14720_ACEOF 14721cat confdefs.h >>conftest.$ac_ext 14722cat >>conftest.$ac_ext <<_ACEOF 14723/* end confdefs.h. */ 14724$ac_includes_default 14725#include <$ac_header> 14726_ACEOF 14727rm -f conftest.$ac_objext 14728if { (ac_try="$ac_compile" 14729case "(($ac_try" in 14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14731 *) ac_try_echo=$ac_try;; 14732esac 14733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14734 (eval "$ac_compile") 2>conftest.er1 14735 ac_status=$? 14736 grep -v '^ *+' conftest.er1 >conftest.err 14737 rm -f conftest.er1 14738 cat conftest.err >&5 14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14740 (exit $ac_status); } && 14741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14742 { (case "(($ac_try" in 14743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14744 *) ac_try_echo=$ac_try;; 14745esac 14746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14747 (eval "$ac_try") 2>&5 14748 ac_status=$? 14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14750 (exit $ac_status); }; } && 14751 { ac_try='test -s conftest.$ac_objext' 14752 { (case "(($ac_try" in 14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14754 *) ac_try_echo=$ac_try;; 14755esac 14756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14757 (eval "$ac_try") 2>&5 14758 ac_status=$? 14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14760 (exit $ac_status); }; }; then 14761 ac_header_compiler=yes 14762else 14763 echo "$as_me: failed program was:" >&5 14764sed 's/^/| /' conftest.$ac_ext >&5 14765 14766 ac_header_compiler=no 14767fi 14768 14769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14770{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14771echo "${ECHO_T}$ac_header_compiler" >&6; } 14772 14773# Is the header present? 14774{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14775echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14776cat >conftest.$ac_ext <<_ACEOF 14777/* confdefs.h. */ 14778_ACEOF 14779cat confdefs.h >>conftest.$ac_ext 14780cat >>conftest.$ac_ext <<_ACEOF 14781/* end confdefs.h. */ 14782#include <$ac_header> 14783_ACEOF 14784if { (ac_try="$ac_cpp conftest.$ac_ext" 14785case "(($ac_try" in 14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14787 *) ac_try_echo=$ac_try;; 14788esac 14789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14791 ac_status=$? 14792 grep -v '^ *+' conftest.er1 >conftest.err 14793 rm -f conftest.er1 14794 cat conftest.err >&5 14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14796 (exit $ac_status); } >/dev/null; then 14797 if test -s conftest.err; then 14798 ac_cpp_err=$ac_c_preproc_warn_flag 14799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14800 else 14801 ac_cpp_err= 14802 fi 14803else 14804 ac_cpp_err=yes 14805fi 14806if test -z "$ac_cpp_err"; then 14807 ac_header_preproc=yes 14808else 14809 echo "$as_me: failed program was:" >&5 14810sed 's/^/| /' conftest.$ac_ext >&5 14811 14812 ac_header_preproc=no 14813fi 14814 14815rm -f conftest.err conftest.$ac_ext 14816{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14817echo "${ECHO_T}$ac_header_preproc" >&6; } 14818 14819# So? What about this header? 14820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14821 yes:no: ) 14822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14823echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14825echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14826 ac_header_preproc=yes 14827 ;; 14828 no:yes:* ) 14829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14830echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14832echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14834echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14836echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14840echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14841 ( cat <<\_ASBOX 14842## ------------------------------------ ## 14843## Report this to http://llvm.org/bugs/ ## 14844## ------------------------------------ ## 14845_ASBOX 14846 ) | sed "s/^/$as_me: WARNING: /" >&2 14847 ;; 14848esac 14849{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14852 echo $ECHO_N "(cached) $ECHO_C" >&6 14853else 14854 eval "$as_ac_Header=\$ac_header_preproc" 14855fi 14856ac_res=`eval echo '${'$as_ac_Header'}'` 14857 { echo "$as_me:$LINENO: result: $ac_res" >&5 14858echo "${ECHO_T}$ac_res" >&6; } 14859 14860fi 14861if test `eval echo '${'$as_ac_Header'}'` = yes; then 14862 cat >>confdefs.h <<_ACEOF 14863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14864_ACEOF 14865 14866fi 14867 14868done 14869 14870 14871 14872 14873 14874 14875 14876for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 14877do 14878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14880 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14883 echo $ECHO_N "(cached) $ECHO_C" >&6 14884fi 14885ac_res=`eval echo '${'$as_ac_Header'}'` 14886 { echo "$as_me:$LINENO: result: $ac_res" >&5 14887echo "${ECHO_T}$ac_res" >&6; } 14888else 14889 # Is the header compilable? 14890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14892cat >conftest.$ac_ext <<_ACEOF 14893/* confdefs.h. */ 14894_ACEOF 14895cat confdefs.h >>conftest.$ac_ext 14896cat >>conftest.$ac_ext <<_ACEOF 14897/* end confdefs.h. */ 14898$ac_includes_default 14899#include <$ac_header> 14900_ACEOF 14901rm -f conftest.$ac_objext 14902if { (ac_try="$ac_compile" 14903case "(($ac_try" in 14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14905 *) ac_try_echo=$ac_try;; 14906esac 14907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14908 (eval "$ac_compile") 2>conftest.er1 14909 ac_status=$? 14910 grep -v '^ *+' conftest.er1 >conftest.err 14911 rm -f conftest.er1 14912 cat conftest.err >&5 14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14914 (exit $ac_status); } && 14915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14916 { (case "(($ac_try" in 14917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14918 *) ac_try_echo=$ac_try;; 14919esac 14920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14921 (eval "$ac_try") 2>&5 14922 ac_status=$? 14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14924 (exit $ac_status); }; } && 14925 { ac_try='test -s conftest.$ac_objext' 14926 { (case "(($ac_try" in 14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14928 *) ac_try_echo=$ac_try;; 14929esac 14930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14931 (eval "$ac_try") 2>&5 14932 ac_status=$? 14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14934 (exit $ac_status); }; }; then 14935 ac_header_compiler=yes 14936else 14937 echo "$as_me: failed program was:" >&5 14938sed 's/^/| /' conftest.$ac_ext >&5 14939 14940 ac_header_compiler=no 14941fi 14942 14943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14944{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14945echo "${ECHO_T}$ac_header_compiler" >&6; } 14946 14947# Is the header present? 14948{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14950cat >conftest.$ac_ext <<_ACEOF 14951/* confdefs.h. */ 14952_ACEOF 14953cat confdefs.h >>conftest.$ac_ext 14954cat >>conftest.$ac_ext <<_ACEOF 14955/* end confdefs.h. */ 14956#include <$ac_header> 14957_ACEOF 14958if { (ac_try="$ac_cpp conftest.$ac_ext" 14959case "(($ac_try" in 14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14961 *) ac_try_echo=$ac_try;; 14962esac 14963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14965 ac_status=$? 14966 grep -v '^ *+' conftest.er1 >conftest.err 14967 rm -f conftest.er1 14968 cat conftest.err >&5 14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14970 (exit $ac_status); } >/dev/null; then 14971 if test -s conftest.err; then 14972 ac_cpp_err=$ac_c_preproc_warn_flag 14973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14974 else 14975 ac_cpp_err= 14976 fi 14977else 14978 ac_cpp_err=yes 14979fi 14980if test -z "$ac_cpp_err"; then 14981 ac_header_preproc=yes 14982else 14983 echo "$as_me: failed program was:" >&5 14984sed 's/^/| /' conftest.$ac_ext >&5 14985 14986 ac_header_preproc=no 14987fi 14988 14989rm -f conftest.err conftest.$ac_ext 14990{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14991echo "${ECHO_T}$ac_header_preproc" >&6; } 14992 14993# So? What about this header? 14994case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14995 yes:no: ) 14996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15000 ac_header_preproc=yes 15001 ;; 15002 no:yes:* ) 15003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15015 ( cat <<\_ASBOX 15016## ------------------------------------ ## 15017## Report this to http://llvm.org/bugs/ ## 15018## ------------------------------------ ## 15019_ASBOX 15020 ) | sed "s/^/$as_me: WARNING: /" >&2 15021 ;; 15022esac 15023{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15026 echo $ECHO_N "(cached) $ECHO_C" >&6 15027else 15028 eval "$as_ac_Header=\$ac_header_preproc" 15029fi 15030ac_res=`eval echo '${'$as_ac_Header'}'` 15031 { echo "$as_me:$LINENO: result: $ac_res" >&5 15032echo "${ECHO_T}$ac_res" >&6; } 15033 15034fi 15035if test `eval echo '${'$as_ac_Header'}'` = yes; then 15036 cat >>confdefs.h <<_ACEOF 15037#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15038_ACEOF 15039 15040fi 15041 15042done 15043 15044 15045for ac_header in utime.h 15046do 15047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15049 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15052 echo $ECHO_N "(cached) $ECHO_C" >&6 15053fi 15054ac_res=`eval echo '${'$as_ac_Header'}'` 15055 { echo "$as_me:$LINENO: result: $ac_res" >&5 15056echo "${ECHO_T}$ac_res" >&6; } 15057else 15058 # Is the header compilable? 15059{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15061cat >conftest.$ac_ext <<_ACEOF 15062/* confdefs.h. */ 15063_ACEOF 15064cat confdefs.h >>conftest.$ac_ext 15065cat >>conftest.$ac_ext <<_ACEOF 15066/* end confdefs.h. */ 15067$ac_includes_default 15068#include <$ac_header> 15069_ACEOF 15070rm -f conftest.$ac_objext 15071if { (ac_try="$ac_compile" 15072case "(($ac_try" in 15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15074 *) ac_try_echo=$ac_try;; 15075esac 15076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15077 (eval "$ac_compile") 2>conftest.er1 15078 ac_status=$? 15079 grep -v '^ *+' conftest.er1 >conftest.err 15080 rm -f conftest.er1 15081 cat conftest.err >&5 15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15083 (exit $ac_status); } && 15084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15085 { (case "(($ac_try" in 15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15087 *) ac_try_echo=$ac_try;; 15088esac 15089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15090 (eval "$ac_try") 2>&5 15091 ac_status=$? 15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15093 (exit $ac_status); }; } && 15094 { ac_try='test -s conftest.$ac_objext' 15095 { (case "(($ac_try" in 15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15097 *) ac_try_echo=$ac_try;; 15098esac 15099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15100 (eval "$ac_try") 2>&5 15101 ac_status=$? 15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15103 (exit $ac_status); }; }; then 15104 ac_header_compiler=yes 15105else 15106 echo "$as_me: failed program was:" >&5 15107sed 's/^/| /' conftest.$ac_ext >&5 15108 15109 ac_header_compiler=no 15110fi 15111 15112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15113{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15114echo "${ECHO_T}$ac_header_compiler" >&6; } 15115 15116# Is the header present? 15117{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15119cat >conftest.$ac_ext <<_ACEOF 15120/* confdefs.h. */ 15121_ACEOF 15122cat confdefs.h >>conftest.$ac_ext 15123cat >>conftest.$ac_ext <<_ACEOF 15124/* end confdefs.h. */ 15125#include <$ac_header> 15126_ACEOF 15127if { (ac_try="$ac_cpp conftest.$ac_ext" 15128case "(($ac_try" in 15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15130 *) ac_try_echo=$ac_try;; 15131esac 15132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15134 ac_status=$? 15135 grep -v '^ *+' conftest.er1 >conftest.err 15136 rm -f conftest.er1 15137 cat conftest.err >&5 15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15139 (exit $ac_status); } >/dev/null; then 15140 if test -s conftest.err; then 15141 ac_cpp_err=$ac_c_preproc_warn_flag 15142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15143 else 15144 ac_cpp_err= 15145 fi 15146else 15147 ac_cpp_err=yes 15148fi 15149if test -z "$ac_cpp_err"; then 15150 ac_header_preproc=yes 15151else 15152 echo "$as_me: failed program was:" >&5 15153sed 's/^/| /' conftest.$ac_ext >&5 15154 15155 ac_header_preproc=no 15156fi 15157 15158rm -f conftest.err conftest.$ac_ext 15159{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15160echo "${ECHO_T}$ac_header_preproc" >&6; } 15161 15162# So? What about this header? 15163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15164 yes:no: ) 15165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15169 ac_header_preproc=yes 15170 ;; 15171 no:yes:* ) 15172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15175echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15179echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15184 ( cat <<\_ASBOX 15185## ------------------------------------ ## 15186## Report this to http://llvm.org/bugs/ ## 15187## ------------------------------------ ## 15188_ASBOX 15189 ) | sed "s/^/$as_me: WARNING: /" >&2 15190 ;; 15191esac 15192{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15195 echo $ECHO_N "(cached) $ECHO_C" >&6 15196else 15197 eval "$as_ac_Header=\$ac_header_preproc" 15198fi 15199ac_res=`eval echo '${'$as_ac_Header'}'` 15200 { echo "$as_me:$LINENO: result: $ac_res" >&5 15201echo "${ECHO_T}$ac_res" >&6; } 15202 15203fi 15204if test `eval echo '${'$as_ac_Header'}'` = yes; then 15205 cat >>confdefs.h <<_ACEOF 15206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15207_ACEOF 15208 15209fi 15210 15211done 15212 15213 15214 15215 15216 15217 15218for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 15219do 15220as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15221if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15222 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15225 echo $ECHO_N "(cached) $ECHO_C" >&6 15226fi 15227ac_res=`eval echo '${'$as_ac_Header'}'` 15228 { echo "$as_me:$LINENO: result: $ac_res" >&5 15229echo "${ECHO_T}$ac_res" >&6; } 15230else 15231 # Is the header compilable? 15232{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15233echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15234cat >conftest.$ac_ext <<_ACEOF 15235/* confdefs.h. */ 15236_ACEOF 15237cat confdefs.h >>conftest.$ac_ext 15238cat >>conftest.$ac_ext <<_ACEOF 15239/* end confdefs.h. */ 15240$ac_includes_default 15241#include <$ac_header> 15242_ACEOF 15243rm -f conftest.$ac_objext 15244if { (ac_try="$ac_compile" 15245case "(($ac_try" in 15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15247 *) ac_try_echo=$ac_try;; 15248esac 15249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15250 (eval "$ac_compile") 2>conftest.er1 15251 ac_status=$? 15252 grep -v '^ *+' conftest.er1 >conftest.err 15253 rm -f conftest.er1 15254 cat conftest.err >&5 15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15256 (exit $ac_status); } && 15257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15258 { (case "(($ac_try" in 15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15260 *) ac_try_echo=$ac_try;; 15261esac 15262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15263 (eval "$ac_try") 2>&5 15264 ac_status=$? 15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15266 (exit $ac_status); }; } && 15267 { ac_try='test -s conftest.$ac_objext' 15268 { (case "(($ac_try" in 15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15270 *) ac_try_echo=$ac_try;; 15271esac 15272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15273 (eval "$ac_try") 2>&5 15274 ac_status=$? 15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15276 (exit $ac_status); }; }; then 15277 ac_header_compiler=yes 15278else 15279 echo "$as_me: failed program was:" >&5 15280sed 's/^/| /' conftest.$ac_ext >&5 15281 15282 ac_header_compiler=no 15283fi 15284 15285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15286{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15287echo "${ECHO_T}$ac_header_compiler" >&6; } 15288 15289# Is the header present? 15290{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15291echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15292cat >conftest.$ac_ext <<_ACEOF 15293/* confdefs.h. */ 15294_ACEOF 15295cat confdefs.h >>conftest.$ac_ext 15296cat >>conftest.$ac_ext <<_ACEOF 15297/* end confdefs.h. */ 15298#include <$ac_header> 15299_ACEOF 15300if { (ac_try="$ac_cpp conftest.$ac_ext" 15301case "(($ac_try" in 15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15303 *) ac_try_echo=$ac_try;; 15304esac 15305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15307 ac_status=$? 15308 grep -v '^ *+' conftest.er1 >conftest.err 15309 rm -f conftest.er1 15310 cat conftest.err >&5 15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15312 (exit $ac_status); } >/dev/null; then 15313 if test -s conftest.err; then 15314 ac_cpp_err=$ac_c_preproc_warn_flag 15315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15316 else 15317 ac_cpp_err= 15318 fi 15319else 15320 ac_cpp_err=yes 15321fi 15322if test -z "$ac_cpp_err"; then 15323 ac_header_preproc=yes 15324else 15325 echo "$as_me: failed program was:" >&5 15326sed 's/^/| /' conftest.$ac_ext >&5 15327 15328 ac_header_preproc=no 15329fi 15330 15331rm -f conftest.err conftest.$ac_ext 15332{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15333echo "${ECHO_T}$ac_header_preproc" >&6; } 15334 15335# So? What about this header? 15336case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15337 yes:no: ) 15338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15339echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15341echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15342 ac_header_preproc=yes 15343 ;; 15344 no:yes:* ) 15345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15346echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15348echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15350echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15352echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15354echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15356echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15357 ( cat <<\_ASBOX 15358## ------------------------------------ ## 15359## Report this to http://llvm.org/bugs/ ## 15360## ------------------------------------ ## 15361_ASBOX 15362 ) | sed "s/^/$as_me: WARNING: /" >&2 15363 ;; 15364esac 15365{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15368 echo $ECHO_N "(cached) $ECHO_C" >&6 15369else 15370 eval "$as_ac_Header=\$ac_header_preproc" 15371fi 15372ac_res=`eval echo '${'$as_ac_Header'}'` 15373 { echo "$as_me:$LINENO: result: $ac_res" >&5 15374echo "${ECHO_T}$ac_res" >&6; } 15375 15376fi 15377if test `eval echo '${'$as_ac_Header'}'` = yes; then 15378 cat >>confdefs.h <<_ACEOF 15379#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15380_ACEOF 15381 15382fi 15383 15384done 15385 15386 15387 15388 15389for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h 15390do 15391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15393 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15396 echo $ECHO_N "(cached) $ECHO_C" >&6 15397fi 15398ac_res=`eval echo '${'$as_ac_Header'}'` 15399 { echo "$as_me:$LINENO: result: $ac_res" >&5 15400echo "${ECHO_T}$ac_res" >&6; } 15401else 15402 # Is the header compilable? 15403{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15405cat >conftest.$ac_ext <<_ACEOF 15406/* confdefs.h. */ 15407_ACEOF 15408cat confdefs.h >>conftest.$ac_ext 15409cat >>conftest.$ac_ext <<_ACEOF 15410/* end confdefs.h. */ 15411$ac_includes_default 15412#include <$ac_header> 15413_ACEOF 15414rm -f conftest.$ac_objext 15415if { (ac_try="$ac_compile" 15416case "(($ac_try" in 15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15418 *) ac_try_echo=$ac_try;; 15419esac 15420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15421 (eval "$ac_compile") 2>conftest.er1 15422 ac_status=$? 15423 grep -v '^ *+' conftest.er1 >conftest.err 15424 rm -f conftest.er1 15425 cat conftest.err >&5 15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15427 (exit $ac_status); } && 15428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15429 { (case "(($ac_try" in 15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15431 *) ac_try_echo=$ac_try;; 15432esac 15433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15434 (eval "$ac_try") 2>&5 15435 ac_status=$? 15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15437 (exit $ac_status); }; } && 15438 { ac_try='test -s conftest.$ac_objext' 15439 { (case "(($ac_try" in 15440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15441 *) ac_try_echo=$ac_try;; 15442esac 15443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15444 (eval "$ac_try") 2>&5 15445 ac_status=$? 15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15447 (exit $ac_status); }; }; then 15448 ac_header_compiler=yes 15449else 15450 echo "$as_me: failed program was:" >&5 15451sed 's/^/| /' conftest.$ac_ext >&5 15452 15453 ac_header_compiler=no 15454fi 15455 15456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15457{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15458echo "${ECHO_T}$ac_header_compiler" >&6; } 15459 15460# Is the header present? 15461{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15463cat >conftest.$ac_ext <<_ACEOF 15464/* confdefs.h. */ 15465_ACEOF 15466cat confdefs.h >>conftest.$ac_ext 15467cat >>conftest.$ac_ext <<_ACEOF 15468/* end confdefs.h. */ 15469#include <$ac_header> 15470_ACEOF 15471if { (ac_try="$ac_cpp conftest.$ac_ext" 15472case "(($ac_try" in 15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15474 *) ac_try_echo=$ac_try;; 15475esac 15476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15478 ac_status=$? 15479 grep -v '^ *+' conftest.er1 >conftest.err 15480 rm -f conftest.er1 15481 cat conftest.err >&5 15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15483 (exit $ac_status); } >/dev/null; then 15484 if test -s conftest.err; then 15485 ac_cpp_err=$ac_c_preproc_warn_flag 15486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15487 else 15488 ac_cpp_err= 15489 fi 15490else 15491 ac_cpp_err=yes 15492fi 15493if test -z "$ac_cpp_err"; then 15494 ac_header_preproc=yes 15495else 15496 echo "$as_me: failed program was:" >&5 15497sed 's/^/| /' conftest.$ac_ext >&5 15498 15499 ac_header_preproc=no 15500fi 15501 15502rm -f conftest.err conftest.$ac_ext 15503{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15504echo "${ECHO_T}$ac_header_preproc" >&6; } 15505 15506# So? What about this header? 15507case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15508 yes:no: ) 15509 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15510echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15512echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15513 ac_header_preproc=yes 15514 ;; 15515 no:yes:* ) 15516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15520 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15521echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15522 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15523echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15524 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15525echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15526 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15527echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15528 ( cat <<\_ASBOX 15529## ------------------------------------ ## 15530## Report this to http://llvm.org/bugs/ ## 15531## ------------------------------------ ## 15532_ASBOX 15533 ) | sed "s/^/$as_me: WARNING: /" >&2 15534 ;; 15535esac 15536{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15539 echo $ECHO_N "(cached) $ECHO_C" >&6 15540else 15541 eval "$as_ac_Header=\$ac_header_preproc" 15542fi 15543ac_res=`eval echo '${'$as_ac_Header'}'` 15544 { echo "$as_me:$LINENO: result: $ac_res" >&5 15545echo "${ECHO_T}$ac_res" >&6; } 15546 15547fi 15548if test `eval echo '${'$as_ac_Header'}'` = yes; then 15549 cat >>confdefs.h <<_ACEOF 15550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15551_ACEOF 15552 15553fi 15554 15555done 15556 15557 15558for ac_header in valgrind/valgrind.h 15559do 15560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15562 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15565 echo $ECHO_N "(cached) $ECHO_C" >&6 15566fi 15567ac_res=`eval echo '${'$as_ac_Header'}'` 15568 { echo "$as_me:$LINENO: result: $ac_res" >&5 15569echo "${ECHO_T}$ac_res" >&6; } 15570else 15571 # Is the header compilable? 15572{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15573echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15574cat >conftest.$ac_ext <<_ACEOF 15575/* confdefs.h. */ 15576_ACEOF 15577cat confdefs.h >>conftest.$ac_ext 15578cat >>conftest.$ac_ext <<_ACEOF 15579/* end confdefs.h. */ 15580$ac_includes_default 15581#include <$ac_header> 15582_ACEOF 15583rm -f conftest.$ac_objext 15584if { (ac_try="$ac_compile" 15585case "(($ac_try" in 15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15587 *) ac_try_echo=$ac_try;; 15588esac 15589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15590 (eval "$ac_compile") 2>conftest.er1 15591 ac_status=$? 15592 grep -v '^ *+' conftest.er1 >conftest.err 15593 rm -f conftest.er1 15594 cat conftest.err >&5 15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15596 (exit $ac_status); } && 15597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15598 { (case "(($ac_try" in 15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15600 *) ac_try_echo=$ac_try;; 15601esac 15602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15603 (eval "$ac_try") 2>&5 15604 ac_status=$? 15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15606 (exit $ac_status); }; } && 15607 { ac_try='test -s conftest.$ac_objext' 15608 { (case "(($ac_try" in 15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15610 *) ac_try_echo=$ac_try;; 15611esac 15612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15613 (eval "$ac_try") 2>&5 15614 ac_status=$? 15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15616 (exit $ac_status); }; }; then 15617 ac_header_compiler=yes 15618else 15619 echo "$as_me: failed program was:" >&5 15620sed 's/^/| /' conftest.$ac_ext >&5 15621 15622 ac_header_compiler=no 15623fi 15624 15625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15626{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15627echo "${ECHO_T}$ac_header_compiler" >&6; } 15628 15629# Is the header present? 15630{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15632cat >conftest.$ac_ext <<_ACEOF 15633/* confdefs.h. */ 15634_ACEOF 15635cat confdefs.h >>conftest.$ac_ext 15636cat >>conftest.$ac_ext <<_ACEOF 15637/* end confdefs.h. */ 15638#include <$ac_header> 15639_ACEOF 15640if { (ac_try="$ac_cpp conftest.$ac_ext" 15641case "(($ac_try" in 15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15643 *) ac_try_echo=$ac_try;; 15644esac 15645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15647 ac_status=$? 15648 grep -v '^ *+' conftest.er1 >conftest.err 15649 rm -f conftest.er1 15650 cat conftest.err >&5 15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15652 (exit $ac_status); } >/dev/null; then 15653 if test -s conftest.err; then 15654 ac_cpp_err=$ac_c_preproc_warn_flag 15655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15656 else 15657 ac_cpp_err= 15658 fi 15659else 15660 ac_cpp_err=yes 15661fi 15662if test -z "$ac_cpp_err"; then 15663 ac_header_preproc=yes 15664else 15665 echo "$as_me: failed program was:" >&5 15666sed 's/^/| /' conftest.$ac_ext >&5 15667 15668 ac_header_preproc=no 15669fi 15670 15671rm -f conftest.err conftest.$ac_ext 15672{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15673echo "${ECHO_T}$ac_header_preproc" >&6; } 15674 15675# So? What about this header? 15676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15677 yes:no: ) 15678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15682 ac_header_preproc=yes 15683 ;; 15684 no:yes:* ) 15685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15692echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15697 ( cat <<\_ASBOX 15698## ------------------------------------ ## 15699## Report this to http://llvm.org/bugs/ ## 15700## ------------------------------------ ## 15701_ASBOX 15702 ) | sed "s/^/$as_me: WARNING: /" >&2 15703 ;; 15704esac 15705{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15708 echo $ECHO_N "(cached) $ECHO_C" >&6 15709else 15710 eval "$as_ac_Header=\$ac_header_preproc" 15711fi 15712ac_res=`eval echo '${'$as_ac_Header'}'` 15713 { echo "$as_me:$LINENO: result: $ac_res" >&5 15714echo "${ECHO_T}$ac_res" >&6; } 15715 15716fi 15717if test `eval echo '${'$as_ac_Header'}'` = yes; then 15718 cat >>confdefs.h <<_ACEOF 15719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15720_ACEOF 15721 15722fi 15723 15724done 15725 15726 15727for ac_header in fenv.h 15728do 15729as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15731 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15734 echo $ECHO_N "(cached) $ECHO_C" >&6 15735fi 15736ac_res=`eval echo '${'$as_ac_Header'}'` 15737 { echo "$as_me:$LINENO: result: $ac_res" >&5 15738echo "${ECHO_T}$ac_res" >&6; } 15739else 15740 # Is the header compilable? 15741{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15743cat >conftest.$ac_ext <<_ACEOF 15744/* confdefs.h. */ 15745_ACEOF 15746cat confdefs.h >>conftest.$ac_ext 15747cat >>conftest.$ac_ext <<_ACEOF 15748/* end confdefs.h. */ 15749$ac_includes_default 15750#include <$ac_header> 15751_ACEOF 15752rm -f conftest.$ac_objext 15753if { (ac_try="$ac_compile" 15754case "(($ac_try" in 15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15756 *) ac_try_echo=$ac_try;; 15757esac 15758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15759 (eval "$ac_compile") 2>conftest.er1 15760 ac_status=$? 15761 grep -v '^ *+' conftest.er1 >conftest.err 15762 rm -f conftest.er1 15763 cat conftest.err >&5 15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15765 (exit $ac_status); } && 15766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15767 { (case "(($ac_try" in 15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15769 *) ac_try_echo=$ac_try;; 15770esac 15771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15772 (eval "$ac_try") 2>&5 15773 ac_status=$? 15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15775 (exit $ac_status); }; } && 15776 { ac_try='test -s conftest.$ac_objext' 15777 { (case "(($ac_try" in 15778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15779 *) ac_try_echo=$ac_try;; 15780esac 15781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15782 (eval "$ac_try") 2>&5 15783 ac_status=$? 15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15785 (exit $ac_status); }; }; then 15786 ac_header_compiler=yes 15787else 15788 echo "$as_me: failed program was:" >&5 15789sed 's/^/| /' conftest.$ac_ext >&5 15790 15791 ac_header_compiler=no 15792fi 15793 15794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15795{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15796echo "${ECHO_T}$ac_header_compiler" >&6; } 15797 15798# Is the header present? 15799{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15800echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15801cat >conftest.$ac_ext <<_ACEOF 15802/* confdefs.h. */ 15803_ACEOF 15804cat confdefs.h >>conftest.$ac_ext 15805cat >>conftest.$ac_ext <<_ACEOF 15806/* end confdefs.h. */ 15807#include <$ac_header> 15808_ACEOF 15809if { (ac_try="$ac_cpp conftest.$ac_ext" 15810case "(($ac_try" in 15811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15812 *) ac_try_echo=$ac_try;; 15813esac 15814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15816 ac_status=$? 15817 grep -v '^ *+' conftest.er1 >conftest.err 15818 rm -f conftest.er1 15819 cat conftest.err >&5 15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15821 (exit $ac_status); } >/dev/null; then 15822 if test -s conftest.err; then 15823 ac_cpp_err=$ac_c_preproc_warn_flag 15824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15825 else 15826 ac_cpp_err= 15827 fi 15828else 15829 ac_cpp_err=yes 15830fi 15831if test -z "$ac_cpp_err"; then 15832 ac_header_preproc=yes 15833else 15834 echo "$as_me: failed program was:" >&5 15835sed 's/^/| /' conftest.$ac_ext >&5 15836 15837 ac_header_preproc=no 15838fi 15839 15840rm -f conftest.err conftest.$ac_ext 15841{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15842echo "${ECHO_T}$ac_header_preproc" >&6; } 15843 15844# So? What about this header? 15845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15846 yes:no: ) 15847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15851 ac_header_preproc=yes 15852 ;; 15853 no:yes:* ) 15854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15861echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15866 ( cat <<\_ASBOX 15867## ------------------------------------ ## 15868## Report this to http://llvm.org/bugs/ ## 15869## ------------------------------------ ## 15870_ASBOX 15871 ) | sed "s/^/$as_me: WARNING: /" >&2 15872 ;; 15873esac 15874{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15877 echo $ECHO_N "(cached) $ECHO_C" >&6 15878else 15879 eval "$as_ac_Header=\$ac_header_preproc" 15880fi 15881ac_res=`eval echo '${'$as_ac_Header'}'` 15882 { echo "$as_me:$LINENO: result: $ac_res" >&5 15883echo "${ECHO_T}$ac_res" >&6; } 15884 15885fi 15886if test `eval echo '${'$as_ac_Header'}'` = yes; then 15887 cat >>confdefs.h <<_ACEOF 15888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15889_ACEOF 15890 15891fi 15892 15893done 15894 15895{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5 15896echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; } 15897if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then 15898 echo $ECHO_N "(cached) $ECHO_C" >&6 15899else 15900 cat >conftest.$ac_ext <<_ACEOF 15901/* confdefs.h. */ 15902_ACEOF 15903cat confdefs.h >>conftest.$ac_ext 15904cat >>conftest.$ac_ext <<_ACEOF 15905/* end confdefs.h. */ 15906#include <fenv.h> 15907 15908int 15909main () 15910{ 15911#ifndef FE_ALL_EXCEPT 15912 char *p = (char *) FE_ALL_EXCEPT; 15913 return !p; 15914#endif 15915 15916 ; 15917 return 0; 15918} 15919_ACEOF 15920rm -f conftest.$ac_objext 15921if { (ac_try="$ac_compile" 15922case "(($ac_try" in 15923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15924 *) ac_try_echo=$ac_try;; 15925esac 15926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15927 (eval "$ac_compile") 2>conftest.er1 15928 ac_status=$? 15929 grep -v '^ *+' conftest.er1 >conftest.err 15930 rm -f conftest.er1 15931 cat conftest.err >&5 15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15933 (exit $ac_status); } && 15934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15935 { (case "(($ac_try" in 15936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15937 *) ac_try_echo=$ac_try;; 15938esac 15939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15940 (eval "$ac_try") 2>&5 15941 ac_status=$? 15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15943 (exit $ac_status); }; } && 15944 { ac_try='test -s conftest.$ac_objext' 15945 { (case "(($ac_try" in 15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15947 *) ac_try_echo=$ac_try;; 15948esac 15949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15950 (eval "$ac_try") 2>&5 15951 ac_status=$? 15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15953 (exit $ac_status); }; }; then 15954 ac_cv_have_decl_FE_ALL_EXCEPT=yes 15955else 15956 echo "$as_me: failed program was:" >&5 15957sed 's/^/| /' conftest.$ac_ext >&5 15958 15959 ac_cv_have_decl_FE_ALL_EXCEPT=no 15960fi 15961 15962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15963fi 15964{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5 15965echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; } 15966if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then 15967 15968cat >>confdefs.h <<_ACEOF 15969#define HAVE_DECL_FE_ALL_EXCEPT 1 15970_ACEOF 15971 15972 15973else 15974 cat >>confdefs.h <<_ACEOF 15975#define HAVE_DECL_FE_ALL_EXCEPT 0 15976_ACEOF 15977 15978 15979fi 15980{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5 15981echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; } 15982if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then 15983 echo $ECHO_N "(cached) $ECHO_C" >&6 15984else 15985 cat >conftest.$ac_ext <<_ACEOF 15986/* confdefs.h. */ 15987_ACEOF 15988cat confdefs.h >>conftest.$ac_ext 15989cat >>conftest.$ac_ext <<_ACEOF 15990/* end confdefs.h. */ 15991#include <fenv.h> 15992 15993int 15994main () 15995{ 15996#ifndef FE_INEXACT 15997 char *p = (char *) FE_INEXACT; 15998 return !p; 15999#endif 16000 16001 ; 16002 return 0; 16003} 16004_ACEOF 16005rm -f conftest.$ac_objext 16006if { (ac_try="$ac_compile" 16007case "(($ac_try" in 16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16009 *) ac_try_echo=$ac_try;; 16010esac 16011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16012 (eval "$ac_compile") 2>conftest.er1 16013 ac_status=$? 16014 grep -v '^ *+' conftest.er1 >conftest.err 16015 rm -f conftest.er1 16016 cat conftest.err >&5 16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16018 (exit $ac_status); } && 16019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16020 { (case "(($ac_try" in 16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16022 *) ac_try_echo=$ac_try;; 16023esac 16024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16025 (eval "$ac_try") 2>&5 16026 ac_status=$? 16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16028 (exit $ac_status); }; } && 16029 { ac_try='test -s conftest.$ac_objext' 16030 { (case "(($ac_try" in 16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16032 *) ac_try_echo=$ac_try;; 16033esac 16034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16035 (eval "$ac_try") 2>&5 16036 ac_status=$? 16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16038 (exit $ac_status); }; }; then 16039 ac_cv_have_decl_FE_INEXACT=yes 16040else 16041 echo "$as_me: failed program was:" >&5 16042sed 's/^/| /' conftest.$ac_ext >&5 16043 16044 ac_cv_have_decl_FE_INEXACT=no 16045fi 16046 16047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16048fi 16049{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5 16050echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; } 16051if test $ac_cv_have_decl_FE_INEXACT = yes; then 16052 16053cat >>confdefs.h <<_ACEOF 16054#define HAVE_DECL_FE_INEXACT 1 16055_ACEOF 16056 16057 16058else 16059 cat >>confdefs.h <<_ACEOF 16060#define HAVE_DECL_FE_INEXACT 0 16061_ACEOF 16062 16063 16064fi 16065 16066 16067if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 16068 16069for ac_header in pthread.h 16070do 16071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16073 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16076 echo $ECHO_N "(cached) $ECHO_C" >&6 16077fi 16078ac_res=`eval echo '${'$as_ac_Header'}'` 16079 { echo "$as_me:$LINENO: result: $ac_res" >&5 16080echo "${ECHO_T}$ac_res" >&6; } 16081else 16082 # Is the header compilable? 16083{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16085cat >conftest.$ac_ext <<_ACEOF 16086/* confdefs.h. */ 16087_ACEOF 16088cat confdefs.h >>conftest.$ac_ext 16089cat >>conftest.$ac_ext <<_ACEOF 16090/* end confdefs.h. */ 16091$ac_includes_default 16092#include <$ac_header> 16093_ACEOF 16094rm -f conftest.$ac_objext 16095if { (ac_try="$ac_compile" 16096case "(($ac_try" in 16097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16098 *) ac_try_echo=$ac_try;; 16099esac 16100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16101 (eval "$ac_compile") 2>conftest.er1 16102 ac_status=$? 16103 grep -v '^ *+' conftest.er1 >conftest.err 16104 rm -f conftest.er1 16105 cat conftest.err >&5 16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16107 (exit $ac_status); } && 16108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16109 { (case "(($ac_try" in 16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16111 *) ac_try_echo=$ac_try;; 16112esac 16113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16114 (eval "$ac_try") 2>&5 16115 ac_status=$? 16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16117 (exit $ac_status); }; } && 16118 { ac_try='test -s conftest.$ac_objext' 16119 { (case "(($ac_try" in 16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16121 *) ac_try_echo=$ac_try;; 16122esac 16123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16124 (eval "$ac_try") 2>&5 16125 ac_status=$? 16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16127 (exit $ac_status); }; }; then 16128 ac_header_compiler=yes 16129else 16130 echo "$as_me: failed program was:" >&5 16131sed 's/^/| /' conftest.$ac_ext >&5 16132 16133 ac_header_compiler=no 16134fi 16135 16136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16137{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16138echo "${ECHO_T}$ac_header_compiler" >&6; } 16139 16140# Is the header present? 16141{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16143cat >conftest.$ac_ext <<_ACEOF 16144/* confdefs.h. */ 16145_ACEOF 16146cat confdefs.h >>conftest.$ac_ext 16147cat >>conftest.$ac_ext <<_ACEOF 16148/* end confdefs.h. */ 16149#include <$ac_header> 16150_ACEOF 16151if { (ac_try="$ac_cpp conftest.$ac_ext" 16152case "(($ac_try" in 16153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16154 *) ac_try_echo=$ac_try;; 16155esac 16156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16158 ac_status=$? 16159 grep -v '^ *+' conftest.er1 >conftest.err 16160 rm -f conftest.er1 16161 cat conftest.err >&5 16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16163 (exit $ac_status); } >/dev/null; then 16164 if test -s conftest.err; then 16165 ac_cpp_err=$ac_c_preproc_warn_flag 16166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16167 else 16168 ac_cpp_err= 16169 fi 16170else 16171 ac_cpp_err=yes 16172fi 16173if test -z "$ac_cpp_err"; then 16174 ac_header_preproc=yes 16175else 16176 echo "$as_me: failed program was:" >&5 16177sed 's/^/| /' conftest.$ac_ext >&5 16178 16179 ac_header_preproc=no 16180fi 16181 16182rm -f conftest.err conftest.$ac_ext 16183{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16184echo "${ECHO_T}$ac_header_preproc" >&6; } 16185 16186# So? What about this header? 16187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16188 yes:no: ) 16189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16193 ac_header_preproc=yes 16194 ;; 16195 no:yes:* ) 16196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16208 ( cat <<\_ASBOX 16209## ------------------------------------ ## 16210## Report this to http://llvm.org/bugs/ ## 16211## ------------------------------------ ## 16212_ASBOX 16213 ) | sed "s/^/$as_me: WARNING: /" >&2 16214 ;; 16215esac 16216{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16219 echo $ECHO_N "(cached) $ECHO_C" >&6 16220else 16221 eval "$as_ac_Header=\$ac_header_preproc" 16222fi 16223ac_res=`eval echo '${'$as_ac_Header'}'` 16224 { echo "$as_me:$LINENO: result: $ac_res" >&5 16225echo "${ECHO_T}$ac_res" >&6; } 16226 16227fi 16228if test `eval echo '${'$as_ac_Header'}'` = yes; then 16229 cat >>confdefs.h <<_ACEOF 16230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16231_ACEOF 16232 HAVE_PTHREAD=1 16233 16234else 16235 HAVE_PTHREAD=0 16236 16237fi 16238 16239done 16240 16241else 16242 HAVE_PTHREAD=0 16243 16244fi 16245if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 16246 16247for ac_header in zlib.h 16248do 16249as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16251 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16254 echo $ECHO_N "(cached) $ECHO_C" >&6 16255fi 16256ac_res=`eval echo '${'$as_ac_Header'}'` 16257 { echo "$as_me:$LINENO: result: $ac_res" >&5 16258echo "${ECHO_T}$ac_res" >&6; } 16259else 16260 # Is the header compilable? 16261{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16262echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16263cat >conftest.$ac_ext <<_ACEOF 16264/* confdefs.h. */ 16265_ACEOF 16266cat confdefs.h >>conftest.$ac_ext 16267cat >>conftest.$ac_ext <<_ACEOF 16268/* end confdefs.h. */ 16269$ac_includes_default 16270#include <$ac_header> 16271_ACEOF 16272rm -f conftest.$ac_objext 16273if { (ac_try="$ac_compile" 16274case "(($ac_try" in 16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16276 *) ac_try_echo=$ac_try;; 16277esac 16278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16279 (eval "$ac_compile") 2>conftest.er1 16280 ac_status=$? 16281 grep -v '^ *+' conftest.er1 >conftest.err 16282 rm -f conftest.er1 16283 cat conftest.err >&5 16284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16285 (exit $ac_status); } && 16286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16287 { (case "(($ac_try" in 16288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16289 *) ac_try_echo=$ac_try;; 16290esac 16291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16292 (eval "$ac_try") 2>&5 16293 ac_status=$? 16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16295 (exit $ac_status); }; } && 16296 { ac_try='test -s conftest.$ac_objext' 16297 { (case "(($ac_try" in 16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16299 *) ac_try_echo=$ac_try;; 16300esac 16301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16302 (eval "$ac_try") 2>&5 16303 ac_status=$? 16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16305 (exit $ac_status); }; }; then 16306 ac_header_compiler=yes 16307else 16308 echo "$as_me: failed program was:" >&5 16309sed 's/^/| /' conftest.$ac_ext >&5 16310 16311 ac_header_compiler=no 16312fi 16313 16314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16315{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16316echo "${ECHO_T}$ac_header_compiler" >&6; } 16317 16318# Is the header present? 16319{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16321cat >conftest.$ac_ext <<_ACEOF 16322/* confdefs.h. */ 16323_ACEOF 16324cat confdefs.h >>conftest.$ac_ext 16325cat >>conftest.$ac_ext <<_ACEOF 16326/* end confdefs.h. */ 16327#include <$ac_header> 16328_ACEOF 16329if { (ac_try="$ac_cpp conftest.$ac_ext" 16330case "(($ac_try" in 16331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16332 *) ac_try_echo=$ac_try;; 16333esac 16334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16336 ac_status=$? 16337 grep -v '^ *+' conftest.er1 >conftest.err 16338 rm -f conftest.er1 16339 cat conftest.err >&5 16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16341 (exit $ac_status); } >/dev/null; then 16342 if test -s conftest.err; then 16343 ac_cpp_err=$ac_c_preproc_warn_flag 16344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16345 else 16346 ac_cpp_err= 16347 fi 16348else 16349 ac_cpp_err=yes 16350fi 16351if test -z "$ac_cpp_err"; then 16352 ac_header_preproc=yes 16353else 16354 echo "$as_me: failed program was:" >&5 16355sed 's/^/| /' conftest.$ac_ext >&5 16356 16357 ac_header_preproc=no 16358fi 16359 16360rm -f conftest.err conftest.$ac_ext 16361{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16362echo "${ECHO_T}$ac_header_preproc" >&6; } 16363 16364# So? What about this header? 16365case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16366 yes:no: ) 16367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16368echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16370echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16371 ac_header_preproc=yes 16372 ;; 16373 no:yes:* ) 16374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16375echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16377echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16379echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16381echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16383echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16385echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16386 ( cat <<\_ASBOX 16387## ------------------------------------ ## 16388## Report this to http://llvm.org/bugs/ ## 16389## ------------------------------------ ## 16390_ASBOX 16391 ) | sed "s/^/$as_me: WARNING: /" >&2 16392 ;; 16393esac 16394{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16397 echo $ECHO_N "(cached) $ECHO_C" >&6 16398else 16399 eval "$as_ac_Header=\$ac_header_preproc" 16400fi 16401ac_res=`eval echo '${'$as_ac_Header'}'` 16402 { echo "$as_me:$LINENO: result: $ac_res" >&5 16403echo "${ECHO_T}$ac_res" >&6; } 16404 16405fi 16406if test `eval echo '${'$as_ac_Header'}'` = yes; then 16407 cat >>confdefs.h <<_ACEOF 16408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16409_ACEOF 16410 HAVE_LIBZ=1 16411 16412else 16413 HAVE_LIBZ=0 16414 16415fi 16416 16417done 16418 16419else 16420 HAVE_LIBZ=0 16421 16422fi 16423 16424if test "$llvm_cv_enable_libffi" = "yes" ; then 16425 16426 16427for ac_header in ffi.h ffi/ffi.h 16428do 16429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16431 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16434 echo $ECHO_N "(cached) $ECHO_C" >&6 16435fi 16436ac_res=`eval echo '${'$as_ac_Header'}'` 16437 { echo "$as_me:$LINENO: result: $ac_res" >&5 16438echo "${ECHO_T}$ac_res" >&6; } 16439else 16440 # Is the header compilable? 16441{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16443cat >conftest.$ac_ext <<_ACEOF 16444/* confdefs.h. */ 16445_ACEOF 16446cat confdefs.h >>conftest.$ac_ext 16447cat >>conftest.$ac_ext <<_ACEOF 16448/* end confdefs.h. */ 16449$ac_includes_default 16450#include <$ac_header> 16451_ACEOF 16452rm -f conftest.$ac_objext 16453if { (ac_try="$ac_compile" 16454case "(($ac_try" in 16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16456 *) ac_try_echo=$ac_try;; 16457esac 16458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16459 (eval "$ac_compile") 2>conftest.er1 16460 ac_status=$? 16461 grep -v '^ *+' conftest.er1 >conftest.err 16462 rm -f conftest.er1 16463 cat conftest.err >&5 16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16465 (exit $ac_status); } && 16466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16467 { (case "(($ac_try" in 16468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16469 *) ac_try_echo=$ac_try;; 16470esac 16471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16472 (eval "$ac_try") 2>&5 16473 ac_status=$? 16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16475 (exit $ac_status); }; } && 16476 { ac_try='test -s conftest.$ac_objext' 16477 { (case "(($ac_try" in 16478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16479 *) ac_try_echo=$ac_try;; 16480esac 16481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16482 (eval "$ac_try") 2>&5 16483 ac_status=$? 16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16485 (exit $ac_status); }; }; then 16486 ac_header_compiler=yes 16487else 16488 echo "$as_me: failed program was:" >&5 16489sed 's/^/| /' conftest.$ac_ext >&5 16490 16491 ac_header_compiler=no 16492fi 16493 16494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16495{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16496echo "${ECHO_T}$ac_header_compiler" >&6; } 16497 16498# Is the header present? 16499{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16500echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16501cat >conftest.$ac_ext <<_ACEOF 16502/* confdefs.h. */ 16503_ACEOF 16504cat confdefs.h >>conftest.$ac_ext 16505cat >>conftest.$ac_ext <<_ACEOF 16506/* end confdefs.h. */ 16507#include <$ac_header> 16508_ACEOF 16509if { (ac_try="$ac_cpp conftest.$ac_ext" 16510case "(($ac_try" in 16511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16512 *) ac_try_echo=$ac_try;; 16513esac 16514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16516 ac_status=$? 16517 grep -v '^ *+' conftest.er1 >conftest.err 16518 rm -f conftest.er1 16519 cat conftest.err >&5 16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16521 (exit $ac_status); } >/dev/null; then 16522 if test -s conftest.err; then 16523 ac_cpp_err=$ac_c_preproc_warn_flag 16524 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16525 else 16526 ac_cpp_err= 16527 fi 16528else 16529 ac_cpp_err=yes 16530fi 16531if test -z "$ac_cpp_err"; then 16532 ac_header_preproc=yes 16533else 16534 echo "$as_me: failed program was:" >&5 16535sed 's/^/| /' conftest.$ac_ext >&5 16536 16537 ac_header_preproc=no 16538fi 16539 16540rm -f conftest.err conftest.$ac_ext 16541{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16542echo "${ECHO_T}$ac_header_preproc" >&6; } 16543 16544# So? What about this header? 16545case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16546 yes:no: ) 16547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16548echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16550echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16551 ac_header_preproc=yes 16552 ;; 16553 no:yes:* ) 16554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16555echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16557echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16559echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16561echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16563echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16565echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16566 ( cat <<\_ASBOX 16567## ------------------------------------ ## 16568## Report this to http://llvm.org/bugs/ ## 16569## ------------------------------------ ## 16570_ASBOX 16571 ) | sed "s/^/$as_me: WARNING: /" >&2 16572 ;; 16573esac 16574{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16577 echo $ECHO_N "(cached) $ECHO_C" >&6 16578else 16579 eval "$as_ac_Header=\$ac_header_preproc" 16580fi 16581ac_res=`eval echo '${'$as_ac_Header'}'` 16582 { echo "$as_me:$LINENO: result: $ac_res" >&5 16583echo "${ECHO_T}$ac_res" >&6; } 16584 16585fi 16586if test `eval echo '${'$as_ac_Header'}'` = yes; then 16587 cat >>confdefs.h <<_ACEOF 16588#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16589_ACEOF 16590 16591fi 16592 16593done 16594 16595fi 16596 16597 16598for ac_header in CrashReporterClient.h 16599do 16600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16602 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16605 echo $ECHO_N "(cached) $ECHO_C" >&6 16606fi 16607ac_res=`eval echo '${'$as_ac_Header'}'` 16608 { echo "$as_me:$LINENO: result: $ac_res" >&5 16609echo "${ECHO_T}$ac_res" >&6; } 16610else 16611 # Is the header compilable? 16612{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16614cat >conftest.$ac_ext <<_ACEOF 16615/* confdefs.h. */ 16616_ACEOF 16617cat confdefs.h >>conftest.$ac_ext 16618cat >>conftest.$ac_ext <<_ACEOF 16619/* end confdefs.h. */ 16620$ac_includes_default 16621#include <$ac_header> 16622_ACEOF 16623rm -f conftest.$ac_objext 16624if { (ac_try="$ac_compile" 16625case "(($ac_try" in 16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16627 *) ac_try_echo=$ac_try;; 16628esac 16629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16630 (eval "$ac_compile") 2>conftest.er1 16631 ac_status=$? 16632 grep -v '^ *+' conftest.er1 >conftest.err 16633 rm -f conftest.er1 16634 cat conftest.err >&5 16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16636 (exit $ac_status); } && 16637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16638 { (case "(($ac_try" in 16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16640 *) ac_try_echo=$ac_try;; 16641esac 16642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16643 (eval "$ac_try") 2>&5 16644 ac_status=$? 16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16646 (exit $ac_status); }; } && 16647 { ac_try='test -s conftest.$ac_objext' 16648 { (case "(($ac_try" in 16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16650 *) ac_try_echo=$ac_try;; 16651esac 16652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16653 (eval "$ac_try") 2>&5 16654 ac_status=$? 16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16656 (exit $ac_status); }; }; then 16657 ac_header_compiler=yes 16658else 16659 echo "$as_me: failed program was:" >&5 16660sed 's/^/| /' conftest.$ac_ext >&5 16661 16662 ac_header_compiler=no 16663fi 16664 16665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16666{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16667echo "${ECHO_T}$ac_header_compiler" >&6; } 16668 16669# Is the header present? 16670{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16672cat >conftest.$ac_ext <<_ACEOF 16673/* confdefs.h. */ 16674_ACEOF 16675cat confdefs.h >>conftest.$ac_ext 16676cat >>conftest.$ac_ext <<_ACEOF 16677/* end confdefs.h. */ 16678#include <$ac_header> 16679_ACEOF 16680if { (ac_try="$ac_cpp conftest.$ac_ext" 16681case "(($ac_try" in 16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16683 *) ac_try_echo=$ac_try;; 16684esac 16685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16687 ac_status=$? 16688 grep -v '^ *+' conftest.er1 >conftest.err 16689 rm -f conftest.er1 16690 cat conftest.err >&5 16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16692 (exit $ac_status); } >/dev/null; then 16693 if test -s conftest.err; then 16694 ac_cpp_err=$ac_c_preproc_warn_flag 16695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16696 else 16697 ac_cpp_err= 16698 fi 16699else 16700 ac_cpp_err=yes 16701fi 16702if test -z "$ac_cpp_err"; then 16703 ac_header_preproc=yes 16704else 16705 echo "$as_me: failed program was:" >&5 16706sed 's/^/| /' conftest.$ac_ext >&5 16707 16708 ac_header_preproc=no 16709fi 16710 16711rm -f conftest.err conftest.$ac_ext 16712{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16713echo "${ECHO_T}$ac_header_preproc" >&6; } 16714 16715# So? What about this header? 16716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16717 yes:no: ) 16718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16721echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16722 ac_header_preproc=yes 16723 ;; 16724 no:yes:* ) 16725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16726echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16728echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16730echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16732echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16734echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16736echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16737 ( cat <<\_ASBOX 16738## ------------------------------------ ## 16739## Report this to http://llvm.org/bugs/ ## 16740## ------------------------------------ ## 16741_ASBOX 16742 ) | sed "s/^/$as_me: WARNING: /" >&2 16743 ;; 16744esac 16745{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16748 echo $ECHO_N "(cached) $ECHO_C" >&6 16749else 16750 eval "$as_ac_Header=\$ac_header_preproc" 16751fi 16752ac_res=`eval echo '${'$as_ac_Header'}'` 16753 { echo "$as_me:$LINENO: result: $ac_res" >&5 16754echo "${ECHO_T}$ac_res" >&6; } 16755 16756fi 16757if test `eval echo '${'$as_ac_Header'}'` = yes; then 16758 cat >>confdefs.h <<_ACEOF 16759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16760_ACEOF 16761 16762fi 16763 16764done 16765 16766 16767{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 16768echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 16769cat >conftest.$ac_ext <<_ACEOF 16770 16771 /* confdefs.h. */ 16772_ACEOF 16773cat confdefs.h >>conftest.$ac_ext 16774cat >>conftest.$ac_ext <<_ACEOF 16775/* end confdefs.h. */ 16776 16777 extern const char *__crashreporter_info__; 16778 int main() { 16779 __crashreporter_info__ = "test"; 16780 return 0; 16781 } 16782 16783 16784_ACEOF 16785rm -f conftest.$ac_objext conftest$ac_exeext 16786if { (ac_try="$ac_link" 16787case "(($ac_try" in 16788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16789 *) ac_try_echo=$ac_try;; 16790esac 16791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16792 (eval "$ac_link") 2>conftest.er1 16793 ac_status=$? 16794 grep -v '^ *+' conftest.er1 >conftest.err 16795 rm -f conftest.er1 16796 cat conftest.err >&5 16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16798 (exit $ac_status); } && 16799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16800 { (case "(($ac_try" in 16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16802 *) ac_try_echo=$ac_try;; 16803esac 16804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16805 (eval "$ac_try") 2>&5 16806 ac_status=$? 16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16808 (exit $ac_status); }; } && 16809 { ac_try='test -s conftest$ac_exeext' 16810 { (case "(($ac_try" in 16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16812 *) ac_try_echo=$ac_try;; 16813esac 16814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16815 (eval "$ac_try") 2>&5 16816 ac_status=$? 16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16818 (exit $ac_status); }; }; then 16819 16820 { echo "$as_me:$LINENO: result: yes" >&5 16821echo "${ECHO_T}yes" >&6; } 16822 16823cat >>confdefs.h <<\_ACEOF 16824#define HAVE_CRASHREPORTER_INFO 1 16825_ACEOF 16826 16827 16828else 16829 echo "$as_me: failed program was:" >&5 16830sed 's/^/| /' conftest.$ac_ext >&5 16831 16832 16833 { echo "$as_me:$LINENO: result: no" >&5 16834echo "${ECHO_T}no" >&6; } 16835 16836cat >>confdefs.h <<\_ACEOF 16837#define HAVE_CRASHREPORTER_INFO 0 16838_ACEOF 16839 16840 16841fi 16842 16843rm -f core conftest.err conftest.$ac_objext \ 16844 conftest$ac_exeext conftest.$ac_ext 16845 16846 16847 16848 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 16849echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 16850if test "${ac_cv_huge_val_sanity+set}" = set; then 16851 echo $ECHO_N "(cached) $ECHO_C" >&6 16852else 16853 16854 ac_ext=cpp 16855ac_cpp='$CXXCPP $CPPFLAGS' 16856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16859 16860 ac_save_CXXFLAGS=$CXXFLAGS 16861 CXXFLAGS="$CXXFLAGS -pedantic" 16862 if test "$cross_compiling" = yes; then 16863 ac_cv_huge_val_sanity=yes 16864else 16865 cat >conftest.$ac_ext <<_ACEOF 16866/* confdefs.h. */ 16867_ACEOF 16868cat confdefs.h >>conftest.$ac_ext 16869cat >>conftest.$ac_ext <<_ACEOF 16870/* end confdefs.h. */ 16871#include <math.h> 16872int 16873main () 16874{ 16875double x = HUGE_VAL; return x != x; 16876 ; 16877 return 0; 16878} 16879_ACEOF 16880rm -f conftest$ac_exeext 16881if { (ac_try="$ac_link" 16882case "(($ac_try" in 16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16884 *) ac_try_echo=$ac_try;; 16885esac 16886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16887 (eval "$ac_link") 2>&5 16888 ac_status=$? 16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16891 { (case "(($ac_try" in 16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16893 *) ac_try_echo=$ac_try;; 16894esac 16895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16896 (eval "$ac_try") 2>&5 16897 ac_status=$? 16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16899 (exit $ac_status); }; }; then 16900 ac_cv_huge_val_sanity=yes 16901else 16902 echo "$as_me: program exited with status $ac_status" >&5 16903echo "$as_me: failed program was:" >&5 16904sed 's/^/| /' conftest.$ac_ext >&5 16905 16906( exit $ac_status ) 16907ac_cv_huge_val_sanity=no 16908fi 16909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16910fi 16911 16912 16913 CXXFLAGS=$ac_save_CXXFLAGS 16914 ac_ext=c 16915ac_cpp='$CPP $CPPFLAGS' 16916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16918ac_compiler_gnu=$ac_cv_c_compiler_gnu 16919 16920 16921fi 16922{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16923echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16924 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16925 16926 16927{ echo "$as_me:$LINENO: checking for pid_t" >&5 16928echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16929if test "${ac_cv_type_pid_t+set}" = set; then 16930 echo $ECHO_N "(cached) $ECHO_C" >&6 16931else 16932 cat >conftest.$ac_ext <<_ACEOF 16933/* confdefs.h. */ 16934_ACEOF 16935cat confdefs.h >>conftest.$ac_ext 16936cat >>conftest.$ac_ext <<_ACEOF 16937/* end confdefs.h. */ 16938$ac_includes_default 16939typedef pid_t ac__type_new_; 16940int 16941main () 16942{ 16943if ((ac__type_new_ *) 0) 16944 return 0; 16945if (sizeof (ac__type_new_)) 16946 return 0; 16947 ; 16948 return 0; 16949} 16950_ACEOF 16951rm -f conftest.$ac_objext 16952if { (ac_try="$ac_compile" 16953case "(($ac_try" in 16954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16955 *) ac_try_echo=$ac_try;; 16956esac 16957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16958 (eval "$ac_compile") 2>conftest.er1 16959 ac_status=$? 16960 grep -v '^ *+' conftest.er1 >conftest.err 16961 rm -f conftest.er1 16962 cat conftest.err >&5 16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16964 (exit $ac_status); } && 16965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16966 { (case "(($ac_try" in 16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16968 *) ac_try_echo=$ac_try;; 16969esac 16970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16971 (eval "$ac_try") 2>&5 16972 ac_status=$? 16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16974 (exit $ac_status); }; } && 16975 { ac_try='test -s conftest.$ac_objext' 16976 { (case "(($ac_try" in 16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16978 *) ac_try_echo=$ac_try;; 16979esac 16980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16981 (eval "$ac_try") 2>&5 16982 ac_status=$? 16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16984 (exit $ac_status); }; }; then 16985 ac_cv_type_pid_t=yes 16986else 16987 echo "$as_me: failed program was:" >&5 16988sed 's/^/| /' conftest.$ac_ext >&5 16989 16990 ac_cv_type_pid_t=no 16991fi 16992 16993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16994fi 16995{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16996echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16997if test $ac_cv_type_pid_t = yes; then 16998 : 16999else 17000 17001cat >>confdefs.h <<_ACEOF 17002#define pid_t int 17003_ACEOF 17004 17005fi 17006 17007{ echo "$as_me:$LINENO: checking for size_t" >&5 17008echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 17009if test "${ac_cv_type_size_t+set}" = set; then 17010 echo $ECHO_N "(cached) $ECHO_C" >&6 17011else 17012 cat >conftest.$ac_ext <<_ACEOF 17013/* confdefs.h. */ 17014_ACEOF 17015cat confdefs.h >>conftest.$ac_ext 17016cat >>conftest.$ac_ext <<_ACEOF 17017/* end confdefs.h. */ 17018$ac_includes_default 17019typedef size_t ac__type_new_; 17020int 17021main () 17022{ 17023if ((ac__type_new_ *) 0) 17024 return 0; 17025if (sizeof (ac__type_new_)) 17026 return 0; 17027 ; 17028 return 0; 17029} 17030_ACEOF 17031rm -f conftest.$ac_objext 17032if { (ac_try="$ac_compile" 17033case "(($ac_try" in 17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17035 *) ac_try_echo=$ac_try;; 17036esac 17037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17038 (eval "$ac_compile") 2>conftest.er1 17039 ac_status=$? 17040 grep -v '^ *+' conftest.er1 >conftest.err 17041 rm -f conftest.er1 17042 cat conftest.err >&5 17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17044 (exit $ac_status); } && 17045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17046 { (case "(($ac_try" in 17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17048 *) ac_try_echo=$ac_try;; 17049esac 17050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17051 (eval "$ac_try") 2>&5 17052 ac_status=$? 17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17054 (exit $ac_status); }; } && 17055 { ac_try='test -s conftest.$ac_objext' 17056 { (case "(($ac_try" in 17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17058 *) ac_try_echo=$ac_try;; 17059esac 17060eval "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); }; }; then 17065 ac_cv_type_size_t=yes 17066else 17067 echo "$as_me: failed program was:" >&5 17068sed 's/^/| /' conftest.$ac_ext >&5 17069 17070 ac_cv_type_size_t=no 17071fi 17072 17073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17074fi 17075{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 17076echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 17077if test $ac_cv_type_size_t = yes; then 17078 : 17079else 17080 17081cat >>confdefs.h <<_ACEOF 17082#define size_t unsigned int 17083_ACEOF 17084 17085fi 17086 17087 17088cat >>confdefs.h <<_ACEOF 17089#define RETSIGTYPE void 17090_ACEOF 17091 17092{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 17093echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 17094if test "${ac_cv_struct_tm+set}" = set; then 17095 echo $ECHO_N "(cached) $ECHO_C" >&6 17096else 17097 cat >conftest.$ac_ext <<_ACEOF 17098/* confdefs.h. */ 17099_ACEOF 17100cat confdefs.h >>conftest.$ac_ext 17101cat >>conftest.$ac_ext <<_ACEOF 17102/* end confdefs.h. */ 17103#include <sys/types.h> 17104#include <time.h> 17105 17106int 17107main () 17108{ 17109struct tm *tp; tp->tm_sec; 17110 ; 17111 return 0; 17112} 17113_ACEOF 17114rm -f conftest.$ac_objext 17115if { (ac_try="$ac_compile" 17116case "(($ac_try" in 17117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17118 *) ac_try_echo=$ac_try;; 17119esac 17120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17121 (eval "$ac_compile") 2>conftest.er1 17122 ac_status=$? 17123 grep -v '^ *+' conftest.er1 >conftest.err 17124 rm -f conftest.er1 17125 cat conftest.err >&5 17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17127 (exit $ac_status); } && 17128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17129 { (case "(($ac_try" in 17130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17131 *) ac_try_echo=$ac_try;; 17132esac 17133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17134 (eval "$ac_try") 2>&5 17135 ac_status=$? 17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17137 (exit $ac_status); }; } && 17138 { ac_try='test -s conftest.$ac_objext' 17139 { (case "(($ac_try" in 17140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17141 *) ac_try_echo=$ac_try;; 17142esac 17143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17144 (eval "$ac_try") 2>&5 17145 ac_status=$? 17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17147 (exit $ac_status); }; }; then 17148 ac_cv_struct_tm=time.h 17149else 17150 echo "$as_me: failed program was:" >&5 17151sed 's/^/| /' conftest.$ac_ext >&5 17152 17153 ac_cv_struct_tm=sys/time.h 17154fi 17155 17156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17157fi 17158{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 17159echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 17160if test $ac_cv_struct_tm = sys/time.h; then 17161 17162cat >>confdefs.h <<\_ACEOF 17163#define TM_IN_SYS_TIME 1 17164_ACEOF 17165 17166fi 17167 17168{ echo "$as_me:$LINENO: checking for int64_t" >&5 17169echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 17170if test "${ac_cv_type_int64_t+set}" = set; then 17171 echo $ECHO_N "(cached) $ECHO_C" >&6 17172else 17173 cat >conftest.$ac_ext <<_ACEOF 17174/* confdefs.h. */ 17175_ACEOF 17176cat confdefs.h >>conftest.$ac_ext 17177cat >>conftest.$ac_ext <<_ACEOF 17178/* end confdefs.h. */ 17179$ac_includes_default 17180typedef int64_t ac__type_new_; 17181int 17182main () 17183{ 17184if ((ac__type_new_ *) 0) 17185 return 0; 17186if (sizeof (ac__type_new_)) 17187 return 0; 17188 ; 17189 return 0; 17190} 17191_ACEOF 17192rm -f conftest.$ac_objext 17193if { (ac_try="$ac_compile" 17194case "(($ac_try" in 17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17196 *) ac_try_echo=$ac_try;; 17197esac 17198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17199 (eval "$ac_compile") 2>conftest.er1 17200 ac_status=$? 17201 grep -v '^ *+' conftest.er1 >conftest.err 17202 rm -f conftest.er1 17203 cat conftest.err >&5 17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17205 (exit $ac_status); } && 17206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17207 { (case "(($ac_try" in 17208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17209 *) ac_try_echo=$ac_try;; 17210esac 17211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17212 (eval "$ac_try") 2>&5 17213 ac_status=$? 17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17215 (exit $ac_status); }; } && 17216 { ac_try='test -s conftest.$ac_objext' 17217 { (case "(($ac_try" in 17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17219 *) ac_try_echo=$ac_try;; 17220esac 17221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17222 (eval "$ac_try") 2>&5 17223 ac_status=$? 17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17225 (exit $ac_status); }; }; then 17226 ac_cv_type_int64_t=yes 17227else 17228 echo "$as_me: failed program was:" >&5 17229sed 's/^/| /' conftest.$ac_ext >&5 17230 17231 ac_cv_type_int64_t=no 17232fi 17233 17234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17235fi 17236{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 17237echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 17238if test $ac_cv_type_int64_t = yes; then 17239 17240cat >>confdefs.h <<_ACEOF 17241#define HAVE_INT64_T 1 17242_ACEOF 17243 17244 17245else 17246 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 17247echo "$as_me: error: Type int64_t required but not found" >&2;} 17248 { (exit 1); exit 1; }; } 17249fi 17250 17251{ echo "$as_me:$LINENO: checking for uint64_t" >&5 17252echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 17253if test "${ac_cv_type_uint64_t+set}" = set; then 17254 echo $ECHO_N "(cached) $ECHO_C" >&6 17255else 17256 cat >conftest.$ac_ext <<_ACEOF 17257/* confdefs.h. */ 17258_ACEOF 17259cat confdefs.h >>conftest.$ac_ext 17260cat >>conftest.$ac_ext <<_ACEOF 17261/* end confdefs.h. */ 17262$ac_includes_default 17263typedef uint64_t ac__type_new_; 17264int 17265main () 17266{ 17267if ((ac__type_new_ *) 0) 17268 return 0; 17269if (sizeof (ac__type_new_)) 17270 return 0; 17271 ; 17272 return 0; 17273} 17274_ACEOF 17275rm -f conftest.$ac_objext 17276if { (ac_try="$ac_compile" 17277case "(($ac_try" in 17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17279 *) ac_try_echo=$ac_try;; 17280esac 17281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17282 (eval "$ac_compile") 2>conftest.er1 17283 ac_status=$? 17284 grep -v '^ *+' conftest.er1 >conftest.err 17285 rm -f conftest.er1 17286 cat conftest.err >&5 17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17288 (exit $ac_status); } && 17289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17290 { (case "(($ac_try" in 17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17292 *) ac_try_echo=$ac_try;; 17293esac 17294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17295 (eval "$ac_try") 2>&5 17296 ac_status=$? 17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17298 (exit $ac_status); }; } && 17299 { ac_try='test -s conftest.$ac_objext' 17300 { (case "(($ac_try" in 17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17302 *) ac_try_echo=$ac_try;; 17303esac 17304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17305 (eval "$ac_try") 2>&5 17306 ac_status=$? 17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17308 (exit $ac_status); }; }; then 17309 ac_cv_type_uint64_t=yes 17310else 17311 echo "$as_me: failed program was:" >&5 17312sed 's/^/| /' conftest.$ac_ext >&5 17313 17314 ac_cv_type_uint64_t=no 17315fi 17316 17317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17318fi 17319{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 17320echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 17321if test $ac_cv_type_uint64_t = yes; then 17322 17323cat >>confdefs.h <<_ACEOF 17324#define HAVE_UINT64_T 1 17325_ACEOF 17326 17327 17328else 17329 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 17330echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 17331if test "${ac_cv_type_u_int64_t+set}" = set; then 17332 echo $ECHO_N "(cached) $ECHO_C" >&6 17333else 17334 cat >conftest.$ac_ext <<_ACEOF 17335/* confdefs.h. */ 17336_ACEOF 17337cat confdefs.h >>conftest.$ac_ext 17338cat >>conftest.$ac_ext <<_ACEOF 17339/* end confdefs.h. */ 17340$ac_includes_default 17341typedef u_int64_t ac__type_new_; 17342int 17343main () 17344{ 17345if ((ac__type_new_ *) 0) 17346 return 0; 17347if (sizeof (ac__type_new_)) 17348 return 0; 17349 ; 17350 return 0; 17351} 17352_ACEOF 17353rm -f conftest.$ac_objext 17354if { (ac_try="$ac_compile" 17355case "(($ac_try" in 17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17357 *) ac_try_echo=$ac_try;; 17358esac 17359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17360 (eval "$ac_compile") 2>conftest.er1 17361 ac_status=$? 17362 grep -v '^ *+' conftest.er1 >conftest.err 17363 rm -f conftest.er1 17364 cat conftest.err >&5 17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17366 (exit $ac_status); } && 17367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17368 { (case "(($ac_try" in 17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17370 *) ac_try_echo=$ac_try;; 17371esac 17372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17373 (eval "$ac_try") 2>&5 17374 ac_status=$? 17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17376 (exit $ac_status); }; } && 17377 { ac_try='test -s conftest.$ac_objext' 17378 { (case "(($ac_try" in 17379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17380 *) ac_try_echo=$ac_try;; 17381esac 17382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17383 (eval "$ac_try") 2>&5 17384 ac_status=$? 17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17386 (exit $ac_status); }; }; then 17387 ac_cv_type_u_int64_t=yes 17388else 17389 echo "$as_me: failed program was:" >&5 17390sed 's/^/| /' conftest.$ac_ext >&5 17391 17392 ac_cv_type_u_int64_t=no 17393fi 17394 17395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17396fi 17397{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 17398echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 17399if test $ac_cv_type_u_int64_t = yes; then 17400 17401cat >>confdefs.h <<_ACEOF 17402#define HAVE_U_INT64_T 1 17403_ACEOF 17404 17405 17406else 17407 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 17408echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 17409 { (exit 1); exit 1; }; } 17410fi 17411 17412fi 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 17424do 17425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17426{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17428if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17429 echo $ECHO_N "(cached) $ECHO_C" >&6 17430else 17431 cat >conftest.$ac_ext <<_ACEOF 17432/* confdefs.h. */ 17433_ACEOF 17434cat confdefs.h >>conftest.$ac_ext 17435cat >>conftest.$ac_ext <<_ACEOF 17436/* end confdefs.h. */ 17437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17438 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17439#define $ac_func innocuous_$ac_func 17440 17441/* System header to define __stub macros and hopefully few prototypes, 17442 which can conflict with char $ac_func (); below. 17443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17444 <limits.h> exists even on freestanding compilers. */ 17445 17446#ifdef __STDC__ 17447# include <limits.h> 17448#else 17449# include <assert.h> 17450#endif 17451 17452#undef $ac_func 17453 17454/* Override any GCC internal prototype to avoid an error. 17455 Use char because int might match the return type of a GCC 17456 builtin and then its argument prototype would still apply. */ 17457#ifdef __cplusplus 17458extern "C" 17459#endif 17460char $ac_func (); 17461/* The GNU C library defines this for functions which it implements 17462 to always fail with ENOSYS. Some functions are actually named 17463 something starting with __ and the normal name is an alias. */ 17464#if defined __stub_$ac_func || defined __stub___$ac_func 17465choke me 17466#endif 17467 17468int 17469main () 17470{ 17471return $ac_func (); 17472 ; 17473 return 0; 17474} 17475_ACEOF 17476rm -f conftest.$ac_objext conftest$ac_exeext 17477if { (ac_try="$ac_link" 17478case "(($ac_try" in 17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17480 *) ac_try_echo=$ac_try;; 17481esac 17482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17483 (eval "$ac_link") 2>conftest.er1 17484 ac_status=$? 17485 grep -v '^ *+' conftest.er1 >conftest.err 17486 rm -f conftest.er1 17487 cat conftest.err >&5 17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17489 (exit $ac_status); } && 17490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17491 { (case "(($ac_try" in 17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17493 *) ac_try_echo=$ac_try;; 17494esac 17495eval "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); }; } && 17500 { ac_try='test -s conftest$ac_exeext' 17501 { (case "(($ac_try" in 17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17503 *) ac_try_echo=$ac_try;; 17504esac 17505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17506 (eval "$ac_try") 2>&5 17507 ac_status=$? 17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17509 (exit $ac_status); }; }; then 17510 eval "$as_ac_var=yes" 17511else 17512 echo "$as_me: failed program was:" >&5 17513sed 's/^/| /' conftest.$ac_ext >&5 17514 17515 eval "$as_ac_var=no" 17516fi 17517 17518rm -f core conftest.err conftest.$ac_objext \ 17519 conftest$ac_exeext conftest.$ac_ext 17520fi 17521ac_res=`eval echo '${'$as_ac_var'}'` 17522 { echo "$as_me:$LINENO: result: $ac_res" >&5 17523echo "${ECHO_T}$ac_res" >&6; } 17524if test `eval echo '${'$as_ac_var'}'` = yes; then 17525 cat >>confdefs.h <<_ACEOF 17526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17527_ACEOF 17528 17529fi 17530done 17531 17532 17533 17534 17535 17536for ac_func in powf fmodf strtof round 17537do 17538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17539{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17541if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17542 echo $ECHO_N "(cached) $ECHO_C" >&6 17543else 17544 cat >conftest.$ac_ext <<_ACEOF 17545/* confdefs.h. */ 17546_ACEOF 17547cat confdefs.h >>conftest.$ac_ext 17548cat >>conftest.$ac_ext <<_ACEOF 17549/* end confdefs.h. */ 17550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17551 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17552#define $ac_func innocuous_$ac_func 17553 17554/* System header to define __stub macros and hopefully few prototypes, 17555 which can conflict with char $ac_func (); below. 17556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17557 <limits.h> exists even on freestanding compilers. */ 17558 17559#ifdef __STDC__ 17560# include <limits.h> 17561#else 17562# include <assert.h> 17563#endif 17564 17565#undef $ac_func 17566 17567/* Override any GCC internal prototype to avoid an error. 17568 Use char because int might match the return type of a GCC 17569 builtin and then its argument prototype would still apply. */ 17570#ifdef __cplusplus 17571extern "C" 17572#endif 17573char $ac_func (); 17574/* The GNU C library defines this for functions which it implements 17575 to always fail with ENOSYS. Some functions are actually named 17576 something starting with __ and the normal name is an alias. */ 17577#if defined __stub_$ac_func || defined __stub___$ac_func 17578choke me 17579#endif 17580 17581int 17582main () 17583{ 17584return $ac_func (); 17585 ; 17586 return 0; 17587} 17588_ACEOF 17589rm -f conftest.$ac_objext conftest$ac_exeext 17590if { (ac_try="$ac_link" 17591case "(($ac_try" in 17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17593 *) ac_try_echo=$ac_try;; 17594esac 17595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17596 (eval "$ac_link") 2>conftest.er1 17597 ac_status=$? 17598 grep -v '^ *+' conftest.er1 >conftest.err 17599 rm -f conftest.er1 17600 cat conftest.err >&5 17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17602 (exit $ac_status); } && 17603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17604 { (case "(($ac_try" in 17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17606 *) ac_try_echo=$ac_try;; 17607esac 17608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17609 (eval "$ac_try") 2>&5 17610 ac_status=$? 17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17612 (exit $ac_status); }; } && 17613 { ac_try='test -s conftest$ac_exeext' 17614 { (case "(($ac_try" in 17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17616 *) ac_try_echo=$ac_try;; 17617esac 17618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17619 (eval "$ac_try") 2>&5 17620 ac_status=$? 17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17622 (exit $ac_status); }; }; then 17623 eval "$as_ac_var=yes" 17624else 17625 echo "$as_me: failed program was:" >&5 17626sed 's/^/| /' conftest.$ac_ext >&5 17627 17628 eval "$as_ac_var=no" 17629fi 17630 17631rm -f core conftest.err conftest.$ac_objext \ 17632 conftest$ac_exeext conftest.$ac_ext 17633fi 17634ac_res=`eval echo '${'$as_ac_var'}'` 17635 { echo "$as_me:$LINENO: result: $ac_res" >&5 17636echo "${ECHO_T}$ac_res" >&6; } 17637if test `eval echo '${'$as_ac_var'}'` = yes; then 17638 cat >>confdefs.h <<_ACEOF 17639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17640_ACEOF 17641 17642fi 17643done 17644 17645 17646 17647 17648 17649 17650for ac_func in log log2 log10 exp exp2 17651do 17652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17653{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17655if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17656 echo $ECHO_N "(cached) $ECHO_C" >&6 17657else 17658 cat >conftest.$ac_ext <<_ACEOF 17659/* confdefs.h. */ 17660_ACEOF 17661cat confdefs.h >>conftest.$ac_ext 17662cat >>conftest.$ac_ext <<_ACEOF 17663/* end confdefs.h. */ 17664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17665 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17666#define $ac_func innocuous_$ac_func 17667 17668/* System header to define __stub macros and hopefully few prototypes, 17669 which can conflict with char $ac_func (); below. 17670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17671 <limits.h> exists even on freestanding compilers. */ 17672 17673#ifdef __STDC__ 17674# include <limits.h> 17675#else 17676# include <assert.h> 17677#endif 17678 17679#undef $ac_func 17680 17681/* Override any GCC internal prototype to avoid an error. 17682 Use char because int might match the return type of a GCC 17683 builtin and then its argument prototype would still apply. */ 17684#ifdef __cplusplus 17685extern "C" 17686#endif 17687char $ac_func (); 17688/* The GNU C library defines this for functions which it implements 17689 to always fail with ENOSYS. Some functions are actually named 17690 something starting with __ and the normal name is an alias. */ 17691#if defined __stub_$ac_func || defined __stub___$ac_func 17692choke me 17693#endif 17694 17695int 17696main () 17697{ 17698return $ac_func (); 17699 ; 17700 return 0; 17701} 17702_ACEOF 17703rm -f conftest.$ac_objext conftest$ac_exeext 17704if { (ac_try="$ac_link" 17705case "(($ac_try" in 17706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17707 *) ac_try_echo=$ac_try;; 17708esac 17709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17710 (eval "$ac_link") 2>conftest.er1 17711 ac_status=$? 17712 grep -v '^ *+' conftest.er1 >conftest.err 17713 rm -f conftest.er1 17714 cat conftest.err >&5 17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17716 (exit $ac_status); } && 17717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17718 { (case "(($ac_try" in 17719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17720 *) ac_try_echo=$ac_try;; 17721esac 17722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17723 (eval "$ac_try") 2>&5 17724 ac_status=$? 17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17726 (exit $ac_status); }; } && 17727 { ac_try='test -s conftest$ac_exeext' 17728 { (case "(($ac_try" in 17729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17730 *) ac_try_echo=$ac_try;; 17731esac 17732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17733 (eval "$ac_try") 2>&5 17734 ac_status=$? 17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17736 (exit $ac_status); }; }; then 17737 eval "$as_ac_var=yes" 17738else 17739 echo "$as_me: failed program was:" >&5 17740sed 's/^/| /' conftest.$ac_ext >&5 17741 17742 eval "$as_ac_var=no" 17743fi 17744 17745rm -f core conftest.err conftest.$ac_objext \ 17746 conftest$ac_exeext conftest.$ac_ext 17747fi 17748ac_res=`eval echo '${'$as_ac_var'}'` 17749 { echo "$as_me:$LINENO: result: $ac_res" >&5 17750echo "${ECHO_T}$ac_res" >&6; } 17751if test `eval echo '${'$as_ac_var'}'` = yes; then 17752 cat >>confdefs.h <<_ACEOF 17753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17754_ACEOF 17755 17756fi 17757done 17758 17759 17760 17761 17762 17763 17764for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 17765do 17766as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17767{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17768echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17769if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17770 echo $ECHO_N "(cached) $ECHO_C" >&6 17771else 17772 cat >conftest.$ac_ext <<_ACEOF 17773/* confdefs.h. */ 17774_ACEOF 17775cat confdefs.h >>conftest.$ac_ext 17776cat >>conftest.$ac_ext <<_ACEOF 17777/* end confdefs.h. */ 17778/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17779 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17780#define $ac_func innocuous_$ac_func 17781 17782/* System header to define __stub macros and hopefully few prototypes, 17783 which can conflict with char $ac_func (); below. 17784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17785 <limits.h> exists even on freestanding compilers. */ 17786 17787#ifdef __STDC__ 17788# include <limits.h> 17789#else 17790# include <assert.h> 17791#endif 17792 17793#undef $ac_func 17794 17795/* Override any GCC internal prototype to avoid an error. 17796 Use char because int might match the return type of a GCC 17797 builtin and then its argument prototype would still apply. */ 17798#ifdef __cplusplus 17799extern "C" 17800#endif 17801char $ac_func (); 17802/* The GNU C library defines this for functions which it implements 17803 to always fail with ENOSYS. Some functions are actually named 17804 something starting with __ and the normal name is an alias. */ 17805#if defined __stub_$ac_func || defined __stub___$ac_func 17806choke me 17807#endif 17808 17809int 17810main () 17811{ 17812return $ac_func (); 17813 ; 17814 return 0; 17815} 17816_ACEOF 17817rm -f conftest.$ac_objext conftest$ac_exeext 17818if { (ac_try="$ac_link" 17819case "(($ac_try" in 17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17821 *) ac_try_echo=$ac_try;; 17822esac 17823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17824 (eval "$ac_link") 2>conftest.er1 17825 ac_status=$? 17826 grep -v '^ *+' conftest.er1 >conftest.err 17827 rm -f conftest.er1 17828 cat conftest.err >&5 17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17830 (exit $ac_status); } && 17831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17832 { (case "(($ac_try" in 17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17834 *) ac_try_echo=$ac_try;; 17835esac 17836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17837 (eval "$ac_try") 2>&5 17838 ac_status=$? 17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17840 (exit $ac_status); }; } && 17841 { ac_try='test -s conftest$ac_exeext' 17842 { (case "(($ac_try" in 17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17844 *) ac_try_echo=$ac_try;; 17845esac 17846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17847 (eval "$ac_try") 2>&5 17848 ac_status=$? 17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17850 (exit $ac_status); }; }; then 17851 eval "$as_ac_var=yes" 17852else 17853 echo "$as_me: failed program was:" >&5 17854sed 's/^/| /' conftest.$ac_ext >&5 17855 17856 eval "$as_ac_var=no" 17857fi 17858 17859rm -f core conftest.err conftest.$ac_objext \ 17860 conftest$ac_exeext conftest.$ac_ext 17861fi 17862ac_res=`eval echo '${'$as_ac_var'}'` 17863 { echo "$as_me:$LINENO: result: $ac_res" >&5 17864echo "${ECHO_T}$ac_res" >&6; } 17865if test `eval echo '${'$as_ac_var'}'` = yes; then 17866 cat >>confdefs.h <<_ACEOF 17867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17868_ACEOF 17869 17870fi 17871done 17872 17873 17874 17875 17876for ac_func in isatty mkdtemp mkstemp 17877do 17878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17879{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17881if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17882 echo $ECHO_N "(cached) $ECHO_C" >&6 17883else 17884 cat >conftest.$ac_ext <<_ACEOF 17885/* confdefs.h. */ 17886_ACEOF 17887cat confdefs.h >>conftest.$ac_ext 17888cat >>conftest.$ac_ext <<_ACEOF 17889/* end confdefs.h. */ 17890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17891 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17892#define $ac_func innocuous_$ac_func 17893 17894/* System header to define __stub macros and hopefully few prototypes, 17895 which can conflict with char $ac_func (); below. 17896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17897 <limits.h> exists even on freestanding compilers. */ 17898 17899#ifdef __STDC__ 17900# include <limits.h> 17901#else 17902# include <assert.h> 17903#endif 17904 17905#undef $ac_func 17906 17907/* Override any GCC internal prototype to avoid an error. 17908 Use char because int might match the return type of a GCC 17909 builtin and then its argument prototype would still apply. */ 17910#ifdef __cplusplus 17911extern "C" 17912#endif 17913char $ac_func (); 17914/* The GNU C library defines this for functions which it implements 17915 to always fail with ENOSYS. Some functions are actually named 17916 something starting with __ and the normal name is an alias. */ 17917#if defined __stub_$ac_func || defined __stub___$ac_func 17918choke me 17919#endif 17920 17921int 17922main () 17923{ 17924return $ac_func (); 17925 ; 17926 return 0; 17927} 17928_ACEOF 17929rm -f conftest.$ac_objext conftest$ac_exeext 17930if { (ac_try="$ac_link" 17931case "(($ac_try" in 17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17933 *) ac_try_echo=$ac_try;; 17934esac 17935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17936 (eval "$ac_link") 2>conftest.er1 17937 ac_status=$? 17938 grep -v '^ *+' conftest.er1 >conftest.err 17939 rm -f conftest.er1 17940 cat conftest.err >&5 17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17942 (exit $ac_status); } && 17943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17944 { (case "(($ac_try" in 17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17946 *) ac_try_echo=$ac_try;; 17947esac 17948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17949 (eval "$ac_try") 2>&5 17950 ac_status=$? 17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17952 (exit $ac_status); }; } && 17953 { ac_try='test -s conftest$ac_exeext' 17954 { (case "(($ac_try" in 17955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17956 *) ac_try_echo=$ac_try;; 17957esac 17958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17959 (eval "$ac_try") 2>&5 17960 ac_status=$? 17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17962 (exit $ac_status); }; }; then 17963 eval "$as_ac_var=yes" 17964else 17965 echo "$as_me: failed program was:" >&5 17966sed 's/^/| /' conftest.$ac_ext >&5 17967 17968 eval "$as_ac_var=no" 17969fi 17970 17971rm -f core conftest.err conftest.$ac_objext \ 17972 conftest$ac_exeext conftest.$ac_ext 17973fi 17974ac_res=`eval echo '${'$as_ac_var'}'` 17975 { echo "$as_me:$LINENO: result: $ac_res" >&5 17976echo "${ECHO_T}$ac_res" >&6; } 17977if test `eval echo '${'$as_ac_var'}'` = yes; then 17978 cat >>confdefs.h <<_ACEOF 17979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17980_ACEOF 17981 17982fi 17983done 17984 17985 17986 17987 17988 17989 17990 17991for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit 17992do 17993as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17994{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17995echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17996if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17997 echo $ECHO_N "(cached) $ECHO_C" >&6 17998else 17999 cat >conftest.$ac_ext <<_ACEOF 18000/* confdefs.h. */ 18001_ACEOF 18002cat confdefs.h >>conftest.$ac_ext 18003cat >>conftest.$ac_ext <<_ACEOF 18004/* end confdefs.h. */ 18005/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18006 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18007#define $ac_func innocuous_$ac_func 18008 18009/* System header to define __stub macros and hopefully few prototypes, 18010 which can conflict with char $ac_func (); below. 18011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18012 <limits.h> exists even on freestanding compilers. */ 18013 18014#ifdef __STDC__ 18015# include <limits.h> 18016#else 18017# include <assert.h> 18018#endif 18019 18020#undef $ac_func 18021 18022/* Override any GCC internal prototype to avoid an error. 18023 Use char because int might match the return type of a GCC 18024 builtin and then its argument prototype would still apply. */ 18025#ifdef __cplusplus 18026extern "C" 18027#endif 18028char $ac_func (); 18029/* The GNU C library defines this for functions which it implements 18030 to always fail with ENOSYS. Some functions are actually named 18031 something starting with __ and the normal name is an alias. */ 18032#if defined __stub_$ac_func || defined __stub___$ac_func 18033choke me 18034#endif 18035 18036int 18037main () 18038{ 18039return $ac_func (); 18040 ; 18041 return 0; 18042} 18043_ACEOF 18044rm -f conftest.$ac_objext conftest$ac_exeext 18045if { (ac_try="$ac_link" 18046case "(($ac_try" in 18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18048 *) ac_try_echo=$ac_try;; 18049esac 18050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18051 (eval "$ac_link") 2>conftest.er1 18052 ac_status=$? 18053 grep -v '^ *+' conftest.er1 >conftest.err 18054 rm -f conftest.er1 18055 cat conftest.err >&5 18056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18057 (exit $ac_status); } && 18058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18059 { (case "(($ac_try" in 18060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18061 *) ac_try_echo=$ac_try;; 18062esac 18063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18064 (eval "$ac_try") 2>&5 18065 ac_status=$? 18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18067 (exit $ac_status); }; } && 18068 { ac_try='test -s conftest$ac_exeext' 18069 { (case "(($ac_try" in 18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18071 *) ac_try_echo=$ac_try;; 18072esac 18073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18074 (eval "$ac_try") 2>&5 18075 ac_status=$? 18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18077 (exit $ac_status); }; }; then 18078 eval "$as_ac_var=yes" 18079else 18080 echo "$as_me: failed program was:" >&5 18081sed 's/^/| /' conftest.$ac_ext >&5 18082 18083 eval "$as_ac_var=no" 18084fi 18085 18086rm -f core conftest.err conftest.$ac_objext \ 18087 conftest$ac_exeext conftest.$ac_ext 18088fi 18089ac_res=`eval echo '${'$as_ac_var'}'` 18090 { echo "$as_me:$LINENO: result: $ac_res" >&5 18091echo "${ECHO_T}$ac_res" >&6; } 18092if test `eval echo '${'$as_ac_var'}'` = yes; then 18093 cat >>confdefs.h <<_ACEOF 18094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18095_ACEOF 18096 18097fi 18098done 18099 18100 18101 18102 18103 18104for ac_func in strerror strerror_r setenv arc4random 18105do 18106as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18107{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18108echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18109if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18110 echo $ECHO_N "(cached) $ECHO_C" >&6 18111else 18112 cat >conftest.$ac_ext <<_ACEOF 18113/* confdefs.h. */ 18114_ACEOF 18115cat confdefs.h >>conftest.$ac_ext 18116cat >>conftest.$ac_ext <<_ACEOF 18117/* end confdefs.h. */ 18118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18119 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18120#define $ac_func innocuous_$ac_func 18121 18122/* System header to define __stub macros and hopefully few prototypes, 18123 which can conflict with char $ac_func (); below. 18124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18125 <limits.h> exists even on freestanding compilers. */ 18126 18127#ifdef __STDC__ 18128# include <limits.h> 18129#else 18130# include <assert.h> 18131#endif 18132 18133#undef $ac_func 18134 18135/* Override any GCC internal prototype to avoid an error. 18136 Use char because int might match the return type of a GCC 18137 builtin and then its argument prototype would still apply. */ 18138#ifdef __cplusplus 18139extern "C" 18140#endif 18141char $ac_func (); 18142/* The GNU C library defines this for functions which it implements 18143 to always fail with ENOSYS. Some functions are actually named 18144 something starting with __ and the normal name is an alias. */ 18145#if defined __stub_$ac_func || defined __stub___$ac_func 18146choke me 18147#endif 18148 18149int 18150main () 18151{ 18152return $ac_func (); 18153 ; 18154 return 0; 18155} 18156_ACEOF 18157rm -f conftest.$ac_objext conftest$ac_exeext 18158if { (ac_try="$ac_link" 18159case "(($ac_try" in 18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18161 *) ac_try_echo=$ac_try;; 18162esac 18163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18164 (eval "$ac_link") 2>conftest.er1 18165 ac_status=$? 18166 grep -v '^ *+' conftest.er1 >conftest.err 18167 rm -f conftest.er1 18168 cat conftest.err >&5 18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18170 (exit $ac_status); } && 18171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18172 { (case "(($ac_try" in 18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18174 *) ac_try_echo=$ac_try;; 18175esac 18176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18177 (eval "$ac_try") 2>&5 18178 ac_status=$? 18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18180 (exit $ac_status); }; } && 18181 { ac_try='test -s conftest$ac_exeext' 18182 { (case "(($ac_try" in 18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18184 *) ac_try_echo=$ac_try;; 18185esac 18186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18187 (eval "$ac_try") 2>&5 18188 ac_status=$? 18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18190 (exit $ac_status); }; }; then 18191 eval "$as_ac_var=yes" 18192else 18193 echo "$as_me: failed program was:" >&5 18194sed 's/^/| /' conftest.$ac_ext >&5 18195 18196 eval "$as_ac_var=no" 18197fi 18198 18199rm -f core conftest.err conftest.$ac_objext \ 18200 conftest$ac_exeext conftest.$ac_ext 18201fi 18202ac_res=`eval echo '${'$as_ac_var'}'` 18203 { echo "$as_me:$LINENO: result: $ac_res" >&5 18204echo "${ECHO_T}$ac_res" >&6; } 18205if test `eval echo '${'$as_ac_var'}'` = yes; then 18206 cat >>confdefs.h <<_ACEOF 18207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18208_ACEOF 18209 18210fi 18211done 18212 18213 18214 18215 18216 18217for ac_func in strtoll strtoq sysconf malloc_zone_statistics 18218do 18219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18220{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18222if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18223 echo $ECHO_N "(cached) $ECHO_C" >&6 18224else 18225 cat >conftest.$ac_ext <<_ACEOF 18226/* confdefs.h. */ 18227_ACEOF 18228cat confdefs.h >>conftest.$ac_ext 18229cat >>conftest.$ac_ext <<_ACEOF 18230/* end confdefs.h. */ 18231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18232 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18233#define $ac_func innocuous_$ac_func 18234 18235/* System header to define __stub macros and hopefully few prototypes, 18236 which can conflict with char $ac_func (); below. 18237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18238 <limits.h> exists even on freestanding compilers. */ 18239 18240#ifdef __STDC__ 18241# include <limits.h> 18242#else 18243# include <assert.h> 18244#endif 18245 18246#undef $ac_func 18247 18248/* Override any GCC internal prototype to avoid an error. 18249 Use char because int might match the return type of a GCC 18250 builtin and then its argument prototype would still apply. */ 18251#ifdef __cplusplus 18252extern "C" 18253#endif 18254char $ac_func (); 18255/* The GNU C library defines this for functions which it implements 18256 to always fail with ENOSYS. Some functions are actually named 18257 something starting with __ and the normal name is an alias. */ 18258#if defined __stub_$ac_func || defined __stub___$ac_func 18259choke me 18260#endif 18261 18262int 18263main () 18264{ 18265return $ac_func (); 18266 ; 18267 return 0; 18268} 18269_ACEOF 18270rm -f conftest.$ac_objext conftest$ac_exeext 18271if { (ac_try="$ac_link" 18272case "(($ac_try" in 18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18274 *) ac_try_echo=$ac_try;; 18275esac 18276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18277 (eval "$ac_link") 2>conftest.er1 18278 ac_status=$? 18279 grep -v '^ *+' conftest.er1 >conftest.err 18280 rm -f conftest.er1 18281 cat conftest.err >&5 18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18283 (exit $ac_status); } && 18284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18285 { (case "(($ac_try" in 18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18287 *) ac_try_echo=$ac_try;; 18288esac 18289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18290 (eval "$ac_try") 2>&5 18291 ac_status=$? 18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18293 (exit $ac_status); }; } && 18294 { ac_try='test -s conftest$ac_exeext' 18295 { (case "(($ac_try" in 18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18297 *) ac_try_echo=$ac_try;; 18298esac 18299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18300 (eval "$ac_try") 2>&5 18301 ac_status=$? 18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18303 (exit $ac_status); }; }; then 18304 eval "$as_ac_var=yes" 18305else 18306 echo "$as_me: failed program was:" >&5 18307sed 's/^/| /' conftest.$ac_ext >&5 18308 18309 eval "$as_ac_var=no" 18310fi 18311 18312rm -f core conftest.err conftest.$ac_objext \ 18313 conftest$ac_exeext conftest.$ac_ext 18314fi 18315ac_res=`eval echo '${'$as_ac_var'}'` 18316 { echo "$as_me:$LINENO: result: $ac_res" >&5 18317echo "${ECHO_T}$ac_res" >&6; } 18318if test `eval echo '${'$as_ac_var'}'` = yes; then 18319 cat >>confdefs.h <<_ACEOF 18320#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18321_ACEOF 18322 18323fi 18324done 18325 18326 18327 18328 18329 18330 18331for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 18332do 18333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18334{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18336if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18337 echo $ECHO_N "(cached) $ECHO_C" >&6 18338else 18339 cat >conftest.$ac_ext <<_ACEOF 18340/* confdefs.h. */ 18341_ACEOF 18342cat confdefs.h >>conftest.$ac_ext 18343cat >>conftest.$ac_ext <<_ACEOF 18344/* end confdefs.h. */ 18345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18346 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18347#define $ac_func innocuous_$ac_func 18348 18349/* System header to define __stub macros and hopefully few prototypes, 18350 which can conflict with char $ac_func (); below. 18351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18352 <limits.h> exists even on freestanding compilers. */ 18353 18354#ifdef __STDC__ 18355# include <limits.h> 18356#else 18357# include <assert.h> 18358#endif 18359 18360#undef $ac_func 18361 18362/* Override any GCC internal prototype to avoid an error. 18363 Use char because int might match the return type of a GCC 18364 builtin and then its argument prototype would still apply. */ 18365#ifdef __cplusplus 18366extern "C" 18367#endif 18368char $ac_func (); 18369/* The GNU C library defines this for functions which it implements 18370 to always fail with ENOSYS. Some functions are actually named 18371 something starting with __ and the normal name is an alias. */ 18372#if defined __stub_$ac_func || defined __stub___$ac_func 18373choke me 18374#endif 18375 18376int 18377main () 18378{ 18379return $ac_func (); 18380 ; 18381 return 0; 18382} 18383_ACEOF 18384rm -f conftest.$ac_objext conftest$ac_exeext 18385if { (ac_try="$ac_link" 18386case "(($ac_try" in 18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18388 *) ac_try_echo=$ac_try;; 18389esac 18390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18391 (eval "$ac_link") 2>conftest.er1 18392 ac_status=$? 18393 grep -v '^ *+' conftest.er1 >conftest.err 18394 rm -f conftest.er1 18395 cat conftest.err >&5 18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18397 (exit $ac_status); } && 18398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18399 { (case "(($ac_try" in 18400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18401 *) ac_try_echo=$ac_try;; 18402esac 18403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18404 (eval "$ac_try") 2>&5 18405 ac_status=$? 18406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18407 (exit $ac_status); }; } && 18408 { ac_try='test -s conftest$ac_exeext' 18409 { (case "(($ac_try" in 18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18411 *) ac_try_echo=$ac_try;; 18412esac 18413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18414 (eval "$ac_try") 2>&5 18415 ac_status=$? 18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18417 (exit $ac_status); }; }; then 18418 eval "$as_ac_var=yes" 18419else 18420 echo "$as_me: failed program was:" >&5 18421sed 's/^/| /' conftest.$ac_ext >&5 18422 18423 eval "$as_ac_var=no" 18424fi 18425 18426rm -f core conftest.err conftest.$ac_objext \ 18427 conftest$ac_exeext conftest.$ac_ext 18428fi 18429ac_res=`eval echo '${'$as_ac_var'}'` 18430 { echo "$as_me:$LINENO: result: $ac_res" >&5 18431echo "${ECHO_T}$ac_res" >&6; } 18432if test `eval echo '${'$as_ac_var'}'` = yes; then 18433 cat >>confdefs.h <<_ACEOF 18434#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18435_ACEOF 18436 18437fi 18438done 18439 18440 18441 18442for ac_func in futimes futimens 18443do 18444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18445{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18447if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18448 echo $ECHO_N "(cached) $ECHO_C" >&6 18449else 18450 cat >conftest.$ac_ext <<_ACEOF 18451/* confdefs.h. */ 18452_ACEOF 18453cat confdefs.h >>conftest.$ac_ext 18454cat >>conftest.$ac_ext <<_ACEOF 18455/* end confdefs.h. */ 18456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18457 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18458#define $ac_func innocuous_$ac_func 18459 18460/* System header to define __stub macros and hopefully few prototypes, 18461 which can conflict with char $ac_func (); below. 18462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18463 <limits.h> exists even on freestanding compilers. */ 18464 18465#ifdef __STDC__ 18466# include <limits.h> 18467#else 18468# include <assert.h> 18469#endif 18470 18471#undef $ac_func 18472 18473/* Override any GCC internal prototype to avoid an error. 18474 Use char because int might match the return type of a GCC 18475 builtin and then its argument prototype would still apply. */ 18476#ifdef __cplusplus 18477extern "C" 18478#endif 18479char $ac_func (); 18480/* The GNU C library defines this for functions which it implements 18481 to always fail with ENOSYS. Some functions are actually named 18482 something starting with __ and the normal name is an alias. */ 18483#if defined __stub_$ac_func || defined __stub___$ac_func 18484choke me 18485#endif 18486 18487int 18488main () 18489{ 18490return $ac_func (); 18491 ; 18492 return 0; 18493} 18494_ACEOF 18495rm -f conftest.$ac_objext conftest$ac_exeext 18496if { (ac_try="$ac_link" 18497case "(($ac_try" in 18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18499 *) ac_try_echo=$ac_try;; 18500esac 18501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18502 (eval "$ac_link") 2>conftest.er1 18503 ac_status=$? 18504 grep -v '^ *+' conftest.er1 >conftest.err 18505 rm -f conftest.er1 18506 cat conftest.err >&5 18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18508 (exit $ac_status); } && 18509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18510 { (case "(($ac_try" in 18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18512 *) ac_try_echo=$ac_try;; 18513esac 18514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18515 (eval "$ac_try") 2>&5 18516 ac_status=$? 18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18518 (exit $ac_status); }; } && 18519 { ac_try='test -s conftest$ac_exeext' 18520 { (case "(($ac_try" in 18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18522 *) ac_try_echo=$ac_try;; 18523esac 18524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18525 (eval "$ac_try") 2>&5 18526 ac_status=$? 18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18528 (exit $ac_status); }; }; then 18529 eval "$as_ac_var=yes" 18530else 18531 echo "$as_me: failed program was:" >&5 18532sed 's/^/| /' conftest.$ac_ext >&5 18533 18534 eval "$as_ac_var=no" 18535fi 18536 18537rm -f core conftest.err conftest.$ac_objext \ 18538 conftest$ac_exeext conftest.$ac_ext 18539fi 18540ac_res=`eval echo '${'$as_ac_var'}'` 18541 { echo "$as_me:$LINENO: result: $ac_res" >&5 18542echo "${ECHO_T}$ac_res" >&6; } 18543if test `eval echo '${'$as_ac_var'}'` = yes; then 18544 cat >>confdefs.h <<_ACEOF 18545#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18546_ACEOF 18547 18548fi 18549done 18550 18551{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 18552echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 18553if test "${llvm_cv_c_printf_a+set}" = set; then 18554 echo $ECHO_N "(cached) $ECHO_C" >&6 18555else 18556 ac_ext=c 18557ac_cpp='$CPP $CPPFLAGS' 18558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18560ac_compiler_gnu=$ac_cv_c_compiler_gnu 18561 18562 if test "$cross_compiling" = yes; then 18563 llvmac_cv_c_printf_a=no 18564else 18565 cat >conftest.$ac_ext <<_ACEOF 18566 18567 /* confdefs.h. */ 18568_ACEOF 18569cat confdefs.h >>conftest.$ac_ext 18570cat >>conftest.$ac_ext <<_ACEOF 18571/* end confdefs.h. */ 18572 18573#include <stdio.h> 18574#include <stdlib.h> 18575 18576int 18577main () 18578{ 18579 18580volatile double A, B; 18581char Buffer[100]; 18582A = 1; 18583A /= 10.0; 18584sprintf(Buffer, "%a", A); 18585B = atof(Buffer); 18586if (A != B) 18587 return (1); 18588if (A != 0x1.999999999999ap-4) 18589 return (1); 18590return (0); 18591 ; 18592 return 0; 18593} 18594_ACEOF 18595rm -f conftest$ac_exeext 18596if { (ac_try="$ac_link" 18597case "(($ac_try" in 18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18599 *) ac_try_echo=$ac_try;; 18600esac 18601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18602 (eval "$ac_link") 2>&5 18603 ac_status=$? 18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18606 { (case "(($ac_try" in 18607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18608 *) ac_try_echo=$ac_try;; 18609esac 18610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18611 (eval "$ac_try") 2>&5 18612 ac_status=$? 18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18614 (exit $ac_status); }; }; then 18615 llvm_cv_c_printf_a=yes 18616else 18617 echo "$as_me: program exited with status $ac_status" >&5 18618echo "$as_me: failed program was:" >&5 18619sed 's/^/| /' conftest.$ac_ext >&5 18620 18621( exit $ac_status ) 18622llvmac_cv_c_printf_a=no 18623fi 18624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18625fi 18626 18627 18628 ac_ext=c 18629ac_cpp='$CPP $CPPFLAGS' 18630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18632ac_compiler_gnu=$ac_cv_c_compiler_gnu 18633 18634fi 18635{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 18636echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 18637 if test "$llvm_cv_c_printf_a" = "yes"; then 18638 18639cat >>confdefs.h <<\_ACEOF 18640#define HAVE_PRINTF_A 1 18641_ACEOF 18642 18643 fi 18644 18645 18646 18647 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 18648echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 18649if test "${ac_cv_func_rand48+set}" = set; then 18650 echo $ECHO_N "(cached) $ECHO_C" >&6 18651else 18652 18653 ac_ext=cpp 18654ac_cpp='$CXXCPP $CPPFLAGS' 18655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18658 18659 cat >conftest.$ac_ext <<_ACEOF 18660/* confdefs.h. */ 18661_ACEOF 18662cat confdefs.h >>conftest.$ac_ext 18663cat >>conftest.$ac_ext <<_ACEOF 18664/* end confdefs.h. */ 18665#include <stdlib.h> 18666int 18667main () 18668{ 18669srand48(0);lrand48();drand48(); 18670 ; 18671 return 0; 18672} 18673_ACEOF 18674rm -f conftest.$ac_objext 18675if { (ac_try="$ac_compile" 18676case "(($ac_try" in 18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18678 *) ac_try_echo=$ac_try;; 18679esac 18680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18681 (eval "$ac_compile") 2>conftest.er1 18682 ac_status=$? 18683 grep -v '^ *+' conftest.er1 >conftest.err 18684 rm -f conftest.er1 18685 cat conftest.err >&5 18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18687 (exit $ac_status); } && 18688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18689 { (case "(($ac_try" in 18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18691 *) ac_try_echo=$ac_try;; 18692esac 18693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18694 (eval "$ac_try") 2>&5 18695 ac_status=$? 18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18697 (exit $ac_status); }; } && 18698 { ac_try='test -s conftest.$ac_objext' 18699 { (case "(($ac_try" in 18700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18701 *) ac_try_echo=$ac_try;; 18702esac 18703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18704 (eval "$ac_try") 2>&5 18705 ac_status=$? 18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18707 (exit $ac_status); }; }; then 18708 ac_cv_func_rand48=yes 18709else 18710 echo "$as_me: failed program was:" >&5 18711sed 's/^/| /' conftest.$ac_ext >&5 18712 18713 ac_cv_func_rand48=no 18714fi 18715 18716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18717 ac_ext=c 18718ac_cpp='$CPP $CPPFLAGS' 18719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18721ac_compiler_gnu=$ac_cv_c_compiler_gnu 18722 18723 18724fi 18725{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 18726echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 18727 18728if test "$ac_cv_func_rand48" = "yes" ; then 18729 18730cat >>confdefs.h <<\_ACEOF 18731#define HAVE_RAND48 1 18732_ACEOF 18733 18734fi 18735 18736 18737{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 18738echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 18739if test "${ac_cv_have_decl_strerror_s+set}" = set; then 18740 echo $ECHO_N "(cached) $ECHO_C" >&6 18741else 18742 cat >conftest.$ac_ext <<_ACEOF 18743/* confdefs.h. */ 18744_ACEOF 18745cat confdefs.h >>conftest.$ac_ext 18746cat >>conftest.$ac_ext <<_ACEOF 18747/* end confdefs.h. */ 18748$ac_includes_default 18749int 18750main () 18751{ 18752#ifndef strerror_s 18753 char *p = (char *) strerror_s; 18754 return !p; 18755#endif 18756 18757 ; 18758 return 0; 18759} 18760_ACEOF 18761rm -f conftest.$ac_objext 18762if { (ac_try="$ac_compile" 18763case "(($ac_try" in 18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18765 *) ac_try_echo=$ac_try;; 18766esac 18767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18768 (eval "$ac_compile") 2>conftest.er1 18769 ac_status=$? 18770 grep -v '^ *+' conftest.er1 >conftest.err 18771 rm -f conftest.er1 18772 cat conftest.err >&5 18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18774 (exit $ac_status); } && 18775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18776 { (case "(($ac_try" in 18777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18778 *) ac_try_echo=$ac_try;; 18779esac 18780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18781 (eval "$ac_try") 2>&5 18782 ac_status=$? 18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18784 (exit $ac_status); }; } && 18785 { ac_try='test -s conftest.$ac_objext' 18786 { (case "(($ac_try" in 18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18788 *) ac_try_echo=$ac_try;; 18789esac 18790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18791 (eval "$ac_try") 2>&5 18792 ac_status=$? 18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18794 (exit $ac_status); }; }; then 18795 ac_cv_have_decl_strerror_s=yes 18796else 18797 echo "$as_me: failed program was:" >&5 18798sed 's/^/| /' conftest.$ac_ext >&5 18799 18800 ac_cv_have_decl_strerror_s=no 18801fi 18802 18803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18804fi 18805{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 18806echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 18807if test $ac_cv_have_decl_strerror_s = yes; then 18808 18809cat >>confdefs.h <<_ACEOF 18810#define HAVE_DECL_STRERROR_S 1 18811_ACEOF 18812 18813 18814else 18815 cat >>confdefs.h <<_ACEOF 18816#define HAVE_DECL_STRERROR_S 0 18817_ACEOF 18818 18819 18820fi 18821 18822 18823 18824if test "$llvm_cv_os_type" = "MingW" ; then 18825 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 18826echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 18827if test "${ac_cv_lib_gcc__alloca+set}" = set; then 18828 echo $ECHO_N "(cached) $ECHO_C" >&6 18829else 18830 ac_check_lib_save_LIBS=$LIBS 18831LIBS="-lgcc $LIBS" 18832cat >conftest.$ac_ext <<_ACEOF 18833/* confdefs.h. */ 18834_ACEOF 18835cat confdefs.h >>conftest.$ac_ext 18836cat >>conftest.$ac_ext <<_ACEOF 18837/* end confdefs.h. */ 18838 18839/* Override any GCC internal prototype to avoid an error. 18840 Use char because int might match the return type of a GCC 18841 builtin and then its argument prototype would still apply. */ 18842#ifdef __cplusplus 18843extern "C" 18844#endif 18845char _alloca (); 18846int 18847main () 18848{ 18849return _alloca (); 18850 ; 18851 return 0; 18852} 18853_ACEOF 18854rm -f conftest.$ac_objext conftest$ac_exeext 18855if { (ac_try="$ac_link" 18856case "(($ac_try" in 18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18858 *) ac_try_echo=$ac_try;; 18859esac 18860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18861 (eval "$ac_link") 2>conftest.er1 18862 ac_status=$? 18863 grep -v '^ *+' conftest.er1 >conftest.err 18864 rm -f conftest.er1 18865 cat conftest.err >&5 18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18867 (exit $ac_status); } && 18868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18869 { (case "(($ac_try" in 18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18871 *) ac_try_echo=$ac_try;; 18872esac 18873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18874 (eval "$ac_try") 2>&5 18875 ac_status=$? 18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18877 (exit $ac_status); }; } && 18878 { ac_try='test -s conftest$ac_exeext' 18879 { (case "(($ac_try" in 18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18881 *) ac_try_echo=$ac_try;; 18882esac 18883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18884 (eval "$ac_try") 2>&5 18885 ac_status=$? 18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18887 (exit $ac_status); }; }; then 18888 ac_cv_lib_gcc__alloca=yes 18889else 18890 echo "$as_me: failed program was:" >&5 18891sed 's/^/| /' conftest.$ac_ext >&5 18892 18893 ac_cv_lib_gcc__alloca=no 18894fi 18895 18896rm -f core conftest.err conftest.$ac_objext \ 18897 conftest$ac_exeext conftest.$ac_ext 18898LIBS=$ac_check_lib_save_LIBS 18899fi 18900{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 18901echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 18902if test $ac_cv_lib_gcc__alloca = yes; then 18903 18904cat >>confdefs.h <<\_ACEOF 18905#define HAVE__ALLOCA 1 18906_ACEOF 18907 18908fi 18909 18910 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 18911echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 18912if test "${ac_cv_lib_gcc___alloca+set}" = set; then 18913 echo $ECHO_N "(cached) $ECHO_C" >&6 18914else 18915 ac_check_lib_save_LIBS=$LIBS 18916LIBS="-lgcc $LIBS" 18917cat >conftest.$ac_ext <<_ACEOF 18918/* confdefs.h. */ 18919_ACEOF 18920cat confdefs.h >>conftest.$ac_ext 18921cat >>conftest.$ac_ext <<_ACEOF 18922/* end confdefs.h. */ 18923 18924/* Override any GCC internal prototype to avoid an error. 18925 Use char because int might match the return type of a GCC 18926 builtin and then its argument prototype would still apply. */ 18927#ifdef __cplusplus 18928extern "C" 18929#endif 18930char __alloca (); 18931int 18932main () 18933{ 18934return __alloca (); 18935 ; 18936 return 0; 18937} 18938_ACEOF 18939rm -f conftest.$ac_objext conftest$ac_exeext 18940if { (ac_try="$ac_link" 18941case "(($ac_try" in 18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18943 *) ac_try_echo=$ac_try;; 18944esac 18945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18946 (eval "$ac_link") 2>conftest.er1 18947 ac_status=$? 18948 grep -v '^ *+' conftest.er1 >conftest.err 18949 rm -f conftest.er1 18950 cat conftest.err >&5 18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18952 (exit $ac_status); } && 18953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18954 { (case "(($ac_try" in 18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18956 *) ac_try_echo=$ac_try;; 18957esac 18958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18959 (eval "$ac_try") 2>&5 18960 ac_status=$? 18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18962 (exit $ac_status); }; } && 18963 { ac_try='test -s conftest$ac_exeext' 18964 { (case "(($ac_try" in 18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18966 *) ac_try_echo=$ac_try;; 18967esac 18968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18969 (eval "$ac_try") 2>&5 18970 ac_status=$? 18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18972 (exit $ac_status); }; }; then 18973 ac_cv_lib_gcc___alloca=yes 18974else 18975 echo "$as_me: failed program was:" >&5 18976sed 's/^/| /' conftest.$ac_ext >&5 18977 18978 ac_cv_lib_gcc___alloca=no 18979fi 18980 18981rm -f core conftest.err conftest.$ac_objext \ 18982 conftest$ac_exeext conftest.$ac_ext 18983LIBS=$ac_check_lib_save_LIBS 18984fi 18985{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 18986echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 18987if test $ac_cv_lib_gcc___alloca = yes; then 18988 18989cat >>confdefs.h <<\_ACEOF 18990#define HAVE___ALLOCA 1 18991_ACEOF 18992 18993fi 18994 18995 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 18996echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 18997if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 18998 echo $ECHO_N "(cached) $ECHO_C" >&6 18999else 19000 ac_check_lib_save_LIBS=$LIBS 19001LIBS="-lgcc $LIBS" 19002cat >conftest.$ac_ext <<_ACEOF 19003/* confdefs.h. */ 19004_ACEOF 19005cat confdefs.h >>conftest.$ac_ext 19006cat >>conftest.$ac_ext <<_ACEOF 19007/* end confdefs.h. */ 19008 19009/* Override any GCC internal prototype to avoid an error. 19010 Use char because int might match the return type of a GCC 19011 builtin and then its argument prototype would still apply. */ 19012#ifdef __cplusplus 19013extern "C" 19014#endif 19015char __chkstk (); 19016int 19017main () 19018{ 19019return __chkstk (); 19020 ; 19021 return 0; 19022} 19023_ACEOF 19024rm -f conftest.$ac_objext conftest$ac_exeext 19025if { (ac_try="$ac_link" 19026case "(($ac_try" in 19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19028 *) ac_try_echo=$ac_try;; 19029esac 19030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19031 (eval "$ac_link") 2>conftest.er1 19032 ac_status=$? 19033 grep -v '^ *+' conftest.er1 >conftest.err 19034 rm -f conftest.er1 19035 cat conftest.err >&5 19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19037 (exit $ac_status); } && 19038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19039 { (case "(($ac_try" in 19040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19041 *) ac_try_echo=$ac_try;; 19042esac 19043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19044 (eval "$ac_try") 2>&5 19045 ac_status=$? 19046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19047 (exit $ac_status); }; } && 19048 { ac_try='test -s conftest$ac_exeext' 19049 { (case "(($ac_try" in 19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19051 *) ac_try_echo=$ac_try;; 19052esac 19053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19054 (eval "$ac_try") 2>&5 19055 ac_status=$? 19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19057 (exit $ac_status); }; }; then 19058 ac_cv_lib_gcc___chkstk=yes 19059else 19060 echo "$as_me: failed program was:" >&5 19061sed 's/^/| /' conftest.$ac_ext >&5 19062 19063 ac_cv_lib_gcc___chkstk=no 19064fi 19065 19066rm -f core conftest.err conftest.$ac_objext \ 19067 conftest$ac_exeext conftest.$ac_ext 19068LIBS=$ac_check_lib_save_LIBS 19069fi 19070{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 19071echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 19072if test $ac_cv_lib_gcc___chkstk = yes; then 19073 19074cat >>confdefs.h <<\_ACEOF 19075#define HAVE___CHKSTK 1 19076_ACEOF 19077 19078fi 19079 19080 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 19081echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 19082if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 19083 echo $ECHO_N "(cached) $ECHO_C" >&6 19084else 19085 ac_check_lib_save_LIBS=$LIBS 19086LIBS="-lgcc $LIBS" 19087cat >conftest.$ac_ext <<_ACEOF 19088/* confdefs.h. */ 19089_ACEOF 19090cat confdefs.h >>conftest.$ac_ext 19091cat >>conftest.$ac_ext <<_ACEOF 19092/* end confdefs.h. */ 19093 19094/* Override any GCC internal prototype to avoid an error. 19095 Use char because int might match the return type of a GCC 19096 builtin and then its argument prototype would still apply. */ 19097#ifdef __cplusplus 19098extern "C" 19099#endif 19100char ___chkstk (); 19101int 19102main () 19103{ 19104return ___chkstk (); 19105 ; 19106 return 0; 19107} 19108_ACEOF 19109rm -f conftest.$ac_objext conftest$ac_exeext 19110if { (ac_try="$ac_link" 19111case "(($ac_try" in 19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19113 *) ac_try_echo=$ac_try;; 19114esac 19115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19116 (eval "$ac_link") 2>conftest.er1 19117 ac_status=$? 19118 grep -v '^ *+' conftest.er1 >conftest.err 19119 rm -f conftest.er1 19120 cat conftest.err >&5 19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19122 (exit $ac_status); } && 19123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19124 { (case "(($ac_try" in 19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19126 *) ac_try_echo=$ac_try;; 19127esac 19128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19129 (eval "$ac_try") 2>&5 19130 ac_status=$? 19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19132 (exit $ac_status); }; } && 19133 { ac_try='test -s conftest$ac_exeext' 19134 { (case "(($ac_try" in 19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19136 *) ac_try_echo=$ac_try;; 19137esac 19138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19139 (eval "$ac_try") 2>&5 19140 ac_status=$? 19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19142 (exit $ac_status); }; }; then 19143 ac_cv_lib_gcc____chkstk=yes 19144else 19145 echo "$as_me: failed program was:" >&5 19146sed 's/^/| /' conftest.$ac_ext >&5 19147 19148 ac_cv_lib_gcc____chkstk=no 19149fi 19150 19151rm -f core conftest.err conftest.$ac_objext \ 19152 conftest$ac_exeext conftest.$ac_ext 19153LIBS=$ac_check_lib_save_LIBS 19154fi 19155{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 19156echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 19157if test $ac_cv_lib_gcc____chkstk = yes; then 19158 19159cat >>confdefs.h <<\_ACEOF 19160#define HAVE____CHKSTK 1 19161_ACEOF 19162 19163fi 19164 19165 19166 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 19167echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 19168if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 19169 echo $ECHO_N "(cached) $ECHO_C" >&6 19170else 19171 ac_check_lib_save_LIBS=$LIBS 19172LIBS="-lgcc $LIBS" 19173cat >conftest.$ac_ext <<_ACEOF 19174/* confdefs.h. */ 19175_ACEOF 19176cat confdefs.h >>conftest.$ac_ext 19177cat >>conftest.$ac_ext <<_ACEOF 19178/* end confdefs.h. */ 19179 19180/* Override any GCC internal prototype to avoid an error. 19181 Use char because int might match the return type of a GCC 19182 builtin and then its argument prototype would still apply. */ 19183#ifdef __cplusplus 19184extern "C" 19185#endif 19186char __ashldi3 (); 19187int 19188main () 19189{ 19190return __ashldi3 (); 19191 ; 19192 return 0; 19193} 19194_ACEOF 19195rm -f conftest.$ac_objext conftest$ac_exeext 19196if { (ac_try="$ac_link" 19197case "(($ac_try" in 19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19199 *) ac_try_echo=$ac_try;; 19200esac 19201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19202 (eval "$ac_link") 2>conftest.er1 19203 ac_status=$? 19204 grep -v '^ *+' conftest.er1 >conftest.err 19205 rm -f conftest.er1 19206 cat conftest.err >&5 19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19208 (exit $ac_status); } && 19209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19210 { (case "(($ac_try" in 19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19212 *) ac_try_echo=$ac_try;; 19213esac 19214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19215 (eval "$ac_try") 2>&5 19216 ac_status=$? 19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19218 (exit $ac_status); }; } && 19219 { ac_try='test -s conftest$ac_exeext' 19220 { (case "(($ac_try" in 19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19222 *) ac_try_echo=$ac_try;; 19223esac 19224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19225 (eval "$ac_try") 2>&5 19226 ac_status=$? 19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19228 (exit $ac_status); }; }; then 19229 ac_cv_lib_gcc___ashldi3=yes 19230else 19231 echo "$as_me: failed program was:" >&5 19232sed 's/^/| /' conftest.$ac_ext >&5 19233 19234 ac_cv_lib_gcc___ashldi3=no 19235fi 19236 19237rm -f core conftest.err conftest.$ac_objext \ 19238 conftest$ac_exeext conftest.$ac_ext 19239LIBS=$ac_check_lib_save_LIBS 19240fi 19241{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 19242echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 19243if test $ac_cv_lib_gcc___ashldi3 = yes; then 19244 19245cat >>confdefs.h <<\_ACEOF 19246#define HAVE___ASHLDI3 1 19247_ACEOF 19248 19249fi 19250 19251 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 19252echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 19253if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 19254 echo $ECHO_N "(cached) $ECHO_C" >&6 19255else 19256 ac_check_lib_save_LIBS=$LIBS 19257LIBS="-lgcc $LIBS" 19258cat >conftest.$ac_ext <<_ACEOF 19259/* confdefs.h. */ 19260_ACEOF 19261cat confdefs.h >>conftest.$ac_ext 19262cat >>conftest.$ac_ext <<_ACEOF 19263/* end confdefs.h. */ 19264 19265/* Override any GCC internal prototype to avoid an error. 19266 Use char because int might match the return type of a GCC 19267 builtin and then its argument prototype would still apply. */ 19268#ifdef __cplusplus 19269extern "C" 19270#endif 19271char __ashrdi3 (); 19272int 19273main () 19274{ 19275return __ashrdi3 (); 19276 ; 19277 return 0; 19278} 19279_ACEOF 19280rm -f conftest.$ac_objext conftest$ac_exeext 19281if { (ac_try="$ac_link" 19282case "(($ac_try" in 19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19284 *) ac_try_echo=$ac_try;; 19285esac 19286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19287 (eval "$ac_link") 2>conftest.er1 19288 ac_status=$? 19289 grep -v '^ *+' conftest.er1 >conftest.err 19290 rm -f conftest.er1 19291 cat conftest.err >&5 19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19293 (exit $ac_status); } && 19294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19295 { (case "(($ac_try" in 19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19297 *) ac_try_echo=$ac_try;; 19298esac 19299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19300 (eval "$ac_try") 2>&5 19301 ac_status=$? 19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19303 (exit $ac_status); }; } && 19304 { ac_try='test -s conftest$ac_exeext' 19305 { (case "(($ac_try" in 19306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19307 *) ac_try_echo=$ac_try;; 19308esac 19309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19310 (eval "$ac_try") 2>&5 19311 ac_status=$? 19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19313 (exit $ac_status); }; }; then 19314 ac_cv_lib_gcc___ashrdi3=yes 19315else 19316 echo "$as_me: failed program was:" >&5 19317sed 's/^/| /' conftest.$ac_ext >&5 19318 19319 ac_cv_lib_gcc___ashrdi3=no 19320fi 19321 19322rm -f core conftest.err conftest.$ac_objext \ 19323 conftest$ac_exeext conftest.$ac_ext 19324LIBS=$ac_check_lib_save_LIBS 19325fi 19326{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 19327echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 19328if test $ac_cv_lib_gcc___ashrdi3 = yes; then 19329 19330cat >>confdefs.h <<\_ACEOF 19331#define HAVE___ASHRDI3 1 19332_ACEOF 19333 19334fi 19335 19336 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 19337echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 19338if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 19339 echo $ECHO_N "(cached) $ECHO_C" >&6 19340else 19341 ac_check_lib_save_LIBS=$LIBS 19342LIBS="-lgcc $LIBS" 19343cat >conftest.$ac_ext <<_ACEOF 19344/* confdefs.h. */ 19345_ACEOF 19346cat confdefs.h >>conftest.$ac_ext 19347cat >>conftest.$ac_ext <<_ACEOF 19348/* end confdefs.h. */ 19349 19350/* Override any GCC internal prototype to avoid an error. 19351 Use char because int might match the return type of a GCC 19352 builtin and then its argument prototype would still apply. */ 19353#ifdef __cplusplus 19354extern "C" 19355#endif 19356char __divdi3 (); 19357int 19358main () 19359{ 19360return __divdi3 (); 19361 ; 19362 return 0; 19363} 19364_ACEOF 19365rm -f conftest.$ac_objext conftest$ac_exeext 19366if { (ac_try="$ac_link" 19367case "(($ac_try" in 19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19369 *) ac_try_echo=$ac_try;; 19370esac 19371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19372 (eval "$ac_link") 2>conftest.er1 19373 ac_status=$? 19374 grep -v '^ *+' conftest.er1 >conftest.err 19375 rm -f conftest.er1 19376 cat conftest.err >&5 19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19378 (exit $ac_status); } && 19379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19380 { (case "(($ac_try" in 19381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19382 *) ac_try_echo=$ac_try;; 19383esac 19384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19385 (eval "$ac_try") 2>&5 19386 ac_status=$? 19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19388 (exit $ac_status); }; } && 19389 { ac_try='test -s conftest$ac_exeext' 19390 { (case "(($ac_try" in 19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19392 *) ac_try_echo=$ac_try;; 19393esac 19394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19395 (eval "$ac_try") 2>&5 19396 ac_status=$? 19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19398 (exit $ac_status); }; }; then 19399 ac_cv_lib_gcc___divdi3=yes 19400else 19401 echo "$as_me: failed program was:" >&5 19402sed 's/^/| /' conftest.$ac_ext >&5 19403 19404 ac_cv_lib_gcc___divdi3=no 19405fi 19406 19407rm -f core conftest.err conftest.$ac_objext \ 19408 conftest$ac_exeext conftest.$ac_ext 19409LIBS=$ac_check_lib_save_LIBS 19410fi 19411{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 19412echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 19413if test $ac_cv_lib_gcc___divdi3 = yes; then 19414 19415cat >>confdefs.h <<\_ACEOF 19416#define HAVE___DIVDI3 1 19417_ACEOF 19418 19419fi 19420 19421 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 19422echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 19423if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 19424 echo $ECHO_N "(cached) $ECHO_C" >&6 19425else 19426 ac_check_lib_save_LIBS=$LIBS 19427LIBS="-lgcc $LIBS" 19428cat >conftest.$ac_ext <<_ACEOF 19429/* confdefs.h. */ 19430_ACEOF 19431cat confdefs.h >>conftest.$ac_ext 19432cat >>conftest.$ac_ext <<_ACEOF 19433/* end confdefs.h. */ 19434 19435/* Override any GCC internal prototype to avoid an error. 19436 Use char because int might match the return type of a GCC 19437 builtin and then its argument prototype would still apply. */ 19438#ifdef __cplusplus 19439extern "C" 19440#endif 19441char __fixdfdi (); 19442int 19443main () 19444{ 19445return __fixdfdi (); 19446 ; 19447 return 0; 19448} 19449_ACEOF 19450rm -f conftest.$ac_objext conftest$ac_exeext 19451if { (ac_try="$ac_link" 19452case "(($ac_try" in 19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19454 *) ac_try_echo=$ac_try;; 19455esac 19456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19457 (eval "$ac_link") 2>conftest.er1 19458 ac_status=$? 19459 grep -v '^ *+' conftest.er1 >conftest.err 19460 rm -f conftest.er1 19461 cat conftest.err >&5 19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19463 (exit $ac_status); } && 19464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19465 { (case "(($ac_try" in 19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19467 *) ac_try_echo=$ac_try;; 19468esac 19469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19470 (eval "$ac_try") 2>&5 19471 ac_status=$? 19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19473 (exit $ac_status); }; } && 19474 { ac_try='test -s conftest$ac_exeext' 19475 { (case "(($ac_try" in 19476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19477 *) ac_try_echo=$ac_try;; 19478esac 19479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19480 (eval "$ac_try") 2>&5 19481 ac_status=$? 19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19483 (exit $ac_status); }; }; then 19484 ac_cv_lib_gcc___fixdfdi=yes 19485else 19486 echo "$as_me: failed program was:" >&5 19487sed 's/^/| /' conftest.$ac_ext >&5 19488 19489 ac_cv_lib_gcc___fixdfdi=no 19490fi 19491 19492rm -f core conftest.err conftest.$ac_objext \ 19493 conftest$ac_exeext conftest.$ac_ext 19494LIBS=$ac_check_lib_save_LIBS 19495fi 19496{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 19497echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 19498if test $ac_cv_lib_gcc___fixdfdi = yes; then 19499 19500cat >>confdefs.h <<\_ACEOF 19501#define HAVE___FIXDFDI 1 19502_ACEOF 19503 19504fi 19505 19506 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 19507echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 19508if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 19509 echo $ECHO_N "(cached) $ECHO_C" >&6 19510else 19511 ac_check_lib_save_LIBS=$LIBS 19512LIBS="-lgcc $LIBS" 19513cat >conftest.$ac_ext <<_ACEOF 19514/* confdefs.h. */ 19515_ACEOF 19516cat confdefs.h >>conftest.$ac_ext 19517cat >>conftest.$ac_ext <<_ACEOF 19518/* end confdefs.h. */ 19519 19520/* Override any GCC internal prototype to avoid an error. 19521 Use char because int might match the return type of a GCC 19522 builtin and then its argument prototype would still apply. */ 19523#ifdef __cplusplus 19524extern "C" 19525#endif 19526char __fixsfdi (); 19527int 19528main () 19529{ 19530return __fixsfdi (); 19531 ; 19532 return 0; 19533} 19534_ACEOF 19535rm -f conftest.$ac_objext conftest$ac_exeext 19536if { (ac_try="$ac_link" 19537case "(($ac_try" in 19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19539 *) ac_try_echo=$ac_try;; 19540esac 19541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19542 (eval "$ac_link") 2>conftest.er1 19543 ac_status=$? 19544 grep -v '^ *+' conftest.er1 >conftest.err 19545 rm -f conftest.er1 19546 cat conftest.err >&5 19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19548 (exit $ac_status); } && 19549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19550 { (case "(($ac_try" in 19551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19552 *) ac_try_echo=$ac_try;; 19553esac 19554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19555 (eval "$ac_try") 2>&5 19556 ac_status=$? 19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19558 (exit $ac_status); }; } && 19559 { ac_try='test -s conftest$ac_exeext' 19560 { (case "(($ac_try" in 19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19562 *) ac_try_echo=$ac_try;; 19563esac 19564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19565 (eval "$ac_try") 2>&5 19566 ac_status=$? 19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19568 (exit $ac_status); }; }; then 19569 ac_cv_lib_gcc___fixsfdi=yes 19570else 19571 echo "$as_me: failed program was:" >&5 19572sed 's/^/| /' conftest.$ac_ext >&5 19573 19574 ac_cv_lib_gcc___fixsfdi=no 19575fi 19576 19577rm -f core conftest.err conftest.$ac_objext \ 19578 conftest$ac_exeext conftest.$ac_ext 19579LIBS=$ac_check_lib_save_LIBS 19580fi 19581{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 19582echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 19583if test $ac_cv_lib_gcc___fixsfdi = yes; then 19584 19585cat >>confdefs.h <<\_ACEOF 19586#define HAVE___FIXSFDI 1 19587_ACEOF 19588 19589fi 19590 19591 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 19592echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 19593if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 19594 echo $ECHO_N "(cached) $ECHO_C" >&6 19595else 19596 ac_check_lib_save_LIBS=$LIBS 19597LIBS="-lgcc $LIBS" 19598cat >conftest.$ac_ext <<_ACEOF 19599/* confdefs.h. */ 19600_ACEOF 19601cat confdefs.h >>conftest.$ac_ext 19602cat >>conftest.$ac_ext <<_ACEOF 19603/* end confdefs.h. */ 19604 19605/* Override any GCC internal prototype to avoid an error. 19606 Use char because int might match the return type of a GCC 19607 builtin and then its argument prototype would still apply. */ 19608#ifdef __cplusplus 19609extern "C" 19610#endif 19611char __floatdidf (); 19612int 19613main () 19614{ 19615return __floatdidf (); 19616 ; 19617 return 0; 19618} 19619_ACEOF 19620rm -f conftest.$ac_objext conftest$ac_exeext 19621if { (ac_try="$ac_link" 19622case "(($ac_try" in 19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19624 *) ac_try_echo=$ac_try;; 19625esac 19626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19627 (eval "$ac_link") 2>conftest.er1 19628 ac_status=$? 19629 grep -v '^ *+' conftest.er1 >conftest.err 19630 rm -f conftest.er1 19631 cat conftest.err >&5 19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19633 (exit $ac_status); } && 19634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19635 { (case "(($ac_try" in 19636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19637 *) ac_try_echo=$ac_try;; 19638esac 19639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19640 (eval "$ac_try") 2>&5 19641 ac_status=$? 19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19643 (exit $ac_status); }; } && 19644 { ac_try='test -s conftest$ac_exeext' 19645 { (case "(($ac_try" in 19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19647 *) ac_try_echo=$ac_try;; 19648esac 19649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19650 (eval "$ac_try") 2>&5 19651 ac_status=$? 19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19653 (exit $ac_status); }; }; then 19654 ac_cv_lib_gcc___floatdidf=yes 19655else 19656 echo "$as_me: failed program was:" >&5 19657sed 's/^/| /' conftest.$ac_ext >&5 19658 19659 ac_cv_lib_gcc___floatdidf=no 19660fi 19661 19662rm -f core conftest.err conftest.$ac_objext \ 19663 conftest$ac_exeext conftest.$ac_ext 19664LIBS=$ac_check_lib_save_LIBS 19665fi 19666{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 19667echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 19668if test $ac_cv_lib_gcc___floatdidf = yes; then 19669 19670cat >>confdefs.h <<\_ACEOF 19671#define HAVE___FLOATDIDF 1 19672_ACEOF 19673 19674fi 19675 19676 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 19677echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 19678if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 19679 echo $ECHO_N "(cached) $ECHO_C" >&6 19680else 19681 ac_check_lib_save_LIBS=$LIBS 19682LIBS="-lgcc $LIBS" 19683cat >conftest.$ac_ext <<_ACEOF 19684/* confdefs.h. */ 19685_ACEOF 19686cat confdefs.h >>conftest.$ac_ext 19687cat >>conftest.$ac_ext <<_ACEOF 19688/* end confdefs.h. */ 19689 19690/* Override any GCC internal prototype to avoid an error. 19691 Use char because int might match the return type of a GCC 19692 builtin and then its argument prototype would still apply. */ 19693#ifdef __cplusplus 19694extern "C" 19695#endif 19696char __lshrdi3 (); 19697int 19698main () 19699{ 19700return __lshrdi3 (); 19701 ; 19702 return 0; 19703} 19704_ACEOF 19705rm -f conftest.$ac_objext conftest$ac_exeext 19706if { (ac_try="$ac_link" 19707case "(($ac_try" in 19708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19709 *) ac_try_echo=$ac_try;; 19710esac 19711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19712 (eval "$ac_link") 2>conftest.er1 19713 ac_status=$? 19714 grep -v '^ *+' conftest.er1 >conftest.err 19715 rm -f conftest.er1 19716 cat conftest.err >&5 19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19718 (exit $ac_status); } && 19719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19720 { (case "(($ac_try" in 19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19722 *) ac_try_echo=$ac_try;; 19723esac 19724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19725 (eval "$ac_try") 2>&5 19726 ac_status=$? 19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19728 (exit $ac_status); }; } && 19729 { ac_try='test -s conftest$ac_exeext' 19730 { (case "(($ac_try" in 19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19732 *) ac_try_echo=$ac_try;; 19733esac 19734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19735 (eval "$ac_try") 2>&5 19736 ac_status=$? 19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19738 (exit $ac_status); }; }; then 19739 ac_cv_lib_gcc___lshrdi3=yes 19740else 19741 echo "$as_me: failed program was:" >&5 19742sed 's/^/| /' conftest.$ac_ext >&5 19743 19744 ac_cv_lib_gcc___lshrdi3=no 19745fi 19746 19747rm -f core conftest.err conftest.$ac_objext \ 19748 conftest$ac_exeext conftest.$ac_ext 19749LIBS=$ac_check_lib_save_LIBS 19750fi 19751{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 19752echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 19753if test $ac_cv_lib_gcc___lshrdi3 = yes; then 19754 19755cat >>confdefs.h <<\_ACEOF 19756#define HAVE___LSHRDI3 1 19757_ACEOF 19758 19759fi 19760 19761 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 19762echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 19763if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 19764 echo $ECHO_N "(cached) $ECHO_C" >&6 19765else 19766 ac_check_lib_save_LIBS=$LIBS 19767LIBS="-lgcc $LIBS" 19768cat >conftest.$ac_ext <<_ACEOF 19769/* confdefs.h. */ 19770_ACEOF 19771cat confdefs.h >>conftest.$ac_ext 19772cat >>conftest.$ac_ext <<_ACEOF 19773/* end confdefs.h. */ 19774 19775/* Override any GCC internal prototype to avoid an error. 19776 Use char because int might match the return type of a GCC 19777 builtin and then its argument prototype would still apply. */ 19778#ifdef __cplusplus 19779extern "C" 19780#endif 19781char __moddi3 (); 19782int 19783main () 19784{ 19785return __moddi3 (); 19786 ; 19787 return 0; 19788} 19789_ACEOF 19790rm -f conftest.$ac_objext conftest$ac_exeext 19791if { (ac_try="$ac_link" 19792case "(($ac_try" in 19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19794 *) ac_try_echo=$ac_try;; 19795esac 19796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19797 (eval "$ac_link") 2>conftest.er1 19798 ac_status=$? 19799 grep -v '^ *+' conftest.er1 >conftest.err 19800 rm -f conftest.er1 19801 cat conftest.err >&5 19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19803 (exit $ac_status); } && 19804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19805 { (case "(($ac_try" in 19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19807 *) ac_try_echo=$ac_try;; 19808esac 19809eval "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); }; } && 19814 { ac_try='test -s conftest$ac_exeext' 19815 { (case "(($ac_try" in 19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19817 *) ac_try_echo=$ac_try;; 19818esac 19819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19820 (eval "$ac_try") 2>&5 19821 ac_status=$? 19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19823 (exit $ac_status); }; }; then 19824 ac_cv_lib_gcc___moddi3=yes 19825else 19826 echo "$as_me: failed program was:" >&5 19827sed 's/^/| /' conftest.$ac_ext >&5 19828 19829 ac_cv_lib_gcc___moddi3=no 19830fi 19831 19832rm -f core conftest.err conftest.$ac_objext \ 19833 conftest$ac_exeext conftest.$ac_ext 19834LIBS=$ac_check_lib_save_LIBS 19835fi 19836{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 19837echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 19838if test $ac_cv_lib_gcc___moddi3 = yes; then 19839 19840cat >>confdefs.h <<\_ACEOF 19841#define HAVE___MODDI3 1 19842_ACEOF 19843 19844fi 19845 19846 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 19847echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 19848if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 19849 echo $ECHO_N "(cached) $ECHO_C" >&6 19850else 19851 ac_check_lib_save_LIBS=$LIBS 19852LIBS="-lgcc $LIBS" 19853cat >conftest.$ac_ext <<_ACEOF 19854/* confdefs.h. */ 19855_ACEOF 19856cat confdefs.h >>conftest.$ac_ext 19857cat >>conftest.$ac_ext <<_ACEOF 19858/* end confdefs.h. */ 19859 19860/* Override any GCC internal prototype to avoid an error. 19861 Use char because int might match the return type of a GCC 19862 builtin and then its argument prototype would still apply. */ 19863#ifdef __cplusplus 19864extern "C" 19865#endif 19866char __udivdi3 (); 19867int 19868main () 19869{ 19870return __udivdi3 (); 19871 ; 19872 return 0; 19873} 19874_ACEOF 19875rm -f conftest.$ac_objext conftest$ac_exeext 19876if { (ac_try="$ac_link" 19877case "(($ac_try" in 19878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19879 *) ac_try_echo=$ac_try;; 19880esac 19881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19882 (eval "$ac_link") 2>conftest.er1 19883 ac_status=$? 19884 grep -v '^ *+' conftest.er1 >conftest.err 19885 rm -f conftest.er1 19886 cat conftest.err >&5 19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19888 (exit $ac_status); } && 19889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19890 { (case "(($ac_try" in 19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19892 *) ac_try_echo=$ac_try;; 19893esac 19894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19895 (eval "$ac_try") 2>&5 19896 ac_status=$? 19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19898 (exit $ac_status); }; } && 19899 { ac_try='test -s conftest$ac_exeext' 19900 { (case "(($ac_try" in 19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19902 *) ac_try_echo=$ac_try;; 19903esac 19904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19905 (eval "$ac_try") 2>&5 19906 ac_status=$? 19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19908 (exit $ac_status); }; }; then 19909 ac_cv_lib_gcc___udivdi3=yes 19910else 19911 echo "$as_me: failed program was:" >&5 19912sed 's/^/| /' conftest.$ac_ext >&5 19913 19914 ac_cv_lib_gcc___udivdi3=no 19915fi 19916 19917rm -f core conftest.err conftest.$ac_objext \ 19918 conftest$ac_exeext conftest.$ac_ext 19919LIBS=$ac_check_lib_save_LIBS 19920fi 19921{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 19922echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 19923if test $ac_cv_lib_gcc___udivdi3 = yes; then 19924 19925cat >>confdefs.h <<\_ACEOF 19926#define HAVE___UDIVDI3 1 19927_ACEOF 19928 19929fi 19930 19931 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 19932echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 19933if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 19934 echo $ECHO_N "(cached) $ECHO_C" >&6 19935else 19936 ac_check_lib_save_LIBS=$LIBS 19937LIBS="-lgcc $LIBS" 19938cat >conftest.$ac_ext <<_ACEOF 19939/* confdefs.h. */ 19940_ACEOF 19941cat confdefs.h >>conftest.$ac_ext 19942cat >>conftest.$ac_ext <<_ACEOF 19943/* end confdefs.h. */ 19944 19945/* Override any GCC internal prototype to avoid an error. 19946 Use char because int might match the return type of a GCC 19947 builtin and then its argument prototype would still apply. */ 19948#ifdef __cplusplus 19949extern "C" 19950#endif 19951char __umoddi3 (); 19952int 19953main () 19954{ 19955return __umoddi3 (); 19956 ; 19957 return 0; 19958} 19959_ACEOF 19960rm -f conftest.$ac_objext conftest$ac_exeext 19961if { (ac_try="$ac_link" 19962case "(($ac_try" in 19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19964 *) ac_try_echo=$ac_try;; 19965esac 19966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19967 (eval "$ac_link") 2>conftest.er1 19968 ac_status=$? 19969 grep -v '^ *+' conftest.er1 >conftest.err 19970 rm -f conftest.er1 19971 cat conftest.err >&5 19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19973 (exit $ac_status); } && 19974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19975 { (case "(($ac_try" in 19976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19977 *) ac_try_echo=$ac_try;; 19978esac 19979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19980 (eval "$ac_try") 2>&5 19981 ac_status=$? 19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19983 (exit $ac_status); }; } && 19984 { ac_try='test -s conftest$ac_exeext' 19985 { (case "(($ac_try" in 19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19987 *) ac_try_echo=$ac_try;; 19988esac 19989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19990 (eval "$ac_try") 2>&5 19991 ac_status=$? 19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19993 (exit $ac_status); }; }; then 19994 ac_cv_lib_gcc___umoddi3=yes 19995else 19996 echo "$as_me: failed program was:" >&5 19997sed 's/^/| /' conftest.$ac_ext >&5 19998 19999 ac_cv_lib_gcc___umoddi3=no 20000fi 20001 20002rm -f core conftest.err conftest.$ac_objext \ 20003 conftest$ac_exeext conftest.$ac_ext 20004LIBS=$ac_check_lib_save_LIBS 20005fi 20006{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 20007echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 20008if test $ac_cv_lib_gcc___umoddi3 = yes; then 20009 20010cat >>confdefs.h <<\_ACEOF 20011#define HAVE___UMODDI3 1 20012_ACEOF 20013 20014fi 20015 20016 20017 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 20018echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 20019if test "${ac_cv_lib_gcc___main+set}" = set; then 20020 echo $ECHO_N "(cached) $ECHO_C" >&6 20021else 20022 ac_check_lib_save_LIBS=$LIBS 20023LIBS="-lgcc $LIBS" 20024cat >conftest.$ac_ext <<_ACEOF 20025/* confdefs.h. */ 20026_ACEOF 20027cat confdefs.h >>conftest.$ac_ext 20028cat >>conftest.$ac_ext <<_ACEOF 20029/* end confdefs.h. */ 20030 20031/* Override any GCC internal prototype to avoid an error. 20032 Use char because int might match the return type of a GCC 20033 builtin and then its argument prototype would still apply. */ 20034#ifdef __cplusplus 20035extern "C" 20036#endif 20037char __main (); 20038int 20039main () 20040{ 20041return __main (); 20042 ; 20043 return 0; 20044} 20045_ACEOF 20046rm -f conftest.$ac_objext conftest$ac_exeext 20047if { (ac_try="$ac_link" 20048case "(($ac_try" in 20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20050 *) ac_try_echo=$ac_try;; 20051esac 20052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20053 (eval "$ac_link") 2>conftest.er1 20054 ac_status=$? 20055 grep -v '^ *+' conftest.er1 >conftest.err 20056 rm -f conftest.er1 20057 cat conftest.err >&5 20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20059 (exit $ac_status); } && 20060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20061 { (case "(($ac_try" in 20062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20063 *) ac_try_echo=$ac_try;; 20064esac 20065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20066 (eval "$ac_try") 2>&5 20067 ac_status=$? 20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20069 (exit $ac_status); }; } && 20070 { ac_try='test -s conftest$ac_exeext' 20071 { (case "(($ac_try" in 20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20073 *) ac_try_echo=$ac_try;; 20074esac 20075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20076 (eval "$ac_try") 2>&5 20077 ac_status=$? 20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20079 (exit $ac_status); }; }; then 20080 ac_cv_lib_gcc___main=yes 20081else 20082 echo "$as_me: failed program was:" >&5 20083sed 's/^/| /' conftest.$ac_ext >&5 20084 20085 ac_cv_lib_gcc___main=no 20086fi 20087 20088rm -f core conftest.err conftest.$ac_objext \ 20089 conftest$ac_exeext conftest.$ac_ext 20090LIBS=$ac_check_lib_save_LIBS 20091fi 20092{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 20093echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 20094if test $ac_cv_lib_gcc___main = yes; then 20095 20096cat >>confdefs.h <<\_ACEOF 20097#define HAVE___MAIN 1 20098_ACEOF 20099 20100fi 20101 20102 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 20103echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 20104if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 20105 echo $ECHO_N "(cached) $ECHO_C" >&6 20106else 20107 ac_check_lib_save_LIBS=$LIBS 20108LIBS="-lgcc $LIBS" 20109cat >conftest.$ac_ext <<_ACEOF 20110/* confdefs.h. */ 20111_ACEOF 20112cat confdefs.h >>conftest.$ac_ext 20113cat >>conftest.$ac_ext <<_ACEOF 20114/* end confdefs.h. */ 20115 20116/* Override any GCC internal prototype to avoid an error. 20117 Use char because int might match the return type of a GCC 20118 builtin and then its argument prototype would still apply. */ 20119#ifdef __cplusplus 20120extern "C" 20121#endif 20122char __cmpdi2 (); 20123int 20124main () 20125{ 20126return __cmpdi2 (); 20127 ; 20128 return 0; 20129} 20130_ACEOF 20131rm -f conftest.$ac_objext conftest$ac_exeext 20132if { (ac_try="$ac_link" 20133case "(($ac_try" in 20134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20135 *) ac_try_echo=$ac_try;; 20136esac 20137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20138 (eval "$ac_link") 2>conftest.er1 20139 ac_status=$? 20140 grep -v '^ *+' conftest.er1 >conftest.err 20141 rm -f conftest.er1 20142 cat conftest.err >&5 20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20144 (exit $ac_status); } && 20145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20146 { (case "(($ac_try" in 20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20148 *) ac_try_echo=$ac_try;; 20149esac 20150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20151 (eval "$ac_try") 2>&5 20152 ac_status=$? 20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20154 (exit $ac_status); }; } && 20155 { ac_try='test -s conftest$ac_exeext' 20156 { (case "(($ac_try" in 20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20158 *) ac_try_echo=$ac_try;; 20159esac 20160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20161 (eval "$ac_try") 2>&5 20162 ac_status=$? 20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20164 (exit $ac_status); }; }; then 20165 ac_cv_lib_gcc___cmpdi2=yes 20166else 20167 echo "$as_me: failed program was:" >&5 20168sed 's/^/| /' conftest.$ac_ext >&5 20169 20170 ac_cv_lib_gcc___cmpdi2=no 20171fi 20172 20173rm -f core conftest.err conftest.$ac_objext \ 20174 conftest$ac_exeext conftest.$ac_ext 20175LIBS=$ac_check_lib_save_LIBS 20176fi 20177{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 20178echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 20179if test $ac_cv_lib_gcc___cmpdi2 = yes; then 20180 20181cat >>confdefs.h <<\_ACEOF 20182#define HAVE___CMPDI2 1 20183_ACEOF 20184 20185fi 20186 20187fi 20188 20189if test "$llvm_cv_os_type" = "MingW" ; then 20190 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 20191echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 20192 cat >conftest.$ac_ext <<_ACEOF 20193 20194 /* confdefs.h. */ 20195_ACEOF 20196cat confdefs.h >>conftest.$ac_ext 20197cat >>conftest.$ac_ext <<_ACEOF 20198/* end confdefs.h. */ 20199 20200 #include <windows.h> 20201 #include <imagehlp.h> 20202 extern void foo(PENUMLOADED_MODULES_CALLBACK); 20203 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 20204 20205 20206_ACEOF 20207rm -f conftest.$ac_objext 20208if { (ac_try="$ac_compile" 20209case "(($ac_try" in 20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20211 *) ac_try_echo=$ac_try;; 20212esac 20213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20214 (eval "$ac_compile") 2>conftest.er1 20215 ac_status=$? 20216 grep -v '^ *+' conftest.er1 >conftest.err 20217 rm -f conftest.er1 20218 cat conftest.err >&5 20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20220 (exit $ac_status); } && 20221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20222 { (case "(($ac_try" in 20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20224 *) ac_try_echo=$ac_try;; 20225esac 20226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20227 (eval "$ac_try") 2>&5 20228 ac_status=$? 20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20230 (exit $ac_status); }; } && 20231 { ac_try='test -s conftest.$ac_objext' 20232 { (case "(($ac_try" in 20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20234 *) ac_try_echo=$ac_try;; 20235esac 20236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20237 (eval "$ac_try") 2>&5 20238 ac_status=$? 20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20240 (exit $ac_status); }; }; then 20241 20242 { echo "$as_me:$LINENO: result: yes" >&5 20243echo "${ECHO_T}yes" >&6; } 20244 llvm_cv_win32_elmcb_pcstr="PCSTR" 20245 20246else 20247 echo "$as_me: failed program was:" >&5 20248sed 's/^/| /' conftest.$ac_ext >&5 20249 20250 20251 { echo "$as_me:$LINENO: result: no" >&5 20252echo "${ECHO_T}no" >&6; } 20253 llvm_cv_win32_elmcb_pcstr="PSTR" 20254 20255fi 20256 20257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20258 20259cat >>confdefs.h <<_ACEOF 20260#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 20261_ACEOF 20262 20263fi 20264 20265 20266 20267 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 20268echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 20269if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 20270 echo $ECHO_N "(cached) $ECHO_C" >&6 20271else 20272 20273 ac_ext=cpp 20274ac_cpp='$CXXCPP $CPPFLAGS' 20275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20278 20279 cat >conftest.$ac_ext <<_ACEOF 20280/* confdefs.h. */ 20281_ACEOF 20282cat confdefs.h >>conftest.$ac_ext 20283cat >>conftest.$ac_ext <<_ACEOF 20284/* end confdefs.h. */ 20285#include <math.h> 20286int 20287main () 20288{ 20289float f; isnan(f); 20290 ; 20291 return 0; 20292} 20293_ACEOF 20294rm -f conftest.$ac_objext 20295if { (ac_try="$ac_compile" 20296case "(($ac_try" in 20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20298 *) ac_try_echo=$ac_try;; 20299esac 20300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20301 (eval "$ac_compile") 2>conftest.er1 20302 ac_status=$? 20303 grep -v '^ *+' conftest.er1 >conftest.err 20304 rm -f conftest.er1 20305 cat conftest.err >&5 20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20307 (exit $ac_status); } && 20308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20309 { (case "(($ac_try" in 20310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20311 *) ac_try_echo=$ac_try;; 20312esac 20313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20314 (eval "$ac_try") 2>&5 20315 ac_status=$? 20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20317 (exit $ac_status); }; } && 20318 { ac_try='test -s conftest.$ac_objext' 20319 { (case "(($ac_try" in 20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20321 *) ac_try_echo=$ac_try;; 20322esac 20323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20324 (eval "$ac_try") 2>&5 20325 ac_status=$? 20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20327 (exit $ac_status); }; }; then 20328 ac_cv_func_isnan_in_math_h=yes 20329else 20330 echo "$as_me: failed program was:" >&5 20331sed 's/^/| /' conftest.$ac_ext >&5 20332 20333 ac_cv_func_isnan_in_math_h=no 20334fi 20335 20336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20337 ac_ext=c 20338ac_cpp='$CPP $CPPFLAGS' 20339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20341ac_compiler_gnu=$ac_cv_c_compiler_gnu 20342 20343 20344fi 20345{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 20346echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 20347 20348 20349if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 20350 20351cat >>confdefs.h <<\_ACEOF 20352#define HAVE_ISNAN_IN_MATH_H 1 20353_ACEOF 20354 20355fi 20356 20357 20358 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 20359echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 20360if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 20361 echo $ECHO_N "(cached) $ECHO_C" >&6 20362else 20363 20364 ac_ext=cpp 20365ac_cpp='$CXXCPP $CPPFLAGS' 20366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20369 20370 cat >conftest.$ac_ext <<_ACEOF 20371/* confdefs.h. */ 20372_ACEOF 20373cat confdefs.h >>conftest.$ac_ext 20374cat >>conftest.$ac_ext <<_ACEOF 20375/* end confdefs.h. */ 20376#include <cmath> 20377int 20378main () 20379{ 20380float f; isnan(f); 20381 ; 20382 return 0; 20383} 20384_ACEOF 20385rm -f conftest.$ac_objext 20386if { (ac_try="$ac_compile" 20387case "(($ac_try" in 20388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20389 *) ac_try_echo=$ac_try;; 20390esac 20391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20392 (eval "$ac_compile") 2>conftest.er1 20393 ac_status=$? 20394 grep -v '^ *+' conftest.er1 >conftest.err 20395 rm -f conftest.er1 20396 cat conftest.err >&5 20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20398 (exit $ac_status); } && 20399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20400 { (case "(($ac_try" in 20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20402 *) ac_try_echo=$ac_try;; 20403esac 20404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20405 (eval "$ac_try") 2>&5 20406 ac_status=$? 20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20408 (exit $ac_status); }; } && 20409 { ac_try='test -s conftest.$ac_objext' 20410 { (case "(($ac_try" in 20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20412 *) ac_try_echo=$ac_try;; 20413esac 20414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20415 (eval "$ac_try") 2>&5 20416 ac_status=$? 20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20418 (exit $ac_status); }; }; then 20419 ac_cv_func_isnan_in_cmath=yes 20420else 20421 echo "$as_me: failed program was:" >&5 20422sed 's/^/| /' conftest.$ac_ext >&5 20423 20424 ac_cv_func_isnan_in_cmath=no 20425fi 20426 20427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20428 ac_ext=c 20429ac_cpp='$CPP $CPPFLAGS' 20430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20432ac_compiler_gnu=$ac_cv_c_compiler_gnu 20433 20434 20435fi 20436{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 20437echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 20438 20439if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 20440 20441cat >>confdefs.h <<\_ACEOF 20442#define HAVE_ISNAN_IN_CMATH 1 20443_ACEOF 20444 20445fi 20446 20447 20448 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 20449echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 20450if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 20451 echo $ECHO_N "(cached) $ECHO_C" >&6 20452else 20453 20454 ac_ext=cpp 20455ac_cpp='$CXXCPP $CPPFLAGS' 20456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20459 20460 cat >conftest.$ac_ext <<_ACEOF 20461/* confdefs.h. */ 20462_ACEOF 20463cat confdefs.h >>conftest.$ac_ext 20464cat >>conftest.$ac_ext <<_ACEOF 20465/* end confdefs.h. */ 20466#include <cmath> 20467int 20468main () 20469{ 20470float f; std::isnan(f); 20471 ; 20472 return 0; 20473} 20474_ACEOF 20475rm -f conftest.$ac_objext 20476if { (ac_try="$ac_compile" 20477case "(($ac_try" in 20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20479 *) ac_try_echo=$ac_try;; 20480esac 20481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20482 (eval "$ac_compile") 2>conftest.er1 20483 ac_status=$? 20484 grep -v '^ *+' conftest.er1 >conftest.err 20485 rm -f conftest.er1 20486 cat conftest.err >&5 20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20488 (exit $ac_status); } && 20489 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20490 { (case "(($ac_try" in 20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20492 *) ac_try_echo=$ac_try;; 20493esac 20494eval "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); }; } && 20499 { ac_try='test -s conftest.$ac_objext' 20500 { (case "(($ac_try" in 20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20502 *) ac_try_echo=$ac_try;; 20503esac 20504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20505 (eval "$ac_try") 2>&5 20506 ac_status=$? 20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20508 (exit $ac_status); }; }; then 20509 ac_cv_func_std_isnan_in_cmath=yes 20510else 20511 echo "$as_me: failed program was:" >&5 20512sed 's/^/| /' conftest.$ac_ext >&5 20513 20514 ac_cv_func_std_isnan_in_cmath=no 20515fi 20516 20517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20518 ac_ext=c 20519ac_cpp='$CPP $CPPFLAGS' 20520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20522ac_compiler_gnu=$ac_cv_c_compiler_gnu 20523 20524 20525fi 20526{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 20527echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 20528 20529if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 20530 20531cat >>confdefs.h <<\_ACEOF 20532#define HAVE_STD_ISNAN_IN_CMATH 1 20533_ACEOF 20534 20535fi 20536 20537 20538 20539 20540 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 20541echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 20542if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 20543 echo $ECHO_N "(cached) $ECHO_C" >&6 20544else 20545 20546 ac_ext=cpp 20547ac_cpp='$CXXCPP $CPPFLAGS' 20548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20551 20552 cat >conftest.$ac_ext <<_ACEOF 20553/* confdefs.h. */ 20554_ACEOF 20555cat confdefs.h >>conftest.$ac_ext 20556cat >>conftest.$ac_ext <<_ACEOF 20557/* end confdefs.h. */ 20558#include <math.h> 20559int 20560main () 20561{ 20562float f; isinf(f); 20563 ; 20564 return 0; 20565} 20566_ACEOF 20567rm -f conftest.$ac_objext 20568if { (ac_try="$ac_compile" 20569case "(($ac_try" in 20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20571 *) ac_try_echo=$ac_try;; 20572esac 20573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20574 (eval "$ac_compile") 2>conftest.er1 20575 ac_status=$? 20576 grep -v '^ *+' conftest.er1 >conftest.err 20577 rm -f conftest.er1 20578 cat conftest.err >&5 20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20580 (exit $ac_status); } && 20581 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20582 { (case "(($ac_try" in 20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20584 *) ac_try_echo=$ac_try;; 20585esac 20586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20587 (eval "$ac_try") 2>&5 20588 ac_status=$? 20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20590 (exit $ac_status); }; } && 20591 { ac_try='test -s conftest.$ac_objext' 20592 { (case "(($ac_try" in 20593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20594 *) ac_try_echo=$ac_try;; 20595esac 20596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20597 (eval "$ac_try") 2>&5 20598 ac_status=$? 20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20600 (exit $ac_status); }; }; then 20601 ac_cv_func_isinf_in_math_h=yes 20602else 20603 echo "$as_me: failed program was:" >&5 20604sed 's/^/| /' conftest.$ac_ext >&5 20605 20606 ac_cv_func_isinf_in_math_h=no 20607fi 20608 20609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20610 ac_ext=c 20611ac_cpp='$CPP $CPPFLAGS' 20612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20614ac_compiler_gnu=$ac_cv_c_compiler_gnu 20615 20616 20617fi 20618{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 20619echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 20620 20621if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 20622 20623cat >>confdefs.h <<\_ACEOF 20624#define HAVE_ISINF_IN_MATH_H 1 20625_ACEOF 20626 20627fi 20628 20629 20630 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 20631echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 20632if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 20633 echo $ECHO_N "(cached) $ECHO_C" >&6 20634else 20635 20636 ac_ext=cpp 20637ac_cpp='$CXXCPP $CPPFLAGS' 20638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20641 20642 cat >conftest.$ac_ext <<_ACEOF 20643/* confdefs.h. */ 20644_ACEOF 20645cat confdefs.h >>conftest.$ac_ext 20646cat >>conftest.$ac_ext <<_ACEOF 20647/* end confdefs.h. */ 20648#include <cmath> 20649int 20650main () 20651{ 20652float f; isinf(f); 20653 ; 20654 return 0; 20655} 20656_ACEOF 20657rm -f conftest.$ac_objext 20658if { (ac_try="$ac_compile" 20659case "(($ac_try" in 20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20661 *) ac_try_echo=$ac_try;; 20662esac 20663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20664 (eval "$ac_compile") 2>conftest.er1 20665 ac_status=$? 20666 grep -v '^ *+' conftest.er1 >conftest.err 20667 rm -f conftest.er1 20668 cat conftest.err >&5 20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20670 (exit $ac_status); } && 20671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20672 { (case "(($ac_try" in 20673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20674 *) ac_try_echo=$ac_try;; 20675esac 20676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20677 (eval "$ac_try") 2>&5 20678 ac_status=$? 20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20680 (exit $ac_status); }; } && 20681 { ac_try='test -s conftest.$ac_objext' 20682 { (case "(($ac_try" in 20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20684 *) ac_try_echo=$ac_try;; 20685esac 20686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20687 (eval "$ac_try") 2>&5 20688 ac_status=$? 20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20690 (exit $ac_status); }; }; then 20691 ac_cv_func_isinf_in_cmath=yes 20692else 20693 echo "$as_me: failed program was:" >&5 20694sed 's/^/| /' conftest.$ac_ext >&5 20695 20696 ac_cv_func_isinf_in_cmath=no 20697fi 20698 20699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20700 ac_ext=c 20701ac_cpp='$CPP $CPPFLAGS' 20702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20704ac_compiler_gnu=$ac_cv_c_compiler_gnu 20705 20706 20707fi 20708{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 20709echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 20710 20711if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 20712 20713cat >>confdefs.h <<\_ACEOF 20714#define HAVE_ISINF_IN_CMATH 1 20715_ACEOF 20716 20717fi 20718 20719 20720 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 20721echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 20722if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 20723 echo $ECHO_N "(cached) $ECHO_C" >&6 20724else 20725 20726 ac_ext=cpp 20727ac_cpp='$CXXCPP $CPPFLAGS' 20728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20731 20732 cat >conftest.$ac_ext <<_ACEOF 20733/* confdefs.h. */ 20734_ACEOF 20735cat confdefs.h >>conftest.$ac_ext 20736cat >>conftest.$ac_ext <<_ACEOF 20737/* end confdefs.h. */ 20738#include <cmath> 20739int 20740main () 20741{ 20742float f; std::isinf(f); 20743 ; 20744 return 0; 20745} 20746_ACEOF 20747rm -f conftest.$ac_objext 20748if { (ac_try="$ac_compile" 20749case "(($ac_try" in 20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20751 *) ac_try_echo=$ac_try;; 20752esac 20753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20754 (eval "$ac_compile") 2>conftest.er1 20755 ac_status=$? 20756 grep -v '^ *+' conftest.er1 >conftest.err 20757 rm -f conftest.er1 20758 cat conftest.err >&5 20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20760 (exit $ac_status); } && 20761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20762 { (case "(($ac_try" in 20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20764 *) ac_try_echo=$ac_try;; 20765esac 20766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20767 (eval "$ac_try") 2>&5 20768 ac_status=$? 20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20770 (exit $ac_status); }; } && 20771 { ac_try='test -s conftest.$ac_objext' 20772 { (case "(($ac_try" in 20773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20774 *) ac_try_echo=$ac_try;; 20775esac 20776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20777 (eval "$ac_try") 2>&5 20778 ac_status=$? 20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20780 (exit $ac_status); }; }; then 20781 ac_cv_func_std_isinf_in_cmath=yes 20782else 20783 echo "$as_me: failed program was:" >&5 20784sed 's/^/| /' conftest.$ac_ext >&5 20785 20786 ac_cv_func_std_isinf_in_cmath=no 20787fi 20788 20789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20790 ac_ext=c 20791ac_cpp='$CPP $CPPFLAGS' 20792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20794ac_compiler_gnu=$ac_cv_c_compiler_gnu 20795 20796 20797fi 20798{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 20799echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 20800 20801if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 20802 20803cat >>confdefs.h <<\_ACEOF 20804#define HAVE_STD_ISINF_IN_CMATH 1 20805_ACEOF 20806 20807fi 20808 20809 20810 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 20811echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 20812if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 20813 echo $ECHO_N "(cached) $ECHO_C" >&6 20814else 20815 20816 ac_ext=cpp 20817ac_cpp='$CXXCPP $CPPFLAGS' 20818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20821 20822 cat >conftest.$ac_ext <<_ACEOF 20823/* confdefs.h. */ 20824_ACEOF 20825cat confdefs.h >>conftest.$ac_ext 20826cat >>conftest.$ac_ext <<_ACEOF 20827/* end confdefs.h. */ 20828#include <ieeefp.h> 20829int 20830main () 20831{ 20832float f; finite(f); 20833 ; 20834 return 0; 20835} 20836_ACEOF 20837rm -f conftest.$ac_objext 20838if { (ac_try="$ac_compile" 20839case "(($ac_try" in 20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20841 *) ac_try_echo=$ac_try;; 20842esac 20843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20844 (eval "$ac_compile") 2>conftest.er1 20845 ac_status=$? 20846 grep -v '^ *+' conftest.er1 >conftest.err 20847 rm -f conftest.er1 20848 cat conftest.err >&5 20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20850 (exit $ac_status); } && 20851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20852 { (case "(($ac_try" in 20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20854 *) ac_try_echo=$ac_try;; 20855esac 20856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20857 (eval "$ac_try") 2>&5 20858 ac_status=$? 20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20860 (exit $ac_status); }; } && 20861 { ac_try='test -s conftest.$ac_objext' 20862 { (case "(($ac_try" in 20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20864 *) ac_try_echo=$ac_try;; 20865esac 20866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20867 (eval "$ac_try") 2>&5 20868 ac_status=$? 20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20870 (exit $ac_status); }; }; then 20871 ac_cv_func_finite_in_ieeefp_h=yes 20872else 20873 echo "$as_me: failed program was:" >&5 20874sed 's/^/| /' conftest.$ac_ext >&5 20875 20876 ac_cv_func_finite_in_ieeefp_h=no 20877fi 20878 20879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20880 ac_ext=c 20881ac_cpp='$CPP $CPPFLAGS' 20882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20884ac_compiler_gnu=$ac_cv_c_compiler_gnu 20885 20886 20887fi 20888{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 20889echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 20890 20891if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 20892 20893cat >>confdefs.h <<\_ACEOF 20894#define HAVE_FINITE_IN_IEEEFP_H 1 20895_ACEOF 20896 20897fi 20898 20899 20900 20901if test "$llvm_cv_platform_type" = "Unix" ; then 20902 20903 20904for ac_header in stdlib.h unistd.h 20905do 20906as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20908 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20911 echo $ECHO_N "(cached) $ECHO_C" >&6 20912fi 20913ac_res=`eval echo '${'$as_ac_Header'}'` 20914 { echo "$as_me:$LINENO: result: $ac_res" >&5 20915echo "${ECHO_T}$ac_res" >&6; } 20916else 20917 # Is the header compilable? 20918{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20919echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20920cat >conftest.$ac_ext <<_ACEOF 20921/* confdefs.h. */ 20922_ACEOF 20923cat confdefs.h >>conftest.$ac_ext 20924cat >>conftest.$ac_ext <<_ACEOF 20925/* end confdefs.h. */ 20926$ac_includes_default 20927#include <$ac_header> 20928_ACEOF 20929rm -f conftest.$ac_objext 20930if { (ac_try="$ac_compile" 20931case "(($ac_try" in 20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20933 *) ac_try_echo=$ac_try;; 20934esac 20935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20936 (eval "$ac_compile") 2>conftest.er1 20937 ac_status=$? 20938 grep -v '^ *+' conftest.er1 >conftest.err 20939 rm -f conftest.er1 20940 cat conftest.err >&5 20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20942 (exit $ac_status); } && 20943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20944 { (case "(($ac_try" in 20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20946 *) ac_try_echo=$ac_try;; 20947esac 20948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20949 (eval "$ac_try") 2>&5 20950 ac_status=$? 20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20952 (exit $ac_status); }; } && 20953 { ac_try='test -s conftest.$ac_objext' 20954 { (case "(($ac_try" in 20955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20956 *) ac_try_echo=$ac_try;; 20957esac 20958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20959 (eval "$ac_try") 2>&5 20960 ac_status=$? 20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20962 (exit $ac_status); }; }; then 20963 ac_header_compiler=yes 20964else 20965 echo "$as_me: failed program was:" >&5 20966sed 's/^/| /' conftest.$ac_ext >&5 20967 20968 ac_header_compiler=no 20969fi 20970 20971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20972{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20973echo "${ECHO_T}$ac_header_compiler" >&6; } 20974 20975# Is the header present? 20976{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20978cat >conftest.$ac_ext <<_ACEOF 20979/* confdefs.h. */ 20980_ACEOF 20981cat confdefs.h >>conftest.$ac_ext 20982cat >>conftest.$ac_ext <<_ACEOF 20983/* end confdefs.h. */ 20984#include <$ac_header> 20985_ACEOF 20986if { (ac_try="$ac_cpp conftest.$ac_ext" 20987case "(($ac_try" in 20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20989 *) ac_try_echo=$ac_try;; 20990esac 20991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20993 ac_status=$? 20994 grep -v '^ *+' conftest.er1 >conftest.err 20995 rm -f conftest.er1 20996 cat conftest.err >&5 20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20998 (exit $ac_status); } >/dev/null; then 20999 if test -s conftest.err; then 21000 ac_cpp_err=$ac_c_preproc_warn_flag 21001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21002 else 21003 ac_cpp_err= 21004 fi 21005else 21006 ac_cpp_err=yes 21007fi 21008if test -z "$ac_cpp_err"; then 21009 ac_header_preproc=yes 21010else 21011 echo "$as_me: failed program was:" >&5 21012sed 's/^/| /' conftest.$ac_ext >&5 21013 21014 ac_header_preproc=no 21015fi 21016 21017rm -f conftest.err conftest.$ac_ext 21018{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21019echo "${ECHO_T}$ac_header_preproc" >&6; } 21020 21021# So? What about this header? 21022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21023 yes:no: ) 21024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21025echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21027echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21028 ac_header_preproc=yes 21029 ;; 21030 no:yes:* ) 21031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21032echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21034echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21036echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21038echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21042echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21043 ( cat <<\_ASBOX 21044## ------------------------------------ ## 21045## Report this to http://llvm.org/bugs/ ## 21046## ------------------------------------ ## 21047_ASBOX 21048 ) | sed "s/^/$as_me: WARNING: /" >&2 21049 ;; 21050esac 21051{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21054 echo $ECHO_N "(cached) $ECHO_C" >&6 21055else 21056 eval "$as_ac_Header=\$ac_header_preproc" 21057fi 21058ac_res=`eval echo '${'$as_ac_Header'}'` 21059 { echo "$as_me:$LINENO: result: $ac_res" >&5 21060echo "${ECHO_T}$ac_res" >&6; } 21061 21062fi 21063if test `eval echo '${'$as_ac_Header'}'` = yes; then 21064 cat >>confdefs.h <<_ACEOF 21065#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21066_ACEOF 21067 21068fi 21069 21070done 21071 21072 21073for ac_func in getpagesize 21074do 21075as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21076{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21077echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21078if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21079 echo $ECHO_N "(cached) $ECHO_C" >&6 21080else 21081 cat >conftest.$ac_ext <<_ACEOF 21082/* confdefs.h. */ 21083_ACEOF 21084cat confdefs.h >>conftest.$ac_ext 21085cat >>conftest.$ac_ext <<_ACEOF 21086/* end confdefs.h. */ 21087/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21088 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21089#define $ac_func innocuous_$ac_func 21090 21091/* System header to define __stub macros and hopefully few prototypes, 21092 which can conflict with char $ac_func (); below. 21093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21094 <limits.h> exists even on freestanding compilers. */ 21095 21096#ifdef __STDC__ 21097# include <limits.h> 21098#else 21099# include <assert.h> 21100#endif 21101 21102#undef $ac_func 21103 21104/* Override any GCC internal prototype to avoid an error. 21105 Use char because int might match the return type of a GCC 21106 builtin and then its argument prototype would still apply. */ 21107#ifdef __cplusplus 21108extern "C" 21109#endif 21110char $ac_func (); 21111/* The GNU C library defines this for functions which it implements 21112 to always fail with ENOSYS. Some functions are actually named 21113 something starting with __ and the normal name is an alias. */ 21114#if defined __stub_$ac_func || defined __stub___$ac_func 21115choke me 21116#endif 21117 21118int 21119main () 21120{ 21121return $ac_func (); 21122 ; 21123 return 0; 21124} 21125_ACEOF 21126rm -f conftest.$ac_objext conftest$ac_exeext 21127if { (ac_try="$ac_link" 21128case "(($ac_try" in 21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21130 *) ac_try_echo=$ac_try;; 21131esac 21132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21133 (eval "$ac_link") 2>conftest.er1 21134 ac_status=$? 21135 grep -v '^ *+' conftest.er1 >conftest.err 21136 rm -f conftest.er1 21137 cat conftest.err >&5 21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21139 (exit $ac_status); } && 21140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21141 { (case "(($ac_try" in 21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21143 *) ac_try_echo=$ac_try;; 21144esac 21145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21146 (eval "$ac_try") 2>&5 21147 ac_status=$? 21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21149 (exit $ac_status); }; } && 21150 { ac_try='test -s conftest$ac_exeext' 21151 { (case "(($ac_try" in 21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21153 *) ac_try_echo=$ac_try;; 21154esac 21155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21156 (eval "$ac_try") 2>&5 21157 ac_status=$? 21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21159 (exit $ac_status); }; }; then 21160 eval "$as_ac_var=yes" 21161else 21162 echo "$as_me: failed program was:" >&5 21163sed 's/^/| /' conftest.$ac_ext >&5 21164 21165 eval "$as_ac_var=no" 21166fi 21167 21168rm -f core conftest.err conftest.$ac_objext \ 21169 conftest$ac_exeext conftest.$ac_ext 21170fi 21171ac_res=`eval echo '${'$as_ac_var'}'` 21172 { echo "$as_me:$LINENO: result: $ac_res" >&5 21173echo "${ECHO_T}$ac_res" >&6; } 21174if test `eval echo '${'$as_ac_var'}'` = yes; then 21175 cat >>confdefs.h <<_ACEOF 21176#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21177_ACEOF 21178 21179fi 21180done 21181 21182{ echo "$as_me:$LINENO: checking for working mmap" >&5 21183echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 21184if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 21185 echo $ECHO_N "(cached) $ECHO_C" >&6 21186else 21187 if test "$cross_compiling" = yes; then 21188 ac_cv_func_mmap_fixed_mapped=no 21189else 21190 cat >conftest.$ac_ext <<_ACEOF 21191/* confdefs.h. */ 21192_ACEOF 21193cat confdefs.h >>conftest.$ac_ext 21194cat >>conftest.$ac_ext <<_ACEOF 21195/* end confdefs.h. */ 21196$ac_includes_default 21197/* malloc might have been renamed as rpl_malloc. */ 21198#undef malloc 21199 21200/* Thanks to Mike Haertel and Jim Avera for this test. 21201 Here is a matrix of mmap possibilities: 21202 mmap private not fixed 21203 mmap private fixed at somewhere currently unmapped 21204 mmap private fixed at somewhere already mapped 21205 mmap shared not fixed 21206 mmap shared fixed at somewhere currently unmapped 21207 mmap shared fixed at somewhere already mapped 21208 For private mappings, we should verify that changes cannot be read() 21209 back from the file, nor mmap's back from the file at a different 21210 address. (There have been systems where private was not correctly 21211 implemented like the infamous i386 svr4.0, and systems where the 21212 VM page cache was not coherent with the file system buffer cache 21213 like early versions of FreeBSD and possibly contemporary NetBSD.) 21214 For shared mappings, we should conversely verify that changes get 21215 propagated back to all the places they're supposed to be. 21216 21217 Grep wants private fixed already mapped. 21218 The main things grep needs to know about mmap are: 21219 * does it exist and is it safe to write into the mmap'd area 21220 * how to use it (BSD variants) */ 21221 21222#include <fcntl.h> 21223#include <sys/mman.h> 21224 21225#if !STDC_HEADERS && !HAVE_STDLIB_H 21226char *malloc (); 21227#endif 21228 21229/* This mess was copied from the GNU getpagesize.h. */ 21230#if !HAVE_GETPAGESIZE 21231/* Assume that all systems that can run configure have sys/param.h. */ 21232# if !HAVE_SYS_PARAM_H 21233# define HAVE_SYS_PARAM_H 1 21234# endif 21235 21236# ifdef _SC_PAGESIZE 21237# define getpagesize() sysconf(_SC_PAGESIZE) 21238# else /* no _SC_PAGESIZE */ 21239# if HAVE_SYS_PARAM_H 21240# include <sys/param.h> 21241# ifdef EXEC_PAGESIZE 21242# define getpagesize() EXEC_PAGESIZE 21243# else /* no EXEC_PAGESIZE */ 21244# ifdef NBPG 21245# define getpagesize() NBPG * CLSIZE 21246# ifndef CLSIZE 21247# define CLSIZE 1 21248# endif /* no CLSIZE */ 21249# else /* no NBPG */ 21250# ifdef NBPC 21251# define getpagesize() NBPC 21252# else /* no NBPC */ 21253# ifdef PAGESIZE 21254# define getpagesize() PAGESIZE 21255# endif /* PAGESIZE */ 21256# endif /* no NBPC */ 21257# endif /* no NBPG */ 21258# endif /* no EXEC_PAGESIZE */ 21259# else /* no HAVE_SYS_PARAM_H */ 21260# define getpagesize() 8192 /* punt totally */ 21261# endif /* no HAVE_SYS_PARAM_H */ 21262# endif /* no _SC_PAGESIZE */ 21263 21264#endif /* no HAVE_GETPAGESIZE */ 21265 21266int 21267main () 21268{ 21269 char *data, *data2, *data3; 21270 int i, pagesize; 21271 int fd; 21272 21273 pagesize = getpagesize (); 21274 21275 /* First, make a file with some known garbage in it. */ 21276 data = (char *) malloc (pagesize); 21277 if (!data) 21278 return 1; 21279 for (i = 0; i < pagesize; ++i) 21280 *(data + i) = rand (); 21281 umask (0); 21282 fd = creat ("conftest.mmap", 0600); 21283 if (fd < 0) 21284 return 1; 21285 if (write (fd, data, pagesize) != pagesize) 21286 return 1; 21287 close (fd); 21288 21289 /* Next, try to mmap the file at a fixed address which already has 21290 something else allocated at it. If we can, also make sure that 21291 we see the same garbage. */ 21292 fd = open ("conftest.mmap", O_RDWR); 21293 if (fd < 0) 21294 return 1; 21295 data2 = (char *) malloc (2 * pagesize); 21296 if (!data2) 21297 return 1; 21298 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 21299 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21300 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21301 return 1; 21302 for (i = 0; i < pagesize; ++i) 21303 if (*(data + i) != *(data2 + i)) 21304 return 1; 21305 21306 /* Finally, make sure that changes to the mapped area do not 21307 percolate back to the file as seen by read(). (This is a bug on 21308 some variants of i386 svr4.0.) */ 21309 for (i = 0; i < pagesize; ++i) 21310 *(data2 + i) = *(data2 + i) + 1; 21311 data3 = (char *) malloc (pagesize); 21312 if (!data3) 21313 return 1; 21314 if (read (fd, data3, pagesize) != pagesize) 21315 return 1; 21316 for (i = 0; i < pagesize; ++i) 21317 if (*(data + i) != *(data3 + i)) 21318 return 1; 21319 close (fd); 21320 return 0; 21321} 21322_ACEOF 21323rm -f conftest$ac_exeext 21324if { (ac_try="$ac_link" 21325case "(($ac_try" in 21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21327 *) ac_try_echo=$ac_try;; 21328esac 21329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21330 (eval "$ac_link") 2>&5 21331 ac_status=$? 21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21334 { (case "(($ac_try" in 21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21336 *) ac_try_echo=$ac_try;; 21337esac 21338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21339 (eval "$ac_try") 2>&5 21340 ac_status=$? 21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21342 (exit $ac_status); }; }; then 21343 ac_cv_func_mmap_fixed_mapped=yes 21344else 21345 echo "$as_me: program exited with status $ac_status" >&5 21346echo "$as_me: failed program was:" >&5 21347sed 's/^/| /' conftest.$ac_ext >&5 21348 21349( exit $ac_status ) 21350ac_cv_func_mmap_fixed_mapped=no 21351fi 21352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21353fi 21354 21355 21356fi 21357{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 21358echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 21359if test $ac_cv_func_mmap_fixed_mapped = yes; then 21360 21361cat >>confdefs.h <<\_ACEOF 21362#define HAVE_MMAP 1 21363_ACEOF 21364 21365fi 21366rm -f conftest.mmap 21367 21368 { echo "$as_me:$LINENO: checking for mmap of files" >&5 21369echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 21370if test "${ac_cv_func_mmap_file+set}" = set; then 21371 echo $ECHO_N "(cached) $ECHO_C" >&6 21372else 21373 ac_ext=c 21374ac_cpp='$CPP $CPPFLAGS' 21375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21377ac_compiler_gnu=$ac_cv_c_compiler_gnu 21378 21379 if test "$cross_compiling" = yes; then 21380 ac_cv_func_mmap_file=no 21381else 21382 cat >conftest.$ac_ext <<_ACEOF 21383 21384 /* confdefs.h. */ 21385_ACEOF 21386cat confdefs.h >>conftest.$ac_ext 21387cat >>conftest.$ac_ext <<_ACEOF 21388/* end confdefs.h. */ 21389 21390#include <sys/types.h> 21391#include <sys/mman.h> 21392#include <fcntl.h> 21393 21394int 21395main () 21396{ 21397 21398 int fd; 21399 fd = creat ("foo",0777); 21400 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 21401 unlink ("foo"); 21402 return (fd != (int) MAP_FAILED); 21403 ; 21404 return 0; 21405} 21406_ACEOF 21407rm -f conftest$ac_exeext 21408if { (ac_try="$ac_link" 21409case "(($ac_try" in 21410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21411 *) ac_try_echo=$ac_try;; 21412esac 21413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21414 (eval "$ac_link") 2>&5 21415 ac_status=$? 21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21418 { (case "(($ac_try" in 21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21420 *) ac_try_echo=$ac_try;; 21421esac 21422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21423 (eval "$ac_try") 2>&5 21424 ac_status=$? 21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21426 (exit $ac_status); }; }; then 21427 ac_cv_func_mmap_file=yes 21428else 21429 echo "$as_me: program exited with status $ac_status" >&5 21430echo "$as_me: failed program was:" >&5 21431sed 's/^/| /' conftest.$ac_ext >&5 21432 21433( exit $ac_status ) 21434ac_cv_func_mmap_file=no 21435fi 21436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21437fi 21438 21439 21440 ac_ext=c 21441ac_cpp='$CPP $CPPFLAGS' 21442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21444ac_compiler_gnu=$ac_cv_c_compiler_gnu 21445 21446 21447fi 21448{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 21449echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 21450if test "$ac_cv_func_mmap_file" = yes; then 21451 21452cat >>confdefs.h <<\_ACEOF 21453#define HAVE_MMAP_FILE 21454_ACEOF 21455 21456 MMAP_FILE=yes 21457 21458fi 21459 21460 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 21461echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 21462if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 21463 echo $ECHO_N "(cached) $ECHO_C" >&6 21464else 21465 if test "$llvm_cv_os_type" = "Interix" ; then 21466 ac_cv_need_dev_zero_for_mmap=yes 21467 else 21468 ac_cv_need_dev_zero_for_mmap=no 21469 fi 21470 21471fi 21472{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 21473echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 21474if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 21475 21476cat >>confdefs.h <<\_ACEOF 21477#define NEED_DEV_ZERO_FOR_MMAP 1 21478_ACEOF 21479 21480fi 21481 21482 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 21483 then 21484 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 21485echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 21486 fi 21487 if test "$ac_cv_func_mmap_file" = "no" 21488 then 21489 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 21490echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 21491 fi 21492fi 21493 21494{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 21495echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 21496ac_ext=cpp 21497ac_cpp='$CXXCPP $CPPFLAGS' 21498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21501 21502cat >conftest.$ac_ext <<_ACEOF 21503 21504 /* confdefs.h. */ 21505_ACEOF 21506cat confdefs.h >>conftest.$ac_ext 21507cat >>conftest.$ac_ext <<_ACEOF 21508/* end confdefs.h. */ 21509 21510 int main() { 21511 volatile unsigned long val = 1; 21512 __sync_synchronize(); 21513 __sync_val_compare_and_swap(&val, 1, 0); 21514 __sync_add_and_fetch(&val, 1); 21515 __sync_sub_and_fetch(&val, 1); 21516 return 0; 21517 } 21518 21519 21520_ACEOF 21521rm -f conftest.$ac_objext conftest$ac_exeext 21522if { (ac_try="$ac_link" 21523case "(($ac_try" in 21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21525 *) ac_try_echo=$ac_try;; 21526esac 21527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21528 (eval "$ac_link") 2>conftest.er1 21529 ac_status=$? 21530 grep -v '^ *+' conftest.er1 >conftest.err 21531 rm -f conftest.er1 21532 cat conftest.err >&5 21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21534 (exit $ac_status); } && 21535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21536 { (case "(($ac_try" in 21537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21538 *) ac_try_echo=$ac_try;; 21539esac 21540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21541 (eval "$ac_try") 2>&5 21542 ac_status=$? 21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21544 (exit $ac_status); }; } && 21545 { ac_try='test -s conftest$ac_exeext' 21546 { (case "(($ac_try" in 21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21548 *) ac_try_echo=$ac_try;; 21549esac 21550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21551 (eval "$ac_try") 2>&5 21552 ac_status=$? 21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21554 (exit $ac_status); }; }; then 21555 21556 { echo "$as_me:$LINENO: result: yes" >&5 21557echo "${ECHO_T}yes" >&6; } 21558 21559cat >>confdefs.h <<\_ACEOF 21560#define LLVM_HAS_ATOMICS 1 21561_ACEOF 21562 21563 21564else 21565 echo "$as_me: failed program was:" >&5 21566sed 's/^/| /' conftest.$ac_ext >&5 21567 21568 21569 { echo "$as_me:$LINENO: result: no" >&5 21570echo "${ECHO_T}no" >&6; } 21571 21572cat >>confdefs.h <<\_ACEOF 21573#define LLVM_HAS_ATOMICS 0 21574_ACEOF 21575 21576 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 21577echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 21578 21579fi 21580 21581rm -f core conftest.err conftest.$ac_objext \ 21582 conftest$ac_exeext conftest.$ac_ext 21583ac_ext=c 21584ac_cpp='$CPP $CPPFLAGS' 21585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21587ac_compiler_gnu=$ac_cv_c_compiler_gnu 21588 21589 21590 21591if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 21592 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 21593echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 21594if test "${llvm_cv_linux_mixed+set}" = set; then 21595 echo $ECHO_N "(cached) $ECHO_C" >&6 21596else 21597 ac_ext=c 21598ac_cpp='$CPP $CPPFLAGS' 21599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21601ac_compiler_gnu=$ac_cv_c_compiler_gnu 21602 21603 cat >conftest.$ac_ext <<_ACEOF 21604/* confdefs.h. */ 21605_ACEOF 21606cat confdefs.h >>conftest.$ac_ext 21607cat >>conftest.$ac_ext <<_ACEOF 21608/* end confdefs.h. */ 21609#ifndef __x86_64__ 21610 error: Not x86-64 even if uname says so! 21611 #endif 21612 21613int 21614main () 21615{ 21616 21617 ; 21618 return 0; 21619} 21620_ACEOF 21621rm -f conftest.$ac_objext 21622if { (ac_try="$ac_compile" 21623case "(($ac_try" in 21624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21625 *) ac_try_echo=$ac_try;; 21626esac 21627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21628 (eval "$ac_compile") 2>conftest.er1 21629 ac_status=$? 21630 grep -v '^ *+' conftest.er1 >conftest.err 21631 rm -f conftest.er1 21632 cat conftest.err >&5 21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21634 (exit $ac_status); } && 21635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21636 { (case "(($ac_try" in 21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21638 *) ac_try_echo=$ac_try;; 21639esac 21640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21641 (eval "$ac_try") 2>&5 21642 ac_status=$? 21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21644 (exit $ac_status); }; } && 21645 { ac_try='test -s conftest.$ac_objext' 21646 { (case "(($ac_try" in 21647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21648 *) ac_try_echo=$ac_try;; 21649esac 21650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21651 (eval "$ac_try") 2>&5 21652 ac_status=$? 21653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21654 (exit $ac_status); }; }; then 21655 llvm_cv_linux_mixed=no 21656else 21657 echo "$as_me: failed program was:" >&5 21658sed 's/^/| /' conftest.$ac_ext >&5 21659 21660 llvm_cv_linux_mixed=yes 21661fi 21662 21663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21664 ac_ext=c 21665ac_cpp='$CPP $CPPFLAGS' 21666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21668ac_compiler_gnu=$ac_cv_c_compiler_gnu 21669 21670 21671fi 21672{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 21673echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 21674 21675 if test "$llvm_cv_linux_mixed" = "yes"; then 21676 llvm_cv_target_arch="x86" 21677 ARCH="x86" 21678 fi 21679fi 21680 21681 21682for ac_func in __dso_handle 21683do 21684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21685{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21688 echo $ECHO_N "(cached) $ECHO_C" >&6 21689else 21690 cat >conftest.$ac_ext <<_ACEOF 21691/* confdefs.h. */ 21692_ACEOF 21693cat confdefs.h >>conftest.$ac_ext 21694cat >>conftest.$ac_ext <<_ACEOF 21695/* end confdefs.h. */ 21696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21697 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21698#define $ac_func innocuous_$ac_func 21699 21700/* System header to define __stub macros and hopefully few prototypes, 21701 which can conflict with char $ac_func (); below. 21702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21703 <limits.h> exists even on freestanding compilers. */ 21704 21705#ifdef __STDC__ 21706# include <limits.h> 21707#else 21708# include <assert.h> 21709#endif 21710 21711#undef $ac_func 21712 21713/* Override any GCC internal prototype to avoid an error. 21714 Use char because int might match the return type of a GCC 21715 builtin and then its argument prototype would still apply. */ 21716#ifdef __cplusplus 21717extern "C" 21718#endif 21719char $ac_func (); 21720/* The GNU C library defines this for functions which it implements 21721 to always fail with ENOSYS. Some functions are actually named 21722 something starting with __ and the normal name is an alias. */ 21723#if defined __stub_$ac_func || defined __stub___$ac_func 21724choke me 21725#endif 21726 21727int 21728main () 21729{ 21730return $ac_func (); 21731 ; 21732 return 0; 21733} 21734_ACEOF 21735rm -f conftest.$ac_objext conftest$ac_exeext 21736if { (ac_try="$ac_link" 21737case "(($ac_try" in 21738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21739 *) ac_try_echo=$ac_try;; 21740esac 21741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21742 (eval "$ac_link") 2>conftest.er1 21743 ac_status=$? 21744 grep -v '^ *+' conftest.er1 >conftest.err 21745 rm -f conftest.er1 21746 cat conftest.err >&5 21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21748 (exit $ac_status); } && 21749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21750 { (case "(($ac_try" in 21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21752 *) ac_try_echo=$ac_try;; 21753esac 21754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21755 (eval "$ac_try") 2>&5 21756 ac_status=$? 21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21758 (exit $ac_status); }; } && 21759 { ac_try='test -s conftest$ac_exeext' 21760 { (case "(($ac_try" in 21761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21762 *) ac_try_echo=$ac_try;; 21763esac 21764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21765 (eval "$ac_try") 2>&5 21766 ac_status=$? 21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21768 (exit $ac_status); }; }; then 21769 eval "$as_ac_var=yes" 21770else 21771 echo "$as_me: failed program was:" >&5 21772sed 's/^/| /' conftest.$ac_ext >&5 21773 21774 eval "$as_ac_var=no" 21775fi 21776 21777rm -f core conftest.err conftest.$ac_objext \ 21778 conftest$ac_exeext conftest.$ac_ext 21779fi 21780ac_res=`eval echo '${'$as_ac_var'}'` 21781 { echo "$as_me:$LINENO: result: $ac_res" >&5 21782echo "${ECHO_T}$ac_res" >&6; } 21783if test `eval echo '${'$as_ac_var'}'` = yes; then 21784 cat >>confdefs.h <<_ACEOF 21785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21786_ACEOF 21787 21788fi 21789done 21790 21791 21792SHLIBEXT=$libltdl_cv_shlibext 21793 21794 21795SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 21796 21797 21798if test "${prefix}" = "NONE" ; then 21799 prefix="/usr/local" 21800fi 21801eval LLVM_PREFIX="${prefix}"; 21802eval LLVM_BINDIR="${prefix}/bin"; 21803eval LLVM_DATADIR="${prefix}/share/llvm"; 21804eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 21805eval LLVM_ETCDIR="${prefix}/etc/llvm"; 21806eval LLVM_INCLUDEDIR="${prefix}/include"; 21807eval LLVM_INFODIR="${prefix}/info"; 21808eval LLVM_MANDIR="${prefix}/man"; 21809LLVM_CONFIGTIME=`date` 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820if test "${ENABLE_TIMESTAMPS}" = "0"; then 21821 LLVM_CONFIGTIME="(timestamp not enabled)" 21822fi 21823 21824 21825cat >>confdefs.h <<_ACEOF 21826#define LLVM_PREFIX "$LLVM_PREFIX" 21827_ACEOF 21828 21829 21830cat >>confdefs.h <<_ACEOF 21831#define LLVM_BINDIR "$LLVM_BINDIR" 21832_ACEOF 21833 21834 21835cat >>confdefs.h <<_ACEOF 21836#define LLVM_DATADIR "$LLVM_DATADIR" 21837_ACEOF 21838 21839 21840cat >>confdefs.h <<_ACEOF 21841#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 21842_ACEOF 21843 21844 21845cat >>confdefs.h <<_ACEOF 21846#define LLVM_ETCDIR "$LLVM_ETCDIR" 21847_ACEOF 21848 21849 21850cat >>confdefs.h <<_ACEOF 21851#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 21852_ACEOF 21853 21854 21855cat >>confdefs.h <<_ACEOF 21856#define LLVM_INFODIR "$LLVM_INFODIR" 21857_ACEOF 21858 21859 21860cat >>confdefs.h <<_ACEOF 21861#define LLVM_MANDIR "$LLVM_MANDIR" 21862_ACEOF 21863 21864 21865cat >>confdefs.h <<_ACEOF 21866#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 21867_ACEOF 21868 21869 21870cat >>confdefs.h <<_ACEOF 21871#define LLVM_HOST_TRIPLE "$host" 21872_ACEOF 21873 21874 21875cat >>confdefs.h <<_ACEOF 21876#define LLVM_DEFAULT_TARGET_TRIPLE "$target" 21877_ACEOF 21878 21879 21880if test "$BINDINGS_TO_BUILD" = auto ; then 21881 BINDINGS_TO_BUILD="" 21882 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 21883 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 21884 fi 21885fi 21886BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 21887 21888 21889ALL_BINDINGS=ocaml 21890 21891 21892binding_prereqs_failed=0 21893for a_binding in $BINDINGS_TO_BUILD ; do 21894 case "$a_binding" in 21895 ocaml) 21896 if test "x$OCAMLC" = x ; then 21897 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 21898echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 21899 binding_prereqs_failed=1 21900 fi 21901 if test "x$OCAMLDEP" = x ; then 21902 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 21903echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 21904 binding_prereqs_failed=1 21905 fi 21906 if test "x$OCAMLOPT" = x ; then 21907 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 21908echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 21909 fi 21910 if test "x$with_ocaml_libdir" != xauto ; then 21911 OCAML_LIBDIR=$with_ocaml_libdir 21912 21913 else 21914 ocaml_stdlib="`"$OCAMLC" -where`" 21915 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 21916 then 21917 # ocaml stdlib is beneath our prefix; use stdlib 21918 OCAML_LIBDIR=$ocaml_stdlib 21919 21920 else 21921 # ocaml stdlib is outside our prefix; use libdir/ocaml 21922 OCAML_LIBDIR=${prefix}/lib/ocaml 21923 21924 fi 21925 fi 21926 ;; 21927 esac 21928done 21929if test "$binding_prereqs_failed" = 1 ; then 21930 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 21931echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 21932 { (exit 1); exit 1; }; } 21933fi 21934 21935{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 21936echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 21937if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 21938 echo $ECHO_N "(cached) $ECHO_C" >&6 21939else 21940 ac_ext=cpp 21941ac_cpp='$CXXCPP $CPPFLAGS' 21942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21945 21946 oldcxxflags="$CXXFLAGS" 21947 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 21948 cat >conftest.$ac_ext <<_ACEOF 21949/* confdefs.h. */ 21950_ACEOF 21951cat confdefs.h >>conftest.$ac_ext 21952cat >>conftest.$ac_ext <<_ACEOF 21953/* end confdefs.h. */ 21954template <typename T> struct X { void __attribute__((noinline)) f() {} }; 21955int 21956main () 21957{ 21958X<int>().f(); 21959 ; 21960 return 0; 21961} 21962_ACEOF 21963rm -f conftest.$ac_objext 21964if { (ac_try="$ac_compile" 21965case "(($ac_try" in 21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21967 *) ac_try_echo=$ac_try;; 21968esac 21969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21970 (eval "$ac_compile") 2>conftest.er1 21971 ac_status=$? 21972 grep -v '^ *+' conftest.er1 >conftest.err 21973 rm -f conftest.er1 21974 cat conftest.err >&5 21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21976 (exit $ac_status); } && 21977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21978 { (case "(($ac_try" in 21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21980 *) ac_try_echo=$ac_try;; 21981esac 21982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21983 (eval "$ac_try") 2>&5 21984 ac_status=$? 21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21986 (exit $ac_status); }; } && 21987 { ac_try='test -s conftest.$ac_objext' 21988 { (case "(($ac_try" in 21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21990 *) ac_try_echo=$ac_try;; 21991esac 21992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21993 (eval "$ac_try") 2>&5 21994 ac_status=$? 21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21996 (exit $ac_status); }; }; then 21997 llvm_cv_cxx_visibility_inlines_hidden=yes 21998else 21999 echo "$as_me: failed program was:" >&5 22000sed 's/^/| /' conftest.$ac_ext >&5 22001 22002 llvm_cv_cxx_visibility_inlines_hidden=no 22003fi 22004 22005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22006 CXXFLAGS="$oldcxxflags" 22007 ac_ext=c 22008ac_cpp='$CPP $CPPFLAGS' 22009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22011ac_compiler_gnu=$ac_cv_c_compiler_gnu 22012 22013 22014fi 22015{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 22016echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 22017if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 22018 ENABLE_VISIBILITY_INLINES_HIDDEN=1 22019 22020else 22021 ENABLE_VISIBILITY_INLINES_HIDDEN=0 22022 22023fi 22024 22025 22026if test "$llvm_cv_link_use_r" = "yes" ; then 22027 RPATH="-Wl,-R" 22028else 22029 RPATH="-Wl,-rpath" 22030fi 22031 22032 22033if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 22034 RDYNAMIC="-Wl,-export-dynamic" 22035else 22036 RDYNAMIC="" 22037fi 22038 22039 22040 22041ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 22042 22043 22044 22045 22046 22047 22048ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 22049 22050ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 22051 22052ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 22053 22054ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 22055 22056ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 22057 22058 22059ac_config_files="$ac_config_files Makefile.config" 22060 22061 22062ac_config_files="$ac_config_files llvm.spec" 22063 22064 22065ac_config_files="$ac_config_files docs/doxygen.cfg" 22066 22067 22068if test "${clang_src_root}" = ""; then 22069 clang_src_root="$srcdir/tools/clang" 22070fi 22071if test -f ${clang_src_root}/README.txt; then 22072 configh="include/clang/Config/config.h" 22073 doxy="docs/doxygen.cfg" 22074 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" 22075 22076 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" 22077 22078fi 22079 22080ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" 22081 22082 22083test "x$program_prefix" = "xNONE" && program_prefix="" 22084 22085 22086 22087ac_config_commands="$ac_config_commands setup" 22088 22089ac_config_commands="$ac_config_commands Makefile" 22090 22091 22092ac_config_commands="$ac_config_commands Makefile.common" 22093 22094 22095ac_config_commands="$ac_config_commands examples/Makefile" 22096 22097 22098ac_config_commands="$ac_config_commands lib/Makefile" 22099 22100 22101ac_config_commands="$ac_config_commands runtime/Makefile" 22102 22103 22104ac_config_commands="$ac_config_commands test/Makefile" 22105 22106 22107ac_config_commands="$ac_config_commands test/Makefile.tests" 22108 22109 22110ac_config_commands="$ac_config_commands unittests/Makefile" 22111 22112 22113ac_config_commands="$ac_config_commands tools/Makefile" 22114 22115 22116ac_config_commands="$ac_config_commands utils/Makefile" 22117 22118 22119ac_config_commands="$ac_config_commands projects/Makefile" 22120 22121 22122ac_config_commands="$ac_config_commands bindings/Makefile" 22123 22124 22125ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 22126 22127 22128 22129cat >confcache <<\_ACEOF 22130# This file is a shell script that caches the results of configure 22131# tests run on this system so they can be shared between configure 22132# scripts and configure runs, see configure's option --config-cache. 22133# It is not useful on other systems. If it contains results you don't 22134# want to keep, you may remove or edit it. 22135# 22136# config.status only pays attention to the cache file if you give it 22137# the --recheck option to rerun configure. 22138# 22139# `ac_cv_env_foo' variables (set or unset) will be overridden when 22140# loading this file, other *unset* `ac_cv_foo' will be assigned the 22141# following values. 22142 22143_ACEOF 22144 22145# The following way of writing the cache mishandles newlines in values, 22146# but we know of no workaround that is simple, portable, and efficient. 22147# So, we kill variables containing newlines. 22148# Ultrix sh set writes to stderr and can't be redirected directly, 22149# and sets the high bit in the cache file unless we assign to the vars. 22150( 22151 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22152 eval ac_val=\$$ac_var 22153 case $ac_val in #( 22154 *${as_nl}*) 22155 case $ac_var in #( 22156 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22157echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22158 esac 22159 case $ac_var in #( 22160 _ | IFS | as_nl) ;; #( 22161 *) $as_unset $ac_var ;; 22162 esac ;; 22163 esac 22164 done 22165 22166 (set) 2>&1 | 22167 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22168 *${as_nl}ac_space=\ *) 22169 # `set' does not quote correctly, so add quotes (double-quote 22170 # substitution turns \\\\ into \\, and sed turns \\ into \). 22171 sed -n \ 22172 "s/'/'\\\\''/g; 22173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22174 ;; #( 22175 *) 22176 # `set' quotes correctly as required by POSIX, so do not add quotes. 22177 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22178 ;; 22179 esac | 22180 sort 22181) | 22182 sed ' 22183 /^ac_cv_env_/b end 22184 t clear 22185 :clear 22186 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22187 t end 22188 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22189 :end' >>confcache 22190if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22191 if test -w "$cache_file"; then 22192 test "x$cache_file" != "x/dev/null" && 22193 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22194echo "$as_me: updating cache $cache_file" >&6;} 22195 cat confcache >$cache_file 22196 else 22197 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22198echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22199 fi 22200fi 22201rm -f confcache 22202 22203test "x$prefix" = xNONE && prefix=$ac_default_prefix 22204# Let make expand exec_prefix. 22205test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22206 22207DEFS=-DHAVE_CONFIG_H 22208 22209ac_libobjs= 22210ac_ltlibobjs= 22211for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22212 # 1. Remove the extension, and $U if already installed. 22213 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22214 ac_i=`echo "$ac_i" | sed "$ac_script"` 22215 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22216 # will be set to the directory where LIBOBJS objects are built. 22217 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22218 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22219done 22220LIBOBJS=$ac_libobjs 22221 22222LTLIBOBJS=$ac_ltlibobjs 22223 22224 22225if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 22226 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 22227Usually this means the macro was only invoked conditionally." >&5 22228echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 22229Usually this means the macro was only invoked conditionally." >&2;} 22230 { (exit 1); exit 1; }; } 22231fi 22232if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 22233 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 22234Usually this means the macro was only invoked conditionally." >&5 22235echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 22236Usually this means the macro was only invoked conditionally." >&2;} 22237 { (exit 1); exit 1; }; } 22238fi 22239 22240: ${CONFIG_STATUS=./config.status} 22241ac_clean_files_save=$ac_clean_files 22242ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22243{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22244echo "$as_me: creating $CONFIG_STATUS" >&6;} 22245cat >$CONFIG_STATUS <<_ACEOF 22246#! $SHELL 22247# Generated by $as_me. 22248# Run this file to recreate the current configuration. 22249# Compiler output produced by configure, useful for debugging 22250# configure, is in config.log if it exists. 22251 22252debug=false 22253ac_cs_recheck=false 22254ac_cs_silent=false 22255SHELL=\${CONFIG_SHELL-$SHELL} 22256_ACEOF 22257 22258cat >>$CONFIG_STATUS <<\_ACEOF 22259## --------------------- ## 22260## M4sh Initialization. ## 22261## --------------------- ## 22262 22263# Be Bourne compatible 22264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22265 emulate sh 22266 NULLCMD=: 22267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22268 # is contrary to our usage. Disable this feature. 22269 alias -g '${1+"$@"}'='"$@"' 22270 setopt NO_GLOB_SUBST 22271else 22272 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 22273fi 22274BIN_SH=xpg4; export BIN_SH # for Tru64 22275DUALCASE=1; export DUALCASE # for MKS sh 22276 22277 22278# PATH needs CR 22279# Avoid depending upon Character Ranges. 22280as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22281as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22282as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22283as_cr_digits='0123456789' 22284as_cr_alnum=$as_cr_Letters$as_cr_digits 22285 22286# The user is always right. 22287if test "${PATH_SEPARATOR+set}" != set; then 22288 echo "#! /bin/sh" >conf$$.sh 22289 echo "exit 0" >>conf$$.sh 22290 chmod +x conf$$.sh 22291 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22292 PATH_SEPARATOR=';' 22293 else 22294 PATH_SEPARATOR=: 22295 fi 22296 rm -f conf$$.sh 22297fi 22298 22299# Support unset when possible. 22300if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22301 as_unset=unset 22302else 22303 as_unset=false 22304fi 22305 22306 22307# IFS 22308# We need space, tab and new line, in precisely that order. Quoting is 22309# there to prevent editors from complaining about space-tab. 22310# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22311# splitting by setting IFS to empty value.) 22312as_nl=' 22313' 22314IFS=" "" $as_nl" 22315 22316# Find who we are. Look in the path if we contain no directory separator. 22317case $0 in 22318 *[\\/]* ) as_myself=$0 ;; 22319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22320for as_dir in $PATH 22321do 22322 IFS=$as_save_IFS 22323 test -z "$as_dir" && as_dir=. 22324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22325done 22326IFS=$as_save_IFS 22327 22328 ;; 22329esac 22330# We did not find ourselves, most probably we were run as `sh COMMAND' 22331# in which case we are not to be found in the path. 22332if test "x$as_myself" = x; then 22333 as_myself=$0 22334fi 22335if test ! -f "$as_myself"; then 22336 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22337 { (exit 1); exit 1; } 22338fi 22339 22340# Work around bugs in pre-3.0 UWIN ksh. 22341for as_var in ENV MAIL MAILPATH 22342do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22343done 22344PS1='$ ' 22345PS2='> ' 22346PS4='+ ' 22347 22348# NLS nuisances. 22349for as_var in \ 22350 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22351 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22352 LC_TELEPHONE LC_TIME 22353do 22354 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22355 eval $as_var=C; export $as_var 22356 else 22357 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22358 fi 22359done 22360 22361# Required to use basename. 22362if expr a : '\(a\)' >/dev/null 2>&1 && 22363 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22364 as_expr=expr 22365else 22366 as_expr=false 22367fi 22368 22369if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22370 as_basename=basename 22371else 22372 as_basename=false 22373fi 22374 22375 22376# Name of the executable. 22377as_me=`$as_basename -- "$0" || 22378$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22379 X"$0" : 'X\(//\)$' \| \ 22380 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22381echo X/"$0" | 22382 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22383 s//\1/ 22384 q 22385 } 22386 /^X\/\(\/\/\)$/{ 22387 s//\1/ 22388 q 22389 } 22390 /^X\/\(\/\).*/{ 22391 s//\1/ 22392 q 22393 } 22394 s/.*/./; q'` 22395 22396# CDPATH. 22397$as_unset CDPATH 22398 22399 22400 22401 as_lineno_1=$LINENO 22402 as_lineno_2=$LINENO 22403 test "x$as_lineno_1" != "x$as_lineno_2" && 22404 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22405 22406 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22407 # uniformly replaced by the line number. The first 'sed' inserts a 22408 # line-number line after each line using $LINENO; the second 'sed' 22409 # does the real work. The second script uses 'N' to pair each 22410 # line-number line with the line containing $LINENO, and appends 22411 # trailing '-' during substitution so that $LINENO is not a special 22412 # case at line end. 22413 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22414 # scripts with optimization help from Paolo Bonzini. Blame Lee 22415 # E. McMahon (1931-1989) for sed's syntax. :-) 22416 sed -n ' 22417 p 22418 /[$]LINENO/= 22419 ' <$as_myself | 22420 sed ' 22421 s/[$]LINENO.*/&-/ 22422 t lineno 22423 b 22424 :lineno 22425 N 22426 :loop 22427 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22428 t loop 22429 s/-\n.*// 22430 ' >$as_me.lineno && 22431 chmod +x "$as_me.lineno" || 22432 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22433 { (exit 1); exit 1; }; } 22434 22435 # Don't try to exec as it changes $[0], causing all sort of problems 22436 # (the dirname of $[0] is not the place where we might find the 22437 # original and so on. Autoconf is especially sensitive to this). 22438 . "./$as_me.lineno" 22439 # Exit status is that of the last command. 22440 exit 22441} 22442 22443 22444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22445 as_dirname=dirname 22446else 22447 as_dirname=false 22448fi 22449 22450ECHO_C= ECHO_N= ECHO_T= 22451case `echo -n x` in 22452-n*) 22453 case `echo 'x\c'` in 22454 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22455 *) ECHO_C='\c';; 22456 esac;; 22457*) 22458 ECHO_N='-n';; 22459esac 22460 22461if expr a : '\(a\)' >/dev/null 2>&1 && 22462 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22463 as_expr=expr 22464else 22465 as_expr=false 22466fi 22467 22468rm -f conf$$ conf$$.exe conf$$.file 22469if test -d conf$$.dir; then 22470 rm -f conf$$.dir/conf$$.file 22471else 22472 rm -f conf$$.dir 22473 mkdir conf$$.dir 22474fi 22475echo >conf$$.file 22476if ln -s conf$$.file conf$$ 2>/dev/null; then 22477 as_ln_s='ln -s' 22478 # ... but there are two gotchas: 22479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22481 # In both cases, we have to default to `cp -p'. 22482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22483 as_ln_s='cp -p' 22484elif ln conf$$.file conf$$ 2>/dev/null; then 22485 as_ln_s=ln 22486else 22487 as_ln_s='cp -p' 22488fi 22489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22490rmdir conf$$.dir 2>/dev/null 22491 22492if mkdir -p . 2>/dev/null; then 22493 as_mkdir_p=: 22494else 22495 test -d ./-p && rmdir ./-p 22496 as_mkdir_p=false 22497fi 22498 22499# Find out whether ``test -x'' works. Don't use a zero-byte file, as 22500# systems may use methods other than mode bits to determine executability. 22501cat >conf$$.file <<_ASEOF 22502#! /bin/sh 22503exit 0 22504_ASEOF 22505chmod +x conf$$.file 22506if test -x conf$$.file >/dev/null 2>&1; then 22507 as_executable_p="test -x" 22508else 22509 as_executable_p=: 22510fi 22511rm -f conf$$.file 22512 22513# Sed expression to map a string onto a valid CPP name. 22514as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22515 22516# Sed expression to map a string onto a valid variable name. 22517as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22518 22519 22520exec 6>&1 22521 22522# Save the log message, to keep $[0] and so on meaningful, and to 22523# report actual input values of CONFIG_FILES etc. instead of their 22524# values after options handling. 22525ac_log=" 22526This file was extended by LLVM $as_me 3.4svn, which was 22527generated by GNU Autoconf 2.60. Invocation command line was 22528 22529 CONFIG_FILES = $CONFIG_FILES 22530 CONFIG_HEADERS = $CONFIG_HEADERS 22531 CONFIG_LINKS = $CONFIG_LINKS 22532 CONFIG_COMMANDS = $CONFIG_COMMANDS 22533 $ $0 $@ 22534 22535on `(hostname || uname -n) 2>/dev/null | sed 1q` 22536" 22537 22538_ACEOF 22539 22540cat >>$CONFIG_STATUS <<_ACEOF 22541# Files that config.status was made for. 22542config_files="$ac_config_files" 22543config_headers="$ac_config_headers" 22544config_commands="$ac_config_commands" 22545 22546_ACEOF 22547 22548cat >>$CONFIG_STATUS <<\_ACEOF 22549ac_cs_usage="\ 22550\`$as_me' instantiates files from templates according to the 22551current configuration. 22552 22553Usage: $0 [OPTIONS] [FILE]... 22554 22555 -h, --help print this help, then exit 22556 -V, --version print version number, then exit 22557 -q, --quiet do not print progress messages 22558 -d, --debug don't remove temporary files 22559 --recheck update $as_me by reconfiguring in the same conditions 22560 --file=FILE[:TEMPLATE] 22561 instantiate the configuration file FILE 22562 --header=FILE[:TEMPLATE] 22563 instantiate the configuration header FILE 22564 22565Configuration files: 22566$config_files 22567 22568Configuration headers: 22569$config_headers 22570 22571Configuration commands: 22572$config_commands 22573 22574Report bugs to <bug-autoconf@gnu.org>." 22575 22576_ACEOF 22577cat >>$CONFIG_STATUS <<_ACEOF 22578ac_cs_version="\\ 22579LLVM config.status 3.4svn 22580configured by $0, generated by GNU Autoconf 2.60, 22581 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22582 22583Copyright (C) 2006 Free Software Foundation, Inc. 22584This config.status script is free software; the Free Software Foundation 22585gives unlimited permission to copy, distribute and modify it." 22586 22587ac_pwd='$ac_pwd' 22588srcdir='$srcdir' 22589INSTALL='$INSTALL' 22590_ACEOF 22591 22592cat >>$CONFIG_STATUS <<\_ACEOF 22593# If no file are specified by the user, then we need to provide default 22594# value. By we need to know if files were specified by the user. 22595ac_need_defaults=: 22596while test $# != 0 22597do 22598 case $1 in 22599 --*=*) 22600 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22601 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22602 ac_shift=: 22603 ;; 22604 *) 22605 ac_option=$1 22606 ac_optarg=$2 22607 ac_shift=shift 22608 ;; 22609 esac 22610 22611 case $ac_option in 22612 # Handling of the options. 22613 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22614 ac_cs_recheck=: ;; 22615 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22616 echo "$ac_cs_version"; exit ;; 22617 --debug | --debu | --deb | --de | --d | -d ) 22618 debug=: ;; 22619 --file | --fil | --fi | --f ) 22620 $ac_shift 22621 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22622 ac_need_defaults=false;; 22623 --header | --heade | --head | --hea ) 22624 $ac_shift 22625 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22626 ac_need_defaults=false;; 22627 --he | --h) 22628 # Conflict between --help and --header 22629 { echo "$as_me: error: ambiguous option: $1 22630Try \`$0 --help' for more information." >&2 22631 { (exit 1); exit 1; }; };; 22632 --help | --hel | -h ) 22633 echo "$ac_cs_usage"; exit ;; 22634 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22635 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22636 ac_cs_silent=: ;; 22637 22638 # This is an error. 22639 -*) { echo "$as_me: error: unrecognized option: $1 22640Try \`$0 --help' for more information." >&2 22641 { (exit 1); exit 1; }; } ;; 22642 22643 *) ac_config_targets="$ac_config_targets $1" 22644 ac_need_defaults=false ;; 22645 22646 esac 22647 shift 22648done 22649 22650ac_configure_extra_args= 22651 22652if $ac_cs_silent; then 22653 exec 6>/dev/null 22654 ac_configure_extra_args="$ac_configure_extra_args --silent" 22655fi 22656 22657_ACEOF 22658cat >>$CONFIG_STATUS <<_ACEOF 22659if \$ac_cs_recheck; then 22660 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22661 CONFIG_SHELL=$SHELL 22662 export CONFIG_SHELL 22663 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22664fi 22665 22666_ACEOF 22667cat >>$CONFIG_STATUS <<\_ACEOF 22668exec 5>>config.log 22669{ 22670 echo 22671 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22672## Running $as_me. ## 22673_ASBOX 22674 echo "$ac_log" 22675} >&5 22676 22677_ACEOF 22678cat >>$CONFIG_STATUS <<_ACEOF 22679# 22680# INIT-COMMANDS 22681# 22682llvm_src="${srcdir}" 22683 22684_ACEOF 22685 22686cat >>$CONFIG_STATUS <<\_ACEOF 22687 22688# Handling of arguments. 22689for ac_config_target in $ac_config_targets 22690do 22691 case $ac_config_target in 22692 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 22693 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 22694 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 22695 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 22696 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 22697 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 22698 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 22699 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 22700 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 22701 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 22702 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; 22703 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; 22704 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; 22705 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 22706 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 22707 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 22708 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 22709 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 22710 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 22711 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 22712 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 22713 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 22714 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 22715 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 22716 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 22717 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 22718 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 22719 22720 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22721echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22722 { (exit 1); exit 1; }; };; 22723 esac 22724done 22725 22726 22727# If the user did not use the arguments to specify the items to instantiate, 22728# then the envvar interface is used. Set only those that are not. 22729# We use the long form for the default assignment because of an extremely 22730# bizarre bug on SunOS 4.1.3. 22731if $ac_need_defaults; then 22732 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22733 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22734 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22735fi 22736 22737# Have a temporary directory for convenience. Make it in the build tree 22738# simply because there is no reason against having it here, and in addition, 22739# creating and moving files from /tmp can sometimes cause problems. 22740# Hook for its removal unless debugging. 22741# Note that there is a small window in which the directory will not be cleaned: 22742# after its creation but before its name has been assigned to `$tmp'. 22743$debug || 22744{ 22745 tmp= 22746 trap 'exit_status=$? 22747 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22748' 0 22749 trap '{ (exit 1); exit 1; }' 1 2 13 15 22750} 22751# Create a (secure) tmp directory for tmp files. 22752 22753{ 22754 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22755 test -n "$tmp" && test -d "$tmp" 22756} || 22757{ 22758 tmp=./conf$$-$RANDOM 22759 (umask 077 && mkdir "$tmp") 22760} || 22761{ 22762 echo "$me: cannot create a temporary directory in ." >&2 22763 { (exit 1); exit 1; } 22764} 22765 22766# 22767# Set up the sed scripts for CONFIG_FILES section. 22768# 22769 22770# No need to generate the scripts if there are no CONFIG_FILES. 22771# This happens for instance when ./config.status config.h 22772if test -n "$CONFIG_FILES"; then 22773 22774_ACEOF 22775 22776 22777 22778ac_delim='%!_!# ' 22779for ac_last_try in false false false false false :; do 22780 cat >conf$$subs.sed <<_ACEOF 22781SHELL!$SHELL$ac_delim 22782PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22783PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22784PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22785PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22786PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22787PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22788exec_prefix!$exec_prefix$ac_delim 22789prefix!$prefix$ac_delim 22790program_transform_name!$program_transform_name$ac_delim 22791bindir!$bindir$ac_delim 22792sbindir!$sbindir$ac_delim 22793libexecdir!$libexecdir$ac_delim 22794datarootdir!$datarootdir$ac_delim 22795datadir!$datadir$ac_delim 22796sysconfdir!$sysconfdir$ac_delim 22797sharedstatedir!$sharedstatedir$ac_delim 22798localstatedir!$localstatedir$ac_delim 22799includedir!$includedir$ac_delim 22800oldincludedir!$oldincludedir$ac_delim 22801docdir!$docdir$ac_delim 22802infodir!$infodir$ac_delim 22803htmldir!$htmldir$ac_delim 22804dvidir!$dvidir$ac_delim 22805pdfdir!$pdfdir$ac_delim 22806psdir!$psdir$ac_delim 22807libdir!$libdir$ac_delim 22808localedir!$localedir$ac_delim 22809mandir!$mandir$ac_delim 22810DEFS!$DEFS$ac_delim 22811ECHO_C!$ECHO_C$ac_delim 22812ECHO_N!$ECHO_N$ac_delim 22813ECHO_T!$ECHO_T$ac_delim 22814LIBS!$LIBS$ac_delim 22815build_alias!$build_alias$ac_delim 22816host_alias!$host_alias$ac_delim 22817target_alias!$target_alias$ac_delim 22818LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 22819CC!$CC$ac_delim 22820CFLAGS!$CFLAGS$ac_delim 22821LDFLAGS!$LDFLAGS$ac_delim 22822CPPFLAGS!$CPPFLAGS$ac_delim 22823ac_ct_CC!$ac_ct_CC$ac_delim 22824EXEEXT!$EXEEXT$ac_delim 22825OBJEXT!$OBJEXT$ac_delim 22826CXX!$CXX$ac_delim 22827CXXFLAGS!$CXXFLAGS$ac_delim 22828ac_ct_CXX!$ac_ct_CXX$ac_delim 22829CPP!$CPP$ac_delim 22830subdirs!$subdirs$ac_delim 22831ENABLE_POLLY!$ENABLE_POLLY$ac_delim 22832LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 22833build!$build$ac_delim 22834build_cpu!$build_cpu$ac_delim 22835build_vendor!$build_vendor$ac_delim 22836build_os!$build_os$ac_delim 22837host!$host$ac_delim 22838host_cpu!$host_cpu$ac_delim 22839host_vendor!$host_vendor$ac_delim 22840host_os!$host_os$ac_delim 22841target!$target$ac_delim 22842target_cpu!$target_cpu$ac_delim 22843target_vendor!$target_vendor$ac_delim 22844target_os!$target_os$ac_delim 22845OS!$OS$ac_delim 22846HOST_OS!$HOST_OS$ac_delim 22847TARGET_OS!$TARGET_OS$ac_delim 22848LINKALL!$LINKALL$ac_delim 22849NOLINKALL!$NOLINKALL$ac_delim 22850LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 22851LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 22852ARCH!$ARCH$ac_delim 22853HOST_ARCH!$HOST_ARCH$ac_delim 22854ENDIAN!$ENDIAN$ac_delim 22855GREP!$GREP$ac_delim 22856EGREP!$EGREP$ac_delim 22857LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 22858BUILD_CC!$BUILD_CC$ac_delim 22859BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 22860BUILD_CXX!$BUILD_CXX$ac_delim 22861CVSBUILD!$CVSBUILD$ac_delim 22862ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 22863ENABLE_CXX11!$ENABLE_CXX11$ac_delim 22864ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim 22865ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim 22866ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim 22867ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim 22868ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 22869ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 22870DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 22871ENABLE_WERROR!$ENABLE_WERROR$ac_delim 22872ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 22873EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 22874DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 22875DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 22876KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim 22877JIT!$JIT$ac_delim 22878_ACEOF 22879 22880 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22881 break 22882 elif $ac_last_try; then 22883 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22884echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22885 { (exit 1); exit 1; }; } 22886 else 22887 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22888 fi 22889done 22890 22891ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22892if test -n "$ac_eof"; then 22893 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22894 ac_eof=`expr $ac_eof + 1` 22895fi 22896 22897cat >>$CONFIG_STATUS <<_ACEOF 22898cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22899/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22900_ACEOF 22901sed ' 22902s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22903s/^/s,@/; s/!/@,|#_!!_#|/ 22904:n 22905t n 22906s/'"$ac_delim"'$/,g/; t 22907s/$/\\/; p 22908N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22909' >>$CONFIG_STATUS <conf$$subs.sed 22910rm -f conf$$subs.sed 22911cat >>$CONFIG_STATUS <<_ACEOF 22912CEOF$ac_eof 22913_ACEOF 22914 22915 22916ac_delim='%!_!# ' 22917for ac_last_try in false false false false false :; do 22918 cat >conf$$subs.sed <<_ACEOF 22919TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 22920ENABLE_DOCS!$ENABLE_DOCS$ac_delim 22921ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 22922LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim 22923ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 22924LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim 22925ENABLE_PIC!$ENABLE_PIC$ac_delim 22926ENABLE_SHARED!$ENABLE_SHARED$ac_delim 22927ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 22928ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 22929ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim 22930TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 22931LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 22932LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 22933LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 22934LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 22935OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 22936EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 22937EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 22938CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim 22939BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 22940INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim 22941NM!$NM$ac_delim 22942ifGNUmake!$ifGNUmake$ac_delim 22943LN_S!$LN_S$ac_delim 22944CMP!$CMP$ac_delim 22945CP!$CP$ac_delim 22946DATE!$DATE$ac_delim 22947FIND!$FIND$ac_delim 22948MKDIR!$MKDIR$ac_delim 22949MV!$MV$ac_delim 22950RANLIB!$RANLIB$ac_delim 22951AR!$AR$ac_delim 22952RM!$RM$ac_delim 22953SED!$SED$ac_delim 22954TAR!$TAR$ac_delim 22955BINPWD!$BINPWD$ac_delim 22956GRAPHVIZ!$GRAPHVIZ$ac_delim 22957DOT!$DOT$ac_delim 22958FDP!$FDP$ac_delim 22959NEATO!$NEATO$ac_delim 22960TWOPI!$TWOPI$ac_delim 22961CIRCO!$CIRCO$ac_delim 22962GV!$GV$ac_delim 22963DOTTY!$DOTTY$ac_delim 22964XDOT!$XDOT$ac_delim 22965INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22966INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22967INSTALL_DATA!$INSTALL_DATA$ac_delim 22968BZIP2!$BZIP2$ac_delim 22969CAT!$CAT$ac_delim 22970DOXYGEN!$DOXYGEN$ac_delim 22971GROFF!$GROFF$ac_delim 22972GZIPBIN!$GZIPBIN$ac_delim 22973PDFROFF!$PDFROFF$ac_delim 22974ZIP!$ZIP$ac_delim 22975OCAMLC!$OCAMLC$ac_delim 22976OCAMLOPT!$OCAMLOPT$ac_delim 22977OCAMLDEP!$OCAMLDEP$ac_delim 22978OCAMLDOC!$OCAMLDOC$ac_delim 22979GAS!$GAS$ac_delim 22980HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 22981INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 22982INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 22983CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 22984CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 22985LIBADD_DL!$LIBADD_DL$ac_delim 22986NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 22987NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 22988COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 22989NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim 22990NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim 22991PYTHON!$PYTHON$ac_delim 22992USE_UDIS86!$USE_UDIS86$ac_delim 22993USE_OPROFILE!$USE_OPROFILE$ac_delim 22994USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim 22995XML2CONFIG!$XML2CONFIG$ac_delim 22996LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim 22997LIBXML2_INC!$LIBXML2_INC$ac_delim 22998CXXCPP!$CXXCPP$ac_delim 22999HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 23000HAVE_LIBZ!$HAVE_LIBZ$ac_delim 23001HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 23002MMAP_FILE!$MMAP_FILE$ac_delim 23003SHLIBEXT!$SHLIBEXT$ac_delim 23004SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 23005LLVM_PREFIX!$LLVM_PREFIX$ac_delim 23006LLVM_BINDIR!$LLVM_BINDIR$ac_delim 23007LLVM_DATADIR!$LLVM_DATADIR$ac_delim 23008LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 23009LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 23010LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 23011LLVM_INFODIR!$LLVM_INFODIR$ac_delim 23012LLVM_MANDIR!$LLVM_MANDIR$ac_delim 23013LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 23014BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 23015ALL_BINDINGS!$ALL_BINDINGS$ac_delim 23016_ACEOF 23017 23018 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23019 break 23020 elif $ac_last_try; then 23021 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23022echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23023 { (exit 1); exit 1; }; } 23024 else 23025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23026 fi 23027done 23028 23029ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23030if test -n "$ac_eof"; then 23031 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23032 ac_eof=`expr $ac_eof + 1` 23033fi 23034 23035cat >>$CONFIG_STATUS <<_ACEOF 23036cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23037/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23038_ACEOF 23039sed ' 23040s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23041s/^/s,@/; s/!/@,|#_!!_#|/ 23042:n 23043t n 23044s/'"$ac_delim"'$/,g/; t 23045s/$/\\/; p 23046N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23047' >>$CONFIG_STATUS <conf$$subs.sed 23048rm -f conf$$subs.sed 23049cat >>$CONFIG_STATUS <<_ACEOF 23050CEOF$ac_eof 23051_ACEOF 23052 23053 23054ac_delim='%!_!# ' 23055for ac_last_try in false false false false false :; do 23056 cat >conf$$subs.sed <<_ACEOF 23057OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 23058ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 23059RPATH!$RPATH$ac_delim 23060RDYNAMIC!$RDYNAMIC$ac_delim 23061program_prefix!$program_prefix$ac_delim 23062LIBOBJS!$LIBOBJS$ac_delim 23063LTLIBOBJS!$LTLIBOBJS$ac_delim 23064_ACEOF 23065 23066 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then 23067 break 23068 elif $ac_last_try; then 23069 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23070echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23071 { (exit 1); exit 1; }; } 23072 else 23073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23074 fi 23075done 23076 23077ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23078if test -n "$ac_eof"; then 23079 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23080 ac_eof=`expr $ac_eof + 1` 23081fi 23082 23083cat >>$CONFIG_STATUS <<_ACEOF 23084cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 23085/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23086_ACEOF 23087sed ' 23088s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23089s/^/s,@/; s/!/@,|#_!!_#|/ 23090:n 23091t n 23092s/'"$ac_delim"'$/,g/; t 23093s/$/\\/; p 23094N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23095' >>$CONFIG_STATUS <conf$$subs.sed 23096rm -f conf$$subs.sed 23097cat >>$CONFIG_STATUS <<_ACEOF 23098:end 23099s/|#_!!_#|//g 23100CEOF$ac_eof 23101_ACEOF 23102 23103 23104# VPATH may cause trouble with some makes, so we remove $(srcdir), 23105# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23106# trailing colons and then remove the whole line if VPATH becomes empty 23107# (actually we leave an empty line to preserve line numbers). 23108if test "x$srcdir" = x.; then 23109 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23110s/:*\$(srcdir):*/:/ 23111s/:*\${srcdir}:*/:/ 23112s/:*@srcdir@:*/:/ 23113s/^\([^=]*=[ ]*\):*/\1/ 23114s/:*$// 23115s/^[^=]*=[ ]*$// 23116}' 23117fi 23118 23119cat >>$CONFIG_STATUS <<\_ACEOF 23120fi # test -n "$CONFIG_FILES" 23121 23122 23123for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23124do 23125 case $ac_tag in 23126 :[FHLC]) ac_mode=$ac_tag; continue;; 23127 esac 23128 case $ac_mode$ac_tag in 23129 :[FHL]*:*);; 23130 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23131echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23132 { (exit 1); exit 1; }; };; 23133 :[FH]-) ac_tag=-:-;; 23134 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23135 esac 23136 ac_save_IFS=$IFS 23137 IFS=: 23138 set x $ac_tag 23139 IFS=$ac_save_IFS 23140 shift 23141 ac_file=$1 23142 shift 23143 23144 case $ac_mode in 23145 :L) ac_source=$1;; 23146 :[FH]) 23147 ac_file_inputs= 23148 for ac_f 23149 do 23150 case $ac_f in 23151 -) ac_f="$tmp/stdin";; 23152 *) # Look for the file first in the build tree, then in the source tree 23153 # (if the path is not absolute). The absolute path cannot be DOS-style, 23154 # because $ac_f cannot contain `:'. 23155 test -f "$ac_f" || 23156 case $ac_f in 23157 [\\/$]*) false;; 23158 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23159 esac || 23160 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23161echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23162 { (exit 1); exit 1; }; };; 23163 esac 23164 ac_file_inputs="$ac_file_inputs $ac_f" 23165 done 23166 23167 # Let's still pretend it is `configure' which instantiates (i.e., don't 23168 # use $as_me), people would be surprised to read: 23169 # /* config.h. Generated by config.status. */ 23170 configure_input="Generated from "`IFS=: 23171 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23172 if test x"$ac_file" != x-; then 23173 configure_input="$ac_file. $configure_input" 23174 { echo "$as_me:$LINENO: creating $ac_file" >&5 23175echo "$as_me: creating $ac_file" >&6;} 23176 fi 23177 23178 case $ac_tag in 23179 *:-:* | *:-) cat >"$tmp/stdin";; 23180 esac 23181 ;; 23182 esac 23183 23184 ac_dir=`$as_dirname -- "$ac_file" || 23185$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23186 X"$ac_file" : 'X\(//\)[^/]' \| \ 23187 X"$ac_file" : 'X\(//\)$' \| \ 23188 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23189echo X"$ac_file" | 23190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23191 s//\1/ 23192 q 23193 } 23194 /^X\(\/\/\)[^/].*/{ 23195 s//\1/ 23196 q 23197 } 23198 /^X\(\/\/\)$/{ 23199 s//\1/ 23200 q 23201 } 23202 /^X\(\/\).*/{ 23203 s//\1/ 23204 q 23205 } 23206 s/.*/./; q'` 23207 { as_dir="$ac_dir" 23208 case $as_dir in #( 23209 -*) as_dir=./$as_dir;; 23210 esac 23211 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23212 as_dirs= 23213 while :; do 23214 case $as_dir in #( 23215 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23216 *) as_qdir=$as_dir;; 23217 esac 23218 as_dirs="'$as_qdir' $as_dirs" 23219 as_dir=`$as_dirname -- "$as_dir" || 23220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23221 X"$as_dir" : 'X\(//\)[^/]' \| \ 23222 X"$as_dir" : 'X\(//\)$' \| \ 23223 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23224echo X"$as_dir" | 23225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23226 s//\1/ 23227 q 23228 } 23229 /^X\(\/\/\)[^/].*/{ 23230 s//\1/ 23231 q 23232 } 23233 /^X\(\/\/\)$/{ 23234 s//\1/ 23235 q 23236 } 23237 /^X\(\/\).*/{ 23238 s//\1/ 23239 q 23240 } 23241 s/.*/./; q'` 23242 test -d "$as_dir" && break 23243 done 23244 test -z "$as_dirs" || eval "mkdir $as_dirs" 23245 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23246echo "$as_me: error: cannot create directory $as_dir" >&2;} 23247 { (exit 1); exit 1; }; }; } 23248 ac_builddir=. 23249 23250case "$ac_dir" in 23251.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23252*) 23253 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23254 # A ".." for each directory in $ac_dir_suffix. 23255 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23256 case $ac_top_builddir_sub in 23257 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23258 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23259 esac ;; 23260esac 23261ac_abs_top_builddir=$ac_pwd 23262ac_abs_builddir=$ac_pwd$ac_dir_suffix 23263# for backward compatibility: 23264ac_top_builddir=$ac_top_build_prefix 23265 23266case $srcdir in 23267 .) # We are building in place. 23268 ac_srcdir=. 23269 ac_top_srcdir=$ac_top_builddir_sub 23270 ac_abs_top_srcdir=$ac_pwd ;; 23271 [\\/]* | ?:[\\/]* ) # Absolute name. 23272 ac_srcdir=$srcdir$ac_dir_suffix; 23273 ac_top_srcdir=$srcdir 23274 ac_abs_top_srcdir=$srcdir ;; 23275 *) # Relative name. 23276 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23277 ac_top_srcdir=$ac_top_build_prefix$srcdir 23278 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23279esac 23280ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23281 23282 23283 case $ac_mode in 23284 :F) 23285 # 23286 # CONFIG_FILE 23287 # 23288 23289 case $INSTALL in 23290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23291 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23292 esac 23293_ACEOF 23294 23295cat >>$CONFIG_STATUS <<\_ACEOF 23296# If the template does not know about datarootdir, expand it. 23297# FIXME: This hack should be removed a few years after 2.60. 23298ac_datarootdir_hack=; ac_datarootdir_seen= 23299 23300case `sed -n '/datarootdir/ { 23301 p 23302 q 23303} 23304/@datadir@/p 23305/@docdir@/p 23306/@infodir@/p 23307/@localedir@/p 23308/@mandir@/p 23309' $ac_file_inputs` in 23310*datarootdir*) ac_datarootdir_seen=yes;; 23311*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23312 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23313echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23314_ACEOF 23315cat >>$CONFIG_STATUS <<_ACEOF 23316 ac_datarootdir_hack=' 23317 s&@datadir@&$datadir&g 23318 s&@docdir@&$docdir&g 23319 s&@infodir@&$infodir&g 23320 s&@localedir@&$localedir&g 23321 s&@mandir@&$mandir&g 23322 s&\\\${datarootdir}&$datarootdir&g' ;; 23323esac 23324_ACEOF 23325 23326# Neutralize VPATH when `$srcdir' = `.'. 23327# Shell code in configure.ac might set extrasub. 23328# FIXME: do we really want to maintain this feature? 23329cat >>$CONFIG_STATUS <<_ACEOF 23330 sed "$ac_vpsub 23331$extrasub 23332_ACEOF 23333cat >>$CONFIG_STATUS <<\_ACEOF 23334:t 23335/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23336s&@configure_input@&$configure_input&;t t 23337s&@top_builddir@&$ac_top_builddir_sub&;t t 23338s&@srcdir@&$ac_srcdir&;t t 23339s&@abs_srcdir@&$ac_abs_srcdir&;t t 23340s&@top_srcdir@&$ac_top_srcdir&;t t 23341s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23342s&@builddir@&$ac_builddir&;t t 23343s&@abs_builddir@&$ac_abs_builddir&;t t 23344s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23345s&@INSTALL@&$ac_INSTALL&;t t 23346$ac_datarootdir_hack 23347" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 23348 23349test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23350 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23351 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23352 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23353which seems to be undefined. Please make sure it is defined." >&5 23354echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23355which seems to be undefined. Please make sure it is defined." >&2;} 23356 23357 rm -f "$tmp/stdin" 23358 case $ac_file in 23359 -) cat "$tmp/out"; rm -f "$tmp/out";; 23360 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23361 esac 23362 ;; 23363 :H) 23364 # 23365 # CONFIG_HEADER 23366 # 23367_ACEOF 23368 23369# Transform confdefs.h into a sed script `conftest.defines', that 23370# substitutes the proper values into config.h.in to produce config.h. 23371rm -f conftest.defines conftest.tail 23372# First, append a space to every undef/define line, to ease matching. 23373echo 's/$/ /' >conftest.defines 23374# Then, protect against being on the right side of a sed subst, or in 23375# an unquoted here document, in config.status. If some macros were 23376# called several times there might be several #defines for the same 23377# symbol, which is useless. But do not sort them, since the last 23378# AC_DEFINE must be honored. 23379ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23380# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23381# NAME is the cpp macro being defined, VALUE is the value it is being given. 23382# PARAMS is the parameter list in the macro definition--in most cases, it's 23383# just an empty string. 23384ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23385ac_dB='\\)[ (].*,\\1define\\2' 23386ac_dC=' ' 23387ac_dD=' ,' 23388 23389uniq confdefs.h | 23390 sed -n ' 23391 t rset 23392 :rset 23393 s/^[ ]*#[ ]*define[ ][ ]*// 23394 t ok 23395 d 23396 :ok 23397 s/[\\&,]/\\&/g 23398 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23399 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23400 ' >>conftest.defines 23401 23402# Remove the space that was appended to ease matching. 23403# Then replace #undef with comments. This is necessary, for 23404# example, in the case of _POSIX_SOURCE, which is predefined and required 23405# on some systems where configure will not decide to define it. 23406# (The regexp can be short, since the line contains either #define or #undef.) 23407echo 's/ $// 23408s,^[ #]*u.*,/* & */,' >>conftest.defines 23409 23410# Break up conftest.defines: 23411ac_max_sed_lines=50 23412 23413# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23414# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23415# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23416# et cetera. 23417ac_in='$ac_file_inputs' 23418ac_out='"$tmp/out1"' 23419ac_nxt='"$tmp/out2"' 23420 23421while : 23422do 23423 # Write a here document: 23424 cat >>$CONFIG_STATUS <<_ACEOF 23425 # First, check the format of the line: 23426 cat >"\$tmp/defines.sed" <<\\CEOF 23427/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23428/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23429b 23430:def 23431_ACEOF 23432 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23433 echo 'CEOF 23434 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23435 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23436 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23437 grep . conftest.tail >/dev/null || break 23438 rm -f conftest.defines 23439 mv conftest.tail conftest.defines 23440done 23441rm -f conftest.defines conftest.tail 23442 23443echo "ac_result=$ac_in" >>$CONFIG_STATUS 23444cat >>$CONFIG_STATUS <<\_ACEOF 23445 if test x"$ac_file" != x-; then 23446 echo "/* $configure_input */" >"$tmp/config.h" 23447 cat "$ac_result" >>"$tmp/config.h" 23448 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23449 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23450echo "$as_me: $ac_file is unchanged" >&6;} 23451 else 23452 rm -f $ac_file 23453 mv "$tmp/config.h" $ac_file 23454 fi 23455 else 23456 echo "/* $configure_input */" 23457 cat "$ac_result" 23458 fi 23459 rm -f "$tmp/out12" 23460 ;; 23461 23462 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23463echo "$as_me: executing $ac_file commands" >&6;} 23464 ;; 23465 esac 23466 23467 23468 case $ac_file$ac_mode in 23469 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 23470 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 23471 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 23472 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 23473 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 23474 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 23475 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 23476 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 23477 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 23478 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 23479 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 23480 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 23481 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 23482 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 23483 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 23484 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 23485 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 23486 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 23487 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 23488 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 23489 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 23490 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 23491 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 23492 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 23493 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 23494 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 23495 23496 esac 23497done # for ac_tag 23498 23499 23500{ (exit 0); exit 0; } 23501_ACEOF 23502chmod +x $CONFIG_STATUS 23503ac_clean_files=$ac_clean_files_save 23504 23505 23506# configure is writing to config.log, and then calls config.status. 23507# config.status does its own redirection, appending to config.log. 23508# Unfortunately, on DOS this fails, as config.log is still kept open 23509# by configure, so config.status won't be able to write to it; its 23510# output is simply discarded. So we exec the FD to /dev/null, 23511# effectively closing config.log, so it can be properly (re)opened and 23512# appended to by config.status. When coming back to configure, we 23513# need to make the FD available again. 23514if test "$no_create" != yes; then 23515 ac_cs_success=: 23516 ac_config_status_args= 23517 test "$silent" = yes && 23518 ac_config_status_args="$ac_config_status_args --quiet" 23519 exec 5>/dev/null 23520 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23521 exec 5>>config.log 23522 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23523 # would make configure fail if this is the last instruction. 23524 $ac_cs_success || { (exit 1); exit 1; } 23525fi 23526 23527# 23528# CONFIG_SUBDIRS section. 23529# 23530if test "$no_recursion" != yes; then 23531 23532 # Remove --cache-file and --srcdir arguments so they do not pile up. 23533 ac_sub_configure_args= 23534 ac_prev= 23535 eval "set x $ac_configure_args" 23536 shift 23537 for ac_arg 23538 do 23539 if test -n "$ac_prev"; then 23540 ac_prev= 23541 continue 23542 fi 23543 case $ac_arg in 23544 -cache-file | --cache-file | --cache-fil | --cache-fi \ 23545 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 23546 ac_prev=cache_file ;; 23547 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 23548 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 23549 | --c=*) 23550 ;; 23551 --config-cache | -C) 23552 ;; 23553 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 23554 ac_prev=srcdir ;; 23555 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 23556 ;; 23557 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 23558 ac_prev=prefix ;; 23559 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 23560 ;; 23561 *) 23562 case $ac_arg in 23563 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23564 esac 23565 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 23566 esac 23567 done 23568 23569 # Always prepend --prefix to ensure using the same prefix 23570 # in subdir configurations. 23571 ac_arg="--prefix=$prefix" 23572 case $ac_arg in 23573 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23574 esac 23575 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 23576 23577 ac_popdir=`pwd` 23578 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 23579 23580 # Do not complain, so a configure script can configure whichever 23581 # parts of a large source tree are present. 23582 test -d "$srcdir/$ac_dir" || continue 23583 23584 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 23585 echo "$as_me:$LINENO: $ac_msg" >&5 23586 echo "$ac_msg" >&6 23587 { as_dir="$ac_dir" 23588 case $as_dir in #( 23589 -*) as_dir=./$as_dir;; 23590 esac 23591 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23592 as_dirs= 23593 while :; do 23594 case $as_dir in #( 23595 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23596 *) as_qdir=$as_dir;; 23597 esac 23598 as_dirs="'$as_qdir' $as_dirs" 23599 as_dir=`$as_dirname -- "$as_dir" || 23600$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23601 X"$as_dir" : 'X\(//\)[^/]' \| \ 23602 X"$as_dir" : 'X\(//\)$' \| \ 23603 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23604echo X"$as_dir" | 23605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23606 s//\1/ 23607 q 23608 } 23609 /^X\(\/\/\)[^/].*/{ 23610 s//\1/ 23611 q 23612 } 23613 /^X\(\/\/\)$/{ 23614 s//\1/ 23615 q 23616 } 23617 /^X\(\/\).*/{ 23618 s//\1/ 23619 q 23620 } 23621 s/.*/./; q'` 23622 test -d "$as_dir" && break 23623 done 23624 test -z "$as_dirs" || eval "mkdir $as_dirs" 23625 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23626echo "$as_me: error: cannot create directory $as_dir" >&2;} 23627 { (exit 1); exit 1; }; }; } 23628 ac_builddir=. 23629 23630case "$ac_dir" in 23631.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23632*) 23633 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23634 # A ".." for each directory in $ac_dir_suffix. 23635 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23636 case $ac_top_builddir_sub in 23637 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23638 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23639 esac ;; 23640esac 23641ac_abs_top_builddir=$ac_pwd 23642ac_abs_builddir=$ac_pwd$ac_dir_suffix 23643# for backward compatibility: 23644ac_top_builddir=$ac_top_build_prefix 23645 23646case $srcdir in 23647 .) # We are building in place. 23648 ac_srcdir=. 23649 ac_top_srcdir=$ac_top_builddir_sub 23650 ac_abs_top_srcdir=$ac_pwd ;; 23651 [\\/]* | ?:[\\/]* ) # Absolute name. 23652 ac_srcdir=$srcdir$ac_dir_suffix; 23653 ac_top_srcdir=$srcdir 23654 ac_abs_top_srcdir=$srcdir ;; 23655 *) # Relative name. 23656 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23657 ac_top_srcdir=$ac_top_build_prefix$srcdir 23658 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23659esac 23660ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23661 23662 23663 cd "$ac_dir" 23664 23665 # Check for guested configure; otherwise get Cygnus style configure. 23666 if test -f "$ac_srcdir/configure.gnu"; then 23667 ac_sub_configure=$ac_srcdir/configure.gnu 23668 elif test -f "$ac_srcdir/configure"; then 23669 ac_sub_configure=$ac_srcdir/configure 23670 elif test -f "$ac_srcdir/configure.in"; then 23671 # This should be Cygnus configure. 23672 ac_sub_configure=$ac_aux_dir/configure 23673 else 23674 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 23675echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 23676 ac_sub_configure= 23677 fi 23678 23679 # The recursion is here. 23680 if test -n "$ac_sub_configure"; then 23681 # Make the cache file name correct relative to the subdirectory. 23682 case $cache_file in 23683 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23684 *) # Relative name. 23685 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 23686 esac 23687 23688 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23689echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23690 # The eval makes quoting arguments work. 23691 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 23692 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 23693 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 23694echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 23695 { (exit 1); exit 1; }; } 23696 fi 23697 23698 cd "$ac_popdir" 23699 done 23700fi 23701 23702