configure revision 0c25b8f07e4ff033bf630d48cac28fedee1f4c55
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_CLANG_ARCMT 689ENABLE_CLANG_STATIC_ANALYZER 690ENABLE_CLANG_REWRITER 691ENABLE_OPTIMIZED 692ENABLE_PROFILING 693DISABLE_ASSERTIONS 694ENABLE_WERROR 695ENABLE_EXPENSIVE_CHECKS 696EXPENSIVE_CHECKS 697DEBUG_RUNTIME 698DEBUG_SYMBOLS 699KEEP_SYMBOLS 700JIT 701TARGET_HAS_JIT 702ENABLE_DOCS 703ENABLE_DOXYGEN 704LLVM_ENABLE_THREADS 705ENABLE_PTHREADS 706LLVM_ENABLE_ZLIB 707ENABLE_PIC 708ENABLE_SHARED 709ENABLE_EMBED_STDCXX 710ENABLE_TIMESTAMPS 711ENABLE_BACKTRACES 712TARGETS_TO_BUILD 713LLVM_ENUM_TARGETS 714LLVM_ENUM_ASM_PRINTERS 715LLVM_ENUM_ASM_PARSERS 716LLVM_ENUM_DISASSEMBLERS 717OPTIMIZE_OPTION 718EXTRA_OPTIONS 719EXTRA_LD_OPTIONS 720CLANG_SRC_ROOT 721BINUTILS_INCDIR 722INTERNAL_PREFIX 723NM 724ifGNUmake 725LN_S 726CMP 727CP 728DATE 729FIND 730MKDIR 731MV 732RANLIB 733AR 734RM 735SED 736TAR 737BINPWD 738GRAPHVIZ 739DOT 740FDP 741NEATO 742TWOPI 743CIRCO 744GV 745DOTTY 746XDOT_PY 747INSTALL_PROGRAM 748INSTALL_SCRIPT 749INSTALL_DATA 750BZIP2 751CAT 752DOXYGEN 753GROFF 754GZIPBIN 755PDFROFF 756ZIP 757OCAMLC 758OCAMLOPT 759OCAMLDEP 760OCAMLDOC 761GAS 762HAVE_LINK_VERSION_SCRIPT 763INSTALL_LTDL_TRUE 764INSTALL_LTDL_FALSE 765CONVENIENCE_LTDL_TRUE 766CONVENIENCE_LTDL_FALSE 767LIBADD_DL 768NO_VARIADIC_MACROS 769NO_MISSING_FIELD_INITIALIZERS 770COVERED_SWITCH_DEFAULT 771NO_MAYBE_UNINITIALIZED 772NO_UNINITIALIZED 773PYTHON 774USE_UDIS86 775USE_OPROFILE 776USE_INTEL_JITEVENTS 777XML2CONFIG 778LIBXML2_LIBS 779LIBXML2_INC 780CXXCPP 781HAVE_PTHREAD 782HAVE_LIBZ 783HUGE_VAL_SANITY 784MMAP_FILE 785SHLIBEXT 786SHLIBPATH_VAR 787LLVM_PREFIX 788LLVM_BINDIR 789LLVM_LIBDIR 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-clang-arcmt Enable building of clang ARCMT (default is YES) 1411 --enable-clang-static-analyzer 1412 Enable building of clang Static Analyzer (default is 1413 YES) 1414 --enable-clang-rewriter Enable building of clang rewriter (default is YES) 1415 --enable-optimized Compile with optimizations enabled (default is NO) 1416 --enable-profiling Compile with profiling enabled (default is NO) 1417 --enable-assertions Compile with assertion checks enabled (default is 1418 YES) 1419 --enable-werror Compile with -Werror enabled (default is NO) 1420 --enable-expensive-checks 1421 Compile with expensive debug checks enabled (default 1422 is NO) 1423 --enable-debug-runtime Build runtime libs with debug symbols (default is 1424 NO) 1425 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1426 optimization is on and YES if it's off) 1427 --enable-keep-symbols Do not strip installed executables) 1428 --enable-jit Enable Just In Time Compiling (default is YES) 1429 --enable-docs Build documents (default is YES) 1430 --enable-doxygen Build doxygen documentation (default is NO) 1431 --enable-threads Use threads if available (default is YES) 1432 --enable-pthreads Use pthreads if available (default is YES) 1433 --enable-zlib Use zlib for compression/decompression if available 1434 (default is YES) 1435 --enable-pic Build LLVM with Position Independent Code (default 1436 is YES) 1437 --enable-shared Build a shared library and link tools against it 1438 (default is NO) 1439 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1440 Win32 DLL (default is NO) 1441 --enable-timestamps Enable embedding timestamp information in build 1442 (default is YES) 1443 --enable-backtraces Enable embedding backtraces on crash (default is 1444 YES) 1445 --enable-targets Build specific host targets: all or 1446 target1,target2,... Valid targets are: host, x86, 1447 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon, 1448 xcore, msp430, nvptx, systemz, and cpp (default=all) 1449 --enable-experimental-targets 1450 Build experimental host targets: disable or 1451 target1,target2,... (default=disable) 1452 --enable-bindings Build specific language bindings: 1453 all,auto,none,{binding-name} (default=auto) 1454 --enable-libffi Check for the presence of libffi (default is NO) 1455 --enable-ltdl-install install libltdl 1456 1457Optional Packages: 1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1460 --with-optimize-option Select the compiler options to use for optimized 1461 builds 1462 --with-extra-options Specify additional options to compile LLVM with 1463 --with-extra-ld-options Specify additional options to link LLVM with 1464 --with-ocaml-libdir Specify install location for ocaml bindings (default 1465 is stdlib) 1466 --with-clang-srcdir Directory to the out-of-tree Clang source 1467 --with-clang-resource-dir 1468 Relative directory from the Clang binary for 1469 resource files 1470 --with-c-include-dirs Colon separated list of directories clang will 1471 search for headers 1472 --with-gcc-toolchain Directory where gcc is installed. 1473 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1474 --with-binutils-include Specify path to binutils/include/ containing 1475 plugin-api.h file for gold plugin. 1476 --with-bug-report-url Specify the URL where bug reports should be 1477 submitted (default=http://llvm.org/bugs/) 1478 --with-internal-prefix Installation directory for internal files 1479 --with-python path to python 1480 --with-udis86=<path> Use udis86 external x86 disassembler library 1481 --with-oprofile=<prefix> 1482 Tell OProfile >= 0.9.4 how to symbolize JIT output 1483 --with-intel-jitevents Notify Intel JIT profiling API of generated code 1484 1485 1486Some influential environment variables: 1487 CC C compiler command 1488 CFLAGS C compiler flags 1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1490 nonstandard directory <lib dir> 1491 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1492 you have headers in a nonstandard directory <include dir> 1493 CXX C++ compiler command 1494 CXXFLAGS C++ compiler flags 1495 CPP C preprocessor 1496 CXXCPP C++ preprocessor 1497 1498Use these variables to override the choices made by `configure' or to help 1499it to find libraries and programs with nonstandard names/locations. 1500 1501Report bugs to <http://llvm.org/bugs/>. 1502_ACEOF 1503ac_status=$? 1504fi 1505 1506if test "$ac_init_help" = "recursive"; then 1507 # If there are subdirs, report their specific --help. 1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1509 test -d "$ac_dir" || continue 1510 ac_builddir=. 1511 1512case "$ac_dir" in 1513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1514*) 1515 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1516 # A ".." for each directory in $ac_dir_suffix. 1517 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1518 case $ac_top_builddir_sub in 1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1521 esac ;; 1522esac 1523ac_abs_top_builddir=$ac_pwd 1524ac_abs_builddir=$ac_pwd$ac_dir_suffix 1525# for backward compatibility: 1526ac_top_builddir=$ac_top_build_prefix 1527 1528case $srcdir in 1529 .) # We are building in place. 1530 ac_srcdir=. 1531 ac_top_srcdir=$ac_top_builddir_sub 1532 ac_abs_top_srcdir=$ac_pwd ;; 1533 [\\/]* | ?:[\\/]* ) # Absolute name. 1534 ac_srcdir=$srcdir$ac_dir_suffix; 1535 ac_top_srcdir=$srcdir 1536 ac_abs_top_srcdir=$srcdir ;; 1537 *) # Relative name. 1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1539 ac_top_srcdir=$ac_top_build_prefix$srcdir 1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1541esac 1542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1543 1544 cd "$ac_dir" || { ac_status=$?; continue; } 1545 # Check for guested configure. 1546 if test -f "$ac_srcdir/configure.gnu"; then 1547 echo && 1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1549 elif test -f "$ac_srcdir/configure"; then 1550 echo && 1551 $SHELL "$ac_srcdir/configure" --help=recursive 1552 else 1553 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1554 fi || ac_status=$? 1555 cd "$ac_pwd" || { ac_status=$?; break; } 1556 done 1557fi 1558 1559test -n "$ac_init_help" && exit $ac_status 1560if $ac_init_version; then 1561 cat <<\_ACEOF 1562LLVM configure 3.4svn 1563generated by GNU Autoconf 2.60 1564 1565Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15662002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1567This configure script is free software; the Free Software Foundation 1568gives unlimited permission to copy, distribute and modify it. 1569 1570Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign. 1571_ACEOF 1572 exit 1573fi 1574cat >config.log <<_ACEOF 1575This file contains any messages produced by compilers while 1576running configure, to aid debugging if configure makes a mistake. 1577 1578It was created by LLVM $as_me 3.4svn, which was 1579generated by GNU Autoconf 2.60. Invocation command line was 1580 1581 $ $0 $@ 1582 1583_ACEOF 1584exec 5>>config.log 1585{ 1586cat <<_ASUNAME 1587## --------- ## 1588## Platform. ## 1589## --------- ## 1590 1591hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1592uname -m = `(uname -m) 2>/dev/null || echo unknown` 1593uname -r = `(uname -r) 2>/dev/null || echo unknown` 1594uname -s = `(uname -s) 2>/dev/null || echo unknown` 1595uname -v = `(uname -v) 2>/dev/null || echo unknown` 1596 1597/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1598/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1599 1600/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1601/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1602/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1603/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1604/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1605/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1606/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1607 1608_ASUNAME 1609 1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1611for as_dir in $PATH 1612do 1613 IFS=$as_save_IFS 1614 test -z "$as_dir" && as_dir=. 1615 echo "PATH: $as_dir" 1616done 1617IFS=$as_save_IFS 1618 1619} >&5 1620 1621cat >&5 <<_ACEOF 1622 1623 1624## ----------- ## 1625## Core tests. ## 1626## ----------- ## 1627 1628_ACEOF 1629 1630 1631# Keep a trace of the command line. 1632# Strip out --no-create and --no-recursion so they do not pile up. 1633# Strip out --silent because we don't want to record it for future runs. 1634# Also quote any args containing shell meta-characters. 1635# Make two passes to allow for proper duplicate-argument suppression. 1636ac_configure_args= 1637ac_configure_args0= 1638ac_configure_args1= 1639ac_must_keep_next=false 1640for ac_pass in 1 2 1641do 1642 for ac_arg 1643 do 1644 case $ac_arg in 1645 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1647 | -silent | --silent | --silen | --sile | --sil) 1648 continue ;; 1649 *\'*) 1650 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1651 esac 1652 case $ac_pass in 1653 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1654 2) 1655 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1656 if test $ac_must_keep_next = true; then 1657 ac_must_keep_next=false # Got value, back to normal. 1658 else 1659 case $ac_arg in 1660 *=* | --config-cache | -C | -disable-* | --disable-* \ 1661 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1662 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1663 | -with-* | --with-* | -without-* | --without-* | --x) 1664 case "$ac_configure_args0 " in 1665 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1666 esac 1667 ;; 1668 -* ) ac_must_keep_next=true ;; 1669 esac 1670 fi 1671 ac_configure_args="$ac_configure_args '$ac_arg'" 1672 ;; 1673 esac 1674 done 1675done 1676$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1677$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1678 1679# When interrupted or exit'd, cleanup temporary files, and complete 1680# config.log. We remove comments because anyway the quotes in there 1681# would cause problems or look ugly. 1682# WARNING: Use '\'' to represent an apostrophe within the trap. 1683# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1684trap 'exit_status=$? 1685 # Save into config.log some information that might help in debugging. 1686 { 1687 echo 1688 1689 cat <<\_ASBOX 1690## ---------------- ## 1691## Cache variables. ## 1692## ---------------- ## 1693_ASBOX 1694 echo 1695 # The following way of writing the cache mishandles newlines in values, 1696( 1697 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1698 eval ac_val=\$$ac_var 1699 case $ac_val in #( 1700 *${as_nl}*) 1701 case $ac_var in #( 1702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1703echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1704 esac 1705 case $ac_var in #( 1706 _ | IFS | as_nl) ;; #( 1707 *) $as_unset $ac_var ;; 1708 esac ;; 1709 esac 1710 done 1711 (set) 2>&1 | 1712 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1713 *${as_nl}ac_space=\ *) 1714 sed -n \ 1715 "s/'\''/'\''\\\\'\'''\''/g; 1716 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1717 ;; #( 1718 *) 1719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1720 ;; 1721 esac | 1722 sort 1723) 1724 echo 1725 1726 cat <<\_ASBOX 1727## ----------------- ## 1728## Output variables. ## 1729## ----------------- ## 1730_ASBOX 1731 echo 1732 for ac_var in $ac_subst_vars 1733 do 1734 eval ac_val=\$$ac_var 1735 case $ac_val in 1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1737 esac 1738 echo "$ac_var='\''$ac_val'\''" 1739 done | sort 1740 echo 1741 1742 if test -n "$ac_subst_files"; then 1743 cat <<\_ASBOX 1744## ------------------- ## 1745## File substitutions. ## 1746## ------------------- ## 1747_ASBOX 1748 echo 1749 for ac_var in $ac_subst_files 1750 do 1751 eval ac_val=\$$ac_var 1752 case $ac_val in 1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1754 esac 1755 echo "$ac_var='\''$ac_val'\''" 1756 done | sort 1757 echo 1758 fi 1759 1760 if test -s confdefs.h; then 1761 cat <<\_ASBOX 1762## ----------- ## 1763## confdefs.h. ## 1764## ----------- ## 1765_ASBOX 1766 echo 1767 cat confdefs.h 1768 echo 1769 fi 1770 test "$ac_signal" != 0 && 1771 echo "$as_me: caught signal $ac_signal" 1772 echo "$as_me: exit $exit_status" 1773 } >&5 1774 rm -f core *.core core.conftest.* && 1775 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1776 exit $exit_status 1777' 0 1778for ac_signal in 1 2 13 15; do 1779 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1780done 1781ac_signal=0 1782 1783# confdefs.h avoids OS command line length limits that DEFS can exceed. 1784rm -f -r conftest* confdefs.h 1785 1786# Predefined preprocessor variables. 1787 1788cat >>confdefs.h <<_ACEOF 1789#define PACKAGE_NAME "$PACKAGE_NAME" 1790_ACEOF 1791 1792 1793cat >>confdefs.h <<_ACEOF 1794#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1795_ACEOF 1796 1797 1798cat >>confdefs.h <<_ACEOF 1799#define PACKAGE_VERSION "$PACKAGE_VERSION" 1800_ACEOF 1801 1802 1803cat >>confdefs.h <<_ACEOF 1804#define PACKAGE_STRING "$PACKAGE_STRING" 1805_ACEOF 1806 1807 1808cat >>confdefs.h <<_ACEOF 1809#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1810_ACEOF 1811 1812 1813# Let the site file select an alternate cache file if it wants to. 1814# Prefer explicitly selected file to automatically selected ones. 1815if test -n "$CONFIG_SITE"; then 1816 set x "$CONFIG_SITE" 1817elif test "x$prefix" != xNONE; then 1818 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1819else 1820 set x "$ac_default_prefix/share/config.site" \ 1821 "$ac_default_prefix/etc/config.site" 1822fi 1823shift 1824for ac_site_file 1825do 1826 if test -r "$ac_site_file"; then 1827 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1828echo "$as_me: loading site script $ac_site_file" >&6;} 1829 sed 's/^/| /' "$ac_site_file" >&5 1830 . "$ac_site_file" 1831 fi 1832done 1833 1834if test -r "$cache_file"; then 1835 # Some versions of bash will fail to source /dev/null (special 1836 # files actually), so we avoid doing that. 1837 if test -f "$cache_file"; then 1838 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1839echo "$as_me: loading cache $cache_file" >&6;} 1840 case $cache_file in 1841 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1842 *) . "./$cache_file";; 1843 esac 1844 fi 1845else 1846 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1847echo "$as_me: creating cache $cache_file" >&6;} 1848 >$cache_file 1849fi 1850 1851# Check that the precious variables saved in the cache have kept the same 1852# value. 1853ac_cache_corrupted=false 1854for ac_var in $ac_precious_vars; do 1855 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1856 eval ac_new_set=\$ac_env_${ac_var}_set 1857 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1858 eval ac_new_val=\$ac_env_${ac_var}_value 1859 case $ac_old_set,$ac_new_set in 1860 set,) 1861 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1862echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1863 ac_cache_corrupted=: ;; 1864 ,set) 1865 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1866echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1867 ac_cache_corrupted=: ;; 1868 ,);; 1869 *) 1870 if test "x$ac_old_val" != "x$ac_new_val"; then 1871 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1872echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1873 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1874echo "$as_me: former value: $ac_old_val" >&2;} 1875 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1876echo "$as_me: current value: $ac_new_val" >&2;} 1877 ac_cache_corrupted=: 1878 fi;; 1879 esac 1880 # Pass precious variables to config.status. 1881 if test "$ac_new_set" = set; then 1882 case $ac_new_val in 1883 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1884 *) ac_arg=$ac_var=$ac_new_val ;; 1885 esac 1886 case " $ac_configure_args " in 1887 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1888 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1889 esac 1890 fi 1891done 1892if $ac_cache_corrupted; then 1893 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1894echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1895 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1896echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1897 { (exit 1); exit 1; }; } 1898fi 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924ac_ext=c 1925ac_cpp='$CPP $CPPFLAGS' 1926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1928ac_compiler_gnu=$ac_cv_c_compiler_gnu 1929 1930 1931 1932cat >>confdefs.h <<\_ACEOF 1933#define LLVM_VERSION_MAJOR 3 1934_ACEOF 1935 1936 1937cat >>confdefs.h <<\_ACEOF 1938#define LLVM_VERSION_MINOR 3 1939_ACEOF 1940 1941 1942LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign." 1943 1944 1945 1946 1947 1948 1949 1950ac_aux_dir= 1951for ac_dir in autoconf "$srcdir"/autoconf; do 1952 if test -f "$ac_dir/install-sh"; then 1953 ac_aux_dir=$ac_dir 1954 ac_install_sh="$ac_aux_dir/install-sh -c" 1955 break 1956 elif test -f "$ac_dir/install.sh"; then 1957 ac_aux_dir=$ac_dir 1958 ac_install_sh="$ac_aux_dir/install.sh -c" 1959 break 1960 elif test -f "$ac_dir/shtool"; then 1961 ac_aux_dir=$ac_dir 1962 ac_install_sh="$ac_aux_dir/shtool install -c" 1963 break 1964 fi 1965done 1966if test -z "$ac_aux_dir"; then 1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1968echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1969 { (exit 1); exit 1; }; } 1970fi 1971 1972# These three variables are undocumented and unsupported, 1973# and are intended to be withdrawn in a future Autoconf release. 1974# They can cause serious problems if a builder's source tree is in a directory 1975# whose full name contains unusual characters. 1976ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1977ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1978ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1979 1980 1981 1982if test ${srcdir} != "." ; then 1983 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1984 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1985echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1986 { (exit 1); exit 1; }; } 1987 fi 1988fi 1989 1990${CFLAGS=} 1991${CXXFLAGS=} 1992 1993ac_ext=c 1994ac_cpp='$CPP $CPPFLAGS' 1995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1997ac_compiler_gnu=$ac_cv_c_compiler_gnu 1998if test -n "$ac_tool_prefix"; then 1999 for ac_prog in clang llvm-gcc gcc 2000 do 2001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2002set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2003{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2005if test "${ac_cv_prog_CC+set}" = set; then 2006 echo $ECHO_N "(cached) $ECHO_C" >&6 2007else 2008 if test -n "$CC"; then 2009 ac_cv_prog_CC="$CC" # Let the user override the test. 2010else 2011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2012for as_dir in $PATH 2013do 2014 IFS=$as_save_IFS 2015 test -z "$as_dir" && as_dir=. 2016 for ac_exec_ext in '' $ac_executable_extensions; do 2017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2020 break 2 2021 fi 2022done 2023done 2024IFS=$as_save_IFS 2025 2026fi 2027fi 2028CC=$ac_cv_prog_CC 2029if test -n "$CC"; then 2030 { echo "$as_me:$LINENO: result: $CC" >&5 2031echo "${ECHO_T}$CC" >&6; } 2032else 2033 { echo "$as_me:$LINENO: result: no" >&5 2034echo "${ECHO_T}no" >&6; } 2035fi 2036 2037 2038 test -n "$CC" && break 2039 done 2040fi 2041if test -z "$CC"; then 2042 ac_ct_CC=$CC 2043 for ac_prog in clang llvm-gcc gcc 2044do 2045 # Extract the first word of "$ac_prog", so it can be a program name with args. 2046set dummy $ac_prog; ac_word=$2 2047{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2050 echo $ECHO_N "(cached) $ECHO_C" >&6 2051else 2052 if test -n "$ac_ct_CC"; then 2053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2054else 2055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2056for as_dir in $PATH 2057do 2058 IFS=$as_save_IFS 2059 test -z "$as_dir" && as_dir=. 2060 for ac_exec_ext in '' $ac_executable_extensions; do 2061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2062 ac_cv_prog_ac_ct_CC="$ac_prog" 2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2064 break 2 2065 fi 2066done 2067done 2068IFS=$as_save_IFS 2069 2070fi 2071fi 2072ac_ct_CC=$ac_cv_prog_ac_ct_CC 2073if test -n "$ac_ct_CC"; then 2074 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2075echo "${ECHO_T}$ac_ct_CC" >&6; } 2076else 2077 { echo "$as_me:$LINENO: result: no" >&5 2078echo "${ECHO_T}no" >&6; } 2079fi 2080 2081 2082 test -n "$ac_ct_CC" && break 2083done 2084 2085 if test "x$ac_ct_CC" = x; then 2086 CC="" 2087 else 2088 case $cross_compiling:$ac_tool_warned in 2089yes:) 2090{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2091whose name does not start with the host triplet. If you think this 2092configuration is useful to you, please write to autoconf@gnu.org." >&5 2093echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2094whose name does not start with the host triplet. If you think this 2095configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2096ac_tool_warned=yes ;; 2097esac 2098 CC=$ac_ct_CC 2099 fi 2100fi 2101 2102 2103test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2104See \`config.log' for more details." >&5 2105echo "$as_me: error: no acceptable C compiler found in \$PATH 2106See \`config.log' for more details." >&2;} 2107 { (exit 1); exit 1; }; } 2108 2109# Provide some information about the compiler. 2110echo "$as_me:$LINENO: checking for C compiler version" >&5 2111ac_compiler=`set X $ac_compile; echo $2` 2112{ (ac_try="$ac_compiler --version >&5" 2113case "(($ac_try" in 2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2115 *) ac_try_echo=$ac_try;; 2116esac 2117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2118 (eval "$ac_compiler --version >&5") 2>&5 2119 ac_status=$? 2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2121 (exit $ac_status); } 2122{ (ac_try="$ac_compiler -v >&5" 2123case "(($ac_try" in 2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2125 *) ac_try_echo=$ac_try;; 2126esac 2127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2128 (eval "$ac_compiler -v >&5") 2>&5 2129 ac_status=$? 2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2131 (exit $ac_status); } 2132{ (ac_try="$ac_compiler -V >&5" 2133case "(($ac_try" in 2134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2135 *) ac_try_echo=$ac_try;; 2136esac 2137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2138 (eval "$ac_compiler -V >&5") 2>&5 2139 ac_status=$? 2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2141 (exit $ac_status); } 2142 2143cat >conftest.$ac_ext <<_ACEOF 2144/* confdefs.h. */ 2145_ACEOF 2146cat confdefs.h >>conftest.$ac_ext 2147cat >>conftest.$ac_ext <<_ACEOF 2148/* end confdefs.h. */ 2149 2150int 2151main () 2152{ 2153 2154 ; 2155 return 0; 2156} 2157_ACEOF 2158ac_clean_files_save=$ac_clean_files 2159ac_clean_files="$ac_clean_files a.out a.exe b.out" 2160# Try to create an executable without -o first, disregard a.out. 2161# It will help us diagnose broken compilers, and finding out an intuition 2162# of exeext. 2163{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2164echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2165ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2166# 2167# List of possible output files, starting from the most likely. 2168# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2169# only as a last resort. b.out is created by i960 compilers. 2170ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2171# 2172# The IRIX 6 linker writes into existing files which may not be 2173# executable, retaining their permissions. Remove them first so a 2174# subsequent execution test works. 2175ac_rmfiles= 2176for ac_file in $ac_files 2177do 2178 case $ac_file in 2179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2180 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2181 esac 2182done 2183rm -f $ac_rmfiles 2184 2185if { (ac_try="$ac_link_default" 2186case "(($ac_try" in 2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2188 *) ac_try_echo=$ac_try;; 2189esac 2190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2191 (eval "$ac_link_default") 2>&5 2192 ac_status=$? 2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2194 (exit $ac_status); }; then 2195 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2196# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2197# in a Makefile. We should not override ac_cv_exeext if it was cached, 2198# so that the user can short-circuit this test for compilers unknown to 2199# Autoconf. 2200for ac_file in $ac_files 2201do 2202 test -f "$ac_file" || continue 2203 case $ac_file in 2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2205 ;; 2206 [ab].out ) 2207 # We found the default executable, but exeext='' is most 2208 # certainly right. 2209 break;; 2210 *.* ) 2211 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2212 then :; else 2213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2214 fi 2215 # We set ac_cv_exeext here because the later test for it is not 2216 # safe: cross compilers may not add the suffix if given an `-o' 2217 # argument, so we may need to know it at that point already. 2218 # Even if this section looks crufty: it has the advantage of 2219 # actually working. 2220 break;; 2221 * ) 2222 break;; 2223 esac 2224done 2225test "$ac_cv_exeext" = no && ac_cv_exeext= 2226 2227else 2228 echo "$as_me: failed program was:" >&5 2229sed 's/^/| /' conftest.$ac_ext >&5 2230 2231{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2232See \`config.log' for more details." >&5 2233echo "$as_me: error: C compiler cannot create executables 2234See \`config.log' for more details." >&2;} 2235 { (exit 77); exit 77; }; } 2236fi 2237 2238ac_exeext=$ac_cv_exeext 2239{ echo "$as_me:$LINENO: result: $ac_file" >&5 2240echo "${ECHO_T}$ac_file" >&6; } 2241 2242# Check that the compiler produces executables we can run. If not, either 2243# the compiler is broken, or we cross compile. 2244{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2245echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2246# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2247# If not cross compiling, check that we can run a simple program. 2248if test "$cross_compiling" != yes; then 2249 if { ac_try='./$ac_file' 2250 { (case "(($ac_try" in 2251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2252 *) ac_try_echo=$ac_try;; 2253esac 2254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2255 (eval "$ac_try") 2>&5 2256 ac_status=$? 2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2258 (exit $ac_status); }; }; then 2259 cross_compiling=no 2260 else 2261 if test "$cross_compiling" = maybe; then 2262 cross_compiling=yes 2263 else 2264 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2265If you meant to cross compile, use \`--host'. 2266See \`config.log' for more details." >&5 2267echo "$as_me: error: cannot run C compiled programs. 2268If you meant to cross compile, use \`--host'. 2269See \`config.log' for more details." >&2;} 2270 { (exit 1); exit 1; }; } 2271 fi 2272 fi 2273fi 2274{ echo "$as_me:$LINENO: result: yes" >&5 2275echo "${ECHO_T}yes" >&6; } 2276 2277rm -f a.out a.exe conftest$ac_cv_exeext b.out 2278ac_clean_files=$ac_clean_files_save 2279# Check that the compiler produces executables we can run. If not, either 2280# the compiler is broken, or we cross compile. 2281{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2282echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2283{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2284echo "${ECHO_T}$cross_compiling" >&6; } 2285 2286{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2287echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2288if { (ac_try="$ac_link" 2289case "(($ac_try" in 2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2291 *) ac_try_echo=$ac_try;; 2292esac 2293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2294 (eval "$ac_link") 2>&5 2295 ac_status=$? 2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2297 (exit $ac_status); }; then 2298 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2299# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2300# work properly (i.e., refer to `conftest.exe'), while it won't with 2301# `rm'. 2302for ac_file in conftest.exe conftest conftest.*; do 2303 test -f "$ac_file" || continue 2304 case $ac_file in 2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2307 break;; 2308 * ) break;; 2309 esac 2310done 2311else 2312 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2313See \`config.log' for more details." >&5 2314echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2315See \`config.log' for more details." >&2;} 2316 { (exit 1); exit 1; }; } 2317fi 2318 2319rm -f conftest$ac_cv_exeext 2320{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2321echo "${ECHO_T}$ac_cv_exeext" >&6; } 2322 2323rm -f conftest.$ac_ext 2324EXEEXT=$ac_cv_exeext 2325ac_exeext=$EXEEXT 2326{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2327echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2328if test "${ac_cv_objext+set}" = set; then 2329 echo $ECHO_N "(cached) $ECHO_C" >&6 2330else 2331 cat >conftest.$ac_ext <<_ACEOF 2332/* confdefs.h. */ 2333_ACEOF 2334cat confdefs.h >>conftest.$ac_ext 2335cat >>conftest.$ac_ext <<_ACEOF 2336/* end confdefs.h. */ 2337 2338int 2339main () 2340{ 2341 2342 ; 2343 return 0; 2344} 2345_ACEOF 2346rm -f conftest.o conftest.obj 2347if { (ac_try="$ac_compile" 2348case "(($ac_try" in 2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2350 *) ac_try_echo=$ac_try;; 2351esac 2352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2353 (eval "$ac_compile") 2>&5 2354 ac_status=$? 2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2356 (exit $ac_status); }; then 2357 for ac_file in conftest.o conftest.obj conftest.*; do 2358 test -f "$ac_file" || continue; 2359 case $ac_file in 2360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2361 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2362 break;; 2363 esac 2364done 2365else 2366 echo "$as_me: failed program was:" >&5 2367sed 's/^/| /' conftest.$ac_ext >&5 2368 2369{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2370See \`config.log' for more details." >&5 2371echo "$as_me: error: cannot compute suffix of object files: cannot compile 2372See \`config.log' for more details." >&2;} 2373 { (exit 1); exit 1; }; } 2374fi 2375 2376rm -f conftest.$ac_cv_objext conftest.$ac_ext 2377fi 2378{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2379echo "${ECHO_T}$ac_cv_objext" >&6; } 2380OBJEXT=$ac_cv_objext 2381ac_objext=$OBJEXT 2382{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2383echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2384if test "${ac_cv_c_compiler_gnu+set}" = set; then 2385 echo $ECHO_N "(cached) $ECHO_C" >&6 2386else 2387 cat >conftest.$ac_ext <<_ACEOF 2388/* confdefs.h. */ 2389_ACEOF 2390cat confdefs.h >>conftest.$ac_ext 2391cat >>conftest.$ac_ext <<_ACEOF 2392/* end confdefs.h. */ 2393 2394int 2395main () 2396{ 2397#ifndef __GNUC__ 2398 choke me 2399#endif 2400 2401 ; 2402 return 0; 2403} 2404_ACEOF 2405rm -f conftest.$ac_objext 2406if { (ac_try="$ac_compile" 2407case "(($ac_try" in 2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2409 *) ac_try_echo=$ac_try;; 2410esac 2411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2412 (eval "$ac_compile") 2>conftest.er1 2413 ac_status=$? 2414 grep -v '^ *+' conftest.er1 >conftest.err 2415 rm -f conftest.er1 2416 cat conftest.err >&5 2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2418 (exit $ac_status); } && 2419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2420 { (case "(($ac_try" in 2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2422 *) ac_try_echo=$ac_try;; 2423esac 2424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2425 (eval "$ac_try") 2>&5 2426 ac_status=$? 2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2428 (exit $ac_status); }; } && 2429 { ac_try='test -s conftest.$ac_objext' 2430 { (case "(($ac_try" in 2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2432 *) ac_try_echo=$ac_try;; 2433esac 2434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2435 (eval "$ac_try") 2>&5 2436 ac_status=$? 2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2438 (exit $ac_status); }; }; then 2439 ac_compiler_gnu=yes 2440else 2441 echo "$as_me: failed program was:" >&5 2442sed 's/^/| /' conftest.$ac_ext >&5 2443 2444 ac_compiler_gnu=no 2445fi 2446 2447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2448ac_cv_c_compiler_gnu=$ac_compiler_gnu 2449 2450fi 2451{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2452echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2453GCC=`test $ac_compiler_gnu = yes && echo yes` 2454ac_test_CFLAGS=${CFLAGS+set} 2455ac_save_CFLAGS=$CFLAGS 2456{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2457echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2458if test "${ac_cv_prog_cc_g+set}" = set; then 2459 echo $ECHO_N "(cached) $ECHO_C" >&6 2460else 2461 ac_save_c_werror_flag=$ac_c_werror_flag 2462 ac_c_werror_flag=yes 2463 ac_cv_prog_cc_g=no 2464 CFLAGS="-g" 2465 cat >conftest.$ac_ext <<_ACEOF 2466/* confdefs.h. */ 2467_ACEOF 2468cat confdefs.h >>conftest.$ac_ext 2469cat >>conftest.$ac_ext <<_ACEOF 2470/* end confdefs.h. */ 2471 2472int 2473main () 2474{ 2475 2476 ; 2477 return 0; 2478} 2479_ACEOF 2480rm -f conftest.$ac_objext 2481if { (ac_try="$ac_compile" 2482case "(($ac_try" in 2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2484 *) ac_try_echo=$ac_try;; 2485esac 2486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2487 (eval "$ac_compile") 2>conftest.er1 2488 ac_status=$? 2489 grep -v '^ *+' conftest.er1 >conftest.err 2490 rm -f conftest.er1 2491 cat conftest.err >&5 2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2493 (exit $ac_status); } && 2494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2495 { (case "(($ac_try" in 2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2497 *) ac_try_echo=$ac_try;; 2498esac 2499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2500 (eval "$ac_try") 2>&5 2501 ac_status=$? 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2503 (exit $ac_status); }; } && 2504 { ac_try='test -s conftest.$ac_objext' 2505 { (case "(($ac_try" in 2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2507 *) ac_try_echo=$ac_try;; 2508esac 2509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2510 (eval "$ac_try") 2>&5 2511 ac_status=$? 2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2513 (exit $ac_status); }; }; then 2514 ac_cv_prog_cc_g=yes 2515else 2516 echo "$as_me: failed program was:" >&5 2517sed 's/^/| /' conftest.$ac_ext >&5 2518 2519 CFLAGS="" 2520 cat >conftest.$ac_ext <<_ACEOF 2521/* confdefs.h. */ 2522_ACEOF 2523cat confdefs.h >>conftest.$ac_ext 2524cat >>conftest.$ac_ext <<_ACEOF 2525/* end confdefs.h. */ 2526 2527int 2528main () 2529{ 2530 2531 ; 2532 return 0; 2533} 2534_ACEOF 2535rm -f conftest.$ac_objext 2536if { (ac_try="$ac_compile" 2537case "(($ac_try" in 2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2539 *) ac_try_echo=$ac_try;; 2540esac 2541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2542 (eval "$ac_compile") 2>conftest.er1 2543 ac_status=$? 2544 grep -v '^ *+' conftest.er1 >conftest.err 2545 rm -f conftest.er1 2546 cat conftest.err >&5 2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2548 (exit $ac_status); } && 2549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2550 { (case "(($ac_try" in 2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2552 *) ac_try_echo=$ac_try;; 2553esac 2554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2555 (eval "$ac_try") 2>&5 2556 ac_status=$? 2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2558 (exit $ac_status); }; } && 2559 { ac_try='test -s conftest.$ac_objext' 2560 { (case "(($ac_try" in 2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2562 *) ac_try_echo=$ac_try;; 2563esac 2564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2565 (eval "$ac_try") 2>&5 2566 ac_status=$? 2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2568 (exit $ac_status); }; }; then 2569 : 2570else 2571 echo "$as_me: failed program was:" >&5 2572sed 's/^/| /' conftest.$ac_ext >&5 2573 2574 ac_c_werror_flag=$ac_save_c_werror_flag 2575 CFLAGS="-g" 2576 cat >conftest.$ac_ext <<_ACEOF 2577/* confdefs.h. */ 2578_ACEOF 2579cat confdefs.h >>conftest.$ac_ext 2580cat >>conftest.$ac_ext <<_ACEOF 2581/* end confdefs.h. */ 2582 2583int 2584main () 2585{ 2586 2587 ; 2588 return 0; 2589} 2590_ACEOF 2591rm -f conftest.$ac_objext 2592if { (ac_try="$ac_compile" 2593case "(($ac_try" in 2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2595 *) ac_try_echo=$ac_try;; 2596esac 2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2598 (eval "$ac_compile") 2>conftest.er1 2599 ac_status=$? 2600 grep -v '^ *+' conftest.er1 >conftest.err 2601 rm -f conftest.er1 2602 cat conftest.err >&5 2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2604 (exit $ac_status); } && 2605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2606 { (case "(($ac_try" in 2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2608 *) ac_try_echo=$ac_try;; 2609esac 2610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2611 (eval "$ac_try") 2>&5 2612 ac_status=$? 2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2614 (exit $ac_status); }; } && 2615 { ac_try='test -s conftest.$ac_objext' 2616 { (case "(($ac_try" in 2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2618 *) ac_try_echo=$ac_try;; 2619esac 2620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2621 (eval "$ac_try") 2>&5 2622 ac_status=$? 2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2624 (exit $ac_status); }; }; then 2625 ac_cv_prog_cc_g=yes 2626else 2627 echo "$as_me: failed program was:" >&5 2628sed 's/^/| /' conftest.$ac_ext >&5 2629 2630 2631fi 2632 2633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2634fi 2635 2636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2637fi 2638 2639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2640 ac_c_werror_flag=$ac_save_c_werror_flag 2641fi 2642{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2643echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2644if test "$ac_test_CFLAGS" = set; then 2645 CFLAGS=$ac_save_CFLAGS 2646elif test $ac_cv_prog_cc_g = yes; then 2647 if test "$GCC" = yes; then 2648 CFLAGS="-g -O2" 2649 else 2650 CFLAGS="-g" 2651 fi 2652else 2653 if test "$GCC" = yes; then 2654 CFLAGS="-O2" 2655 else 2656 CFLAGS= 2657 fi 2658fi 2659{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2660echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2661if test "${ac_cv_prog_cc_c89+set}" = set; then 2662 echo $ECHO_N "(cached) $ECHO_C" >&6 2663else 2664 ac_cv_prog_cc_c89=no 2665ac_save_CC=$CC 2666cat >conftest.$ac_ext <<_ACEOF 2667/* confdefs.h. */ 2668_ACEOF 2669cat confdefs.h >>conftest.$ac_ext 2670cat >>conftest.$ac_ext <<_ACEOF 2671/* end confdefs.h. */ 2672#include <stdarg.h> 2673#include <stdio.h> 2674#include <sys/types.h> 2675#include <sys/stat.h> 2676/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2677struct buf { int x; }; 2678FILE * (*rcsopen) (struct buf *, struct stat *, int); 2679static char *e (p, i) 2680 char **p; 2681 int i; 2682{ 2683 return p[i]; 2684} 2685static char *f (char * (*g) (char **, int), char **p, ...) 2686{ 2687 char *s; 2688 va_list v; 2689 va_start (v,p); 2690 s = g (p, va_arg (v,int)); 2691 va_end (v); 2692 return s; 2693} 2694 2695/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2696 function prototypes and stuff, but not '\xHH' hex character constants. 2697 These don't provoke an error unfortunately, instead are silently treated 2698 as 'x'. The following induces an error, until -std is added to get 2699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2700 array size at least. It's necessary to write '\x00'==0 to get something 2701 that's true only with -std. */ 2702int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2703 2704/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2705 inside strings and character constants. */ 2706#define FOO(x) 'x' 2707int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2708 2709int test (int i, double x); 2710struct s1 {int (*f) (int a);}; 2711struct s2 {int (*f) (double a);}; 2712int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2713int argc; 2714char **argv; 2715int 2716main () 2717{ 2718return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2719 ; 2720 return 0; 2721} 2722_ACEOF 2723for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2725do 2726 CC="$ac_save_CC $ac_arg" 2727 rm -f conftest.$ac_objext 2728if { (ac_try="$ac_compile" 2729case "(($ac_try" in 2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2731 *) ac_try_echo=$ac_try;; 2732esac 2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2734 (eval "$ac_compile") 2>conftest.er1 2735 ac_status=$? 2736 grep -v '^ *+' conftest.er1 >conftest.err 2737 rm -f conftest.er1 2738 cat conftest.err >&5 2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2740 (exit $ac_status); } && 2741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2742 { (case "(($ac_try" in 2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2744 *) ac_try_echo=$ac_try;; 2745esac 2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2747 (eval "$ac_try") 2>&5 2748 ac_status=$? 2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2750 (exit $ac_status); }; } && 2751 { ac_try='test -s conftest.$ac_objext' 2752 { (case "(($ac_try" in 2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2754 *) ac_try_echo=$ac_try;; 2755esac 2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2757 (eval "$ac_try") 2>&5 2758 ac_status=$? 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); }; }; then 2761 ac_cv_prog_cc_c89=$ac_arg 2762else 2763 echo "$as_me: failed program was:" >&5 2764sed 's/^/| /' conftest.$ac_ext >&5 2765 2766 2767fi 2768 2769rm -f core conftest.err conftest.$ac_objext 2770 test "x$ac_cv_prog_cc_c89" != "xno" && break 2771done 2772rm -f conftest.$ac_ext 2773CC=$ac_save_CC 2774 2775fi 2776# AC_CACHE_VAL 2777case "x$ac_cv_prog_cc_c89" in 2778 x) 2779 { echo "$as_me:$LINENO: result: none needed" >&5 2780echo "${ECHO_T}none needed" >&6; } ;; 2781 xno) 2782 { echo "$as_me:$LINENO: result: unsupported" >&5 2783echo "${ECHO_T}unsupported" >&6; } ;; 2784 *) 2785 CC="$CC $ac_cv_prog_cc_c89" 2786 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2787echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2788esac 2789 2790 2791ac_ext=c 2792ac_cpp='$CPP $CPPFLAGS' 2793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2795ac_compiler_gnu=$ac_cv_c_compiler_gnu 2796 2797ac_ext=cpp 2798ac_cpp='$CXXCPP $CPPFLAGS' 2799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2802if test -z "$CXX"; then 2803 if test -n "$CCC"; then 2804 CXX=$CCC 2805 else 2806 if test -n "$ac_tool_prefix"; then 2807 for ac_prog in clang++ llvm-g++ g++ 2808 do 2809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2810set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2811{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2813if test "${ac_cv_prog_CXX+set}" = set; then 2814 echo $ECHO_N "(cached) $ECHO_C" >&6 2815else 2816 if test -n "$CXX"; then 2817 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2818else 2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2820for as_dir in $PATH 2821do 2822 IFS=$as_save_IFS 2823 test -z "$as_dir" && as_dir=. 2824 for ac_exec_ext in '' $ac_executable_extensions; do 2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2826 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2828 break 2 2829 fi 2830done 2831done 2832IFS=$as_save_IFS 2833 2834fi 2835fi 2836CXX=$ac_cv_prog_CXX 2837if test -n "$CXX"; then 2838 { echo "$as_me:$LINENO: result: $CXX" >&5 2839echo "${ECHO_T}$CXX" >&6; } 2840else 2841 { echo "$as_me:$LINENO: result: no" >&5 2842echo "${ECHO_T}no" >&6; } 2843fi 2844 2845 2846 test -n "$CXX" && break 2847 done 2848fi 2849if test -z "$CXX"; then 2850 ac_ct_CXX=$CXX 2851 for ac_prog in clang++ llvm-g++ g++ 2852do 2853 # Extract the first word of "$ac_prog", so it can be a program name with args. 2854set dummy $ac_prog; ac_word=$2 2855{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2857if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2858 echo $ECHO_N "(cached) $ECHO_C" >&6 2859else 2860 if test -n "$ac_ct_CXX"; then 2861 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2862else 2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2864for as_dir in $PATH 2865do 2866 IFS=$as_save_IFS 2867 test -z "$as_dir" && as_dir=. 2868 for ac_exec_ext in '' $ac_executable_extensions; do 2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2870 ac_cv_prog_ac_ct_CXX="$ac_prog" 2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2872 break 2 2873 fi 2874done 2875done 2876IFS=$as_save_IFS 2877 2878fi 2879fi 2880ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2881if test -n "$ac_ct_CXX"; then 2882 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2883echo "${ECHO_T}$ac_ct_CXX" >&6; } 2884else 2885 { echo "$as_me:$LINENO: result: no" >&5 2886echo "${ECHO_T}no" >&6; } 2887fi 2888 2889 2890 test -n "$ac_ct_CXX" && break 2891done 2892 2893 if test "x$ac_ct_CXX" = x; then 2894 CXX="g++" 2895 else 2896 case $cross_compiling:$ac_tool_warned in 2897yes:) 2898{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2899whose name does not start with the host triplet. If you think this 2900configuration is useful to you, please write to autoconf@gnu.org." >&5 2901echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2902whose name does not start with the host triplet. If you think this 2903configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2904ac_tool_warned=yes ;; 2905esac 2906 CXX=$ac_ct_CXX 2907 fi 2908fi 2909 2910 fi 2911fi 2912# Provide some information about the compiler. 2913echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2914ac_compiler=`set X $ac_compile; echo $2` 2915{ (ac_try="$ac_compiler --version >&5" 2916case "(($ac_try" in 2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2918 *) ac_try_echo=$ac_try;; 2919esac 2920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2921 (eval "$ac_compiler --version >&5") 2>&5 2922 ac_status=$? 2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2924 (exit $ac_status); } 2925{ (ac_try="$ac_compiler -v >&5" 2926case "(($ac_try" in 2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2928 *) ac_try_echo=$ac_try;; 2929esac 2930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2931 (eval "$ac_compiler -v >&5") 2>&5 2932 ac_status=$? 2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2934 (exit $ac_status); } 2935{ (ac_try="$ac_compiler -V >&5" 2936case "(($ac_try" in 2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2938 *) ac_try_echo=$ac_try;; 2939esac 2940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2941 (eval "$ac_compiler -V >&5") 2>&5 2942 ac_status=$? 2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2944 (exit $ac_status); } 2945 2946{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2947echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2948if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2949 echo $ECHO_N "(cached) $ECHO_C" >&6 2950else 2951 cat >conftest.$ac_ext <<_ACEOF 2952/* confdefs.h. */ 2953_ACEOF 2954cat confdefs.h >>conftest.$ac_ext 2955cat >>conftest.$ac_ext <<_ACEOF 2956/* end confdefs.h. */ 2957 2958int 2959main () 2960{ 2961#ifndef __GNUC__ 2962 choke me 2963#endif 2964 2965 ; 2966 return 0; 2967} 2968_ACEOF 2969rm -f conftest.$ac_objext 2970if { (ac_try="$ac_compile" 2971case "(($ac_try" in 2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2973 *) ac_try_echo=$ac_try;; 2974esac 2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2976 (eval "$ac_compile") 2>conftest.er1 2977 ac_status=$? 2978 grep -v '^ *+' conftest.er1 >conftest.err 2979 rm -f conftest.er1 2980 cat conftest.err >&5 2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2982 (exit $ac_status); } && 2983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2984 { (case "(($ac_try" in 2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2986 *) ac_try_echo=$ac_try;; 2987esac 2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2989 (eval "$ac_try") 2>&5 2990 ac_status=$? 2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2992 (exit $ac_status); }; } && 2993 { ac_try='test -s conftest.$ac_objext' 2994 { (case "(($ac_try" in 2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2996 *) ac_try_echo=$ac_try;; 2997esac 2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2999 (eval "$ac_try") 2>&5 3000 ac_status=$? 3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3002 (exit $ac_status); }; }; then 3003 ac_compiler_gnu=yes 3004else 3005 echo "$as_me: failed program was:" >&5 3006sed 's/^/| /' conftest.$ac_ext >&5 3007 3008 ac_compiler_gnu=no 3009fi 3010 3011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3012ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3013 3014fi 3015{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3016echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3017GXX=`test $ac_compiler_gnu = yes && echo yes` 3018ac_test_CXXFLAGS=${CXXFLAGS+set} 3019ac_save_CXXFLAGS=$CXXFLAGS 3020{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3021echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3022if test "${ac_cv_prog_cxx_g+set}" = set; then 3023 echo $ECHO_N "(cached) $ECHO_C" >&6 3024else 3025 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3026 ac_cxx_werror_flag=yes 3027 ac_cv_prog_cxx_g=no 3028 CXXFLAGS="-g" 3029 cat >conftest.$ac_ext <<_ACEOF 3030/* confdefs.h. */ 3031_ACEOF 3032cat confdefs.h >>conftest.$ac_ext 3033cat >>conftest.$ac_ext <<_ACEOF 3034/* end confdefs.h. */ 3035 3036int 3037main () 3038{ 3039 3040 ; 3041 return 0; 3042} 3043_ACEOF 3044rm -f conftest.$ac_objext 3045if { (ac_try="$ac_compile" 3046case "(($ac_try" in 3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3048 *) ac_try_echo=$ac_try;; 3049esac 3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3051 (eval "$ac_compile") 2>conftest.er1 3052 ac_status=$? 3053 grep -v '^ *+' conftest.er1 >conftest.err 3054 rm -f conftest.er1 3055 cat conftest.err >&5 3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3057 (exit $ac_status); } && 3058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3059 { (case "(($ac_try" in 3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3061 *) ac_try_echo=$ac_try;; 3062esac 3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3064 (eval "$ac_try") 2>&5 3065 ac_status=$? 3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3067 (exit $ac_status); }; } && 3068 { ac_try='test -s conftest.$ac_objext' 3069 { (case "(($ac_try" in 3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3071 *) ac_try_echo=$ac_try;; 3072esac 3073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3074 (eval "$ac_try") 2>&5 3075 ac_status=$? 3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3077 (exit $ac_status); }; }; then 3078 ac_cv_prog_cxx_g=yes 3079else 3080 echo "$as_me: failed program was:" >&5 3081sed 's/^/| /' conftest.$ac_ext >&5 3082 3083 CXXFLAGS="" 3084 cat >conftest.$ac_ext <<_ACEOF 3085/* confdefs.h. */ 3086_ACEOF 3087cat confdefs.h >>conftest.$ac_ext 3088cat >>conftest.$ac_ext <<_ACEOF 3089/* end confdefs.h. */ 3090 3091int 3092main () 3093{ 3094 3095 ; 3096 return 0; 3097} 3098_ACEOF 3099rm -f conftest.$ac_objext 3100if { (ac_try="$ac_compile" 3101case "(($ac_try" in 3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3103 *) ac_try_echo=$ac_try;; 3104esac 3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3106 (eval "$ac_compile") 2>conftest.er1 3107 ac_status=$? 3108 grep -v '^ *+' conftest.er1 >conftest.err 3109 rm -f conftest.er1 3110 cat conftest.err >&5 3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3112 (exit $ac_status); } && 3113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3114 { (case "(($ac_try" in 3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3116 *) ac_try_echo=$ac_try;; 3117esac 3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3119 (eval "$ac_try") 2>&5 3120 ac_status=$? 3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 (exit $ac_status); }; } && 3123 { ac_try='test -s conftest.$ac_objext' 3124 { (case "(($ac_try" in 3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3126 *) ac_try_echo=$ac_try;; 3127esac 3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3129 (eval "$ac_try") 2>&5 3130 ac_status=$? 3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3132 (exit $ac_status); }; }; then 3133 : 3134else 3135 echo "$as_me: failed program was:" >&5 3136sed 's/^/| /' conftest.$ac_ext >&5 3137 3138 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3139 CXXFLAGS="-g" 3140 cat >conftest.$ac_ext <<_ACEOF 3141/* confdefs.h. */ 3142_ACEOF 3143cat confdefs.h >>conftest.$ac_ext 3144cat >>conftest.$ac_ext <<_ACEOF 3145/* end confdefs.h. */ 3146 3147int 3148main () 3149{ 3150 3151 ; 3152 return 0; 3153} 3154_ACEOF 3155rm -f conftest.$ac_objext 3156if { (ac_try="$ac_compile" 3157case "(($ac_try" in 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3159 *) ac_try_echo=$ac_try;; 3160esac 3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3162 (eval "$ac_compile") 2>conftest.er1 3163 ac_status=$? 3164 grep -v '^ *+' conftest.er1 >conftest.err 3165 rm -f conftest.er1 3166 cat conftest.err >&5 3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3168 (exit $ac_status); } && 3169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3170 { (case "(($ac_try" in 3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3172 *) ac_try_echo=$ac_try;; 3173esac 3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3175 (eval "$ac_try") 2>&5 3176 ac_status=$? 3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3178 (exit $ac_status); }; } && 3179 { ac_try='test -s conftest.$ac_objext' 3180 { (case "(($ac_try" in 3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3182 *) ac_try_echo=$ac_try;; 3183esac 3184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3185 (eval "$ac_try") 2>&5 3186 ac_status=$? 3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3188 (exit $ac_status); }; }; then 3189 ac_cv_prog_cxx_g=yes 3190else 3191 echo "$as_me: failed program was:" >&5 3192sed 's/^/| /' conftest.$ac_ext >&5 3193 3194 3195fi 3196 3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3198fi 3199 3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3201fi 3202 3203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3204 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3205fi 3206{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3207echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3208if test "$ac_test_CXXFLAGS" = set; then 3209 CXXFLAGS=$ac_save_CXXFLAGS 3210elif test $ac_cv_prog_cxx_g = yes; then 3211 if test "$GXX" = yes; then 3212 CXXFLAGS="-g -O2" 3213 else 3214 CXXFLAGS="-g" 3215 fi 3216else 3217 if test "$GXX" = yes; then 3218 CXXFLAGS="-O2" 3219 else 3220 CXXFLAGS= 3221 fi 3222fi 3223ac_ext=c 3224ac_cpp='$CPP $CPPFLAGS' 3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3227ac_compiler_gnu=$ac_cv_c_compiler_gnu 3228 3229ac_ext=c 3230ac_cpp='$CPP $CPPFLAGS' 3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3233ac_compiler_gnu=$ac_cv_c_compiler_gnu 3234{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3235echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3236# On Suns, sometimes $CPP names a directory. 3237if test -n "$CPP" && test -d "$CPP"; then 3238 CPP= 3239fi 3240if test -z "$CPP"; then 3241 if test "${ac_cv_prog_CPP+set}" = set; then 3242 echo $ECHO_N "(cached) $ECHO_C" >&6 3243else 3244 # Double quotes because CPP needs to be expanded 3245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3246 do 3247 ac_preproc_ok=false 3248for ac_c_preproc_warn_flag in '' yes 3249do 3250 # Use a header file that comes with gcc, so configuring glibc 3251 # with a fresh cross-compiler works. 3252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3253 # <limits.h> exists even on freestanding compilers. 3254 # On the NeXT, cc -E runs the code through the compiler's parser, 3255 # not just through cpp. "Syntax error" is here to catch this case. 3256 cat >conftest.$ac_ext <<_ACEOF 3257/* confdefs.h. */ 3258_ACEOF 3259cat confdefs.h >>conftest.$ac_ext 3260cat >>conftest.$ac_ext <<_ACEOF 3261/* end confdefs.h. */ 3262#ifdef __STDC__ 3263# include <limits.h> 3264#else 3265# include <assert.h> 3266#endif 3267 Syntax error 3268_ACEOF 3269if { (ac_try="$ac_cpp conftest.$ac_ext" 3270case "(($ac_try" in 3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3272 *) ac_try_echo=$ac_try;; 3273esac 3274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3276 ac_status=$? 3277 grep -v '^ *+' conftest.er1 >conftest.err 3278 rm -f conftest.er1 3279 cat conftest.err >&5 3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3281 (exit $ac_status); } >/dev/null; then 3282 if test -s conftest.err; then 3283 ac_cpp_err=$ac_c_preproc_warn_flag 3284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3285 else 3286 ac_cpp_err= 3287 fi 3288else 3289 ac_cpp_err=yes 3290fi 3291if test -z "$ac_cpp_err"; then 3292 : 3293else 3294 echo "$as_me: failed program was:" >&5 3295sed 's/^/| /' conftest.$ac_ext >&5 3296 3297 # Broken: fails on valid input. 3298continue 3299fi 3300 3301rm -f conftest.err conftest.$ac_ext 3302 3303 # OK, works on sane cases. Now check whether nonexistent headers 3304 # can be detected and how. 3305 cat >conftest.$ac_ext <<_ACEOF 3306/* confdefs.h. */ 3307_ACEOF 3308cat confdefs.h >>conftest.$ac_ext 3309cat >>conftest.$ac_ext <<_ACEOF 3310/* end confdefs.h. */ 3311#include <ac_nonexistent.h> 3312_ACEOF 3313if { (ac_try="$ac_cpp conftest.$ac_ext" 3314case "(($ac_try" in 3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3316 *) ac_try_echo=$ac_try;; 3317esac 3318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3320 ac_status=$? 3321 grep -v '^ *+' conftest.er1 >conftest.err 3322 rm -f conftest.er1 3323 cat conftest.err >&5 3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3325 (exit $ac_status); } >/dev/null; then 3326 if test -s conftest.err; then 3327 ac_cpp_err=$ac_c_preproc_warn_flag 3328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3329 else 3330 ac_cpp_err= 3331 fi 3332else 3333 ac_cpp_err=yes 3334fi 3335if test -z "$ac_cpp_err"; then 3336 # Broken: success on invalid input. 3337continue 3338else 3339 echo "$as_me: failed program was:" >&5 3340sed 's/^/| /' conftest.$ac_ext >&5 3341 3342 # Passes both tests. 3343ac_preproc_ok=: 3344break 3345fi 3346 3347rm -f conftest.err conftest.$ac_ext 3348 3349done 3350# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3351rm -f conftest.err conftest.$ac_ext 3352if $ac_preproc_ok; then 3353 break 3354fi 3355 3356 done 3357 ac_cv_prog_CPP=$CPP 3358 3359fi 3360 CPP=$ac_cv_prog_CPP 3361else 3362 ac_cv_prog_CPP=$CPP 3363fi 3364{ echo "$as_me:$LINENO: result: $CPP" >&5 3365echo "${ECHO_T}$CPP" >&6; } 3366ac_preproc_ok=false 3367for ac_c_preproc_warn_flag in '' yes 3368do 3369 # Use a header file that comes with gcc, so configuring glibc 3370 # with a fresh cross-compiler works. 3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3372 # <limits.h> exists even on freestanding compilers. 3373 # On the NeXT, cc -E runs the code through the compiler's parser, 3374 # not just through cpp. "Syntax error" is here to catch this case. 3375 cat >conftest.$ac_ext <<_ACEOF 3376/* confdefs.h. */ 3377_ACEOF 3378cat confdefs.h >>conftest.$ac_ext 3379cat >>conftest.$ac_ext <<_ACEOF 3380/* end confdefs.h. */ 3381#ifdef __STDC__ 3382# include <limits.h> 3383#else 3384# include <assert.h> 3385#endif 3386 Syntax error 3387_ACEOF 3388if { (ac_try="$ac_cpp conftest.$ac_ext" 3389case "(($ac_try" in 3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3391 *) ac_try_echo=$ac_try;; 3392esac 3393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3395 ac_status=$? 3396 grep -v '^ *+' conftest.er1 >conftest.err 3397 rm -f conftest.er1 3398 cat conftest.err >&5 3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3400 (exit $ac_status); } >/dev/null; then 3401 if test -s conftest.err; then 3402 ac_cpp_err=$ac_c_preproc_warn_flag 3403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3404 else 3405 ac_cpp_err= 3406 fi 3407else 3408 ac_cpp_err=yes 3409fi 3410if test -z "$ac_cpp_err"; then 3411 : 3412else 3413 echo "$as_me: failed program was:" >&5 3414sed 's/^/| /' conftest.$ac_ext >&5 3415 3416 # Broken: fails on valid input. 3417continue 3418fi 3419 3420rm -f conftest.err conftest.$ac_ext 3421 3422 # OK, works on sane cases. Now check whether nonexistent headers 3423 # can be detected and how. 3424 cat >conftest.$ac_ext <<_ACEOF 3425/* confdefs.h. */ 3426_ACEOF 3427cat confdefs.h >>conftest.$ac_ext 3428cat >>conftest.$ac_ext <<_ACEOF 3429/* end confdefs.h. */ 3430#include <ac_nonexistent.h> 3431_ACEOF 3432if { (ac_try="$ac_cpp conftest.$ac_ext" 3433case "(($ac_try" in 3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3435 *) ac_try_echo=$ac_try;; 3436esac 3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3439 ac_status=$? 3440 grep -v '^ *+' conftest.er1 >conftest.err 3441 rm -f conftest.er1 3442 cat conftest.err >&5 3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3444 (exit $ac_status); } >/dev/null; then 3445 if test -s conftest.err; then 3446 ac_cpp_err=$ac_c_preproc_warn_flag 3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3448 else 3449 ac_cpp_err= 3450 fi 3451else 3452 ac_cpp_err=yes 3453fi 3454if test -z "$ac_cpp_err"; then 3455 # Broken: success on invalid input. 3456continue 3457else 3458 echo "$as_me: failed program was:" >&5 3459sed 's/^/| /' conftest.$ac_ext >&5 3460 3461 # Passes both tests. 3462ac_preproc_ok=: 3463break 3464fi 3465 3466rm -f conftest.err conftest.$ac_ext 3467 3468done 3469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3470rm -f conftest.err conftest.$ac_ext 3471if $ac_preproc_ok; then 3472 : 3473else 3474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3475See \`config.log' for more details." >&5 3476echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3477See \`config.log' for more details." >&2;} 3478 { (exit 1); exit 1; }; } 3479fi 3480 3481ac_ext=c 3482ac_cpp='$CPP $CPPFLAGS' 3483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3485ac_compiler_gnu=$ac_cv_c_compiler_gnu 3486 3487 3488if test "$CXX" = "clang++" ; then 3489 { echo "$as_me:$LINENO: checking whether clang works" >&5 3490echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; } 3491 ac_ext=cpp 3492ac_cpp='$CXXCPP $CPPFLAGS' 3493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3496 3497 3498cat >conftest.$ac_ext <<_ACEOF 3499/* confdefs.h. */ 3500_ACEOF 3501cat confdefs.h >>conftest.$ac_ext 3502cat >>conftest.$ac_ext <<_ACEOF 3503/* end confdefs.h. */ 3504#include <limits> 3505#if __has_include (<cxxabi.h>) 3506#include <cxxabi.h> 3507#endif 3508#if __has_include (<unwind.h>) 3509#include <unwind.h> 3510#endif 3511 3512int 3513main () 3514{ 3515 3516 ; 3517 return 0; 3518} 3519_ACEOF 3520rm -f conftest.$ac_objext 3521if { (ac_try="$ac_compile" 3522case "(($ac_try" in 3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3524 *) ac_try_echo=$ac_try;; 3525esac 3526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3527 (eval "$ac_compile") 2>conftest.er1 3528 ac_status=$? 3529 grep -v '^ *+' conftest.er1 >conftest.err 3530 rm -f conftest.er1 3531 cat conftest.err >&5 3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3533 (exit $ac_status); } && 3534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3535 { (case "(($ac_try" in 3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3537 *) ac_try_echo=$ac_try;; 3538esac 3539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3540 (eval "$ac_try") 2>&5 3541 ac_status=$? 3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3543 (exit $ac_status); }; } && 3544 { ac_try='test -s conftest.$ac_objext' 3545 { (case "(($ac_try" in 3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3547 *) ac_try_echo=$ac_try;; 3548esac 3549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3550 (eval "$ac_try") 2>&5 3551 ac_status=$? 3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3553 (exit $ac_status); }; }; then 3554 3555 { echo "$as_me:$LINENO: result: yes" >&5 3556echo "${ECHO_T}yes" >&6; } 3557 3558else 3559 echo "$as_me: failed program was:" >&5 3560sed 's/^/| /' conftest.$ac_ext >&5 3561 3562 3563 { echo "$as_me:$LINENO: result: no" >&5 3564echo "${ECHO_T}no" >&6; } 3565 { { 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 3566echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;} 3567 { (exit 1); exit 1; }; } 3568 3569fi 3570 3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3572 ac_ext=c 3573ac_cpp='$CPP $CPPFLAGS' 3574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3576ac_compiler_gnu=$ac_cv_c_compiler_gnu 3577 3578fi 3579 3580 3581 3582if test -d ${srcdir}/projects/llvm-gcc ; then 3583 subdirs="$subdirs projects/llvm-gcc" 3584 3585fi 3586 3587if test -d ${srcdir}/projects/test-suite ; then 3588 subdirs="$subdirs projects/test-suite" 3589 3590fi 3591 3592if test -d ${srcdir}/projects/llvm-test ; then 3593 subdirs="$subdirs projects/llvm-test" 3594 3595fi 3596 3597if test -d ${srcdir}/projects/poolalloc ; then 3598 subdirs="$subdirs projects/poolalloc" 3599 3600fi 3601 3602if test -d ${srcdir}/projects/llvm-poolalloc ; then 3603 subdirs="$subdirs projects/llvm-poolalloc" 3604 3605fi 3606 3607for i in `ls ${srcdir}/projects` 3608do 3609 if test -d ${srcdir}/projects/${i} ; then 3610 case ${i} in 3611 sample) subdirs="$subdirs projects/sample" 3612 ;; 3613 privbracket) subdirs="$subdirs projects/privbracket" 3614 ;; 3615 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 3616 ;; 3617 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 3618;; 3619 llvm-java) subdirs="$subdirs projects/llvm-java" 3620 ;; 3621 llvm-tv) subdirs="$subdirs projects/llvm-tv" 3622 ;; 3623 safecode) subdirs="$subdirs projects/safecode" 3624 ;; 3625 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 3626 ;; 3627 compiler-rt) ;; 3628 llvm-gcc) ;; 3629 test-suite) ;; 3630 llvm-test) ;; 3631 poolalloc) ;; 3632 llvm-poolalloc) ;; 3633 *) 3634 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3635echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3636 ;; 3637 esac 3638 fi 3639done 3640 3641# Check whether --enable-polly was given. 3642if test "${enable_polly+set}" = set; then 3643 enableval=$enable_polly; 3644else 3645 enableval=default 3646fi 3647 3648case "$enableval" in 3649 yes) ENABLE_POLLY=1 3650 ;; 3651 no) ENABLE_POLLY=0 3652 ;; 3653 default) ENABLE_POLLY=1 3654 ;; 3655 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3656echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3657 { (exit 1); exit 1; }; } ;; 3658esac 3659 3660 3661if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3662 LLVM_HAS_POLLY=1 3663 3664 subdirs="$subdirs tools/polly" 3665 3666fi 3667 3668 3669# Make sure we can run config.sub. 3670$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3671 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3672echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3673 { (exit 1); exit 1; }; } 3674 3675{ echo "$as_me:$LINENO: checking build system type" >&5 3676echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3677if test "${ac_cv_build+set}" = set; then 3678 echo $ECHO_N "(cached) $ECHO_C" >&6 3679else 3680 ac_build_alias=$build_alias 3681test "x$ac_build_alias" = x && 3682 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3683test "x$ac_build_alias" = x && 3684 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3685echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3686 { (exit 1); exit 1; }; } 3687ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3688 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3689echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3690 { (exit 1); exit 1; }; } 3691 3692fi 3693{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3694echo "${ECHO_T}$ac_cv_build" >&6; } 3695case $ac_cv_build in 3696*-*-*) ;; 3697*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3698echo "$as_me: error: invalid value of canonical build" >&2;} 3699 { (exit 1); exit 1; }; };; 3700esac 3701build=$ac_cv_build 3702ac_save_IFS=$IFS; IFS='-' 3703set x $ac_cv_build 3704shift 3705build_cpu=$1 3706build_vendor=$2 3707shift; shift 3708# Remember, the first character of IFS is used to create $*, 3709# except with old shells: 3710build_os=$* 3711IFS=$ac_save_IFS 3712case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3713 3714 3715{ echo "$as_me:$LINENO: checking host system type" >&5 3716echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3717if test "${ac_cv_host+set}" = set; then 3718 echo $ECHO_N "(cached) $ECHO_C" >&6 3719else 3720 if test "x$host_alias" = x; then 3721 ac_cv_host=$ac_cv_build 3722else 3723 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3724 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3725echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3726 { (exit 1); exit 1; }; } 3727fi 3728 3729fi 3730{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3731echo "${ECHO_T}$ac_cv_host" >&6; } 3732case $ac_cv_host in 3733*-*-*) ;; 3734*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3735echo "$as_me: error: invalid value of canonical host" >&2;} 3736 { (exit 1); exit 1; }; };; 3737esac 3738host=$ac_cv_host 3739ac_save_IFS=$IFS; IFS='-' 3740set x $ac_cv_host 3741shift 3742host_cpu=$1 3743host_vendor=$2 3744shift; shift 3745# Remember, the first character of IFS is used to create $*, 3746# except with old shells: 3747host_os=$* 3748IFS=$ac_save_IFS 3749case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3750 3751 3752{ echo "$as_me:$LINENO: checking target system type" >&5 3753echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3754if test "${ac_cv_target+set}" = set; then 3755 echo $ECHO_N "(cached) $ECHO_C" >&6 3756else 3757 if test "x$target_alias" = x; then 3758 ac_cv_target=$ac_cv_host 3759else 3760 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3761 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3762echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3763 { (exit 1); exit 1; }; } 3764fi 3765 3766fi 3767{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3768echo "${ECHO_T}$ac_cv_target" >&6; } 3769case $ac_cv_target in 3770*-*-*) ;; 3771*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3772echo "$as_me: error: invalid value of canonical target" >&2;} 3773 { (exit 1); exit 1; }; };; 3774esac 3775target=$ac_cv_target 3776ac_save_IFS=$IFS; IFS='-' 3777set x $ac_cv_target 3778shift 3779target_cpu=$1 3780target_vendor=$2 3781shift; shift 3782# Remember, the first character of IFS is used to create $*, 3783# except with old shells: 3784target_os=$* 3785IFS=$ac_save_IFS 3786case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3787 3788 3789# The aliases save the names the user supplied, while $host etc. 3790# will get canonicalized. 3791test -n "$target_alias" && 3792 test "$program_prefix$program_suffix$program_transform_name" = \ 3793 NONENONEs,x,x, && 3794 program_prefix=${target_alias}- 3795 3796{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3797echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3798if test "${llvm_cv_os_type+set}" = set; then 3799 echo $ECHO_N "(cached) $ECHO_C" >&6 3800else 3801 case $host in 3802 *-*-aix*) 3803 llvm_cv_link_all_option="-Wl,--whole-archive" 3804 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3805 llvm_cv_os_type="AIX" 3806 llvm_cv_platform_type="Unix" ;; 3807 *-*-irix*) 3808 llvm_cv_link_all_option="-Wl,--whole-archive" 3809 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3810 llvm_cv_os_type="IRIX" 3811 llvm_cv_platform_type="Unix" ;; 3812 *-*-cygwin*) 3813 llvm_cv_link_all_option="-Wl,--whole-archive" 3814 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3815 llvm_cv_os_type="Cygwin" 3816 llvm_cv_platform_type="Unix" ;; 3817 *-*-darwin*) 3818 llvm_cv_link_all_option="-Wl,-all_load" 3819 llvm_cv_no_link_all_option="-Wl,-noall_load" 3820 llvm_cv_os_type="Darwin" 3821 llvm_cv_platform_type="Unix" ;; 3822 *-*-minix*) 3823 llvm_cv_link_all_option="-Wl,-all_load" 3824 llvm_cv_no_link_all_option="-Wl,-noall_load" 3825 llvm_cv_os_type="Minix" 3826 llvm_cv_platform_type="Unix" ;; 3827 *-*-freebsd* | *-*-kfreebsd-gnu) 3828 llvm_cv_link_all_option="-Wl,--whole-archive" 3829 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3830 llvm_cv_os_type="FreeBSD" 3831 llvm_cv_platform_type="Unix" ;; 3832 *-*-openbsd*) 3833 llvm_cv_link_all_option="-Wl,--whole-archive" 3834 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3835 llvm_cv_os_type="OpenBSD" 3836 llvm_cv_platform_type="Unix" ;; 3837 *-*-netbsd*) 3838 llvm_cv_link_all_option="-Wl,--whole-archive" 3839 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3840 llvm_cv_os_type="NetBSD" 3841 llvm_cv_platform_type="Unix" ;; 3842 *-*-dragonfly*) 3843 llvm_cv_link_all_option="-Wl,--whole-archive" 3844 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3845 llvm_cv_os_type="DragonFly" 3846 llvm_cv_platform_type="Unix" ;; 3847 *-*-hpux*) 3848 llvm_cv_link_all_option="-Wl,--whole-archive" 3849 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3850 llvm_cv_os_type="HP-UX" 3851 llvm_cv_platform_type="Unix" ;; 3852 *-*-interix*) 3853 llvm_cv_link_all_option="-Wl,--whole-archive" 3854 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3855 llvm_cv_os_type="Interix" 3856 llvm_cv_platform_type="Unix" ;; 3857 *-*-linux*) 3858 llvm_cv_link_all_option="-Wl,--whole-archive" 3859 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3860 llvm_cv_os_type="Linux" 3861 llvm_cv_platform_type="Unix" ;; 3862 *-*-gnu*) 3863 llvm_cv_link_all_option="-Wl,--whole-archive" 3864 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3865 llvm_cv_os_type="GNU" 3866 llvm_cv_platform_type="Unix" ;; 3867 *-*-solaris*) 3868 llvm_cv_link_all_option="-Wl,-z,allextract" 3869 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3870 llvm_cv_os_type="SunOS" 3871 llvm_cv_platform_type="Unix" ;; 3872 *-*-auroraux*) 3873 llvm_cv_link_all_option="-Wl,-z,allextract" 3874 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3875 llvm_cv_os_type="AuroraUX" 3876 llvm_cv_platform_type="Unix" ;; 3877 *-*-win32*) 3878 llvm_cv_link_all_option="-Wl,--whole-archive" 3879 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3880 llvm_cv_os_type="Win32" 3881 llvm_cv_platform_type="Win32" ;; 3882 *-*-mingw*) 3883 llvm_cv_link_all_option="-Wl,--whole-archive" 3884 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3885 llvm_cv_os_type="MingW" 3886 llvm_cv_platform_type="Win32" ;; 3887 *-*-haiku*) 3888 llvm_cv_link_all_option="-Wl,--whole-archive" 3889 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3890 llvm_cv_os_type="Haiku" 3891 llvm_cv_platform_type="Unix" ;; 3892 *-unknown-eabi*) 3893 llvm_cv_link_all_option="-Wl,--whole-archive" 3894 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3895 llvm_cv_os_type="Freestanding" 3896 llvm_cv_platform_type="Unix" ;; 3897 *-unknown-elf*) 3898 llvm_cv_link_all_option="-Wl,--whole-archive" 3899 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3900 llvm_cv_os_type="Freestanding" 3901 llvm_cv_platform_type="Unix" ;; 3902 *) 3903 llvm_cv_link_all_option="" 3904 llvm_cv_no_link_all_option="" 3905 llvm_cv_os_type="Unknown" 3906 llvm_cv_platform_type="Unknown" ;; 3907esac 3908fi 3909{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3910echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3911 3912{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3913echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3914if test "${llvm_cv_target_os_type+set}" = set; then 3915 echo $ECHO_N "(cached) $ECHO_C" >&6 3916else 3917 case $target in 3918 *-*-aix*) 3919 llvm_cv_target_os_type="AIX" ;; 3920 *-*-irix*) 3921 llvm_cv_target_os_type="IRIX" ;; 3922 *-*-cygwin*) 3923 llvm_cv_target_os_type="Cygwin" ;; 3924 *-*-darwin*) 3925 llvm_cv_target_os_type="Darwin" ;; 3926 *-*-minix*) 3927 llvm_cv_target_os_type="Minix" ;; 3928 *-*-freebsd* | *-*-kfreebsd-gnu) 3929 llvm_cv_target_os_type="FreeBSD" ;; 3930 *-*-openbsd*) 3931 llvm_cv_target_os_type="OpenBSD" ;; 3932 *-*-netbsd*) 3933 llvm_cv_target_os_type="NetBSD" ;; 3934 *-*-dragonfly*) 3935 llvm_cv_target_os_type="DragonFly" ;; 3936 *-*-hpux*) 3937 llvm_cv_target_os_type="HP-UX" ;; 3938 *-*-interix*) 3939 llvm_cv_target_os_type="Interix" ;; 3940 *-*-linux*) 3941 llvm_cv_target_os_type="Linux" ;; 3942 *-*-gnu*) 3943 llvm_cv_target_os_type="GNU" ;; 3944 *-*-solaris*) 3945 llvm_cv_target_os_type="SunOS" ;; 3946 *-*-auroraux*) 3947 llvm_cv_target_os_type="AuroraUX" ;; 3948 *-*-win32*) 3949 llvm_cv_target_os_type="Win32" ;; 3950 *-*-mingw*) 3951 llvm_cv_target_os_type="MingW" ;; 3952 *-*-haiku*) 3953 llvm_cv_target_os_type="Haiku" ;; 3954 *-*-rtems*) 3955 llvm_cv_target_os_type="RTEMS" ;; 3956 *-*-nacl*) 3957 llvm_cv_target_os_type="NativeClient" ;; 3958 *-unknown-eabi*) 3959 llvm_cv_target_os_type="Freestanding" ;; 3960 *) 3961 llvm_cv_target_os_type="Unknown" ;; 3962esac 3963fi 3964{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3965echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3966 3967if test "$llvm_cv_os_type" = "Unknown" ; then 3968 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3969echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3970 { (exit 1); exit 1; }; } 3971fi 3972 3973OS=$llvm_cv_os_type 3974 3975HOST_OS=$llvm_cv_os_type 3976 3977TARGET_OS=$llvm_cv_target_os_type 3978 3979 3980LINKALL=$llvm_cv_link_all_option 3981 3982NOLINKALL=$llvm_cv_no_link_all_option 3983 3984 3985case $llvm_cv_platform_type in 3986 Unix) 3987 3988cat >>confdefs.h <<\_ACEOF 3989#define LLVM_ON_UNIX 1 3990_ACEOF 3991 3992 LLVM_ON_UNIX=1 3993 3994 LLVM_ON_WIN32=0 3995 3996 ;; 3997 Win32) 3998 3999cat >>confdefs.h <<\_ACEOF 4000#define LLVM_ON_WIN32 1 4001_ACEOF 4002 4003 LLVM_ON_UNIX=0 4004 4005 LLVM_ON_WIN32=1 4006 4007 ;; 4008esac 4009 4010{ echo "$as_me:$LINENO: checking target architecture" >&5 4011echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 4012if test "${llvm_cv_target_arch+set}" = set; then 4013 echo $ECHO_N "(cached) $ECHO_C" >&6 4014else 4015 case $target in 4016 i?86-*) llvm_cv_target_arch="x86" ;; 4017 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 4018 sparc*-*) llvm_cv_target_arch="Sparc" ;; 4019 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 4020 arm*-*) llvm_cv_target_arch="ARM" ;; 4021 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 4022 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 4023 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 4024 xcore-*) llvm_cv_target_arch="XCore" ;; 4025 msp430-*) llvm_cv_target_arch="MSP430" ;; 4026 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 4027 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 4028 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 4029 s390x-*) llvm_cv_target_arch="SystemZ" ;; 4030 *) llvm_cv_target_arch="Unknown" ;; 4031esac 4032fi 4033{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 4034echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 4035 4036if test "$llvm_cv_target_arch" = "Unknown" ; then 4037 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 4038echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 4039fi 4040 4041case "$llvm_cv_target_arch" in 4042 x86) LLVM_NATIVE_ARCH="X86" ;; 4043 x86_64) LLVM_NATIVE_ARCH="X86" ;; 4044 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 4045esac 4046 4047ARCH=$llvm_cv_target_arch 4048 4049 4050case $host in 4051 i?86-*) host_arch="x86" ;; 4052 amd64-* | x86_64-*) host_arch="x86_64" ;; 4053 sparc*-*) host_arch="Sparc" ;; 4054 powerpc*-*) host_arch="PowerPC" ;; 4055 arm*-*) host_arch="ARM" ;; 4056 aarch64*-*) host_arch="AArch64" ;; 4057 mips-* | mips64-*) host_arch="Mips" ;; 4058 mipsel-* | mips64el-*) host_arch="Mips" ;; 4059 xcore-*) host_arch="XCore" ;; 4060 msp430-*) host_arch="MSP430" ;; 4061 hexagon-*) host_arch="Hexagon" ;; 4062 mblaze-*) host_arch="MBlaze" ;; 4063 s390x-*) host_arch="SystemZ" ;; 4064 *) host_arch="Unknown" ;; 4065esac 4066 4067if test "$host_arch" = "Unknown" ; then 4068 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 4069echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 4070fi 4071 4072HOST_ARCH=$host_arch 4073 4074 4075 4076 4077{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4078echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4079if test "${ac_cv_path_GREP+set}" = set; then 4080 echo $ECHO_N "(cached) $ECHO_C" >&6 4081else 4082 # Extract the first word of "grep ggrep" to use in msg output 4083if test -z "$GREP"; then 4084set dummy grep ggrep; ac_prog_name=$2 4085if test "${ac_cv_path_GREP+set}" = set; then 4086 echo $ECHO_N "(cached) $ECHO_C" >&6 4087else 4088 ac_path_GREP_found=false 4089# Loop through the user's path and test for each of PROGNAME-LIST 4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4091for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4092do 4093 IFS=$as_save_IFS 4094 test -z "$as_dir" && as_dir=. 4095 for ac_prog in grep ggrep; do 4096 for ac_exec_ext in '' $ac_executable_extensions; do 4097 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4098 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 4099 # Check for GNU ac_path_GREP and select it if it is found. 4100 # Check for GNU $ac_path_GREP 4101case `"$ac_path_GREP" --version 2>&1` in 4102*GNU*) 4103 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4104*) 4105 ac_count=0 4106 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4107 while : 4108 do 4109 cat "conftest.in" "conftest.in" >"conftest.tmp" 4110 mv "conftest.tmp" "conftest.in" 4111 cp "conftest.in" "conftest.nl" 4112 echo 'GREP' >> "conftest.nl" 4113 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4115 ac_count=`expr $ac_count + 1` 4116 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4117 # Best one so far, save it but keep looking for a better one 4118 ac_cv_path_GREP="$ac_path_GREP" 4119 ac_path_GREP_max=$ac_count 4120 fi 4121 # 10*(2^10) chars as input seems more than enough 4122 test $ac_count -gt 10 && break 4123 done 4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4125esac 4126 4127 4128 $ac_path_GREP_found && break 3 4129 done 4130done 4131 4132done 4133IFS=$as_save_IFS 4134 4135 4136fi 4137 4138GREP="$ac_cv_path_GREP" 4139if test -z "$GREP"; then 4140 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4141echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4142 { (exit 1); exit 1; }; } 4143fi 4144 4145else 4146 ac_cv_path_GREP=$GREP 4147fi 4148 4149 4150fi 4151{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4152echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4153 GREP="$ac_cv_path_GREP" 4154 4155 4156{ echo "$as_me:$LINENO: checking for egrep" >&5 4157echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4158if test "${ac_cv_path_EGREP+set}" = set; then 4159 echo $ECHO_N "(cached) $ECHO_C" >&6 4160else 4161 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4162 then ac_cv_path_EGREP="$GREP -E" 4163 else 4164 # Extract the first word of "egrep" to use in msg output 4165if test -z "$EGREP"; then 4166set dummy egrep; ac_prog_name=$2 4167if test "${ac_cv_path_EGREP+set}" = set; then 4168 echo $ECHO_N "(cached) $ECHO_C" >&6 4169else 4170 ac_path_EGREP_found=false 4171# Loop through the user's path and test for each of PROGNAME-LIST 4172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4173for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4174do 4175 IFS=$as_save_IFS 4176 test -z "$as_dir" && as_dir=. 4177 for ac_prog in egrep; do 4178 for ac_exec_ext in '' $ac_executable_extensions; do 4179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4180 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4181 # Check for GNU ac_path_EGREP and select it if it is found. 4182 # Check for GNU $ac_path_EGREP 4183case `"$ac_path_EGREP" --version 2>&1` in 4184*GNU*) 4185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4186*) 4187 ac_count=0 4188 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4189 while : 4190 do 4191 cat "conftest.in" "conftest.in" >"conftest.tmp" 4192 mv "conftest.tmp" "conftest.in" 4193 cp "conftest.in" "conftest.nl" 4194 echo 'EGREP' >> "conftest.nl" 4195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4197 ac_count=`expr $ac_count + 1` 4198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4199 # Best one so far, save it but keep looking for a better one 4200 ac_cv_path_EGREP="$ac_path_EGREP" 4201 ac_path_EGREP_max=$ac_count 4202 fi 4203 # 10*(2^10) chars as input seems more than enough 4204 test $ac_count -gt 10 && break 4205 done 4206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4207esac 4208 4209 4210 $ac_path_EGREP_found && break 3 4211 done 4212done 4213 4214done 4215IFS=$as_save_IFS 4216 4217 4218fi 4219 4220EGREP="$ac_cv_path_EGREP" 4221if test -z "$EGREP"; then 4222 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4223echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4224 { (exit 1); exit 1; }; } 4225fi 4226 4227else 4228 ac_cv_path_EGREP=$EGREP 4229fi 4230 4231 4232 fi 4233fi 4234{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4235echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4236 EGREP="$ac_cv_path_EGREP" 4237 4238 4239{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4240echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4241if test "${ac_cv_header_stdc+set}" = set; then 4242 echo $ECHO_N "(cached) $ECHO_C" >&6 4243else 4244 cat >conftest.$ac_ext <<_ACEOF 4245/* confdefs.h. */ 4246_ACEOF 4247cat confdefs.h >>conftest.$ac_ext 4248cat >>conftest.$ac_ext <<_ACEOF 4249/* end confdefs.h. */ 4250#include <stdlib.h> 4251#include <stdarg.h> 4252#include <string.h> 4253#include <float.h> 4254 4255int 4256main () 4257{ 4258 4259 ; 4260 return 0; 4261} 4262_ACEOF 4263rm -f conftest.$ac_objext 4264if { (ac_try="$ac_compile" 4265case "(($ac_try" in 4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4267 *) ac_try_echo=$ac_try;; 4268esac 4269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4270 (eval "$ac_compile") 2>conftest.er1 4271 ac_status=$? 4272 grep -v '^ *+' conftest.er1 >conftest.err 4273 rm -f conftest.er1 4274 cat conftest.err >&5 4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4276 (exit $ac_status); } && 4277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4278 { (case "(($ac_try" in 4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4280 *) ac_try_echo=$ac_try;; 4281esac 4282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4283 (eval "$ac_try") 2>&5 4284 ac_status=$? 4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286 (exit $ac_status); }; } && 4287 { ac_try='test -s conftest.$ac_objext' 4288 { (case "(($ac_try" in 4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4290 *) ac_try_echo=$ac_try;; 4291esac 4292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4293 (eval "$ac_try") 2>&5 4294 ac_status=$? 4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4296 (exit $ac_status); }; }; then 4297 ac_cv_header_stdc=yes 4298else 4299 echo "$as_me: failed program was:" >&5 4300sed 's/^/| /' conftest.$ac_ext >&5 4301 4302 ac_cv_header_stdc=no 4303fi 4304 4305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4306 4307if test $ac_cv_header_stdc = yes; then 4308 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4309 cat >conftest.$ac_ext <<_ACEOF 4310/* confdefs.h. */ 4311_ACEOF 4312cat confdefs.h >>conftest.$ac_ext 4313cat >>conftest.$ac_ext <<_ACEOF 4314/* end confdefs.h. */ 4315#include <string.h> 4316 4317_ACEOF 4318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4319 $EGREP "memchr" >/dev/null 2>&1; then 4320 : 4321else 4322 ac_cv_header_stdc=no 4323fi 4324rm -f conftest* 4325 4326fi 4327 4328if test $ac_cv_header_stdc = yes; then 4329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4330 cat >conftest.$ac_ext <<_ACEOF 4331/* confdefs.h. */ 4332_ACEOF 4333cat confdefs.h >>conftest.$ac_ext 4334cat >>conftest.$ac_ext <<_ACEOF 4335/* end confdefs.h. */ 4336#include <stdlib.h> 4337 4338_ACEOF 4339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4340 $EGREP "free" >/dev/null 2>&1; then 4341 : 4342else 4343 ac_cv_header_stdc=no 4344fi 4345rm -f conftest* 4346 4347fi 4348 4349if test $ac_cv_header_stdc = yes; then 4350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4351 if test "$cross_compiling" = yes; then 4352 : 4353else 4354 cat >conftest.$ac_ext <<_ACEOF 4355/* confdefs.h. */ 4356_ACEOF 4357cat confdefs.h >>conftest.$ac_ext 4358cat >>conftest.$ac_ext <<_ACEOF 4359/* end confdefs.h. */ 4360#include <ctype.h> 4361#include <stdlib.h> 4362#if ((' ' & 0x0FF) == 0x020) 4363# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4364# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4365#else 4366# define ISLOWER(c) \ 4367 (('a' <= (c) && (c) <= 'i') \ 4368 || ('j' <= (c) && (c) <= 'r') \ 4369 || ('s' <= (c) && (c) <= 'z')) 4370# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4371#endif 4372 4373#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4374int 4375main () 4376{ 4377 int i; 4378 for (i = 0; i < 256; i++) 4379 if (XOR (islower (i), ISLOWER (i)) 4380 || toupper (i) != TOUPPER (i)) 4381 return 2; 4382 return 0; 4383} 4384_ACEOF 4385rm -f conftest$ac_exeext 4386if { (ac_try="$ac_link" 4387case "(($ac_try" in 4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4389 *) ac_try_echo=$ac_try;; 4390esac 4391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4392 (eval "$ac_link") 2>&5 4393 ac_status=$? 4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4396 { (case "(($ac_try" in 4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4398 *) ac_try_echo=$ac_try;; 4399esac 4400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4401 (eval "$ac_try") 2>&5 4402 ac_status=$? 4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4404 (exit $ac_status); }; }; then 4405 : 4406else 4407 echo "$as_me: program exited with status $ac_status" >&5 4408echo "$as_me: failed program was:" >&5 4409sed 's/^/| /' conftest.$ac_ext >&5 4410 4411( exit $ac_status ) 4412ac_cv_header_stdc=no 4413fi 4414rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4415fi 4416 4417 4418fi 4419fi 4420{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4421echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4422if test $ac_cv_header_stdc = yes; then 4423 4424cat >>confdefs.h <<\_ACEOF 4425#define STDC_HEADERS 1 4426_ACEOF 4427 4428fi 4429 4430# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4441 inttypes.h stdint.h unistd.h 4442do 4443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4444{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4447 echo $ECHO_N "(cached) $ECHO_C" >&6 4448else 4449 cat >conftest.$ac_ext <<_ACEOF 4450/* confdefs.h. */ 4451_ACEOF 4452cat confdefs.h >>conftest.$ac_ext 4453cat >>conftest.$ac_ext <<_ACEOF 4454/* end confdefs.h. */ 4455$ac_includes_default 4456 4457#include <$ac_header> 4458_ACEOF 4459rm -f conftest.$ac_objext 4460if { (ac_try="$ac_compile" 4461case "(($ac_try" in 4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4463 *) ac_try_echo=$ac_try;; 4464esac 4465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4466 (eval "$ac_compile") 2>conftest.er1 4467 ac_status=$? 4468 grep -v '^ *+' conftest.er1 >conftest.err 4469 rm -f conftest.er1 4470 cat conftest.err >&5 4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4472 (exit $ac_status); } && 4473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4474 { (case "(($ac_try" in 4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4476 *) ac_try_echo=$ac_try;; 4477esac 4478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4479 (eval "$ac_try") 2>&5 4480 ac_status=$? 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); }; } && 4483 { ac_try='test -s conftest.$ac_objext' 4484 { (case "(($ac_try" in 4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4486 *) ac_try_echo=$ac_try;; 4487esac 4488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4489 (eval "$ac_try") 2>&5 4490 ac_status=$? 4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4492 (exit $ac_status); }; }; then 4493 eval "$as_ac_Header=yes" 4494else 4495 echo "$as_me: failed program was:" >&5 4496sed 's/^/| /' conftest.$ac_ext >&5 4497 4498 eval "$as_ac_Header=no" 4499fi 4500 4501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4502fi 4503ac_res=`eval echo '${'$as_ac_Header'}'` 4504 { echo "$as_me:$LINENO: result: $ac_res" >&5 4505echo "${ECHO_T}$ac_res" >&6; } 4506if test `eval echo '${'$as_ac_Header'}'` = yes; then 4507 cat >>confdefs.h <<_ACEOF 4508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4509_ACEOF 4510 4511fi 4512 4513done 4514 4515 4516{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4517echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4518if test "${ac_cv_c_bigendian+set}" = set; then 4519 echo $ECHO_N "(cached) $ECHO_C" >&6 4520else 4521 # See if sys/param.h defines the BYTE_ORDER macro. 4522cat >conftest.$ac_ext <<_ACEOF 4523/* confdefs.h. */ 4524_ACEOF 4525cat confdefs.h >>conftest.$ac_ext 4526cat >>conftest.$ac_ext <<_ACEOF 4527/* end confdefs.h. */ 4528#include <sys/types.h> 4529#include <sys/param.h> 4530 4531int 4532main () 4533{ 4534#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4535 bogus endian macros 4536#endif 4537 4538 ; 4539 return 0; 4540} 4541_ACEOF 4542rm -f conftest.$ac_objext 4543if { (ac_try="$ac_compile" 4544case "(($ac_try" in 4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4546 *) ac_try_echo=$ac_try;; 4547esac 4548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4549 (eval "$ac_compile") 2>conftest.er1 4550 ac_status=$? 4551 grep -v '^ *+' conftest.er1 >conftest.err 4552 rm -f conftest.er1 4553 cat conftest.err >&5 4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4555 (exit $ac_status); } && 4556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4557 { (case "(($ac_try" in 4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4559 *) ac_try_echo=$ac_try;; 4560esac 4561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4562 (eval "$ac_try") 2>&5 4563 ac_status=$? 4564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4565 (exit $ac_status); }; } && 4566 { ac_try='test -s conftest.$ac_objext' 4567 { (case "(($ac_try" in 4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4569 *) ac_try_echo=$ac_try;; 4570esac 4571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4572 (eval "$ac_try") 2>&5 4573 ac_status=$? 4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4575 (exit $ac_status); }; }; then 4576 # It does; now see whether it defined to BIG_ENDIAN or not. 4577cat >conftest.$ac_ext <<_ACEOF 4578/* confdefs.h. */ 4579_ACEOF 4580cat confdefs.h >>conftest.$ac_ext 4581cat >>conftest.$ac_ext <<_ACEOF 4582/* end confdefs.h. */ 4583#include <sys/types.h> 4584#include <sys/param.h> 4585 4586int 4587main () 4588{ 4589#if BYTE_ORDER != BIG_ENDIAN 4590 not big endian 4591#endif 4592 4593 ; 4594 return 0; 4595} 4596_ACEOF 4597rm -f conftest.$ac_objext 4598if { (ac_try="$ac_compile" 4599case "(($ac_try" in 4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4601 *) ac_try_echo=$ac_try;; 4602esac 4603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4604 (eval "$ac_compile") 2>conftest.er1 4605 ac_status=$? 4606 grep -v '^ *+' conftest.er1 >conftest.err 4607 rm -f conftest.er1 4608 cat conftest.err >&5 4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4610 (exit $ac_status); } && 4611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4612 { (case "(($ac_try" in 4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4614 *) ac_try_echo=$ac_try;; 4615esac 4616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4617 (eval "$ac_try") 2>&5 4618 ac_status=$? 4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4620 (exit $ac_status); }; } && 4621 { ac_try='test -s conftest.$ac_objext' 4622 { (case "(($ac_try" in 4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4624 *) ac_try_echo=$ac_try;; 4625esac 4626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4627 (eval "$ac_try") 2>&5 4628 ac_status=$? 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4630 (exit $ac_status); }; }; then 4631 ac_cv_c_bigendian=yes 4632else 4633 echo "$as_me: failed program was:" >&5 4634sed 's/^/| /' conftest.$ac_ext >&5 4635 4636 ac_cv_c_bigendian=no 4637fi 4638 4639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4640else 4641 echo "$as_me: failed program was:" >&5 4642sed 's/^/| /' conftest.$ac_ext >&5 4643 4644 # It does not; compile a test program. 4645if test "$cross_compiling" = yes; then 4646 # try to guess the endianness by grepping values into an object file 4647 ac_cv_c_bigendian=unknown 4648 cat >conftest.$ac_ext <<_ACEOF 4649/* confdefs.h. */ 4650_ACEOF 4651cat confdefs.h >>conftest.$ac_ext 4652cat >>conftest.$ac_ext <<_ACEOF 4653/* end confdefs.h. */ 4654short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4655short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4656void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4657short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4658short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4659void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4660int 4661main () 4662{ 4663 _ascii (); _ebcdic (); 4664 ; 4665 return 0; 4666} 4667_ACEOF 4668rm -f conftest.$ac_objext 4669if { (ac_try="$ac_compile" 4670case "(($ac_try" in 4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4672 *) ac_try_echo=$ac_try;; 4673esac 4674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4675 (eval "$ac_compile") 2>conftest.er1 4676 ac_status=$? 4677 grep -v '^ *+' conftest.er1 >conftest.err 4678 rm -f conftest.er1 4679 cat conftest.err >&5 4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4681 (exit $ac_status); } && 4682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4683 { (case "(($ac_try" in 4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4685 *) ac_try_echo=$ac_try;; 4686esac 4687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4688 (eval "$ac_try") 2>&5 4689 ac_status=$? 4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4691 (exit $ac_status); }; } && 4692 { ac_try='test -s conftest.$ac_objext' 4693 { (case "(($ac_try" in 4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4695 *) ac_try_echo=$ac_try;; 4696esac 4697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4698 (eval "$ac_try") 2>&5 4699 ac_status=$? 4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4701 (exit $ac_status); }; }; then 4702 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4703 ac_cv_c_bigendian=yes 4704fi 4705if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4706 if test "$ac_cv_c_bigendian" = unknown; then 4707 ac_cv_c_bigendian=no 4708 else 4709 # finding both strings is unlikely to happen, but who knows? 4710 ac_cv_c_bigendian=unknown 4711 fi 4712fi 4713else 4714 echo "$as_me: failed program was:" >&5 4715sed 's/^/| /' conftest.$ac_ext >&5 4716 4717 4718fi 4719 4720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4721else 4722 cat >conftest.$ac_ext <<_ACEOF 4723/* confdefs.h. */ 4724_ACEOF 4725cat confdefs.h >>conftest.$ac_ext 4726cat >>conftest.$ac_ext <<_ACEOF 4727/* end confdefs.h. */ 4728$ac_includes_default 4729int 4730main () 4731{ 4732 4733 /* Are we little or big endian? From Harbison&Steele. */ 4734 union 4735 { 4736 long int l; 4737 char c[sizeof (long int)]; 4738 } u; 4739 u.l = 1; 4740 return u.c[sizeof (long int) - 1] == 1; 4741 4742 ; 4743 return 0; 4744} 4745_ACEOF 4746rm -f conftest$ac_exeext 4747if { (ac_try="$ac_link" 4748case "(($ac_try" in 4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4750 *) ac_try_echo=$ac_try;; 4751esac 4752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4753 (eval "$ac_link") 2>&5 4754 ac_status=$? 4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4757 { (case "(($ac_try" in 4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4759 *) ac_try_echo=$ac_try;; 4760esac 4761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4762 (eval "$ac_try") 2>&5 4763 ac_status=$? 4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4765 (exit $ac_status); }; }; then 4766 ac_cv_c_bigendian=no 4767else 4768 echo "$as_me: program exited with status $ac_status" >&5 4769echo "$as_me: failed program was:" >&5 4770sed 's/^/| /' conftest.$ac_ext >&5 4771 4772( exit $ac_status ) 4773ac_cv_c_bigendian=yes 4774fi 4775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4776fi 4777 4778 4779fi 4780 4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4782fi 4783{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4784echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4785case $ac_cv_c_bigendian in 4786 yes) 4787 ENDIAN=big 4788 ;; 4789 no) 4790 ENDIAN=little 4791 ;; 4792 *) 4793 { { echo "$as_me:$LINENO: error: unknown endianness 4794presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4795echo "$as_me: error: unknown endianness 4796presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4797 { (exit 1); exit 1; }; } ;; 4798esac 4799 4800 4801if test "$cross_compiling" = yes; then 4802 LLVM_CROSS_COMPILING=1 4803 4804 4805{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4806echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4807if test "${ac_cv_build_exeext+set}" = set; then 4808 echo $ECHO_N "(cached) $ECHO_C" >&6 4809else 4810 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4811 ac_cv_build_exeext=.exe 4812else 4813 ac_build_prefix=${build_alias}- 4814 4815 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4816set dummy ${ac_build_prefix}gcc; ac_word=$2 4817{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4819if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4820 echo $ECHO_N "(cached) $ECHO_C" >&6 4821else 4822 if test -n "$BUILD_CC"; then 4823 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4824else 4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4826for as_dir in $PATH 4827do 4828 IFS=$as_save_IFS 4829 test -z "$as_dir" && as_dir=. 4830 for ac_exec_ext in '' $ac_executable_extensions; do 4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4832 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4834 break 2 4835 fi 4836done 4837done 4838IFS=$as_save_IFS 4839 4840fi 4841fi 4842BUILD_CC=$ac_cv_prog_BUILD_CC 4843if test -n "$BUILD_CC"; then 4844 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4845echo "${ECHO_T}$BUILD_CC" >&6; } 4846else 4847 { echo "$as_me:$LINENO: result: no" >&5 4848echo "${ECHO_T}no" >&6; } 4849fi 4850 4851 4852 if test -z "$BUILD_CC"; then 4853 # Extract the first word of "gcc", so it can be a program name with args. 4854set dummy gcc; ac_word=$2 4855{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4857if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4858 echo $ECHO_N "(cached) $ECHO_C" >&6 4859else 4860 if test -n "$BUILD_CC"; then 4861 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4862else 4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4864for as_dir in $PATH 4865do 4866 IFS=$as_save_IFS 4867 test -z "$as_dir" && as_dir=. 4868 for ac_exec_ext in '' $ac_executable_extensions; do 4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4870 ac_cv_prog_BUILD_CC="gcc" 4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4872 break 2 4873 fi 4874done 4875done 4876IFS=$as_save_IFS 4877 4878fi 4879fi 4880BUILD_CC=$ac_cv_prog_BUILD_CC 4881if test -n "$BUILD_CC"; then 4882 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4883echo "${ECHO_T}$BUILD_CC" >&6; } 4884else 4885 { echo "$as_me:$LINENO: result: no" >&5 4886echo "${ECHO_T}no" >&6; } 4887fi 4888 4889 4890 if test -z "$BUILD_CC"; then 4891 # Extract the first word of "cc", so it can be a program name with args. 4892set dummy cc; ac_word=$2 4893{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4895if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4896 echo $ECHO_N "(cached) $ECHO_C" >&6 4897else 4898 if test -n "$BUILD_CC"; then 4899 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4900else 4901 ac_prog_rejected=no 4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4903for as_dir in $PATH 4904do 4905 IFS=$as_save_IFS 4906 test -z "$as_dir" && as_dir=. 4907 for ac_exec_ext in '' $ac_executable_extensions; do 4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4910 ac_prog_rejected=yes 4911 continue 4912 fi 4913 ac_cv_prog_BUILD_CC="cc" 4914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4915 break 2 4916 fi 4917done 4918done 4919IFS=$as_save_IFS 4920 4921if test $ac_prog_rejected = yes; then 4922 # We found a bogon in the path, so make sure we never use it. 4923 set dummy $ac_cv_prog_BUILD_CC 4924 shift 4925 if test $# != 0; then 4926 # We chose a different compiler from the bogus one. 4927 # However, it has the same basename, so the bogon will be chosen 4928 # first if we set BUILD_CC to just the basename; use the full file name. 4929 shift 4930 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4931 fi 4932fi 4933fi 4934fi 4935BUILD_CC=$ac_cv_prog_BUILD_CC 4936if test -n "$BUILD_CC"; then 4937 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4938echo "${ECHO_T}$BUILD_CC" >&6; } 4939else 4940 { echo "$as_me:$LINENO: result: no" >&5 4941echo "${ECHO_T}no" >&6; } 4942fi 4943 4944 4945 fi 4946 fi 4947 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4948echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4949 { (exit 1); exit 1; }; } 4950 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4951 rm -f conftest* 4952 echo 'int main () { return 0; }' > conftest.$ac_ext 4953 ac_cv_build_exeext= 4954 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4955 (eval $ac_build_link) 2>&5 4956 ac_status=$? 4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4958 (exit $ac_status); }; then 4959 for file in conftest.*; do 4960 case $file in 4961 *.c | *.o | *.obj | *.dSYM) ;; 4962 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4963 esac 4964 done 4965 else 4966 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4967echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4968 { (exit 1); exit 1; }; } 4969 fi 4970 rm -f conftest* 4971 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4972fi 4973fi 4974 4975BUILD_EXEEXT="" 4976test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4977{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4978echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4979ac_build_exeext=$BUILD_EXEEXT 4980 4981 ac_build_prefix=${build_alias}- 4982 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4983set dummy ${ac_build_prefix}g++; ac_word=$2 4984{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4986if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4987 echo $ECHO_N "(cached) $ECHO_C" >&6 4988else 4989 if test -n "$BUILD_CXX"; then 4990 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4991else 4992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4993for as_dir in $PATH 4994do 4995 IFS=$as_save_IFS 4996 test -z "$as_dir" && as_dir=. 4997 for ac_exec_ext in '' $ac_executable_extensions; do 4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4999 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5001 break 2 5002 fi 5003done 5004done 5005IFS=$as_save_IFS 5006 5007fi 5008fi 5009BUILD_CXX=$ac_cv_prog_BUILD_CXX 5010if test -n "$BUILD_CXX"; then 5011 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5012echo "${ECHO_T}$BUILD_CXX" >&6; } 5013else 5014 { echo "$as_me:$LINENO: result: no" >&5 5015echo "${ECHO_T}no" >&6; } 5016fi 5017 5018 5019 if test -z "$BUILD_CXX"; then 5020 # Extract the first word of "g++", so it can be a program name with args. 5021set dummy g++; ac_word=$2 5022{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5024if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 5025 echo $ECHO_N "(cached) $ECHO_C" >&6 5026else 5027 if test -n "$BUILD_CXX"; then 5028 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5029else 5030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5031for as_dir in $PATH 5032do 5033 IFS=$as_save_IFS 5034 test -z "$as_dir" && as_dir=. 5035 for ac_exec_ext in '' $ac_executable_extensions; do 5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5037 ac_cv_prog_BUILD_CXX="g++" 5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5039 break 2 5040 fi 5041done 5042done 5043IFS=$as_save_IFS 5044 5045fi 5046fi 5047BUILD_CXX=$ac_cv_prog_BUILD_CXX 5048if test -n "$BUILD_CXX"; then 5049 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5050echo "${ECHO_T}$BUILD_CXX" >&6; } 5051else 5052 { echo "$as_me:$LINENO: result: no" >&5 5053echo "${ECHO_T}no" >&6; } 5054fi 5055 5056 5057 if test -z "$BUILD_CXX"; then 5058 # Extract the first word of "c++", so it can be a program name with args. 5059set dummy c++; ac_word=$2 5060{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5062if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 5063 echo $ECHO_N "(cached) $ECHO_C" >&6 5064else 5065 if test -n "$BUILD_CXX"; then 5066 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5067else 5068 ac_prog_rejected=no 5069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5070for as_dir in $PATH 5071do 5072 IFS=$as_save_IFS 5073 test -z "$as_dir" && as_dir=. 5074 for ac_exec_ext in '' $ac_executable_extensions; do 5075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5076 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 5077 ac_prog_rejected=yes 5078 continue 5079 fi 5080 ac_cv_prog_BUILD_CXX="c++" 5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5082 break 2 5083 fi 5084done 5085done 5086IFS=$as_save_IFS 5087 5088if test $ac_prog_rejected = yes; then 5089 # We found a bogon in the path, so make sure we never use it. 5090 set dummy $ac_cv_prog_BUILD_CXX 5091 shift 5092 if test $# != 0; then 5093 # We chose a different compiler from the bogus one. 5094 # However, it has the same basename, so the bogon will be chosen 5095 # first if we set BUILD_CXX to just the basename; use the full file name. 5096 shift 5097 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 5098 fi 5099fi 5100fi 5101fi 5102BUILD_CXX=$ac_cv_prog_BUILD_CXX 5103if test -n "$BUILD_CXX"; then 5104 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5105echo "${ECHO_T}$BUILD_CXX" >&6; } 5106else 5107 { echo "$as_me:$LINENO: result: no" >&5 5108echo "${ECHO_T}no" >&6; } 5109fi 5110 5111 5112 fi 5113 fi 5114else 5115 LLVM_CROSS_COMPILING=0 5116 5117fi 5118 5119if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 5120 cvsbuild="yes" 5121 optimize="no" 5122 CVSBUILD=CVSBUILD=1 5123 5124else 5125 cvsbuild="no" 5126 optimize="yes" 5127fi 5128 5129 5130# Check whether --enable-libcpp was given. 5131if test "${enable_libcpp+set}" = set; then 5132 enableval=$enable_libcpp; 5133else 5134 enableval=default 5135fi 5136 5137case "$enableval" in 5138 yes) ENABLE_LIBCPP=1 5139 ;; 5140 no) ENABLE_LIBCPP=0 5141 ;; 5142 default) ENABLE_LIBCPP=0 5143;; 5144 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 5145echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 5146 { (exit 1); exit 1; }; } ;; 5147esac 5148 5149# Check whether --enable-cxx11 was given. 5150if test "${enable_cxx11+set}" = set; then 5151 enableval=$enable_cxx11; 5152else 5153 enableval=default 5154fi 5155 5156case "$enableval" in 5157 yes) ENABLE_CXX11=1 5158 ;; 5159 no) ENABLE_CXX11=0 5160 ;; 5161 default) ENABLE_CXX11=0 5162;; 5163 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5 5164echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;} 5165 { (exit 1); exit 1; }; } ;; 5166esac 5167 5168clang_arcmt="yes" 5169# Check whether --enable-clang-arcmt was given. 5170if test "${enable_clang_arcmt+set}" = set; then 5171 enableval=$enable_clang_arcmt; clang_arcmt="$enableval" 5172else 5173 enableval="yes" 5174fi 5175 5176case "$enableval" in 5177 yes) ENABLE_CLANG_ARCMT=1 5178 ;; 5179 no) ENABLE_CLANG_ARCMT=0 5180 ;; 5181 default) ENABLE_CLANG_ARCMT=1 5182;; 5183 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5 5184echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;} 5185 { (exit 1); exit 1; }; } ;; 5186esac 5187 5188clang_static_analyzer="yes" 5189# Check whether --enable-clang-static-analyzer was given. 5190if test "${enable_clang_static_analyzer+set}" = set; then 5191 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" 5192else 5193 enableval="yes" 5194fi 5195 5196case "$enableval" in 5197 yes) ENABLE_CLANG_STATIC_ANALYZER=1 5198 ;; 5199 no) ENABLE_CLANG_STATIC_ANALYZER=0 5200 ;; 5201 default) ENABLE_CLANG_STATIC_ANALYZER=1 5202;; 5203 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5 5204echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;} 5205 { (exit 1); exit 1; }; } ;; 5206esac 5207 5208# Check whether --enable-clang-rewriter was given. 5209if test "${enable_clang_rewriter+set}" = set; then 5210 enableval=$enable_clang_rewriter; 5211else 5212 enableval="yes" 5213fi 5214 5215case "$enableval" in 5216 yes) ENABLE_CLANG_REWRITER=1 5217 ;; 5218 no) 5219 if test ${clang_arcmt} != "no" ; then 5220 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5 5221echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;} 5222 { (exit 1); exit 1; }; } 5223 fi 5224 if test ${clang_static_analyzer} != "no" ; then 5225 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5 5226echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;} 5227 { (exit 1); exit 1; }; } 5228 fi 5229 ENABLE_CLANG_REWRITER=0 5230 5231 ;; 5232 default) ENABLE_CLANG_REWRITER=1 5233;; 5234 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5 5235echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;} 5236 { (exit 1); exit 1; }; } ;; 5237esac 5238 5239# Check whether --enable-optimized was given. 5240if test "${enable_optimized+set}" = set; then 5241 enableval=$enable_optimized; 5242else 5243 enableval=$optimize 5244fi 5245 5246if test ${enableval} = "no" ; then 5247 ENABLE_OPTIMIZED= 5248 5249else 5250 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 5251 5252fi 5253 5254# Check whether --enable-profiling was given. 5255if test "${enable_profiling+set}" = set; then 5256 enableval=$enable_profiling; 5257else 5258 enableval="no" 5259fi 5260 5261if test ${enableval} = "no" ; then 5262 ENABLE_PROFILING= 5263 5264else 5265 ENABLE_PROFILING=ENABLE_PROFILING=1 5266 5267fi 5268 5269# Check whether --enable-assertions was given. 5270if test "${enable_assertions+set}" = set; then 5271 enableval=$enable_assertions; 5272else 5273 enableval="yes" 5274fi 5275 5276if test ${enableval} = "yes" ; then 5277 DISABLE_ASSERTIONS= 5278 5279else 5280 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5281 5282fi 5283 5284# Check whether --enable-werror was given. 5285if test "${enable_werror+set}" = set; then 5286 enableval=$enable_werror; 5287else 5288 enableval="no" 5289fi 5290 5291case "$enableval" in 5292 yes) ENABLE_WERROR=1 5293 ;; 5294 no) ENABLE_WERROR=0 5295 ;; 5296 default) ENABLE_WERROR=0 5297;; 5298 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 5299echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} 5300 { (exit 1); exit 1; }; } ;; 5301esac 5302 5303# Check whether --enable-expensive-checks was given. 5304if test "${enable_expensive_checks+set}" = set; then 5305 enableval=$enable_expensive_checks; 5306else 5307 enableval="no" 5308fi 5309 5310if test ${enableval} = "yes" ; then 5311 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5312 5313 EXPENSIVE_CHECKS=yes 5314 5315else 5316 ENABLE_EXPENSIVE_CHECKS= 5317 5318 EXPENSIVE_CHECKS=no 5319 5320fi 5321 5322# Check whether --enable-debug-runtime was given. 5323if test "${enable_debug_runtime+set}" = set; then 5324 enableval=$enable_debug_runtime; 5325else 5326 enableval=no 5327fi 5328 5329if test ${enableval} = "no" ; then 5330 DEBUG_RUNTIME= 5331 5332else 5333 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5334 5335fi 5336 5337# Check whether --enable-debug-symbols was given. 5338if test "${enable_debug_symbols+set}" = set; then 5339 enableval=$enable_debug_symbols; 5340else 5341 enableval=no 5342fi 5343 5344if test ${enableval} = "no" ; then 5345 DEBUG_SYMBOLS= 5346 5347else 5348 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5349 5350fi 5351 5352# Check whether --enable-keep-symbols was given. 5353if test "${enable_keep_symbols+set}" = set; then 5354 enableval=$enable_keep_symbols; 5355else 5356 enableval=no 5357fi 5358 5359if test ${enableval} = "no" ; then 5360 KEEP_SYMBOLS= 5361 5362else 5363 KEEP_SYMBOLS=KEEP_SYMBOLS=1 5364 5365fi 5366 5367# Check whether --enable-jit was given. 5368if test "${enable_jit+set}" = set; then 5369 enableval=$enable_jit; 5370else 5371 enableval=default 5372fi 5373 5374if test ${enableval} = "no" 5375then 5376 JIT= 5377 5378else 5379 case "$llvm_cv_target_arch" in 5380 x86) TARGET_HAS_JIT=1 5381 ;; 5382 Sparc) TARGET_HAS_JIT=0 5383 ;; 5384 PowerPC) TARGET_HAS_JIT=1 5385 ;; 5386 x86_64) TARGET_HAS_JIT=1 5387 ;; 5388 ARM) TARGET_HAS_JIT=1 5389 ;; 5390 AArch64) TARGET_HAS_JIT=0 5391 ;; 5392 Mips) TARGET_HAS_JIT=1 5393 ;; 5394 XCore) TARGET_HAS_JIT=0 5395 ;; 5396 MSP430) TARGET_HAS_JIT=0 5397 ;; 5398 Hexagon) TARGET_HAS_JIT=0 5399 ;; 5400 MBlaze) TARGET_HAS_JIT=0 5401 ;; 5402 NVPTX) TARGET_HAS_JIT=0 5403 ;; 5404 SystemZ) TARGET_HAS_JIT=1 5405 ;; 5406 *) TARGET_HAS_JIT=0 5407 ;; 5408 esac 5409fi 5410 5411# Check whether --enable-docs was given. 5412if test "${enable_docs+set}" = set; then 5413 enableval=$enable_docs; 5414else 5415 enableval=default 5416fi 5417 5418case "$enableval" in 5419 yes) ENABLE_DOCS=1 5420 ;; 5421 no) ENABLE_DOCS=0 5422 ;; 5423 default) ENABLE_DOCS=1 5424 ;; 5425 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5426echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5427 { (exit 1); exit 1; }; } ;; 5428esac 5429 5430# Check whether --enable-doxygen was given. 5431if test "${enable_doxygen+set}" = set; then 5432 enableval=$enable_doxygen; 5433else 5434 enableval=default 5435fi 5436 5437case "$enableval" in 5438 yes) ENABLE_DOXYGEN=1 5439 ;; 5440 no) ENABLE_DOXYGEN=0 5441 ;; 5442 default) ENABLE_DOXYGEN=0 5443 ;; 5444 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5445echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5446 { (exit 1); exit 1; }; } ;; 5447esac 5448 5449# Check whether --enable-threads was given. 5450if test "${enable_threads+set}" = set; then 5451 enableval=$enable_threads; 5452else 5453 enableval=default 5454fi 5455 5456case "$enableval" in 5457 yes) LLVM_ENABLE_THREADS=1 5458 ;; 5459 no) LLVM_ENABLE_THREADS=0 5460 ;; 5461 default) LLVM_ENABLE_THREADS=1 5462 ;; 5463 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5464echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5465 { (exit 1); exit 1; }; } ;; 5466esac 5467 5468cat >>confdefs.h <<_ACEOF 5469#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5470_ACEOF 5471 5472 5473# Check whether --enable-pthreads was given. 5474if test "${enable_pthreads+set}" = set; then 5475 enableval=$enable_pthreads; 5476else 5477 enableval=default 5478fi 5479 5480case "$enableval" in 5481 yes) ENABLE_PTHREADS=1 5482 ;; 5483 no) ENABLE_PTHREADS=0 5484 ;; 5485 default) ENABLE_PTHREADS=1 5486 ;; 5487 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5488echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5489 { (exit 1); exit 1; }; } ;; 5490esac 5491 5492# Check whether --enable-zlib was given. 5493if test "${enable_zlib+set}" = set; then 5494 enableval=$enable_zlib; 5495else 5496 enableval=default 5497fi 5498 5499case "$enableval" in 5500 yes) LLVM_ENABLE_ZLIB=1 5501 ;; 5502 no) LLVM_ENABLE_ZLIB=0 5503 ;; 5504 default) LLVM_ENABLE_ZLIB=1 5505 ;; 5506 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5 5507echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;} 5508 { (exit 1); exit 1; }; } ;; 5509esac 5510 5511cat >>confdefs.h <<_ACEOF 5512#define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB 5513_ACEOF 5514 5515 5516# Check whether --enable-pic was given. 5517if test "${enable_pic+set}" = set; then 5518 enableval=$enable_pic; 5519else 5520 enableval=default 5521fi 5522 5523case "$enableval" in 5524 yes) ENABLE_PIC=1 5525 ;; 5526 no) ENABLE_PIC=0 5527 ;; 5528 default) ENABLE_PIC=1 5529 ;; 5530 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5531echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5532 { (exit 1); exit 1; }; } ;; 5533esac 5534 5535cat >>confdefs.h <<_ACEOF 5536#define ENABLE_PIC $ENABLE_PIC 5537_ACEOF 5538 5539 5540# Check whether --enable-shared was given. 5541if test "${enable_shared+set}" = set; then 5542 enableval=$enable_shared; 5543else 5544 enableval=default 5545fi 5546 5547case "$enableval" in 5548 yes) ENABLE_SHARED=1 5549 ;; 5550 no) ENABLE_SHARED=0 5551 ;; 5552 default) ENABLE_SHARED=0 5553 ;; 5554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5555echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5556 { (exit 1); exit 1; }; } ;; 5557esac 5558 5559# Check whether --enable-embed-stdcxx was given. 5560if test "${enable_embed_stdcxx+set}" = set; then 5561 enableval=$enable_embed_stdcxx; 5562else 5563 enableval=default 5564fi 5565 5566case "$enableval" in 5567 yes) ENABLE_EMBED_STDCXX=1 5568 ;; 5569 no) ENABLE_EMBED_STDCXX=0 5570 ;; 5571 default) ENABLE_EMBED_STDCXX=0 5572 ;; 5573 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5574echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5575 { (exit 1); exit 1; }; } ;; 5576esac 5577 5578# Check whether --enable-timestamps was given. 5579if test "${enable_timestamps+set}" = set; then 5580 enableval=$enable_timestamps; 5581else 5582 enableval=default 5583fi 5584 5585case "$enableval" in 5586 yes) ENABLE_TIMESTAMPS=1 5587 ;; 5588 no) ENABLE_TIMESTAMPS=0 5589 ;; 5590 default) ENABLE_TIMESTAMPS=1 5591 ;; 5592 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5593echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5594 { (exit 1); exit 1; }; } ;; 5595esac 5596 5597cat >>confdefs.h <<_ACEOF 5598#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5599_ACEOF 5600 5601 5602 5603# Check whether --enable-backtraces was given. 5604if test "${enable_backtraces+set}" = set; then 5605 enableval=$enable_backtraces; 5606else 5607 enableval=default 5608fi 5609 5610case "$enableval" in 5611 yes) ENABLE_BACKTRACES=1 5612 ;; 5613 no) ENABLE_BACKTRACES=0 5614 ;; 5615 default) ENABLE_BACKTRACES=1 5616 ;; 5617 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5 5618echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;} 5619 { (exit 1); exit 1; }; } ;; 5620esac 5621 5622cat >>confdefs.h <<_ACEOF 5623#define ENABLE_BACKTRACES $ENABLE_BACKTRACES 5624_ACEOF 5625 5626 5627TARGETS_TO_BUILD="" 5628# Check whether --enable-targets was given. 5629if test "${enable_targets+set}" = set; then 5630 enableval=$enable_targets; 5631else 5632 enableval=all 5633fi 5634 5635if test "$enableval" = host-only ; then 5636 enableval=host 5637fi 5638case "$enableval" in 5639 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon SystemZ" ;; 5640 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5641 case "$a_target" in 5642 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5643 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5644 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5645 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5646 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5647 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5648 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5649 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5650 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5651 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5652 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5653 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5654 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5655 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5656 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5657 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5658 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5659 host) case "$llvm_cv_target_arch" in 5660 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5661 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5662 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5663 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5664 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5665 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5666 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5667 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5668 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5669 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5670 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5671 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5672 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5673 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5674echo "$as_me: error: Can not set target to build" >&2;} 5675 { (exit 1); exit 1; }; } ;; 5676 esac ;; 5677 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5678echo "$as_me: error: Unrecognized target $a_target" >&2;} 5679 { (exit 1); exit 1; }; } ;; 5680 esac 5681 done 5682 ;; 5683esac 5684 5685# Check whether --enable-experimental-targets was given. 5686if test "${enable_experimental_targets+set}" = set; then 5687 enableval=$enable_experimental_targets; 5688else 5689 enableval=disable 5690fi 5691 5692 5693if test ${enableval} != "disable" 5694then 5695 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" 5696fi 5697 5698TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5699 5700 5701for a_target in $TARGETS_TO_BUILD; do 5702 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5703 5704cat >>confdefs.h <<_ACEOF 5705#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5706_ACEOF 5707 5708 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5709 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5710 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5711 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5712 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5713 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5714 fi 5715 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5716 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5717 fi 5718 5719cat >>confdefs.h <<_ACEOF 5720#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5721_ACEOF 5722 5723 5724cat >>confdefs.h <<_ACEOF 5725#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5726_ACEOF 5727 5728 5729cat >>confdefs.h <<_ACEOF 5730#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5731_ACEOF 5732 5733 5734cat >>confdefs.h <<_ACEOF 5735#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5736_ACEOF 5737 5738 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5739 5740cat >>confdefs.h <<_ACEOF 5741#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5742_ACEOF 5743 5744 fi 5745 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5746 5747cat >>confdefs.h <<_ACEOF 5748#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5749_ACEOF 5750 5751 fi 5752 fi 5753done 5754 5755LLVM_ENUM_TARGETS="" 5756LLVM_ENUM_ASM_PRINTERS="" 5757LLVM_ENUM_ASM_PARSERS="" 5758LLVM_ENUM_DISASSEMBLERS="" 5759for target_to_build in $TARGETS_TO_BUILD; do 5760 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5761 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5762 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5763 fi 5764 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5765 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5766 fi 5767 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5768 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5769 fi 5770done 5771 5772 5773 5774 5775 5776 5777# Check whether --with-optimize-option was given. 5778if test "${with_optimize_option+set}" = set; then 5779 withval=$with_optimize_option; 5780else 5781 withval=default 5782fi 5783 5784{ echo "$as_me:$LINENO: checking optimization flags" >&5 5785echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5786case "$withval" in 5787 default) 5788 case "$llvm_cv_os_type" in 5789 FreeBSD) optimize_option=-O2 ;; 5790 MingW) optimize_option=-O2 ;; 5791 *) optimize_option=-O3 ;; 5792 esac ;; 5793 *) optimize_option="$withval" ;; 5794esac 5795OPTIMIZE_OPTION=$optimize_option 5796 5797{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5798echo "${ECHO_T}$optimize_option" >&6; } 5799 5800 5801# Check whether --with-extra-options was given. 5802if test "${with_extra_options+set}" = set; then 5803 withval=$with_extra_options; 5804else 5805 withval=default 5806fi 5807 5808case "$withval" in 5809 default) EXTRA_OPTIONS= ;; 5810 *) EXTRA_OPTIONS=$withval ;; 5811esac 5812EXTRA_OPTIONS=$EXTRA_OPTIONS 5813 5814 5815 5816# Check whether --with-extra-ld-options was given. 5817if test "${with_extra_ld_options+set}" = set; then 5818 withval=$with_extra_ld_options; 5819else 5820 withval=default 5821fi 5822 5823case "$withval" in 5824 default) EXTRA_LD_OPTIONS= ;; 5825 *) EXTRA_LD_OPTIONS=$withval ;; 5826esac 5827EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5828 5829 5830# Check whether --enable-bindings was given. 5831if test "${enable_bindings+set}" = set; then 5832 enableval=$enable_bindings; 5833else 5834 enableval=default 5835fi 5836 5837BINDINGS_TO_BUILD="" 5838case "$enableval" in 5839 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5840 all ) BINDINGS_TO_BUILD="ocaml" ;; 5841 none | no) BINDINGS_TO_BUILD="" ;; 5842 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5843 case "$a_binding" in 5844 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5845 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5846echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5847 { (exit 1); exit 1; }; } ;; 5848 esac 5849 done 5850 ;; 5851esac 5852 5853 5854# Check whether --with-ocaml-libdir was given. 5855if test "${with_ocaml_libdir+set}" = set; then 5856 withval=$with_ocaml_libdir; 5857else 5858 withval=auto 5859fi 5860 5861case "$withval" in 5862 auto) with_ocaml_libdir="$withval" ;; 5863 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5864 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5865echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5866 { (exit 1); exit 1; }; } ;; 5867esac 5868 5869 5870# Check whether --with-clang-srcdir was given. 5871if test "${with_clang_srcdir+set}" = set; then 5872 withval=$with_clang_srcdir; 5873else 5874 withval="-" 5875fi 5876 5877case "$withval" in 5878 -) clang_src_root="" ;; 5879 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5880 *) clang_src_root="$ac_pwd/$withval" ;; 5881esac 5882CLANG_SRC_ROOT=$clang_src_root 5883 5884 5885 5886# Check whether --with-clang-resource-dir was given. 5887if test "${with_clang_resource_dir+set}" = set; then 5888 withval=$with_clang_resource_dir; 5889else 5890 withval="" 5891fi 5892 5893 5894cat >>confdefs.h <<_ACEOF 5895#define CLANG_RESOURCE_DIR "$withval" 5896_ACEOF 5897 5898 5899 5900# Check whether --with-c-include-dirs was given. 5901if test "${with_c_include_dirs+set}" = set; then 5902 withval=$with_c_include_dirs; 5903else 5904 withval="" 5905fi 5906 5907 5908cat >>confdefs.h <<_ACEOF 5909#define C_INCLUDE_DIRS "$withval" 5910_ACEOF 5911 5912 5913# Clang normally uses the system c++ headers and libraries. With this option, 5914# clang will use the ones provided by a gcc installation instead. This option should 5915# be passed the same value that was used with --prefix when configuring gcc. 5916 5917# Check whether --with-gcc-toolchain was given. 5918if test "${with_gcc_toolchain+set}" = set; then 5919 withval=$with_gcc_toolchain; 5920else 5921 withval="" 5922fi 5923 5924 5925cat >>confdefs.h <<_ACEOF 5926#define GCC_INSTALL_PREFIX "$withval" 5927_ACEOF 5928 5929 5930 5931# Check whether --with-default-sysroot was given. 5932if test "${with_default_sysroot+set}" = set; then 5933 withval=$with_default_sysroot; 5934else 5935 withval="" 5936fi 5937 5938 5939cat >>confdefs.h <<_ACEOF 5940#define DEFAULT_SYSROOT "$withval" 5941_ACEOF 5942 5943 5944 5945# Check whether --with-binutils-include was given. 5946if test "${with_binutils_include+set}" = set; then 5947 withval=$with_binutils_include; 5948else 5949 withval=default 5950fi 5951 5952case "$withval" in 5953 default) WITH_BINUTILS_INCDIR=default ;; 5954 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5955 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5956echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5957 { (exit 1); exit 1; }; } ;; 5958esac 5959if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5960 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5961 5962 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5963 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5964 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5965echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5966 { (exit 1); exit 1; }; }; 5967 fi 5968fi 5969 5970 5971# Check whether --with-bug-report-url was given. 5972if test "${with_bug_report_url+set}" = set; then 5973 withval=$with_bug_report_url; 5974else 5975 withval="http://llvm.org/bugs/" 5976fi 5977 5978 5979cat >>confdefs.h <<_ACEOF 5980#define BUG_REPORT_URL "$withval" 5981_ACEOF 5982 5983 5984# Check whether --enable-libffi was given. 5985if test "${enable_libffi+set}" = set; then 5986 enableval=$enable_libffi; case "$enableval" in 5987 yes) llvm_cv_enable_libffi="yes" ;; 5988 no) llvm_cv_enable_libffi="no" ;; 5989 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5990echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5991 { (exit 1); exit 1; }; } ;; 5992 esac 5993else 5994 llvm_cv_enable_libffi=no 5995fi 5996 5997 5998 5999# Check whether --with-internal-prefix was given. 6000if test "${with_internal_prefix+set}" = set; then 6001 withval=$with_internal_prefix; 6002else 6003 withval="" 6004fi 6005 6006INTERNAL_PREFIX=$withval 6007 6008 6009 6010{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6011echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 6012if test "${lt_cv_path_NM+set}" = set; then 6013 echo $ECHO_N "(cached) $ECHO_C" >&6 6014else 6015 if test -n "$NM"; then 6016 # Let the user override the test. 6017 lt_cv_path_NM="$NM" 6018else 6019 lt_nm_to_check="${ac_tool_prefix}nm" 6020 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6021 lt_nm_to_check="$lt_nm_to_check nm" 6022 fi 6023 for lt_tmp_nm in $lt_nm_to_check; do 6024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6025 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6026 IFS="$lt_save_ifs" 6027 test -z "$ac_dir" && ac_dir=. 6028 tmp_nm="$ac_dir/$lt_tmp_nm" 6029 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6030 # Check to see if the nm accepts a BSD-compat flag. 6031 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6032 # nm: unknown option "B" ignored 6033 # Tru64's nm complains that /dev/null is an invalid object file 6034 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6035 */dev/null* | *'Invalid file or object type'*) 6036 lt_cv_path_NM="$tmp_nm -B" 6037 break 6038 ;; 6039 *) 6040 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6041 */dev/null*) 6042 lt_cv_path_NM="$tmp_nm -p" 6043 break 6044 ;; 6045 *) 6046 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6047 continue # so that we can try to find one that supports BSD flags 6048 ;; 6049 esac 6050 ;; 6051 esac 6052 fi 6053 done 6054 IFS="$lt_save_ifs" 6055 done 6056 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6057fi 6058fi 6059{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6060echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6061NM="$lt_cv_path_NM" 6062 6063 6064 6065{ echo "$as_me:$LINENO: checking for GNU make" >&5 6066echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6067if test "${llvm_cv_gnu_make_command+set}" = set; then 6068 echo $ECHO_N "(cached) $ECHO_C" >&6 6069else 6070 llvm_cv_gnu_make_command='' 6071 for a in "$MAKE" make gmake gnumake ; do 6072 if test -z "$a" ; then continue ; fi ; 6073 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6074 then 6075 llvm_cv_gnu_make_command=$a ; 6076 break; 6077 fi 6078 done 6079fi 6080{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6081echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6082 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6083 ifGNUmake='' ; 6084 else 6085 ifGNUmake='#' ; 6086 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6087echo "${ECHO_T}\"Not found\"" >&6; }; 6088 fi 6089 6090 6091{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6092echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6093LN_S=$as_ln_s 6094if test "$LN_S" = "ln -s"; then 6095 { echo "$as_me:$LINENO: result: yes" >&5 6096echo "${ECHO_T}yes" >&6; } 6097else 6098 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6099echo "${ECHO_T}no, using $LN_S" >&6; } 6100fi 6101 6102# Extract the first word of "cmp", so it can be a program name with args. 6103set dummy cmp; ac_word=$2 6104{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6106if test "${ac_cv_path_CMP+set}" = set; then 6107 echo $ECHO_N "(cached) $ECHO_C" >&6 6108else 6109 case $CMP in 6110 [\\/]* | ?:[\\/]*) 6111 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6112 ;; 6113 *) 6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6115for as_dir in $PATH 6116do 6117 IFS=$as_save_IFS 6118 test -z "$as_dir" && as_dir=. 6119 for ac_exec_ext in '' $ac_executable_extensions; do 6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6121 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6123 break 2 6124 fi 6125done 6126done 6127IFS=$as_save_IFS 6128 6129 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6130 ;; 6131esac 6132fi 6133CMP=$ac_cv_path_CMP 6134if test -n "$CMP"; then 6135 { echo "$as_me:$LINENO: result: $CMP" >&5 6136echo "${ECHO_T}$CMP" >&6; } 6137else 6138 { echo "$as_me:$LINENO: result: no" >&5 6139echo "${ECHO_T}no" >&6; } 6140fi 6141 6142 6143# Extract the first word of "cp", so it can be a program name with args. 6144set dummy cp; ac_word=$2 6145{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6147if test "${ac_cv_path_CP+set}" = set; then 6148 echo $ECHO_N "(cached) $ECHO_C" >&6 6149else 6150 case $CP in 6151 [\\/]* | ?:[\\/]*) 6152 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6153 ;; 6154 *) 6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6156for as_dir in $PATH 6157do 6158 IFS=$as_save_IFS 6159 test -z "$as_dir" && as_dir=. 6160 for ac_exec_ext in '' $ac_executable_extensions; do 6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6162 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6164 break 2 6165 fi 6166done 6167done 6168IFS=$as_save_IFS 6169 6170 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6171 ;; 6172esac 6173fi 6174CP=$ac_cv_path_CP 6175if test -n "$CP"; then 6176 { echo "$as_me:$LINENO: result: $CP" >&5 6177echo "${ECHO_T}$CP" >&6; } 6178else 6179 { echo "$as_me:$LINENO: result: no" >&5 6180echo "${ECHO_T}no" >&6; } 6181fi 6182 6183 6184# Extract the first word of "date", so it can be a program name with args. 6185set dummy date; ac_word=$2 6186{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6188if test "${ac_cv_path_DATE+set}" = set; then 6189 echo $ECHO_N "(cached) $ECHO_C" >&6 6190else 6191 case $DATE in 6192 [\\/]* | ?:[\\/]*) 6193 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6194 ;; 6195 *) 6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6197for as_dir in $PATH 6198do 6199 IFS=$as_save_IFS 6200 test -z "$as_dir" && as_dir=. 6201 for ac_exec_ext in '' $ac_executable_extensions; do 6202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6203 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6205 break 2 6206 fi 6207done 6208done 6209IFS=$as_save_IFS 6210 6211 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6212 ;; 6213esac 6214fi 6215DATE=$ac_cv_path_DATE 6216if test -n "$DATE"; then 6217 { echo "$as_me:$LINENO: result: $DATE" >&5 6218echo "${ECHO_T}$DATE" >&6; } 6219else 6220 { echo "$as_me:$LINENO: result: no" >&5 6221echo "${ECHO_T}no" >&6; } 6222fi 6223 6224 6225# Extract the first word of "find", so it can be a program name with args. 6226set dummy find; ac_word=$2 6227{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6229if test "${ac_cv_path_FIND+set}" = set; then 6230 echo $ECHO_N "(cached) $ECHO_C" >&6 6231else 6232 case $FIND in 6233 [\\/]* | ?:[\\/]*) 6234 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6235 ;; 6236 *) 6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6238for as_dir in $PATH 6239do 6240 IFS=$as_save_IFS 6241 test -z "$as_dir" && as_dir=. 6242 for ac_exec_ext in '' $ac_executable_extensions; do 6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6244 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6246 break 2 6247 fi 6248done 6249done 6250IFS=$as_save_IFS 6251 6252 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6253 ;; 6254esac 6255fi 6256FIND=$ac_cv_path_FIND 6257if test -n "$FIND"; then 6258 { echo "$as_me:$LINENO: result: $FIND" >&5 6259echo "${ECHO_T}$FIND" >&6; } 6260else 6261 { echo "$as_me:$LINENO: result: no" >&5 6262echo "${ECHO_T}no" >&6; } 6263fi 6264 6265 6266# Extract the first word of "grep", so it can be a program name with args. 6267set dummy grep; ac_word=$2 6268{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6270if test "${ac_cv_path_GREP+set}" = set; then 6271 echo $ECHO_N "(cached) $ECHO_C" >&6 6272else 6273 case $GREP in 6274 [\\/]* | ?:[\\/]*) 6275 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6276 ;; 6277 *) 6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6279for as_dir in $PATH 6280do 6281 IFS=$as_save_IFS 6282 test -z "$as_dir" && as_dir=. 6283 for ac_exec_ext in '' $ac_executable_extensions; do 6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6285 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6287 break 2 6288 fi 6289done 6290done 6291IFS=$as_save_IFS 6292 6293 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6294 ;; 6295esac 6296fi 6297GREP=$ac_cv_path_GREP 6298if test -n "$GREP"; then 6299 { echo "$as_me:$LINENO: result: $GREP" >&5 6300echo "${ECHO_T}$GREP" >&6; } 6301else 6302 { echo "$as_me:$LINENO: result: no" >&5 6303echo "${ECHO_T}no" >&6; } 6304fi 6305 6306 6307# Extract the first word of "mkdir", so it can be a program name with args. 6308set dummy mkdir; ac_word=$2 6309{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6311if test "${ac_cv_path_MKDIR+set}" = set; then 6312 echo $ECHO_N "(cached) $ECHO_C" >&6 6313else 6314 case $MKDIR in 6315 [\\/]* | ?:[\\/]*) 6316 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6317 ;; 6318 *) 6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6320for as_dir in $PATH 6321do 6322 IFS=$as_save_IFS 6323 test -z "$as_dir" && as_dir=. 6324 for ac_exec_ext in '' $ac_executable_extensions; do 6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6326 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6328 break 2 6329 fi 6330done 6331done 6332IFS=$as_save_IFS 6333 6334 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6335 ;; 6336esac 6337fi 6338MKDIR=$ac_cv_path_MKDIR 6339if test -n "$MKDIR"; then 6340 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6341echo "${ECHO_T}$MKDIR" >&6; } 6342else 6343 { echo "$as_me:$LINENO: result: no" >&5 6344echo "${ECHO_T}no" >&6; } 6345fi 6346 6347 6348# Extract the first word of "mv", so it can be a program name with args. 6349set dummy mv; ac_word=$2 6350{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6352if test "${ac_cv_path_MV+set}" = set; then 6353 echo $ECHO_N "(cached) $ECHO_C" >&6 6354else 6355 case $MV in 6356 [\\/]* | ?:[\\/]*) 6357 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6358 ;; 6359 *) 6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6361for as_dir in $PATH 6362do 6363 IFS=$as_save_IFS 6364 test -z "$as_dir" && as_dir=. 6365 for ac_exec_ext in '' $ac_executable_extensions; do 6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6367 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6369 break 2 6370 fi 6371done 6372done 6373IFS=$as_save_IFS 6374 6375 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6376 ;; 6377esac 6378fi 6379MV=$ac_cv_path_MV 6380if test -n "$MV"; then 6381 { echo "$as_me:$LINENO: result: $MV" >&5 6382echo "${ECHO_T}$MV" >&6; } 6383else 6384 { echo "$as_me:$LINENO: result: no" >&5 6385echo "${ECHO_T}no" >&6; } 6386fi 6387 6388 6389if test -n "$ac_tool_prefix"; then 6390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6391set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6392{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6394if test "${ac_cv_prog_RANLIB+set}" = set; then 6395 echo $ECHO_N "(cached) $ECHO_C" >&6 6396else 6397 if test -n "$RANLIB"; then 6398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6399else 6400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6401for as_dir in $PATH 6402do 6403 IFS=$as_save_IFS 6404 test -z "$as_dir" && as_dir=. 6405 for ac_exec_ext in '' $ac_executable_extensions; do 6406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6409 break 2 6410 fi 6411done 6412done 6413IFS=$as_save_IFS 6414 6415fi 6416fi 6417RANLIB=$ac_cv_prog_RANLIB 6418if test -n "$RANLIB"; then 6419 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6420echo "${ECHO_T}$RANLIB" >&6; } 6421else 6422 { echo "$as_me:$LINENO: result: no" >&5 6423echo "${ECHO_T}no" >&6; } 6424fi 6425 6426 6427fi 6428if test -z "$ac_cv_prog_RANLIB"; then 6429 ac_ct_RANLIB=$RANLIB 6430 # Extract the first word of "ranlib", so it can be a program name with args. 6431set dummy ranlib; ac_word=$2 6432{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6434if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6435 echo $ECHO_N "(cached) $ECHO_C" >&6 6436else 6437 if test -n "$ac_ct_RANLIB"; then 6438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6439else 6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6441for as_dir in $PATH 6442do 6443 IFS=$as_save_IFS 6444 test -z "$as_dir" && as_dir=. 6445 for ac_exec_ext in '' $ac_executable_extensions; do 6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6447 ac_cv_prog_ac_ct_RANLIB="ranlib" 6448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6449 break 2 6450 fi 6451done 6452done 6453IFS=$as_save_IFS 6454 6455fi 6456fi 6457ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6458if test -n "$ac_ct_RANLIB"; then 6459 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6460echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6461else 6462 { echo "$as_me:$LINENO: result: no" >&5 6463echo "${ECHO_T}no" >&6; } 6464fi 6465 6466 if test "x$ac_ct_RANLIB" = x; then 6467 RANLIB=":" 6468 else 6469 case $cross_compiling:$ac_tool_warned in 6470yes:) 6471{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6472whose name does not start with the host triplet. If you think this 6473configuration is useful to you, please write to autoconf@gnu.org." >&5 6474echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6475whose name does not start with the host triplet. If you think this 6476configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6477ac_tool_warned=yes ;; 6478esac 6479 RANLIB=$ac_ct_RANLIB 6480 fi 6481else 6482 RANLIB="$ac_cv_prog_RANLIB" 6483fi 6484 6485if test -n "$ac_tool_prefix"; then 6486 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6487set dummy ${ac_tool_prefix}ar; ac_word=$2 6488{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6490if test "${ac_cv_prog_AR+set}" = set; then 6491 echo $ECHO_N "(cached) $ECHO_C" >&6 6492else 6493 if test -n "$AR"; then 6494 ac_cv_prog_AR="$AR" # Let the user override the test. 6495else 6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6497for as_dir in $PATH 6498do 6499 IFS=$as_save_IFS 6500 test -z "$as_dir" && as_dir=. 6501 for ac_exec_ext in '' $ac_executable_extensions; do 6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6503 ac_cv_prog_AR="${ac_tool_prefix}ar" 6504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6505 break 2 6506 fi 6507done 6508done 6509IFS=$as_save_IFS 6510 6511fi 6512fi 6513AR=$ac_cv_prog_AR 6514if test -n "$AR"; then 6515 { echo "$as_me:$LINENO: result: $AR" >&5 6516echo "${ECHO_T}$AR" >&6; } 6517else 6518 { echo "$as_me:$LINENO: result: no" >&5 6519echo "${ECHO_T}no" >&6; } 6520fi 6521 6522 6523fi 6524if test -z "$ac_cv_prog_AR"; then 6525 ac_ct_AR=$AR 6526 # Extract the first word of "ar", so it can be a program name with args. 6527set dummy ar; ac_word=$2 6528{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6530if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6531 echo $ECHO_N "(cached) $ECHO_C" >&6 6532else 6533 if test -n "$ac_ct_AR"; then 6534 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6535else 6536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6537for as_dir in $PATH 6538do 6539 IFS=$as_save_IFS 6540 test -z "$as_dir" && as_dir=. 6541 for ac_exec_ext in '' $ac_executable_extensions; do 6542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6543 ac_cv_prog_ac_ct_AR="ar" 6544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6545 break 2 6546 fi 6547done 6548done 6549IFS=$as_save_IFS 6550 6551fi 6552fi 6553ac_ct_AR=$ac_cv_prog_ac_ct_AR 6554if test -n "$ac_ct_AR"; then 6555 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6556echo "${ECHO_T}$ac_ct_AR" >&6; } 6557else 6558 { echo "$as_me:$LINENO: result: no" >&5 6559echo "${ECHO_T}no" >&6; } 6560fi 6561 6562 if test "x$ac_ct_AR" = x; then 6563 AR="false" 6564 else 6565 case $cross_compiling:$ac_tool_warned in 6566yes:) 6567{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6568whose name does not start with the host triplet. If you think this 6569configuration is useful to you, please write to autoconf@gnu.org." >&5 6570echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6571whose name does not start with the host triplet. If you think this 6572configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6573ac_tool_warned=yes ;; 6574esac 6575 AR=$ac_ct_AR 6576 fi 6577else 6578 AR="$ac_cv_prog_AR" 6579fi 6580 6581# Extract the first word of "rm", so it can be a program name with args. 6582set dummy rm; ac_word=$2 6583{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6585if test "${ac_cv_path_RM+set}" = set; then 6586 echo $ECHO_N "(cached) $ECHO_C" >&6 6587else 6588 case $RM in 6589 [\\/]* | ?:[\\/]*) 6590 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6591 ;; 6592 *) 6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6594for as_dir in $PATH 6595do 6596 IFS=$as_save_IFS 6597 test -z "$as_dir" && as_dir=. 6598 for ac_exec_ext in '' $ac_executable_extensions; do 6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6600 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6602 break 2 6603 fi 6604done 6605done 6606IFS=$as_save_IFS 6607 6608 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6609 ;; 6610esac 6611fi 6612RM=$ac_cv_path_RM 6613if test -n "$RM"; then 6614 { echo "$as_me:$LINENO: result: $RM" >&5 6615echo "${ECHO_T}$RM" >&6; } 6616else 6617 { echo "$as_me:$LINENO: result: no" >&5 6618echo "${ECHO_T}no" >&6; } 6619fi 6620 6621 6622# Extract the first word of "sed", so it can be a program name with args. 6623set dummy sed; ac_word=$2 6624{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6626if test "${ac_cv_path_SED+set}" = set; then 6627 echo $ECHO_N "(cached) $ECHO_C" >&6 6628else 6629 case $SED in 6630 [\\/]* | ?:[\\/]*) 6631 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6632 ;; 6633 *) 6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6635for as_dir in $PATH 6636do 6637 IFS=$as_save_IFS 6638 test -z "$as_dir" && as_dir=. 6639 for ac_exec_ext in '' $ac_executable_extensions; do 6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6641 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6643 break 2 6644 fi 6645done 6646done 6647IFS=$as_save_IFS 6648 6649 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6650 ;; 6651esac 6652fi 6653SED=$ac_cv_path_SED 6654if test -n "$SED"; then 6655 { echo "$as_me:$LINENO: result: $SED" >&5 6656echo "${ECHO_T}$SED" >&6; } 6657else 6658 { echo "$as_me:$LINENO: result: no" >&5 6659echo "${ECHO_T}no" >&6; } 6660fi 6661 6662 6663# Extract the first word of "tar", so it can be a program name with args. 6664set dummy tar; ac_word=$2 6665{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6667if test "${ac_cv_path_TAR+set}" = set; then 6668 echo $ECHO_N "(cached) $ECHO_C" >&6 6669else 6670 case $TAR in 6671 [\\/]* | ?:[\\/]*) 6672 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6673 ;; 6674 *) 6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6676for as_dir in $PATH 6677do 6678 IFS=$as_save_IFS 6679 test -z "$as_dir" && as_dir=. 6680 for ac_exec_ext in '' $ac_executable_extensions; do 6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6682 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6684 break 2 6685 fi 6686done 6687done 6688IFS=$as_save_IFS 6689 6690 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6691 ;; 6692esac 6693fi 6694TAR=$ac_cv_path_TAR 6695if test -n "$TAR"; then 6696 { echo "$as_me:$LINENO: result: $TAR" >&5 6697echo "${ECHO_T}$TAR" >&6; } 6698else 6699 { echo "$as_me:$LINENO: result: no" >&5 6700echo "${ECHO_T}no" >&6; } 6701fi 6702 6703 6704# Extract the first word of "pwd", so it can be a program name with args. 6705set dummy pwd; ac_word=$2 6706{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6708if test "${ac_cv_path_BINPWD+set}" = set; then 6709 echo $ECHO_N "(cached) $ECHO_C" >&6 6710else 6711 case $BINPWD in 6712 [\\/]* | ?:[\\/]*) 6713 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6714 ;; 6715 *) 6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6717for as_dir in $PATH 6718do 6719 IFS=$as_save_IFS 6720 test -z "$as_dir" && as_dir=. 6721 for ac_exec_ext in '' $ac_executable_extensions; do 6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6723 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6725 break 2 6726 fi 6727done 6728done 6729IFS=$as_save_IFS 6730 6731 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6732 ;; 6733esac 6734fi 6735BINPWD=$ac_cv_path_BINPWD 6736if test -n "$BINPWD"; then 6737 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6738echo "${ECHO_T}$BINPWD" >&6; } 6739else 6740 { echo "$as_me:$LINENO: result: no" >&5 6741echo "${ECHO_T}no" >&6; } 6742fi 6743 6744 6745 6746# Extract the first word of "Graphviz", so it can be a program name with args. 6747set dummy Graphviz; ac_word=$2 6748{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6750if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6751 echo $ECHO_N "(cached) $ECHO_C" >&6 6752else 6753 case $GRAPHVIZ in 6754 [\\/]* | ?:[\\/]*) 6755 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6756 ;; 6757 *) 6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6759for as_dir in $PATH 6760do 6761 IFS=$as_save_IFS 6762 test -z "$as_dir" && as_dir=. 6763 for ac_exec_ext in '' $ac_executable_extensions; do 6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6765 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6767 break 2 6768 fi 6769done 6770done 6771IFS=$as_save_IFS 6772 6773 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6774 ;; 6775esac 6776fi 6777GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6778if test -n "$GRAPHVIZ"; then 6779 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6780echo "${ECHO_T}$GRAPHVIZ" >&6; } 6781else 6782 { echo "$as_me:$LINENO: result: no" >&5 6783echo "${ECHO_T}no" >&6; } 6784fi 6785 6786 6787if test "$GRAPHVIZ" != "echo Graphviz" ; then 6788 6789cat >>confdefs.h <<\_ACEOF 6790#define HAVE_GRAPHVIZ 1 6791_ACEOF 6792 6793 if test "$llvm_cv_os_type" = "MingW" ; then 6794 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6795 fi 6796 6797cat >>confdefs.h <<_ACEOF 6798#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6799_ACEOF 6800 6801fi 6802# Extract the first word of "dot", so it can be a program name with args. 6803set dummy dot; ac_word=$2 6804{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6806if test "${ac_cv_path_DOT+set}" = set; then 6807 echo $ECHO_N "(cached) $ECHO_C" >&6 6808else 6809 case $DOT in 6810 [\\/]* | ?:[\\/]*) 6811 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6812 ;; 6813 *) 6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6815for as_dir in $PATH 6816do 6817 IFS=$as_save_IFS 6818 test -z "$as_dir" && as_dir=. 6819 for ac_exec_ext in '' $ac_executable_extensions; do 6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6821 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6823 break 2 6824 fi 6825done 6826done 6827IFS=$as_save_IFS 6828 6829 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6830 ;; 6831esac 6832fi 6833DOT=$ac_cv_path_DOT 6834if test -n "$DOT"; then 6835 { echo "$as_me:$LINENO: result: $DOT" >&5 6836echo "${ECHO_T}$DOT" >&6; } 6837else 6838 { echo "$as_me:$LINENO: result: no" >&5 6839echo "${ECHO_T}no" >&6; } 6840fi 6841 6842 6843if test "$DOT" != "echo dot" ; then 6844 6845cat >>confdefs.h <<\_ACEOF 6846#define HAVE_DOT 1 6847_ACEOF 6848 6849 if test "$llvm_cv_os_type" = "MingW" ; then 6850 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6851 fi 6852 6853cat >>confdefs.h <<_ACEOF 6854#define LLVM_PATH_DOT "$DOT${EXEEXT}" 6855_ACEOF 6856 6857fi 6858# Extract the first word of "fdp", so it can be a program name with args. 6859set dummy fdp; ac_word=$2 6860{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6862if test "${ac_cv_path_FDP+set}" = set; then 6863 echo $ECHO_N "(cached) $ECHO_C" >&6 6864else 6865 case $FDP in 6866 [\\/]* | ?:[\\/]*) 6867 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6868 ;; 6869 *) 6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6871for as_dir in $PATH 6872do 6873 IFS=$as_save_IFS 6874 test -z "$as_dir" && as_dir=. 6875 for ac_exec_ext in '' $ac_executable_extensions; do 6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6877 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6879 break 2 6880 fi 6881done 6882done 6883IFS=$as_save_IFS 6884 6885 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6886 ;; 6887esac 6888fi 6889FDP=$ac_cv_path_FDP 6890if test -n "$FDP"; then 6891 { echo "$as_me:$LINENO: result: $FDP" >&5 6892echo "${ECHO_T}$FDP" >&6; } 6893else 6894 { echo "$as_me:$LINENO: result: no" >&5 6895echo "${ECHO_T}no" >&6; } 6896fi 6897 6898 6899if test "$FDP" != "echo fdp" ; then 6900 6901cat >>confdefs.h <<\_ACEOF 6902#define HAVE_FDP 1 6903_ACEOF 6904 6905 if test "$llvm_cv_os_type" = "MingW" ; then 6906 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6907 fi 6908 6909cat >>confdefs.h <<_ACEOF 6910#define LLVM_PATH_FDP "$FDP${EXEEXT}" 6911_ACEOF 6912 6913fi 6914# Extract the first word of "neato", so it can be a program name with args. 6915set dummy neato; ac_word=$2 6916{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6918if test "${ac_cv_path_NEATO+set}" = set; then 6919 echo $ECHO_N "(cached) $ECHO_C" >&6 6920else 6921 case $NEATO in 6922 [\\/]* | ?:[\\/]*) 6923 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6924 ;; 6925 *) 6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6927for as_dir in $PATH 6928do 6929 IFS=$as_save_IFS 6930 test -z "$as_dir" && as_dir=. 6931 for ac_exec_ext in '' $ac_executable_extensions; do 6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6933 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6935 break 2 6936 fi 6937done 6938done 6939IFS=$as_save_IFS 6940 6941 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6942 ;; 6943esac 6944fi 6945NEATO=$ac_cv_path_NEATO 6946if test -n "$NEATO"; then 6947 { echo "$as_me:$LINENO: result: $NEATO" >&5 6948echo "${ECHO_T}$NEATO" >&6; } 6949else 6950 { echo "$as_me:$LINENO: result: no" >&5 6951echo "${ECHO_T}no" >&6; } 6952fi 6953 6954 6955if test "$NEATO" != "echo neato" ; then 6956 6957cat >>confdefs.h <<\_ACEOF 6958#define HAVE_NEATO 1 6959_ACEOF 6960 6961 if test "$llvm_cv_os_type" = "MingW" ; then 6962 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6963 fi 6964 6965cat >>confdefs.h <<_ACEOF 6966#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6967_ACEOF 6968 6969fi 6970# Extract the first word of "twopi", so it can be a program name with args. 6971set dummy twopi; ac_word=$2 6972{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6974if test "${ac_cv_path_TWOPI+set}" = set; then 6975 echo $ECHO_N "(cached) $ECHO_C" >&6 6976else 6977 case $TWOPI in 6978 [\\/]* | ?:[\\/]*) 6979 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 6980 ;; 6981 *) 6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6983for as_dir in $PATH 6984do 6985 IFS=$as_save_IFS 6986 test -z "$as_dir" && as_dir=. 6987 for ac_exec_ext in '' $ac_executable_extensions; do 6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6989 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6991 break 2 6992 fi 6993done 6994done 6995IFS=$as_save_IFS 6996 6997 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 6998 ;; 6999esac 7000fi 7001TWOPI=$ac_cv_path_TWOPI 7002if test -n "$TWOPI"; then 7003 { echo "$as_me:$LINENO: result: $TWOPI" >&5 7004echo "${ECHO_T}$TWOPI" >&6; } 7005else 7006 { echo "$as_me:$LINENO: result: no" >&5 7007echo "${ECHO_T}no" >&6; } 7008fi 7009 7010 7011if test "$TWOPI" != "echo twopi" ; then 7012 7013cat >>confdefs.h <<\_ACEOF 7014#define HAVE_TWOPI 1 7015_ACEOF 7016 7017 if test "$llvm_cv_os_type" = "MingW" ; then 7018 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7019 fi 7020 7021cat >>confdefs.h <<_ACEOF 7022#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 7023_ACEOF 7024 7025fi 7026# Extract the first word of "circo", so it can be a program name with args. 7027set dummy circo; ac_word=$2 7028{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7030if test "${ac_cv_path_CIRCO+set}" = set; then 7031 echo $ECHO_N "(cached) $ECHO_C" >&6 7032else 7033 case $CIRCO in 7034 [\\/]* | ?:[\\/]*) 7035 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 7036 ;; 7037 *) 7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7039for as_dir in $PATH 7040do 7041 IFS=$as_save_IFS 7042 test -z "$as_dir" && as_dir=. 7043 for ac_exec_ext in '' $ac_executable_extensions; do 7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7045 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 7046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7047 break 2 7048 fi 7049done 7050done 7051IFS=$as_save_IFS 7052 7053 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 7054 ;; 7055esac 7056fi 7057CIRCO=$ac_cv_path_CIRCO 7058if test -n "$CIRCO"; then 7059 { echo "$as_me:$LINENO: result: $CIRCO" >&5 7060echo "${ECHO_T}$CIRCO" >&6; } 7061else 7062 { echo "$as_me:$LINENO: result: no" >&5 7063echo "${ECHO_T}no" >&6; } 7064fi 7065 7066 7067if test "$CIRCO" != "echo circo" ; then 7068 7069cat >>confdefs.h <<\_ACEOF 7070#define HAVE_CIRCO 1 7071_ACEOF 7072 7073 if test "$llvm_cv_os_type" = "MingW" ; then 7074 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7075 fi 7076 7077cat >>confdefs.h <<_ACEOF 7078#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 7079_ACEOF 7080 7081fi 7082for ac_prog in gv gsview32 7083do 7084 # Extract the first word of "$ac_prog", so it can be a program name with args. 7085set dummy $ac_prog; ac_word=$2 7086{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7088if test "${ac_cv_path_GV+set}" = set; then 7089 echo $ECHO_N "(cached) $ECHO_C" >&6 7090else 7091 case $GV in 7092 [\\/]* | ?:[\\/]*) 7093 ac_cv_path_GV="$GV" # Let the user override the test with a path. 7094 ;; 7095 *) 7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7097for as_dir in $PATH 7098do 7099 IFS=$as_save_IFS 7100 test -z "$as_dir" && as_dir=. 7101 for ac_exec_ext in '' $ac_executable_extensions; do 7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7103 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 7104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7105 break 2 7106 fi 7107done 7108done 7109IFS=$as_save_IFS 7110 7111 ;; 7112esac 7113fi 7114GV=$ac_cv_path_GV 7115if test -n "$GV"; then 7116 { echo "$as_me:$LINENO: result: $GV" >&5 7117echo "${ECHO_T}$GV" >&6; } 7118else 7119 { echo "$as_me:$LINENO: result: no" >&5 7120echo "${ECHO_T}no" >&6; } 7121fi 7122 7123 7124 test -n "$GV" && break 7125done 7126test -n "$GV" || GV="echo gv" 7127 7128if test "$GV" != "echo gv" ; then 7129 7130cat >>confdefs.h <<\_ACEOF 7131#define HAVE_GV 1 7132_ACEOF 7133 7134 if test "$llvm_cv_os_type" = "MingW" ; then 7135 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7136 fi 7137 7138cat >>confdefs.h <<_ACEOF 7139#define LLVM_PATH_GV "$GV${EXEEXT}" 7140_ACEOF 7141 7142fi 7143# Extract the first word of "dotty", so it can be a program name with args. 7144set dummy dotty; ac_word=$2 7145{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7147if test "${ac_cv_path_DOTTY+set}" = set; then 7148 echo $ECHO_N "(cached) $ECHO_C" >&6 7149else 7150 case $DOTTY in 7151 [\\/]* | ?:[\\/]*) 7152 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 7153 ;; 7154 *) 7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7156for as_dir in $PATH 7157do 7158 IFS=$as_save_IFS 7159 test -z "$as_dir" && as_dir=. 7160 for ac_exec_ext in '' $ac_executable_extensions; do 7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7162 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7164 break 2 7165 fi 7166done 7167done 7168IFS=$as_save_IFS 7169 7170 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 7171 ;; 7172esac 7173fi 7174DOTTY=$ac_cv_path_DOTTY 7175if test -n "$DOTTY"; then 7176 { echo "$as_me:$LINENO: result: $DOTTY" >&5 7177echo "${ECHO_T}$DOTTY" >&6; } 7178else 7179 { echo "$as_me:$LINENO: result: no" >&5 7180echo "${ECHO_T}no" >&6; } 7181fi 7182 7183 7184if test "$DOTTY" != "echo dotty" ; then 7185 7186cat >>confdefs.h <<\_ACEOF 7187#define HAVE_DOTTY 1 7188_ACEOF 7189 7190 if test "$llvm_cv_os_type" = "MingW" ; then 7191 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7192 fi 7193 7194cat >>confdefs.h <<_ACEOF 7195#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 7196_ACEOF 7197 7198fi 7199# Extract the first word of "xdot.py", so it can be a program name with args. 7200set dummy xdot.py; ac_word=$2 7201{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7203if test "${ac_cv_path_XDOT_PY+set}" = set; then 7204 echo $ECHO_N "(cached) $ECHO_C" >&6 7205else 7206 case $XDOT_PY in 7207 [\\/]* | ?:[\\/]*) 7208 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 7209 ;; 7210 *) 7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212for as_dir in $PATH 7213do 7214 IFS=$as_save_IFS 7215 test -z "$as_dir" && as_dir=. 7216 for ac_exec_ext in '' $ac_executable_extensions; do 7217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7218 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 7219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7220 break 2 7221 fi 7222done 7223done 7224IFS=$as_save_IFS 7225 7226 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 7227 ;; 7228esac 7229fi 7230XDOT_PY=$ac_cv_path_XDOT_PY 7231if test -n "$XDOT_PY"; then 7232 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 7233echo "${ECHO_T}$XDOT_PY" >&6; } 7234else 7235 { echo "$as_me:$LINENO: result: no" >&5 7236echo "${ECHO_T}no" >&6; } 7237fi 7238 7239 7240if test "$XDOT_PY" != "echo xdot.py" ; then 7241 7242cat >>confdefs.h <<\_ACEOF 7243#define HAVE_XDOT_PY 1 7244_ACEOF 7245 7246 if test "$llvm_cv_os_type" = "MingW" ; then 7247 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7248 fi 7249 7250cat >>confdefs.h <<_ACEOF 7251#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 7252_ACEOF 7253 7254fi 7255 7256# Find a good install program. We prefer a C program (faster), 7257# so one script is as good as another. But avoid the broken or 7258# incompatible versions: 7259# SysV /etc/install, /usr/sbin/install 7260# SunOS /usr/etc/install 7261# IRIX /sbin/install 7262# AIX /bin/install 7263# AmigaOS /C/install, which installs bootblocks on floppy discs 7264# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7265# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7266# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7267# OS/2's system install, which has a completely different semantic 7268# ./install, which can be erroneously created by make from ./install.sh. 7269{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 7270echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 7271if test -z "$INSTALL"; then 7272if test "${ac_cv_path_install+set}" = set; then 7273 echo $ECHO_N "(cached) $ECHO_C" >&6 7274else 7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7276for as_dir in $PATH 7277do 7278 IFS=$as_save_IFS 7279 test -z "$as_dir" && as_dir=. 7280 # Account for people who put trailing slashes in PATH elements. 7281case $as_dir/ in 7282 ./ | .// | /cC/* | \ 7283 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7284 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 7285 /usr/ucb/* ) ;; 7286 *) 7287 # OSF1 and SCO ODT 3.0 have their own names for install. 7288 # Don't use installbsd from OSF since it installs stuff as root 7289 # by default. 7290 for ac_prog in ginstall scoinst install; do 7291 for ac_exec_ext in '' $ac_executable_extensions; do 7292 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 7293 if test $ac_prog = install && 7294 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7295 # AIX install. It has an incompatible calling convention. 7296 : 7297 elif test $ac_prog = install && 7298 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7299 # program-specific install script used by HP pwplus--don't use. 7300 : 7301 else 7302 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7303 break 3 7304 fi 7305 fi 7306 done 7307 done 7308 ;; 7309esac 7310done 7311IFS=$as_save_IFS 7312 7313 7314fi 7315 if test "${ac_cv_path_install+set}" = set; then 7316 INSTALL=$ac_cv_path_install 7317 else 7318 # As a last resort, use the slow shell script. Don't cache a 7319 # value for INSTALL within a source directory, because that will 7320 # break other packages using the cache if that directory is 7321 # removed, or if the value is a relative name. 7322 INSTALL=$ac_install_sh 7323 fi 7324fi 7325{ echo "$as_me:$LINENO: result: $INSTALL" >&5 7326echo "${ECHO_T}$INSTALL" >&6; } 7327 7328# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7329# It thinks the first close brace ends the variable substitution. 7330test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7331 7332test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7333 7334test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7335 7336case "$INSTALL" in 7337 [\\/$]* | ?:[\\/]* ) ;; 7338 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 7339esac 7340 7341# Extract the first word of "bzip2", so it can be a program name with args. 7342set dummy bzip2; ac_word=$2 7343{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7345if test "${ac_cv_path_BZIP2+set}" = set; then 7346 echo $ECHO_N "(cached) $ECHO_C" >&6 7347else 7348 case $BZIP2 in 7349 [\\/]* | ?:[\\/]*) 7350 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7351 ;; 7352 *) 7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7354for as_dir in $PATH 7355do 7356 IFS=$as_save_IFS 7357 test -z "$as_dir" && as_dir=. 7358 for ac_exec_ext in '' $ac_executable_extensions; do 7359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7360 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7362 break 2 7363 fi 7364done 7365done 7366IFS=$as_save_IFS 7367 7368 ;; 7369esac 7370fi 7371BZIP2=$ac_cv_path_BZIP2 7372if test -n "$BZIP2"; then 7373 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7374echo "${ECHO_T}$BZIP2" >&6; } 7375else 7376 { echo "$as_me:$LINENO: result: no" >&5 7377echo "${ECHO_T}no" >&6; } 7378fi 7379 7380 7381# Extract the first word of "cat", so it can be a program name with args. 7382set dummy cat; ac_word=$2 7383{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7385if test "${ac_cv_path_CAT+set}" = set; then 7386 echo $ECHO_N "(cached) $ECHO_C" >&6 7387else 7388 case $CAT in 7389 [\\/]* | ?:[\\/]*) 7390 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 7391 ;; 7392 *) 7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7394for as_dir in $PATH 7395do 7396 IFS=$as_save_IFS 7397 test -z "$as_dir" && as_dir=. 7398 for ac_exec_ext in '' $ac_executable_extensions; do 7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7400 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 7401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7402 break 2 7403 fi 7404done 7405done 7406IFS=$as_save_IFS 7407 7408 ;; 7409esac 7410fi 7411CAT=$ac_cv_path_CAT 7412if test -n "$CAT"; then 7413 { echo "$as_me:$LINENO: result: $CAT" >&5 7414echo "${ECHO_T}$CAT" >&6; } 7415else 7416 { echo "$as_me:$LINENO: result: no" >&5 7417echo "${ECHO_T}no" >&6; } 7418fi 7419 7420 7421# Extract the first word of "doxygen", so it can be a program name with args. 7422set dummy doxygen; ac_word=$2 7423{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7425if test "${ac_cv_path_DOXYGEN+set}" = set; then 7426 echo $ECHO_N "(cached) $ECHO_C" >&6 7427else 7428 case $DOXYGEN in 7429 [\\/]* | ?:[\\/]*) 7430 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7431 ;; 7432 *) 7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7434for as_dir in $PATH 7435do 7436 IFS=$as_save_IFS 7437 test -z "$as_dir" && as_dir=. 7438 for ac_exec_ext in '' $ac_executable_extensions; do 7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7440 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7442 break 2 7443 fi 7444done 7445done 7446IFS=$as_save_IFS 7447 7448 ;; 7449esac 7450fi 7451DOXYGEN=$ac_cv_path_DOXYGEN 7452if test -n "$DOXYGEN"; then 7453 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7454echo "${ECHO_T}$DOXYGEN" >&6; } 7455else 7456 { echo "$as_me:$LINENO: result: no" >&5 7457echo "${ECHO_T}no" >&6; } 7458fi 7459 7460 7461# Extract the first word of "groff", so it can be a program name with args. 7462set dummy groff; ac_word=$2 7463{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7465if test "${ac_cv_path_GROFF+set}" = set; then 7466 echo $ECHO_N "(cached) $ECHO_C" >&6 7467else 7468 case $GROFF in 7469 [\\/]* | ?:[\\/]*) 7470 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7471 ;; 7472 *) 7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7474for as_dir in $PATH 7475do 7476 IFS=$as_save_IFS 7477 test -z "$as_dir" && as_dir=. 7478 for ac_exec_ext in '' $ac_executable_extensions; do 7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7480 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7482 break 2 7483 fi 7484done 7485done 7486IFS=$as_save_IFS 7487 7488 ;; 7489esac 7490fi 7491GROFF=$ac_cv_path_GROFF 7492if test -n "$GROFF"; then 7493 { echo "$as_me:$LINENO: result: $GROFF" >&5 7494echo "${ECHO_T}$GROFF" >&6; } 7495else 7496 { echo "$as_me:$LINENO: result: no" >&5 7497echo "${ECHO_T}no" >&6; } 7498fi 7499 7500 7501# Extract the first word of "gzip", so it can be a program name with args. 7502set dummy gzip; ac_word=$2 7503{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7505if test "${ac_cv_path_GZIPBIN+set}" = set; then 7506 echo $ECHO_N "(cached) $ECHO_C" >&6 7507else 7508 case $GZIPBIN in 7509 [\\/]* | ?:[\\/]*) 7510 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7511 ;; 7512 *) 7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7514for as_dir in $PATH 7515do 7516 IFS=$as_save_IFS 7517 test -z "$as_dir" && as_dir=. 7518 for ac_exec_ext in '' $ac_executable_extensions; do 7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7520 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7522 break 2 7523 fi 7524done 7525done 7526IFS=$as_save_IFS 7527 7528 ;; 7529esac 7530fi 7531GZIPBIN=$ac_cv_path_GZIPBIN 7532if test -n "$GZIPBIN"; then 7533 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7534echo "${ECHO_T}$GZIPBIN" >&6; } 7535else 7536 { echo "$as_me:$LINENO: result: no" >&5 7537echo "${ECHO_T}no" >&6; } 7538fi 7539 7540 7541# Extract the first word of "pdfroff", so it can be a program name with args. 7542set dummy pdfroff; ac_word=$2 7543{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7545if test "${ac_cv_path_PDFROFF+set}" = set; then 7546 echo $ECHO_N "(cached) $ECHO_C" >&6 7547else 7548 case $PDFROFF in 7549 [\\/]* | ?:[\\/]*) 7550 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7551 ;; 7552 *) 7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7554for as_dir in $PATH 7555do 7556 IFS=$as_save_IFS 7557 test -z "$as_dir" && as_dir=. 7558 for ac_exec_ext in '' $ac_executable_extensions; do 7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7560 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7562 break 2 7563 fi 7564done 7565done 7566IFS=$as_save_IFS 7567 7568 ;; 7569esac 7570fi 7571PDFROFF=$ac_cv_path_PDFROFF 7572if test -n "$PDFROFF"; then 7573 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7574echo "${ECHO_T}$PDFROFF" >&6; } 7575else 7576 { echo "$as_me:$LINENO: result: no" >&5 7577echo "${ECHO_T}no" >&6; } 7578fi 7579 7580 7581# Extract the first word of "zip", so it can be a program name with args. 7582set dummy zip; ac_word=$2 7583{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7585if test "${ac_cv_path_ZIP+set}" = set; then 7586 echo $ECHO_N "(cached) $ECHO_C" >&6 7587else 7588 case $ZIP in 7589 [\\/]* | ?:[\\/]*) 7590 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7591 ;; 7592 *) 7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7594for as_dir in $PATH 7595do 7596 IFS=$as_save_IFS 7597 test -z "$as_dir" && as_dir=. 7598 for ac_exec_ext in '' $ac_executable_extensions; do 7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7600 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7602 break 2 7603 fi 7604done 7605done 7606IFS=$as_save_IFS 7607 7608 ;; 7609esac 7610fi 7611ZIP=$ac_cv_path_ZIP 7612if test -n "$ZIP"; then 7613 { echo "$as_me:$LINENO: result: $ZIP" >&5 7614echo "${ECHO_T}$ZIP" >&6; } 7615else 7616 { echo "$as_me:$LINENO: result: no" >&5 7617echo "${ECHO_T}no" >&6; } 7618fi 7619 7620 7621for ac_prog in ocamlc 7622do 7623 # Extract the first word of "$ac_prog", so it can be a program name with args. 7624set dummy $ac_prog; ac_word=$2 7625{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7627if test "${ac_cv_path_OCAMLC+set}" = set; then 7628 echo $ECHO_N "(cached) $ECHO_C" >&6 7629else 7630 case $OCAMLC in 7631 [\\/]* | ?:[\\/]*) 7632 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7633 ;; 7634 *) 7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7636for as_dir in $PATH 7637do 7638 IFS=$as_save_IFS 7639 test -z "$as_dir" && as_dir=. 7640 for ac_exec_ext in '' $ac_executable_extensions; do 7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7642 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7644 break 2 7645 fi 7646done 7647done 7648IFS=$as_save_IFS 7649 7650 ;; 7651esac 7652fi 7653OCAMLC=$ac_cv_path_OCAMLC 7654if test -n "$OCAMLC"; then 7655 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7656echo "${ECHO_T}$OCAMLC" >&6; } 7657else 7658 { echo "$as_me:$LINENO: result: no" >&5 7659echo "${ECHO_T}no" >&6; } 7660fi 7661 7662 7663 test -n "$OCAMLC" && break 7664done 7665 7666for ac_prog in ocamlopt 7667do 7668 # Extract the first word of "$ac_prog", so it can be a program name with args. 7669set dummy $ac_prog; ac_word=$2 7670{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7672if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7673 echo $ECHO_N "(cached) $ECHO_C" >&6 7674else 7675 case $OCAMLOPT in 7676 [\\/]* | ?:[\\/]*) 7677 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7678 ;; 7679 *) 7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7681for as_dir in $PATH 7682do 7683 IFS=$as_save_IFS 7684 test -z "$as_dir" && as_dir=. 7685 for ac_exec_ext in '' $ac_executable_extensions; do 7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7687 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7689 break 2 7690 fi 7691done 7692done 7693IFS=$as_save_IFS 7694 7695 ;; 7696esac 7697fi 7698OCAMLOPT=$ac_cv_path_OCAMLOPT 7699if test -n "$OCAMLOPT"; then 7700 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7701echo "${ECHO_T}$OCAMLOPT" >&6; } 7702else 7703 { echo "$as_me:$LINENO: result: no" >&5 7704echo "${ECHO_T}no" >&6; } 7705fi 7706 7707 7708 test -n "$OCAMLOPT" && break 7709done 7710 7711for ac_prog in ocamldep 7712do 7713 # Extract the first word of "$ac_prog", so it can be a program name with args. 7714set dummy $ac_prog; ac_word=$2 7715{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7717if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7718 echo $ECHO_N "(cached) $ECHO_C" >&6 7719else 7720 case $OCAMLDEP in 7721 [\\/]* | ?:[\\/]*) 7722 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7723 ;; 7724 *) 7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7726for as_dir in $PATH 7727do 7728 IFS=$as_save_IFS 7729 test -z "$as_dir" && as_dir=. 7730 for ac_exec_ext in '' $ac_executable_extensions; do 7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7732 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7734 break 2 7735 fi 7736done 7737done 7738IFS=$as_save_IFS 7739 7740 ;; 7741esac 7742fi 7743OCAMLDEP=$ac_cv_path_OCAMLDEP 7744if test -n "$OCAMLDEP"; then 7745 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7746echo "${ECHO_T}$OCAMLDEP" >&6; } 7747else 7748 { echo "$as_me:$LINENO: result: no" >&5 7749echo "${ECHO_T}no" >&6; } 7750fi 7751 7752 7753 test -n "$OCAMLDEP" && break 7754done 7755 7756for ac_prog in ocamldoc 7757do 7758 # Extract the first word of "$ac_prog", so it can be a program name with args. 7759set dummy $ac_prog; ac_word=$2 7760{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7762if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7763 echo $ECHO_N "(cached) $ECHO_C" >&6 7764else 7765 case $OCAMLDOC in 7766 [\\/]* | ?:[\\/]*) 7767 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7768 ;; 7769 *) 7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7771for as_dir in $PATH 7772do 7773 IFS=$as_save_IFS 7774 test -z "$as_dir" && as_dir=. 7775 for ac_exec_ext in '' $ac_executable_extensions; do 7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7777 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7779 break 2 7780 fi 7781done 7782done 7783IFS=$as_save_IFS 7784 7785 ;; 7786esac 7787fi 7788OCAMLDOC=$ac_cv_path_OCAMLDOC 7789if test -n "$OCAMLDOC"; then 7790 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7791echo "${ECHO_T}$OCAMLDOC" >&6; } 7792else 7793 { echo "$as_me:$LINENO: result: no" >&5 7794echo "${ECHO_T}no" >&6; } 7795fi 7796 7797 7798 test -n "$OCAMLDOC" && break 7799done 7800 7801for ac_prog in gas as 7802do 7803 # Extract the first word of "$ac_prog", so it can be a program name with args. 7804set dummy $ac_prog; ac_word=$2 7805{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7807if test "${ac_cv_path_GAS+set}" = set; then 7808 echo $ECHO_N "(cached) $ECHO_C" >&6 7809else 7810 case $GAS in 7811 [\\/]* | ?:[\\/]*) 7812 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7813 ;; 7814 *) 7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7816for as_dir in $PATH 7817do 7818 IFS=$as_save_IFS 7819 test -z "$as_dir" && as_dir=. 7820 for ac_exec_ext in '' $ac_executable_extensions; do 7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7822 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7824 break 2 7825 fi 7826done 7827done 7828IFS=$as_save_IFS 7829 7830 ;; 7831esac 7832fi 7833GAS=$ac_cv_path_GAS 7834if test -n "$GAS"; then 7835 { echo "$as_me:$LINENO: result: $GAS" >&5 7836echo "${ECHO_T}$GAS" >&6; } 7837else 7838 { echo "$as_me:$LINENO: result: no" >&5 7839echo "${ECHO_T}no" >&6; } 7840fi 7841 7842 7843 test -n "$GAS" && break 7844done 7845 7846 7847{ echo "$as_me:$LINENO: checking for linker version" >&5 7848echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7849if test "${llvm_cv_link_version+set}" = set; then 7850 echo $ECHO_N "(cached) $ECHO_C" >&6 7851else 7852 7853 version_string="$(ld -v 2>&1 | head -1)" 7854 7855 # Check for ld64. 7856 if (echo "$version_string" | grep -q "ld64"); then 7857 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7858 else 7859 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7860 fi 7861 7862fi 7863{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7864echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7865 7866cat >>confdefs.h <<_ACEOF 7867#define HOST_LINK_VERSION "$llvm_cv_link_version" 7868_ACEOF 7869 7870 7871 7872{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7873echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7874if test "${llvm_cv_link_use_r+set}" = set; then 7875 echo $ECHO_N "(cached) $ECHO_C" >&6 7876else 7877 ac_ext=c 7878ac_cpp='$CPP $CPPFLAGS' 7879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7881ac_compiler_gnu=$ac_cv_c_compiler_gnu 7882 7883 oldcflags="$CFLAGS" 7884 CFLAGS="$CFLAGS -Wl,-R." 7885 cat >conftest.$ac_ext <<_ACEOF 7886/* confdefs.h. */ 7887_ACEOF 7888cat confdefs.h >>conftest.$ac_ext 7889cat >>conftest.$ac_ext <<_ACEOF 7890/* end confdefs.h. */ 7891 7892int 7893main () 7894{ 7895 7896 ; 7897 return 0; 7898} 7899_ACEOF 7900rm -f conftest.$ac_objext conftest$ac_exeext 7901if { (ac_try="$ac_link" 7902case "(($ac_try" in 7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7904 *) ac_try_echo=$ac_try;; 7905esac 7906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7907 (eval "$ac_link") 2>conftest.er1 7908 ac_status=$? 7909 grep -v '^ *+' conftest.er1 >conftest.err 7910 rm -f conftest.er1 7911 cat conftest.err >&5 7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7913 (exit $ac_status); } && 7914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7915 { (case "(($ac_try" in 7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7917 *) ac_try_echo=$ac_try;; 7918esac 7919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7920 (eval "$ac_try") 2>&5 7921 ac_status=$? 7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7923 (exit $ac_status); }; } && 7924 { ac_try='test -s conftest$ac_exeext' 7925 { (case "(($ac_try" in 7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7927 *) ac_try_echo=$ac_try;; 7928esac 7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7930 (eval "$ac_try") 2>&5 7931 ac_status=$? 7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7933 (exit $ac_status); }; }; then 7934 llvm_cv_link_use_r=yes 7935else 7936 echo "$as_me: failed program was:" >&5 7937sed 's/^/| /' conftest.$ac_ext >&5 7938 7939 llvm_cv_link_use_r=no 7940fi 7941 7942rm -f core conftest.err conftest.$ac_objext \ 7943 conftest$ac_exeext conftest.$ac_ext 7944 CFLAGS="$oldcflags" 7945 ac_ext=c 7946ac_cpp='$CPP $CPPFLAGS' 7947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7949ac_compiler_gnu=$ac_cv_c_compiler_gnu 7950 7951 7952fi 7953{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7954echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7955if test "$llvm_cv_link_use_r" = yes ; then 7956 7957cat >>confdefs.h <<\_ACEOF 7958#define HAVE_LINK_R 1 7959_ACEOF 7960 7961 fi 7962 7963 7964{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 7965echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 7966if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7967 echo $ECHO_N "(cached) $ECHO_C" >&6 7968else 7969 ac_ext=c 7970ac_cpp='$CPP $CPPFLAGS' 7971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7973ac_compiler_gnu=$ac_cv_c_compiler_gnu 7974 7975 oldcflags="$CFLAGS" 7976 CFLAGS="$CFLAGS -Wl,-export-dynamic" 7977 cat >conftest.$ac_ext <<_ACEOF 7978/* confdefs.h. */ 7979_ACEOF 7980cat confdefs.h >>conftest.$ac_ext 7981cat >>conftest.$ac_ext <<_ACEOF 7982/* end confdefs.h. */ 7983 7984int 7985main () 7986{ 7987 7988 ; 7989 return 0; 7990} 7991_ACEOF 7992rm -f conftest.$ac_objext conftest$ac_exeext 7993if { (ac_try="$ac_link" 7994case "(($ac_try" in 7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7996 *) ac_try_echo=$ac_try;; 7997esac 7998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7999 (eval "$ac_link") 2>conftest.er1 8000 ac_status=$? 8001 grep -v '^ *+' conftest.er1 >conftest.err 8002 rm -f conftest.er1 8003 cat conftest.err >&5 8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8005 (exit $ac_status); } && 8006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8007 { (case "(($ac_try" in 8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8009 *) ac_try_echo=$ac_try;; 8010esac 8011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8012 (eval "$ac_try") 2>&5 8013 ac_status=$? 8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8015 (exit $ac_status); }; } && 8016 { ac_try='test -s conftest$ac_exeext' 8017 { (case "(($ac_try" in 8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8019 *) ac_try_echo=$ac_try;; 8020esac 8021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8022 (eval "$ac_try") 2>&5 8023 ac_status=$? 8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8025 (exit $ac_status); }; }; then 8026 llvm_cv_link_use_export_dynamic=yes 8027else 8028 echo "$as_me: failed program was:" >&5 8029sed 's/^/| /' conftest.$ac_ext >&5 8030 8031 llvm_cv_link_use_export_dynamic=no 8032fi 8033 8034rm -f core conftest.err conftest.$ac_objext \ 8035 conftest$ac_exeext conftest.$ac_ext 8036 CFLAGS="$oldcflags" 8037 ac_ext=c 8038ac_cpp='$CPP $CPPFLAGS' 8039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8041ac_compiler_gnu=$ac_cv_c_compiler_gnu 8042 8043 8044fi 8045{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 8046echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 8047if test "$llvm_cv_link_use_export_dynamic" = yes ; then 8048 8049cat >>confdefs.h <<\_ACEOF 8050#define HAVE_LINK_EXPORT_DYNAMIC 1 8051_ACEOF 8052 8053 fi 8054 8055 8056{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 8057echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 8058if test "${llvm_cv_link_use_version_script+set}" = set; then 8059 echo $ECHO_N "(cached) $ECHO_C" >&6 8060else 8061 ac_ext=c 8062ac_cpp='$CPP $CPPFLAGS' 8063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8065ac_compiler_gnu=$ac_cv_c_compiler_gnu 8066 8067 oldcflags="$CFLAGS" 8068 8069 # The following code is from the autoconf manual, 8070 # "11.13: Limitations of Usual Tools". 8071 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 8072 # Use mktemp if possible; otherwise fall back on mkdir, 8073 # with $RANDOM to make collisions less likely. 8074 : ${TMPDIR=/tmp} 8075 { 8076 tmp=` 8077 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 8078 ` && 8079 test -n "$tmp" && test -d "$tmp" 8080 } || { 8081 tmp=$TMPDIR/foo$$-$RANDOM 8082 (umask 077 && mkdir "$tmp") 8083 } || exit $? 8084 8085 echo "{" > "$tmp/export.map" 8086 echo " global: main;" >> "$tmp/export.map" 8087 echo " local: *;" >> "$tmp/export.map" 8088 echo "};" >> "$tmp/export.map" 8089 8090 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 8091 cat >conftest.$ac_ext <<_ACEOF 8092/* confdefs.h. */ 8093_ACEOF 8094cat confdefs.h >>conftest.$ac_ext 8095cat >>conftest.$ac_ext <<_ACEOF 8096/* end confdefs.h. */ 8097 8098int 8099main () 8100{ 8101 8102 ; 8103 return 0; 8104} 8105_ACEOF 8106rm -f conftest.$ac_objext conftest$ac_exeext 8107if { (ac_try="$ac_link" 8108case "(($ac_try" in 8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8110 *) ac_try_echo=$ac_try;; 8111esac 8112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8113 (eval "$ac_link") 2>conftest.er1 8114 ac_status=$? 8115 grep -v '^ *+' conftest.er1 >conftest.err 8116 rm -f conftest.er1 8117 cat conftest.err >&5 8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8119 (exit $ac_status); } && 8120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8121 { (case "(($ac_try" in 8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8123 *) ac_try_echo=$ac_try;; 8124esac 8125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8126 (eval "$ac_try") 2>&5 8127 ac_status=$? 8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8129 (exit $ac_status); }; } && 8130 { ac_try='test -s conftest$ac_exeext' 8131 { (case "(($ac_try" in 8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8133 *) ac_try_echo=$ac_try;; 8134esac 8135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8136 (eval "$ac_try") 2>&5 8137 ac_status=$? 8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8139 (exit $ac_status); }; }; then 8140 llvm_cv_link_use_version_script=yes 8141else 8142 echo "$as_me: failed program was:" >&5 8143sed 's/^/| /' conftest.$ac_ext >&5 8144 8145 llvm_cv_link_use_version_script=no 8146fi 8147 8148rm -f core conftest.err conftest.$ac_objext \ 8149 conftest$ac_exeext conftest.$ac_ext 8150 rm "$tmp/export.map" 8151 rmdir "$tmp" 8152 CFLAGS="$oldcflags" 8153 ac_ext=c 8154ac_cpp='$CPP $CPPFLAGS' 8155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8157ac_compiler_gnu=$ac_cv_c_compiler_gnu 8158 8159 8160fi 8161{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 8162echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 8163if test "$llvm_cv_link_use_version_script" = yes ; then 8164 HAVE_LINK_VERSION_SCRIPT=1 8165 8166 fi 8167 8168 8169 8170 8171{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8172echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 8173if test "${ac_cv_c_const+set}" = set; then 8174 echo $ECHO_N "(cached) $ECHO_C" >&6 8175else 8176 cat >conftest.$ac_ext <<_ACEOF 8177/* confdefs.h. */ 8178_ACEOF 8179cat confdefs.h >>conftest.$ac_ext 8180cat >>conftest.$ac_ext <<_ACEOF 8181/* end confdefs.h. */ 8182 8183int 8184main () 8185{ 8186/* FIXME: Include the comments suggested by Paul. */ 8187#ifndef __cplusplus 8188 /* Ultrix mips cc rejects this. */ 8189 typedef int charset[2]; 8190 const charset x; 8191 /* SunOS 4.1.1 cc rejects this. */ 8192 char const *const *ccp; 8193 char **p; 8194 /* NEC SVR4.0.2 mips cc rejects this. */ 8195 struct point {int x, y;}; 8196 static struct point const zero = {0,0}; 8197 /* AIX XL C 1.02.0.0 rejects this. 8198 It does not let you subtract one const X* pointer from another in 8199 an arm of an if-expression whose if-part is not a constant 8200 expression */ 8201 const char *g = "string"; 8202 ccp = &g + (g ? g-g : 0); 8203 /* HPUX 7.0 cc rejects these. */ 8204 ++ccp; 8205 p = (char**) ccp; 8206 ccp = (char const *const *) p; 8207 { /* SCO 3.2v4 cc rejects this. */ 8208 char *t; 8209 char const *s = 0 ? (char *) 0 : (char const *) 0; 8210 8211 *t++ = 0; 8212 if (s) return 0; 8213 } 8214 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8215 int x[] = {25, 17}; 8216 const int *foo = &x[0]; 8217 ++foo; 8218 } 8219 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8220 typedef const int *iptr; 8221 iptr p = 0; 8222 ++p; 8223 } 8224 { /* AIX XL C 1.02.0.0 rejects this saying 8225 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8226 struct s { int j; const int *ap[3]; }; 8227 struct s *b; b->j = 5; 8228 } 8229 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8230 const int foo = 10; 8231 if (!foo) return 0; 8232 } 8233 return !x[0] && !zero.x; 8234#endif 8235 8236 ; 8237 return 0; 8238} 8239_ACEOF 8240rm -f conftest.$ac_objext 8241if { (ac_try="$ac_compile" 8242case "(($ac_try" in 8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8244 *) ac_try_echo=$ac_try;; 8245esac 8246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8247 (eval "$ac_compile") 2>conftest.er1 8248 ac_status=$? 8249 grep -v '^ *+' conftest.er1 >conftest.err 8250 rm -f conftest.er1 8251 cat conftest.err >&5 8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8253 (exit $ac_status); } && 8254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8255 { (case "(($ac_try" in 8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8257 *) ac_try_echo=$ac_try;; 8258esac 8259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8260 (eval "$ac_try") 2>&5 8261 ac_status=$? 8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8263 (exit $ac_status); }; } && 8264 { ac_try='test -s conftest.$ac_objext' 8265 { (case "(($ac_try" in 8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8267 *) ac_try_echo=$ac_try;; 8268esac 8269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8270 (eval "$ac_try") 2>&5 8271 ac_status=$? 8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 (exit $ac_status); }; }; then 8274 ac_cv_c_const=yes 8275else 8276 echo "$as_me: failed program was:" >&5 8277sed 's/^/| /' conftest.$ac_ext >&5 8278 8279 ac_cv_c_const=no 8280fi 8281 8282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8283fi 8284{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8285echo "${ECHO_T}$ac_cv_c_const" >&6; } 8286if test $ac_cv_c_const = no; then 8287 8288cat >>confdefs.h <<\_ACEOF 8289#define const 8290_ACEOF 8291 8292fi 8293 8294 8295 8296 8297 8298 8299ac_header_dirent=no 8300for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8301 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8302{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8303echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8305 echo $ECHO_N "(cached) $ECHO_C" >&6 8306else 8307 cat >conftest.$ac_ext <<_ACEOF 8308/* confdefs.h. */ 8309_ACEOF 8310cat confdefs.h >>conftest.$ac_ext 8311cat >>conftest.$ac_ext <<_ACEOF 8312/* end confdefs.h. */ 8313#include <sys/types.h> 8314#include <$ac_hdr> 8315 8316int 8317main () 8318{ 8319if ((DIR *) 0) 8320return 0; 8321 ; 8322 return 0; 8323} 8324_ACEOF 8325rm -f conftest.$ac_objext 8326if { (ac_try="$ac_compile" 8327case "(($ac_try" in 8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8329 *) ac_try_echo=$ac_try;; 8330esac 8331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8332 (eval "$ac_compile") 2>conftest.er1 8333 ac_status=$? 8334 grep -v '^ *+' conftest.er1 >conftest.err 8335 rm -f conftest.er1 8336 cat conftest.err >&5 8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8338 (exit $ac_status); } && 8339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8340 { (case "(($ac_try" in 8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8342 *) ac_try_echo=$ac_try;; 8343esac 8344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8345 (eval "$ac_try") 2>&5 8346 ac_status=$? 8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8348 (exit $ac_status); }; } && 8349 { ac_try='test -s conftest.$ac_objext' 8350 { (case "(($ac_try" in 8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8352 *) ac_try_echo=$ac_try;; 8353esac 8354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8355 (eval "$ac_try") 2>&5 8356 ac_status=$? 8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8358 (exit $ac_status); }; }; then 8359 eval "$as_ac_Header=yes" 8360else 8361 echo "$as_me: failed program was:" >&5 8362sed 's/^/| /' conftest.$ac_ext >&5 8363 8364 eval "$as_ac_Header=no" 8365fi 8366 8367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8368fi 8369ac_res=`eval echo '${'$as_ac_Header'}'` 8370 { echo "$as_me:$LINENO: result: $ac_res" >&5 8371echo "${ECHO_T}$ac_res" >&6; } 8372if test `eval echo '${'$as_ac_Header'}'` = yes; then 8373 cat >>confdefs.h <<_ACEOF 8374#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8375_ACEOF 8376 8377ac_header_dirent=$ac_hdr; break 8378fi 8379 8380done 8381# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8382if test $ac_header_dirent = dirent.h; then 8383 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8384echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8385if test "${ac_cv_search_opendir+set}" = set; then 8386 echo $ECHO_N "(cached) $ECHO_C" >&6 8387else 8388 ac_func_search_save_LIBS=$LIBS 8389cat >conftest.$ac_ext <<_ACEOF 8390/* confdefs.h. */ 8391_ACEOF 8392cat confdefs.h >>conftest.$ac_ext 8393cat >>conftest.$ac_ext <<_ACEOF 8394/* end confdefs.h. */ 8395 8396/* Override any GCC internal prototype to avoid an error. 8397 Use char because int might match the return type of a GCC 8398 builtin and then its argument prototype would still apply. */ 8399#ifdef __cplusplus 8400extern "C" 8401#endif 8402char opendir (); 8403int 8404main () 8405{ 8406return opendir (); 8407 ; 8408 return 0; 8409} 8410_ACEOF 8411for ac_lib in '' dir; do 8412 if test -z "$ac_lib"; then 8413 ac_res="none required" 8414 else 8415 ac_res=-l$ac_lib 8416 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8417 fi 8418 rm -f conftest.$ac_objext conftest$ac_exeext 8419if { (ac_try="$ac_link" 8420case "(($ac_try" in 8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8422 *) ac_try_echo=$ac_try;; 8423esac 8424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8425 (eval "$ac_link") 2>conftest.er1 8426 ac_status=$? 8427 grep -v '^ *+' conftest.er1 >conftest.err 8428 rm -f conftest.er1 8429 cat conftest.err >&5 8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8431 (exit $ac_status); } && 8432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8433 { (case "(($ac_try" in 8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8435 *) ac_try_echo=$ac_try;; 8436esac 8437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8438 (eval "$ac_try") 2>&5 8439 ac_status=$? 8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8441 (exit $ac_status); }; } && 8442 { ac_try='test -s conftest$ac_exeext' 8443 { (case "(($ac_try" in 8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8445 *) ac_try_echo=$ac_try;; 8446esac 8447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8448 (eval "$ac_try") 2>&5 8449 ac_status=$? 8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8451 (exit $ac_status); }; }; then 8452 ac_cv_search_opendir=$ac_res 8453else 8454 echo "$as_me: failed program was:" >&5 8455sed 's/^/| /' conftest.$ac_ext >&5 8456 8457 8458fi 8459 8460rm -f core conftest.err conftest.$ac_objext \ 8461 conftest$ac_exeext 8462 if test "${ac_cv_search_opendir+set}" = set; then 8463 break 8464fi 8465done 8466if test "${ac_cv_search_opendir+set}" = set; then 8467 : 8468else 8469 ac_cv_search_opendir=no 8470fi 8471rm conftest.$ac_ext 8472LIBS=$ac_func_search_save_LIBS 8473fi 8474{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8475echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8476ac_res=$ac_cv_search_opendir 8477if test "$ac_res" != no; then 8478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8479 8480fi 8481 8482else 8483 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8484echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8485if test "${ac_cv_search_opendir+set}" = set; then 8486 echo $ECHO_N "(cached) $ECHO_C" >&6 8487else 8488 ac_func_search_save_LIBS=$LIBS 8489cat >conftest.$ac_ext <<_ACEOF 8490/* confdefs.h. */ 8491_ACEOF 8492cat confdefs.h >>conftest.$ac_ext 8493cat >>conftest.$ac_ext <<_ACEOF 8494/* end confdefs.h. */ 8495 8496/* Override any GCC internal prototype to avoid an error. 8497 Use char because int might match the return type of a GCC 8498 builtin and then its argument prototype would still apply. */ 8499#ifdef __cplusplus 8500extern "C" 8501#endif 8502char opendir (); 8503int 8504main () 8505{ 8506return opendir (); 8507 ; 8508 return 0; 8509} 8510_ACEOF 8511for ac_lib in '' x; do 8512 if test -z "$ac_lib"; then 8513 ac_res="none required" 8514 else 8515 ac_res=-l$ac_lib 8516 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8517 fi 8518 rm -f conftest.$ac_objext conftest$ac_exeext 8519if { (ac_try="$ac_link" 8520case "(($ac_try" in 8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8522 *) ac_try_echo=$ac_try;; 8523esac 8524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8525 (eval "$ac_link") 2>conftest.er1 8526 ac_status=$? 8527 grep -v '^ *+' conftest.er1 >conftest.err 8528 rm -f conftest.er1 8529 cat conftest.err >&5 8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8531 (exit $ac_status); } && 8532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8533 { (case "(($ac_try" in 8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8535 *) ac_try_echo=$ac_try;; 8536esac 8537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8538 (eval "$ac_try") 2>&5 8539 ac_status=$? 8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8541 (exit $ac_status); }; } && 8542 { ac_try='test -s conftest$ac_exeext' 8543 { (case "(($ac_try" in 8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8545 *) ac_try_echo=$ac_try;; 8546esac 8547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8548 (eval "$ac_try") 2>&5 8549 ac_status=$? 8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8551 (exit $ac_status); }; }; then 8552 ac_cv_search_opendir=$ac_res 8553else 8554 echo "$as_me: failed program was:" >&5 8555sed 's/^/| /' conftest.$ac_ext >&5 8556 8557 8558fi 8559 8560rm -f core conftest.err conftest.$ac_objext \ 8561 conftest$ac_exeext 8562 if test "${ac_cv_search_opendir+set}" = set; then 8563 break 8564fi 8565done 8566if test "${ac_cv_search_opendir+set}" = set; then 8567 : 8568else 8569 ac_cv_search_opendir=no 8570fi 8571rm conftest.$ac_ext 8572LIBS=$ac_func_search_save_LIBS 8573fi 8574{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8575echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8576ac_res=$ac_cv_search_opendir 8577if test "$ac_res" != no; then 8578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8579 8580fi 8581 8582fi 8583 8584 8585for ac_header in dlfcn.h 8586do 8587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8589 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8592 echo $ECHO_N "(cached) $ECHO_C" >&6 8593fi 8594ac_res=`eval echo '${'$as_ac_Header'}'` 8595 { echo "$as_me:$LINENO: result: $ac_res" >&5 8596echo "${ECHO_T}$ac_res" >&6; } 8597else 8598 # Is the header compilable? 8599{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8600echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8601cat >conftest.$ac_ext <<_ACEOF 8602/* confdefs.h. */ 8603_ACEOF 8604cat confdefs.h >>conftest.$ac_ext 8605cat >>conftest.$ac_ext <<_ACEOF 8606/* end confdefs.h. */ 8607$ac_includes_default 8608#include <$ac_header> 8609_ACEOF 8610rm -f conftest.$ac_objext 8611if { (ac_try="$ac_compile" 8612case "(($ac_try" in 8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8614 *) ac_try_echo=$ac_try;; 8615esac 8616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8617 (eval "$ac_compile") 2>conftest.er1 8618 ac_status=$? 8619 grep -v '^ *+' conftest.er1 >conftest.err 8620 rm -f conftest.er1 8621 cat conftest.err >&5 8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8623 (exit $ac_status); } && 8624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8625 { (case "(($ac_try" in 8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8627 *) ac_try_echo=$ac_try;; 8628esac 8629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8630 (eval "$ac_try") 2>&5 8631 ac_status=$? 8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8633 (exit $ac_status); }; } && 8634 { ac_try='test -s conftest.$ac_objext' 8635 { (case "(($ac_try" in 8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8637 *) ac_try_echo=$ac_try;; 8638esac 8639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8640 (eval "$ac_try") 2>&5 8641 ac_status=$? 8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8643 (exit $ac_status); }; }; then 8644 ac_header_compiler=yes 8645else 8646 echo "$as_me: failed program was:" >&5 8647sed 's/^/| /' conftest.$ac_ext >&5 8648 8649 ac_header_compiler=no 8650fi 8651 8652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8653{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8654echo "${ECHO_T}$ac_header_compiler" >&6; } 8655 8656# Is the header present? 8657{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8658echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8659cat >conftest.$ac_ext <<_ACEOF 8660/* confdefs.h. */ 8661_ACEOF 8662cat confdefs.h >>conftest.$ac_ext 8663cat >>conftest.$ac_ext <<_ACEOF 8664/* end confdefs.h. */ 8665#include <$ac_header> 8666_ACEOF 8667if { (ac_try="$ac_cpp conftest.$ac_ext" 8668case "(($ac_try" in 8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8670 *) ac_try_echo=$ac_try;; 8671esac 8672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8674 ac_status=$? 8675 grep -v '^ *+' conftest.er1 >conftest.err 8676 rm -f conftest.er1 8677 cat conftest.err >&5 8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8679 (exit $ac_status); } >/dev/null; then 8680 if test -s conftest.err; then 8681 ac_cpp_err=$ac_c_preproc_warn_flag 8682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8683 else 8684 ac_cpp_err= 8685 fi 8686else 8687 ac_cpp_err=yes 8688fi 8689if test -z "$ac_cpp_err"; then 8690 ac_header_preproc=yes 8691else 8692 echo "$as_me: failed program was:" >&5 8693sed 's/^/| /' conftest.$ac_ext >&5 8694 8695 ac_header_preproc=no 8696fi 8697 8698rm -f conftest.err conftest.$ac_ext 8699{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8700echo "${ECHO_T}$ac_header_preproc" >&6; } 8701 8702# So? What about this header? 8703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8704 yes:no: ) 8705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8708echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8709 ac_header_preproc=yes 8710 ;; 8711 no:yes:* ) 8712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8715echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8717echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8719echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8723echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8724 ( cat <<\_ASBOX 8725## ------------------------------------ ## 8726## Report this to http://llvm.org/bugs/ ## 8727## ------------------------------------ ## 8728_ASBOX 8729 ) | sed "s/^/$as_me: WARNING: /" >&2 8730 ;; 8731esac 8732{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8735 echo $ECHO_N "(cached) $ECHO_C" >&6 8736else 8737 eval "$as_ac_Header=\$ac_header_preproc" 8738fi 8739ac_res=`eval echo '${'$as_ac_Header'}'` 8740 { echo "$as_me:$LINENO: result: $ac_res" >&5 8741echo "${ECHO_T}$ac_res" >&6; } 8742 8743fi 8744if test `eval echo '${'$as_ac_Header'}'` = yes; then 8745 cat >>confdefs.h <<_ACEOF 8746#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8747_ACEOF 8748 8749fi 8750 8751done 8752 8753# Check whether --enable-ltdl-install was given. 8754if test "${enable_ltdl_install+set}" = set; then 8755 enableval=$enable_ltdl_install; 8756fi 8757 8758 8759 8760 8761if test x"${enable_ltdl_install-no}" != xno; then 8762 INSTALL_LTDL_TRUE= 8763 INSTALL_LTDL_FALSE='#' 8764else 8765 INSTALL_LTDL_TRUE='#' 8766 INSTALL_LTDL_FALSE= 8767fi 8768 8769 8770 8771if test x"${enable_ltdl_convenience-no}" != xno; then 8772 CONVENIENCE_LTDL_TRUE= 8773 CONVENIENCE_LTDL_FALSE='#' 8774else 8775 CONVENIENCE_LTDL_TRUE='#' 8776 CONVENIENCE_LTDL_FALSE= 8777fi 8778 8779 8780{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8781echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8782library_names_spec= 8783libname_spec='lib$name' 8784soname_spec= 8785shrext_cmds=".so" 8786postinstall_cmds= 8787postuninstall_cmds= 8788finish_cmds= 8789finish_eval= 8790shlibpath_var= 8791shlibpath_overrides_runpath=unknown 8792version_type=none 8793dynamic_linker="$host_os ld.so" 8794sys_lib_dlsearch_path_spec="/lib /usr/lib" 8795if test "$GCC" = yes; then 8796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8797 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8798 # if the path contains ";" then we assume it to be the separator 8799 # otherwise default to the standard path separator (i.e. ":") - it is 8800 # assumed that no part of a normal pathname contains ";" but that should 8801 # okay in the real world where ";" in dirpaths is itself problematic. 8802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8803 else 8804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8805 fi 8806else 8807 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8808fi 8809need_lib_prefix=unknown 8810hardcode_into_libs=no 8811 8812# when you set need_version to no, make sure it does not cause -set_version 8813# flags to be left without arguments 8814need_version=unknown 8815 8816case $host_os in 8817aix3*) 8818 version_type=linux 8819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8820 shlibpath_var=LIBPATH 8821 8822 # AIX 3 has no versioning support, so we append a major version to the name. 8823 soname_spec='${libname}${release}${shared_ext}$major' 8824 ;; 8825 8826aix4* | aix5*) 8827 version_type=linux 8828 need_lib_prefix=no 8829 need_version=no 8830 hardcode_into_libs=yes 8831 if test "$host_cpu" = ia64; then 8832 # AIX 5 supports IA64 8833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8834 shlibpath_var=LD_LIBRARY_PATH 8835 else 8836 # With GCC up to 2.95.x, collect2 would create an import file 8837 # for dependence libraries. The import file would start with 8838 # the line `#! .'. This would cause the generated library to 8839 # depend on `.', always an invalid library. This was fixed in 8840 # development snapshots of GCC prior to 3.0. 8841 case $host_os in 8842 aix4 | aix4.[01] | aix4.[01].*) 8843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8844 echo ' yes ' 8845 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8846 : 8847 else 8848 can_build_shared=no 8849 fi 8850 ;; 8851 esac 8852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8853 # soname into executable. Probably we can add versioning support to 8854 # collect2, so additional links can be useful in future. 8855 if test "$aix_use_runtimelinking" = yes; then 8856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8857 # instead of lib<name>.a to let people know that these are not 8858 # typical AIX shared libraries. 8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8860 else 8861 # We preserve .a as extension for shared libraries through AIX4.2 8862 # and later when we are not doing run time linking. 8863 library_names_spec='${libname}${release}.a $libname.a' 8864 soname_spec='${libname}${release}${shared_ext}$major' 8865 fi 8866 shlibpath_var=LIBPATH 8867 fi 8868 ;; 8869 8870amigaos*) 8871 library_names_spec='$libname.ixlibrary $libname.a' 8872 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8873 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' 8874 ;; 8875 8876beos*) 8877 library_names_spec='${libname}${shared_ext}' 8878 dynamic_linker="$host_os ld.so" 8879 shlibpath_var=LIBRARY_PATH 8880 ;; 8881 8882bsdi[45]*) 8883 version_type=linux 8884 need_version=no 8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8886 soname_spec='${libname}${release}${shared_ext}$major' 8887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8888 shlibpath_var=LD_LIBRARY_PATH 8889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8891 # the default ld.so.conf also contains /usr/contrib/lib and 8892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8893 # libtool to hard-code these into programs 8894 ;; 8895 8896cygwin* | mingw* | pw32*) 8897 version_type=windows 8898 shrext_cmds=".dll" 8899 need_version=no 8900 need_lib_prefix=no 8901 8902 case $GCC,$host_os in 8903 yes,cygwin* | yes,mingw* | yes,pw32*) 8904 library_names_spec='$libname.dll.a' 8905 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8906 postinstall_cmds='base_file=`basename \${file}`~ 8907 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8908 dldir=$destdir/`dirname \$dlpath`~ 8909 test -d \$dldir || mkdir -p \$dldir~ 8910 $install_prog $dir/$dlname \$dldir/$dlname~ 8911 chmod a+x \$dldir/$dlname' 8912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8913 dlpath=$dir/\$dldll~ 8914 $rm \$dlpath' 8915 shlibpath_overrides_runpath=yes 8916 8917 case $host_os in 8918 cygwin*) 8919 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8920 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8921 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8922 ;; 8923 mingw*) 8924 # MinGW DLLs use traditional 'lib' prefix 8925 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8926 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8927 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8928 # It is most probably a Windows format PATH printed by 8929 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8930 # path with ; separators, and with drive letters. We can handle the 8931 # drive letters (cygwin fileutils understands them), so leave them, 8932 # especially as we might pass files found there to a mingw objdump, 8933 # which wouldn't understand a cygwinified path. Ahh. 8934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8935 else 8936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8937 fi 8938 ;; 8939 pw32*) 8940 # pw32 DLLs use 'pw' prefix rather than 'lib' 8941 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8942 ;; 8943 esac 8944 ;; 8945 8946 *) 8947 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8948 ;; 8949 esac 8950 dynamic_linker='Win32 ld.exe' 8951 # FIXME: first we should search . and the directory the executable is in 8952 shlibpath_var=PATH 8953 ;; 8954 8955darwin* | rhapsody*) 8956 dynamic_linker="$host_os dyld" 8957 version_type=darwin 8958 need_lib_prefix=no 8959 need_version=no 8960 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8961 soname_spec='${libname}${release}${major}$shared_ext' 8962 shlibpath_overrides_runpath=yes 8963 shlibpath_var=DYLD_LIBRARY_PATH 8964 shrext_cmds='.dylib' 8965 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8966 if test "$GCC" = yes; then 8967 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"` 8968 else 8969 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8970 fi 8971 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8972 ;; 8973 8974dgux*) 8975 version_type=linux 8976 need_lib_prefix=no 8977 need_version=no 8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8979 soname_spec='${libname}${release}${shared_ext}$major' 8980 shlibpath_var=LD_LIBRARY_PATH 8981 ;; 8982 8983freebsd1.*) 8984 dynamic_linker=no 8985 ;; 8986 8987kfreebsd*-gnu) 8988 version_type=linux 8989 need_lib_prefix=no 8990 need_version=no 8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8992 soname_spec='${libname}${release}${shared_ext}$major' 8993 shlibpath_var=LD_LIBRARY_PATH 8994 shlibpath_overrides_runpath=no 8995 hardcode_into_libs=yes 8996 dynamic_linker='GNU ld.so' 8997 ;; 8998 8999freebsd* | dragonfly*) 9000 # DragonFly does not have aout. When/if they implement a new 9001 # versioning mechanism, adjust this. 9002 if test -x /usr/bin/objformat; then 9003 objformat=`/usr/bin/objformat` 9004 else 9005 case $host_os in 9006 freebsd[123].*) objformat=aout ;; 9007 *) objformat=elf ;; 9008 esac 9009 fi 9010 version_type=freebsd-$objformat 9011 case $version_type in 9012 freebsd-elf*) 9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9014 need_version=no 9015 need_lib_prefix=no 9016 ;; 9017 freebsd-*) 9018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9019 need_version=yes 9020 ;; 9021 esac 9022 shlibpath_var=LD_LIBRARY_PATH 9023 case $host_os in 9024 freebsd2.*) 9025 shlibpath_overrides_runpath=yes 9026 ;; 9027 freebsd3.[01]* | freebsdelf3.[01]*) 9028 shlibpath_overrides_runpath=yes 9029 hardcode_into_libs=yes 9030 ;; 9031 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9032 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9033 shlibpath_overrides_runpath=no 9034 hardcode_into_libs=yes 9035 ;; 9036 freebsd*) # from 4.6 on 9037 shlibpath_overrides_runpath=yes 9038 hardcode_into_libs=yes 9039 ;; 9040 esac 9041 ;; 9042 9043gnu*) 9044 version_type=linux 9045 need_lib_prefix=no 9046 need_version=no 9047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9048 soname_spec='${libname}${release}${shared_ext}$major' 9049 shlibpath_var=LD_LIBRARY_PATH 9050 hardcode_into_libs=yes 9051 ;; 9052 9053hpux9* | hpux10* | hpux11*) 9054 # Give a soname corresponding to the major version so that dld.sl refuses to 9055 # link against other versions. 9056 version_type=sunos 9057 need_lib_prefix=no 9058 need_version=no 9059 case $host_cpu in 9060 ia64*) 9061 shrext_cmds='.so' 9062 hardcode_into_libs=yes 9063 dynamic_linker="$host_os dld.so" 9064 shlibpath_var=LD_LIBRARY_PATH 9065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9067 soname_spec='${libname}${release}${shared_ext}$major' 9068 if test "X$HPUX_IA64_MODE" = X32; then 9069 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9070 else 9071 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9072 fi 9073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9074 ;; 9075 hppa*64*) 9076 shrext_cmds='.sl' 9077 hardcode_into_libs=yes 9078 dynamic_linker="$host_os dld.sl" 9079 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9082 soname_spec='${libname}${release}${shared_ext}$major' 9083 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9085 ;; 9086 *) 9087 shrext_cmds='.sl' 9088 dynamic_linker="$host_os dld.sl" 9089 shlibpath_var=SHLIB_PATH 9090 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9092 soname_spec='${libname}${release}${shared_ext}$major' 9093 ;; 9094 esac 9095 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9096 postinstall_cmds='chmod 555 $lib' 9097 ;; 9098 9099interix3*) 9100 version_type=linux 9101 need_lib_prefix=no 9102 need_version=no 9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9104 soname_spec='${libname}${release}${shared_ext}$major' 9105 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9106 shlibpath_var=LD_LIBRARY_PATH 9107 shlibpath_overrides_runpath=no 9108 hardcode_into_libs=yes 9109 ;; 9110 9111irix5* | irix6* | nonstopux*) 9112 case $host_os in 9113 nonstopux*) version_type=nonstopux ;; 9114 *) 9115 if test "$lt_cv_prog_gnu_ld" = yes; then 9116 version_type=linux 9117 else 9118 version_type=irix 9119 fi ;; 9120 esac 9121 need_lib_prefix=no 9122 need_version=no 9123 soname_spec='${libname}${release}${shared_ext}$major' 9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9125 case $host_os in 9126 irix5* | nonstopux*) 9127 libsuff= shlibsuff= 9128 ;; 9129 *) 9130 case $LD in # libtool.m4 will add one of these switches to LD 9131 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9132 libsuff= shlibsuff= libmagic=32-bit;; 9133 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9134 libsuff=32 shlibsuff=N32 libmagic=N32;; 9135 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9136 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9137 *) libsuff= shlibsuff= libmagic=never-match;; 9138 esac 9139 ;; 9140 esac 9141 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9142 shlibpath_overrides_runpath=no 9143 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9144 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9145 hardcode_into_libs=yes 9146 ;; 9147 9148# No shared lib support for Linux oldld, aout, or coff. 9149linux*oldld* | linux*aout* | linux*coff*) 9150 dynamic_linker=no 9151 ;; 9152 9153# This must be Linux ELF. 9154linux*) 9155 version_type=linux 9156 need_lib_prefix=no 9157 need_version=no 9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9159 soname_spec='${libname}${release}${shared_ext}$major' 9160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9161 shlibpath_var=LD_LIBRARY_PATH 9162 shlibpath_overrides_runpath=no 9163 # This implies no fast_install, which is unacceptable. 9164 # Some rework will be needed to allow for fast_install 9165 # before this can be enabled. 9166 hardcode_into_libs=yes 9167 9168 # Append ld.so.conf contents to the search path 9169 if test -f /etc/ld.so.conf; then 9170 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' ' '` 9171 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9172 fi 9173 9174 # We used to test for /lib/ld.so.1 and disable shared libraries on 9175 # powerpc, because MkLinux only supported shared libraries with the 9176 # GNU dynamic linker. Since this was broken with cross compilers, 9177 # most powerpc-linux boxes support dynamic linking these days and 9178 # people can always --disable-shared, the test was removed, and we 9179 # assume the GNU/Linux dynamic linker is in use. 9180 dynamic_linker='GNU/Linux ld.so' 9181 ;; 9182 9183knetbsd*-gnu) 9184 version_type=linux 9185 need_lib_prefix=no 9186 need_version=no 9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9188 soname_spec='${libname}${release}${shared_ext}$major' 9189 shlibpath_var=LD_LIBRARY_PATH 9190 shlibpath_overrides_runpath=no 9191 hardcode_into_libs=yes 9192 dynamic_linker='GNU ld.so' 9193 ;; 9194 9195netbsd*) 9196 version_type=sunos 9197 need_lib_prefix=no 9198 need_version=no 9199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9202 dynamic_linker='NetBSD (a.out) ld.so' 9203 else 9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9205 soname_spec='${libname}${release}${shared_ext}$major' 9206 dynamic_linker='NetBSD ld.elf_so' 9207 fi 9208 shlibpath_var=LD_LIBRARY_PATH 9209 shlibpath_overrides_runpath=yes 9210 hardcode_into_libs=yes 9211 ;; 9212 9213newsos6) 9214 version_type=linux 9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9216 shlibpath_var=LD_LIBRARY_PATH 9217 shlibpath_overrides_runpath=yes 9218 ;; 9219 9220nto-qnx*) 9221 version_type=linux 9222 need_lib_prefix=no 9223 need_version=no 9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9225 soname_spec='${libname}${release}${shared_ext}$major' 9226 shlibpath_var=LD_LIBRARY_PATH 9227 shlibpath_overrides_runpath=yes 9228 ;; 9229 9230openbsd* | bitrig*) 9231 version_type=sunos 9232 sys_lib_dlsearch_path_spec="/usr/lib" 9233 need_lib_prefix=no 9234 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9235 case $host_os in 9236 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9237 *) need_version=no ;; 9238 esac 9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9241 shlibpath_var=LD_LIBRARY_PATH 9242 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9243 case $host_os in 9244 openbsd2.[89] | openbsd2.[89].*) 9245 shlibpath_overrides_runpath=no 9246 ;; 9247 *) 9248 shlibpath_overrides_runpath=yes 9249 ;; 9250 esac 9251 else 9252 shlibpath_overrides_runpath=yes 9253 fi 9254 ;; 9255 9256os2*) 9257 libname_spec='$name' 9258 shrext_cmds=".dll" 9259 need_lib_prefix=no 9260 library_names_spec='$libname${shared_ext} $libname.a' 9261 dynamic_linker='OS/2 ld.exe' 9262 shlibpath_var=LIBPATH 9263 ;; 9264 9265osf3* | osf4* | osf5*) 9266 version_type=osf 9267 need_lib_prefix=no 9268 need_version=no 9269 soname_spec='${libname}${release}${shared_ext}$major' 9270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9271 shlibpath_var=LD_LIBRARY_PATH 9272 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9273 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9274 ;; 9275 9276solaris*) 9277 version_type=linux 9278 need_lib_prefix=no 9279 need_version=no 9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9281 soname_spec='${libname}${release}${shared_ext}$major' 9282 shlibpath_var=LD_LIBRARY_PATH 9283 shlibpath_overrides_runpath=yes 9284 hardcode_into_libs=yes 9285 # ldd complains unless libraries are executable 9286 postinstall_cmds='chmod +x $lib' 9287 ;; 9288 9289sunos4*) 9290 version_type=sunos 9291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9293 shlibpath_var=LD_LIBRARY_PATH 9294 shlibpath_overrides_runpath=yes 9295 if test "$with_gnu_ld" = yes; then 9296 need_lib_prefix=no 9297 fi 9298 need_version=yes 9299 ;; 9300 9301sysv4 | sysv4.3*) 9302 version_type=linux 9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9304 soname_spec='${libname}${release}${shared_ext}$major' 9305 shlibpath_var=LD_LIBRARY_PATH 9306 case $host_vendor in 9307 sni) 9308 shlibpath_overrides_runpath=no 9309 need_lib_prefix=no 9310 export_dynamic_flag_spec='${wl}-Blargedynsym' 9311 runpath_var=LD_RUN_PATH 9312 ;; 9313 siemens) 9314 need_lib_prefix=no 9315 ;; 9316 motorola) 9317 need_lib_prefix=no 9318 need_version=no 9319 shlibpath_overrides_runpath=no 9320 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9321 ;; 9322 esac 9323 ;; 9324 9325sysv4*MP*) 9326 if test -d /usr/nec ;then 9327 version_type=linux 9328 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9329 soname_spec='$libname${shared_ext}.$major' 9330 shlibpath_var=LD_LIBRARY_PATH 9331 fi 9332 ;; 9333 9334sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9335 version_type=freebsd-elf 9336 need_lib_prefix=no 9337 need_version=no 9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9339 soname_spec='${libname}${release}${shared_ext}$major' 9340 shlibpath_var=LD_LIBRARY_PATH 9341 hardcode_into_libs=yes 9342 if test "$with_gnu_ld" = yes; then 9343 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9344 shlibpath_overrides_runpath=no 9345 else 9346 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9347 shlibpath_overrides_runpath=yes 9348 case $host_os in 9349 sco3.2v5*) 9350 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9351 ;; 9352 esac 9353 fi 9354 sys_lib_dlsearch_path_spec='/usr/lib' 9355 ;; 9356 9357uts4*) 9358 version_type=linux 9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9360 soname_spec='${libname}${release}${shared_ext}$major' 9361 shlibpath_var=LD_LIBRARY_PATH 9362 ;; 9363 9364*) 9365 dynamic_linker=no 9366 ;; 9367esac 9368{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9369echo "${ECHO_T}$dynamic_linker" >&6; } 9370test "$dynamic_linker" = no && can_build_shared=no 9371 9372variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9373if test "$GCC" = yes; then 9374 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9375fi 9376 9377 9378{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9379echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9380if test "${libltdl_cv_shlibext+set}" = set; then 9381 echo $ECHO_N "(cached) $ECHO_C" >&6 9382else 9383 9384module=yes 9385eval libltdl_cv_shlibext=$shrext_cmds 9386 9387fi 9388{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9389echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9390if test -n "$libltdl_cv_shlibext"; then 9391 9392cat >>confdefs.h <<_ACEOF 9393#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9394_ACEOF 9395 9396fi 9397 9398 9399{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 9400echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 9401if test "${libltdl_cv_shlibpath_var+set}" = set; then 9402 echo $ECHO_N "(cached) $ECHO_C" >&6 9403else 9404 libltdl_cv_shlibpath_var="$shlibpath_var" 9405fi 9406{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 9407echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 9408if test -n "$libltdl_cv_shlibpath_var"; then 9409 9410cat >>confdefs.h <<_ACEOF 9411#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 9412_ACEOF 9413 9414fi 9415 9416 9417{ echo "$as_me:$LINENO: checking for the default library search path" >&5 9418echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9419if test "${libltdl_cv_sys_search_path+set}" = set; then 9420 echo $ECHO_N "(cached) $ECHO_C" >&6 9421else 9422 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9423fi 9424{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9425echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9426if test -n "$libltdl_cv_sys_search_path"; then 9427 sys_search_path= 9428 for dir in $libltdl_cv_sys_search_path; do 9429 if test -z "$sys_search_path"; then 9430 sys_search_path="$dir" 9431 else 9432 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9433 fi 9434 done 9435 9436cat >>confdefs.h <<_ACEOF 9437#define LTDL_SYSSEARCHPATH "$sys_search_path" 9438_ACEOF 9439 9440fi 9441 9442{ echo "$as_me:$LINENO: checking for objdir" >&5 9443echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9444if test "${libltdl_cv_objdir+set}" = set; then 9445 echo $ECHO_N "(cached) $ECHO_C" >&6 9446else 9447 libltdl_cv_objdir="$objdir" 9448 if test -n "$objdir"; then 9449 : 9450 else 9451 rm -f .libs 2>/dev/null 9452 mkdir .libs 2>/dev/null 9453 if test -d .libs; then 9454 libltdl_cv_objdir=.libs 9455 else 9456 # MS-DOS does not allow filenames that begin with a dot. 9457 libltdl_cv_objdir=_libs 9458 fi 9459 rmdir .libs 2>/dev/null 9460 fi 9461 9462fi 9463{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9464echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9465 9466cat >>confdefs.h <<_ACEOF 9467#define LTDL_OBJDIR "$libltdl_cv_objdir/" 9468_ACEOF 9469 9470 9471 9472 9473 9474 9475# Check for command to grab the raw symbol name followed by C symbol from nm. 9476{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9477echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9478if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9479 echo $ECHO_N "(cached) $ECHO_C" >&6 9480else 9481 9482# These are sane defaults that work on at least a few old systems. 9483# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9484 9485# Character class describing NM global symbol codes. 9486symcode='[BCDEGRST]' 9487 9488# Regexp to match symbols that can be accessed directly from C. 9489sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9490 9491# Transform an extracted symbol line into a proper C declaration 9492lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9493 9494# Transform an extracted symbol line into symbol name and symbol address 9495lt_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'" 9496 9497# Define system-specific variables. 9498case $host_os in 9499aix*) 9500 symcode='[BCDT]' 9501 ;; 9502cygwin* | mingw* | pw32*) 9503 symcode='[ABCDGISTW]' 9504 ;; 9505hpux*) # Its linker distinguishes data from code symbols 9506 if test "$host_cpu" = ia64; then 9507 symcode='[ABCDEGRST]' 9508 fi 9509 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9510 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'" 9511 ;; 9512linux*) 9513 if test "$host_cpu" = ia64; then 9514 symcode='[ABCDGIRSTW]' 9515 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9516 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'" 9517 fi 9518 ;; 9519irix* | nonstopux*) 9520 symcode='[BCDEGRST]' 9521 ;; 9522osf*) 9523 symcode='[BCDEGQRST]' 9524 ;; 9525solaris*) 9526 symcode='[BDRT]' 9527 ;; 9528sco3.2v5*) 9529 symcode='[DT]' 9530 ;; 9531sysv4.2uw2*) 9532 symcode='[DT]' 9533 ;; 9534sysv5* | sco5v6* | unixware* | OpenUNIX*) 9535 symcode='[ABDT]' 9536 ;; 9537sysv4) 9538 symcode='[DFNSTU]' 9539 ;; 9540esac 9541 9542# Handle CRLF in mingw tool chain 9543opt_cr= 9544case $build_os in 9545mingw*) 9546 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9547 ;; 9548esac 9549 9550# If we're using GNU nm, then use its standard symbol codes. 9551case `$NM -V 2>&1` in 9552*GNU* | *'with BFD'*) 9553 symcode='[ABCDGIRSTW]' ;; 9554esac 9555 9556# Try without a prefix undercore, then with it. 9557for ac_symprfx in "" "_"; do 9558 9559 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9560 symxfrm="\\1 $ac_symprfx\\2 \\2" 9561 9562 # Write the raw and C identifiers. 9563 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9564 9565 # Check to see that the pipe works correctly. 9566 pipe_works=no 9567 9568 rm -f conftest* 9569 cat > conftest.$ac_ext <<EOF 9570#ifdef __cplusplus 9571extern "C" { 9572#endif 9573char nm_test_var; 9574void nm_test_func(){} 9575#ifdef __cplusplus 9576} 9577#endif 9578int main(){nm_test_var='a';nm_test_func();return(0);} 9579EOF 9580 9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9582 (eval $ac_compile) 2>&5 9583 ac_status=$? 9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9585 (exit $ac_status); }; then 9586 # Now try to grab the symbols. 9587 nlist=conftest.nm 9588 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9589 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9590 ac_status=$? 9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9592 (exit $ac_status); } && test -s "$nlist"; then 9593 # Try sorting and uniquifying the output. 9594 if sort "$nlist" | uniq > "$nlist"T; then 9595 mv -f "$nlist"T "$nlist" 9596 else 9597 rm -f "$nlist"T 9598 fi 9599 9600 # Make sure that we snagged all the symbols we need. 9601 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9602 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9603 cat <<EOF > conftest.$ac_ext 9604#ifdef __cplusplus 9605extern "C" { 9606#endif 9607 9608EOF 9609 # Now generate the symbol file. 9610 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9611 9612 cat <<EOF >> conftest.$ac_ext 9613#if defined (__STDC__) && __STDC__ 9614# define lt_ptr_t void * 9615#else 9616# define lt_ptr_t char * 9617# define const 9618#endif 9619 9620/* The mapping between symbol names and symbols. */ 9621const struct { 9622 const char *name; 9623 lt_ptr_t address; 9624} 9625lt_preloaded_symbols[] = 9626{ 9627EOF 9628 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9629 cat <<\EOF >> conftest.$ac_ext 9630 {0, (lt_ptr_t) 0} 9631}; 9632 9633#ifdef __cplusplus 9634} 9635#endif 9636EOF 9637 # Now try linking the two files. 9638 mv conftest.$ac_objext conftstm.$ac_objext 9639 lt_save_LIBS="$LIBS" 9640 lt_save_CFLAGS="$CFLAGS" 9641 LIBS="conftstm.$ac_objext" 9642 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9644 (eval $ac_link) 2>&5 9645 ac_status=$? 9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9647 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9648 pipe_works=yes 9649 fi 9650 LIBS="$lt_save_LIBS" 9651 CFLAGS="$lt_save_CFLAGS" 9652 else 9653 echo "cannot find nm_test_func in $nlist" >&5 9654 fi 9655 else 9656 echo "cannot find nm_test_var in $nlist" >&5 9657 fi 9658 else 9659 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9660 fi 9661 else 9662 echo "$progname: failed program was:" >&5 9663 cat conftest.$ac_ext >&5 9664 fi 9665 rm -f conftest* conftst* 9666 9667 # Do not use the global_symbol_pipe unless it works. 9668 if test "$pipe_works" = yes; then 9669 break 9670 else 9671 lt_cv_sys_global_symbol_pipe= 9672 fi 9673done 9674 9675fi 9676 9677if test -z "$lt_cv_sys_global_symbol_pipe"; then 9678 lt_cv_sys_global_symbol_to_cdecl= 9679fi 9680if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9681 { echo "$as_me:$LINENO: result: failed" >&5 9682echo "${ECHO_T}failed" >&6; } 9683else 9684 { echo "$as_me:$LINENO: result: ok" >&5 9685echo "${ECHO_T}ok" >&6; } 9686fi 9687 9688 9689{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9690echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9691if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9692 echo $ECHO_N "(cached) $ECHO_C" >&6 9693else 9694 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9695 libltdl_cv_preloaded_symbols=yes 9696 else 9697 libltdl_cv_preloaded_symbols=no 9698 fi 9699 9700fi 9701{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9702echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9703if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9704 9705cat >>confdefs.h <<\_ACEOF 9706#define HAVE_PRELOADED_SYMBOLS 1 9707_ACEOF 9708 9709fi 9710 9711LIBADD_DL= 9712 9713ac_ext=c 9714ac_cpp='$CPP $CPPFLAGS' 9715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9717ac_compiler_gnu=$ac_cv_c_compiler_gnu 9718 9719 9720{ echo "$as_me:$LINENO: checking for shl_load" >&5 9721echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9722if test "${ac_cv_func_shl_load+set}" = set; then 9723 echo $ECHO_N "(cached) $ECHO_C" >&6 9724else 9725 cat >conftest.$ac_ext <<_ACEOF 9726/* confdefs.h. */ 9727_ACEOF 9728cat confdefs.h >>conftest.$ac_ext 9729cat >>conftest.$ac_ext <<_ACEOF 9730/* end confdefs.h. */ 9731/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9732 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9733#define shl_load innocuous_shl_load 9734 9735/* System header to define __stub macros and hopefully few prototypes, 9736 which can conflict with char shl_load (); below. 9737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9738 <limits.h> exists even on freestanding compilers. */ 9739 9740#ifdef __STDC__ 9741# include <limits.h> 9742#else 9743# include <assert.h> 9744#endif 9745 9746#undef shl_load 9747 9748/* Override any GCC internal prototype to avoid an error. 9749 Use char because int might match the return type of a GCC 9750 builtin and then its argument prototype would still apply. */ 9751#ifdef __cplusplus 9752extern "C" 9753#endif 9754char shl_load (); 9755/* The GNU C library defines this for functions which it implements 9756 to always fail with ENOSYS. Some functions are actually named 9757 something starting with __ and the normal name is an alias. */ 9758#if defined __stub_shl_load || defined __stub___shl_load 9759choke me 9760#endif 9761 9762int 9763main () 9764{ 9765return shl_load (); 9766 ; 9767 return 0; 9768} 9769_ACEOF 9770rm -f conftest.$ac_objext conftest$ac_exeext 9771if { (ac_try="$ac_link" 9772case "(($ac_try" in 9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9774 *) ac_try_echo=$ac_try;; 9775esac 9776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9777 (eval "$ac_link") 2>conftest.er1 9778 ac_status=$? 9779 grep -v '^ *+' conftest.er1 >conftest.err 9780 rm -f conftest.er1 9781 cat conftest.err >&5 9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9783 (exit $ac_status); } && 9784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9785 { (case "(($ac_try" in 9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9787 *) ac_try_echo=$ac_try;; 9788esac 9789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9790 (eval "$ac_try") 2>&5 9791 ac_status=$? 9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9793 (exit $ac_status); }; } && 9794 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 9804 ac_cv_func_shl_load=yes 9805else 9806 echo "$as_me: failed program was:" >&5 9807sed 's/^/| /' conftest.$ac_ext >&5 9808 9809 ac_cv_func_shl_load=no 9810fi 9811 9812rm -f core conftest.err conftest.$ac_objext \ 9813 conftest$ac_exeext conftest.$ac_ext 9814fi 9815{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9816echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9817if test $ac_cv_func_shl_load = yes; then 9818 9819cat >>confdefs.h <<\_ACEOF 9820#define HAVE_SHL_LOAD 1 9821_ACEOF 9822 9823else 9824 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9825echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9826if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9827 echo $ECHO_N "(cached) $ECHO_C" >&6 9828else 9829 ac_check_lib_save_LIBS=$LIBS 9830LIBS="-ldld $LIBS" 9831cat >conftest.$ac_ext <<_ACEOF 9832/* confdefs.h. */ 9833_ACEOF 9834cat confdefs.h >>conftest.$ac_ext 9835cat >>conftest.$ac_ext <<_ACEOF 9836/* end confdefs.h. */ 9837 9838/* Override any GCC internal prototype to avoid an error. 9839 Use char because int might match the return type of a GCC 9840 builtin and then its argument prototype would still apply. */ 9841#ifdef __cplusplus 9842extern "C" 9843#endif 9844char shl_load (); 9845int 9846main () 9847{ 9848return shl_load (); 9849 ; 9850 return 0; 9851} 9852_ACEOF 9853rm -f conftest.$ac_objext conftest$ac_exeext 9854if { (ac_try="$ac_link" 9855case "(($ac_try" in 9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9857 *) ac_try_echo=$ac_try;; 9858esac 9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9860 (eval "$ac_link") 2>conftest.er1 9861 ac_status=$? 9862 grep -v '^ *+' conftest.er1 >conftest.err 9863 rm -f conftest.er1 9864 cat conftest.err >&5 9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9866 (exit $ac_status); } && 9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9868 { (case "(($ac_try" in 9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9870 *) ac_try_echo=$ac_try;; 9871esac 9872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9873 (eval "$ac_try") 2>&5 9874 ac_status=$? 9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9876 (exit $ac_status); }; } && 9877 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 9887 ac_cv_lib_dld_shl_load=yes 9888else 9889 echo "$as_me: failed program was:" >&5 9890sed 's/^/| /' conftest.$ac_ext >&5 9891 9892 ac_cv_lib_dld_shl_load=no 9893fi 9894 9895rm -f core conftest.err conftest.$ac_objext \ 9896 conftest$ac_exeext conftest.$ac_ext 9897LIBS=$ac_check_lib_save_LIBS 9898fi 9899{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9900echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9901if test $ac_cv_lib_dld_shl_load = yes; then 9902 9903cat >>confdefs.h <<\_ACEOF 9904#define HAVE_SHL_LOAD 1 9905_ACEOF 9906 9907 LIBADD_DL="$LIBADD_DL -ldld" 9908else 9909 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9910echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9911if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9912 echo $ECHO_N "(cached) $ECHO_C" >&6 9913else 9914 ac_check_lib_save_LIBS=$LIBS 9915LIBS="-ldl $LIBS" 9916cat >conftest.$ac_ext <<_ACEOF 9917/* confdefs.h. */ 9918_ACEOF 9919cat confdefs.h >>conftest.$ac_ext 9920cat >>conftest.$ac_ext <<_ACEOF 9921/* end confdefs.h. */ 9922 9923/* Override any GCC internal prototype to avoid an error. 9924 Use char because int might match the return type of a GCC 9925 builtin and then its argument prototype would still apply. */ 9926#ifdef __cplusplus 9927extern "C" 9928#endif 9929char dlopen (); 9930int 9931main () 9932{ 9933return dlopen (); 9934 ; 9935 return 0; 9936} 9937_ACEOF 9938rm -f conftest.$ac_objext conftest$ac_exeext 9939if { (ac_try="$ac_link" 9940case "(($ac_try" in 9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9942 *) ac_try_echo=$ac_try;; 9943esac 9944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9945 (eval "$ac_link") 2>conftest.er1 9946 ac_status=$? 9947 grep -v '^ *+' conftest.er1 >conftest.err 9948 rm -f conftest.er1 9949 cat conftest.err >&5 9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9951 (exit $ac_status); } && 9952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9953 { (case "(($ac_try" in 9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9955 *) ac_try_echo=$ac_try;; 9956esac 9957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9958 (eval "$ac_try") 2>&5 9959 ac_status=$? 9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9961 (exit $ac_status); }; } && 9962 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 9972 ac_cv_lib_dl_dlopen=yes 9973else 9974 echo "$as_me: failed program was:" >&5 9975sed 's/^/| /' conftest.$ac_ext >&5 9976 9977 ac_cv_lib_dl_dlopen=no 9978fi 9979 9980rm -f core conftest.err conftest.$ac_objext \ 9981 conftest$ac_exeext conftest.$ac_ext 9982LIBS=$ac_check_lib_save_LIBS 9983fi 9984{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9985echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9986if test $ac_cv_lib_dl_dlopen = yes; then 9987 9988cat >>confdefs.h <<\_ACEOF 9989#define HAVE_LIBDL 1 9990_ACEOF 9991 9992 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 9993else 9994 cat >conftest.$ac_ext <<_ACEOF 9995/* confdefs.h. */ 9996_ACEOF 9997cat confdefs.h >>conftest.$ac_ext 9998cat >>conftest.$ac_ext <<_ACEOF 9999/* end confdefs.h. */ 10000#if HAVE_DLFCN_H 10001# include <dlfcn.h> 10002#endif 10003 10004int 10005main () 10006{ 10007dlopen(0, 0); 10008 ; 10009 return 0; 10010} 10011_ACEOF 10012rm -f conftest.$ac_objext conftest$ac_exeext 10013if { (ac_try="$ac_link" 10014case "(($ac_try" in 10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10016 *) ac_try_echo=$ac_try;; 10017esac 10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10019 (eval "$ac_link") 2>conftest.er1 10020 ac_status=$? 10021 grep -v '^ *+' conftest.er1 >conftest.err 10022 rm -f conftest.er1 10023 cat conftest.err >&5 10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10025 (exit $ac_status); } && 10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10027 { (case "(($ac_try" in 10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10029 *) ac_try_echo=$ac_try;; 10030esac 10031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10032 (eval "$ac_try") 2>&5 10033 ac_status=$? 10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10035 (exit $ac_status); }; } && 10036 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 10046 10047cat >>confdefs.h <<\_ACEOF 10048#define HAVE_LIBDL 1 10049_ACEOF 10050 libltdl_cv_func_dlopen="yes" 10051else 10052 echo "$as_me: failed program was:" >&5 10053sed 's/^/| /' conftest.$ac_ext >&5 10054 10055 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10056echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10057if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10058 echo $ECHO_N "(cached) $ECHO_C" >&6 10059else 10060 ac_check_lib_save_LIBS=$LIBS 10061LIBS="-lsvld $LIBS" 10062cat >conftest.$ac_ext <<_ACEOF 10063/* confdefs.h. */ 10064_ACEOF 10065cat confdefs.h >>conftest.$ac_ext 10066cat >>conftest.$ac_ext <<_ACEOF 10067/* end confdefs.h. */ 10068 10069/* Override any GCC internal prototype to avoid an error. 10070 Use char because int might match the return type of a GCC 10071 builtin and then its argument prototype would still apply. */ 10072#ifdef __cplusplus 10073extern "C" 10074#endif 10075char dlopen (); 10076int 10077main () 10078{ 10079return dlopen (); 10080 ; 10081 return 0; 10082} 10083_ACEOF 10084rm -f conftest.$ac_objext conftest$ac_exeext 10085if { (ac_try="$ac_link" 10086case "(($ac_try" in 10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10088 *) ac_try_echo=$ac_try;; 10089esac 10090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10091 (eval "$ac_link") 2>conftest.er1 10092 ac_status=$? 10093 grep -v '^ *+' conftest.er1 >conftest.err 10094 rm -f conftest.er1 10095 cat conftest.err >&5 10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10097 (exit $ac_status); } && 10098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10099 { (case "(($ac_try" in 10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10101 *) ac_try_echo=$ac_try;; 10102esac 10103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10104 (eval "$ac_try") 2>&5 10105 ac_status=$? 10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10107 (exit $ac_status); }; } && 10108 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 10118 ac_cv_lib_svld_dlopen=yes 10119else 10120 echo "$as_me: failed program was:" >&5 10121sed 's/^/| /' conftest.$ac_ext >&5 10122 10123 ac_cv_lib_svld_dlopen=no 10124fi 10125 10126rm -f core conftest.err conftest.$ac_objext \ 10127 conftest$ac_exeext conftest.$ac_ext 10128LIBS=$ac_check_lib_save_LIBS 10129fi 10130{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10131echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10132if test $ac_cv_lib_svld_dlopen = yes; then 10133 10134cat >>confdefs.h <<\_ACEOF 10135#define HAVE_LIBDL 1 10136_ACEOF 10137 10138 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 10139else 10140 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10141echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10142if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10143 echo $ECHO_N "(cached) $ECHO_C" >&6 10144else 10145 ac_check_lib_save_LIBS=$LIBS 10146LIBS="-ldld $LIBS" 10147cat >conftest.$ac_ext <<_ACEOF 10148/* confdefs.h. */ 10149_ACEOF 10150cat confdefs.h >>conftest.$ac_ext 10151cat >>conftest.$ac_ext <<_ACEOF 10152/* end confdefs.h. */ 10153 10154/* Override any GCC internal prototype to avoid an error. 10155 Use char because int might match the return type of a GCC 10156 builtin and then its argument prototype would still apply. */ 10157#ifdef __cplusplus 10158extern "C" 10159#endif 10160char dld_link (); 10161int 10162main () 10163{ 10164return dld_link (); 10165 ; 10166 return 0; 10167} 10168_ACEOF 10169rm -f conftest.$ac_objext conftest$ac_exeext 10170if { (ac_try="$ac_link" 10171case "(($ac_try" in 10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10173 *) ac_try_echo=$ac_try;; 10174esac 10175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10176 (eval "$ac_link") 2>conftest.er1 10177 ac_status=$? 10178 grep -v '^ *+' conftest.er1 >conftest.err 10179 rm -f conftest.er1 10180 cat conftest.err >&5 10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10182 (exit $ac_status); } && 10183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10184 { (case "(($ac_try" in 10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10186 *) ac_try_echo=$ac_try;; 10187esac 10188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10189 (eval "$ac_try") 2>&5 10190 ac_status=$? 10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10192 (exit $ac_status); }; } && 10193 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 10203 ac_cv_lib_dld_dld_link=yes 10204else 10205 echo "$as_me: failed program was:" >&5 10206sed 's/^/| /' conftest.$ac_ext >&5 10207 10208 ac_cv_lib_dld_dld_link=no 10209fi 10210 10211rm -f core conftest.err conftest.$ac_objext \ 10212 conftest$ac_exeext conftest.$ac_ext 10213LIBS=$ac_check_lib_save_LIBS 10214fi 10215{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10216echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10217if test $ac_cv_lib_dld_dld_link = yes; then 10218 10219cat >>confdefs.h <<\_ACEOF 10220#define HAVE_DLD 1 10221_ACEOF 10222 10223 LIBADD_DL="$LIBADD_DL -ldld" 10224else 10225 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 10226echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10227if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10228 echo $ECHO_N "(cached) $ECHO_C" >&6 10229else 10230 cat >conftest.$ac_ext <<_ACEOF 10231/* confdefs.h. */ 10232_ACEOF 10233cat confdefs.h >>conftest.$ac_ext 10234cat >>conftest.$ac_ext <<_ACEOF 10235/* end confdefs.h. */ 10236/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10237 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10238#define _dyld_func_lookup innocuous__dyld_func_lookup 10239 10240/* System header to define __stub macros and hopefully few prototypes, 10241 which can conflict with char _dyld_func_lookup (); below. 10242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10243 <limits.h> exists even on freestanding compilers. */ 10244 10245#ifdef __STDC__ 10246# include <limits.h> 10247#else 10248# include <assert.h> 10249#endif 10250 10251#undef _dyld_func_lookup 10252 10253/* Override any GCC internal prototype to avoid an error. 10254 Use char because int might match the return type of a GCC 10255 builtin and then its argument prototype would still apply. */ 10256#ifdef __cplusplus 10257extern "C" 10258#endif 10259char _dyld_func_lookup (); 10260/* The GNU C library defines this for functions which it implements 10261 to always fail with ENOSYS. Some functions are actually named 10262 something starting with __ and the normal name is an alias. */ 10263#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10264choke me 10265#endif 10266 10267int 10268main () 10269{ 10270return _dyld_func_lookup (); 10271 ; 10272 return 0; 10273} 10274_ACEOF 10275rm -f conftest.$ac_objext conftest$ac_exeext 10276if { (ac_try="$ac_link" 10277case "(($ac_try" in 10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10279 *) ac_try_echo=$ac_try;; 10280esac 10281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10282 (eval "$ac_link") 2>conftest.er1 10283 ac_status=$? 10284 grep -v '^ *+' conftest.er1 >conftest.err 10285 rm -f conftest.er1 10286 cat conftest.err >&5 10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10288 (exit $ac_status); } && 10289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10290 { (case "(($ac_try" in 10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10292 *) ac_try_echo=$ac_try;; 10293esac 10294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10295 (eval "$ac_try") 2>&5 10296 ac_status=$? 10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10298 (exit $ac_status); }; } && 10299 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 10309 ac_cv_func__dyld_func_lookup=yes 10310else 10311 echo "$as_me: failed program was:" >&5 10312sed 's/^/| /' conftest.$ac_ext >&5 10313 10314 ac_cv_func__dyld_func_lookup=no 10315fi 10316 10317rm -f core conftest.err conftest.$ac_objext \ 10318 conftest$ac_exeext conftest.$ac_ext 10319fi 10320{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10321echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10322if test $ac_cv_func__dyld_func_lookup = yes; then 10323 10324cat >>confdefs.h <<\_ACEOF 10325#define HAVE_DYLD 1 10326_ACEOF 10327 10328fi 10329 10330 10331fi 10332 10333 10334fi 10335 10336 10337fi 10338 10339rm -f core conftest.err conftest.$ac_objext \ 10340 conftest$ac_exeext conftest.$ac_ext 10341 10342fi 10343 10344 10345fi 10346 10347 10348fi 10349 10350 10351if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10352then 10353 lt_save_LIBS="$LIBS" 10354 LIBS="$LIBS $LIBADD_DL" 10355 10356for ac_func in dlerror 10357do 10358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10359{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10361if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10362 echo $ECHO_N "(cached) $ECHO_C" >&6 10363else 10364 cat >conftest.$ac_ext <<_ACEOF 10365/* confdefs.h. */ 10366_ACEOF 10367cat confdefs.h >>conftest.$ac_ext 10368cat >>conftest.$ac_ext <<_ACEOF 10369/* end confdefs.h. */ 10370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10371 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10372#define $ac_func innocuous_$ac_func 10373 10374/* System header to define __stub macros and hopefully few prototypes, 10375 which can conflict with char $ac_func (); below. 10376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10377 <limits.h> exists even on freestanding compilers. */ 10378 10379#ifdef __STDC__ 10380# include <limits.h> 10381#else 10382# include <assert.h> 10383#endif 10384 10385#undef $ac_func 10386 10387/* Override any GCC internal prototype to avoid an error. 10388 Use char because int might match the return type of a GCC 10389 builtin and then its argument prototype would still apply. */ 10390#ifdef __cplusplus 10391extern "C" 10392#endif 10393char $ac_func (); 10394/* The GNU C library defines this for functions which it implements 10395 to always fail with ENOSYS. Some functions are actually named 10396 something starting with __ and the normal name is an alias. */ 10397#if defined __stub_$ac_func || defined __stub___$ac_func 10398choke me 10399#endif 10400 10401int 10402main () 10403{ 10404return $ac_func (); 10405 ; 10406 return 0; 10407} 10408_ACEOF 10409rm -f conftest.$ac_objext conftest$ac_exeext 10410if { (ac_try="$ac_link" 10411case "(($ac_try" in 10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10413 *) ac_try_echo=$ac_try;; 10414esac 10415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10416 (eval "$ac_link") 2>conftest.er1 10417 ac_status=$? 10418 grep -v '^ *+' conftest.er1 >conftest.err 10419 rm -f conftest.er1 10420 cat conftest.err >&5 10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10422 (exit $ac_status); } && 10423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10424 { (case "(($ac_try" in 10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10426 *) ac_try_echo=$ac_try;; 10427esac 10428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10429 (eval "$ac_try") 2>&5 10430 ac_status=$? 10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10432 (exit $ac_status); }; } && 10433 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 10443 eval "$as_ac_var=yes" 10444else 10445 echo "$as_me: failed program was:" >&5 10446sed 's/^/| /' conftest.$ac_ext >&5 10447 10448 eval "$as_ac_var=no" 10449fi 10450 10451rm -f core conftest.err conftest.$ac_objext \ 10452 conftest$ac_exeext conftest.$ac_ext 10453fi 10454ac_res=`eval echo '${'$as_ac_var'}'` 10455 { echo "$as_me:$LINENO: result: $ac_res" >&5 10456echo "${ECHO_T}$ac_res" >&6; } 10457if test `eval echo '${'$as_ac_var'}'` = yes; then 10458 cat >>confdefs.h <<_ACEOF 10459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10460_ACEOF 10461 10462fi 10463done 10464 10465 LIBS="$lt_save_LIBS" 10466fi 10467ac_ext=c 10468ac_cpp='$CPP $CPPFLAGS' 10469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10471ac_compiler_gnu=$ac_cv_c_compiler_gnu 10472 10473 10474 10475{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10476echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10477if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10478 echo $ECHO_N "(cached) $ECHO_C" >&6 10479else 10480 ac_cv_sys_symbol_underscore=no 10481 cat > conftest.$ac_ext <<EOF 10482void nm_test_func(){} 10483int main(){nm_test_func;return 0;} 10484EOF 10485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10486 (eval $ac_compile) 2>&5 10487 ac_status=$? 10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10489 (exit $ac_status); }; then 10490 # Now try to grab the symbols. 10491 ac_nlist=conftest.nm 10492 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10493 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10494 ac_status=$? 10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10496 (exit $ac_status); } && test -s "$ac_nlist"; then 10497 # See whether the symbols have a leading underscore. 10498 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10499 ac_cv_sys_symbol_underscore=yes 10500 else 10501 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10502 : 10503 else 10504 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10505 fi 10506 fi 10507 else 10508 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10509 fi 10510 else 10511 echo "configure: failed program was:" >&5 10512 cat conftest.c >&5 10513 fi 10514 rm -rf conftest* 10515 10516fi 10517{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10518echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10519 10520 10521if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10522 if test x"$libltdl_cv_func_dlopen" = xyes || 10523 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10524 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10525echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10526if test "${libltdl_cv_need_uscore+set}" = set; then 10527 echo $ECHO_N "(cached) $ECHO_C" >&6 10528else 10529 libltdl_cv_need_uscore=unknown 10530 save_LIBS="$LIBS" 10531 LIBS="$LIBS $LIBADD_DL" 10532 if test "$cross_compiling" = yes; then : 10533 libltdl_cv_need_uscore=cross 10534else 10535 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10536 lt_status=$lt_dlunknown 10537 cat > conftest.$ac_ext <<EOF 10538#line 10538 "configure" 10539#include "confdefs.h" 10540 10541#if HAVE_DLFCN_H 10542#include <dlfcn.h> 10543#endif 10544 10545#include <stdio.h> 10546 10547#ifdef RTLD_GLOBAL 10548# define LT_DLGLOBAL RTLD_GLOBAL 10549#else 10550# ifdef DL_GLOBAL 10551# define LT_DLGLOBAL DL_GLOBAL 10552# else 10553# define LT_DLGLOBAL 0 10554# endif 10555#endif 10556 10557/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10558 find out it does not work in some platform. */ 10559#ifndef LT_DLLAZY_OR_NOW 10560# ifdef RTLD_LAZY 10561# define LT_DLLAZY_OR_NOW RTLD_LAZY 10562# else 10563# ifdef DL_LAZY 10564# define LT_DLLAZY_OR_NOW DL_LAZY 10565# else 10566# ifdef RTLD_NOW 10567# define LT_DLLAZY_OR_NOW RTLD_NOW 10568# else 10569# ifdef DL_NOW 10570# define LT_DLLAZY_OR_NOW DL_NOW 10571# else 10572# define LT_DLLAZY_OR_NOW 0 10573# endif 10574# endif 10575# endif 10576# endif 10577#endif 10578 10579#ifdef __cplusplus 10580extern "C" void exit (int); 10581#endif 10582 10583void fnord() { int i=42;} 10584int main () 10585{ 10586 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10587 int status = $lt_dlunknown; 10588 10589 if (self) 10590 { 10591 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10592 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10593 /* dlclose (self); */ 10594 } 10595 else 10596 puts (dlerror ()); 10597 10598 exit (status); 10599} 10600EOF 10601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10602 (eval $ac_link) 2>&5 10603 ac_status=$? 10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10605 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10606 (./conftest; exit; ) >&5 2>/dev/null 10607 lt_status=$? 10608 case x$lt_status in 10609 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10610 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10611 x$lt_dlunknown|x*) ;; 10612 esac 10613 else : 10614 # compilation failed 10615 10616 fi 10617fi 10618rm -fr conftest* 10619 10620 LIBS="$save_LIBS" 10621 10622fi 10623{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10624echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10625 fi 10626fi 10627 10628if test x"$libltdl_cv_need_uscore" = xyes; then 10629 10630cat >>confdefs.h <<\_ACEOF 10631#define NEED_USCORE 1 10632_ACEOF 10633 10634fi 10635 10636 10637{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10638echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10639if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10640 echo $ECHO_N "(cached) $ECHO_C" >&6 10641else 10642 # PORTME does your system automatically load deplibs for dlopen? 10643 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10644 # For now, we just catch OSes we know something about -- in the 10645 # future, we'll try test this programmatically. 10646 libltdl_cv_sys_dlopen_deplibs=unknown 10647 case "$host_os" in 10648 aix3*|aix4.1.*|aix4.2.*) 10649 # Unknown whether this is true for these versions of AIX, but 10650 # we want this `case' here to explicitly catch those versions. 10651 libltdl_cv_sys_dlopen_deplibs=unknown 10652 ;; 10653 aix[45]*) 10654 libltdl_cv_sys_dlopen_deplibs=yes 10655 ;; 10656 darwin*) 10657 # Assuming the user has installed a libdl from somewhere, this is true 10658 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10659 libltdl_cv_sys_dlopen_deplibs=yes 10660 ;; 10661 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10662 # GNU and its variants, using gnu ld.so (Glibc) 10663 libltdl_cv_sys_dlopen_deplibs=yes 10664 ;; 10665 hpux10*|hpux11*) 10666 libltdl_cv_sys_dlopen_deplibs=yes 10667 ;; 10668 interix*) 10669 libltdl_cv_sys_dlopen_deplibs=yes 10670 ;; 10671 irix[12345]*|irix6.[01]*) 10672 # Catch all versions of IRIX before 6.2, and indicate that we don't 10673 # know how it worked for any of those versions. 10674 libltdl_cv_sys_dlopen_deplibs=unknown 10675 ;; 10676 irix*) 10677 # The case above catches anything before 6.2, and it's known that 10678 # at 6.2 and later dlopen does load deplibs. 10679 libltdl_cv_sys_dlopen_deplibs=yes 10680 ;; 10681 netbsd*) 10682 libltdl_cv_sys_dlopen_deplibs=yes 10683 ;; 10684 openbsd*) 10685 libltdl_cv_sys_dlopen_deplibs=yes 10686 ;; 10687 osf[1234]*) 10688 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10689 # it did *not* use an RPATH in a shared library to find objects the 10690 # library depends on, so we explicitly say `no'. 10691 libltdl_cv_sys_dlopen_deplibs=no 10692 ;; 10693 osf5.0|osf5.0a|osf5.1) 10694 # dlopen *does* load deplibs and with the right loader patch applied 10695 # it even uses RPATH in a shared library to search for shared objects 10696 # that the library depends on, but there's no easy way to know if that 10697 # patch is installed. Since this is the case, all we can really 10698 # say is unknown -- it depends on the patch being installed. If 10699 # it is, this changes to `yes'. Without it, it would be `no'. 10700 libltdl_cv_sys_dlopen_deplibs=unknown 10701 ;; 10702 osf*) 10703 # the two cases above should catch all versions of osf <= 5.1. Read 10704 # the comments above for what we know about them. 10705 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10706 # is used to find them so we can finally say `yes'. 10707 libltdl_cv_sys_dlopen_deplibs=yes 10708 ;; 10709 solaris*) 10710 libltdl_cv_sys_dlopen_deplibs=yes 10711 ;; 10712 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10713 libltdl_cv_sys_dlopen_deplibs=yes 10714 ;; 10715 esac 10716 10717fi 10718{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10719echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10720if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10721 10722cat >>confdefs.h <<\_ACEOF 10723#define LTDL_DLOPEN_DEPLIBS 1 10724_ACEOF 10725 10726fi 10727 10728 10729for ac_header in argz.h 10730do 10731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10733 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10736 echo $ECHO_N "(cached) $ECHO_C" >&6 10737fi 10738ac_res=`eval echo '${'$as_ac_Header'}'` 10739 { echo "$as_me:$LINENO: result: $ac_res" >&5 10740echo "${ECHO_T}$ac_res" >&6; } 10741else 10742 # Is the header compilable? 10743{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10745cat >conftest.$ac_ext <<_ACEOF 10746/* confdefs.h. */ 10747_ACEOF 10748cat confdefs.h >>conftest.$ac_ext 10749cat >>conftest.$ac_ext <<_ACEOF 10750/* end confdefs.h. */ 10751$ac_includes_default 10752#include <$ac_header> 10753_ACEOF 10754rm -f conftest.$ac_objext 10755if { (ac_try="$ac_compile" 10756case "(($ac_try" in 10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10758 *) ac_try_echo=$ac_try;; 10759esac 10760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10761 (eval "$ac_compile") 2>conftest.er1 10762 ac_status=$? 10763 grep -v '^ *+' conftest.er1 >conftest.err 10764 rm -f conftest.er1 10765 cat conftest.err >&5 10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10767 (exit $ac_status); } && 10768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10769 { (case "(($ac_try" in 10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10771 *) ac_try_echo=$ac_try;; 10772esac 10773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10774 (eval "$ac_try") 2>&5 10775 ac_status=$? 10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10777 (exit $ac_status); }; } && 10778 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 10788 ac_header_compiler=yes 10789else 10790 echo "$as_me: failed program was:" >&5 10791sed 's/^/| /' conftest.$ac_ext >&5 10792 10793 ac_header_compiler=no 10794fi 10795 10796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10797{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10798echo "${ECHO_T}$ac_header_compiler" >&6; } 10799 10800# Is the header present? 10801{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10802echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10803cat >conftest.$ac_ext <<_ACEOF 10804/* confdefs.h. */ 10805_ACEOF 10806cat confdefs.h >>conftest.$ac_ext 10807cat >>conftest.$ac_ext <<_ACEOF 10808/* end confdefs.h. */ 10809#include <$ac_header> 10810_ACEOF 10811if { (ac_try="$ac_cpp conftest.$ac_ext" 10812case "(($ac_try" in 10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10814 *) ac_try_echo=$ac_try;; 10815esac 10816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10818 ac_status=$? 10819 grep -v '^ *+' conftest.er1 >conftest.err 10820 rm -f conftest.er1 10821 cat conftest.err >&5 10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10823 (exit $ac_status); } >/dev/null; then 10824 if test -s conftest.err; then 10825 ac_cpp_err=$ac_c_preproc_warn_flag 10826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10827 else 10828 ac_cpp_err= 10829 fi 10830else 10831 ac_cpp_err=yes 10832fi 10833if test -z "$ac_cpp_err"; then 10834 ac_header_preproc=yes 10835else 10836 echo "$as_me: failed program was:" >&5 10837sed 's/^/| /' conftest.$ac_ext >&5 10838 10839 ac_header_preproc=no 10840fi 10841 10842rm -f conftest.err conftest.$ac_ext 10843{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10844echo "${ECHO_T}$ac_header_preproc" >&6; } 10845 10846# So? What about this header? 10847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10848 yes:no: ) 10849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10850echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10852echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10853 ac_header_preproc=yes 10854 ;; 10855 no:yes:* ) 10856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10857echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10859echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10861echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10863echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10865echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10867echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10868 ( cat <<\_ASBOX 10869## ------------------------------------ ## 10870## Report this to http://llvm.org/bugs/ ## 10871## ------------------------------------ ## 10872_ASBOX 10873 ) | sed "s/^/$as_me: WARNING: /" >&2 10874 ;; 10875esac 10876{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10879 echo $ECHO_N "(cached) $ECHO_C" >&6 10880else 10881 eval "$as_ac_Header=\$ac_header_preproc" 10882fi 10883ac_res=`eval echo '${'$as_ac_Header'}'` 10884 { echo "$as_me:$LINENO: result: $ac_res" >&5 10885echo "${ECHO_T}$ac_res" >&6; } 10886 10887fi 10888if test `eval echo '${'$as_ac_Header'}'` = yes; then 10889 cat >>confdefs.h <<_ACEOF 10890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10891_ACEOF 10892 10893fi 10894 10895done 10896 10897 10898{ echo "$as_me:$LINENO: checking for error_t" >&5 10899echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10900if test "${ac_cv_type_error_t+set}" = set; then 10901 echo $ECHO_N "(cached) $ECHO_C" >&6 10902else 10903 cat >conftest.$ac_ext <<_ACEOF 10904/* confdefs.h. */ 10905_ACEOF 10906cat confdefs.h >>conftest.$ac_ext 10907cat >>conftest.$ac_ext <<_ACEOF 10908/* end confdefs.h. */ 10909#if HAVE_ARGZ_H 10910# include <argz.h> 10911#endif 10912 10913typedef error_t ac__type_new_; 10914int 10915main () 10916{ 10917if ((ac__type_new_ *) 0) 10918 return 0; 10919if (sizeof (ac__type_new_)) 10920 return 0; 10921 ; 10922 return 0; 10923} 10924_ACEOF 10925rm -f conftest.$ac_objext 10926if { (ac_try="$ac_compile" 10927case "(($ac_try" in 10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10929 *) ac_try_echo=$ac_try;; 10930esac 10931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10932 (eval "$ac_compile") 2>conftest.er1 10933 ac_status=$? 10934 grep -v '^ *+' conftest.er1 >conftest.err 10935 rm -f conftest.er1 10936 cat conftest.err >&5 10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10938 (exit $ac_status); } && 10939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10940 { (case "(($ac_try" in 10941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10942 *) ac_try_echo=$ac_try;; 10943esac 10944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10945 (eval "$ac_try") 2>&5 10946 ac_status=$? 10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10948 (exit $ac_status); }; } && 10949 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 10959 ac_cv_type_error_t=yes 10960else 10961 echo "$as_me: failed program was:" >&5 10962sed 's/^/| /' conftest.$ac_ext >&5 10963 10964 ac_cv_type_error_t=no 10965fi 10966 10967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10968fi 10969{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10970echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10971if test $ac_cv_type_error_t = yes; then 10972 10973cat >>confdefs.h <<_ACEOF 10974#define HAVE_ERROR_T 1 10975_ACEOF 10976 10977 10978else 10979 10980cat >>confdefs.h <<\_ACEOF 10981#define error_t int 10982_ACEOF 10983 10984fi 10985 10986 10987 10988 10989 10990 10991 10992for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 10993do 10994as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10995{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10997if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10998 echo $ECHO_N "(cached) $ECHO_C" >&6 10999else 11000 cat >conftest.$ac_ext <<_ACEOF 11001/* confdefs.h. */ 11002_ACEOF 11003cat confdefs.h >>conftest.$ac_ext 11004cat >>conftest.$ac_ext <<_ACEOF 11005/* end confdefs.h. */ 11006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11007 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11008#define $ac_func innocuous_$ac_func 11009 11010/* System header to define __stub macros and hopefully few prototypes, 11011 which can conflict with char $ac_func (); below. 11012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11013 <limits.h> exists even on freestanding compilers. */ 11014 11015#ifdef __STDC__ 11016# include <limits.h> 11017#else 11018# include <assert.h> 11019#endif 11020 11021#undef $ac_func 11022 11023/* Override any GCC internal prototype to avoid an error. 11024 Use char because int might match the return type of a GCC 11025 builtin and then its argument prototype would still apply. */ 11026#ifdef __cplusplus 11027extern "C" 11028#endif 11029char $ac_func (); 11030/* The GNU C library defines this for functions which it implements 11031 to always fail with ENOSYS. Some functions are actually named 11032 something starting with __ and the normal name is an alias. */ 11033#if defined __stub_$ac_func || defined __stub___$ac_func 11034choke me 11035#endif 11036 11037int 11038main () 11039{ 11040return $ac_func (); 11041 ; 11042 return 0; 11043} 11044_ACEOF 11045rm -f conftest.$ac_objext conftest$ac_exeext 11046if { (ac_try="$ac_link" 11047case "(($ac_try" in 11048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11049 *) ac_try_echo=$ac_try;; 11050esac 11051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11052 (eval "$ac_link") 2>conftest.er1 11053 ac_status=$? 11054 grep -v '^ *+' conftest.er1 >conftest.err 11055 rm -f conftest.er1 11056 cat conftest.err >&5 11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11058 (exit $ac_status); } && 11059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11060 { (case "(($ac_try" in 11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11062 *) ac_try_echo=$ac_try;; 11063esac 11064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11065 (eval "$ac_try") 2>&5 11066 ac_status=$? 11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11068 (exit $ac_status); }; } && 11069 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 11079 eval "$as_ac_var=yes" 11080else 11081 echo "$as_me: failed program was:" >&5 11082sed 's/^/| /' conftest.$ac_ext >&5 11083 11084 eval "$as_ac_var=no" 11085fi 11086 11087rm -f core conftest.err conftest.$ac_objext \ 11088 conftest$ac_exeext conftest.$ac_ext 11089fi 11090ac_res=`eval echo '${'$as_ac_var'}'` 11091 { echo "$as_me:$LINENO: result: $ac_res" >&5 11092echo "${ECHO_T}$ac_res" >&6; } 11093if test `eval echo '${'$as_ac_var'}'` = yes; then 11094 cat >>confdefs.h <<_ACEOF 11095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11096_ACEOF 11097 11098fi 11099done 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 11129 stdio.h unistd.h 11130do 11131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11133 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11134echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11136 echo $ECHO_N "(cached) $ECHO_C" >&6 11137fi 11138ac_res=`eval echo '${'$as_ac_Header'}'` 11139 { echo "$as_me:$LINENO: result: $ac_res" >&5 11140echo "${ECHO_T}$ac_res" >&6; } 11141else 11142 # Is the header compilable? 11143{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11144echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11145cat >conftest.$ac_ext <<_ACEOF 11146/* confdefs.h. */ 11147_ACEOF 11148cat confdefs.h >>conftest.$ac_ext 11149cat >>conftest.$ac_ext <<_ACEOF 11150/* end confdefs.h. */ 11151$ac_includes_default 11152#include <$ac_header> 11153_ACEOF 11154rm -f conftest.$ac_objext 11155if { (ac_try="$ac_compile" 11156case "(($ac_try" in 11157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11158 *) ac_try_echo=$ac_try;; 11159esac 11160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11161 (eval "$ac_compile") 2>conftest.er1 11162 ac_status=$? 11163 grep -v '^ *+' conftest.er1 >conftest.err 11164 rm -f conftest.er1 11165 cat conftest.err >&5 11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11167 (exit $ac_status); } && 11168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11169 { (case "(($ac_try" in 11170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11171 *) ac_try_echo=$ac_try;; 11172esac 11173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11174 (eval "$ac_try") 2>&5 11175 ac_status=$? 11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11177 (exit $ac_status); }; } && 11178 { ac_try='test -s conftest.$ac_objext' 11179 { (case "(($ac_try" in 11180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11181 *) ac_try_echo=$ac_try;; 11182esac 11183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11184 (eval "$ac_try") 2>&5 11185 ac_status=$? 11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11187 (exit $ac_status); }; }; then 11188 ac_header_compiler=yes 11189else 11190 echo "$as_me: failed program was:" >&5 11191sed 's/^/| /' conftest.$ac_ext >&5 11192 11193 ac_header_compiler=no 11194fi 11195 11196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11197{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11198echo "${ECHO_T}$ac_header_compiler" >&6; } 11199 11200# Is the header present? 11201{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11203cat >conftest.$ac_ext <<_ACEOF 11204/* confdefs.h. */ 11205_ACEOF 11206cat confdefs.h >>conftest.$ac_ext 11207cat >>conftest.$ac_ext <<_ACEOF 11208/* end confdefs.h. */ 11209#include <$ac_header> 11210_ACEOF 11211if { (ac_try="$ac_cpp conftest.$ac_ext" 11212case "(($ac_try" in 11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11214 *) ac_try_echo=$ac_try;; 11215esac 11216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11218 ac_status=$? 11219 grep -v '^ *+' conftest.er1 >conftest.err 11220 rm -f conftest.er1 11221 cat conftest.err >&5 11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11223 (exit $ac_status); } >/dev/null; then 11224 if test -s conftest.err; then 11225 ac_cpp_err=$ac_c_preproc_warn_flag 11226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11227 else 11228 ac_cpp_err= 11229 fi 11230else 11231 ac_cpp_err=yes 11232fi 11233if test -z "$ac_cpp_err"; then 11234 ac_header_preproc=yes 11235else 11236 echo "$as_me: failed program was:" >&5 11237sed 's/^/| /' conftest.$ac_ext >&5 11238 11239 ac_header_preproc=no 11240fi 11241 11242rm -f conftest.err conftest.$ac_ext 11243{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11244echo "${ECHO_T}$ac_header_preproc" >&6; } 11245 11246# So? What about this header? 11247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11248 yes:no: ) 11249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11250echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11252echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11253 ac_header_preproc=yes 11254 ;; 11255 no:yes:* ) 11256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11257echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11259echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11261echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11263echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11265echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11267echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11268 ( cat <<\_ASBOX 11269## ------------------------------------ ## 11270## Report this to http://llvm.org/bugs/ ## 11271## ------------------------------------ ## 11272_ASBOX 11273 ) | sed "s/^/$as_me: WARNING: /" >&2 11274 ;; 11275esac 11276{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11279 echo $ECHO_N "(cached) $ECHO_C" >&6 11280else 11281 eval "$as_ac_Header=\$ac_header_preproc" 11282fi 11283ac_res=`eval echo '${'$as_ac_Header'}'` 11284 { echo "$as_me:$LINENO: result: $ac_res" >&5 11285echo "${ECHO_T}$ac_res" >&6; } 11286 11287fi 11288if test `eval echo '${'$as_ac_Header'}'` = yes; then 11289 cat >>confdefs.h <<_ACEOF 11290#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11291_ACEOF 11292 11293fi 11294 11295done 11296 11297 11298 11299 11300 11301for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 11302do 11303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11305 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11308 echo $ECHO_N "(cached) $ECHO_C" >&6 11309fi 11310ac_res=`eval echo '${'$as_ac_Header'}'` 11311 { echo "$as_me:$LINENO: result: $ac_res" >&5 11312echo "${ECHO_T}$ac_res" >&6; } 11313else 11314 # Is the header compilable? 11315{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11316echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11317cat >conftest.$ac_ext <<_ACEOF 11318/* confdefs.h. */ 11319_ACEOF 11320cat confdefs.h >>conftest.$ac_ext 11321cat >>conftest.$ac_ext <<_ACEOF 11322/* end confdefs.h. */ 11323$ac_includes_default 11324#include <$ac_header> 11325_ACEOF 11326rm -f conftest.$ac_objext 11327if { (ac_try="$ac_compile" 11328case "(($ac_try" in 11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11330 *) ac_try_echo=$ac_try;; 11331esac 11332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11333 (eval "$ac_compile") 2>conftest.er1 11334 ac_status=$? 11335 grep -v '^ *+' conftest.er1 >conftest.err 11336 rm -f conftest.er1 11337 cat conftest.err >&5 11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11339 (exit $ac_status); } && 11340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11341 { (case "(($ac_try" in 11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11343 *) ac_try_echo=$ac_try;; 11344esac 11345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11346 (eval "$ac_try") 2>&5 11347 ac_status=$? 11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11349 (exit $ac_status); }; } && 11350 { ac_try='test -s conftest.$ac_objext' 11351 { (case "(($ac_try" in 11352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11353 *) ac_try_echo=$ac_try;; 11354esac 11355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11356 (eval "$ac_try") 2>&5 11357 ac_status=$? 11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11359 (exit $ac_status); }; }; then 11360 ac_header_compiler=yes 11361else 11362 echo "$as_me: failed program was:" >&5 11363sed 's/^/| /' conftest.$ac_ext >&5 11364 11365 ac_header_compiler=no 11366fi 11367 11368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11369{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11370echo "${ECHO_T}$ac_header_compiler" >&6; } 11371 11372# Is the header present? 11373{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11375cat >conftest.$ac_ext <<_ACEOF 11376/* confdefs.h. */ 11377_ACEOF 11378cat confdefs.h >>conftest.$ac_ext 11379cat >>conftest.$ac_ext <<_ACEOF 11380/* end confdefs.h. */ 11381#include <$ac_header> 11382_ACEOF 11383if { (ac_try="$ac_cpp conftest.$ac_ext" 11384case "(($ac_try" in 11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11386 *) ac_try_echo=$ac_try;; 11387esac 11388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11390 ac_status=$? 11391 grep -v '^ *+' conftest.er1 >conftest.err 11392 rm -f conftest.er1 11393 cat conftest.err >&5 11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11395 (exit $ac_status); } >/dev/null; then 11396 if test -s conftest.err; then 11397 ac_cpp_err=$ac_c_preproc_warn_flag 11398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11399 else 11400 ac_cpp_err= 11401 fi 11402else 11403 ac_cpp_err=yes 11404fi 11405if test -z "$ac_cpp_err"; then 11406 ac_header_preproc=yes 11407else 11408 echo "$as_me: failed program was:" >&5 11409sed 's/^/| /' conftest.$ac_ext >&5 11410 11411 ac_header_preproc=no 11412fi 11413 11414rm -f conftest.err conftest.$ac_ext 11415{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11416echo "${ECHO_T}$ac_header_preproc" >&6; } 11417 11418# So? What about this header? 11419case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11420 yes:no: ) 11421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11422echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11424echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11425 ac_header_preproc=yes 11426 ;; 11427 no:yes:* ) 11428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11429echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11431echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11433echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11435echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11437echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11439echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11440 ( cat <<\_ASBOX 11441## ------------------------------------ ## 11442## Report this to http://llvm.org/bugs/ ## 11443## ------------------------------------ ## 11444_ASBOX 11445 ) | sed "s/^/$as_me: WARNING: /" >&2 11446 ;; 11447esac 11448{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11451 echo $ECHO_N "(cached) $ECHO_C" >&6 11452else 11453 eval "$as_ac_Header=\$ac_header_preproc" 11454fi 11455ac_res=`eval echo '${'$as_ac_Header'}'` 11456 { echo "$as_me:$LINENO: result: $ac_res" >&5 11457echo "${ECHO_T}$ac_res" >&6; } 11458 11459fi 11460if test `eval echo '${'$as_ac_Header'}'` = yes; then 11461 cat >>confdefs.h <<_ACEOF 11462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11463_ACEOF 11464 11465fi 11466 11467done 11468 11469 11470 11471for ac_header in string.h strings.h 11472do 11473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11475 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11478 echo $ECHO_N "(cached) $ECHO_C" >&6 11479fi 11480ac_res=`eval echo '${'$as_ac_Header'}'` 11481 { echo "$as_me:$LINENO: result: $ac_res" >&5 11482echo "${ECHO_T}$ac_res" >&6; } 11483else 11484 # Is the header compilable? 11485{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11486echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11487cat >conftest.$ac_ext <<_ACEOF 11488/* confdefs.h. */ 11489_ACEOF 11490cat confdefs.h >>conftest.$ac_ext 11491cat >>conftest.$ac_ext <<_ACEOF 11492/* end confdefs.h. */ 11493$ac_includes_default 11494#include <$ac_header> 11495_ACEOF 11496rm -f conftest.$ac_objext 11497if { (ac_try="$ac_compile" 11498case "(($ac_try" in 11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11500 *) ac_try_echo=$ac_try;; 11501esac 11502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11503 (eval "$ac_compile") 2>conftest.er1 11504 ac_status=$? 11505 grep -v '^ *+' conftest.er1 >conftest.err 11506 rm -f conftest.er1 11507 cat conftest.err >&5 11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11509 (exit $ac_status); } && 11510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11511 { (case "(($ac_try" in 11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11513 *) ac_try_echo=$ac_try;; 11514esac 11515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11516 (eval "$ac_try") 2>&5 11517 ac_status=$? 11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11519 (exit $ac_status); }; } && 11520 { ac_try='test -s conftest.$ac_objext' 11521 { (case "(($ac_try" in 11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11523 *) ac_try_echo=$ac_try;; 11524esac 11525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11526 (eval "$ac_try") 2>&5 11527 ac_status=$? 11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11529 (exit $ac_status); }; }; then 11530 ac_header_compiler=yes 11531else 11532 echo "$as_me: failed program was:" >&5 11533sed 's/^/| /' conftest.$ac_ext >&5 11534 11535 ac_header_compiler=no 11536fi 11537 11538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11539{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11540echo "${ECHO_T}$ac_header_compiler" >&6; } 11541 11542# Is the header present? 11543{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11545cat >conftest.$ac_ext <<_ACEOF 11546/* confdefs.h. */ 11547_ACEOF 11548cat confdefs.h >>conftest.$ac_ext 11549cat >>conftest.$ac_ext <<_ACEOF 11550/* end confdefs.h. */ 11551#include <$ac_header> 11552_ACEOF 11553if { (ac_try="$ac_cpp conftest.$ac_ext" 11554case "(($ac_try" in 11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11556 *) ac_try_echo=$ac_try;; 11557esac 11558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11560 ac_status=$? 11561 grep -v '^ *+' conftest.er1 >conftest.err 11562 rm -f conftest.er1 11563 cat conftest.err >&5 11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11565 (exit $ac_status); } >/dev/null; then 11566 if test -s conftest.err; then 11567 ac_cpp_err=$ac_c_preproc_warn_flag 11568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11569 else 11570 ac_cpp_err= 11571 fi 11572else 11573 ac_cpp_err=yes 11574fi 11575if test -z "$ac_cpp_err"; then 11576 ac_header_preproc=yes 11577else 11578 echo "$as_me: failed program was:" >&5 11579sed 's/^/| /' conftest.$ac_ext >&5 11580 11581 ac_header_preproc=no 11582fi 11583 11584rm -f conftest.err conftest.$ac_ext 11585{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11586echo "${ECHO_T}$ac_header_preproc" >&6; } 11587 11588# So? What about this header? 11589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11590 yes:no: ) 11591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11592echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11594echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11595 ac_header_preproc=yes 11596 ;; 11597 no:yes:* ) 11598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11599echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11601echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11603echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11605echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11607echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11609echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11610 ( cat <<\_ASBOX 11611## ------------------------------------ ## 11612## Report this to http://llvm.org/bugs/ ## 11613## ------------------------------------ ## 11614_ASBOX 11615 ) | sed "s/^/$as_me: WARNING: /" >&2 11616 ;; 11617esac 11618{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11621 echo $ECHO_N "(cached) $ECHO_C" >&6 11622else 11623 eval "$as_ac_Header=\$ac_header_preproc" 11624fi 11625ac_res=`eval echo '${'$as_ac_Header'}'` 11626 { echo "$as_me:$LINENO: result: $ac_res" >&5 11627echo "${ECHO_T}$ac_res" >&6; } 11628 11629fi 11630if test `eval echo '${'$as_ac_Header'}'` = yes; then 11631 cat >>confdefs.h <<_ACEOF 11632#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11633_ACEOF 11634 break 11635fi 11636 11637done 11638 11639 11640 11641 11642for ac_func in strchr index 11643do 11644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11645{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11647if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11648 echo $ECHO_N "(cached) $ECHO_C" >&6 11649else 11650 cat >conftest.$ac_ext <<_ACEOF 11651/* confdefs.h. */ 11652_ACEOF 11653cat confdefs.h >>conftest.$ac_ext 11654cat >>conftest.$ac_ext <<_ACEOF 11655/* end confdefs.h. */ 11656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11657 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11658#define $ac_func innocuous_$ac_func 11659 11660/* System header to define __stub macros and hopefully few prototypes, 11661 which can conflict with char $ac_func (); below. 11662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11663 <limits.h> exists even on freestanding compilers. */ 11664 11665#ifdef __STDC__ 11666# include <limits.h> 11667#else 11668# include <assert.h> 11669#endif 11670 11671#undef $ac_func 11672 11673/* Override any GCC internal prototype to avoid an error. 11674 Use char because int might match the return type of a GCC 11675 builtin and then its argument prototype would still apply. */ 11676#ifdef __cplusplus 11677extern "C" 11678#endif 11679char $ac_func (); 11680/* The GNU C library defines this for functions which it implements 11681 to always fail with ENOSYS. Some functions are actually named 11682 something starting with __ and the normal name is an alias. */ 11683#if defined __stub_$ac_func || defined __stub___$ac_func 11684choke me 11685#endif 11686 11687int 11688main () 11689{ 11690return $ac_func (); 11691 ; 11692 return 0; 11693} 11694_ACEOF 11695rm -f conftest.$ac_objext conftest$ac_exeext 11696if { (ac_try="$ac_link" 11697case "(($ac_try" in 11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11699 *) ac_try_echo=$ac_try;; 11700esac 11701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11702 (eval "$ac_link") 2>conftest.er1 11703 ac_status=$? 11704 grep -v '^ *+' conftest.er1 >conftest.err 11705 rm -f conftest.er1 11706 cat conftest.err >&5 11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11708 (exit $ac_status); } && 11709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11710 { (case "(($ac_try" in 11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11712 *) ac_try_echo=$ac_try;; 11713esac 11714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11715 (eval "$ac_try") 2>&5 11716 ac_status=$? 11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11718 (exit $ac_status); }; } && 11719 { ac_try='test -s conftest$ac_exeext' 11720 { (case "(($ac_try" in 11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11722 *) ac_try_echo=$ac_try;; 11723esac 11724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11725 (eval "$ac_try") 2>&5 11726 ac_status=$? 11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11728 (exit $ac_status); }; }; then 11729 eval "$as_ac_var=yes" 11730else 11731 echo "$as_me: failed program was:" >&5 11732sed 's/^/| /' conftest.$ac_ext >&5 11733 11734 eval "$as_ac_var=no" 11735fi 11736 11737rm -f core conftest.err conftest.$ac_objext \ 11738 conftest$ac_exeext conftest.$ac_ext 11739fi 11740ac_res=`eval echo '${'$as_ac_var'}'` 11741 { echo "$as_me:$LINENO: result: $ac_res" >&5 11742echo "${ECHO_T}$ac_res" >&6; } 11743if test `eval echo '${'$as_ac_var'}'` = yes; then 11744 cat >>confdefs.h <<_ACEOF 11745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11746_ACEOF 11747 break 11748fi 11749done 11750 11751 11752 11753for ac_func in strrchr rindex 11754do 11755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11756{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11758if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11759 echo $ECHO_N "(cached) $ECHO_C" >&6 11760else 11761 cat >conftest.$ac_ext <<_ACEOF 11762/* confdefs.h. */ 11763_ACEOF 11764cat confdefs.h >>conftest.$ac_ext 11765cat >>conftest.$ac_ext <<_ACEOF 11766/* end confdefs.h. */ 11767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11768 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11769#define $ac_func innocuous_$ac_func 11770 11771/* System header to define __stub macros and hopefully few prototypes, 11772 which can conflict with char $ac_func (); below. 11773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11774 <limits.h> exists even on freestanding compilers. */ 11775 11776#ifdef __STDC__ 11777# include <limits.h> 11778#else 11779# include <assert.h> 11780#endif 11781 11782#undef $ac_func 11783 11784/* Override any GCC internal prototype to avoid an error. 11785 Use char because int might match the return type of a GCC 11786 builtin and then its argument prototype would still apply. */ 11787#ifdef __cplusplus 11788extern "C" 11789#endif 11790char $ac_func (); 11791/* The GNU C library defines this for functions which it implements 11792 to always fail with ENOSYS. Some functions are actually named 11793 something starting with __ and the normal name is an alias. */ 11794#if defined __stub_$ac_func || defined __stub___$ac_func 11795choke me 11796#endif 11797 11798int 11799main () 11800{ 11801return $ac_func (); 11802 ; 11803 return 0; 11804} 11805_ACEOF 11806rm -f conftest.$ac_objext conftest$ac_exeext 11807if { (ac_try="$ac_link" 11808case "(($ac_try" in 11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11810 *) ac_try_echo=$ac_try;; 11811esac 11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11813 (eval "$ac_link") 2>conftest.er1 11814 ac_status=$? 11815 grep -v '^ *+' conftest.er1 >conftest.err 11816 rm -f conftest.er1 11817 cat conftest.err >&5 11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11819 (exit $ac_status); } && 11820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11821 { (case "(($ac_try" in 11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11823 *) ac_try_echo=$ac_try;; 11824esac 11825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11826 (eval "$ac_try") 2>&5 11827 ac_status=$? 11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11829 (exit $ac_status); }; } && 11830 { ac_try='test -s conftest$ac_exeext' 11831 { (case "(($ac_try" in 11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11833 *) ac_try_echo=$ac_try;; 11834esac 11835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11836 (eval "$ac_try") 2>&5 11837 ac_status=$? 11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11839 (exit $ac_status); }; }; then 11840 eval "$as_ac_var=yes" 11841else 11842 echo "$as_me: failed program was:" >&5 11843sed 's/^/| /' conftest.$ac_ext >&5 11844 11845 eval "$as_ac_var=no" 11846fi 11847 11848rm -f core conftest.err conftest.$ac_objext \ 11849 conftest$ac_exeext conftest.$ac_ext 11850fi 11851ac_res=`eval echo '${'$as_ac_var'}'` 11852 { echo "$as_me:$LINENO: result: $ac_res" >&5 11853echo "${ECHO_T}$ac_res" >&6; } 11854if test `eval echo '${'$as_ac_var'}'` = yes; then 11855 cat >>confdefs.h <<_ACEOF 11856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11857_ACEOF 11858 break 11859fi 11860done 11861 11862 11863 11864for ac_func in memcpy bcopy 11865do 11866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11867{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11869if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11870 echo $ECHO_N "(cached) $ECHO_C" >&6 11871else 11872 cat >conftest.$ac_ext <<_ACEOF 11873/* confdefs.h. */ 11874_ACEOF 11875cat confdefs.h >>conftest.$ac_ext 11876cat >>conftest.$ac_ext <<_ACEOF 11877/* end confdefs.h. */ 11878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11879 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11880#define $ac_func innocuous_$ac_func 11881 11882/* System header to define __stub macros and hopefully few prototypes, 11883 which can conflict with char $ac_func (); below. 11884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11885 <limits.h> exists even on freestanding compilers. */ 11886 11887#ifdef __STDC__ 11888# include <limits.h> 11889#else 11890# include <assert.h> 11891#endif 11892 11893#undef $ac_func 11894 11895/* Override any GCC internal prototype to avoid an error. 11896 Use char because int might match the return type of a GCC 11897 builtin and then its argument prototype would still apply. */ 11898#ifdef __cplusplus 11899extern "C" 11900#endif 11901char $ac_func (); 11902/* The GNU C library defines this for functions which it implements 11903 to always fail with ENOSYS. Some functions are actually named 11904 something starting with __ and the normal name is an alias. */ 11905#if defined __stub_$ac_func || defined __stub___$ac_func 11906choke me 11907#endif 11908 11909int 11910main () 11911{ 11912return $ac_func (); 11913 ; 11914 return 0; 11915} 11916_ACEOF 11917rm -f conftest.$ac_objext conftest$ac_exeext 11918if { (ac_try="$ac_link" 11919case "(($ac_try" in 11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11921 *) ac_try_echo=$ac_try;; 11922esac 11923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11924 (eval "$ac_link") 2>conftest.er1 11925 ac_status=$? 11926 grep -v '^ *+' conftest.er1 >conftest.err 11927 rm -f conftest.er1 11928 cat conftest.err >&5 11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11930 (exit $ac_status); } && 11931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11932 { (case "(($ac_try" in 11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11934 *) ac_try_echo=$ac_try;; 11935esac 11936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11937 (eval "$ac_try") 2>&5 11938 ac_status=$? 11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11940 (exit $ac_status); }; } && 11941 { ac_try='test -s conftest$ac_exeext' 11942 { (case "(($ac_try" in 11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11944 *) ac_try_echo=$ac_try;; 11945esac 11946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11947 (eval "$ac_try") 2>&5 11948 ac_status=$? 11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11950 (exit $ac_status); }; }; then 11951 eval "$as_ac_var=yes" 11952else 11953 echo "$as_me: failed program was:" >&5 11954sed 's/^/| /' conftest.$ac_ext >&5 11955 11956 eval "$as_ac_var=no" 11957fi 11958 11959rm -f core conftest.err conftest.$ac_objext \ 11960 conftest$ac_exeext conftest.$ac_ext 11961fi 11962ac_res=`eval echo '${'$as_ac_var'}'` 11963 { echo "$as_me:$LINENO: result: $ac_res" >&5 11964echo "${ECHO_T}$ac_res" >&6; } 11965if test `eval echo '${'$as_ac_var'}'` = yes; then 11966 cat >>confdefs.h <<_ACEOF 11967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11968_ACEOF 11969 break 11970fi 11971done 11972 11973 11974 11975for ac_func in memmove strcmp 11976do 11977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11978{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11980if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11981 echo $ECHO_N "(cached) $ECHO_C" >&6 11982else 11983 cat >conftest.$ac_ext <<_ACEOF 11984/* confdefs.h. */ 11985_ACEOF 11986cat confdefs.h >>conftest.$ac_ext 11987cat >>conftest.$ac_ext <<_ACEOF 11988/* end confdefs.h. */ 11989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11990 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11991#define $ac_func innocuous_$ac_func 11992 11993/* System header to define __stub macros and hopefully few prototypes, 11994 which can conflict with char $ac_func (); below. 11995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11996 <limits.h> exists even on freestanding compilers. */ 11997 11998#ifdef __STDC__ 11999# include <limits.h> 12000#else 12001# include <assert.h> 12002#endif 12003 12004#undef $ac_func 12005 12006/* Override any GCC internal prototype to avoid an error. 12007 Use char because int might match the return type of a GCC 12008 builtin and then its argument prototype would still apply. */ 12009#ifdef __cplusplus 12010extern "C" 12011#endif 12012char $ac_func (); 12013/* The GNU C library defines this for functions which it implements 12014 to always fail with ENOSYS. Some functions are actually named 12015 something starting with __ and the normal name is an alias. */ 12016#if defined __stub_$ac_func || defined __stub___$ac_func 12017choke me 12018#endif 12019 12020int 12021main () 12022{ 12023return $ac_func (); 12024 ; 12025 return 0; 12026} 12027_ACEOF 12028rm -f conftest.$ac_objext conftest$ac_exeext 12029if { (ac_try="$ac_link" 12030case "(($ac_try" in 12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12032 *) ac_try_echo=$ac_try;; 12033esac 12034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12035 (eval "$ac_link") 2>conftest.er1 12036 ac_status=$? 12037 grep -v '^ *+' conftest.er1 >conftest.err 12038 rm -f conftest.er1 12039 cat conftest.err >&5 12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12041 (exit $ac_status); } && 12042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12043 { (case "(($ac_try" in 12044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12045 *) ac_try_echo=$ac_try;; 12046esac 12047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12048 (eval "$ac_try") 2>&5 12049 ac_status=$? 12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12051 (exit $ac_status); }; } && 12052 { ac_try='test -s conftest$ac_exeext' 12053 { (case "(($ac_try" in 12054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12055 *) ac_try_echo=$ac_try;; 12056esac 12057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12058 (eval "$ac_try") 2>&5 12059 ac_status=$? 12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12061 (exit $ac_status); }; }; then 12062 eval "$as_ac_var=yes" 12063else 12064 echo "$as_me: failed program was:" >&5 12065sed 's/^/| /' conftest.$ac_ext >&5 12066 12067 eval "$as_ac_var=no" 12068fi 12069 12070rm -f core conftest.err conftest.$ac_objext \ 12071 conftest$ac_exeext conftest.$ac_ext 12072fi 12073ac_res=`eval echo '${'$as_ac_var'}'` 12074 { echo "$as_me:$LINENO: result: $ac_res" >&5 12075echo "${ECHO_T}$ac_res" >&6; } 12076if test `eval echo '${'$as_ac_var'}'` = yes; then 12077 cat >>confdefs.h <<_ACEOF 12078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12079_ACEOF 12080 12081fi 12082done 12083 12084 12085 12086 12087for ac_func in closedir opendir readdir 12088do 12089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12090{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12092if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12093 echo $ECHO_N "(cached) $ECHO_C" >&6 12094else 12095 cat >conftest.$ac_ext <<_ACEOF 12096/* confdefs.h. */ 12097_ACEOF 12098cat confdefs.h >>conftest.$ac_ext 12099cat >>conftest.$ac_ext <<_ACEOF 12100/* end confdefs.h. */ 12101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12102 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12103#define $ac_func innocuous_$ac_func 12104 12105/* System header to define __stub macros and hopefully few prototypes, 12106 which can conflict with char $ac_func (); below. 12107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12108 <limits.h> exists even on freestanding compilers. */ 12109 12110#ifdef __STDC__ 12111# include <limits.h> 12112#else 12113# include <assert.h> 12114#endif 12115 12116#undef $ac_func 12117 12118/* Override any GCC internal prototype to avoid an error. 12119 Use char because int might match the return type of a GCC 12120 builtin and then its argument prototype would still apply. */ 12121#ifdef __cplusplus 12122extern "C" 12123#endif 12124char $ac_func (); 12125/* The GNU C library defines this for functions which it implements 12126 to always fail with ENOSYS. Some functions are actually named 12127 something starting with __ and the normal name is an alias. */ 12128#if defined __stub_$ac_func || defined __stub___$ac_func 12129choke me 12130#endif 12131 12132int 12133main () 12134{ 12135return $ac_func (); 12136 ; 12137 return 0; 12138} 12139_ACEOF 12140rm -f conftest.$ac_objext conftest$ac_exeext 12141if { (ac_try="$ac_link" 12142case "(($ac_try" in 12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12144 *) ac_try_echo=$ac_try;; 12145esac 12146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12147 (eval "$ac_link") 2>conftest.er1 12148 ac_status=$? 12149 grep -v '^ *+' conftest.er1 >conftest.err 12150 rm -f conftest.er1 12151 cat conftest.err >&5 12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12153 (exit $ac_status); } && 12154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12155 { (case "(($ac_try" in 12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12157 *) ac_try_echo=$ac_try;; 12158esac 12159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12160 (eval "$ac_try") 2>&5 12161 ac_status=$? 12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12163 (exit $ac_status); }; } && 12164 { ac_try='test -s conftest$ac_exeext' 12165 { (case "(($ac_try" in 12166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12167 *) ac_try_echo=$ac_try;; 12168esac 12169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12170 (eval "$ac_try") 2>&5 12171 ac_status=$? 12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12173 (exit $ac_status); }; }; then 12174 eval "$as_ac_var=yes" 12175else 12176 echo "$as_me: failed program was:" >&5 12177sed 's/^/| /' conftest.$ac_ext >&5 12178 12179 eval "$as_ac_var=no" 12180fi 12181 12182rm -f core conftest.err conftest.$ac_objext \ 12183 conftest$ac_exeext conftest.$ac_ext 12184fi 12185ac_res=`eval echo '${'$as_ac_var'}'` 12186 { echo "$as_me:$LINENO: result: $ac_res" >&5 12187echo "${ECHO_T}$ac_res" >&6; } 12188if test `eval echo '${'$as_ac_var'}'` = yes; then 12189 cat >>confdefs.h <<_ACEOF 12190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12191_ACEOF 12192 12193fi 12194done 12195 12196 12197 12198{ echo "$as_me:$LINENO: checking tool compatibility" >&5 12199echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 12200 12201ICC=no 12202IXX=no 12203case $CC in 12204 icc*|icpc*) 12205 ICC=yes 12206 IXX=yes 12207 ;; 12208 *) 12209 ;; 12210esac 12211 12212if test "$GCC" != "yes" && test "$ICC" != "yes" 12213then 12214 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 12215echo "$as_me: error: gcc|icc required but not found" >&2;} 12216 { (exit 1); exit 1; }; } 12217fi 12218 12219if test "$GXX" != "yes" && test "$IXX" != "yes" 12220then 12221 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 12222echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 12223 { (exit 1); exit 1; }; } 12224fi 12225 12226if test "$GCC" = "yes" 12227then 12228 cat >conftest.$ac_ext <<_ACEOF 12229 12230 /* confdefs.h. */ 12231_ACEOF 12232cat confdefs.h >>conftest.$ac_ext 12233cat >>conftest.$ac_ext <<_ACEOF 12234/* end confdefs.h. */ 12235 12236 #if !defined(__GNUC__) || __GNUC__ < 3 12237 #error Unsupported GCC version 12238 #endif 12239 12240 12241_ACEOF 12242rm -f conftest.$ac_objext 12243if { (ac_try="$ac_compile" 12244case "(($ac_try" in 12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12246 *) ac_try_echo=$ac_try;; 12247esac 12248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12249 (eval "$ac_compile") 2>conftest.er1 12250 ac_status=$? 12251 grep -v '^ *+' conftest.er1 >conftest.err 12252 rm -f conftest.er1 12253 cat conftest.err >&5 12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12255 (exit $ac_status); } && 12256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12257 { (case "(($ac_try" in 12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12259 *) ac_try_echo=$ac_try;; 12260esac 12261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12262 (eval "$ac_try") 2>&5 12263 ac_status=$? 12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12265 (exit $ac_status); }; } && 12266 { ac_try='test -s conftest.$ac_objext' 12267 { (case "(($ac_try" in 12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12269 *) ac_try_echo=$ac_try;; 12270esac 12271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12272 (eval "$ac_try") 2>&5 12273 ac_status=$? 12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12275 (exit $ac_status); }; }; then 12276 : 12277else 12278 echo "$as_me: failed program was:" >&5 12279sed 's/^/| /' conftest.$ac_ext >&5 12280 12281 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 12282echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 12283 { (exit 1); exit 1; }; } 12284fi 12285 12286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12287fi 12288 12289if test -z "$llvm_cv_gnu_make_command" 12290then 12291 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 12292echo "$as_me: error: GNU Make required but not found" >&2;} 12293 { (exit 1); exit 1; }; } 12294fi 12295 12296{ echo "$as_me:$LINENO: result: ok" >&5 12297echo "${ECHO_T}ok" >&6; } 12298 12299{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 12300echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 12301NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 12302 12303NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 12304 12305COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 12306 12307 12308NO_UNINITIALIZED= 12309NO_MAYBE_UNINITIALIZED= 12310if test "$GXX" = "yes" 12311then 12312 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized` 12313 12314 if test -z "$NO_MAYBE_UNINITIALIZED" 12315 then 12316 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized` 12317 12318 fi 12319fi 12320{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5 12321echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; } 12322 12323 12324# Check whether --with-python was given. 12325if test "${with_python+set}" = set; then 12326 withval=$with_python; PYTHON="$withval" 12327fi 12328 12329 12330if test -n "$PYTHON" && test -x "$PYTHON" ; then 12331 { echo "$as_me:$LINENO: checking for python" >&5 12332echo $ECHO_N "checking for python... $ECHO_C" >&6; } 12333 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5 12334echo "${ECHO_T}user defined: $with_python" >&6; } 12335else 12336 if test -n "$PYTHON" ; then 12337 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5 12338echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;} 12339 fi 12340 12341 # Extract the first word of "python python2 python26", so it can be a program name with args. 12342set dummy python python2 python26; ac_word=$2 12343{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12345if test "${ac_cv_path_PYTHON+set}" = set; then 12346 echo $ECHO_N "(cached) $ECHO_C" >&6 12347else 12348 case $PYTHON in 12349 [\\/]* | ?:[\\/]*) 12350 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 12351 ;; 12352 *) 12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12354for as_dir in $PATH 12355do 12356 IFS=$as_save_IFS 12357 test -z "$as_dir" && as_dir=. 12358 for ac_exec_ext in '' $ac_executable_extensions; do 12359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 12360 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 12361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12362 break 2 12363 fi 12364done 12365done 12366IFS=$as_save_IFS 12367 12368 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5 12369echo "${ECHO_T}not found" >&6; } 12370 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5 12371echo "$as_me: error: could not find python 2.5 or higher" >&2;} 12372 { (exit 1); exit 1; }; }" 12373 ;; 12374esac 12375fi 12376PYTHON=$ac_cv_path_PYTHON 12377if test -n "$PYTHON"; then 12378 { echo "$as_me:$LINENO: result: $PYTHON" >&5 12379echo "${ECHO_T}$PYTHON" >&6; } 12380else 12381 { echo "$as_me:$LINENO: result: no" >&5 12382echo "${ECHO_T}no" >&6; } 12383fi 12384 12385 12386fi 12387 12388{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5 12389echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; } 12390ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'` 12391ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1` 12392ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2` 12393ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3` 12394if test "$ac_python_version_major" -eq "2" \ 12395 && test "$ac_python_version_minor" -ge "5" ; then 12396 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5 12397echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; } 12398else 12399 { echo "$as_me:$LINENO: result: not found" >&5 12400echo "${ECHO_T}not found" >&6; } 12401 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5 12402See \`config.log' for more details." >&5 12403echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5 12404See \`config.log' for more details." >&2;} 12405 { (exit 1); exit 1; }; } 12406fi 12407 12408 12409 12410{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 12411echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 12412if test "${ac_cv_lib_m_sin+set}" = set; then 12413 echo $ECHO_N "(cached) $ECHO_C" >&6 12414else 12415 ac_check_lib_save_LIBS=$LIBS 12416LIBS="-lm $LIBS" 12417cat >conftest.$ac_ext <<_ACEOF 12418/* confdefs.h. */ 12419_ACEOF 12420cat confdefs.h >>conftest.$ac_ext 12421cat >>conftest.$ac_ext <<_ACEOF 12422/* end confdefs.h. */ 12423 12424/* Override any GCC internal prototype to avoid an error. 12425 Use char because int might match the return type of a GCC 12426 builtin and then its argument prototype would still apply. */ 12427#ifdef __cplusplus 12428extern "C" 12429#endif 12430char sin (); 12431int 12432main () 12433{ 12434return sin (); 12435 ; 12436 return 0; 12437} 12438_ACEOF 12439rm -f conftest.$ac_objext conftest$ac_exeext 12440if { (ac_try="$ac_link" 12441case "(($ac_try" in 12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12443 *) ac_try_echo=$ac_try;; 12444esac 12445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12446 (eval "$ac_link") 2>conftest.er1 12447 ac_status=$? 12448 grep -v '^ *+' conftest.er1 >conftest.err 12449 rm -f conftest.er1 12450 cat conftest.err >&5 12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12452 (exit $ac_status); } && 12453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12454 { (case "(($ac_try" in 12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12456 *) ac_try_echo=$ac_try;; 12457esac 12458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12459 (eval "$ac_try") 2>&5 12460 ac_status=$? 12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12462 (exit $ac_status); }; } && 12463 { ac_try='test -s conftest$ac_exeext' 12464 { (case "(($ac_try" in 12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12466 *) ac_try_echo=$ac_try;; 12467esac 12468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12469 (eval "$ac_try") 2>&5 12470 ac_status=$? 12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12472 (exit $ac_status); }; }; then 12473 ac_cv_lib_m_sin=yes 12474else 12475 echo "$as_me: failed program was:" >&5 12476sed 's/^/| /' conftest.$ac_ext >&5 12477 12478 ac_cv_lib_m_sin=no 12479fi 12480 12481rm -f core conftest.err conftest.$ac_objext \ 12482 conftest$ac_exeext conftest.$ac_ext 12483LIBS=$ac_check_lib_save_LIBS 12484fi 12485{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 12486echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 12487if test $ac_cv_lib_m_sin = yes; then 12488 cat >>confdefs.h <<_ACEOF 12489#define HAVE_LIBM 1 12490_ACEOF 12491 12492 LIBS="-lm $LIBS" 12493 12494fi 12495 12496if test "$llvm_cv_os_type" = "MingW" ; then 12497 12498{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 12499echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 12500if test "${ac_cv_lib_imagehlp_main+set}" = set; then 12501 echo $ECHO_N "(cached) $ECHO_C" >&6 12502else 12503 ac_check_lib_save_LIBS=$LIBS 12504LIBS="-limagehlp $LIBS" 12505cat >conftest.$ac_ext <<_ACEOF 12506/* confdefs.h. */ 12507_ACEOF 12508cat confdefs.h >>conftest.$ac_ext 12509cat >>conftest.$ac_ext <<_ACEOF 12510/* end confdefs.h. */ 12511 12512 12513int 12514main () 12515{ 12516return main (); 12517 ; 12518 return 0; 12519} 12520_ACEOF 12521rm -f conftest.$ac_objext conftest$ac_exeext 12522if { (ac_try="$ac_link" 12523case "(($ac_try" in 12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12525 *) ac_try_echo=$ac_try;; 12526esac 12527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12528 (eval "$ac_link") 2>conftest.er1 12529 ac_status=$? 12530 grep -v '^ *+' conftest.er1 >conftest.err 12531 rm -f conftest.er1 12532 cat conftest.err >&5 12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12534 (exit $ac_status); } && 12535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12536 { (case "(($ac_try" in 12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12538 *) ac_try_echo=$ac_try;; 12539esac 12540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12541 (eval "$ac_try") 2>&5 12542 ac_status=$? 12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12544 (exit $ac_status); }; } && 12545 { ac_try='test -s conftest$ac_exeext' 12546 { (case "(($ac_try" in 12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12548 *) ac_try_echo=$ac_try;; 12549esac 12550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12551 (eval "$ac_try") 2>&5 12552 ac_status=$? 12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12554 (exit $ac_status); }; }; then 12555 ac_cv_lib_imagehlp_main=yes 12556else 12557 echo "$as_me: failed program was:" >&5 12558sed 's/^/| /' conftest.$ac_ext >&5 12559 12560 ac_cv_lib_imagehlp_main=no 12561fi 12562 12563rm -f core conftest.err conftest.$ac_objext \ 12564 conftest$ac_exeext conftest.$ac_ext 12565LIBS=$ac_check_lib_save_LIBS 12566fi 12567{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 12568echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 12569if test $ac_cv_lib_imagehlp_main = yes; then 12570 cat >>confdefs.h <<_ACEOF 12571#define HAVE_LIBIMAGEHLP 1 12572_ACEOF 12573 12574 LIBS="-limagehlp $LIBS" 12575 12576fi 12577 12578 12579{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 12580echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 12581if test "${ac_cv_lib_psapi_main+set}" = set; then 12582 echo $ECHO_N "(cached) $ECHO_C" >&6 12583else 12584 ac_check_lib_save_LIBS=$LIBS 12585LIBS="-lpsapi $LIBS" 12586cat >conftest.$ac_ext <<_ACEOF 12587/* confdefs.h. */ 12588_ACEOF 12589cat confdefs.h >>conftest.$ac_ext 12590cat >>conftest.$ac_ext <<_ACEOF 12591/* end confdefs.h. */ 12592 12593 12594int 12595main () 12596{ 12597return main (); 12598 ; 12599 return 0; 12600} 12601_ACEOF 12602rm -f conftest.$ac_objext conftest$ac_exeext 12603if { (ac_try="$ac_link" 12604case "(($ac_try" in 12605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12606 *) ac_try_echo=$ac_try;; 12607esac 12608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12609 (eval "$ac_link") 2>conftest.er1 12610 ac_status=$? 12611 grep -v '^ *+' conftest.er1 >conftest.err 12612 rm -f conftest.er1 12613 cat conftest.err >&5 12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12615 (exit $ac_status); } && 12616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 12626 { ac_try='test -s conftest$ac_exeext' 12627 { (case "(($ac_try" in 12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12629 *) ac_try_echo=$ac_try;; 12630esac 12631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12632 (eval "$ac_try") 2>&5 12633 ac_status=$? 12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12635 (exit $ac_status); }; }; then 12636 ac_cv_lib_psapi_main=yes 12637else 12638 echo "$as_me: failed program was:" >&5 12639sed 's/^/| /' conftest.$ac_ext >&5 12640 12641 ac_cv_lib_psapi_main=no 12642fi 12643 12644rm -f core conftest.err conftest.$ac_objext \ 12645 conftest$ac_exeext conftest.$ac_ext 12646LIBS=$ac_check_lib_save_LIBS 12647fi 12648{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12649echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12650if test $ac_cv_lib_psapi_main = yes; then 12651 cat >>confdefs.h <<_ACEOF 12652#define HAVE_LIBPSAPI 1 12653_ACEOF 12654 12655 LIBS="-lpsapi $LIBS" 12656 12657fi 12658 12659fi 12660 12661{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12662echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12663if test "${ac_cv_search_dlopen+set}" = set; then 12664 echo $ECHO_N "(cached) $ECHO_C" >&6 12665else 12666 ac_func_search_save_LIBS=$LIBS 12667cat >conftest.$ac_ext <<_ACEOF 12668/* confdefs.h. */ 12669_ACEOF 12670cat confdefs.h >>conftest.$ac_ext 12671cat >>conftest.$ac_ext <<_ACEOF 12672/* end confdefs.h. */ 12673 12674/* Override any GCC internal prototype to avoid an error. 12675 Use char because int might match the return type of a GCC 12676 builtin and then its argument prototype would still apply. */ 12677#ifdef __cplusplus 12678extern "C" 12679#endif 12680char dlopen (); 12681int 12682main () 12683{ 12684return dlopen (); 12685 ; 12686 return 0; 12687} 12688_ACEOF 12689for ac_lib in '' dl; do 12690 if test -z "$ac_lib"; then 12691 ac_res="none required" 12692 else 12693 ac_res=-l$ac_lib 12694 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12695 fi 12696 rm -f conftest.$ac_objext conftest$ac_exeext 12697if { (ac_try="$ac_link" 12698case "(($ac_try" in 12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12700 *) ac_try_echo=$ac_try;; 12701esac 12702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12703 (eval "$ac_link") 2>conftest.er1 12704 ac_status=$? 12705 grep -v '^ *+' conftest.er1 >conftest.err 12706 rm -f conftest.er1 12707 cat conftest.err >&5 12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12709 (exit $ac_status); } && 12710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12711 { (case "(($ac_try" in 12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12713 *) ac_try_echo=$ac_try;; 12714esac 12715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12716 (eval "$ac_try") 2>&5 12717 ac_status=$? 12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12719 (exit $ac_status); }; } && 12720 { ac_try='test -s conftest$ac_exeext' 12721 { (case "(($ac_try" in 12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12723 *) ac_try_echo=$ac_try;; 12724esac 12725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12726 (eval "$ac_try") 2>&5 12727 ac_status=$? 12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12729 (exit $ac_status); }; }; then 12730 ac_cv_search_dlopen=$ac_res 12731else 12732 echo "$as_me: failed program was:" >&5 12733sed 's/^/| /' conftest.$ac_ext >&5 12734 12735 12736fi 12737 12738rm -f core conftest.err conftest.$ac_objext \ 12739 conftest$ac_exeext 12740 if test "${ac_cv_search_dlopen+set}" = set; then 12741 break 12742fi 12743done 12744if test "${ac_cv_search_dlopen+set}" = set; then 12745 : 12746else 12747 ac_cv_search_dlopen=no 12748fi 12749rm conftest.$ac_ext 12750LIBS=$ac_func_search_save_LIBS 12751fi 12752{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12753echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12754ac_res=$ac_cv_search_dlopen 12755if test "$ac_res" != no; then 12756 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12757 12758cat >>confdefs.h <<\_ACEOF 12759#define HAVE_DLOPEN 1 12760_ACEOF 12761 12762else 12763 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12764echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12765fi 12766 12767 12768{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 12769echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } 12770if test "${ac_cv_search_clock_gettime+set}" = set; then 12771 echo $ECHO_N "(cached) $ECHO_C" >&6 12772else 12773 ac_func_search_save_LIBS=$LIBS 12774cat >conftest.$ac_ext <<_ACEOF 12775/* confdefs.h. */ 12776_ACEOF 12777cat confdefs.h >>conftest.$ac_ext 12778cat >>conftest.$ac_ext <<_ACEOF 12779/* end confdefs.h. */ 12780 12781/* Override any GCC internal prototype to avoid an error. 12782 Use char because int might match the return type of a GCC 12783 builtin and then its argument prototype would still apply. */ 12784#ifdef __cplusplus 12785extern "C" 12786#endif 12787char clock_gettime (); 12788int 12789main () 12790{ 12791return clock_gettime (); 12792 ; 12793 return 0; 12794} 12795_ACEOF 12796for ac_lib in '' rt; do 12797 if test -z "$ac_lib"; then 12798 ac_res="none required" 12799 else 12800 ac_res=-l$ac_lib 12801 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12802 fi 12803 rm -f conftest.$ac_objext conftest$ac_exeext 12804if { (ac_try="$ac_link" 12805case "(($ac_try" in 12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12807 *) ac_try_echo=$ac_try;; 12808esac 12809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12810 (eval "$ac_link") 2>conftest.er1 12811 ac_status=$? 12812 grep -v '^ *+' conftest.er1 >conftest.err 12813 rm -f conftest.er1 12814 cat conftest.err >&5 12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12816 (exit $ac_status); } && 12817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12818 { (case "(($ac_try" in 12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12820 *) ac_try_echo=$ac_try;; 12821esac 12822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12823 (eval "$ac_try") 2>&5 12824 ac_status=$? 12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12826 (exit $ac_status); }; } && 12827 { ac_try='test -s conftest$ac_exeext' 12828 { (case "(($ac_try" in 12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12830 *) ac_try_echo=$ac_try;; 12831esac 12832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12833 (eval "$ac_try") 2>&5 12834 ac_status=$? 12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12836 (exit $ac_status); }; }; then 12837 ac_cv_search_clock_gettime=$ac_res 12838else 12839 echo "$as_me: failed program was:" >&5 12840sed 's/^/| /' conftest.$ac_ext >&5 12841 12842 12843fi 12844 12845rm -f core conftest.err conftest.$ac_objext \ 12846 conftest$ac_exeext 12847 if test "${ac_cv_search_clock_gettime+set}" = set; then 12848 break 12849fi 12850done 12851if test "${ac_cv_search_clock_gettime+set}" = set; then 12852 : 12853else 12854 ac_cv_search_clock_gettime=no 12855fi 12856rm conftest.$ac_ext 12857LIBS=$ac_func_search_save_LIBS 12858fi 12859{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 12860echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } 12861ac_res=$ac_cv_search_clock_gettime 12862if test "$ac_res" != no; then 12863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12864 12865fi 12866 12867 12868if test "$llvm_cv_enable_libffi" = "yes" ; then 12869 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12870echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12871if test "${ac_cv_search_ffi_call+set}" = set; then 12872 echo $ECHO_N "(cached) $ECHO_C" >&6 12873else 12874 ac_func_search_save_LIBS=$LIBS 12875cat >conftest.$ac_ext <<_ACEOF 12876/* confdefs.h. */ 12877_ACEOF 12878cat confdefs.h >>conftest.$ac_ext 12879cat >>conftest.$ac_ext <<_ACEOF 12880/* end confdefs.h. */ 12881 12882/* Override any GCC internal prototype to avoid an error. 12883 Use char because int might match the return type of a GCC 12884 builtin and then its argument prototype would still apply. */ 12885#ifdef __cplusplus 12886extern "C" 12887#endif 12888char ffi_call (); 12889int 12890main () 12891{ 12892return ffi_call (); 12893 ; 12894 return 0; 12895} 12896_ACEOF 12897for ac_lib in '' ffi; do 12898 if test -z "$ac_lib"; then 12899 ac_res="none required" 12900 else 12901 ac_res=-l$ac_lib 12902 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12903 fi 12904 rm -f conftest.$ac_objext conftest$ac_exeext 12905if { (ac_try="$ac_link" 12906case "(($ac_try" in 12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12908 *) ac_try_echo=$ac_try;; 12909esac 12910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12911 (eval "$ac_link") 2>conftest.er1 12912 ac_status=$? 12913 grep -v '^ *+' conftest.er1 >conftest.err 12914 rm -f conftest.er1 12915 cat conftest.err >&5 12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12917 (exit $ac_status); } && 12918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12919 { (case "(($ac_try" in 12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12921 *) ac_try_echo=$ac_try;; 12922esac 12923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12924 (eval "$ac_try") 2>&5 12925 ac_status=$? 12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12927 (exit $ac_status); }; } && 12928 { ac_try='test -s conftest$ac_exeext' 12929 { (case "(($ac_try" in 12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12931 *) ac_try_echo=$ac_try;; 12932esac 12933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12934 (eval "$ac_try") 2>&5 12935 ac_status=$? 12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12937 (exit $ac_status); }; }; then 12938 ac_cv_search_ffi_call=$ac_res 12939else 12940 echo "$as_me: failed program was:" >&5 12941sed 's/^/| /' conftest.$ac_ext >&5 12942 12943 12944fi 12945 12946rm -f core conftest.err conftest.$ac_objext \ 12947 conftest$ac_exeext 12948 if test "${ac_cv_search_ffi_call+set}" = set; then 12949 break 12950fi 12951done 12952if test "${ac_cv_search_ffi_call+set}" = set; then 12953 : 12954else 12955 ac_cv_search_ffi_call=no 12956fi 12957rm conftest.$ac_ext 12958LIBS=$ac_func_search_save_LIBS 12959fi 12960{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12961echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12962ac_res=$ac_cv_search_ffi_call 12963if test "$ac_res" != no; then 12964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12965 12966cat >>confdefs.h <<\_ACEOF 12967#define HAVE_FFI_CALL 1 12968_ACEOF 12969 12970else 12971 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12972echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12973 { (exit 1); exit 1; }; } 12974fi 12975 12976fi 12977 12978{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12979echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12980if test "${ac_cv_search_mallinfo+set}" = set; then 12981 echo $ECHO_N "(cached) $ECHO_C" >&6 12982else 12983 ac_func_search_save_LIBS=$LIBS 12984cat >conftest.$ac_ext <<_ACEOF 12985/* confdefs.h. */ 12986_ACEOF 12987cat confdefs.h >>conftest.$ac_ext 12988cat >>conftest.$ac_ext <<_ACEOF 12989/* end confdefs.h. */ 12990 12991/* Override any GCC internal prototype to avoid an error. 12992 Use char because int might match the return type of a GCC 12993 builtin and then its argument prototype would still apply. */ 12994#ifdef __cplusplus 12995extern "C" 12996#endif 12997char mallinfo (); 12998int 12999main () 13000{ 13001return mallinfo (); 13002 ; 13003 return 0; 13004} 13005_ACEOF 13006for ac_lib in '' malloc; do 13007 if test -z "$ac_lib"; then 13008 ac_res="none required" 13009 else 13010 ac_res=-l$ac_lib 13011 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13012 fi 13013 rm -f conftest.$ac_objext conftest$ac_exeext 13014if { (ac_try="$ac_link" 13015case "(($ac_try" in 13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13017 *) ac_try_echo=$ac_try;; 13018esac 13019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13020 (eval "$ac_link") 2>conftest.er1 13021 ac_status=$? 13022 grep -v '^ *+' conftest.er1 >conftest.err 13023 rm -f conftest.er1 13024 cat conftest.err >&5 13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13026 (exit $ac_status); } && 13027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13028 { (case "(($ac_try" in 13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13030 *) ac_try_echo=$ac_try;; 13031esac 13032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13033 (eval "$ac_try") 2>&5 13034 ac_status=$? 13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13036 (exit $ac_status); }; } && 13037 { ac_try='test -s conftest$ac_exeext' 13038 { (case "(($ac_try" in 13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13040 *) ac_try_echo=$ac_try;; 13041esac 13042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13043 (eval "$ac_try") 2>&5 13044 ac_status=$? 13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13046 (exit $ac_status); }; }; then 13047 ac_cv_search_mallinfo=$ac_res 13048else 13049 echo "$as_me: failed program was:" >&5 13050sed 's/^/| /' conftest.$ac_ext >&5 13051 13052 13053fi 13054 13055rm -f core conftest.err conftest.$ac_objext \ 13056 conftest$ac_exeext 13057 if test "${ac_cv_search_mallinfo+set}" = set; then 13058 break 13059fi 13060done 13061if test "${ac_cv_search_mallinfo+set}" = set; then 13062 : 13063else 13064 ac_cv_search_mallinfo=no 13065fi 13066rm conftest.$ac_ext 13067LIBS=$ac_func_search_save_LIBS 13068fi 13069{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 13070echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 13071ac_res=$ac_cv_search_mallinfo 13072if test "$ac_res" != no; then 13073 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13074 13075cat >>confdefs.h <<\_ACEOF 13076#define HAVE_MALLINFO 1 13077_ACEOF 13078 13079fi 13080 13081 13082if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 13083 13084{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 13085echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 13086if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 13087 echo $ECHO_N "(cached) $ECHO_C" >&6 13088else 13089 ac_check_lib_save_LIBS=$LIBS 13090LIBS="-lpthread $LIBS" 13091cat >conftest.$ac_ext <<_ACEOF 13092/* confdefs.h. */ 13093_ACEOF 13094cat confdefs.h >>conftest.$ac_ext 13095cat >>conftest.$ac_ext <<_ACEOF 13096/* end confdefs.h. */ 13097 13098/* Override any GCC internal prototype to avoid an error. 13099 Use char because int might match the return type of a GCC 13100 builtin and then its argument prototype would still apply. */ 13101#ifdef __cplusplus 13102extern "C" 13103#endif 13104char pthread_mutex_init (); 13105int 13106main () 13107{ 13108return pthread_mutex_init (); 13109 ; 13110 return 0; 13111} 13112_ACEOF 13113rm -f conftest.$ac_objext conftest$ac_exeext 13114if { (ac_try="$ac_link" 13115case "(($ac_try" in 13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13117 *) ac_try_echo=$ac_try;; 13118esac 13119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13120 (eval "$ac_link") 2>conftest.er1 13121 ac_status=$? 13122 grep -v '^ *+' conftest.er1 >conftest.err 13123 rm -f conftest.er1 13124 cat conftest.err >&5 13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13126 (exit $ac_status); } && 13127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13128 { (case "(($ac_try" in 13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13130 *) ac_try_echo=$ac_try;; 13131esac 13132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13133 (eval "$ac_try") 2>&5 13134 ac_status=$? 13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13136 (exit $ac_status); }; } && 13137 { ac_try='test -s conftest$ac_exeext' 13138 { (case "(($ac_try" in 13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13140 *) ac_try_echo=$ac_try;; 13141esac 13142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13143 (eval "$ac_try") 2>&5 13144 ac_status=$? 13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13146 (exit $ac_status); }; }; then 13147 ac_cv_lib_pthread_pthread_mutex_init=yes 13148else 13149 echo "$as_me: failed program was:" >&5 13150sed 's/^/| /' conftest.$ac_ext >&5 13151 13152 ac_cv_lib_pthread_pthread_mutex_init=no 13153fi 13154 13155rm -f core conftest.err conftest.$ac_objext \ 13156 conftest$ac_exeext conftest.$ac_ext 13157LIBS=$ac_check_lib_save_LIBS 13158fi 13159{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 13160echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 13161if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 13162 cat >>confdefs.h <<_ACEOF 13163#define HAVE_LIBPTHREAD 1 13164_ACEOF 13165 13166 LIBS="-lpthread $LIBS" 13167 13168fi 13169 13170 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 13171echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 13172if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13173 echo $ECHO_N "(cached) $ECHO_C" >&6 13174else 13175 ac_func_search_save_LIBS=$LIBS 13176cat >conftest.$ac_ext <<_ACEOF 13177/* confdefs.h. */ 13178_ACEOF 13179cat confdefs.h >>conftest.$ac_ext 13180cat >>conftest.$ac_ext <<_ACEOF 13181/* end confdefs.h. */ 13182 13183/* Override any GCC internal prototype to avoid an error. 13184 Use char because int might match the return type of a GCC 13185 builtin and then its argument prototype would still apply. */ 13186#ifdef __cplusplus 13187extern "C" 13188#endif 13189char pthread_mutex_lock (); 13190int 13191main () 13192{ 13193return pthread_mutex_lock (); 13194 ; 13195 return 0; 13196} 13197_ACEOF 13198for ac_lib in '' pthread; do 13199 if test -z "$ac_lib"; then 13200 ac_res="none required" 13201 else 13202 ac_res=-l$ac_lib 13203 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13204 fi 13205 rm -f conftest.$ac_objext conftest$ac_exeext 13206if { (ac_try="$ac_link" 13207case "(($ac_try" in 13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13209 *) ac_try_echo=$ac_try;; 13210esac 13211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13212 (eval "$ac_link") 2>conftest.er1 13213 ac_status=$? 13214 grep -v '^ *+' conftest.er1 >conftest.err 13215 rm -f conftest.er1 13216 cat conftest.err >&5 13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13218 (exit $ac_status); } && 13219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13220 { (case "(($ac_try" in 13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13222 *) ac_try_echo=$ac_try;; 13223esac 13224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13225 (eval "$ac_try") 2>&5 13226 ac_status=$? 13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13228 (exit $ac_status); }; } && 13229 { ac_try='test -s conftest$ac_exeext' 13230 { (case "(($ac_try" in 13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13232 *) ac_try_echo=$ac_try;; 13233esac 13234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13235 (eval "$ac_try") 2>&5 13236 ac_status=$? 13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13238 (exit $ac_status); }; }; then 13239 ac_cv_search_pthread_mutex_lock=$ac_res 13240else 13241 echo "$as_me: failed program was:" >&5 13242sed 's/^/| /' conftest.$ac_ext >&5 13243 13244 13245fi 13246 13247rm -f core conftest.err conftest.$ac_objext \ 13248 conftest$ac_exeext 13249 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13250 break 13251fi 13252done 13253if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13254 : 13255else 13256 ac_cv_search_pthread_mutex_lock=no 13257fi 13258rm conftest.$ac_ext 13259LIBS=$ac_func_search_save_LIBS 13260fi 13261{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 13262echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 13263ac_res=$ac_cv_search_pthread_mutex_lock 13264if test "$ac_res" != no; then 13265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13266 13267cat >>confdefs.h <<\_ACEOF 13268#define HAVE_PTHREAD_MUTEX_LOCK 1 13269_ACEOF 13270 13271fi 13272 13273 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 13274echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 13275if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13276 echo $ECHO_N "(cached) $ECHO_C" >&6 13277else 13278 ac_func_search_save_LIBS=$LIBS 13279cat >conftest.$ac_ext <<_ACEOF 13280/* confdefs.h. */ 13281_ACEOF 13282cat confdefs.h >>conftest.$ac_ext 13283cat >>conftest.$ac_ext <<_ACEOF 13284/* end confdefs.h. */ 13285 13286/* Override any GCC internal prototype to avoid an error. 13287 Use char because int might match the return type of a GCC 13288 builtin and then its argument prototype would still apply. */ 13289#ifdef __cplusplus 13290extern "C" 13291#endif 13292char pthread_rwlock_init (); 13293int 13294main () 13295{ 13296return pthread_rwlock_init (); 13297 ; 13298 return 0; 13299} 13300_ACEOF 13301for ac_lib in '' pthread; do 13302 if test -z "$ac_lib"; then 13303 ac_res="none required" 13304 else 13305 ac_res=-l$ac_lib 13306 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13307 fi 13308 rm -f conftest.$ac_objext conftest$ac_exeext 13309if { (ac_try="$ac_link" 13310case "(($ac_try" in 13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13312 *) ac_try_echo=$ac_try;; 13313esac 13314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13315 (eval "$ac_link") 2>conftest.er1 13316 ac_status=$? 13317 grep -v '^ *+' conftest.er1 >conftest.err 13318 rm -f conftest.er1 13319 cat conftest.err >&5 13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13321 (exit $ac_status); } && 13322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13323 { (case "(($ac_try" in 13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13325 *) ac_try_echo=$ac_try;; 13326esac 13327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13328 (eval "$ac_try") 2>&5 13329 ac_status=$? 13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13331 (exit $ac_status); }; } && 13332 { ac_try='test -s conftest$ac_exeext' 13333 { (case "(($ac_try" in 13334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13335 *) ac_try_echo=$ac_try;; 13336esac 13337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13338 (eval "$ac_try") 2>&5 13339 ac_status=$? 13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13341 (exit $ac_status); }; }; then 13342 ac_cv_search_pthread_rwlock_init=$ac_res 13343else 13344 echo "$as_me: failed program was:" >&5 13345sed 's/^/| /' conftest.$ac_ext >&5 13346 13347 13348fi 13349 13350rm -f core conftest.err conftest.$ac_objext \ 13351 conftest$ac_exeext 13352 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13353 break 13354fi 13355done 13356if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13357 : 13358else 13359 ac_cv_search_pthread_rwlock_init=no 13360fi 13361rm conftest.$ac_ext 13362LIBS=$ac_func_search_save_LIBS 13363fi 13364{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 13365echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 13366ac_res=$ac_cv_search_pthread_rwlock_init 13367if test "$ac_res" != no; then 13368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13369 13370cat >>confdefs.h <<\_ACEOF 13371#define HAVE_PTHREAD_RWLOCK_INIT 1 13372_ACEOF 13373 13374fi 13375 13376 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 13377echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 13378if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13379 echo $ECHO_N "(cached) $ECHO_C" >&6 13380else 13381 ac_func_search_save_LIBS=$LIBS 13382cat >conftest.$ac_ext <<_ACEOF 13383/* confdefs.h. */ 13384_ACEOF 13385cat confdefs.h >>conftest.$ac_ext 13386cat >>conftest.$ac_ext <<_ACEOF 13387/* end confdefs.h. */ 13388 13389/* Override any GCC internal prototype to avoid an error. 13390 Use char because int might match the return type of a GCC 13391 builtin and then its argument prototype would still apply. */ 13392#ifdef __cplusplus 13393extern "C" 13394#endif 13395char pthread_getspecific (); 13396int 13397main () 13398{ 13399return pthread_getspecific (); 13400 ; 13401 return 0; 13402} 13403_ACEOF 13404for ac_lib in '' pthread; do 13405 if test -z "$ac_lib"; then 13406 ac_res="none required" 13407 else 13408 ac_res=-l$ac_lib 13409 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13410 fi 13411 rm -f conftest.$ac_objext conftest$ac_exeext 13412if { (ac_try="$ac_link" 13413case "(($ac_try" in 13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13415 *) ac_try_echo=$ac_try;; 13416esac 13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13418 (eval "$ac_link") 2>conftest.er1 13419 ac_status=$? 13420 grep -v '^ *+' conftest.er1 >conftest.err 13421 rm -f conftest.er1 13422 cat conftest.err >&5 13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13424 (exit $ac_status); } && 13425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13426 { (case "(($ac_try" in 13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13428 *) ac_try_echo=$ac_try;; 13429esac 13430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13431 (eval "$ac_try") 2>&5 13432 ac_status=$? 13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13434 (exit $ac_status); }; } && 13435 { ac_try='test -s conftest$ac_exeext' 13436 { (case "(($ac_try" in 13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13438 *) ac_try_echo=$ac_try;; 13439esac 13440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13441 (eval "$ac_try") 2>&5 13442 ac_status=$? 13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13444 (exit $ac_status); }; }; then 13445 ac_cv_search_pthread_getspecific=$ac_res 13446else 13447 echo "$as_me: failed program was:" >&5 13448sed 's/^/| /' conftest.$ac_ext >&5 13449 13450 13451fi 13452 13453rm -f core conftest.err conftest.$ac_objext \ 13454 conftest$ac_exeext 13455 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13456 break 13457fi 13458done 13459if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13460 : 13461else 13462 ac_cv_search_pthread_getspecific=no 13463fi 13464rm conftest.$ac_ext 13465LIBS=$ac_func_search_save_LIBS 13466fi 13467{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 13468echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 13469ac_res=$ac_cv_search_pthread_getspecific 13470if test "$ac_res" != no; then 13471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13472 13473cat >>confdefs.h <<\_ACEOF 13474#define HAVE_PTHREAD_GETSPECIFIC 1 13475_ACEOF 13476 13477fi 13478 13479fi 13480 13481if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 13482 13483{ echo "$as_me:$LINENO: checking for compress2 in -lz" >&5 13484echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; } 13485if test "${ac_cv_lib_z_compress2+set}" = set; then 13486 echo $ECHO_N "(cached) $ECHO_C" >&6 13487else 13488 ac_check_lib_save_LIBS=$LIBS 13489LIBS="-lz $LIBS" 13490cat >conftest.$ac_ext <<_ACEOF 13491/* confdefs.h. */ 13492_ACEOF 13493cat confdefs.h >>conftest.$ac_ext 13494cat >>conftest.$ac_ext <<_ACEOF 13495/* end confdefs.h. */ 13496 13497/* Override any GCC internal prototype to avoid an error. 13498 Use char because int might match the return type of a GCC 13499 builtin and then its argument prototype would still apply. */ 13500#ifdef __cplusplus 13501extern "C" 13502#endif 13503char compress2 (); 13504int 13505main () 13506{ 13507return compress2 (); 13508 ; 13509 return 0; 13510} 13511_ACEOF 13512rm -f conftest.$ac_objext conftest$ac_exeext 13513if { (ac_try="$ac_link" 13514case "(($ac_try" in 13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13516 *) ac_try_echo=$ac_try;; 13517esac 13518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13519 (eval "$ac_link") 2>conftest.er1 13520 ac_status=$? 13521 grep -v '^ *+' conftest.er1 >conftest.err 13522 rm -f conftest.er1 13523 cat conftest.err >&5 13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13525 (exit $ac_status); } && 13526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13527 { (case "(($ac_try" in 13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13529 *) ac_try_echo=$ac_try;; 13530esac 13531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13532 (eval "$ac_try") 2>&5 13533 ac_status=$? 13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13535 (exit $ac_status); }; } && 13536 { ac_try='test -s conftest$ac_exeext' 13537 { (case "(($ac_try" in 13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13539 *) ac_try_echo=$ac_try;; 13540esac 13541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13542 (eval "$ac_try") 2>&5 13543 ac_status=$? 13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13545 (exit $ac_status); }; }; then 13546 ac_cv_lib_z_compress2=yes 13547else 13548 echo "$as_me: failed program was:" >&5 13549sed 's/^/| /' conftest.$ac_ext >&5 13550 13551 ac_cv_lib_z_compress2=no 13552fi 13553 13554rm -f core conftest.err conftest.$ac_objext \ 13555 conftest$ac_exeext conftest.$ac_ext 13556LIBS=$ac_check_lib_save_LIBS 13557fi 13558{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5 13559echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; } 13560if test $ac_cv_lib_z_compress2 = yes; then 13561 cat >>confdefs.h <<_ACEOF 13562#define HAVE_LIBZ 1 13563_ACEOF 13564 13565 LIBS="-lz $LIBS" 13566 13567fi 13568 13569fi 13570 13571 13572# Check whether --with-udis86 was given. 13573if test "${with_udis86+set}" = set; then 13574 withval=$with_udis86; 13575 USE_UDIS86=1 13576 13577 case "$withval" in 13578 /usr/lib|yes) ;; 13579 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13580 esac 13581 13582{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 13583echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 13584if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 13585 echo $ECHO_N "(cached) $ECHO_C" >&6 13586else 13587 ac_check_lib_save_LIBS=$LIBS 13588LIBS="-ludis86 $LIBS" 13589cat >conftest.$ac_ext <<_ACEOF 13590/* confdefs.h. */ 13591_ACEOF 13592cat confdefs.h >>conftest.$ac_ext 13593cat >>conftest.$ac_ext <<_ACEOF 13594/* end confdefs.h. */ 13595 13596/* Override any GCC internal prototype to avoid an error. 13597 Use char because int might match the return type of a GCC 13598 builtin and then its argument prototype would still apply. */ 13599#ifdef __cplusplus 13600extern "C" 13601#endif 13602char ud_init (); 13603int 13604main () 13605{ 13606return ud_init (); 13607 ; 13608 return 0; 13609} 13610_ACEOF 13611rm -f conftest.$ac_objext conftest$ac_exeext 13612if { (ac_try="$ac_link" 13613case "(($ac_try" in 13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13615 *) ac_try_echo=$ac_try;; 13616esac 13617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13618 (eval "$ac_link") 2>conftest.er1 13619 ac_status=$? 13620 grep -v '^ *+' conftest.er1 >conftest.err 13621 rm -f conftest.er1 13622 cat conftest.err >&5 13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13624 (exit $ac_status); } && 13625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13626 { (case "(($ac_try" in 13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13628 *) ac_try_echo=$ac_try;; 13629esac 13630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13631 (eval "$ac_try") 2>&5 13632 ac_status=$? 13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13634 (exit $ac_status); }; } && 13635 { ac_try='test -s conftest$ac_exeext' 13636 { (case "(($ac_try" in 13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13638 *) ac_try_echo=$ac_try;; 13639esac 13640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13641 (eval "$ac_try") 2>&5 13642 ac_status=$? 13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13644 (exit $ac_status); }; }; then 13645 ac_cv_lib_udis86_ud_init=yes 13646else 13647 echo "$as_me: failed program was:" >&5 13648sed 's/^/| /' conftest.$ac_ext >&5 13649 13650 ac_cv_lib_udis86_ud_init=no 13651fi 13652 13653rm -f core conftest.err conftest.$ac_objext \ 13654 conftest$ac_exeext conftest.$ac_ext 13655LIBS=$ac_check_lib_save_LIBS 13656fi 13657{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13658echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13659if test $ac_cv_lib_udis86_ud_init = yes; then 13660 cat >>confdefs.h <<_ACEOF 13661#define HAVE_LIBUDIS86 1 13662_ACEOF 13663 13664 LIBS="-ludis86 $LIBS" 13665 13666else 13667 13668 echo "Error! You need to have libudis86 around." 13669 exit -1 13670 13671fi 13672 13673 13674else 13675 USE_UDIS86=0 13676 13677fi 13678 13679 13680cat >>confdefs.h <<_ACEOF 13681#define USE_UDIS86 $USE_UDIS86 13682_ACEOF 13683 13684 13685 13686# Check whether --with-oprofile was given. 13687if test "${with_oprofile+set}" = set; then 13688 withval=$with_oprofile; 13689 USE_OPROFILE=1 13690 13691 case "$withval" in 13692 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13693 no) llvm_cv_oppath= 13694 USE_OPROFILE=0 13695 ;; 13696 *) llvm_cv_oppath="${withval}/lib/oprofile" 13697 CPPFLAGS="-I${withval}/include";; 13698 esac 13699 case $llvm_cv_os_type in 13700 Linux) 13701 if test -n "$llvm_cv_oppath" ; then 13702 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13703 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13704echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13705if test "${ac_cv_search_bfd_init+set}" = set; then 13706 echo $ECHO_N "(cached) $ECHO_C" >&6 13707else 13708 ac_func_search_save_LIBS=$LIBS 13709cat >conftest.$ac_ext <<_ACEOF 13710/* confdefs.h. */ 13711_ACEOF 13712cat confdefs.h >>conftest.$ac_ext 13713cat >>conftest.$ac_ext <<_ACEOF 13714/* end confdefs.h. */ 13715 13716/* Override any GCC internal prototype to avoid an error. 13717 Use char because int might match the return type of a GCC 13718 builtin and then its argument prototype would still apply. */ 13719#ifdef __cplusplus 13720extern "C" 13721#endif 13722char bfd_init (); 13723int 13724main () 13725{ 13726return bfd_init (); 13727 ; 13728 return 0; 13729} 13730_ACEOF 13731for ac_lib in '' bfd; do 13732 if test -z "$ac_lib"; then 13733 ac_res="none required" 13734 else 13735 ac_res=-l$ac_lib 13736 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13737 fi 13738 rm -f conftest.$ac_objext conftest$ac_exeext 13739if { (ac_try="$ac_link" 13740case "(($ac_try" in 13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13742 *) ac_try_echo=$ac_try;; 13743esac 13744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13745 (eval "$ac_link") 2>conftest.er1 13746 ac_status=$? 13747 grep -v '^ *+' conftest.er1 >conftest.err 13748 rm -f conftest.er1 13749 cat conftest.err >&5 13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13751 (exit $ac_status); } && 13752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13753 { (case "(($ac_try" in 13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13755 *) ac_try_echo=$ac_try;; 13756esac 13757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13758 (eval "$ac_try") 2>&5 13759 ac_status=$? 13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13761 (exit $ac_status); }; } && 13762 { ac_try='test -s conftest$ac_exeext' 13763 { (case "(($ac_try" in 13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13765 *) ac_try_echo=$ac_try;; 13766esac 13767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13768 (eval "$ac_try") 2>&5 13769 ac_status=$? 13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13771 (exit $ac_status); }; }; then 13772 ac_cv_search_bfd_init=$ac_res 13773else 13774 echo "$as_me: failed program was:" >&5 13775sed 's/^/| /' conftest.$ac_ext >&5 13776 13777 13778fi 13779 13780rm -f core conftest.err conftest.$ac_objext \ 13781 conftest$ac_exeext 13782 if test "${ac_cv_search_bfd_init+set}" = set; then 13783 break 13784fi 13785done 13786if test "${ac_cv_search_bfd_init+set}" = set; then 13787 : 13788else 13789 ac_cv_search_bfd_init=no 13790fi 13791rm conftest.$ac_ext 13792LIBS=$ac_func_search_save_LIBS 13793fi 13794{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13795echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13796ac_res=$ac_cv_search_bfd_init 13797if test "$ac_res" != no; then 13798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13799 13800fi 13801 13802 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13803echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13804if test "${ac_cv_search_op_open_agent+set}" = set; then 13805 echo $ECHO_N "(cached) $ECHO_C" >&6 13806else 13807 ac_func_search_save_LIBS=$LIBS 13808cat >conftest.$ac_ext <<_ACEOF 13809/* confdefs.h. */ 13810_ACEOF 13811cat confdefs.h >>conftest.$ac_ext 13812cat >>conftest.$ac_ext <<_ACEOF 13813/* end confdefs.h. */ 13814 13815/* Override any GCC internal prototype to avoid an error. 13816 Use char because int might match the return type of a GCC 13817 builtin and then its argument prototype would still apply. */ 13818#ifdef __cplusplus 13819extern "C" 13820#endif 13821char op_open_agent (); 13822int 13823main () 13824{ 13825return op_open_agent (); 13826 ; 13827 return 0; 13828} 13829_ACEOF 13830for ac_lib in '' opagent; do 13831 if test -z "$ac_lib"; then 13832 ac_res="none required" 13833 else 13834 ac_res=-l$ac_lib 13835 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13836 fi 13837 rm -f conftest.$ac_objext conftest$ac_exeext 13838if { (ac_try="$ac_link" 13839case "(($ac_try" in 13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13841 *) ac_try_echo=$ac_try;; 13842esac 13843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13844 (eval "$ac_link") 2>conftest.er1 13845 ac_status=$? 13846 grep -v '^ *+' conftest.er1 >conftest.err 13847 rm -f conftest.er1 13848 cat conftest.err >&5 13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13850 (exit $ac_status); } && 13851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13852 { (case "(($ac_try" in 13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13854 *) ac_try_echo=$ac_try;; 13855esac 13856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13857 (eval "$ac_try") 2>&5 13858 ac_status=$? 13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13860 (exit $ac_status); }; } && 13861 { ac_try='test -s conftest$ac_exeext' 13862 { (case "(($ac_try" in 13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13864 *) ac_try_echo=$ac_try;; 13865esac 13866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13867 (eval "$ac_try") 2>&5 13868 ac_status=$? 13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13870 (exit $ac_status); }; }; then 13871 ac_cv_search_op_open_agent=$ac_res 13872else 13873 echo "$as_me: failed program was:" >&5 13874sed 's/^/| /' conftest.$ac_ext >&5 13875 13876 13877fi 13878 13879rm -f core conftest.err conftest.$ac_objext \ 13880 conftest$ac_exeext 13881 if test "${ac_cv_search_op_open_agent+set}" = set; then 13882 break 13883fi 13884done 13885if test "${ac_cv_search_op_open_agent+set}" = set; then 13886 : 13887else 13888 ac_cv_search_op_open_agent=no 13889fi 13890rm conftest.$ac_ext 13891LIBS=$ac_func_search_save_LIBS 13892fi 13893{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13894echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13895ac_res=$ac_cv_search_op_open_agent 13896if test "$ac_res" != no; then 13897 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13898 13899else 13900 13901 echo "Error! You need to have libopagent around." 13902 exit -1 13903 13904fi 13905 13906 if test "${ac_cv_header_opagent_h+set}" = set; then 13907 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13908echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13909if test "${ac_cv_header_opagent_h+set}" = set; then 13910 echo $ECHO_N "(cached) $ECHO_C" >&6 13911fi 13912{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13913echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13914else 13915 # Is the header compilable? 13916{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 13917echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13918cat >conftest.$ac_ext <<_ACEOF 13919/* confdefs.h. */ 13920_ACEOF 13921cat confdefs.h >>conftest.$ac_ext 13922cat >>conftest.$ac_ext <<_ACEOF 13923/* end confdefs.h. */ 13924$ac_includes_default 13925#include <opagent.h> 13926_ACEOF 13927rm -f conftest.$ac_objext 13928if { (ac_try="$ac_compile" 13929case "(($ac_try" in 13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13931 *) ac_try_echo=$ac_try;; 13932esac 13933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13934 (eval "$ac_compile") 2>conftest.er1 13935 ac_status=$? 13936 grep -v '^ *+' conftest.er1 >conftest.err 13937 rm -f conftest.er1 13938 cat conftest.err >&5 13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13940 (exit $ac_status); } && 13941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13942 { (case "(($ac_try" in 13943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13944 *) ac_try_echo=$ac_try;; 13945esac 13946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13947 (eval "$ac_try") 2>&5 13948 ac_status=$? 13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13950 (exit $ac_status); }; } && 13951 { ac_try='test -s conftest.$ac_objext' 13952 { (case "(($ac_try" in 13953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13954 *) ac_try_echo=$ac_try;; 13955esac 13956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13957 (eval "$ac_try") 2>&5 13958 ac_status=$? 13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13960 (exit $ac_status); }; }; then 13961 ac_header_compiler=yes 13962else 13963 echo "$as_me: failed program was:" >&5 13964sed 's/^/| /' conftest.$ac_ext >&5 13965 13966 ac_header_compiler=no 13967fi 13968 13969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13970{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13971echo "${ECHO_T}$ac_header_compiler" >&6; } 13972 13973# Is the header present? 13974{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 13975echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13976cat >conftest.$ac_ext <<_ACEOF 13977/* confdefs.h. */ 13978_ACEOF 13979cat confdefs.h >>conftest.$ac_ext 13980cat >>conftest.$ac_ext <<_ACEOF 13981/* end confdefs.h. */ 13982#include <opagent.h> 13983_ACEOF 13984if { (ac_try="$ac_cpp conftest.$ac_ext" 13985case "(($ac_try" in 13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13987 *) ac_try_echo=$ac_try;; 13988esac 13989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13991 ac_status=$? 13992 grep -v '^ *+' conftest.er1 >conftest.err 13993 rm -f conftest.er1 13994 cat conftest.err >&5 13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13996 (exit $ac_status); } >/dev/null; then 13997 if test -s conftest.err; then 13998 ac_cpp_err=$ac_c_preproc_warn_flag 13999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14000 else 14001 ac_cpp_err= 14002 fi 14003else 14004 ac_cpp_err=yes 14005fi 14006if test -z "$ac_cpp_err"; then 14007 ac_header_preproc=yes 14008else 14009 echo "$as_me: failed program was:" >&5 14010sed 's/^/| /' conftest.$ac_ext >&5 14011 14012 ac_header_preproc=no 14013fi 14014 14015rm -f conftest.err conftest.$ac_ext 14016{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14017echo "${ECHO_T}$ac_header_preproc" >&6; } 14018 14019# So? What about this header? 14020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14021 yes:no: ) 14022 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 14023echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14024 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 14025echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 14026 ac_header_preproc=yes 14027 ;; 14028 no:yes:* ) 14029 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 14030echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 14031 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 14032echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 14033 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 14034echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 14035 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 14036echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 14037 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 14038echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 14039 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 14040echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 14041 ( cat <<\_ASBOX 14042## ------------------------------------ ## 14043## Report this to http://llvm.org/bugs/ ## 14044## ------------------------------------ ## 14045_ASBOX 14046 ) | sed "s/^/$as_me: WARNING: /" >&2 14047 ;; 14048esac 14049{ echo "$as_me:$LINENO: checking for opagent.h" >&5 14050echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 14051if test "${ac_cv_header_opagent_h+set}" = set; then 14052 echo $ECHO_N "(cached) $ECHO_C" >&6 14053else 14054 ac_cv_header_opagent_h=$ac_header_preproc 14055fi 14056{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 14057echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 14058 14059fi 14060if test $ac_cv_header_opagent_h = yes; then 14061 : 14062else 14063 14064 echo "Error! You need to have opagent.h around." 14065 exit -1 14066 14067fi 14068 14069 14070 fi ;; 14071 *) 14072 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 14073echo "$as_me: error: OProfile support is available on Linux only." >&2;} 14074 { (exit 1); exit 1; }; } ;; 14075 esac 14076 14077else 14078 14079 USE_OPROFILE=0 14080 14081 14082fi 14083 14084 14085cat >>confdefs.h <<_ACEOF 14086#define LLVM_USE_OPROFILE $USE_OPROFILE 14087_ACEOF 14088 14089 14090 14091# Check whether --with-intel-jitevents was given. 14092if test "${with_intel_jitevents+set}" = set; then 14093 withval=$with_intel_jitevents; 14094 case "$withval" in 14095 yes) USE_INTEL_JITEVENTS=1 14096;; 14097 no) USE_INTEL_JITEVENTS=0 14098;; 14099 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5 14100echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;} 14101 { (exit 1); exit 1; }; };; 14102 esac 14103 14104 case $llvm_cv_os_type in 14105 Linux|Win32|Cygwin|MingW) ;; 14106 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5 14107echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;} 14108 { (exit 1); exit 1; }; };; 14109 esac 14110 14111 case "$llvm_cv_target_arch" in 14112 x86|x86_64) ;; 14113 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5 14114echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;} 14115 { (exit 1); exit 1; }; };; 14116 esac 14117 14118else 14119 14120 USE_INTEL_JITEVENTS=0 14121 14122 14123fi 14124 14125 14126cat >>confdefs.h <<_ACEOF 14127#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 14128_ACEOF 14129 14130 14131for ac_prog in xml2-config 14132do 14133 # Extract the first word of "$ac_prog", so it can be a program name with args. 14134set dummy $ac_prog; ac_word=$2 14135{ echo "$as_me:$LINENO: checking for $ac_word" >&5 14136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 14137if test "${ac_cv_prog_XML2CONFIG+set}" = set; then 14138 echo $ECHO_N "(cached) $ECHO_C" >&6 14139else 14140 if test -n "$XML2CONFIG"; then 14141 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test. 14142else 14143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14144for as_dir in $PATH 14145do 14146 IFS=$as_save_IFS 14147 test -z "$as_dir" && as_dir=. 14148 for ac_exec_ext in '' $ac_executable_extensions; do 14149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 14150 ac_cv_prog_XML2CONFIG="$ac_prog" 14151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14152 break 2 14153 fi 14154done 14155done 14156IFS=$as_save_IFS 14157 14158fi 14159fi 14160XML2CONFIG=$ac_cv_prog_XML2CONFIG 14161if test -n "$XML2CONFIG"; then 14162 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5 14163echo "${ECHO_T}$XML2CONFIG" >&6; } 14164else 14165 { echo "$as_me:$LINENO: result: no" >&5 14166echo "${ECHO_T}no" >&6; } 14167fi 14168 14169 14170 test -n "$XML2CONFIG" && break 14171done 14172 14173 14174{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5 14175echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; } 14176if test "x$XML2CONFIG" = "x"; then 14177 { echo "$as_me:$LINENO: result: xml2-config not found" >&5 14178echo "${ECHO_T}xml2-config not found" >&6; } 14179else 14180 LIBXML2_INC=`$XML2CONFIG --cflags` 14181 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5 14182echo "${ECHO_T}$LIBXML2_INC" >&6; } 14183 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5 14184echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; } 14185if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then 14186 echo $ECHO_N "(cached) $ECHO_C" >&6 14187else 14188 ac_check_lib_save_LIBS=$LIBS 14189LIBS="-lxml2 $LIBS" 14190cat >conftest.$ac_ext <<_ACEOF 14191/* confdefs.h. */ 14192_ACEOF 14193cat confdefs.h >>conftest.$ac_ext 14194cat >>conftest.$ac_ext <<_ACEOF 14195/* end confdefs.h. */ 14196 14197/* Override any GCC internal prototype to avoid an error. 14198 Use char because int might match the return type of a GCC 14199 builtin and then its argument prototype would still apply. */ 14200#ifdef __cplusplus 14201extern "C" 14202#endif 14203char xmlReadFile (); 14204int 14205main () 14206{ 14207return xmlReadFile (); 14208 ; 14209 return 0; 14210} 14211_ACEOF 14212rm -f conftest.$ac_objext conftest$ac_exeext 14213if { (ac_try="$ac_link" 14214case "(($ac_try" in 14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14216 *) ac_try_echo=$ac_try;; 14217esac 14218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14219 (eval "$ac_link") 2>conftest.er1 14220 ac_status=$? 14221 grep -v '^ *+' conftest.er1 >conftest.err 14222 rm -f conftest.er1 14223 cat conftest.err >&5 14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14225 (exit $ac_status); } && 14226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14227 { (case "(($ac_try" in 14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14229 *) ac_try_echo=$ac_try;; 14230esac 14231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14232 (eval "$ac_try") 2>&5 14233 ac_status=$? 14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14235 (exit $ac_status); }; } && 14236 { ac_try='test -s conftest$ac_exeext' 14237 { (case "(($ac_try" in 14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14239 *) ac_try_echo=$ac_try;; 14240esac 14241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14242 (eval "$ac_try") 2>&5 14243 ac_status=$? 14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14245 (exit $ac_status); }; }; then 14246 ac_cv_lib_xml2_xmlReadFile=yes 14247else 14248 echo "$as_me: failed program was:" >&5 14249sed 's/^/| /' conftest.$ac_ext >&5 14250 14251 ac_cv_lib_xml2_xmlReadFile=no 14252fi 14253 14254rm -f core conftest.err conftest.$ac_objext \ 14255 conftest$ac_exeext conftest.$ac_ext 14256LIBS=$ac_check_lib_save_LIBS 14257fi 14258{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5 14259echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; } 14260if test $ac_cv_lib_xml2_xmlReadFile = yes; then 14261 14262cat >>confdefs.h <<\_ACEOF 14263#define CLANG_HAVE_LIBXML 1 14264_ACEOF 14265 14266 LIBXML2_LIBS="-lxml2" 14267fi 14268 14269fi 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279ac_header_dirent=no 14280for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14281 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14282{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 14283echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 14284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14285 echo $ECHO_N "(cached) $ECHO_C" >&6 14286else 14287 cat >conftest.$ac_ext <<_ACEOF 14288/* confdefs.h. */ 14289_ACEOF 14290cat confdefs.h >>conftest.$ac_ext 14291cat >>conftest.$ac_ext <<_ACEOF 14292/* end confdefs.h. */ 14293#include <sys/types.h> 14294#include <$ac_hdr> 14295 14296int 14297main () 14298{ 14299if ((DIR *) 0) 14300return 0; 14301 ; 14302 return 0; 14303} 14304_ACEOF 14305rm -f conftest.$ac_objext 14306if { (ac_try="$ac_compile" 14307case "(($ac_try" in 14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14309 *) ac_try_echo=$ac_try;; 14310esac 14311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14312 (eval "$ac_compile") 2>conftest.er1 14313 ac_status=$? 14314 grep -v '^ *+' conftest.er1 >conftest.err 14315 rm -f conftest.er1 14316 cat conftest.err >&5 14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14318 (exit $ac_status); } && 14319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14320 { (case "(($ac_try" in 14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14322 *) ac_try_echo=$ac_try;; 14323esac 14324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14325 (eval "$ac_try") 2>&5 14326 ac_status=$? 14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14328 (exit $ac_status); }; } && 14329 { ac_try='test -s conftest.$ac_objext' 14330 { (case "(($ac_try" in 14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14332 *) ac_try_echo=$ac_try;; 14333esac 14334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14335 (eval "$ac_try") 2>&5 14336 ac_status=$? 14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14338 (exit $ac_status); }; }; then 14339 eval "$as_ac_Header=yes" 14340else 14341 echo "$as_me: failed program was:" >&5 14342sed 's/^/| /' conftest.$ac_ext >&5 14343 14344 eval "$as_ac_Header=no" 14345fi 14346 14347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14348fi 14349ac_res=`eval echo '${'$as_ac_Header'}'` 14350 { echo "$as_me:$LINENO: result: $ac_res" >&5 14351echo "${ECHO_T}$ac_res" >&6; } 14352if test `eval echo '${'$as_ac_Header'}'` = yes; then 14353 cat >>confdefs.h <<_ACEOF 14354#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14355_ACEOF 14356 14357ac_header_dirent=$ac_hdr; break 14358fi 14359 14360done 14361# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14362if test $ac_header_dirent = dirent.h; then 14363 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14364echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14365if test "${ac_cv_search_opendir+set}" = set; then 14366 echo $ECHO_N "(cached) $ECHO_C" >&6 14367else 14368 ac_func_search_save_LIBS=$LIBS 14369cat >conftest.$ac_ext <<_ACEOF 14370/* confdefs.h. */ 14371_ACEOF 14372cat confdefs.h >>conftest.$ac_ext 14373cat >>conftest.$ac_ext <<_ACEOF 14374/* end confdefs.h. */ 14375 14376/* Override any GCC internal prototype to avoid an error. 14377 Use char because int might match the return type of a GCC 14378 builtin and then its argument prototype would still apply. */ 14379#ifdef __cplusplus 14380extern "C" 14381#endif 14382char opendir (); 14383int 14384main () 14385{ 14386return opendir (); 14387 ; 14388 return 0; 14389} 14390_ACEOF 14391for ac_lib in '' dir; do 14392 if test -z "$ac_lib"; then 14393 ac_res="none required" 14394 else 14395 ac_res=-l$ac_lib 14396 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14397 fi 14398 rm -f conftest.$ac_objext conftest$ac_exeext 14399if { (ac_try="$ac_link" 14400case "(($ac_try" in 14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14402 *) ac_try_echo=$ac_try;; 14403esac 14404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14405 (eval "$ac_link") 2>conftest.er1 14406 ac_status=$? 14407 grep -v '^ *+' conftest.er1 >conftest.err 14408 rm -f conftest.er1 14409 cat conftest.err >&5 14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14411 (exit $ac_status); } && 14412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14413 { (case "(($ac_try" in 14414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14415 *) ac_try_echo=$ac_try;; 14416esac 14417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14418 (eval "$ac_try") 2>&5 14419 ac_status=$? 14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14421 (exit $ac_status); }; } && 14422 { ac_try='test -s conftest$ac_exeext' 14423 { (case "(($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_try") 2>&5 14429 ac_status=$? 14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14431 (exit $ac_status); }; }; then 14432 ac_cv_search_opendir=$ac_res 14433else 14434 echo "$as_me: failed program was:" >&5 14435sed 's/^/| /' conftest.$ac_ext >&5 14436 14437 14438fi 14439 14440rm -f core conftest.err conftest.$ac_objext \ 14441 conftest$ac_exeext 14442 if test "${ac_cv_search_opendir+set}" = set; then 14443 break 14444fi 14445done 14446if test "${ac_cv_search_opendir+set}" = set; then 14447 : 14448else 14449 ac_cv_search_opendir=no 14450fi 14451rm conftest.$ac_ext 14452LIBS=$ac_func_search_save_LIBS 14453fi 14454{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14455echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14456ac_res=$ac_cv_search_opendir 14457if test "$ac_res" != no; then 14458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14459 14460fi 14461 14462else 14463 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14464echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14465if test "${ac_cv_search_opendir+set}" = set; then 14466 echo $ECHO_N "(cached) $ECHO_C" >&6 14467else 14468 ac_func_search_save_LIBS=$LIBS 14469cat >conftest.$ac_ext <<_ACEOF 14470/* confdefs.h. */ 14471_ACEOF 14472cat confdefs.h >>conftest.$ac_ext 14473cat >>conftest.$ac_ext <<_ACEOF 14474/* end confdefs.h. */ 14475 14476/* Override any GCC internal prototype to avoid an error. 14477 Use char because int might match the return type of a GCC 14478 builtin and then its argument prototype would still apply. */ 14479#ifdef __cplusplus 14480extern "C" 14481#endif 14482char opendir (); 14483int 14484main () 14485{ 14486return opendir (); 14487 ; 14488 return 0; 14489} 14490_ACEOF 14491for ac_lib in '' x; do 14492 if test -z "$ac_lib"; then 14493 ac_res="none required" 14494 else 14495 ac_res=-l$ac_lib 14496 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14497 fi 14498 rm -f conftest.$ac_objext conftest$ac_exeext 14499if { (ac_try="$ac_link" 14500case "(($ac_try" in 14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14502 *) ac_try_echo=$ac_try;; 14503esac 14504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14505 (eval "$ac_link") 2>conftest.er1 14506 ac_status=$? 14507 grep -v '^ *+' conftest.er1 >conftest.err 14508 rm -f conftest.er1 14509 cat conftest.err >&5 14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14511 (exit $ac_status); } && 14512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14513 { (case "(($ac_try" in 14514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14515 *) ac_try_echo=$ac_try;; 14516esac 14517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14518 (eval "$ac_try") 2>&5 14519 ac_status=$? 14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14521 (exit $ac_status); }; } && 14522 { ac_try='test -s conftest$ac_exeext' 14523 { (case "(($ac_try" in 14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14525 *) ac_try_echo=$ac_try;; 14526esac 14527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14528 (eval "$ac_try") 2>&5 14529 ac_status=$? 14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14531 (exit $ac_status); }; }; then 14532 ac_cv_search_opendir=$ac_res 14533else 14534 echo "$as_me: failed program was:" >&5 14535sed 's/^/| /' conftest.$ac_ext >&5 14536 14537 14538fi 14539 14540rm -f core conftest.err conftest.$ac_objext \ 14541 conftest$ac_exeext 14542 if test "${ac_cv_search_opendir+set}" = set; then 14543 break 14544fi 14545done 14546if test "${ac_cv_search_opendir+set}" = set; then 14547 : 14548else 14549 ac_cv_search_opendir=no 14550fi 14551rm conftest.$ac_ext 14552LIBS=$ac_func_search_save_LIBS 14553fi 14554{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14555echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14556ac_res=$ac_cv_search_opendir 14557if test "$ac_res" != no; then 14558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14559 14560fi 14561 14562fi 14563 14564{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 14565echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 14566if test "${ac_cv_header_mmap_anon+set}" = set; then 14567 echo $ECHO_N "(cached) $ECHO_C" >&6 14568else 14569 ac_ext=c 14570ac_cpp='$CPP $CPPFLAGS' 14571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14573ac_compiler_gnu=$ac_cv_c_compiler_gnu 14574 14575 cat >conftest.$ac_ext <<_ACEOF 14576/* confdefs.h. */ 14577_ACEOF 14578cat confdefs.h >>conftest.$ac_ext 14579cat >>conftest.$ac_ext <<_ACEOF 14580/* end confdefs.h. */ 14581#include <sys/mman.h> 14582#include <unistd.h> 14583#include <fcntl.h> 14584int 14585main () 14586{ 14587mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 14588 ; 14589 return 0; 14590} 14591_ACEOF 14592rm -f conftest.$ac_objext 14593if { (ac_try="$ac_compile" 14594case "(($ac_try" in 14595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14596 *) ac_try_echo=$ac_try;; 14597esac 14598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14599 (eval "$ac_compile") 2>conftest.er1 14600 ac_status=$? 14601 grep -v '^ *+' conftest.er1 >conftest.err 14602 rm -f conftest.er1 14603 cat conftest.err >&5 14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14605 (exit $ac_status); } && 14606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14607 { (case "(($ac_try" in 14608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14609 *) ac_try_echo=$ac_try;; 14610esac 14611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14612 (eval "$ac_try") 2>&5 14613 ac_status=$? 14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14615 (exit $ac_status); }; } && 14616 { ac_try='test -s conftest.$ac_objext' 14617 { (case "(($ac_try" in 14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14619 *) ac_try_echo=$ac_try;; 14620esac 14621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14622 (eval "$ac_try") 2>&5 14623 ac_status=$? 14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14625 (exit $ac_status); }; }; then 14626 ac_cv_header_mmap_anon=yes 14627else 14628 echo "$as_me: failed program was:" >&5 14629sed 's/^/| /' conftest.$ac_ext >&5 14630 14631 ac_cv_header_mmap_anon=no 14632fi 14633 14634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14635 ac_ext=c 14636ac_cpp='$CPP $CPPFLAGS' 14637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14639ac_compiler_gnu=$ac_cv_c_compiler_gnu 14640 14641 14642fi 14643{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 14644echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 14645if test "$ac_cv_header_mmap_anon" = yes; then 14646 14647cat >>confdefs.h <<\_ACEOF 14648#define HAVE_MMAP_ANONYMOUS 1 14649_ACEOF 14650 14651fi 14652 14653{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 14654echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 14655if test "${ac_cv_header_stat_broken+set}" = set; then 14656 echo $ECHO_N "(cached) $ECHO_C" >&6 14657else 14658 cat >conftest.$ac_ext <<_ACEOF 14659/* confdefs.h. */ 14660_ACEOF 14661cat confdefs.h >>conftest.$ac_ext 14662cat >>conftest.$ac_ext <<_ACEOF 14663/* end confdefs.h. */ 14664#include <sys/types.h> 14665#include <sys/stat.h> 14666 14667#if defined S_ISBLK && defined S_IFDIR 14668# if S_ISBLK (S_IFDIR) 14669You lose. 14670# endif 14671#endif 14672 14673#if defined S_ISBLK && defined S_IFCHR 14674# if S_ISBLK (S_IFCHR) 14675You lose. 14676# endif 14677#endif 14678 14679#if defined S_ISLNK && defined S_IFREG 14680# if S_ISLNK (S_IFREG) 14681You lose. 14682# endif 14683#endif 14684 14685#if defined S_ISSOCK && defined S_IFREG 14686# if S_ISSOCK (S_IFREG) 14687You lose. 14688# endif 14689#endif 14690 14691_ACEOF 14692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14693 $EGREP "You lose" >/dev/null 2>&1; then 14694 ac_cv_header_stat_broken=yes 14695else 14696 ac_cv_header_stat_broken=no 14697fi 14698rm -f conftest* 14699 14700fi 14701{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14702echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14703if test $ac_cv_header_stat_broken = yes; then 14704 14705cat >>confdefs.h <<\_ACEOF 14706#define STAT_MACROS_BROKEN 1 14707_ACEOF 14708 14709fi 14710 14711{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 14712echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14713if test "${ac_cv_header_sys_wait_h+set}" = set; then 14714 echo $ECHO_N "(cached) $ECHO_C" >&6 14715else 14716 cat >conftest.$ac_ext <<_ACEOF 14717/* confdefs.h. */ 14718_ACEOF 14719cat confdefs.h >>conftest.$ac_ext 14720cat >>conftest.$ac_ext <<_ACEOF 14721/* end confdefs.h. */ 14722#include <sys/types.h> 14723#include <sys/wait.h> 14724#ifndef WEXITSTATUS 14725# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14726#endif 14727#ifndef WIFEXITED 14728# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14729#endif 14730 14731int 14732main () 14733{ 14734 int s; 14735 wait (&s); 14736 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14737 ; 14738 return 0; 14739} 14740_ACEOF 14741rm -f conftest.$ac_objext 14742if { (ac_try="$ac_compile" 14743case "(($ac_try" in 14744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14745 *) ac_try_echo=$ac_try;; 14746esac 14747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14748 (eval "$ac_compile") 2>conftest.er1 14749 ac_status=$? 14750 grep -v '^ *+' conftest.er1 >conftest.err 14751 rm -f conftest.er1 14752 cat conftest.err >&5 14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14754 (exit $ac_status); } && 14755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14756 { (case "(($ac_try" in 14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14758 *) ac_try_echo=$ac_try;; 14759esac 14760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14761 (eval "$ac_try") 2>&5 14762 ac_status=$? 14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14764 (exit $ac_status); }; } && 14765 { ac_try='test -s conftest.$ac_objext' 14766 { (case "(($ac_try" in 14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14768 *) ac_try_echo=$ac_try;; 14769esac 14770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14771 (eval "$ac_try") 2>&5 14772 ac_status=$? 14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14774 (exit $ac_status); }; }; then 14775 ac_cv_header_sys_wait_h=yes 14776else 14777 echo "$as_me: failed program was:" >&5 14778sed 's/^/| /' conftest.$ac_ext >&5 14779 14780 ac_cv_header_sys_wait_h=no 14781fi 14782 14783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14784fi 14785{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14786echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14787if test $ac_cv_header_sys_wait_h = yes; then 14788 14789cat >>confdefs.h <<\_ACEOF 14790#define HAVE_SYS_WAIT_H 1 14791_ACEOF 14792 14793fi 14794 14795{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14796echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14797if test "${ac_cv_header_time+set}" = set; then 14798 echo $ECHO_N "(cached) $ECHO_C" >&6 14799else 14800 cat >conftest.$ac_ext <<_ACEOF 14801/* confdefs.h. */ 14802_ACEOF 14803cat confdefs.h >>conftest.$ac_ext 14804cat >>conftest.$ac_ext <<_ACEOF 14805/* end confdefs.h. */ 14806#include <sys/types.h> 14807#include <sys/time.h> 14808#include <time.h> 14809 14810int 14811main () 14812{ 14813if ((struct tm *) 0) 14814return 0; 14815 ; 14816 return 0; 14817} 14818_ACEOF 14819rm -f conftest.$ac_objext 14820if { (ac_try="$ac_compile" 14821case "(($ac_try" in 14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14823 *) ac_try_echo=$ac_try;; 14824esac 14825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14826 (eval "$ac_compile") 2>conftest.er1 14827 ac_status=$? 14828 grep -v '^ *+' conftest.er1 >conftest.err 14829 rm -f conftest.er1 14830 cat conftest.err >&5 14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14832 (exit $ac_status); } && 14833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14834 { (case "(($ac_try" in 14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14836 *) ac_try_echo=$ac_try;; 14837esac 14838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14839 (eval "$ac_try") 2>&5 14840 ac_status=$? 14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14842 (exit $ac_status); }; } && 14843 { ac_try='test -s conftest.$ac_objext' 14844 { (case "(($ac_try" in 14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14846 *) ac_try_echo=$ac_try;; 14847esac 14848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14849 (eval "$ac_try") 2>&5 14850 ac_status=$? 14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14852 (exit $ac_status); }; }; then 14853 ac_cv_header_time=yes 14854else 14855 echo "$as_me: failed program was:" >&5 14856sed 's/^/| /' conftest.$ac_ext >&5 14857 14858 ac_cv_header_time=no 14859fi 14860 14861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14862fi 14863{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14864echo "${ECHO_T}$ac_cv_header_time" >&6; } 14865if test $ac_cv_header_time = yes; then 14866 14867cat >>confdefs.h <<\_ACEOF 14868#define TIME_WITH_SYS_TIME 1 14869_ACEOF 14870 14871fi 14872 14873 14874ac_ext=cpp 14875ac_cpp='$CXXCPP $CPPFLAGS' 14876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14879 14880ac_ext=cpp 14881ac_cpp='$CXXCPP $CPPFLAGS' 14882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14885{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 14886echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 14887if test -z "$CXXCPP"; then 14888 if test "${ac_cv_prog_CXXCPP+set}" = set; then 14889 echo $ECHO_N "(cached) $ECHO_C" >&6 14890else 14891 # Double quotes because CXXCPP needs to be expanded 14892 for CXXCPP in "$CXX -E" "/lib/cpp" 14893 do 14894 ac_preproc_ok=false 14895for ac_cxx_preproc_warn_flag in '' yes 14896do 14897 # Use a header file that comes with gcc, so configuring glibc 14898 # with a fresh cross-compiler works. 14899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14900 # <limits.h> exists even on freestanding compilers. 14901 # On the NeXT, cc -E runs the code through the compiler's parser, 14902 # not just through cpp. "Syntax error" is here to catch this case. 14903 cat >conftest.$ac_ext <<_ACEOF 14904/* confdefs.h. */ 14905_ACEOF 14906cat confdefs.h >>conftest.$ac_ext 14907cat >>conftest.$ac_ext <<_ACEOF 14908/* end confdefs.h. */ 14909#ifdef __STDC__ 14910# include <limits.h> 14911#else 14912# include <assert.h> 14913#endif 14914 Syntax error 14915_ACEOF 14916if { (ac_try="$ac_cpp conftest.$ac_ext" 14917case "(($ac_try" in 14918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14919 *) ac_try_echo=$ac_try;; 14920esac 14921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14923 ac_status=$? 14924 grep -v '^ *+' conftest.er1 >conftest.err 14925 rm -f conftest.er1 14926 cat conftest.err >&5 14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14928 (exit $ac_status); } >/dev/null; then 14929 if test -s conftest.err; then 14930 ac_cpp_err=$ac_cxx_preproc_warn_flag 14931 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 14932 else 14933 ac_cpp_err= 14934 fi 14935else 14936 ac_cpp_err=yes 14937fi 14938if test -z "$ac_cpp_err"; then 14939 : 14940else 14941 echo "$as_me: failed program was:" >&5 14942sed 's/^/| /' conftest.$ac_ext >&5 14943 14944 # Broken: fails on valid input. 14945continue 14946fi 14947 14948rm -f conftest.err conftest.$ac_ext 14949 14950 # OK, works on sane cases. Now check whether nonexistent headers 14951 # can be detected and how. 14952 cat >conftest.$ac_ext <<_ACEOF 14953/* confdefs.h. */ 14954_ACEOF 14955cat confdefs.h >>conftest.$ac_ext 14956cat >>conftest.$ac_ext <<_ACEOF 14957/* end confdefs.h. */ 14958#include <ac_nonexistent.h> 14959_ACEOF 14960if { (ac_try="$ac_cpp conftest.$ac_ext" 14961case "(($ac_try" in 14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14963 *) ac_try_echo=$ac_try;; 14964esac 14965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14967 ac_status=$? 14968 grep -v '^ *+' conftest.er1 >conftest.err 14969 rm -f conftest.er1 14970 cat conftest.err >&5 14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14972 (exit $ac_status); } >/dev/null; then 14973 if test -s conftest.err; then 14974 ac_cpp_err=$ac_cxx_preproc_warn_flag 14975 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 14976 else 14977 ac_cpp_err= 14978 fi 14979else 14980 ac_cpp_err=yes 14981fi 14982if test -z "$ac_cpp_err"; then 14983 # Broken: success on invalid input. 14984continue 14985else 14986 echo "$as_me: failed program was:" >&5 14987sed 's/^/| /' conftest.$ac_ext >&5 14988 14989 # Passes both tests. 14990ac_preproc_ok=: 14991break 14992fi 14993 14994rm -f conftest.err conftest.$ac_ext 14995 14996done 14997# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14998rm -f conftest.err conftest.$ac_ext 14999if $ac_preproc_ok; then 15000 break 15001fi 15002 15003 done 15004 ac_cv_prog_CXXCPP=$CXXCPP 15005 15006fi 15007 CXXCPP=$ac_cv_prog_CXXCPP 15008else 15009 ac_cv_prog_CXXCPP=$CXXCPP 15010fi 15011{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 15012echo "${ECHO_T}$CXXCPP" >&6; } 15013ac_preproc_ok=false 15014for ac_cxx_preproc_warn_flag in '' yes 15015do 15016 # Use a header file that comes with gcc, so configuring glibc 15017 # with a fresh cross-compiler works. 15018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15019 # <limits.h> exists even on freestanding compilers. 15020 # On the NeXT, cc -E runs the code through the compiler's parser, 15021 # not just through cpp. "Syntax error" is here to catch this case. 15022 cat >conftest.$ac_ext <<_ACEOF 15023/* confdefs.h. */ 15024_ACEOF 15025cat confdefs.h >>conftest.$ac_ext 15026cat >>conftest.$ac_ext <<_ACEOF 15027/* end confdefs.h. */ 15028#ifdef __STDC__ 15029# include <limits.h> 15030#else 15031# include <assert.h> 15032#endif 15033 Syntax error 15034_ACEOF 15035if { (ac_try="$ac_cpp conftest.$ac_ext" 15036case "(($ac_try" in 15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15038 *) ac_try_echo=$ac_try;; 15039esac 15040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15042 ac_status=$? 15043 grep -v '^ *+' conftest.er1 >conftest.err 15044 rm -f conftest.er1 15045 cat conftest.err >&5 15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15047 (exit $ac_status); } >/dev/null; then 15048 if test -s conftest.err; then 15049 ac_cpp_err=$ac_cxx_preproc_warn_flag 15050 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 15051 else 15052 ac_cpp_err= 15053 fi 15054else 15055 ac_cpp_err=yes 15056fi 15057if test -z "$ac_cpp_err"; then 15058 : 15059else 15060 echo "$as_me: failed program was:" >&5 15061sed 's/^/| /' conftest.$ac_ext >&5 15062 15063 # Broken: fails on valid input. 15064continue 15065fi 15066 15067rm -f conftest.err conftest.$ac_ext 15068 15069 # OK, works on sane cases. Now check whether nonexistent headers 15070 # can be detected and how. 15071 cat >conftest.$ac_ext <<_ACEOF 15072/* confdefs.h. */ 15073_ACEOF 15074cat confdefs.h >>conftest.$ac_ext 15075cat >>conftest.$ac_ext <<_ACEOF 15076/* end confdefs.h. */ 15077#include <ac_nonexistent.h> 15078_ACEOF 15079if { (ac_try="$ac_cpp conftest.$ac_ext" 15080case "(($ac_try" in 15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15082 *) ac_try_echo=$ac_try;; 15083esac 15084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15086 ac_status=$? 15087 grep -v '^ *+' conftest.er1 >conftest.err 15088 rm -f conftest.er1 15089 cat conftest.err >&5 15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15091 (exit $ac_status); } >/dev/null; then 15092 if test -s conftest.err; then 15093 ac_cpp_err=$ac_cxx_preproc_warn_flag 15094 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 15095 else 15096 ac_cpp_err= 15097 fi 15098else 15099 ac_cpp_err=yes 15100fi 15101if test -z "$ac_cpp_err"; then 15102 # Broken: success on invalid input. 15103continue 15104else 15105 echo "$as_me: failed program was:" >&5 15106sed 's/^/| /' conftest.$ac_ext >&5 15107 15108 # Passes both tests. 15109ac_preproc_ok=: 15110break 15111fi 15112 15113rm -f conftest.err conftest.$ac_ext 15114 15115done 15116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15117rm -f conftest.err conftest.$ac_ext 15118if $ac_preproc_ok; then 15119 : 15120else 15121 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 15122See \`config.log' for more details." >&5 15123echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 15124See \`config.log' for more details." >&2;} 15125 { (exit 1); exit 1; }; } 15126fi 15127 15128ac_ext=cpp 15129ac_cpp='$CXXCPP $CPPFLAGS' 15130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15133 15134 15135 15136for ac_header in cxxabi.h 15137do 15138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15140 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15143 echo $ECHO_N "(cached) $ECHO_C" >&6 15144fi 15145ac_res=`eval echo '${'$as_ac_Header'}'` 15146 { echo "$as_me:$LINENO: result: $ac_res" >&5 15147echo "${ECHO_T}$ac_res" >&6; } 15148else 15149 # Is the header compilable? 15150{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15152cat >conftest.$ac_ext <<_ACEOF 15153/* confdefs.h. */ 15154_ACEOF 15155cat confdefs.h >>conftest.$ac_ext 15156cat >>conftest.$ac_ext <<_ACEOF 15157/* end confdefs.h. */ 15158$ac_includes_default 15159#include <$ac_header> 15160_ACEOF 15161rm -f conftest.$ac_objext 15162if { (ac_try="$ac_compile" 15163case "(($ac_try" in 15164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15165 *) ac_try_echo=$ac_try;; 15166esac 15167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15168 (eval "$ac_compile") 2>conftest.er1 15169 ac_status=$? 15170 grep -v '^ *+' conftest.er1 >conftest.err 15171 rm -f conftest.er1 15172 cat conftest.err >&5 15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15174 (exit $ac_status); } && 15175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 15176 { (case "(($ac_try" in 15177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15178 *) ac_try_echo=$ac_try;; 15179esac 15180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15181 (eval "$ac_try") 2>&5 15182 ac_status=$? 15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15184 (exit $ac_status); }; } && 15185 { ac_try='test -s conftest.$ac_objext' 15186 { (case "(($ac_try" in 15187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15188 *) ac_try_echo=$ac_try;; 15189esac 15190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15191 (eval "$ac_try") 2>&5 15192 ac_status=$? 15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15194 (exit $ac_status); }; }; then 15195 ac_header_compiler=yes 15196else 15197 echo "$as_me: failed program was:" >&5 15198sed 's/^/| /' conftest.$ac_ext >&5 15199 15200 ac_header_compiler=no 15201fi 15202 15203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15204{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15205echo "${ECHO_T}$ac_header_compiler" >&6; } 15206 15207# Is the header present? 15208{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15210cat >conftest.$ac_ext <<_ACEOF 15211/* confdefs.h. */ 15212_ACEOF 15213cat confdefs.h >>conftest.$ac_ext 15214cat >>conftest.$ac_ext <<_ACEOF 15215/* end confdefs.h. */ 15216#include <$ac_header> 15217_ACEOF 15218if { (ac_try="$ac_cpp conftest.$ac_ext" 15219case "(($ac_try" in 15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15221 *) ac_try_echo=$ac_try;; 15222esac 15223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15225 ac_status=$? 15226 grep -v '^ *+' conftest.er1 >conftest.err 15227 rm -f conftest.er1 15228 cat conftest.err >&5 15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15230 (exit $ac_status); } >/dev/null; then 15231 if test -s conftest.err; then 15232 ac_cpp_err=$ac_cxx_preproc_warn_flag 15233 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 15234 else 15235 ac_cpp_err= 15236 fi 15237else 15238 ac_cpp_err=yes 15239fi 15240if test -z "$ac_cpp_err"; then 15241 ac_header_preproc=yes 15242else 15243 echo "$as_me: failed program was:" >&5 15244sed 's/^/| /' conftest.$ac_ext >&5 15245 15246 ac_header_preproc=no 15247fi 15248 15249rm -f conftest.err conftest.$ac_ext 15250{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15251echo "${ECHO_T}$ac_header_preproc" >&6; } 15252 15253# So? What about this header? 15254case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 15255 yes:no: ) 15256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15257echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15259echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15260 ac_header_preproc=yes 15261 ;; 15262 no:yes:* ) 15263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15264echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15266echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15268echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15270echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15272echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15274echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15275 ( cat <<\_ASBOX 15276## ------------------------------------ ## 15277## Report this to http://llvm.org/bugs/ ## 15278## ------------------------------------ ## 15279_ASBOX 15280 ) | sed "s/^/$as_me: WARNING: /" >&2 15281 ;; 15282esac 15283{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15286 echo $ECHO_N "(cached) $ECHO_C" >&6 15287else 15288 eval "$as_ac_Header=\$ac_header_preproc" 15289fi 15290ac_res=`eval echo '${'$as_ac_Header'}'` 15291 { echo "$as_me:$LINENO: result: $ac_res" >&5 15292echo "${ECHO_T}$ac_res" >&6; } 15293 15294fi 15295if test `eval echo '${'$as_ac_Header'}'` = yes; then 15296 cat >>confdefs.h <<_ACEOF 15297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15298_ACEOF 15299 15300fi 15301 15302done 15303 15304ac_ext=c 15305ac_cpp='$CPP $CPPFLAGS' 15306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15308ac_compiler_gnu=$ac_cv_c_compiler_gnu 15309 15310 15311 15312 15313 15314 15315 15316for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 15317do 15318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15320 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15323 echo $ECHO_N "(cached) $ECHO_C" >&6 15324fi 15325ac_res=`eval echo '${'$as_ac_Header'}'` 15326 { echo "$as_me:$LINENO: result: $ac_res" >&5 15327echo "${ECHO_T}$ac_res" >&6; } 15328else 15329 # Is the header compilable? 15330{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15331echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15332cat >conftest.$ac_ext <<_ACEOF 15333/* confdefs.h. */ 15334_ACEOF 15335cat confdefs.h >>conftest.$ac_ext 15336cat >>conftest.$ac_ext <<_ACEOF 15337/* end confdefs.h. */ 15338$ac_includes_default 15339#include <$ac_header> 15340_ACEOF 15341rm -f conftest.$ac_objext 15342if { (ac_try="$ac_compile" 15343case "(($ac_try" in 15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15345 *) ac_try_echo=$ac_try;; 15346esac 15347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15348 (eval "$ac_compile") 2>conftest.er1 15349 ac_status=$? 15350 grep -v '^ *+' conftest.er1 >conftest.err 15351 rm -f conftest.er1 15352 cat conftest.err >&5 15353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15354 (exit $ac_status); } && 15355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15356 { (case "(($ac_try" in 15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15358 *) ac_try_echo=$ac_try;; 15359esac 15360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15361 (eval "$ac_try") 2>&5 15362 ac_status=$? 15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15364 (exit $ac_status); }; } && 15365 { ac_try='test -s conftest.$ac_objext' 15366 { (case "(($ac_try" in 15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15368 *) ac_try_echo=$ac_try;; 15369esac 15370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15371 (eval "$ac_try") 2>&5 15372 ac_status=$? 15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15374 (exit $ac_status); }; }; then 15375 ac_header_compiler=yes 15376else 15377 echo "$as_me: failed program was:" >&5 15378sed 's/^/| /' conftest.$ac_ext >&5 15379 15380 ac_header_compiler=no 15381fi 15382 15383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15384{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15385echo "${ECHO_T}$ac_header_compiler" >&6; } 15386 15387# Is the header present? 15388{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15390cat >conftest.$ac_ext <<_ACEOF 15391/* confdefs.h. */ 15392_ACEOF 15393cat confdefs.h >>conftest.$ac_ext 15394cat >>conftest.$ac_ext <<_ACEOF 15395/* end confdefs.h. */ 15396#include <$ac_header> 15397_ACEOF 15398if { (ac_try="$ac_cpp conftest.$ac_ext" 15399case "(($ac_try" in 15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15401 *) ac_try_echo=$ac_try;; 15402esac 15403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15405 ac_status=$? 15406 grep -v '^ *+' conftest.er1 >conftest.err 15407 rm -f conftest.er1 15408 cat conftest.err >&5 15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15410 (exit $ac_status); } >/dev/null; then 15411 if test -s conftest.err; then 15412 ac_cpp_err=$ac_c_preproc_warn_flag 15413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15414 else 15415 ac_cpp_err= 15416 fi 15417else 15418 ac_cpp_err=yes 15419fi 15420if test -z "$ac_cpp_err"; then 15421 ac_header_preproc=yes 15422else 15423 echo "$as_me: failed program was:" >&5 15424sed 's/^/| /' conftest.$ac_ext >&5 15425 15426 ac_header_preproc=no 15427fi 15428 15429rm -f conftest.err conftest.$ac_ext 15430{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15431echo "${ECHO_T}$ac_header_preproc" >&6; } 15432 15433# So? What about this header? 15434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15435 yes:no: ) 15436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15440 ac_header_preproc=yes 15441 ;; 15442 no:yes:* ) 15443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15446echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15450echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15455 ( cat <<\_ASBOX 15456## ------------------------------------ ## 15457## Report this to http://llvm.org/bugs/ ## 15458## ------------------------------------ ## 15459_ASBOX 15460 ) | sed "s/^/$as_me: WARNING: /" >&2 15461 ;; 15462esac 15463{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15466 echo $ECHO_N "(cached) $ECHO_C" >&6 15467else 15468 eval "$as_ac_Header=\$ac_header_preproc" 15469fi 15470ac_res=`eval echo '${'$as_ac_Header'}'` 15471 { echo "$as_me:$LINENO: result: $ac_res" >&5 15472echo "${ECHO_T}$ac_res" >&6; } 15473 15474fi 15475if test `eval echo '${'$as_ac_Header'}'` = yes; then 15476 cat >>confdefs.h <<_ACEOF 15477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15478_ACEOF 15479 15480fi 15481 15482done 15483 15484 15485 15486 15487 15488 15489 15490for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 15491do 15492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15494 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15497 echo $ECHO_N "(cached) $ECHO_C" >&6 15498fi 15499ac_res=`eval echo '${'$as_ac_Header'}'` 15500 { echo "$as_me:$LINENO: result: $ac_res" >&5 15501echo "${ECHO_T}$ac_res" >&6; } 15502else 15503 # Is the header compilable? 15504{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15506cat >conftest.$ac_ext <<_ACEOF 15507/* confdefs.h. */ 15508_ACEOF 15509cat confdefs.h >>conftest.$ac_ext 15510cat >>conftest.$ac_ext <<_ACEOF 15511/* end confdefs.h. */ 15512$ac_includes_default 15513#include <$ac_header> 15514_ACEOF 15515rm -f conftest.$ac_objext 15516if { (ac_try="$ac_compile" 15517case "(($ac_try" in 15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15519 *) ac_try_echo=$ac_try;; 15520esac 15521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15522 (eval "$ac_compile") 2>conftest.er1 15523 ac_status=$? 15524 grep -v '^ *+' conftest.er1 >conftest.err 15525 rm -f conftest.er1 15526 cat conftest.err >&5 15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15528 (exit $ac_status); } && 15529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15530 { (case "(($ac_try" in 15531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15532 *) ac_try_echo=$ac_try;; 15533esac 15534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15535 (eval "$ac_try") 2>&5 15536 ac_status=$? 15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15538 (exit $ac_status); }; } && 15539 { ac_try='test -s conftest.$ac_objext' 15540 { (case "(($ac_try" in 15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15542 *) ac_try_echo=$ac_try;; 15543esac 15544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15545 (eval "$ac_try") 2>&5 15546 ac_status=$? 15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15548 (exit $ac_status); }; }; then 15549 ac_header_compiler=yes 15550else 15551 echo "$as_me: failed program was:" >&5 15552sed 's/^/| /' conftest.$ac_ext >&5 15553 15554 ac_header_compiler=no 15555fi 15556 15557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15558{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15559echo "${ECHO_T}$ac_header_compiler" >&6; } 15560 15561# Is the header present? 15562{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15564cat >conftest.$ac_ext <<_ACEOF 15565/* confdefs.h. */ 15566_ACEOF 15567cat confdefs.h >>conftest.$ac_ext 15568cat >>conftest.$ac_ext <<_ACEOF 15569/* end confdefs.h. */ 15570#include <$ac_header> 15571_ACEOF 15572if { (ac_try="$ac_cpp conftest.$ac_ext" 15573case "(($ac_try" in 15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15575 *) ac_try_echo=$ac_try;; 15576esac 15577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15579 ac_status=$? 15580 grep -v '^ *+' conftest.er1 >conftest.err 15581 rm -f conftest.er1 15582 cat conftest.err >&5 15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15584 (exit $ac_status); } >/dev/null; then 15585 if test -s conftest.err; then 15586 ac_cpp_err=$ac_c_preproc_warn_flag 15587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15588 else 15589 ac_cpp_err= 15590 fi 15591else 15592 ac_cpp_err=yes 15593fi 15594if test -z "$ac_cpp_err"; then 15595 ac_header_preproc=yes 15596else 15597 echo "$as_me: failed program was:" >&5 15598sed 's/^/| /' conftest.$ac_ext >&5 15599 15600 ac_header_preproc=no 15601fi 15602 15603rm -f conftest.err conftest.$ac_ext 15604{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15605echo "${ECHO_T}$ac_header_preproc" >&6; } 15606 15607# So? What about this header? 15608case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15609 yes:no: ) 15610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15611echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15613echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15614 ac_header_preproc=yes 15615 ;; 15616 no:yes:* ) 15617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15618echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15620echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15622echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15624echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15626echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15628echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15629 ( cat <<\_ASBOX 15630## ------------------------------------ ## 15631## Report this to http://llvm.org/bugs/ ## 15632## ------------------------------------ ## 15633_ASBOX 15634 ) | sed "s/^/$as_me: WARNING: /" >&2 15635 ;; 15636esac 15637{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15640 echo $ECHO_N "(cached) $ECHO_C" >&6 15641else 15642 eval "$as_ac_Header=\$ac_header_preproc" 15643fi 15644ac_res=`eval echo '${'$as_ac_Header'}'` 15645 { echo "$as_me:$LINENO: result: $ac_res" >&5 15646echo "${ECHO_T}$ac_res" >&6; } 15647 15648fi 15649if test `eval echo '${'$as_ac_Header'}'` = yes; then 15650 cat >>confdefs.h <<_ACEOF 15651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15652_ACEOF 15653 15654fi 15655 15656done 15657 15658 15659 15660for ac_header in utime.h windows.h 15661do 15662as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15663if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15664 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15667 echo $ECHO_N "(cached) $ECHO_C" >&6 15668fi 15669ac_res=`eval echo '${'$as_ac_Header'}'` 15670 { echo "$as_me:$LINENO: result: $ac_res" >&5 15671echo "${ECHO_T}$ac_res" >&6; } 15672else 15673 # Is the header compilable? 15674{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15676cat >conftest.$ac_ext <<_ACEOF 15677/* confdefs.h. */ 15678_ACEOF 15679cat confdefs.h >>conftest.$ac_ext 15680cat >>conftest.$ac_ext <<_ACEOF 15681/* end confdefs.h. */ 15682$ac_includes_default 15683#include <$ac_header> 15684_ACEOF 15685rm -f conftest.$ac_objext 15686if { (ac_try="$ac_compile" 15687case "(($ac_try" in 15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15689 *) ac_try_echo=$ac_try;; 15690esac 15691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15692 (eval "$ac_compile") 2>conftest.er1 15693 ac_status=$? 15694 grep -v '^ *+' conftest.er1 >conftest.err 15695 rm -f conftest.er1 15696 cat conftest.err >&5 15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15698 (exit $ac_status); } && 15699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15700 { (case "(($ac_try" in 15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15702 *) ac_try_echo=$ac_try;; 15703esac 15704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15705 (eval "$ac_try") 2>&5 15706 ac_status=$? 15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15708 (exit $ac_status); }; } && 15709 { ac_try='test -s conftest.$ac_objext' 15710 { (case "(($ac_try" in 15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15712 *) ac_try_echo=$ac_try;; 15713esac 15714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15715 (eval "$ac_try") 2>&5 15716 ac_status=$? 15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15718 (exit $ac_status); }; }; then 15719 ac_header_compiler=yes 15720else 15721 echo "$as_me: failed program was:" >&5 15722sed 's/^/| /' conftest.$ac_ext >&5 15723 15724 ac_header_compiler=no 15725fi 15726 15727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15728{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15729echo "${ECHO_T}$ac_header_compiler" >&6; } 15730 15731# Is the header present? 15732{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15733echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15734cat >conftest.$ac_ext <<_ACEOF 15735/* confdefs.h. */ 15736_ACEOF 15737cat confdefs.h >>conftest.$ac_ext 15738cat >>conftest.$ac_ext <<_ACEOF 15739/* end confdefs.h. */ 15740#include <$ac_header> 15741_ACEOF 15742if { (ac_try="$ac_cpp conftest.$ac_ext" 15743case "(($ac_try" in 15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15745 *) ac_try_echo=$ac_try;; 15746esac 15747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15749 ac_status=$? 15750 grep -v '^ *+' conftest.er1 >conftest.err 15751 rm -f conftest.er1 15752 cat conftest.err >&5 15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15754 (exit $ac_status); } >/dev/null; then 15755 if test -s conftest.err; then 15756 ac_cpp_err=$ac_c_preproc_warn_flag 15757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15758 else 15759 ac_cpp_err= 15760 fi 15761else 15762 ac_cpp_err=yes 15763fi 15764if test -z "$ac_cpp_err"; then 15765 ac_header_preproc=yes 15766else 15767 echo "$as_me: failed program was:" >&5 15768sed 's/^/| /' conftest.$ac_ext >&5 15769 15770 ac_header_preproc=no 15771fi 15772 15773rm -f conftest.err conftest.$ac_ext 15774{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15775echo "${ECHO_T}$ac_header_preproc" >&6; } 15776 15777# So? What about this header? 15778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15779 yes:no: ) 15780 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15784 ac_header_preproc=yes 15785 ;; 15786 no:yes:* ) 15787 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15789 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15790echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15791 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15793 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15794echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15797 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15799 ( cat <<\_ASBOX 15800## ------------------------------------ ## 15801## Report this to http://llvm.org/bugs/ ## 15802## ------------------------------------ ## 15803_ASBOX 15804 ) | sed "s/^/$as_me: WARNING: /" >&2 15805 ;; 15806esac 15807{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15810 echo $ECHO_N "(cached) $ECHO_C" >&6 15811else 15812 eval "$as_ac_Header=\$ac_header_preproc" 15813fi 15814ac_res=`eval echo '${'$as_ac_Header'}'` 15815 { echo "$as_me:$LINENO: result: $ac_res" >&5 15816echo "${ECHO_T}$ac_res" >&6; } 15817 15818fi 15819if test `eval echo '${'$as_ac_Header'}'` = yes; then 15820 cat >>confdefs.h <<_ACEOF 15821#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15822_ACEOF 15823 15824fi 15825 15826done 15827 15828 15829 15830 15831 15832 15833for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 15834do 15835as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15837 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15838echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15840 echo $ECHO_N "(cached) $ECHO_C" >&6 15841fi 15842ac_res=`eval echo '${'$as_ac_Header'}'` 15843 { echo "$as_me:$LINENO: result: $ac_res" >&5 15844echo "${ECHO_T}$ac_res" >&6; } 15845else 15846 # Is the header compilable? 15847{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15849cat >conftest.$ac_ext <<_ACEOF 15850/* confdefs.h. */ 15851_ACEOF 15852cat confdefs.h >>conftest.$ac_ext 15853cat >>conftest.$ac_ext <<_ACEOF 15854/* end confdefs.h. */ 15855$ac_includes_default 15856#include <$ac_header> 15857_ACEOF 15858rm -f conftest.$ac_objext 15859if { (ac_try="$ac_compile" 15860case "(($ac_try" in 15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15862 *) ac_try_echo=$ac_try;; 15863esac 15864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15865 (eval "$ac_compile") 2>conftest.er1 15866 ac_status=$? 15867 grep -v '^ *+' conftest.er1 >conftest.err 15868 rm -f conftest.er1 15869 cat conftest.err >&5 15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15871 (exit $ac_status); } && 15872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15873 { (case "(($ac_try" in 15874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15875 *) ac_try_echo=$ac_try;; 15876esac 15877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15878 (eval "$ac_try") 2>&5 15879 ac_status=$? 15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15881 (exit $ac_status); }; } && 15882 { ac_try='test -s conftest.$ac_objext' 15883 { (case "(($ac_try" in 15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15885 *) ac_try_echo=$ac_try;; 15886esac 15887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15888 (eval "$ac_try") 2>&5 15889 ac_status=$? 15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15891 (exit $ac_status); }; }; then 15892 ac_header_compiler=yes 15893else 15894 echo "$as_me: failed program was:" >&5 15895sed 's/^/| /' conftest.$ac_ext >&5 15896 15897 ac_header_compiler=no 15898fi 15899 15900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15901{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15902echo "${ECHO_T}$ac_header_compiler" >&6; } 15903 15904# Is the header present? 15905{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15906echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15907cat >conftest.$ac_ext <<_ACEOF 15908/* confdefs.h. */ 15909_ACEOF 15910cat confdefs.h >>conftest.$ac_ext 15911cat >>conftest.$ac_ext <<_ACEOF 15912/* end confdefs.h. */ 15913#include <$ac_header> 15914_ACEOF 15915if { (ac_try="$ac_cpp conftest.$ac_ext" 15916case "(($ac_try" in 15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15918 *) ac_try_echo=$ac_try;; 15919esac 15920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15922 ac_status=$? 15923 grep -v '^ *+' conftest.er1 >conftest.err 15924 rm -f conftest.er1 15925 cat conftest.err >&5 15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15927 (exit $ac_status); } >/dev/null; then 15928 if test -s conftest.err; then 15929 ac_cpp_err=$ac_c_preproc_warn_flag 15930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15931 else 15932 ac_cpp_err= 15933 fi 15934else 15935 ac_cpp_err=yes 15936fi 15937if test -z "$ac_cpp_err"; then 15938 ac_header_preproc=yes 15939else 15940 echo "$as_me: failed program was:" >&5 15941sed 's/^/| /' conftest.$ac_ext >&5 15942 15943 ac_header_preproc=no 15944fi 15945 15946rm -f conftest.err conftest.$ac_ext 15947{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15948echo "${ECHO_T}$ac_header_preproc" >&6; } 15949 15950# So? What about this header? 15951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15952 yes:no: ) 15953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15957 ac_header_preproc=yes 15958 ;; 15959 no:yes:* ) 15960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15963echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15967echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15972 ( cat <<\_ASBOX 15973## ------------------------------------ ## 15974## Report this to http://llvm.org/bugs/ ## 15975## ------------------------------------ ## 15976_ASBOX 15977 ) | sed "s/^/$as_me: WARNING: /" >&2 15978 ;; 15979esac 15980{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15983 echo $ECHO_N "(cached) $ECHO_C" >&6 15984else 15985 eval "$as_ac_Header=\$ac_header_preproc" 15986fi 15987ac_res=`eval echo '${'$as_ac_Header'}'` 15988 { echo "$as_me:$LINENO: result: $ac_res" >&5 15989echo "${ECHO_T}$ac_res" >&6; } 15990 15991fi 15992if test `eval echo '${'$as_ac_Header'}'` = yes; then 15993 cat >>confdefs.h <<_ACEOF 15994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15995_ACEOF 15996 15997fi 15998 15999done 16000 16001 16002 16003 16004 16005for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 16006do 16007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16009 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16012 echo $ECHO_N "(cached) $ECHO_C" >&6 16013fi 16014ac_res=`eval echo '${'$as_ac_Header'}'` 16015 { echo "$as_me:$LINENO: result: $ac_res" >&5 16016echo "${ECHO_T}$ac_res" >&6; } 16017else 16018 # Is the header compilable? 16019{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16020echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16021cat >conftest.$ac_ext <<_ACEOF 16022/* confdefs.h. */ 16023_ACEOF 16024cat confdefs.h >>conftest.$ac_ext 16025cat >>conftest.$ac_ext <<_ACEOF 16026/* end confdefs.h. */ 16027$ac_includes_default 16028#include <$ac_header> 16029_ACEOF 16030rm -f conftest.$ac_objext 16031if { (ac_try="$ac_compile" 16032case "(($ac_try" in 16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16034 *) ac_try_echo=$ac_try;; 16035esac 16036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16037 (eval "$ac_compile") 2>conftest.er1 16038 ac_status=$? 16039 grep -v '^ *+' conftest.er1 >conftest.err 16040 rm -f conftest.er1 16041 cat conftest.err >&5 16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16043 (exit $ac_status); } && 16044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16045 { (case "(($ac_try" in 16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16047 *) ac_try_echo=$ac_try;; 16048esac 16049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16050 (eval "$ac_try") 2>&5 16051 ac_status=$? 16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16053 (exit $ac_status); }; } && 16054 { ac_try='test -s conftest.$ac_objext' 16055 { (case "(($ac_try" in 16056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16057 *) ac_try_echo=$ac_try;; 16058esac 16059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16060 (eval "$ac_try") 2>&5 16061 ac_status=$? 16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16063 (exit $ac_status); }; }; then 16064 ac_header_compiler=yes 16065else 16066 echo "$as_me: failed program was:" >&5 16067sed 's/^/| /' conftest.$ac_ext >&5 16068 16069 ac_header_compiler=no 16070fi 16071 16072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16073{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16074echo "${ECHO_T}$ac_header_compiler" >&6; } 16075 16076# Is the header present? 16077{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16078echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16079cat >conftest.$ac_ext <<_ACEOF 16080/* confdefs.h. */ 16081_ACEOF 16082cat confdefs.h >>conftest.$ac_ext 16083cat >>conftest.$ac_ext <<_ACEOF 16084/* end confdefs.h. */ 16085#include <$ac_header> 16086_ACEOF 16087if { (ac_try="$ac_cpp conftest.$ac_ext" 16088case "(($ac_try" in 16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16090 *) ac_try_echo=$ac_try;; 16091esac 16092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16094 ac_status=$? 16095 grep -v '^ *+' conftest.er1 >conftest.err 16096 rm -f conftest.er1 16097 cat conftest.err >&5 16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16099 (exit $ac_status); } >/dev/null; then 16100 if test -s conftest.err; then 16101 ac_cpp_err=$ac_c_preproc_warn_flag 16102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16103 else 16104 ac_cpp_err= 16105 fi 16106else 16107 ac_cpp_err=yes 16108fi 16109if test -z "$ac_cpp_err"; then 16110 ac_header_preproc=yes 16111else 16112 echo "$as_me: failed program was:" >&5 16113sed 's/^/| /' conftest.$ac_ext >&5 16114 16115 ac_header_preproc=no 16116fi 16117 16118rm -f conftest.err conftest.$ac_ext 16119{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16120echo "${ECHO_T}$ac_header_preproc" >&6; } 16121 16122# So? What about this header? 16123case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16124 yes:no: ) 16125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16126echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16128echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16129 ac_header_preproc=yes 16130 ;; 16131 no:yes:* ) 16132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16133echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16135echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16137echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16139echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16141echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16143echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16144 ( cat <<\_ASBOX 16145## ------------------------------------ ## 16146## Report this to http://llvm.org/bugs/ ## 16147## ------------------------------------ ## 16148_ASBOX 16149 ) | sed "s/^/$as_me: WARNING: /" >&2 16150 ;; 16151esac 16152{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16153echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16154if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16155 echo $ECHO_N "(cached) $ECHO_C" >&6 16156else 16157 eval "$as_ac_Header=\$ac_header_preproc" 16158fi 16159ac_res=`eval echo '${'$as_ac_Header'}'` 16160 { echo "$as_me:$LINENO: result: $ac_res" >&5 16161echo "${ECHO_T}$ac_res" >&6; } 16162 16163fi 16164if test `eval echo '${'$as_ac_Header'}'` = yes; then 16165 cat >>confdefs.h <<_ACEOF 16166#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16167_ACEOF 16168 16169fi 16170 16171done 16172 16173 16174for ac_header in valgrind/valgrind.h 16175do 16176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16178 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16181 echo $ECHO_N "(cached) $ECHO_C" >&6 16182fi 16183ac_res=`eval echo '${'$as_ac_Header'}'` 16184 { echo "$as_me:$LINENO: result: $ac_res" >&5 16185echo "${ECHO_T}$ac_res" >&6; } 16186else 16187 # Is the header compilable? 16188{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16190cat >conftest.$ac_ext <<_ACEOF 16191/* confdefs.h. */ 16192_ACEOF 16193cat confdefs.h >>conftest.$ac_ext 16194cat >>conftest.$ac_ext <<_ACEOF 16195/* end confdefs.h. */ 16196$ac_includes_default 16197#include <$ac_header> 16198_ACEOF 16199rm -f conftest.$ac_objext 16200if { (ac_try="$ac_compile" 16201case "(($ac_try" in 16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16203 *) ac_try_echo=$ac_try;; 16204esac 16205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16206 (eval "$ac_compile") 2>conftest.er1 16207 ac_status=$? 16208 grep -v '^ *+' conftest.er1 >conftest.err 16209 rm -f conftest.er1 16210 cat conftest.err >&5 16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16212 (exit $ac_status); } && 16213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16214 { (case "(($ac_try" in 16215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16216 *) ac_try_echo=$ac_try;; 16217esac 16218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16219 (eval "$ac_try") 2>&5 16220 ac_status=$? 16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16222 (exit $ac_status); }; } && 16223 { ac_try='test -s conftest.$ac_objext' 16224 { (case "(($ac_try" in 16225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16226 *) ac_try_echo=$ac_try;; 16227esac 16228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16229 (eval "$ac_try") 2>&5 16230 ac_status=$? 16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16232 (exit $ac_status); }; }; then 16233 ac_header_compiler=yes 16234else 16235 echo "$as_me: failed program was:" >&5 16236sed 's/^/| /' conftest.$ac_ext >&5 16237 16238 ac_header_compiler=no 16239fi 16240 16241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16242{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16243echo "${ECHO_T}$ac_header_compiler" >&6; } 16244 16245# Is the header present? 16246{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16248cat >conftest.$ac_ext <<_ACEOF 16249/* confdefs.h. */ 16250_ACEOF 16251cat confdefs.h >>conftest.$ac_ext 16252cat >>conftest.$ac_ext <<_ACEOF 16253/* end confdefs.h. */ 16254#include <$ac_header> 16255_ACEOF 16256if { (ac_try="$ac_cpp conftest.$ac_ext" 16257case "(($ac_try" in 16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16259 *) ac_try_echo=$ac_try;; 16260esac 16261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16263 ac_status=$? 16264 grep -v '^ *+' conftest.er1 >conftest.err 16265 rm -f conftest.er1 16266 cat conftest.err >&5 16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16268 (exit $ac_status); } >/dev/null; then 16269 if test -s conftest.err; then 16270 ac_cpp_err=$ac_c_preproc_warn_flag 16271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16272 else 16273 ac_cpp_err= 16274 fi 16275else 16276 ac_cpp_err=yes 16277fi 16278if test -z "$ac_cpp_err"; then 16279 ac_header_preproc=yes 16280else 16281 echo "$as_me: failed program was:" >&5 16282sed 's/^/| /' conftest.$ac_ext >&5 16283 16284 ac_header_preproc=no 16285fi 16286 16287rm -f conftest.err conftest.$ac_ext 16288{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16289echo "${ECHO_T}$ac_header_preproc" >&6; } 16290 16291# So? What about this header? 16292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16293 yes:no: ) 16294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16295echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16297echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16298 ac_header_preproc=yes 16299 ;; 16300 no:yes:* ) 16301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16302echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16304echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16306echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16308echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16310echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16312echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16313 ( cat <<\_ASBOX 16314## ------------------------------------ ## 16315## Report this to http://llvm.org/bugs/ ## 16316## ------------------------------------ ## 16317_ASBOX 16318 ) | sed "s/^/$as_me: WARNING: /" >&2 16319 ;; 16320esac 16321{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16324 echo $ECHO_N "(cached) $ECHO_C" >&6 16325else 16326 eval "$as_ac_Header=\$ac_header_preproc" 16327fi 16328ac_res=`eval echo '${'$as_ac_Header'}'` 16329 { echo "$as_me:$LINENO: result: $ac_res" >&5 16330echo "${ECHO_T}$ac_res" >&6; } 16331 16332fi 16333if test `eval echo '${'$as_ac_Header'}'` = yes; then 16334 cat >>confdefs.h <<_ACEOF 16335#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16336_ACEOF 16337 16338fi 16339 16340done 16341 16342 16343for ac_header in fenv.h 16344do 16345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16347 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16350 echo $ECHO_N "(cached) $ECHO_C" >&6 16351fi 16352ac_res=`eval echo '${'$as_ac_Header'}'` 16353 { echo "$as_me:$LINENO: result: $ac_res" >&5 16354echo "${ECHO_T}$ac_res" >&6; } 16355else 16356 # Is the header compilable? 16357{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16358echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16359cat >conftest.$ac_ext <<_ACEOF 16360/* confdefs.h. */ 16361_ACEOF 16362cat confdefs.h >>conftest.$ac_ext 16363cat >>conftest.$ac_ext <<_ACEOF 16364/* end confdefs.h. */ 16365$ac_includes_default 16366#include <$ac_header> 16367_ACEOF 16368rm -f conftest.$ac_objext 16369if { (ac_try="$ac_compile" 16370case "(($ac_try" in 16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16372 *) ac_try_echo=$ac_try;; 16373esac 16374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16375 (eval "$ac_compile") 2>conftest.er1 16376 ac_status=$? 16377 grep -v '^ *+' conftest.er1 >conftest.err 16378 rm -f conftest.er1 16379 cat conftest.err >&5 16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16381 (exit $ac_status); } && 16382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16383 { (case "(($ac_try" in 16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16385 *) ac_try_echo=$ac_try;; 16386esac 16387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16388 (eval "$ac_try") 2>&5 16389 ac_status=$? 16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16391 (exit $ac_status); }; } && 16392 { ac_try='test -s conftest.$ac_objext' 16393 { (case "(($ac_try" in 16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16395 *) ac_try_echo=$ac_try;; 16396esac 16397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16398 (eval "$ac_try") 2>&5 16399 ac_status=$? 16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16401 (exit $ac_status); }; }; then 16402 ac_header_compiler=yes 16403else 16404 echo "$as_me: failed program was:" >&5 16405sed 's/^/| /' conftest.$ac_ext >&5 16406 16407 ac_header_compiler=no 16408fi 16409 16410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16412echo "${ECHO_T}$ac_header_compiler" >&6; } 16413 16414# Is the header present? 16415{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16417cat >conftest.$ac_ext <<_ACEOF 16418/* confdefs.h. */ 16419_ACEOF 16420cat confdefs.h >>conftest.$ac_ext 16421cat >>conftest.$ac_ext <<_ACEOF 16422/* end confdefs.h. */ 16423#include <$ac_header> 16424_ACEOF 16425if { (ac_try="$ac_cpp conftest.$ac_ext" 16426case "(($ac_try" in 16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16428 *) ac_try_echo=$ac_try;; 16429esac 16430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16432 ac_status=$? 16433 grep -v '^ *+' conftest.er1 >conftest.err 16434 rm -f conftest.er1 16435 cat conftest.err >&5 16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16437 (exit $ac_status); } >/dev/null; then 16438 if test -s conftest.err; then 16439 ac_cpp_err=$ac_c_preproc_warn_flag 16440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16441 else 16442 ac_cpp_err= 16443 fi 16444else 16445 ac_cpp_err=yes 16446fi 16447if test -z "$ac_cpp_err"; then 16448 ac_header_preproc=yes 16449else 16450 echo "$as_me: failed program was:" >&5 16451sed 's/^/| /' conftest.$ac_ext >&5 16452 16453 ac_header_preproc=no 16454fi 16455 16456rm -f conftest.err conftest.$ac_ext 16457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16458echo "${ECHO_T}$ac_header_preproc" >&6; } 16459 16460# So? What about this header? 16461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16462 yes:no: ) 16463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16467 ac_header_preproc=yes 16468 ;; 16469 no:yes:* ) 16470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16473echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16477echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16482 ( cat <<\_ASBOX 16483## ------------------------------------ ## 16484## Report this to http://llvm.org/bugs/ ## 16485## ------------------------------------ ## 16486_ASBOX 16487 ) | sed "s/^/$as_me: WARNING: /" >&2 16488 ;; 16489esac 16490{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16493 echo $ECHO_N "(cached) $ECHO_C" >&6 16494else 16495 eval "$as_ac_Header=\$ac_header_preproc" 16496fi 16497ac_res=`eval echo '${'$as_ac_Header'}'` 16498 { echo "$as_me:$LINENO: result: $ac_res" >&5 16499echo "${ECHO_T}$ac_res" >&6; } 16500 16501fi 16502if test `eval echo '${'$as_ac_Header'}'` = yes; then 16503 cat >>confdefs.h <<_ACEOF 16504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16505_ACEOF 16506 16507fi 16508 16509done 16510 16511{ echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5 16512echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; } 16513if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then 16514 echo $ECHO_N "(cached) $ECHO_C" >&6 16515else 16516 cat >conftest.$ac_ext <<_ACEOF 16517/* confdefs.h. */ 16518_ACEOF 16519cat confdefs.h >>conftest.$ac_ext 16520cat >>conftest.$ac_ext <<_ACEOF 16521/* end confdefs.h. */ 16522#include <fenv.h> 16523 16524int 16525main () 16526{ 16527#ifndef FE_ALL_EXCEPT 16528 char *p = (char *) FE_ALL_EXCEPT; 16529 return !p; 16530#endif 16531 16532 ; 16533 return 0; 16534} 16535_ACEOF 16536rm -f conftest.$ac_objext 16537if { (ac_try="$ac_compile" 16538case "(($ac_try" in 16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16540 *) ac_try_echo=$ac_try;; 16541esac 16542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16543 (eval "$ac_compile") 2>conftest.er1 16544 ac_status=$? 16545 grep -v '^ *+' conftest.er1 >conftest.err 16546 rm -f conftest.er1 16547 cat conftest.err >&5 16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16549 (exit $ac_status); } && 16550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16551 { (case "(($ac_try" in 16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16553 *) ac_try_echo=$ac_try;; 16554esac 16555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16556 (eval "$ac_try") 2>&5 16557 ac_status=$? 16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16559 (exit $ac_status); }; } && 16560 { ac_try='test -s conftest.$ac_objext' 16561 { (case "(($ac_try" in 16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16563 *) ac_try_echo=$ac_try;; 16564esac 16565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16566 (eval "$ac_try") 2>&5 16567 ac_status=$? 16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16569 (exit $ac_status); }; }; then 16570 ac_cv_have_decl_FE_ALL_EXCEPT=yes 16571else 16572 echo "$as_me: failed program was:" >&5 16573sed 's/^/| /' conftest.$ac_ext >&5 16574 16575 ac_cv_have_decl_FE_ALL_EXCEPT=no 16576fi 16577 16578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16579fi 16580{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5 16581echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; } 16582if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then 16583 16584cat >>confdefs.h <<_ACEOF 16585#define HAVE_DECL_FE_ALL_EXCEPT 1 16586_ACEOF 16587 16588 16589else 16590 cat >>confdefs.h <<_ACEOF 16591#define HAVE_DECL_FE_ALL_EXCEPT 0 16592_ACEOF 16593 16594 16595fi 16596{ echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5 16597echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; } 16598if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then 16599 echo $ECHO_N "(cached) $ECHO_C" >&6 16600else 16601 cat >conftest.$ac_ext <<_ACEOF 16602/* confdefs.h. */ 16603_ACEOF 16604cat confdefs.h >>conftest.$ac_ext 16605cat >>conftest.$ac_ext <<_ACEOF 16606/* end confdefs.h. */ 16607#include <fenv.h> 16608 16609int 16610main () 16611{ 16612#ifndef FE_INEXACT 16613 char *p = (char *) FE_INEXACT; 16614 return !p; 16615#endif 16616 16617 ; 16618 return 0; 16619} 16620_ACEOF 16621rm -f conftest.$ac_objext 16622if { (ac_try="$ac_compile" 16623case "(($ac_try" in 16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16625 *) ac_try_echo=$ac_try;; 16626esac 16627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16628 (eval "$ac_compile") 2>conftest.er1 16629 ac_status=$? 16630 grep -v '^ *+' conftest.er1 >conftest.err 16631 rm -f conftest.er1 16632 cat conftest.err >&5 16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16634 (exit $ac_status); } && 16635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16636 { (case "(($ac_try" in 16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16638 *) ac_try_echo=$ac_try;; 16639esac 16640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16641 (eval "$ac_try") 2>&5 16642 ac_status=$? 16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16644 (exit $ac_status); }; } && 16645 { ac_try='test -s conftest.$ac_objext' 16646 { (case "(($ac_try" in 16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16648 *) ac_try_echo=$ac_try;; 16649esac 16650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16651 (eval "$ac_try") 2>&5 16652 ac_status=$? 16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16654 (exit $ac_status); }; }; then 16655 ac_cv_have_decl_FE_INEXACT=yes 16656else 16657 echo "$as_me: failed program was:" >&5 16658sed 's/^/| /' conftest.$ac_ext >&5 16659 16660 ac_cv_have_decl_FE_INEXACT=no 16661fi 16662 16663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16664fi 16665{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5 16666echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; } 16667if test $ac_cv_have_decl_FE_INEXACT = yes; then 16668 16669cat >>confdefs.h <<_ACEOF 16670#define HAVE_DECL_FE_INEXACT 1 16671_ACEOF 16672 16673 16674else 16675 cat >>confdefs.h <<_ACEOF 16676#define HAVE_DECL_FE_INEXACT 0 16677_ACEOF 16678 16679 16680fi 16681 16682 16683if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 16684 16685for ac_header in pthread.h 16686do 16687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16689 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16692 echo $ECHO_N "(cached) $ECHO_C" >&6 16693fi 16694ac_res=`eval echo '${'$as_ac_Header'}'` 16695 { echo "$as_me:$LINENO: result: $ac_res" >&5 16696echo "${ECHO_T}$ac_res" >&6; } 16697else 16698 # Is the header compilable? 16699{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16700echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16701cat >conftest.$ac_ext <<_ACEOF 16702/* confdefs.h. */ 16703_ACEOF 16704cat confdefs.h >>conftest.$ac_ext 16705cat >>conftest.$ac_ext <<_ACEOF 16706/* end confdefs.h. */ 16707$ac_includes_default 16708#include <$ac_header> 16709_ACEOF 16710rm -f conftest.$ac_objext 16711if { (ac_try="$ac_compile" 16712case "(($ac_try" in 16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16714 *) ac_try_echo=$ac_try;; 16715esac 16716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16717 (eval "$ac_compile") 2>conftest.er1 16718 ac_status=$? 16719 grep -v '^ *+' conftest.er1 >conftest.err 16720 rm -f conftest.er1 16721 cat conftest.err >&5 16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16723 (exit $ac_status); } && 16724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16725 { (case "(($ac_try" in 16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16727 *) ac_try_echo=$ac_try;; 16728esac 16729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16730 (eval "$ac_try") 2>&5 16731 ac_status=$? 16732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16733 (exit $ac_status); }; } && 16734 { ac_try='test -s conftest.$ac_objext' 16735 { (case "(($ac_try" in 16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16737 *) ac_try_echo=$ac_try;; 16738esac 16739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16740 (eval "$ac_try") 2>&5 16741 ac_status=$? 16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16743 (exit $ac_status); }; }; then 16744 ac_header_compiler=yes 16745else 16746 echo "$as_me: failed program was:" >&5 16747sed 's/^/| /' conftest.$ac_ext >&5 16748 16749 ac_header_compiler=no 16750fi 16751 16752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16753{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16754echo "${ECHO_T}$ac_header_compiler" >&6; } 16755 16756# Is the header present? 16757{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16758echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16759cat >conftest.$ac_ext <<_ACEOF 16760/* confdefs.h. */ 16761_ACEOF 16762cat confdefs.h >>conftest.$ac_ext 16763cat >>conftest.$ac_ext <<_ACEOF 16764/* end confdefs.h. */ 16765#include <$ac_header> 16766_ACEOF 16767if { (ac_try="$ac_cpp conftest.$ac_ext" 16768case "(($ac_try" in 16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16770 *) ac_try_echo=$ac_try;; 16771esac 16772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16774 ac_status=$? 16775 grep -v '^ *+' conftest.er1 >conftest.err 16776 rm -f conftest.er1 16777 cat conftest.err >&5 16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16779 (exit $ac_status); } >/dev/null; then 16780 if test -s conftest.err; then 16781 ac_cpp_err=$ac_c_preproc_warn_flag 16782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16783 else 16784 ac_cpp_err= 16785 fi 16786else 16787 ac_cpp_err=yes 16788fi 16789if test -z "$ac_cpp_err"; then 16790 ac_header_preproc=yes 16791else 16792 echo "$as_me: failed program was:" >&5 16793sed 's/^/| /' conftest.$ac_ext >&5 16794 16795 ac_header_preproc=no 16796fi 16797 16798rm -f conftest.err conftest.$ac_ext 16799{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16800echo "${ECHO_T}$ac_header_preproc" >&6; } 16801 16802# So? What about this header? 16803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16804 yes:no: ) 16805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16809 ac_header_preproc=yes 16810 ;; 16811 no:yes:* ) 16812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16819echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16824 ( cat <<\_ASBOX 16825## ------------------------------------ ## 16826## Report this to http://llvm.org/bugs/ ## 16827## ------------------------------------ ## 16828_ASBOX 16829 ) | sed "s/^/$as_me: WARNING: /" >&2 16830 ;; 16831esac 16832{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16835 echo $ECHO_N "(cached) $ECHO_C" >&6 16836else 16837 eval "$as_ac_Header=\$ac_header_preproc" 16838fi 16839ac_res=`eval echo '${'$as_ac_Header'}'` 16840 { echo "$as_me:$LINENO: result: $ac_res" >&5 16841echo "${ECHO_T}$ac_res" >&6; } 16842 16843fi 16844if test `eval echo '${'$as_ac_Header'}'` = yes; then 16845 cat >>confdefs.h <<_ACEOF 16846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16847_ACEOF 16848 HAVE_PTHREAD=1 16849 16850else 16851 HAVE_PTHREAD=0 16852 16853fi 16854 16855done 16856 16857else 16858 HAVE_PTHREAD=0 16859 16860fi 16861if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then 16862 16863for ac_header in zlib.h 16864do 16865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16867 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16870 echo $ECHO_N "(cached) $ECHO_C" >&6 16871fi 16872ac_res=`eval echo '${'$as_ac_Header'}'` 16873 { echo "$as_me:$LINENO: result: $ac_res" >&5 16874echo "${ECHO_T}$ac_res" >&6; } 16875else 16876 # Is the header compilable? 16877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16879cat >conftest.$ac_ext <<_ACEOF 16880/* confdefs.h. */ 16881_ACEOF 16882cat confdefs.h >>conftest.$ac_ext 16883cat >>conftest.$ac_ext <<_ACEOF 16884/* end confdefs.h. */ 16885$ac_includes_default 16886#include <$ac_header> 16887_ACEOF 16888rm -f conftest.$ac_objext 16889if { (ac_try="$ac_compile" 16890case "(($ac_try" in 16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16892 *) ac_try_echo=$ac_try;; 16893esac 16894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16895 (eval "$ac_compile") 2>conftest.er1 16896 ac_status=$? 16897 grep -v '^ *+' conftest.er1 >conftest.err 16898 rm -f conftest.er1 16899 cat conftest.err >&5 16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16901 (exit $ac_status); } && 16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16903 { (case "(($ac_try" in 16904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16905 *) ac_try_echo=$ac_try;; 16906esac 16907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16908 (eval "$ac_try") 2>&5 16909 ac_status=$? 16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16911 (exit $ac_status); }; } && 16912 { ac_try='test -s conftest.$ac_objext' 16913 { (case "(($ac_try" in 16914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16915 *) ac_try_echo=$ac_try;; 16916esac 16917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16918 (eval "$ac_try") 2>&5 16919 ac_status=$? 16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16921 (exit $ac_status); }; }; then 16922 ac_header_compiler=yes 16923else 16924 echo "$as_me: failed program was:" >&5 16925sed 's/^/| /' conftest.$ac_ext >&5 16926 16927 ac_header_compiler=no 16928fi 16929 16930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16931{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16932echo "${ECHO_T}$ac_header_compiler" >&6; } 16933 16934# Is the header present? 16935{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16937cat >conftest.$ac_ext <<_ACEOF 16938/* confdefs.h. */ 16939_ACEOF 16940cat confdefs.h >>conftest.$ac_ext 16941cat >>conftest.$ac_ext <<_ACEOF 16942/* end confdefs.h. */ 16943#include <$ac_header> 16944_ACEOF 16945if { (ac_try="$ac_cpp conftest.$ac_ext" 16946case "(($ac_try" in 16947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16948 *) ac_try_echo=$ac_try;; 16949esac 16950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16952 ac_status=$? 16953 grep -v '^ *+' conftest.er1 >conftest.err 16954 rm -f conftest.er1 16955 cat conftest.err >&5 16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16957 (exit $ac_status); } >/dev/null; then 16958 if test -s conftest.err; then 16959 ac_cpp_err=$ac_c_preproc_warn_flag 16960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16961 else 16962 ac_cpp_err= 16963 fi 16964else 16965 ac_cpp_err=yes 16966fi 16967if test -z "$ac_cpp_err"; then 16968 ac_header_preproc=yes 16969else 16970 echo "$as_me: failed program was:" >&5 16971sed 's/^/| /' conftest.$ac_ext >&5 16972 16973 ac_header_preproc=no 16974fi 16975 16976rm -f conftest.err conftest.$ac_ext 16977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16978echo "${ECHO_T}$ac_header_preproc" >&6; } 16979 16980# So? What about this header? 16981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16982 yes:no: ) 16983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16987 ac_header_preproc=yes 16988 ;; 16989 no:yes:* ) 16990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17002 ( cat <<\_ASBOX 17003## ------------------------------------ ## 17004## Report this to http://llvm.org/bugs/ ## 17005## ------------------------------------ ## 17006_ASBOX 17007 ) | sed "s/^/$as_me: WARNING: /" >&2 17008 ;; 17009esac 17010{ echo "$as_me:$LINENO: checking for $ac_header" >&5 17011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17013 echo $ECHO_N "(cached) $ECHO_C" >&6 17014else 17015 eval "$as_ac_Header=\$ac_header_preproc" 17016fi 17017ac_res=`eval echo '${'$as_ac_Header'}'` 17018 { echo "$as_me:$LINENO: result: $ac_res" >&5 17019echo "${ECHO_T}$ac_res" >&6; } 17020 17021fi 17022if test `eval echo '${'$as_ac_Header'}'` = yes; then 17023 cat >>confdefs.h <<_ACEOF 17024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17025_ACEOF 17026 HAVE_LIBZ=1 17027 17028else 17029 HAVE_LIBZ=0 17030 17031fi 17032 17033done 17034 17035else 17036 HAVE_LIBZ=0 17037 17038fi 17039 17040if test "$llvm_cv_enable_libffi" = "yes" ; then 17041 17042 17043for ac_header in ffi.h ffi/ffi.h 17044do 17045as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17046if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17047 { echo "$as_me:$LINENO: checking for $ac_header" >&5 17048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17050 echo $ECHO_N "(cached) $ECHO_C" >&6 17051fi 17052ac_res=`eval echo '${'$as_ac_Header'}'` 17053 { echo "$as_me:$LINENO: result: $ac_res" >&5 17054echo "${ECHO_T}$ac_res" >&6; } 17055else 17056 # Is the header compilable? 17057{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 17058echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 17059cat >conftest.$ac_ext <<_ACEOF 17060/* confdefs.h. */ 17061_ACEOF 17062cat confdefs.h >>conftest.$ac_ext 17063cat >>conftest.$ac_ext <<_ACEOF 17064/* end confdefs.h. */ 17065$ac_includes_default 17066#include <$ac_header> 17067_ACEOF 17068rm -f conftest.$ac_objext 17069if { (ac_try="$ac_compile" 17070case "(($ac_try" in 17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17072 *) ac_try_echo=$ac_try;; 17073esac 17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17075 (eval "$ac_compile") 2>conftest.er1 17076 ac_status=$? 17077 grep -v '^ *+' conftest.er1 >conftest.err 17078 rm -f conftest.er1 17079 cat conftest.err >&5 17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17081 (exit $ac_status); } && 17082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17083 { (case "(($ac_try" in 17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17085 *) ac_try_echo=$ac_try;; 17086esac 17087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17088 (eval "$ac_try") 2>&5 17089 ac_status=$? 17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17091 (exit $ac_status); }; } && 17092 { ac_try='test -s conftest.$ac_objext' 17093 { (case "(($ac_try" in 17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17095 *) ac_try_echo=$ac_try;; 17096esac 17097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17098 (eval "$ac_try") 2>&5 17099 ac_status=$? 17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17101 (exit $ac_status); }; }; then 17102 ac_header_compiler=yes 17103else 17104 echo "$as_me: failed program was:" >&5 17105sed 's/^/| /' conftest.$ac_ext >&5 17106 17107 ac_header_compiler=no 17108fi 17109 17110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17111{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17112echo "${ECHO_T}$ac_header_compiler" >&6; } 17113 17114# Is the header present? 17115{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 17116echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 17117cat >conftest.$ac_ext <<_ACEOF 17118/* confdefs.h. */ 17119_ACEOF 17120cat confdefs.h >>conftest.$ac_ext 17121cat >>conftest.$ac_ext <<_ACEOF 17122/* end confdefs.h. */ 17123#include <$ac_header> 17124_ACEOF 17125if { (ac_try="$ac_cpp conftest.$ac_ext" 17126case "(($ac_try" in 17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17128 *) ac_try_echo=$ac_try;; 17129esac 17130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17132 ac_status=$? 17133 grep -v '^ *+' conftest.er1 >conftest.err 17134 rm -f conftest.er1 17135 cat conftest.err >&5 17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17137 (exit $ac_status); } >/dev/null; then 17138 if test -s conftest.err; then 17139 ac_cpp_err=$ac_c_preproc_warn_flag 17140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17141 else 17142 ac_cpp_err= 17143 fi 17144else 17145 ac_cpp_err=yes 17146fi 17147if test -z "$ac_cpp_err"; then 17148 ac_header_preproc=yes 17149else 17150 echo "$as_me: failed program was:" >&5 17151sed 's/^/| /' conftest.$ac_ext >&5 17152 17153 ac_header_preproc=no 17154fi 17155 17156rm -f conftest.err conftest.$ac_ext 17157{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17158echo "${ECHO_T}$ac_header_preproc" >&6; } 17159 17160# So? What about this header? 17161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17162 yes:no: ) 17163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17167 ac_header_preproc=yes 17168 ;; 17169 no:yes:* ) 17170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17182 ( cat <<\_ASBOX 17183## ------------------------------------ ## 17184## Report this to http://llvm.org/bugs/ ## 17185## ------------------------------------ ## 17186_ASBOX 17187 ) | sed "s/^/$as_me: WARNING: /" >&2 17188 ;; 17189esac 17190{ echo "$as_me:$LINENO: checking for $ac_header" >&5 17191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17193 echo $ECHO_N "(cached) $ECHO_C" >&6 17194else 17195 eval "$as_ac_Header=\$ac_header_preproc" 17196fi 17197ac_res=`eval echo '${'$as_ac_Header'}'` 17198 { echo "$as_me:$LINENO: result: $ac_res" >&5 17199echo "${ECHO_T}$ac_res" >&6; } 17200 17201fi 17202if test `eval echo '${'$as_ac_Header'}'` = yes; then 17203 cat >>confdefs.h <<_ACEOF 17204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17205_ACEOF 17206 17207fi 17208 17209done 17210 17211fi 17212 17213 17214for ac_header in CrashReporterClient.h 17215do 17216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17218 { echo "$as_me:$LINENO: checking for $ac_header" >&5 17219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17221 echo $ECHO_N "(cached) $ECHO_C" >&6 17222fi 17223ac_res=`eval echo '${'$as_ac_Header'}'` 17224 { echo "$as_me:$LINENO: result: $ac_res" >&5 17225echo "${ECHO_T}$ac_res" >&6; } 17226else 17227 # Is the header compilable? 17228{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 17229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 17230cat >conftest.$ac_ext <<_ACEOF 17231/* confdefs.h. */ 17232_ACEOF 17233cat confdefs.h >>conftest.$ac_ext 17234cat >>conftest.$ac_ext <<_ACEOF 17235/* end confdefs.h. */ 17236$ac_includes_default 17237#include <$ac_header> 17238_ACEOF 17239rm -f conftest.$ac_objext 17240if { (ac_try="$ac_compile" 17241case "(($ac_try" in 17242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17243 *) ac_try_echo=$ac_try;; 17244esac 17245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17246 (eval "$ac_compile") 2>conftest.er1 17247 ac_status=$? 17248 grep -v '^ *+' conftest.er1 >conftest.err 17249 rm -f conftest.er1 17250 cat conftest.err >&5 17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17252 (exit $ac_status); } && 17253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17254 { (case "(($ac_try" in 17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17256 *) ac_try_echo=$ac_try;; 17257esac 17258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17259 (eval "$ac_try") 2>&5 17260 ac_status=$? 17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17262 (exit $ac_status); }; } && 17263 { ac_try='test -s conftest.$ac_objext' 17264 { (case "(($ac_try" in 17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17266 *) ac_try_echo=$ac_try;; 17267esac 17268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17269 (eval "$ac_try") 2>&5 17270 ac_status=$? 17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17272 (exit $ac_status); }; }; then 17273 ac_header_compiler=yes 17274else 17275 echo "$as_me: failed program was:" >&5 17276sed 's/^/| /' conftest.$ac_ext >&5 17277 17278 ac_header_compiler=no 17279fi 17280 17281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17282{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17283echo "${ECHO_T}$ac_header_compiler" >&6; } 17284 17285# Is the header present? 17286{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 17287echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 17288cat >conftest.$ac_ext <<_ACEOF 17289/* confdefs.h. */ 17290_ACEOF 17291cat confdefs.h >>conftest.$ac_ext 17292cat >>conftest.$ac_ext <<_ACEOF 17293/* end confdefs.h. */ 17294#include <$ac_header> 17295_ACEOF 17296if { (ac_try="$ac_cpp conftest.$ac_ext" 17297case "(($ac_try" in 17298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17299 *) ac_try_echo=$ac_try;; 17300esac 17301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17303 ac_status=$? 17304 grep -v '^ *+' conftest.er1 >conftest.err 17305 rm -f conftest.er1 17306 cat conftest.err >&5 17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17308 (exit $ac_status); } >/dev/null; then 17309 if test -s conftest.err; then 17310 ac_cpp_err=$ac_c_preproc_warn_flag 17311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17312 else 17313 ac_cpp_err= 17314 fi 17315else 17316 ac_cpp_err=yes 17317fi 17318if test -z "$ac_cpp_err"; then 17319 ac_header_preproc=yes 17320else 17321 echo "$as_me: failed program was:" >&5 17322sed 's/^/| /' conftest.$ac_ext >&5 17323 17324 ac_header_preproc=no 17325fi 17326 17327rm -f conftest.err conftest.$ac_ext 17328{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17329echo "${ECHO_T}$ac_header_preproc" >&6; } 17330 17331# So? What about this header? 17332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17333 yes:no: ) 17334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17337echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17338 ac_header_preproc=yes 17339 ;; 17340 no:yes:* ) 17341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17342echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17344echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17346echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17348echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17352echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17353 ( cat <<\_ASBOX 17354## ------------------------------------ ## 17355## Report this to http://llvm.org/bugs/ ## 17356## ------------------------------------ ## 17357_ASBOX 17358 ) | sed "s/^/$as_me: WARNING: /" >&2 17359 ;; 17360esac 17361{ echo "$as_me:$LINENO: checking for $ac_header" >&5 17362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17364 echo $ECHO_N "(cached) $ECHO_C" >&6 17365else 17366 eval "$as_ac_Header=\$ac_header_preproc" 17367fi 17368ac_res=`eval echo '${'$as_ac_Header'}'` 17369 { echo "$as_me:$LINENO: result: $ac_res" >&5 17370echo "${ECHO_T}$ac_res" >&6; } 17371 17372fi 17373if test `eval echo '${'$as_ac_Header'}'` = yes; then 17374 cat >>confdefs.h <<_ACEOF 17375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17376_ACEOF 17377 17378fi 17379 17380done 17381 17382 17383{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 17384echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 17385cat >conftest.$ac_ext <<_ACEOF 17386 17387 /* confdefs.h. */ 17388_ACEOF 17389cat confdefs.h >>conftest.$ac_ext 17390cat >>conftest.$ac_ext <<_ACEOF 17391/* end confdefs.h. */ 17392 17393 extern const char *__crashreporter_info__; 17394 int main() { 17395 __crashreporter_info__ = "test"; 17396 return 0; 17397 } 17398 17399 17400_ACEOF 17401rm -f conftest.$ac_objext conftest$ac_exeext 17402if { (ac_try="$ac_link" 17403case "(($ac_try" in 17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17405 *) ac_try_echo=$ac_try;; 17406esac 17407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17408 (eval "$ac_link") 2>conftest.er1 17409 ac_status=$? 17410 grep -v '^ *+' conftest.er1 >conftest.err 17411 rm -f conftest.er1 17412 cat conftest.err >&5 17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17414 (exit $ac_status); } && 17415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17416 { (case "(($ac_try" in 17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17418 *) ac_try_echo=$ac_try;; 17419esac 17420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17421 (eval "$ac_try") 2>&5 17422 ac_status=$? 17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17424 (exit $ac_status); }; } && 17425 { ac_try='test -s conftest$ac_exeext' 17426 { (case "(($ac_try" in 17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17428 *) ac_try_echo=$ac_try;; 17429esac 17430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17431 (eval "$ac_try") 2>&5 17432 ac_status=$? 17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17434 (exit $ac_status); }; }; then 17435 17436 { echo "$as_me:$LINENO: result: yes" >&5 17437echo "${ECHO_T}yes" >&6; } 17438 17439cat >>confdefs.h <<\_ACEOF 17440#define HAVE_CRASHREPORTER_INFO 1 17441_ACEOF 17442 17443 17444else 17445 echo "$as_me: failed program was:" >&5 17446sed 's/^/| /' conftest.$ac_ext >&5 17447 17448 17449 { echo "$as_me:$LINENO: result: no" >&5 17450echo "${ECHO_T}no" >&6; } 17451 17452cat >>confdefs.h <<\_ACEOF 17453#define HAVE_CRASHREPORTER_INFO 0 17454_ACEOF 17455 17456 17457fi 17458 17459rm -f core conftest.err conftest.$ac_objext \ 17460 conftest$ac_exeext conftest.$ac_ext 17461 17462 17463 17464 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 17465echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 17466if test "${ac_cv_huge_val_sanity+set}" = set; then 17467 echo $ECHO_N "(cached) $ECHO_C" >&6 17468else 17469 17470 ac_ext=cpp 17471ac_cpp='$CXXCPP $CPPFLAGS' 17472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17475 17476 ac_save_CXXFLAGS=$CXXFLAGS 17477 CXXFLAGS="$CXXFLAGS -pedantic" 17478 if test "$cross_compiling" = yes; then 17479 ac_cv_huge_val_sanity=yes 17480else 17481 cat >conftest.$ac_ext <<_ACEOF 17482/* confdefs.h. */ 17483_ACEOF 17484cat confdefs.h >>conftest.$ac_ext 17485cat >>conftest.$ac_ext <<_ACEOF 17486/* end confdefs.h. */ 17487#include <math.h> 17488int 17489main () 17490{ 17491double x = HUGE_VAL; return x != x; 17492 ; 17493 return 0; 17494} 17495_ACEOF 17496rm -f conftest$ac_exeext 17497if { (ac_try="$ac_link" 17498case "(($ac_try" in 17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17500 *) ac_try_echo=$ac_try;; 17501esac 17502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17503 (eval "$ac_link") 2>&5 17504 ac_status=$? 17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17507 { (case "(($ac_try" in 17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17509 *) ac_try_echo=$ac_try;; 17510esac 17511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17512 (eval "$ac_try") 2>&5 17513 ac_status=$? 17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17515 (exit $ac_status); }; }; then 17516 ac_cv_huge_val_sanity=yes 17517else 17518 echo "$as_me: program exited with status $ac_status" >&5 17519echo "$as_me: failed program was:" >&5 17520sed 's/^/| /' conftest.$ac_ext >&5 17521 17522( exit $ac_status ) 17523ac_cv_huge_val_sanity=no 17524fi 17525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17526fi 17527 17528 17529 CXXFLAGS=$ac_save_CXXFLAGS 17530 ac_ext=c 17531ac_cpp='$CPP $CPPFLAGS' 17532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17534ac_compiler_gnu=$ac_cv_c_compiler_gnu 17535 17536 17537fi 17538{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 17539echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 17540 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 17541 17542 17543{ echo "$as_me:$LINENO: checking for pid_t" >&5 17544echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 17545if test "${ac_cv_type_pid_t+set}" = set; then 17546 echo $ECHO_N "(cached) $ECHO_C" >&6 17547else 17548 cat >conftest.$ac_ext <<_ACEOF 17549/* confdefs.h. */ 17550_ACEOF 17551cat confdefs.h >>conftest.$ac_ext 17552cat >>conftest.$ac_ext <<_ACEOF 17553/* end confdefs.h. */ 17554$ac_includes_default 17555typedef pid_t ac__type_new_; 17556int 17557main () 17558{ 17559if ((ac__type_new_ *) 0) 17560 return 0; 17561if (sizeof (ac__type_new_)) 17562 return 0; 17563 ; 17564 return 0; 17565} 17566_ACEOF 17567rm -f conftest.$ac_objext 17568if { (ac_try="$ac_compile" 17569case "(($ac_try" in 17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17571 *) ac_try_echo=$ac_try;; 17572esac 17573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17574 (eval "$ac_compile") 2>conftest.er1 17575 ac_status=$? 17576 grep -v '^ *+' conftest.er1 >conftest.err 17577 rm -f conftest.er1 17578 cat conftest.err >&5 17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17580 (exit $ac_status); } && 17581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17582 { (case "(($ac_try" in 17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17584 *) ac_try_echo=$ac_try;; 17585esac 17586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17587 (eval "$ac_try") 2>&5 17588 ac_status=$? 17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17590 (exit $ac_status); }; } && 17591 { ac_try='test -s conftest.$ac_objext' 17592 { (case "(($ac_try" in 17593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17594 *) ac_try_echo=$ac_try;; 17595esac 17596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17597 (eval "$ac_try") 2>&5 17598 ac_status=$? 17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17600 (exit $ac_status); }; }; then 17601 ac_cv_type_pid_t=yes 17602else 17603 echo "$as_me: failed program was:" >&5 17604sed 's/^/| /' conftest.$ac_ext >&5 17605 17606 ac_cv_type_pid_t=no 17607fi 17608 17609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17610fi 17611{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 17612echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 17613if test $ac_cv_type_pid_t = yes; then 17614 : 17615else 17616 17617cat >>confdefs.h <<_ACEOF 17618#define pid_t int 17619_ACEOF 17620 17621fi 17622 17623{ echo "$as_me:$LINENO: checking for size_t" >&5 17624echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 17625if test "${ac_cv_type_size_t+set}" = set; then 17626 echo $ECHO_N "(cached) $ECHO_C" >&6 17627else 17628 cat >conftest.$ac_ext <<_ACEOF 17629/* confdefs.h. */ 17630_ACEOF 17631cat confdefs.h >>conftest.$ac_ext 17632cat >>conftest.$ac_ext <<_ACEOF 17633/* end confdefs.h. */ 17634$ac_includes_default 17635typedef size_t ac__type_new_; 17636int 17637main () 17638{ 17639if ((ac__type_new_ *) 0) 17640 return 0; 17641if (sizeof (ac__type_new_)) 17642 return 0; 17643 ; 17644 return 0; 17645} 17646_ACEOF 17647rm -f conftest.$ac_objext 17648if { (ac_try="$ac_compile" 17649case "(($ac_try" in 17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17651 *) ac_try_echo=$ac_try;; 17652esac 17653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17654 (eval "$ac_compile") 2>conftest.er1 17655 ac_status=$? 17656 grep -v '^ *+' conftest.er1 >conftest.err 17657 rm -f conftest.er1 17658 cat conftest.err >&5 17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17660 (exit $ac_status); } && 17661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17662 { (case "(($ac_try" in 17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17664 *) ac_try_echo=$ac_try;; 17665esac 17666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17667 (eval "$ac_try") 2>&5 17668 ac_status=$? 17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17670 (exit $ac_status); }; } && 17671 { ac_try='test -s conftest.$ac_objext' 17672 { (case "(($ac_try" in 17673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17674 *) ac_try_echo=$ac_try;; 17675esac 17676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17677 (eval "$ac_try") 2>&5 17678 ac_status=$? 17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17680 (exit $ac_status); }; }; then 17681 ac_cv_type_size_t=yes 17682else 17683 echo "$as_me: failed program was:" >&5 17684sed 's/^/| /' conftest.$ac_ext >&5 17685 17686 ac_cv_type_size_t=no 17687fi 17688 17689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17690fi 17691{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 17692echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 17693if test $ac_cv_type_size_t = yes; then 17694 : 17695else 17696 17697cat >>confdefs.h <<_ACEOF 17698#define size_t unsigned int 17699_ACEOF 17700 17701fi 17702 17703 17704cat >>confdefs.h <<_ACEOF 17705#define RETSIGTYPE void 17706_ACEOF 17707 17708{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 17709echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 17710if test "${ac_cv_struct_tm+set}" = set; then 17711 echo $ECHO_N "(cached) $ECHO_C" >&6 17712else 17713 cat >conftest.$ac_ext <<_ACEOF 17714/* confdefs.h. */ 17715_ACEOF 17716cat confdefs.h >>conftest.$ac_ext 17717cat >>conftest.$ac_ext <<_ACEOF 17718/* end confdefs.h. */ 17719#include <sys/types.h> 17720#include <time.h> 17721 17722int 17723main () 17724{ 17725struct tm *tp; tp->tm_sec; 17726 ; 17727 return 0; 17728} 17729_ACEOF 17730rm -f conftest.$ac_objext 17731if { (ac_try="$ac_compile" 17732case "(($ac_try" in 17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17734 *) ac_try_echo=$ac_try;; 17735esac 17736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17737 (eval "$ac_compile") 2>conftest.er1 17738 ac_status=$? 17739 grep -v '^ *+' conftest.er1 >conftest.err 17740 rm -f conftest.er1 17741 cat conftest.err >&5 17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17743 (exit $ac_status); } && 17744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17745 { (case "(($ac_try" in 17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17747 *) ac_try_echo=$ac_try;; 17748esac 17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17750 (eval "$ac_try") 2>&5 17751 ac_status=$? 17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17753 (exit $ac_status); }; } && 17754 { ac_try='test -s conftest.$ac_objext' 17755 { (case "(($ac_try" in 17756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17757 *) ac_try_echo=$ac_try;; 17758esac 17759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17760 (eval "$ac_try") 2>&5 17761 ac_status=$? 17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17763 (exit $ac_status); }; }; then 17764 ac_cv_struct_tm=time.h 17765else 17766 echo "$as_me: failed program was:" >&5 17767sed 's/^/| /' conftest.$ac_ext >&5 17768 17769 ac_cv_struct_tm=sys/time.h 17770fi 17771 17772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17773fi 17774{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 17775echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 17776if test $ac_cv_struct_tm = sys/time.h; then 17777 17778cat >>confdefs.h <<\_ACEOF 17779#define TM_IN_SYS_TIME 1 17780_ACEOF 17781 17782fi 17783 17784{ echo "$as_me:$LINENO: checking for int64_t" >&5 17785echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 17786if test "${ac_cv_type_int64_t+set}" = set; then 17787 echo $ECHO_N "(cached) $ECHO_C" >&6 17788else 17789 cat >conftest.$ac_ext <<_ACEOF 17790/* confdefs.h. */ 17791_ACEOF 17792cat confdefs.h >>conftest.$ac_ext 17793cat >>conftest.$ac_ext <<_ACEOF 17794/* end confdefs.h. */ 17795$ac_includes_default 17796typedef int64_t ac__type_new_; 17797int 17798main () 17799{ 17800if ((ac__type_new_ *) 0) 17801 return 0; 17802if (sizeof (ac__type_new_)) 17803 return 0; 17804 ; 17805 return 0; 17806} 17807_ACEOF 17808rm -f conftest.$ac_objext 17809if { (ac_try="$ac_compile" 17810case "(($ac_try" in 17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17812 *) ac_try_echo=$ac_try;; 17813esac 17814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17815 (eval "$ac_compile") 2>conftest.er1 17816 ac_status=$? 17817 grep -v '^ *+' conftest.er1 >conftest.err 17818 rm -f conftest.er1 17819 cat conftest.err >&5 17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17821 (exit $ac_status); } && 17822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17823 { (case "(($ac_try" in 17824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17825 *) ac_try_echo=$ac_try;; 17826esac 17827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17828 (eval "$ac_try") 2>&5 17829 ac_status=$? 17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17831 (exit $ac_status); }; } && 17832 { ac_try='test -s conftest.$ac_objext' 17833 { (case "(($ac_try" in 17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17835 *) ac_try_echo=$ac_try;; 17836esac 17837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17838 (eval "$ac_try") 2>&5 17839 ac_status=$? 17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17841 (exit $ac_status); }; }; then 17842 ac_cv_type_int64_t=yes 17843else 17844 echo "$as_me: failed program was:" >&5 17845sed 's/^/| /' conftest.$ac_ext >&5 17846 17847 ac_cv_type_int64_t=no 17848fi 17849 17850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17851fi 17852{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 17853echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 17854if test $ac_cv_type_int64_t = yes; then 17855 17856cat >>confdefs.h <<_ACEOF 17857#define HAVE_INT64_T 1 17858_ACEOF 17859 17860 17861else 17862 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 17863echo "$as_me: error: Type int64_t required but not found" >&2;} 17864 { (exit 1); exit 1; }; } 17865fi 17866 17867{ echo "$as_me:$LINENO: checking for uint64_t" >&5 17868echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 17869if test "${ac_cv_type_uint64_t+set}" = set; then 17870 echo $ECHO_N "(cached) $ECHO_C" >&6 17871else 17872 cat >conftest.$ac_ext <<_ACEOF 17873/* confdefs.h. */ 17874_ACEOF 17875cat confdefs.h >>conftest.$ac_ext 17876cat >>conftest.$ac_ext <<_ACEOF 17877/* end confdefs.h. */ 17878$ac_includes_default 17879typedef uint64_t ac__type_new_; 17880int 17881main () 17882{ 17883if ((ac__type_new_ *) 0) 17884 return 0; 17885if (sizeof (ac__type_new_)) 17886 return 0; 17887 ; 17888 return 0; 17889} 17890_ACEOF 17891rm -f conftest.$ac_objext 17892if { (ac_try="$ac_compile" 17893case "(($ac_try" in 17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17895 *) ac_try_echo=$ac_try;; 17896esac 17897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17898 (eval "$ac_compile") 2>conftest.er1 17899 ac_status=$? 17900 grep -v '^ *+' conftest.er1 >conftest.err 17901 rm -f conftest.er1 17902 cat conftest.err >&5 17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17904 (exit $ac_status); } && 17905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17906 { (case "(($ac_try" in 17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17908 *) ac_try_echo=$ac_try;; 17909esac 17910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17911 (eval "$ac_try") 2>&5 17912 ac_status=$? 17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17914 (exit $ac_status); }; } && 17915 { ac_try='test -s conftest.$ac_objext' 17916 { (case "(($ac_try" in 17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17918 *) ac_try_echo=$ac_try;; 17919esac 17920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17921 (eval "$ac_try") 2>&5 17922 ac_status=$? 17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17924 (exit $ac_status); }; }; then 17925 ac_cv_type_uint64_t=yes 17926else 17927 echo "$as_me: failed program was:" >&5 17928sed 's/^/| /' conftest.$ac_ext >&5 17929 17930 ac_cv_type_uint64_t=no 17931fi 17932 17933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17934fi 17935{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 17936echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 17937if test $ac_cv_type_uint64_t = yes; then 17938 17939cat >>confdefs.h <<_ACEOF 17940#define HAVE_UINT64_T 1 17941_ACEOF 17942 17943 17944else 17945 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 17946echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 17947if test "${ac_cv_type_u_int64_t+set}" = set; then 17948 echo $ECHO_N "(cached) $ECHO_C" >&6 17949else 17950 cat >conftest.$ac_ext <<_ACEOF 17951/* confdefs.h. */ 17952_ACEOF 17953cat confdefs.h >>conftest.$ac_ext 17954cat >>conftest.$ac_ext <<_ACEOF 17955/* end confdefs.h. */ 17956$ac_includes_default 17957typedef u_int64_t ac__type_new_; 17958int 17959main () 17960{ 17961if ((ac__type_new_ *) 0) 17962 return 0; 17963if (sizeof (ac__type_new_)) 17964 return 0; 17965 ; 17966 return 0; 17967} 17968_ACEOF 17969rm -f conftest.$ac_objext 17970if { (ac_try="$ac_compile" 17971case "(($ac_try" in 17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17973 *) ac_try_echo=$ac_try;; 17974esac 17975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17976 (eval "$ac_compile") 2>conftest.er1 17977 ac_status=$? 17978 grep -v '^ *+' conftest.er1 >conftest.err 17979 rm -f conftest.er1 17980 cat conftest.err >&5 17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17982 (exit $ac_status); } && 17983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17984 { (case "(($ac_try" in 17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17986 *) ac_try_echo=$ac_try;; 17987esac 17988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17989 (eval "$ac_try") 2>&5 17990 ac_status=$? 17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17992 (exit $ac_status); }; } && 17993 { ac_try='test -s conftest.$ac_objext' 17994 { (case "(($ac_try" in 17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17996 *) ac_try_echo=$ac_try;; 17997esac 17998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17999 (eval "$ac_try") 2>&5 18000 ac_status=$? 18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18002 (exit $ac_status); }; }; then 18003 ac_cv_type_u_int64_t=yes 18004else 18005 echo "$as_me: failed program was:" >&5 18006sed 's/^/| /' conftest.$ac_ext >&5 18007 18008 ac_cv_type_u_int64_t=no 18009fi 18010 18011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18012fi 18013{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 18014echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 18015if test $ac_cv_type_u_int64_t = yes; then 18016 18017cat >>confdefs.h <<_ACEOF 18018#define HAVE_U_INT64_T 1 18019_ACEOF 18020 18021 18022else 18023 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 18024echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 18025 { (exit 1); exit 1; }; } 18026fi 18027 18028fi 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 18040do 18041as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18042{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18043echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18044if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18045 echo $ECHO_N "(cached) $ECHO_C" >&6 18046else 18047 cat >conftest.$ac_ext <<_ACEOF 18048/* confdefs.h. */ 18049_ACEOF 18050cat confdefs.h >>conftest.$ac_ext 18051cat >>conftest.$ac_ext <<_ACEOF 18052/* end confdefs.h. */ 18053/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18054 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18055#define $ac_func innocuous_$ac_func 18056 18057/* System header to define __stub macros and hopefully few prototypes, 18058 which can conflict with char $ac_func (); below. 18059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18060 <limits.h> exists even on freestanding compilers. */ 18061 18062#ifdef __STDC__ 18063# include <limits.h> 18064#else 18065# include <assert.h> 18066#endif 18067 18068#undef $ac_func 18069 18070/* Override any GCC internal prototype to avoid an error. 18071 Use char because int might match the return type of a GCC 18072 builtin and then its argument prototype would still apply. */ 18073#ifdef __cplusplus 18074extern "C" 18075#endif 18076char $ac_func (); 18077/* The GNU C library defines this for functions which it implements 18078 to always fail with ENOSYS. Some functions are actually named 18079 something starting with __ and the normal name is an alias. */ 18080#if defined __stub_$ac_func || defined __stub___$ac_func 18081choke me 18082#endif 18083 18084int 18085main () 18086{ 18087return $ac_func (); 18088 ; 18089 return 0; 18090} 18091_ACEOF 18092rm -f conftest.$ac_objext conftest$ac_exeext 18093if { (ac_try="$ac_link" 18094case "(($ac_try" in 18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18096 *) ac_try_echo=$ac_try;; 18097esac 18098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18099 (eval "$ac_link") 2>conftest.er1 18100 ac_status=$? 18101 grep -v '^ *+' conftest.er1 >conftest.err 18102 rm -f conftest.er1 18103 cat conftest.err >&5 18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18105 (exit $ac_status); } && 18106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18107 { (case "(($ac_try" in 18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18109 *) ac_try_echo=$ac_try;; 18110esac 18111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18112 (eval "$ac_try") 2>&5 18113 ac_status=$? 18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18115 (exit $ac_status); }; } && 18116 { ac_try='test -s conftest$ac_exeext' 18117 { (case "(($ac_try" in 18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18119 *) ac_try_echo=$ac_try;; 18120esac 18121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18122 (eval "$ac_try") 2>&5 18123 ac_status=$? 18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18125 (exit $ac_status); }; }; then 18126 eval "$as_ac_var=yes" 18127else 18128 echo "$as_me: failed program was:" >&5 18129sed 's/^/| /' conftest.$ac_ext >&5 18130 18131 eval "$as_ac_var=no" 18132fi 18133 18134rm -f core conftest.err conftest.$ac_objext \ 18135 conftest$ac_exeext conftest.$ac_ext 18136fi 18137ac_res=`eval echo '${'$as_ac_var'}'` 18138 { echo "$as_me:$LINENO: result: $ac_res" >&5 18139echo "${ECHO_T}$ac_res" >&6; } 18140if test `eval echo '${'$as_ac_var'}'` = yes; then 18141 cat >>confdefs.h <<_ACEOF 18142#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18143_ACEOF 18144 18145fi 18146done 18147 18148 18149 18150 18151 18152for ac_func in powf fmodf strtof round 18153do 18154as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18155{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18156echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18157if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18158 echo $ECHO_N "(cached) $ECHO_C" >&6 18159else 18160 cat >conftest.$ac_ext <<_ACEOF 18161/* confdefs.h. */ 18162_ACEOF 18163cat confdefs.h >>conftest.$ac_ext 18164cat >>conftest.$ac_ext <<_ACEOF 18165/* end confdefs.h. */ 18166/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18167 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18168#define $ac_func innocuous_$ac_func 18169 18170/* System header to define __stub macros and hopefully few prototypes, 18171 which can conflict with char $ac_func (); below. 18172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18173 <limits.h> exists even on freestanding compilers. */ 18174 18175#ifdef __STDC__ 18176# include <limits.h> 18177#else 18178# include <assert.h> 18179#endif 18180 18181#undef $ac_func 18182 18183/* Override any GCC internal prototype to avoid an error. 18184 Use char because int might match the return type of a GCC 18185 builtin and then its argument prototype would still apply. */ 18186#ifdef __cplusplus 18187extern "C" 18188#endif 18189char $ac_func (); 18190/* The GNU C library defines this for functions which it implements 18191 to always fail with ENOSYS. Some functions are actually named 18192 something starting with __ and the normal name is an alias. */ 18193#if defined __stub_$ac_func || defined __stub___$ac_func 18194choke me 18195#endif 18196 18197int 18198main () 18199{ 18200return $ac_func (); 18201 ; 18202 return 0; 18203} 18204_ACEOF 18205rm -f conftest.$ac_objext conftest$ac_exeext 18206if { (ac_try="$ac_link" 18207case "(($ac_try" in 18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18209 *) ac_try_echo=$ac_try;; 18210esac 18211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18212 (eval "$ac_link") 2>conftest.er1 18213 ac_status=$? 18214 grep -v '^ *+' conftest.er1 >conftest.err 18215 rm -f conftest.er1 18216 cat conftest.err >&5 18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18218 (exit $ac_status); } && 18219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18220 { (case "(($ac_try" in 18221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18222 *) ac_try_echo=$ac_try;; 18223esac 18224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18225 (eval "$ac_try") 2>&5 18226 ac_status=$? 18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18228 (exit $ac_status); }; } && 18229 { ac_try='test -s conftest$ac_exeext' 18230 { (case "(($ac_try" in 18231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18232 *) ac_try_echo=$ac_try;; 18233esac 18234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18235 (eval "$ac_try") 2>&5 18236 ac_status=$? 18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18238 (exit $ac_status); }; }; then 18239 eval "$as_ac_var=yes" 18240else 18241 echo "$as_me: failed program was:" >&5 18242sed 's/^/| /' conftest.$ac_ext >&5 18243 18244 eval "$as_ac_var=no" 18245fi 18246 18247rm -f core conftest.err conftest.$ac_objext \ 18248 conftest$ac_exeext conftest.$ac_ext 18249fi 18250ac_res=`eval echo '${'$as_ac_var'}'` 18251 { echo "$as_me:$LINENO: result: $ac_res" >&5 18252echo "${ECHO_T}$ac_res" >&6; } 18253if test `eval echo '${'$as_ac_var'}'` = yes; then 18254 cat >>confdefs.h <<_ACEOF 18255#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18256_ACEOF 18257 18258fi 18259done 18260 18261 18262 18263 18264 18265 18266for ac_func in log log2 log10 exp exp2 18267do 18268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18269{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18271if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18272 echo $ECHO_N "(cached) $ECHO_C" >&6 18273else 18274 cat >conftest.$ac_ext <<_ACEOF 18275/* confdefs.h. */ 18276_ACEOF 18277cat confdefs.h >>conftest.$ac_ext 18278cat >>conftest.$ac_ext <<_ACEOF 18279/* end confdefs.h. */ 18280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18281 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18282#define $ac_func innocuous_$ac_func 18283 18284/* System header to define __stub macros and hopefully few prototypes, 18285 which can conflict with char $ac_func (); below. 18286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18287 <limits.h> exists even on freestanding compilers. */ 18288 18289#ifdef __STDC__ 18290# include <limits.h> 18291#else 18292# include <assert.h> 18293#endif 18294 18295#undef $ac_func 18296 18297/* Override any GCC internal prototype to avoid an error. 18298 Use char because int might match the return type of a GCC 18299 builtin and then its argument prototype would still apply. */ 18300#ifdef __cplusplus 18301extern "C" 18302#endif 18303char $ac_func (); 18304/* The GNU C library defines this for functions which it implements 18305 to always fail with ENOSYS. Some functions are actually named 18306 something starting with __ and the normal name is an alias. */ 18307#if defined __stub_$ac_func || defined __stub___$ac_func 18308choke me 18309#endif 18310 18311int 18312main () 18313{ 18314return $ac_func (); 18315 ; 18316 return 0; 18317} 18318_ACEOF 18319rm -f conftest.$ac_objext conftest$ac_exeext 18320if { (ac_try="$ac_link" 18321case "(($ac_try" in 18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18323 *) ac_try_echo=$ac_try;; 18324esac 18325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18326 (eval "$ac_link") 2>conftest.er1 18327 ac_status=$? 18328 grep -v '^ *+' conftest.er1 >conftest.err 18329 rm -f conftest.er1 18330 cat conftest.err >&5 18331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18332 (exit $ac_status); } && 18333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18334 { (case "(($ac_try" in 18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18336 *) ac_try_echo=$ac_try;; 18337esac 18338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18339 (eval "$ac_try") 2>&5 18340 ac_status=$? 18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18342 (exit $ac_status); }; } && 18343 { ac_try='test -s conftest$ac_exeext' 18344 { (case "(($ac_try" in 18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18346 *) ac_try_echo=$ac_try;; 18347esac 18348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18349 (eval "$ac_try") 2>&5 18350 ac_status=$? 18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18352 (exit $ac_status); }; }; then 18353 eval "$as_ac_var=yes" 18354else 18355 echo "$as_me: failed program was:" >&5 18356sed 's/^/| /' conftest.$ac_ext >&5 18357 18358 eval "$as_ac_var=no" 18359fi 18360 18361rm -f core conftest.err conftest.$ac_objext \ 18362 conftest$ac_exeext conftest.$ac_ext 18363fi 18364ac_res=`eval echo '${'$as_ac_var'}'` 18365 { echo "$as_me:$LINENO: result: $ac_res" >&5 18366echo "${ECHO_T}$ac_res" >&6; } 18367if test `eval echo '${'$as_ac_var'}'` = yes; then 18368 cat >>confdefs.h <<_ACEOF 18369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18370_ACEOF 18371 18372fi 18373done 18374 18375 18376 18377 18378 18379 18380for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 18381do 18382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18383{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18385if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18386 echo $ECHO_N "(cached) $ECHO_C" >&6 18387else 18388 cat >conftest.$ac_ext <<_ACEOF 18389/* confdefs.h. */ 18390_ACEOF 18391cat confdefs.h >>conftest.$ac_ext 18392cat >>conftest.$ac_ext <<_ACEOF 18393/* end confdefs.h. */ 18394/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18395 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18396#define $ac_func innocuous_$ac_func 18397 18398/* System header to define __stub macros and hopefully few prototypes, 18399 which can conflict with char $ac_func (); below. 18400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18401 <limits.h> exists even on freestanding compilers. */ 18402 18403#ifdef __STDC__ 18404# include <limits.h> 18405#else 18406# include <assert.h> 18407#endif 18408 18409#undef $ac_func 18410 18411/* Override any GCC internal prototype to avoid an error. 18412 Use char because int might match the return type of a GCC 18413 builtin and then its argument prototype would still apply. */ 18414#ifdef __cplusplus 18415extern "C" 18416#endif 18417char $ac_func (); 18418/* The GNU C library defines this for functions which it implements 18419 to always fail with ENOSYS. Some functions are actually named 18420 something starting with __ and the normal name is an alias. */ 18421#if defined __stub_$ac_func || defined __stub___$ac_func 18422choke me 18423#endif 18424 18425int 18426main () 18427{ 18428return $ac_func (); 18429 ; 18430 return 0; 18431} 18432_ACEOF 18433rm -f conftest.$ac_objext conftest$ac_exeext 18434if { (ac_try="$ac_link" 18435case "(($ac_try" in 18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18437 *) ac_try_echo=$ac_try;; 18438esac 18439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18440 (eval "$ac_link") 2>conftest.er1 18441 ac_status=$? 18442 grep -v '^ *+' conftest.er1 >conftest.err 18443 rm -f conftest.er1 18444 cat conftest.err >&5 18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18446 (exit $ac_status); } && 18447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18448 { (case "(($ac_try" in 18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18450 *) ac_try_echo=$ac_try;; 18451esac 18452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18453 (eval "$ac_try") 2>&5 18454 ac_status=$? 18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18456 (exit $ac_status); }; } && 18457 { ac_try='test -s conftest$ac_exeext' 18458 { (case "(($ac_try" in 18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18460 *) ac_try_echo=$ac_try;; 18461esac 18462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18463 (eval "$ac_try") 2>&5 18464 ac_status=$? 18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18466 (exit $ac_status); }; }; then 18467 eval "$as_ac_var=yes" 18468else 18469 echo "$as_me: failed program was:" >&5 18470sed 's/^/| /' conftest.$ac_ext >&5 18471 18472 eval "$as_ac_var=no" 18473fi 18474 18475rm -f core conftest.err conftest.$ac_objext \ 18476 conftest$ac_exeext conftest.$ac_ext 18477fi 18478ac_res=`eval echo '${'$as_ac_var'}'` 18479 { echo "$as_me:$LINENO: result: $ac_res" >&5 18480echo "${ECHO_T}$ac_res" >&6; } 18481if test `eval echo '${'$as_ac_var'}'` = yes; then 18482 cat >>confdefs.h <<_ACEOF 18483#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18484_ACEOF 18485 18486fi 18487done 18488 18489 18490 18491 18492for ac_func in isatty mkdtemp mkstemp 18493do 18494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18495{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18498 echo $ECHO_N "(cached) $ECHO_C" >&6 18499else 18500 cat >conftest.$ac_ext <<_ACEOF 18501/* confdefs.h. */ 18502_ACEOF 18503cat confdefs.h >>conftest.$ac_ext 18504cat >>conftest.$ac_ext <<_ACEOF 18505/* end confdefs.h. */ 18506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18507 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18508#define $ac_func innocuous_$ac_func 18509 18510/* System header to define __stub macros and hopefully few prototypes, 18511 which can conflict with char $ac_func (); below. 18512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18513 <limits.h> exists even on freestanding compilers. */ 18514 18515#ifdef __STDC__ 18516# include <limits.h> 18517#else 18518# include <assert.h> 18519#endif 18520 18521#undef $ac_func 18522 18523/* Override any GCC internal prototype to avoid an error. 18524 Use char because int might match the return type of a GCC 18525 builtin and then its argument prototype would still apply. */ 18526#ifdef __cplusplus 18527extern "C" 18528#endif 18529char $ac_func (); 18530/* The GNU C library defines this for functions which it implements 18531 to always fail with ENOSYS. Some functions are actually named 18532 something starting with __ and the normal name is an alias. */ 18533#if defined __stub_$ac_func || defined __stub___$ac_func 18534choke me 18535#endif 18536 18537int 18538main () 18539{ 18540return $ac_func (); 18541 ; 18542 return 0; 18543} 18544_ACEOF 18545rm -f conftest.$ac_objext conftest$ac_exeext 18546if { (ac_try="$ac_link" 18547case "(($ac_try" in 18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18549 *) ac_try_echo=$ac_try;; 18550esac 18551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18552 (eval "$ac_link") 2>conftest.er1 18553 ac_status=$? 18554 grep -v '^ *+' conftest.er1 >conftest.err 18555 rm -f conftest.er1 18556 cat conftest.err >&5 18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18558 (exit $ac_status); } && 18559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18560 { (case "(($ac_try" in 18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18562 *) ac_try_echo=$ac_try;; 18563esac 18564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18565 (eval "$ac_try") 2>&5 18566 ac_status=$? 18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18568 (exit $ac_status); }; } && 18569 { ac_try='test -s conftest$ac_exeext' 18570 { (case "(($ac_try" in 18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18572 *) ac_try_echo=$ac_try;; 18573esac 18574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18575 (eval "$ac_try") 2>&5 18576 ac_status=$? 18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18578 (exit $ac_status); }; }; then 18579 eval "$as_ac_var=yes" 18580else 18581 echo "$as_me: failed program was:" >&5 18582sed 's/^/| /' conftest.$ac_ext >&5 18583 18584 eval "$as_ac_var=no" 18585fi 18586 18587rm -f core conftest.err conftest.$ac_objext \ 18588 conftest$ac_exeext conftest.$ac_ext 18589fi 18590ac_res=`eval echo '${'$as_ac_var'}'` 18591 { echo "$as_me:$LINENO: result: $ac_res" >&5 18592echo "${ECHO_T}$ac_res" >&6; } 18593if test `eval echo '${'$as_ac_var'}'` = yes; then 18594 cat >>confdefs.h <<_ACEOF 18595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18596_ACEOF 18597 18598fi 18599done 18600 18601 18602 18603 18604 18605 18606 18607 18608for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup 18609do 18610as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18611{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18612echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18613if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18614 echo $ECHO_N "(cached) $ECHO_C" >&6 18615else 18616 cat >conftest.$ac_ext <<_ACEOF 18617/* confdefs.h. */ 18618_ACEOF 18619cat confdefs.h >>conftest.$ac_ext 18620cat >>conftest.$ac_ext <<_ACEOF 18621/* end confdefs.h. */ 18622/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18623 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18624#define $ac_func innocuous_$ac_func 18625 18626/* System header to define __stub macros and hopefully few prototypes, 18627 which can conflict with char $ac_func (); below. 18628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18629 <limits.h> exists even on freestanding compilers. */ 18630 18631#ifdef __STDC__ 18632# include <limits.h> 18633#else 18634# include <assert.h> 18635#endif 18636 18637#undef $ac_func 18638 18639/* Override any GCC internal prototype to avoid an error. 18640 Use char because int might match the return type of a GCC 18641 builtin and then its argument prototype would still apply. */ 18642#ifdef __cplusplus 18643extern "C" 18644#endif 18645char $ac_func (); 18646/* The GNU C library defines this for functions which it implements 18647 to always fail with ENOSYS. Some functions are actually named 18648 something starting with __ and the normal name is an alias. */ 18649#if defined __stub_$ac_func || defined __stub___$ac_func 18650choke me 18651#endif 18652 18653int 18654main () 18655{ 18656return $ac_func (); 18657 ; 18658 return 0; 18659} 18660_ACEOF 18661rm -f conftest.$ac_objext conftest$ac_exeext 18662if { (ac_try="$ac_link" 18663case "(($ac_try" in 18664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18665 *) ac_try_echo=$ac_try;; 18666esac 18667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18668 (eval "$ac_link") 2>conftest.er1 18669 ac_status=$? 18670 grep -v '^ *+' conftest.er1 >conftest.err 18671 rm -f conftest.er1 18672 cat conftest.err >&5 18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18674 (exit $ac_status); } && 18675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18676 { (case "(($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_try") 2>&5 18682 ac_status=$? 18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18684 (exit $ac_status); }; } && 18685 { ac_try='test -s conftest$ac_exeext' 18686 { (case "(($ac_try" in 18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18688 *) ac_try_echo=$ac_try;; 18689esac 18690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18691 (eval "$ac_try") 2>&5 18692 ac_status=$? 18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18694 (exit $ac_status); }; }; then 18695 eval "$as_ac_var=yes" 18696else 18697 echo "$as_me: failed program was:" >&5 18698sed 's/^/| /' conftest.$ac_ext >&5 18699 18700 eval "$as_ac_var=no" 18701fi 18702 18703rm -f core conftest.err conftest.$ac_objext \ 18704 conftest$ac_exeext conftest.$ac_ext 18705fi 18706ac_res=`eval echo '${'$as_ac_var'}'` 18707 { echo "$as_me:$LINENO: result: $ac_res" >&5 18708echo "${ECHO_T}$ac_res" >&6; } 18709if test `eval echo '${'$as_ac_var'}'` = yes; then 18710 cat >>confdefs.h <<_ACEOF 18711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18712_ACEOF 18713 18714fi 18715done 18716 18717 18718 18719 18720 18721for ac_func in strerror strerror_r setenv arc4random 18722do 18723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18724{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18727 echo $ECHO_N "(cached) $ECHO_C" >&6 18728else 18729 cat >conftest.$ac_ext <<_ACEOF 18730/* confdefs.h. */ 18731_ACEOF 18732cat confdefs.h >>conftest.$ac_ext 18733cat >>conftest.$ac_ext <<_ACEOF 18734/* end confdefs.h. */ 18735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18736 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18737#define $ac_func innocuous_$ac_func 18738 18739/* System header to define __stub macros and hopefully few prototypes, 18740 which can conflict with char $ac_func (); below. 18741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18742 <limits.h> exists even on freestanding compilers. */ 18743 18744#ifdef __STDC__ 18745# include <limits.h> 18746#else 18747# include <assert.h> 18748#endif 18749 18750#undef $ac_func 18751 18752/* Override any GCC internal prototype to avoid an error. 18753 Use char because int might match the return type of a GCC 18754 builtin and then its argument prototype would still apply. */ 18755#ifdef __cplusplus 18756extern "C" 18757#endif 18758char $ac_func (); 18759/* The GNU C library defines this for functions which it implements 18760 to always fail with ENOSYS. Some functions are actually named 18761 something starting with __ and the normal name is an alias. */ 18762#if defined __stub_$ac_func || defined __stub___$ac_func 18763choke me 18764#endif 18765 18766int 18767main () 18768{ 18769return $ac_func (); 18770 ; 18771 return 0; 18772} 18773_ACEOF 18774rm -f conftest.$ac_objext conftest$ac_exeext 18775if { (ac_try="$ac_link" 18776case "(($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_link") 2>conftest.er1 18782 ac_status=$? 18783 grep -v '^ *+' conftest.er1 >conftest.err 18784 rm -f conftest.er1 18785 cat conftest.err >&5 18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18787 (exit $ac_status); } && 18788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18789 { (case "(($ac_try" in 18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18791 *) ac_try_echo=$ac_try;; 18792esac 18793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18794 (eval "$ac_try") 2>&5 18795 ac_status=$? 18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18797 (exit $ac_status); }; } && 18798 { ac_try='test -s conftest$ac_exeext' 18799 { (case "(($ac_try" in 18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18801 *) ac_try_echo=$ac_try;; 18802esac 18803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18804 (eval "$ac_try") 2>&5 18805 ac_status=$? 18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18807 (exit $ac_status); }; }; then 18808 eval "$as_ac_var=yes" 18809else 18810 echo "$as_me: failed program was:" >&5 18811sed 's/^/| /' conftest.$ac_ext >&5 18812 18813 eval "$as_ac_var=no" 18814fi 18815 18816rm -f core conftest.err conftest.$ac_objext \ 18817 conftest$ac_exeext conftest.$ac_ext 18818fi 18819ac_res=`eval echo '${'$as_ac_var'}'` 18820 { echo "$as_me:$LINENO: result: $ac_res" >&5 18821echo "${ECHO_T}$ac_res" >&6; } 18822if test `eval echo '${'$as_ac_var'}'` = yes; then 18823 cat >>confdefs.h <<_ACEOF 18824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18825_ACEOF 18826 18827fi 18828done 18829 18830 18831 18832 18833 18834for ac_func in strtoll strtoq sysconf malloc_zone_statistics 18835do 18836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18837{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18840 echo $ECHO_N "(cached) $ECHO_C" >&6 18841else 18842 cat >conftest.$ac_ext <<_ACEOF 18843/* confdefs.h. */ 18844_ACEOF 18845cat confdefs.h >>conftest.$ac_ext 18846cat >>conftest.$ac_ext <<_ACEOF 18847/* end confdefs.h. */ 18848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18849 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18850#define $ac_func innocuous_$ac_func 18851 18852/* System header to define __stub macros and hopefully few prototypes, 18853 which can conflict with char $ac_func (); below. 18854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18855 <limits.h> exists even on freestanding compilers. */ 18856 18857#ifdef __STDC__ 18858# include <limits.h> 18859#else 18860# include <assert.h> 18861#endif 18862 18863#undef $ac_func 18864 18865/* Override any GCC internal prototype to avoid an error. 18866 Use char because int might match the return type of a GCC 18867 builtin and then its argument prototype would still apply. */ 18868#ifdef __cplusplus 18869extern "C" 18870#endif 18871char $ac_func (); 18872/* The GNU C library defines this for functions which it implements 18873 to always fail with ENOSYS. Some functions are actually named 18874 something starting with __ and the normal name is an alias. */ 18875#if defined __stub_$ac_func || defined __stub___$ac_func 18876choke me 18877#endif 18878 18879int 18880main () 18881{ 18882return $ac_func (); 18883 ; 18884 return 0; 18885} 18886_ACEOF 18887rm -f conftest.$ac_objext conftest$ac_exeext 18888if { (ac_try="$ac_link" 18889case "(($ac_try" in 18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18891 *) ac_try_echo=$ac_try;; 18892esac 18893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18894 (eval "$ac_link") 2>conftest.er1 18895 ac_status=$? 18896 grep -v '^ *+' conftest.er1 >conftest.err 18897 rm -f conftest.er1 18898 cat conftest.err >&5 18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18900 (exit $ac_status); } && 18901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18902 { (case "(($ac_try" in 18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18904 *) ac_try_echo=$ac_try;; 18905esac 18906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18907 (eval "$ac_try") 2>&5 18908 ac_status=$? 18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18910 (exit $ac_status); }; } && 18911 { ac_try='test -s conftest$ac_exeext' 18912 { (case "(($ac_try" in 18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18914 *) ac_try_echo=$ac_try;; 18915esac 18916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18917 (eval "$ac_try") 2>&5 18918 ac_status=$? 18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18920 (exit $ac_status); }; }; then 18921 eval "$as_ac_var=yes" 18922else 18923 echo "$as_me: failed program was:" >&5 18924sed 's/^/| /' conftest.$ac_ext >&5 18925 18926 eval "$as_ac_var=no" 18927fi 18928 18929rm -f core conftest.err conftest.$ac_objext \ 18930 conftest$ac_exeext conftest.$ac_ext 18931fi 18932ac_res=`eval echo '${'$as_ac_var'}'` 18933 { echo "$as_me:$LINENO: result: $ac_res" >&5 18934echo "${ECHO_T}$ac_res" >&6; } 18935if test `eval echo '${'$as_ac_var'}'` = yes; then 18936 cat >>confdefs.h <<_ACEOF 18937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18938_ACEOF 18939 18940fi 18941done 18942 18943 18944 18945 18946 18947 18948for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 18949do 18950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18951{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18954 echo $ECHO_N "(cached) $ECHO_C" >&6 18955else 18956 cat >conftest.$ac_ext <<_ACEOF 18957/* confdefs.h. */ 18958_ACEOF 18959cat confdefs.h >>conftest.$ac_ext 18960cat >>conftest.$ac_ext <<_ACEOF 18961/* end confdefs.h. */ 18962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18963 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18964#define $ac_func innocuous_$ac_func 18965 18966/* System header to define __stub macros and hopefully few prototypes, 18967 which can conflict with char $ac_func (); below. 18968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18969 <limits.h> exists even on freestanding compilers. */ 18970 18971#ifdef __STDC__ 18972# include <limits.h> 18973#else 18974# include <assert.h> 18975#endif 18976 18977#undef $ac_func 18978 18979/* Override any GCC internal prototype to avoid an error. 18980 Use char because int might match the return type of a GCC 18981 builtin and then its argument prototype would still apply. */ 18982#ifdef __cplusplus 18983extern "C" 18984#endif 18985char $ac_func (); 18986/* The GNU C library defines this for functions which it implements 18987 to always fail with ENOSYS. Some functions are actually named 18988 something starting with __ and the normal name is an alias. */ 18989#if defined __stub_$ac_func || defined __stub___$ac_func 18990choke me 18991#endif 18992 18993int 18994main () 18995{ 18996return $ac_func (); 18997 ; 18998 return 0; 18999} 19000_ACEOF 19001rm -f conftest.$ac_objext conftest$ac_exeext 19002if { (ac_try="$ac_link" 19003case "(($ac_try" in 19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19005 *) ac_try_echo=$ac_try;; 19006esac 19007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19008 (eval "$ac_link") 2>conftest.er1 19009 ac_status=$? 19010 grep -v '^ *+' conftest.er1 >conftest.err 19011 rm -f conftest.er1 19012 cat conftest.err >&5 19013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19014 (exit $ac_status); } && 19015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19016 { (case "(($ac_try" in 19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19018 *) ac_try_echo=$ac_try;; 19019esac 19020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19021 (eval "$ac_try") 2>&5 19022 ac_status=$? 19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19024 (exit $ac_status); }; } && 19025 { ac_try='test -s conftest$ac_exeext' 19026 { (case "(($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_try") 2>&5 19032 ac_status=$? 19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19034 (exit $ac_status); }; }; then 19035 eval "$as_ac_var=yes" 19036else 19037 echo "$as_me: failed program was:" >&5 19038sed 's/^/| /' conftest.$ac_ext >&5 19039 19040 eval "$as_ac_var=no" 19041fi 19042 19043rm -f core conftest.err conftest.$ac_objext \ 19044 conftest$ac_exeext conftest.$ac_ext 19045fi 19046ac_res=`eval echo '${'$as_ac_var'}'` 19047 { echo "$as_me:$LINENO: result: $ac_res" >&5 19048echo "${ECHO_T}$ac_res" >&6; } 19049if test `eval echo '${'$as_ac_var'}'` = yes; then 19050 cat >>confdefs.h <<_ACEOF 19051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19052_ACEOF 19053 19054fi 19055done 19056 19057{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 19058echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 19059if test "${llvm_cv_c_printf_a+set}" = set; then 19060 echo $ECHO_N "(cached) $ECHO_C" >&6 19061else 19062 ac_ext=c 19063ac_cpp='$CPP $CPPFLAGS' 19064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19066ac_compiler_gnu=$ac_cv_c_compiler_gnu 19067 19068 if test "$cross_compiling" = yes; then 19069 llvmac_cv_c_printf_a=no 19070else 19071 cat >conftest.$ac_ext <<_ACEOF 19072 19073 /* confdefs.h. */ 19074_ACEOF 19075cat confdefs.h >>conftest.$ac_ext 19076cat >>conftest.$ac_ext <<_ACEOF 19077/* end confdefs.h. */ 19078 19079#include <stdio.h> 19080#include <stdlib.h> 19081 19082int 19083main () 19084{ 19085 19086volatile double A, B; 19087char Buffer[100]; 19088A = 1; 19089A /= 10.0; 19090sprintf(Buffer, "%a", A); 19091B = atof(Buffer); 19092if (A != B) 19093 return (1); 19094if (A != 0x1.999999999999ap-4) 19095 return (1); 19096return (0); 19097 ; 19098 return 0; 19099} 19100_ACEOF 19101rm -f conftest$ac_exeext 19102if { (ac_try="$ac_link" 19103case "(($ac_try" in 19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19105 *) ac_try_echo=$ac_try;; 19106esac 19107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19108 (eval "$ac_link") 2>&5 19109 ac_status=$? 19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19112 { (case "(($ac_try" in 19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19114 *) ac_try_echo=$ac_try;; 19115esac 19116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19117 (eval "$ac_try") 2>&5 19118 ac_status=$? 19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19120 (exit $ac_status); }; }; then 19121 llvm_cv_c_printf_a=yes 19122else 19123 echo "$as_me: program exited with status $ac_status" >&5 19124echo "$as_me: failed program was:" >&5 19125sed 's/^/| /' conftest.$ac_ext >&5 19126 19127( exit $ac_status ) 19128llvmac_cv_c_printf_a=no 19129fi 19130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19131fi 19132 19133 19134 ac_ext=c 19135ac_cpp='$CPP $CPPFLAGS' 19136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19138ac_compiler_gnu=$ac_cv_c_compiler_gnu 19139 19140fi 19141{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 19142echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 19143 if test "$llvm_cv_c_printf_a" = "yes"; then 19144 19145cat >>confdefs.h <<\_ACEOF 19146#define HAVE_PRINTF_A 1 19147_ACEOF 19148 19149 fi 19150 19151 19152 19153 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 19154echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 19155if test "${ac_cv_func_rand48+set}" = set; then 19156 echo $ECHO_N "(cached) $ECHO_C" >&6 19157else 19158 19159 ac_ext=cpp 19160ac_cpp='$CXXCPP $CPPFLAGS' 19161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19164 19165 cat >conftest.$ac_ext <<_ACEOF 19166/* confdefs.h. */ 19167_ACEOF 19168cat confdefs.h >>conftest.$ac_ext 19169cat >>conftest.$ac_ext <<_ACEOF 19170/* end confdefs.h. */ 19171#include <stdlib.h> 19172int 19173main () 19174{ 19175srand48(0);lrand48();drand48(); 19176 ; 19177 return 0; 19178} 19179_ACEOF 19180rm -f conftest.$ac_objext 19181if { (ac_try="$ac_compile" 19182case "(($ac_try" in 19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19184 *) ac_try_echo=$ac_try;; 19185esac 19186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19187 (eval "$ac_compile") 2>conftest.er1 19188 ac_status=$? 19189 grep -v '^ *+' conftest.er1 >conftest.err 19190 rm -f conftest.er1 19191 cat conftest.err >&5 19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19193 (exit $ac_status); } && 19194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19195 { (case "(($ac_try" in 19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19197 *) ac_try_echo=$ac_try;; 19198esac 19199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19200 (eval "$ac_try") 2>&5 19201 ac_status=$? 19202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19203 (exit $ac_status); }; } && 19204 { ac_try='test -s conftest.$ac_objext' 19205 { (case "(($ac_try" in 19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19207 *) ac_try_echo=$ac_try;; 19208esac 19209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19210 (eval "$ac_try") 2>&5 19211 ac_status=$? 19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19213 (exit $ac_status); }; }; then 19214 ac_cv_func_rand48=yes 19215else 19216 echo "$as_me: failed program was:" >&5 19217sed 's/^/| /' conftest.$ac_ext >&5 19218 19219 ac_cv_func_rand48=no 19220fi 19221 19222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19223 ac_ext=c 19224ac_cpp='$CPP $CPPFLAGS' 19225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19227ac_compiler_gnu=$ac_cv_c_compiler_gnu 19228 19229 19230fi 19231{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 19232echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 19233 19234if test "$ac_cv_func_rand48" = "yes" ; then 19235 19236cat >>confdefs.h <<\_ACEOF 19237#define HAVE_RAND48 1 19238_ACEOF 19239 19240fi 19241 19242 19243{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 19244echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 19245if test "${ac_cv_have_decl_strerror_s+set}" = set; then 19246 echo $ECHO_N "(cached) $ECHO_C" >&6 19247else 19248 cat >conftest.$ac_ext <<_ACEOF 19249/* confdefs.h. */ 19250_ACEOF 19251cat confdefs.h >>conftest.$ac_ext 19252cat >>conftest.$ac_ext <<_ACEOF 19253/* end confdefs.h. */ 19254$ac_includes_default 19255int 19256main () 19257{ 19258#ifndef strerror_s 19259 char *p = (char *) strerror_s; 19260 return !p; 19261#endif 19262 19263 ; 19264 return 0; 19265} 19266_ACEOF 19267rm -f conftest.$ac_objext 19268if { (ac_try="$ac_compile" 19269case "(($ac_try" in 19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19271 *) ac_try_echo=$ac_try;; 19272esac 19273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19274 (eval "$ac_compile") 2>conftest.er1 19275 ac_status=$? 19276 grep -v '^ *+' conftest.er1 >conftest.err 19277 rm -f conftest.er1 19278 cat conftest.err >&5 19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19280 (exit $ac_status); } && 19281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19282 { (case "(($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_try") 2>&5 19288 ac_status=$? 19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19290 (exit $ac_status); }; } && 19291 { ac_try='test -s conftest.$ac_objext' 19292 { (case "(($ac_try" in 19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19294 *) ac_try_echo=$ac_try;; 19295esac 19296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19297 (eval "$ac_try") 2>&5 19298 ac_status=$? 19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19300 (exit $ac_status); }; }; then 19301 ac_cv_have_decl_strerror_s=yes 19302else 19303 echo "$as_me: failed program was:" >&5 19304sed 's/^/| /' conftest.$ac_ext >&5 19305 19306 ac_cv_have_decl_strerror_s=no 19307fi 19308 19309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19310fi 19311{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 19312echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 19313if test $ac_cv_have_decl_strerror_s = yes; then 19314 19315cat >>confdefs.h <<_ACEOF 19316#define HAVE_DECL_STRERROR_S 1 19317_ACEOF 19318 19319 19320else 19321 cat >>confdefs.h <<_ACEOF 19322#define HAVE_DECL_STRERROR_S 0 19323_ACEOF 19324 19325 19326fi 19327 19328 19329 19330if test "$llvm_cv_os_type" = "MingW" ; then 19331 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 19332echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 19333if test "${ac_cv_lib_gcc__alloca+set}" = set; then 19334 echo $ECHO_N "(cached) $ECHO_C" >&6 19335else 19336 ac_check_lib_save_LIBS=$LIBS 19337LIBS="-lgcc $LIBS" 19338cat >conftest.$ac_ext <<_ACEOF 19339/* confdefs.h. */ 19340_ACEOF 19341cat confdefs.h >>conftest.$ac_ext 19342cat >>conftest.$ac_ext <<_ACEOF 19343/* end confdefs.h. */ 19344 19345/* Override any GCC internal prototype to avoid an error. 19346 Use char because int might match the return type of a GCC 19347 builtin and then its argument prototype would still apply. */ 19348#ifdef __cplusplus 19349extern "C" 19350#endif 19351char _alloca (); 19352int 19353main () 19354{ 19355return _alloca (); 19356 ; 19357 return 0; 19358} 19359_ACEOF 19360rm -f conftest.$ac_objext conftest$ac_exeext 19361if { (ac_try="$ac_link" 19362case "(($ac_try" in 19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19364 *) ac_try_echo=$ac_try;; 19365esac 19366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19367 (eval "$ac_link") 2>conftest.er1 19368 ac_status=$? 19369 grep -v '^ *+' conftest.er1 >conftest.err 19370 rm -f conftest.er1 19371 cat conftest.err >&5 19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19373 (exit $ac_status); } && 19374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19375 { (case "(($ac_try" in 19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19377 *) ac_try_echo=$ac_try;; 19378esac 19379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19380 (eval "$ac_try") 2>&5 19381 ac_status=$? 19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19383 (exit $ac_status); }; } && 19384 { ac_try='test -s conftest$ac_exeext' 19385 { (case "(($ac_try" in 19386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19387 *) ac_try_echo=$ac_try;; 19388esac 19389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19390 (eval "$ac_try") 2>&5 19391 ac_status=$? 19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19393 (exit $ac_status); }; }; then 19394 ac_cv_lib_gcc__alloca=yes 19395else 19396 echo "$as_me: failed program was:" >&5 19397sed 's/^/| /' conftest.$ac_ext >&5 19398 19399 ac_cv_lib_gcc__alloca=no 19400fi 19401 19402rm -f core conftest.err conftest.$ac_objext \ 19403 conftest$ac_exeext conftest.$ac_ext 19404LIBS=$ac_check_lib_save_LIBS 19405fi 19406{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 19407echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 19408if test $ac_cv_lib_gcc__alloca = yes; then 19409 19410cat >>confdefs.h <<\_ACEOF 19411#define HAVE__ALLOCA 1 19412_ACEOF 19413 19414fi 19415 19416 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 19417echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 19418if test "${ac_cv_lib_gcc___alloca+set}" = set; then 19419 echo $ECHO_N "(cached) $ECHO_C" >&6 19420else 19421 ac_check_lib_save_LIBS=$LIBS 19422LIBS="-lgcc $LIBS" 19423cat >conftest.$ac_ext <<_ACEOF 19424/* confdefs.h. */ 19425_ACEOF 19426cat confdefs.h >>conftest.$ac_ext 19427cat >>conftest.$ac_ext <<_ACEOF 19428/* end confdefs.h. */ 19429 19430/* Override any GCC internal prototype to avoid an error. 19431 Use char because int might match the return type of a GCC 19432 builtin and then its argument prototype would still apply. */ 19433#ifdef __cplusplus 19434extern "C" 19435#endif 19436char __alloca (); 19437int 19438main () 19439{ 19440return __alloca (); 19441 ; 19442 return 0; 19443} 19444_ACEOF 19445rm -f conftest.$ac_objext conftest$ac_exeext 19446if { (ac_try="$ac_link" 19447case "(($ac_try" in 19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19449 *) ac_try_echo=$ac_try;; 19450esac 19451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19452 (eval "$ac_link") 2>conftest.er1 19453 ac_status=$? 19454 grep -v '^ *+' conftest.er1 >conftest.err 19455 rm -f conftest.er1 19456 cat conftest.err >&5 19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19458 (exit $ac_status); } && 19459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19460 { (case "(($ac_try" in 19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19462 *) ac_try_echo=$ac_try;; 19463esac 19464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19465 (eval "$ac_try") 2>&5 19466 ac_status=$? 19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19468 (exit $ac_status); }; } && 19469 { ac_try='test -s conftest$ac_exeext' 19470 { (case "(($ac_try" in 19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19472 *) ac_try_echo=$ac_try;; 19473esac 19474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19475 (eval "$ac_try") 2>&5 19476 ac_status=$? 19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19478 (exit $ac_status); }; }; then 19479 ac_cv_lib_gcc___alloca=yes 19480else 19481 echo "$as_me: failed program was:" >&5 19482sed 's/^/| /' conftest.$ac_ext >&5 19483 19484 ac_cv_lib_gcc___alloca=no 19485fi 19486 19487rm -f core conftest.err conftest.$ac_objext \ 19488 conftest$ac_exeext conftest.$ac_ext 19489LIBS=$ac_check_lib_save_LIBS 19490fi 19491{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 19492echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 19493if test $ac_cv_lib_gcc___alloca = yes; then 19494 19495cat >>confdefs.h <<\_ACEOF 19496#define HAVE___ALLOCA 1 19497_ACEOF 19498 19499fi 19500 19501 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 19502echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 19503if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 19504 echo $ECHO_N "(cached) $ECHO_C" >&6 19505else 19506 ac_check_lib_save_LIBS=$LIBS 19507LIBS="-lgcc $LIBS" 19508cat >conftest.$ac_ext <<_ACEOF 19509/* confdefs.h. */ 19510_ACEOF 19511cat confdefs.h >>conftest.$ac_ext 19512cat >>conftest.$ac_ext <<_ACEOF 19513/* end confdefs.h. */ 19514 19515/* Override any GCC internal prototype to avoid an error. 19516 Use char because int might match the return type of a GCC 19517 builtin and then its argument prototype would still apply. */ 19518#ifdef __cplusplus 19519extern "C" 19520#endif 19521char __chkstk (); 19522int 19523main () 19524{ 19525return __chkstk (); 19526 ; 19527 return 0; 19528} 19529_ACEOF 19530rm -f conftest.$ac_objext conftest$ac_exeext 19531if { (ac_try="$ac_link" 19532case "(($ac_try" in 19533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19534 *) ac_try_echo=$ac_try;; 19535esac 19536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19537 (eval "$ac_link") 2>conftest.er1 19538 ac_status=$? 19539 grep -v '^ *+' conftest.er1 >conftest.err 19540 rm -f conftest.er1 19541 cat conftest.err >&5 19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19543 (exit $ac_status); } && 19544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19545 { (case "(($ac_try" in 19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19547 *) ac_try_echo=$ac_try;; 19548esac 19549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19550 (eval "$ac_try") 2>&5 19551 ac_status=$? 19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19553 (exit $ac_status); }; } && 19554 { ac_try='test -s conftest$ac_exeext' 19555 { (case "(($ac_try" in 19556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19557 *) ac_try_echo=$ac_try;; 19558esac 19559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19560 (eval "$ac_try") 2>&5 19561 ac_status=$? 19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19563 (exit $ac_status); }; }; then 19564 ac_cv_lib_gcc___chkstk=yes 19565else 19566 echo "$as_me: failed program was:" >&5 19567sed 's/^/| /' conftest.$ac_ext >&5 19568 19569 ac_cv_lib_gcc___chkstk=no 19570fi 19571 19572rm -f core conftest.err conftest.$ac_objext \ 19573 conftest$ac_exeext conftest.$ac_ext 19574LIBS=$ac_check_lib_save_LIBS 19575fi 19576{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 19577echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 19578if test $ac_cv_lib_gcc___chkstk = yes; then 19579 19580cat >>confdefs.h <<\_ACEOF 19581#define HAVE___CHKSTK 1 19582_ACEOF 19583 19584fi 19585 19586 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 19587echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 19588if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 19589 echo $ECHO_N "(cached) $ECHO_C" >&6 19590else 19591 ac_check_lib_save_LIBS=$LIBS 19592LIBS="-lgcc $LIBS" 19593cat >conftest.$ac_ext <<_ACEOF 19594/* confdefs.h. */ 19595_ACEOF 19596cat confdefs.h >>conftest.$ac_ext 19597cat >>conftest.$ac_ext <<_ACEOF 19598/* end confdefs.h. */ 19599 19600/* Override any GCC internal prototype to avoid an error. 19601 Use char because int might match the return type of a GCC 19602 builtin and then its argument prototype would still apply. */ 19603#ifdef __cplusplus 19604extern "C" 19605#endif 19606char ___chkstk (); 19607int 19608main () 19609{ 19610return ___chkstk (); 19611 ; 19612 return 0; 19613} 19614_ACEOF 19615rm -f conftest.$ac_objext conftest$ac_exeext 19616if { (ac_try="$ac_link" 19617case "(($ac_try" in 19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19619 *) ac_try_echo=$ac_try;; 19620esac 19621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19622 (eval "$ac_link") 2>conftest.er1 19623 ac_status=$? 19624 grep -v '^ *+' conftest.er1 >conftest.err 19625 rm -f conftest.er1 19626 cat conftest.err >&5 19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19628 (exit $ac_status); } && 19629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19630 { (case "(($ac_try" in 19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19632 *) ac_try_echo=$ac_try;; 19633esac 19634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19635 (eval "$ac_try") 2>&5 19636 ac_status=$? 19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19638 (exit $ac_status); }; } && 19639 { ac_try='test -s conftest$ac_exeext' 19640 { (case "(($ac_try" in 19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19642 *) ac_try_echo=$ac_try;; 19643esac 19644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19645 (eval "$ac_try") 2>&5 19646 ac_status=$? 19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19648 (exit $ac_status); }; }; then 19649 ac_cv_lib_gcc____chkstk=yes 19650else 19651 echo "$as_me: failed program was:" >&5 19652sed 's/^/| /' conftest.$ac_ext >&5 19653 19654 ac_cv_lib_gcc____chkstk=no 19655fi 19656 19657rm -f core conftest.err conftest.$ac_objext \ 19658 conftest$ac_exeext conftest.$ac_ext 19659LIBS=$ac_check_lib_save_LIBS 19660fi 19661{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 19662echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 19663if test $ac_cv_lib_gcc____chkstk = yes; then 19664 19665cat >>confdefs.h <<\_ACEOF 19666#define HAVE____CHKSTK 1 19667_ACEOF 19668 19669fi 19670 19671 19672 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 19673echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 19674if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 19675 echo $ECHO_N "(cached) $ECHO_C" >&6 19676else 19677 ac_check_lib_save_LIBS=$LIBS 19678LIBS="-lgcc $LIBS" 19679cat >conftest.$ac_ext <<_ACEOF 19680/* confdefs.h. */ 19681_ACEOF 19682cat confdefs.h >>conftest.$ac_ext 19683cat >>conftest.$ac_ext <<_ACEOF 19684/* end confdefs.h. */ 19685 19686/* Override any GCC internal prototype to avoid an error. 19687 Use char because int might match the return type of a GCC 19688 builtin and then its argument prototype would still apply. */ 19689#ifdef __cplusplus 19690extern "C" 19691#endif 19692char __ashldi3 (); 19693int 19694main () 19695{ 19696return __ashldi3 (); 19697 ; 19698 return 0; 19699} 19700_ACEOF 19701rm -f conftest.$ac_objext conftest$ac_exeext 19702if { (ac_try="$ac_link" 19703case "(($ac_try" in 19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19705 *) ac_try_echo=$ac_try;; 19706esac 19707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19708 (eval "$ac_link") 2>conftest.er1 19709 ac_status=$? 19710 grep -v '^ *+' conftest.er1 >conftest.err 19711 rm -f conftest.er1 19712 cat conftest.err >&5 19713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19714 (exit $ac_status); } && 19715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19716 { (case "(($ac_try" in 19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19718 *) ac_try_echo=$ac_try;; 19719esac 19720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19721 (eval "$ac_try") 2>&5 19722 ac_status=$? 19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19724 (exit $ac_status); }; } && 19725 { ac_try='test -s conftest$ac_exeext' 19726 { (case "(($ac_try" in 19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19728 *) ac_try_echo=$ac_try;; 19729esac 19730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19731 (eval "$ac_try") 2>&5 19732 ac_status=$? 19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19734 (exit $ac_status); }; }; then 19735 ac_cv_lib_gcc___ashldi3=yes 19736else 19737 echo "$as_me: failed program was:" >&5 19738sed 's/^/| /' conftest.$ac_ext >&5 19739 19740 ac_cv_lib_gcc___ashldi3=no 19741fi 19742 19743rm -f core conftest.err conftest.$ac_objext \ 19744 conftest$ac_exeext conftest.$ac_ext 19745LIBS=$ac_check_lib_save_LIBS 19746fi 19747{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 19748echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 19749if test $ac_cv_lib_gcc___ashldi3 = yes; then 19750 19751cat >>confdefs.h <<\_ACEOF 19752#define HAVE___ASHLDI3 1 19753_ACEOF 19754 19755fi 19756 19757 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 19758echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 19759if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 19760 echo $ECHO_N "(cached) $ECHO_C" >&6 19761else 19762 ac_check_lib_save_LIBS=$LIBS 19763LIBS="-lgcc $LIBS" 19764cat >conftest.$ac_ext <<_ACEOF 19765/* confdefs.h. */ 19766_ACEOF 19767cat confdefs.h >>conftest.$ac_ext 19768cat >>conftest.$ac_ext <<_ACEOF 19769/* end confdefs.h. */ 19770 19771/* Override any GCC internal prototype to avoid an error. 19772 Use char because int might match the return type of a GCC 19773 builtin and then its argument prototype would still apply. */ 19774#ifdef __cplusplus 19775extern "C" 19776#endif 19777char __ashrdi3 (); 19778int 19779main () 19780{ 19781return __ashrdi3 (); 19782 ; 19783 return 0; 19784} 19785_ACEOF 19786rm -f conftest.$ac_objext conftest$ac_exeext 19787if { (ac_try="$ac_link" 19788case "(($ac_try" in 19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19790 *) ac_try_echo=$ac_try;; 19791esac 19792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19793 (eval "$ac_link") 2>conftest.er1 19794 ac_status=$? 19795 grep -v '^ *+' conftest.er1 >conftest.err 19796 rm -f conftest.er1 19797 cat conftest.err >&5 19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19799 (exit $ac_status); } && 19800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19801 { (case "(($ac_try" in 19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19803 *) ac_try_echo=$ac_try;; 19804esac 19805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19806 (eval "$ac_try") 2>&5 19807 ac_status=$? 19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19809 (exit $ac_status); }; } && 19810 { ac_try='test -s conftest$ac_exeext' 19811 { (case "(($ac_try" in 19812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19813 *) ac_try_echo=$ac_try;; 19814esac 19815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19816 (eval "$ac_try") 2>&5 19817 ac_status=$? 19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19819 (exit $ac_status); }; }; then 19820 ac_cv_lib_gcc___ashrdi3=yes 19821else 19822 echo "$as_me: failed program was:" >&5 19823sed 's/^/| /' conftest.$ac_ext >&5 19824 19825 ac_cv_lib_gcc___ashrdi3=no 19826fi 19827 19828rm -f core conftest.err conftest.$ac_objext \ 19829 conftest$ac_exeext conftest.$ac_ext 19830LIBS=$ac_check_lib_save_LIBS 19831fi 19832{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 19833echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 19834if test $ac_cv_lib_gcc___ashrdi3 = yes; then 19835 19836cat >>confdefs.h <<\_ACEOF 19837#define HAVE___ASHRDI3 1 19838_ACEOF 19839 19840fi 19841 19842 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 19843echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 19844if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 19845 echo $ECHO_N "(cached) $ECHO_C" >&6 19846else 19847 ac_check_lib_save_LIBS=$LIBS 19848LIBS="-lgcc $LIBS" 19849cat >conftest.$ac_ext <<_ACEOF 19850/* confdefs.h. */ 19851_ACEOF 19852cat confdefs.h >>conftest.$ac_ext 19853cat >>conftest.$ac_ext <<_ACEOF 19854/* end confdefs.h. */ 19855 19856/* Override any GCC internal prototype to avoid an error. 19857 Use char because int might match the return type of a GCC 19858 builtin and then its argument prototype would still apply. */ 19859#ifdef __cplusplus 19860extern "C" 19861#endif 19862char __divdi3 (); 19863int 19864main () 19865{ 19866return __divdi3 (); 19867 ; 19868 return 0; 19869} 19870_ACEOF 19871rm -f conftest.$ac_objext conftest$ac_exeext 19872if { (ac_try="$ac_link" 19873case "(($ac_try" in 19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19875 *) ac_try_echo=$ac_try;; 19876esac 19877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19878 (eval "$ac_link") 2>conftest.er1 19879 ac_status=$? 19880 grep -v '^ *+' conftest.er1 >conftest.err 19881 rm -f conftest.er1 19882 cat conftest.err >&5 19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19884 (exit $ac_status); } && 19885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19886 { (case "(($ac_try" in 19887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19888 *) ac_try_echo=$ac_try;; 19889esac 19890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19891 (eval "$ac_try") 2>&5 19892 ac_status=$? 19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19894 (exit $ac_status); }; } && 19895 { ac_try='test -s conftest$ac_exeext' 19896 { (case "(($ac_try" in 19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19898 *) ac_try_echo=$ac_try;; 19899esac 19900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19901 (eval "$ac_try") 2>&5 19902 ac_status=$? 19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19904 (exit $ac_status); }; }; then 19905 ac_cv_lib_gcc___divdi3=yes 19906else 19907 echo "$as_me: failed program was:" >&5 19908sed 's/^/| /' conftest.$ac_ext >&5 19909 19910 ac_cv_lib_gcc___divdi3=no 19911fi 19912 19913rm -f core conftest.err conftest.$ac_objext \ 19914 conftest$ac_exeext conftest.$ac_ext 19915LIBS=$ac_check_lib_save_LIBS 19916fi 19917{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 19918echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 19919if test $ac_cv_lib_gcc___divdi3 = yes; then 19920 19921cat >>confdefs.h <<\_ACEOF 19922#define HAVE___DIVDI3 1 19923_ACEOF 19924 19925fi 19926 19927 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 19928echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 19929if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 19930 echo $ECHO_N "(cached) $ECHO_C" >&6 19931else 19932 ac_check_lib_save_LIBS=$LIBS 19933LIBS="-lgcc $LIBS" 19934cat >conftest.$ac_ext <<_ACEOF 19935/* confdefs.h. */ 19936_ACEOF 19937cat confdefs.h >>conftest.$ac_ext 19938cat >>conftest.$ac_ext <<_ACEOF 19939/* end confdefs.h. */ 19940 19941/* Override any GCC internal prototype to avoid an error. 19942 Use char because int might match the return type of a GCC 19943 builtin and then its argument prototype would still apply. */ 19944#ifdef __cplusplus 19945extern "C" 19946#endif 19947char __fixdfdi (); 19948int 19949main () 19950{ 19951return __fixdfdi (); 19952 ; 19953 return 0; 19954} 19955_ACEOF 19956rm -f conftest.$ac_objext conftest$ac_exeext 19957if { (ac_try="$ac_link" 19958case "(($ac_try" in 19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19960 *) ac_try_echo=$ac_try;; 19961esac 19962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19963 (eval "$ac_link") 2>conftest.er1 19964 ac_status=$? 19965 grep -v '^ *+' conftest.er1 >conftest.err 19966 rm -f conftest.er1 19967 cat conftest.err >&5 19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19969 (exit $ac_status); } && 19970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19971 { (case "(($ac_try" in 19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19973 *) ac_try_echo=$ac_try;; 19974esac 19975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19976 (eval "$ac_try") 2>&5 19977 ac_status=$? 19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19979 (exit $ac_status); }; } && 19980 { ac_try='test -s conftest$ac_exeext' 19981 { (case "(($ac_try" in 19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19983 *) ac_try_echo=$ac_try;; 19984esac 19985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19986 (eval "$ac_try") 2>&5 19987 ac_status=$? 19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19989 (exit $ac_status); }; }; then 19990 ac_cv_lib_gcc___fixdfdi=yes 19991else 19992 echo "$as_me: failed program was:" >&5 19993sed 's/^/| /' conftest.$ac_ext >&5 19994 19995 ac_cv_lib_gcc___fixdfdi=no 19996fi 19997 19998rm -f core conftest.err conftest.$ac_objext \ 19999 conftest$ac_exeext conftest.$ac_ext 20000LIBS=$ac_check_lib_save_LIBS 20001fi 20002{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 20003echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 20004if test $ac_cv_lib_gcc___fixdfdi = yes; then 20005 20006cat >>confdefs.h <<\_ACEOF 20007#define HAVE___FIXDFDI 1 20008_ACEOF 20009 20010fi 20011 20012 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 20013echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 20014if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 20015 echo $ECHO_N "(cached) $ECHO_C" >&6 20016else 20017 ac_check_lib_save_LIBS=$LIBS 20018LIBS="-lgcc $LIBS" 20019cat >conftest.$ac_ext <<_ACEOF 20020/* confdefs.h. */ 20021_ACEOF 20022cat confdefs.h >>conftest.$ac_ext 20023cat >>conftest.$ac_ext <<_ACEOF 20024/* end confdefs.h. */ 20025 20026/* Override any GCC internal prototype to avoid an error. 20027 Use char because int might match the return type of a GCC 20028 builtin and then its argument prototype would still apply. */ 20029#ifdef __cplusplus 20030extern "C" 20031#endif 20032char __fixsfdi (); 20033int 20034main () 20035{ 20036return __fixsfdi (); 20037 ; 20038 return 0; 20039} 20040_ACEOF 20041rm -f conftest.$ac_objext conftest$ac_exeext 20042if { (ac_try="$ac_link" 20043case "(($ac_try" in 20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20045 *) ac_try_echo=$ac_try;; 20046esac 20047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20048 (eval "$ac_link") 2>conftest.er1 20049 ac_status=$? 20050 grep -v '^ *+' conftest.er1 >conftest.err 20051 rm -f conftest.er1 20052 cat conftest.err >&5 20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20054 (exit $ac_status); } && 20055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20056 { (case "(($ac_try" in 20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20058 *) ac_try_echo=$ac_try;; 20059esac 20060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20061 (eval "$ac_try") 2>&5 20062 ac_status=$? 20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20064 (exit $ac_status); }; } && 20065 { ac_try='test -s conftest$ac_exeext' 20066 { (case "(($ac_try" in 20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20068 *) ac_try_echo=$ac_try;; 20069esac 20070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20071 (eval "$ac_try") 2>&5 20072 ac_status=$? 20073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20074 (exit $ac_status); }; }; then 20075 ac_cv_lib_gcc___fixsfdi=yes 20076else 20077 echo "$as_me: failed program was:" >&5 20078sed 's/^/| /' conftest.$ac_ext >&5 20079 20080 ac_cv_lib_gcc___fixsfdi=no 20081fi 20082 20083rm -f core conftest.err conftest.$ac_objext \ 20084 conftest$ac_exeext conftest.$ac_ext 20085LIBS=$ac_check_lib_save_LIBS 20086fi 20087{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 20088echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 20089if test $ac_cv_lib_gcc___fixsfdi = yes; then 20090 20091cat >>confdefs.h <<\_ACEOF 20092#define HAVE___FIXSFDI 1 20093_ACEOF 20094 20095fi 20096 20097 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 20098echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 20099if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 20100 echo $ECHO_N "(cached) $ECHO_C" >&6 20101else 20102 ac_check_lib_save_LIBS=$LIBS 20103LIBS="-lgcc $LIBS" 20104cat >conftest.$ac_ext <<_ACEOF 20105/* confdefs.h. */ 20106_ACEOF 20107cat confdefs.h >>conftest.$ac_ext 20108cat >>conftest.$ac_ext <<_ACEOF 20109/* end confdefs.h. */ 20110 20111/* Override any GCC internal prototype to avoid an error. 20112 Use char because int might match the return type of a GCC 20113 builtin and then its argument prototype would still apply. */ 20114#ifdef __cplusplus 20115extern "C" 20116#endif 20117char __floatdidf (); 20118int 20119main () 20120{ 20121return __floatdidf (); 20122 ; 20123 return 0; 20124} 20125_ACEOF 20126rm -f conftest.$ac_objext conftest$ac_exeext 20127if { (ac_try="$ac_link" 20128case "(($ac_try" in 20129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20130 *) ac_try_echo=$ac_try;; 20131esac 20132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20133 (eval "$ac_link") 2>conftest.er1 20134 ac_status=$? 20135 grep -v '^ *+' conftest.er1 >conftest.err 20136 rm -f conftest.er1 20137 cat conftest.err >&5 20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20139 (exit $ac_status); } && 20140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20141 { (case "(($ac_try" in 20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20143 *) ac_try_echo=$ac_try;; 20144esac 20145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20146 (eval "$ac_try") 2>&5 20147 ac_status=$? 20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20149 (exit $ac_status); }; } && 20150 { ac_try='test -s conftest$ac_exeext' 20151 { (case "(($ac_try" in 20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20153 *) ac_try_echo=$ac_try;; 20154esac 20155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20156 (eval "$ac_try") 2>&5 20157 ac_status=$? 20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20159 (exit $ac_status); }; }; then 20160 ac_cv_lib_gcc___floatdidf=yes 20161else 20162 echo "$as_me: failed program was:" >&5 20163sed 's/^/| /' conftest.$ac_ext >&5 20164 20165 ac_cv_lib_gcc___floatdidf=no 20166fi 20167 20168rm -f core conftest.err conftest.$ac_objext \ 20169 conftest$ac_exeext conftest.$ac_ext 20170LIBS=$ac_check_lib_save_LIBS 20171fi 20172{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 20173echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 20174if test $ac_cv_lib_gcc___floatdidf = yes; then 20175 20176cat >>confdefs.h <<\_ACEOF 20177#define HAVE___FLOATDIDF 1 20178_ACEOF 20179 20180fi 20181 20182 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 20183echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 20184if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 20185 echo $ECHO_N "(cached) $ECHO_C" >&6 20186else 20187 ac_check_lib_save_LIBS=$LIBS 20188LIBS="-lgcc $LIBS" 20189cat >conftest.$ac_ext <<_ACEOF 20190/* confdefs.h. */ 20191_ACEOF 20192cat confdefs.h >>conftest.$ac_ext 20193cat >>conftest.$ac_ext <<_ACEOF 20194/* end confdefs.h. */ 20195 20196/* Override any GCC internal prototype to avoid an error. 20197 Use char because int might match the return type of a GCC 20198 builtin and then its argument prototype would still apply. */ 20199#ifdef __cplusplus 20200extern "C" 20201#endif 20202char __lshrdi3 (); 20203int 20204main () 20205{ 20206return __lshrdi3 (); 20207 ; 20208 return 0; 20209} 20210_ACEOF 20211rm -f conftest.$ac_objext conftest$ac_exeext 20212if { (ac_try="$ac_link" 20213case "(($ac_try" in 20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20215 *) ac_try_echo=$ac_try;; 20216esac 20217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20218 (eval "$ac_link") 2>conftest.er1 20219 ac_status=$? 20220 grep -v '^ *+' conftest.er1 >conftest.err 20221 rm -f conftest.er1 20222 cat conftest.err >&5 20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20224 (exit $ac_status); } && 20225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20226 { (case "(($ac_try" in 20227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20228 *) ac_try_echo=$ac_try;; 20229esac 20230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20231 (eval "$ac_try") 2>&5 20232 ac_status=$? 20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20234 (exit $ac_status); }; } && 20235 { ac_try='test -s conftest$ac_exeext' 20236 { (case "(($ac_try" in 20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20238 *) ac_try_echo=$ac_try;; 20239esac 20240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20241 (eval "$ac_try") 2>&5 20242 ac_status=$? 20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20244 (exit $ac_status); }; }; then 20245 ac_cv_lib_gcc___lshrdi3=yes 20246else 20247 echo "$as_me: failed program was:" >&5 20248sed 's/^/| /' conftest.$ac_ext >&5 20249 20250 ac_cv_lib_gcc___lshrdi3=no 20251fi 20252 20253rm -f core conftest.err conftest.$ac_objext \ 20254 conftest$ac_exeext conftest.$ac_ext 20255LIBS=$ac_check_lib_save_LIBS 20256fi 20257{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 20258echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 20259if test $ac_cv_lib_gcc___lshrdi3 = yes; then 20260 20261cat >>confdefs.h <<\_ACEOF 20262#define HAVE___LSHRDI3 1 20263_ACEOF 20264 20265fi 20266 20267 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 20268echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 20269if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 20270 echo $ECHO_N "(cached) $ECHO_C" >&6 20271else 20272 ac_check_lib_save_LIBS=$LIBS 20273LIBS="-lgcc $LIBS" 20274cat >conftest.$ac_ext <<_ACEOF 20275/* confdefs.h. */ 20276_ACEOF 20277cat confdefs.h >>conftest.$ac_ext 20278cat >>conftest.$ac_ext <<_ACEOF 20279/* end confdefs.h. */ 20280 20281/* Override any GCC internal prototype to avoid an error. 20282 Use char because int might match the return type of a GCC 20283 builtin and then its argument prototype would still apply. */ 20284#ifdef __cplusplus 20285extern "C" 20286#endif 20287char __moddi3 (); 20288int 20289main () 20290{ 20291return __moddi3 (); 20292 ; 20293 return 0; 20294} 20295_ACEOF 20296rm -f conftest.$ac_objext conftest$ac_exeext 20297if { (ac_try="$ac_link" 20298case "(($ac_try" in 20299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20300 *) ac_try_echo=$ac_try;; 20301esac 20302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20303 (eval "$ac_link") 2>conftest.er1 20304 ac_status=$? 20305 grep -v '^ *+' conftest.er1 >conftest.err 20306 rm -f conftest.er1 20307 cat conftest.err >&5 20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20309 (exit $ac_status); } && 20310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20311 { (case "(($ac_try" in 20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20313 *) ac_try_echo=$ac_try;; 20314esac 20315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20316 (eval "$ac_try") 2>&5 20317 ac_status=$? 20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20319 (exit $ac_status); }; } && 20320 { ac_try='test -s conftest$ac_exeext' 20321 { (case "(($ac_try" in 20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20323 *) ac_try_echo=$ac_try;; 20324esac 20325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20326 (eval "$ac_try") 2>&5 20327 ac_status=$? 20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20329 (exit $ac_status); }; }; then 20330 ac_cv_lib_gcc___moddi3=yes 20331else 20332 echo "$as_me: failed program was:" >&5 20333sed 's/^/| /' conftest.$ac_ext >&5 20334 20335 ac_cv_lib_gcc___moddi3=no 20336fi 20337 20338rm -f core conftest.err conftest.$ac_objext \ 20339 conftest$ac_exeext conftest.$ac_ext 20340LIBS=$ac_check_lib_save_LIBS 20341fi 20342{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 20343echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 20344if test $ac_cv_lib_gcc___moddi3 = yes; then 20345 20346cat >>confdefs.h <<\_ACEOF 20347#define HAVE___MODDI3 1 20348_ACEOF 20349 20350fi 20351 20352 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 20353echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 20354if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 20355 echo $ECHO_N "(cached) $ECHO_C" >&6 20356else 20357 ac_check_lib_save_LIBS=$LIBS 20358LIBS="-lgcc $LIBS" 20359cat >conftest.$ac_ext <<_ACEOF 20360/* confdefs.h. */ 20361_ACEOF 20362cat confdefs.h >>conftest.$ac_ext 20363cat >>conftest.$ac_ext <<_ACEOF 20364/* end confdefs.h. */ 20365 20366/* Override any GCC internal prototype to avoid an error. 20367 Use char because int might match the return type of a GCC 20368 builtin and then its argument prototype would still apply. */ 20369#ifdef __cplusplus 20370extern "C" 20371#endif 20372char __udivdi3 (); 20373int 20374main () 20375{ 20376return __udivdi3 (); 20377 ; 20378 return 0; 20379} 20380_ACEOF 20381rm -f conftest.$ac_objext conftest$ac_exeext 20382if { (ac_try="$ac_link" 20383case "(($ac_try" in 20384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20385 *) ac_try_echo=$ac_try;; 20386esac 20387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20388 (eval "$ac_link") 2>conftest.er1 20389 ac_status=$? 20390 grep -v '^ *+' conftest.er1 >conftest.err 20391 rm -f conftest.er1 20392 cat conftest.err >&5 20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20394 (exit $ac_status); } && 20395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20396 { (case "(($ac_try" in 20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20398 *) ac_try_echo=$ac_try;; 20399esac 20400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20401 (eval "$ac_try") 2>&5 20402 ac_status=$? 20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20404 (exit $ac_status); }; } && 20405 { ac_try='test -s conftest$ac_exeext' 20406 { (case "(($ac_try" in 20407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20408 *) ac_try_echo=$ac_try;; 20409esac 20410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20411 (eval "$ac_try") 2>&5 20412 ac_status=$? 20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20414 (exit $ac_status); }; }; then 20415 ac_cv_lib_gcc___udivdi3=yes 20416else 20417 echo "$as_me: failed program was:" >&5 20418sed 's/^/| /' conftest.$ac_ext >&5 20419 20420 ac_cv_lib_gcc___udivdi3=no 20421fi 20422 20423rm -f core conftest.err conftest.$ac_objext \ 20424 conftest$ac_exeext conftest.$ac_ext 20425LIBS=$ac_check_lib_save_LIBS 20426fi 20427{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 20428echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 20429if test $ac_cv_lib_gcc___udivdi3 = yes; then 20430 20431cat >>confdefs.h <<\_ACEOF 20432#define HAVE___UDIVDI3 1 20433_ACEOF 20434 20435fi 20436 20437 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 20438echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 20439if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 20440 echo $ECHO_N "(cached) $ECHO_C" >&6 20441else 20442 ac_check_lib_save_LIBS=$LIBS 20443LIBS="-lgcc $LIBS" 20444cat >conftest.$ac_ext <<_ACEOF 20445/* confdefs.h. */ 20446_ACEOF 20447cat confdefs.h >>conftest.$ac_ext 20448cat >>conftest.$ac_ext <<_ACEOF 20449/* end confdefs.h. */ 20450 20451/* Override any GCC internal prototype to avoid an error. 20452 Use char because int might match the return type of a GCC 20453 builtin and then its argument prototype would still apply. */ 20454#ifdef __cplusplus 20455extern "C" 20456#endif 20457char __umoddi3 (); 20458int 20459main () 20460{ 20461return __umoddi3 (); 20462 ; 20463 return 0; 20464} 20465_ACEOF 20466rm -f conftest.$ac_objext conftest$ac_exeext 20467if { (ac_try="$ac_link" 20468case "(($ac_try" in 20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20470 *) ac_try_echo=$ac_try;; 20471esac 20472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20473 (eval "$ac_link") 2>conftest.er1 20474 ac_status=$? 20475 grep -v '^ *+' conftest.er1 >conftest.err 20476 rm -f conftest.er1 20477 cat conftest.err >&5 20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20479 (exit $ac_status); } && 20480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20481 { (case "(($ac_try" in 20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20483 *) ac_try_echo=$ac_try;; 20484esac 20485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20486 (eval "$ac_try") 2>&5 20487 ac_status=$? 20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20489 (exit $ac_status); }; } && 20490 { ac_try='test -s conftest$ac_exeext' 20491 { (case "(($ac_try" in 20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20493 *) ac_try_echo=$ac_try;; 20494esac 20495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20496 (eval "$ac_try") 2>&5 20497 ac_status=$? 20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20499 (exit $ac_status); }; }; then 20500 ac_cv_lib_gcc___umoddi3=yes 20501else 20502 echo "$as_me: failed program was:" >&5 20503sed 's/^/| /' conftest.$ac_ext >&5 20504 20505 ac_cv_lib_gcc___umoddi3=no 20506fi 20507 20508rm -f core conftest.err conftest.$ac_objext \ 20509 conftest$ac_exeext conftest.$ac_ext 20510LIBS=$ac_check_lib_save_LIBS 20511fi 20512{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 20513echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 20514if test $ac_cv_lib_gcc___umoddi3 = yes; then 20515 20516cat >>confdefs.h <<\_ACEOF 20517#define HAVE___UMODDI3 1 20518_ACEOF 20519 20520fi 20521 20522 20523 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 20524echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 20525if test "${ac_cv_lib_gcc___main+set}" = set; then 20526 echo $ECHO_N "(cached) $ECHO_C" >&6 20527else 20528 ac_check_lib_save_LIBS=$LIBS 20529LIBS="-lgcc $LIBS" 20530cat >conftest.$ac_ext <<_ACEOF 20531/* confdefs.h. */ 20532_ACEOF 20533cat confdefs.h >>conftest.$ac_ext 20534cat >>conftest.$ac_ext <<_ACEOF 20535/* end confdefs.h. */ 20536 20537/* Override any GCC internal prototype to avoid an error. 20538 Use char because int might match the return type of a GCC 20539 builtin and then its argument prototype would still apply. */ 20540#ifdef __cplusplus 20541extern "C" 20542#endif 20543char __main (); 20544int 20545main () 20546{ 20547return __main (); 20548 ; 20549 return 0; 20550} 20551_ACEOF 20552rm -f conftest.$ac_objext conftest$ac_exeext 20553if { (ac_try="$ac_link" 20554case "(($ac_try" in 20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20556 *) ac_try_echo=$ac_try;; 20557esac 20558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20559 (eval "$ac_link") 2>conftest.er1 20560 ac_status=$? 20561 grep -v '^ *+' conftest.er1 >conftest.err 20562 rm -f conftest.er1 20563 cat conftest.err >&5 20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20565 (exit $ac_status); } && 20566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20567 { (case "(($ac_try" in 20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20569 *) ac_try_echo=$ac_try;; 20570esac 20571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20572 (eval "$ac_try") 2>&5 20573 ac_status=$? 20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20575 (exit $ac_status); }; } && 20576 { ac_try='test -s conftest$ac_exeext' 20577 { (case "(($ac_try" in 20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20579 *) ac_try_echo=$ac_try;; 20580esac 20581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20582 (eval "$ac_try") 2>&5 20583 ac_status=$? 20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20585 (exit $ac_status); }; }; then 20586 ac_cv_lib_gcc___main=yes 20587else 20588 echo "$as_me: failed program was:" >&5 20589sed 's/^/| /' conftest.$ac_ext >&5 20590 20591 ac_cv_lib_gcc___main=no 20592fi 20593 20594rm -f core conftest.err conftest.$ac_objext \ 20595 conftest$ac_exeext conftest.$ac_ext 20596LIBS=$ac_check_lib_save_LIBS 20597fi 20598{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 20599echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 20600if test $ac_cv_lib_gcc___main = yes; then 20601 20602cat >>confdefs.h <<\_ACEOF 20603#define HAVE___MAIN 1 20604_ACEOF 20605 20606fi 20607 20608 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 20609echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 20610if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 20611 echo $ECHO_N "(cached) $ECHO_C" >&6 20612else 20613 ac_check_lib_save_LIBS=$LIBS 20614LIBS="-lgcc $LIBS" 20615cat >conftest.$ac_ext <<_ACEOF 20616/* confdefs.h. */ 20617_ACEOF 20618cat confdefs.h >>conftest.$ac_ext 20619cat >>conftest.$ac_ext <<_ACEOF 20620/* end confdefs.h. */ 20621 20622/* Override any GCC internal prototype to avoid an error. 20623 Use char because int might match the return type of a GCC 20624 builtin and then its argument prototype would still apply. */ 20625#ifdef __cplusplus 20626extern "C" 20627#endif 20628char __cmpdi2 (); 20629int 20630main () 20631{ 20632return __cmpdi2 (); 20633 ; 20634 return 0; 20635} 20636_ACEOF 20637rm -f conftest.$ac_objext conftest$ac_exeext 20638if { (ac_try="$ac_link" 20639case "(($ac_try" in 20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20641 *) ac_try_echo=$ac_try;; 20642esac 20643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20644 (eval "$ac_link") 2>conftest.er1 20645 ac_status=$? 20646 grep -v '^ *+' conftest.er1 >conftest.err 20647 rm -f conftest.er1 20648 cat conftest.err >&5 20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20650 (exit $ac_status); } && 20651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20652 { (case "(($ac_try" in 20653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20654 *) ac_try_echo=$ac_try;; 20655esac 20656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20657 (eval "$ac_try") 2>&5 20658 ac_status=$? 20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20660 (exit $ac_status); }; } && 20661 { ac_try='test -s conftest$ac_exeext' 20662 { (case "(($ac_try" in 20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20664 *) ac_try_echo=$ac_try;; 20665esac 20666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20667 (eval "$ac_try") 2>&5 20668 ac_status=$? 20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20670 (exit $ac_status); }; }; then 20671 ac_cv_lib_gcc___cmpdi2=yes 20672else 20673 echo "$as_me: failed program was:" >&5 20674sed 's/^/| /' conftest.$ac_ext >&5 20675 20676 ac_cv_lib_gcc___cmpdi2=no 20677fi 20678 20679rm -f core conftest.err conftest.$ac_objext \ 20680 conftest$ac_exeext conftest.$ac_ext 20681LIBS=$ac_check_lib_save_LIBS 20682fi 20683{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 20684echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 20685if test $ac_cv_lib_gcc___cmpdi2 = yes; then 20686 20687cat >>confdefs.h <<\_ACEOF 20688#define HAVE___CMPDI2 1 20689_ACEOF 20690 20691fi 20692 20693fi 20694 20695if test "$llvm_cv_os_type" = "MingW" ; then 20696 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 20697echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 20698 cat >conftest.$ac_ext <<_ACEOF 20699 20700 /* confdefs.h. */ 20701_ACEOF 20702cat confdefs.h >>conftest.$ac_ext 20703cat >>conftest.$ac_ext <<_ACEOF 20704/* end confdefs.h. */ 20705 20706 #include <windows.h> 20707 #include <imagehlp.h> 20708 extern void foo(PENUMLOADED_MODULES_CALLBACK); 20709 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 20710 20711 20712_ACEOF 20713rm -f conftest.$ac_objext 20714if { (ac_try="$ac_compile" 20715case "(($ac_try" in 20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20717 *) ac_try_echo=$ac_try;; 20718esac 20719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20720 (eval "$ac_compile") 2>conftest.er1 20721 ac_status=$? 20722 grep -v '^ *+' conftest.er1 >conftest.err 20723 rm -f conftest.er1 20724 cat conftest.err >&5 20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20726 (exit $ac_status); } && 20727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20728 { (case "(($ac_try" in 20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20730 *) ac_try_echo=$ac_try;; 20731esac 20732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20733 (eval "$ac_try") 2>&5 20734 ac_status=$? 20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20736 (exit $ac_status); }; } && 20737 { ac_try='test -s conftest.$ac_objext' 20738 { (case "(($ac_try" in 20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20740 *) ac_try_echo=$ac_try;; 20741esac 20742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20743 (eval "$ac_try") 2>&5 20744 ac_status=$? 20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20746 (exit $ac_status); }; }; then 20747 20748 { echo "$as_me:$LINENO: result: yes" >&5 20749echo "${ECHO_T}yes" >&6; } 20750 llvm_cv_win32_elmcb_pcstr="PCSTR" 20751 20752else 20753 echo "$as_me: failed program was:" >&5 20754sed 's/^/| /' conftest.$ac_ext >&5 20755 20756 20757 { echo "$as_me:$LINENO: result: no" >&5 20758echo "${ECHO_T}no" >&6; } 20759 llvm_cv_win32_elmcb_pcstr="PSTR" 20760 20761fi 20762 20763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20764 20765cat >>confdefs.h <<_ACEOF 20766#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 20767_ACEOF 20768 20769fi 20770 20771 20772 20773 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 20774echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 20775if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 20776 echo $ECHO_N "(cached) $ECHO_C" >&6 20777else 20778 20779 ac_ext=cpp 20780ac_cpp='$CXXCPP $CPPFLAGS' 20781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20784 20785 cat >conftest.$ac_ext <<_ACEOF 20786/* confdefs.h. */ 20787_ACEOF 20788cat confdefs.h >>conftest.$ac_ext 20789cat >>conftest.$ac_ext <<_ACEOF 20790/* end confdefs.h. */ 20791#include <math.h> 20792int 20793main () 20794{ 20795float f; isnan(f); 20796 ; 20797 return 0; 20798} 20799_ACEOF 20800rm -f conftest.$ac_objext 20801if { (ac_try="$ac_compile" 20802case "(($ac_try" in 20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20804 *) ac_try_echo=$ac_try;; 20805esac 20806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20807 (eval "$ac_compile") 2>conftest.er1 20808 ac_status=$? 20809 grep -v '^ *+' conftest.er1 >conftest.err 20810 rm -f conftest.er1 20811 cat conftest.err >&5 20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20813 (exit $ac_status); } && 20814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20815 { (case "(($ac_try" in 20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20817 *) ac_try_echo=$ac_try;; 20818esac 20819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20820 (eval "$ac_try") 2>&5 20821 ac_status=$? 20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20823 (exit $ac_status); }; } && 20824 { ac_try='test -s conftest.$ac_objext' 20825 { (case "(($ac_try" in 20826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20827 *) ac_try_echo=$ac_try;; 20828esac 20829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20830 (eval "$ac_try") 2>&5 20831 ac_status=$? 20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20833 (exit $ac_status); }; }; then 20834 ac_cv_func_isnan_in_math_h=yes 20835else 20836 echo "$as_me: failed program was:" >&5 20837sed 's/^/| /' conftest.$ac_ext >&5 20838 20839 ac_cv_func_isnan_in_math_h=no 20840fi 20841 20842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20843 ac_ext=c 20844ac_cpp='$CPP $CPPFLAGS' 20845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20847ac_compiler_gnu=$ac_cv_c_compiler_gnu 20848 20849 20850fi 20851{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 20852echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 20853 20854 20855if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 20856 20857cat >>confdefs.h <<\_ACEOF 20858#define HAVE_ISNAN_IN_MATH_H 1 20859_ACEOF 20860 20861fi 20862 20863 20864 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 20865echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 20866if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 20867 echo $ECHO_N "(cached) $ECHO_C" >&6 20868else 20869 20870 ac_ext=cpp 20871ac_cpp='$CXXCPP $CPPFLAGS' 20872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20875 20876 cat >conftest.$ac_ext <<_ACEOF 20877/* confdefs.h. */ 20878_ACEOF 20879cat confdefs.h >>conftest.$ac_ext 20880cat >>conftest.$ac_ext <<_ACEOF 20881/* end confdefs.h. */ 20882#include <cmath> 20883int 20884main () 20885{ 20886float f; isnan(f); 20887 ; 20888 return 0; 20889} 20890_ACEOF 20891rm -f conftest.$ac_objext 20892if { (ac_try="$ac_compile" 20893case "(($ac_try" in 20894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20895 *) ac_try_echo=$ac_try;; 20896esac 20897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20898 (eval "$ac_compile") 2>conftest.er1 20899 ac_status=$? 20900 grep -v '^ *+' conftest.er1 >conftest.err 20901 rm -f conftest.er1 20902 cat conftest.err >&5 20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20904 (exit $ac_status); } && 20905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20906 { (case "(($ac_try" in 20907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20908 *) ac_try_echo=$ac_try;; 20909esac 20910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20911 (eval "$ac_try") 2>&5 20912 ac_status=$? 20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20914 (exit $ac_status); }; } && 20915 { ac_try='test -s conftest.$ac_objext' 20916 { (case "(($ac_try" in 20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20918 *) ac_try_echo=$ac_try;; 20919esac 20920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20921 (eval "$ac_try") 2>&5 20922 ac_status=$? 20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20924 (exit $ac_status); }; }; then 20925 ac_cv_func_isnan_in_cmath=yes 20926else 20927 echo "$as_me: failed program was:" >&5 20928sed 's/^/| /' conftest.$ac_ext >&5 20929 20930 ac_cv_func_isnan_in_cmath=no 20931fi 20932 20933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20934 ac_ext=c 20935ac_cpp='$CPP $CPPFLAGS' 20936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20938ac_compiler_gnu=$ac_cv_c_compiler_gnu 20939 20940 20941fi 20942{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 20943echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 20944 20945if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 20946 20947cat >>confdefs.h <<\_ACEOF 20948#define HAVE_ISNAN_IN_CMATH 1 20949_ACEOF 20950 20951fi 20952 20953 20954 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 20955echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 20956if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 20957 echo $ECHO_N "(cached) $ECHO_C" >&6 20958else 20959 20960 ac_ext=cpp 20961ac_cpp='$CXXCPP $CPPFLAGS' 20962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20965 20966 cat >conftest.$ac_ext <<_ACEOF 20967/* confdefs.h. */ 20968_ACEOF 20969cat confdefs.h >>conftest.$ac_ext 20970cat >>conftest.$ac_ext <<_ACEOF 20971/* end confdefs.h. */ 20972#include <cmath> 20973int 20974main () 20975{ 20976float f; std::isnan(f); 20977 ; 20978 return 0; 20979} 20980_ACEOF 20981rm -f conftest.$ac_objext 20982if { (ac_try="$ac_compile" 20983case "(($ac_try" in 20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20985 *) ac_try_echo=$ac_try;; 20986esac 20987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20988 (eval "$ac_compile") 2>conftest.er1 20989 ac_status=$? 20990 grep -v '^ *+' conftest.er1 >conftest.err 20991 rm -f conftest.er1 20992 cat conftest.err >&5 20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20994 (exit $ac_status); } && 20995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20996 { (case "(($ac_try" in 20997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20998 *) ac_try_echo=$ac_try;; 20999esac 21000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21001 (eval "$ac_try") 2>&5 21002 ac_status=$? 21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21004 (exit $ac_status); }; } && 21005 { ac_try='test -s conftest.$ac_objext' 21006 { (case "(($ac_try" in 21007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21008 *) ac_try_echo=$ac_try;; 21009esac 21010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21011 (eval "$ac_try") 2>&5 21012 ac_status=$? 21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21014 (exit $ac_status); }; }; then 21015 ac_cv_func_std_isnan_in_cmath=yes 21016else 21017 echo "$as_me: failed program was:" >&5 21018sed 's/^/| /' conftest.$ac_ext >&5 21019 21020 ac_cv_func_std_isnan_in_cmath=no 21021fi 21022 21023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21024 ac_ext=c 21025ac_cpp='$CPP $CPPFLAGS' 21026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21028ac_compiler_gnu=$ac_cv_c_compiler_gnu 21029 21030 21031fi 21032{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 21033echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 21034 21035if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 21036 21037cat >>confdefs.h <<\_ACEOF 21038#define HAVE_STD_ISNAN_IN_CMATH 1 21039_ACEOF 21040 21041fi 21042 21043 21044 21045 21046 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 21047echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 21048if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 21049 echo $ECHO_N "(cached) $ECHO_C" >&6 21050else 21051 21052 ac_ext=cpp 21053ac_cpp='$CXXCPP $CPPFLAGS' 21054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21057 21058 cat >conftest.$ac_ext <<_ACEOF 21059/* confdefs.h. */ 21060_ACEOF 21061cat confdefs.h >>conftest.$ac_ext 21062cat >>conftest.$ac_ext <<_ACEOF 21063/* end confdefs.h. */ 21064#include <math.h> 21065int 21066main () 21067{ 21068float f; isinf(f); 21069 ; 21070 return 0; 21071} 21072_ACEOF 21073rm -f conftest.$ac_objext 21074if { (ac_try="$ac_compile" 21075case "(($ac_try" in 21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21077 *) ac_try_echo=$ac_try;; 21078esac 21079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21080 (eval "$ac_compile") 2>conftest.er1 21081 ac_status=$? 21082 grep -v '^ *+' conftest.er1 >conftest.err 21083 rm -f conftest.er1 21084 cat conftest.err >&5 21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21086 (exit $ac_status); } && 21087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21088 { (case "(($ac_try" in 21089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21090 *) ac_try_echo=$ac_try;; 21091esac 21092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21093 (eval "$ac_try") 2>&5 21094 ac_status=$? 21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21096 (exit $ac_status); }; } && 21097 { ac_try='test -s conftest.$ac_objext' 21098 { (case "(($ac_try" in 21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21100 *) ac_try_echo=$ac_try;; 21101esac 21102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21103 (eval "$ac_try") 2>&5 21104 ac_status=$? 21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21106 (exit $ac_status); }; }; then 21107 ac_cv_func_isinf_in_math_h=yes 21108else 21109 echo "$as_me: failed program was:" >&5 21110sed 's/^/| /' conftest.$ac_ext >&5 21111 21112 ac_cv_func_isinf_in_math_h=no 21113fi 21114 21115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21116 ac_ext=c 21117ac_cpp='$CPP $CPPFLAGS' 21118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21120ac_compiler_gnu=$ac_cv_c_compiler_gnu 21121 21122 21123fi 21124{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 21125echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 21126 21127if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 21128 21129cat >>confdefs.h <<\_ACEOF 21130#define HAVE_ISINF_IN_MATH_H 1 21131_ACEOF 21132 21133fi 21134 21135 21136 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 21137echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 21138if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 21139 echo $ECHO_N "(cached) $ECHO_C" >&6 21140else 21141 21142 ac_ext=cpp 21143ac_cpp='$CXXCPP $CPPFLAGS' 21144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21147 21148 cat >conftest.$ac_ext <<_ACEOF 21149/* confdefs.h. */ 21150_ACEOF 21151cat confdefs.h >>conftest.$ac_ext 21152cat >>conftest.$ac_ext <<_ACEOF 21153/* end confdefs.h. */ 21154#include <cmath> 21155int 21156main () 21157{ 21158float f; isinf(f); 21159 ; 21160 return 0; 21161} 21162_ACEOF 21163rm -f conftest.$ac_objext 21164if { (ac_try="$ac_compile" 21165case "(($ac_try" in 21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21167 *) ac_try_echo=$ac_try;; 21168esac 21169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21170 (eval "$ac_compile") 2>conftest.er1 21171 ac_status=$? 21172 grep -v '^ *+' conftest.er1 >conftest.err 21173 rm -f conftest.er1 21174 cat conftest.err >&5 21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21176 (exit $ac_status); } && 21177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21178 { (case "(($ac_try" in 21179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21180 *) ac_try_echo=$ac_try;; 21181esac 21182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21183 (eval "$ac_try") 2>&5 21184 ac_status=$? 21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21186 (exit $ac_status); }; } && 21187 { ac_try='test -s conftest.$ac_objext' 21188 { (case "(($ac_try" in 21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21190 *) ac_try_echo=$ac_try;; 21191esac 21192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21193 (eval "$ac_try") 2>&5 21194 ac_status=$? 21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21196 (exit $ac_status); }; }; then 21197 ac_cv_func_isinf_in_cmath=yes 21198else 21199 echo "$as_me: failed program was:" >&5 21200sed 's/^/| /' conftest.$ac_ext >&5 21201 21202 ac_cv_func_isinf_in_cmath=no 21203fi 21204 21205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21206 ac_ext=c 21207ac_cpp='$CPP $CPPFLAGS' 21208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21210ac_compiler_gnu=$ac_cv_c_compiler_gnu 21211 21212 21213fi 21214{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 21215echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 21216 21217if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 21218 21219cat >>confdefs.h <<\_ACEOF 21220#define HAVE_ISINF_IN_CMATH 1 21221_ACEOF 21222 21223fi 21224 21225 21226 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 21227echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 21228if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 21229 echo $ECHO_N "(cached) $ECHO_C" >&6 21230else 21231 21232 ac_ext=cpp 21233ac_cpp='$CXXCPP $CPPFLAGS' 21234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21237 21238 cat >conftest.$ac_ext <<_ACEOF 21239/* confdefs.h. */ 21240_ACEOF 21241cat confdefs.h >>conftest.$ac_ext 21242cat >>conftest.$ac_ext <<_ACEOF 21243/* end confdefs.h. */ 21244#include <cmath> 21245int 21246main () 21247{ 21248float f; std::isinf(f); 21249 ; 21250 return 0; 21251} 21252_ACEOF 21253rm -f conftest.$ac_objext 21254if { (ac_try="$ac_compile" 21255case "(($ac_try" in 21256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21257 *) ac_try_echo=$ac_try;; 21258esac 21259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21260 (eval "$ac_compile") 2>conftest.er1 21261 ac_status=$? 21262 grep -v '^ *+' conftest.er1 >conftest.err 21263 rm -f conftest.er1 21264 cat conftest.err >&5 21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21266 (exit $ac_status); } && 21267 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21268 { (case "(($ac_try" in 21269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21270 *) ac_try_echo=$ac_try;; 21271esac 21272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21273 (eval "$ac_try") 2>&5 21274 ac_status=$? 21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21276 (exit $ac_status); }; } && 21277 { ac_try='test -s conftest.$ac_objext' 21278 { (case "(($ac_try" in 21279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21280 *) ac_try_echo=$ac_try;; 21281esac 21282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21283 (eval "$ac_try") 2>&5 21284 ac_status=$? 21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21286 (exit $ac_status); }; }; then 21287 ac_cv_func_std_isinf_in_cmath=yes 21288else 21289 echo "$as_me: failed program was:" >&5 21290sed 's/^/| /' conftest.$ac_ext >&5 21291 21292 ac_cv_func_std_isinf_in_cmath=no 21293fi 21294 21295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21296 ac_ext=c 21297ac_cpp='$CPP $CPPFLAGS' 21298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21300ac_compiler_gnu=$ac_cv_c_compiler_gnu 21301 21302 21303fi 21304{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 21305echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 21306 21307if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 21308 21309cat >>confdefs.h <<\_ACEOF 21310#define HAVE_STD_ISINF_IN_CMATH 1 21311_ACEOF 21312 21313fi 21314 21315 21316 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 21317echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 21318if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 21319 echo $ECHO_N "(cached) $ECHO_C" >&6 21320else 21321 21322 ac_ext=cpp 21323ac_cpp='$CXXCPP $CPPFLAGS' 21324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21327 21328 cat >conftest.$ac_ext <<_ACEOF 21329/* confdefs.h. */ 21330_ACEOF 21331cat confdefs.h >>conftest.$ac_ext 21332cat >>conftest.$ac_ext <<_ACEOF 21333/* end confdefs.h. */ 21334#include <ieeefp.h> 21335int 21336main () 21337{ 21338float f; finite(f); 21339 ; 21340 return 0; 21341} 21342_ACEOF 21343rm -f conftest.$ac_objext 21344if { (ac_try="$ac_compile" 21345case "(($ac_try" in 21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21347 *) ac_try_echo=$ac_try;; 21348esac 21349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21350 (eval "$ac_compile") 2>conftest.er1 21351 ac_status=$? 21352 grep -v '^ *+' conftest.er1 >conftest.err 21353 rm -f conftest.er1 21354 cat conftest.err >&5 21355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21356 (exit $ac_status); } && 21357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21358 { (case "(($ac_try" in 21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21360 *) ac_try_echo=$ac_try;; 21361esac 21362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21363 (eval "$ac_try") 2>&5 21364 ac_status=$? 21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21366 (exit $ac_status); }; } && 21367 { ac_try='test -s conftest.$ac_objext' 21368 { (case "(($ac_try" in 21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21370 *) ac_try_echo=$ac_try;; 21371esac 21372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21373 (eval "$ac_try") 2>&5 21374 ac_status=$? 21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21376 (exit $ac_status); }; }; then 21377 ac_cv_func_finite_in_ieeefp_h=yes 21378else 21379 echo "$as_me: failed program was:" >&5 21380sed 's/^/| /' conftest.$ac_ext >&5 21381 21382 ac_cv_func_finite_in_ieeefp_h=no 21383fi 21384 21385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21386 ac_ext=c 21387ac_cpp='$CPP $CPPFLAGS' 21388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21390ac_compiler_gnu=$ac_cv_c_compiler_gnu 21391 21392 21393fi 21394{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 21395echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 21396 21397if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 21398 21399cat >>confdefs.h <<\_ACEOF 21400#define HAVE_FINITE_IN_IEEEFP_H 1 21401_ACEOF 21402 21403fi 21404 21405 21406 21407if test "$llvm_cv_platform_type" = "Unix" ; then 21408 21409 21410for ac_header in stdlib.h unistd.h 21411do 21412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 21413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21414 { echo "$as_me:$LINENO: checking for $ac_header" >&5 21415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21417 echo $ECHO_N "(cached) $ECHO_C" >&6 21418fi 21419ac_res=`eval echo '${'$as_ac_Header'}'` 21420 { echo "$as_me:$LINENO: result: $ac_res" >&5 21421echo "${ECHO_T}$ac_res" >&6; } 21422else 21423 # Is the header compilable? 21424{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 21425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 21426cat >conftest.$ac_ext <<_ACEOF 21427/* confdefs.h. */ 21428_ACEOF 21429cat confdefs.h >>conftest.$ac_ext 21430cat >>conftest.$ac_ext <<_ACEOF 21431/* end confdefs.h. */ 21432$ac_includes_default 21433#include <$ac_header> 21434_ACEOF 21435rm -f conftest.$ac_objext 21436if { (ac_try="$ac_compile" 21437case "(($ac_try" in 21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21439 *) ac_try_echo=$ac_try;; 21440esac 21441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21442 (eval "$ac_compile") 2>conftest.er1 21443 ac_status=$? 21444 grep -v '^ *+' conftest.er1 >conftest.err 21445 rm -f conftest.er1 21446 cat conftest.err >&5 21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21448 (exit $ac_status); } && 21449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21450 { (case "(($ac_try" in 21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21452 *) ac_try_echo=$ac_try;; 21453esac 21454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21455 (eval "$ac_try") 2>&5 21456 ac_status=$? 21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21458 (exit $ac_status); }; } && 21459 { ac_try='test -s conftest.$ac_objext' 21460 { (case "(($ac_try" in 21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21462 *) ac_try_echo=$ac_try;; 21463esac 21464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21465 (eval "$ac_try") 2>&5 21466 ac_status=$? 21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21468 (exit $ac_status); }; }; then 21469 ac_header_compiler=yes 21470else 21471 echo "$as_me: failed program was:" >&5 21472sed 's/^/| /' conftest.$ac_ext >&5 21473 21474 ac_header_compiler=no 21475fi 21476 21477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21478{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 21479echo "${ECHO_T}$ac_header_compiler" >&6; } 21480 21481# Is the header present? 21482{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 21483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 21484cat >conftest.$ac_ext <<_ACEOF 21485/* confdefs.h. */ 21486_ACEOF 21487cat confdefs.h >>conftest.$ac_ext 21488cat >>conftest.$ac_ext <<_ACEOF 21489/* end confdefs.h. */ 21490#include <$ac_header> 21491_ACEOF 21492if { (ac_try="$ac_cpp conftest.$ac_ext" 21493case "(($ac_try" in 21494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21495 *) ac_try_echo=$ac_try;; 21496esac 21497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 21499 ac_status=$? 21500 grep -v '^ *+' conftest.er1 >conftest.err 21501 rm -f conftest.er1 21502 cat conftest.err >&5 21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21504 (exit $ac_status); } >/dev/null; then 21505 if test -s conftest.err; then 21506 ac_cpp_err=$ac_c_preproc_warn_flag 21507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 21508 else 21509 ac_cpp_err= 21510 fi 21511else 21512 ac_cpp_err=yes 21513fi 21514if test -z "$ac_cpp_err"; then 21515 ac_header_preproc=yes 21516else 21517 echo "$as_me: failed program was:" >&5 21518sed 's/^/| /' conftest.$ac_ext >&5 21519 21520 ac_header_preproc=no 21521fi 21522 21523rm -f conftest.err conftest.$ac_ext 21524{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 21525echo "${ECHO_T}$ac_header_preproc" >&6; } 21526 21527# So? What about this header? 21528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 21529 yes:no: ) 21530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 21531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 21532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 21533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 21534 ac_header_preproc=yes 21535 ;; 21536 no:yes:* ) 21537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 21538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 21539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 21540echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 21541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 21542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 21543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 21544echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 21545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 21546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 21547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 21548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 21549 ( cat <<\_ASBOX 21550## ------------------------------------ ## 21551## Report this to http://llvm.org/bugs/ ## 21552## ------------------------------------ ## 21553_ASBOX 21554 ) | sed "s/^/$as_me: WARNING: /" >&2 21555 ;; 21556esac 21557{ echo "$as_me:$LINENO: checking for $ac_header" >&5 21558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 21559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 21560 echo $ECHO_N "(cached) $ECHO_C" >&6 21561else 21562 eval "$as_ac_Header=\$ac_header_preproc" 21563fi 21564ac_res=`eval echo '${'$as_ac_Header'}'` 21565 { echo "$as_me:$LINENO: result: $ac_res" >&5 21566echo "${ECHO_T}$ac_res" >&6; } 21567 21568fi 21569if test `eval echo '${'$as_ac_Header'}'` = yes; then 21570 cat >>confdefs.h <<_ACEOF 21571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 21572_ACEOF 21573 21574fi 21575 21576done 21577 21578 21579for ac_func in getpagesize 21580do 21581as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21582{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21584if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21585 echo $ECHO_N "(cached) $ECHO_C" >&6 21586else 21587 cat >conftest.$ac_ext <<_ACEOF 21588/* confdefs.h. */ 21589_ACEOF 21590cat confdefs.h >>conftest.$ac_ext 21591cat >>conftest.$ac_ext <<_ACEOF 21592/* end confdefs.h. */ 21593/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21594 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21595#define $ac_func innocuous_$ac_func 21596 21597/* System header to define __stub macros and hopefully few prototypes, 21598 which can conflict with char $ac_func (); below. 21599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21600 <limits.h> exists even on freestanding compilers. */ 21601 21602#ifdef __STDC__ 21603# include <limits.h> 21604#else 21605# include <assert.h> 21606#endif 21607 21608#undef $ac_func 21609 21610/* Override any GCC internal prototype to avoid an error. 21611 Use char because int might match the return type of a GCC 21612 builtin and then its argument prototype would still apply. */ 21613#ifdef __cplusplus 21614extern "C" 21615#endif 21616char $ac_func (); 21617/* The GNU C library defines this for functions which it implements 21618 to always fail with ENOSYS. Some functions are actually named 21619 something starting with __ and the normal name is an alias. */ 21620#if defined __stub_$ac_func || defined __stub___$ac_func 21621choke me 21622#endif 21623 21624int 21625main () 21626{ 21627return $ac_func (); 21628 ; 21629 return 0; 21630} 21631_ACEOF 21632rm -f conftest.$ac_objext conftest$ac_exeext 21633if { (ac_try="$ac_link" 21634case "(($ac_try" in 21635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21636 *) ac_try_echo=$ac_try;; 21637esac 21638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21639 (eval "$ac_link") 2>conftest.er1 21640 ac_status=$? 21641 grep -v '^ *+' conftest.er1 >conftest.err 21642 rm -f conftest.er1 21643 cat conftest.err >&5 21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21645 (exit $ac_status); } && 21646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21647 { (case "(($ac_try" in 21648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21649 *) ac_try_echo=$ac_try;; 21650esac 21651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21652 (eval "$ac_try") 2>&5 21653 ac_status=$? 21654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21655 (exit $ac_status); }; } && 21656 { ac_try='test -s conftest$ac_exeext' 21657 { (case "(($ac_try" in 21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21659 *) ac_try_echo=$ac_try;; 21660esac 21661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21662 (eval "$ac_try") 2>&5 21663 ac_status=$? 21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21665 (exit $ac_status); }; }; then 21666 eval "$as_ac_var=yes" 21667else 21668 echo "$as_me: failed program was:" >&5 21669sed 's/^/| /' conftest.$ac_ext >&5 21670 21671 eval "$as_ac_var=no" 21672fi 21673 21674rm -f core conftest.err conftest.$ac_objext \ 21675 conftest$ac_exeext conftest.$ac_ext 21676fi 21677ac_res=`eval echo '${'$as_ac_var'}'` 21678 { echo "$as_me:$LINENO: result: $ac_res" >&5 21679echo "${ECHO_T}$ac_res" >&6; } 21680if test `eval echo '${'$as_ac_var'}'` = yes; then 21681 cat >>confdefs.h <<_ACEOF 21682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21683_ACEOF 21684 21685fi 21686done 21687 21688{ echo "$as_me:$LINENO: checking for working mmap" >&5 21689echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 21690if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 21691 echo $ECHO_N "(cached) $ECHO_C" >&6 21692else 21693 if test "$cross_compiling" = yes; then 21694 ac_cv_func_mmap_fixed_mapped=no 21695else 21696 cat >conftest.$ac_ext <<_ACEOF 21697/* confdefs.h. */ 21698_ACEOF 21699cat confdefs.h >>conftest.$ac_ext 21700cat >>conftest.$ac_ext <<_ACEOF 21701/* end confdefs.h. */ 21702$ac_includes_default 21703/* malloc might have been renamed as rpl_malloc. */ 21704#undef malloc 21705 21706/* Thanks to Mike Haertel and Jim Avera for this test. 21707 Here is a matrix of mmap possibilities: 21708 mmap private not fixed 21709 mmap private fixed at somewhere currently unmapped 21710 mmap private fixed at somewhere already mapped 21711 mmap shared not fixed 21712 mmap shared fixed at somewhere currently unmapped 21713 mmap shared fixed at somewhere already mapped 21714 For private mappings, we should verify that changes cannot be read() 21715 back from the file, nor mmap's back from the file at a different 21716 address. (There have been systems where private was not correctly 21717 implemented like the infamous i386 svr4.0, and systems where the 21718 VM page cache was not coherent with the file system buffer cache 21719 like early versions of FreeBSD and possibly contemporary NetBSD.) 21720 For shared mappings, we should conversely verify that changes get 21721 propagated back to all the places they're supposed to be. 21722 21723 Grep wants private fixed already mapped. 21724 The main things grep needs to know about mmap are: 21725 * does it exist and is it safe to write into the mmap'd area 21726 * how to use it (BSD variants) */ 21727 21728#include <fcntl.h> 21729#include <sys/mman.h> 21730 21731#if !STDC_HEADERS && !HAVE_STDLIB_H 21732char *malloc (); 21733#endif 21734 21735/* This mess was copied from the GNU getpagesize.h. */ 21736#if !HAVE_GETPAGESIZE 21737/* Assume that all systems that can run configure have sys/param.h. */ 21738# if !HAVE_SYS_PARAM_H 21739# define HAVE_SYS_PARAM_H 1 21740# endif 21741 21742# ifdef _SC_PAGESIZE 21743# define getpagesize() sysconf(_SC_PAGESIZE) 21744# else /* no _SC_PAGESIZE */ 21745# if HAVE_SYS_PARAM_H 21746# include <sys/param.h> 21747# ifdef EXEC_PAGESIZE 21748# define getpagesize() EXEC_PAGESIZE 21749# else /* no EXEC_PAGESIZE */ 21750# ifdef NBPG 21751# define getpagesize() NBPG * CLSIZE 21752# ifndef CLSIZE 21753# define CLSIZE 1 21754# endif /* no CLSIZE */ 21755# else /* no NBPG */ 21756# ifdef NBPC 21757# define getpagesize() NBPC 21758# else /* no NBPC */ 21759# ifdef PAGESIZE 21760# define getpagesize() PAGESIZE 21761# endif /* PAGESIZE */ 21762# endif /* no NBPC */ 21763# endif /* no NBPG */ 21764# endif /* no EXEC_PAGESIZE */ 21765# else /* no HAVE_SYS_PARAM_H */ 21766# define getpagesize() 8192 /* punt totally */ 21767# endif /* no HAVE_SYS_PARAM_H */ 21768# endif /* no _SC_PAGESIZE */ 21769 21770#endif /* no HAVE_GETPAGESIZE */ 21771 21772int 21773main () 21774{ 21775 char *data, *data2, *data3; 21776 int i, pagesize; 21777 int fd; 21778 21779 pagesize = getpagesize (); 21780 21781 /* First, make a file with some known garbage in it. */ 21782 data = (char *) malloc (pagesize); 21783 if (!data) 21784 return 1; 21785 for (i = 0; i < pagesize; ++i) 21786 *(data + i) = rand (); 21787 umask (0); 21788 fd = creat ("conftest.mmap", 0600); 21789 if (fd < 0) 21790 return 1; 21791 if (write (fd, data, pagesize) != pagesize) 21792 return 1; 21793 close (fd); 21794 21795 /* Next, try to mmap the file at a fixed address which already has 21796 something else allocated at it. If we can, also make sure that 21797 we see the same garbage. */ 21798 fd = open ("conftest.mmap", O_RDWR); 21799 if (fd < 0) 21800 return 1; 21801 data2 = (char *) malloc (2 * pagesize); 21802 if (!data2) 21803 return 1; 21804 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 21805 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 21806 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 21807 return 1; 21808 for (i = 0; i < pagesize; ++i) 21809 if (*(data + i) != *(data2 + i)) 21810 return 1; 21811 21812 /* Finally, make sure that changes to the mapped area do not 21813 percolate back to the file as seen by read(). (This is a bug on 21814 some variants of i386 svr4.0.) */ 21815 for (i = 0; i < pagesize; ++i) 21816 *(data2 + i) = *(data2 + i) + 1; 21817 data3 = (char *) malloc (pagesize); 21818 if (!data3) 21819 return 1; 21820 if (read (fd, data3, pagesize) != pagesize) 21821 return 1; 21822 for (i = 0; i < pagesize; ++i) 21823 if (*(data + i) != *(data3 + i)) 21824 return 1; 21825 close (fd); 21826 return 0; 21827} 21828_ACEOF 21829rm -f conftest$ac_exeext 21830if { (ac_try="$ac_link" 21831case "(($ac_try" in 21832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21833 *) ac_try_echo=$ac_try;; 21834esac 21835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21836 (eval "$ac_link") 2>&5 21837 ac_status=$? 21838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21840 { (case "(($ac_try" in 21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21842 *) ac_try_echo=$ac_try;; 21843esac 21844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21845 (eval "$ac_try") 2>&5 21846 ac_status=$? 21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21848 (exit $ac_status); }; }; then 21849 ac_cv_func_mmap_fixed_mapped=yes 21850else 21851 echo "$as_me: program exited with status $ac_status" >&5 21852echo "$as_me: failed program was:" >&5 21853sed 's/^/| /' conftest.$ac_ext >&5 21854 21855( exit $ac_status ) 21856ac_cv_func_mmap_fixed_mapped=no 21857fi 21858rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21859fi 21860 21861 21862fi 21863{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 21864echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 21865if test $ac_cv_func_mmap_fixed_mapped = yes; then 21866 21867cat >>confdefs.h <<\_ACEOF 21868#define HAVE_MMAP 1 21869_ACEOF 21870 21871fi 21872rm -f conftest.mmap 21873 21874 { echo "$as_me:$LINENO: checking for mmap of files" >&5 21875echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 21876if test "${ac_cv_func_mmap_file+set}" = set; then 21877 echo $ECHO_N "(cached) $ECHO_C" >&6 21878else 21879 ac_ext=c 21880ac_cpp='$CPP $CPPFLAGS' 21881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21883ac_compiler_gnu=$ac_cv_c_compiler_gnu 21884 21885 if test "$cross_compiling" = yes; then 21886 ac_cv_func_mmap_file=no 21887else 21888 cat >conftest.$ac_ext <<_ACEOF 21889 21890 /* confdefs.h. */ 21891_ACEOF 21892cat confdefs.h >>conftest.$ac_ext 21893cat >>conftest.$ac_ext <<_ACEOF 21894/* end confdefs.h. */ 21895 21896#include <sys/types.h> 21897#include <sys/mman.h> 21898#include <fcntl.h> 21899 21900int 21901main () 21902{ 21903 21904 int fd; 21905 fd = creat ("foo",0777); 21906 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 21907 unlink ("foo"); 21908 return (fd != (int) MAP_FAILED); 21909 ; 21910 return 0; 21911} 21912_ACEOF 21913rm -f conftest$ac_exeext 21914if { (ac_try="$ac_link" 21915case "(($ac_try" in 21916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21917 *) ac_try_echo=$ac_try;; 21918esac 21919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21920 (eval "$ac_link") 2>&5 21921 ac_status=$? 21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 21924 { (case "(($ac_try" in 21925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21926 *) ac_try_echo=$ac_try;; 21927esac 21928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21929 (eval "$ac_try") 2>&5 21930 ac_status=$? 21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21932 (exit $ac_status); }; }; then 21933 ac_cv_func_mmap_file=yes 21934else 21935 echo "$as_me: program exited with status $ac_status" >&5 21936echo "$as_me: failed program was:" >&5 21937sed 's/^/| /' conftest.$ac_ext >&5 21938 21939( exit $ac_status ) 21940ac_cv_func_mmap_file=no 21941fi 21942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 21943fi 21944 21945 21946 ac_ext=c 21947ac_cpp='$CPP $CPPFLAGS' 21948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21950ac_compiler_gnu=$ac_cv_c_compiler_gnu 21951 21952 21953fi 21954{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 21955echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 21956if test "$ac_cv_func_mmap_file" = yes; then 21957 21958cat >>confdefs.h <<\_ACEOF 21959#define HAVE_MMAP_FILE 21960_ACEOF 21961 21962 MMAP_FILE=yes 21963 21964fi 21965 21966 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 21967echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 21968if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 21969 echo $ECHO_N "(cached) $ECHO_C" >&6 21970else 21971 if test "$llvm_cv_os_type" = "Interix" ; then 21972 ac_cv_need_dev_zero_for_mmap=yes 21973 else 21974 ac_cv_need_dev_zero_for_mmap=no 21975 fi 21976 21977fi 21978{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 21979echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 21980if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 21981 21982cat >>confdefs.h <<\_ACEOF 21983#define NEED_DEV_ZERO_FOR_MMAP 1 21984_ACEOF 21985 21986fi 21987 21988 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 21989 then 21990 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 21991echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 21992 fi 21993 if test "$ac_cv_func_mmap_file" = "no" 21994 then 21995 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 21996echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 21997 fi 21998fi 21999 22000{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 22001echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 22002ac_ext=cpp 22003ac_cpp='$CXXCPP $CPPFLAGS' 22004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22007 22008cat >conftest.$ac_ext <<_ACEOF 22009 22010 /* confdefs.h. */ 22011_ACEOF 22012cat confdefs.h >>conftest.$ac_ext 22013cat >>conftest.$ac_ext <<_ACEOF 22014/* end confdefs.h. */ 22015 22016 int main() { 22017 volatile unsigned long val = 1; 22018 __sync_synchronize(); 22019 __sync_val_compare_and_swap(&val, 1, 0); 22020 __sync_add_and_fetch(&val, 1); 22021 __sync_sub_and_fetch(&val, 1); 22022 return 0; 22023 } 22024 22025 22026_ACEOF 22027rm -f conftest.$ac_objext conftest$ac_exeext 22028if { (ac_try="$ac_link" 22029case "(($ac_try" in 22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22031 *) ac_try_echo=$ac_try;; 22032esac 22033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22034 (eval "$ac_link") 2>conftest.er1 22035 ac_status=$? 22036 grep -v '^ *+' conftest.er1 >conftest.err 22037 rm -f conftest.er1 22038 cat conftest.err >&5 22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22040 (exit $ac_status); } && 22041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 22042 { (case "(($ac_try" in 22043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22044 *) ac_try_echo=$ac_try;; 22045esac 22046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22047 (eval "$ac_try") 2>&5 22048 ac_status=$? 22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22050 (exit $ac_status); }; } && 22051 { ac_try='test -s conftest$ac_exeext' 22052 { (case "(($ac_try" in 22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22054 *) ac_try_echo=$ac_try;; 22055esac 22056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22057 (eval "$ac_try") 2>&5 22058 ac_status=$? 22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22060 (exit $ac_status); }; }; then 22061 22062 { echo "$as_me:$LINENO: result: yes" >&5 22063echo "${ECHO_T}yes" >&6; } 22064 22065cat >>confdefs.h <<\_ACEOF 22066#define LLVM_HAS_ATOMICS 1 22067_ACEOF 22068 22069 22070else 22071 echo "$as_me: failed program was:" >&5 22072sed 's/^/| /' conftest.$ac_ext >&5 22073 22074 22075 { echo "$as_me:$LINENO: result: no" >&5 22076echo "${ECHO_T}no" >&6; } 22077 22078cat >>confdefs.h <<\_ACEOF 22079#define LLVM_HAS_ATOMICS 0 22080_ACEOF 22081 22082 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 22083echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 22084 22085fi 22086 22087rm -f core conftest.err conftest.$ac_objext \ 22088 conftest$ac_exeext conftest.$ac_ext 22089ac_ext=c 22090ac_cpp='$CPP $CPPFLAGS' 22091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22093ac_compiler_gnu=$ac_cv_c_compiler_gnu 22094 22095 22096 22097if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 22098 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 22099echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 22100if test "${llvm_cv_linux_mixed+set}" = set; then 22101 echo $ECHO_N "(cached) $ECHO_C" >&6 22102else 22103 ac_ext=c 22104ac_cpp='$CPP $CPPFLAGS' 22105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22107ac_compiler_gnu=$ac_cv_c_compiler_gnu 22108 22109 cat >conftest.$ac_ext <<_ACEOF 22110/* confdefs.h. */ 22111_ACEOF 22112cat confdefs.h >>conftest.$ac_ext 22113cat >>conftest.$ac_ext <<_ACEOF 22114/* end confdefs.h. */ 22115#ifndef __x86_64__ 22116 error: Not x86-64 even if uname says so! 22117 #endif 22118 22119int 22120main () 22121{ 22122 22123 ; 22124 return 0; 22125} 22126_ACEOF 22127rm -f conftest.$ac_objext 22128if { (ac_try="$ac_compile" 22129case "(($ac_try" in 22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22131 *) ac_try_echo=$ac_try;; 22132esac 22133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22134 (eval "$ac_compile") 2>conftest.er1 22135 ac_status=$? 22136 grep -v '^ *+' conftest.er1 >conftest.err 22137 rm -f conftest.er1 22138 cat conftest.err >&5 22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22140 (exit $ac_status); } && 22141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22142 { (case "(($ac_try" in 22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22144 *) ac_try_echo=$ac_try;; 22145esac 22146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22147 (eval "$ac_try") 2>&5 22148 ac_status=$? 22149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22150 (exit $ac_status); }; } && 22151 { ac_try='test -s conftest.$ac_objext' 22152 { (case "(($ac_try" in 22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22154 *) ac_try_echo=$ac_try;; 22155esac 22156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22157 (eval "$ac_try") 2>&5 22158 ac_status=$? 22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22160 (exit $ac_status); }; }; then 22161 llvm_cv_linux_mixed=no 22162else 22163 echo "$as_me: failed program was:" >&5 22164sed 's/^/| /' conftest.$ac_ext >&5 22165 22166 llvm_cv_linux_mixed=yes 22167fi 22168 22169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22170 ac_ext=c 22171ac_cpp='$CPP $CPPFLAGS' 22172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22174ac_compiler_gnu=$ac_cv_c_compiler_gnu 22175 22176 22177fi 22178{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 22179echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 22180 22181 if test "$llvm_cv_linux_mixed" = "yes"; then 22182 llvm_cv_target_arch="x86" 22183 ARCH="x86" 22184 fi 22185fi 22186 22187 22188for ac_func in __dso_handle 22189do 22190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 22191{ echo "$as_me:$LINENO: checking for $ac_func" >&5 22192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 22193if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 22194 echo $ECHO_N "(cached) $ECHO_C" >&6 22195else 22196 cat >conftest.$ac_ext <<_ACEOF 22197/* confdefs.h. */ 22198_ACEOF 22199cat confdefs.h >>conftest.$ac_ext 22200cat >>conftest.$ac_ext <<_ACEOF 22201/* end confdefs.h. */ 22202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 22203 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 22204#define $ac_func innocuous_$ac_func 22205 22206/* System header to define __stub macros and hopefully few prototypes, 22207 which can conflict with char $ac_func (); below. 22208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 22209 <limits.h> exists even on freestanding compilers. */ 22210 22211#ifdef __STDC__ 22212# include <limits.h> 22213#else 22214# include <assert.h> 22215#endif 22216 22217#undef $ac_func 22218 22219/* Override any GCC internal prototype to avoid an error. 22220 Use char because int might match the return type of a GCC 22221 builtin and then its argument prototype would still apply. */ 22222#ifdef __cplusplus 22223extern "C" 22224#endif 22225char $ac_func (); 22226/* The GNU C library defines this for functions which it implements 22227 to always fail with ENOSYS. Some functions are actually named 22228 something starting with __ and the normal name is an alias. */ 22229#if defined __stub_$ac_func || defined __stub___$ac_func 22230choke me 22231#endif 22232 22233int 22234main () 22235{ 22236return $ac_func (); 22237 ; 22238 return 0; 22239} 22240_ACEOF 22241rm -f conftest.$ac_objext conftest$ac_exeext 22242if { (ac_try="$ac_link" 22243case "(($ac_try" in 22244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22245 *) ac_try_echo=$ac_try;; 22246esac 22247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22248 (eval "$ac_link") 2>conftest.er1 22249 ac_status=$? 22250 grep -v '^ *+' conftest.er1 >conftest.err 22251 rm -f conftest.er1 22252 cat conftest.err >&5 22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22254 (exit $ac_status); } && 22255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 22256 { (case "(($ac_try" in 22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22258 *) ac_try_echo=$ac_try;; 22259esac 22260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22261 (eval "$ac_try") 2>&5 22262 ac_status=$? 22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22264 (exit $ac_status); }; } && 22265 { ac_try='test -s conftest$ac_exeext' 22266 { (case "(($ac_try" in 22267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22268 *) ac_try_echo=$ac_try;; 22269esac 22270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22271 (eval "$ac_try") 2>&5 22272 ac_status=$? 22273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22274 (exit $ac_status); }; }; then 22275 eval "$as_ac_var=yes" 22276else 22277 echo "$as_me: failed program was:" >&5 22278sed 's/^/| /' conftest.$ac_ext >&5 22279 22280 eval "$as_ac_var=no" 22281fi 22282 22283rm -f core conftest.err conftest.$ac_objext \ 22284 conftest$ac_exeext conftest.$ac_ext 22285fi 22286ac_res=`eval echo '${'$as_ac_var'}'` 22287 { echo "$as_me:$LINENO: result: $ac_res" >&5 22288echo "${ECHO_T}$ac_res" >&6; } 22289if test `eval echo '${'$as_ac_var'}'` = yes; then 22290 cat >>confdefs.h <<_ACEOF 22291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 22292_ACEOF 22293 22294fi 22295done 22296 22297 22298SHLIBEXT=$libltdl_cv_shlibext 22299 22300 22301SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 22302 22303 22304if test "${prefix}" = "NONE" ; then 22305 prefix="/usr/local" 22306fi 22307eval LLVM_PREFIX="${prefix}"; 22308eval LLVM_BINDIR="${prefix}/bin"; 22309eval LLVM_LIBDIR="${prefix}/lib"; 22310eval LLVM_DATADIR="${prefix}/share/llvm"; 22311eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 22312eval LLVM_ETCDIR="${prefix}/etc/llvm"; 22313eval LLVM_INCLUDEDIR="${prefix}/include"; 22314eval LLVM_INFODIR="${prefix}/info"; 22315eval LLVM_MANDIR="${prefix}/man"; 22316LLVM_CONFIGTIME=`date` 22317 22318 22319 22320 22321 22322 22323 22324 22325 22326 22327 22328if test "${ENABLE_TIMESTAMPS}" = "0"; then 22329 LLVM_CONFIGTIME="(timestamp not enabled)" 22330fi 22331 22332 22333cat >>confdefs.h <<_ACEOF 22334#define LLVM_PREFIX "$LLVM_PREFIX" 22335_ACEOF 22336 22337 22338cat >>confdefs.h <<_ACEOF 22339#define LLVM_BINDIR "$LLVM_BINDIR" 22340_ACEOF 22341 22342 22343cat >>confdefs.h <<_ACEOF 22344#define LLVM_LIBDIR "$LLVM_LIBDIR" 22345_ACEOF 22346 22347 22348cat >>confdefs.h <<_ACEOF 22349#define LLVM_DATADIR "$LLVM_DATADIR" 22350_ACEOF 22351 22352 22353cat >>confdefs.h <<_ACEOF 22354#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 22355_ACEOF 22356 22357 22358cat >>confdefs.h <<_ACEOF 22359#define LLVM_ETCDIR "$LLVM_ETCDIR" 22360_ACEOF 22361 22362 22363cat >>confdefs.h <<_ACEOF 22364#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 22365_ACEOF 22366 22367 22368cat >>confdefs.h <<_ACEOF 22369#define LLVM_INFODIR "$LLVM_INFODIR" 22370_ACEOF 22371 22372 22373cat >>confdefs.h <<_ACEOF 22374#define LLVM_MANDIR "$LLVM_MANDIR" 22375_ACEOF 22376 22377 22378cat >>confdefs.h <<_ACEOF 22379#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 22380_ACEOF 22381 22382 22383cat >>confdefs.h <<_ACEOF 22384#define LLVM_HOST_TRIPLE "$host" 22385_ACEOF 22386 22387 22388cat >>confdefs.h <<_ACEOF 22389#define LLVM_DEFAULT_TARGET_TRIPLE "$target" 22390_ACEOF 22391 22392 22393if test "$BINDINGS_TO_BUILD" = auto ; then 22394 BINDINGS_TO_BUILD="" 22395 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 22396 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 22397 fi 22398fi 22399BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 22400 22401 22402ALL_BINDINGS=ocaml 22403 22404 22405binding_prereqs_failed=0 22406for a_binding in $BINDINGS_TO_BUILD ; do 22407 case "$a_binding" in 22408 ocaml) 22409 if test "x$OCAMLC" = x ; then 22410 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 22411echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 22412 binding_prereqs_failed=1 22413 fi 22414 if test "x$OCAMLDEP" = x ; then 22415 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 22416echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 22417 binding_prereqs_failed=1 22418 fi 22419 if test "x$OCAMLOPT" = x ; then 22420 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 22421echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 22422 fi 22423 if test "x$with_ocaml_libdir" != xauto ; then 22424 OCAML_LIBDIR=$with_ocaml_libdir 22425 22426 else 22427 ocaml_stdlib="`"$OCAMLC" -where`" 22428 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 22429 then 22430 # ocaml stdlib is beneath our prefix; use stdlib 22431 OCAML_LIBDIR=$ocaml_stdlib 22432 22433 else 22434 # ocaml stdlib is outside our prefix; use libdir/ocaml 22435 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 22436 22437 fi 22438 fi 22439 ;; 22440 esac 22441done 22442if test "$binding_prereqs_failed" = 1 ; then 22443 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 22444echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 22445 { (exit 1); exit 1; }; } 22446fi 22447 22448{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 22449echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 22450if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 22451 echo $ECHO_N "(cached) $ECHO_C" >&6 22452else 22453 ac_ext=cpp 22454ac_cpp='$CXXCPP $CPPFLAGS' 22455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22458 22459 oldcxxflags="$CXXFLAGS" 22460 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 22461 cat >conftest.$ac_ext <<_ACEOF 22462/* confdefs.h. */ 22463_ACEOF 22464cat confdefs.h >>conftest.$ac_ext 22465cat >>conftest.$ac_ext <<_ACEOF 22466/* end confdefs.h. */ 22467template <typename T> struct X { void __attribute__((noinline)) f() {} }; 22468int 22469main () 22470{ 22471X<int>().f(); 22472 ; 22473 return 0; 22474} 22475_ACEOF 22476rm -f conftest.$ac_objext 22477if { (ac_try="$ac_compile" 22478case "(($ac_try" in 22479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22480 *) ac_try_echo=$ac_try;; 22481esac 22482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22483 (eval "$ac_compile") 2>conftest.er1 22484 ac_status=$? 22485 grep -v '^ *+' conftest.er1 >conftest.err 22486 rm -f conftest.er1 22487 cat conftest.err >&5 22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22489 (exit $ac_status); } && 22490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 22491 { (case "(($ac_try" in 22492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22493 *) ac_try_echo=$ac_try;; 22494esac 22495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22496 (eval "$ac_try") 2>&5 22497 ac_status=$? 22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22499 (exit $ac_status); }; } && 22500 { ac_try='test -s conftest.$ac_objext' 22501 { (case "(($ac_try" in 22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 22503 *) ac_try_echo=$ac_try;; 22504esac 22505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 22506 (eval "$ac_try") 2>&5 22507 ac_status=$? 22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22509 (exit $ac_status); }; }; then 22510 llvm_cv_cxx_visibility_inlines_hidden=yes 22511else 22512 echo "$as_me: failed program was:" >&5 22513sed 's/^/| /' conftest.$ac_ext >&5 22514 22515 llvm_cv_cxx_visibility_inlines_hidden=no 22516fi 22517 22518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22519 CXXFLAGS="$oldcxxflags" 22520 ac_ext=c 22521ac_cpp='$CPP $CPPFLAGS' 22522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22524ac_compiler_gnu=$ac_cv_c_compiler_gnu 22525 22526 22527fi 22528{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 22529echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 22530if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 22531 ENABLE_VISIBILITY_INLINES_HIDDEN=1 22532 22533else 22534 ENABLE_VISIBILITY_INLINES_HIDDEN=0 22535 22536fi 22537 22538 22539if test "$llvm_cv_link_use_r" = "yes" ; then 22540 RPATH="-Wl,-R" 22541else 22542 RPATH="-Wl,-rpath" 22543fi 22544 22545 22546if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 22547 RDYNAMIC="-Wl,-export-dynamic" 22548else 22549 RDYNAMIC="" 22550fi 22551 22552 22553 22554ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 22555 22556 22557 22558 22559 22560 22561ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 22562 22563ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 22564 22565ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 22566 22567ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 22568 22569ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 22570 22571 22572ac_config_files="$ac_config_files Makefile.config" 22573 22574 22575ac_config_files="$ac_config_files llvm.spec" 22576 22577 22578ac_config_files="$ac_config_files docs/doxygen.cfg" 22579 22580 22581if test "${clang_src_root}" = ""; then 22582 clang_src_root="$srcdir/tools/clang" 22583fi 22584if test -f ${clang_src_root}/README.txt; then 22585 configh="include/clang/Config/config.h" 22586 doxy="docs/doxygen.cfg" 22587 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" 22588 22589 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" 22590 22591fi 22592 22593ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" 22594 22595 22596test "x$program_prefix" = "xNONE" && program_prefix="" 22597 22598 22599 22600ac_config_commands="$ac_config_commands setup" 22601 22602ac_config_commands="$ac_config_commands Makefile" 22603 22604 22605ac_config_commands="$ac_config_commands Makefile.common" 22606 22607 22608ac_config_commands="$ac_config_commands examples/Makefile" 22609 22610 22611ac_config_commands="$ac_config_commands lib/Makefile" 22612 22613 22614ac_config_commands="$ac_config_commands runtime/Makefile" 22615 22616 22617ac_config_commands="$ac_config_commands test/Makefile" 22618 22619 22620ac_config_commands="$ac_config_commands test/Makefile.tests" 22621 22622 22623ac_config_commands="$ac_config_commands unittests/Makefile" 22624 22625 22626ac_config_commands="$ac_config_commands tools/Makefile" 22627 22628 22629ac_config_commands="$ac_config_commands utils/Makefile" 22630 22631 22632ac_config_commands="$ac_config_commands projects/Makefile" 22633 22634 22635ac_config_commands="$ac_config_commands bindings/Makefile" 22636 22637 22638ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 22639 22640 22641 22642cat >confcache <<\_ACEOF 22643# This file is a shell script that caches the results of configure 22644# tests run on this system so they can be shared between configure 22645# scripts and configure runs, see configure's option --config-cache. 22646# It is not useful on other systems. If it contains results you don't 22647# want to keep, you may remove or edit it. 22648# 22649# config.status only pays attention to the cache file if you give it 22650# the --recheck option to rerun configure. 22651# 22652# `ac_cv_env_foo' variables (set or unset) will be overridden when 22653# loading this file, other *unset* `ac_cv_foo' will be assigned the 22654# following values. 22655 22656_ACEOF 22657 22658# The following way of writing the cache mishandles newlines in values, 22659# but we know of no workaround that is simple, portable, and efficient. 22660# So, we kill variables containing newlines. 22661# Ultrix sh set writes to stderr and can't be redirected directly, 22662# and sets the high bit in the cache file unless we assign to the vars. 22663( 22664 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22665 eval ac_val=\$$ac_var 22666 case $ac_val in #( 22667 *${as_nl}*) 22668 case $ac_var in #( 22669 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 22670echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 22671 esac 22672 case $ac_var in #( 22673 _ | IFS | as_nl) ;; #( 22674 *) $as_unset $ac_var ;; 22675 esac ;; 22676 esac 22677 done 22678 22679 (set) 2>&1 | 22680 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22681 *${as_nl}ac_space=\ *) 22682 # `set' does not quote correctly, so add quotes (double-quote 22683 # substitution turns \\\\ into \\, and sed turns \\ into \). 22684 sed -n \ 22685 "s/'/'\\\\''/g; 22686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22687 ;; #( 22688 *) 22689 # `set' quotes correctly as required by POSIX, so do not add quotes. 22690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22691 ;; 22692 esac | 22693 sort 22694) | 22695 sed ' 22696 /^ac_cv_env_/b end 22697 t clear 22698 :clear 22699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22700 t end 22701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22702 :end' >>confcache 22703if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22704 if test -w "$cache_file"; then 22705 test "x$cache_file" != "x/dev/null" && 22706 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 22707echo "$as_me: updating cache $cache_file" >&6;} 22708 cat confcache >$cache_file 22709 else 22710 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 22711echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22712 fi 22713fi 22714rm -f confcache 22715 22716test "x$prefix" = xNONE && prefix=$ac_default_prefix 22717# Let make expand exec_prefix. 22718test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22719 22720DEFS=-DHAVE_CONFIG_H 22721 22722ac_libobjs= 22723ac_ltlibobjs= 22724for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22725 # 1. Remove the extension, and $U if already installed. 22726 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22727 ac_i=`echo "$ac_i" | sed "$ac_script"` 22728 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22729 # will be set to the directory where LIBOBJS objects are built. 22730 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22731 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 22732done 22733LIBOBJS=$ac_libobjs 22734 22735LTLIBOBJS=$ac_ltlibobjs 22736 22737 22738if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 22739 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 22740Usually this means the macro was only invoked conditionally." >&5 22741echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 22742Usually this means the macro was only invoked conditionally." >&2;} 22743 { (exit 1); exit 1; }; } 22744fi 22745if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 22746 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 22747Usually this means the macro was only invoked conditionally." >&5 22748echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 22749Usually this means the macro was only invoked conditionally." >&2;} 22750 { (exit 1); exit 1; }; } 22751fi 22752 22753: ${CONFIG_STATUS=./config.status} 22754ac_clean_files_save=$ac_clean_files 22755ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22756{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 22757echo "$as_me: creating $CONFIG_STATUS" >&6;} 22758cat >$CONFIG_STATUS <<_ACEOF 22759#! $SHELL 22760# Generated by $as_me. 22761# Run this file to recreate the current configuration. 22762# Compiler output produced by configure, useful for debugging 22763# configure, is in config.log if it exists. 22764 22765debug=false 22766ac_cs_recheck=false 22767ac_cs_silent=false 22768SHELL=\${CONFIG_SHELL-$SHELL} 22769_ACEOF 22770 22771cat >>$CONFIG_STATUS <<\_ACEOF 22772## --------------------- ## 22773## M4sh Initialization. ## 22774## --------------------- ## 22775 22776# Be Bourne compatible 22777if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22778 emulate sh 22779 NULLCMD=: 22780 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22781 # is contrary to our usage. Disable this feature. 22782 alias -g '${1+"$@"}'='"$@"' 22783 setopt NO_GLOB_SUBST 22784else 22785 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 22786fi 22787BIN_SH=xpg4; export BIN_SH # for Tru64 22788DUALCASE=1; export DUALCASE # for MKS sh 22789 22790 22791# PATH needs CR 22792# Avoid depending upon Character Ranges. 22793as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22794as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22795as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22796as_cr_digits='0123456789' 22797as_cr_alnum=$as_cr_Letters$as_cr_digits 22798 22799# The user is always right. 22800if test "${PATH_SEPARATOR+set}" != set; then 22801 echo "#! /bin/sh" >conf$$.sh 22802 echo "exit 0" >>conf$$.sh 22803 chmod +x conf$$.sh 22804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 22805 PATH_SEPARATOR=';' 22806 else 22807 PATH_SEPARATOR=: 22808 fi 22809 rm -f conf$$.sh 22810fi 22811 22812# Support unset when possible. 22813if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 22814 as_unset=unset 22815else 22816 as_unset=false 22817fi 22818 22819 22820# IFS 22821# We need space, tab and new line, in precisely that order. Quoting is 22822# there to prevent editors from complaining about space-tab. 22823# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22824# splitting by setting IFS to empty value.) 22825as_nl=' 22826' 22827IFS=" "" $as_nl" 22828 22829# Find who we are. Look in the path if we contain no directory separator. 22830case $0 in 22831 *[\\/]* ) as_myself=$0 ;; 22832 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22833for as_dir in $PATH 22834do 22835 IFS=$as_save_IFS 22836 test -z "$as_dir" && as_dir=. 22837 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22838done 22839IFS=$as_save_IFS 22840 22841 ;; 22842esac 22843# We did not find ourselves, most probably we were run as `sh COMMAND' 22844# in which case we are not to be found in the path. 22845if test "x$as_myself" = x; then 22846 as_myself=$0 22847fi 22848if test ! -f "$as_myself"; then 22849 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22850 { (exit 1); exit 1; } 22851fi 22852 22853# Work around bugs in pre-3.0 UWIN ksh. 22854for as_var in ENV MAIL MAILPATH 22855do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22856done 22857PS1='$ ' 22858PS2='> ' 22859PS4='+ ' 22860 22861# NLS nuisances. 22862for as_var in \ 22863 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 22864 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 22865 LC_TELEPHONE LC_TIME 22866do 22867 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 22868 eval $as_var=C; export $as_var 22869 else 22870 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 22871 fi 22872done 22873 22874# Required to use basename. 22875if expr a : '\(a\)' >/dev/null 2>&1 && 22876 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22877 as_expr=expr 22878else 22879 as_expr=false 22880fi 22881 22882if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22883 as_basename=basename 22884else 22885 as_basename=false 22886fi 22887 22888 22889# Name of the executable. 22890as_me=`$as_basename -- "$0" || 22891$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22892 X"$0" : 'X\(//\)$' \| \ 22893 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22894echo X/"$0" | 22895 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22896 s//\1/ 22897 q 22898 } 22899 /^X\/\(\/\/\)$/{ 22900 s//\1/ 22901 q 22902 } 22903 /^X\/\(\/\).*/{ 22904 s//\1/ 22905 q 22906 } 22907 s/.*/./; q'` 22908 22909# CDPATH. 22910$as_unset CDPATH 22911 22912 22913 22914 as_lineno_1=$LINENO 22915 as_lineno_2=$LINENO 22916 test "x$as_lineno_1" != "x$as_lineno_2" && 22917 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 22918 22919 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 22920 # uniformly replaced by the line number. The first 'sed' inserts a 22921 # line-number line after each line using $LINENO; the second 'sed' 22922 # does the real work. The second script uses 'N' to pair each 22923 # line-number line with the line containing $LINENO, and appends 22924 # trailing '-' during substitution so that $LINENO is not a special 22925 # case at line end. 22926 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 22927 # scripts with optimization help from Paolo Bonzini. Blame Lee 22928 # E. McMahon (1931-1989) for sed's syntax. :-) 22929 sed -n ' 22930 p 22931 /[$]LINENO/= 22932 ' <$as_myself | 22933 sed ' 22934 s/[$]LINENO.*/&-/ 22935 t lineno 22936 b 22937 :lineno 22938 N 22939 :loop 22940 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 22941 t loop 22942 s/-\n.*// 22943 ' >$as_me.lineno && 22944 chmod +x "$as_me.lineno" || 22945 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 22946 { (exit 1); exit 1; }; } 22947 22948 # Don't try to exec as it changes $[0], causing all sort of problems 22949 # (the dirname of $[0] is not the place where we might find the 22950 # original and so on. Autoconf is especially sensitive to this). 22951 . "./$as_me.lineno" 22952 # Exit status is that of the last command. 22953 exit 22954} 22955 22956 22957if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22958 as_dirname=dirname 22959else 22960 as_dirname=false 22961fi 22962 22963ECHO_C= ECHO_N= ECHO_T= 22964case `echo -n x` in 22965-n*) 22966 case `echo 'x\c'` in 22967 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22968 *) ECHO_C='\c';; 22969 esac;; 22970*) 22971 ECHO_N='-n';; 22972esac 22973 22974if expr a : '\(a\)' >/dev/null 2>&1 && 22975 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22976 as_expr=expr 22977else 22978 as_expr=false 22979fi 22980 22981rm -f conf$$ conf$$.exe conf$$.file 22982if test -d conf$$.dir; then 22983 rm -f conf$$.dir/conf$$.file 22984else 22985 rm -f conf$$.dir 22986 mkdir conf$$.dir 22987fi 22988echo >conf$$.file 22989if ln -s conf$$.file conf$$ 2>/dev/null; then 22990 as_ln_s='ln -s' 22991 # ... but there are two gotchas: 22992 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22993 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22994 # In both cases, we have to default to `cp -p'. 22995 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22996 as_ln_s='cp -p' 22997elif ln conf$$.file conf$$ 2>/dev/null; then 22998 as_ln_s=ln 22999else 23000 as_ln_s='cp -p' 23001fi 23002rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23003rmdir conf$$.dir 2>/dev/null 23004 23005if mkdir -p . 2>/dev/null; then 23006 as_mkdir_p=: 23007else 23008 test -d ./-p && rmdir ./-p 23009 as_mkdir_p=false 23010fi 23011 23012# Find out whether ``test -x'' works. Don't use a zero-byte file, as 23013# systems may use methods other than mode bits to determine executability. 23014cat >conf$$.file <<_ASEOF 23015#! /bin/sh 23016exit 0 23017_ASEOF 23018chmod +x conf$$.file 23019if test -x conf$$.file >/dev/null 2>&1; then 23020 as_executable_p="test -x" 23021else 23022 as_executable_p=: 23023fi 23024rm -f conf$$.file 23025 23026# Sed expression to map a string onto a valid CPP name. 23027as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23028 23029# Sed expression to map a string onto a valid variable name. 23030as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23031 23032 23033exec 6>&1 23034 23035# Save the log message, to keep $[0] and so on meaningful, and to 23036# report actual input values of CONFIG_FILES etc. instead of their 23037# values after options handling. 23038ac_log=" 23039This file was extended by LLVM $as_me 3.4svn, which was 23040generated by GNU Autoconf 2.60. Invocation command line was 23041 23042 CONFIG_FILES = $CONFIG_FILES 23043 CONFIG_HEADERS = $CONFIG_HEADERS 23044 CONFIG_LINKS = $CONFIG_LINKS 23045 CONFIG_COMMANDS = $CONFIG_COMMANDS 23046 $ $0 $@ 23047 23048on `(hostname || uname -n) 2>/dev/null | sed 1q` 23049" 23050 23051_ACEOF 23052 23053cat >>$CONFIG_STATUS <<_ACEOF 23054# Files that config.status was made for. 23055config_files="$ac_config_files" 23056config_headers="$ac_config_headers" 23057config_commands="$ac_config_commands" 23058 23059_ACEOF 23060 23061cat >>$CONFIG_STATUS <<\_ACEOF 23062ac_cs_usage="\ 23063\`$as_me' instantiates files from templates according to the 23064current configuration. 23065 23066Usage: $0 [OPTIONS] [FILE]... 23067 23068 -h, --help print this help, then exit 23069 -V, --version print version number, then exit 23070 -q, --quiet do not print progress messages 23071 -d, --debug don't remove temporary files 23072 --recheck update $as_me by reconfiguring in the same conditions 23073 --file=FILE[:TEMPLATE] 23074 instantiate the configuration file FILE 23075 --header=FILE[:TEMPLATE] 23076 instantiate the configuration header FILE 23077 23078Configuration files: 23079$config_files 23080 23081Configuration headers: 23082$config_headers 23083 23084Configuration commands: 23085$config_commands 23086 23087Report bugs to <bug-autoconf@gnu.org>." 23088 23089_ACEOF 23090cat >>$CONFIG_STATUS <<_ACEOF 23091ac_cs_version="\\ 23092LLVM config.status 3.4svn 23093configured by $0, generated by GNU Autoconf 2.60, 23094 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 23095 23096Copyright (C) 2006 Free Software Foundation, Inc. 23097This config.status script is free software; the Free Software Foundation 23098gives unlimited permission to copy, distribute and modify it." 23099 23100ac_pwd='$ac_pwd' 23101srcdir='$srcdir' 23102INSTALL='$INSTALL' 23103_ACEOF 23104 23105cat >>$CONFIG_STATUS <<\_ACEOF 23106# If no file are specified by the user, then we need to provide default 23107# value. By we need to know if files were specified by the user. 23108ac_need_defaults=: 23109while test $# != 0 23110do 23111 case $1 in 23112 --*=*) 23113 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23114 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23115 ac_shift=: 23116 ;; 23117 *) 23118 ac_option=$1 23119 ac_optarg=$2 23120 ac_shift=shift 23121 ;; 23122 esac 23123 23124 case $ac_option in 23125 # Handling of the options. 23126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23127 ac_cs_recheck=: ;; 23128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23129 echo "$ac_cs_version"; exit ;; 23130 --debug | --debu | --deb | --de | --d | -d ) 23131 debug=: ;; 23132 --file | --fil | --fi | --f ) 23133 $ac_shift 23134 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 23135 ac_need_defaults=false;; 23136 --header | --heade | --head | --hea ) 23137 $ac_shift 23138 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 23139 ac_need_defaults=false;; 23140 --he | --h) 23141 # Conflict between --help and --header 23142 { echo "$as_me: error: ambiguous option: $1 23143Try \`$0 --help' for more information." >&2 23144 { (exit 1); exit 1; }; };; 23145 --help | --hel | -h ) 23146 echo "$ac_cs_usage"; exit ;; 23147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23148 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23149 ac_cs_silent=: ;; 23150 23151 # This is an error. 23152 -*) { echo "$as_me: error: unrecognized option: $1 23153Try \`$0 --help' for more information." >&2 23154 { (exit 1); exit 1; }; } ;; 23155 23156 *) ac_config_targets="$ac_config_targets $1" 23157 ac_need_defaults=false ;; 23158 23159 esac 23160 shift 23161done 23162 23163ac_configure_extra_args= 23164 23165if $ac_cs_silent; then 23166 exec 6>/dev/null 23167 ac_configure_extra_args="$ac_configure_extra_args --silent" 23168fi 23169 23170_ACEOF 23171cat >>$CONFIG_STATUS <<_ACEOF 23172if \$ac_cs_recheck; then 23173 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 23174 CONFIG_SHELL=$SHELL 23175 export CONFIG_SHELL 23176 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23177fi 23178 23179_ACEOF 23180cat >>$CONFIG_STATUS <<\_ACEOF 23181exec 5>>config.log 23182{ 23183 echo 23184 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23185## Running $as_me. ## 23186_ASBOX 23187 echo "$ac_log" 23188} >&5 23189 23190_ACEOF 23191cat >>$CONFIG_STATUS <<_ACEOF 23192# 23193# INIT-COMMANDS 23194# 23195llvm_src="${srcdir}" 23196 23197_ACEOF 23198 23199cat >>$CONFIG_STATUS <<\_ACEOF 23200 23201# Handling of arguments. 23202for ac_config_target in $ac_config_targets 23203do 23204 case $ac_config_target in 23205 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 23206 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 23207 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 23208 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 23209 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 23210 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 23211 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 23212 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 23213 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 23214 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 23215 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; 23216 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; 23217 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; 23218 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 23219 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 23220 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 23221 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 23222 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 23223 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 23224 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 23225 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 23226 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 23227 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 23228 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 23229 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 23230 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 23231 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 23232 23233 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 23234echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 23235 { (exit 1); exit 1; }; };; 23236 esac 23237done 23238 23239 23240# If the user did not use the arguments to specify the items to instantiate, 23241# then the envvar interface is used. Set only those that are not. 23242# We use the long form for the default assignment because of an extremely 23243# bizarre bug on SunOS 4.1.3. 23244if $ac_need_defaults; then 23245 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23246 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23247 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23248fi 23249 23250# Have a temporary directory for convenience. Make it in the build tree 23251# simply because there is no reason against having it here, and in addition, 23252# creating and moving files from /tmp can sometimes cause problems. 23253# Hook for its removal unless debugging. 23254# Note that there is a small window in which the directory will not be cleaned: 23255# after its creation but before its name has been assigned to `$tmp'. 23256$debug || 23257{ 23258 tmp= 23259 trap 'exit_status=$? 23260 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 23261' 0 23262 trap '{ (exit 1); exit 1; }' 1 2 13 15 23263} 23264# Create a (secure) tmp directory for tmp files. 23265 23266{ 23267 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23268 test -n "$tmp" && test -d "$tmp" 23269} || 23270{ 23271 tmp=./conf$$-$RANDOM 23272 (umask 077 && mkdir "$tmp") 23273} || 23274{ 23275 echo "$me: cannot create a temporary directory in ." >&2 23276 { (exit 1); exit 1; } 23277} 23278 23279# 23280# Set up the sed scripts for CONFIG_FILES section. 23281# 23282 23283# No need to generate the scripts if there are no CONFIG_FILES. 23284# This happens for instance when ./config.status config.h 23285if test -n "$CONFIG_FILES"; then 23286 23287_ACEOF 23288 23289 23290 23291ac_delim='%!_!# ' 23292for ac_last_try in false false false false false :; do 23293 cat >conf$$subs.sed <<_ACEOF 23294SHELL!$SHELL$ac_delim 23295PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 23296PACKAGE_NAME!$PACKAGE_NAME$ac_delim 23297PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 23298PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 23299PACKAGE_STRING!$PACKAGE_STRING$ac_delim 23300PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 23301exec_prefix!$exec_prefix$ac_delim 23302prefix!$prefix$ac_delim 23303program_transform_name!$program_transform_name$ac_delim 23304bindir!$bindir$ac_delim 23305sbindir!$sbindir$ac_delim 23306libexecdir!$libexecdir$ac_delim 23307datarootdir!$datarootdir$ac_delim 23308datadir!$datadir$ac_delim 23309sysconfdir!$sysconfdir$ac_delim 23310sharedstatedir!$sharedstatedir$ac_delim 23311localstatedir!$localstatedir$ac_delim 23312includedir!$includedir$ac_delim 23313oldincludedir!$oldincludedir$ac_delim 23314docdir!$docdir$ac_delim 23315infodir!$infodir$ac_delim 23316htmldir!$htmldir$ac_delim 23317dvidir!$dvidir$ac_delim 23318pdfdir!$pdfdir$ac_delim 23319psdir!$psdir$ac_delim 23320libdir!$libdir$ac_delim 23321localedir!$localedir$ac_delim 23322mandir!$mandir$ac_delim 23323DEFS!$DEFS$ac_delim 23324ECHO_C!$ECHO_C$ac_delim 23325ECHO_N!$ECHO_N$ac_delim 23326ECHO_T!$ECHO_T$ac_delim 23327LIBS!$LIBS$ac_delim 23328build_alias!$build_alias$ac_delim 23329host_alias!$host_alias$ac_delim 23330target_alias!$target_alias$ac_delim 23331LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 23332CC!$CC$ac_delim 23333CFLAGS!$CFLAGS$ac_delim 23334LDFLAGS!$LDFLAGS$ac_delim 23335CPPFLAGS!$CPPFLAGS$ac_delim 23336ac_ct_CC!$ac_ct_CC$ac_delim 23337EXEEXT!$EXEEXT$ac_delim 23338OBJEXT!$OBJEXT$ac_delim 23339CXX!$CXX$ac_delim 23340CXXFLAGS!$CXXFLAGS$ac_delim 23341ac_ct_CXX!$ac_ct_CXX$ac_delim 23342CPP!$CPP$ac_delim 23343subdirs!$subdirs$ac_delim 23344ENABLE_POLLY!$ENABLE_POLLY$ac_delim 23345LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 23346build!$build$ac_delim 23347build_cpu!$build_cpu$ac_delim 23348build_vendor!$build_vendor$ac_delim 23349build_os!$build_os$ac_delim 23350host!$host$ac_delim 23351host_cpu!$host_cpu$ac_delim 23352host_vendor!$host_vendor$ac_delim 23353host_os!$host_os$ac_delim 23354target!$target$ac_delim 23355target_cpu!$target_cpu$ac_delim 23356target_vendor!$target_vendor$ac_delim 23357target_os!$target_os$ac_delim 23358OS!$OS$ac_delim 23359HOST_OS!$HOST_OS$ac_delim 23360TARGET_OS!$TARGET_OS$ac_delim 23361LINKALL!$LINKALL$ac_delim 23362NOLINKALL!$NOLINKALL$ac_delim 23363LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 23364LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 23365ARCH!$ARCH$ac_delim 23366HOST_ARCH!$HOST_ARCH$ac_delim 23367ENDIAN!$ENDIAN$ac_delim 23368GREP!$GREP$ac_delim 23369EGREP!$EGREP$ac_delim 23370LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 23371BUILD_CC!$BUILD_CC$ac_delim 23372BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 23373BUILD_CXX!$BUILD_CXX$ac_delim 23374CVSBUILD!$CVSBUILD$ac_delim 23375ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 23376ENABLE_CXX11!$ENABLE_CXX11$ac_delim 23377ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim 23378ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim 23379ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim 23380ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 23381ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 23382DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 23383ENABLE_WERROR!$ENABLE_WERROR$ac_delim 23384ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 23385EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 23386DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 23387DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 23388KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim 23389JIT!$JIT$ac_delim 23390TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 23391_ACEOF 23392 23393 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23394 break 23395 elif $ac_last_try; then 23396 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23397echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23398 { (exit 1); exit 1; }; } 23399 else 23400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23401 fi 23402done 23403 23404ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23405if test -n "$ac_eof"; then 23406 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23407 ac_eof=`expr $ac_eof + 1` 23408fi 23409 23410cat >>$CONFIG_STATUS <<_ACEOF 23411cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 23412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23413_ACEOF 23414sed ' 23415s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23416s/^/s,@/; s/!/@,|#_!!_#|/ 23417:n 23418t n 23419s/'"$ac_delim"'$/,g/; t 23420s/$/\\/; p 23421N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23422' >>$CONFIG_STATUS <conf$$subs.sed 23423rm -f conf$$subs.sed 23424cat >>$CONFIG_STATUS <<_ACEOF 23425CEOF$ac_eof 23426_ACEOF 23427 23428 23429ac_delim='%!_!# ' 23430for ac_last_try in false false false false false :; do 23431 cat >conf$$subs.sed <<_ACEOF 23432ENABLE_DOCS!$ENABLE_DOCS$ac_delim 23433ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 23434LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim 23435ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 23436LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim 23437ENABLE_PIC!$ENABLE_PIC$ac_delim 23438ENABLE_SHARED!$ENABLE_SHARED$ac_delim 23439ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 23440ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 23441ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim 23442TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 23443LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 23444LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 23445LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 23446LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 23447OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 23448EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 23449EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 23450CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim 23451BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 23452INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim 23453NM!$NM$ac_delim 23454ifGNUmake!$ifGNUmake$ac_delim 23455LN_S!$LN_S$ac_delim 23456CMP!$CMP$ac_delim 23457CP!$CP$ac_delim 23458DATE!$DATE$ac_delim 23459FIND!$FIND$ac_delim 23460MKDIR!$MKDIR$ac_delim 23461MV!$MV$ac_delim 23462RANLIB!$RANLIB$ac_delim 23463AR!$AR$ac_delim 23464RM!$RM$ac_delim 23465SED!$SED$ac_delim 23466TAR!$TAR$ac_delim 23467BINPWD!$BINPWD$ac_delim 23468GRAPHVIZ!$GRAPHVIZ$ac_delim 23469DOT!$DOT$ac_delim 23470FDP!$FDP$ac_delim 23471NEATO!$NEATO$ac_delim 23472TWOPI!$TWOPI$ac_delim 23473CIRCO!$CIRCO$ac_delim 23474GV!$GV$ac_delim 23475DOTTY!$DOTTY$ac_delim 23476XDOT_PY!$XDOT_PY$ac_delim 23477INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 23478INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 23479INSTALL_DATA!$INSTALL_DATA$ac_delim 23480BZIP2!$BZIP2$ac_delim 23481CAT!$CAT$ac_delim 23482DOXYGEN!$DOXYGEN$ac_delim 23483GROFF!$GROFF$ac_delim 23484GZIPBIN!$GZIPBIN$ac_delim 23485PDFROFF!$PDFROFF$ac_delim 23486ZIP!$ZIP$ac_delim 23487OCAMLC!$OCAMLC$ac_delim 23488OCAMLOPT!$OCAMLOPT$ac_delim 23489OCAMLDEP!$OCAMLDEP$ac_delim 23490OCAMLDOC!$OCAMLDOC$ac_delim 23491GAS!$GAS$ac_delim 23492HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 23493INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 23494INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 23495CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 23496CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 23497LIBADD_DL!$LIBADD_DL$ac_delim 23498NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 23499NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 23500COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 23501NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim 23502NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim 23503PYTHON!$PYTHON$ac_delim 23504USE_UDIS86!$USE_UDIS86$ac_delim 23505USE_OPROFILE!$USE_OPROFILE$ac_delim 23506USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim 23507XML2CONFIG!$XML2CONFIG$ac_delim 23508LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim 23509LIBXML2_INC!$LIBXML2_INC$ac_delim 23510CXXCPP!$CXXCPP$ac_delim 23511HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 23512HAVE_LIBZ!$HAVE_LIBZ$ac_delim 23513HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 23514MMAP_FILE!$MMAP_FILE$ac_delim 23515SHLIBEXT!$SHLIBEXT$ac_delim 23516SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 23517LLVM_PREFIX!$LLVM_PREFIX$ac_delim 23518LLVM_BINDIR!$LLVM_BINDIR$ac_delim 23519LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 23520LLVM_DATADIR!$LLVM_DATADIR$ac_delim 23521LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 23522LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 23523LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 23524LLVM_INFODIR!$LLVM_INFODIR$ac_delim 23525LLVM_MANDIR!$LLVM_MANDIR$ac_delim 23526LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 23527BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 23528ALL_BINDINGS!$ALL_BINDINGS$ac_delim 23529_ACEOF 23530 23531 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 23532 break 23533 elif $ac_last_try; then 23534 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23535echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23536 { (exit 1); exit 1; }; } 23537 else 23538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23539 fi 23540done 23541 23542ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23543if test -n "$ac_eof"; then 23544 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23545 ac_eof=`expr $ac_eof + 1` 23546fi 23547 23548cat >>$CONFIG_STATUS <<_ACEOF 23549cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 23550/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23551_ACEOF 23552sed ' 23553s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23554s/^/s,@/; s/!/@,|#_!!_#|/ 23555:n 23556t n 23557s/'"$ac_delim"'$/,g/; t 23558s/$/\\/; p 23559N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23560' >>$CONFIG_STATUS <conf$$subs.sed 23561rm -f conf$$subs.sed 23562cat >>$CONFIG_STATUS <<_ACEOF 23563CEOF$ac_eof 23564_ACEOF 23565 23566 23567ac_delim='%!_!# ' 23568for ac_last_try in false false false false false :; do 23569 cat >conf$$subs.sed <<_ACEOF 23570OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 23571ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 23572RPATH!$RPATH$ac_delim 23573RDYNAMIC!$RDYNAMIC$ac_delim 23574program_prefix!$program_prefix$ac_delim 23575LIBOBJS!$LIBOBJS$ac_delim 23576LTLIBOBJS!$LTLIBOBJS$ac_delim 23577_ACEOF 23578 23579 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then 23580 break 23581 elif $ac_last_try; then 23582 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 23583echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 23584 { (exit 1); exit 1; }; } 23585 else 23586 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23587 fi 23588done 23589 23590ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 23591if test -n "$ac_eof"; then 23592 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 23593 ac_eof=`expr $ac_eof + 1` 23594fi 23595 23596cat >>$CONFIG_STATUS <<_ACEOF 23597cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 23598/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 23599_ACEOF 23600sed ' 23601s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 23602s/^/s,@/; s/!/@,|#_!!_#|/ 23603:n 23604t n 23605s/'"$ac_delim"'$/,g/; t 23606s/$/\\/; p 23607N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 23608' >>$CONFIG_STATUS <conf$$subs.sed 23609rm -f conf$$subs.sed 23610cat >>$CONFIG_STATUS <<_ACEOF 23611:end 23612s/|#_!!_#|//g 23613CEOF$ac_eof 23614_ACEOF 23615 23616 23617# VPATH may cause trouble with some makes, so we remove $(srcdir), 23618# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 23619# trailing colons and then remove the whole line if VPATH becomes empty 23620# (actually we leave an empty line to preserve line numbers). 23621if test "x$srcdir" = x.; then 23622 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 23623s/:*\$(srcdir):*/:/ 23624s/:*\${srcdir}:*/:/ 23625s/:*@srcdir@:*/:/ 23626s/^\([^=]*=[ ]*\):*/\1/ 23627s/:*$// 23628s/^[^=]*=[ ]*$// 23629}' 23630fi 23631 23632cat >>$CONFIG_STATUS <<\_ACEOF 23633fi # test -n "$CONFIG_FILES" 23634 23635 23636for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 23637do 23638 case $ac_tag in 23639 :[FHLC]) ac_mode=$ac_tag; continue;; 23640 esac 23641 case $ac_mode$ac_tag in 23642 :[FHL]*:*);; 23643 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 23644echo "$as_me: error: Invalid tag $ac_tag." >&2;} 23645 { (exit 1); exit 1; }; };; 23646 :[FH]-) ac_tag=-:-;; 23647 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23648 esac 23649 ac_save_IFS=$IFS 23650 IFS=: 23651 set x $ac_tag 23652 IFS=$ac_save_IFS 23653 shift 23654 ac_file=$1 23655 shift 23656 23657 case $ac_mode in 23658 :L) ac_source=$1;; 23659 :[FH]) 23660 ac_file_inputs= 23661 for ac_f 23662 do 23663 case $ac_f in 23664 -) ac_f="$tmp/stdin";; 23665 *) # Look for the file first in the build tree, then in the source tree 23666 # (if the path is not absolute). The absolute path cannot be DOS-style, 23667 # because $ac_f cannot contain `:'. 23668 test -f "$ac_f" || 23669 case $ac_f in 23670 [\\/$]*) false;; 23671 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23672 esac || 23673 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 23674echo "$as_me: error: cannot find input file: $ac_f" >&2;} 23675 { (exit 1); exit 1; }; };; 23676 esac 23677 ac_file_inputs="$ac_file_inputs $ac_f" 23678 done 23679 23680 # Let's still pretend it is `configure' which instantiates (i.e., don't 23681 # use $as_me), people would be surprised to read: 23682 # /* config.h. Generated by config.status. */ 23683 configure_input="Generated from "`IFS=: 23684 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 23685 if test x"$ac_file" != x-; then 23686 configure_input="$ac_file. $configure_input" 23687 { echo "$as_me:$LINENO: creating $ac_file" >&5 23688echo "$as_me: creating $ac_file" >&6;} 23689 fi 23690 23691 case $ac_tag in 23692 *:-:* | *:-) cat >"$tmp/stdin";; 23693 esac 23694 ;; 23695 esac 23696 23697 ac_dir=`$as_dirname -- "$ac_file" || 23698$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23699 X"$ac_file" : 'X\(//\)[^/]' \| \ 23700 X"$ac_file" : 'X\(//\)$' \| \ 23701 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23702echo X"$ac_file" | 23703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23704 s//\1/ 23705 q 23706 } 23707 /^X\(\/\/\)[^/].*/{ 23708 s//\1/ 23709 q 23710 } 23711 /^X\(\/\/\)$/{ 23712 s//\1/ 23713 q 23714 } 23715 /^X\(\/\).*/{ 23716 s//\1/ 23717 q 23718 } 23719 s/.*/./; q'` 23720 { as_dir="$ac_dir" 23721 case $as_dir in #( 23722 -*) as_dir=./$as_dir;; 23723 esac 23724 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23725 as_dirs= 23726 while :; do 23727 case $as_dir in #( 23728 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23729 *) as_qdir=$as_dir;; 23730 esac 23731 as_dirs="'$as_qdir' $as_dirs" 23732 as_dir=`$as_dirname -- "$as_dir" || 23733$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23734 X"$as_dir" : 'X\(//\)[^/]' \| \ 23735 X"$as_dir" : 'X\(//\)$' \| \ 23736 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23737echo X"$as_dir" | 23738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23739 s//\1/ 23740 q 23741 } 23742 /^X\(\/\/\)[^/].*/{ 23743 s//\1/ 23744 q 23745 } 23746 /^X\(\/\/\)$/{ 23747 s//\1/ 23748 q 23749 } 23750 /^X\(\/\).*/{ 23751 s//\1/ 23752 q 23753 } 23754 s/.*/./; q'` 23755 test -d "$as_dir" && break 23756 done 23757 test -z "$as_dirs" || eval "mkdir $as_dirs" 23758 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23759echo "$as_me: error: cannot create directory $as_dir" >&2;} 23760 { (exit 1); exit 1; }; }; } 23761 ac_builddir=. 23762 23763case "$ac_dir" in 23764.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23765*) 23766 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23767 # A ".." for each directory in $ac_dir_suffix. 23768 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23769 case $ac_top_builddir_sub in 23770 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23771 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23772 esac ;; 23773esac 23774ac_abs_top_builddir=$ac_pwd 23775ac_abs_builddir=$ac_pwd$ac_dir_suffix 23776# for backward compatibility: 23777ac_top_builddir=$ac_top_build_prefix 23778 23779case $srcdir in 23780 .) # We are building in place. 23781 ac_srcdir=. 23782 ac_top_srcdir=$ac_top_builddir_sub 23783 ac_abs_top_srcdir=$ac_pwd ;; 23784 [\\/]* | ?:[\\/]* ) # Absolute name. 23785 ac_srcdir=$srcdir$ac_dir_suffix; 23786 ac_top_srcdir=$srcdir 23787 ac_abs_top_srcdir=$srcdir ;; 23788 *) # Relative name. 23789 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23790 ac_top_srcdir=$ac_top_build_prefix$srcdir 23791 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23792esac 23793ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23794 23795 23796 case $ac_mode in 23797 :F) 23798 # 23799 # CONFIG_FILE 23800 # 23801 23802 case $INSTALL in 23803 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23804 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23805 esac 23806_ACEOF 23807 23808cat >>$CONFIG_STATUS <<\_ACEOF 23809# If the template does not know about datarootdir, expand it. 23810# FIXME: This hack should be removed a few years after 2.60. 23811ac_datarootdir_hack=; ac_datarootdir_seen= 23812 23813case `sed -n '/datarootdir/ { 23814 p 23815 q 23816} 23817/@datadir@/p 23818/@docdir@/p 23819/@infodir@/p 23820/@localedir@/p 23821/@mandir@/p 23822' $ac_file_inputs` in 23823*datarootdir*) ac_datarootdir_seen=yes;; 23824*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23825 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23826echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23827_ACEOF 23828cat >>$CONFIG_STATUS <<_ACEOF 23829 ac_datarootdir_hack=' 23830 s&@datadir@&$datadir&g 23831 s&@docdir@&$docdir&g 23832 s&@infodir@&$infodir&g 23833 s&@localedir@&$localedir&g 23834 s&@mandir@&$mandir&g 23835 s&\\\${datarootdir}&$datarootdir&g' ;; 23836esac 23837_ACEOF 23838 23839# Neutralize VPATH when `$srcdir' = `.'. 23840# Shell code in configure.ac might set extrasub. 23841# FIXME: do we really want to maintain this feature? 23842cat >>$CONFIG_STATUS <<_ACEOF 23843 sed "$ac_vpsub 23844$extrasub 23845_ACEOF 23846cat >>$CONFIG_STATUS <<\_ACEOF 23847:t 23848/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23849s&@configure_input@&$configure_input&;t t 23850s&@top_builddir@&$ac_top_builddir_sub&;t t 23851s&@srcdir@&$ac_srcdir&;t t 23852s&@abs_srcdir@&$ac_abs_srcdir&;t t 23853s&@top_srcdir@&$ac_top_srcdir&;t t 23854s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23855s&@builddir@&$ac_builddir&;t t 23856s&@abs_builddir@&$ac_abs_builddir&;t t 23857s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23858s&@INSTALL@&$ac_INSTALL&;t t 23859$ac_datarootdir_hack 23860" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 23861 23862test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23863 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 23864 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 23865 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23866which seems to be undefined. Please make sure it is defined." >&5 23867echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23868which seems to be undefined. Please make sure it is defined." >&2;} 23869 23870 rm -f "$tmp/stdin" 23871 case $ac_file in 23872 -) cat "$tmp/out"; rm -f "$tmp/out";; 23873 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 23874 esac 23875 ;; 23876 :H) 23877 # 23878 # CONFIG_HEADER 23879 # 23880_ACEOF 23881 23882# Transform confdefs.h into a sed script `conftest.defines', that 23883# substitutes the proper values into config.h.in to produce config.h. 23884rm -f conftest.defines conftest.tail 23885# First, append a space to every undef/define line, to ease matching. 23886echo 's/$/ /' >conftest.defines 23887# Then, protect against being on the right side of a sed subst, or in 23888# an unquoted here document, in config.status. If some macros were 23889# called several times there might be several #defines for the same 23890# symbol, which is useless. But do not sort them, since the last 23891# AC_DEFINE must be honored. 23892ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23893# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 23894# NAME is the cpp macro being defined, VALUE is the value it is being given. 23895# PARAMS is the parameter list in the macro definition--in most cases, it's 23896# just an empty string. 23897ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 23898ac_dB='\\)[ (].*,\\1define\\2' 23899ac_dC=' ' 23900ac_dD=' ,' 23901 23902uniq confdefs.h | 23903 sed -n ' 23904 t rset 23905 :rset 23906 s/^[ ]*#[ ]*define[ ][ ]*// 23907 t ok 23908 d 23909 :ok 23910 s/[\\&,]/\\&/g 23911 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 23912 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 23913 ' >>conftest.defines 23914 23915# Remove the space that was appended to ease matching. 23916# Then replace #undef with comments. This is necessary, for 23917# example, in the case of _POSIX_SOURCE, which is predefined and required 23918# on some systems where configure will not decide to define it. 23919# (The regexp can be short, since the line contains either #define or #undef.) 23920echo 's/ $// 23921s,^[ #]*u.*,/* & */,' >>conftest.defines 23922 23923# Break up conftest.defines: 23924ac_max_sed_lines=50 23925 23926# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 23927# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 23928# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 23929# et cetera. 23930ac_in='$ac_file_inputs' 23931ac_out='"$tmp/out1"' 23932ac_nxt='"$tmp/out2"' 23933 23934while : 23935do 23936 # Write a here document: 23937 cat >>$CONFIG_STATUS <<_ACEOF 23938 # First, check the format of the line: 23939 cat >"\$tmp/defines.sed" <<\\CEOF 23940/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 23941/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 23942b 23943:def 23944_ACEOF 23945 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 23946 echo 'CEOF 23947 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 23948 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 23949 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 23950 grep . conftest.tail >/dev/null || break 23951 rm -f conftest.defines 23952 mv conftest.tail conftest.defines 23953done 23954rm -f conftest.defines conftest.tail 23955 23956echo "ac_result=$ac_in" >>$CONFIG_STATUS 23957cat >>$CONFIG_STATUS <<\_ACEOF 23958 if test x"$ac_file" != x-; then 23959 echo "/* $configure_input */" >"$tmp/config.h" 23960 cat "$ac_result" >>"$tmp/config.h" 23961 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 23962 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 23963echo "$as_me: $ac_file is unchanged" >&6;} 23964 else 23965 rm -f $ac_file 23966 mv "$tmp/config.h" $ac_file 23967 fi 23968 else 23969 echo "/* $configure_input */" 23970 cat "$ac_result" 23971 fi 23972 rm -f "$tmp/out12" 23973 ;; 23974 23975 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 23976echo "$as_me: executing $ac_file commands" >&6;} 23977 ;; 23978 esac 23979 23980 23981 case $ac_file$ac_mode in 23982 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 23983 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 23984 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 23985 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 23986 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 23987 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 23988 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 23989 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 23990 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 23991 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 23992 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 23993 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 23994 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 23995 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 23996 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 23997 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 23998 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 23999 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 24000 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 24001 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 24002 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 24003 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 24004 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 24005 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 24006 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 24007 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 24008 24009 esac 24010done # for ac_tag 24011 24012 24013{ (exit 0); exit 0; } 24014_ACEOF 24015chmod +x $CONFIG_STATUS 24016ac_clean_files=$ac_clean_files_save 24017 24018 24019# configure is writing to config.log, and then calls config.status. 24020# config.status does its own redirection, appending to config.log. 24021# Unfortunately, on DOS this fails, as config.log is still kept open 24022# by configure, so config.status won't be able to write to it; its 24023# output is simply discarded. So we exec the FD to /dev/null, 24024# effectively closing config.log, so it can be properly (re)opened and 24025# appended to by config.status. When coming back to configure, we 24026# need to make the FD available again. 24027if test "$no_create" != yes; then 24028 ac_cs_success=: 24029 ac_config_status_args= 24030 test "$silent" = yes && 24031 ac_config_status_args="$ac_config_status_args --quiet" 24032 exec 5>/dev/null 24033 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24034 exec 5>>config.log 24035 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24036 # would make configure fail if this is the last instruction. 24037 $ac_cs_success || { (exit 1); exit 1; } 24038fi 24039 24040# 24041# CONFIG_SUBDIRS section. 24042# 24043if test "$no_recursion" != yes; then 24044 24045 # Remove --cache-file and --srcdir arguments so they do not pile up. 24046 ac_sub_configure_args= 24047 ac_prev= 24048 eval "set x $ac_configure_args" 24049 shift 24050 for ac_arg 24051 do 24052 if test -n "$ac_prev"; then 24053 ac_prev= 24054 continue 24055 fi 24056 case $ac_arg in 24057 -cache-file | --cache-file | --cache-fil | --cache-fi \ 24058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 24059 ac_prev=cache_file ;; 24060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 24061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 24062 | --c=*) 24063 ;; 24064 --config-cache | -C) 24065 ;; 24066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 24067 ac_prev=srcdir ;; 24068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 24069 ;; 24070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 24071 ac_prev=prefix ;; 24072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 24073 ;; 24074 *) 24075 case $ac_arg in 24076 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24077 esac 24078 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 24079 esac 24080 done 24081 24082 # Always prepend --prefix to ensure using the same prefix 24083 # in subdir configurations. 24084 ac_arg="--prefix=$prefix" 24085 case $ac_arg in 24086 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24087 esac 24088 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 24089 24090 ac_popdir=`pwd` 24091 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 24092 24093 # Do not complain, so a configure script can configure whichever 24094 # parts of a large source tree are present. 24095 test -d "$srcdir/$ac_dir" || continue 24096 24097 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 24098 echo "$as_me:$LINENO: $ac_msg" >&5 24099 echo "$ac_msg" >&6 24100 { as_dir="$ac_dir" 24101 case $as_dir in #( 24102 -*) as_dir=./$as_dir;; 24103 esac 24104 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 24105 as_dirs= 24106 while :; do 24107 case $as_dir in #( 24108 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 24109 *) as_qdir=$as_dir;; 24110 esac 24111 as_dirs="'$as_qdir' $as_dirs" 24112 as_dir=`$as_dirname -- "$as_dir" || 24113$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24114 X"$as_dir" : 'X\(//\)[^/]' \| \ 24115 X"$as_dir" : 'X\(//\)$' \| \ 24116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 24117echo X"$as_dir" | 24118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24119 s//\1/ 24120 q 24121 } 24122 /^X\(\/\/\)[^/].*/{ 24123 s//\1/ 24124 q 24125 } 24126 /^X\(\/\/\)$/{ 24127 s//\1/ 24128 q 24129 } 24130 /^X\(\/\).*/{ 24131 s//\1/ 24132 q 24133 } 24134 s/.*/./; q'` 24135 test -d "$as_dir" && break 24136 done 24137 test -z "$as_dirs" || eval "mkdir $as_dirs" 24138 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 24139echo "$as_me: error: cannot create directory $as_dir" >&2;} 24140 { (exit 1); exit 1; }; }; } 24141 ac_builddir=. 24142 24143case "$ac_dir" in 24144.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24145*) 24146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 24147 # A ".." for each directory in $ac_dir_suffix. 24148 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 24149 case $ac_top_builddir_sub in 24150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24152 esac ;; 24153esac 24154ac_abs_top_builddir=$ac_pwd 24155ac_abs_builddir=$ac_pwd$ac_dir_suffix 24156# for backward compatibility: 24157ac_top_builddir=$ac_top_build_prefix 24158 24159case $srcdir in 24160 .) # We are building in place. 24161 ac_srcdir=. 24162 ac_top_srcdir=$ac_top_builddir_sub 24163 ac_abs_top_srcdir=$ac_pwd ;; 24164 [\\/]* | ?:[\\/]* ) # Absolute name. 24165 ac_srcdir=$srcdir$ac_dir_suffix; 24166 ac_top_srcdir=$srcdir 24167 ac_abs_top_srcdir=$srcdir ;; 24168 *) # Relative name. 24169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24170 ac_top_srcdir=$ac_top_build_prefix$srcdir 24171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24172esac 24173ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24174 24175 24176 cd "$ac_dir" 24177 24178 # Check for guested configure; otherwise get Cygnus style configure. 24179 if test -f "$ac_srcdir/configure.gnu"; then 24180 ac_sub_configure=$ac_srcdir/configure.gnu 24181 elif test -f "$ac_srcdir/configure"; then 24182 ac_sub_configure=$ac_srcdir/configure 24183 elif test -f "$ac_srcdir/configure.in"; then 24184 # This should be Cygnus configure. 24185 ac_sub_configure=$ac_aux_dir/configure 24186 else 24187 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 24188echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 24189 ac_sub_configure= 24190 fi 24191 24192 # The recursion is here. 24193 if test -n "$ac_sub_configure"; then 24194 # Make the cache file name correct relative to the subdirectory. 24195 case $cache_file in 24196 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 24197 *) # Relative name. 24198 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 24199 esac 24200 24201 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 24202echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 24203 # The eval makes quoting arguments work. 24204 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 24205 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 24206 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 24207echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 24208 { (exit 1); exit 1; }; } 24209 fi 24210 24211 cd "$ac_popdir" 24212 done 24213fi 24214 24215