configure revision 6c440fcea52e27b3befcf2ad5f7dcc58a15a2e58
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for LLVM 3.3svn. 4# 5# Report bugs to <http://llvm.org/bugs/>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11# 12# Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign. 13## --------------------- ## 14## M4sh Initialization. ## 15## --------------------- ## 16 17# Be Bourne compatible 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.3svn' 565PACKAGE_STRING='LLVM 3.3svn' 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 706ENABLE_PIC 707ENABLE_SHARED 708ENABLE_EMBED_STDCXX 709ENABLE_TIMESTAMPS 710ENABLE_BACKTRACES 711TARGETS_TO_BUILD 712LLVM_ENUM_TARGETS 713LLVM_ENUM_ASM_PRINTERS 714LLVM_ENUM_ASM_PARSERS 715LLVM_ENUM_DISASSEMBLERS 716OPTIMIZE_OPTION 717EXTRA_OPTIONS 718EXTRA_LD_OPTIONS 719CLANG_SRC_ROOT 720BINUTILS_INCDIR 721INTERNAL_PREFIX 722NM 723ifGNUmake 724LN_S 725CMP 726CP 727DATE 728FIND 729MKDIR 730MV 731RANLIB 732AR 733RM 734SED 735TAR 736BINPWD 737GRAPHVIZ 738DOT 739FDP 740NEATO 741TWOPI 742CIRCO 743GV 744DOTTY 745XDOT_PY 746INSTALL_PROGRAM 747INSTALL_SCRIPT 748INSTALL_DATA 749BZIP2 750CAT 751DOXYGEN 752GROFF 753GZIPBIN 754PDFROFF 755ZIP 756OCAMLC 757OCAMLOPT 758OCAMLDEP 759OCAMLDOC 760GAS 761HAVE_LINK_VERSION_SCRIPT 762INSTALL_LTDL_TRUE 763INSTALL_LTDL_FALSE 764CONVENIENCE_LTDL_TRUE 765CONVENIENCE_LTDL_FALSE 766LIBADD_DL 767NO_VARIADIC_MACROS 768NO_MISSING_FIELD_INITIALIZERS 769NO_NESTED_ANON_TYPES 770COVERED_SWITCH_DEFAULT 771NO_MAYBE_UNINITIALIZED 772NO_UNINITIALIZED 773PYTHON 774USE_UDIS86 775USE_OPROFILE 776USE_INTEL_JITEVENTS 777XML2CONFIG 778LIBXML2_LIBS 779LIBXML2_INC 780HAVE_PTHREAD 781HUGE_VAL_SANITY 782MMAP_FILE 783SHLIBEXT 784SHLIBPATH_VAR 785LLVM_PREFIX 786LLVM_BINDIR 787LLVM_LIBDIR 788LLVM_DATADIR 789LLVM_DOCSDIR 790LLVM_ETCDIR 791LLVM_INCLUDEDIR 792LLVM_INFODIR 793LLVM_MANDIR 794LLVM_CONFIGTIME 795BINDINGS_TO_BUILD 796ALL_BINDINGS 797OCAML_LIBDIR 798ENABLE_VISIBILITY_INLINES_HIDDEN 799RPATH 800RDYNAMIC 801program_prefix 802LIBOBJS 803LTLIBOBJS' 804ac_subst_files='' 805 ac_precious_vars='build_alias 806host_alias 807target_alias 808CC 809CFLAGS 810LDFLAGS 811CPPFLAGS 812CXX 813CXXFLAGS 814CCC 815CPP' 816ac_subdirs_all='projects/llvm-gcc 817projects/test-suite 818projects/llvm-test 819projects/poolalloc 820projects/llvm-poolalloc 821projects/sample 822projects/privbracket 823projects/llvm-stacker 824projects/llvm-reopt 825projects/llvm-java 826projects/llvm-tv 827projects/safecode 828projects/llvm-kernel 829tools/polly' 830 831# Initialize some variables set by options. 832ac_init_help= 833ac_init_version=false 834# The variables have the same names as the options, with 835# dashes changed to underlines. 836cache_file=/dev/null 837exec_prefix=NONE 838no_create= 839no_recursion= 840prefix=NONE 841program_prefix=NONE 842program_suffix=NONE 843program_transform_name=s,x,x, 844silent= 845site= 846srcdir= 847verbose= 848x_includes=NONE 849x_libraries=NONE 850 851# Installation directory options. 852# These are left unexpanded so users can "make install exec_prefix=/foo" 853# and all the variables that are supposed to be based on exec_prefix 854# by default will actually change. 855# Use braces instead of parens because sh, perl, etc. also accept them. 856# (The list follows the same order as the GNU Coding Standards.) 857bindir='${exec_prefix}/bin' 858sbindir='${exec_prefix}/sbin' 859libexecdir='${exec_prefix}/libexec' 860datarootdir='${prefix}/share' 861datadir='${datarootdir}' 862sysconfdir='${prefix}/etc' 863sharedstatedir='${prefix}/com' 864localstatedir='${prefix}/var' 865includedir='${prefix}/include' 866oldincludedir='/usr/include' 867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 868infodir='${datarootdir}/info' 869htmldir='${docdir}' 870dvidir='${docdir}' 871pdfdir='${docdir}' 872psdir='${docdir}' 873libdir='${exec_prefix}/lib' 874localedir='${datarootdir}/locale' 875mandir='${datarootdir}/man' 876 877ac_prev= 878ac_dashdash= 879for ac_option 880do 881 # If the previous option needs an argument, assign it. 882 if test -n "$ac_prev"; then 883 eval $ac_prev=\$ac_option 884 ac_prev= 885 continue 886 fi 887 888 case $ac_option in 889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 890 *) ac_optarg=yes ;; 891 esac 892 893 # Accept the important Cygnus configure options, so we can diagnose typos. 894 895 case $ac_dashdash$ac_option in 896 --) 897 ac_dashdash=yes ;; 898 899 -bindir | --bindir | --bindi | --bind | --bin | --bi) 900 ac_prev=bindir ;; 901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 902 bindir=$ac_optarg ;; 903 904 -build | --build | --buil | --bui | --bu) 905 ac_prev=build_alias ;; 906 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 907 build_alias=$ac_optarg ;; 908 909 -cache-file | --cache-file | --cache-fil | --cache-fi \ 910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 911 ac_prev=cache_file ;; 912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 914 cache_file=$ac_optarg ;; 915 916 --config-cache | -C) 917 cache_file=config.cache ;; 918 919 -datadir | --datadir | --datadi | --datad) 920 ac_prev=datadir ;; 921 -datadir=* | --datadir=* | --datadi=* | --datad=*) 922 datadir=$ac_optarg ;; 923 924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 925 | --dataroo | --dataro | --datar) 926 ac_prev=datarootdir ;; 927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 929 datarootdir=$ac_optarg ;; 930 931 -disable-* | --disable-*) 932 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 933 # Reject names that are not valid shell variable names. 934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 936 { (exit 1); exit 1; }; } 937 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 938 eval enable_$ac_feature=no ;; 939 940 -docdir | --docdir | --docdi | --doc | --do) 941 ac_prev=docdir ;; 942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 943 docdir=$ac_optarg ;; 944 945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 946 ac_prev=dvidir ;; 947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 948 dvidir=$ac_optarg ;; 949 950 -enable-* | --enable-*) 951 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 952 # Reject names that are not valid shell variable names. 953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 955 { (exit 1); exit 1; }; } 956 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 957 eval enable_$ac_feature=\$ac_optarg ;; 958 959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 961 | --exec | --exe | --ex) 962 ac_prev=exec_prefix ;; 963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 965 | --exec=* | --exe=* | --ex=*) 966 exec_prefix=$ac_optarg ;; 967 968 -gas | --gas | --ga | --g) 969 # Obsolete; use --with-gas. 970 with_gas=yes ;; 971 972 -help | --help | --hel | --he | -h) 973 ac_init_help=long ;; 974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 975 ac_init_help=recursive ;; 976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 977 ac_init_help=short ;; 978 979 -host | --host | --hos | --ho) 980 ac_prev=host_alias ;; 981 -host=* | --host=* | --hos=* | --ho=*) 982 host_alias=$ac_optarg ;; 983 984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 985 ac_prev=htmldir ;; 986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 987 | --ht=*) 988 htmldir=$ac_optarg ;; 989 990 -includedir | --includedir | --includedi | --included | --include \ 991 | --includ | --inclu | --incl | --inc) 992 ac_prev=includedir ;; 993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 994 | --includ=* | --inclu=* | --incl=* | --inc=*) 995 includedir=$ac_optarg ;; 996 997 -infodir | --infodir | --infodi | --infod | --info | --inf) 998 ac_prev=infodir ;; 999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1000 infodir=$ac_optarg ;; 1001 1002 -libdir | --libdir | --libdi | --libd) 1003 ac_prev=libdir ;; 1004 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1005 libdir=$ac_optarg ;; 1006 1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1008 | --libexe | --libex | --libe) 1009 ac_prev=libexecdir ;; 1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1011 | --libexe=* | --libex=* | --libe=*) 1012 libexecdir=$ac_optarg ;; 1013 1014 -localedir | --localedir | --localedi | --localed | --locale) 1015 ac_prev=localedir ;; 1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1017 localedir=$ac_optarg ;; 1018 1019 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1020 | --localstate | --localstat | --localsta | --localst | --locals) 1021 ac_prev=localstatedir ;; 1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1024 localstatedir=$ac_optarg ;; 1025 1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1027 ac_prev=mandir ;; 1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1029 mandir=$ac_optarg ;; 1030 1031 -nfp | --nfp | --nf) 1032 # Obsolete; use --without-fp. 1033 with_fp=no ;; 1034 1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1036 | --no-cr | --no-c | -n) 1037 no_create=yes ;; 1038 1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1041 no_recursion=yes ;; 1042 1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1045 | --oldin | --oldi | --old | --ol | --o) 1046 ac_prev=oldincludedir ;; 1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1050 oldincludedir=$ac_optarg ;; 1051 1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1053 ac_prev=prefix ;; 1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1055 prefix=$ac_optarg ;; 1056 1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1058 | --program-pre | --program-pr | --program-p) 1059 ac_prev=program_prefix ;; 1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1062 program_prefix=$ac_optarg ;; 1063 1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1065 | --program-suf | --program-su | --program-s) 1066 ac_prev=program_suffix ;; 1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1069 program_suffix=$ac_optarg ;; 1070 1071 -program-transform-name | --program-transform-name \ 1072 | --program-transform-nam | --program-transform-na \ 1073 | --program-transform-n | --program-transform- \ 1074 | --program-transform | --program-transfor \ 1075 | --program-transfo | --program-transf \ 1076 | --program-trans | --program-tran \ 1077 | --progr-tra | --program-tr | --program-t) 1078 ac_prev=program_transform_name ;; 1079 -program-transform-name=* | --program-transform-name=* \ 1080 | --program-transform-nam=* | --program-transform-na=* \ 1081 | --program-transform-n=* | --program-transform-=* \ 1082 | --program-transform=* | --program-transfor=* \ 1083 | --program-transfo=* | --program-transf=* \ 1084 | --program-trans=* | --program-tran=* \ 1085 | --progr-tra=* | --program-tr=* | --program-t=*) 1086 program_transform_name=$ac_optarg ;; 1087 1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1089 ac_prev=pdfdir ;; 1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1091 pdfdir=$ac_optarg ;; 1092 1093 -psdir | --psdir | --psdi | --psd | --ps) 1094 ac_prev=psdir ;; 1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1096 psdir=$ac_optarg ;; 1097 1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1099 | -silent | --silent | --silen | --sile | --sil) 1100 silent=yes ;; 1101 1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1103 ac_prev=sbindir ;; 1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1105 | --sbi=* | --sb=*) 1106 sbindir=$ac_optarg ;; 1107 1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1110 | --sharedst | --shareds | --shared | --share | --shar \ 1111 | --sha | --sh) 1112 ac_prev=sharedstatedir ;; 1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1116 | --sha=* | --sh=*) 1117 sharedstatedir=$ac_optarg ;; 1118 1119 -site | --site | --sit) 1120 ac_prev=site ;; 1121 -site=* | --site=* | --sit=*) 1122 site=$ac_optarg ;; 1123 1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1125 ac_prev=srcdir ;; 1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1127 srcdir=$ac_optarg ;; 1128 1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1130 | --syscon | --sysco | --sysc | --sys | --sy) 1131 ac_prev=sysconfdir ;; 1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1134 sysconfdir=$ac_optarg ;; 1135 1136 -target | --target | --targe | --targ | --tar | --ta | --t) 1137 ac_prev=target_alias ;; 1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1139 target_alias=$ac_optarg ;; 1140 1141 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1142 verbose=yes ;; 1143 1144 -version | --version | --versio | --versi | --vers | -V) 1145 ac_init_version=: ;; 1146 1147 -with-* | --with-*) 1148 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1149 # Reject names that are not valid shell variable names. 1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1151 { echo "$as_me: error: invalid package name: $ac_package" >&2 1152 { (exit 1); exit 1; }; } 1153 ac_package=`echo $ac_package| sed 's/-/_/g'` 1154 eval with_$ac_package=\$ac_optarg ;; 1155 1156 -without-* | --without-*) 1157 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1160 { echo "$as_me: error: invalid package name: $ac_package" >&2 1161 { (exit 1); exit 1; }; } 1162 ac_package=`echo $ac_package | sed 's/-/_/g'` 1163 eval with_$ac_package=no ;; 1164 1165 --x) 1166 # Obsolete; use --with-x. 1167 with_x=yes ;; 1168 1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1170 | --x-incl | --x-inc | --x-in | --x-i) 1171 ac_prev=x_includes ;; 1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1174 x_includes=$ac_optarg ;; 1175 1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1178 ac_prev=x_libraries ;; 1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1181 x_libraries=$ac_optarg ;; 1182 1183 -*) { echo "$as_me: error: unrecognized option: $ac_option 1184Try \`$0 --help' for more information." >&2 1185 { (exit 1); exit 1; }; } 1186 ;; 1187 1188 *=*) 1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1190 # Reject names that are not valid shell variable names. 1191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1193 { (exit 1); exit 1; }; } 1194 eval $ac_envvar=\$ac_optarg 1195 export $ac_envvar ;; 1196 1197 *) 1198 # FIXME: should be removed in autoconf 3.0. 1199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1203 ;; 1204 1205 esac 1206done 1207 1208if test -n "$ac_prev"; then 1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1210 { echo "$as_me: error: missing argument to $ac_option" >&2 1211 { (exit 1); exit 1; }; } 1212fi 1213 1214# Be sure to have absolute directory names. 1215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1216 datadir sysconfdir sharedstatedir localstatedir includedir \ 1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1218 libdir localedir mandir 1219do 1220 eval ac_val=\$$ac_var 1221 case $ac_val in 1222 [\\/$]* | ?:[\\/]* ) continue;; 1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1224 esac 1225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1226 { (exit 1); exit 1; }; } 1227done 1228 1229# There might be people who depend on the old broken behavior: `$host' 1230# used to hold the argument of --host etc. 1231# FIXME: To remove some day. 1232build=$build_alias 1233host=$host_alias 1234target=$target_alias 1235 1236# FIXME: To remove some day. 1237if test "x$host_alias" != x; then 1238 if test "x$build_alias" = x; then 1239 cross_compiling=maybe 1240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1241 If a cross compiler is detected then cross compile mode will be used." >&2 1242 elif test "x$build_alias" != "x$host_alias"; then 1243 cross_compiling=yes 1244 fi 1245fi 1246 1247ac_tool_prefix= 1248test -n "$host_alias" && ac_tool_prefix=$host_alias- 1249 1250test "$silent" = yes && exec 6>/dev/null 1251 1252 1253ac_pwd=`pwd` && test -n "$ac_pwd" && 1254ac_ls_di=`ls -di .` && 1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1256 { echo "$as_me: error: Working directory cannot be determined" >&2 1257 { (exit 1); exit 1; }; } 1258test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1259 { echo "$as_me: error: pwd does not report name of working directory" >&2 1260 { (exit 1); exit 1; }; } 1261 1262 1263# Find the source files, if location was not specified. 1264if test -z "$srcdir"; then 1265 ac_srcdir_defaulted=yes 1266 # Try the directory containing this script, then the parent directory. 1267 ac_confdir=`$as_dirname -- "$0" || 1268$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1269 X"$0" : 'X\(//\)[^/]' \| \ 1270 X"$0" : 'X\(//\)$' \| \ 1271 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1272echo X"$0" | 1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1274 s//\1/ 1275 q 1276 } 1277 /^X\(\/\/\)[^/].*/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)$/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\).*/{ 1286 s//\1/ 1287 q 1288 } 1289 s/.*/./; q'` 1290 srcdir=$ac_confdir 1291 if test ! -r "$srcdir/$ac_unique_file"; then 1292 srcdir=.. 1293 fi 1294else 1295 ac_srcdir_defaulted=no 1296fi 1297if test ! -r "$srcdir/$ac_unique_file"; then 1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1300 { (exit 1); exit 1; }; } 1301fi 1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1303ac_abs_confdir=`( 1304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1305 { (exit 1); exit 1; }; } 1306 pwd)` 1307# When building in place, set srcdir=. 1308if test "$ac_abs_confdir" = "$ac_pwd"; then 1309 srcdir=. 1310fi 1311# Remove unnecessary trailing slashes from srcdir. 1312# Double slashes in file names in object file debugging info 1313# mess up M-x gdb in Emacs. 1314case $srcdir in 1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1316esac 1317for ac_var in $ac_precious_vars; do 1318 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_env_${ac_var}_value=\$${ac_var} 1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1321 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1322done 1323 1324# 1325# Report the --help message. 1326# 1327if test "$ac_init_help" = "long"; then 1328 # Omit some internal or obsolete options to make the list less imposing. 1329 # This message is too long to be a string in the A/UX 3.1 sh. 1330 cat <<_ACEOF 1331\`configure' configures LLVM 3.3svn to adapt to many kinds of systems. 1332 1333Usage: $0 [OPTION]... [VAR=VALUE]... 1334 1335To assign environment variables (e.g., CC, CFLAGS...), specify them as 1336VAR=VALUE. See below for descriptions of some of the useful variables. 1337 1338Defaults for the options are specified in brackets. 1339 1340Configuration: 1341 -h, --help display this help and exit 1342 --help=short display options specific to this package 1343 --help=recursive display the short help of all the included packages 1344 -V, --version display version information and exit 1345 -q, --quiet, --silent do not print \`checking...' messages 1346 --cache-file=FILE cache test results in FILE [disabled] 1347 -C, --config-cache alias for \`--cache-file=config.cache' 1348 -n, --no-create do not create output files 1349 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1350 1351Installation directories: 1352 --prefix=PREFIX install architecture-independent files in PREFIX 1353 [$ac_default_prefix] 1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1355 [PREFIX] 1356 1357By default, \`make install' will install all the files in 1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1359an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1360for instance \`--prefix=\$HOME'. 1361 1362For better control, use the options below. 1363 1364Fine tuning of the installation directories: 1365 --bindir=DIR user executables [EPREFIX/bin] 1366 --sbindir=DIR system admin executables [EPREFIX/sbin] 1367 --libexecdir=DIR program executables [EPREFIX/libexec] 1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1371 --libdir=DIR object code libraries [EPREFIX/lib] 1372 --includedir=DIR C header files [PREFIX/include] 1373 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1376 --infodir=DIR info documentation [DATAROOTDIR/info] 1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1378 --mandir=DIR man documentation [DATAROOTDIR/man] 1379 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1380 --htmldir=DIR html documentation [DOCDIR] 1381 --dvidir=DIR dvi documentation [DOCDIR] 1382 --pdfdir=DIR pdf documentation [DOCDIR] 1383 --psdir=DIR ps documentation [DOCDIR] 1384_ACEOF 1385 1386 cat <<\_ACEOF 1387 1388System types: 1389 --build=BUILD configure for building on BUILD [guessed] 1390 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1391 --target=TARGET configure for building compilers for TARGET [HOST] 1392_ACEOF 1393fi 1394 1395if test -n "$ac_init_help"; then 1396 case $ac_init_help in 1397 short | recursive ) echo "Configuration of LLVM 3.3svn:";; 1398 esac 1399 cat <<\_ACEOF 1400 1401Optional Features: 1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1404 --enable-polly Use polly if available (default is YES) 1405 --enable-libcpp Use libc++ if available (default is NO) 1406 --enable-cxx11 Use c++11 if available (default is NO) 1407 --enable-clang-arcmt Enable building of clang ARCMT (default is YES) 1408 --enable-clang-static-analyzer 1409 Enable building of clang Static Analyzer (default is 1410 YES) 1411 --enable-clang-rewriter Enable building of clang rewriter (default is YES) 1412 --enable-optimized Compile with optimizations enabled (default is NO) 1413 --enable-profiling Compile with profiling enabled (default is NO) 1414 --enable-assertions Compile with assertion checks enabled (default is 1415 YES) 1416 --enable-werror Compile with -Werror enabled (default is NO) 1417 --enable-expensive-checks 1418 Compile with expensive debug checks enabled (default 1419 is NO) 1420 --enable-debug-runtime Build runtime libs with debug symbols (default is 1421 NO) 1422 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1423 optimization is on and YES if it's off) 1424 --enable-keep-symbols Do not strip installed executables) 1425 --enable-jit Enable Just In Time Compiling (default is YES) 1426 --enable-docs Build documents (default is YES) 1427 --enable-doxygen Build doxygen documentation (default is NO) 1428 --enable-threads Use threads if available (default is YES) 1429 --enable-pthreads Use pthreads if available (default is YES) 1430 --enable-pic Build LLVM with Position Independent Code (default 1431 is YES) 1432 --enable-shared Build a shared library and link tools against it 1433 (default is NO) 1434 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1435 Win32 DLL (default is NO) 1436 --enable-timestamps Enable embedding timestamp information in build 1437 (default is YES) 1438 --enable-backtraces Enable embedding backtraces on crash (default is 1439 YES) 1440 --enable-targets Build specific host targets: all or 1441 target1,target2,... Valid targets are: host, x86, 1442 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon, 1443 xcore, msp430, nvptx, and cpp (default=all) 1444 --enable-experimental-targets 1445 Build experimental host targets: disable or 1446 target1,target2,... (default=disable) 1447 --enable-bindings Build specific language bindings: 1448 all,auto,none,{binding-name} (default=auto) 1449 --enable-libffi Check for the presence of libffi (default is NO) 1450 --enable-ltdl-install install libltdl 1451 1452Optional Packages: 1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1455 --with-optimize-option Select the compiler options to use for optimized 1456 builds 1457 --with-extra-options Specify additional options to compile LLVM with 1458 --with-extra-ld-options Specify additional options to link LLVM with 1459 --with-ocaml-libdir Specify install location for ocaml bindings (default 1460 is stdlib) 1461 --with-clang-srcdir Directory to the out-of-tree Clang source 1462 --with-clang-resource-dir 1463 Relative directory from the Clang binary for 1464 resource files 1465 --with-c-include-dirs Colon separated list of directories clang will 1466 search for headers 1467 --with-gcc-toolchain Directory where gcc is installed. 1468 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1469 --with-binutils-include Specify path to binutils/include/ containing 1470 plugin-api.h file for gold plugin. 1471 --with-bug-report-url Specify the URL where bug reports should be 1472 submitted (default=http://llvm.org/bugs/) 1473 --with-internal-prefix Installation directory for internal files 1474 --with-python path to python 1475 --with-udis86=<path> Use udis86 external x86 disassembler library 1476 --with-oprofile=<prefix> 1477 Tell OProfile >= 0.9.4 how to symbolize JIT output 1478 --with-intel-jitevents Notify Intel JIT profiling API of generated code 1479 1480 1481Some influential environment variables: 1482 CC C compiler command 1483 CFLAGS C compiler flags 1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1485 nonstandard directory <lib dir> 1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1487 you have headers in a nonstandard directory <include dir> 1488 CXX C++ compiler command 1489 CXXFLAGS C++ compiler flags 1490 CPP C preprocessor 1491 1492Use these variables to override the choices made by `configure' or to help 1493it to find libraries and programs with nonstandard names/locations. 1494 1495Report bugs to <http://llvm.org/bugs/>. 1496_ACEOF 1497ac_status=$? 1498fi 1499 1500if test "$ac_init_help" = "recursive"; then 1501 # If there are subdirs, report their specific --help. 1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1503 test -d "$ac_dir" || continue 1504 ac_builddir=. 1505 1506case "$ac_dir" in 1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508*) 1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1510 # A ".." for each directory in $ac_dir_suffix. 1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1512 case $ac_top_builddir_sub in 1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1515 esac ;; 1516esac 1517ac_abs_top_builddir=$ac_pwd 1518ac_abs_builddir=$ac_pwd$ac_dir_suffix 1519# for backward compatibility: 1520ac_top_builddir=$ac_top_build_prefix 1521 1522case $srcdir in 1523 .) # We are building in place. 1524 ac_srcdir=. 1525 ac_top_srcdir=$ac_top_builddir_sub 1526 ac_abs_top_srcdir=$ac_pwd ;; 1527 [\\/]* | ?:[\\/]* ) # Absolute name. 1528 ac_srcdir=$srcdir$ac_dir_suffix; 1529 ac_top_srcdir=$srcdir 1530 ac_abs_top_srcdir=$srcdir ;; 1531 *) # Relative name. 1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1533 ac_top_srcdir=$ac_top_build_prefix$srcdir 1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1535esac 1536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1537 1538 cd "$ac_dir" || { ac_status=$?; continue; } 1539 # Check for guested configure. 1540 if test -f "$ac_srcdir/configure.gnu"; then 1541 echo && 1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1543 elif test -f "$ac_srcdir/configure"; then 1544 echo && 1545 $SHELL "$ac_srcdir/configure" --help=recursive 1546 else 1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1548 fi || ac_status=$? 1549 cd "$ac_pwd" || { ac_status=$?; break; } 1550 done 1551fi 1552 1553test -n "$ac_init_help" && exit $ac_status 1554if $ac_init_version; then 1555 cat <<\_ACEOF 1556LLVM configure 3.3svn 1557generated by GNU Autoconf 2.60 1558 1559Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15602002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1561This configure script is free software; the Free Software Foundation 1562gives unlimited permission to copy, distribute and modify it. 1563 1564Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign. 1565_ACEOF 1566 exit 1567fi 1568cat >config.log <<_ACEOF 1569This file contains any messages produced by compilers while 1570running configure, to aid debugging if configure makes a mistake. 1571 1572It was created by LLVM $as_me 3.3svn, which was 1573generated by GNU Autoconf 2.60. Invocation command line was 1574 1575 $ $0 $@ 1576 1577_ACEOF 1578exec 5>>config.log 1579{ 1580cat <<_ASUNAME 1581## --------- ## 1582## Platform. ## 1583## --------- ## 1584 1585hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1586uname -m = `(uname -m) 2>/dev/null || echo unknown` 1587uname -r = `(uname -r) 2>/dev/null || echo unknown` 1588uname -s = `(uname -s) 2>/dev/null || echo unknown` 1589uname -v = `(uname -v) 2>/dev/null || echo unknown` 1590 1591/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1592/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1593 1594/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1595/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1596/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1597/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1598/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1599/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1600/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1601 1602_ASUNAME 1603 1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1605for as_dir in $PATH 1606do 1607 IFS=$as_save_IFS 1608 test -z "$as_dir" && as_dir=. 1609 echo "PATH: $as_dir" 1610done 1611IFS=$as_save_IFS 1612 1613} >&5 1614 1615cat >&5 <<_ACEOF 1616 1617 1618## ----------- ## 1619## Core tests. ## 1620## ----------- ## 1621 1622_ACEOF 1623 1624 1625# Keep a trace of the command line. 1626# Strip out --no-create and --no-recursion so they do not pile up. 1627# Strip out --silent because we don't want to record it for future runs. 1628# Also quote any args containing shell meta-characters. 1629# Make two passes to allow for proper duplicate-argument suppression. 1630ac_configure_args= 1631ac_configure_args0= 1632ac_configure_args1= 1633ac_must_keep_next=false 1634for ac_pass in 1 2 1635do 1636 for ac_arg 1637 do 1638 case $ac_arg in 1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1641 | -silent | --silent | --silen | --sile | --sil) 1642 continue ;; 1643 *\'*) 1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1645 esac 1646 case $ac_pass in 1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1648 2) 1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1650 if test $ac_must_keep_next = true; then 1651 ac_must_keep_next=false # Got value, back to normal. 1652 else 1653 case $ac_arg in 1654 *=* | --config-cache | -C | -disable-* | --disable-* \ 1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1657 | -with-* | --with-* | -without-* | --without-* | --x) 1658 case "$ac_configure_args0 " in 1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1660 esac 1661 ;; 1662 -* ) ac_must_keep_next=true ;; 1663 esac 1664 fi 1665 ac_configure_args="$ac_configure_args '$ac_arg'" 1666 ;; 1667 esac 1668 done 1669done 1670$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1671$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1672 1673# When interrupted or exit'd, cleanup temporary files, and complete 1674# config.log. We remove comments because anyway the quotes in there 1675# would cause problems or look ugly. 1676# WARNING: Use '\'' to represent an apostrophe within the trap. 1677# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1678trap 'exit_status=$? 1679 # Save into config.log some information that might help in debugging. 1680 { 1681 echo 1682 1683 cat <<\_ASBOX 1684## ---------------- ## 1685## Cache variables. ## 1686## ---------------- ## 1687_ASBOX 1688 echo 1689 # The following way of writing the cache mishandles newlines in values, 1690( 1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1692 eval ac_val=\$$ac_var 1693 case $ac_val in #( 1694 *${as_nl}*) 1695 case $ac_var in #( 1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1697echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1698 esac 1699 case $ac_var in #( 1700 _ | IFS | as_nl) ;; #( 1701 *) $as_unset $ac_var ;; 1702 esac ;; 1703 esac 1704 done 1705 (set) 2>&1 | 1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1707 *${as_nl}ac_space=\ *) 1708 sed -n \ 1709 "s/'\''/'\''\\\\'\'''\''/g; 1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1711 ;; #( 1712 *) 1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1714 ;; 1715 esac | 1716 sort 1717) 1718 echo 1719 1720 cat <<\_ASBOX 1721## ----------------- ## 1722## Output variables. ## 1723## ----------------- ## 1724_ASBOX 1725 echo 1726 for ac_var in $ac_subst_vars 1727 do 1728 eval ac_val=\$$ac_var 1729 case $ac_val in 1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1731 esac 1732 echo "$ac_var='\''$ac_val'\''" 1733 done | sort 1734 echo 1735 1736 if test -n "$ac_subst_files"; then 1737 cat <<\_ASBOX 1738## ------------------- ## 1739## File substitutions. ## 1740## ------------------- ## 1741_ASBOX 1742 echo 1743 for ac_var in $ac_subst_files 1744 do 1745 eval ac_val=\$$ac_var 1746 case $ac_val in 1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1748 esac 1749 echo "$ac_var='\''$ac_val'\''" 1750 done | sort 1751 echo 1752 fi 1753 1754 if test -s confdefs.h; then 1755 cat <<\_ASBOX 1756## ----------- ## 1757## confdefs.h. ## 1758## ----------- ## 1759_ASBOX 1760 echo 1761 cat confdefs.h 1762 echo 1763 fi 1764 test "$ac_signal" != 0 && 1765 echo "$as_me: caught signal $ac_signal" 1766 echo "$as_me: exit $exit_status" 1767 } >&5 1768 rm -f core *.core core.conftest.* && 1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1770 exit $exit_status 1771' 0 1772for ac_signal in 1 2 13 15; do 1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1774done 1775ac_signal=0 1776 1777# confdefs.h avoids OS command line length limits that DEFS can exceed. 1778rm -f -r conftest* confdefs.h 1779 1780# Predefined preprocessor variables. 1781 1782cat >>confdefs.h <<_ACEOF 1783#define PACKAGE_NAME "$PACKAGE_NAME" 1784_ACEOF 1785 1786 1787cat >>confdefs.h <<_ACEOF 1788#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1789_ACEOF 1790 1791 1792cat >>confdefs.h <<_ACEOF 1793#define PACKAGE_VERSION "$PACKAGE_VERSION" 1794_ACEOF 1795 1796 1797cat >>confdefs.h <<_ACEOF 1798#define PACKAGE_STRING "$PACKAGE_STRING" 1799_ACEOF 1800 1801 1802cat >>confdefs.h <<_ACEOF 1803#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1804_ACEOF 1805 1806 1807# Let the site file select an alternate cache file if it wants to. 1808# Prefer explicitly selected file to automatically selected ones. 1809if test -n "$CONFIG_SITE"; then 1810 set x "$CONFIG_SITE" 1811elif test "x$prefix" != xNONE; then 1812 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1813else 1814 set x "$ac_default_prefix/share/config.site" \ 1815 "$ac_default_prefix/etc/config.site" 1816fi 1817shift 1818for ac_site_file 1819do 1820 if test -r "$ac_site_file"; then 1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1822echo "$as_me: loading site script $ac_site_file" >&6;} 1823 sed 's/^/| /' "$ac_site_file" >&5 1824 . "$ac_site_file" 1825 fi 1826done 1827 1828if test -r "$cache_file"; then 1829 # Some versions of bash will fail to source /dev/null (special 1830 # files actually), so we avoid doing that. 1831 if test -f "$cache_file"; then 1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1833echo "$as_me: loading cache $cache_file" >&6;} 1834 case $cache_file in 1835 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1836 *) . "./$cache_file";; 1837 esac 1838 fi 1839else 1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1841echo "$as_me: creating cache $cache_file" >&6;} 1842 >$cache_file 1843fi 1844 1845# Check that the precious variables saved in the cache have kept the same 1846# value. 1847ac_cache_corrupted=false 1848for ac_var in $ac_precious_vars; do 1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1850 eval ac_new_set=\$ac_env_${ac_var}_set 1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1852 eval ac_new_val=\$ac_env_${ac_var}_value 1853 case $ac_old_set,$ac_new_set in 1854 set,) 1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1856echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1857 ac_cache_corrupted=: ;; 1858 ,set) 1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1860echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1861 ac_cache_corrupted=: ;; 1862 ,);; 1863 *) 1864 if test "x$ac_old_val" != "x$ac_new_val"; then 1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1866echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1868echo "$as_me: former value: $ac_old_val" >&2;} 1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1870echo "$as_me: current value: $ac_new_val" >&2;} 1871 ac_cache_corrupted=: 1872 fi;; 1873 esac 1874 # Pass precious variables to config.status. 1875 if test "$ac_new_set" = set; then 1876 case $ac_new_val in 1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1878 *) ac_arg=$ac_var=$ac_new_val ;; 1879 esac 1880 case " $ac_configure_args " in 1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1883 esac 1884 fi 1885done 1886if $ac_cache_corrupted; then 1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1888echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1890echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1891 { (exit 1); exit 1; }; } 1892fi 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918ac_ext=c 1919ac_cpp='$CPP $CPPFLAGS' 1920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1922ac_compiler_gnu=$ac_cv_c_compiler_gnu 1923 1924 1925 1926cat >>confdefs.h <<\_ACEOF 1927#define LLVM_VERSION_MAJOR 3 1928_ACEOF 1929 1930 1931cat >>confdefs.h <<\_ACEOF 1932#define LLVM_VERSION_MINOR 3 1933_ACEOF 1934 1935 1936LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign." 1937 1938 1939 1940 1941 1942 1943 1944ac_aux_dir= 1945for ac_dir in autoconf "$srcdir"/autoconf; do 1946 if test -f "$ac_dir/install-sh"; then 1947 ac_aux_dir=$ac_dir 1948 ac_install_sh="$ac_aux_dir/install-sh -c" 1949 break 1950 elif test -f "$ac_dir/install.sh"; then 1951 ac_aux_dir=$ac_dir 1952 ac_install_sh="$ac_aux_dir/install.sh -c" 1953 break 1954 elif test -f "$ac_dir/shtool"; then 1955 ac_aux_dir=$ac_dir 1956 ac_install_sh="$ac_aux_dir/shtool install -c" 1957 break 1958 fi 1959done 1960if test -z "$ac_aux_dir"; then 1961 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1962echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1963 { (exit 1); exit 1; }; } 1964fi 1965 1966# These three variables are undocumented and unsupported, 1967# and are intended to be withdrawn in a future Autoconf release. 1968# They can cause serious problems if a builder's source tree is in a directory 1969# whose full name contains unusual characters. 1970ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1971ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1972ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1973 1974 1975 1976if test ${srcdir} != "." ; then 1977 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1978 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1979echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1980 { (exit 1); exit 1; }; } 1981 fi 1982fi 1983 1984${CFLAGS=} 1985${CXXFLAGS=} 1986 1987ac_ext=c 1988ac_cpp='$CPP $CPPFLAGS' 1989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1991ac_compiler_gnu=$ac_cv_c_compiler_gnu 1992if test -n "$ac_tool_prefix"; then 1993 for ac_prog in clang llvm-gcc gcc 1994 do 1995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1996set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1997{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1999if test "${ac_cv_prog_CC+set}" = set; then 2000 echo $ECHO_N "(cached) $ECHO_C" >&6 2001else 2002 if test -n "$CC"; then 2003 ac_cv_prog_CC="$CC" # Let the user override the test. 2004else 2005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2006for as_dir in $PATH 2007do 2008 IFS=$as_save_IFS 2009 test -z "$as_dir" && as_dir=. 2010 for ac_exec_ext in '' $ac_executable_extensions; do 2011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2014 break 2 2015 fi 2016done 2017done 2018IFS=$as_save_IFS 2019 2020fi 2021fi 2022CC=$ac_cv_prog_CC 2023if test -n "$CC"; then 2024 { echo "$as_me:$LINENO: result: $CC" >&5 2025echo "${ECHO_T}$CC" >&6; } 2026else 2027 { echo "$as_me:$LINENO: result: no" >&5 2028echo "${ECHO_T}no" >&6; } 2029fi 2030 2031 2032 test -n "$CC" && break 2033 done 2034fi 2035if test -z "$CC"; then 2036 ac_ct_CC=$CC 2037 for ac_prog in clang llvm-gcc gcc 2038do 2039 # Extract the first word of "$ac_prog", so it can be a program name with args. 2040set dummy $ac_prog; ac_word=$2 2041{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2043if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2044 echo $ECHO_N "(cached) $ECHO_C" >&6 2045else 2046 if test -n "$ac_ct_CC"; then 2047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2048else 2049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2050for as_dir in $PATH 2051do 2052 IFS=$as_save_IFS 2053 test -z "$as_dir" && as_dir=. 2054 for ac_exec_ext in '' $ac_executable_extensions; do 2055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2056 ac_cv_prog_ac_ct_CC="$ac_prog" 2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2058 break 2 2059 fi 2060done 2061done 2062IFS=$as_save_IFS 2063 2064fi 2065fi 2066ac_ct_CC=$ac_cv_prog_ac_ct_CC 2067if test -n "$ac_ct_CC"; then 2068 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2069echo "${ECHO_T}$ac_ct_CC" >&6; } 2070else 2071 { echo "$as_me:$LINENO: result: no" >&5 2072echo "${ECHO_T}no" >&6; } 2073fi 2074 2075 2076 test -n "$ac_ct_CC" && break 2077done 2078 2079 if test "x$ac_ct_CC" = x; then 2080 CC="" 2081 else 2082 case $cross_compiling:$ac_tool_warned in 2083yes:) 2084{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2085whose name does not start with the host triplet. If you think this 2086configuration is useful to you, please write to autoconf@gnu.org." >&5 2087echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2088whose name does not start with the host triplet. If you think this 2089configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2090ac_tool_warned=yes ;; 2091esac 2092 CC=$ac_ct_CC 2093 fi 2094fi 2095 2096 2097test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2098See \`config.log' for more details." >&5 2099echo "$as_me: error: no acceptable C compiler found in \$PATH 2100See \`config.log' for more details." >&2;} 2101 { (exit 1); exit 1; }; } 2102 2103# Provide some information about the compiler. 2104echo "$as_me:$LINENO: checking for C compiler version" >&5 2105ac_compiler=`set X $ac_compile; echo $2` 2106{ (ac_try="$ac_compiler --version >&5" 2107case "(($ac_try" in 2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2109 *) ac_try_echo=$ac_try;; 2110esac 2111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2112 (eval "$ac_compiler --version >&5") 2>&5 2113 ac_status=$? 2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2115 (exit $ac_status); } 2116{ (ac_try="$ac_compiler -v >&5" 2117case "(($ac_try" in 2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2119 *) ac_try_echo=$ac_try;; 2120esac 2121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2122 (eval "$ac_compiler -v >&5") 2>&5 2123 ac_status=$? 2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2125 (exit $ac_status); } 2126{ (ac_try="$ac_compiler -V >&5" 2127case "(($ac_try" in 2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2129 *) ac_try_echo=$ac_try;; 2130esac 2131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2132 (eval "$ac_compiler -V >&5") 2>&5 2133 ac_status=$? 2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2135 (exit $ac_status); } 2136 2137cat >conftest.$ac_ext <<_ACEOF 2138/* confdefs.h. */ 2139_ACEOF 2140cat confdefs.h >>conftest.$ac_ext 2141cat >>conftest.$ac_ext <<_ACEOF 2142/* end confdefs.h. */ 2143 2144int 2145main () 2146{ 2147 2148 ; 2149 return 0; 2150} 2151_ACEOF 2152ac_clean_files_save=$ac_clean_files 2153ac_clean_files="$ac_clean_files a.out a.exe b.out" 2154# Try to create an executable without -o first, disregard a.out. 2155# It will help us diagnose broken compilers, and finding out an intuition 2156# of exeext. 2157{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2158echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2159ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2160# 2161# List of possible output files, starting from the most likely. 2162# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2163# only as a last resort. b.out is created by i960 compilers. 2164ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2165# 2166# The IRIX 6 linker writes into existing files which may not be 2167# executable, retaining their permissions. Remove them first so a 2168# subsequent execution test works. 2169ac_rmfiles= 2170for ac_file in $ac_files 2171do 2172 case $ac_file in 2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2174 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2175 esac 2176done 2177rm -f $ac_rmfiles 2178 2179if { (ac_try="$ac_link_default" 2180case "(($ac_try" in 2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2182 *) ac_try_echo=$ac_try;; 2183esac 2184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2185 (eval "$ac_link_default") 2>&5 2186 ac_status=$? 2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2188 (exit $ac_status); }; then 2189 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2190# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2191# in a Makefile. We should not override ac_cv_exeext if it was cached, 2192# so that the user can short-circuit this test for compilers unknown to 2193# Autoconf. 2194for ac_file in $ac_files 2195do 2196 test -f "$ac_file" || continue 2197 case $ac_file in 2198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2199 ;; 2200 [ab].out ) 2201 # We found the default executable, but exeext='' is most 2202 # certainly right. 2203 break;; 2204 *.* ) 2205 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2206 then :; else 2207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2208 fi 2209 # We set ac_cv_exeext here because the later test for it is not 2210 # safe: cross compilers may not add the suffix if given an `-o' 2211 # argument, so we may need to know it at that point already. 2212 # Even if this section looks crufty: it has the advantage of 2213 # actually working. 2214 break;; 2215 * ) 2216 break;; 2217 esac 2218done 2219test "$ac_cv_exeext" = no && ac_cv_exeext= 2220 2221else 2222 echo "$as_me: failed program was:" >&5 2223sed 's/^/| /' conftest.$ac_ext >&5 2224 2225{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2226See \`config.log' for more details." >&5 2227echo "$as_me: error: C compiler cannot create executables 2228See \`config.log' for more details." >&2;} 2229 { (exit 77); exit 77; }; } 2230fi 2231 2232ac_exeext=$ac_cv_exeext 2233{ echo "$as_me:$LINENO: result: $ac_file" >&5 2234echo "${ECHO_T}$ac_file" >&6; } 2235 2236# Check that the compiler produces executables we can run. If not, either 2237# the compiler is broken, or we cross compile. 2238{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2239echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2240# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2241# If not cross compiling, check that we can run a simple program. 2242if test "$cross_compiling" != yes; then 2243 if { ac_try='./$ac_file' 2244 { (case "(($ac_try" in 2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2246 *) ac_try_echo=$ac_try;; 2247esac 2248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2249 (eval "$ac_try") 2>&5 2250 ac_status=$? 2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2252 (exit $ac_status); }; }; then 2253 cross_compiling=no 2254 else 2255 if test "$cross_compiling" = maybe; then 2256 cross_compiling=yes 2257 else 2258 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2259If you meant to cross compile, use \`--host'. 2260See \`config.log' for more details." >&5 2261echo "$as_me: error: cannot run C compiled programs. 2262If you meant to cross compile, use \`--host'. 2263See \`config.log' for more details." >&2;} 2264 { (exit 1); exit 1; }; } 2265 fi 2266 fi 2267fi 2268{ echo "$as_me:$LINENO: result: yes" >&5 2269echo "${ECHO_T}yes" >&6; } 2270 2271rm -f a.out a.exe conftest$ac_cv_exeext b.out 2272ac_clean_files=$ac_clean_files_save 2273# Check that the compiler produces executables we can run. If not, either 2274# the compiler is broken, or we cross compile. 2275{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2276echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2277{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2278echo "${ECHO_T}$cross_compiling" >&6; } 2279 2280{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2281echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2282if { (ac_try="$ac_link" 2283case "(($ac_try" in 2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2285 *) ac_try_echo=$ac_try;; 2286esac 2287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2288 (eval "$ac_link") 2>&5 2289 ac_status=$? 2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2291 (exit $ac_status); }; then 2292 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2293# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2294# work properly (i.e., refer to `conftest.exe'), while it won't with 2295# `rm'. 2296for ac_file in conftest.exe conftest conftest.*; do 2297 test -f "$ac_file" || continue 2298 case $ac_file in 2299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2300 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2301 break;; 2302 * ) break;; 2303 esac 2304done 2305else 2306 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2307See \`config.log' for more details." >&5 2308echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2309See \`config.log' for more details." >&2;} 2310 { (exit 1); exit 1; }; } 2311fi 2312 2313rm -f conftest$ac_cv_exeext 2314{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2315echo "${ECHO_T}$ac_cv_exeext" >&6; } 2316 2317rm -f conftest.$ac_ext 2318EXEEXT=$ac_cv_exeext 2319ac_exeext=$EXEEXT 2320{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2321echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2322if test "${ac_cv_objext+set}" = set; then 2323 echo $ECHO_N "(cached) $ECHO_C" >&6 2324else 2325 cat >conftest.$ac_ext <<_ACEOF 2326/* confdefs.h. */ 2327_ACEOF 2328cat confdefs.h >>conftest.$ac_ext 2329cat >>conftest.$ac_ext <<_ACEOF 2330/* end confdefs.h. */ 2331 2332int 2333main () 2334{ 2335 2336 ; 2337 return 0; 2338} 2339_ACEOF 2340rm -f conftest.o conftest.obj 2341if { (ac_try="$ac_compile" 2342case "(($ac_try" in 2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2344 *) ac_try_echo=$ac_try;; 2345esac 2346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2347 (eval "$ac_compile") 2>&5 2348 ac_status=$? 2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2350 (exit $ac_status); }; then 2351 for ac_file in conftest.o conftest.obj conftest.*; do 2352 test -f "$ac_file" || continue; 2353 case $ac_file in 2354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2356 break;; 2357 esac 2358done 2359else 2360 echo "$as_me: failed program was:" >&5 2361sed 's/^/| /' conftest.$ac_ext >&5 2362 2363{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2364See \`config.log' for more details." >&5 2365echo "$as_me: error: cannot compute suffix of object files: cannot compile 2366See \`config.log' for more details." >&2;} 2367 { (exit 1); exit 1; }; } 2368fi 2369 2370rm -f conftest.$ac_cv_objext conftest.$ac_ext 2371fi 2372{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2373echo "${ECHO_T}$ac_cv_objext" >&6; } 2374OBJEXT=$ac_cv_objext 2375ac_objext=$OBJEXT 2376{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2377echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2378if test "${ac_cv_c_compiler_gnu+set}" = set; then 2379 echo $ECHO_N "(cached) $ECHO_C" >&6 2380else 2381 cat >conftest.$ac_ext <<_ACEOF 2382/* confdefs.h. */ 2383_ACEOF 2384cat confdefs.h >>conftest.$ac_ext 2385cat >>conftest.$ac_ext <<_ACEOF 2386/* end confdefs.h. */ 2387 2388int 2389main () 2390{ 2391#ifndef __GNUC__ 2392 choke me 2393#endif 2394 2395 ; 2396 return 0; 2397} 2398_ACEOF 2399rm -f conftest.$ac_objext 2400if { (ac_try="$ac_compile" 2401case "(($ac_try" in 2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2403 *) ac_try_echo=$ac_try;; 2404esac 2405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2406 (eval "$ac_compile") 2>conftest.er1 2407 ac_status=$? 2408 grep -v '^ *+' conftest.er1 >conftest.err 2409 rm -f conftest.er1 2410 cat conftest.err >&5 2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2412 (exit $ac_status); } && 2413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2414 { (case "(($ac_try" in 2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2416 *) ac_try_echo=$ac_try;; 2417esac 2418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2419 (eval "$ac_try") 2>&5 2420 ac_status=$? 2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2422 (exit $ac_status); }; } && 2423 { ac_try='test -s conftest.$ac_objext' 2424 { (case "(($ac_try" in 2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2426 *) ac_try_echo=$ac_try;; 2427esac 2428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2429 (eval "$ac_try") 2>&5 2430 ac_status=$? 2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2432 (exit $ac_status); }; }; then 2433 ac_compiler_gnu=yes 2434else 2435 echo "$as_me: failed program was:" >&5 2436sed 's/^/| /' conftest.$ac_ext >&5 2437 2438 ac_compiler_gnu=no 2439fi 2440 2441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2442ac_cv_c_compiler_gnu=$ac_compiler_gnu 2443 2444fi 2445{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2446echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2447GCC=`test $ac_compiler_gnu = yes && echo yes` 2448ac_test_CFLAGS=${CFLAGS+set} 2449ac_save_CFLAGS=$CFLAGS 2450{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2451echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2452if test "${ac_cv_prog_cc_g+set}" = set; then 2453 echo $ECHO_N "(cached) $ECHO_C" >&6 2454else 2455 ac_save_c_werror_flag=$ac_c_werror_flag 2456 ac_c_werror_flag=yes 2457 ac_cv_prog_cc_g=no 2458 CFLAGS="-g" 2459 cat >conftest.$ac_ext <<_ACEOF 2460/* confdefs.h. */ 2461_ACEOF 2462cat confdefs.h >>conftest.$ac_ext 2463cat >>conftest.$ac_ext <<_ACEOF 2464/* end confdefs.h. */ 2465 2466int 2467main () 2468{ 2469 2470 ; 2471 return 0; 2472} 2473_ACEOF 2474rm -f conftest.$ac_objext 2475if { (ac_try="$ac_compile" 2476case "(($ac_try" in 2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2478 *) ac_try_echo=$ac_try;; 2479esac 2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2481 (eval "$ac_compile") 2>conftest.er1 2482 ac_status=$? 2483 grep -v '^ *+' conftest.er1 >conftest.err 2484 rm -f conftest.er1 2485 cat conftest.err >&5 2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2487 (exit $ac_status); } && 2488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2489 { (case "(($ac_try" in 2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2491 *) ac_try_echo=$ac_try;; 2492esac 2493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2494 (eval "$ac_try") 2>&5 2495 ac_status=$? 2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2497 (exit $ac_status); }; } && 2498 { ac_try='test -s conftest.$ac_objext' 2499 { (case "(($ac_try" in 2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2501 *) ac_try_echo=$ac_try;; 2502esac 2503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2504 (eval "$ac_try") 2>&5 2505 ac_status=$? 2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2507 (exit $ac_status); }; }; then 2508 ac_cv_prog_cc_g=yes 2509else 2510 echo "$as_me: failed program was:" >&5 2511sed 's/^/| /' conftest.$ac_ext >&5 2512 2513 CFLAGS="" 2514 cat >conftest.$ac_ext <<_ACEOF 2515/* confdefs.h. */ 2516_ACEOF 2517cat confdefs.h >>conftest.$ac_ext 2518cat >>conftest.$ac_ext <<_ACEOF 2519/* end confdefs.h. */ 2520 2521int 2522main () 2523{ 2524 2525 ; 2526 return 0; 2527} 2528_ACEOF 2529rm -f conftest.$ac_objext 2530if { (ac_try="$ac_compile" 2531case "(($ac_try" in 2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2533 *) ac_try_echo=$ac_try;; 2534esac 2535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2536 (eval "$ac_compile") 2>conftest.er1 2537 ac_status=$? 2538 grep -v '^ *+' conftest.er1 >conftest.err 2539 rm -f conftest.er1 2540 cat conftest.err >&5 2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2542 (exit $ac_status); } && 2543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2544 { (case "(($ac_try" in 2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2546 *) ac_try_echo=$ac_try;; 2547esac 2548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2549 (eval "$ac_try") 2>&5 2550 ac_status=$? 2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2552 (exit $ac_status); }; } && 2553 { ac_try='test -s conftest.$ac_objext' 2554 { (case "(($ac_try" in 2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2556 *) ac_try_echo=$ac_try;; 2557esac 2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2559 (eval "$ac_try") 2>&5 2560 ac_status=$? 2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2562 (exit $ac_status); }; }; then 2563 : 2564else 2565 echo "$as_me: failed program was:" >&5 2566sed 's/^/| /' conftest.$ac_ext >&5 2567 2568 ac_c_werror_flag=$ac_save_c_werror_flag 2569 CFLAGS="-g" 2570 cat >conftest.$ac_ext <<_ACEOF 2571/* confdefs.h. */ 2572_ACEOF 2573cat confdefs.h >>conftest.$ac_ext 2574cat >>conftest.$ac_ext <<_ACEOF 2575/* end confdefs.h. */ 2576 2577int 2578main () 2579{ 2580 2581 ; 2582 return 0; 2583} 2584_ACEOF 2585rm -f conftest.$ac_objext 2586if { (ac_try="$ac_compile" 2587case "(($ac_try" in 2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2589 *) ac_try_echo=$ac_try;; 2590esac 2591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2592 (eval "$ac_compile") 2>conftest.er1 2593 ac_status=$? 2594 grep -v '^ *+' conftest.er1 >conftest.err 2595 rm -f conftest.er1 2596 cat conftest.err >&5 2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2598 (exit $ac_status); } && 2599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2600 { (case "(($ac_try" in 2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2602 *) ac_try_echo=$ac_try;; 2603esac 2604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2605 (eval "$ac_try") 2>&5 2606 ac_status=$? 2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2608 (exit $ac_status); }; } && 2609 { ac_try='test -s conftest.$ac_objext' 2610 { (case "(($ac_try" in 2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2612 *) ac_try_echo=$ac_try;; 2613esac 2614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2615 (eval "$ac_try") 2>&5 2616 ac_status=$? 2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2618 (exit $ac_status); }; }; then 2619 ac_cv_prog_cc_g=yes 2620else 2621 echo "$as_me: failed program was:" >&5 2622sed 's/^/| /' conftest.$ac_ext >&5 2623 2624 2625fi 2626 2627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2628fi 2629 2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2631fi 2632 2633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2634 ac_c_werror_flag=$ac_save_c_werror_flag 2635fi 2636{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2637echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2638if test "$ac_test_CFLAGS" = set; then 2639 CFLAGS=$ac_save_CFLAGS 2640elif test $ac_cv_prog_cc_g = yes; then 2641 if test "$GCC" = yes; then 2642 CFLAGS="-g -O2" 2643 else 2644 CFLAGS="-g" 2645 fi 2646else 2647 if test "$GCC" = yes; then 2648 CFLAGS="-O2" 2649 else 2650 CFLAGS= 2651 fi 2652fi 2653{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2654echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2655if test "${ac_cv_prog_cc_c89+set}" = set; then 2656 echo $ECHO_N "(cached) $ECHO_C" >&6 2657else 2658 ac_cv_prog_cc_c89=no 2659ac_save_CC=$CC 2660cat >conftest.$ac_ext <<_ACEOF 2661/* confdefs.h. */ 2662_ACEOF 2663cat confdefs.h >>conftest.$ac_ext 2664cat >>conftest.$ac_ext <<_ACEOF 2665/* end confdefs.h. */ 2666#include <stdarg.h> 2667#include <stdio.h> 2668#include <sys/types.h> 2669#include <sys/stat.h> 2670/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2671struct buf { int x; }; 2672FILE * (*rcsopen) (struct buf *, struct stat *, int); 2673static char *e (p, i) 2674 char **p; 2675 int i; 2676{ 2677 return p[i]; 2678} 2679static char *f (char * (*g) (char **, int), char **p, ...) 2680{ 2681 char *s; 2682 va_list v; 2683 va_start (v,p); 2684 s = g (p, va_arg (v,int)); 2685 va_end (v); 2686 return s; 2687} 2688 2689/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2690 function prototypes and stuff, but not '\xHH' hex character constants. 2691 These don't provoke an error unfortunately, instead are silently treated 2692 as 'x'. The following induces an error, until -std is added to get 2693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2694 array size at least. It's necessary to write '\x00'==0 to get something 2695 that's true only with -std. */ 2696int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2697 2698/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2699 inside strings and character constants. */ 2700#define FOO(x) 'x' 2701int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2702 2703int test (int i, double x); 2704struct s1 {int (*f) (int a);}; 2705struct s2 {int (*f) (double a);}; 2706int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2707int argc; 2708char **argv; 2709int 2710main () 2711{ 2712return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2713 ; 2714 return 0; 2715} 2716_ACEOF 2717for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2719do 2720 CC="$ac_save_CC $ac_arg" 2721 rm -f conftest.$ac_objext 2722if { (ac_try="$ac_compile" 2723case "(($ac_try" in 2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2725 *) ac_try_echo=$ac_try;; 2726esac 2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2728 (eval "$ac_compile") 2>conftest.er1 2729 ac_status=$? 2730 grep -v '^ *+' conftest.er1 >conftest.err 2731 rm -f conftest.er1 2732 cat conftest.err >&5 2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2734 (exit $ac_status); } && 2735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2736 { (case "(($ac_try" in 2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2738 *) ac_try_echo=$ac_try;; 2739esac 2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2741 (eval "$ac_try") 2>&5 2742 ac_status=$? 2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2744 (exit $ac_status); }; } && 2745 { ac_try='test -s conftest.$ac_objext' 2746 { (case "(($ac_try" in 2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2748 *) ac_try_echo=$ac_try;; 2749esac 2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2751 (eval "$ac_try") 2>&5 2752 ac_status=$? 2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2754 (exit $ac_status); }; }; then 2755 ac_cv_prog_cc_c89=$ac_arg 2756else 2757 echo "$as_me: failed program was:" >&5 2758sed 's/^/| /' conftest.$ac_ext >&5 2759 2760 2761fi 2762 2763rm -f core conftest.err conftest.$ac_objext 2764 test "x$ac_cv_prog_cc_c89" != "xno" && break 2765done 2766rm -f conftest.$ac_ext 2767CC=$ac_save_CC 2768 2769fi 2770# AC_CACHE_VAL 2771case "x$ac_cv_prog_cc_c89" in 2772 x) 2773 { echo "$as_me:$LINENO: result: none needed" >&5 2774echo "${ECHO_T}none needed" >&6; } ;; 2775 xno) 2776 { echo "$as_me:$LINENO: result: unsupported" >&5 2777echo "${ECHO_T}unsupported" >&6; } ;; 2778 *) 2779 CC="$CC $ac_cv_prog_cc_c89" 2780 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2781echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2782esac 2783 2784 2785ac_ext=c 2786ac_cpp='$CPP $CPPFLAGS' 2787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2789ac_compiler_gnu=$ac_cv_c_compiler_gnu 2790 2791ac_ext=cpp 2792ac_cpp='$CXXCPP $CPPFLAGS' 2793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2796if test -z "$CXX"; then 2797 if test -n "$CCC"; then 2798 CXX=$CCC 2799 else 2800 if test -n "$ac_tool_prefix"; then 2801 for ac_prog in clang++ llvm-g++ g++ 2802 do 2803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2804set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2805{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2807if test "${ac_cv_prog_CXX+set}" = set; then 2808 echo $ECHO_N "(cached) $ECHO_C" >&6 2809else 2810 if test -n "$CXX"; then 2811 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2812else 2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2814for as_dir in $PATH 2815do 2816 IFS=$as_save_IFS 2817 test -z "$as_dir" && as_dir=. 2818 for ac_exec_ext in '' $ac_executable_extensions; do 2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2820 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2822 break 2 2823 fi 2824done 2825done 2826IFS=$as_save_IFS 2827 2828fi 2829fi 2830CXX=$ac_cv_prog_CXX 2831if test -n "$CXX"; then 2832 { echo "$as_me:$LINENO: result: $CXX" >&5 2833echo "${ECHO_T}$CXX" >&6; } 2834else 2835 { echo "$as_me:$LINENO: result: no" >&5 2836echo "${ECHO_T}no" >&6; } 2837fi 2838 2839 2840 test -n "$CXX" && break 2841 done 2842fi 2843if test -z "$CXX"; then 2844 ac_ct_CXX=$CXX 2845 for ac_prog in clang++ llvm-g++ g++ 2846do 2847 # Extract the first word of "$ac_prog", so it can be a program name with args. 2848set dummy $ac_prog; ac_word=$2 2849{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2851if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2852 echo $ECHO_N "(cached) $ECHO_C" >&6 2853else 2854 if test -n "$ac_ct_CXX"; then 2855 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2856else 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858for as_dir in $PATH 2859do 2860 IFS=$as_save_IFS 2861 test -z "$as_dir" && as_dir=. 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2864 ac_cv_prog_ac_ct_CXX="$ac_prog" 2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2866 break 2 2867 fi 2868done 2869done 2870IFS=$as_save_IFS 2871 2872fi 2873fi 2874ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2875if test -n "$ac_ct_CXX"; then 2876 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2877echo "${ECHO_T}$ac_ct_CXX" >&6; } 2878else 2879 { echo "$as_me:$LINENO: result: no" >&5 2880echo "${ECHO_T}no" >&6; } 2881fi 2882 2883 2884 test -n "$ac_ct_CXX" && break 2885done 2886 2887 if test "x$ac_ct_CXX" = x; then 2888 CXX="g++" 2889 else 2890 case $cross_compiling:$ac_tool_warned in 2891yes:) 2892{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2893whose name does not start with the host triplet. If you think this 2894configuration is useful to you, please write to autoconf@gnu.org." >&5 2895echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2896whose name does not start with the host triplet. If you think this 2897configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2898ac_tool_warned=yes ;; 2899esac 2900 CXX=$ac_ct_CXX 2901 fi 2902fi 2903 2904 fi 2905fi 2906# Provide some information about the compiler. 2907echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2908ac_compiler=`set X $ac_compile; echo $2` 2909{ (ac_try="$ac_compiler --version >&5" 2910case "(($ac_try" in 2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2912 *) ac_try_echo=$ac_try;; 2913esac 2914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2915 (eval "$ac_compiler --version >&5") 2>&5 2916 ac_status=$? 2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2918 (exit $ac_status); } 2919{ (ac_try="$ac_compiler -v >&5" 2920case "(($ac_try" in 2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2922 *) ac_try_echo=$ac_try;; 2923esac 2924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2925 (eval "$ac_compiler -v >&5") 2>&5 2926 ac_status=$? 2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2928 (exit $ac_status); } 2929{ (ac_try="$ac_compiler -V >&5" 2930case "(($ac_try" in 2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2932 *) ac_try_echo=$ac_try;; 2933esac 2934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2935 (eval "$ac_compiler -V >&5") 2>&5 2936 ac_status=$? 2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2938 (exit $ac_status); } 2939 2940{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2941echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2942if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2943 echo $ECHO_N "(cached) $ECHO_C" >&6 2944else 2945 cat >conftest.$ac_ext <<_ACEOF 2946/* confdefs.h. */ 2947_ACEOF 2948cat confdefs.h >>conftest.$ac_ext 2949cat >>conftest.$ac_ext <<_ACEOF 2950/* end confdefs.h. */ 2951 2952int 2953main () 2954{ 2955#ifndef __GNUC__ 2956 choke me 2957#endif 2958 2959 ; 2960 return 0; 2961} 2962_ACEOF 2963rm -f conftest.$ac_objext 2964if { (ac_try="$ac_compile" 2965case "(($ac_try" in 2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2967 *) ac_try_echo=$ac_try;; 2968esac 2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2970 (eval "$ac_compile") 2>conftest.er1 2971 ac_status=$? 2972 grep -v '^ *+' conftest.er1 >conftest.err 2973 rm -f conftest.er1 2974 cat conftest.err >&5 2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2976 (exit $ac_status); } && 2977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2978 { (case "(($ac_try" in 2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2980 *) ac_try_echo=$ac_try;; 2981esac 2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2983 (eval "$ac_try") 2>&5 2984 ac_status=$? 2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2986 (exit $ac_status); }; } && 2987 { ac_try='test -s conftest.$ac_objext' 2988 { (case "(($ac_try" in 2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2990 *) ac_try_echo=$ac_try;; 2991esac 2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2993 (eval "$ac_try") 2>&5 2994 ac_status=$? 2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2996 (exit $ac_status); }; }; then 2997 ac_compiler_gnu=yes 2998else 2999 echo "$as_me: failed program was:" >&5 3000sed 's/^/| /' conftest.$ac_ext >&5 3001 3002 ac_compiler_gnu=no 3003fi 3004 3005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3006ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3007 3008fi 3009{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3010echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3011GXX=`test $ac_compiler_gnu = yes && echo yes` 3012ac_test_CXXFLAGS=${CXXFLAGS+set} 3013ac_save_CXXFLAGS=$CXXFLAGS 3014{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3015echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3016if test "${ac_cv_prog_cxx_g+set}" = set; then 3017 echo $ECHO_N "(cached) $ECHO_C" >&6 3018else 3019 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3020 ac_cxx_werror_flag=yes 3021 ac_cv_prog_cxx_g=no 3022 CXXFLAGS="-g" 3023 cat >conftest.$ac_ext <<_ACEOF 3024/* confdefs.h. */ 3025_ACEOF 3026cat confdefs.h >>conftest.$ac_ext 3027cat >>conftest.$ac_ext <<_ACEOF 3028/* end confdefs.h. */ 3029 3030int 3031main () 3032{ 3033 3034 ; 3035 return 0; 3036} 3037_ACEOF 3038rm -f conftest.$ac_objext 3039if { (ac_try="$ac_compile" 3040case "(($ac_try" in 3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3042 *) ac_try_echo=$ac_try;; 3043esac 3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3045 (eval "$ac_compile") 2>conftest.er1 3046 ac_status=$? 3047 grep -v '^ *+' conftest.er1 >conftest.err 3048 rm -f conftest.er1 3049 cat conftest.err >&5 3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3051 (exit $ac_status); } && 3052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3053 { (case "(($ac_try" in 3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3055 *) ac_try_echo=$ac_try;; 3056esac 3057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3058 (eval "$ac_try") 2>&5 3059 ac_status=$? 3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3061 (exit $ac_status); }; } && 3062 { ac_try='test -s conftest.$ac_objext' 3063 { (case "(($ac_try" in 3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3065 *) ac_try_echo=$ac_try;; 3066esac 3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3068 (eval "$ac_try") 2>&5 3069 ac_status=$? 3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3071 (exit $ac_status); }; }; then 3072 ac_cv_prog_cxx_g=yes 3073else 3074 echo "$as_me: failed program was:" >&5 3075sed 's/^/| /' conftest.$ac_ext >&5 3076 3077 CXXFLAGS="" 3078 cat >conftest.$ac_ext <<_ACEOF 3079/* confdefs.h. */ 3080_ACEOF 3081cat confdefs.h >>conftest.$ac_ext 3082cat >>conftest.$ac_ext <<_ACEOF 3083/* end confdefs.h. */ 3084 3085int 3086main () 3087{ 3088 3089 ; 3090 return 0; 3091} 3092_ACEOF 3093rm -f conftest.$ac_objext 3094if { (ac_try="$ac_compile" 3095case "(($ac_try" in 3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3097 *) ac_try_echo=$ac_try;; 3098esac 3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3100 (eval "$ac_compile") 2>conftest.er1 3101 ac_status=$? 3102 grep -v '^ *+' conftest.er1 >conftest.err 3103 rm -f conftest.er1 3104 cat conftest.err >&5 3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3106 (exit $ac_status); } && 3107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3108 { (case "(($ac_try" in 3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3110 *) ac_try_echo=$ac_try;; 3111esac 3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3113 (eval "$ac_try") 2>&5 3114 ac_status=$? 3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3116 (exit $ac_status); }; } && 3117 { ac_try='test -s conftest.$ac_objext' 3118 { (case "(($ac_try" in 3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3120 *) ac_try_echo=$ac_try;; 3121esac 3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3123 (eval "$ac_try") 2>&5 3124 ac_status=$? 3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3126 (exit $ac_status); }; }; then 3127 : 3128else 3129 echo "$as_me: failed program was:" >&5 3130sed 's/^/| /' conftest.$ac_ext >&5 3131 3132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3133 CXXFLAGS="-g" 3134 cat >conftest.$ac_ext <<_ACEOF 3135/* confdefs.h. */ 3136_ACEOF 3137cat confdefs.h >>conftest.$ac_ext 3138cat >>conftest.$ac_ext <<_ACEOF 3139/* end confdefs.h. */ 3140 3141int 3142main () 3143{ 3144 3145 ; 3146 return 0; 3147} 3148_ACEOF 3149rm -f conftest.$ac_objext 3150if { (ac_try="$ac_compile" 3151case "(($ac_try" in 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3153 *) ac_try_echo=$ac_try;; 3154esac 3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3156 (eval "$ac_compile") 2>conftest.er1 3157 ac_status=$? 3158 grep -v '^ *+' conftest.er1 >conftest.err 3159 rm -f conftest.er1 3160 cat conftest.err >&5 3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3162 (exit $ac_status); } && 3163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3164 { (case "(($ac_try" in 3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3166 *) ac_try_echo=$ac_try;; 3167esac 3168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3169 (eval "$ac_try") 2>&5 3170 ac_status=$? 3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3172 (exit $ac_status); }; } && 3173 { ac_try='test -s conftest.$ac_objext' 3174 { (case "(($ac_try" in 3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176 *) ac_try_echo=$ac_try;; 3177esac 3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3179 (eval "$ac_try") 2>&5 3180 ac_status=$? 3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3182 (exit $ac_status); }; }; then 3183 ac_cv_prog_cxx_g=yes 3184else 3185 echo "$as_me: failed program was:" >&5 3186sed 's/^/| /' conftest.$ac_ext >&5 3187 3188 3189fi 3190 3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3192fi 3193 3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3195fi 3196 3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3198 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3199fi 3200{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3201echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3202if test "$ac_test_CXXFLAGS" = set; then 3203 CXXFLAGS=$ac_save_CXXFLAGS 3204elif test $ac_cv_prog_cxx_g = yes; then 3205 if test "$GXX" = yes; then 3206 CXXFLAGS="-g -O2" 3207 else 3208 CXXFLAGS="-g" 3209 fi 3210else 3211 if test "$GXX" = yes; then 3212 CXXFLAGS="-O2" 3213 else 3214 CXXFLAGS= 3215 fi 3216fi 3217ac_ext=c 3218ac_cpp='$CPP $CPPFLAGS' 3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3221ac_compiler_gnu=$ac_cv_c_compiler_gnu 3222 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{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3229echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3230# On Suns, sometimes $CPP names a directory. 3231if test -n "$CPP" && test -d "$CPP"; then 3232 CPP= 3233fi 3234if test -z "$CPP"; then 3235 if test "${ac_cv_prog_CPP+set}" = set; then 3236 echo $ECHO_N "(cached) $ECHO_C" >&6 3237else 3238 # Double quotes because CPP needs to be expanded 3239 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3240 do 3241 ac_preproc_ok=false 3242for ac_c_preproc_warn_flag in '' yes 3243do 3244 # Use a header file that comes with gcc, so configuring glibc 3245 # with a fresh cross-compiler works. 3246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3247 # <limits.h> exists even on freestanding compilers. 3248 # On the NeXT, cc -E runs the code through the compiler's parser, 3249 # not just through cpp. "Syntax error" is here to catch this case. 3250 cat >conftest.$ac_ext <<_ACEOF 3251/* confdefs.h. */ 3252_ACEOF 3253cat confdefs.h >>conftest.$ac_ext 3254cat >>conftest.$ac_ext <<_ACEOF 3255/* end confdefs.h. */ 3256#ifdef __STDC__ 3257# include <limits.h> 3258#else 3259# include <assert.h> 3260#endif 3261 Syntax error 3262_ACEOF 3263if { (ac_try="$ac_cpp conftest.$ac_ext" 3264case "(($ac_try" in 3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3266 *) ac_try_echo=$ac_try;; 3267esac 3268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3270 ac_status=$? 3271 grep -v '^ *+' conftest.er1 >conftest.err 3272 rm -f conftest.er1 3273 cat conftest.err >&5 3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3275 (exit $ac_status); } >/dev/null; then 3276 if test -s conftest.err; then 3277 ac_cpp_err=$ac_c_preproc_warn_flag 3278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3279 else 3280 ac_cpp_err= 3281 fi 3282else 3283 ac_cpp_err=yes 3284fi 3285if test -z "$ac_cpp_err"; then 3286 : 3287else 3288 echo "$as_me: failed program was:" >&5 3289sed 's/^/| /' conftest.$ac_ext >&5 3290 3291 # Broken: fails on valid input. 3292continue 3293fi 3294 3295rm -f conftest.err conftest.$ac_ext 3296 3297 # OK, works on sane cases. Now check whether nonexistent headers 3298 # can be detected and how. 3299 cat >conftest.$ac_ext <<_ACEOF 3300/* confdefs.h. */ 3301_ACEOF 3302cat confdefs.h >>conftest.$ac_ext 3303cat >>conftest.$ac_ext <<_ACEOF 3304/* end confdefs.h. */ 3305#include <ac_nonexistent.h> 3306_ACEOF 3307if { (ac_try="$ac_cpp conftest.$ac_ext" 3308case "(($ac_try" in 3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3310 *) ac_try_echo=$ac_try;; 3311esac 3312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3314 ac_status=$? 3315 grep -v '^ *+' conftest.er1 >conftest.err 3316 rm -f conftest.er1 3317 cat conftest.err >&5 3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3319 (exit $ac_status); } >/dev/null; then 3320 if test -s conftest.err; then 3321 ac_cpp_err=$ac_c_preproc_warn_flag 3322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3323 else 3324 ac_cpp_err= 3325 fi 3326else 3327 ac_cpp_err=yes 3328fi 3329if test -z "$ac_cpp_err"; then 3330 # Broken: success on invalid input. 3331continue 3332else 3333 echo "$as_me: failed program was:" >&5 3334sed 's/^/| /' conftest.$ac_ext >&5 3335 3336 # Passes both tests. 3337ac_preproc_ok=: 3338break 3339fi 3340 3341rm -f conftest.err conftest.$ac_ext 3342 3343done 3344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3345rm -f conftest.err conftest.$ac_ext 3346if $ac_preproc_ok; then 3347 break 3348fi 3349 3350 done 3351 ac_cv_prog_CPP=$CPP 3352 3353fi 3354 CPP=$ac_cv_prog_CPP 3355else 3356 ac_cv_prog_CPP=$CPP 3357fi 3358{ echo "$as_me:$LINENO: result: $CPP" >&5 3359echo "${ECHO_T}$CPP" >&6; } 3360ac_preproc_ok=false 3361for ac_c_preproc_warn_flag in '' yes 3362do 3363 # Use a header file that comes with gcc, so configuring glibc 3364 # with a fresh cross-compiler works. 3365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3366 # <limits.h> exists even on freestanding compilers. 3367 # On the NeXT, cc -E runs the code through the compiler's parser, 3368 # not just through cpp. "Syntax error" is here to catch this case. 3369 cat >conftest.$ac_ext <<_ACEOF 3370/* confdefs.h. */ 3371_ACEOF 3372cat confdefs.h >>conftest.$ac_ext 3373cat >>conftest.$ac_ext <<_ACEOF 3374/* end confdefs.h. */ 3375#ifdef __STDC__ 3376# include <limits.h> 3377#else 3378# include <assert.h> 3379#endif 3380 Syntax error 3381_ACEOF 3382if { (ac_try="$ac_cpp conftest.$ac_ext" 3383case "(($ac_try" in 3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3385 *) ac_try_echo=$ac_try;; 3386esac 3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3389 ac_status=$? 3390 grep -v '^ *+' conftest.er1 >conftest.err 3391 rm -f conftest.er1 3392 cat conftest.err >&5 3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 (exit $ac_status); } >/dev/null; then 3395 if test -s conftest.err; then 3396 ac_cpp_err=$ac_c_preproc_warn_flag 3397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3398 else 3399 ac_cpp_err= 3400 fi 3401else 3402 ac_cpp_err=yes 3403fi 3404if test -z "$ac_cpp_err"; then 3405 : 3406else 3407 echo "$as_me: failed program was:" >&5 3408sed 's/^/| /' conftest.$ac_ext >&5 3409 3410 # Broken: fails on valid input. 3411continue 3412fi 3413 3414rm -f conftest.err conftest.$ac_ext 3415 3416 # OK, works on sane cases. Now check whether nonexistent headers 3417 # can be detected and how. 3418 cat >conftest.$ac_ext <<_ACEOF 3419/* confdefs.h. */ 3420_ACEOF 3421cat confdefs.h >>conftest.$ac_ext 3422cat >>conftest.$ac_ext <<_ACEOF 3423/* end confdefs.h. */ 3424#include <ac_nonexistent.h> 3425_ACEOF 3426if { (ac_try="$ac_cpp conftest.$ac_ext" 3427case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3433 ac_status=$? 3434 grep -v '^ *+' conftest.er1 >conftest.err 3435 rm -f conftest.er1 3436 cat conftest.err >&5 3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3438 (exit $ac_status); } >/dev/null; then 3439 if test -s conftest.err; then 3440 ac_cpp_err=$ac_c_preproc_warn_flag 3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3442 else 3443 ac_cpp_err= 3444 fi 3445else 3446 ac_cpp_err=yes 3447fi 3448if test -z "$ac_cpp_err"; then 3449 # Broken: success on invalid input. 3450continue 3451else 3452 echo "$as_me: failed program was:" >&5 3453sed 's/^/| /' conftest.$ac_ext >&5 3454 3455 # Passes both tests. 3456ac_preproc_ok=: 3457break 3458fi 3459 3460rm -f conftest.err conftest.$ac_ext 3461 3462done 3463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3464rm -f conftest.err conftest.$ac_ext 3465if $ac_preproc_ok; then 3466 : 3467else 3468 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3469See \`config.log' for more details." >&5 3470echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3471See \`config.log' for more details." >&2;} 3472 { (exit 1); exit 1; }; } 3473fi 3474 3475ac_ext=c 3476ac_cpp='$CPP $CPPFLAGS' 3477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3479ac_compiler_gnu=$ac_cv_c_compiler_gnu 3480 3481 3482if test "$CXX" = "clang++" ; then 3483 { echo "$as_me:$LINENO: checking whether clang works" >&5 3484echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; } 3485 ac_ext=cpp 3486ac_cpp='$CXXCPP $CPPFLAGS' 3487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3490 3491 3492cat >conftest.$ac_ext <<_ACEOF 3493/* confdefs.h. */ 3494_ACEOF 3495cat confdefs.h >>conftest.$ac_ext 3496cat >>conftest.$ac_ext <<_ACEOF 3497/* end confdefs.h. */ 3498#include <limits> 3499#if __has_include (<cxxabi.h>) 3500#include <cxxabi.h> 3501#endif 3502#if __has_include (<unwind.h>) 3503#include <unwind.h> 3504#endif 3505 3506int 3507main () 3508{ 3509 3510 ; 3511 return 0; 3512} 3513_ACEOF 3514rm -f conftest.$ac_objext 3515if { (ac_try="$ac_compile" 3516case "(($ac_try" in 3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3518 *) ac_try_echo=$ac_try;; 3519esac 3520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3521 (eval "$ac_compile") 2>conftest.er1 3522 ac_status=$? 3523 grep -v '^ *+' conftest.er1 >conftest.err 3524 rm -f conftest.er1 3525 cat conftest.err >&5 3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3527 (exit $ac_status); } && 3528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3529 { (case "(($ac_try" in 3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3531 *) ac_try_echo=$ac_try;; 3532esac 3533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3534 (eval "$ac_try") 2>&5 3535 ac_status=$? 3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3537 (exit $ac_status); }; } && 3538 { ac_try='test -s conftest.$ac_objext' 3539 { (case "(($ac_try" in 3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3541 *) ac_try_echo=$ac_try;; 3542esac 3543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3544 (eval "$ac_try") 2>&5 3545 ac_status=$? 3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3547 (exit $ac_status); }; }; then 3548 3549 { echo "$as_me:$LINENO: result: yes" >&5 3550echo "${ECHO_T}yes" >&6; } 3551 3552else 3553 echo "$as_me: failed program was:" >&5 3554sed 's/^/| /' conftest.$ac_ext >&5 3555 3556 3557 { echo "$as_me:$LINENO: result: no" >&5 3558echo "${ECHO_T}no" >&6; } 3559 { { 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 3560echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;} 3561 { (exit 1); exit 1; }; } 3562 3563fi 3564 3565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3566 ac_ext=c 3567ac_cpp='$CPP $CPPFLAGS' 3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3570ac_compiler_gnu=$ac_cv_c_compiler_gnu 3571 3572fi 3573 3574 3575 3576if test -d ${srcdir}/projects/llvm-gcc ; then 3577 subdirs="$subdirs projects/llvm-gcc" 3578 3579fi 3580 3581if test -d ${srcdir}/projects/test-suite ; then 3582 subdirs="$subdirs projects/test-suite" 3583 3584fi 3585 3586if test -d ${srcdir}/projects/llvm-test ; then 3587 subdirs="$subdirs projects/llvm-test" 3588 3589fi 3590 3591if test -d ${srcdir}/projects/poolalloc ; then 3592 subdirs="$subdirs projects/poolalloc" 3593 3594fi 3595 3596if test -d ${srcdir}/projects/llvm-poolalloc ; then 3597 subdirs="$subdirs projects/llvm-poolalloc" 3598 3599fi 3600 3601for i in `ls ${srcdir}/projects` 3602do 3603 if test -d ${srcdir}/projects/${i} ; then 3604 case ${i} in 3605 sample) subdirs="$subdirs projects/sample" 3606 ;; 3607 privbracket) subdirs="$subdirs projects/privbracket" 3608 ;; 3609 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 3610 ;; 3611 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 3612;; 3613 llvm-java) subdirs="$subdirs projects/llvm-java" 3614 ;; 3615 llvm-tv) subdirs="$subdirs projects/llvm-tv" 3616 ;; 3617 safecode) subdirs="$subdirs projects/safecode" 3618 ;; 3619 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 3620 ;; 3621 compiler-rt) ;; 3622 llvm-gcc) ;; 3623 test-suite) ;; 3624 llvm-test) ;; 3625 poolalloc) ;; 3626 llvm-poolalloc) ;; 3627 *) 3628 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3629echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3630 ;; 3631 esac 3632 fi 3633done 3634 3635# Check whether --enable-polly was given. 3636if test "${enable_polly+set}" = set; then 3637 enableval=$enable_polly; 3638else 3639 enableval=default 3640fi 3641 3642case "$enableval" in 3643 yes) ENABLE_POLLY=1 3644 ;; 3645 no) ENABLE_POLLY=0 3646 ;; 3647 default) ENABLE_POLLY=1 3648 ;; 3649 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3650echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3651 { (exit 1); exit 1; }; } ;; 3652esac 3653 3654 3655if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3656 LLVM_HAS_POLLY=1 3657 3658 subdirs="$subdirs tools/polly" 3659 3660fi 3661 3662 3663# Make sure we can run config.sub. 3664$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3665 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3666echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3667 { (exit 1); exit 1; }; } 3668 3669{ echo "$as_me:$LINENO: checking build system type" >&5 3670echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3671if test "${ac_cv_build+set}" = set; then 3672 echo $ECHO_N "(cached) $ECHO_C" >&6 3673else 3674 ac_build_alias=$build_alias 3675test "x$ac_build_alias" = x && 3676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3677test "x$ac_build_alias" = x && 3678 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3679echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3680 { (exit 1); exit 1; }; } 3681ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3682 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3683echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3684 { (exit 1); exit 1; }; } 3685 3686fi 3687{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3688echo "${ECHO_T}$ac_cv_build" >&6; } 3689case $ac_cv_build in 3690*-*-*) ;; 3691*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3692echo "$as_me: error: invalid value of canonical build" >&2;} 3693 { (exit 1); exit 1; }; };; 3694esac 3695build=$ac_cv_build 3696ac_save_IFS=$IFS; IFS='-' 3697set x $ac_cv_build 3698shift 3699build_cpu=$1 3700build_vendor=$2 3701shift; shift 3702# Remember, the first character of IFS is used to create $*, 3703# except with old shells: 3704build_os=$* 3705IFS=$ac_save_IFS 3706case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3707 3708 3709{ echo "$as_me:$LINENO: checking host system type" >&5 3710echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3711if test "${ac_cv_host+set}" = set; then 3712 echo $ECHO_N "(cached) $ECHO_C" >&6 3713else 3714 if test "x$host_alias" = x; then 3715 ac_cv_host=$ac_cv_build 3716else 3717 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3718 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3719echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3720 { (exit 1); exit 1; }; } 3721fi 3722 3723fi 3724{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3725echo "${ECHO_T}$ac_cv_host" >&6; } 3726case $ac_cv_host in 3727*-*-*) ;; 3728*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3729echo "$as_me: error: invalid value of canonical host" >&2;} 3730 { (exit 1); exit 1; }; };; 3731esac 3732host=$ac_cv_host 3733ac_save_IFS=$IFS; IFS='-' 3734set x $ac_cv_host 3735shift 3736host_cpu=$1 3737host_vendor=$2 3738shift; shift 3739# Remember, the first character of IFS is used to create $*, 3740# except with old shells: 3741host_os=$* 3742IFS=$ac_save_IFS 3743case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3744 3745 3746{ echo "$as_me:$LINENO: checking target system type" >&5 3747echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3748if test "${ac_cv_target+set}" = set; then 3749 echo $ECHO_N "(cached) $ECHO_C" >&6 3750else 3751 if test "x$target_alias" = x; then 3752 ac_cv_target=$ac_cv_host 3753else 3754 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3755 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3756echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3757 { (exit 1); exit 1; }; } 3758fi 3759 3760fi 3761{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3762echo "${ECHO_T}$ac_cv_target" >&6; } 3763case $ac_cv_target in 3764*-*-*) ;; 3765*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3766echo "$as_me: error: invalid value of canonical target" >&2;} 3767 { (exit 1); exit 1; }; };; 3768esac 3769target=$ac_cv_target 3770ac_save_IFS=$IFS; IFS='-' 3771set x $ac_cv_target 3772shift 3773target_cpu=$1 3774target_vendor=$2 3775shift; shift 3776# Remember, the first character of IFS is used to create $*, 3777# except with old shells: 3778target_os=$* 3779IFS=$ac_save_IFS 3780case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3781 3782 3783# The aliases save the names the user supplied, while $host etc. 3784# will get canonicalized. 3785test -n "$target_alias" && 3786 test "$program_prefix$program_suffix$program_transform_name" = \ 3787 NONENONEs,x,x, && 3788 program_prefix=${target_alias}- 3789 3790{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3791echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3792if test "${llvm_cv_os_type+set}" = set; then 3793 echo $ECHO_N "(cached) $ECHO_C" >&6 3794else 3795 case $host in 3796 *-*-aix*) 3797 llvm_cv_link_all_option="-Wl,--whole-archive" 3798 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3799 llvm_cv_os_type="AIX" 3800 llvm_cv_platform_type="Unix" ;; 3801 *-*-irix*) 3802 llvm_cv_link_all_option="-Wl,--whole-archive" 3803 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3804 llvm_cv_os_type="IRIX" 3805 llvm_cv_platform_type="Unix" ;; 3806 *-*-cygwin*) 3807 llvm_cv_link_all_option="-Wl,--whole-archive" 3808 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3809 llvm_cv_os_type="Cygwin" 3810 llvm_cv_platform_type="Unix" ;; 3811 *-*-darwin*) 3812 llvm_cv_link_all_option="-Wl,-all_load" 3813 llvm_cv_no_link_all_option="-Wl,-noall_load" 3814 llvm_cv_os_type="Darwin" 3815 llvm_cv_platform_type="Unix" ;; 3816 *-*-minix*) 3817 llvm_cv_link_all_option="-Wl,-all_load" 3818 llvm_cv_no_link_all_option="-Wl,-noall_load" 3819 llvm_cv_os_type="Minix" 3820 llvm_cv_platform_type="Unix" ;; 3821 *-*-freebsd* | *-*-kfreebsd-gnu) 3822 llvm_cv_link_all_option="-Wl,--whole-archive" 3823 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3824 llvm_cv_os_type="FreeBSD" 3825 llvm_cv_platform_type="Unix" ;; 3826 *-*-openbsd*) 3827 llvm_cv_link_all_option="-Wl,--whole-archive" 3828 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3829 llvm_cv_os_type="OpenBSD" 3830 llvm_cv_platform_type="Unix" ;; 3831 *-*-netbsd*) 3832 llvm_cv_link_all_option="-Wl,--whole-archive" 3833 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3834 llvm_cv_os_type="NetBSD" 3835 llvm_cv_platform_type="Unix" ;; 3836 *-*-dragonfly*) 3837 llvm_cv_link_all_option="-Wl,--whole-archive" 3838 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3839 llvm_cv_os_type="DragonFly" 3840 llvm_cv_platform_type="Unix" ;; 3841 *-*-hpux*) 3842 llvm_cv_link_all_option="-Wl,--whole-archive" 3843 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3844 llvm_cv_os_type="HP-UX" 3845 llvm_cv_platform_type="Unix" ;; 3846 *-*-interix*) 3847 llvm_cv_link_all_option="-Wl,--whole-archive" 3848 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3849 llvm_cv_os_type="Interix" 3850 llvm_cv_platform_type="Unix" ;; 3851 *-*-linux*) 3852 llvm_cv_link_all_option="-Wl,--whole-archive" 3853 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3854 llvm_cv_os_type="Linux" 3855 llvm_cv_platform_type="Unix" ;; 3856 *-*-gnu*) 3857 llvm_cv_link_all_option="-Wl,--whole-archive" 3858 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3859 llvm_cv_os_type="GNU" 3860 llvm_cv_platform_type="Unix" ;; 3861 *-*-solaris*) 3862 llvm_cv_link_all_option="-Wl,-z,allextract" 3863 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3864 llvm_cv_os_type="SunOS" 3865 llvm_cv_platform_type="Unix" ;; 3866 *-*-auroraux*) 3867 llvm_cv_link_all_option="-Wl,-z,allextract" 3868 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3869 llvm_cv_os_type="AuroraUX" 3870 llvm_cv_platform_type="Unix" ;; 3871 *-*-win32*) 3872 llvm_cv_link_all_option="-Wl,--whole-archive" 3873 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3874 llvm_cv_os_type="Win32" 3875 llvm_cv_platform_type="Win32" ;; 3876 *-*-mingw*) 3877 llvm_cv_link_all_option="-Wl,--whole-archive" 3878 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3879 llvm_cv_os_type="MingW" 3880 llvm_cv_platform_type="Win32" ;; 3881 *-*-haiku*) 3882 llvm_cv_link_all_option="-Wl,--whole-archive" 3883 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3884 llvm_cv_os_type="Haiku" 3885 llvm_cv_platform_type="Unix" ;; 3886 *-unknown-eabi*) 3887 llvm_cv_link_all_option="-Wl,--whole-archive" 3888 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3889 llvm_cv_os_type="Freestanding" 3890 llvm_cv_platform_type="Unix" ;; 3891 *-unknown-elf*) 3892 llvm_cv_link_all_option="-Wl,--whole-archive" 3893 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3894 llvm_cv_os_type="Freestanding" 3895 llvm_cv_platform_type="Unix" ;; 3896 *) 3897 llvm_cv_link_all_option="" 3898 llvm_cv_no_link_all_option="" 3899 llvm_cv_os_type="Unknown" 3900 llvm_cv_platform_type="Unknown" ;; 3901esac 3902fi 3903{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3904echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3905 3906{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3907echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3908if test "${llvm_cv_target_os_type+set}" = set; then 3909 echo $ECHO_N "(cached) $ECHO_C" >&6 3910else 3911 case $target in 3912 *-*-aix*) 3913 llvm_cv_target_os_type="AIX" ;; 3914 *-*-irix*) 3915 llvm_cv_target_os_type="IRIX" ;; 3916 *-*-cygwin*) 3917 llvm_cv_target_os_type="Cygwin" ;; 3918 *-*-darwin*) 3919 llvm_cv_target_os_type="Darwin" ;; 3920 *-*-minix*) 3921 llvm_cv_target_os_type="Minix" ;; 3922 *-*-freebsd* | *-*-kfreebsd-gnu) 3923 llvm_cv_target_os_type="FreeBSD" ;; 3924 *-*-openbsd*) 3925 llvm_cv_target_os_type="OpenBSD" ;; 3926 *-*-netbsd*) 3927 llvm_cv_target_os_type="NetBSD" ;; 3928 *-*-dragonfly*) 3929 llvm_cv_target_os_type="DragonFly" ;; 3930 *-*-hpux*) 3931 llvm_cv_target_os_type="HP-UX" ;; 3932 *-*-interix*) 3933 llvm_cv_target_os_type="Interix" ;; 3934 *-*-linux*) 3935 llvm_cv_target_os_type="Linux" ;; 3936 *-*-gnu*) 3937 llvm_cv_target_os_type="GNU" ;; 3938 *-*-solaris*) 3939 llvm_cv_target_os_type="SunOS" ;; 3940 *-*-auroraux*) 3941 llvm_cv_target_os_type="AuroraUX" ;; 3942 *-*-win32*) 3943 llvm_cv_target_os_type="Win32" ;; 3944 *-*-mingw*) 3945 llvm_cv_target_os_type="MingW" ;; 3946 *-*-haiku*) 3947 llvm_cv_target_os_type="Haiku" ;; 3948 *-*-rtems*) 3949 llvm_cv_target_os_type="RTEMS" ;; 3950 *-*-nacl*) 3951 llvm_cv_target_os_type="NativeClient" ;; 3952 *-unknown-eabi*) 3953 llvm_cv_target_os_type="Freestanding" ;; 3954 *) 3955 llvm_cv_target_os_type="Unknown" ;; 3956esac 3957fi 3958{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3959echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3960 3961if test "$llvm_cv_os_type" = "Unknown" ; then 3962 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3963echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3964 { (exit 1); exit 1; }; } 3965fi 3966 3967OS=$llvm_cv_os_type 3968 3969HOST_OS=$llvm_cv_os_type 3970 3971TARGET_OS=$llvm_cv_target_os_type 3972 3973 3974LINKALL=$llvm_cv_link_all_option 3975 3976NOLINKALL=$llvm_cv_no_link_all_option 3977 3978 3979case $llvm_cv_platform_type in 3980 Unix) 3981 3982cat >>confdefs.h <<\_ACEOF 3983#define LLVM_ON_UNIX 1 3984_ACEOF 3985 3986 LLVM_ON_UNIX=1 3987 3988 LLVM_ON_WIN32=0 3989 3990 ;; 3991 Win32) 3992 3993cat >>confdefs.h <<\_ACEOF 3994#define LLVM_ON_WIN32 1 3995_ACEOF 3996 3997 LLVM_ON_UNIX=0 3998 3999 LLVM_ON_WIN32=1 4000 4001 ;; 4002esac 4003 4004{ echo "$as_me:$LINENO: checking target architecture" >&5 4005echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 4006if test "${llvm_cv_target_arch+set}" = set; then 4007 echo $ECHO_N "(cached) $ECHO_C" >&6 4008else 4009 case $target in 4010 i?86-*) llvm_cv_target_arch="x86" ;; 4011 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 4012 sparc*-*) llvm_cv_target_arch="Sparc" ;; 4013 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 4014 arm*-*) llvm_cv_target_arch="ARM" ;; 4015 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 4016 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 4017 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 4018 xcore-*) llvm_cv_target_arch="XCore" ;; 4019 msp430-*) llvm_cv_target_arch="MSP430" ;; 4020 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 4021 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 4022 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 4023 *) llvm_cv_target_arch="Unknown" ;; 4024esac 4025fi 4026{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 4027echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 4028 4029if test "$llvm_cv_target_arch" = "Unknown" ; then 4030 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 4031echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 4032fi 4033 4034case "$llvm_cv_target_arch" in 4035 x86) LLVM_NATIVE_ARCH="X86" ;; 4036 x86_64) LLVM_NATIVE_ARCH="X86" ;; 4037 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 4038esac 4039 4040ARCH=$llvm_cv_target_arch 4041 4042 4043case $host in 4044 i?86-*) host_arch="x86" ;; 4045 amd64-* | x86_64-*) host_arch="x86_64" ;; 4046 sparc*-*) host_arch="Sparc" ;; 4047 powerpc*-*) host_arch="PowerPC" ;; 4048 arm*-*) host_arch="ARM" ;; 4049 aarch64*-*) host_arch="AArch64" ;; 4050 mips-* | mips64-*) host_arch="Mips" ;; 4051 mipsel-* | mips64el-*) host_arch="Mips" ;; 4052 xcore-*) host_arch="XCore" ;; 4053 msp430-*) host_arch="MSP430" ;; 4054 hexagon-*) host_arch="Hexagon" ;; 4055 mblaze-*) host_arch="MBlaze" ;; 4056 *) host_arch="Unknown" ;; 4057esac 4058 4059if test "$host_arch" = "Unknown" ; then 4060 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 4061echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 4062fi 4063 4064HOST_ARCH=$host_arch 4065 4066 4067 4068 4069{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4070echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4071if test "${ac_cv_path_GREP+set}" = set; then 4072 echo $ECHO_N "(cached) $ECHO_C" >&6 4073else 4074 # Extract the first word of "grep ggrep" to use in msg output 4075if test -z "$GREP"; then 4076set dummy grep ggrep; ac_prog_name=$2 4077if test "${ac_cv_path_GREP+set}" = set; then 4078 echo $ECHO_N "(cached) $ECHO_C" >&6 4079else 4080 ac_path_GREP_found=false 4081# Loop through the user's path and test for each of PROGNAME-LIST 4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4083for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4084do 4085 IFS=$as_save_IFS 4086 test -z "$as_dir" && as_dir=. 4087 for ac_prog in grep ggrep; do 4088 for ac_exec_ext in '' $ac_executable_extensions; do 4089 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4090 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 4091 # Check for GNU ac_path_GREP and select it if it is found. 4092 # Check for GNU $ac_path_GREP 4093case `"$ac_path_GREP" --version 2>&1` in 4094*GNU*) 4095 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4096*) 4097 ac_count=0 4098 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4099 while : 4100 do 4101 cat "conftest.in" "conftest.in" >"conftest.tmp" 4102 mv "conftest.tmp" "conftest.in" 4103 cp "conftest.in" "conftest.nl" 4104 echo 'GREP' >> "conftest.nl" 4105 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4107 ac_count=`expr $ac_count + 1` 4108 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4109 # Best one so far, save it but keep looking for a better one 4110 ac_cv_path_GREP="$ac_path_GREP" 4111 ac_path_GREP_max=$ac_count 4112 fi 4113 # 10*(2^10) chars as input seems more than enough 4114 test $ac_count -gt 10 && break 4115 done 4116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4117esac 4118 4119 4120 $ac_path_GREP_found && break 3 4121 done 4122done 4123 4124done 4125IFS=$as_save_IFS 4126 4127 4128fi 4129 4130GREP="$ac_cv_path_GREP" 4131if test -z "$GREP"; then 4132 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4133echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4134 { (exit 1); exit 1; }; } 4135fi 4136 4137else 4138 ac_cv_path_GREP=$GREP 4139fi 4140 4141 4142fi 4143{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4144echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4145 GREP="$ac_cv_path_GREP" 4146 4147 4148{ echo "$as_me:$LINENO: checking for egrep" >&5 4149echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4150if test "${ac_cv_path_EGREP+set}" = set; then 4151 echo $ECHO_N "(cached) $ECHO_C" >&6 4152else 4153 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4154 then ac_cv_path_EGREP="$GREP -E" 4155 else 4156 # Extract the first word of "egrep" to use in msg output 4157if test -z "$EGREP"; then 4158set dummy egrep; ac_prog_name=$2 4159if test "${ac_cv_path_EGREP+set}" = set; then 4160 echo $ECHO_N "(cached) $ECHO_C" >&6 4161else 4162 ac_path_EGREP_found=false 4163# Loop through the user's path and test for each of PROGNAME-LIST 4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4166do 4167 IFS=$as_save_IFS 4168 test -z "$as_dir" && as_dir=. 4169 for ac_prog in egrep; do 4170 for ac_exec_ext in '' $ac_executable_extensions; do 4171 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4172 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4173 # Check for GNU ac_path_EGREP and select it if it is found. 4174 # Check for GNU $ac_path_EGREP 4175case `"$ac_path_EGREP" --version 2>&1` in 4176*GNU*) 4177 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4178*) 4179 ac_count=0 4180 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4181 while : 4182 do 4183 cat "conftest.in" "conftest.in" >"conftest.tmp" 4184 mv "conftest.tmp" "conftest.in" 4185 cp "conftest.in" "conftest.nl" 4186 echo 'EGREP' >> "conftest.nl" 4187 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4189 ac_count=`expr $ac_count + 1` 4190 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4191 # Best one so far, save it but keep looking for a better one 4192 ac_cv_path_EGREP="$ac_path_EGREP" 4193 ac_path_EGREP_max=$ac_count 4194 fi 4195 # 10*(2^10) chars as input seems more than enough 4196 test $ac_count -gt 10 && break 4197 done 4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4199esac 4200 4201 4202 $ac_path_EGREP_found && break 3 4203 done 4204done 4205 4206done 4207IFS=$as_save_IFS 4208 4209 4210fi 4211 4212EGREP="$ac_cv_path_EGREP" 4213if test -z "$EGREP"; then 4214 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4215echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4216 { (exit 1); exit 1; }; } 4217fi 4218 4219else 4220 ac_cv_path_EGREP=$EGREP 4221fi 4222 4223 4224 fi 4225fi 4226{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4227echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4228 EGREP="$ac_cv_path_EGREP" 4229 4230 4231{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4232echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4233if test "${ac_cv_header_stdc+set}" = set; then 4234 echo $ECHO_N "(cached) $ECHO_C" >&6 4235else 4236 cat >conftest.$ac_ext <<_ACEOF 4237/* confdefs.h. */ 4238_ACEOF 4239cat confdefs.h >>conftest.$ac_ext 4240cat >>conftest.$ac_ext <<_ACEOF 4241/* end confdefs.h. */ 4242#include <stdlib.h> 4243#include <stdarg.h> 4244#include <string.h> 4245#include <float.h> 4246 4247int 4248main () 4249{ 4250 4251 ; 4252 return 0; 4253} 4254_ACEOF 4255rm -f conftest.$ac_objext 4256if { (ac_try="$ac_compile" 4257case "(($ac_try" in 4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4259 *) ac_try_echo=$ac_try;; 4260esac 4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4262 (eval "$ac_compile") 2>conftest.er1 4263 ac_status=$? 4264 grep -v '^ *+' conftest.er1 >conftest.err 4265 rm -f conftest.er1 4266 cat conftest.err >&5 4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4268 (exit $ac_status); } && 4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4270 { (case "(($ac_try" in 4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4272 *) ac_try_echo=$ac_try;; 4273esac 4274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4275 (eval "$ac_try") 2>&5 4276 ac_status=$? 4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4278 (exit $ac_status); }; } && 4279 { ac_try='test -s conftest.$ac_objext' 4280 { (case "(($ac_try" in 4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4282 *) ac_try_echo=$ac_try;; 4283esac 4284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4285 (eval "$ac_try") 2>&5 4286 ac_status=$? 4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4288 (exit $ac_status); }; }; then 4289 ac_cv_header_stdc=yes 4290else 4291 echo "$as_me: failed program was:" >&5 4292sed 's/^/| /' conftest.$ac_ext >&5 4293 4294 ac_cv_header_stdc=no 4295fi 4296 4297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4298 4299if test $ac_cv_header_stdc = yes; then 4300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4301 cat >conftest.$ac_ext <<_ACEOF 4302/* confdefs.h. */ 4303_ACEOF 4304cat confdefs.h >>conftest.$ac_ext 4305cat >>conftest.$ac_ext <<_ACEOF 4306/* end confdefs.h. */ 4307#include <string.h> 4308 4309_ACEOF 4310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4311 $EGREP "memchr" >/dev/null 2>&1; then 4312 : 4313else 4314 ac_cv_header_stdc=no 4315fi 4316rm -f conftest* 4317 4318fi 4319 4320if test $ac_cv_header_stdc = yes; then 4321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4322 cat >conftest.$ac_ext <<_ACEOF 4323/* confdefs.h. */ 4324_ACEOF 4325cat confdefs.h >>conftest.$ac_ext 4326cat >>conftest.$ac_ext <<_ACEOF 4327/* end confdefs.h. */ 4328#include <stdlib.h> 4329 4330_ACEOF 4331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4332 $EGREP "free" >/dev/null 2>&1; then 4333 : 4334else 4335 ac_cv_header_stdc=no 4336fi 4337rm -f conftest* 4338 4339fi 4340 4341if test $ac_cv_header_stdc = yes; then 4342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4343 if test "$cross_compiling" = yes; then 4344 : 4345else 4346 cat >conftest.$ac_ext <<_ACEOF 4347/* confdefs.h. */ 4348_ACEOF 4349cat confdefs.h >>conftest.$ac_ext 4350cat >>conftest.$ac_ext <<_ACEOF 4351/* end confdefs.h. */ 4352#include <ctype.h> 4353#include <stdlib.h> 4354#if ((' ' & 0x0FF) == 0x020) 4355# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4356# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4357#else 4358# define ISLOWER(c) \ 4359 (('a' <= (c) && (c) <= 'i') \ 4360 || ('j' <= (c) && (c) <= 'r') \ 4361 || ('s' <= (c) && (c) <= 'z')) 4362# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4363#endif 4364 4365#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4366int 4367main () 4368{ 4369 int i; 4370 for (i = 0; i < 256; i++) 4371 if (XOR (islower (i), ISLOWER (i)) 4372 || toupper (i) != TOUPPER (i)) 4373 return 2; 4374 return 0; 4375} 4376_ACEOF 4377rm -f conftest$ac_exeext 4378if { (ac_try="$ac_link" 4379case "(($ac_try" in 4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4381 *) ac_try_echo=$ac_try;; 4382esac 4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4384 (eval "$ac_link") 2>&5 4385 ac_status=$? 4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4388 { (case "(($ac_try" in 4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4390 *) ac_try_echo=$ac_try;; 4391esac 4392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4393 (eval "$ac_try") 2>&5 4394 ac_status=$? 4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4396 (exit $ac_status); }; }; then 4397 : 4398else 4399 echo "$as_me: program exited with status $ac_status" >&5 4400echo "$as_me: failed program was:" >&5 4401sed 's/^/| /' conftest.$ac_ext >&5 4402 4403( exit $ac_status ) 4404ac_cv_header_stdc=no 4405fi 4406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4407fi 4408 4409 4410fi 4411fi 4412{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4413echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4414if test $ac_cv_header_stdc = yes; then 4415 4416cat >>confdefs.h <<\_ACEOF 4417#define STDC_HEADERS 1 4418_ACEOF 4419 4420fi 4421 4422# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4433 inttypes.h stdint.h unistd.h 4434do 4435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4436{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4439 echo $ECHO_N "(cached) $ECHO_C" >&6 4440else 4441 cat >conftest.$ac_ext <<_ACEOF 4442/* confdefs.h. */ 4443_ACEOF 4444cat confdefs.h >>conftest.$ac_ext 4445cat >>conftest.$ac_ext <<_ACEOF 4446/* end confdefs.h. */ 4447$ac_includes_default 4448 4449#include <$ac_header> 4450_ACEOF 4451rm -f conftest.$ac_objext 4452if { (ac_try="$ac_compile" 4453case "(($ac_try" in 4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4455 *) ac_try_echo=$ac_try;; 4456esac 4457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4458 (eval "$ac_compile") 2>conftest.er1 4459 ac_status=$? 4460 grep -v '^ *+' conftest.er1 >conftest.err 4461 rm -f conftest.er1 4462 cat conftest.err >&5 4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4464 (exit $ac_status); } && 4465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4466 { (case "(($ac_try" in 4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4468 *) ac_try_echo=$ac_try;; 4469esac 4470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4471 (eval "$ac_try") 2>&5 4472 ac_status=$? 4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4474 (exit $ac_status); }; } && 4475 { ac_try='test -s conftest.$ac_objext' 4476 { (case "(($ac_try" in 4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4478 *) ac_try_echo=$ac_try;; 4479esac 4480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4481 (eval "$ac_try") 2>&5 4482 ac_status=$? 4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4484 (exit $ac_status); }; }; then 4485 eval "$as_ac_Header=yes" 4486else 4487 echo "$as_me: failed program was:" >&5 4488sed 's/^/| /' conftest.$ac_ext >&5 4489 4490 eval "$as_ac_Header=no" 4491fi 4492 4493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4494fi 4495ac_res=`eval echo '${'$as_ac_Header'}'` 4496 { echo "$as_me:$LINENO: result: $ac_res" >&5 4497echo "${ECHO_T}$ac_res" >&6; } 4498if test `eval echo '${'$as_ac_Header'}'` = yes; then 4499 cat >>confdefs.h <<_ACEOF 4500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4501_ACEOF 4502 4503fi 4504 4505done 4506 4507 4508{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4509echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4510if test "${ac_cv_c_bigendian+set}" = set; then 4511 echo $ECHO_N "(cached) $ECHO_C" >&6 4512else 4513 # See if sys/param.h defines the BYTE_ORDER macro. 4514cat >conftest.$ac_ext <<_ACEOF 4515/* confdefs.h. */ 4516_ACEOF 4517cat confdefs.h >>conftest.$ac_ext 4518cat >>conftest.$ac_ext <<_ACEOF 4519/* end confdefs.h. */ 4520#include <sys/types.h> 4521#include <sys/param.h> 4522 4523int 4524main () 4525{ 4526#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4527 bogus endian macros 4528#endif 4529 4530 ; 4531 return 0; 4532} 4533_ACEOF 4534rm -f conftest.$ac_objext 4535if { (ac_try="$ac_compile" 4536case "(($ac_try" in 4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4538 *) ac_try_echo=$ac_try;; 4539esac 4540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4541 (eval "$ac_compile") 2>conftest.er1 4542 ac_status=$? 4543 grep -v '^ *+' conftest.er1 >conftest.err 4544 rm -f conftest.er1 4545 cat conftest.err >&5 4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4547 (exit $ac_status); } && 4548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4549 { (case "(($ac_try" in 4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4551 *) ac_try_echo=$ac_try;; 4552esac 4553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4554 (eval "$ac_try") 2>&5 4555 ac_status=$? 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); }; } && 4558 { ac_try='test -s conftest.$ac_objext' 4559 { (case "(($ac_try" in 4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4561 *) ac_try_echo=$ac_try;; 4562esac 4563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4564 (eval "$ac_try") 2>&5 4565 ac_status=$? 4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4567 (exit $ac_status); }; }; then 4568 # It does; now see whether it defined to BIG_ENDIAN or not. 4569cat >conftest.$ac_ext <<_ACEOF 4570/* confdefs.h. */ 4571_ACEOF 4572cat confdefs.h >>conftest.$ac_ext 4573cat >>conftest.$ac_ext <<_ACEOF 4574/* end confdefs.h. */ 4575#include <sys/types.h> 4576#include <sys/param.h> 4577 4578int 4579main () 4580{ 4581#if BYTE_ORDER != BIG_ENDIAN 4582 not big endian 4583#endif 4584 4585 ; 4586 return 0; 4587} 4588_ACEOF 4589rm -f conftest.$ac_objext 4590if { (ac_try="$ac_compile" 4591case "(($ac_try" in 4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4593 *) ac_try_echo=$ac_try;; 4594esac 4595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4596 (eval "$ac_compile") 2>conftest.er1 4597 ac_status=$? 4598 grep -v '^ *+' conftest.er1 >conftest.err 4599 rm -f conftest.er1 4600 cat conftest.err >&5 4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4602 (exit $ac_status); } && 4603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4604 { (case "(($ac_try" in 4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4606 *) ac_try_echo=$ac_try;; 4607esac 4608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4609 (eval "$ac_try") 2>&5 4610 ac_status=$? 4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4612 (exit $ac_status); }; } && 4613 { ac_try='test -s conftest.$ac_objext' 4614 { (case "(($ac_try" in 4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4616 *) ac_try_echo=$ac_try;; 4617esac 4618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4619 (eval "$ac_try") 2>&5 4620 ac_status=$? 4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4622 (exit $ac_status); }; }; then 4623 ac_cv_c_bigendian=yes 4624else 4625 echo "$as_me: failed program was:" >&5 4626sed 's/^/| /' conftest.$ac_ext >&5 4627 4628 ac_cv_c_bigendian=no 4629fi 4630 4631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4632else 4633 echo "$as_me: failed program was:" >&5 4634sed 's/^/| /' conftest.$ac_ext >&5 4635 4636 # It does not; compile a test program. 4637if test "$cross_compiling" = yes; then 4638 # try to guess the endianness by grepping values into an object file 4639 ac_cv_c_bigendian=unknown 4640 cat >conftest.$ac_ext <<_ACEOF 4641/* confdefs.h. */ 4642_ACEOF 4643cat confdefs.h >>conftest.$ac_ext 4644cat >>conftest.$ac_ext <<_ACEOF 4645/* end confdefs.h. */ 4646short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4647short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4648void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4649short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4650short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4651void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4652int 4653main () 4654{ 4655 _ascii (); _ebcdic (); 4656 ; 4657 return 0; 4658} 4659_ACEOF 4660rm -f conftest.$ac_objext 4661if { (ac_try="$ac_compile" 4662case "(($ac_try" in 4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4664 *) ac_try_echo=$ac_try;; 4665esac 4666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4667 (eval "$ac_compile") 2>conftest.er1 4668 ac_status=$? 4669 grep -v '^ *+' conftest.er1 >conftest.err 4670 rm -f conftest.er1 4671 cat conftest.err >&5 4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4673 (exit $ac_status); } && 4674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4675 { (case "(($ac_try" in 4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4677 *) ac_try_echo=$ac_try;; 4678esac 4679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4680 (eval "$ac_try") 2>&5 4681 ac_status=$? 4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4683 (exit $ac_status); }; } && 4684 { ac_try='test -s conftest.$ac_objext' 4685 { (case "(($ac_try" in 4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4687 *) ac_try_echo=$ac_try;; 4688esac 4689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4690 (eval "$ac_try") 2>&5 4691 ac_status=$? 4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4693 (exit $ac_status); }; }; then 4694 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4695 ac_cv_c_bigendian=yes 4696fi 4697if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4698 if test "$ac_cv_c_bigendian" = unknown; then 4699 ac_cv_c_bigendian=no 4700 else 4701 # finding both strings is unlikely to happen, but who knows? 4702 ac_cv_c_bigendian=unknown 4703 fi 4704fi 4705else 4706 echo "$as_me: failed program was:" >&5 4707sed 's/^/| /' conftest.$ac_ext >&5 4708 4709 4710fi 4711 4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4713else 4714 cat >conftest.$ac_ext <<_ACEOF 4715/* confdefs.h. */ 4716_ACEOF 4717cat confdefs.h >>conftest.$ac_ext 4718cat >>conftest.$ac_ext <<_ACEOF 4719/* end confdefs.h. */ 4720$ac_includes_default 4721int 4722main () 4723{ 4724 4725 /* Are we little or big endian? From Harbison&Steele. */ 4726 union 4727 { 4728 long int l; 4729 char c[sizeof (long int)]; 4730 } u; 4731 u.l = 1; 4732 return u.c[sizeof (long int) - 1] == 1; 4733 4734 ; 4735 return 0; 4736} 4737_ACEOF 4738rm -f conftest$ac_exeext 4739if { (ac_try="$ac_link" 4740case "(($ac_try" in 4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4742 *) ac_try_echo=$ac_try;; 4743esac 4744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4745 (eval "$ac_link") 2>&5 4746 ac_status=$? 4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4749 { (case "(($ac_try" in 4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4751 *) ac_try_echo=$ac_try;; 4752esac 4753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4754 (eval "$ac_try") 2>&5 4755 ac_status=$? 4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4757 (exit $ac_status); }; }; then 4758 ac_cv_c_bigendian=no 4759else 4760 echo "$as_me: program exited with status $ac_status" >&5 4761echo "$as_me: failed program was:" >&5 4762sed 's/^/| /' conftest.$ac_ext >&5 4763 4764( exit $ac_status ) 4765ac_cv_c_bigendian=yes 4766fi 4767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4768fi 4769 4770 4771fi 4772 4773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4774fi 4775{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4776echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4777case $ac_cv_c_bigendian in 4778 yes) 4779 ENDIAN=big 4780 ;; 4781 no) 4782 ENDIAN=little 4783 ;; 4784 *) 4785 { { echo "$as_me:$LINENO: error: unknown endianness 4786presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4787echo "$as_me: error: unknown endianness 4788presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4789 { (exit 1); exit 1; }; } ;; 4790esac 4791 4792 4793if test "$cross_compiling" = yes; then 4794 LLVM_CROSS_COMPILING=1 4795 4796 4797{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4798echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4799if test "${ac_cv_build_exeext+set}" = set; then 4800 echo $ECHO_N "(cached) $ECHO_C" >&6 4801else 4802 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4803 ac_cv_build_exeext=.exe 4804else 4805 ac_build_prefix=${build_alias}- 4806 4807 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4808set dummy ${ac_build_prefix}gcc; ac_word=$2 4809{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4811if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4812 echo $ECHO_N "(cached) $ECHO_C" >&6 4813else 4814 if test -n "$BUILD_CC"; then 4815 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4816else 4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4818for as_dir in $PATH 4819do 4820 IFS=$as_save_IFS 4821 test -z "$as_dir" && as_dir=. 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4824 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4826 break 2 4827 fi 4828done 4829done 4830IFS=$as_save_IFS 4831 4832fi 4833fi 4834BUILD_CC=$ac_cv_prog_BUILD_CC 4835if test -n "$BUILD_CC"; then 4836 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4837echo "${ECHO_T}$BUILD_CC" >&6; } 4838else 4839 { echo "$as_me:$LINENO: result: no" >&5 4840echo "${ECHO_T}no" >&6; } 4841fi 4842 4843 4844 if test -z "$BUILD_CC"; then 4845 # Extract the first word of "gcc", so it can be a program name with args. 4846set dummy gcc; ac_word=$2 4847{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4849if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4850 echo $ECHO_N "(cached) $ECHO_C" >&6 4851else 4852 if test -n "$BUILD_CC"; then 4853 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4854else 4855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4856for as_dir in $PATH 4857do 4858 IFS=$as_save_IFS 4859 test -z "$as_dir" && as_dir=. 4860 for ac_exec_ext in '' $ac_executable_extensions; do 4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4862 ac_cv_prog_BUILD_CC="gcc" 4863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4864 break 2 4865 fi 4866done 4867done 4868IFS=$as_save_IFS 4869 4870fi 4871fi 4872BUILD_CC=$ac_cv_prog_BUILD_CC 4873if test -n "$BUILD_CC"; then 4874 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4875echo "${ECHO_T}$BUILD_CC" >&6; } 4876else 4877 { echo "$as_me:$LINENO: result: no" >&5 4878echo "${ECHO_T}no" >&6; } 4879fi 4880 4881 4882 if test -z "$BUILD_CC"; then 4883 # Extract the first word of "cc", so it can be a program name with args. 4884set dummy cc; ac_word=$2 4885{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4887if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4888 echo $ECHO_N "(cached) $ECHO_C" >&6 4889else 4890 if test -n "$BUILD_CC"; then 4891 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4892else 4893 ac_prog_rejected=no 4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4895for as_dir in $PATH 4896do 4897 IFS=$as_save_IFS 4898 test -z "$as_dir" && as_dir=. 4899 for ac_exec_ext in '' $ac_executable_extensions; do 4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4902 ac_prog_rejected=yes 4903 continue 4904 fi 4905 ac_cv_prog_BUILD_CC="cc" 4906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4907 break 2 4908 fi 4909done 4910done 4911IFS=$as_save_IFS 4912 4913if test $ac_prog_rejected = yes; then 4914 # We found a bogon in the path, so make sure we never use it. 4915 set dummy $ac_cv_prog_BUILD_CC 4916 shift 4917 if test $# != 0; then 4918 # We chose a different compiler from the bogus one. 4919 # However, it has the same basename, so the bogon will be chosen 4920 # first if we set BUILD_CC to just the basename; use the full file name. 4921 shift 4922 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4923 fi 4924fi 4925fi 4926fi 4927BUILD_CC=$ac_cv_prog_BUILD_CC 4928if test -n "$BUILD_CC"; then 4929 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4930echo "${ECHO_T}$BUILD_CC" >&6; } 4931else 4932 { echo "$as_me:$LINENO: result: no" >&5 4933echo "${ECHO_T}no" >&6; } 4934fi 4935 4936 4937 fi 4938 fi 4939 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4940echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4941 { (exit 1); exit 1; }; } 4942 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4943 rm -f conftest* 4944 echo 'int main () { return 0; }' > conftest.$ac_ext 4945 ac_cv_build_exeext= 4946 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4947 (eval $ac_build_link) 2>&5 4948 ac_status=$? 4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4950 (exit $ac_status); }; then 4951 for file in conftest.*; do 4952 case $file in 4953 *.c | *.o | *.obj | *.dSYM) ;; 4954 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4955 esac 4956 done 4957 else 4958 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4959echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4960 { (exit 1); exit 1; }; } 4961 fi 4962 rm -f conftest* 4963 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4964fi 4965fi 4966 4967BUILD_EXEEXT="" 4968test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4969{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4970echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4971ac_build_exeext=$BUILD_EXEEXT 4972 4973 ac_build_prefix=${build_alias}- 4974 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4975set dummy ${ac_build_prefix}g++; ac_word=$2 4976{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4978if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4979 echo $ECHO_N "(cached) $ECHO_C" >&6 4980else 4981 if test -n "$BUILD_CXX"; then 4982 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4983else 4984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4985for as_dir in $PATH 4986do 4987 IFS=$as_save_IFS 4988 test -z "$as_dir" && as_dir=. 4989 for ac_exec_ext in '' $ac_executable_extensions; do 4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4991 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4993 break 2 4994 fi 4995done 4996done 4997IFS=$as_save_IFS 4998 4999fi 5000fi 5001BUILD_CXX=$ac_cv_prog_BUILD_CXX 5002if test -n "$BUILD_CXX"; then 5003 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5004echo "${ECHO_T}$BUILD_CXX" >&6; } 5005else 5006 { echo "$as_me:$LINENO: result: no" >&5 5007echo "${ECHO_T}no" >&6; } 5008fi 5009 5010 5011 if test -z "$BUILD_CXX"; then 5012 # Extract the first word of "g++", so it can be a program name with args. 5013set dummy g++; ac_word=$2 5014{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5016if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 5017 echo $ECHO_N "(cached) $ECHO_C" >&6 5018else 5019 if test -n "$BUILD_CXX"; then 5020 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5021else 5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5023for as_dir in $PATH 5024do 5025 IFS=$as_save_IFS 5026 test -z "$as_dir" && as_dir=. 5027 for ac_exec_ext in '' $ac_executable_extensions; do 5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5029 ac_cv_prog_BUILD_CXX="g++" 5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5031 break 2 5032 fi 5033done 5034done 5035IFS=$as_save_IFS 5036 5037fi 5038fi 5039BUILD_CXX=$ac_cv_prog_BUILD_CXX 5040if test -n "$BUILD_CXX"; then 5041 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5042echo "${ECHO_T}$BUILD_CXX" >&6; } 5043else 5044 { echo "$as_me:$LINENO: result: no" >&5 5045echo "${ECHO_T}no" >&6; } 5046fi 5047 5048 5049 if test -z "$BUILD_CXX"; then 5050 # Extract the first word of "c++", so it can be a program name with args. 5051set dummy c++; ac_word=$2 5052{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5054if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 5055 echo $ECHO_N "(cached) $ECHO_C" >&6 5056else 5057 if test -n "$BUILD_CXX"; then 5058 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 5059else 5060 ac_prog_rejected=no 5061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5062for as_dir in $PATH 5063do 5064 IFS=$as_save_IFS 5065 test -z "$as_dir" && as_dir=. 5066 for ac_exec_ext in '' $ac_executable_extensions; do 5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 5069 ac_prog_rejected=yes 5070 continue 5071 fi 5072 ac_cv_prog_BUILD_CXX="c++" 5073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5074 break 2 5075 fi 5076done 5077done 5078IFS=$as_save_IFS 5079 5080if test $ac_prog_rejected = yes; then 5081 # We found a bogon in the path, so make sure we never use it. 5082 set dummy $ac_cv_prog_BUILD_CXX 5083 shift 5084 if test $# != 0; then 5085 # We chose a different compiler from the bogus one. 5086 # However, it has the same basename, so the bogon will be chosen 5087 # first if we set BUILD_CXX to just the basename; use the full file name. 5088 shift 5089 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 5090 fi 5091fi 5092fi 5093fi 5094BUILD_CXX=$ac_cv_prog_BUILD_CXX 5095if test -n "$BUILD_CXX"; then 5096 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 5097echo "${ECHO_T}$BUILD_CXX" >&6; } 5098else 5099 { echo "$as_me:$LINENO: result: no" >&5 5100echo "${ECHO_T}no" >&6; } 5101fi 5102 5103 5104 fi 5105 fi 5106else 5107 LLVM_CROSS_COMPILING=0 5108 5109fi 5110 5111if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 5112 cvsbuild="yes" 5113 optimize="no" 5114 CVSBUILD=CVSBUILD=1 5115 5116else 5117 cvsbuild="no" 5118 optimize="yes" 5119fi 5120 5121 5122# Check whether --enable-libcpp was given. 5123if test "${enable_libcpp+set}" = set; then 5124 enableval=$enable_libcpp; 5125else 5126 enableval=default 5127fi 5128 5129case "$enableval" in 5130 yes) ENABLE_LIBCPP=1 5131 ;; 5132 no) ENABLE_LIBCPP=0 5133 ;; 5134 default) ENABLE_LIBCPP=0 5135;; 5136 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 5137echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 5138 { (exit 1); exit 1; }; } ;; 5139esac 5140 5141# Check whether --enable-cxx11 was given. 5142if test "${enable_cxx11+set}" = set; then 5143 enableval=$enable_cxx11; 5144else 5145 enableval=default 5146fi 5147 5148case "$enableval" in 5149 yes) ENABLE_CXX11=1 5150 ;; 5151 no) ENABLE_CXX11=0 5152 ;; 5153 default) ENABLE_CXX11=0 5154;; 5155 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5 5156echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;} 5157 { (exit 1); exit 1; }; } ;; 5158esac 5159 5160clang_arcmt="yes" 5161# Check whether --enable-clang-arcmt was given. 5162if test "${enable_clang_arcmt+set}" = set; then 5163 enableval=$enable_clang_arcmt; clang_arcmt="$enableval" 5164else 5165 enableval="yes" 5166fi 5167 5168case "$enableval" in 5169 yes) ENABLE_CLANG_ARCMT=1 5170 ;; 5171 no) ENABLE_CLANG_ARCMT=0 5172 ;; 5173 default) ENABLE_CLANG_ARCMT=1 5174;; 5175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5 5176echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;} 5177 { (exit 1); exit 1; }; } ;; 5178esac 5179 5180clang_static_analyzer="yes" 5181# Check whether --enable-clang-static-analyzer was given. 5182if test "${enable_clang_static_analyzer+set}" = set; then 5183 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval" 5184else 5185 enableval="yes" 5186fi 5187 5188case "$enableval" in 5189 yes) ENABLE_CLANG_STATIC_ANALYZER=1 5190 ;; 5191 no) ENABLE_CLANG_STATIC_ANALYZER=0 5192 ;; 5193 default) ENABLE_CLANG_STATIC_ANALYZER=1 5194;; 5195 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5 5196echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;} 5197 { (exit 1); exit 1; }; } ;; 5198esac 5199 5200# Check whether --enable-clang-rewriter was given. 5201if test "${enable_clang_rewriter+set}" = set; then 5202 enableval=$enable_clang_rewriter; 5203else 5204 enableval="yes" 5205fi 5206 5207case "$enableval" in 5208 yes) ENABLE_CLANG_REWRITER=1 5209 ;; 5210 no) 5211 if test ${clang_arcmt} != "no" ; then 5212 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5 5213echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;} 5214 { (exit 1); exit 1; }; } 5215 fi 5216 if test ${clang_static_analyzer} != "no" ; then 5217 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5 5218echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;} 5219 { (exit 1); exit 1; }; } 5220 fi 5221 ENABLE_CLANG_REWRITER=0 5222 5223 ;; 5224 default) ENABLE_CLANG_REWRITER=1 5225;; 5226 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5 5227echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;} 5228 { (exit 1); exit 1; }; } ;; 5229esac 5230 5231# Check whether --enable-optimized was given. 5232if test "${enable_optimized+set}" = set; then 5233 enableval=$enable_optimized; 5234else 5235 enableval=$optimize 5236fi 5237 5238if test ${enableval} = "no" ; then 5239 ENABLE_OPTIMIZED= 5240 5241else 5242 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 5243 5244fi 5245 5246# Check whether --enable-profiling was given. 5247if test "${enable_profiling+set}" = set; then 5248 enableval=$enable_profiling; 5249else 5250 enableval="no" 5251fi 5252 5253if test ${enableval} = "no" ; then 5254 ENABLE_PROFILING= 5255 5256else 5257 ENABLE_PROFILING=ENABLE_PROFILING=1 5258 5259fi 5260 5261# Check whether --enable-assertions was given. 5262if test "${enable_assertions+set}" = set; then 5263 enableval=$enable_assertions; 5264else 5265 enableval="yes" 5266fi 5267 5268if test ${enableval} = "yes" ; then 5269 DISABLE_ASSERTIONS= 5270 5271else 5272 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5273 5274fi 5275 5276# Check whether --enable-werror was given. 5277if test "${enable_werror+set}" = set; then 5278 enableval=$enable_werror; 5279else 5280 enableval="no" 5281fi 5282 5283case "$enableval" in 5284 yes) ENABLE_WERROR=1 5285 ;; 5286 no) ENABLE_WERROR=0 5287 ;; 5288 default) ENABLE_WERROR=0 5289;; 5290 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 5291echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} 5292 { (exit 1); exit 1; }; } ;; 5293esac 5294 5295# Check whether --enable-expensive-checks was given. 5296if test "${enable_expensive_checks+set}" = set; then 5297 enableval=$enable_expensive_checks; 5298else 5299 enableval="no" 5300fi 5301 5302if test ${enableval} = "yes" ; then 5303 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5304 5305 EXPENSIVE_CHECKS=yes 5306 5307else 5308 ENABLE_EXPENSIVE_CHECKS= 5309 5310 EXPENSIVE_CHECKS=no 5311 5312fi 5313 5314# Check whether --enable-debug-runtime was given. 5315if test "${enable_debug_runtime+set}" = set; then 5316 enableval=$enable_debug_runtime; 5317else 5318 enableval=no 5319fi 5320 5321if test ${enableval} = "no" ; then 5322 DEBUG_RUNTIME= 5323 5324else 5325 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5326 5327fi 5328 5329# Check whether --enable-debug-symbols was given. 5330if test "${enable_debug_symbols+set}" = set; then 5331 enableval=$enable_debug_symbols; 5332else 5333 enableval=no 5334fi 5335 5336if test ${enableval} = "no" ; then 5337 DEBUG_SYMBOLS= 5338 5339else 5340 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5341 5342fi 5343 5344# Check whether --enable-keep-symbols was given. 5345if test "${enable_keep_symbols+set}" = set; then 5346 enableval=$enable_keep_symbols; 5347else 5348 enableval=no 5349fi 5350 5351if test ${enableval} = "no" ; then 5352 KEEP_SYMBOLS= 5353 5354else 5355 KEEP_SYMBOLS=KEEP_SYMBOLS=1 5356 5357fi 5358 5359# Check whether --enable-jit was given. 5360if test "${enable_jit+set}" = set; then 5361 enableval=$enable_jit; 5362else 5363 enableval=default 5364fi 5365 5366if test ${enableval} = "no" 5367then 5368 JIT= 5369 5370else 5371 case "$llvm_cv_target_arch" in 5372 x86) TARGET_HAS_JIT=1 5373 ;; 5374 Sparc) TARGET_HAS_JIT=0 5375 ;; 5376 PowerPC) TARGET_HAS_JIT=1 5377 ;; 5378 x86_64) TARGET_HAS_JIT=1 5379 ;; 5380 ARM) TARGET_HAS_JIT=1 5381 ;; 5382 AArch64) TARGET_HAS_JIT=0 5383 ;; 5384 Mips) TARGET_HAS_JIT=1 5385 ;; 5386 XCore) TARGET_HAS_JIT=0 5387 ;; 5388 MSP430) TARGET_HAS_JIT=0 5389 ;; 5390 Hexagon) TARGET_HAS_JIT=0 5391 ;; 5392 MBlaze) TARGET_HAS_JIT=0 5393 ;; 5394 NVPTX) TARGET_HAS_JIT=0 5395 ;; 5396 *) TARGET_HAS_JIT=0 5397 ;; 5398 esac 5399fi 5400 5401# Check whether --enable-docs was given. 5402if test "${enable_docs+set}" = set; then 5403 enableval=$enable_docs; 5404else 5405 enableval=default 5406fi 5407 5408case "$enableval" in 5409 yes) ENABLE_DOCS=1 5410 ;; 5411 no) ENABLE_DOCS=0 5412 ;; 5413 default) ENABLE_DOCS=1 5414 ;; 5415 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5416echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5417 { (exit 1); exit 1; }; } ;; 5418esac 5419 5420# Check whether --enable-doxygen was given. 5421if test "${enable_doxygen+set}" = set; then 5422 enableval=$enable_doxygen; 5423else 5424 enableval=default 5425fi 5426 5427case "$enableval" in 5428 yes) ENABLE_DOXYGEN=1 5429 ;; 5430 no) ENABLE_DOXYGEN=0 5431 ;; 5432 default) ENABLE_DOXYGEN=0 5433 ;; 5434 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5435echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5436 { (exit 1); exit 1; }; } ;; 5437esac 5438 5439# Check whether --enable-threads was given. 5440if test "${enable_threads+set}" = set; then 5441 enableval=$enable_threads; 5442else 5443 enableval=default 5444fi 5445 5446case "$enableval" in 5447 yes) LLVM_ENABLE_THREADS=1 5448 ;; 5449 no) LLVM_ENABLE_THREADS=0 5450 ;; 5451 default) LLVM_ENABLE_THREADS=1 5452 ;; 5453 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5454echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5455 { (exit 1); exit 1; }; } ;; 5456esac 5457 5458cat >>confdefs.h <<_ACEOF 5459#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5460_ACEOF 5461 5462 5463# Check whether --enable-pthreads was given. 5464if test "${enable_pthreads+set}" = set; then 5465 enableval=$enable_pthreads; 5466else 5467 enableval=default 5468fi 5469 5470case "$enableval" in 5471 yes) ENABLE_PTHREADS=1 5472 ;; 5473 no) ENABLE_PTHREADS=0 5474 ;; 5475 default) ENABLE_PTHREADS=1 5476 ;; 5477 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5478echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5479 { (exit 1); exit 1; }; } ;; 5480esac 5481 5482# Check whether --enable-pic was given. 5483if test "${enable_pic+set}" = set; then 5484 enableval=$enable_pic; 5485else 5486 enableval=default 5487fi 5488 5489case "$enableval" in 5490 yes) ENABLE_PIC=1 5491 ;; 5492 no) ENABLE_PIC=0 5493 ;; 5494 default) ENABLE_PIC=1 5495 ;; 5496 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5497echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5498 { (exit 1); exit 1; }; } ;; 5499esac 5500 5501cat >>confdefs.h <<_ACEOF 5502#define ENABLE_PIC $ENABLE_PIC 5503_ACEOF 5504 5505 5506# Check whether --enable-shared was given. 5507if test "${enable_shared+set}" = set; then 5508 enableval=$enable_shared; 5509else 5510 enableval=default 5511fi 5512 5513case "$enableval" in 5514 yes) ENABLE_SHARED=1 5515 ;; 5516 no) ENABLE_SHARED=0 5517 ;; 5518 default) ENABLE_SHARED=0 5519 ;; 5520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5521echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5522 { (exit 1); exit 1; }; } ;; 5523esac 5524 5525# Check whether --enable-embed-stdcxx was given. 5526if test "${enable_embed_stdcxx+set}" = set; then 5527 enableval=$enable_embed_stdcxx; 5528else 5529 enableval=default 5530fi 5531 5532case "$enableval" in 5533 yes) ENABLE_EMBED_STDCXX=1 5534 ;; 5535 no) ENABLE_EMBED_STDCXX=0 5536 ;; 5537 default) ENABLE_EMBED_STDCXX=0 5538 ;; 5539 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5540echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5541 { (exit 1); exit 1; }; } ;; 5542esac 5543 5544# Check whether --enable-timestamps was given. 5545if test "${enable_timestamps+set}" = set; then 5546 enableval=$enable_timestamps; 5547else 5548 enableval=default 5549fi 5550 5551case "$enableval" in 5552 yes) ENABLE_TIMESTAMPS=1 5553 ;; 5554 no) ENABLE_TIMESTAMPS=0 5555 ;; 5556 default) ENABLE_TIMESTAMPS=1 5557 ;; 5558 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5559echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5560 { (exit 1); exit 1; }; } ;; 5561esac 5562 5563cat >>confdefs.h <<_ACEOF 5564#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5565_ACEOF 5566 5567 5568 5569# Check whether --enable-backtraces was given. 5570if test "${enable_backtraces+set}" = set; then 5571 enableval=$enable_backtraces; 5572else 5573 enableval=default 5574fi 5575 5576case "$enableval" in 5577 yes) ENABLE_BACKTRACES=1 5578 ;; 5579 no) ENABLE_BACKTRACES=0 5580 ;; 5581 default) ENABLE_BACKTRACES=1 5582 ;; 5583 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5 5584echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;} 5585 { (exit 1); exit 1; }; } ;; 5586esac 5587 5588cat >>confdefs.h <<_ACEOF 5589#define ENABLE_BACKTRACES $ENABLE_BACKTRACES 5590_ACEOF 5591 5592 5593TARGETS_TO_BUILD="" 5594# Check whether --enable-targets was given. 5595if test "${enable_targets+set}" = set; then 5596 enableval=$enable_targets; 5597else 5598 enableval=all 5599fi 5600 5601if test "$enableval" = host-only ; then 5602 enableval=host 5603fi 5604case "$enableval" in 5605 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;; 5606 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5607 case "$a_target" in 5608 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5609 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5610 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5611 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5612 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5613 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5614 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5615 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5616 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5617 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5618 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5619 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5620 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5621 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5622 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5623 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5624 host) case "$llvm_cv_target_arch" in 5625 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5626 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5627 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5628 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5629 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5630 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5631 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5632 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5633 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5634 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5635 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5636 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5637echo "$as_me: error: Can not set target to build" >&2;} 5638 { (exit 1); exit 1; }; } ;; 5639 esac ;; 5640 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5641echo "$as_me: error: Unrecognized target $a_target" >&2;} 5642 { (exit 1); exit 1; }; } ;; 5643 esac 5644 done 5645 ;; 5646esac 5647 5648# Check whether --enable-experimental-targets was given. 5649if test "${enable_experimental_targets+set}" = set; then 5650 enableval=$enable_experimental_targets; 5651else 5652 enableval=disable 5653fi 5654 5655 5656if test ${enableval} != "disable" 5657then 5658 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" 5659fi 5660 5661TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5662 5663 5664for a_target in $TARGETS_TO_BUILD; do 5665 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5666 5667cat >>confdefs.h <<_ACEOF 5668#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5669_ACEOF 5670 5671 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5672 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5673 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5674 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5675 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5676 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5677 fi 5678 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5679 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5680 fi 5681 5682cat >>confdefs.h <<_ACEOF 5683#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5684_ACEOF 5685 5686 5687cat >>confdefs.h <<_ACEOF 5688#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5689_ACEOF 5690 5691 5692cat >>confdefs.h <<_ACEOF 5693#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5694_ACEOF 5695 5696 5697cat >>confdefs.h <<_ACEOF 5698#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5699_ACEOF 5700 5701 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5702 5703cat >>confdefs.h <<_ACEOF 5704#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5705_ACEOF 5706 5707 fi 5708 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5709 5710cat >>confdefs.h <<_ACEOF 5711#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5712_ACEOF 5713 5714 fi 5715 fi 5716done 5717 5718LLVM_ENUM_TARGETS="" 5719LLVM_ENUM_ASM_PRINTERS="" 5720LLVM_ENUM_ASM_PARSERS="" 5721LLVM_ENUM_DISASSEMBLERS="" 5722for target_to_build in $TARGETS_TO_BUILD; do 5723 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5724 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5725 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5726 fi 5727 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5728 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5729 fi 5730 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5731 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5732 fi 5733done 5734 5735 5736 5737 5738 5739 5740# Check whether --with-optimize-option was given. 5741if test "${with_optimize_option+set}" = set; then 5742 withval=$with_optimize_option; 5743else 5744 withval=default 5745fi 5746 5747{ echo "$as_me:$LINENO: checking optimization flags" >&5 5748echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5749case "$withval" in 5750 default) 5751 case "$llvm_cv_os_type" in 5752 FreeBSD) optimize_option=-O2 ;; 5753 MingW) optimize_option=-O2 ;; 5754 *) optimize_option=-O3 ;; 5755 esac ;; 5756 *) optimize_option="$withval" ;; 5757esac 5758OPTIMIZE_OPTION=$optimize_option 5759 5760{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5761echo "${ECHO_T}$optimize_option" >&6; } 5762 5763 5764# Check whether --with-extra-options was given. 5765if test "${with_extra_options+set}" = set; then 5766 withval=$with_extra_options; 5767else 5768 withval=default 5769fi 5770 5771case "$withval" in 5772 default) EXTRA_OPTIONS= ;; 5773 *) EXTRA_OPTIONS=$withval ;; 5774esac 5775EXTRA_OPTIONS=$EXTRA_OPTIONS 5776 5777 5778 5779# Check whether --with-extra-ld-options was given. 5780if test "${with_extra_ld_options+set}" = set; then 5781 withval=$with_extra_ld_options; 5782else 5783 withval=default 5784fi 5785 5786case "$withval" in 5787 default) EXTRA_LD_OPTIONS= ;; 5788 *) EXTRA_LD_OPTIONS=$withval ;; 5789esac 5790EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5791 5792 5793# Check whether --enable-bindings was given. 5794if test "${enable_bindings+set}" = set; then 5795 enableval=$enable_bindings; 5796else 5797 enableval=default 5798fi 5799 5800BINDINGS_TO_BUILD="" 5801case "$enableval" in 5802 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5803 all ) BINDINGS_TO_BUILD="ocaml" ;; 5804 none | no) BINDINGS_TO_BUILD="" ;; 5805 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5806 case "$a_binding" in 5807 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5808 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5809echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5810 { (exit 1); exit 1; }; } ;; 5811 esac 5812 done 5813 ;; 5814esac 5815 5816 5817# Check whether --with-ocaml-libdir was given. 5818if test "${with_ocaml_libdir+set}" = set; then 5819 withval=$with_ocaml_libdir; 5820else 5821 withval=auto 5822fi 5823 5824case "$withval" in 5825 auto) with_ocaml_libdir="$withval" ;; 5826 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5827 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5828echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5829 { (exit 1); exit 1; }; } ;; 5830esac 5831 5832 5833# Check whether --with-clang-srcdir was given. 5834if test "${with_clang_srcdir+set}" = set; then 5835 withval=$with_clang_srcdir; 5836else 5837 withval="-" 5838fi 5839 5840case "$withval" in 5841 -) clang_src_root="" ;; 5842 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5843 *) clang_src_root="$ac_pwd/$withval" ;; 5844esac 5845CLANG_SRC_ROOT=$clang_src_root 5846 5847 5848 5849# Check whether --with-clang-resource-dir was given. 5850if test "${with_clang_resource_dir+set}" = set; then 5851 withval=$with_clang_resource_dir; 5852else 5853 withval="" 5854fi 5855 5856 5857cat >>confdefs.h <<_ACEOF 5858#define CLANG_RESOURCE_DIR "$withval" 5859_ACEOF 5860 5861 5862 5863# Check whether --with-c-include-dirs was given. 5864if test "${with_c_include_dirs+set}" = set; then 5865 withval=$with_c_include_dirs; 5866else 5867 withval="" 5868fi 5869 5870 5871cat >>confdefs.h <<_ACEOF 5872#define C_INCLUDE_DIRS "$withval" 5873_ACEOF 5874 5875 5876# Clang normally uses the system c++ headers and libraries. With this option, 5877# clang will use the ones provided by a gcc installation instead. This option should 5878# be passed the same value that was used with --prefix when configuring gcc. 5879 5880# Check whether --with-gcc-toolchain was given. 5881if test "${with_gcc_toolchain+set}" = set; then 5882 withval=$with_gcc_toolchain; 5883else 5884 withval="" 5885fi 5886 5887 5888cat >>confdefs.h <<_ACEOF 5889#define GCC_INSTALL_PREFIX "$withval" 5890_ACEOF 5891 5892 5893 5894# Check whether --with-default-sysroot was given. 5895if test "${with_default_sysroot+set}" = set; then 5896 withval=$with_default_sysroot; 5897else 5898 withval="" 5899fi 5900 5901 5902cat >>confdefs.h <<_ACEOF 5903#define DEFAULT_SYSROOT "$withval" 5904_ACEOF 5905 5906 5907 5908# Check whether --with-binutils-include was given. 5909if test "${with_binutils_include+set}" = set; then 5910 withval=$with_binutils_include; 5911else 5912 withval=default 5913fi 5914 5915case "$withval" in 5916 default) WITH_BINUTILS_INCDIR=default ;; 5917 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5918 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5919echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5920 { (exit 1); exit 1; }; } ;; 5921esac 5922if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5923 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5924 5925 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5926 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5927 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5928echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5929 { (exit 1); exit 1; }; }; 5930 fi 5931fi 5932 5933 5934# Check whether --with-bug-report-url was given. 5935if test "${with_bug_report_url+set}" = set; then 5936 withval=$with_bug_report_url; 5937else 5938 withval="http://llvm.org/bugs/" 5939fi 5940 5941 5942cat >>confdefs.h <<_ACEOF 5943#define BUG_REPORT_URL "$withval" 5944_ACEOF 5945 5946 5947# Check whether --enable-libffi was given. 5948if test "${enable_libffi+set}" = set; then 5949 enableval=$enable_libffi; case "$enableval" in 5950 yes) llvm_cv_enable_libffi="yes" ;; 5951 no) llvm_cv_enable_libffi="no" ;; 5952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5953echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5954 { (exit 1); exit 1; }; } ;; 5955 esac 5956else 5957 llvm_cv_enable_libffi=no 5958fi 5959 5960 5961 5962# Check whether --with-internal-prefix was given. 5963if test "${with_internal_prefix+set}" = set; then 5964 withval=$with_internal_prefix; 5965else 5966 withval="" 5967fi 5968 5969INTERNAL_PREFIX=$withval 5970 5971 5972 5973{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5974echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5975if test "${lt_cv_path_NM+set}" = set; then 5976 echo $ECHO_N "(cached) $ECHO_C" >&6 5977else 5978 if test -n "$NM"; then 5979 # Let the user override the test. 5980 lt_cv_path_NM="$NM" 5981else 5982 lt_nm_to_check="${ac_tool_prefix}nm" 5983 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5984 lt_nm_to_check="$lt_nm_to_check nm" 5985 fi 5986 for lt_tmp_nm in $lt_nm_to_check; do 5987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5988 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5989 IFS="$lt_save_ifs" 5990 test -z "$ac_dir" && ac_dir=. 5991 tmp_nm="$ac_dir/$lt_tmp_nm" 5992 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5993 # Check to see if the nm accepts a BSD-compat flag. 5994 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5995 # nm: unknown option "B" ignored 5996 # Tru64's nm complains that /dev/null is an invalid object file 5997 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5998 */dev/null* | *'Invalid file or object type'*) 5999 lt_cv_path_NM="$tmp_nm -B" 6000 break 6001 ;; 6002 *) 6003 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6004 */dev/null*) 6005 lt_cv_path_NM="$tmp_nm -p" 6006 break 6007 ;; 6008 *) 6009 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6010 continue # so that we can try to find one that supports BSD flags 6011 ;; 6012 esac 6013 ;; 6014 esac 6015 fi 6016 done 6017 IFS="$lt_save_ifs" 6018 done 6019 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6020fi 6021fi 6022{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6023echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6024NM="$lt_cv_path_NM" 6025 6026 6027 6028{ echo "$as_me:$LINENO: checking for GNU make" >&5 6029echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6030if test "${llvm_cv_gnu_make_command+set}" = set; then 6031 echo $ECHO_N "(cached) $ECHO_C" >&6 6032else 6033 llvm_cv_gnu_make_command='' 6034 for a in "$MAKE" make gmake gnumake ; do 6035 if test -z "$a" ; then continue ; fi ; 6036 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6037 then 6038 llvm_cv_gnu_make_command=$a ; 6039 break; 6040 fi 6041 done 6042fi 6043{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6044echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6045 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6046 ifGNUmake='' ; 6047 else 6048 ifGNUmake='#' ; 6049 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6050echo "${ECHO_T}\"Not found\"" >&6; }; 6051 fi 6052 6053 6054{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6055echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6056LN_S=$as_ln_s 6057if test "$LN_S" = "ln -s"; then 6058 { echo "$as_me:$LINENO: result: yes" >&5 6059echo "${ECHO_T}yes" >&6; } 6060else 6061 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6062echo "${ECHO_T}no, using $LN_S" >&6; } 6063fi 6064 6065# Extract the first word of "cmp", so it can be a program name with args. 6066set dummy cmp; ac_word=$2 6067{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6069if test "${ac_cv_path_CMP+set}" = set; then 6070 echo $ECHO_N "(cached) $ECHO_C" >&6 6071else 6072 case $CMP in 6073 [\\/]* | ?:[\\/]*) 6074 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6075 ;; 6076 *) 6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6078for as_dir in $PATH 6079do 6080 IFS=$as_save_IFS 6081 test -z "$as_dir" && as_dir=. 6082 for ac_exec_ext in '' $ac_executable_extensions; do 6083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6084 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6086 break 2 6087 fi 6088done 6089done 6090IFS=$as_save_IFS 6091 6092 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6093 ;; 6094esac 6095fi 6096CMP=$ac_cv_path_CMP 6097if test -n "$CMP"; then 6098 { echo "$as_me:$LINENO: result: $CMP" >&5 6099echo "${ECHO_T}$CMP" >&6; } 6100else 6101 { echo "$as_me:$LINENO: result: no" >&5 6102echo "${ECHO_T}no" >&6; } 6103fi 6104 6105 6106# Extract the first word of "cp", so it can be a program name with args. 6107set dummy cp; ac_word=$2 6108{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6110if test "${ac_cv_path_CP+set}" = set; then 6111 echo $ECHO_N "(cached) $ECHO_C" >&6 6112else 6113 case $CP in 6114 [\\/]* | ?:[\\/]*) 6115 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6116 ;; 6117 *) 6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6119for as_dir in $PATH 6120do 6121 IFS=$as_save_IFS 6122 test -z "$as_dir" && as_dir=. 6123 for ac_exec_ext in '' $ac_executable_extensions; do 6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6125 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6127 break 2 6128 fi 6129done 6130done 6131IFS=$as_save_IFS 6132 6133 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6134 ;; 6135esac 6136fi 6137CP=$ac_cv_path_CP 6138if test -n "$CP"; then 6139 { echo "$as_me:$LINENO: result: $CP" >&5 6140echo "${ECHO_T}$CP" >&6; } 6141else 6142 { echo "$as_me:$LINENO: result: no" >&5 6143echo "${ECHO_T}no" >&6; } 6144fi 6145 6146 6147# Extract the first word of "date", so it can be a program name with args. 6148set dummy date; ac_word=$2 6149{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6151if test "${ac_cv_path_DATE+set}" = set; then 6152 echo $ECHO_N "(cached) $ECHO_C" >&6 6153else 6154 case $DATE in 6155 [\\/]* | ?:[\\/]*) 6156 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6157 ;; 6158 *) 6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6160for as_dir in $PATH 6161do 6162 IFS=$as_save_IFS 6163 test -z "$as_dir" && as_dir=. 6164 for ac_exec_ext in '' $ac_executable_extensions; do 6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6166 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6168 break 2 6169 fi 6170done 6171done 6172IFS=$as_save_IFS 6173 6174 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6175 ;; 6176esac 6177fi 6178DATE=$ac_cv_path_DATE 6179if test -n "$DATE"; then 6180 { echo "$as_me:$LINENO: result: $DATE" >&5 6181echo "${ECHO_T}$DATE" >&6; } 6182else 6183 { echo "$as_me:$LINENO: result: no" >&5 6184echo "${ECHO_T}no" >&6; } 6185fi 6186 6187 6188# Extract the first word of "find", so it can be a program name with args. 6189set dummy find; ac_word=$2 6190{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6192if test "${ac_cv_path_FIND+set}" = set; then 6193 echo $ECHO_N "(cached) $ECHO_C" >&6 6194else 6195 case $FIND in 6196 [\\/]* | ?:[\\/]*) 6197 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6198 ;; 6199 *) 6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6201for as_dir in $PATH 6202do 6203 IFS=$as_save_IFS 6204 test -z "$as_dir" && as_dir=. 6205 for ac_exec_ext in '' $ac_executable_extensions; do 6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6207 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6209 break 2 6210 fi 6211done 6212done 6213IFS=$as_save_IFS 6214 6215 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6216 ;; 6217esac 6218fi 6219FIND=$ac_cv_path_FIND 6220if test -n "$FIND"; then 6221 { echo "$as_me:$LINENO: result: $FIND" >&5 6222echo "${ECHO_T}$FIND" >&6; } 6223else 6224 { echo "$as_me:$LINENO: result: no" >&5 6225echo "${ECHO_T}no" >&6; } 6226fi 6227 6228 6229# Extract the first word of "grep", so it can be a program name with args. 6230set dummy grep; ac_word=$2 6231{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6233if test "${ac_cv_path_GREP+set}" = set; then 6234 echo $ECHO_N "(cached) $ECHO_C" >&6 6235else 6236 case $GREP in 6237 [\\/]* | ?:[\\/]*) 6238 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6239 ;; 6240 *) 6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6242for as_dir in $PATH 6243do 6244 IFS=$as_save_IFS 6245 test -z "$as_dir" && as_dir=. 6246 for ac_exec_ext in '' $ac_executable_extensions; do 6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6248 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6250 break 2 6251 fi 6252done 6253done 6254IFS=$as_save_IFS 6255 6256 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6257 ;; 6258esac 6259fi 6260GREP=$ac_cv_path_GREP 6261if test -n "$GREP"; then 6262 { echo "$as_me:$LINENO: result: $GREP" >&5 6263echo "${ECHO_T}$GREP" >&6; } 6264else 6265 { echo "$as_me:$LINENO: result: no" >&5 6266echo "${ECHO_T}no" >&6; } 6267fi 6268 6269 6270# Extract the first word of "mkdir", so it can be a program name with args. 6271set dummy mkdir; ac_word=$2 6272{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6274if test "${ac_cv_path_MKDIR+set}" = set; then 6275 echo $ECHO_N "(cached) $ECHO_C" >&6 6276else 6277 case $MKDIR in 6278 [\\/]* | ?:[\\/]*) 6279 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6280 ;; 6281 *) 6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6283for as_dir in $PATH 6284do 6285 IFS=$as_save_IFS 6286 test -z "$as_dir" && as_dir=. 6287 for ac_exec_ext in '' $ac_executable_extensions; do 6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6289 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6291 break 2 6292 fi 6293done 6294done 6295IFS=$as_save_IFS 6296 6297 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6298 ;; 6299esac 6300fi 6301MKDIR=$ac_cv_path_MKDIR 6302if test -n "$MKDIR"; then 6303 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6304echo "${ECHO_T}$MKDIR" >&6; } 6305else 6306 { echo "$as_me:$LINENO: result: no" >&5 6307echo "${ECHO_T}no" >&6; } 6308fi 6309 6310 6311# Extract the first word of "mv", so it can be a program name with args. 6312set dummy mv; ac_word=$2 6313{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6315if test "${ac_cv_path_MV+set}" = set; then 6316 echo $ECHO_N "(cached) $ECHO_C" >&6 6317else 6318 case $MV in 6319 [\\/]* | ?:[\\/]*) 6320 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6321 ;; 6322 *) 6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6324for as_dir in $PATH 6325do 6326 IFS=$as_save_IFS 6327 test -z "$as_dir" && as_dir=. 6328 for ac_exec_ext in '' $ac_executable_extensions; do 6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6330 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6332 break 2 6333 fi 6334done 6335done 6336IFS=$as_save_IFS 6337 6338 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6339 ;; 6340esac 6341fi 6342MV=$ac_cv_path_MV 6343if test -n "$MV"; then 6344 { echo "$as_me:$LINENO: result: $MV" >&5 6345echo "${ECHO_T}$MV" >&6; } 6346else 6347 { echo "$as_me:$LINENO: result: no" >&5 6348echo "${ECHO_T}no" >&6; } 6349fi 6350 6351 6352if test -n "$ac_tool_prefix"; then 6353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6354set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6355{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6357if test "${ac_cv_prog_RANLIB+set}" = set; then 6358 echo $ECHO_N "(cached) $ECHO_C" >&6 6359else 6360 if test -n "$RANLIB"; then 6361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6362else 6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6364for as_dir in $PATH 6365do 6366 IFS=$as_save_IFS 6367 test -z "$as_dir" && as_dir=. 6368 for ac_exec_ext in '' $ac_executable_extensions; do 6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6372 break 2 6373 fi 6374done 6375done 6376IFS=$as_save_IFS 6377 6378fi 6379fi 6380RANLIB=$ac_cv_prog_RANLIB 6381if test -n "$RANLIB"; then 6382 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6383echo "${ECHO_T}$RANLIB" >&6; } 6384else 6385 { echo "$as_me:$LINENO: result: no" >&5 6386echo "${ECHO_T}no" >&6; } 6387fi 6388 6389 6390fi 6391if test -z "$ac_cv_prog_RANLIB"; then 6392 ac_ct_RANLIB=$RANLIB 6393 # Extract the first word of "ranlib", so it can be a program name with args. 6394set dummy ranlib; ac_word=$2 6395{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6397if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6398 echo $ECHO_N "(cached) $ECHO_C" >&6 6399else 6400 if test -n "$ac_ct_RANLIB"; then 6401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6402else 6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6404for as_dir in $PATH 6405do 6406 IFS=$as_save_IFS 6407 test -z "$as_dir" && as_dir=. 6408 for ac_exec_ext in '' $ac_executable_extensions; do 6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6410 ac_cv_prog_ac_ct_RANLIB="ranlib" 6411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6412 break 2 6413 fi 6414done 6415done 6416IFS=$as_save_IFS 6417 6418fi 6419fi 6420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6421if test -n "$ac_ct_RANLIB"; then 6422 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6423echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6424else 6425 { echo "$as_me:$LINENO: result: no" >&5 6426echo "${ECHO_T}no" >&6; } 6427fi 6428 6429 if test "x$ac_ct_RANLIB" = x; then 6430 RANLIB=":" 6431 else 6432 case $cross_compiling:$ac_tool_warned in 6433yes:) 6434{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6435whose name does not start with the host triplet. If you think this 6436configuration is useful to you, please write to autoconf@gnu.org." >&5 6437echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6438whose name does not start with the host triplet. If you think this 6439configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6440ac_tool_warned=yes ;; 6441esac 6442 RANLIB=$ac_ct_RANLIB 6443 fi 6444else 6445 RANLIB="$ac_cv_prog_RANLIB" 6446fi 6447 6448if test -n "$ac_tool_prefix"; then 6449 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6450set dummy ${ac_tool_prefix}ar; ac_word=$2 6451{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6453if test "${ac_cv_prog_AR+set}" = set; then 6454 echo $ECHO_N "(cached) $ECHO_C" >&6 6455else 6456 if test -n "$AR"; then 6457 ac_cv_prog_AR="$AR" # Let the user override the test. 6458else 6459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6460for as_dir in $PATH 6461do 6462 IFS=$as_save_IFS 6463 test -z "$as_dir" && as_dir=. 6464 for ac_exec_ext in '' $ac_executable_extensions; do 6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6466 ac_cv_prog_AR="${ac_tool_prefix}ar" 6467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6468 break 2 6469 fi 6470done 6471done 6472IFS=$as_save_IFS 6473 6474fi 6475fi 6476AR=$ac_cv_prog_AR 6477if test -n "$AR"; then 6478 { echo "$as_me:$LINENO: result: $AR" >&5 6479echo "${ECHO_T}$AR" >&6; } 6480else 6481 { echo "$as_me:$LINENO: result: no" >&5 6482echo "${ECHO_T}no" >&6; } 6483fi 6484 6485 6486fi 6487if test -z "$ac_cv_prog_AR"; then 6488 ac_ct_AR=$AR 6489 # Extract the first word of "ar", so it can be a program name with args. 6490set dummy ar; ac_word=$2 6491{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6493if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6494 echo $ECHO_N "(cached) $ECHO_C" >&6 6495else 6496 if test -n "$ac_ct_AR"; then 6497 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6498else 6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6500for as_dir in $PATH 6501do 6502 IFS=$as_save_IFS 6503 test -z "$as_dir" && as_dir=. 6504 for ac_exec_ext in '' $ac_executable_extensions; do 6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6506 ac_cv_prog_ac_ct_AR="ar" 6507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6508 break 2 6509 fi 6510done 6511done 6512IFS=$as_save_IFS 6513 6514fi 6515fi 6516ac_ct_AR=$ac_cv_prog_ac_ct_AR 6517if test -n "$ac_ct_AR"; then 6518 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6519echo "${ECHO_T}$ac_ct_AR" >&6; } 6520else 6521 { echo "$as_me:$LINENO: result: no" >&5 6522echo "${ECHO_T}no" >&6; } 6523fi 6524 6525 if test "x$ac_ct_AR" = x; then 6526 AR="false" 6527 else 6528 case $cross_compiling:$ac_tool_warned in 6529yes:) 6530{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6531whose name does not start with the host triplet. If you think this 6532configuration is useful to you, please write to autoconf@gnu.org." >&5 6533echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6534whose name does not start with the host triplet. If you think this 6535configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6536ac_tool_warned=yes ;; 6537esac 6538 AR=$ac_ct_AR 6539 fi 6540else 6541 AR="$ac_cv_prog_AR" 6542fi 6543 6544# Extract the first word of "rm", so it can be a program name with args. 6545set dummy rm; ac_word=$2 6546{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6548if test "${ac_cv_path_RM+set}" = set; then 6549 echo $ECHO_N "(cached) $ECHO_C" >&6 6550else 6551 case $RM in 6552 [\\/]* | ?:[\\/]*) 6553 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6554 ;; 6555 *) 6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6557for as_dir in $PATH 6558do 6559 IFS=$as_save_IFS 6560 test -z "$as_dir" && as_dir=. 6561 for ac_exec_ext in '' $ac_executable_extensions; do 6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6563 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6565 break 2 6566 fi 6567done 6568done 6569IFS=$as_save_IFS 6570 6571 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6572 ;; 6573esac 6574fi 6575RM=$ac_cv_path_RM 6576if test -n "$RM"; then 6577 { echo "$as_me:$LINENO: result: $RM" >&5 6578echo "${ECHO_T}$RM" >&6; } 6579else 6580 { echo "$as_me:$LINENO: result: no" >&5 6581echo "${ECHO_T}no" >&6; } 6582fi 6583 6584 6585# Extract the first word of "sed", so it can be a program name with args. 6586set dummy sed; ac_word=$2 6587{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6589if test "${ac_cv_path_SED+set}" = set; then 6590 echo $ECHO_N "(cached) $ECHO_C" >&6 6591else 6592 case $SED in 6593 [\\/]* | ?:[\\/]*) 6594 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6595 ;; 6596 *) 6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6598for as_dir in $PATH 6599do 6600 IFS=$as_save_IFS 6601 test -z "$as_dir" && as_dir=. 6602 for ac_exec_ext in '' $ac_executable_extensions; do 6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6604 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6606 break 2 6607 fi 6608done 6609done 6610IFS=$as_save_IFS 6611 6612 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6613 ;; 6614esac 6615fi 6616SED=$ac_cv_path_SED 6617if test -n "$SED"; then 6618 { echo "$as_me:$LINENO: result: $SED" >&5 6619echo "${ECHO_T}$SED" >&6; } 6620else 6621 { echo "$as_me:$LINENO: result: no" >&5 6622echo "${ECHO_T}no" >&6; } 6623fi 6624 6625 6626# Extract the first word of "tar", so it can be a program name with args. 6627set dummy tar; ac_word=$2 6628{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6630if test "${ac_cv_path_TAR+set}" = set; then 6631 echo $ECHO_N "(cached) $ECHO_C" >&6 6632else 6633 case $TAR in 6634 [\\/]* | ?:[\\/]*) 6635 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6636 ;; 6637 *) 6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6639for as_dir in $PATH 6640do 6641 IFS=$as_save_IFS 6642 test -z "$as_dir" && as_dir=. 6643 for ac_exec_ext in '' $ac_executable_extensions; do 6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6645 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6647 break 2 6648 fi 6649done 6650done 6651IFS=$as_save_IFS 6652 6653 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6654 ;; 6655esac 6656fi 6657TAR=$ac_cv_path_TAR 6658if test -n "$TAR"; then 6659 { echo "$as_me:$LINENO: result: $TAR" >&5 6660echo "${ECHO_T}$TAR" >&6; } 6661else 6662 { echo "$as_me:$LINENO: result: no" >&5 6663echo "${ECHO_T}no" >&6; } 6664fi 6665 6666 6667# Extract the first word of "pwd", so it can be a program name with args. 6668set dummy pwd; ac_word=$2 6669{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6671if test "${ac_cv_path_BINPWD+set}" = set; then 6672 echo $ECHO_N "(cached) $ECHO_C" >&6 6673else 6674 case $BINPWD in 6675 [\\/]* | ?:[\\/]*) 6676 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6677 ;; 6678 *) 6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6680for as_dir in $PATH 6681do 6682 IFS=$as_save_IFS 6683 test -z "$as_dir" && as_dir=. 6684 for ac_exec_ext in '' $ac_executable_extensions; do 6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6686 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6688 break 2 6689 fi 6690done 6691done 6692IFS=$as_save_IFS 6693 6694 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6695 ;; 6696esac 6697fi 6698BINPWD=$ac_cv_path_BINPWD 6699if test -n "$BINPWD"; then 6700 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6701echo "${ECHO_T}$BINPWD" >&6; } 6702else 6703 { echo "$as_me:$LINENO: result: no" >&5 6704echo "${ECHO_T}no" >&6; } 6705fi 6706 6707 6708 6709# Extract the first word of "Graphviz", so it can be a program name with args. 6710set dummy Graphviz; ac_word=$2 6711{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6713if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6714 echo $ECHO_N "(cached) $ECHO_C" >&6 6715else 6716 case $GRAPHVIZ in 6717 [\\/]* | ?:[\\/]*) 6718 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6719 ;; 6720 *) 6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6722for as_dir in $PATH 6723do 6724 IFS=$as_save_IFS 6725 test -z "$as_dir" && as_dir=. 6726 for ac_exec_ext in '' $ac_executable_extensions; do 6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6728 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6730 break 2 6731 fi 6732done 6733done 6734IFS=$as_save_IFS 6735 6736 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6737 ;; 6738esac 6739fi 6740GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6741if test -n "$GRAPHVIZ"; then 6742 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6743echo "${ECHO_T}$GRAPHVIZ" >&6; } 6744else 6745 { echo "$as_me:$LINENO: result: no" >&5 6746echo "${ECHO_T}no" >&6; } 6747fi 6748 6749 6750if test "$GRAPHVIZ" != "echo Graphviz" ; then 6751 6752cat >>confdefs.h <<\_ACEOF 6753#define HAVE_GRAPHVIZ 1 6754_ACEOF 6755 6756 if test "$llvm_cv_os_type" = "MingW" ; then 6757 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6758 fi 6759 6760cat >>confdefs.h <<_ACEOF 6761#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6762_ACEOF 6763 6764fi 6765# Extract the first word of "dot", so it can be a program name with args. 6766set dummy dot; ac_word=$2 6767{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6769if test "${ac_cv_path_DOT+set}" = set; then 6770 echo $ECHO_N "(cached) $ECHO_C" >&6 6771else 6772 case $DOT in 6773 [\\/]* | ?:[\\/]*) 6774 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6775 ;; 6776 *) 6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6778for as_dir in $PATH 6779do 6780 IFS=$as_save_IFS 6781 test -z "$as_dir" && as_dir=. 6782 for ac_exec_ext in '' $ac_executable_extensions; do 6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6784 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6786 break 2 6787 fi 6788done 6789done 6790IFS=$as_save_IFS 6791 6792 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6793 ;; 6794esac 6795fi 6796DOT=$ac_cv_path_DOT 6797if test -n "$DOT"; then 6798 { echo "$as_me:$LINENO: result: $DOT" >&5 6799echo "${ECHO_T}$DOT" >&6; } 6800else 6801 { echo "$as_me:$LINENO: result: no" >&5 6802echo "${ECHO_T}no" >&6; } 6803fi 6804 6805 6806if test "$DOT" != "echo dot" ; then 6807 6808cat >>confdefs.h <<\_ACEOF 6809#define HAVE_DOT 1 6810_ACEOF 6811 6812 if test "$llvm_cv_os_type" = "MingW" ; then 6813 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6814 fi 6815 6816cat >>confdefs.h <<_ACEOF 6817#define LLVM_PATH_DOT "$DOT${EXEEXT}" 6818_ACEOF 6819 6820fi 6821# Extract the first word of "fdp", so it can be a program name with args. 6822set dummy fdp; ac_word=$2 6823{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6825if test "${ac_cv_path_FDP+set}" = set; then 6826 echo $ECHO_N "(cached) $ECHO_C" >&6 6827else 6828 case $FDP in 6829 [\\/]* | ?:[\\/]*) 6830 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6831 ;; 6832 *) 6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6834for as_dir in $PATH 6835do 6836 IFS=$as_save_IFS 6837 test -z "$as_dir" && as_dir=. 6838 for ac_exec_ext in '' $ac_executable_extensions; do 6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6840 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6842 break 2 6843 fi 6844done 6845done 6846IFS=$as_save_IFS 6847 6848 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6849 ;; 6850esac 6851fi 6852FDP=$ac_cv_path_FDP 6853if test -n "$FDP"; then 6854 { echo "$as_me:$LINENO: result: $FDP" >&5 6855echo "${ECHO_T}$FDP" >&6; } 6856else 6857 { echo "$as_me:$LINENO: result: no" >&5 6858echo "${ECHO_T}no" >&6; } 6859fi 6860 6861 6862if test "$FDP" != "echo fdp" ; then 6863 6864cat >>confdefs.h <<\_ACEOF 6865#define HAVE_FDP 1 6866_ACEOF 6867 6868 if test "$llvm_cv_os_type" = "MingW" ; then 6869 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6870 fi 6871 6872cat >>confdefs.h <<_ACEOF 6873#define LLVM_PATH_FDP "$FDP${EXEEXT}" 6874_ACEOF 6875 6876fi 6877# Extract the first word of "neato", so it can be a program name with args. 6878set dummy neato; ac_word=$2 6879{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6881if test "${ac_cv_path_NEATO+set}" = set; then 6882 echo $ECHO_N "(cached) $ECHO_C" >&6 6883else 6884 case $NEATO in 6885 [\\/]* | ?:[\\/]*) 6886 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6887 ;; 6888 *) 6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6890for as_dir in $PATH 6891do 6892 IFS=$as_save_IFS 6893 test -z "$as_dir" && as_dir=. 6894 for ac_exec_ext in '' $ac_executable_extensions; do 6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6896 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6898 break 2 6899 fi 6900done 6901done 6902IFS=$as_save_IFS 6903 6904 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6905 ;; 6906esac 6907fi 6908NEATO=$ac_cv_path_NEATO 6909if test -n "$NEATO"; then 6910 { echo "$as_me:$LINENO: result: $NEATO" >&5 6911echo "${ECHO_T}$NEATO" >&6; } 6912else 6913 { echo "$as_me:$LINENO: result: no" >&5 6914echo "${ECHO_T}no" >&6; } 6915fi 6916 6917 6918if test "$NEATO" != "echo neato" ; then 6919 6920cat >>confdefs.h <<\_ACEOF 6921#define HAVE_NEATO 1 6922_ACEOF 6923 6924 if test "$llvm_cv_os_type" = "MingW" ; then 6925 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6926 fi 6927 6928cat >>confdefs.h <<_ACEOF 6929#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6930_ACEOF 6931 6932fi 6933# Extract the first word of "twopi", so it can be a program name with args. 6934set dummy twopi; ac_word=$2 6935{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6937if test "${ac_cv_path_TWOPI+set}" = set; then 6938 echo $ECHO_N "(cached) $ECHO_C" >&6 6939else 6940 case $TWOPI in 6941 [\\/]* | ?:[\\/]*) 6942 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 6943 ;; 6944 *) 6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6946for as_dir in $PATH 6947do 6948 IFS=$as_save_IFS 6949 test -z "$as_dir" && as_dir=. 6950 for ac_exec_ext in '' $ac_executable_extensions; do 6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6952 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6954 break 2 6955 fi 6956done 6957done 6958IFS=$as_save_IFS 6959 6960 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 6961 ;; 6962esac 6963fi 6964TWOPI=$ac_cv_path_TWOPI 6965if test -n "$TWOPI"; then 6966 { echo "$as_me:$LINENO: result: $TWOPI" >&5 6967echo "${ECHO_T}$TWOPI" >&6; } 6968else 6969 { echo "$as_me:$LINENO: result: no" >&5 6970echo "${ECHO_T}no" >&6; } 6971fi 6972 6973 6974if test "$TWOPI" != "echo twopi" ; then 6975 6976cat >>confdefs.h <<\_ACEOF 6977#define HAVE_TWOPI 1 6978_ACEOF 6979 6980 if test "$llvm_cv_os_type" = "MingW" ; then 6981 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6982 fi 6983 6984cat >>confdefs.h <<_ACEOF 6985#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 6986_ACEOF 6987 6988fi 6989# Extract the first word of "circo", so it can be a program name with args. 6990set dummy circo; ac_word=$2 6991{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6993if test "${ac_cv_path_CIRCO+set}" = set; then 6994 echo $ECHO_N "(cached) $ECHO_C" >&6 6995else 6996 case $CIRCO in 6997 [\\/]* | ?:[\\/]*) 6998 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 6999 ;; 7000 *) 7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7002for as_dir in $PATH 7003do 7004 IFS=$as_save_IFS 7005 test -z "$as_dir" && as_dir=. 7006 for ac_exec_ext in '' $ac_executable_extensions; do 7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7008 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7010 break 2 7011 fi 7012done 7013done 7014IFS=$as_save_IFS 7015 7016 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 7017 ;; 7018esac 7019fi 7020CIRCO=$ac_cv_path_CIRCO 7021if test -n "$CIRCO"; then 7022 { echo "$as_me:$LINENO: result: $CIRCO" >&5 7023echo "${ECHO_T}$CIRCO" >&6; } 7024else 7025 { echo "$as_me:$LINENO: result: no" >&5 7026echo "${ECHO_T}no" >&6; } 7027fi 7028 7029 7030if test "$CIRCO" != "echo circo" ; then 7031 7032cat >>confdefs.h <<\_ACEOF 7033#define HAVE_CIRCO 1 7034_ACEOF 7035 7036 if test "$llvm_cv_os_type" = "MingW" ; then 7037 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7038 fi 7039 7040cat >>confdefs.h <<_ACEOF 7041#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 7042_ACEOF 7043 7044fi 7045for ac_prog in gv gsview32 7046do 7047 # Extract the first word of "$ac_prog", so it can be a program name with args. 7048set dummy $ac_prog; ac_word=$2 7049{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7051if test "${ac_cv_path_GV+set}" = set; then 7052 echo $ECHO_N "(cached) $ECHO_C" >&6 7053else 7054 case $GV in 7055 [\\/]* | ?:[\\/]*) 7056 ac_cv_path_GV="$GV" # Let the user override the test with a path. 7057 ;; 7058 *) 7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7060for as_dir in $PATH 7061do 7062 IFS=$as_save_IFS 7063 test -z "$as_dir" && as_dir=. 7064 for ac_exec_ext in '' $ac_executable_extensions; do 7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7066 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7068 break 2 7069 fi 7070done 7071done 7072IFS=$as_save_IFS 7073 7074 ;; 7075esac 7076fi 7077GV=$ac_cv_path_GV 7078if test -n "$GV"; then 7079 { echo "$as_me:$LINENO: result: $GV" >&5 7080echo "${ECHO_T}$GV" >&6; } 7081else 7082 { echo "$as_me:$LINENO: result: no" >&5 7083echo "${ECHO_T}no" >&6; } 7084fi 7085 7086 7087 test -n "$GV" && break 7088done 7089test -n "$GV" || GV="echo gv" 7090 7091if test "$GV" != "echo gv" ; then 7092 7093cat >>confdefs.h <<\_ACEOF 7094#define HAVE_GV 1 7095_ACEOF 7096 7097 if test "$llvm_cv_os_type" = "MingW" ; then 7098 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7099 fi 7100 7101cat >>confdefs.h <<_ACEOF 7102#define LLVM_PATH_GV "$GV${EXEEXT}" 7103_ACEOF 7104 7105fi 7106# Extract the first word of "dotty", so it can be a program name with args. 7107set dummy dotty; ac_word=$2 7108{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7110if test "${ac_cv_path_DOTTY+set}" = set; then 7111 echo $ECHO_N "(cached) $ECHO_C" >&6 7112else 7113 case $DOTTY in 7114 [\\/]* | ?:[\\/]*) 7115 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 7116 ;; 7117 *) 7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7119for as_dir in $PATH 7120do 7121 IFS=$as_save_IFS 7122 test -z "$as_dir" && as_dir=. 7123 for ac_exec_ext in '' $ac_executable_extensions; do 7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7125 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7127 break 2 7128 fi 7129done 7130done 7131IFS=$as_save_IFS 7132 7133 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 7134 ;; 7135esac 7136fi 7137DOTTY=$ac_cv_path_DOTTY 7138if test -n "$DOTTY"; then 7139 { echo "$as_me:$LINENO: result: $DOTTY" >&5 7140echo "${ECHO_T}$DOTTY" >&6; } 7141else 7142 { echo "$as_me:$LINENO: result: no" >&5 7143echo "${ECHO_T}no" >&6; } 7144fi 7145 7146 7147if test "$DOTTY" != "echo dotty" ; then 7148 7149cat >>confdefs.h <<\_ACEOF 7150#define HAVE_DOTTY 1 7151_ACEOF 7152 7153 if test "$llvm_cv_os_type" = "MingW" ; then 7154 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7155 fi 7156 7157cat >>confdefs.h <<_ACEOF 7158#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 7159_ACEOF 7160 7161fi 7162# Extract the first word of "xdot.py", so it can be a program name with args. 7163set dummy xdot.py; ac_word=$2 7164{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7166if test "${ac_cv_path_XDOT_PY+set}" = set; then 7167 echo $ECHO_N "(cached) $ECHO_C" >&6 7168else 7169 case $XDOT_PY in 7170 [\\/]* | ?:[\\/]*) 7171 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 7172 ;; 7173 *) 7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7175for as_dir in $PATH 7176do 7177 IFS=$as_save_IFS 7178 test -z "$as_dir" && as_dir=. 7179 for ac_exec_ext in '' $ac_executable_extensions; do 7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7181 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7183 break 2 7184 fi 7185done 7186done 7187IFS=$as_save_IFS 7188 7189 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 7190 ;; 7191esac 7192fi 7193XDOT_PY=$ac_cv_path_XDOT_PY 7194if test -n "$XDOT_PY"; then 7195 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 7196echo "${ECHO_T}$XDOT_PY" >&6; } 7197else 7198 { echo "$as_me:$LINENO: result: no" >&5 7199echo "${ECHO_T}no" >&6; } 7200fi 7201 7202 7203if test "$XDOT_PY" != "echo xdot.py" ; then 7204 7205cat >>confdefs.h <<\_ACEOF 7206#define HAVE_XDOT_PY 1 7207_ACEOF 7208 7209 if test "$llvm_cv_os_type" = "MingW" ; then 7210 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7211 fi 7212 7213cat >>confdefs.h <<_ACEOF 7214#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 7215_ACEOF 7216 7217fi 7218 7219# Find a good install program. We prefer a C program (faster), 7220# so one script is as good as another. But avoid the broken or 7221# incompatible versions: 7222# SysV /etc/install, /usr/sbin/install 7223# SunOS /usr/etc/install 7224# IRIX /sbin/install 7225# AIX /bin/install 7226# AmigaOS /C/install, which installs bootblocks on floppy discs 7227# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7228# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7229# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7230# OS/2's system install, which has a completely different semantic 7231# ./install, which can be erroneously created by make from ./install.sh. 7232{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 7233echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 7234if test -z "$INSTALL"; then 7235if test "${ac_cv_path_install+set}" = set; then 7236 echo $ECHO_N "(cached) $ECHO_C" >&6 7237else 7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7239for as_dir in $PATH 7240do 7241 IFS=$as_save_IFS 7242 test -z "$as_dir" && as_dir=. 7243 # Account for people who put trailing slashes in PATH elements. 7244case $as_dir/ in 7245 ./ | .// | /cC/* | \ 7246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7247 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 7248 /usr/ucb/* ) ;; 7249 *) 7250 # OSF1 and SCO ODT 3.0 have their own names for install. 7251 # Don't use installbsd from OSF since it installs stuff as root 7252 # by default. 7253 for ac_prog in ginstall scoinst install; do 7254 for ac_exec_ext in '' $ac_executable_extensions; do 7255 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 7256 if test $ac_prog = install && 7257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7258 # AIX install. It has an incompatible calling convention. 7259 : 7260 elif test $ac_prog = install && 7261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7262 # program-specific install script used by HP pwplus--don't use. 7263 : 7264 else 7265 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7266 break 3 7267 fi 7268 fi 7269 done 7270 done 7271 ;; 7272esac 7273done 7274IFS=$as_save_IFS 7275 7276 7277fi 7278 if test "${ac_cv_path_install+set}" = set; then 7279 INSTALL=$ac_cv_path_install 7280 else 7281 # As a last resort, use the slow shell script. Don't cache a 7282 # value for INSTALL within a source directory, because that will 7283 # break other packages using the cache if that directory is 7284 # removed, or if the value is a relative name. 7285 INSTALL=$ac_install_sh 7286 fi 7287fi 7288{ echo "$as_me:$LINENO: result: $INSTALL" >&5 7289echo "${ECHO_T}$INSTALL" >&6; } 7290 7291# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7292# It thinks the first close brace ends the variable substitution. 7293test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7294 7295test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7296 7297test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7298 7299case "$INSTALL" in 7300 [\\/$]* | ?:[\\/]* ) ;; 7301 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 7302esac 7303 7304# Extract the first word of "bzip2", so it can be a program name with args. 7305set dummy bzip2; ac_word=$2 7306{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7308if test "${ac_cv_path_BZIP2+set}" = set; then 7309 echo $ECHO_N "(cached) $ECHO_C" >&6 7310else 7311 case $BZIP2 in 7312 [\\/]* | ?:[\\/]*) 7313 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7314 ;; 7315 *) 7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7317for as_dir in $PATH 7318do 7319 IFS=$as_save_IFS 7320 test -z "$as_dir" && as_dir=. 7321 for ac_exec_ext in '' $ac_executable_extensions; do 7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7323 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7325 break 2 7326 fi 7327done 7328done 7329IFS=$as_save_IFS 7330 7331 ;; 7332esac 7333fi 7334BZIP2=$ac_cv_path_BZIP2 7335if test -n "$BZIP2"; then 7336 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7337echo "${ECHO_T}$BZIP2" >&6; } 7338else 7339 { echo "$as_me:$LINENO: result: no" >&5 7340echo "${ECHO_T}no" >&6; } 7341fi 7342 7343 7344# Extract the first word of "cat", so it can be a program name with args. 7345set dummy cat; ac_word=$2 7346{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7348if test "${ac_cv_path_CAT+set}" = set; then 7349 echo $ECHO_N "(cached) $ECHO_C" >&6 7350else 7351 case $CAT in 7352 [\\/]* | ?:[\\/]*) 7353 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 7354 ;; 7355 *) 7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7357for as_dir in $PATH 7358do 7359 IFS=$as_save_IFS 7360 test -z "$as_dir" && as_dir=. 7361 for ac_exec_ext in '' $ac_executable_extensions; do 7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7363 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7365 break 2 7366 fi 7367done 7368done 7369IFS=$as_save_IFS 7370 7371 ;; 7372esac 7373fi 7374CAT=$ac_cv_path_CAT 7375if test -n "$CAT"; then 7376 { echo "$as_me:$LINENO: result: $CAT" >&5 7377echo "${ECHO_T}$CAT" >&6; } 7378else 7379 { echo "$as_me:$LINENO: result: no" >&5 7380echo "${ECHO_T}no" >&6; } 7381fi 7382 7383 7384# Extract the first word of "doxygen", so it can be a program name with args. 7385set dummy doxygen; ac_word=$2 7386{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7388if test "${ac_cv_path_DOXYGEN+set}" = set; then 7389 echo $ECHO_N "(cached) $ECHO_C" >&6 7390else 7391 case $DOXYGEN in 7392 [\\/]* | ?:[\\/]*) 7393 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7394 ;; 7395 *) 7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7397for as_dir in $PATH 7398do 7399 IFS=$as_save_IFS 7400 test -z "$as_dir" && as_dir=. 7401 for ac_exec_ext in '' $ac_executable_extensions; do 7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7403 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7405 break 2 7406 fi 7407done 7408done 7409IFS=$as_save_IFS 7410 7411 ;; 7412esac 7413fi 7414DOXYGEN=$ac_cv_path_DOXYGEN 7415if test -n "$DOXYGEN"; then 7416 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7417echo "${ECHO_T}$DOXYGEN" >&6; } 7418else 7419 { echo "$as_me:$LINENO: result: no" >&5 7420echo "${ECHO_T}no" >&6; } 7421fi 7422 7423 7424# Extract the first word of "groff", so it can be a program name with args. 7425set dummy groff; ac_word=$2 7426{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7428if test "${ac_cv_path_GROFF+set}" = set; then 7429 echo $ECHO_N "(cached) $ECHO_C" >&6 7430else 7431 case $GROFF in 7432 [\\/]* | ?:[\\/]*) 7433 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7434 ;; 7435 *) 7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7437for as_dir in $PATH 7438do 7439 IFS=$as_save_IFS 7440 test -z "$as_dir" && as_dir=. 7441 for ac_exec_ext in '' $ac_executable_extensions; do 7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7443 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7445 break 2 7446 fi 7447done 7448done 7449IFS=$as_save_IFS 7450 7451 ;; 7452esac 7453fi 7454GROFF=$ac_cv_path_GROFF 7455if test -n "$GROFF"; then 7456 { echo "$as_me:$LINENO: result: $GROFF" >&5 7457echo "${ECHO_T}$GROFF" >&6; } 7458else 7459 { echo "$as_me:$LINENO: result: no" >&5 7460echo "${ECHO_T}no" >&6; } 7461fi 7462 7463 7464# Extract the first word of "gzip", so it can be a program name with args. 7465set dummy gzip; ac_word=$2 7466{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7468if test "${ac_cv_path_GZIPBIN+set}" = set; then 7469 echo $ECHO_N "(cached) $ECHO_C" >&6 7470else 7471 case $GZIPBIN in 7472 [\\/]* | ?:[\\/]*) 7473 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7474 ;; 7475 *) 7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7477for as_dir in $PATH 7478do 7479 IFS=$as_save_IFS 7480 test -z "$as_dir" && as_dir=. 7481 for ac_exec_ext in '' $ac_executable_extensions; do 7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7483 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7485 break 2 7486 fi 7487done 7488done 7489IFS=$as_save_IFS 7490 7491 ;; 7492esac 7493fi 7494GZIPBIN=$ac_cv_path_GZIPBIN 7495if test -n "$GZIPBIN"; then 7496 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7497echo "${ECHO_T}$GZIPBIN" >&6; } 7498else 7499 { echo "$as_me:$LINENO: result: no" >&5 7500echo "${ECHO_T}no" >&6; } 7501fi 7502 7503 7504# Extract the first word of "pdfroff", so it can be a program name with args. 7505set dummy pdfroff; ac_word=$2 7506{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7508if test "${ac_cv_path_PDFROFF+set}" = set; then 7509 echo $ECHO_N "(cached) $ECHO_C" >&6 7510else 7511 case $PDFROFF in 7512 [\\/]* | ?:[\\/]*) 7513 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7514 ;; 7515 *) 7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7517for as_dir in $PATH 7518do 7519 IFS=$as_save_IFS 7520 test -z "$as_dir" && as_dir=. 7521 for ac_exec_ext in '' $ac_executable_extensions; do 7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7523 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7525 break 2 7526 fi 7527done 7528done 7529IFS=$as_save_IFS 7530 7531 ;; 7532esac 7533fi 7534PDFROFF=$ac_cv_path_PDFROFF 7535if test -n "$PDFROFF"; then 7536 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7537echo "${ECHO_T}$PDFROFF" >&6; } 7538else 7539 { echo "$as_me:$LINENO: result: no" >&5 7540echo "${ECHO_T}no" >&6; } 7541fi 7542 7543 7544# Extract the first word of "zip", so it can be a program name with args. 7545set dummy zip; ac_word=$2 7546{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7548if test "${ac_cv_path_ZIP+set}" = set; then 7549 echo $ECHO_N "(cached) $ECHO_C" >&6 7550else 7551 case $ZIP in 7552 [\\/]* | ?:[\\/]*) 7553 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7554 ;; 7555 *) 7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7557for as_dir in $PATH 7558do 7559 IFS=$as_save_IFS 7560 test -z "$as_dir" && as_dir=. 7561 for ac_exec_ext in '' $ac_executable_extensions; do 7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7563 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7565 break 2 7566 fi 7567done 7568done 7569IFS=$as_save_IFS 7570 7571 ;; 7572esac 7573fi 7574ZIP=$ac_cv_path_ZIP 7575if test -n "$ZIP"; then 7576 { echo "$as_me:$LINENO: result: $ZIP" >&5 7577echo "${ECHO_T}$ZIP" >&6; } 7578else 7579 { echo "$as_me:$LINENO: result: no" >&5 7580echo "${ECHO_T}no" >&6; } 7581fi 7582 7583 7584for ac_prog in ocamlc 7585do 7586 # Extract the first word of "$ac_prog", so it can be a program name with args. 7587set dummy $ac_prog; ac_word=$2 7588{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7590if test "${ac_cv_path_OCAMLC+set}" = set; then 7591 echo $ECHO_N "(cached) $ECHO_C" >&6 7592else 7593 case $OCAMLC in 7594 [\\/]* | ?:[\\/]*) 7595 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7596 ;; 7597 *) 7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7599for as_dir in $PATH 7600do 7601 IFS=$as_save_IFS 7602 test -z "$as_dir" && as_dir=. 7603 for ac_exec_ext in '' $ac_executable_extensions; do 7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7605 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7607 break 2 7608 fi 7609done 7610done 7611IFS=$as_save_IFS 7612 7613 ;; 7614esac 7615fi 7616OCAMLC=$ac_cv_path_OCAMLC 7617if test -n "$OCAMLC"; then 7618 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7619echo "${ECHO_T}$OCAMLC" >&6; } 7620else 7621 { echo "$as_me:$LINENO: result: no" >&5 7622echo "${ECHO_T}no" >&6; } 7623fi 7624 7625 7626 test -n "$OCAMLC" && break 7627done 7628 7629for ac_prog in ocamlopt 7630do 7631 # Extract the first word of "$ac_prog", so it can be a program name with args. 7632set dummy $ac_prog; ac_word=$2 7633{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7635if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7636 echo $ECHO_N "(cached) $ECHO_C" >&6 7637else 7638 case $OCAMLOPT in 7639 [\\/]* | ?:[\\/]*) 7640 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7641 ;; 7642 *) 7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7644for as_dir in $PATH 7645do 7646 IFS=$as_save_IFS 7647 test -z "$as_dir" && as_dir=. 7648 for ac_exec_ext in '' $ac_executable_extensions; do 7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7650 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7652 break 2 7653 fi 7654done 7655done 7656IFS=$as_save_IFS 7657 7658 ;; 7659esac 7660fi 7661OCAMLOPT=$ac_cv_path_OCAMLOPT 7662if test -n "$OCAMLOPT"; then 7663 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7664echo "${ECHO_T}$OCAMLOPT" >&6; } 7665else 7666 { echo "$as_me:$LINENO: result: no" >&5 7667echo "${ECHO_T}no" >&6; } 7668fi 7669 7670 7671 test -n "$OCAMLOPT" && break 7672done 7673 7674for ac_prog in ocamldep 7675do 7676 # Extract the first word of "$ac_prog", so it can be a program name with args. 7677set dummy $ac_prog; ac_word=$2 7678{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7680if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7681 echo $ECHO_N "(cached) $ECHO_C" >&6 7682else 7683 case $OCAMLDEP in 7684 [\\/]* | ?:[\\/]*) 7685 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7686 ;; 7687 *) 7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7689for as_dir in $PATH 7690do 7691 IFS=$as_save_IFS 7692 test -z "$as_dir" && as_dir=. 7693 for ac_exec_ext in '' $ac_executable_extensions; do 7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7695 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7697 break 2 7698 fi 7699done 7700done 7701IFS=$as_save_IFS 7702 7703 ;; 7704esac 7705fi 7706OCAMLDEP=$ac_cv_path_OCAMLDEP 7707if test -n "$OCAMLDEP"; then 7708 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7709echo "${ECHO_T}$OCAMLDEP" >&6; } 7710else 7711 { echo "$as_me:$LINENO: result: no" >&5 7712echo "${ECHO_T}no" >&6; } 7713fi 7714 7715 7716 test -n "$OCAMLDEP" && break 7717done 7718 7719for ac_prog in ocamldoc 7720do 7721 # Extract the first word of "$ac_prog", so it can be a program name with args. 7722set dummy $ac_prog; ac_word=$2 7723{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7725if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7726 echo $ECHO_N "(cached) $ECHO_C" >&6 7727else 7728 case $OCAMLDOC in 7729 [\\/]* | ?:[\\/]*) 7730 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7731 ;; 7732 *) 7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7734for as_dir in $PATH 7735do 7736 IFS=$as_save_IFS 7737 test -z "$as_dir" && as_dir=. 7738 for ac_exec_ext in '' $ac_executable_extensions; do 7739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7740 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7742 break 2 7743 fi 7744done 7745done 7746IFS=$as_save_IFS 7747 7748 ;; 7749esac 7750fi 7751OCAMLDOC=$ac_cv_path_OCAMLDOC 7752if test -n "$OCAMLDOC"; then 7753 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7754echo "${ECHO_T}$OCAMLDOC" >&6; } 7755else 7756 { echo "$as_me:$LINENO: result: no" >&5 7757echo "${ECHO_T}no" >&6; } 7758fi 7759 7760 7761 test -n "$OCAMLDOC" && break 7762done 7763 7764for ac_prog in gas as 7765do 7766 # Extract the first word of "$ac_prog", so it can be a program name with args. 7767set dummy $ac_prog; ac_word=$2 7768{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7770if test "${ac_cv_path_GAS+set}" = set; then 7771 echo $ECHO_N "(cached) $ECHO_C" >&6 7772else 7773 case $GAS in 7774 [\\/]* | ?:[\\/]*) 7775 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7776 ;; 7777 *) 7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7779for as_dir in $PATH 7780do 7781 IFS=$as_save_IFS 7782 test -z "$as_dir" && as_dir=. 7783 for ac_exec_ext in '' $ac_executable_extensions; do 7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7785 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7787 break 2 7788 fi 7789done 7790done 7791IFS=$as_save_IFS 7792 7793 ;; 7794esac 7795fi 7796GAS=$ac_cv_path_GAS 7797if test -n "$GAS"; then 7798 { echo "$as_me:$LINENO: result: $GAS" >&5 7799echo "${ECHO_T}$GAS" >&6; } 7800else 7801 { echo "$as_me:$LINENO: result: no" >&5 7802echo "${ECHO_T}no" >&6; } 7803fi 7804 7805 7806 test -n "$GAS" && break 7807done 7808 7809 7810{ echo "$as_me:$LINENO: checking for linker version" >&5 7811echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7812if test "${llvm_cv_link_version+set}" = set; then 7813 echo $ECHO_N "(cached) $ECHO_C" >&6 7814else 7815 7816 version_string="$(ld -v 2>&1 | head -1)" 7817 7818 # Check for ld64. 7819 if (echo "$version_string" | grep -q "ld64"); then 7820 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7821 else 7822 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7823 fi 7824 7825fi 7826{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7827echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7828 7829cat >>confdefs.h <<_ACEOF 7830#define HOST_LINK_VERSION "$llvm_cv_link_version" 7831_ACEOF 7832 7833 7834 7835{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7836echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7837if test "${llvm_cv_link_use_r+set}" = set; then 7838 echo $ECHO_N "(cached) $ECHO_C" >&6 7839else 7840 ac_ext=c 7841ac_cpp='$CPP $CPPFLAGS' 7842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7844ac_compiler_gnu=$ac_cv_c_compiler_gnu 7845 7846 oldcflags="$CFLAGS" 7847 CFLAGS="$CFLAGS -Wl,-R." 7848 cat >conftest.$ac_ext <<_ACEOF 7849/* confdefs.h. */ 7850_ACEOF 7851cat confdefs.h >>conftest.$ac_ext 7852cat >>conftest.$ac_ext <<_ACEOF 7853/* end confdefs.h. */ 7854 7855int 7856main () 7857{ 7858 7859 ; 7860 return 0; 7861} 7862_ACEOF 7863rm -f conftest.$ac_objext conftest$ac_exeext 7864if { (ac_try="$ac_link" 7865case "(($ac_try" in 7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7867 *) ac_try_echo=$ac_try;; 7868esac 7869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7870 (eval "$ac_link") 2>conftest.er1 7871 ac_status=$? 7872 grep -v '^ *+' conftest.er1 >conftest.err 7873 rm -f conftest.er1 7874 cat conftest.err >&5 7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7876 (exit $ac_status); } && 7877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7878 { (case "(($ac_try" in 7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7880 *) ac_try_echo=$ac_try;; 7881esac 7882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7883 (eval "$ac_try") 2>&5 7884 ac_status=$? 7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7886 (exit $ac_status); }; } && 7887 { ac_try='test -s conftest$ac_exeext' 7888 { (case "(($ac_try" in 7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7890 *) ac_try_echo=$ac_try;; 7891esac 7892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7893 (eval "$ac_try") 2>&5 7894 ac_status=$? 7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7896 (exit $ac_status); }; }; then 7897 llvm_cv_link_use_r=yes 7898else 7899 echo "$as_me: failed program was:" >&5 7900sed 's/^/| /' conftest.$ac_ext >&5 7901 7902 llvm_cv_link_use_r=no 7903fi 7904 7905rm -f core conftest.err conftest.$ac_objext \ 7906 conftest$ac_exeext conftest.$ac_ext 7907 CFLAGS="$oldcflags" 7908 ac_ext=c 7909ac_cpp='$CPP $CPPFLAGS' 7910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7912ac_compiler_gnu=$ac_cv_c_compiler_gnu 7913 7914 7915fi 7916{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7917echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7918if test "$llvm_cv_link_use_r" = yes ; then 7919 7920cat >>confdefs.h <<\_ACEOF 7921#define HAVE_LINK_R 1 7922_ACEOF 7923 7924 fi 7925 7926 7927{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 7928echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 7929if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7930 echo $ECHO_N "(cached) $ECHO_C" >&6 7931else 7932 ac_ext=c 7933ac_cpp='$CPP $CPPFLAGS' 7934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7936ac_compiler_gnu=$ac_cv_c_compiler_gnu 7937 7938 oldcflags="$CFLAGS" 7939 CFLAGS="$CFLAGS -Wl,-export-dynamic" 7940 cat >conftest.$ac_ext <<_ACEOF 7941/* confdefs.h. */ 7942_ACEOF 7943cat confdefs.h >>conftest.$ac_ext 7944cat >>conftest.$ac_ext <<_ACEOF 7945/* end confdefs.h. */ 7946 7947int 7948main () 7949{ 7950 7951 ; 7952 return 0; 7953} 7954_ACEOF 7955rm -f conftest.$ac_objext conftest$ac_exeext 7956if { (ac_try="$ac_link" 7957case "(($ac_try" in 7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7959 *) ac_try_echo=$ac_try;; 7960esac 7961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7962 (eval "$ac_link") 2>conftest.er1 7963 ac_status=$? 7964 grep -v '^ *+' conftest.er1 >conftest.err 7965 rm -f conftest.er1 7966 cat conftest.err >&5 7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7968 (exit $ac_status); } && 7969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7970 { (case "(($ac_try" in 7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7972 *) ac_try_echo=$ac_try;; 7973esac 7974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7975 (eval "$ac_try") 2>&5 7976 ac_status=$? 7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7978 (exit $ac_status); }; } && 7979 { ac_try='test -s conftest$ac_exeext' 7980 { (case "(($ac_try" in 7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7982 *) ac_try_echo=$ac_try;; 7983esac 7984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7985 (eval "$ac_try") 2>&5 7986 ac_status=$? 7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7988 (exit $ac_status); }; }; then 7989 llvm_cv_link_use_export_dynamic=yes 7990else 7991 echo "$as_me: failed program was:" >&5 7992sed 's/^/| /' conftest.$ac_ext >&5 7993 7994 llvm_cv_link_use_export_dynamic=no 7995fi 7996 7997rm -f core conftest.err conftest.$ac_objext \ 7998 conftest$ac_exeext conftest.$ac_ext 7999 CFLAGS="$oldcflags" 8000 ac_ext=c 8001ac_cpp='$CPP $CPPFLAGS' 8002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8004ac_compiler_gnu=$ac_cv_c_compiler_gnu 8005 8006 8007fi 8008{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 8009echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 8010if test "$llvm_cv_link_use_export_dynamic" = yes ; then 8011 8012cat >>confdefs.h <<\_ACEOF 8013#define HAVE_LINK_EXPORT_DYNAMIC 1 8014_ACEOF 8015 8016 fi 8017 8018 8019{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 8020echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 8021if test "${llvm_cv_link_use_version_script+set}" = set; then 8022 echo $ECHO_N "(cached) $ECHO_C" >&6 8023else 8024 ac_ext=c 8025ac_cpp='$CPP $CPPFLAGS' 8026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8028ac_compiler_gnu=$ac_cv_c_compiler_gnu 8029 8030 oldcflags="$CFLAGS" 8031 8032 # The following code is from the autoconf manual, 8033 # "11.13: Limitations of Usual Tools". 8034 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 8035 # Use mktemp if possible; otherwise fall back on mkdir, 8036 # with $RANDOM to make collisions less likely. 8037 : ${TMPDIR=/tmp} 8038 { 8039 tmp=` 8040 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 8041 ` && 8042 test -n "$tmp" && test -d "$tmp" 8043 } || { 8044 tmp=$TMPDIR/foo$$-$RANDOM 8045 (umask 077 && mkdir "$tmp") 8046 } || exit $? 8047 8048 echo "{" > "$tmp/export.map" 8049 echo " global: main;" >> "$tmp/export.map" 8050 echo " local: *;" >> "$tmp/export.map" 8051 echo "};" >> "$tmp/export.map" 8052 8053 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 8054 cat >conftest.$ac_ext <<_ACEOF 8055/* confdefs.h. */ 8056_ACEOF 8057cat confdefs.h >>conftest.$ac_ext 8058cat >>conftest.$ac_ext <<_ACEOF 8059/* end confdefs.h. */ 8060 8061int 8062main () 8063{ 8064 8065 ; 8066 return 0; 8067} 8068_ACEOF 8069rm -f conftest.$ac_objext conftest$ac_exeext 8070if { (ac_try="$ac_link" 8071case "(($ac_try" in 8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8073 *) ac_try_echo=$ac_try;; 8074esac 8075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8076 (eval "$ac_link") 2>conftest.er1 8077 ac_status=$? 8078 grep -v '^ *+' conftest.er1 >conftest.err 8079 rm -f conftest.er1 8080 cat conftest.err >&5 8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8082 (exit $ac_status); } && 8083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8084 { (case "(($ac_try" in 8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8086 *) ac_try_echo=$ac_try;; 8087esac 8088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8089 (eval "$ac_try") 2>&5 8090 ac_status=$? 8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8092 (exit $ac_status); }; } && 8093 { ac_try='test -s conftest$ac_exeext' 8094 { (case "(($ac_try" in 8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8096 *) ac_try_echo=$ac_try;; 8097esac 8098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8099 (eval "$ac_try") 2>&5 8100 ac_status=$? 8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8102 (exit $ac_status); }; }; then 8103 llvm_cv_link_use_version_script=yes 8104else 8105 echo "$as_me: failed program was:" >&5 8106sed 's/^/| /' conftest.$ac_ext >&5 8107 8108 llvm_cv_link_use_version_script=no 8109fi 8110 8111rm -f core conftest.err conftest.$ac_objext \ 8112 conftest$ac_exeext conftest.$ac_ext 8113 rm "$tmp/export.map" 8114 rmdir "$tmp" 8115 CFLAGS="$oldcflags" 8116 ac_ext=c 8117ac_cpp='$CPP $CPPFLAGS' 8118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8120ac_compiler_gnu=$ac_cv_c_compiler_gnu 8121 8122 8123fi 8124{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 8125echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 8126if test "$llvm_cv_link_use_version_script" = yes ; then 8127 HAVE_LINK_VERSION_SCRIPT=1 8128 8129 fi 8130 8131 8132 8133 8134{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8135echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 8136if test "${ac_cv_c_const+set}" = set; then 8137 echo $ECHO_N "(cached) $ECHO_C" >&6 8138else 8139 cat >conftest.$ac_ext <<_ACEOF 8140/* confdefs.h. */ 8141_ACEOF 8142cat confdefs.h >>conftest.$ac_ext 8143cat >>conftest.$ac_ext <<_ACEOF 8144/* end confdefs.h. */ 8145 8146int 8147main () 8148{ 8149/* FIXME: Include the comments suggested by Paul. */ 8150#ifndef __cplusplus 8151 /* Ultrix mips cc rejects this. */ 8152 typedef int charset[2]; 8153 const charset x; 8154 /* SunOS 4.1.1 cc rejects this. */ 8155 char const *const *ccp; 8156 char **p; 8157 /* NEC SVR4.0.2 mips cc rejects this. */ 8158 struct point {int x, y;}; 8159 static struct point const zero = {0,0}; 8160 /* AIX XL C 1.02.0.0 rejects this. 8161 It does not let you subtract one const X* pointer from another in 8162 an arm of an if-expression whose if-part is not a constant 8163 expression */ 8164 const char *g = "string"; 8165 ccp = &g + (g ? g-g : 0); 8166 /* HPUX 7.0 cc rejects these. */ 8167 ++ccp; 8168 p = (char**) ccp; 8169 ccp = (char const *const *) p; 8170 { /* SCO 3.2v4 cc rejects this. */ 8171 char *t; 8172 char const *s = 0 ? (char *) 0 : (char const *) 0; 8173 8174 *t++ = 0; 8175 if (s) return 0; 8176 } 8177 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8178 int x[] = {25, 17}; 8179 const int *foo = &x[0]; 8180 ++foo; 8181 } 8182 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8183 typedef const int *iptr; 8184 iptr p = 0; 8185 ++p; 8186 } 8187 { /* AIX XL C 1.02.0.0 rejects this saying 8188 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8189 struct s { int j; const int *ap[3]; }; 8190 struct s *b; b->j = 5; 8191 } 8192 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8193 const int foo = 10; 8194 if (!foo) return 0; 8195 } 8196 return !x[0] && !zero.x; 8197#endif 8198 8199 ; 8200 return 0; 8201} 8202_ACEOF 8203rm -f conftest.$ac_objext 8204if { (ac_try="$ac_compile" 8205case "(($ac_try" in 8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8207 *) ac_try_echo=$ac_try;; 8208esac 8209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8210 (eval "$ac_compile") 2>conftest.er1 8211 ac_status=$? 8212 grep -v '^ *+' conftest.er1 >conftest.err 8213 rm -f conftest.er1 8214 cat conftest.err >&5 8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8216 (exit $ac_status); } && 8217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8218 { (case "(($ac_try" in 8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8220 *) ac_try_echo=$ac_try;; 8221esac 8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8223 (eval "$ac_try") 2>&5 8224 ac_status=$? 8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8226 (exit $ac_status); }; } && 8227 { ac_try='test -s conftest.$ac_objext' 8228 { (case "(($ac_try" in 8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8230 *) ac_try_echo=$ac_try;; 8231esac 8232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8233 (eval "$ac_try") 2>&5 8234 ac_status=$? 8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8236 (exit $ac_status); }; }; then 8237 ac_cv_c_const=yes 8238else 8239 echo "$as_me: failed program was:" >&5 8240sed 's/^/| /' conftest.$ac_ext >&5 8241 8242 ac_cv_c_const=no 8243fi 8244 8245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8246fi 8247{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8248echo "${ECHO_T}$ac_cv_c_const" >&6; } 8249if test $ac_cv_c_const = no; then 8250 8251cat >>confdefs.h <<\_ACEOF 8252#define const 8253_ACEOF 8254 8255fi 8256 8257 8258 8259 8260 8261 8262ac_header_dirent=no 8263for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8264 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8265{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8266echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8268 echo $ECHO_N "(cached) $ECHO_C" >&6 8269else 8270 cat >conftest.$ac_ext <<_ACEOF 8271/* confdefs.h. */ 8272_ACEOF 8273cat confdefs.h >>conftest.$ac_ext 8274cat >>conftest.$ac_ext <<_ACEOF 8275/* end confdefs.h. */ 8276#include <sys/types.h> 8277#include <$ac_hdr> 8278 8279int 8280main () 8281{ 8282if ((DIR *) 0) 8283return 0; 8284 ; 8285 return 0; 8286} 8287_ACEOF 8288rm -f conftest.$ac_objext 8289if { (ac_try="$ac_compile" 8290case "(($ac_try" in 8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8292 *) ac_try_echo=$ac_try;; 8293esac 8294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8295 (eval "$ac_compile") 2>conftest.er1 8296 ac_status=$? 8297 grep -v '^ *+' conftest.er1 >conftest.err 8298 rm -f conftest.er1 8299 cat conftest.err >&5 8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8301 (exit $ac_status); } && 8302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8303 { (case "(($ac_try" in 8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8305 *) ac_try_echo=$ac_try;; 8306esac 8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8308 (eval "$ac_try") 2>&5 8309 ac_status=$? 8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8311 (exit $ac_status); }; } && 8312 { ac_try='test -s conftest.$ac_objext' 8313 { (case "(($ac_try" in 8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8315 *) ac_try_echo=$ac_try;; 8316esac 8317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8318 (eval "$ac_try") 2>&5 8319 ac_status=$? 8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8321 (exit $ac_status); }; }; then 8322 eval "$as_ac_Header=yes" 8323else 8324 echo "$as_me: failed program was:" >&5 8325sed 's/^/| /' conftest.$ac_ext >&5 8326 8327 eval "$as_ac_Header=no" 8328fi 8329 8330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8331fi 8332ac_res=`eval echo '${'$as_ac_Header'}'` 8333 { echo "$as_me:$LINENO: result: $ac_res" >&5 8334echo "${ECHO_T}$ac_res" >&6; } 8335if test `eval echo '${'$as_ac_Header'}'` = yes; then 8336 cat >>confdefs.h <<_ACEOF 8337#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8338_ACEOF 8339 8340ac_header_dirent=$ac_hdr; break 8341fi 8342 8343done 8344# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8345if test $ac_header_dirent = dirent.h; then 8346 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8347echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8348if test "${ac_cv_search_opendir+set}" = set; then 8349 echo $ECHO_N "(cached) $ECHO_C" >&6 8350else 8351 ac_func_search_save_LIBS=$LIBS 8352cat >conftest.$ac_ext <<_ACEOF 8353/* confdefs.h. */ 8354_ACEOF 8355cat confdefs.h >>conftest.$ac_ext 8356cat >>conftest.$ac_ext <<_ACEOF 8357/* end confdefs.h. */ 8358 8359/* Override any GCC internal prototype to avoid an error. 8360 Use char because int might match the return type of a GCC 8361 builtin and then its argument prototype would still apply. */ 8362#ifdef __cplusplus 8363extern "C" 8364#endif 8365char opendir (); 8366int 8367main () 8368{ 8369return opendir (); 8370 ; 8371 return 0; 8372} 8373_ACEOF 8374for ac_lib in '' dir; do 8375 if test -z "$ac_lib"; then 8376 ac_res="none required" 8377 else 8378 ac_res=-l$ac_lib 8379 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8380 fi 8381 rm -f conftest.$ac_objext conftest$ac_exeext 8382if { (ac_try="$ac_link" 8383case "(($ac_try" in 8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8385 *) ac_try_echo=$ac_try;; 8386esac 8387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8388 (eval "$ac_link") 2>conftest.er1 8389 ac_status=$? 8390 grep -v '^ *+' conftest.er1 >conftest.err 8391 rm -f conftest.er1 8392 cat conftest.err >&5 8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8394 (exit $ac_status); } && 8395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8396 { (case "(($ac_try" in 8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8398 *) ac_try_echo=$ac_try;; 8399esac 8400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8401 (eval "$ac_try") 2>&5 8402 ac_status=$? 8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8404 (exit $ac_status); }; } && 8405 { ac_try='test -s conftest$ac_exeext' 8406 { (case "(($ac_try" in 8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8408 *) ac_try_echo=$ac_try;; 8409esac 8410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8411 (eval "$ac_try") 2>&5 8412 ac_status=$? 8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8414 (exit $ac_status); }; }; then 8415 ac_cv_search_opendir=$ac_res 8416else 8417 echo "$as_me: failed program was:" >&5 8418sed 's/^/| /' conftest.$ac_ext >&5 8419 8420 8421fi 8422 8423rm -f core conftest.err conftest.$ac_objext \ 8424 conftest$ac_exeext 8425 if test "${ac_cv_search_opendir+set}" = set; then 8426 break 8427fi 8428done 8429if test "${ac_cv_search_opendir+set}" = set; then 8430 : 8431else 8432 ac_cv_search_opendir=no 8433fi 8434rm conftest.$ac_ext 8435LIBS=$ac_func_search_save_LIBS 8436fi 8437{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8438echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8439ac_res=$ac_cv_search_opendir 8440if test "$ac_res" != no; then 8441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8442 8443fi 8444 8445else 8446 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8447echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8448if test "${ac_cv_search_opendir+set}" = set; then 8449 echo $ECHO_N "(cached) $ECHO_C" >&6 8450else 8451 ac_func_search_save_LIBS=$LIBS 8452cat >conftest.$ac_ext <<_ACEOF 8453/* confdefs.h. */ 8454_ACEOF 8455cat confdefs.h >>conftest.$ac_ext 8456cat >>conftest.$ac_ext <<_ACEOF 8457/* end confdefs.h. */ 8458 8459/* Override any GCC internal prototype to avoid an error. 8460 Use char because int might match the return type of a GCC 8461 builtin and then its argument prototype would still apply. */ 8462#ifdef __cplusplus 8463extern "C" 8464#endif 8465char opendir (); 8466int 8467main () 8468{ 8469return opendir (); 8470 ; 8471 return 0; 8472} 8473_ACEOF 8474for ac_lib in '' x; do 8475 if test -z "$ac_lib"; then 8476 ac_res="none required" 8477 else 8478 ac_res=-l$ac_lib 8479 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8480 fi 8481 rm -f conftest.$ac_objext conftest$ac_exeext 8482if { (ac_try="$ac_link" 8483case "(($ac_try" in 8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8485 *) ac_try_echo=$ac_try;; 8486esac 8487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8488 (eval "$ac_link") 2>conftest.er1 8489 ac_status=$? 8490 grep -v '^ *+' conftest.er1 >conftest.err 8491 rm -f conftest.er1 8492 cat conftest.err >&5 8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8494 (exit $ac_status); } && 8495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8496 { (case "(($ac_try" in 8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8498 *) ac_try_echo=$ac_try;; 8499esac 8500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8501 (eval "$ac_try") 2>&5 8502 ac_status=$? 8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8504 (exit $ac_status); }; } && 8505 { ac_try='test -s conftest$ac_exeext' 8506 { (case "(($ac_try" in 8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8508 *) ac_try_echo=$ac_try;; 8509esac 8510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8511 (eval "$ac_try") 2>&5 8512 ac_status=$? 8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8514 (exit $ac_status); }; }; then 8515 ac_cv_search_opendir=$ac_res 8516else 8517 echo "$as_me: failed program was:" >&5 8518sed 's/^/| /' conftest.$ac_ext >&5 8519 8520 8521fi 8522 8523rm -f core conftest.err conftest.$ac_objext \ 8524 conftest$ac_exeext 8525 if test "${ac_cv_search_opendir+set}" = set; then 8526 break 8527fi 8528done 8529if test "${ac_cv_search_opendir+set}" = set; then 8530 : 8531else 8532 ac_cv_search_opendir=no 8533fi 8534rm conftest.$ac_ext 8535LIBS=$ac_func_search_save_LIBS 8536fi 8537{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8538echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8539ac_res=$ac_cv_search_opendir 8540if test "$ac_res" != no; then 8541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8542 8543fi 8544 8545fi 8546 8547 8548for ac_header in dlfcn.h 8549do 8550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8552 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8555 echo $ECHO_N "(cached) $ECHO_C" >&6 8556fi 8557ac_res=`eval echo '${'$as_ac_Header'}'` 8558 { echo "$as_me:$LINENO: result: $ac_res" >&5 8559echo "${ECHO_T}$ac_res" >&6; } 8560else 8561 # Is the header compilable? 8562{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8564cat >conftest.$ac_ext <<_ACEOF 8565/* confdefs.h. */ 8566_ACEOF 8567cat confdefs.h >>conftest.$ac_ext 8568cat >>conftest.$ac_ext <<_ACEOF 8569/* end confdefs.h. */ 8570$ac_includes_default 8571#include <$ac_header> 8572_ACEOF 8573rm -f conftest.$ac_objext 8574if { (ac_try="$ac_compile" 8575case "(($ac_try" in 8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8577 *) ac_try_echo=$ac_try;; 8578esac 8579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8580 (eval "$ac_compile") 2>conftest.er1 8581 ac_status=$? 8582 grep -v '^ *+' conftest.er1 >conftest.err 8583 rm -f conftest.er1 8584 cat conftest.err >&5 8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8586 (exit $ac_status); } && 8587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8588 { (case "(($ac_try" in 8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8590 *) ac_try_echo=$ac_try;; 8591esac 8592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8593 (eval "$ac_try") 2>&5 8594 ac_status=$? 8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8596 (exit $ac_status); }; } && 8597 { ac_try='test -s conftest.$ac_objext' 8598 { (case "(($ac_try" in 8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8600 *) ac_try_echo=$ac_try;; 8601esac 8602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8603 (eval "$ac_try") 2>&5 8604 ac_status=$? 8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8606 (exit $ac_status); }; }; then 8607 ac_header_compiler=yes 8608else 8609 echo "$as_me: failed program was:" >&5 8610sed 's/^/| /' conftest.$ac_ext >&5 8611 8612 ac_header_compiler=no 8613fi 8614 8615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8616{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8617echo "${ECHO_T}$ac_header_compiler" >&6; } 8618 8619# Is the header present? 8620{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8622cat >conftest.$ac_ext <<_ACEOF 8623/* confdefs.h. */ 8624_ACEOF 8625cat confdefs.h >>conftest.$ac_ext 8626cat >>conftest.$ac_ext <<_ACEOF 8627/* end confdefs.h. */ 8628#include <$ac_header> 8629_ACEOF 8630if { (ac_try="$ac_cpp conftest.$ac_ext" 8631case "(($ac_try" in 8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8633 *) ac_try_echo=$ac_try;; 8634esac 8635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8637 ac_status=$? 8638 grep -v '^ *+' conftest.er1 >conftest.err 8639 rm -f conftest.er1 8640 cat conftest.err >&5 8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8642 (exit $ac_status); } >/dev/null; then 8643 if test -s conftest.err; then 8644 ac_cpp_err=$ac_c_preproc_warn_flag 8645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8646 else 8647 ac_cpp_err= 8648 fi 8649else 8650 ac_cpp_err=yes 8651fi 8652if test -z "$ac_cpp_err"; then 8653 ac_header_preproc=yes 8654else 8655 echo "$as_me: failed program was:" >&5 8656sed 's/^/| /' conftest.$ac_ext >&5 8657 8658 ac_header_preproc=no 8659fi 8660 8661rm -f conftest.err conftest.$ac_ext 8662{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8663echo "${ECHO_T}$ac_header_preproc" >&6; } 8664 8665# So? What about this header? 8666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8667 yes:no: ) 8668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8672 ac_header_preproc=yes 8673 ;; 8674 no:yes:* ) 8675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8687 ( cat <<\_ASBOX 8688## ------------------------------------ ## 8689## Report this to http://llvm.org/bugs/ ## 8690## ------------------------------------ ## 8691_ASBOX 8692 ) | sed "s/^/$as_me: WARNING: /" >&2 8693 ;; 8694esac 8695{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8698 echo $ECHO_N "(cached) $ECHO_C" >&6 8699else 8700 eval "$as_ac_Header=\$ac_header_preproc" 8701fi 8702ac_res=`eval echo '${'$as_ac_Header'}'` 8703 { echo "$as_me:$LINENO: result: $ac_res" >&5 8704echo "${ECHO_T}$ac_res" >&6; } 8705 8706fi 8707if test `eval echo '${'$as_ac_Header'}'` = yes; then 8708 cat >>confdefs.h <<_ACEOF 8709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8710_ACEOF 8711 8712fi 8713 8714done 8715 8716# Check whether --enable-ltdl-install was given. 8717if test "${enable_ltdl_install+set}" = set; then 8718 enableval=$enable_ltdl_install; 8719fi 8720 8721 8722 8723 8724if test x"${enable_ltdl_install-no}" != xno; then 8725 INSTALL_LTDL_TRUE= 8726 INSTALL_LTDL_FALSE='#' 8727else 8728 INSTALL_LTDL_TRUE='#' 8729 INSTALL_LTDL_FALSE= 8730fi 8731 8732 8733 8734if test x"${enable_ltdl_convenience-no}" != xno; then 8735 CONVENIENCE_LTDL_TRUE= 8736 CONVENIENCE_LTDL_FALSE='#' 8737else 8738 CONVENIENCE_LTDL_TRUE='#' 8739 CONVENIENCE_LTDL_FALSE= 8740fi 8741 8742 8743{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8744echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8745library_names_spec= 8746libname_spec='lib$name' 8747soname_spec= 8748shrext_cmds=".so" 8749postinstall_cmds= 8750postuninstall_cmds= 8751finish_cmds= 8752finish_eval= 8753shlibpath_var= 8754shlibpath_overrides_runpath=unknown 8755version_type=none 8756dynamic_linker="$host_os ld.so" 8757sys_lib_dlsearch_path_spec="/lib /usr/lib" 8758if test "$GCC" = yes; then 8759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8760 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8761 # if the path contains ";" then we assume it to be the separator 8762 # otherwise default to the standard path separator (i.e. ":") - it is 8763 # assumed that no part of a normal pathname contains ";" but that should 8764 # okay in the real world where ";" in dirpaths is itself problematic. 8765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8766 else 8767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8768 fi 8769else 8770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8771fi 8772need_lib_prefix=unknown 8773hardcode_into_libs=no 8774 8775# when you set need_version to no, make sure it does not cause -set_version 8776# flags to be left without arguments 8777need_version=unknown 8778 8779case $host_os in 8780aix3*) 8781 version_type=linux 8782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8783 shlibpath_var=LIBPATH 8784 8785 # AIX 3 has no versioning support, so we append a major version to the name. 8786 soname_spec='${libname}${release}${shared_ext}$major' 8787 ;; 8788 8789aix4* | aix5*) 8790 version_type=linux 8791 need_lib_prefix=no 8792 need_version=no 8793 hardcode_into_libs=yes 8794 if test "$host_cpu" = ia64; then 8795 # AIX 5 supports IA64 8796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8797 shlibpath_var=LD_LIBRARY_PATH 8798 else 8799 # With GCC up to 2.95.x, collect2 would create an import file 8800 # for dependence libraries. The import file would start with 8801 # the line `#! .'. This would cause the generated library to 8802 # depend on `.', always an invalid library. This was fixed in 8803 # development snapshots of GCC prior to 3.0. 8804 case $host_os in 8805 aix4 | aix4.[01] | aix4.[01].*) 8806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8807 echo ' yes ' 8808 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8809 : 8810 else 8811 can_build_shared=no 8812 fi 8813 ;; 8814 esac 8815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8816 # soname into executable. Probably we can add versioning support to 8817 # collect2, so additional links can be useful in future. 8818 if test "$aix_use_runtimelinking" = yes; then 8819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8820 # instead of lib<name>.a to let people know that these are not 8821 # typical AIX shared libraries. 8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8823 else 8824 # We preserve .a as extension for shared libraries through AIX4.2 8825 # and later when we are not doing run time linking. 8826 library_names_spec='${libname}${release}.a $libname.a' 8827 soname_spec='${libname}${release}${shared_ext}$major' 8828 fi 8829 shlibpath_var=LIBPATH 8830 fi 8831 ;; 8832 8833amigaos*) 8834 library_names_spec='$libname.ixlibrary $libname.a' 8835 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8836 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' 8837 ;; 8838 8839beos*) 8840 library_names_spec='${libname}${shared_ext}' 8841 dynamic_linker="$host_os ld.so" 8842 shlibpath_var=LIBRARY_PATH 8843 ;; 8844 8845bsdi[45]*) 8846 version_type=linux 8847 need_version=no 8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8849 soname_spec='${libname}${release}${shared_ext}$major' 8850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8851 shlibpath_var=LD_LIBRARY_PATH 8852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8854 # the default ld.so.conf also contains /usr/contrib/lib and 8855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8856 # libtool to hard-code these into programs 8857 ;; 8858 8859cygwin* | mingw* | pw32*) 8860 version_type=windows 8861 shrext_cmds=".dll" 8862 need_version=no 8863 need_lib_prefix=no 8864 8865 case $GCC,$host_os in 8866 yes,cygwin* | yes,mingw* | yes,pw32*) 8867 library_names_spec='$libname.dll.a' 8868 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8869 postinstall_cmds='base_file=`basename \${file}`~ 8870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8871 dldir=$destdir/`dirname \$dlpath`~ 8872 test -d \$dldir || mkdir -p \$dldir~ 8873 $install_prog $dir/$dlname \$dldir/$dlname~ 8874 chmod a+x \$dldir/$dlname' 8875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8876 dlpath=$dir/\$dldll~ 8877 $rm \$dlpath' 8878 shlibpath_overrides_runpath=yes 8879 8880 case $host_os in 8881 cygwin*) 8882 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8884 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8885 ;; 8886 mingw*) 8887 # MinGW DLLs use traditional 'lib' prefix 8888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8890 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8891 # It is most probably a Windows format PATH printed by 8892 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8893 # path with ; separators, and with drive letters. We can handle the 8894 # drive letters (cygwin fileutils understands them), so leave them, 8895 # especially as we might pass files found there to a mingw objdump, 8896 # which wouldn't understand a cygwinified path. Ahh. 8897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8898 else 8899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8900 fi 8901 ;; 8902 pw32*) 8903 # pw32 DLLs use 'pw' prefix rather than 'lib' 8904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8905 ;; 8906 esac 8907 ;; 8908 8909 *) 8910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8911 ;; 8912 esac 8913 dynamic_linker='Win32 ld.exe' 8914 # FIXME: first we should search . and the directory the executable is in 8915 shlibpath_var=PATH 8916 ;; 8917 8918darwin* | rhapsody*) 8919 dynamic_linker="$host_os dyld" 8920 version_type=darwin 8921 need_lib_prefix=no 8922 need_version=no 8923 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8924 soname_spec='${libname}${release}${major}$shared_ext' 8925 shlibpath_overrides_runpath=yes 8926 shlibpath_var=DYLD_LIBRARY_PATH 8927 shrext_cmds='.dylib' 8928 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8929 if test "$GCC" = yes; then 8930 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"` 8931 else 8932 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8933 fi 8934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8935 ;; 8936 8937dgux*) 8938 version_type=linux 8939 need_lib_prefix=no 8940 need_version=no 8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8942 soname_spec='${libname}${release}${shared_ext}$major' 8943 shlibpath_var=LD_LIBRARY_PATH 8944 ;; 8945 8946freebsd1.*) 8947 dynamic_linker=no 8948 ;; 8949 8950kfreebsd*-gnu) 8951 version_type=linux 8952 need_lib_prefix=no 8953 need_version=no 8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8955 soname_spec='${libname}${release}${shared_ext}$major' 8956 shlibpath_var=LD_LIBRARY_PATH 8957 shlibpath_overrides_runpath=no 8958 hardcode_into_libs=yes 8959 dynamic_linker='GNU ld.so' 8960 ;; 8961 8962freebsd* | dragonfly*) 8963 # DragonFly does not have aout. When/if they implement a new 8964 # versioning mechanism, adjust this. 8965 if test -x /usr/bin/objformat; then 8966 objformat=`/usr/bin/objformat` 8967 else 8968 case $host_os in 8969 freebsd[123].*) objformat=aout ;; 8970 *) objformat=elf ;; 8971 esac 8972 fi 8973 version_type=freebsd-$objformat 8974 case $version_type in 8975 freebsd-elf*) 8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8977 need_version=no 8978 need_lib_prefix=no 8979 ;; 8980 freebsd-*) 8981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8982 need_version=yes 8983 ;; 8984 esac 8985 shlibpath_var=LD_LIBRARY_PATH 8986 case $host_os in 8987 freebsd2.*) 8988 shlibpath_overrides_runpath=yes 8989 ;; 8990 freebsd3.[01]* | freebsdelf3.[01]*) 8991 shlibpath_overrides_runpath=yes 8992 hardcode_into_libs=yes 8993 ;; 8994 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8995 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8996 shlibpath_overrides_runpath=no 8997 hardcode_into_libs=yes 8998 ;; 8999 freebsd*) # from 4.6 on 9000 shlibpath_overrides_runpath=yes 9001 hardcode_into_libs=yes 9002 ;; 9003 esac 9004 ;; 9005 9006gnu*) 9007 version_type=linux 9008 need_lib_prefix=no 9009 need_version=no 9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9011 soname_spec='${libname}${release}${shared_ext}$major' 9012 shlibpath_var=LD_LIBRARY_PATH 9013 hardcode_into_libs=yes 9014 ;; 9015 9016hpux9* | hpux10* | hpux11*) 9017 # Give a soname corresponding to the major version so that dld.sl refuses to 9018 # link against other versions. 9019 version_type=sunos 9020 need_lib_prefix=no 9021 need_version=no 9022 case $host_cpu in 9023 ia64*) 9024 shrext_cmds='.so' 9025 hardcode_into_libs=yes 9026 dynamic_linker="$host_os dld.so" 9027 shlibpath_var=LD_LIBRARY_PATH 9028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9030 soname_spec='${libname}${release}${shared_ext}$major' 9031 if test "X$HPUX_IA64_MODE" = X32; then 9032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9033 else 9034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9035 fi 9036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9037 ;; 9038 hppa*64*) 9039 shrext_cmds='.sl' 9040 hardcode_into_libs=yes 9041 dynamic_linker="$host_os dld.sl" 9042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9045 soname_spec='${libname}${release}${shared_ext}$major' 9046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9048 ;; 9049 *) 9050 shrext_cmds='.sl' 9051 dynamic_linker="$host_os dld.sl" 9052 shlibpath_var=SHLIB_PATH 9053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9055 soname_spec='${libname}${release}${shared_ext}$major' 9056 ;; 9057 esac 9058 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9059 postinstall_cmds='chmod 555 $lib' 9060 ;; 9061 9062interix3*) 9063 version_type=linux 9064 need_lib_prefix=no 9065 need_version=no 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9069 shlibpath_var=LD_LIBRARY_PATH 9070 shlibpath_overrides_runpath=no 9071 hardcode_into_libs=yes 9072 ;; 9073 9074irix5* | irix6* | nonstopux*) 9075 case $host_os in 9076 nonstopux*) version_type=nonstopux ;; 9077 *) 9078 if test "$lt_cv_prog_gnu_ld" = yes; then 9079 version_type=linux 9080 else 9081 version_type=irix 9082 fi ;; 9083 esac 9084 need_lib_prefix=no 9085 need_version=no 9086 soname_spec='${libname}${release}${shared_ext}$major' 9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9088 case $host_os in 9089 irix5* | nonstopux*) 9090 libsuff= shlibsuff= 9091 ;; 9092 *) 9093 case $LD in # libtool.m4 will add one of these switches to LD 9094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9095 libsuff= shlibsuff= libmagic=32-bit;; 9096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9097 libsuff=32 shlibsuff=N32 libmagic=N32;; 9098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9099 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9100 *) libsuff= shlibsuff= libmagic=never-match;; 9101 esac 9102 ;; 9103 esac 9104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9105 shlibpath_overrides_runpath=no 9106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9108 hardcode_into_libs=yes 9109 ;; 9110 9111# No shared lib support for Linux oldld, aout, or coff. 9112linux*oldld* | linux*aout* | linux*coff*) 9113 dynamic_linker=no 9114 ;; 9115 9116# This must be Linux ELF. 9117linux*) 9118 version_type=linux 9119 need_lib_prefix=no 9120 need_version=no 9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9122 soname_spec='${libname}${release}${shared_ext}$major' 9123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9124 shlibpath_var=LD_LIBRARY_PATH 9125 shlibpath_overrides_runpath=no 9126 # This implies no fast_install, which is unacceptable. 9127 # Some rework will be needed to allow for fast_install 9128 # before this can be enabled. 9129 hardcode_into_libs=yes 9130 9131 # Append ld.so.conf contents to the search path 9132 if test -f /etc/ld.so.conf; then 9133 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' ' '` 9134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9135 fi 9136 9137 # We used to test for /lib/ld.so.1 and disable shared libraries on 9138 # powerpc, because MkLinux only supported shared libraries with the 9139 # GNU dynamic linker. Since this was broken with cross compilers, 9140 # most powerpc-linux boxes support dynamic linking these days and 9141 # people can always --disable-shared, the test was removed, and we 9142 # assume the GNU/Linux dynamic linker is in use. 9143 dynamic_linker='GNU/Linux ld.so' 9144 ;; 9145 9146knetbsd*-gnu) 9147 version_type=linux 9148 need_lib_prefix=no 9149 need_version=no 9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9151 soname_spec='${libname}${release}${shared_ext}$major' 9152 shlibpath_var=LD_LIBRARY_PATH 9153 shlibpath_overrides_runpath=no 9154 hardcode_into_libs=yes 9155 dynamic_linker='GNU ld.so' 9156 ;; 9157 9158netbsd*) 9159 version_type=sunos 9160 need_lib_prefix=no 9161 need_version=no 9162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9165 dynamic_linker='NetBSD (a.out) ld.so' 9166 else 9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9168 soname_spec='${libname}${release}${shared_ext}$major' 9169 dynamic_linker='NetBSD ld.elf_so' 9170 fi 9171 shlibpath_var=LD_LIBRARY_PATH 9172 shlibpath_overrides_runpath=yes 9173 hardcode_into_libs=yes 9174 ;; 9175 9176newsos6) 9177 version_type=linux 9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9179 shlibpath_var=LD_LIBRARY_PATH 9180 shlibpath_overrides_runpath=yes 9181 ;; 9182 9183nto-qnx*) 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=yes 9191 ;; 9192 9193openbsd* | bitrig*) 9194 version_type=sunos 9195 sys_lib_dlsearch_path_spec="/usr/lib" 9196 need_lib_prefix=no 9197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9198 case $host_os in 9199 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9200 *) need_version=no ;; 9201 esac 9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9204 shlibpath_var=LD_LIBRARY_PATH 9205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9206 case $host_os in 9207 openbsd2.[89] | openbsd2.[89].*) 9208 shlibpath_overrides_runpath=no 9209 ;; 9210 *) 9211 shlibpath_overrides_runpath=yes 9212 ;; 9213 esac 9214 else 9215 shlibpath_overrides_runpath=yes 9216 fi 9217 ;; 9218 9219os2*) 9220 libname_spec='$name' 9221 shrext_cmds=".dll" 9222 need_lib_prefix=no 9223 library_names_spec='$libname${shared_ext} $libname.a' 9224 dynamic_linker='OS/2 ld.exe' 9225 shlibpath_var=LIBPATH 9226 ;; 9227 9228osf3* | osf4* | osf5*) 9229 version_type=osf 9230 need_lib_prefix=no 9231 need_version=no 9232 soname_spec='${libname}${release}${shared_ext}$major' 9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9234 shlibpath_var=LD_LIBRARY_PATH 9235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9237 ;; 9238 9239solaris*) 9240 version_type=linux 9241 need_lib_prefix=no 9242 need_version=no 9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9244 soname_spec='${libname}${release}${shared_ext}$major' 9245 shlibpath_var=LD_LIBRARY_PATH 9246 shlibpath_overrides_runpath=yes 9247 hardcode_into_libs=yes 9248 # ldd complains unless libraries are executable 9249 postinstall_cmds='chmod +x $lib' 9250 ;; 9251 9252sunos4*) 9253 version_type=sunos 9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9256 shlibpath_var=LD_LIBRARY_PATH 9257 shlibpath_overrides_runpath=yes 9258 if test "$with_gnu_ld" = yes; then 9259 need_lib_prefix=no 9260 fi 9261 need_version=yes 9262 ;; 9263 9264sysv4 | sysv4.3*) 9265 version_type=linux 9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9267 soname_spec='${libname}${release}${shared_ext}$major' 9268 shlibpath_var=LD_LIBRARY_PATH 9269 case $host_vendor in 9270 sni) 9271 shlibpath_overrides_runpath=no 9272 need_lib_prefix=no 9273 export_dynamic_flag_spec='${wl}-Blargedynsym' 9274 runpath_var=LD_RUN_PATH 9275 ;; 9276 siemens) 9277 need_lib_prefix=no 9278 ;; 9279 motorola) 9280 need_lib_prefix=no 9281 need_version=no 9282 shlibpath_overrides_runpath=no 9283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9284 ;; 9285 esac 9286 ;; 9287 9288sysv4*MP*) 9289 if test -d /usr/nec ;then 9290 version_type=linux 9291 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9292 soname_spec='$libname${shared_ext}.$major' 9293 shlibpath_var=LD_LIBRARY_PATH 9294 fi 9295 ;; 9296 9297sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9298 version_type=freebsd-elf 9299 need_lib_prefix=no 9300 need_version=no 9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9302 soname_spec='${libname}${release}${shared_ext}$major' 9303 shlibpath_var=LD_LIBRARY_PATH 9304 hardcode_into_libs=yes 9305 if test "$with_gnu_ld" = yes; then 9306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9307 shlibpath_overrides_runpath=no 9308 else 9309 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9310 shlibpath_overrides_runpath=yes 9311 case $host_os in 9312 sco3.2v5*) 9313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9314 ;; 9315 esac 9316 fi 9317 sys_lib_dlsearch_path_spec='/usr/lib' 9318 ;; 9319 9320uts4*) 9321 version_type=linux 9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9323 soname_spec='${libname}${release}${shared_ext}$major' 9324 shlibpath_var=LD_LIBRARY_PATH 9325 ;; 9326 9327*) 9328 dynamic_linker=no 9329 ;; 9330esac 9331{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9332echo "${ECHO_T}$dynamic_linker" >&6; } 9333test "$dynamic_linker" = no && can_build_shared=no 9334 9335variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9336if test "$GCC" = yes; then 9337 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9338fi 9339 9340 9341{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9342echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9343if test "${libltdl_cv_shlibext+set}" = set; then 9344 echo $ECHO_N "(cached) $ECHO_C" >&6 9345else 9346 9347module=yes 9348eval libltdl_cv_shlibext=$shrext_cmds 9349 9350fi 9351{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9352echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9353if test -n "$libltdl_cv_shlibext"; then 9354 9355cat >>confdefs.h <<_ACEOF 9356#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9357_ACEOF 9358 9359fi 9360 9361 9362{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 9363echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 9364if test "${libltdl_cv_shlibpath_var+set}" = set; then 9365 echo $ECHO_N "(cached) $ECHO_C" >&6 9366else 9367 libltdl_cv_shlibpath_var="$shlibpath_var" 9368fi 9369{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 9370echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 9371if test -n "$libltdl_cv_shlibpath_var"; then 9372 9373cat >>confdefs.h <<_ACEOF 9374#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 9375_ACEOF 9376 9377fi 9378 9379 9380{ echo "$as_me:$LINENO: checking for the default library search path" >&5 9381echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9382if test "${libltdl_cv_sys_search_path+set}" = set; then 9383 echo $ECHO_N "(cached) $ECHO_C" >&6 9384else 9385 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9386fi 9387{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9388echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9389if test -n "$libltdl_cv_sys_search_path"; then 9390 sys_search_path= 9391 for dir in $libltdl_cv_sys_search_path; do 9392 if test -z "$sys_search_path"; then 9393 sys_search_path="$dir" 9394 else 9395 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9396 fi 9397 done 9398 9399cat >>confdefs.h <<_ACEOF 9400#define LTDL_SYSSEARCHPATH "$sys_search_path" 9401_ACEOF 9402 9403fi 9404 9405{ echo "$as_me:$LINENO: checking for objdir" >&5 9406echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9407if test "${libltdl_cv_objdir+set}" = set; then 9408 echo $ECHO_N "(cached) $ECHO_C" >&6 9409else 9410 libltdl_cv_objdir="$objdir" 9411 if test -n "$objdir"; then 9412 : 9413 else 9414 rm -f .libs 2>/dev/null 9415 mkdir .libs 2>/dev/null 9416 if test -d .libs; then 9417 libltdl_cv_objdir=.libs 9418 else 9419 # MS-DOS does not allow filenames that begin with a dot. 9420 libltdl_cv_objdir=_libs 9421 fi 9422 rmdir .libs 2>/dev/null 9423 fi 9424 9425fi 9426{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9427echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9428 9429cat >>confdefs.h <<_ACEOF 9430#define LTDL_OBJDIR "$libltdl_cv_objdir/" 9431_ACEOF 9432 9433 9434 9435 9436 9437 9438# Check for command to grab the raw symbol name followed by C symbol from nm. 9439{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9440echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9441if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9442 echo $ECHO_N "(cached) $ECHO_C" >&6 9443else 9444 9445# These are sane defaults that work on at least a few old systems. 9446# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9447 9448# Character class describing NM global symbol codes. 9449symcode='[BCDEGRST]' 9450 9451# Regexp to match symbols that can be accessed directly from C. 9452sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9453 9454# Transform an extracted symbol line into a proper C declaration 9455lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9456 9457# Transform an extracted symbol line into symbol name and symbol address 9458lt_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'" 9459 9460# Define system-specific variables. 9461case $host_os in 9462aix*) 9463 symcode='[BCDT]' 9464 ;; 9465cygwin* | mingw* | pw32*) 9466 symcode='[ABCDGISTW]' 9467 ;; 9468hpux*) # Its linker distinguishes data from code symbols 9469 if test "$host_cpu" = ia64; then 9470 symcode='[ABCDEGRST]' 9471 fi 9472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9473 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'" 9474 ;; 9475linux*) 9476 if test "$host_cpu" = ia64; then 9477 symcode='[ABCDGIRSTW]' 9478 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9479 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'" 9480 fi 9481 ;; 9482irix* | nonstopux*) 9483 symcode='[BCDEGRST]' 9484 ;; 9485osf*) 9486 symcode='[BCDEGQRST]' 9487 ;; 9488solaris*) 9489 symcode='[BDRT]' 9490 ;; 9491sco3.2v5*) 9492 symcode='[DT]' 9493 ;; 9494sysv4.2uw2*) 9495 symcode='[DT]' 9496 ;; 9497sysv5* | sco5v6* | unixware* | OpenUNIX*) 9498 symcode='[ABDT]' 9499 ;; 9500sysv4) 9501 symcode='[DFNSTU]' 9502 ;; 9503esac 9504 9505# Handle CRLF in mingw tool chain 9506opt_cr= 9507case $build_os in 9508mingw*) 9509 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9510 ;; 9511esac 9512 9513# If we're using GNU nm, then use its standard symbol codes. 9514case `$NM -V 2>&1` in 9515*GNU* | *'with BFD'*) 9516 symcode='[ABCDGIRSTW]' ;; 9517esac 9518 9519# Try without a prefix undercore, then with it. 9520for ac_symprfx in "" "_"; do 9521 9522 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9523 symxfrm="\\1 $ac_symprfx\\2 \\2" 9524 9525 # Write the raw and C identifiers. 9526 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9527 9528 # Check to see that the pipe works correctly. 9529 pipe_works=no 9530 9531 rm -f conftest* 9532 cat > conftest.$ac_ext <<EOF 9533#ifdef __cplusplus 9534extern "C" { 9535#endif 9536char nm_test_var; 9537void nm_test_func(){} 9538#ifdef __cplusplus 9539} 9540#endif 9541int main(){nm_test_var='a';nm_test_func();return(0);} 9542EOF 9543 9544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9545 (eval $ac_compile) 2>&5 9546 ac_status=$? 9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9548 (exit $ac_status); }; then 9549 # Now try to grab the symbols. 9550 nlist=conftest.nm 9551 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9552 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9553 ac_status=$? 9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9555 (exit $ac_status); } && test -s "$nlist"; then 9556 # Try sorting and uniquifying the output. 9557 if sort "$nlist" | uniq > "$nlist"T; then 9558 mv -f "$nlist"T "$nlist" 9559 else 9560 rm -f "$nlist"T 9561 fi 9562 9563 # Make sure that we snagged all the symbols we need. 9564 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9565 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9566 cat <<EOF > conftest.$ac_ext 9567#ifdef __cplusplus 9568extern "C" { 9569#endif 9570 9571EOF 9572 # Now generate the symbol file. 9573 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9574 9575 cat <<EOF >> conftest.$ac_ext 9576#if defined (__STDC__) && __STDC__ 9577# define lt_ptr_t void * 9578#else 9579# define lt_ptr_t char * 9580# define const 9581#endif 9582 9583/* The mapping between symbol names and symbols. */ 9584const struct { 9585 const char *name; 9586 lt_ptr_t address; 9587} 9588lt_preloaded_symbols[] = 9589{ 9590EOF 9591 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9592 cat <<\EOF >> conftest.$ac_ext 9593 {0, (lt_ptr_t) 0} 9594}; 9595 9596#ifdef __cplusplus 9597} 9598#endif 9599EOF 9600 # Now try linking the two files. 9601 mv conftest.$ac_objext conftstm.$ac_objext 9602 lt_save_LIBS="$LIBS" 9603 lt_save_CFLAGS="$CFLAGS" 9604 LIBS="conftstm.$ac_objext" 9605 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9607 (eval $ac_link) 2>&5 9608 ac_status=$? 9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9610 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9611 pipe_works=yes 9612 fi 9613 LIBS="$lt_save_LIBS" 9614 CFLAGS="$lt_save_CFLAGS" 9615 else 9616 echo "cannot find nm_test_func in $nlist" >&5 9617 fi 9618 else 9619 echo "cannot find nm_test_var in $nlist" >&5 9620 fi 9621 else 9622 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9623 fi 9624 else 9625 echo "$progname: failed program was:" >&5 9626 cat conftest.$ac_ext >&5 9627 fi 9628 rm -f conftest* conftst* 9629 9630 # Do not use the global_symbol_pipe unless it works. 9631 if test "$pipe_works" = yes; then 9632 break 9633 else 9634 lt_cv_sys_global_symbol_pipe= 9635 fi 9636done 9637 9638fi 9639 9640if test -z "$lt_cv_sys_global_symbol_pipe"; then 9641 lt_cv_sys_global_symbol_to_cdecl= 9642fi 9643if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9644 { echo "$as_me:$LINENO: result: failed" >&5 9645echo "${ECHO_T}failed" >&6; } 9646else 9647 { echo "$as_me:$LINENO: result: ok" >&5 9648echo "${ECHO_T}ok" >&6; } 9649fi 9650 9651 9652{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9653echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9654if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9655 echo $ECHO_N "(cached) $ECHO_C" >&6 9656else 9657 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9658 libltdl_cv_preloaded_symbols=yes 9659 else 9660 libltdl_cv_preloaded_symbols=no 9661 fi 9662 9663fi 9664{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9665echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9666if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9667 9668cat >>confdefs.h <<\_ACEOF 9669#define HAVE_PRELOADED_SYMBOLS 1 9670_ACEOF 9671 9672fi 9673 9674LIBADD_DL= 9675 9676ac_ext=c 9677ac_cpp='$CPP $CPPFLAGS' 9678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9680ac_compiler_gnu=$ac_cv_c_compiler_gnu 9681 9682 9683{ echo "$as_me:$LINENO: checking for shl_load" >&5 9684echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9685if test "${ac_cv_func_shl_load+set}" = set; then 9686 echo $ECHO_N "(cached) $ECHO_C" >&6 9687else 9688 cat >conftest.$ac_ext <<_ACEOF 9689/* confdefs.h. */ 9690_ACEOF 9691cat confdefs.h >>conftest.$ac_ext 9692cat >>conftest.$ac_ext <<_ACEOF 9693/* end confdefs.h. */ 9694/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9695 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9696#define shl_load innocuous_shl_load 9697 9698/* System header to define __stub macros and hopefully few prototypes, 9699 which can conflict with char shl_load (); below. 9700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9701 <limits.h> exists even on freestanding compilers. */ 9702 9703#ifdef __STDC__ 9704# include <limits.h> 9705#else 9706# include <assert.h> 9707#endif 9708 9709#undef shl_load 9710 9711/* Override any GCC internal prototype to avoid an error. 9712 Use char because int might match the return type of a GCC 9713 builtin and then its argument prototype would still apply. */ 9714#ifdef __cplusplus 9715extern "C" 9716#endif 9717char shl_load (); 9718/* The GNU C library defines this for functions which it implements 9719 to always fail with ENOSYS. Some functions are actually named 9720 something starting with __ and the normal name is an alias. */ 9721#if defined __stub_shl_load || defined __stub___shl_load 9722choke me 9723#endif 9724 9725int 9726main () 9727{ 9728return shl_load (); 9729 ; 9730 return 0; 9731} 9732_ACEOF 9733rm -f conftest.$ac_objext conftest$ac_exeext 9734if { (ac_try="$ac_link" 9735case "(($ac_try" in 9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9737 *) ac_try_echo=$ac_try;; 9738esac 9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9740 (eval "$ac_link") 2>conftest.er1 9741 ac_status=$? 9742 grep -v '^ *+' conftest.er1 >conftest.err 9743 rm -f conftest.er1 9744 cat conftest.err >&5 9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9746 (exit $ac_status); } && 9747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9748 { (case "(($ac_try" in 9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9750 *) ac_try_echo=$ac_try;; 9751esac 9752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9753 (eval "$ac_try") 2>&5 9754 ac_status=$? 9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9756 (exit $ac_status); }; } && 9757 { ac_try='test -s conftest$ac_exeext' 9758 { (case "(($ac_try" in 9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9760 *) ac_try_echo=$ac_try;; 9761esac 9762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9763 (eval "$ac_try") 2>&5 9764 ac_status=$? 9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9766 (exit $ac_status); }; }; then 9767 ac_cv_func_shl_load=yes 9768else 9769 echo "$as_me: failed program was:" >&5 9770sed 's/^/| /' conftest.$ac_ext >&5 9771 9772 ac_cv_func_shl_load=no 9773fi 9774 9775rm -f core conftest.err conftest.$ac_objext \ 9776 conftest$ac_exeext conftest.$ac_ext 9777fi 9778{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9779echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9780if test $ac_cv_func_shl_load = yes; then 9781 9782cat >>confdefs.h <<\_ACEOF 9783#define HAVE_SHL_LOAD 1 9784_ACEOF 9785 9786else 9787 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9788echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9789if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9790 echo $ECHO_N "(cached) $ECHO_C" >&6 9791else 9792 ac_check_lib_save_LIBS=$LIBS 9793LIBS="-ldld $LIBS" 9794cat >conftest.$ac_ext <<_ACEOF 9795/* confdefs.h. */ 9796_ACEOF 9797cat confdefs.h >>conftest.$ac_ext 9798cat >>conftest.$ac_ext <<_ACEOF 9799/* end confdefs.h. */ 9800 9801/* Override any GCC internal prototype to avoid an error. 9802 Use char because int might match the return type of a GCC 9803 builtin and then its argument prototype would still apply. */ 9804#ifdef __cplusplus 9805extern "C" 9806#endif 9807char shl_load (); 9808int 9809main () 9810{ 9811return shl_load (); 9812 ; 9813 return 0; 9814} 9815_ACEOF 9816rm -f conftest.$ac_objext conftest$ac_exeext 9817if { (ac_try="$ac_link" 9818case "(($ac_try" in 9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9820 *) ac_try_echo=$ac_try;; 9821esac 9822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9823 (eval "$ac_link") 2>conftest.er1 9824 ac_status=$? 9825 grep -v '^ *+' conftest.er1 >conftest.err 9826 rm -f conftest.er1 9827 cat conftest.err >&5 9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9829 (exit $ac_status); } && 9830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9831 { (case "(($ac_try" in 9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9833 *) ac_try_echo=$ac_try;; 9834esac 9835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9836 (eval "$ac_try") 2>&5 9837 ac_status=$? 9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9839 (exit $ac_status); }; } && 9840 { ac_try='test -s conftest$ac_exeext' 9841 { (case "(($ac_try" in 9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9843 *) ac_try_echo=$ac_try;; 9844esac 9845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9846 (eval "$ac_try") 2>&5 9847 ac_status=$? 9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9849 (exit $ac_status); }; }; then 9850 ac_cv_lib_dld_shl_load=yes 9851else 9852 echo "$as_me: failed program was:" >&5 9853sed 's/^/| /' conftest.$ac_ext >&5 9854 9855 ac_cv_lib_dld_shl_load=no 9856fi 9857 9858rm -f core conftest.err conftest.$ac_objext \ 9859 conftest$ac_exeext conftest.$ac_ext 9860LIBS=$ac_check_lib_save_LIBS 9861fi 9862{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9863echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9864if test $ac_cv_lib_dld_shl_load = yes; then 9865 9866cat >>confdefs.h <<\_ACEOF 9867#define HAVE_SHL_LOAD 1 9868_ACEOF 9869 9870 LIBADD_DL="$LIBADD_DL -ldld" 9871else 9872 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9873echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9874if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9875 echo $ECHO_N "(cached) $ECHO_C" >&6 9876else 9877 ac_check_lib_save_LIBS=$LIBS 9878LIBS="-ldl $LIBS" 9879cat >conftest.$ac_ext <<_ACEOF 9880/* confdefs.h. */ 9881_ACEOF 9882cat confdefs.h >>conftest.$ac_ext 9883cat >>conftest.$ac_ext <<_ACEOF 9884/* end confdefs.h. */ 9885 9886/* Override any GCC internal prototype to avoid an error. 9887 Use char because int might match the return type of a GCC 9888 builtin and then its argument prototype would still apply. */ 9889#ifdef __cplusplus 9890extern "C" 9891#endif 9892char dlopen (); 9893int 9894main () 9895{ 9896return dlopen (); 9897 ; 9898 return 0; 9899} 9900_ACEOF 9901rm -f conftest.$ac_objext conftest$ac_exeext 9902if { (ac_try="$ac_link" 9903case "(($ac_try" in 9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9905 *) ac_try_echo=$ac_try;; 9906esac 9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9908 (eval "$ac_link") 2>conftest.er1 9909 ac_status=$? 9910 grep -v '^ *+' conftest.er1 >conftest.err 9911 rm -f conftest.er1 9912 cat conftest.err >&5 9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9914 (exit $ac_status); } && 9915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9916 { (case "(($ac_try" in 9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9918 *) ac_try_echo=$ac_try;; 9919esac 9920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9921 (eval "$ac_try") 2>&5 9922 ac_status=$? 9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9924 (exit $ac_status); }; } && 9925 { ac_try='test -s conftest$ac_exeext' 9926 { (case "(($ac_try" in 9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9928 *) ac_try_echo=$ac_try;; 9929esac 9930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9931 (eval "$ac_try") 2>&5 9932 ac_status=$? 9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9934 (exit $ac_status); }; }; then 9935 ac_cv_lib_dl_dlopen=yes 9936else 9937 echo "$as_me: failed program was:" >&5 9938sed 's/^/| /' conftest.$ac_ext >&5 9939 9940 ac_cv_lib_dl_dlopen=no 9941fi 9942 9943rm -f core conftest.err conftest.$ac_objext \ 9944 conftest$ac_exeext conftest.$ac_ext 9945LIBS=$ac_check_lib_save_LIBS 9946fi 9947{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9948echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9949if test $ac_cv_lib_dl_dlopen = yes; then 9950 9951cat >>confdefs.h <<\_ACEOF 9952#define HAVE_LIBDL 1 9953_ACEOF 9954 9955 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 9956else 9957 cat >conftest.$ac_ext <<_ACEOF 9958/* confdefs.h. */ 9959_ACEOF 9960cat confdefs.h >>conftest.$ac_ext 9961cat >>conftest.$ac_ext <<_ACEOF 9962/* end confdefs.h. */ 9963#if HAVE_DLFCN_H 9964# include <dlfcn.h> 9965#endif 9966 9967int 9968main () 9969{ 9970dlopen(0, 0); 9971 ; 9972 return 0; 9973} 9974_ACEOF 9975rm -f conftest.$ac_objext conftest$ac_exeext 9976if { (ac_try="$ac_link" 9977case "(($ac_try" in 9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9979 *) ac_try_echo=$ac_try;; 9980esac 9981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9982 (eval "$ac_link") 2>conftest.er1 9983 ac_status=$? 9984 grep -v '^ *+' conftest.er1 >conftest.err 9985 rm -f conftest.er1 9986 cat conftest.err >&5 9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9988 (exit $ac_status); } && 9989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9990 { (case "(($ac_try" in 9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9992 *) ac_try_echo=$ac_try;; 9993esac 9994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9995 (eval "$ac_try") 2>&5 9996 ac_status=$? 9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9998 (exit $ac_status); }; } && 9999 { ac_try='test -s conftest$ac_exeext' 10000 { (case "(($ac_try" in 10001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10002 *) ac_try_echo=$ac_try;; 10003esac 10004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10005 (eval "$ac_try") 2>&5 10006 ac_status=$? 10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10008 (exit $ac_status); }; }; then 10009 10010cat >>confdefs.h <<\_ACEOF 10011#define HAVE_LIBDL 1 10012_ACEOF 10013 libltdl_cv_func_dlopen="yes" 10014else 10015 echo "$as_me: failed program was:" >&5 10016sed 's/^/| /' conftest.$ac_ext >&5 10017 10018 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10019echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10020if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10021 echo $ECHO_N "(cached) $ECHO_C" >&6 10022else 10023 ac_check_lib_save_LIBS=$LIBS 10024LIBS="-lsvld $LIBS" 10025cat >conftest.$ac_ext <<_ACEOF 10026/* confdefs.h. */ 10027_ACEOF 10028cat confdefs.h >>conftest.$ac_ext 10029cat >>conftest.$ac_ext <<_ACEOF 10030/* end confdefs.h. */ 10031 10032/* Override any GCC internal prototype to avoid an error. 10033 Use char because int might match the return type of a GCC 10034 builtin and then its argument prototype would still apply. */ 10035#ifdef __cplusplus 10036extern "C" 10037#endif 10038char dlopen (); 10039int 10040main () 10041{ 10042return dlopen (); 10043 ; 10044 return 0; 10045} 10046_ACEOF 10047rm -f conftest.$ac_objext conftest$ac_exeext 10048if { (ac_try="$ac_link" 10049case "(($ac_try" in 10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10051 *) ac_try_echo=$ac_try;; 10052esac 10053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10054 (eval "$ac_link") 2>conftest.er1 10055 ac_status=$? 10056 grep -v '^ *+' conftest.er1 >conftest.err 10057 rm -f conftest.er1 10058 cat conftest.err >&5 10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10060 (exit $ac_status); } && 10061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10062 { (case "(($ac_try" in 10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10064 *) ac_try_echo=$ac_try;; 10065esac 10066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10067 (eval "$ac_try") 2>&5 10068 ac_status=$? 10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10070 (exit $ac_status); }; } && 10071 { ac_try='test -s conftest$ac_exeext' 10072 { (case "(($ac_try" in 10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10074 *) ac_try_echo=$ac_try;; 10075esac 10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10077 (eval "$ac_try") 2>&5 10078 ac_status=$? 10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10080 (exit $ac_status); }; }; then 10081 ac_cv_lib_svld_dlopen=yes 10082else 10083 echo "$as_me: failed program was:" >&5 10084sed 's/^/| /' conftest.$ac_ext >&5 10085 10086 ac_cv_lib_svld_dlopen=no 10087fi 10088 10089rm -f core conftest.err conftest.$ac_objext \ 10090 conftest$ac_exeext conftest.$ac_ext 10091LIBS=$ac_check_lib_save_LIBS 10092fi 10093{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10094echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10095if test $ac_cv_lib_svld_dlopen = yes; then 10096 10097cat >>confdefs.h <<\_ACEOF 10098#define HAVE_LIBDL 1 10099_ACEOF 10100 10101 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 10102else 10103 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10104echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10105if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10106 echo $ECHO_N "(cached) $ECHO_C" >&6 10107else 10108 ac_check_lib_save_LIBS=$LIBS 10109LIBS="-ldld $LIBS" 10110cat >conftest.$ac_ext <<_ACEOF 10111/* confdefs.h. */ 10112_ACEOF 10113cat confdefs.h >>conftest.$ac_ext 10114cat >>conftest.$ac_ext <<_ACEOF 10115/* end confdefs.h. */ 10116 10117/* Override any GCC internal prototype to avoid an error. 10118 Use char because int might match the return type of a GCC 10119 builtin and then its argument prototype would still apply. */ 10120#ifdef __cplusplus 10121extern "C" 10122#endif 10123char dld_link (); 10124int 10125main () 10126{ 10127return dld_link (); 10128 ; 10129 return 0; 10130} 10131_ACEOF 10132rm -f conftest.$ac_objext conftest$ac_exeext 10133if { (ac_try="$ac_link" 10134case "(($ac_try" in 10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10136 *) ac_try_echo=$ac_try;; 10137esac 10138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10139 (eval "$ac_link") 2>conftest.er1 10140 ac_status=$? 10141 grep -v '^ *+' conftest.er1 >conftest.err 10142 rm -f conftest.er1 10143 cat conftest.err >&5 10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10145 (exit $ac_status); } && 10146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10147 { (case "(($ac_try" in 10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10149 *) ac_try_echo=$ac_try;; 10150esac 10151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10152 (eval "$ac_try") 2>&5 10153 ac_status=$? 10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10155 (exit $ac_status); }; } && 10156 { ac_try='test -s conftest$ac_exeext' 10157 { (case "(($ac_try" in 10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10159 *) ac_try_echo=$ac_try;; 10160esac 10161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10162 (eval "$ac_try") 2>&5 10163 ac_status=$? 10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10165 (exit $ac_status); }; }; then 10166 ac_cv_lib_dld_dld_link=yes 10167else 10168 echo "$as_me: failed program was:" >&5 10169sed 's/^/| /' conftest.$ac_ext >&5 10170 10171 ac_cv_lib_dld_dld_link=no 10172fi 10173 10174rm -f core conftest.err conftest.$ac_objext \ 10175 conftest$ac_exeext conftest.$ac_ext 10176LIBS=$ac_check_lib_save_LIBS 10177fi 10178{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10179echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10180if test $ac_cv_lib_dld_dld_link = yes; then 10181 10182cat >>confdefs.h <<\_ACEOF 10183#define HAVE_DLD 1 10184_ACEOF 10185 10186 LIBADD_DL="$LIBADD_DL -ldld" 10187else 10188 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 10189echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10190if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10191 echo $ECHO_N "(cached) $ECHO_C" >&6 10192else 10193 cat >conftest.$ac_ext <<_ACEOF 10194/* confdefs.h. */ 10195_ACEOF 10196cat confdefs.h >>conftest.$ac_ext 10197cat >>conftest.$ac_ext <<_ACEOF 10198/* end confdefs.h. */ 10199/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10200 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10201#define _dyld_func_lookup innocuous__dyld_func_lookup 10202 10203/* System header to define __stub macros and hopefully few prototypes, 10204 which can conflict with char _dyld_func_lookup (); below. 10205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10206 <limits.h> exists even on freestanding compilers. */ 10207 10208#ifdef __STDC__ 10209# include <limits.h> 10210#else 10211# include <assert.h> 10212#endif 10213 10214#undef _dyld_func_lookup 10215 10216/* Override any GCC internal prototype to avoid an error. 10217 Use char because int might match the return type of a GCC 10218 builtin and then its argument prototype would still apply. */ 10219#ifdef __cplusplus 10220extern "C" 10221#endif 10222char _dyld_func_lookup (); 10223/* The GNU C library defines this for functions which it implements 10224 to always fail with ENOSYS. Some functions are actually named 10225 something starting with __ and the normal name is an alias. */ 10226#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10227choke me 10228#endif 10229 10230int 10231main () 10232{ 10233return _dyld_func_lookup (); 10234 ; 10235 return 0; 10236} 10237_ACEOF 10238rm -f conftest.$ac_objext conftest$ac_exeext 10239if { (ac_try="$ac_link" 10240case "(($ac_try" in 10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10242 *) ac_try_echo=$ac_try;; 10243esac 10244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10245 (eval "$ac_link") 2>conftest.er1 10246 ac_status=$? 10247 grep -v '^ *+' conftest.er1 >conftest.err 10248 rm -f conftest.er1 10249 cat conftest.err >&5 10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10251 (exit $ac_status); } && 10252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10253 { (case "(($ac_try" in 10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10255 *) ac_try_echo=$ac_try;; 10256esac 10257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10258 (eval "$ac_try") 2>&5 10259 ac_status=$? 10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10261 (exit $ac_status); }; } && 10262 { ac_try='test -s conftest$ac_exeext' 10263 { (case "(($ac_try" in 10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10265 *) ac_try_echo=$ac_try;; 10266esac 10267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10268 (eval "$ac_try") 2>&5 10269 ac_status=$? 10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10271 (exit $ac_status); }; }; then 10272 ac_cv_func__dyld_func_lookup=yes 10273else 10274 echo "$as_me: failed program was:" >&5 10275sed 's/^/| /' conftest.$ac_ext >&5 10276 10277 ac_cv_func__dyld_func_lookup=no 10278fi 10279 10280rm -f core conftest.err conftest.$ac_objext \ 10281 conftest$ac_exeext conftest.$ac_ext 10282fi 10283{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10284echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10285if test $ac_cv_func__dyld_func_lookup = yes; then 10286 10287cat >>confdefs.h <<\_ACEOF 10288#define HAVE_DYLD 1 10289_ACEOF 10290 10291fi 10292 10293 10294fi 10295 10296 10297fi 10298 10299 10300fi 10301 10302rm -f core conftest.err conftest.$ac_objext \ 10303 conftest$ac_exeext conftest.$ac_ext 10304 10305fi 10306 10307 10308fi 10309 10310 10311fi 10312 10313 10314if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10315then 10316 lt_save_LIBS="$LIBS" 10317 LIBS="$LIBS $LIBADD_DL" 10318 10319for ac_func in dlerror 10320do 10321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10322{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10324if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10325 echo $ECHO_N "(cached) $ECHO_C" >&6 10326else 10327 cat >conftest.$ac_ext <<_ACEOF 10328/* confdefs.h. */ 10329_ACEOF 10330cat confdefs.h >>conftest.$ac_ext 10331cat >>conftest.$ac_ext <<_ACEOF 10332/* end confdefs.h. */ 10333/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10334 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10335#define $ac_func innocuous_$ac_func 10336 10337/* System header to define __stub macros and hopefully few prototypes, 10338 which can conflict with char $ac_func (); below. 10339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10340 <limits.h> exists even on freestanding compilers. */ 10341 10342#ifdef __STDC__ 10343# include <limits.h> 10344#else 10345# include <assert.h> 10346#endif 10347 10348#undef $ac_func 10349 10350/* Override any GCC internal prototype to avoid an error. 10351 Use char because int might match the return type of a GCC 10352 builtin and then its argument prototype would still apply. */ 10353#ifdef __cplusplus 10354extern "C" 10355#endif 10356char $ac_func (); 10357/* The GNU C library defines this for functions which it implements 10358 to always fail with ENOSYS. Some functions are actually named 10359 something starting with __ and the normal name is an alias. */ 10360#if defined __stub_$ac_func || defined __stub___$ac_func 10361choke me 10362#endif 10363 10364int 10365main () 10366{ 10367return $ac_func (); 10368 ; 10369 return 0; 10370} 10371_ACEOF 10372rm -f conftest.$ac_objext conftest$ac_exeext 10373if { (ac_try="$ac_link" 10374case "(($ac_try" in 10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10376 *) ac_try_echo=$ac_try;; 10377esac 10378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10379 (eval "$ac_link") 2>conftest.er1 10380 ac_status=$? 10381 grep -v '^ *+' conftest.er1 >conftest.err 10382 rm -f conftest.er1 10383 cat conftest.err >&5 10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10385 (exit $ac_status); } && 10386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10387 { (case "(($ac_try" in 10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10389 *) ac_try_echo=$ac_try;; 10390esac 10391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10392 (eval "$ac_try") 2>&5 10393 ac_status=$? 10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10395 (exit $ac_status); }; } && 10396 { ac_try='test -s conftest$ac_exeext' 10397 { (case "(($ac_try" in 10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10399 *) ac_try_echo=$ac_try;; 10400esac 10401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10402 (eval "$ac_try") 2>&5 10403 ac_status=$? 10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10405 (exit $ac_status); }; }; then 10406 eval "$as_ac_var=yes" 10407else 10408 echo "$as_me: failed program was:" >&5 10409sed 's/^/| /' conftest.$ac_ext >&5 10410 10411 eval "$as_ac_var=no" 10412fi 10413 10414rm -f core conftest.err conftest.$ac_objext \ 10415 conftest$ac_exeext conftest.$ac_ext 10416fi 10417ac_res=`eval echo '${'$as_ac_var'}'` 10418 { echo "$as_me:$LINENO: result: $ac_res" >&5 10419echo "${ECHO_T}$ac_res" >&6; } 10420if test `eval echo '${'$as_ac_var'}'` = yes; then 10421 cat >>confdefs.h <<_ACEOF 10422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10423_ACEOF 10424 10425fi 10426done 10427 10428 LIBS="$lt_save_LIBS" 10429fi 10430ac_ext=c 10431ac_cpp='$CPP $CPPFLAGS' 10432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10434ac_compiler_gnu=$ac_cv_c_compiler_gnu 10435 10436 10437 10438{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10439echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10440if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10441 echo $ECHO_N "(cached) $ECHO_C" >&6 10442else 10443 ac_cv_sys_symbol_underscore=no 10444 cat > conftest.$ac_ext <<EOF 10445void nm_test_func(){} 10446int main(){nm_test_func;return 0;} 10447EOF 10448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10449 (eval $ac_compile) 2>&5 10450 ac_status=$? 10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10452 (exit $ac_status); }; then 10453 # Now try to grab the symbols. 10454 ac_nlist=conftest.nm 10455 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10456 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10457 ac_status=$? 10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10459 (exit $ac_status); } && test -s "$ac_nlist"; then 10460 # See whether the symbols have a leading underscore. 10461 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10462 ac_cv_sys_symbol_underscore=yes 10463 else 10464 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10465 : 10466 else 10467 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10468 fi 10469 fi 10470 else 10471 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10472 fi 10473 else 10474 echo "configure: failed program was:" >&5 10475 cat conftest.c >&5 10476 fi 10477 rm -rf conftest* 10478 10479fi 10480{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10481echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10482 10483 10484if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10485 if test x"$libltdl_cv_func_dlopen" = xyes || 10486 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10487 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10488echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10489if test "${libltdl_cv_need_uscore+set}" = set; then 10490 echo $ECHO_N "(cached) $ECHO_C" >&6 10491else 10492 libltdl_cv_need_uscore=unknown 10493 save_LIBS="$LIBS" 10494 LIBS="$LIBS $LIBADD_DL" 10495 if test "$cross_compiling" = yes; then : 10496 libltdl_cv_need_uscore=cross 10497else 10498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10499 lt_status=$lt_dlunknown 10500 cat > conftest.$ac_ext <<EOF 10501#line 10501 "configure" 10502#include "confdefs.h" 10503 10504#if HAVE_DLFCN_H 10505#include <dlfcn.h> 10506#endif 10507 10508#include <stdio.h> 10509 10510#ifdef RTLD_GLOBAL 10511# define LT_DLGLOBAL RTLD_GLOBAL 10512#else 10513# ifdef DL_GLOBAL 10514# define LT_DLGLOBAL DL_GLOBAL 10515# else 10516# define LT_DLGLOBAL 0 10517# endif 10518#endif 10519 10520/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10521 find out it does not work in some platform. */ 10522#ifndef LT_DLLAZY_OR_NOW 10523# ifdef RTLD_LAZY 10524# define LT_DLLAZY_OR_NOW RTLD_LAZY 10525# else 10526# ifdef DL_LAZY 10527# define LT_DLLAZY_OR_NOW DL_LAZY 10528# else 10529# ifdef RTLD_NOW 10530# define LT_DLLAZY_OR_NOW RTLD_NOW 10531# else 10532# ifdef DL_NOW 10533# define LT_DLLAZY_OR_NOW DL_NOW 10534# else 10535# define LT_DLLAZY_OR_NOW 0 10536# endif 10537# endif 10538# endif 10539# endif 10540#endif 10541 10542#ifdef __cplusplus 10543extern "C" void exit (int); 10544#endif 10545 10546void fnord() { int i=42;} 10547int main () 10548{ 10549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10550 int status = $lt_dlunknown; 10551 10552 if (self) 10553 { 10554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10555 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10556 /* dlclose (self); */ 10557 } 10558 else 10559 puts (dlerror ()); 10560 10561 exit (status); 10562} 10563EOF 10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10565 (eval $ac_link) 2>&5 10566 ac_status=$? 10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10568 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10569 (./conftest; exit; ) >&5 2>/dev/null 10570 lt_status=$? 10571 case x$lt_status in 10572 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10573 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10574 x$lt_dlunknown|x*) ;; 10575 esac 10576 else : 10577 # compilation failed 10578 10579 fi 10580fi 10581rm -fr conftest* 10582 10583 LIBS="$save_LIBS" 10584 10585fi 10586{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10587echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10588 fi 10589fi 10590 10591if test x"$libltdl_cv_need_uscore" = xyes; then 10592 10593cat >>confdefs.h <<\_ACEOF 10594#define NEED_USCORE 1 10595_ACEOF 10596 10597fi 10598 10599 10600{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10601echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10602if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10603 echo $ECHO_N "(cached) $ECHO_C" >&6 10604else 10605 # PORTME does your system automatically load deplibs for dlopen? 10606 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10607 # For now, we just catch OSes we know something about -- in the 10608 # future, we'll try test this programmatically. 10609 libltdl_cv_sys_dlopen_deplibs=unknown 10610 case "$host_os" in 10611 aix3*|aix4.1.*|aix4.2.*) 10612 # Unknown whether this is true for these versions of AIX, but 10613 # we want this `case' here to explicitly catch those versions. 10614 libltdl_cv_sys_dlopen_deplibs=unknown 10615 ;; 10616 aix[45]*) 10617 libltdl_cv_sys_dlopen_deplibs=yes 10618 ;; 10619 darwin*) 10620 # Assuming the user has installed a libdl from somewhere, this is true 10621 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10622 libltdl_cv_sys_dlopen_deplibs=yes 10623 ;; 10624 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10625 # GNU and its variants, using gnu ld.so (Glibc) 10626 libltdl_cv_sys_dlopen_deplibs=yes 10627 ;; 10628 hpux10*|hpux11*) 10629 libltdl_cv_sys_dlopen_deplibs=yes 10630 ;; 10631 interix*) 10632 libltdl_cv_sys_dlopen_deplibs=yes 10633 ;; 10634 irix[12345]*|irix6.[01]*) 10635 # Catch all versions of IRIX before 6.2, and indicate that we don't 10636 # know how it worked for any of those versions. 10637 libltdl_cv_sys_dlopen_deplibs=unknown 10638 ;; 10639 irix*) 10640 # The case above catches anything before 6.2, and it's known that 10641 # at 6.2 and later dlopen does load deplibs. 10642 libltdl_cv_sys_dlopen_deplibs=yes 10643 ;; 10644 netbsd*) 10645 libltdl_cv_sys_dlopen_deplibs=yes 10646 ;; 10647 openbsd*) 10648 libltdl_cv_sys_dlopen_deplibs=yes 10649 ;; 10650 osf[1234]*) 10651 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10652 # it did *not* use an RPATH in a shared library to find objects the 10653 # library depends on, so we explicitly say `no'. 10654 libltdl_cv_sys_dlopen_deplibs=no 10655 ;; 10656 osf5.0|osf5.0a|osf5.1) 10657 # dlopen *does* load deplibs and with the right loader patch applied 10658 # it even uses RPATH in a shared library to search for shared objects 10659 # that the library depends on, but there's no easy way to know if that 10660 # patch is installed. Since this is the case, all we can really 10661 # say is unknown -- it depends on the patch being installed. If 10662 # it is, this changes to `yes'. Without it, it would be `no'. 10663 libltdl_cv_sys_dlopen_deplibs=unknown 10664 ;; 10665 osf*) 10666 # the two cases above should catch all versions of osf <= 5.1. Read 10667 # the comments above for what we know about them. 10668 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10669 # is used to find them so we can finally say `yes'. 10670 libltdl_cv_sys_dlopen_deplibs=yes 10671 ;; 10672 solaris*) 10673 libltdl_cv_sys_dlopen_deplibs=yes 10674 ;; 10675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10676 libltdl_cv_sys_dlopen_deplibs=yes 10677 ;; 10678 esac 10679 10680fi 10681{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10682echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10683if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10684 10685cat >>confdefs.h <<\_ACEOF 10686#define LTDL_DLOPEN_DEPLIBS 1 10687_ACEOF 10688 10689fi 10690 10691 10692for ac_header in argz.h 10693do 10694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10696 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10699 echo $ECHO_N "(cached) $ECHO_C" >&6 10700fi 10701ac_res=`eval echo '${'$as_ac_Header'}'` 10702 { echo "$as_me:$LINENO: result: $ac_res" >&5 10703echo "${ECHO_T}$ac_res" >&6; } 10704else 10705 # Is the header compilable? 10706{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10707echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10708cat >conftest.$ac_ext <<_ACEOF 10709/* confdefs.h. */ 10710_ACEOF 10711cat confdefs.h >>conftest.$ac_ext 10712cat >>conftest.$ac_ext <<_ACEOF 10713/* end confdefs.h. */ 10714$ac_includes_default 10715#include <$ac_header> 10716_ACEOF 10717rm -f conftest.$ac_objext 10718if { (ac_try="$ac_compile" 10719case "(($ac_try" in 10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10721 *) ac_try_echo=$ac_try;; 10722esac 10723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10724 (eval "$ac_compile") 2>conftest.er1 10725 ac_status=$? 10726 grep -v '^ *+' conftest.er1 >conftest.err 10727 rm -f conftest.er1 10728 cat conftest.err >&5 10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10730 (exit $ac_status); } && 10731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10732 { (case "(($ac_try" in 10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10734 *) ac_try_echo=$ac_try;; 10735esac 10736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10737 (eval "$ac_try") 2>&5 10738 ac_status=$? 10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10740 (exit $ac_status); }; } && 10741 { ac_try='test -s conftest.$ac_objext' 10742 { (case "(($ac_try" in 10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10744 *) ac_try_echo=$ac_try;; 10745esac 10746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10747 (eval "$ac_try") 2>&5 10748 ac_status=$? 10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10750 (exit $ac_status); }; }; then 10751 ac_header_compiler=yes 10752else 10753 echo "$as_me: failed program was:" >&5 10754sed 's/^/| /' conftest.$ac_ext >&5 10755 10756 ac_header_compiler=no 10757fi 10758 10759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10760{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10761echo "${ECHO_T}$ac_header_compiler" >&6; } 10762 10763# Is the header present? 10764{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10765echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10766cat >conftest.$ac_ext <<_ACEOF 10767/* confdefs.h. */ 10768_ACEOF 10769cat confdefs.h >>conftest.$ac_ext 10770cat >>conftest.$ac_ext <<_ACEOF 10771/* end confdefs.h. */ 10772#include <$ac_header> 10773_ACEOF 10774if { (ac_try="$ac_cpp conftest.$ac_ext" 10775case "(($ac_try" in 10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10777 *) ac_try_echo=$ac_try;; 10778esac 10779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10781 ac_status=$? 10782 grep -v '^ *+' conftest.er1 >conftest.err 10783 rm -f conftest.er1 10784 cat conftest.err >&5 10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10786 (exit $ac_status); } >/dev/null; then 10787 if test -s conftest.err; then 10788 ac_cpp_err=$ac_c_preproc_warn_flag 10789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10790 else 10791 ac_cpp_err= 10792 fi 10793else 10794 ac_cpp_err=yes 10795fi 10796if test -z "$ac_cpp_err"; then 10797 ac_header_preproc=yes 10798else 10799 echo "$as_me: failed program was:" >&5 10800sed 's/^/| /' conftest.$ac_ext >&5 10801 10802 ac_header_preproc=no 10803fi 10804 10805rm -f conftest.err conftest.$ac_ext 10806{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10807echo "${ECHO_T}$ac_header_preproc" >&6; } 10808 10809# So? What about this header? 10810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10811 yes:no: ) 10812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10813echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10815echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10816 ac_header_preproc=yes 10817 ;; 10818 no:yes:* ) 10819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10820echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10822echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10824echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10826echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10830echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10831 ( cat <<\_ASBOX 10832## ------------------------------------ ## 10833## Report this to http://llvm.org/bugs/ ## 10834## ------------------------------------ ## 10835_ASBOX 10836 ) | sed "s/^/$as_me: WARNING: /" >&2 10837 ;; 10838esac 10839{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10842 echo $ECHO_N "(cached) $ECHO_C" >&6 10843else 10844 eval "$as_ac_Header=\$ac_header_preproc" 10845fi 10846ac_res=`eval echo '${'$as_ac_Header'}'` 10847 { echo "$as_me:$LINENO: result: $ac_res" >&5 10848echo "${ECHO_T}$ac_res" >&6; } 10849 10850fi 10851if test `eval echo '${'$as_ac_Header'}'` = yes; then 10852 cat >>confdefs.h <<_ACEOF 10853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10854_ACEOF 10855 10856fi 10857 10858done 10859 10860 10861{ echo "$as_me:$LINENO: checking for error_t" >&5 10862echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10863if test "${ac_cv_type_error_t+set}" = set; then 10864 echo $ECHO_N "(cached) $ECHO_C" >&6 10865else 10866 cat >conftest.$ac_ext <<_ACEOF 10867/* confdefs.h. */ 10868_ACEOF 10869cat confdefs.h >>conftest.$ac_ext 10870cat >>conftest.$ac_ext <<_ACEOF 10871/* end confdefs.h. */ 10872#if HAVE_ARGZ_H 10873# include <argz.h> 10874#endif 10875 10876typedef error_t ac__type_new_; 10877int 10878main () 10879{ 10880if ((ac__type_new_ *) 0) 10881 return 0; 10882if (sizeof (ac__type_new_)) 10883 return 0; 10884 ; 10885 return 0; 10886} 10887_ACEOF 10888rm -f conftest.$ac_objext 10889if { (ac_try="$ac_compile" 10890case "(($ac_try" in 10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10892 *) ac_try_echo=$ac_try;; 10893esac 10894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10895 (eval "$ac_compile") 2>conftest.er1 10896 ac_status=$? 10897 grep -v '^ *+' conftest.er1 >conftest.err 10898 rm -f conftest.er1 10899 cat conftest.err >&5 10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10901 (exit $ac_status); } && 10902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10903 { (case "(($ac_try" in 10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10905 *) ac_try_echo=$ac_try;; 10906esac 10907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10908 (eval "$ac_try") 2>&5 10909 ac_status=$? 10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10911 (exit $ac_status); }; } && 10912 { ac_try='test -s conftest.$ac_objext' 10913 { (case "(($ac_try" in 10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10915 *) ac_try_echo=$ac_try;; 10916esac 10917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10918 (eval "$ac_try") 2>&5 10919 ac_status=$? 10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10921 (exit $ac_status); }; }; then 10922 ac_cv_type_error_t=yes 10923else 10924 echo "$as_me: failed program was:" >&5 10925sed 's/^/| /' conftest.$ac_ext >&5 10926 10927 ac_cv_type_error_t=no 10928fi 10929 10930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10931fi 10932{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10933echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10934if test $ac_cv_type_error_t = yes; then 10935 10936cat >>confdefs.h <<_ACEOF 10937#define HAVE_ERROR_T 1 10938_ACEOF 10939 10940 10941else 10942 10943cat >>confdefs.h <<\_ACEOF 10944#define error_t int 10945_ACEOF 10946 10947fi 10948 10949 10950 10951 10952 10953 10954 10955for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 10956do 10957as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10958{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10959echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10960if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10961 echo $ECHO_N "(cached) $ECHO_C" >&6 10962else 10963 cat >conftest.$ac_ext <<_ACEOF 10964/* confdefs.h. */ 10965_ACEOF 10966cat confdefs.h >>conftest.$ac_ext 10967cat >>conftest.$ac_ext <<_ACEOF 10968/* end confdefs.h. */ 10969/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10970 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10971#define $ac_func innocuous_$ac_func 10972 10973/* System header to define __stub macros and hopefully few prototypes, 10974 which can conflict with char $ac_func (); below. 10975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10976 <limits.h> exists even on freestanding compilers. */ 10977 10978#ifdef __STDC__ 10979# include <limits.h> 10980#else 10981# include <assert.h> 10982#endif 10983 10984#undef $ac_func 10985 10986/* Override any GCC internal prototype to avoid an error. 10987 Use char because int might match the return type of a GCC 10988 builtin and then its argument prototype would still apply. */ 10989#ifdef __cplusplus 10990extern "C" 10991#endif 10992char $ac_func (); 10993/* The GNU C library defines this for functions which it implements 10994 to always fail with ENOSYS. Some functions are actually named 10995 something starting with __ and the normal name is an alias. */ 10996#if defined __stub_$ac_func || defined __stub___$ac_func 10997choke me 10998#endif 10999 11000int 11001main () 11002{ 11003return $ac_func (); 11004 ; 11005 return 0; 11006} 11007_ACEOF 11008rm -f conftest.$ac_objext conftest$ac_exeext 11009if { (ac_try="$ac_link" 11010case "(($ac_try" in 11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11012 *) ac_try_echo=$ac_try;; 11013esac 11014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11015 (eval "$ac_link") 2>conftest.er1 11016 ac_status=$? 11017 grep -v '^ *+' conftest.er1 >conftest.err 11018 rm -f conftest.er1 11019 cat conftest.err >&5 11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11021 (exit $ac_status); } && 11022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11023 { (case "(($ac_try" in 11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11025 *) ac_try_echo=$ac_try;; 11026esac 11027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11028 (eval "$ac_try") 2>&5 11029 ac_status=$? 11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11031 (exit $ac_status); }; } && 11032 { ac_try='test -s conftest$ac_exeext' 11033 { (case "(($ac_try" in 11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11035 *) ac_try_echo=$ac_try;; 11036esac 11037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11038 (eval "$ac_try") 2>&5 11039 ac_status=$? 11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11041 (exit $ac_status); }; }; then 11042 eval "$as_ac_var=yes" 11043else 11044 echo "$as_me: failed program was:" >&5 11045sed 's/^/| /' conftest.$ac_ext >&5 11046 11047 eval "$as_ac_var=no" 11048fi 11049 11050rm -f core conftest.err conftest.$ac_objext \ 11051 conftest$ac_exeext conftest.$ac_ext 11052fi 11053ac_res=`eval echo '${'$as_ac_var'}'` 11054 { echo "$as_me:$LINENO: result: $ac_res" >&5 11055echo "${ECHO_T}$ac_res" >&6; } 11056if test `eval echo '${'$as_ac_var'}'` = yes; then 11057 cat >>confdefs.h <<_ACEOF 11058#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11059_ACEOF 11060 11061fi 11062done 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 11092 stdio.h unistd.h 11093do 11094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11096 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11099 echo $ECHO_N "(cached) $ECHO_C" >&6 11100fi 11101ac_res=`eval echo '${'$as_ac_Header'}'` 11102 { echo "$as_me:$LINENO: result: $ac_res" >&5 11103echo "${ECHO_T}$ac_res" >&6; } 11104else 11105 # Is the header compilable? 11106{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11108cat >conftest.$ac_ext <<_ACEOF 11109/* confdefs.h. */ 11110_ACEOF 11111cat confdefs.h >>conftest.$ac_ext 11112cat >>conftest.$ac_ext <<_ACEOF 11113/* end confdefs.h. */ 11114$ac_includes_default 11115#include <$ac_header> 11116_ACEOF 11117rm -f conftest.$ac_objext 11118if { (ac_try="$ac_compile" 11119case "(($ac_try" in 11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11121 *) ac_try_echo=$ac_try;; 11122esac 11123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11124 (eval "$ac_compile") 2>conftest.er1 11125 ac_status=$? 11126 grep -v '^ *+' conftest.er1 >conftest.err 11127 rm -f conftest.er1 11128 cat conftest.err >&5 11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11130 (exit $ac_status); } && 11131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11132 { (case "(($ac_try" in 11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11134 *) ac_try_echo=$ac_try;; 11135esac 11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11137 (eval "$ac_try") 2>&5 11138 ac_status=$? 11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11140 (exit $ac_status); }; } && 11141 { ac_try='test -s conftest.$ac_objext' 11142 { (case "(($ac_try" in 11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11144 *) ac_try_echo=$ac_try;; 11145esac 11146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11147 (eval "$ac_try") 2>&5 11148 ac_status=$? 11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11150 (exit $ac_status); }; }; then 11151 ac_header_compiler=yes 11152else 11153 echo "$as_me: failed program was:" >&5 11154sed 's/^/| /' conftest.$ac_ext >&5 11155 11156 ac_header_compiler=no 11157fi 11158 11159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11160{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11161echo "${ECHO_T}$ac_header_compiler" >&6; } 11162 11163# Is the header present? 11164{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11166cat >conftest.$ac_ext <<_ACEOF 11167/* confdefs.h. */ 11168_ACEOF 11169cat confdefs.h >>conftest.$ac_ext 11170cat >>conftest.$ac_ext <<_ACEOF 11171/* end confdefs.h. */ 11172#include <$ac_header> 11173_ACEOF 11174if { (ac_try="$ac_cpp conftest.$ac_ext" 11175case "(($ac_try" in 11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11177 *) ac_try_echo=$ac_try;; 11178esac 11179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11181 ac_status=$? 11182 grep -v '^ *+' conftest.er1 >conftest.err 11183 rm -f conftest.er1 11184 cat conftest.err >&5 11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11186 (exit $ac_status); } >/dev/null; then 11187 if test -s conftest.err; then 11188 ac_cpp_err=$ac_c_preproc_warn_flag 11189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11190 else 11191 ac_cpp_err= 11192 fi 11193else 11194 ac_cpp_err=yes 11195fi 11196if test -z "$ac_cpp_err"; then 11197 ac_header_preproc=yes 11198else 11199 echo "$as_me: failed program was:" >&5 11200sed 's/^/| /' conftest.$ac_ext >&5 11201 11202 ac_header_preproc=no 11203fi 11204 11205rm -f conftest.err conftest.$ac_ext 11206{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11207echo "${ECHO_T}$ac_header_preproc" >&6; } 11208 11209# So? What about this header? 11210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11211 yes:no: ) 11212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11216 ac_header_preproc=yes 11217 ;; 11218 no:yes:* ) 11219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11231 ( cat <<\_ASBOX 11232## ------------------------------------ ## 11233## Report this to http://llvm.org/bugs/ ## 11234## ------------------------------------ ## 11235_ASBOX 11236 ) | sed "s/^/$as_me: WARNING: /" >&2 11237 ;; 11238esac 11239{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11242 echo $ECHO_N "(cached) $ECHO_C" >&6 11243else 11244 eval "$as_ac_Header=\$ac_header_preproc" 11245fi 11246ac_res=`eval echo '${'$as_ac_Header'}'` 11247 { echo "$as_me:$LINENO: result: $ac_res" >&5 11248echo "${ECHO_T}$ac_res" >&6; } 11249 11250fi 11251if test `eval echo '${'$as_ac_Header'}'` = yes; then 11252 cat >>confdefs.h <<_ACEOF 11253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11254_ACEOF 11255 11256fi 11257 11258done 11259 11260 11261 11262 11263 11264for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 11265do 11266as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11268 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11271 echo $ECHO_N "(cached) $ECHO_C" >&6 11272fi 11273ac_res=`eval echo '${'$as_ac_Header'}'` 11274 { echo "$as_me:$LINENO: result: $ac_res" >&5 11275echo "${ECHO_T}$ac_res" >&6; } 11276else 11277 # Is the header compilable? 11278{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11279echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11280cat >conftest.$ac_ext <<_ACEOF 11281/* confdefs.h. */ 11282_ACEOF 11283cat confdefs.h >>conftest.$ac_ext 11284cat >>conftest.$ac_ext <<_ACEOF 11285/* end confdefs.h. */ 11286$ac_includes_default 11287#include <$ac_header> 11288_ACEOF 11289rm -f conftest.$ac_objext 11290if { (ac_try="$ac_compile" 11291case "(($ac_try" in 11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11293 *) ac_try_echo=$ac_try;; 11294esac 11295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11296 (eval "$ac_compile") 2>conftest.er1 11297 ac_status=$? 11298 grep -v '^ *+' conftest.er1 >conftest.err 11299 rm -f conftest.er1 11300 cat conftest.err >&5 11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11302 (exit $ac_status); } && 11303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11304 { (case "(($ac_try" in 11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11306 *) ac_try_echo=$ac_try;; 11307esac 11308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11309 (eval "$ac_try") 2>&5 11310 ac_status=$? 11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11312 (exit $ac_status); }; } && 11313 { ac_try='test -s conftest.$ac_objext' 11314 { (case "(($ac_try" in 11315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11316 *) ac_try_echo=$ac_try;; 11317esac 11318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11319 (eval "$ac_try") 2>&5 11320 ac_status=$? 11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11322 (exit $ac_status); }; }; then 11323 ac_header_compiler=yes 11324else 11325 echo "$as_me: failed program was:" >&5 11326sed 's/^/| /' conftest.$ac_ext >&5 11327 11328 ac_header_compiler=no 11329fi 11330 11331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11332{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11333echo "${ECHO_T}$ac_header_compiler" >&6; } 11334 11335# Is the header present? 11336{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11337echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11338cat >conftest.$ac_ext <<_ACEOF 11339/* confdefs.h. */ 11340_ACEOF 11341cat confdefs.h >>conftest.$ac_ext 11342cat >>conftest.$ac_ext <<_ACEOF 11343/* end confdefs.h. */ 11344#include <$ac_header> 11345_ACEOF 11346if { (ac_try="$ac_cpp conftest.$ac_ext" 11347case "(($ac_try" in 11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11349 *) ac_try_echo=$ac_try;; 11350esac 11351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11352 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11353 ac_status=$? 11354 grep -v '^ *+' conftest.er1 >conftest.err 11355 rm -f conftest.er1 11356 cat conftest.err >&5 11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11358 (exit $ac_status); } >/dev/null; then 11359 if test -s conftest.err; then 11360 ac_cpp_err=$ac_c_preproc_warn_flag 11361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11362 else 11363 ac_cpp_err= 11364 fi 11365else 11366 ac_cpp_err=yes 11367fi 11368if test -z "$ac_cpp_err"; then 11369 ac_header_preproc=yes 11370else 11371 echo "$as_me: failed program was:" >&5 11372sed 's/^/| /' conftest.$ac_ext >&5 11373 11374 ac_header_preproc=no 11375fi 11376 11377rm -f conftest.err conftest.$ac_ext 11378{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11379echo "${ECHO_T}$ac_header_preproc" >&6; } 11380 11381# So? What about this header? 11382case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11383 yes:no: ) 11384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11385echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11387echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11388 ac_header_preproc=yes 11389 ;; 11390 no:yes:* ) 11391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11392echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11394echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11396echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11398echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11400echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11402echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11403 ( cat <<\_ASBOX 11404## ------------------------------------ ## 11405## Report this to http://llvm.org/bugs/ ## 11406## ------------------------------------ ## 11407_ASBOX 11408 ) | sed "s/^/$as_me: WARNING: /" >&2 11409 ;; 11410esac 11411{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11414 echo $ECHO_N "(cached) $ECHO_C" >&6 11415else 11416 eval "$as_ac_Header=\$ac_header_preproc" 11417fi 11418ac_res=`eval echo '${'$as_ac_Header'}'` 11419 { echo "$as_me:$LINENO: result: $ac_res" >&5 11420echo "${ECHO_T}$ac_res" >&6; } 11421 11422fi 11423if test `eval echo '${'$as_ac_Header'}'` = yes; then 11424 cat >>confdefs.h <<_ACEOF 11425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11426_ACEOF 11427 11428fi 11429 11430done 11431 11432 11433 11434for ac_header in string.h strings.h 11435do 11436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11438 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11441 echo $ECHO_N "(cached) $ECHO_C" >&6 11442fi 11443ac_res=`eval echo '${'$as_ac_Header'}'` 11444 { echo "$as_me:$LINENO: result: $ac_res" >&5 11445echo "${ECHO_T}$ac_res" >&6; } 11446else 11447 # Is the header compilable? 11448{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11449echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11450cat >conftest.$ac_ext <<_ACEOF 11451/* confdefs.h. */ 11452_ACEOF 11453cat confdefs.h >>conftest.$ac_ext 11454cat >>conftest.$ac_ext <<_ACEOF 11455/* end confdefs.h. */ 11456$ac_includes_default 11457#include <$ac_header> 11458_ACEOF 11459rm -f conftest.$ac_objext 11460if { (ac_try="$ac_compile" 11461case "(($ac_try" in 11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11463 *) ac_try_echo=$ac_try;; 11464esac 11465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11466 (eval "$ac_compile") 2>conftest.er1 11467 ac_status=$? 11468 grep -v '^ *+' conftest.er1 >conftest.err 11469 rm -f conftest.er1 11470 cat conftest.err >&5 11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11472 (exit $ac_status); } && 11473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11474 { (case "(($ac_try" in 11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11476 *) ac_try_echo=$ac_try;; 11477esac 11478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11479 (eval "$ac_try") 2>&5 11480 ac_status=$? 11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11482 (exit $ac_status); }; } && 11483 { ac_try='test -s conftest.$ac_objext' 11484 { (case "(($ac_try" in 11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11486 *) ac_try_echo=$ac_try;; 11487esac 11488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11489 (eval "$ac_try") 2>&5 11490 ac_status=$? 11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11492 (exit $ac_status); }; }; then 11493 ac_header_compiler=yes 11494else 11495 echo "$as_me: failed program was:" >&5 11496sed 's/^/| /' conftest.$ac_ext >&5 11497 11498 ac_header_compiler=no 11499fi 11500 11501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11502{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11503echo "${ECHO_T}$ac_header_compiler" >&6; } 11504 11505# Is the header present? 11506{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11508cat >conftest.$ac_ext <<_ACEOF 11509/* confdefs.h. */ 11510_ACEOF 11511cat confdefs.h >>conftest.$ac_ext 11512cat >>conftest.$ac_ext <<_ACEOF 11513/* end confdefs.h. */ 11514#include <$ac_header> 11515_ACEOF 11516if { (ac_try="$ac_cpp conftest.$ac_ext" 11517case "(($ac_try" in 11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11519 *) ac_try_echo=$ac_try;; 11520esac 11521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11523 ac_status=$? 11524 grep -v '^ *+' conftest.er1 >conftest.err 11525 rm -f conftest.er1 11526 cat conftest.err >&5 11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11528 (exit $ac_status); } >/dev/null; then 11529 if test -s conftest.err; then 11530 ac_cpp_err=$ac_c_preproc_warn_flag 11531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11532 else 11533 ac_cpp_err= 11534 fi 11535else 11536 ac_cpp_err=yes 11537fi 11538if test -z "$ac_cpp_err"; then 11539 ac_header_preproc=yes 11540else 11541 echo "$as_me: failed program was:" >&5 11542sed 's/^/| /' conftest.$ac_ext >&5 11543 11544 ac_header_preproc=no 11545fi 11546 11547rm -f conftest.err conftest.$ac_ext 11548{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11549echo "${ECHO_T}$ac_header_preproc" >&6; } 11550 11551# So? What about this header? 11552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11553 yes:no: ) 11554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11558 ac_header_preproc=yes 11559 ;; 11560 no:yes:* ) 11561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11568echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11573 ( cat <<\_ASBOX 11574## ------------------------------------ ## 11575## Report this to http://llvm.org/bugs/ ## 11576## ------------------------------------ ## 11577_ASBOX 11578 ) | sed "s/^/$as_me: WARNING: /" >&2 11579 ;; 11580esac 11581{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11584 echo $ECHO_N "(cached) $ECHO_C" >&6 11585else 11586 eval "$as_ac_Header=\$ac_header_preproc" 11587fi 11588ac_res=`eval echo '${'$as_ac_Header'}'` 11589 { echo "$as_me:$LINENO: result: $ac_res" >&5 11590echo "${ECHO_T}$ac_res" >&6; } 11591 11592fi 11593if test `eval echo '${'$as_ac_Header'}'` = yes; then 11594 cat >>confdefs.h <<_ACEOF 11595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11596_ACEOF 11597 break 11598fi 11599 11600done 11601 11602 11603 11604 11605for ac_func in strchr index 11606do 11607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11608{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11611 echo $ECHO_N "(cached) $ECHO_C" >&6 11612else 11613 cat >conftest.$ac_ext <<_ACEOF 11614/* confdefs.h. */ 11615_ACEOF 11616cat confdefs.h >>conftest.$ac_ext 11617cat >>conftest.$ac_ext <<_ACEOF 11618/* end confdefs.h. */ 11619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11620 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11621#define $ac_func innocuous_$ac_func 11622 11623/* System header to define __stub macros and hopefully few prototypes, 11624 which can conflict with char $ac_func (); below. 11625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11626 <limits.h> exists even on freestanding compilers. */ 11627 11628#ifdef __STDC__ 11629# include <limits.h> 11630#else 11631# include <assert.h> 11632#endif 11633 11634#undef $ac_func 11635 11636/* Override any GCC internal prototype to avoid an error. 11637 Use char because int might match the return type of a GCC 11638 builtin and then its argument prototype would still apply. */ 11639#ifdef __cplusplus 11640extern "C" 11641#endif 11642char $ac_func (); 11643/* The GNU C library defines this for functions which it implements 11644 to always fail with ENOSYS. Some functions are actually named 11645 something starting with __ and the normal name is an alias. */ 11646#if defined __stub_$ac_func || defined __stub___$ac_func 11647choke me 11648#endif 11649 11650int 11651main () 11652{ 11653return $ac_func (); 11654 ; 11655 return 0; 11656} 11657_ACEOF 11658rm -f conftest.$ac_objext conftest$ac_exeext 11659if { (ac_try="$ac_link" 11660case "(($ac_try" in 11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11662 *) ac_try_echo=$ac_try;; 11663esac 11664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11665 (eval "$ac_link") 2>conftest.er1 11666 ac_status=$? 11667 grep -v '^ *+' conftest.er1 >conftest.err 11668 rm -f conftest.er1 11669 cat conftest.err >&5 11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11671 (exit $ac_status); } && 11672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11673 { (case "(($ac_try" in 11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11675 *) ac_try_echo=$ac_try;; 11676esac 11677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11678 (eval "$ac_try") 2>&5 11679 ac_status=$? 11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11681 (exit $ac_status); }; } && 11682 { ac_try='test -s conftest$ac_exeext' 11683 { (case "(($ac_try" in 11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11685 *) ac_try_echo=$ac_try;; 11686esac 11687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11688 (eval "$ac_try") 2>&5 11689 ac_status=$? 11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11691 (exit $ac_status); }; }; then 11692 eval "$as_ac_var=yes" 11693else 11694 echo "$as_me: failed program was:" >&5 11695sed 's/^/| /' conftest.$ac_ext >&5 11696 11697 eval "$as_ac_var=no" 11698fi 11699 11700rm -f core conftest.err conftest.$ac_objext \ 11701 conftest$ac_exeext conftest.$ac_ext 11702fi 11703ac_res=`eval echo '${'$as_ac_var'}'` 11704 { echo "$as_me:$LINENO: result: $ac_res" >&5 11705echo "${ECHO_T}$ac_res" >&6; } 11706if test `eval echo '${'$as_ac_var'}'` = yes; then 11707 cat >>confdefs.h <<_ACEOF 11708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11709_ACEOF 11710 break 11711fi 11712done 11713 11714 11715 11716for ac_func in strrchr rindex 11717do 11718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11719{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11721if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11722 echo $ECHO_N "(cached) $ECHO_C" >&6 11723else 11724 cat >conftest.$ac_ext <<_ACEOF 11725/* confdefs.h. */ 11726_ACEOF 11727cat confdefs.h >>conftest.$ac_ext 11728cat >>conftest.$ac_ext <<_ACEOF 11729/* end confdefs.h. */ 11730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11731 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11732#define $ac_func innocuous_$ac_func 11733 11734/* System header to define __stub macros and hopefully few prototypes, 11735 which can conflict with char $ac_func (); below. 11736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11737 <limits.h> exists even on freestanding compilers. */ 11738 11739#ifdef __STDC__ 11740# include <limits.h> 11741#else 11742# include <assert.h> 11743#endif 11744 11745#undef $ac_func 11746 11747/* Override any GCC internal prototype to avoid an error. 11748 Use char because int might match the return type of a GCC 11749 builtin and then its argument prototype would still apply. */ 11750#ifdef __cplusplus 11751extern "C" 11752#endif 11753char $ac_func (); 11754/* The GNU C library defines this for functions which it implements 11755 to always fail with ENOSYS. Some functions are actually named 11756 something starting with __ and the normal name is an alias. */ 11757#if defined __stub_$ac_func || defined __stub___$ac_func 11758choke me 11759#endif 11760 11761int 11762main () 11763{ 11764return $ac_func (); 11765 ; 11766 return 0; 11767} 11768_ACEOF 11769rm -f conftest.$ac_objext conftest$ac_exeext 11770if { (ac_try="$ac_link" 11771case "(($ac_try" in 11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11773 *) ac_try_echo=$ac_try;; 11774esac 11775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11776 (eval "$ac_link") 2>conftest.er1 11777 ac_status=$? 11778 grep -v '^ *+' conftest.er1 >conftest.err 11779 rm -f conftest.er1 11780 cat conftest.err >&5 11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11782 (exit $ac_status); } && 11783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11784 { (case "(($ac_try" in 11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11786 *) ac_try_echo=$ac_try;; 11787esac 11788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11789 (eval "$ac_try") 2>&5 11790 ac_status=$? 11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11792 (exit $ac_status); }; } && 11793 { ac_try='test -s conftest$ac_exeext' 11794 { (case "(($ac_try" in 11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11796 *) ac_try_echo=$ac_try;; 11797esac 11798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11799 (eval "$ac_try") 2>&5 11800 ac_status=$? 11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11802 (exit $ac_status); }; }; then 11803 eval "$as_ac_var=yes" 11804else 11805 echo "$as_me: failed program was:" >&5 11806sed 's/^/| /' conftest.$ac_ext >&5 11807 11808 eval "$as_ac_var=no" 11809fi 11810 11811rm -f core conftest.err conftest.$ac_objext \ 11812 conftest$ac_exeext conftest.$ac_ext 11813fi 11814ac_res=`eval echo '${'$as_ac_var'}'` 11815 { echo "$as_me:$LINENO: result: $ac_res" >&5 11816echo "${ECHO_T}$ac_res" >&6; } 11817if test `eval echo '${'$as_ac_var'}'` = yes; then 11818 cat >>confdefs.h <<_ACEOF 11819#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11820_ACEOF 11821 break 11822fi 11823done 11824 11825 11826 11827for ac_func in memcpy bcopy 11828do 11829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11830{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11832if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11833 echo $ECHO_N "(cached) $ECHO_C" >&6 11834else 11835 cat >conftest.$ac_ext <<_ACEOF 11836/* confdefs.h. */ 11837_ACEOF 11838cat confdefs.h >>conftest.$ac_ext 11839cat >>conftest.$ac_ext <<_ACEOF 11840/* end confdefs.h. */ 11841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11842 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11843#define $ac_func innocuous_$ac_func 11844 11845/* System header to define __stub macros and hopefully few prototypes, 11846 which can conflict with char $ac_func (); below. 11847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11848 <limits.h> exists even on freestanding compilers. */ 11849 11850#ifdef __STDC__ 11851# include <limits.h> 11852#else 11853# include <assert.h> 11854#endif 11855 11856#undef $ac_func 11857 11858/* Override any GCC internal prototype to avoid an error. 11859 Use char because int might match the return type of a GCC 11860 builtin and then its argument prototype would still apply. */ 11861#ifdef __cplusplus 11862extern "C" 11863#endif 11864char $ac_func (); 11865/* The GNU C library defines this for functions which it implements 11866 to always fail with ENOSYS. Some functions are actually named 11867 something starting with __ and the normal name is an alias. */ 11868#if defined __stub_$ac_func || defined __stub___$ac_func 11869choke me 11870#endif 11871 11872int 11873main () 11874{ 11875return $ac_func (); 11876 ; 11877 return 0; 11878} 11879_ACEOF 11880rm -f conftest.$ac_objext conftest$ac_exeext 11881if { (ac_try="$ac_link" 11882case "(($ac_try" in 11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11884 *) ac_try_echo=$ac_try;; 11885esac 11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11887 (eval "$ac_link") 2>conftest.er1 11888 ac_status=$? 11889 grep -v '^ *+' conftest.er1 >conftest.err 11890 rm -f conftest.er1 11891 cat conftest.err >&5 11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11893 (exit $ac_status); } && 11894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11895 { (case "(($ac_try" in 11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11897 *) ac_try_echo=$ac_try;; 11898esac 11899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11900 (eval "$ac_try") 2>&5 11901 ac_status=$? 11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11903 (exit $ac_status); }; } && 11904 { ac_try='test -s conftest$ac_exeext' 11905 { (case "(($ac_try" in 11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11907 *) ac_try_echo=$ac_try;; 11908esac 11909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11910 (eval "$ac_try") 2>&5 11911 ac_status=$? 11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11913 (exit $ac_status); }; }; then 11914 eval "$as_ac_var=yes" 11915else 11916 echo "$as_me: failed program was:" >&5 11917sed 's/^/| /' conftest.$ac_ext >&5 11918 11919 eval "$as_ac_var=no" 11920fi 11921 11922rm -f core conftest.err conftest.$ac_objext \ 11923 conftest$ac_exeext conftest.$ac_ext 11924fi 11925ac_res=`eval echo '${'$as_ac_var'}'` 11926 { echo "$as_me:$LINENO: result: $ac_res" >&5 11927echo "${ECHO_T}$ac_res" >&6; } 11928if test `eval echo '${'$as_ac_var'}'` = yes; then 11929 cat >>confdefs.h <<_ACEOF 11930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11931_ACEOF 11932 break 11933fi 11934done 11935 11936 11937 11938for ac_func in memmove strcmp 11939do 11940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11941{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11944 echo $ECHO_N "(cached) $ECHO_C" >&6 11945else 11946 cat >conftest.$ac_ext <<_ACEOF 11947/* confdefs.h. */ 11948_ACEOF 11949cat confdefs.h >>conftest.$ac_ext 11950cat >>conftest.$ac_ext <<_ACEOF 11951/* end confdefs.h. */ 11952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11953 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11954#define $ac_func innocuous_$ac_func 11955 11956/* System header to define __stub macros and hopefully few prototypes, 11957 which can conflict with char $ac_func (); below. 11958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11959 <limits.h> exists even on freestanding compilers. */ 11960 11961#ifdef __STDC__ 11962# include <limits.h> 11963#else 11964# include <assert.h> 11965#endif 11966 11967#undef $ac_func 11968 11969/* Override any GCC internal prototype to avoid an error. 11970 Use char because int might match the return type of a GCC 11971 builtin and then its argument prototype would still apply. */ 11972#ifdef __cplusplus 11973extern "C" 11974#endif 11975char $ac_func (); 11976/* The GNU C library defines this for functions which it implements 11977 to always fail with ENOSYS. Some functions are actually named 11978 something starting with __ and the normal name is an alias. */ 11979#if defined __stub_$ac_func || defined __stub___$ac_func 11980choke me 11981#endif 11982 11983int 11984main () 11985{ 11986return $ac_func (); 11987 ; 11988 return 0; 11989} 11990_ACEOF 11991rm -f conftest.$ac_objext conftest$ac_exeext 11992if { (ac_try="$ac_link" 11993case "(($ac_try" in 11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11995 *) ac_try_echo=$ac_try;; 11996esac 11997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11998 (eval "$ac_link") 2>conftest.er1 11999 ac_status=$? 12000 grep -v '^ *+' conftest.er1 >conftest.err 12001 rm -f conftest.er1 12002 cat conftest.err >&5 12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12004 (exit $ac_status); } && 12005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12006 { (case "(($ac_try" in 12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12008 *) ac_try_echo=$ac_try;; 12009esac 12010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12011 (eval "$ac_try") 2>&5 12012 ac_status=$? 12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12014 (exit $ac_status); }; } && 12015 { ac_try='test -s conftest$ac_exeext' 12016 { (case "(($ac_try" in 12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12018 *) ac_try_echo=$ac_try;; 12019esac 12020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12021 (eval "$ac_try") 2>&5 12022 ac_status=$? 12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12024 (exit $ac_status); }; }; then 12025 eval "$as_ac_var=yes" 12026else 12027 echo "$as_me: failed program was:" >&5 12028sed 's/^/| /' conftest.$ac_ext >&5 12029 12030 eval "$as_ac_var=no" 12031fi 12032 12033rm -f core conftest.err conftest.$ac_objext \ 12034 conftest$ac_exeext conftest.$ac_ext 12035fi 12036ac_res=`eval echo '${'$as_ac_var'}'` 12037 { echo "$as_me:$LINENO: result: $ac_res" >&5 12038echo "${ECHO_T}$ac_res" >&6; } 12039if test `eval echo '${'$as_ac_var'}'` = yes; then 12040 cat >>confdefs.h <<_ACEOF 12041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12042_ACEOF 12043 12044fi 12045done 12046 12047 12048 12049 12050for ac_func in closedir opendir readdir 12051do 12052as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12053{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12054echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12055if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12056 echo $ECHO_N "(cached) $ECHO_C" >&6 12057else 12058 cat >conftest.$ac_ext <<_ACEOF 12059/* confdefs.h. */ 12060_ACEOF 12061cat confdefs.h >>conftest.$ac_ext 12062cat >>conftest.$ac_ext <<_ACEOF 12063/* end confdefs.h. */ 12064/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12066#define $ac_func innocuous_$ac_func 12067 12068/* System header to define __stub macros and hopefully few prototypes, 12069 which can conflict with char $ac_func (); below. 12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12071 <limits.h> exists even on freestanding compilers. */ 12072 12073#ifdef __STDC__ 12074# include <limits.h> 12075#else 12076# include <assert.h> 12077#endif 12078 12079#undef $ac_func 12080 12081/* Override any GCC internal prototype to avoid an error. 12082 Use char because int might match the return type of a GCC 12083 builtin and then its argument prototype would still apply. */ 12084#ifdef __cplusplus 12085extern "C" 12086#endif 12087char $ac_func (); 12088/* The GNU C library defines this for functions which it implements 12089 to always fail with ENOSYS. Some functions are actually named 12090 something starting with __ and the normal name is an alias. */ 12091#if defined __stub_$ac_func || defined __stub___$ac_func 12092choke me 12093#endif 12094 12095int 12096main () 12097{ 12098return $ac_func (); 12099 ; 12100 return 0; 12101} 12102_ACEOF 12103rm -f conftest.$ac_objext conftest$ac_exeext 12104if { (ac_try="$ac_link" 12105case "(($ac_try" in 12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12107 *) ac_try_echo=$ac_try;; 12108esac 12109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12110 (eval "$ac_link") 2>conftest.er1 12111 ac_status=$? 12112 grep -v '^ *+' conftest.er1 >conftest.err 12113 rm -f conftest.er1 12114 cat conftest.err >&5 12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12116 (exit $ac_status); } && 12117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12118 { (case "(($ac_try" in 12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12120 *) ac_try_echo=$ac_try;; 12121esac 12122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12123 (eval "$ac_try") 2>&5 12124 ac_status=$? 12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12126 (exit $ac_status); }; } && 12127 { ac_try='test -s conftest$ac_exeext' 12128 { (case "(($ac_try" in 12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12130 *) ac_try_echo=$ac_try;; 12131esac 12132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12133 (eval "$ac_try") 2>&5 12134 ac_status=$? 12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12136 (exit $ac_status); }; }; then 12137 eval "$as_ac_var=yes" 12138else 12139 echo "$as_me: failed program was:" >&5 12140sed 's/^/| /' conftest.$ac_ext >&5 12141 12142 eval "$as_ac_var=no" 12143fi 12144 12145rm -f core conftest.err conftest.$ac_objext \ 12146 conftest$ac_exeext conftest.$ac_ext 12147fi 12148ac_res=`eval echo '${'$as_ac_var'}'` 12149 { echo "$as_me:$LINENO: result: $ac_res" >&5 12150echo "${ECHO_T}$ac_res" >&6; } 12151if test `eval echo '${'$as_ac_var'}'` = yes; then 12152 cat >>confdefs.h <<_ACEOF 12153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12154_ACEOF 12155 12156fi 12157done 12158 12159 12160 12161{ echo "$as_me:$LINENO: checking tool compatibility" >&5 12162echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 12163 12164ICC=no 12165IXX=no 12166case $CC in 12167 icc*|icpc*) 12168 ICC=yes 12169 IXX=yes 12170 ;; 12171 *) 12172 ;; 12173esac 12174 12175if test "$GCC" != "yes" && test "$ICC" != "yes" 12176then 12177 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 12178echo "$as_me: error: gcc|icc required but not found" >&2;} 12179 { (exit 1); exit 1; }; } 12180fi 12181 12182if test "$GXX" != "yes" && test "$IXX" != "yes" 12183then 12184 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 12185echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 12186 { (exit 1); exit 1; }; } 12187fi 12188 12189if test "$GCC" = "yes" 12190then 12191 cat >conftest.$ac_ext <<_ACEOF 12192 12193 /* confdefs.h. */ 12194_ACEOF 12195cat confdefs.h >>conftest.$ac_ext 12196cat >>conftest.$ac_ext <<_ACEOF 12197/* end confdefs.h. */ 12198 12199 #if !defined(__GNUC__) || __GNUC__ < 3 12200 #error Unsupported GCC version 12201 #endif 12202 12203 12204_ACEOF 12205rm -f conftest.$ac_objext 12206if { (ac_try="$ac_compile" 12207case "(($ac_try" in 12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12209 *) ac_try_echo=$ac_try;; 12210esac 12211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12212 (eval "$ac_compile") 2>conftest.er1 12213 ac_status=$? 12214 grep -v '^ *+' conftest.er1 >conftest.err 12215 rm -f conftest.er1 12216 cat conftest.err >&5 12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12218 (exit $ac_status); } && 12219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12220 { (case "(($ac_try" in 12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12222 *) ac_try_echo=$ac_try;; 12223esac 12224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12225 (eval "$ac_try") 2>&5 12226 ac_status=$? 12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12228 (exit $ac_status); }; } && 12229 { ac_try='test -s conftest.$ac_objext' 12230 { (case "(($ac_try" in 12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12232 *) ac_try_echo=$ac_try;; 12233esac 12234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12235 (eval "$ac_try") 2>&5 12236 ac_status=$? 12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12238 (exit $ac_status); }; }; then 12239 : 12240else 12241 echo "$as_me: failed program was:" >&5 12242sed 's/^/| /' conftest.$ac_ext >&5 12243 12244 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 12245echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 12246 { (exit 1); exit 1; }; } 12247fi 12248 12249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12250fi 12251 12252if test -z "$llvm_cv_gnu_make_command" 12253then 12254 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 12255echo "$as_me: error: GNU Make required but not found" >&2;} 12256 { (exit 1); exit 1; }; } 12257fi 12258 12259{ echo "$as_me:$LINENO: result: ok" >&5 12260echo "${ECHO_T}ok" >&6; } 12261 12262{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 12263echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 12264NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 12265 12266NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 12267 12268NO_NESTED_ANON_TYPES=`$CXX -Werror -Wno-nested-anon-types -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-nested-anon-types` 12269 12270COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 12271 12272if test "$GXX" = "yes" 12273then 12274 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wno-maybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized` 12275 12276 if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized" 12277 then 12278 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized` 12279 12280 else 12281 gxx_version=`$CXX -dumpversion` 12282 gxx_version_major=`echo $gxx_version | cut -d'.' -f1` 12283 gxx_version_minor=`echo $gxx_version | cut -d'.' -f2` 12284 gxx_version_patch=`echo $gxx_version | cut -d'.' -f3` 12285 12286 if test "$gxx_version_major" -ge "4" \ 12287 && test "$gxx_version_minor" -ge "7"; then 12288 NO_UNINITIALIZED= 12289 else 12290 NO_MAYBE_UNINITIALIZED= 12291 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized` 12292 12293 fi 12294 fi 12295else 12296 NO_UNINITIALIZED= 12297 NO_MAYBE_UNINITIALIZED= 12298fi 12299{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5 12300echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; } 12301 12302 12303# Check whether --with-python was given. 12304if test "${with_python+set}" = set; then 12305 withval=$with_python; PYTHON="$withval" 12306fi 12307 12308 12309if test -n "$PYTHON" && test -x "$PYTHON" ; then 12310 { echo "$as_me:$LINENO: checking for python" >&5 12311echo $ECHO_N "checking for python... $ECHO_C" >&6; } 12312 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5 12313echo "${ECHO_T}user defined: $with_python" >&6; } 12314else 12315 if test -n "$PYTHON" ; then 12316 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5 12317echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;} 12318 fi 12319 12320 # Extract the first word of "python python2 python26", so it can be a program name with args. 12321set dummy python python2 python26; ac_word=$2 12322{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12324if test "${ac_cv_path_PYTHON+set}" = set; then 12325 echo $ECHO_N "(cached) $ECHO_C" >&6 12326else 12327 case $PYTHON in 12328 [\\/]* | ?:[\\/]*) 12329 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 12330 ;; 12331 *) 12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12333for as_dir in $PATH 12334do 12335 IFS=$as_save_IFS 12336 test -z "$as_dir" && as_dir=. 12337 for ac_exec_ext in '' $ac_executable_extensions; do 12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 12339 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 12340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12341 break 2 12342 fi 12343done 12344done 12345IFS=$as_save_IFS 12346 12347 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5 12348echo "${ECHO_T}not found" >&6; } 12349 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5 12350echo "$as_me: error: could not find python 2.5 or higher" >&2;} 12351 { (exit 1); exit 1; }; }" 12352 ;; 12353esac 12354fi 12355PYTHON=$ac_cv_path_PYTHON 12356if test -n "$PYTHON"; then 12357 { echo "$as_me:$LINENO: result: $PYTHON" >&5 12358echo "${ECHO_T}$PYTHON" >&6; } 12359else 12360 { echo "$as_me:$LINENO: result: no" >&5 12361echo "${ECHO_T}no" >&6; } 12362fi 12363 12364 12365fi 12366 12367{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5 12368echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; } 12369ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'` 12370ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1` 12371ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2` 12372ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3` 12373if test "$ac_python_version_major" -eq "2" \ 12374 && test "$ac_python_version_minor" -ge "5" ; then 12375 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5 12376echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; } 12377else 12378 { echo "$as_me:$LINENO: result: not found" >&5 12379echo "${ECHO_T}not found" >&6; } 12380 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5 12381See \`config.log' for more details." >&5 12382echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5 12383See \`config.log' for more details." >&2;} 12384 { (exit 1); exit 1; }; } 12385fi 12386 12387 12388 12389{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 12390echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 12391if test "${ac_cv_lib_m_sin+set}" = set; then 12392 echo $ECHO_N "(cached) $ECHO_C" >&6 12393else 12394 ac_check_lib_save_LIBS=$LIBS 12395LIBS="-lm $LIBS" 12396cat >conftest.$ac_ext <<_ACEOF 12397/* confdefs.h. */ 12398_ACEOF 12399cat confdefs.h >>conftest.$ac_ext 12400cat >>conftest.$ac_ext <<_ACEOF 12401/* end confdefs.h. */ 12402 12403/* Override any GCC internal prototype to avoid an error. 12404 Use char because int might match the return type of a GCC 12405 builtin and then its argument prototype would still apply. */ 12406#ifdef __cplusplus 12407extern "C" 12408#endif 12409char sin (); 12410int 12411main () 12412{ 12413return sin (); 12414 ; 12415 return 0; 12416} 12417_ACEOF 12418rm -f conftest.$ac_objext conftest$ac_exeext 12419if { (ac_try="$ac_link" 12420case "(($ac_try" in 12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12422 *) ac_try_echo=$ac_try;; 12423esac 12424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12425 (eval "$ac_link") 2>conftest.er1 12426 ac_status=$? 12427 grep -v '^ *+' conftest.er1 >conftest.err 12428 rm -f conftest.er1 12429 cat conftest.err >&5 12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12431 (exit $ac_status); } && 12432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12433 { (case "(($ac_try" in 12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12435 *) ac_try_echo=$ac_try;; 12436esac 12437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12438 (eval "$ac_try") 2>&5 12439 ac_status=$? 12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12441 (exit $ac_status); }; } && 12442 { ac_try='test -s conftest$ac_exeext' 12443 { (case "(($ac_try" in 12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12445 *) ac_try_echo=$ac_try;; 12446esac 12447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12448 (eval "$ac_try") 2>&5 12449 ac_status=$? 12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12451 (exit $ac_status); }; }; then 12452 ac_cv_lib_m_sin=yes 12453else 12454 echo "$as_me: failed program was:" >&5 12455sed 's/^/| /' conftest.$ac_ext >&5 12456 12457 ac_cv_lib_m_sin=no 12458fi 12459 12460rm -f core conftest.err conftest.$ac_objext \ 12461 conftest$ac_exeext conftest.$ac_ext 12462LIBS=$ac_check_lib_save_LIBS 12463fi 12464{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 12465echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 12466if test $ac_cv_lib_m_sin = yes; then 12467 cat >>confdefs.h <<_ACEOF 12468#define HAVE_LIBM 1 12469_ACEOF 12470 12471 LIBS="-lm $LIBS" 12472 12473fi 12474 12475if test "$llvm_cv_os_type" = "MingW" ; then 12476 12477{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 12478echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 12479if test "${ac_cv_lib_imagehlp_main+set}" = set; then 12480 echo $ECHO_N "(cached) $ECHO_C" >&6 12481else 12482 ac_check_lib_save_LIBS=$LIBS 12483LIBS="-limagehlp $LIBS" 12484cat >conftest.$ac_ext <<_ACEOF 12485/* confdefs.h. */ 12486_ACEOF 12487cat confdefs.h >>conftest.$ac_ext 12488cat >>conftest.$ac_ext <<_ACEOF 12489/* end confdefs.h. */ 12490 12491 12492int 12493main () 12494{ 12495return main (); 12496 ; 12497 return 0; 12498} 12499_ACEOF 12500rm -f conftest.$ac_objext conftest$ac_exeext 12501if { (ac_try="$ac_link" 12502case "(($ac_try" in 12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12504 *) ac_try_echo=$ac_try;; 12505esac 12506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12507 (eval "$ac_link") 2>conftest.er1 12508 ac_status=$? 12509 grep -v '^ *+' conftest.er1 >conftest.err 12510 rm -f conftest.er1 12511 cat conftest.err >&5 12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12513 (exit $ac_status); } && 12514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12515 { (case "(($ac_try" in 12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12517 *) ac_try_echo=$ac_try;; 12518esac 12519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12520 (eval "$ac_try") 2>&5 12521 ac_status=$? 12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12523 (exit $ac_status); }; } && 12524 { ac_try='test -s conftest$ac_exeext' 12525 { (case "(($ac_try" in 12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12527 *) ac_try_echo=$ac_try;; 12528esac 12529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12530 (eval "$ac_try") 2>&5 12531 ac_status=$? 12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12533 (exit $ac_status); }; }; then 12534 ac_cv_lib_imagehlp_main=yes 12535else 12536 echo "$as_me: failed program was:" >&5 12537sed 's/^/| /' conftest.$ac_ext >&5 12538 12539 ac_cv_lib_imagehlp_main=no 12540fi 12541 12542rm -f core conftest.err conftest.$ac_objext \ 12543 conftest$ac_exeext conftest.$ac_ext 12544LIBS=$ac_check_lib_save_LIBS 12545fi 12546{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 12547echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 12548if test $ac_cv_lib_imagehlp_main = yes; then 12549 cat >>confdefs.h <<_ACEOF 12550#define HAVE_LIBIMAGEHLP 1 12551_ACEOF 12552 12553 LIBS="-limagehlp $LIBS" 12554 12555fi 12556 12557 12558{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 12559echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 12560if test "${ac_cv_lib_psapi_main+set}" = set; then 12561 echo $ECHO_N "(cached) $ECHO_C" >&6 12562else 12563 ac_check_lib_save_LIBS=$LIBS 12564LIBS="-lpsapi $LIBS" 12565cat >conftest.$ac_ext <<_ACEOF 12566/* confdefs.h. */ 12567_ACEOF 12568cat confdefs.h >>conftest.$ac_ext 12569cat >>conftest.$ac_ext <<_ACEOF 12570/* end confdefs.h. */ 12571 12572 12573int 12574main () 12575{ 12576return main (); 12577 ; 12578 return 0; 12579} 12580_ACEOF 12581rm -f conftest.$ac_objext conftest$ac_exeext 12582if { (ac_try="$ac_link" 12583case "(($ac_try" in 12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12585 *) ac_try_echo=$ac_try;; 12586esac 12587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12588 (eval "$ac_link") 2>conftest.er1 12589 ac_status=$? 12590 grep -v '^ *+' conftest.er1 >conftest.err 12591 rm -f conftest.er1 12592 cat conftest.err >&5 12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12594 (exit $ac_status); } && 12595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12596 { (case "(($ac_try" in 12597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12598 *) ac_try_echo=$ac_try;; 12599esac 12600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12601 (eval "$ac_try") 2>&5 12602 ac_status=$? 12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12604 (exit $ac_status); }; } && 12605 { ac_try='test -s conftest$ac_exeext' 12606 { (case "(($ac_try" in 12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12608 *) ac_try_echo=$ac_try;; 12609esac 12610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12611 (eval "$ac_try") 2>&5 12612 ac_status=$? 12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12614 (exit $ac_status); }; }; then 12615 ac_cv_lib_psapi_main=yes 12616else 12617 echo "$as_me: failed program was:" >&5 12618sed 's/^/| /' conftest.$ac_ext >&5 12619 12620 ac_cv_lib_psapi_main=no 12621fi 12622 12623rm -f core conftest.err conftest.$ac_objext \ 12624 conftest$ac_exeext conftest.$ac_ext 12625LIBS=$ac_check_lib_save_LIBS 12626fi 12627{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12628echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12629if test $ac_cv_lib_psapi_main = yes; then 12630 cat >>confdefs.h <<_ACEOF 12631#define HAVE_LIBPSAPI 1 12632_ACEOF 12633 12634 LIBS="-lpsapi $LIBS" 12635 12636fi 12637 12638fi 12639 12640{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12641echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12642if test "${ac_cv_search_dlopen+set}" = set; then 12643 echo $ECHO_N "(cached) $ECHO_C" >&6 12644else 12645 ac_func_search_save_LIBS=$LIBS 12646cat >conftest.$ac_ext <<_ACEOF 12647/* confdefs.h. */ 12648_ACEOF 12649cat confdefs.h >>conftest.$ac_ext 12650cat >>conftest.$ac_ext <<_ACEOF 12651/* end confdefs.h. */ 12652 12653/* Override any GCC internal prototype to avoid an error. 12654 Use char because int might match the return type of a GCC 12655 builtin and then its argument prototype would still apply. */ 12656#ifdef __cplusplus 12657extern "C" 12658#endif 12659char dlopen (); 12660int 12661main () 12662{ 12663return dlopen (); 12664 ; 12665 return 0; 12666} 12667_ACEOF 12668for ac_lib in '' dl; do 12669 if test -z "$ac_lib"; then 12670 ac_res="none required" 12671 else 12672 ac_res=-l$ac_lib 12673 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12674 fi 12675 rm -f conftest.$ac_objext conftest$ac_exeext 12676if { (ac_try="$ac_link" 12677case "(($ac_try" in 12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12679 *) ac_try_echo=$ac_try;; 12680esac 12681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12682 (eval "$ac_link") 2>conftest.er1 12683 ac_status=$? 12684 grep -v '^ *+' conftest.er1 >conftest.err 12685 rm -f conftest.er1 12686 cat conftest.err >&5 12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12688 (exit $ac_status); } && 12689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12690 { (case "(($ac_try" in 12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12692 *) ac_try_echo=$ac_try;; 12693esac 12694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12695 (eval "$ac_try") 2>&5 12696 ac_status=$? 12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12698 (exit $ac_status); }; } && 12699 { ac_try='test -s conftest$ac_exeext' 12700 { (case "(($ac_try" in 12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12702 *) ac_try_echo=$ac_try;; 12703esac 12704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12705 (eval "$ac_try") 2>&5 12706 ac_status=$? 12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12708 (exit $ac_status); }; }; then 12709 ac_cv_search_dlopen=$ac_res 12710else 12711 echo "$as_me: failed program was:" >&5 12712sed 's/^/| /' conftest.$ac_ext >&5 12713 12714 12715fi 12716 12717rm -f core conftest.err conftest.$ac_objext \ 12718 conftest$ac_exeext 12719 if test "${ac_cv_search_dlopen+set}" = set; then 12720 break 12721fi 12722done 12723if test "${ac_cv_search_dlopen+set}" = set; then 12724 : 12725else 12726 ac_cv_search_dlopen=no 12727fi 12728rm conftest.$ac_ext 12729LIBS=$ac_func_search_save_LIBS 12730fi 12731{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12732echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12733ac_res=$ac_cv_search_dlopen 12734if test "$ac_res" != no; then 12735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12736 12737cat >>confdefs.h <<\_ACEOF 12738#define HAVE_DLOPEN 1 12739_ACEOF 12740 12741else 12742 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12743echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12744fi 12745 12746 12747{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 12748echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; } 12749if test "${ac_cv_search_clock_gettime+set}" = set; then 12750 echo $ECHO_N "(cached) $ECHO_C" >&6 12751else 12752 ac_func_search_save_LIBS=$LIBS 12753cat >conftest.$ac_ext <<_ACEOF 12754/* confdefs.h. */ 12755_ACEOF 12756cat confdefs.h >>conftest.$ac_ext 12757cat >>conftest.$ac_ext <<_ACEOF 12758/* end confdefs.h. */ 12759 12760/* Override any GCC internal prototype to avoid an error. 12761 Use char because int might match the return type of a GCC 12762 builtin and then its argument prototype would still apply. */ 12763#ifdef __cplusplus 12764extern "C" 12765#endif 12766char clock_gettime (); 12767int 12768main () 12769{ 12770return clock_gettime (); 12771 ; 12772 return 0; 12773} 12774_ACEOF 12775for ac_lib in '' rt; do 12776 if test -z "$ac_lib"; then 12777 ac_res="none required" 12778 else 12779 ac_res=-l$ac_lib 12780 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12781 fi 12782 rm -f conftest.$ac_objext conftest$ac_exeext 12783if { (ac_try="$ac_link" 12784case "(($ac_try" in 12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12786 *) ac_try_echo=$ac_try;; 12787esac 12788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12789 (eval "$ac_link") 2>conftest.er1 12790 ac_status=$? 12791 grep -v '^ *+' conftest.er1 >conftest.err 12792 rm -f conftest.er1 12793 cat conftest.err >&5 12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12795 (exit $ac_status); } && 12796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12797 { (case "(($ac_try" in 12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12799 *) ac_try_echo=$ac_try;; 12800esac 12801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12802 (eval "$ac_try") 2>&5 12803 ac_status=$? 12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12805 (exit $ac_status); }; } && 12806 { ac_try='test -s conftest$ac_exeext' 12807 { (case "(($ac_try" in 12808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12809 *) ac_try_echo=$ac_try;; 12810esac 12811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12812 (eval "$ac_try") 2>&5 12813 ac_status=$? 12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12815 (exit $ac_status); }; }; then 12816 ac_cv_search_clock_gettime=$ac_res 12817else 12818 echo "$as_me: failed program was:" >&5 12819sed 's/^/| /' conftest.$ac_ext >&5 12820 12821 12822fi 12823 12824rm -f core conftest.err conftest.$ac_objext \ 12825 conftest$ac_exeext 12826 if test "${ac_cv_search_clock_gettime+set}" = set; then 12827 break 12828fi 12829done 12830if test "${ac_cv_search_clock_gettime+set}" = set; then 12831 : 12832else 12833 ac_cv_search_clock_gettime=no 12834fi 12835rm conftest.$ac_ext 12836LIBS=$ac_func_search_save_LIBS 12837fi 12838{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 12839echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; } 12840ac_res=$ac_cv_search_clock_gettime 12841if test "$ac_res" != no; then 12842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12843 12844fi 12845 12846 12847if test "$llvm_cv_enable_libffi" = "yes" ; then 12848 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12849echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12850if test "${ac_cv_search_ffi_call+set}" = set; then 12851 echo $ECHO_N "(cached) $ECHO_C" >&6 12852else 12853 ac_func_search_save_LIBS=$LIBS 12854cat >conftest.$ac_ext <<_ACEOF 12855/* confdefs.h. */ 12856_ACEOF 12857cat confdefs.h >>conftest.$ac_ext 12858cat >>conftest.$ac_ext <<_ACEOF 12859/* end confdefs.h. */ 12860 12861/* Override any GCC internal prototype to avoid an error. 12862 Use char because int might match the return type of a GCC 12863 builtin and then its argument prototype would still apply. */ 12864#ifdef __cplusplus 12865extern "C" 12866#endif 12867char ffi_call (); 12868int 12869main () 12870{ 12871return ffi_call (); 12872 ; 12873 return 0; 12874} 12875_ACEOF 12876for ac_lib in '' ffi; do 12877 if test -z "$ac_lib"; then 12878 ac_res="none required" 12879 else 12880 ac_res=-l$ac_lib 12881 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12882 fi 12883 rm -f conftest.$ac_objext conftest$ac_exeext 12884if { (ac_try="$ac_link" 12885case "(($ac_try" in 12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12887 *) ac_try_echo=$ac_try;; 12888esac 12889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12890 (eval "$ac_link") 2>conftest.er1 12891 ac_status=$? 12892 grep -v '^ *+' conftest.er1 >conftest.err 12893 rm -f conftest.er1 12894 cat conftest.err >&5 12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12896 (exit $ac_status); } && 12897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12898 { (case "(($ac_try" in 12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12900 *) ac_try_echo=$ac_try;; 12901esac 12902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12903 (eval "$ac_try") 2>&5 12904 ac_status=$? 12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12906 (exit $ac_status); }; } && 12907 { ac_try='test -s conftest$ac_exeext' 12908 { (case "(($ac_try" in 12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12910 *) ac_try_echo=$ac_try;; 12911esac 12912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12913 (eval "$ac_try") 2>&5 12914 ac_status=$? 12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12916 (exit $ac_status); }; }; then 12917 ac_cv_search_ffi_call=$ac_res 12918else 12919 echo "$as_me: failed program was:" >&5 12920sed 's/^/| /' conftest.$ac_ext >&5 12921 12922 12923fi 12924 12925rm -f core conftest.err conftest.$ac_objext \ 12926 conftest$ac_exeext 12927 if test "${ac_cv_search_ffi_call+set}" = set; then 12928 break 12929fi 12930done 12931if test "${ac_cv_search_ffi_call+set}" = set; then 12932 : 12933else 12934 ac_cv_search_ffi_call=no 12935fi 12936rm conftest.$ac_ext 12937LIBS=$ac_func_search_save_LIBS 12938fi 12939{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12940echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12941ac_res=$ac_cv_search_ffi_call 12942if test "$ac_res" != no; then 12943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12944 12945cat >>confdefs.h <<\_ACEOF 12946#define HAVE_FFI_CALL 1 12947_ACEOF 12948 12949else 12950 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12951echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12952 { (exit 1); exit 1; }; } 12953fi 12954 12955fi 12956 12957{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12958echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12959if test "${ac_cv_search_mallinfo+set}" = set; then 12960 echo $ECHO_N "(cached) $ECHO_C" >&6 12961else 12962 ac_func_search_save_LIBS=$LIBS 12963cat >conftest.$ac_ext <<_ACEOF 12964/* confdefs.h. */ 12965_ACEOF 12966cat confdefs.h >>conftest.$ac_ext 12967cat >>conftest.$ac_ext <<_ACEOF 12968/* end confdefs.h. */ 12969 12970/* Override any GCC internal prototype to avoid an error. 12971 Use char because int might match the return type of a GCC 12972 builtin and then its argument prototype would still apply. */ 12973#ifdef __cplusplus 12974extern "C" 12975#endif 12976char mallinfo (); 12977int 12978main () 12979{ 12980return mallinfo (); 12981 ; 12982 return 0; 12983} 12984_ACEOF 12985for ac_lib in '' malloc; do 12986 if test -z "$ac_lib"; then 12987 ac_res="none required" 12988 else 12989 ac_res=-l$ac_lib 12990 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12991 fi 12992 rm -f conftest.$ac_objext conftest$ac_exeext 12993if { (ac_try="$ac_link" 12994case "(($ac_try" in 12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12996 *) ac_try_echo=$ac_try;; 12997esac 12998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12999 (eval "$ac_link") 2>conftest.er1 13000 ac_status=$? 13001 grep -v '^ *+' conftest.er1 >conftest.err 13002 rm -f conftest.er1 13003 cat conftest.err >&5 13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13005 (exit $ac_status); } && 13006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13007 { (case "(($ac_try" in 13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13009 *) ac_try_echo=$ac_try;; 13010esac 13011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13012 (eval "$ac_try") 2>&5 13013 ac_status=$? 13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13015 (exit $ac_status); }; } && 13016 { ac_try='test -s conftest$ac_exeext' 13017 { (case "(($ac_try" in 13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13019 *) ac_try_echo=$ac_try;; 13020esac 13021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13022 (eval "$ac_try") 2>&5 13023 ac_status=$? 13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13025 (exit $ac_status); }; }; then 13026 ac_cv_search_mallinfo=$ac_res 13027else 13028 echo "$as_me: failed program was:" >&5 13029sed 's/^/| /' conftest.$ac_ext >&5 13030 13031 13032fi 13033 13034rm -f core conftest.err conftest.$ac_objext \ 13035 conftest$ac_exeext 13036 if test "${ac_cv_search_mallinfo+set}" = set; then 13037 break 13038fi 13039done 13040if test "${ac_cv_search_mallinfo+set}" = set; then 13041 : 13042else 13043 ac_cv_search_mallinfo=no 13044fi 13045rm conftest.$ac_ext 13046LIBS=$ac_func_search_save_LIBS 13047fi 13048{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 13049echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 13050ac_res=$ac_cv_search_mallinfo 13051if test "$ac_res" != no; then 13052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13053 13054cat >>confdefs.h <<\_ACEOF 13055#define HAVE_MALLINFO 1 13056_ACEOF 13057 13058fi 13059 13060 13061if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 13062 13063{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 13064echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 13065if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 13066 echo $ECHO_N "(cached) $ECHO_C" >&6 13067else 13068 ac_check_lib_save_LIBS=$LIBS 13069LIBS="-lpthread $LIBS" 13070cat >conftest.$ac_ext <<_ACEOF 13071/* confdefs.h. */ 13072_ACEOF 13073cat confdefs.h >>conftest.$ac_ext 13074cat >>conftest.$ac_ext <<_ACEOF 13075/* end confdefs.h. */ 13076 13077/* Override any GCC internal prototype to avoid an error. 13078 Use char because int might match the return type of a GCC 13079 builtin and then its argument prototype would still apply. */ 13080#ifdef __cplusplus 13081extern "C" 13082#endif 13083char pthread_mutex_init (); 13084int 13085main () 13086{ 13087return pthread_mutex_init (); 13088 ; 13089 return 0; 13090} 13091_ACEOF 13092rm -f conftest.$ac_objext conftest$ac_exeext 13093if { (ac_try="$ac_link" 13094case "(($ac_try" in 13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13096 *) ac_try_echo=$ac_try;; 13097esac 13098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13099 (eval "$ac_link") 2>conftest.er1 13100 ac_status=$? 13101 grep -v '^ *+' conftest.er1 >conftest.err 13102 rm -f conftest.er1 13103 cat conftest.err >&5 13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13105 (exit $ac_status); } && 13106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13107 { (case "(($ac_try" in 13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13109 *) ac_try_echo=$ac_try;; 13110esac 13111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13112 (eval "$ac_try") 2>&5 13113 ac_status=$? 13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13115 (exit $ac_status); }; } && 13116 { ac_try='test -s conftest$ac_exeext' 13117 { (case "(($ac_try" in 13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13119 *) ac_try_echo=$ac_try;; 13120esac 13121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13122 (eval "$ac_try") 2>&5 13123 ac_status=$? 13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13125 (exit $ac_status); }; }; then 13126 ac_cv_lib_pthread_pthread_mutex_init=yes 13127else 13128 echo "$as_me: failed program was:" >&5 13129sed 's/^/| /' conftest.$ac_ext >&5 13130 13131 ac_cv_lib_pthread_pthread_mutex_init=no 13132fi 13133 13134rm -f core conftest.err conftest.$ac_objext \ 13135 conftest$ac_exeext conftest.$ac_ext 13136LIBS=$ac_check_lib_save_LIBS 13137fi 13138{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 13139echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 13140if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 13141 cat >>confdefs.h <<_ACEOF 13142#define HAVE_LIBPTHREAD 1 13143_ACEOF 13144 13145 LIBS="-lpthread $LIBS" 13146 13147fi 13148 13149 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 13150echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 13151if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13152 echo $ECHO_N "(cached) $ECHO_C" >&6 13153else 13154 ac_func_search_save_LIBS=$LIBS 13155cat >conftest.$ac_ext <<_ACEOF 13156/* confdefs.h. */ 13157_ACEOF 13158cat confdefs.h >>conftest.$ac_ext 13159cat >>conftest.$ac_ext <<_ACEOF 13160/* end confdefs.h. */ 13161 13162/* Override any GCC internal prototype to avoid an error. 13163 Use char because int might match the return type of a GCC 13164 builtin and then its argument prototype would still apply. */ 13165#ifdef __cplusplus 13166extern "C" 13167#endif 13168char pthread_mutex_lock (); 13169int 13170main () 13171{ 13172return pthread_mutex_lock (); 13173 ; 13174 return 0; 13175} 13176_ACEOF 13177for ac_lib in '' pthread; do 13178 if test -z "$ac_lib"; then 13179 ac_res="none required" 13180 else 13181 ac_res=-l$ac_lib 13182 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13183 fi 13184 rm -f conftest.$ac_objext conftest$ac_exeext 13185if { (ac_try="$ac_link" 13186case "(($ac_try" in 13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13188 *) ac_try_echo=$ac_try;; 13189esac 13190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13191 (eval "$ac_link") 2>conftest.er1 13192 ac_status=$? 13193 grep -v '^ *+' conftest.er1 >conftest.err 13194 rm -f conftest.er1 13195 cat conftest.err >&5 13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13197 (exit $ac_status); } && 13198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13199 { (case "(($ac_try" in 13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13201 *) ac_try_echo=$ac_try;; 13202esac 13203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13204 (eval "$ac_try") 2>&5 13205 ac_status=$? 13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13207 (exit $ac_status); }; } && 13208 { ac_try='test -s conftest$ac_exeext' 13209 { (case "(($ac_try" in 13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13211 *) ac_try_echo=$ac_try;; 13212esac 13213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13214 (eval "$ac_try") 2>&5 13215 ac_status=$? 13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13217 (exit $ac_status); }; }; then 13218 ac_cv_search_pthread_mutex_lock=$ac_res 13219else 13220 echo "$as_me: failed program was:" >&5 13221sed 's/^/| /' conftest.$ac_ext >&5 13222 13223 13224fi 13225 13226rm -f core conftest.err conftest.$ac_objext \ 13227 conftest$ac_exeext 13228 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13229 break 13230fi 13231done 13232if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13233 : 13234else 13235 ac_cv_search_pthread_mutex_lock=no 13236fi 13237rm conftest.$ac_ext 13238LIBS=$ac_func_search_save_LIBS 13239fi 13240{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 13241echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 13242ac_res=$ac_cv_search_pthread_mutex_lock 13243if test "$ac_res" != no; then 13244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13245 13246cat >>confdefs.h <<\_ACEOF 13247#define HAVE_PTHREAD_MUTEX_LOCK 1 13248_ACEOF 13249 13250fi 13251 13252 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 13253echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 13254if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13255 echo $ECHO_N "(cached) $ECHO_C" >&6 13256else 13257 ac_func_search_save_LIBS=$LIBS 13258cat >conftest.$ac_ext <<_ACEOF 13259/* confdefs.h. */ 13260_ACEOF 13261cat confdefs.h >>conftest.$ac_ext 13262cat >>conftest.$ac_ext <<_ACEOF 13263/* end confdefs.h. */ 13264 13265/* Override any GCC internal prototype to avoid an error. 13266 Use char because int might match the return type of a GCC 13267 builtin and then its argument prototype would still apply. */ 13268#ifdef __cplusplus 13269extern "C" 13270#endif 13271char pthread_rwlock_init (); 13272int 13273main () 13274{ 13275return pthread_rwlock_init (); 13276 ; 13277 return 0; 13278} 13279_ACEOF 13280for ac_lib in '' pthread; do 13281 if test -z "$ac_lib"; then 13282 ac_res="none required" 13283 else 13284 ac_res=-l$ac_lib 13285 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13286 fi 13287 rm -f conftest.$ac_objext conftest$ac_exeext 13288if { (ac_try="$ac_link" 13289case "(($ac_try" in 13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13291 *) ac_try_echo=$ac_try;; 13292esac 13293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13294 (eval "$ac_link") 2>conftest.er1 13295 ac_status=$? 13296 grep -v '^ *+' conftest.er1 >conftest.err 13297 rm -f conftest.er1 13298 cat conftest.err >&5 13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13300 (exit $ac_status); } && 13301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13302 { (case "(($ac_try" in 13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13304 *) ac_try_echo=$ac_try;; 13305esac 13306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13307 (eval "$ac_try") 2>&5 13308 ac_status=$? 13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13310 (exit $ac_status); }; } && 13311 { ac_try='test -s conftest$ac_exeext' 13312 { (case "(($ac_try" in 13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13314 *) ac_try_echo=$ac_try;; 13315esac 13316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13317 (eval "$ac_try") 2>&5 13318 ac_status=$? 13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13320 (exit $ac_status); }; }; then 13321 ac_cv_search_pthread_rwlock_init=$ac_res 13322else 13323 echo "$as_me: failed program was:" >&5 13324sed 's/^/| /' conftest.$ac_ext >&5 13325 13326 13327fi 13328 13329rm -f core conftest.err conftest.$ac_objext \ 13330 conftest$ac_exeext 13331 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13332 break 13333fi 13334done 13335if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13336 : 13337else 13338 ac_cv_search_pthread_rwlock_init=no 13339fi 13340rm conftest.$ac_ext 13341LIBS=$ac_func_search_save_LIBS 13342fi 13343{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 13344echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 13345ac_res=$ac_cv_search_pthread_rwlock_init 13346if test "$ac_res" != no; then 13347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13348 13349cat >>confdefs.h <<\_ACEOF 13350#define HAVE_PTHREAD_RWLOCK_INIT 1 13351_ACEOF 13352 13353fi 13354 13355 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 13356echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 13357if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13358 echo $ECHO_N "(cached) $ECHO_C" >&6 13359else 13360 ac_func_search_save_LIBS=$LIBS 13361cat >conftest.$ac_ext <<_ACEOF 13362/* confdefs.h. */ 13363_ACEOF 13364cat confdefs.h >>conftest.$ac_ext 13365cat >>conftest.$ac_ext <<_ACEOF 13366/* end confdefs.h. */ 13367 13368/* Override any GCC internal prototype to avoid an error. 13369 Use char because int might match the return type of a GCC 13370 builtin and then its argument prototype would still apply. */ 13371#ifdef __cplusplus 13372extern "C" 13373#endif 13374char pthread_getspecific (); 13375int 13376main () 13377{ 13378return pthread_getspecific (); 13379 ; 13380 return 0; 13381} 13382_ACEOF 13383for ac_lib in '' pthread; do 13384 if test -z "$ac_lib"; then 13385 ac_res="none required" 13386 else 13387 ac_res=-l$ac_lib 13388 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13389 fi 13390 rm -f conftest.$ac_objext conftest$ac_exeext 13391if { (ac_try="$ac_link" 13392case "(($ac_try" in 13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13394 *) ac_try_echo=$ac_try;; 13395esac 13396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13397 (eval "$ac_link") 2>conftest.er1 13398 ac_status=$? 13399 grep -v '^ *+' conftest.er1 >conftest.err 13400 rm -f conftest.er1 13401 cat conftest.err >&5 13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13403 (exit $ac_status); } && 13404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13405 { (case "(($ac_try" in 13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13407 *) ac_try_echo=$ac_try;; 13408esac 13409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13410 (eval "$ac_try") 2>&5 13411 ac_status=$? 13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13413 (exit $ac_status); }; } && 13414 { ac_try='test -s conftest$ac_exeext' 13415 { (case "(($ac_try" in 13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13417 *) ac_try_echo=$ac_try;; 13418esac 13419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13420 (eval "$ac_try") 2>&5 13421 ac_status=$? 13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13423 (exit $ac_status); }; }; then 13424 ac_cv_search_pthread_getspecific=$ac_res 13425else 13426 echo "$as_me: failed program was:" >&5 13427sed 's/^/| /' conftest.$ac_ext >&5 13428 13429 13430fi 13431 13432rm -f core conftest.err conftest.$ac_objext \ 13433 conftest$ac_exeext 13434 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13435 break 13436fi 13437done 13438if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13439 : 13440else 13441 ac_cv_search_pthread_getspecific=no 13442fi 13443rm conftest.$ac_ext 13444LIBS=$ac_func_search_save_LIBS 13445fi 13446{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 13447echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 13448ac_res=$ac_cv_search_pthread_getspecific 13449if test "$ac_res" != no; then 13450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13451 13452cat >>confdefs.h <<\_ACEOF 13453#define HAVE_PTHREAD_GETSPECIFIC 1 13454_ACEOF 13455 13456fi 13457 13458fi 13459 13460 13461# Check whether --with-udis86 was given. 13462if test "${with_udis86+set}" = set; then 13463 withval=$with_udis86; 13464 USE_UDIS86=1 13465 13466 case "$withval" in 13467 /usr/lib|yes) ;; 13468 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13469 esac 13470 13471{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 13472echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 13473if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 13474 echo $ECHO_N "(cached) $ECHO_C" >&6 13475else 13476 ac_check_lib_save_LIBS=$LIBS 13477LIBS="-ludis86 $LIBS" 13478cat >conftest.$ac_ext <<_ACEOF 13479/* confdefs.h. */ 13480_ACEOF 13481cat confdefs.h >>conftest.$ac_ext 13482cat >>conftest.$ac_ext <<_ACEOF 13483/* end confdefs.h. */ 13484 13485/* Override any GCC internal prototype to avoid an error. 13486 Use char because int might match the return type of a GCC 13487 builtin and then its argument prototype would still apply. */ 13488#ifdef __cplusplus 13489extern "C" 13490#endif 13491char ud_init (); 13492int 13493main () 13494{ 13495return ud_init (); 13496 ; 13497 return 0; 13498} 13499_ACEOF 13500rm -f conftest.$ac_objext conftest$ac_exeext 13501if { (ac_try="$ac_link" 13502case "(($ac_try" in 13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13504 *) ac_try_echo=$ac_try;; 13505esac 13506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13507 (eval "$ac_link") 2>conftest.er1 13508 ac_status=$? 13509 grep -v '^ *+' conftest.er1 >conftest.err 13510 rm -f conftest.er1 13511 cat conftest.err >&5 13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13513 (exit $ac_status); } && 13514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13515 { (case "(($ac_try" in 13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13517 *) ac_try_echo=$ac_try;; 13518esac 13519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13520 (eval "$ac_try") 2>&5 13521 ac_status=$? 13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13523 (exit $ac_status); }; } && 13524 { ac_try='test -s conftest$ac_exeext' 13525 { (case "(($ac_try" in 13526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13527 *) ac_try_echo=$ac_try;; 13528esac 13529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13530 (eval "$ac_try") 2>&5 13531 ac_status=$? 13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13533 (exit $ac_status); }; }; then 13534 ac_cv_lib_udis86_ud_init=yes 13535else 13536 echo "$as_me: failed program was:" >&5 13537sed 's/^/| /' conftest.$ac_ext >&5 13538 13539 ac_cv_lib_udis86_ud_init=no 13540fi 13541 13542rm -f core conftest.err conftest.$ac_objext \ 13543 conftest$ac_exeext conftest.$ac_ext 13544LIBS=$ac_check_lib_save_LIBS 13545fi 13546{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13547echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13548if test $ac_cv_lib_udis86_ud_init = yes; then 13549 cat >>confdefs.h <<_ACEOF 13550#define HAVE_LIBUDIS86 1 13551_ACEOF 13552 13553 LIBS="-ludis86 $LIBS" 13554 13555else 13556 13557 echo "Error! You need to have libudis86 around." 13558 exit -1 13559 13560fi 13561 13562 13563else 13564 USE_UDIS86=0 13565 13566fi 13567 13568 13569cat >>confdefs.h <<_ACEOF 13570#define USE_UDIS86 $USE_UDIS86 13571_ACEOF 13572 13573 13574 13575# Check whether --with-oprofile was given. 13576if test "${with_oprofile+set}" = set; then 13577 withval=$with_oprofile; 13578 USE_OPROFILE=1 13579 13580 case "$withval" in 13581 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13582 no) llvm_cv_oppath= 13583 USE_OPROFILE=0 13584 ;; 13585 *) llvm_cv_oppath="${withval}/lib/oprofile" 13586 CPPFLAGS="-I${withval}/include";; 13587 esac 13588 case $llvm_cv_os_type in 13589 Linux) 13590 if test -n "$llvm_cv_oppath" ; then 13591 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13592 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13593echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13594if test "${ac_cv_search_bfd_init+set}" = set; then 13595 echo $ECHO_N "(cached) $ECHO_C" >&6 13596else 13597 ac_func_search_save_LIBS=$LIBS 13598cat >conftest.$ac_ext <<_ACEOF 13599/* confdefs.h. */ 13600_ACEOF 13601cat confdefs.h >>conftest.$ac_ext 13602cat >>conftest.$ac_ext <<_ACEOF 13603/* end confdefs.h. */ 13604 13605/* Override any GCC internal prototype to avoid an error. 13606 Use char because int might match the return type of a GCC 13607 builtin and then its argument prototype would still apply. */ 13608#ifdef __cplusplus 13609extern "C" 13610#endif 13611char bfd_init (); 13612int 13613main () 13614{ 13615return bfd_init (); 13616 ; 13617 return 0; 13618} 13619_ACEOF 13620for ac_lib in '' bfd; do 13621 if test -z "$ac_lib"; then 13622 ac_res="none required" 13623 else 13624 ac_res=-l$ac_lib 13625 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13626 fi 13627 rm -f conftest.$ac_objext conftest$ac_exeext 13628if { (ac_try="$ac_link" 13629case "(($ac_try" in 13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13631 *) ac_try_echo=$ac_try;; 13632esac 13633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13634 (eval "$ac_link") 2>conftest.er1 13635 ac_status=$? 13636 grep -v '^ *+' conftest.er1 >conftest.err 13637 rm -f conftest.er1 13638 cat conftest.err >&5 13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13640 (exit $ac_status); } && 13641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13642 { (case "(($ac_try" in 13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13644 *) ac_try_echo=$ac_try;; 13645esac 13646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13647 (eval "$ac_try") 2>&5 13648 ac_status=$? 13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13650 (exit $ac_status); }; } && 13651 { ac_try='test -s conftest$ac_exeext' 13652 { (case "(($ac_try" in 13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13654 *) ac_try_echo=$ac_try;; 13655esac 13656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13657 (eval "$ac_try") 2>&5 13658 ac_status=$? 13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13660 (exit $ac_status); }; }; then 13661 ac_cv_search_bfd_init=$ac_res 13662else 13663 echo "$as_me: failed program was:" >&5 13664sed 's/^/| /' conftest.$ac_ext >&5 13665 13666 13667fi 13668 13669rm -f core conftest.err conftest.$ac_objext \ 13670 conftest$ac_exeext 13671 if test "${ac_cv_search_bfd_init+set}" = set; then 13672 break 13673fi 13674done 13675if test "${ac_cv_search_bfd_init+set}" = set; then 13676 : 13677else 13678 ac_cv_search_bfd_init=no 13679fi 13680rm conftest.$ac_ext 13681LIBS=$ac_func_search_save_LIBS 13682fi 13683{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13684echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13685ac_res=$ac_cv_search_bfd_init 13686if test "$ac_res" != no; then 13687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13688 13689fi 13690 13691 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13692echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13693if test "${ac_cv_search_op_open_agent+set}" = set; then 13694 echo $ECHO_N "(cached) $ECHO_C" >&6 13695else 13696 ac_func_search_save_LIBS=$LIBS 13697cat >conftest.$ac_ext <<_ACEOF 13698/* confdefs.h. */ 13699_ACEOF 13700cat confdefs.h >>conftest.$ac_ext 13701cat >>conftest.$ac_ext <<_ACEOF 13702/* end confdefs.h. */ 13703 13704/* Override any GCC internal prototype to avoid an error. 13705 Use char because int might match the return type of a GCC 13706 builtin and then its argument prototype would still apply. */ 13707#ifdef __cplusplus 13708extern "C" 13709#endif 13710char op_open_agent (); 13711int 13712main () 13713{ 13714return op_open_agent (); 13715 ; 13716 return 0; 13717} 13718_ACEOF 13719for ac_lib in '' opagent; do 13720 if test -z "$ac_lib"; then 13721 ac_res="none required" 13722 else 13723 ac_res=-l$ac_lib 13724 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13725 fi 13726 rm -f conftest.$ac_objext conftest$ac_exeext 13727if { (ac_try="$ac_link" 13728case "(($ac_try" in 13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13730 *) ac_try_echo=$ac_try;; 13731esac 13732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13733 (eval "$ac_link") 2>conftest.er1 13734 ac_status=$? 13735 grep -v '^ *+' conftest.er1 >conftest.err 13736 rm -f conftest.er1 13737 cat conftest.err >&5 13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13739 (exit $ac_status); } && 13740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13741 { (case "(($ac_try" in 13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13743 *) ac_try_echo=$ac_try;; 13744esac 13745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13746 (eval "$ac_try") 2>&5 13747 ac_status=$? 13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13749 (exit $ac_status); }; } && 13750 { ac_try='test -s conftest$ac_exeext' 13751 { (case "(($ac_try" in 13752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13753 *) ac_try_echo=$ac_try;; 13754esac 13755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13756 (eval "$ac_try") 2>&5 13757 ac_status=$? 13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13759 (exit $ac_status); }; }; then 13760 ac_cv_search_op_open_agent=$ac_res 13761else 13762 echo "$as_me: failed program was:" >&5 13763sed 's/^/| /' conftest.$ac_ext >&5 13764 13765 13766fi 13767 13768rm -f core conftest.err conftest.$ac_objext \ 13769 conftest$ac_exeext 13770 if test "${ac_cv_search_op_open_agent+set}" = set; then 13771 break 13772fi 13773done 13774if test "${ac_cv_search_op_open_agent+set}" = set; then 13775 : 13776else 13777 ac_cv_search_op_open_agent=no 13778fi 13779rm conftest.$ac_ext 13780LIBS=$ac_func_search_save_LIBS 13781fi 13782{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13783echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13784ac_res=$ac_cv_search_op_open_agent 13785if test "$ac_res" != no; then 13786 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13787 13788else 13789 13790 echo "Error! You need to have libopagent around." 13791 exit -1 13792 13793fi 13794 13795 if test "${ac_cv_header_opagent_h+set}" = set; then 13796 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13797echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13798if test "${ac_cv_header_opagent_h+set}" = set; then 13799 echo $ECHO_N "(cached) $ECHO_C" >&6 13800fi 13801{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13802echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13803else 13804 # Is the header compilable? 13805{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 13806echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13807cat >conftest.$ac_ext <<_ACEOF 13808/* confdefs.h. */ 13809_ACEOF 13810cat confdefs.h >>conftest.$ac_ext 13811cat >>conftest.$ac_ext <<_ACEOF 13812/* end confdefs.h. */ 13813$ac_includes_default 13814#include <opagent.h> 13815_ACEOF 13816rm -f conftest.$ac_objext 13817if { (ac_try="$ac_compile" 13818case "(($ac_try" in 13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13820 *) ac_try_echo=$ac_try;; 13821esac 13822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13823 (eval "$ac_compile") 2>conftest.er1 13824 ac_status=$? 13825 grep -v '^ *+' conftest.er1 >conftest.err 13826 rm -f conftest.er1 13827 cat conftest.err >&5 13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13829 (exit $ac_status); } && 13830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13831 { (case "(($ac_try" in 13832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13833 *) ac_try_echo=$ac_try;; 13834esac 13835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13836 (eval "$ac_try") 2>&5 13837 ac_status=$? 13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13839 (exit $ac_status); }; } && 13840 { ac_try='test -s conftest.$ac_objext' 13841 { (case "(($ac_try" in 13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13843 *) ac_try_echo=$ac_try;; 13844esac 13845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13846 (eval "$ac_try") 2>&5 13847 ac_status=$? 13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13849 (exit $ac_status); }; }; then 13850 ac_header_compiler=yes 13851else 13852 echo "$as_me: failed program was:" >&5 13853sed 's/^/| /' conftest.$ac_ext >&5 13854 13855 ac_header_compiler=no 13856fi 13857 13858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13859{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13860echo "${ECHO_T}$ac_header_compiler" >&6; } 13861 13862# Is the header present? 13863{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 13864echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13865cat >conftest.$ac_ext <<_ACEOF 13866/* confdefs.h. */ 13867_ACEOF 13868cat confdefs.h >>conftest.$ac_ext 13869cat >>conftest.$ac_ext <<_ACEOF 13870/* end confdefs.h. */ 13871#include <opagent.h> 13872_ACEOF 13873if { (ac_try="$ac_cpp conftest.$ac_ext" 13874case "(($ac_try" in 13875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13876 *) ac_try_echo=$ac_try;; 13877esac 13878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13880 ac_status=$? 13881 grep -v '^ *+' conftest.er1 >conftest.err 13882 rm -f conftest.er1 13883 cat conftest.err >&5 13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13885 (exit $ac_status); } >/dev/null; then 13886 if test -s conftest.err; then 13887 ac_cpp_err=$ac_c_preproc_warn_flag 13888 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13889 else 13890 ac_cpp_err= 13891 fi 13892else 13893 ac_cpp_err=yes 13894fi 13895if test -z "$ac_cpp_err"; then 13896 ac_header_preproc=yes 13897else 13898 echo "$as_me: failed program was:" >&5 13899sed 's/^/| /' conftest.$ac_ext >&5 13900 13901 ac_header_preproc=no 13902fi 13903 13904rm -f conftest.err conftest.$ac_ext 13905{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13906echo "${ECHO_T}$ac_header_preproc" >&6; } 13907 13908# So? What about this header? 13909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13910 yes:no: ) 13911 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 13912echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13913 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 13914echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 13915 ac_header_preproc=yes 13916 ;; 13917 no:yes:* ) 13918 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 13919echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 13920 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 13921echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 13922 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 13923echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 13924 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 13925echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 13926 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 13927echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 13928 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 13929echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 13930 ( cat <<\_ASBOX 13931## ------------------------------------ ## 13932## Report this to http://llvm.org/bugs/ ## 13933## ------------------------------------ ## 13934_ASBOX 13935 ) | sed "s/^/$as_me: WARNING: /" >&2 13936 ;; 13937esac 13938{ echo "$as_me:$LINENO: checking for opagent.h" >&5 13939echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13940if test "${ac_cv_header_opagent_h+set}" = set; then 13941 echo $ECHO_N "(cached) $ECHO_C" >&6 13942else 13943 ac_cv_header_opagent_h=$ac_header_preproc 13944fi 13945{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13946echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13947 13948fi 13949if test $ac_cv_header_opagent_h = yes; then 13950 : 13951else 13952 13953 echo "Error! You need to have opagent.h around." 13954 exit -1 13955 13956fi 13957 13958 13959 fi ;; 13960 *) 13961 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 13962echo "$as_me: error: OProfile support is available on Linux only." >&2;} 13963 { (exit 1); exit 1; }; } ;; 13964 esac 13965 13966else 13967 13968 USE_OPROFILE=0 13969 13970 13971fi 13972 13973 13974cat >>confdefs.h <<_ACEOF 13975#define LLVM_USE_OPROFILE $USE_OPROFILE 13976_ACEOF 13977 13978 13979 13980# Check whether --with-intel-jitevents was given. 13981if test "${with_intel_jitevents+set}" = set; then 13982 withval=$with_intel_jitevents; 13983 case "$withval" in 13984 yes) USE_INTEL_JITEVENTS=1 13985;; 13986 no) USE_INTEL_JITEVENTS=0 13987;; 13988 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5 13989echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;} 13990 { (exit 1); exit 1; }; };; 13991 esac 13992 13993 case $llvm_cv_os_type in 13994 Linux|Win32|Cygwin|MingW) ;; 13995 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5 13996echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;} 13997 { (exit 1); exit 1; }; };; 13998 esac 13999 14000 case "$llvm_cv_target_arch" in 14001 x86|x86_64) ;; 14002 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5 14003echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;} 14004 { (exit 1); exit 1; }; };; 14005 esac 14006 14007else 14008 14009 USE_INTEL_JITEVENTS=0 14010 14011 14012fi 14013 14014 14015cat >>confdefs.h <<_ACEOF 14016#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 14017_ACEOF 14018 14019 14020for ac_prog in xml2-config 14021do 14022 # Extract the first word of "$ac_prog", so it can be a program name with args. 14023set dummy $ac_prog; ac_word=$2 14024{ echo "$as_me:$LINENO: checking for $ac_word" >&5 14025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 14026if test "${ac_cv_prog_XML2CONFIG+set}" = set; then 14027 echo $ECHO_N "(cached) $ECHO_C" >&6 14028else 14029 if test -n "$XML2CONFIG"; then 14030 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test. 14031else 14032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14033for as_dir in $PATH 14034do 14035 IFS=$as_save_IFS 14036 test -z "$as_dir" && as_dir=. 14037 for ac_exec_ext in '' $ac_executable_extensions; do 14038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 14039 ac_cv_prog_XML2CONFIG="$ac_prog" 14040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14041 break 2 14042 fi 14043done 14044done 14045IFS=$as_save_IFS 14046 14047fi 14048fi 14049XML2CONFIG=$ac_cv_prog_XML2CONFIG 14050if test -n "$XML2CONFIG"; then 14051 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5 14052echo "${ECHO_T}$XML2CONFIG" >&6; } 14053else 14054 { echo "$as_me:$LINENO: result: no" >&5 14055echo "${ECHO_T}no" >&6; } 14056fi 14057 14058 14059 test -n "$XML2CONFIG" && break 14060done 14061 14062 14063{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5 14064echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; } 14065if test "x$XML2CONFIG" = "x"; then 14066 { echo "$as_me:$LINENO: result: xml2-config not found" >&5 14067echo "${ECHO_T}xml2-config not found" >&6; } 14068else 14069 LIBXML2_INC=`$XML2CONFIG --cflags` 14070 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5 14071echo "${ECHO_T}$LIBXML2_INC" >&6; } 14072 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5 14073echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; } 14074if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then 14075 echo $ECHO_N "(cached) $ECHO_C" >&6 14076else 14077 ac_check_lib_save_LIBS=$LIBS 14078LIBS="-lxml2 $LIBS" 14079cat >conftest.$ac_ext <<_ACEOF 14080/* confdefs.h. */ 14081_ACEOF 14082cat confdefs.h >>conftest.$ac_ext 14083cat >>conftest.$ac_ext <<_ACEOF 14084/* end confdefs.h. */ 14085 14086/* Override any GCC internal prototype to avoid an error. 14087 Use char because int might match the return type of a GCC 14088 builtin and then its argument prototype would still apply. */ 14089#ifdef __cplusplus 14090extern "C" 14091#endif 14092char xmlReadFile (); 14093int 14094main () 14095{ 14096return xmlReadFile (); 14097 ; 14098 return 0; 14099} 14100_ACEOF 14101rm -f conftest.$ac_objext conftest$ac_exeext 14102if { (ac_try="$ac_link" 14103case "(($ac_try" in 14104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14105 *) ac_try_echo=$ac_try;; 14106esac 14107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14108 (eval "$ac_link") 2>conftest.er1 14109 ac_status=$? 14110 grep -v '^ *+' conftest.er1 >conftest.err 14111 rm -f conftest.er1 14112 cat conftest.err >&5 14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14114 (exit $ac_status); } && 14115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14116 { (case "(($ac_try" in 14117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14118 *) ac_try_echo=$ac_try;; 14119esac 14120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14121 (eval "$ac_try") 2>&5 14122 ac_status=$? 14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14124 (exit $ac_status); }; } && 14125 { ac_try='test -s conftest$ac_exeext' 14126 { (case "(($ac_try" in 14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14128 *) ac_try_echo=$ac_try;; 14129esac 14130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14131 (eval "$ac_try") 2>&5 14132 ac_status=$? 14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14134 (exit $ac_status); }; }; then 14135 ac_cv_lib_xml2_xmlReadFile=yes 14136else 14137 echo "$as_me: failed program was:" >&5 14138sed 's/^/| /' conftest.$ac_ext >&5 14139 14140 ac_cv_lib_xml2_xmlReadFile=no 14141fi 14142 14143rm -f core conftest.err conftest.$ac_objext \ 14144 conftest$ac_exeext conftest.$ac_ext 14145LIBS=$ac_check_lib_save_LIBS 14146fi 14147{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5 14148echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; } 14149if test $ac_cv_lib_xml2_xmlReadFile = yes; then 14150 14151cat >>confdefs.h <<\_ACEOF 14152#define CLANG_HAVE_LIBXML 1 14153_ACEOF 14154 14155 LIBXML2_LIBS="-lxml2" 14156fi 14157 14158fi 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168ac_header_dirent=no 14169for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14170 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14171{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 14172echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 14173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14174 echo $ECHO_N "(cached) $ECHO_C" >&6 14175else 14176 cat >conftest.$ac_ext <<_ACEOF 14177/* confdefs.h. */ 14178_ACEOF 14179cat confdefs.h >>conftest.$ac_ext 14180cat >>conftest.$ac_ext <<_ACEOF 14181/* end confdefs.h. */ 14182#include <sys/types.h> 14183#include <$ac_hdr> 14184 14185int 14186main () 14187{ 14188if ((DIR *) 0) 14189return 0; 14190 ; 14191 return 0; 14192} 14193_ACEOF 14194rm -f conftest.$ac_objext 14195if { (ac_try="$ac_compile" 14196case "(($ac_try" in 14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14198 *) ac_try_echo=$ac_try;; 14199esac 14200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14201 (eval "$ac_compile") 2>conftest.er1 14202 ac_status=$? 14203 grep -v '^ *+' conftest.er1 >conftest.err 14204 rm -f conftest.er1 14205 cat conftest.err >&5 14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14207 (exit $ac_status); } && 14208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14209 { (case "(($ac_try" in 14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14211 *) ac_try_echo=$ac_try;; 14212esac 14213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14214 (eval "$ac_try") 2>&5 14215 ac_status=$? 14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14217 (exit $ac_status); }; } && 14218 { ac_try='test -s conftest.$ac_objext' 14219 { (case "(($ac_try" in 14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14221 *) ac_try_echo=$ac_try;; 14222esac 14223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14224 (eval "$ac_try") 2>&5 14225 ac_status=$? 14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14227 (exit $ac_status); }; }; then 14228 eval "$as_ac_Header=yes" 14229else 14230 echo "$as_me: failed program was:" >&5 14231sed 's/^/| /' conftest.$ac_ext >&5 14232 14233 eval "$as_ac_Header=no" 14234fi 14235 14236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14237fi 14238ac_res=`eval echo '${'$as_ac_Header'}'` 14239 { echo "$as_me:$LINENO: result: $ac_res" >&5 14240echo "${ECHO_T}$ac_res" >&6; } 14241if test `eval echo '${'$as_ac_Header'}'` = yes; then 14242 cat >>confdefs.h <<_ACEOF 14243#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14244_ACEOF 14245 14246ac_header_dirent=$ac_hdr; break 14247fi 14248 14249done 14250# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14251if test $ac_header_dirent = dirent.h; then 14252 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14253echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14254if test "${ac_cv_search_opendir+set}" = set; then 14255 echo $ECHO_N "(cached) $ECHO_C" >&6 14256else 14257 ac_func_search_save_LIBS=$LIBS 14258cat >conftest.$ac_ext <<_ACEOF 14259/* confdefs.h. */ 14260_ACEOF 14261cat confdefs.h >>conftest.$ac_ext 14262cat >>conftest.$ac_ext <<_ACEOF 14263/* end confdefs.h. */ 14264 14265/* Override any GCC internal prototype to avoid an error. 14266 Use char because int might match the return type of a GCC 14267 builtin and then its argument prototype would still apply. */ 14268#ifdef __cplusplus 14269extern "C" 14270#endif 14271char opendir (); 14272int 14273main () 14274{ 14275return opendir (); 14276 ; 14277 return 0; 14278} 14279_ACEOF 14280for ac_lib in '' dir; do 14281 if test -z "$ac_lib"; then 14282 ac_res="none required" 14283 else 14284 ac_res=-l$ac_lib 14285 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14286 fi 14287 rm -f conftest.$ac_objext conftest$ac_exeext 14288if { (ac_try="$ac_link" 14289case "(($ac_try" in 14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14291 *) ac_try_echo=$ac_try;; 14292esac 14293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14294 (eval "$ac_link") 2>conftest.er1 14295 ac_status=$? 14296 grep -v '^ *+' conftest.er1 >conftest.err 14297 rm -f conftest.er1 14298 cat conftest.err >&5 14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14300 (exit $ac_status); } && 14301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14302 { (case "(($ac_try" in 14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14304 *) ac_try_echo=$ac_try;; 14305esac 14306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14307 (eval "$ac_try") 2>&5 14308 ac_status=$? 14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14310 (exit $ac_status); }; } && 14311 { ac_try='test -s conftest$ac_exeext' 14312 { (case "(($ac_try" in 14313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14314 *) ac_try_echo=$ac_try;; 14315esac 14316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14317 (eval "$ac_try") 2>&5 14318 ac_status=$? 14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14320 (exit $ac_status); }; }; then 14321 ac_cv_search_opendir=$ac_res 14322else 14323 echo "$as_me: failed program was:" >&5 14324sed 's/^/| /' conftest.$ac_ext >&5 14325 14326 14327fi 14328 14329rm -f core conftest.err conftest.$ac_objext \ 14330 conftest$ac_exeext 14331 if test "${ac_cv_search_opendir+set}" = set; then 14332 break 14333fi 14334done 14335if test "${ac_cv_search_opendir+set}" = set; then 14336 : 14337else 14338 ac_cv_search_opendir=no 14339fi 14340rm conftest.$ac_ext 14341LIBS=$ac_func_search_save_LIBS 14342fi 14343{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14344echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14345ac_res=$ac_cv_search_opendir 14346if test "$ac_res" != no; then 14347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14348 14349fi 14350 14351else 14352 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14353echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14354if test "${ac_cv_search_opendir+set}" = set; then 14355 echo $ECHO_N "(cached) $ECHO_C" >&6 14356else 14357 ac_func_search_save_LIBS=$LIBS 14358cat >conftest.$ac_ext <<_ACEOF 14359/* confdefs.h. */ 14360_ACEOF 14361cat confdefs.h >>conftest.$ac_ext 14362cat >>conftest.$ac_ext <<_ACEOF 14363/* end confdefs.h. */ 14364 14365/* Override any GCC internal prototype to avoid an error. 14366 Use char because int might match the return type of a GCC 14367 builtin and then its argument prototype would still apply. */ 14368#ifdef __cplusplus 14369extern "C" 14370#endif 14371char opendir (); 14372int 14373main () 14374{ 14375return opendir (); 14376 ; 14377 return 0; 14378} 14379_ACEOF 14380for ac_lib in '' x; do 14381 if test -z "$ac_lib"; then 14382 ac_res="none required" 14383 else 14384 ac_res=-l$ac_lib 14385 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14386 fi 14387 rm -f conftest.$ac_objext conftest$ac_exeext 14388if { (ac_try="$ac_link" 14389case "(($ac_try" in 14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14391 *) ac_try_echo=$ac_try;; 14392esac 14393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14394 (eval "$ac_link") 2>conftest.er1 14395 ac_status=$? 14396 grep -v '^ *+' conftest.er1 >conftest.err 14397 rm -f conftest.er1 14398 cat conftest.err >&5 14399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14400 (exit $ac_status); } && 14401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14402 { (case "(($ac_try" in 14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14404 *) ac_try_echo=$ac_try;; 14405esac 14406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14407 (eval "$ac_try") 2>&5 14408 ac_status=$? 14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14410 (exit $ac_status); }; } && 14411 { ac_try='test -s conftest$ac_exeext' 14412 { (case "(($ac_try" in 14413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14414 *) ac_try_echo=$ac_try;; 14415esac 14416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14417 (eval "$ac_try") 2>&5 14418 ac_status=$? 14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14420 (exit $ac_status); }; }; then 14421 ac_cv_search_opendir=$ac_res 14422else 14423 echo "$as_me: failed program was:" >&5 14424sed 's/^/| /' conftest.$ac_ext >&5 14425 14426 14427fi 14428 14429rm -f core conftest.err conftest.$ac_objext \ 14430 conftest$ac_exeext 14431 if test "${ac_cv_search_opendir+set}" = set; then 14432 break 14433fi 14434done 14435if test "${ac_cv_search_opendir+set}" = set; then 14436 : 14437else 14438 ac_cv_search_opendir=no 14439fi 14440rm conftest.$ac_ext 14441LIBS=$ac_func_search_save_LIBS 14442fi 14443{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14444echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14445ac_res=$ac_cv_search_opendir 14446if test "$ac_res" != no; then 14447 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14448 14449fi 14450 14451fi 14452 14453{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 14454echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 14455if test "${ac_cv_header_mmap_anon+set}" = set; then 14456 echo $ECHO_N "(cached) $ECHO_C" >&6 14457else 14458 ac_ext=c 14459ac_cpp='$CPP $CPPFLAGS' 14460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14462ac_compiler_gnu=$ac_cv_c_compiler_gnu 14463 14464 cat >conftest.$ac_ext <<_ACEOF 14465/* confdefs.h. */ 14466_ACEOF 14467cat confdefs.h >>conftest.$ac_ext 14468cat >>conftest.$ac_ext <<_ACEOF 14469/* end confdefs.h. */ 14470#include <sys/mman.h> 14471#include <unistd.h> 14472#include <fcntl.h> 14473int 14474main () 14475{ 14476mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 14477 ; 14478 return 0; 14479} 14480_ACEOF 14481rm -f conftest.$ac_objext 14482if { (ac_try="$ac_compile" 14483case "(($ac_try" in 14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14485 *) ac_try_echo=$ac_try;; 14486esac 14487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14488 (eval "$ac_compile") 2>conftest.er1 14489 ac_status=$? 14490 grep -v '^ *+' conftest.er1 >conftest.err 14491 rm -f conftest.er1 14492 cat conftest.err >&5 14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14494 (exit $ac_status); } && 14495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14496 { (case "(($ac_try" in 14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14498 *) ac_try_echo=$ac_try;; 14499esac 14500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14501 (eval "$ac_try") 2>&5 14502 ac_status=$? 14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14504 (exit $ac_status); }; } && 14505 { ac_try='test -s conftest.$ac_objext' 14506 { (case "(($ac_try" in 14507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14508 *) ac_try_echo=$ac_try;; 14509esac 14510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14511 (eval "$ac_try") 2>&5 14512 ac_status=$? 14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14514 (exit $ac_status); }; }; then 14515 ac_cv_header_mmap_anon=yes 14516else 14517 echo "$as_me: failed program was:" >&5 14518sed 's/^/| /' conftest.$ac_ext >&5 14519 14520 ac_cv_header_mmap_anon=no 14521fi 14522 14523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14524 ac_ext=c 14525ac_cpp='$CPP $CPPFLAGS' 14526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14528ac_compiler_gnu=$ac_cv_c_compiler_gnu 14529 14530 14531fi 14532{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 14533echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 14534if test "$ac_cv_header_mmap_anon" = yes; then 14535 14536cat >>confdefs.h <<\_ACEOF 14537#define HAVE_MMAP_ANONYMOUS 1 14538_ACEOF 14539 14540fi 14541 14542{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 14543echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 14544if test "${ac_cv_header_stat_broken+set}" = set; then 14545 echo $ECHO_N "(cached) $ECHO_C" >&6 14546else 14547 cat >conftest.$ac_ext <<_ACEOF 14548/* confdefs.h. */ 14549_ACEOF 14550cat confdefs.h >>conftest.$ac_ext 14551cat >>conftest.$ac_ext <<_ACEOF 14552/* end confdefs.h. */ 14553#include <sys/types.h> 14554#include <sys/stat.h> 14555 14556#if defined S_ISBLK && defined S_IFDIR 14557# if S_ISBLK (S_IFDIR) 14558You lose. 14559# endif 14560#endif 14561 14562#if defined S_ISBLK && defined S_IFCHR 14563# if S_ISBLK (S_IFCHR) 14564You lose. 14565# endif 14566#endif 14567 14568#if defined S_ISLNK && defined S_IFREG 14569# if S_ISLNK (S_IFREG) 14570You lose. 14571# endif 14572#endif 14573 14574#if defined S_ISSOCK && defined S_IFREG 14575# if S_ISSOCK (S_IFREG) 14576You lose. 14577# endif 14578#endif 14579 14580_ACEOF 14581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14582 $EGREP "You lose" >/dev/null 2>&1; then 14583 ac_cv_header_stat_broken=yes 14584else 14585 ac_cv_header_stat_broken=no 14586fi 14587rm -f conftest* 14588 14589fi 14590{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14591echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14592if test $ac_cv_header_stat_broken = yes; then 14593 14594cat >>confdefs.h <<\_ACEOF 14595#define STAT_MACROS_BROKEN 1 14596_ACEOF 14597 14598fi 14599 14600{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 14601echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14602if test "${ac_cv_header_sys_wait_h+set}" = set; then 14603 echo $ECHO_N "(cached) $ECHO_C" >&6 14604else 14605 cat >conftest.$ac_ext <<_ACEOF 14606/* confdefs.h. */ 14607_ACEOF 14608cat confdefs.h >>conftest.$ac_ext 14609cat >>conftest.$ac_ext <<_ACEOF 14610/* end confdefs.h. */ 14611#include <sys/types.h> 14612#include <sys/wait.h> 14613#ifndef WEXITSTATUS 14614# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14615#endif 14616#ifndef WIFEXITED 14617# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14618#endif 14619 14620int 14621main () 14622{ 14623 int s; 14624 wait (&s); 14625 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14626 ; 14627 return 0; 14628} 14629_ACEOF 14630rm -f conftest.$ac_objext 14631if { (ac_try="$ac_compile" 14632case "(($ac_try" in 14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14634 *) ac_try_echo=$ac_try;; 14635esac 14636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14637 (eval "$ac_compile") 2>conftest.er1 14638 ac_status=$? 14639 grep -v '^ *+' conftest.er1 >conftest.err 14640 rm -f conftest.er1 14641 cat conftest.err >&5 14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14643 (exit $ac_status); } && 14644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14645 { (case "(($ac_try" in 14646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14647 *) ac_try_echo=$ac_try;; 14648esac 14649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14650 (eval "$ac_try") 2>&5 14651 ac_status=$? 14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14653 (exit $ac_status); }; } && 14654 { ac_try='test -s conftest.$ac_objext' 14655 { (case "(($ac_try" in 14656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14657 *) ac_try_echo=$ac_try;; 14658esac 14659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14660 (eval "$ac_try") 2>&5 14661 ac_status=$? 14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14663 (exit $ac_status); }; }; then 14664 ac_cv_header_sys_wait_h=yes 14665else 14666 echo "$as_me: failed program was:" >&5 14667sed 's/^/| /' conftest.$ac_ext >&5 14668 14669 ac_cv_header_sys_wait_h=no 14670fi 14671 14672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14673fi 14674{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14675echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14676if test $ac_cv_header_sys_wait_h = yes; then 14677 14678cat >>confdefs.h <<\_ACEOF 14679#define HAVE_SYS_WAIT_H 1 14680_ACEOF 14681 14682fi 14683 14684{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14685echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14686if test "${ac_cv_header_time+set}" = set; then 14687 echo $ECHO_N "(cached) $ECHO_C" >&6 14688else 14689 cat >conftest.$ac_ext <<_ACEOF 14690/* confdefs.h. */ 14691_ACEOF 14692cat confdefs.h >>conftest.$ac_ext 14693cat >>conftest.$ac_ext <<_ACEOF 14694/* end confdefs.h. */ 14695#include <sys/types.h> 14696#include <sys/time.h> 14697#include <time.h> 14698 14699int 14700main () 14701{ 14702if ((struct tm *) 0) 14703return 0; 14704 ; 14705 return 0; 14706} 14707_ACEOF 14708rm -f conftest.$ac_objext 14709if { (ac_try="$ac_compile" 14710case "(($ac_try" in 14711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14712 *) ac_try_echo=$ac_try;; 14713esac 14714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14715 (eval "$ac_compile") 2>conftest.er1 14716 ac_status=$? 14717 grep -v '^ *+' conftest.er1 >conftest.err 14718 rm -f conftest.er1 14719 cat conftest.err >&5 14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14721 (exit $ac_status); } && 14722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14723 { (case "(($ac_try" in 14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14725 *) ac_try_echo=$ac_try;; 14726esac 14727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14728 (eval "$ac_try") 2>&5 14729 ac_status=$? 14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14731 (exit $ac_status); }; } && 14732 { ac_try='test -s conftest.$ac_objext' 14733 { (case "(($ac_try" in 14734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14735 *) ac_try_echo=$ac_try;; 14736esac 14737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14738 (eval "$ac_try") 2>&5 14739 ac_status=$? 14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14741 (exit $ac_status); }; }; then 14742 ac_cv_header_time=yes 14743else 14744 echo "$as_me: failed program was:" >&5 14745sed 's/^/| /' conftest.$ac_ext >&5 14746 14747 ac_cv_header_time=no 14748fi 14749 14750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14751fi 14752{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14753echo "${ECHO_T}$ac_cv_header_time" >&6; } 14754if test $ac_cv_header_time = yes; then 14755 14756cat >>confdefs.h <<\_ACEOF 14757#define TIME_WITH_SYS_TIME 1 14758_ACEOF 14759 14760fi 14761 14762 14763 14764 14765 14766 14767 14768 14769for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 14770do 14771as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14773 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14776 echo $ECHO_N "(cached) $ECHO_C" >&6 14777fi 14778ac_res=`eval echo '${'$as_ac_Header'}'` 14779 { echo "$as_me:$LINENO: result: $ac_res" >&5 14780echo "${ECHO_T}$ac_res" >&6; } 14781else 14782 # Is the header compilable? 14783{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14784echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14785cat >conftest.$ac_ext <<_ACEOF 14786/* confdefs.h. */ 14787_ACEOF 14788cat confdefs.h >>conftest.$ac_ext 14789cat >>conftest.$ac_ext <<_ACEOF 14790/* end confdefs.h. */ 14791$ac_includes_default 14792#include <$ac_header> 14793_ACEOF 14794rm -f conftest.$ac_objext 14795if { (ac_try="$ac_compile" 14796case "(($ac_try" in 14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14798 *) ac_try_echo=$ac_try;; 14799esac 14800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14801 (eval "$ac_compile") 2>conftest.er1 14802 ac_status=$? 14803 grep -v '^ *+' conftest.er1 >conftest.err 14804 rm -f conftest.er1 14805 cat conftest.err >&5 14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14807 (exit $ac_status); } && 14808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14809 { (case "(($ac_try" in 14810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14811 *) ac_try_echo=$ac_try;; 14812esac 14813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14814 (eval "$ac_try") 2>&5 14815 ac_status=$? 14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14817 (exit $ac_status); }; } && 14818 { ac_try='test -s conftest.$ac_objext' 14819 { (case "(($ac_try" in 14820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14821 *) ac_try_echo=$ac_try;; 14822esac 14823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14824 (eval "$ac_try") 2>&5 14825 ac_status=$? 14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14827 (exit $ac_status); }; }; then 14828 ac_header_compiler=yes 14829else 14830 echo "$as_me: failed program was:" >&5 14831sed 's/^/| /' conftest.$ac_ext >&5 14832 14833 ac_header_compiler=no 14834fi 14835 14836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14837{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14838echo "${ECHO_T}$ac_header_compiler" >&6; } 14839 14840# Is the header present? 14841{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14842echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14843cat >conftest.$ac_ext <<_ACEOF 14844/* confdefs.h. */ 14845_ACEOF 14846cat confdefs.h >>conftest.$ac_ext 14847cat >>conftest.$ac_ext <<_ACEOF 14848/* end confdefs.h. */ 14849#include <$ac_header> 14850_ACEOF 14851if { (ac_try="$ac_cpp conftest.$ac_ext" 14852case "(($ac_try" in 14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14854 *) ac_try_echo=$ac_try;; 14855esac 14856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14858 ac_status=$? 14859 grep -v '^ *+' conftest.er1 >conftest.err 14860 rm -f conftest.er1 14861 cat conftest.err >&5 14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14863 (exit $ac_status); } >/dev/null; then 14864 if test -s conftest.err; then 14865 ac_cpp_err=$ac_c_preproc_warn_flag 14866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14867 else 14868 ac_cpp_err= 14869 fi 14870else 14871 ac_cpp_err=yes 14872fi 14873if test -z "$ac_cpp_err"; then 14874 ac_header_preproc=yes 14875else 14876 echo "$as_me: failed program was:" >&5 14877sed 's/^/| /' conftest.$ac_ext >&5 14878 14879 ac_header_preproc=no 14880fi 14881 14882rm -f conftest.err conftest.$ac_ext 14883{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14884echo "${ECHO_T}$ac_header_preproc" >&6; } 14885 14886# So? What about this header? 14887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14888 yes:no: ) 14889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14890echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14892echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14893 ac_header_preproc=yes 14894 ;; 14895 no:yes:* ) 14896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14897echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14899echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14901echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14903echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14905echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14907echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14908 ( cat <<\_ASBOX 14909## ------------------------------------ ## 14910## Report this to http://llvm.org/bugs/ ## 14911## ------------------------------------ ## 14912_ASBOX 14913 ) | sed "s/^/$as_me: WARNING: /" >&2 14914 ;; 14915esac 14916{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14919 echo $ECHO_N "(cached) $ECHO_C" >&6 14920else 14921 eval "$as_ac_Header=\$ac_header_preproc" 14922fi 14923ac_res=`eval echo '${'$as_ac_Header'}'` 14924 { echo "$as_me:$LINENO: result: $ac_res" >&5 14925echo "${ECHO_T}$ac_res" >&6; } 14926 14927fi 14928if test `eval echo '${'$as_ac_Header'}'` = yes; then 14929 cat >>confdefs.h <<_ACEOF 14930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14931_ACEOF 14932 14933fi 14934 14935done 14936 14937 14938 14939 14940 14941 14942 14943for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 14944do 14945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14947 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14950 echo $ECHO_N "(cached) $ECHO_C" >&6 14951fi 14952ac_res=`eval echo '${'$as_ac_Header'}'` 14953 { echo "$as_me:$LINENO: result: $ac_res" >&5 14954echo "${ECHO_T}$ac_res" >&6; } 14955else 14956 # Is the header compilable? 14957{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14958echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14959cat >conftest.$ac_ext <<_ACEOF 14960/* confdefs.h. */ 14961_ACEOF 14962cat confdefs.h >>conftest.$ac_ext 14963cat >>conftest.$ac_ext <<_ACEOF 14964/* end confdefs.h. */ 14965$ac_includes_default 14966#include <$ac_header> 14967_ACEOF 14968rm -f conftest.$ac_objext 14969if { (ac_try="$ac_compile" 14970case "(($ac_try" in 14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14972 *) ac_try_echo=$ac_try;; 14973esac 14974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14975 (eval "$ac_compile") 2>conftest.er1 14976 ac_status=$? 14977 grep -v '^ *+' conftest.er1 >conftest.err 14978 rm -f conftest.er1 14979 cat conftest.err >&5 14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14981 (exit $ac_status); } && 14982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14983 { (case "(($ac_try" in 14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14985 *) ac_try_echo=$ac_try;; 14986esac 14987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14988 (eval "$ac_try") 2>&5 14989 ac_status=$? 14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14991 (exit $ac_status); }; } && 14992 { ac_try='test -s conftest.$ac_objext' 14993 { (case "(($ac_try" in 14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14995 *) ac_try_echo=$ac_try;; 14996esac 14997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14998 (eval "$ac_try") 2>&5 14999 ac_status=$? 15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15001 (exit $ac_status); }; }; then 15002 ac_header_compiler=yes 15003else 15004 echo "$as_me: failed program was:" >&5 15005sed 's/^/| /' conftest.$ac_ext >&5 15006 15007 ac_header_compiler=no 15008fi 15009 15010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15011{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15012echo "${ECHO_T}$ac_header_compiler" >&6; } 15013 15014# Is the header present? 15015{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15017cat >conftest.$ac_ext <<_ACEOF 15018/* confdefs.h. */ 15019_ACEOF 15020cat confdefs.h >>conftest.$ac_ext 15021cat >>conftest.$ac_ext <<_ACEOF 15022/* end confdefs.h. */ 15023#include <$ac_header> 15024_ACEOF 15025if { (ac_try="$ac_cpp conftest.$ac_ext" 15026case "(($ac_try" in 15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15028 *) ac_try_echo=$ac_try;; 15029esac 15030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15032 ac_status=$? 15033 grep -v '^ *+' conftest.er1 >conftest.err 15034 rm -f conftest.er1 15035 cat conftest.err >&5 15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15037 (exit $ac_status); } >/dev/null; then 15038 if test -s conftest.err; then 15039 ac_cpp_err=$ac_c_preproc_warn_flag 15040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15041 else 15042 ac_cpp_err= 15043 fi 15044else 15045 ac_cpp_err=yes 15046fi 15047if test -z "$ac_cpp_err"; then 15048 ac_header_preproc=yes 15049else 15050 echo "$as_me: failed program was:" >&5 15051sed 's/^/| /' conftest.$ac_ext >&5 15052 15053 ac_header_preproc=no 15054fi 15055 15056rm -f conftest.err conftest.$ac_ext 15057{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15058echo "${ECHO_T}$ac_header_preproc" >&6; } 15059 15060# So? What about this header? 15061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15062 yes:no: ) 15063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15067 ac_header_preproc=yes 15068 ;; 15069 no:yes:* ) 15070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15082 ( cat <<\_ASBOX 15083## ------------------------------------ ## 15084## Report this to http://llvm.org/bugs/ ## 15085## ------------------------------------ ## 15086_ASBOX 15087 ) | sed "s/^/$as_me: WARNING: /" >&2 15088 ;; 15089esac 15090{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15093 echo $ECHO_N "(cached) $ECHO_C" >&6 15094else 15095 eval "$as_ac_Header=\$ac_header_preproc" 15096fi 15097ac_res=`eval echo '${'$as_ac_Header'}'` 15098 { echo "$as_me:$LINENO: result: $ac_res" >&5 15099echo "${ECHO_T}$ac_res" >&6; } 15100 15101fi 15102if test `eval echo '${'$as_ac_Header'}'` = yes; then 15103 cat >>confdefs.h <<_ACEOF 15104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15105_ACEOF 15106 15107fi 15108 15109done 15110 15111 15112 15113for ac_header in utime.h windows.h 15114do 15115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15116if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15117 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15119if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15120 echo $ECHO_N "(cached) $ECHO_C" >&6 15121fi 15122ac_res=`eval echo '${'$as_ac_Header'}'` 15123 { echo "$as_me:$LINENO: result: $ac_res" >&5 15124echo "${ECHO_T}$ac_res" >&6; } 15125else 15126 # Is the header compilable? 15127{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15128echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15129cat >conftest.$ac_ext <<_ACEOF 15130/* confdefs.h. */ 15131_ACEOF 15132cat confdefs.h >>conftest.$ac_ext 15133cat >>conftest.$ac_ext <<_ACEOF 15134/* end confdefs.h. */ 15135$ac_includes_default 15136#include <$ac_header> 15137_ACEOF 15138rm -f conftest.$ac_objext 15139if { (ac_try="$ac_compile" 15140case "(($ac_try" in 15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15142 *) ac_try_echo=$ac_try;; 15143esac 15144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15145 (eval "$ac_compile") 2>conftest.er1 15146 ac_status=$? 15147 grep -v '^ *+' conftest.er1 >conftest.err 15148 rm -f conftest.er1 15149 cat conftest.err >&5 15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15151 (exit $ac_status); } && 15152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15153 { (case "(($ac_try" in 15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15155 *) ac_try_echo=$ac_try;; 15156esac 15157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15158 (eval "$ac_try") 2>&5 15159 ac_status=$? 15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15161 (exit $ac_status); }; } && 15162 { ac_try='test -s conftest.$ac_objext' 15163 { (case "(($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_try") 2>&5 15169 ac_status=$? 15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15171 (exit $ac_status); }; }; then 15172 ac_header_compiler=yes 15173else 15174 echo "$as_me: failed program was:" >&5 15175sed 's/^/| /' conftest.$ac_ext >&5 15176 15177 ac_header_compiler=no 15178fi 15179 15180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15181{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15182echo "${ECHO_T}$ac_header_compiler" >&6; } 15183 15184# Is the header present? 15185{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15187cat >conftest.$ac_ext <<_ACEOF 15188/* confdefs.h. */ 15189_ACEOF 15190cat confdefs.h >>conftest.$ac_ext 15191cat >>conftest.$ac_ext <<_ACEOF 15192/* end confdefs.h. */ 15193#include <$ac_header> 15194_ACEOF 15195if { (ac_try="$ac_cpp conftest.$ac_ext" 15196case "(($ac_try" in 15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15198 *) ac_try_echo=$ac_try;; 15199esac 15200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15202 ac_status=$? 15203 grep -v '^ *+' conftest.er1 >conftest.err 15204 rm -f conftest.er1 15205 cat conftest.err >&5 15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15207 (exit $ac_status); } >/dev/null; then 15208 if test -s conftest.err; then 15209 ac_cpp_err=$ac_c_preproc_warn_flag 15210 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15211 else 15212 ac_cpp_err= 15213 fi 15214else 15215 ac_cpp_err=yes 15216fi 15217if test -z "$ac_cpp_err"; then 15218 ac_header_preproc=yes 15219else 15220 echo "$as_me: failed program was:" >&5 15221sed 's/^/| /' conftest.$ac_ext >&5 15222 15223 ac_header_preproc=no 15224fi 15225 15226rm -f conftest.err conftest.$ac_ext 15227{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15228echo "${ECHO_T}$ac_header_preproc" >&6; } 15229 15230# So? What about this header? 15231case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15232 yes:no: ) 15233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15234echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15236echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15237 ac_header_preproc=yes 15238 ;; 15239 no:yes:* ) 15240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15241echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15243echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15245echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15247echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15249echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15251echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15252 ( cat <<\_ASBOX 15253## ------------------------------------ ## 15254## Report this to http://llvm.org/bugs/ ## 15255## ------------------------------------ ## 15256_ASBOX 15257 ) | sed "s/^/$as_me: WARNING: /" >&2 15258 ;; 15259esac 15260{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15263 echo $ECHO_N "(cached) $ECHO_C" >&6 15264else 15265 eval "$as_ac_Header=\$ac_header_preproc" 15266fi 15267ac_res=`eval echo '${'$as_ac_Header'}'` 15268 { echo "$as_me:$LINENO: result: $ac_res" >&5 15269echo "${ECHO_T}$ac_res" >&6; } 15270 15271fi 15272if test `eval echo '${'$as_ac_Header'}'` = yes; then 15273 cat >>confdefs.h <<_ACEOF 15274#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15275_ACEOF 15276 15277fi 15278 15279done 15280 15281 15282 15283 15284 15285 15286for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 15287do 15288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15290 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15293 echo $ECHO_N "(cached) $ECHO_C" >&6 15294fi 15295ac_res=`eval echo '${'$as_ac_Header'}'` 15296 { echo "$as_me:$LINENO: result: $ac_res" >&5 15297echo "${ECHO_T}$ac_res" >&6; } 15298else 15299 # Is the header compilable? 15300{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15302cat >conftest.$ac_ext <<_ACEOF 15303/* confdefs.h. */ 15304_ACEOF 15305cat confdefs.h >>conftest.$ac_ext 15306cat >>conftest.$ac_ext <<_ACEOF 15307/* end confdefs.h. */ 15308$ac_includes_default 15309#include <$ac_header> 15310_ACEOF 15311rm -f conftest.$ac_objext 15312if { (ac_try="$ac_compile" 15313case "(($ac_try" in 15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15315 *) ac_try_echo=$ac_try;; 15316esac 15317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15318 (eval "$ac_compile") 2>conftest.er1 15319 ac_status=$? 15320 grep -v '^ *+' conftest.er1 >conftest.err 15321 rm -f conftest.er1 15322 cat conftest.err >&5 15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15324 (exit $ac_status); } && 15325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15326 { (case "(($ac_try" in 15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15328 *) ac_try_echo=$ac_try;; 15329esac 15330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15331 (eval "$ac_try") 2>&5 15332 ac_status=$? 15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15334 (exit $ac_status); }; } && 15335 { ac_try='test -s conftest.$ac_objext' 15336 { (case "(($ac_try" in 15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15338 *) ac_try_echo=$ac_try;; 15339esac 15340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15341 (eval "$ac_try") 2>&5 15342 ac_status=$? 15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15344 (exit $ac_status); }; }; then 15345 ac_header_compiler=yes 15346else 15347 echo "$as_me: failed program was:" >&5 15348sed 's/^/| /' conftest.$ac_ext >&5 15349 15350 ac_header_compiler=no 15351fi 15352 15353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15354{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15355echo "${ECHO_T}$ac_header_compiler" >&6; } 15356 15357# Is the header present? 15358{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15360cat >conftest.$ac_ext <<_ACEOF 15361/* confdefs.h. */ 15362_ACEOF 15363cat confdefs.h >>conftest.$ac_ext 15364cat >>conftest.$ac_ext <<_ACEOF 15365/* end confdefs.h. */ 15366#include <$ac_header> 15367_ACEOF 15368if { (ac_try="$ac_cpp conftest.$ac_ext" 15369case "(($ac_try" in 15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15371 *) ac_try_echo=$ac_try;; 15372esac 15373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15375 ac_status=$? 15376 grep -v '^ *+' conftest.er1 >conftest.err 15377 rm -f conftest.er1 15378 cat conftest.err >&5 15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15380 (exit $ac_status); } >/dev/null; then 15381 if test -s conftest.err; then 15382 ac_cpp_err=$ac_c_preproc_warn_flag 15383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15384 else 15385 ac_cpp_err= 15386 fi 15387else 15388 ac_cpp_err=yes 15389fi 15390if test -z "$ac_cpp_err"; then 15391 ac_header_preproc=yes 15392else 15393 echo "$as_me: failed program was:" >&5 15394sed 's/^/| /' conftest.$ac_ext >&5 15395 15396 ac_header_preproc=no 15397fi 15398 15399rm -f conftest.err conftest.$ac_ext 15400{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15401echo "${ECHO_T}$ac_header_preproc" >&6; } 15402 15403# So? What about this header? 15404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15405 yes:no: ) 15406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15410 ac_header_preproc=yes 15411 ;; 15412 no:yes:* ) 15413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15420echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15425 ( cat <<\_ASBOX 15426## ------------------------------------ ## 15427## Report this to http://llvm.org/bugs/ ## 15428## ------------------------------------ ## 15429_ASBOX 15430 ) | sed "s/^/$as_me: WARNING: /" >&2 15431 ;; 15432esac 15433{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15435if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15436 echo $ECHO_N "(cached) $ECHO_C" >&6 15437else 15438 eval "$as_ac_Header=\$ac_header_preproc" 15439fi 15440ac_res=`eval echo '${'$as_ac_Header'}'` 15441 { echo "$as_me:$LINENO: result: $ac_res" >&5 15442echo "${ECHO_T}$ac_res" >&6; } 15443 15444fi 15445if test `eval echo '${'$as_ac_Header'}'` = yes; then 15446 cat >>confdefs.h <<_ACEOF 15447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15448_ACEOF 15449 15450fi 15451 15452done 15453 15454 15455 15456 15457 15458for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 15459do 15460as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15462 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15464if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15465 echo $ECHO_N "(cached) $ECHO_C" >&6 15466fi 15467ac_res=`eval echo '${'$as_ac_Header'}'` 15468 { echo "$as_me:$LINENO: result: $ac_res" >&5 15469echo "${ECHO_T}$ac_res" >&6; } 15470else 15471 # Is the header compilable? 15472{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15473echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15474cat >conftest.$ac_ext <<_ACEOF 15475/* confdefs.h. */ 15476_ACEOF 15477cat confdefs.h >>conftest.$ac_ext 15478cat >>conftest.$ac_ext <<_ACEOF 15479/* end confdefs.h. */ 15480$ac_includes_default 15481#include <$ac_header> 15482_ACEOF 15483rm -f conftest.$ac_objext 15484if { (ac_try="$ac_compile" 15485case "(($ac_try" in 15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15487 *) ac_try_echo=$ac_try;; 15488esac 15489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15490 (eval "$ac_compile") 2>conftest.er1 15491 ac_status=$? 15492 grep -v '^ *+' conftest.er1 >conftest.err 15493 rm -f conftest.er1 15494 cat conftest.err >&5 15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15496 (exit $ac_status); } && 15497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15498 { (case "(($ac_try" in 15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15500 *) ac_try_echo=$ac_try;; 15501esac 15502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15503 (eval "$ac_try") 2>&5 15504 ac_status=$? 15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15506 (exit $ac_status); }; } && 15507 { ac_try='test -s conftest.$ac_objext' 15508 { (case "(($ac_try" in 15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15510 *) ac_try_echo=$ac_try;; 15511esac 15512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15513 (eval "$ac_try") 2>&5 15514 ac_status=$? 15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15516 (exit $ac_status); }; }; then 15517 ac_header_compiler=yes 15518else 15519 echo "$as_me: failed program was:" >&5 15520sed 's/^/| /' conftest.$ac_ext >&5 15521 15522 ac_header_compiler=no 15523fi 15524 15525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15526{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15527echo "${ECHO_T}$ac_header_compiler" >&6; } 15528 15529# Is the header present? 15530{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15531echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15532cat >conftest.$ac_ext <<_ACEOF 15533/* confdefs.h. */ 15534_ACEOF 15535cat confdefs.h >>conftest.$ac_ext 15536cat >>conftest.$ac_ext <<_ACEOF 15537/* end confdefs.h. */ 15538#include <$ac_header> 15539_ACEOF 15540if { (ac_try="$ac_cpp conftest.$ac_ext" 15541case "(($ac_try" in 15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15543 *) ac_try_echo=$ac_try;; 15544esac 15545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15547 ac_status=$? 15548 grep -v '^ *+' conftest.er1 >conftest.err 15549 rm -f conftest.er1 15550 cat conftest.err >&5 15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15552 (exit $ac_status); } >/dev/null; then 15553 if test -s conftest.err; then 15554 ac_cpp_err=$ac_c_preproc_warn_flag 15555 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15556 else 15557 ac_cpp_err= 15558 fi 15559else 15560 ac_cpp_err=yes 15561fi 15562if test -z "$ac_cpp_err"; then 15563 ac_header_preproc=yes 15564else 15565 echo "$as_me: failed program was:" >&5 15566sed 's/^/| /' conftest.$ac_ext >&5 15567 15568 ac_header_preproc=no 15569fi 15570 15571rm -f conftest.err conftest.$ac_ext 15572{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15573echo "${ECHO_T}$ac_header_preproc" >&6; } 15574 15575# So? What about this header? 15576case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15577 yes:no: ) 15578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15579echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15581echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15582 ac_header_preproc=yes 15583 ;; 15584 no:yes:* ) 15585 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15586echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15587 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15588echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15589 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15590echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15591 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15592echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15594echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15595 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15596echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15597 ( cat <<\_ASBOX 15598## ------------------------------------ ## 15599## Report this to http://llvm.org/bugs/ ## 15600## ------------------------------------ ## 15601_ASBOX 15602 ) | sed "s/^/$as_me: WARNING: /" >&2 15603 ;; 15604esac 15605{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15607if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15608 echo $ECHO_N "(cached) $ECHO_C" >&6 15609else 15610 eval "$as_ac_Header=\$ac_header_preproc" 15611fi 15612ac_res=`eval echo '${'$as_ac_Header'}'` 15613 { echo "$as_me:$LINENO: result: $ac_res" >&5 15614echo "${ECHO_T}$ac_res" >&6; } 15615 15616fi 15617if test `eval echo '${'$as_ac_Header'}'` = yes; then 15618 cat >>confdefs.h <<_ACEOF 15619#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15620_ACEOF 15621 15622fi 15623 15624done 15625 15626 15627for ac_header in valgrind/valgrind.h 15628do 15629as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15631 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15634 echo $ECHO_N "(cached) $ECHO_C" >&6 15635fi 15636ac_res=`eval echo '${'$as_ac_Header'}'` 15637 { echo "$as_me:$LINENO: result: $ac_res" >&5 15638echo "${ECHO_T}$ac_res" >&6; } 15639else 15640 # Is the header compilable? 15641{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15642echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15643cat >conftest.$ac_ext <<_ACEOF 15644/* confdefs.h. */ 15645_ACEOF 15646cat confdefs.h >>conftest.$ac_ext 15647cat >>conftest.$ac_ext <<_ACEOF 15648/* end confdefs.h. */ 15649$ac_includes_default 15650#include <$ac_header> 15651_ACEOF 15652rm -f conftest.$ac_objext 15653if { (ac_try="$ac_compile" 15654case "(($ac_try" in 15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15656 *) ac_try_echo=$ac_try;; 15657esac 15658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15659 (eval "$ac_compile") 2>conftest.er1 15660 ac_status=$? 15661 grep -v '^ *+' conftest.er1 >conftest.err 15662 rm -f conftest.er1 15663 cat conftest.err >&5 15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15665 (exit $ac_status); } && 15666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15667 { (case "(($ac_try" in 15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15669 *) ac_try_echo=$ac_try;; 15670esac 15671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15672 (eval "$ac_try") 2>&5 15673 ac_status=$? 15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15675 (exit $ac_status); }; } && 15676 { ac_try='test -s conftest.$ac_objext' 15677 { (case "(($ac_try" in 15678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15679 *) ac_try_echo=$ac_try;; 15680esac 15681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15682 (eval "$ac_try") 2>&5 15683 ac_status=$? 15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15685 (exit $ac_status); }; }; then 15686 ac_header_compiler=yes 15687else 15688 echo "$as_me: failed program was:" >&5 15689sed 's/^/| /' conftest.$ac_ext >&5 15690 15691 ac_header_compiler=no 15692fi 15693 15694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15695{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15696echo "${ECHO_T}$ac_header_compiler" >&6; } 15697 15698# Is the header present? 15699{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15701cat >conftest.$ac_ext <<_ACEOF 15702/* confdefs.h. */ 15703_ACEOF 15704cat confdefs.h >>conftest.$ac_ext 15705cat >>conftest.$ac_ext <<_ACEOF 15706/* end confdefs.h. */ 15707#include <$ac_header> 15708_ACEOF 15709if { (ac_try="$ac_cpp conftest.$ac_ext" 15710case "(($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_cpp conftest.$ac_ext") 2>conftest.er1 15716 ac_status=$? 15717 grep -v '^ *+' conftest.er1 >conftest.err 15718 rm -f conftest.er1 15719 cat conftest.err >&5 15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15721 (exit $ac_status); } >/dev/null; then 15722 if test -s conftest.err; then 15723 ac_cpp_err=$ac_c_preproc_warn_flag 15724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15725 else 15726 ac_cpp_err= 15727 fi 15728else 15729 ac_cpp_err=yes 15730fi 15731if test -z "$ac_cpp_err"; then 15732 ac_header_preproc=yes 15733else 15734 echo "$as_me: failed program was:" >&5 15735sed 's/^/| /' conftest.$ac_ext >&5 15736 15737 ac_header_preproc=no 15738fi 15739 15740rm -f conftest.err conftest.$ac_ext 15741{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15742echo "${ECHO_T}$ac_header_preproc" >&6; } 15743 15744# So? What about this header? 15745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15746 yes:no: ) 15747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15751 ac_header_preproc=yes 15752 ;; 15753 no:yes:* ) 15754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15766 ( cat <<\_ASBOX 15767## ------------------------------------ ## 15768## Report this to http://llvm.org/bugs/ ## 15769## ------------------------------------ ## 15770_ASBOX 15771 ) | sed "s/^/$as_me: WARNING: /" >&2 15772 ;; 15773esac 15774{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15777 echo $ECHO_N "(cached) $ECHO_C" >&6 15778else 15779 eval "$as_ac_Header=\$ac_header_preproc" 15780fi 15781ac_res=`eval echo '${'$as_ac_Header'}'` 15782 { echo "$as_me:$LINENO: result: $ac_res" >&5 15783echo "${ECHO_T}$ac_res" >&6; } 15784 15785fi 15786if test `eval echo '${'$as_ac_Header'}'` = yes; then 15787 cat >>confdefs.h <<_ACEOF 15788#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15789_ACEOF 15790 15791fi 15792 15793done 15794 15795 15796for ac_header in fenv.h 15797do 15798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15800 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15803 echo $ECHO_N "(cached) $ECHO_C" >&6 15804fi 15805ac_res=`eval echo '${'$as_ac_Header'}'` 15806 { echo "$as_me:$LINENO: result: $ac_res" >&5 15807echo "${ECHO_T}$ac_res" >&6; } 15808else 15809 # Is the header compilable? 15810{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15811echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15812cat >conftest.$ac_ext <<_ACEOF 15813/* confdefs.h. */ 15814_ACEOF 15815cat confdefs.h >>conftest.$ac_ext 15816cat >>conftest.$ac_ext <<_ACEOF 15817/* end confdefs.h. */ 15818$ac_includes_default 15819#include <$ac_header> 15820_ACEOF 15821rm -f conftest.$ac_objext 15822if { (ac_try="$ac_compile" 15823case "(($ac_try" in 15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15825 *) ac_try_echo=$ac_try;; 15826esac 15827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15828 (eval "$ac_compile") 2>conftest.er1 15829 ac_status=$? 15830 grep -v '^ *+' conftest.er1 >conftest.err 15831 rm -f conftest.er1 15832 cat conftest.err >&5 15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15834 (exit $ac_status); } && 15835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15836 { (case "(($ac_try" in 15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15838 *) ac_try_echo=$ac_try;; 15839esac 15840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15841 (eval "$ac_try") 2>&5 15842 ac_status=$? 15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15844 (exit $ac_status); }; } && 15845 { ac_try='test -s conftest.$ac_objext' 15846 { (case "(($ac_try" in 15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15848 *) ac_try_echo=$ac_try;; 15849esac 15850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15851 (eval "$ac_try") 2>&5 15852 ac_status=$? 15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15854 (exit $ac_status); }; }; then 15855 ac_header_compiler=yes 15856else 15857 echo "$as_me: failed program was:" >&5 15858sed 's/^/| /' conftest.$ac_ext >&5 15859 15860 ac_header_compiler=no 15861fi 15862 15863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15864{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15865echo "${ECHO_T}$ac_header_compiler" >&6; } 15866 15867# Is the header present? 15868{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15870cat >conftest.$ac_ext <<_ACEOF 15871/* confdefs.h. */ 15872_ACEOF 15873cat confdefs.h >>conftest.$ac_ext 15874cat >>conftest.$ac_ext <<_ACEOF 15875/* end confdefs.h. */ 15876#include <$ac_header> 15877_ACEOF 15878if { (ac_try="$ac_cpp conftest.$ac_ext" 15879case "(($ac_try" in 15880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15881 *) ac_try_echo=$ac_try;; 15882esac 15883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15885 ac_status=$? 15886 grep -v '^ *+' conftest.er1 >conftest.err 15887 rm -f conftest.er1 15888 cat conftest.err >&5 15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15890 (exit $ac_status); } >/dev/null; then 15891 if test -s conftest.err; then 15892 ac_cpp_err=$ac_c_preproc_warn_flag 15893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15894 else 15895 ac_cpp_err= 15896 fi 15897else 15898 ac_cpp_err=yes 15899fi 15900if test -z "$ac_cpp_err"; then 15901 ac_header_preproc=yes 15902else 15903 echo "$as_me: failed program was:" >&5 15904sed 's/^/| /' conftest.$ac_ext >&5 15905 15906 ac_header_preproc=no 15907fi 15908 15909rm -f conftest.err conftest.$ac_ext 15910{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15911echo "${ECHO_T}$ac_header_preproc" >&6; } 15912 15913# So? What about this header? 15914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15915 yes:no: ) 15916 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15919echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15920 ac_header_preproc=yes 15921 ;; 15922 no:yes:* ) 15923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15926echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15927 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15928echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15929 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15930echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15933 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15934echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15935 ( cat <<\_ASBOX 15936## ------------------------------------ ## 15937## Report this to http://llvm.org/bugs/ ## 15938## ------------------------------------ ## 15939_ASBOX 15940 ) | sed "s/^/$as_me: WARNING: /" >&2 15941 ;; 15942esac 15943{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15945if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15946 echo $ECHO_N "(cached) $ECHO_C" >&6 15947else 15948 eval "$as_ac_Header=\$ac_header_preproc" 15949fi 15950ac_res=`eval echo '${'$as_ac_Header'}'` 15951 { echo "$as_me:$LINENO: result: $ac_res" >&5 15952echo "${ECHO_T}$ac_res" >&6; } 15953 15954fi 15955if test `eval echo '${'$as_ac_Header'}'` = yes; then 15956 cat >>confdefs.h <<_ACEOF 15957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15958_ACEOF 15959 15960fi 15961 15962done 15963 15964if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 15965 15966for ac_header in pthread.h 15967do 15968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15970 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15973 echo $ECHO_N "(cached) $ECHO_C" >&6 15974fi 15975ac_res=`eval echo '${'$as_ac_Header'}'` 15976 { echo "$as_me:$LINENO: result: $ac_res" >&5 15977echo "${ECHO_T}$ac_res" >&6; } 15978else 15979 # Is the header compilable? 15980{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15981echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15982cat >conftest.$ac_ext <<_ACEOF 15983/* confdefs.h. */ 15984_ACEOF 15985cat confdefs.h >>conftest.$ac_ext 15986cat >>conftest.$ac_ext <<_ACEOF 15987/* end confdefs.h. */ 15988$ac_includes_default 15989#include <$ac_header> 15990_ACEOF 15991rm -f conftest.$ac_objext 15992if { (ac_try="$ac_compile" 15993case "(($ac_try" in 15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15995 *) ac_try_echo=$ac_try;; 15996esac 15997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15998 (eval "$ac_compile") 2>conftest.er1 15999 ac_status=$? 16000 grep -v '^ *+' conftest.er1 >conftest.err 16001 rm -f conftest.er1 16002 cat conftest.err >&5 16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16004 (exit $ac_status); } && 16005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16006 { (case "(($ac_try" in 16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16008 *) ac_try_echo=$ac_try;; 16009esac 16010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16011 (eval "$ac_try") 2>&5 16012 ac_status=$? 16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16014 (exit $ac_status); }; } && 16015 { ac_try='test -s conftest.$ac_objext' 16016 { (case "(($ac_try" in 16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16018 *) ac_try_echo=$ac_try;; 16019esac 16020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16021 (eval "$ac_try") 2>&5 16022 ac_status=$? 16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16024 (exit $ac_status); }; }; then 16025 ac_header_compiler=yes 16026else 16027 echo "$as_me: failed program was:" >&5 16028sed 's/^/| /' conftest.$ac_ext >&5 16029 16030 ac_header_compiler=no 16031fi 16032 16033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16034{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16035echo "${ECHO_T}$ac_header_compiler" >&6; } 16036 16037# Is the header present? 16038{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16040cat >conftest.$ac_ext <<_ACEOF 16041/* confdefs.h. */ 16042_ACEOF 16043cat confdefs.h >>conftest.$ac_ext 16044cat >>conftest.$ac_ext <<_ACEOF 16045/* end confdefs.h. */ 16046#include <$ac_header> 16047_ACEOF 16048if { (ac_try="$ac_cpp conftest.$ac_ext" 16049case "(($ac_try" in 16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16051 *) ac_try_echo=$ac_try;; 16052esac 16053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16055 ac_status=$? 16056 grep -v '^ *+' conftest.er1 >conftest.err 16057 rm -f conftest.er1 16058 cat conftest.err >&5 16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16060 (exit $ac_status); } >/dev/null; then 16061 if test -s conftest.err; then 16062 ac_cpp_err=$ac_c_preproc_warn_flag 16063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16064 else 16065 ac_cpp_err= 16066 fi 16067else 16068 ac_cpp_err=yes 16069fi 16070if test -z "$ac_cpp_err"; then 16071 ac_header_preproc=yes 16072else 16073 echo "$as_me: failed program was:" >&5 16074sed 's/^/| /' conftest.$ac_ext >&5 16075 16076 ac_header_preproc=no 16077fi 16078 16079rm -f conftest.err conftest.$ac_ext 16080{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16081echo "${ECHO_T}$ac_header_preproc" >&6; } 16082 16083# So? What about this header? 16084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16085 yes:no: ) 16086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16090 ac_header_preproc=yes 16091 ;; 16092 no:yes:* ) 16093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16096echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16100echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16105 ( cat <<\_ASBOX 16106## ------------------------------------ ## 16107## Report this to http://llvm.org/bugs/ ## 16108## ------------------------------------ ## 16109_ASBOX 16110 ) | sed "s/^/$as_me: WARNING: /" >&2 16111 ;; 16112esac 16113{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16116 echo $ECHO_N "(cached) $ECHO_C" >&6 16117else 16118 eval "$as_ac_Header=\$ac_header_preproc" 16119fi 16120ac_res=`eval echo '${'$as_ac_Header'}'` 16121 { echo "$as_me:$LINENO: result: $ac_res" >&5 16122echo "${ECHO_T}$ac_res" >&6; } 16123 16124fi 16125if test `eval echo '${'$as_ac_Header'}'` = yes; then 16126 cat >>confdefs.h <<_ACEOF 16127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16128_ACEOF 16129 HAVE_PTHREAD=1 16130 16131else 16132 HAVE_PTHREAD=0 16133 16134fi 16135 16136done 16137 16138else 16139 HAVE_PTHREAD=0 16140 16141fi 16142 16143if test "$llvm_cv_enable_libffi" = "yes" ; then 16144 16145 16146for ac_header in ffi.h ffi/ffi.h 16147do 16148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16150 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16153 echo $ECHO_N "(cached) $ECHO_C" >&6 16154fi 16155ac_res=`eval echo '${'$as_ac_Header'}'` 16156 { echo "$as_me:$LINENO: result: $ac_res" >&5 16157echo "${ECHO_T}$ac_res" >&6; } 16158else 16159 # Is the header compilable? 16160{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16162cat >conftest.$ac_ext <<_ACEOF 16163/* confdefs.h. */ 16164_ACEOF 16165cat confdefs.h >>conftest.$ac_ext 16166cat >>conftest.$ac_ext <<_ACEOF 16167/* end confdefs.h. */ 16168$ac_includes_default 16169#include <$ac_header> 16170_ACEOF 16171rm -f conftest.$ac_objext 16172if { (ac_try="$ac_compile" 16173case "(($ac_try" in 16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16175 *) ac_try_echo=$ac_try;; 16176esac 16177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16178 (eval "$ac_compile") 2>conftest.er1 16179 ac_status=$? 16180 grep -v '^ *+' conftest.er1 >conftest.err 16181 rm -f conftest.er1 16182 cat conftest.err >&5 16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16184 (exit $ac_status); } && 16185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16186 { (case "(($ac_try" in 16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16188 *) ac_try_echo=$ac_try;; 16189esac 16190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16191 (eval "$ac_try") 2>&5 16192 ac_status=$? 16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16194 (exit $ac_status); }; } && 16195 { ac_try='test -s conftest.$ac_objext' 16196 { (case "(($ac_try" in 16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16198 *) ac_try_echo=$ac_try;; 16199esac 16200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16201 (eval "$ac_try") 2>&5 16202 ac_status=$? 16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16204 (exit $ac_status); }; }; then 16205 ac_header_compiler=yes 16206else 16207 echo "$as_me: failed program was:" >&5 16208sed 's/^/| /' conftest.$ac_ext >&5 16209 16210 ac_header_compiler=no 16211fi 16212 16213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16215echo "${ECHO_T}$ac_header_compiler" >&6; } 16216 16217# Is the header present? 16218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16220cat >conftest.$ac_ext <<_ACEOF 16221/* confdefs.h. */ 16222_ACEOF 16223cat confdefs.h >>conftest.$ac_ext 16224cat >>conftest.$ac_ext <<_ACEOF 16225/* end confdefs.h. */ 16226#include <$ac_header> 16227_ACEOF 16228if { (ac_try="$ac_cpp conftest.$ac_ext" 16229case "(($ac_try" in 16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16231 *) ac_try_echo=$ac_try;; 16232esac 16233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16235 ac_status=$? 16236 grep -v '^ *+' conftest.er1 >conftest.err 16237 rm -f conftest.er1 16238 cat conftest.err >&5 16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16240 (exit $ac_status); } >/dev/null; then 16241 if test -s conftest.err; then 16242 ac_cpp_err=$ac_c_preproc_warn_flag 16243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16244 else 16245 ac_cpp_err= 16246 fi 16247else 16248 ac_cpp_err=yes 16249fi 16250if test -z "$ac_cpp_err"; then 16251 ac_header_preproc=yes 16252else 16253 echo "$as_me: failed program was:" >&5 16254sed 's/^/| /' conftest.$ac_ext >&5 16255 16256 ac_header_preproc=no 16257fi 16258 16259rm -f conftest.err conftest.$ac_ext 16260{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16261echo "${ECHO_T}$ac_header_preproc" >&6; } 16262 16263# So? What about this header? 16264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16265 yes:no: ) 16266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16270 ac_header_preproc=yes 16271 ;; 16272 no:yes:* ) 16273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16276echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16280echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16285 ( cat <<\_ASBOX 16286## ------------------------------------ ## 16287## Report this to http://llvm.org/bugs/ ## 16288## ------------------------------------ ## 16289_ASBOX 16290 ) | sed "s/^/$as_me: WARNING: /" >&2 16291 ;; 16292esac 16293{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16296 echo $ECHO_N "(cached) $ECHO_C" >&6 16297else 16298 eval "$as_ac_Header=\$ac_header_preproc" 16299fi 16300ac_res=`eval echo '${'$as_ac_Header'}'` 16301 { echo "$as_me:$LINENO: result: $ac_res" >&5 16302echo "${ECHO_T}$ac_res" >&6; } 16303 16304fi 16305if test `eval echo '${'$as_ac_Header'}'` = yes; then 16306 cat >>confdefs.h <<_ACEOF 16307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16308_ACEOF 16309 16310fi 16311 16312done 16313 16314fi 16315 16316 16317for ac_header in CrashReporterClient.h 16318do 16319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 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 16325fi 16326ac_res=`eval echo '${'$as_ac_Header'}'` 16327 { echo "$as_me:$LINENO: result: $ac_res" >&5 16328echo "${ECHO_T}$ac_res" >&6; } 16329else 16330 # Is the header compilable? 16331{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16332echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16333cat >conftest.$ac_ext <<_ACEOF 16334/* confdefs.h. */ 16335_ACEOF 16336cat confdefs.h >>conftest.$ac_ext 16337cat >>conftest.$ac_ext <<_ACEOF 16338/* end confdefs.h. */ 16339$ac_includes_default 16340#include <$ac_header> 16341_ACEOF 16342rm -f conftest.$ac_objext 16343if { (ac_try="$ac_compile" 16344case "(($ac_try" in 16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16346 *) ac_try_echo=$ac_try;; 16347esac 16348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16349 (eval "$ac_compile") 2>conftest.er1 16350 ac_status=$? 16351 grep -v '^ *+' conftest.er1 >conftest.err 16352 rm -f conftest.er1 16353 cat conftest.err >&5 16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16355 (exit $ac_status); } && 16356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16357 { (case "(($ac_try" in 16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16359 *) ac_try_echo=$ac_try;; 16360esac 16361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16362 (eval "$ac_try") 2>&5 16363 ac_status=$? 16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16365 (exit $ac_status); }; } && 16366 { ac_try='test -s conftest.$ac_objext' 16367 { (case "(($ac_try" in 16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16369 *) ac_try_echo=$ac_try;; 16370esac 16371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16372 (eval "$ac_try") 2>&5 16373 ac_status=$? 16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16375 (exit $ac_status); }; }; then 16376 ac_header_compiler=yes 16377else 16378 echo "$as_me: failed program was:" >&5 16379sed 's/^/| /' conftest.$ac_ext >&5 16380 16381 ac_header_compiler=no 16382fi 16383 16384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16385{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16386echo "${ECHO_T}$ac_header_compiler" >&6; } 16387 16388# Is the header present? 16389{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16391cat >conftest.$ac_ext <<_ACEOF 16392/* confdefs.h. */ 16393_ACEOF 16394cat confdefs.h >>conftest.$ac_ext 16395cat >>conftest.$ac_ext <<_ACEOF 16396/* end confdefs.h. */ 16397#include <$ac_header> 16398_ACEOF 16399if { (ac_try="$ac_cpp conftest.$ac_ext" 16400case "(($ac_try" in 16401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16402 *) ac_try_echo=$ac_try;; 16403esac 16404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16406 ac_status=$? 16407 grep -v '^ *+' conftest.er1 >conftest.err 16408 rm -f conftest.er1 16409 cat conftest.err >&5 16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16411 (exit $ac_status); } >/dev/null; then 16412 if test -s conftest.err; then 16413 ac_cpp_err=$ac_c_preproc_warn_flag 16414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16415 else 16416 ac_cpp_err= 16417 fi 16418else 16419 ac_cpp_err=yes 16420fi 16421if test -z "$ac_cpp_err"; then 16422 ac_header_preproc=yes 16423else 16424 echo "$as_me: failed program was:" >&5 16425sed 's/^/| /' conftest.$ac_ext >&5 16426 16427 ac_header_preproc=no 16428fi 16429 16430rm -f conftest.err conftest.$ac_ext 16431{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16432echo "${ECHO_T}$ac_header_preproc" >&6; } 16433 16434# So? What about this header? 16435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16436 yes:no: ) 16437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16441 ac_header_preproc=yes 16442 ;; 16443 no:yes:* ) 16444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16447echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16451echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16456 ( cat <<\_ASBOX 16457## ------------------------------------ ## 16458## Report this to http://llvm.org/bugs/ ## 16459## ------------------------------------ ## 16460_ASBOX 16461 ) | sed "s/^/$as_me: WARNING: /" >&2 16462 ;; 16463esac 16464{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16467 echo $ECHO_N "(cached) $ECHO_C" >&6 16468else 16469 eval "$as_ac_Header=\$ac_header_preproc" 16470fi 16471ac_res=`eval echo '${'$as_ac_Header'}'` 16472 { echo "$as_me:$LINENO: result: $ac_res" >&5 16473echo "${ECHO_T}$ac_res" >&6; } 16474 16475fi 16476if test `eval echo '${'$as_ac_Header'}'` = yes; then 16477 cat >>confdefs.h <<_ACEOF 16478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16479_ACEOF 16480 16481fi 16482 16483done 16484 16485 16486{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 16487echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 16488cat >conftest.$ac_ext <<_ACEOF 16489 16490 /* confdefs.h. */ 16491_ACEOF 16492cat confdefs.h >>conftest.$ac_ext 16493cat >>conftest.$ac_ext <<_ACEOF 16494/* end confdefs.h. */ 16495 16496 extern const char *__crashreporter_info__; 16497 int main() { 16498 __crashreporter_info__ = "test"; 16499 return 0; 16500 } 16501 16502 16503_ACEOF 16504rm -f conftest.$ac_objext conftest$ac_exeext 16505if { (ac_try="$ac_link" 16506case "(($ac_try" in 16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16508 *) ac_try_echo=$ac_try;; 16509esac 16510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16511 (eval "$ac_link") 2>conftest.er1 16512 ac_status=$? 16513 grep -v '^ *+' conftest.er1 >conftest.err 16514 rm -f conftest.er1 16515 cat conftest.err >&5 16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16517 (exit $ac_status); } && 16518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16519 { (case "(($ac_try" in 16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16521 *) ac_try_echo=$ac_try;; 16522esac 16523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16524 (eval "$ac_try") 2>&5 16525 ac_status=$? 16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16527 (exit $ac_status); }; } && 16528 { ac_try='test -s conftest$ac_exeext' 16529 { (case "(($ac_try" in 16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16531 *) ac_try_echo=$ac_try;; 16532esac 16533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16534 (eval "$ac_try") 2>&5 16535 ac_status=$? 16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16537 (exit $ac_status); }; }; then 16538 16539 { echo "$as_me:$LINENO: result: yes" >&5 16540echo "${ECHO_T}yes" >&6; } 16541 16542cat >>confdefs.h <<\_ACEOF 16543#define HAVE_CRASHREPORTER_INFO 1 16544_ACEOF 16545 16546 16547else 16548 echo "$as_me: failed program was:" >&5 16549sed 's/^/| /' conftest.$ac_ext >&5 16550 16551 16552 { echo "$as_me:$LINENO: result: no" >&5 16553echo "${ECHO_T}no" >&6; } 16554 16555cat >>confdefs.h <<\_ACEOF 16556#define HAVE_CRASHREPORTER_INFO 0 16557_ACEOF 16558 16559 16560fi 16561 16562rm -f core conftest.err conftest.$ac_objext \ 16563 conftest$ac_exeext conftest.$ac_ext 16564 16565 16566 16567 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 16568echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 16569if test "${ac_cv_huge_val_sanity+set}" = set; then 16570 echo $ECHO_N "(cached) $ECHO_C" >&6 16571else 16572 16573 ac_ext=cpp 16574ac_cpp='$CXXCPP $CPPFLAGS' 16575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16578 16579 ac_save_CXXFLAGS=$CXXFLAGS 16580 CXXFLAGS="$CXXFLAGS -pedantic" 16581 if test "$cross_compiling" = yes; then 16582 ac_cv_huge_val_sanity=yes 16583else 16584 cat >conftest.$ac_ext <<_ACEOF 16585/* confdefs.h. */ 16586_ACEOF 16587cat confdefs.h >>conftest.$ac_ext 16588cat >>conftest.$ac_ext <<_ACEOF 16589/* end confdefs.h. */ 16590#include <math.h> 16591int 16592main () 16593{ 16594double x = HUGE_VAL; return x != x; 16595 ; 16596 return 0; 16597} 16598_ACEOF 16599rm -f conftest$ac_exeext 16600if { (ac_try="$ac_link" 16601case "(($ac_try" in 16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16603 *) ac_try_echo=$ac_try;; 16604esac 16605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16606 (eval "$ac_link") 2>&5 16607 ac_status=$? 16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16610 { (case "(($ac_try" in 16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16612 *) ac_try_echo=$ac_try;; 16613esac 16614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16615 (eval "$ac_try") 2>&5 16616 ac_status=$? 16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16618 (exit $ac_status); }; }; then 16619 ac_cv_huge_val_sanity=yes 16620else 16621 echo "$as_me: program exited with status $ac_status" >&5 16622echo "$as_me: failed program was:" >&5 16623sed 's/^/| /' conftest.$ac_ext >&5 16624 16625( exit $ac_status ) 16626ac_cv_huge_val_sanity=no 16627fi 16628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16629fi 16630 16631 16632 CXXFLAGS=$ac_save_CXXFLAGS 16633 ac_ext=c 16634ac_cpp='$CPP $CPPFLAGS' 16635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16637ac_compiler_gnu=$ac_cv_c_compiler_gnu 16638 16639 16640fi 16641{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16642echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16643 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16644 16645 16646{ echo "$as_me:$LINENO: checking for pid_t" >&5 16647echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16648if test "${ac_cv_type_pid_t+set}" = set; then 16649 echo $ECHO_N "(cached) $ECHO_C" >&6 16650else 16651 cat >conftest.$ac_ext <<_ACEOF 16652/* confdefs.h. */ 16653_ACEOF 16654cat confdefs.h >>conftest.$ac_ext 16655cat >>conftest.$ac_ext <<_ACEOF 16656/* end confdefs.h. */ 16657$ac_includes_default 16658typedef pid_t ac__type_new_; 16659int 16660main () 16661{ 16662if ((ac__type_new_ *) 0) 16663 return 0; 16664if (sizeof (ac__type_new_)) 16665 return 0; 16666 ; 16667 return 0; 16668} 16669_ACEOF 16670rm -f conftest.$ac_objext 16671if { (ac_try="$ac_compile" 16672case "(($ac_try" in 16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16674 *) ac_try_echo=$ac_try;; 16675esac 16676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16677 (eval "$ac_compile") 2>conftest.er1 16678 ac_status=$? 16679 grep -v '^ *+' conftest.er1 >conftest.err 16680 rm -f conftest.er1 16681 cat conftest.err >&5 16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16683 (exit $ac_status); } && 16684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16685 { (case "(($ac_try" in 16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16687 *) ac_try_echo=$ac_try;; 16688esac 16689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16690 (eval "$ac_try") 2>&5 16691 ac_status=$? 16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16693 (exit $ac_status); }; } && 16694 { ac_try='test -s conftest.$ac_objext' 16695 { (case "(($ac_try" in 16696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16697 *) ac_try_echo=$ac_try;; 16698esac 16699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16700 (eval "$ac_try") 2>&5 16701 ac_status=$? 16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16703 (exit $ac_status); }; }; then 16704 ac_cv_type_pid_t=yes 16705else 16706 echo "$as_me: failed program was:" >&5 16707sed 's/^/| /' conftest.$ac_ext >&5 16708 16709 ac_cv_type_pid_t=no 16710fi 16711 16712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16713fi 16714{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16715echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16716if test $ac_cv_type_pid_t = yes; then 16717 : 16718else 16719 16720cat >>confdefs.h <<_ACEOF 16721#define pid_t int 16722_ACEOF 16723 16724fi 16725 16726{ echo "$as_me:$LINENO: checking for size_t" >&5 16727echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 16728if test "${ac_cv_type_size_t+set}" = set; then 16729 echo $ECHO_N "(cached) $ECHO_C" >&6 16730else 16731 cat >conftest.$ac_ext <<_ACEOF 16732/* confdefs.h. */ 16733_ACEOF 16734cat confdefs.h >>conftest.$ac_ext 16735cat >>conftest.$ac_ext <<_ACEOF 16736/* end confdefs.h. */ 16737$ac_includes_default 16738typedef size_t ac__type_new_; 16739int 16740main () 16741{ 16742if ((ac__type_new_ *) 0) 16743 return 0; 16744if (sizeof (ac__type_new_)) 16745 return 0; 16746 ; 16747 return 0; 16748} 16749_ACEOF 16750rm -f conftest.$ac_objext 16751if { (ac_try="$ac_compile" 16752case "(($ac_try" in 16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16754 *) ac_try_echo=$ac_try;; 16755esac 16756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16757 (eval "$ac_compile") 2>conftest.er1 16758 ac_status=$? 16759 grep -v '^ *+' conftest.er1 >conftest.err 16760 rm -f conftest.er1 16761 cat conftest.err >&5 16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16763 (exit $ac_status); } && 16764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16765 { (case "(($ac_try" in 16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16767 *) ac_try_echo=$ac_try;; 16768esac 16769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16770 (eval "$ac_try") 2>&5 16771 ac_status=$? 16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16773 (exit $ac_status); }; } && 16774 { ac_try='test -s conftest.$ac_objext' 16775 { (case "(($ac_try" in 16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16777 *) ac_try_echo=$ac_try;; 16778esac 16779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16780 (eval "$ac_try") 2>&5 16781 ac_status=$? 16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16783 (exit $ac_status); }; }; then 16784 ac_cv_type_size_t=yes 16785else 16786 echo "$as_me: failed program was:" >&5 16787sed 's/^/| /' conftest.$ac_ext >&5 16788 16789 ac_cv_type_size_t=no 16790fi 16791 16792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16793fi 16794{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16795echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 16796if test $ac_cv_type_size_t = yes; then 16797 : 16798else 16799 16800cat >>confdefs.h <<_ACEOF 16801#define size_t unsigned int 16802_ACEOF 16803 16804fi 16805 16806 16807cat >>confdefs.h <<_ACEOF 16808#define RETSIGTYPE void 16809_ACEOF 16810 16811{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 16812echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 16813if test "${ac_cv_struct_tm+set}" = set; then 16814 echo $ECHO_N "(cached) $ECHO_C" >&6 16815else 16816 cat >conftest.$ac_ext <<_ACEOF 16817/* confdefs.h. */ 16818_ACEOF 16819cat confdefs.h >>conftest.$ac_ext 16820cat >>conftest.$ac_ext <<_ACEOF 16821/* end confdefs.h. */ 16822#include <sys/types.h> 16823#include <time.h> 16824 16825int 16826main () 16827{ 16828struct tm *tp; tp->tm_sec; 16829 ; 16830 return 0; 16831} 16832_ACEOF 16833rm -f conftest.$ac_objext 16834if { (ac_try="$ac_compile" 16835case "(($ac_try" in 16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16837 *) ac_try_echo=$ac_try;; 16838esac 16839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16840 (eval "$ac_compile") 2>conftest.er1 16841 ac_status=$? 16842 grep -v '^ *+' conftest.er1 >conftest.err 16843 rm -f conftest.er1 16844 cat conftest.err >&5 16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16846 (exit $ac_status); } && 16847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16848 { (case "(($ac_try" in 16849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16850 *) ac_try_echo=$ac_try;; 16851esac 16852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16853 (eval "$ac_try") 2>&5 16854 ac_status=$? 16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16856 (exit $ac_status); }; } && 16857 { ac_try='test -s conftest.$ac_objext' 16858 { (case "(($ac_try" in 16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16860 *) ac_try_echo=$ac_try;; 16861esac 16862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16863 (eval "$ac_try") 2>&5 16864 ac_status=$? 16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16866 (exit $ac_status); }; }; then 16867 ac_cv_struct_tm=time.h 16868else 16869 echo "$as_me: failed program was:" >&5 16870sed 's/^/| /' conftest.$ac_ext >&5 16871 16872 ac_cv_struct_tm=sys/time.h 16873fi 16874 16875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16876fi 16877{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 16878echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 16879if test $ac_cv_struct_tm = sys/time.h; then 16880 16881cat >>confdefs.h <<\_ACEOF 16882#define TM_IN_SYS_TIME 1 16883_ACEOF 16884 16885fi 16886 16887{ echo "$as_me:$LINENO: checking for int64_t" >&5 16888echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 16889if test "${ac_cv_type_int64_t+set}" = set; then 16890 echo $ECHO_N "(cached) $ECHO_C" >&6 16891else 16892 cat >conftest.$ac_ext <<_ACEOF 16893/* confdefs.h. */ 16894_ACEOF 16895cat confdefs.h >>conftest.$ac_ext 16896cat >>conftest.$ac_ext <<_ACEOF 16897/* end confdefs.h. */ 16898$ac_includes_default 16899typedef int64_t ac__type_new_; 16900int 16901main () 16902{ 16903if ((ac__type_new_ *) 0) 16904 return 0; 16905if (sizeof (ac__type_new_)) 16906 return 0; 16907 ; 16908 return 0; 16909} 16910_ACEOF 16911rm -f conftest.$ac_objext 16912if { (ac_try="$ac_compile" 16913case "(($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_compile") 2>conftest.er1 16919 ac_status=$? 16920 grep -v '^ *+' conftest.er1 >conftest.err 16921 rm -f conftest.er1 16922 cat conftest.err >&5 16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16924 (exit $ac_status); } && 16925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16926 { (case "(($ac_try" in 16927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16928 *) ac_try_echo=$ac_try;; 16929esac 16930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16931 (eval "$ac_try") 2>&5 16932 ac_status=$? 16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16934 (exit $ac_status); }; } && 16935 { ac_try='test -s conftest.$ac_objext' 16936 { (case "(($ac_try" in 16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16938 *) ac_try_echo=$ac_try;; 16939esac 16940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16941 (eval "$ac_try") 2>&5 16942 ac_status=$? 16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16944 (exit $ac_status); }; }; then 16945 ac_cv_type_int64_t=yes 16946else 16947 echo "$as_me: failed program was:" >&5 16948sed 's/^/| /' conftest.$ac_ext >&5 16949 16950 ac_cv_type_int64_t=no 16951fi 16952 16953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16954fi 16955{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 16956echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 16957if test $ac_cv_type_int64_t = yes; then 16958 16959cat >>confdefs.h <<_ACEOF 16960#define HAVE_INT64_T 1 16961_ACEOF 16962 16963 16964else 16965 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 16966echo "$as_me: error: Type int64_t required but not found" >&2;} 16967 { (exit 1); exit 1; }; } 16968fi 16969 16970{ echo "$as_me:$LINENO: checking for uint64_t" >&5 16971echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 16972if test "${ac_cv_type_uint64_t+set}" = set; then 16973 echo $ECHO_N "(cached) $ECHO_C" >&6 16974else 16975 cat >conftest.$ac_ext <<_ACEOF 16976/* confdefs.h. */ 16977_ACEOF 16978cat confdefs.h >>conftest.$ac_ext 16979cat >>conftest.$ac_ext <<_ACEOF 16980/* end confdefs.h. */ 16981$ac_includes_default 16982typedef uint64_t ac__type_new_; 16983int 16984main () 16985{ 16986if ((ac__type_new_ *) 0) 16987 return 0; 16988if (sizeof (ac__type_new_)) 16989 return 0; 16990 ; 16991 return 0; 16992} 16993_ACEOF 16994rm -f conftest.$ac_objext 16995if { (ac_try="$ac_compile" 16996case "(($ac_try" in 16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16998 *) ac_try_echo=$ac_try;; 16999esac 17000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17001 (eval "$ac_compile") 2>conftest.er1 17002 ac_status=$? 17003 grep -v '^ *+' conftest.er1 >conftest.err 17004 rm -f conftest.er1 17005 cat conftest.err >&5 17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17007 (exit $ac_status); } && 17008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17009 { (case "(($ac_try" in 17010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17011 *) ac_try_echo=$ac_try;; 17012esac 17013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17014 (eval "$ac_try") 2>&5 17015 ac_status=$? 17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17017 (exit $ac_status); }; } && 17018 { ac_try='test -s conftest.$ac_objext' 17019 { (case "(($ac_try" in 17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17021 *) ac_try_echo=$ac_try;; 17022esac 17023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17024 (eval "$ac_try") 2>&5 17025 ac_status=$? 17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17027 (exit $ac_status); }; }; then 17028 ac_cv_type_uint64_t=yes 17029else 17030 echo "$as_me: failed program was:" >&5 17031sed 's/^/| /' conftest.$ac_ext >&5 17032 17033 ac_cv_type_uint64_t=no 17034fi 17035 17036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17037fi 17038{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 17039echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 17040if test $ac_cv_type_uint64_t = yes; then 17041 17042cat >>confdefs.h <<_ACEOF 17043#define HAVE_UINT64_T 1 17044_ACEOF 17045 17046 17047else 17048 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 17049echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 17050if test "${ac_cv_type_u_int64_t+set}" = set; then 17051 echo $ECHO_N "(cached) $ECHO_C" >&6 17052else 17053 cat >conftest.$ac_ext <<_ACEOF 17054/* confdefs.h. */ 17055_ACEOF 17056cat confdefs.h >>conftest.$ac_ext 17057cat >>conftest.$ac_ext <<_ACEOF 17058/* end confdefs.h. */ 17059$ac_includes_default 17060typedef u_int64_t ac__type_new_; 17061int 17062main () 17063{ 17064if ((ac__type_new_ *) 0) 17065 return 0; 17066if (sizeof (ac__type_new_)) 17067 return 0; 17068 ; 17069 return 0; 17070} 17071_ACEOF 17072rm -f conftest.$ac_objext 17073if { (ac_try="$ac_compile" 17074case "(($ac_try" in 17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17076 *) ac_try_echo=$ac_try;; 17077esac 17078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17079 (eval "$ac_compile") 2>conftest.er1 17080 ac_status=$? 17081 grep -v '^ *+' conftest.er1 >conftest.err 17082 rm -f conftest.er1 17083 cat conftest.err >&5 17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17085 (exit $ac_status); } && 17086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17087 { (case "(($ac_try" in 17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17089 *) ac_try_echo=$ac_try;; 17090esac 17091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17092 (eval "$ac_try") 2>&5 17093 ac_status=$? 17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17095 (exit $ac_status); }; } && 17096 { ac_try='test -s conftest.$ac_objext' 17097 { (case "(($ac_try" in 17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17099 *) ac_try_echo=$ac_try;; 17100esac 17101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17102 (eval "$ac_try") 2>&5 17103 ac_status=$? 17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17105 (exit $ac_status); }; }; then 17106 ac_cv_type_u_int64_t=yes 17107else 17108 echo "$as_me: failed program was:" >&5 17109sed 's/^/| /' conftest.$ac_ext >&5 17110 17111 ac_cv_type_u_int64_t=no 17112fi 17113 17114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17115fi 17116{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 17117echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 17118if test $ac_cv_type_u_int64_t = yes; then 17119 17120cat >>confdefs.h <<_ACEOF 17121#define HAVE_U_INT64_T 1 17122_ACEOF 17123 17124 17125else 17126 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 17127echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 17128 { (exit 1); exit 1; }; } 17129fi 17130 17131fi 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 17143do 17144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17145{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17148 echo $ECHO_N "(cached) $ECHO_C" >&6 17149else 17150 cat >conftest.$ac_ext <<_ACEOF 17151/* confdefs.h. */ 17152_ACEOF 17153cat confdefs.h >>conftest.$ac_ext 17154cat >>conftest.$ac_ext <<_ACEOF 17155/* end confdefs.h. */ 17156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17157 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17158#define $ac_func innocuous_$ac_func 17159 17160/* System header to define __stub macros and hopefully few prototypes, 17161 which can conflict with char $ac_func (); below. 17162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17163 <limits.h> exists even on freestanding compilers. */ 17164 17165#ifdef __STDC__ 17166# include <limits.h> 17167#else 17168# include <assert.h> 17169#endif 17170 17171#undef $ac_func 17172 17173/* Override any GCC internal prototype to avoid an error. 17174 Use char because int might match the return type of a GCC 17175 builtin and then its argument prototype would still apply. */ 17176#ifdef __cplusplus 17177extern "C" 17178#endif 17179char $ac_func (); 17180/* The GNU C library defines this for functions which it implements 17181 to always fail with ENOSYS. Some functions are actually named 17182 something starting with __ and the normal name is an alias. */ 17183#if defined __stub_$ac_func || defined __stub___$ac_func 17184choke me 17185#endif 17186 17187int 17188main () 17189{ 17190return $ac_func (); 17191 ; 17192 return 0; 17193} 17194_ACEOF 17195rm -f conftest.$ac_objext conftest$ac_exeext 17196if { (ac_try="$ac_link" 17197case "(($ac_try" in 17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17199 *) ac_try_echo=$ac_try;; 17200esac 17201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17202 (eval "$ac_link") 2>conftest.er1 17203 ac_status=$? 17204 grep -v '^ *+' conftest.er1 >conftest.err 17205 rm -f conftest.er1 17206 cat conftest.err >&5 17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17208 (exit $ac_status); } && 17209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17210 { (case "(($ac_try" in 17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17212 *) ac_try_echo=$ac_try;; 17213esac 17214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17215 (eval "$ac_try") 2>&5 17216 ac_status=$? 17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17218 (exit $ac_status); }; } && 17219 { ac_try='test -s conftest$ac_exeext' 17220 { (case "(($ac_try" in 17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17222 *) ac_try_echo=$ac_try;; 17223esac 17224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17225 (eval "$ac_try") 2>&5 17226 ac_status=$? 17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17228 (exit $ac_status); }; }; then 17229 eval "$as_ac_var=yes" 17230else 17231 echo "$as_me: failed program was:" >&5 17232sed 's/^/| /' conftest.$ac_ext >&5 17233 17234 eval "$as_ac_var=no" 17235fi 17236 17237rm -f core conftest.err conftest.$ac_objext \ 17238 conftest$ac_exeext conftest.$ac_ext 17239fi 17240ac_res=`eval echo '${'$as_ac_var'}'` 17241 { echo "$as_me:$LINENO: result: $ac_res" >&5 17242echo "${ECHO_T}$ac_res" >&6; } 17243if test `eval echo '${'$as_ac_var'}'` = yes; then 17244 cat >>confdefs.h <<_ACEOF 17245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17246_ACEOF 17247 17248fi 17249done 17250 17251 17252 17253 17254 17255for ac_func in powf fmodf strtof round 17256do 17257as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17258{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17259echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17260if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17261 echo $ECHO_N "(cached) $ECHO_C" >&6 17262else 17263 cat >conftest.$ac_ext <<_ACEOF 17264/* confdefs.h. */ 17265_ACEOF 17266cat confdefs.h >>conftest.$ac_ext 17267cat >>conftest.$ac_ext <<_ACEOF 17268/* end confdefs.h. */ 17269/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17270 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17271#define $ac_func innocuous_$ac_func 17272 17273/* System header to define __stub macros and hopefully few prototypes, 17274 which can conflict with char $ac_func (); below. 17275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17276 <limits.h> exists even on freestanding compilers. */ 17277 17278#ifdef __STDC__ 17279# include <limits.h> 17280#else 17281# include <assert.h> 17282#endif 17283 17284#undef $ac_func 17285 17286/* Override any GCC internal prototype to avoid an error. 17287 Use char because int might match the return type of a GCC 17288 builtin and then its argument prototype would still apply. */ 17289#ifdef __cplusplus 17290extern "C" 17291#endif 17292char $ac_func (); 17293/* The GNU C library defines this for functions which it implements 17294 to always fail with ENOSYS. Some functions are actually named 17295 something starting with __ and the normal name is an alias. */ 17296#if defined __stub_$ac_func || defined __stub___$ac_func 17297choke me 17298#endif 17299 17300int 17301main () 17302{ 17303return $ac_func (); 17304 ; 17305 return 0; 17306} 17307_ACEOF 17308rm -f conftest.$ac_objext conftest$ac_exeext 17309if { (ac_try="$ac_link" 17310case "(($ac_try" in 17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17312 *) ac_try_echo=$ac_try;; 17313esac 17314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17315 (eval "$ac_link") 2>conftest.er1 17316 ac_status=$? 17317 grep -v '^ *+' conftest.er1 >conftest.err 17318 rm -f conftest.er1 17319 cat conftest.err >&5 17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17321 (exit $ac_status); } && 17322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17323 { (case "(($ac_try" in 17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17325 *) ac_try_echo=$ac_try;; 17326esac 17327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17328 (eval "$ac_try") 2>&5 17329 ac_status=$? 17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17331 (exit $ac_status); }; } && 17332 { ac_try='test -s conftest$ac_exeext' 17333 { (case "(($ac_try" in 17334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17335 *) ac_try_echo=$ac_try;; 17336esac 17337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17338 (eval "$ac_try") 2>&5 17339 ac_status=$? 17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17341 (exit $ac_status); }; }; then 17342 eval "$as_ac_var=yes" 17343else 17344 echo "$as_me: failed program was:" >&5 17345sed 's/^/| /' conftest.$ac_ext >&5 17346 17347 eval "$as_ac_var=no" 17348fi 17349 17350rm -f core conftest.err conftest.$ac_objext \ 17351 conftest$ac_exeext conftest.$ac_ext 17352fi 17353ac_res=`eval echo '${'$as_ac_var'}'` 17354 { echo "$as_me:$LINENO: result: $ac_res" >&5 17355echo "${ECHO_T}$ac_res" >&6; } 17356if test `eval echo '${'$as_ac_var'}'` = yes; then 17357 cat >>confdefs.h <<_ACEOF 17358#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17359_ACEOF 17360 17361fi 17362done 17363 17364 17365 17366 17367 17368 17369for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 17370do 17371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17372{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17374if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17375 echo $ECHO_N "(cached) $ECHO_C" >&6 17376else 17377 cat >conftest.$ac_ext <<_ACEOF 17378/* confdefs.h. */ 17379_ACEOF 17380cat confdefs.h >>conftest.$ac_ext 17381cat >>conftest.$ac_ext <<_ACEOF 17382/* end confdefs.h. */ 17383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17385#define $ac_func innocuous_$ac_func 17386 17387/* System header to define __stub macros and hopefully few prototypes, 17388 which can conflict with char $ac_func (); below. 17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17390 <limits.h> exists even on freestanding compilers. */ 17391 17392#ifdef __STDC__ 17393# include <limits.h> 17394#else 17395# include <assert.h> 17396#endif 17397 17398#undef $ac_func 17399 17400/* Override any GCC internal prototype to avoid an error. 17401 Use char because int might match the return type of a GCC 17402 builtin and then its argument prototype would still apply. */ 17403#ifdef __cplusplus 17404extern "C" 17405#endif 17406char $ac_func (); 17407/* The GNU C library defines this for functions which it implements 17408 to always fail with ENOSYS. Some functions are actually named 17409 something starting with __ and the normal name is an alias. */ 17410#if defined __stub_$ac_func || defined __stub___$ac_func 17411choke me 17412#endif 17413 17414int 17415main () 17416{ 17417return $ac_func (); 17418 ; 17419 return 0; 17420} 17421_ACEOF 17422rm -f conftest.$ac_objext conftest$ac_exeext 17423if { (ac_try="$ac_link" 17424case "(($ac_try" in 17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17426 *) ac_try_echo=$ac_try;; 17427esac 17428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17429 (eval "$ac_link") 2>conftest.er1 17430 ac_status=$? 17431 grep -v '^ *+' conftest.er1 >conftest.err 17432 rm -f conftest.er1 17433 cat conftest.err >&5 17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17435 (exit $ac_status); } && 17436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17437 { (case "(($ac_try" in 17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17439 *) ac_try_echo=$ac_try;; 17440esac 17441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17442 (eval "$ac_try") 2>&5 17443 ac_status=$? 17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17445 (exit $ac_status); }; } && 17446 { ac_try='test -s conftest$ac_exeext' 17447 { (case "(($ac_try" in 17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17449 *) ac_try_echo=$ac_try;; 17450esac 17451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17452 (eval "$ac_try") 2>&5 17453 ac_status=$? 17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17455 (exit $ac_status); }; }; then 17456 eval "$as_ac_var=yes" 17457else 17458 echo "$as_me: failed program was:" >&5 17459sed 's/^/| /' conftest.$ac_ext >&5 17460 17461 eval "$as_ac_var=no" 17462fi 17463 17464rm -f core conftest.err conftest.$ac_objext \ 17465 conftest$ac_exeext conftest.$ac_ext 17466fi 17467ac_res=`eval echo '${'$as_ac_var'}'` 17468 { echo "$as_me:$LINENO: result: $ac_res" >&5 17469echo "${ECHO_T}$ac_res" >&6; } 17470if test `eval echo '${'$as_ac_var'}'` = yes; then 17471 cat >>confdefs.h <<_ACEOF 17472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17473_ACEOF 17474 17475fi 17476done 17477 17478 17479 17480 17481for ac_func in isatty mkdtemp mkstemp 17482do 17483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17484{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17486if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17487 echo $ECHO_N "(cached) $ECHO_C" >&6 17488else 17489 cat >conftest.$ac_ext <<_ACEOF 17490/* confdefs.h. */ 17491_ACEOF 17492cat confdefs.h >>conftest.$ac_ext 17493cat >>conftest.$ac_ext <<_ACEOF 17494/* end confdefs.h. */ 17495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17496 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17497#define $ac_func innocuous_$ac_func 17498 17499/* System header to define __stub macros and hopefully few prototypes, 17500 which can conflict with char $ac_func (); below. 17501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17502 <limits.h> exists even on freestanding compilers. */ 17503 17504#ifdef __STDC__ 17505# include <limits.h> 17506#else 17507# include <assert.h> 17508#endif 17509 17510#undef $ac_func 17511 17512/* Override any GCC internal prototype to avoid an error. 17513 Use char because int might match the return type of a GCC 17514 builtin and then its argument prototype would still apply. */ 17515#ifdef __cplusplus 17516extern "C" 17517#endif 17518char $ac_func (); 17519/* The GNU C library defines this for functions which it implements 17520 to always fail with ENOSYS. Some functions are actually named 17521 something starting with __ and the normal name is an alias. */ 17522#if defined __stub_$ac_func || defined __stub___$ac_func 17523choke me 17524#endif 17525 17526int 17527main () 17528{ 17529return $ac_func (); 17530 ; 17531 return 0; 17532} 17533_ACEOF 17534rm -f conftest.$ac_objext conftest$ac_exeext 17535if { (ac_try="$ac_link" 17536case "(($ac_try" in 17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17538 *) ac_try_echo=$ac_try;; 17539esac 17540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17541 (eval "$ac_link") 2>conftest.er1 17542 ac_status=$? 17543 grep -v '^ *+' conftest.er1 >conftest.err 17544 rm -f conftest.er1 17545 cat conftest.err >&5 17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17547 (exit $ac_status); } && 17548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17549 { (case "(($ac_try" in 17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17551 *) ac_try_echo=$ac_try;; 17552esac 17553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17554 (eval "$ac_try") 2>&5 17555 ac_status=$? 17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17557 (exit $ac_status); }; } && 17558 { ac_try='test -s conftest$ac_exeext' 17559 { (case "(($ac_try" in 17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17561 *) ac_try_echo=$ac_try;; 17562esac 17563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17564 (eval "$ac_try") 2>&5 17565 ac_status=$? 17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17567 (exit $ac_status); }; }; then 17568 eval "$as_ac_var=yes" 17569else 17570 echo "$as_me: failed program was:" >&5 17571sed 's/^/| /' conftest.$ac_ext >&5 17572 17573 eval "$as_ac_var=no" 17574fi 17575 17576rm -f core conftest.err conftest.$ac_objext \ 17577 conftest$ac_exeext conftest.$ac_ext 17578fi 17579ac_res=`eval echo '${'$as_ac_var'}'` 17580 { echo "$as_me:$LINENO: result: $ac_res" >&5 17581echo "${ECHO_T}$ac_res" >&6; } 17582if test `eval echo '${'$as_ac_var'}'` = yes; then 17583 cat >>confdefs.h <<_ACEOF 17584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17585_ACEOF 17586 17587fi 17588done 17589 17590 17591 17592 17593 17594 17595 17596 17597for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup 17598do 17599as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17600{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17602if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17603 echo $ECHO_N "(cached) $ECHO_C" >&6 17604else 17605 cat >conftest.$ac_ext <<_ACEOF 17606/* confdefs.h. */ 17607_ACEOF 17608cat confdefs.h >>conftest.$ac_ext 17609cat >>conftest.$ac_ext <<_ACEOF 17610/* end confdefs.h. */ 17611/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17612 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17613#define $ac_func innocuous_$ac_func 17614 17615/* System header to define __stub macros and hopefully few prototypes, 17616 which can conflict with char $ac_func (); below. 17617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17618 <limits.h> exists even on freestanding compilers. */ 17619 17620#ifdef __STDC__ 17621# include <limits.h> 17622#else 17623# include <assert.h> 17624#endif 17625 17626#undef $ac_func 17627 17628/* Override any GCC internal prototype to avoid an error. 17629 Use char because int might match the return type of a GCC 17630 builtin and then its argument prototype would still apply. */ 17631#ifdef __cplusplus 17632extern "C" 17633#endif 17634char $ac_func (); 17635/* The GNU C library defines this for functions which it implements 17636 to always fail with ENOSYS. Some functions are actually named 17637 something starting with __ and the normal name is an alias. */ 17638#if defined __stub_$ac_func || defined __stub___$ac_func 17639choke me 17640#endif 17641 17642int 17643main () 17644{ 17645return $ac_func (); 17646 ; 17647 return 0; 17648} 17649_ACEOF 17650rm -f conftest.$ac_objext conftest$ac_exeext 17651if { (ac_try="$ac_link" 17652case "(($ac_try" in 17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17654 *) ac_try_echo=$ac_try;; 17655esac 17656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17657 (eval "$ac_link") 2>conftest.er1 17658 ac_status=$? 17659 grep -v '^ *+' conftest.er1 >conftest.err 17660 rm -f conftest.er1 17661 cat conftest.err >&5 17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17663 (exit $ac_status); } && 17664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17665 { (case "(($ac_try" in 17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17667 *) ac_try_echo=$ac_try;; 17668esac 17669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17670 (eval "$ac_try") 2>&5 17671 ac_status=$? 17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17673 (exit $ac_status); }; } && 17674 { ac_try='test -s conftest$ac_exeext' 17675 { (case "(($ac_try" in 17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17677 *) ac_try_echo=$ac_try;; 17678esac 17679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17680 (eval "$ac_try") 2>&5 17681 ac_status=$? 17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17683 (exit $ac_status); }; }; then 17684 eval "$as_ac_var=yes" 17685else 17686 echo "$as_me: failed program was:" >&5 17687sed 's/^/| /' conftest.$ac_ext >&5 17688 17689 eval "$as_ac_var=no" 17690fi 17691 17692rm -f core conftest.err conftest.$ac_objext \ 17693 conftest$ac_exeext conftest.$ac_ext 17694fi 17695ac_res=`eval echo '${'$as_ac_var'}'` 17696 { echo "$as_me:$LINENO: result: $ac_res" >&5 17697echo "${ECHO_T}$ac_res" >&6; } 17698if test `eval echo '${'$as_ac_var'}'` = yes; then 17699 cat >>confdefs.h <<_ACEOF 17700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17701_ACEOF 17702 17703fi 17704done 17705 17706 17707 17708 17709 17710for ac_func in strerror strerror_r setenv arc4random 17711do 17712as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17713{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17714echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17715if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17716 echo $ECHO_N "(cached) $ECHO_C" >&6 17717else 17718 cat >conftest.$ac_ext <<_ACEOF 17719/* confdefs.h. */ 17720_ACEOF 17721cat confdefs.h >>conftest.$ac_ext 17722cat >>conftest.$ac_ext <<_ACEOF 17723/* end confdefs.h. */ 17724/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17725 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17726#define $ac_func innocuous_$ac_func 17727 17728/* System header to define __stub macros and hopefully few prototypes, 17729 which can conflict with char $ac_func (); below. 17730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17731 <limits.h> exists even on freestanding compilers. */ 17732 17733#ifdef __STDC__ 17734# include <limits.h> 17735#else 17736# include <assert.h> 17737#endif 17738 17739#undef $ac_func 17740 17741/* Override any GCC internal prototype to avoid an error. 17742 Use char because int might match the return type of a GCC 17743 builtin and then its argument prototype would still apply. */ 17744#ifdef __cplusplus 17745extern "C" 17746#endif 17747char $ac_func (); 17748/* The GNU C library defines this for functions which it implements 17749 to always fail with ENOSYS. Some functions are actually named 17750 something starting with __ and the normal name is an alias. */ 17751#if defined __stub_$ac_func || defined __stub___$ac_func 17752choke me 17753#endif 17754 17755int 17756main () 17757{ 17758return $ac_func (); 17759 ; 17760 return 0; 17761} 17762_ACEOF 17763rm -f conftest.$ac_objext conftest$ac_exeext 17764if { (ac_try="$ac_link" 17765case "(($ac_try" in 17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17767 *) ac_try_echo=$ac_try;; 17768esac 17769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17770 (eval "$ac_link") 2>conftest.er1 17771 ac_status=$? 17772 grep -v '^ *+' conftest.er1 >conftest.err 17773 rm -f conftest.er1 17774 cat conftest.err >&5 17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17776 (exit $ac_status); } && 17777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17778 { (case "(($ac_try" in 17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17780 *) ac_try_echo=$ac_try;; 17781esac 17782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17783 (eval "$ac_try") 2>&5 17784 ac_status=$? 17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17786 (exit $ac_status); }; } && 17787 { ac_try='test -s conftest$ac_exeext' 17788 { (case "(($ac_try" in 17789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17790 *) ac_try_echo=$ac_try;; 17791esac 17792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17793 (eval "$ac_try") 2>&5 17794 ac_status=$? 17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17796 (exit $ac_status); }; }; then 17797 eval "$as_ac_var=yes" 17798else 17799 echo "$as_me: failed program was:" >&5 17800sed 's/^/| /' conftest.$ac_ext >&5 17801 17802 eval "$as_ac_var=no" 17803fi 17804 17805rm -f core conftest.err conftest.$ac_objext \ 17806 conftest$ac_exeext conftest.$ac_ext 17807fi 17808ac_res=`eval echo '${'$as_ac_var'}'` 17809 { echo "$as_me:$LINENO: result: $ac_res" >&5 17810echo "${ECHO_T}$ac_res" >&6; } 17811if test `eval echo '${'$as_ac_var'}'` = yes; then 17812 cat >>confdefs.h <<_ACEOF 17813#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17814_ACEOF 17815 17816fi 17817done 17818 17819 17820 17821 17822 17823for ac_func in strtoll strtoq sysconf malloc_zone_statistics 17824do 17825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17826{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17828if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17829 echo $ECHO_N "(cached) $ECHO_C" >&6 17830else 17831 cat >conftest.$ac_ext <<_ACEOF 17832/* confdefs.h. */ 17833_ACEOF 17834cat confdefs.h >>conftest.$ac_ext 17835cat >>conftest.$ac_ext <<_ACEOF 17836/* end confdefs.h. */ 17837/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17838 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17839#define $ac_func innocuous_$ac_func 17840 17841/* System header to define __stub macros and hopefully few prototypes, 17842 which can conflict with char $ac_func (); below. 17843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17844 <limits.h> exists even on freestanding compilers. */ 17845 17846#ifdef __STDC__ 17847# include <limits.h> 17848#else 17849# include <assert.h> 17850#endif 17851 17852#undef $ac_func 17853 17854/* Override any GCC internal prototype to avoid an error. 17855 Use char because int might match the return type of a GCC 17856 builtin and then its argument prototype would still apply. */ 17857#ifdef __cplusplus 17858extern "C" 17859#endif 17860char $ac_func (); 17861/* The GNU C library defines this for functions which it implements 17862 to always fail with ENOSYS. Some functions are actually named 17863 something starting with __ and the normal name is an alias. */ 17864#if defined __stub_$ac_func || defined __stub___$ac_func 17865choke me 17866#endif 17867 17868int 17869main () 17870{ 17871return $ac_func (); 17872 ; 17873 return 0; 17874} 17875_ACEOF 17876rm -f conftest.$ac_objext conftest$ac_exeext 17877if { (ac_try="$ac_link" 17878case "(($ac_try" in 17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17880 *) ac_try_echo=$ac_try;; 17881esac 17882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17883 (eval "$ac_link") 2>conftest.er1 17884 ac_status=$? 17885 grep -v '^ *+' conftest.er1 >conftest.err 17886 rm -f conftest.er1 17887 cat conftest.err >&5 17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17889 (exit $ac_status); } && 17890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17891 { (case "(($ac_try" in 17892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17893 *) ac_try_echo=$ac_try;; 17894esac 17895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17896 (eval "$ac_try") 2>&5 17897 ac_status=$? 17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17899 (exit $ac_status); }; } && 17900 { ac_try='test -s conftest$ac_exeext' 17901 { (case "(($ac_try" in 17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17903 *) ac_try_echo=$ac_try;; 17904esac 17905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17906 (eval "$ac_try") 2>&5 17907 ac_status=$? 17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17909 (exit $ac_status); }; }; then 17910 eval "$as_ac_var=yes" 17911else 17912 echo "$as_me: failed program was:" >&5 17913sed 's/^/| /' conftest.$ac_ext >&5 17914 17915 eval "$as_ac_var=no" 17916fi 17917 17918rm -f core conftest.err conftest.$ac_objext \ 17919 conftest$ac_exeext conftest.$ac_ext 17920fi 17921ac_res=`eval echo '${'$as_ac_var'}'` 17922 { echo "$as_me:$LINENO: result: $ac_res" >&5 17923echo "${ECHO_T}$ac_res" >&6; } 17924if test `eval echo '${'$as_ac_var'}'` = yes; then 17925 cat >>confdefs.h <<_ACEOF 17926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17927_ACEOF 17928 17929fi 17930done 17931 17932 17933 17934 17935 17936 17937for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 17938do 17939as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17940{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17941echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17942if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17943 echo $ECHO_N "(cached) $ECHO_C" >&6 17944else 17945 cat >conftest.$ac_ext <<_ACEOF 17946/* confdefs.h. */ 17947_ACEOF 17948cat confdefs.h >>conftest.$ac_ext 17949cat >>conftest.$ac_ext <<_ACEOF 17950/* end confdefs.h. */ 17951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17952 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17953#define $ac_func innocuous_$ac_func 17954 17955/* System header to define __stub macros and hopefully few prototypes, 17956 which can conflict with char $ac_func (); below. 17957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17958 <limits.h> exists even on freestanding compilers. */ 17959 17960#ifdef __STDC__ 17961# include <limits.h> 17962#else 17963# include <assert.h> 17964#endif 17965 17966#undef $ac_func 17967 17968/* Override any GCC internal prototype to avoid an error. 17969 Use char because int might match the return type of a GCC 17970 builtin and then its argument prototype would still apply. */ 17971#ifdef __cplusplus 17972extern "C" 17973#endif 17974char $ac_func (); 17975/* The GNU C library defines this for functions which it implements 17976 to always fail with ENOSYS. Some functions are actually named 17977 something starting with __ and the normal name is an alias. */ 17978#if defined __stub_$ac_func || defined __stub___$ac_func 17979choke me 17980#endif 17981 17982int 17983main () 17984{ 17985return $ac_func (); 17986 ; 17987 return 0; 17988} 17989_ACEOF 17990rm -f conftest.$ac_objext conftest$ac_exeext 17991if { (ac_try="$ac_link" 17992case "(($ac_try" in 17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17994 *) ac_try_echo=$ac_try;; 17995esac 17996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17997 (eval "$ac_link") 2>conftest.er1 17998 ac_status=$? 17999 grep -v '^ *+' conftest.er1 >conftest.err 18000 rm -f conftest.er1 18001 cat conftest.err >&5 18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18003 (exit $ac_status); } && 18004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18005 { (case "(($ac_try" in 18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18007 *) ac_try_echo=$ac_try;; 18008esac 18009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18010 (eval "$ac_try") 2>&5 18011 ac_status=$? 18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18013 (exit $ac_status); }; } && 18014 { ac_try='test -s conftest$ac_exeext' 18015 { (case "(($ac_try" in 18016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18017 *) ac_try_echo=$ac_try;; 18018esac 18019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18020 (eval "$ac_try") 2>&5 18021 ac_status=$? 18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18023 (exit $ac_status); }; }; then 18024 eval "$as_ac_var=yes" 18025else 18026 echo "$as_me: failed program was:" >&5 18027sed 's/^/| /' conftest.$ac_ext >&5 18028 18029 eval "$as_ac_var=no" 18030fi 18031 18032rm -f core conftest.err conftest.$ac_objext \ 18033 conftest$ac_exeext conftest.$ac_ext 18034fi 18035ac_res=`eval echo '${'$as_ac_var'}'` 18036 { echo "$as_me:$LINENO: result: $ac_res" >&5 18037echo "${ECHO_T}$ac_res" >&6; } 18038if test `eval echo '${'$as_ac_var'}'` = yes; then 18039 cat >>confdefs.h <<_ACEOF 18040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18041_ACEOF 18042 18043fi 18044done 18045 18046{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 18047echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 18048if test "${llvm_cv_c_printf_a+set}" = set; then 18049 echo $ECHO_N "(cached) $ECHO_C" >&6 18050else 18051 ac_ext=c 18052ac_cpp='$CPP $CPPFLAGS' 18053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18055ac_compiler_gnu=$ac_cv_c_compiler_gnu 18056 18057 if test "$cross_compiling" = yes; then 18058 llvmac_cv_c_printf_a=no 18059else 18060 cat >conftest.$ac_ext <<_ACEOF 18061 18062 /* confdefs.h. */ 18063_ACEOF 18064cat confdefs.h >>conftest.$ac_ext 18065cat >>conftest.$ac_ext <<_ACEOF 18066/* end confdefs.h. */ 18067 18068#include <stdio.h> 18069#include <stdlib.h> 18070 18071int 18072main () 18073{ 18074 18075volatile double A, B; 18076char Buffer[100]; 18077A = 1; 18078A /= 10.0; 18079sprintf(Buffer, "%a", A); 18080B = atof(Buffer); 18081if (A != B) 18082 return (1); 18083if (A != 0x1.999999999999ap-4) 18084 return (1); 18085return (0); 18086 ; 18087 return 0; 18088} 18089_ACEOF 18090rm -f conftest$ac_exeext 18091if { (ac_try="$ac_link" 18092case "(($ac_try" in 18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18094 *) ac_try_echo=$ac_try;; 18095esac 18096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18097 (eval "$ac_link") 2>&5 18098 ac_status=$? 18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18101 { (case "(($ac_try" in 18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18103 *) ac_try_echo=$ac_try;; 18104esac 18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18106 (eval "$ac_try") 2>&5 18107 ac_status=$? 18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18109 (exit $ac_status); }; }; then 18110 llvm_cv_c_printf_a=yes 18111else 18112 echo "$as_me: program exited with status $ac_status" >&5 18113echo "$as_me: failed program was:" >&5 18114sed 's/^/| /' conftest.$ac_ext >&5 18115 18116( exit $ac_status ) 18117llvmac_cv_c_printf_a=no 18118fi 18119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18120fi 18121 18122 18123 ac_ext=c 18124ac_cpp='$CPP $CPPFLAGS' 18125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18127ac_compiler_gnu=$ac_cv_c_compiler_gnu 18128 18129fi 18130{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 18131echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 18132 if test "$llvm_cv_c_printf_a" = "yes"; then 18133 18134cat >>confdefs.h <<\_ACEOF 18135#define HAVE_PRINTF_A 1 18136_ACEOF 18137 18138 fi 18139 18140 18141 18142 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 18143echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 18144if test "${ac_cv_func_rand48+set}" = set; then 18145 echo $ECHO_N "(cached) $ECHO_C" >&6 18146else 18147 18148 ac_ext=cpp 18149ac_cpp='$CXXCPP $CPPFLAGS' 18150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18153 18154 cat >conftest.$ac_ext <<_ACEOF 18155/* confdefs.h. */ 18156_ACEOF 18157cat confdefs.h >>conftest.$ac_ext 18158cat >>conftest.$ac_ext <<_ACEOF 18159/* end confdefs.h. */ 18160#include <stdlib.h> 18161int 18162main () 18163{ 18164srand48(0);lrand48();drand48(); 18165 ; 18166 return 0; 18167} 18168_ACEOF 18169rm -f conftest.$ac_objext 18170if { (ac_try="$ac_compile" 18171case "(($ac_try" in 18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18173 *) ac_try_echo=$ac_try;; 18174esac 18175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18176 (eval "$ac_compile") 2>conftest.er1 18177 ac_status=$? 18178 grep -v '^ *+' conftest.er1 >conftest.err 18179 rm -f conftest.er1 18180 cat conftest.err >&5 18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18182 (exit $ac_status); } && 18183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18184 { (case "(($ac_try" in 18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18186 *) ac_try_echo=$ac_try;; 18187esac 18188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18189 (eval "$ac_try") 2>&5 18190 ac_status=$? 18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18192 (exit $ac_status); }; } && 18193 { ac_try='test -s conftest.$ac_objext' 18194 { (case "(($ac_try" in 18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18196 *) ac_try_echo=$ac_try;; 18197esac 18198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18199 (eval "$ac_try") 2>&5 18200 ac_status=$? 18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18202 (exit $ac_status); }; }; then 18203 ac_cv_func_rand48=yes 18204else 18205 echo "$as_me: failed program was:" >&5 18206sed 's/^/| /' conftest.$ac_ext >&5 18207 18208 ac_cv_func_rand48=no 18209fi 18210 18211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18212 ac_ext=c 18213ac_cpp='$CPP $CPPFLAGS' 18214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18216ac_compiler_gnu=$ac_cv_c_compiler_gnu 18217 18218 18219fi 18220{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 18221echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 18222 18223if test "$ac_cv_func_rand48" = "yes" ; then 18224 18225cat >>confdefs.h <<\_ACEOF 18226#define HAVE_RAND48 1 18227_ACEOF 18228 18229fi 18230 18231 18232{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 18233echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 18234if test "${ac_cv_have_decl_strerror_s+set}" = set; then 18235 echo $ECHO_N "(cached) $ECHO_C" >&6 18236else 18237 cat >conftest.$ac_ext <<_ACEOF 18238/* confdefs.h. */ 18239_ACEOF 18240cat confdefs.h >>conftest.$ac_ext 18241cat >>conftest.$ac_ext <<_ACEOF 18242/* end confdefs.h. */ 18243$ac_includes_default 18244int 18245main () 18246{ 18247#ifndef strerror_s 18248 char *p = (char *) strerror_s; 18249 return !p; 18250#endif 18251 18252 ; 18253 return 0; 18254} 18255_ACEOF 18256rm -f conftest.$ac_objext 18257if { (ac_try="$ac_compile" 18258case "(($ac_try" in 18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18260 *) ac_try_echo=$ac_try;; 18261esac 18262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18263 (eval "$ac_compile") 2>conftest.er1 18264 ac_status=$? 18265 grep -v '^ *+' conftest.er1 >conftest.err 18266 rm -f conftest.er1 18267 cat conftest.err >&5 18268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18269 (exit $ac_status); } && 18270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18271 { (case "(($ac_try" in 18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18273 *) ac_try_echo=$ac_try;; 18274esac 18275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18276 (eval "$ac_try") 2>&5 18277 ac_status=$? 18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18279 (exit $ac_status); }; } && 18280 { ac_try='test -s conftest.$ac_objext' 18281 { (case "(($ac_try" in 18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18283 *) ac_try_echo=$ac_try;; 18284esac 18285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18286 (eval "$ac_try") 2>&5 18287 ac_status=$? 18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18289 (exit $ac_status); }; }; then 18290 ac_cv_have_decl_strerror_s=yes 18291else 18292 echo "$as_me: failed program was:" >&5 18293sed 's/^/| /' conftest.$ac_ext >&5 18294 18295 ac_cv_have_decl_strerror_s=no 18296fi 18297 18298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18299fi 18300{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 18301echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 18302if test $ac_cv_have_decl_strerror_s = yes; then 18303 18304cat >>confdefs.h <<_ACEOF 18305#define HAVE_DECL_STRERROR_S 1 18306_ACEOF 18307 18308 18309else 18310 cat >>confdefs.h <<_ACEOF 18311#define HAVE_DECL_STRERROR_S 0 18312_ACEOF 18313 18314 18315fi 18316 18317 18318 18319if test "$llvm_cv_os_type" = "MingW" ; then 18320 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 18321echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 18322if test "${ac_cv_lib_gcc__alloca+set}" = set; then 18323 echo $ECHO_N "(cached) $ECHO_C" >&6 18324else 18325 ac_check_lib_save_LIBS=$LIBS 18326LIBS="-lgcc $LIBS" 18327cat >conftest.$ac_ext <<_ACEOF 18328/* confdefs.h. */ 18329_ACEOF 18330cat confdefs.h >>conftest.$ac_ext 18331cat >>conftest.$ac_ext <<_ACEOF 18332/* end confdefs.h. */ 18333 18334/* Override any GCC internal prototype to avoid an error. 18335 Use char because int might match the return type of a GCC 18336 builtin and then its argument prototype would still apply. */ 18337#ifdef __cplusplus 18338extern "C" 18339#endif 18340char _alloca (); 18341int 18342main () 18343{ 18344return _alloca (); 18345 ; 18346 return 0; 18347} 18348_ACEOF 18349rm -f conftest.$ac_objext conftest$ac_exeext 18350if { (ac_try="$ac_link" 18351case "(($ac_try" in 18352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18353 *) ac_try_echo=$ac_try;; 18354esac 18355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18356 (eval "$ac_link") 2>conftest.er1 18357 ac_status=$? 18358 grep -v '^ *+' conftest.er1 >conftest.err 18359 rm -f conftest.er1 18360 cat conftest.err >&5 18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18362 (exit $ac_status); } && 18363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18364 { (case "(($ac_try" in 18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18366 *) ac_try_echo=$ac_try;; 18367esac 18368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18369 (eval "$ac_try") 2>&5 18370 ac_status=$? 18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18372 (exit $ac_status); }; } && 18373 { ac_try='test -s conftest$ac_exeext' 18374 { (case "(($ac_try" in 18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18376 *) ac_try_echo=$ac_try;; 18377esac 18378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18379 (eval "$ac_try") 2>&5 18380 ac_status=$? 18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18382 (exit $ac_status); }; }; then 18383 ac_cv_lib_gcc__alloca=yes 18384else 18385 echo "$as_me: failed program was:" >&5 18386sed 's/^/| /' conftest.$ac_ext >&5 18387 18388 ac_cv_lib_gcc__alloca=no 18389fi 18390 18391rm -f core conftest.err conftest.$ac_objext \ 18392 conftest$ac_exeext conftest.$ac_ext 18393LIBS=$ac_check_lib_save_LIBS 18394fi 18395{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 18396echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 18397if test $ac_cv_lib_gcc__alloca = yes; then 18398 18399cat >>confdefs.h <<\_ACEOF 18400#define HAVE__ALLOCA 1 18401_ACEOF 18402 18403fi 18404 18405 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 18406echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 18407if test "${ac_cv_lib_gcc___alloca+set}" = set; then 18408 echo $ECHO_N "(cached) $ECHO_C" >&6 18409else 18410 ac_check_lib_save_LIBS=$LIBS 18411LIBS="-lgcc $LIBS" 18412cat >conftest.$ac_ext <<_ACEOF 18413/* confdefs.h. */ 18414_ACEOF 18415cat confdefs.h >>conftest.$ac_ext 18416cat >>conftest.$ac_ext <<_ACEOF 18417/* end confdefs.h. */ 18418 18419/* Override any GCC internal prototype to avoid an error. 18420 Use char because int might match the return type of a GCC 18421 builtin and then its argument prototype would still apply. */ 18422#ifdef __cplusplus 18423extern "C" 18424#endif 18425char __alloca (); 18426int 18427main () 18428{ 18429return __alloca (); 18430 ; 18431 return 0; 18432} 18433_ACEOF 18434rm -f conftest.$ac_objext conftest$ac_exeext 18435if { (ac_try="$ac_link" 18436case "(($ac_try" in 18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18438 *) ac_try_echo=$ac_try;; 18439esac 18440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18441 (eval "$ac_link") 2>conftest.er1 18442 ac_status=$? 18443 grep -v '^ *+' conftest.er1 >conftest.err 18444 rm -f conftest.er1 18445 cat conftest.err >&5 18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18447 (exit $ac_status); } && 18448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18449 { (case "(($ac_try" in 18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18451 *) ac_try_echo=$ac_try;; 18452esac 18453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18454 (eval "$ac_try") 2>&5 18455 ac_status=$? 18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18457 (exit $ac_status); }; } && 18458 { ac_try='test -s conftest$ac_exeext' 18459 { (case "(($ac_try" in 18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18461 *) ac_try_echo=$ac_try;; 18462esac 18463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18464 (eval "$ac_try") 2>&5 18465 ac_status=$? 18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18467 (exit $ac_status); }; }; then 18468 ac_cv_lib_gcc___alloca=yes 18469else 18470 echo "$as_me: failed program was:" >&5 18471sed 's/^/| /' conftest.$ac_ext >&5 18472 18473 ac_cv_lib_gcc___alloca=no 18474fi 18475 18476rm -f core conftest.err conftest.$ac_objext \ 18477 conftest$ac_exeext conftest.$ac_ext 18478LIBS=$ac_check_lib_save_LIBS 18479fi 18480{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 18481echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 18482if test $ac_cv_lib_gcc___alloca = yes; then 18483 18484cat >>confdefs.h <<\_ACEOF 18485#define HAVE___ALLOCA 1 18486_ACEOF 18487 18488fi 18489 18490 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 18491echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 18492if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 18493 echo $ECHO_N "(cached) $ECHO_C" >&6 18494else 18495 ac_check_lib_save_LIBS=$LIBS 18496LIBS="-lgcc $LIBS" 18497cat >conftest.$ac_ext <<_ACEOF 18498/* confdefs.h. */ 18499_ACEOF 18500cat confdefs.h >>conftest.$ac_ext 18501cat >>conftest.$ac_ext <<_ACEOF 18502/* end confdefs.h. */ 18503 18504/* Override any GCC internal prototype to avoid an error. 18505 Use char because int might match the return type of a GCC 18506 builtin and then its argument prototype would still apply. */ 18507#ifdef __cplusplus 18508extern "C" 18509#endif 18510char __chkstk (); 18511int 18512main () 18513{ 18514return __chkstk (); 18515 ; 18516 return 0; 18517} 18518_ACEOF 18519rm -f conftest.$ac_objext conftest$ac_exeext 18520if { (ac_try="$ac_link" 18521case "(($ac_try" in 18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18523 *) ac_try_echo=$ac_try;; 18524esac 18525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18526 (eval "$ac_link") 2>conftest.er1 18527 ac_status=$? 18528 grep -v '^ *+' conftest.er1 >conftest.err 18529 rm -f conftest.er1 18530 cat conftest.err >&5 18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18532 (exit $ac_status); } && 18533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18534 { (case "(($ac_try" in 18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18536 *) ac_try_echo=$ac_try;; 18537esac 18538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18539 (eval "$ac_try") 2>&5 18540 ac_status=$? 18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18542 (exit $ac_status); }; } && 18543 { ac_try='test -s conftest$ac_exeext' 18544 { (case "(($ac_try" in 18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18546 *) ac_try_echo=$ac_try;; 18547esac 18548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18549 (eval "$ac_try") 2>&5 18550 ac_status=$? 18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18552 (exit $ac_status); }; }; then 18553 ac_cv_lib_gcc___chkstk=yes 18554else 18555 echo "$as_me: failed program was:" >&5 18556sed 's/^/| /' conftest.$ac_ext >&5 18557 18558 ac_cv_lib_gcc___chkstk=no 18559fi 18560 18561rm -f core conftest.err conftest.$ac_objext \ 18562 conftest$ac_exeext conftest.$ac_ext 18563LIBS=$ac_check_lib_save_LIBS 18564fi 18565{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 18566echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 18567if test $ac_cv_lib_gcc___chkstk = yes; then 18568 18569cat >>confdefs.h <<\_ACEOF 18570#define HAVE___CHKSTK 1 18571_ACEOF 18572 18573fi 18574 18575 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 18576echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 18577if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 18578 echo $ECHO_N "(cached) $ECHO_C" >&6 18579else 18580 ac_check_lib_save_LIBS=$LIBS 18581LIBS="-lgcc $LIBS" 18582cat >conftest.$ac_ext <<_ACEOF 18583/* confdefs.h. */ 18584_ACEOF 18585cat confdefs.h >>conftest.$ac_ext 18586cat >>conftest.$ac_ext <<_ACEOF 18587/* end confdefs.h. */ 18588 18589/* Override any GCC internal prototype to avoid an error. 18590 Use char because int might match the return type of a GCC 18591 builtin and then its argument prototype would still apply. */ 18592#ifdef __cplusplus 18593extern "C" 18594#endif 18595char ___chkstk (); 18596int 18597main () 18598{ 18599return ___chkstk (); 18600 ; 18601 return 0; 18602} 18603_ACEOF 18604rm -f conftest.$ac_objext conftest$ac_exeext 18605if { (ac_try="$ac_link" 18606case "(($ac_try" in 18607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18608 *) ac_try_echo=$ac_try;; 18609esac 18610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18611 (eval "$ac_link") 2>conftest.er1 18612 ac_status=$? 18613 grep -v '^ *+' conftest.er1 >conftest.err 18614 rm -f conftest.er1 18615 cat conftest.err >&5 18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18617 (exit $ac_status); } && 18618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18619 { (case "(($ac_try" in 18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18621 *) ac_try_echo=$ac_try;; 18622esac 18623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18624 (eval "$ac_try") 2>&5 18625 ac_status=$? 18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18627 (exit $ac_status); }; } && 18628 { ac_try='test -s conftest$ac_exeext' 18629 { (case "(($ac_try" in 18630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18631 *) ac_try_echo=$ac_try;; 18632esac 18633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18634 (eval "$ac_try") 2>&5 18635 ac_status=$? 18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18637 (exit $ac_status); }; }; then 18638 ac_cv_lib_gcc____chkstk=yes 18639else 18640 echo "$as_me: failed program was:" >&5 18641sed 's/^/| /' conftest.$ac_ext >&5 18642 18643 ac_cv_lib_gcc____chkstk=no 18644fi 18645 18646rm -f core conftest.err conftest.$ac_objext \ 18647 conftest$ac_exeext conftest.$ac_ext 18648LIBS=$ac_check_lib_save_LIBS 18649fi 18650{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 18651echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 18652if test $ac_cv_lib_gcc____chkstk = yes; then 18653 18654cat >>confdefs.h <<\_ACEOF 18655#define HAVE____CHKSTK 1 18656_ACEOF 18657 18658fi 18659 18660 18661 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 18662echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 18663if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 18664 echo $ECHO_N "(cached) $ECHO_C" >&6 18665else 18666 ac_check_lib_save_LIBS=$LIBS 18667LIBS="-lgcc $LIBS" 18668cat >conftest.$ac_ext <<_ACEOF 18669/* confdefs.h. */ 18670_ACEOF 18671cat confdefs.h >>conftest.$ac_ext 18672cat >>conftest.$ac_ext <<_ACEOF 18673/* end confdefs.h. */ 18674 18675/* Override any GCC internal prototype to avoid an error. 18676 Use char because int might match the return type of a GCC 18677 builtin and then its argument prototype would still apply. */ 18678#ifdef __cplusplus 18679extern "C" 18680#endif 18681char __ashldi3 (); 18682int 18683main () 18684{ 18685return __ashldi3 (); 18686 ; 18687 return 0; 18688} 18689_ACEOF 18690rm -f conftest.$ac_objext conftest$ac_exeext 18691if { (ac_try="$ac_link" 18692case "(($ac_try" in 18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18694 *) ac_try_echo=$ac_try;; 18695esac 18696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18697 (eval "$ac_link") 2>conftest.er1 18698 ac_status=$? 18699 grep -v '^ *+' conftest.er1 >conftest.err 18700 rm -f conftest.er1 18701 cat conftest.err >&5 18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18703 (exit $ac_status); } && 18704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18705 { (case "(($ac_try" in 18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18707 *) ac_try_echo=$ac_try;; 18708esac 18709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18710 (eval "$ac_try") 2>&5 18711 ac_status=$? 18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18713 (exit $ac_status); }; } && 18714 { ac_try='test -s conftest$ac_exeext' 18715 { (case "(($ac_try" in 18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18717 *) ac_try_echo=$ac_try;; 18718esac 18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18720 (eval "$ac_try") 2>&5 18721 ac_status=$? 18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18723 (exit $ac_status); }; }; then 18724 ac_cv_lib_gcc___ashldi3=yes 18725else 18726 echo "$as_me: failed program was:" >&5 18727sed 's/^/| /' conftest.$ac_ext >&5 18728 18729 ac_cv_lib_gcc___ashldi3=no 18730fi 18731 18732rm -f core conftest.err conftest.$ac_objext \ 18733 conftest$ac_exeext conftest.$ac_ext 18734LIBS=$ac_check_lib_save_LIBS 18735fi 18736{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 18737echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 18738if test $ac_cv_lib_gcc___ashldi3 = yes; then 18739 18740cat >>confdefs.h <<\_ACEOF 18741#define HAVE___ASHLDI3 1 18742_ACEOF 18743 18744fi 18745 18746 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 18747echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 18748if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 18749 echo $ECHO_N "(cached) $ECHO_C" >&6 18750else 18751 ac_check_lib_save_LIBS=$LIBS 18752LIBS="-lgcc $LIBS" 18753cat >conftest.$ac_ext <<_ACEOF 18754/* confdefs.h. */ 18755_ACEOF 18756cat confdefs.h >>conftest.$ac_ext 18757cat >>conftest.$ac_ext <<_ACEOF 18758/* end confdefs.h. */ 18759 18760/* Override any GCC internal prototype to avoid an error. 18761 Use char because int might match the return type of a GCC 18762 builtin and then its argument prototype would still apply. */ 18763#ifdef __cplusplus 18764extern "C" 18765#endif 18766char __ashrdi3 (); 18767int 18768main () 18769{ 18770return __ashrdi3 (); 18771 ; 18772 return 0; 18773} 18774_ACEOF 18775rm -f conftest.$ac_objext conftest$ac_exeext 18776if { (ac_try="$ac_link" 18777case "(($ac_try" in 18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18779 *) ac_try_echo=$ac_try;; 18780esac 18781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18782 (eval "$ac_link") 2>conftest.er1 18783 ac_status=$? 18784 grep -v '^ *+' conftest.er1 >conftest.err 18785 rm -f conftest.er1 18786 cat conftest.err >&5 18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18788 (exit $ac_status); } && 18789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18790 { (case "(($ac_try" in 18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18792 *) ac_try_echo=$ac_try;; 18793esac 18794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18795 (eval "$ac_try") 2>&5 18796 ac_status=$? 18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18798 (exit $ac_status); }; } && 18799 { ac_try='test -s conftest$ac_exeext' 18800 { (case "(($ac_try" in 18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18802 *) ac_try_echo=$ac_try;; 18803esac 18804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18805 (eval "$ac_try") 2>&5 18806 ac_status=$? 18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18808 (exit $ac_status); }; }; then 18809 ac_cv_lib_gcc___ashrdi3=yes 18810else 18811 echo "$as_me: failed program was:" >&5 18812sed 's/^/| /' conftest.$ac_ext >&5 18813 18814 ac_cv_lib_gcc___ashrdi3=no 18815fi 18816 18817rm -f core conftest.err conftest.$ac_objext \ 18818 conftest$ac_exeext conftest.$ac_ext 18819LIBS=$ac_check_lib_save_LIBS 18820fi 18821{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 18822echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 18823if test $ac_cv_lib_gcc___ashrdi3 = yes; then 18824 18825cat >>confdefs.h <<\_ACEOF 18826#define HAVE___ASHRDI3 1 18827_ACEOF 18828 18829fi 18830 18831 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 18832echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 18833if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 18834 echo $ECHO_N "(cached) $ECHO_C" >&6 18835else 18836 ac_check_lib_save_LIBS=$LIBS 18837LIBS="-lgcc $LIBS" 18838cat >conftest.$ac_ext <<_ACEOF 18839/* confdefs.h. */ 18840_ACEOF 18841cat confdefs.h >>conftest.$ac_ext 18842cat >>conftest.$ac_ext <<_ACEOF 18843/* end confdefs.h. */ 18844 18845/* Override any GCC internal prototype to avoid an error. 18846 Use char because int might match the return type of a GCC 18847 builtin and then its argument prototype would still apply. */ 18848#ifdef __cplusplus 18849extern "C" 18850#endif 18851char __divdi3 (); 18852int 18853main () 18854{ 18855return __divdi3 (); 18856 ; 18857 return 0; 18858} 18859_ACEOF 18860rm -f conftest.$ac_objext conftest$ac_exeext 18861if { (ac_try="$ac_link" 18862case "(($ac_try" in 18863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18864 *) ac_try_echo=$ac_try;; 18865esac 18866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18867 (eval "$ac_link") 2>conftest.er1 18868 ac_status=$? 18869 grep -v '^ *+' conftest.er1 >conftest.err 18870 rm -f conftest.er1 18871 cat conftest.err >&5 18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18873 (exit $ac_status); } && 18874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18875 { (case "(($ac_try" in 18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18877 *) ac_try_echo=$ac_try;; 18878esac 18879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18880 (eval "$ac_try") 2>&5 18881 ac_status=$? 18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18883 (exit $ac_status); }; } && 18884 { ac_try='test -s conftest$ac_exeext' 18885 { (case "(($ac_try" in 18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18887 *) ac_try_echo=$ac_try;; 18888esac 18889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18890 (eval "$ac_try") 2>&5 18891 ac_status=$? 18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18893 (exit $ac_status); }; }; then 18894 ac_cv_lib_gcc___divdi3=yes 18895else 18896 echo "$as_me: failed program was:" >&5 18897sed 's/^/| /' conftest.$ac_ext >&5 18898 18899 ac_cv_lib_gcc___divdi3=no 18900fi 18901 18902rm -f core conftest.err conftest.$ac_objext \ 18903 conftest$ac_exeext conftest.$ac_ext 18904LIBS=$ac_check_lib_save_LIBS 18905fi 18906{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 18907echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 18908if test $ac_cv_lib_gcc___divdi3 = yes; then 18909 18910cat >>confdefs.h <<\_ACEOF 18911#define HAVE___DIVDI3 1 18912_ACEOF 18913 18914fi 18915 18916 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 18917echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 18918if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 18919 echo $ECHO_N "(cached) $ECHO_C" >&6 18920else 18921 ac_check_lib_save_LIBS=$LIBS 18922LIBS="-lgcc $LIBS" 18923cat >conftest.$ac_ext <<_ACEOF 18924/* confdefs.h. */ 18925_ACEOF 18926cat confdefs.h >>conftest.$ac_ext 18927cat >>conftest.$ac_ext <<_ACEOF 18928/* end confdefs.h. */ 18929 18930/* Override any GCC internal prototype to avoid an error. 18931 Use char because int might match the return type of a GCC 18932 builtin and then its argument prototype would still apply. */ 18933#ifdef __cplusplus 18934extern "C" 18935#endif 18936char __fixdfdi (); 18937int 18938main () 18939{ 18940return __fixdfdi (); 18941 ; 18942 return 0; 18943} 18944_ACEOF 18945rm -f conftest.$ac_objext conftest$ac_exeext 18946if { (ac_try="$ac_link" 18947case "(($ac_try" in 18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18949 *) ac_try_echo=$ac_try;; 18950esac 18951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18952 (eval "$ac_link") 2>conftest.er1 18953 ac_status=$? 18954 grep -v '^ *+' conftest.er1 >conftest.err 18955 rm -f conftest.er1 18956 cat conftest.err >&5 18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18958 (exit $ac_status); } && 18959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18960 { (case "(($ac_try" in 18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18962 *) ac_try_echo=$ac_try;; 18963esac 18964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18965 (eval "$ac_try") 2>&5 18966 ac_status=$? 18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18968 (exit $ac_status); }; } && 18969 { ac_try='test -s conftest$ac_exeext' 18970 { (case "(($ac_try" in 18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18972 *) ac_try_echo=$ac_try;; 18973esac 18974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18975 (eval "$ac_try") 2>&5 18976 ac_status=$? 18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18978 (exit $ac_status); }; }; then 18979 ac_cv_lib_gcc___fixdfdi=yes 18980else 18981 echo "$as_me: failed program was:" >&5 18982sed 's/^/| /' conftest.$ac_ext >&5 18983 18984 ac_cv_lib_gcc___fixdfdi=no 18985fi 18986 18987rm -f core conftest.err conftest.$ac_objext \ 18988 conftest$ac_exeext conftest.$ac_ext 18989LIBS=$ac_check_lib_save_LIBS 18990fi 18991{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 18992echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 18993if test $ac_cv_lib_gcc___fixdfdi = yes; then 18994 18995cat >>confdefs.h <<\_ACEOF 18996#define HAVE___FIXDFDI 1 18997_ACEOF 18998 18999fi 19000 19001 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 19002echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 19003if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 19004 echo $ECHO_N "(cached) $ECHO_C" >&6 19005else 19006 ac_check_lib_save_LIBS=$LIBS 19007LIBS="-lgcc $LIBS" 19008cat >conftest.$ac_ext <<_ACEOF 19009/* confdefs.h. */ 19010_ACEOF 19011cat confdefs.h >>conftest.$ac_ext 19012cat >>conftest.$ac_ext <<_ACEOF 19013/* end confdefs.h. */ 19014 19015/* Override any GCC internal prototype to avoid an error. 19016 Use char because int might match the return type of a GCC 19017 builtin and then its argument prototype would still apply. */ 19018#ifdef __cplusplus 19019extern "C" 19020#endif 19021char __fixsfdi (); 19022int 19023main () 19024{ 19025return __fixsfdi (); 19026 ; 19027 return 0; 19028} 19029_ACEOF 19030rm -f conftest.$ac_objext conftest$ac_exeext 19031if { (ac_try="$ac_link" 19032case "(($ac_try" in 19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19034 *) ac_try_echo=$ac_try;; 19035esac 19036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19037 (eval "$ac_link") 2>conftest.er1 19038 ac_status=$? 19039 grep -v '^ *+' conftest.er1 >conftest.err 19040 rm -f conftest.er1 19041 cat conftest.err >&5 19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19043 (exit $ac_status); } && 19044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19045 { (case "(($ac_try" in 19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19047 *) ac_try_echo=$ac_try;; 19048esac 19049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19050 (eval "$ac_try") 2>&5 19051 ac_status=$? 19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19053 (exit $ac_status); }; } && 19054 { ac_try='test -s conftest$ac_exeext' 19055 { (case "(($ac_try" in 19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19057 *) ac_try_echo=$ac_try;; 19058esac 19059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19060 (eval "$ac_try") 2>&5 19061 ac_status=$? 19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19063 (exit $ac_status); }; }; then 19064 ac_cv_lib_gcc___fixsfdi=yes 19065else 19066 echo "$as_me: failed program was:" >&5 19067sed 's/^/| /' conftest.$ac_ext >&5 19068 19069 ac_cv_lib_gcc___fixsfdi=no 19070fi 19071 19072rm -f core conftest.err conftest.$ac_objext \ 19073 conftest$ac_exeext conftest.$ac_ext 19074LIBS=$ac_check_lib_save_LIBS 19075fi 19076{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 19077echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 19078if test $ac_cv_lib_gcc___fixsfdi = yes; then 19079 19080cat >>confdefs.h <<\_ACEOF 19081#define HAVE___FIXSFDI 1 19082_ACEOF 19083 19084fi 19085 19086 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 19087echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 19088if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 19089 echo $ECHO_N "(cached) $ECHO_C" >&6 19090else 19091 ac_check_lib_save_LIBS=$LIBS 19092LIBS="-lgcc $LIBS" 19093cat >conftest.$ac_ext <<_ACEOF 19094/* confdefs.h. */ 19095_ACEOF 19096cat confdefs.h >>conftest.$ac_ext 19097cat >>conftest.$ac_ext <<_ACEOF 19098/* end confdefs.h. */ 19099 19100/* Override any GCC internal prototype to avoid an error. 19101 Use char because int might match the return type of a GCC 19102 builtin and then its argument prototype would still apply. */ 19103#ifdef __cplusplus 19104extern "C" 19105#endif 19106char __floatdidf (); 19107int 19108main () 19109{ 19110return __floatdidf (); 19111 ; 19112 return 0; 19113} 19114_ACEOF 19115rm -f conftest.$ac_objext conftest$ac_exeext 19116if { (ac_try="$ac_link" 19117case "(($ac_try" in 19118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19119 *) ac_try_echo=$ac_try;; 19120esac 19121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19122 (eval "$ac_link") 2>conftest.er1 19123 ac_status=$? 19124 grep -v '^ *+' conftest.er1 >conftest.err 19125 rm -f conftest.er1 19126 cat conftest.err >&5 19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19128 (exit $ac_status); } && 19129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19130 { (case "(($ac_try" in 19131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19132 *) ac_try_echo=$ac_try;; 19133esac 19134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19135 (eval "$ac_try") 2>&5 19136 ac_status=$? 19137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19138 (exit $ac_status); }; } && 19139 { ac_try='test -s conftest$ac_exeext' 19140 { (case "(($ac_try" in 19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19142 *) ac_try_echo=$ac_try;; 19143esac 19144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19145 (eval "$ac_try") 2>&5 19146 ac_status=$? 19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19148 (exit $ac_status); }; }; then 19149 ac_cv_lib_gcc___floatdidf=yes 19150else 19151 echo "$as_me: failed program was:" >&5 19152sed 's/^/| /' conftest.$ac_ext >&5 19153 19154 ac_cv_lib_gcc___floatdidf=no 19155fi 19156 19157rm -f core conftest.err conftest.$ac_objext \ 19158 conftest$ac_exeext conftest.$ac_ext 19159LIBS=$ac_check_lib_save_LIBS 19160fi 19161{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 19162echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 19163if test $ac_cv_lib_gcc___floatdidf = yes; then 19164 19165cat >>confdefs.h <<\_ACEOF 19166#define HAVE___FLOATDIDF 1 19167_ACEOF 19168 19169fi 19170 19171 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 19172echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 19173if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 19174 echo $ECHO_N "(cached) $ECHO_C" >&6 19175else 19176 ac_check_lib_save_LIBS=$LIBS 19177LIBS="-lgcc $LIBS" 19178cat >conftest.$ac_ext <<_ACEOF 19179/* confdefs.h. */ 19180_ACEOF 19181cat confdefs.h >>conftest.$ac_ext 19182cat >>conftest.$ac_ext <<_ACEOF 19183/* end confdefs.h. */ 19184 19185/* Override any GCC internal prototype to avoid an error. 19186 Use char because int might match the return type of a GCC 19187 builtin and then its argument prototype would still apply. */ 19188#ifdef __cplusplus 19189extern "C" 19190#endif 19191char __lshrdi3 (); 19192int 19193main () 19194{ 19195return __lshrdi3 (); 19196 ; 19197 return 0; 19198} 19199_ACEOF 19200rm -f conftest.$ac_objext conftest$ac_exeext 19201if { (ac_try="$ac_link" 19202case "(($ac_try" in 19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19204 *) ac_try_echo=$ac_try;; 19205esac 19206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19207 (eval "$ac_link") 2>conftest.er1 19208 ac_status=$? 19209 grep -v '^ *+' conftest.er1 >conftest.err 19210 rm -f conftest.er1 19211 cat conftest.err >&5 19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19213 (exit $ac_status); } && 19214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19215 { (case "(($ac_try" in 19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19217 *) ac_try_echo=$ac_try;; 19218esac 19219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19220 (eval "$ac_try") 2>&5 19221 ac_status=$? 19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19223 (exit $ac_status); }; } && 19224 { ac_try='test -s conftest$ac_exeext' 19225 { (case "(($ac_try" in 19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19227 *) ac_try_echo=$ac_try;; 19228esac 19229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19230 (eval "$ac_try") 2>&5 19231 ac_status=$? 19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19233 (exit $ac_status); }; }; then 19234 ac_cv_lib_gcc___lshrdi3=yes 19235else 19236 echo "$as_me: failed program was:" >&5 19237sed 's/^/| /' conftest.$ac_ext >&5 19238 19239 ac_cv_lib_gcc___lshrdi3=no 19240fi 19241 19242rm -f core conftest.err conftest.$ac_objext \ 19243 conftest$ac_exeext conftest.$ac_ext 19244LIBS=$ac_check_lib_save_LIBS 19245fi 19246{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 19247echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 19248if test $ac_cv_lib_gcc___lshrdi3 = yes; then 19249 19250cat >>confdefs.h <<\_ACEOF 19251#define HAVE___LSHRDI3 1 19252_ACEOF 19253 19254fi 19255 19256 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 19257echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 19258if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 19259 echo $ECHO_N "(cached) $ECHO_C" >&6 19260else 19261 ac_check_lib_save_LIBS=$LIBS 19262LIBS="-lgcc $LIBS" 19263cat >conftest.$ac_ext <<_ACEOF 19264/* confdefs.h. */ 19265_ACEOF 19266cat confdefs.h >>conftest.$ac_ext 19267cat >>conftest.$ac_ext <<_ACEOF 19268/* end confdefs.h. */ 19269 19270/* Override any GCC internal prototype to avoid an error. 19271 Use char because int might match the return type of a GCC 19272 builtin and then its argument prototype would still apply. */ 19273#ifdef __cplusplus 19274extern "C" 19275#endif 19276char __moddi3 (); 19277int 19278main () 19279{ 19280return __moddi3 (); 19281 ; 19282 return 0; 19283} 19284_ACEOF 19285rm -f conftest.$ac_objext conftest$ac_exeext 19286if { (ac_try="$ac_link" 19287case "(($ac_try" in 19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19289 *) ac_try_echo=$ac_try;; 19290esac 19291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19292 (eval "$ac_link") 2>conftest.er1 19293 ac_status=$? 19294 grep -v '^ *+' conftest.er1 >conftest.err 19295 rm -f conftest.er1 19296 cat conftest.err >&5 19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19298 (exit $ac_status); } && 19299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19300 { (case "(($ac_try" in 19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19302 *) ac_try_echo=$ac_try;; 19303esac 19304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19305 (eval "$ac_try") 2>&5 19306 ac_status=$? 19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19308 (exit $ac_status); }; } && 19309 { ac_try='test -s conftest$ac_exeext' 19310 { (case "(($ac_try" in 19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19312 *) ac_try_echo=$ac_try;; 19313esac 19314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19315 (eval "$ac_try") 2>&5 19316 ac_status=$? 19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19318 (exit $ac_status); }; }; then 19319 ac_cv_lib_gcc___moddi3=yes 19320else 19321 echo "$as_me: failed program was:" >&5 19322sed 's/^/| /' conftest.$ac_ext >&5 19323 19324 ac_cv_lib_gcc___moddi3=no 19325fi 19326 19327rm -f core conftest.err conftest.$ac_objext \ 19328 conftest$ac_exeext conftest.$ac_ext 19329LIBS=$ac_check_lib_save_LIBS 19330fi 19331{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 19332echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 19333if test $ac_cv_lib_gcc___moddi3 = yes; then 19334 19335cat >>confdefs.h <<\_ACEOF 19336#define HAVE___MODDI3 1 19337_ACEOF 19338 19339fi 19340 19341 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 19342echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 19343if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 19344 echo $ECHO_N "(cached) $ECHO_C" >&6 19345else 19346 ac_check_lib_save_LIBS=$LIBS 19347LIBS="-lgcc $LIBS" 19348cat >conftest.$ac_ext <<_ACEOF 19349/* confdefs.h. */ 19350_ACEOF 19351cat confdefs.h >>conftest.$ac_ext 19352cat >>conftest.$ac_ext <<_ACEOF 19353/* end confdefs.h. */ 19354 19355/* Override any GCC internal prototype to avoid an error. 19356 Use char because int might match the return type of a GCC 19357 builtin and then its argument prototype would still apply. */ 19358#ifdef __cplusplus 19359extern "C" 19360#endif 19361char __udivdi3 (); 19362int 19363main () 19364{ 19365return __udivdi3 (); 19366 ; 19367 return 0; 19368} 19369_ACEOF 19370rm -f conftest.$ac_objext conftest$ac_exeext 19371if { (ac_try="$ac_link" 19372case "(($ac_try" in 19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19374 *) ac_try_echo=$ac_try;; 19375esac 19376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19377 (eval "$ac_link") 2>conftest.er1 19378 ac_status=$? 19379 grep -v '^ *+' conftest.er1 >conftest.err 19380 rm -f conftest.er1 19381 cat conftest.err >&5 19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19383 (exit $ac_status); } && 19384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 19394 { ac_try='test -s conftest$ac_exeext' 19395 { (case "(($ac_try" in 19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19397 *) ac_try_echo=$ac_try;; 19398esac 19399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19400 (eval "$ac_try") 2>&5 19401 ac_status=$? 19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19403 (exit $ac_status); }; }; then 19404 ac_cv_lib_gcc___udivdi3=yes 19405else 19406 echo "$as_me: failed program was:" >&5 19407sed 's/^/| /' conftest.$ac_ext >&5 19408 19409 ac_cv_lib_gcc___udivdi3=no 19410fi 19411 19412rm -f core conftest.err conftest.$ac_objext \ 19413 conftest$ac_exeext conftest.$ac_ext 19414LIBS=$ac_check_lib_save_LIBS 19415fi 19416{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 19417echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 19418if test $ac_cv_lib_gcc___udivdi3 = yes; then 19419 19420cat >>confdefs.h <<\_ACEOF 19421#define HAVE___UDIVDI3 1 19422_ACEOF 19423 19424fi 19425 19426 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 19427echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 19428if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 19429 echo $ECHO_N "(cached) $ECHO_C" >&6 19430else 19431 ac_check_lib_save_LIBS=$LIBS 19432LIBS="-lgcc $LIBS" 19433cat >conftest.$ac_ext <<_ACEOF 19434/* confdefs.h. */ 19435_ACEOF 19436cat confdefs.h >>conftest.$ac_ext 19437cat >>conftest.$ac_ext <<_ACEOF 19438/* end confdefs.h. */ 19439 19440/* Override any GCC internal prototype to avoid an error. 19441 Use char because int might match the return type of a GCC 19442 builtin and then its argument prototype would still apply. */ 19443#ifdef __cplusplus 19444extern "C" 19445#endif 19446char __umoddi3 (); 19447int 19448main () 19449{ 19450return __umoddi3 (); 19451 ; 19452 return 0; 19453} 19454_ACEOF 19455rm -f conftest.$ac_objext conftest$ac_exeext 19456if { (ac_try="$ac_link" 19457case "(($ac_try" in 19458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19459 *) ac_try_echo=$ac_try;; 19460esac 19461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19462 (eval "$ac_link") 2>conftest.er1 19463 ac_status=$? 19464 grep -v '^ *+' conftest.er1 >conftest.err 19465 rm -f conftest.er1 19466 cat conftest.err >&5 19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19468 (exit $ac_status); } && 19469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 19479 { ac_try='test -s conftest$ac_exeext' 19480 { (case "(($ac_try" in 19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19482 *) ac_try_echo=$ac_try;; 19483esac 19484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19485 (eval "$ac_try") 2>&5 19486 ac_status=$? 19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19488 (exit $ac_status); }; }; then 19489 ac_cv_lib_gcc___umoddi3=yes 19490else 19491 echo "$as_me: failed program was:" >&5 19492sed 's/^/| /' conftest.$ac_ext >&5 19493 19494 ac_cv_lib_gcc___umoddi3=no 19495fi 19496 19497rm -f core conftest.err conftest.$ac_objext \ 19498 conftest$ac_exeext conftest.$ac_ext 19499LIBS=$ac_check_lib_save_LIBS 19500fi 19501{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 19502echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 19503if test $ac_cv_lib_gcc___umoddi3 = yes; then 19504 19505cat >>confdefs.h <<\_ACEOF 19506#define HAVE___UMODDI3 1 19507_ACEOF 19508 19509fi 19510 19511 19512 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 19513echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 19514if test "${ac_cv_lib_gcc___main+set}" = set; then 19515 echo $ECHO_N "(cached) $ECHO_C" >&6 19516else 19517 ac_check_lib_save_LIBS=$LIBS 19518LIBS="-lgcc $LIBS" 19519cat >conftest.$ac_ext <<_ACEOF 19520/* confdefs.h. */ 19521_ACEOF 19522cat confdefs.h >>conftest.$ac_ext 19523cat >>conftest.$ac_ext <<_ACEOF 19524/* end confdefs.h. */ 19525 19526/* Override any GCC internal prototype to avoid an error. 19527 Use char because int might match the return type of a GCC 19528 builtin and then its argument prototype would still apply. */ 19529#ifdef __cplusplus 19530extern "C" 19531#endif 19532char __main (); 19533int 19534main () 19535{ 19536return __main (); 19537 ; 19538 return 0; 19539} 19540_ACEOF 19541rm -f conftest.$ac_objext conftest$ac_exeext 19542if { (ac_try="$ac_link" 19543case "(($ac_try" in 19544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19545 *) ac_try_echo=$ac_try;; 19546esac 19547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19548 (eval "$ac_link") 2>conftest.er1 19549 ac_status=$? 19550 grep -v '^ *+' conftest.er1 >conftest.err 19551 rm -f conftest.er1 19552 cat conftest.err >&5 19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19554 (exit $ac_status); } && 19555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19556 { (case "(($ac_try" in 19557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19558 *) ac_try_echo=$ac_try;; 19559esac 19560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19561 (eval "$ac_try") 2>&5 19562 ac_status=$? 19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19564 (exit $ac_status); }; } && 19565 { ac_try='test -s conftest$ac_exeext' 19566 { (case "(($ac_try" in 19567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19568 *) ac_try_echo=$ac_try;; 19569esac 19570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19571 (eval "$ac_try") 2>&5 19572 ac_status=$? 19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19574 (exit $ac_status); }; }; then 19575 ac_cv_lib_gcc___main=yes 19576else 19577 echo "$as_me: failed program was:" >&5 19578sed 's/^/| /' conftest.$ac_ext >&5 19579 19580 ac_cv_lib_gcc___main=no 19581fi 19582 19583rm -f core conftest.err conftest.$ac_objext \ 19584 conftest$ac_exeext conftest.$ac_ext 19585LIBS=$ac_check_lib_save_LIBS 19586fi 19587{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 19588echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 19589if test $ac_cv_lib_gcc___main = yes; then 19590 19591cat >>confdefs.h <<\_ACEOF 19592#define HAVE___MAIN 1 19593_ACEOF 19594 19595fi 19596 19597 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 19598echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 19599if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 19600 echo $ECHO_N "(cached) $ECHO_C" >&6 19601else 19602 ac_check_lib_save_LIBS=$LIBS 19603LIBS="-lgcc $LIBS" 19604cat >conftest.$ac_ext <<_ACEOF 19605/* confdefs.h. */ 19606_ACEOF 19607cat confdefs.h >>conftest.$ac_ext 19608cat >>conftest.$ac_ext <<_ACEOF 19609/* end confdefs.h. */ 19610 19611/* Override any GCC internal prototype to avoid an error. 19612 Use char because int might match the return type of a GCC 19613 builtin and then its argument prototype would still apply. */ 19614#ifdef __cplusplus 19615extern "C" 19616#endif 19617char __cmpdi2 (); 19618int 19619main () 19620{ 19621return __cmpdi2 (); 19622 ; 19623 return 0; 19624} 19625_ACEOF 19626rm -f conftest.$ac_objext conftest$ac_exeext 19627if { (ac_try="$ac_link" 19628case "(($ac_try" in 19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19630 *) ac_try_echo=$ac_try;; 19631esac 19632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19633 (eval "$ac_link") 2>conftest.er1 19634 ac_status=$? 19635 grep -v '^ *+' conftest.er1 >conftest.err 19636 rm -f conftest.er1 19637 cat conftest.err >&5 19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19639 (exit $ac_status); } && 19640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19641 { (case "(($ac_try" in 19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19643 *) ac_try_echo=$ac_try;; 19644esac 19645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19646 (eval "$ac_try") 2>&5 19647 ac_status=$? 19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19649 (exit $ac_status); }; } && 19650 { ac_try='test -s conftest$ac_exeext' 19651 { (case "(($ac_try" in 19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19653 *) ac_try_echo=$ac_try;; 19654esac 19655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19656 (eval "$ac_try") 2>&5 19657 ac_status=$? 19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19659 (exit $ac_status); }; }; then 19660 ac_cv_lib_gcc___cmpdi2=yes 19661else 19662 echo "$as_me: failed program was:" >&5 19663sed 's/^/| /' conftest.$ac_ext >&5 19664 19665 ac_cv_lib_gcc___cmpdi2=no 19666fi 19667 19668rm -f core conftest.err conftest.$ac_objext \ 19669 conftest$ac_exeext conftest.$ac_ext 19670LIBS=$ac_check_lib_save_LIBS 19671fi 19672{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 19673echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 19674if test $ac_cv_lib_gcc___cmpdi2 = yes; then 19675 19676cat >>confdefs.h <<\_ACEOF 19677#define HAVE___CMPDI2 1 19678_ACEOF 19679 19680fi 19681 19682fi 19683 19684if test "$llvm_cv_os_type" = "MingW" ; then 19685 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 19686echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 19687 cat >conftest.$ac_ext <<_ACEOF 19688 19689 /* confdefs.h. */ 19690_ACEOF 19691cat confdefs.h >>conftest.$ac_ext 19692cat >>conftest.$ac_ext <<_ACEOF 19693/* end confdefs.h. */ 19694 19695 #include <windows.h> 19696 #include <imagehlp.h> 19697 extern void foo(PENUMLOADED_MODULES_CALLBACK); 19698 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 19699 19700 19701_ACEOF 19702rm -f conftest.$ac_objext 19703if { (ac_try="$ac_compile" 19704case "(($ac_try" in 19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19706 *) ac_try_echo=$ac_try;; 19707esac 19708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19709 (eval "$ac_compile") 2>conftest.er1 19710 ac_status=$? 19711 grep -v '^ *+' conftest.er1 >conftest.err 19712 rm -f conftest.er1 19713 cat conftest.err >&5 19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19715 (exit $ac_status); } && 19716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19717 { (case "(($ac_try" in 19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19719 *) ac_try_echo=$ac_try;; 19720esac 19721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19722 (eval "$ac_try") 2>&5 19723 ac_status=$? 19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19725 (exit $ac_status); }; } && 19726 { ac_try='test -s conftest.$ac_objext' 19727 { (case "(($ac_try" in 19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19729 *) ac_try_echo=$ac_try;; 19730esac 19731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19732 (eval "$ac_try") 2>&5 19733 ac_status=$? 19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19735 (exit $ac_status); }; }; then 19736 19737 { echo "$as_me:$LINENO: result: yes" >&5 19738echo "${ECHO_T}yes" >&6; } 19739 llvm_cv_win32_elmcb_pcstr="PCSTR" 19740 19741else 19742 echo "$as_me: failed program was:" >&5 19743sed 's/^/| /' conftest.$ac_ext >&5 19744 19745 19746 { echo "$as_me:$LINENO: result: no" >&5 19747echo "${ECHO_T}no" >&6; } 19748 llvm_cv_win32_elmcb_pcstr="PSTR" 19749 19750fi 19751 19752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19753 19754cat >>confdefs.h <<_ACEOF 19755#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 19756_ACEOF 19757 19758fi 19759 19760 19761 19762 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 19763echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 19764if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 19765 echo $ECHO_N "(cached) $ECHO_C" >&6 19766else 19767 19768 ac_ext=cpp 19769ac_cpp='$CXXCPP $CPPFLAGS' 19770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19773 19774 cat >conftest.$ac_ext <<_ACEOF 19775/* confdefs.h. */ 19776_ACEOF 19777cat confdefs.h >>conftest.$ac_ext 19778cat >>conftest.$ac_ext <<_ACEOF 19779/* end confdefs.h. */ 19780#include <math.h> 19781int 19782main () 19783{ 19784float f; isnan(f); 19785 ; 19786 return 0; 19787} 19788_ACEOF 19789rm -f conftest.$ac_objext 19790if { (ac_try="$ac_compile" 19791case "(($ac_try" in 19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19793 *) ac_try_echo=$ac_try;; 19794esac 19795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19796 (eval "$ac_compile") 2>conftest.er1 19797 ac_status=$? 19798 grep -v '^ *+' conftest.er1 >conftest.err 19799 rm -f conftest.er1 19800 cat conftest.err >&5 19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19802 (exit $ac_status); } && 19803 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19804 { (case "(($ac_try" in 19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19806 *) ac_try_echo=$ac_try;; 19807esac 19808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19809 (eval "$ac_try") 2>&5 19810 ac_status=$? 19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19812 (exit $ac_status); }; } && 19813 { ac_try='test -s conftest.$ac_objext' 19814 { (case "(($ac_try" in 19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19816 *) ac_try_echo=$ac_try;; 19817esac 19818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19819 (eval "$ac_try") 2>&5 19820 ac_status=$? 19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19822 (exit $ac_status); }; }; then 19823 ac_cv_func_isnan_in_math_h=yes 19824else 19825 echo "$as_me: failed program was:" >&5 19826sed 's/^/| /' conftest.$ac_ext >&5 19827 19828 ac_cv_func_isnan_in_math_h=no 19829fi 19830 19831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19832 ac_ext=c 19833ac_cpp='$CPP $CPPFLAGS' 19834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19836ac_compiler_gnu=$ac_cv_c_compiler_gnu 19837 19838 19839fi 19840{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 19841echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 19842 19843 19844if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 19845 19846cat >>confdefs.h <<\_ACEOF 19847#define HAVE_ISNAN_IN_MATH_H 1 19848_ACEOF 19849 19850fi 19851 19852 19853 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 19854echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 19855if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 19856 echo $ECHO_N "(cached) $ECHO_C" >&6 19857else 19858 19859 ac_ext=cpp 19860ac_cpp='$CXXCPP $CPPFLAGS' 19861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19864 19865 cat >conftest.$ac_ext <<_ACEOF 19866/* confdefs.h. */ 19867_ACEOF 19868cat confdefs.h >>conftest.$ac_ext 19869cat >>conftest.$ac_ext <<_ACEOF 19870/* end confdefs.h. */ 19871#include <cmath> 19872int 19873main () 19874{ 19875float f; isnan(f); 19876 ; 19877 return 0; 19878} 19879_ACEOF 19880rm -f conftest.$ac_objext 19881if { (ac_try="$ac_compile" 19882case "(($ac_try" in 19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19884 *) ac_try_echo=$ac_try;; 19885esac 19886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19887 (eval "$ac_compile") 2>conftest.er1 19888 ac_status=$? 19889 grep -v '^ *+' conftest.er1 >conftest.err 19890 rm -f conftest.er1 19891 cat conftest.err >&5 19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19893 (exit $ac_status); } && 19894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19895 { (case "(($ac_try" in 19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19897 *) ac_try_echo=$ac_try;; 19898esac 19899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19900 (eval "$ac_try") 2>&5 19901 ac_status=$? 19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19903 (exit $ac_status); }; } && 19904 { ac_try='test -s conftest.$ac_objext' 19905 { (case "(($ac_try" in 19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19907 *) ac_try_echo=$ac_try;; 19908esac 19909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19910 (eval "$ac_try") 2>&5 19911 ac_status=$? 19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19913 (exit $ac_status); }; }; then 19914 ac_cv_func_isnan_in_cmath=yes 19915else 19916 echo "$as_me: failed program was:" >&5 19917sed 's/^/| /' conftest.$ac_ext >&5 19918 19919 ac_cv_func_isnan_in_cmath=no 19920fi 19921 19922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19923 ac_ext=c 19924ac_cpp='$CPP $CPPFLAGS' 19925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19927ac_compiler_gnu=$ac_cv_c_compiler_gnu 19928 19929 19930fi 19931{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 19932echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 19933 19934if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 19935 19936cat >>confdefs.h <<\_ACEOF 19937#define HAVE_ISNAN_IN_CMATH 1 19938_ACEOF 19939 19940fi 19941 19942 19943 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 19944echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 19945if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 19946 echo $ECHO_N "(cached) $ECHO_C" >&6 19947else 19948 19949 ac_ext=cpp 19950ac_cpp='$CXXCPP $CPPFLAGS' 19951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19954 19955 cat >conftest.$ac_ext <<_ACEOF 19956/* confdefs.h. */ 19957_ACEOF 19958cat confdefs.h >>conftest.$ac_ext 19959cat >>conftest.$ac_ext <<_ACEOF 19960/* end confdefs.h. */ 19961#include <cmath> 19962int 19963main () 19964{ 19965float f; std::isnan(f); 19966 ; 19967 return 0; 19968} 19969_ACEOF 19970rm -f conftest.$ac_objext 19971if { (ac_try="$ac_compile" 19972case "(($ac_try" in 19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19974 *) ac_try_echo=$ac_try;; 19975esac 19976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19977 (eval "$ac_compile") 2>conftest.er1 19978 ac_status=$? 19979 grep -v '^ *+' conftest.er1 >conftest.err 19980 rm -f conftest.er1 19981 cat conftest.err >&5 19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19983 (exit $ac_status); } && 19984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19985 { (case "(($ac_try" in 19986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19987 *) ac_try_echo=$ac_try;; 19988esac 19989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19990 (eval "$ac_try") 2>&5 19991 ac_status=$? 19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19993 (exit $ac_status); }; } && 19994 { ac_try='test -s conftest.$ac_objext' 19995 { (case "(($ac_try" in 19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19997 *) ac_try_echo=$ac_try;; 19998esac 19999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20000 (eval "$ac_try") 2>&5 20001 ac_status=$? 20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20003 (exit $ac_status); }; }; then 20004 ac_cv_func_std_isnan_in_cmath=yes 20005else 20006 echo "$as_me: failed program was:" >&5 20007sed 's/^/| /' conftest.$ac_ext >&5 20008 20009 ac_cv_func_std_isnan_in_cmath=no 20010fi 20011 20012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20013 ac_ext=c 20014ac_cpp='$CPP $CPPFLAGS' 20015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20017ac_compiler_gnu=$ac_cv_c_compiler_gnu 20018 20019 20020fi 20021{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 20022echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 20023 20024if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 20025 20026cat >>confdefs.h <<\_ACEOF 20027#define HAVE_STD_ISNAN_IN_CMATH 1 20028_ACEOF 20029 20030fi 20031 20032 20033 20034 20035 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 20036echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 20037if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 20038 echo $ECHO_N "(cached) $ECHO_C" >&6 20039else 20040 20041 ac_ext=cpp 20042ac_cpp='$CXXCPP $CPPFLAGS' 20043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20046 20047 cat >conftest.$ac_ext <<_ACEOF 20048/* confdefs.h. */ 20049_ACEOF 20050cat confdefs.h >>conftest.$ac_ext 20051cat >>conftest.$ac_ext <<_ACEOF 20052/* end confdefs.h. */ 20053#include <math.h> 20054int 20055main () 20056{ 20057float f; isinf(f); 20058 ; 20059 return 0; 20060} 20061_ACEOF 20062rm -f conftest.$ac_objext 20063if { (ac_try="$ac_compile" 20064case "(($ac_try" in 20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20066 *) ac_try_echo=$ac_try;; 20067esac 20068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20069 (eval "$ac_compile") 2>conftest.er1 20070 ac_status=$? 20071 grep -v '^ *+' conftest.er1 >conftest.err 20072 rm -f conftest.er1 20073 cat conftest.err >&5 20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20075 (exit $ac_status); } && 20076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20077 { (case "(($ac_try" in 20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20079 *) ac_try_echo=$ac_try;; 20080esac 20081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20082 (eval "$ac_try") 2>&5 20083 ac_status=$? 20084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20085 (exit $ac_status); }; } && 20086 { ac_try='test -s conftest.$ac_objext' 20087 { (case "(($ac_try" in 20088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20089 *) ac_try_echo=$ac_try;; 20090esac 20091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20092 (eval "$ac_try") 2>&5 20093 ac_status=$? 20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20095 (exit $ac_status); }; }; then 20096 ac_cv_func_isinf_in_math_h=yes 20097else 20098 echo "$as_me: failed program was:" >&5 20099sed 's/^/| /' conftest.$ac_ext >&5 20100 20101 ac_cv_func_isinf_in_math_h=no 20102fi 20103 20104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20105 ac_ext=c 20106ac_cpp='$CPP $CPPFLAGS' 20107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20109ac_compiler_gnu=$ac_cv_c_compiler_gnu 20110 20111 20112fi 20113{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 20114echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 20115 20116if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 20117 20118cat >>confdefs.h <<\_ACEOF 20119#define HAVE_ISINF_IN_MATH_H 1 20120_ACEOF 20121 20122fi 20123 20124 20125 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 20126echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 20127if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 20128 echo $ECHO_N "(cached) $ECHO_C" >&6 20129else 20130 20131 ac_ext=cpp 20132ac_cpp='$CXXCPP $CPPFLAGS' 20133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20136 20137 cat >conftest.$ac_ext <<_ACEOF 20138/* confdefs.h. */ 20139_ACEOF 20140cat confdefs.h >>conftest.$ac_ext 20141cat >>conftest.$ac_ext <<_ACEOF 20142/* end confdefs.h. */ 20143#include <cmath> 20144int 20145main () 20146{ 20147float f; isinf(f); 20148 ; 20149 return 0; 20150} 20151_ACEOF 20152rm -f conftest.$ac_objext 20153if { (ac_try="$ac_compile" 20154case "(($ac_try" in 20155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20156 *) ac_try_echo=$ac_try;; 20157esac 20158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20159 (eval "$ac_compile") 2>conftest.er1 20160 ac_status=$? 20161 grep -v '^ *+' conftest.er1 >conftest.err 20162 rm -f conftest.er1 20163 cat conftest.err >&5 20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20165 (exit $ac_status); } && 20166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20167 { (case "(($ac_try" in 20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20169 *) ac_try_echo=$ac_try;; 20170esac 20171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20172 (eval "$ac_try") 2>&5 20173 ac_status=$? 20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20175 (exit $ac_status); }; } && 20176 { ac_try='test -s conftest.$ac_objext' 20177 { (case "(($ac_try" in 20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20179 *) ac_try_echo=$ac_try;; 20180esac 20181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20182 (eval "$ac_try") 2>&5 20183 ac_status=$? 20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20185 (exit $ac_status); }; }; then 20186 ac_cv_func_isinf_in_cmath=yes 20187else 20188 echo "$as_me: failed program was:" >&5 20189sed 's/^/| /' conftest.$ac_ext >&5 20190 20191 ac_cv_func_isinf_in_cmath=no 20192fi 20193 20194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20195 ac_ext=c 20196ac_cpp='$CPP $CPPFLAGS' 20197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20199ac_compiler_gnu=$ac_cv_c_compiler_gnu 20200 20201 20202fi 20203{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 20204echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 20205 20206if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 20207 20208cat >>confdefs.h <<\_ACEOF 20209#define HAVE_ISINF_IN_CMATH 1 20210_ACEOF 20211 20212fi 20213 20214 20215 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 20216echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 20217if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 20218 echo $ECHO_N "(cached) $ECHO_C" >&6 20219else 20220 20221 ac_ext=cpp 20222ac_cpp='$CXXCPP $CPPFLAGS' 20223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20226 20227 cat >conftest.$ac_ext <<_ACEOF 20228/* confdefs.h. */ 20229_ACEOF 20230cat confdefs.h >>conftest.$ac_ext 20231cat >>conftest.$ac_ext <<_ACEOF 20232/* end confdefs.h. */ 20233#include <cmath> 20234int 20235main () 20236{ 20237float f; std::isinf(f); 20238 ; 20239 return 0; 20240} 20241_ACEOF 20242rm -f conftest.$ac_objext 20243if { (ac_try="$ac_compile" 20244case "(($ac_try" in 20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20246 *) ac_try_echo=$ac_try;; 20247esac 20248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20249 (eval "$ac_compile") 2>conftest.er1 20250 ac_status=$? 20251 grep -v '^ *+' conftest.er1 >conftest.err 20252 rm -f conftest.er1 20253 cat conftest.err >&5 20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20255 (exit $ac_status); } && 20256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20257 { (case "(($ac_try" in 20258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20259 *) ac_try_echo=$ac_try;; 20260esac 20261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20262 (eval "$ac_try") 2>&5 20263 ac_status=$? 20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20265 (exit $ac_status); }; } && 20266 { ac_try='test -s conftest.$ac_objext' 20267 { (case "(($ac_try" in 20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20269 *) ac_try_echo=$ac_try;; 20270esac 20271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20272 (eval "$ac_try") 2>&5 20273 ac_status=$? 20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20275 (exit $ac_status); }; }; then 20276 ac_cv_func_std_isinf_in_cmath=yes 20277else 20278 echo "$as_me: failed program was:" >&5 20279sed 's/^/| /' conftest.$ac_ext >&5 20280 20281 ac_cv_func_std_isinf_in_cmath=no 20282fi 20283 20284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20285 ac_ext=c 20286ac_cpp='$CPP $CPPFLAGS' 20287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20289ac_compiler_gnu=$ac_cv_c_compiler_gnu 20290 20291 20292fi 20293{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 20294echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 20295 20296if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 20297 20298cat >>confdefs.h <<\_ACEOF 20299#define HAVE_STD_ISINF_IN_CMATH 1 20300_ACEOF 20301 20302fi 20303 20304 20305 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 20306echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 20307if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 20308 echo $ECHO_N "(cached) $ECHO_C" >&6 20309else 20310 20311 ac_ext=cpp 20312ac_cpp='$CXXCPP $CPPFLAGS' 20313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20316 20317 cat >conftest.$ac_ext <<_ACEOF 20318/* confdefs.h. */ 20319_ACEOF 20320cat confdefs.h >>conftest.$ac_ext 20321cat >>conftest.$ac_ext <<_ACEOF 20322/* end confdefs.h. */ 20323#include <ieeefp.h> 20324int 20325main () 20326{ 20327float f; finite(f); 20328 ; 20329 return 0; 20330} 20331_ACEOF 20332rm -f conftest.$ac_objext 20333if { (ac_try="$ac_compile" 20334case "(($ac_try" in 20335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20336 *) ac_try_echo=$ac_try;; 20337esac 20338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20339 (eval "$ac_compile") 2>conftest.er1 20340 ac_status=$? 20341 grep -v '^ *+' conftest.er1 >conftest.err 20342 rm -f conftest.er1 20343 cat conftest.err >&5 20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20345 (exit $ac_status); } && 20346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20347 { (case "(($ac_try" in 20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20349 *) ac_try_echo=$ac_try;; 20350esac 20351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20352 (eval "$ac_try") 2>&5 20353 ac_status=$? 20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20355 (exit $ac_status); }; } && 20356 { ac_try='test -s conftest.$ac_objext' 20357 { (case "(($ac_try" in 20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20359 *) ac_try_echo=$ac_try;; 20360esac 20361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20362 (eval "$ac_try") 2>&5 20363 ac_status=$? 20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20365 (exit $ac_status); }; }; then 20366 ac_cv_func_finite_in_ieeefp_h=yes 20367else 20368 echo "$as_me: failed program was:" >&5 20369sed 's/^/| /' conftest.$ac_ext >&5 20370 20371 ac_cv_func_finite_in_ieeefp_h=no 20372fi 20373 20374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20375 ac_ext=c 20376ac_cpp='$CPP $CPPFLAGS' 20377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20379ac_compiler_gnu=$ac_cv_c_compiler_gnu 20380 20381 20382fi 20383{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 20384echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 20385 20386if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 20387 20388cat >>confdefs.h <<\_ACEOF 20389#define HAVE_FINITE_IN_IEEEFP_H 1 20390_ACEOF 20391 20392fi 20393 20394 20395 20396if test "$llvm_cv_platform_type" = "Unix" ; then 20397 20398 20399for ac_header in stdlib.h unistd.h 20400do 20401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20403 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20406 echo $ECHO_N "(cached) $ECHO_C" >&6 20407fi 20408ac_res=`eval echo '${'$as_ac_Header'}'` 20409 { echo "$as_me:$LINENO: result: $ac_res" >&5 20410echo "${ECHO_T}$ac_res" >&6; } 20411else 20412 # Is the header compilable? 20413{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20415cat >conftest.$ac_ext <<_ACEOF 20416/* confdefs.h. */ 20417_ACEOF 20418cat confdefs.h >>conftest.$ac_ext 20419cat >>conftest.$ac_ext <<_ACEOF 20420/* end confdefs.h. */ 20421$ac_includes_default 20422#include <$ac_header> 20423_ACEOF 20424rm -f conftest.$ac_objext 20425if { (ac_try="$ac_compile" 20426case "(($ac_try" in 20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20428 *) ac_try_echo=$ac_try;; 20429esac 20430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20431 (eval "$ac_compile") 2>conftest.er1 20432 ac_status=$? 20433 grep -v '^ *+' conftest.er1 >conftest.err 20434 rm -f conftest.er1 20435 cat conftest.err >&5 20436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20437 (exit $ac_status); } && 20438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20439 { (case "(($ac_try" in 20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20441 *) ac_try_echo=$ac_try;; 20442esac 20443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20444 (eval "$ac_try") 2>&5 20445 ac_status=$? 20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20447 (exit $ac_status); }; } && 20448 { ac_try='test -s conftest.$ac_objext' 20449 { (case "(($ac_try" in 20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20451 *) ac_try_echo=$ac_try;; 20452esac 20453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20454 (eval "$ac_try") 2>&5 20455 ac_status=$? 20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20457 (exit $ac_status); }; }; then 20458 ac_header_compiler=yes 20459else 20460 echo "$as_me: failed program was:" >&5 20461sed 's/^/| /' conftest.$ac_ext >&5 20462 20463 ac_header_compiler=no 20464fi 20465 20466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20467{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20468echo "${ECHO_T}$ac_header_compiler" >&6; } 20469 20470# Is the header present? 20471{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20473cat >conftest.$ac_ext <<_ACEOF 20474/* confdefs.h. */ 20475_ACEOF 20476cat confdefs.h >>conftest.$ac_ext 20477cat >>conftest.$ac_ext <<_ACEOF 20478/* end confdefs.h. */ 20479#include <$ac_header> 20480_ACEOF 20481if { (ac_try="$ac_cpp conftest.$ac_ext" 20482case "(($ac_try" in 20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20484 *) ac_try_echo=$ac_try;; 20485esac 20486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20488 ac_status=$? 20489 grep -v '^ *+' conftest.er1 >conftest.err 20490 rm -f conftest.er1 20491 cat conftest.err >&5 20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20493 (exit $ac_status); } >/dev/null; then 20494 if test -s conftest.err; then 20495 ac_cpp_err=$ac_c_preproc_warn_flag 20496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20497 else 20498 ac_cpp_err= 20499 fi 20500else 20501 ac_cpp_err=yes 20502fi 20503if test -z "$ac_cpp_err"; then 20504 ac_header_preproc=yes 20505else 20506 echo "$as_me: failed program was:" >&5 20507sed 's/^/| /' conftest.$ac_ext >&5 20508 20509 ac_header_preproc=no 20510fi 20511 20512rm -f conftest.err conftest.$ac_ext 20513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20514echo "${ECHO_T}$ac_header_preproc" >&6; } 20515 20516# So? What about this header? 20517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20518 yes:no: ) 20519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20523 ac_header_preproc=yes 20524 ;; 20525 no:yes:* ) 20526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20529echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20533echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20538 ( cat <<\_ASBOX 20539## ------------------------------------ ## 20540## Report this to http://llvm.org/bugs/ ## 20541## ------------------------------------ ## 20542_ASBOX 20543 ) | sed "s/^/$as_me: WARNING: /" >&2 20544 ;; 20545esac 20546{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20549 echo $ECHO_N "(cached) $ECHO_C" >&6 20550else 20551 eval "$as_ac_Header=\$ac_header_preproc" 20552fi 20553ac_res=`eval echo '${'$as_ac_Header'}'` 20554 { echo "$as_me:$LINENO: result: $ac_res" >&5 20555echo "${ECHO_T}$ac_res" >&6; } 20556 20557fi 20558if test `eval echo '${'$as_ac_Header'}'` = yes; then 20559 cat >>confdefs.h <<_ACEOF 20560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20561_ACEOF 20562 20563fi 20564 20565done 20566 20567 20568for ac_func in getpagesize 20569do 20570as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20571{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20572echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20573if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20574 echo $ECHO_N "(cached) $ECHO_C" >&6 20575else 20576 cat >conftest.$ac_ext <<_ACEOF 20577/* confdefs.h. */ 20578_ACEOF 20579cat confdefs.h >>conftest.$ac_ext 20580cat >>conftest.$ac_ext <<_ACEOF 20581/* end confdefs.h. */ 20582/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20583 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20584#define $ac_func innocuous_$ac_func 20585 20586/* System header to define __stub macros and hopefully few prototypes, 20587 which can conflict with char $ac_func (); below. 20588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20589 <limits.h> exists even on freestanding compilers. */ 20590 20591#ifdef __STDC__ 20592# include <limits.h> 20593#else 20594# include <assert.h> 20595#endif 20596 20597#undef $ac_func 20598 20599/* Override any GCC internal prototype to avoid an error. 20600 Use char because int might match the return type of a GCC 20601 builtin and then its argument prototype would still apply. */ 20602#ifdef __cplusplus 20603extern "C" 20604#endif 20605char $ac_func (); 20606/* The GNU C library defines this for functions which it implements 20607 to always fail with ENOSYS. Some functions are actually named 20608 something starting with __ and the normal name is an alias. */ 20609#if defined __stub_$ac_func || defined __stub___$ac_func 20610choke me 20611#endif 20612 20613int 20614main () 20615{ 20616return $ac_func (); 20617 ; 20618 return 0; 20619} 20620_ACEOF 20621rm -f conftest.$ac_objext conftest$ac_exeext 20622if { (ac_try="$ac_link" 20623case "(($ac_try" in 20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20625 *) ac_try_echo=$ac_try;; 20626esac 20627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20628 (eval "$ac_link") 2>conftest.er1 20629 ac_status=$? 20630 grep -v '^ *+' conftest.er1 >conftest.err 20631 rm -f conftest.er1 20632 cat conftest.err >&5 20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20634 (exit $ac_status); } && 20635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20636 { (case "(($ac_try" in 20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20638 *) ac_try_echo=$ac_try;; 20639esac 20640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20641 (eval "$ac_try") 2>&5 20642 ac_status=$? 20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20644 (exit $ac_status); }; } && 20645 { ac_try='test -s conftest$ac_exeext' 20646 { (case "(($ac_try" in 20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20648 *) ac_try_echo=$ac_try;; 20649esac 20650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20651 (eval "$ac_try") 2>&5 20652 ac_status=$? 20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20654 (exit $ac_status); }; }; then 20655 eval "$as_ac_var=yes" 20656else 20657 echo "$as_me: failed program was:" >&5 20658sed 's/^/| /' conftest.$ac_ext >&5 20659 20660 eval "$as_ac_var=no" 20661fi 20662 20663rm -f core conftest.err conftest.$ac_objext \ 20664 conftest$ac_exeext conftest.$ac_ext 20665fi 20666ac_res=`eval echo '${'$as_ac_var'}'` 20667 { echo "$as_me:$LINENO: result: $ac_res" >&5 20668echo "${ECHO_T}$ac_res" >&6; } 20669if test `eval echo '${'$as_ac_var'}'` = yes; then 20670 cat >>confdefs.h <<_ACEOF 20671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20672_ACEOF 20673 20674fi 20675done 20676 20677{ echo "$as_me:$LINENO: checking for working mmap" >&5 20678echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 20679if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 20680 echo $ECHO_N "(cached) $ECHO_C" >&6 20681else 20682 if test "$cross_compiling" = yes; then 20683 ac_cv_func_mmap_fixed_mapped=no 20684else 20685 cat >conftest.$ac_ext <<_ACEOF 20686/* confdefs.h. */ 20687_ACEOF 20688cat confdefs.h >>conftest.$ac_ext 20689cat >>conftest.$ac_ext <<_ACEOF 20690/* end confdefs.h. */ 20691$ac_includes_default 20692/* malloc might have been renamed as rpl_malloc. */ 20693#undef malloc 20694 20695/* Thanks to Mike Haertel and Jim Avera for this test. 20696 Here is a matrix of mmap possibilities: 20697 mmap private not fixed 20698 mmap private fixed at somewhere currently unmapped 20699 mmap private fixed at somewhere already mapped 20700 mmap shared not fixed 20701 mmap shared fixed at somewhere currently unmapped 20702 mmap shared fixed at somewhere already mapped 20703 For private mappings, we should verify that changes cannot be read() 20704 back from the file, nor mmap's back from the file at a different 20705 address. (There have been systems where private was not correctly 20706 implemented like the infamous i386 svr4.0, and systems where the 20707 VM page cache was not coherent with the file system buffer cache 20708 like early versions of FreeBSD and possibly contemporary NetBSD.) 20709 For shared mappings, we should conversely verify that changes get 20710 propagated back to all the places they're supposed to be. 20711 20712 Grep wants private fixed already mapped. 20713 The main things grep needs to know about mmap are: 20714 * does it exist and is it safe to write into the mmap'd area 20715 * how to use it (BSD variants) */ 20716 20717#include <fcntl.h> 20718#include <sys/mman.h> 20719 20720#if !STDC_HEADERS && !HAVE_STDLIB_H 20721char *malloc (); 20722#endif 20723 20724/* This mess was copied from the GNU getpagesize.h. */ 20725#if !HAVE_GETPAGESIZE 20726/* Assume that all systems that can run configure have sys/param.h. */ 20727# if !HAVE_SYS_PARAM_H 20728# define HAVE_SYS_PARAM_H 1 20729# endif 20730 20731# ifdef _SC_PAGESIZE 20732# define getpagesize() sysconf(_SC_PAGESIZE) 20733# else /* no _SC_PAGESIZE */ 20734# if HAVE_SYS_PARAM_H 20735# include <sys/param.h> 20736# ifdef EXEC_PAGESIZE 20737# define getpagesize() EXEC_PAGESIZE 20738# else /* no EXEC_PAGESIZE */ 20739# ifdef NBPG 20740# define getpagesize() NBPG * CLSIZE 20741# ifndef CLSIZE 20742# define CLSIZE 1 20743# endif /* no CLSIZE */ 20744# else /* no NBPG */ 20745# ifdef NBPC 20746# define getpagesize() NBPC 20747# else /* no NBPC */ 20748# ifdef PAGESIZE 20749# define getpagesize() PAGESIZE 20750# endif /* PAGESIZE */ 20751# endif /* no NBPC */ 20752# endif /* no NBPG */ 20753# endif /* no EXEC_PAGESIZE */ 20754# else /* no HAVE_SYS_PARAM_H */ 20755# define getpagesize() 8192 /* punt totally */ 20756# endif /* no HAVE_SYS_PARAM_H */ 20757# endif /* no _SC_PAGESIZE */ 20758 20759#endif /* no HAVE_GETPAGESIZE */ 20760 20761int 20762main () 20763{ 20764 char *data, *data2, *data3; 20765 int i, pagesize; 20766 int fd; 20767 20768 pagesize = getpagesize (); 20769 20770 /* First, make a file with some known garbage in it. */ 20771 data = (char *) malloc (pagesize); 20772 if (!data) 20773 return 1; 20774 for (i = 0; i < pagesize; ++i) 20775 *(data + i) = rand (); 20776 umask (0); 20777 fd = creat ("conftest.mmap", 0600); 20778 if (fd < 0) 20779 return 1; 20780 if (write (fd, data, pagesize) != pagesize) 20781 return 1; 20782 close (fd); 20783 20784 /* Next, try to mmap the file at a fixed address which already has 20785 something else allocated at it. If we can, also make sure that 20786 we see the same garbage. */ 20787 fd = open ("conftest.mmap", O_RDWR); 20788 if (fd < 0) 20789 return 1; 20790 data2 = (char *) malloc (2 * pagesize); 20791 if (!data2) 20792 return 1; 20793 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 20794 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20795 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20796 return 1; 20797 for (i = 0; i < pagesize; ++i) 20798 if (*(data + i) != *(data2 + i)) 20799 return 1; 20800 20801 /* Finally, make sure that changes to the mapped area do not 20802 percolate back to the file as seen by read(). (This is a bug on 20803 some variants of i386 svr4.0.) */ 20804 for (i = 0; i < pagesize; ++i) 20805 *(data2 + i) = *(data2 + i) + 1; 20806 data3 = (char *) malloc (pagesize); 20807 if (!data3) 20808 return 1; 20809 if (read (fd, data3, pagesize) != pagesize) 20810 return 1; 20811 for (i = 0; i < pagesize; ++i) 20812 if (*(data + i) != *(data3 + i)) 20813 return 1; 20814 close (fd); 20815 return 0; 20816} 20817_ACEOF 20818rm -f conftest$ac_exeext 20819if { (ac_try="$ac_link" 20820case "(($ac_try" in 20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20822 *) ac_try_echo=$ac_try;; 20823esac 20824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20825 (eval "$ac_link") 2>&5 20826 ac_status=$? 20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20829 { (case "(($ac_try" in 20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20831 *) ac_try_echo=$ac_try;; 20832esac 20833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20834 (eval "$ac_try") 2>&5 20835 ac_status=$? 20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20837 (exit $ac_status); }; }; then 20838 ac_cv_func_mmap_fixed_mapped=yes 20839else 20840 echo "$as_me: program exited with status $ac_status" >&5 20841echo "$as_me: failed program was:" >&5 20842sed 's/^/| /' conftest.$ac_ext >&5 20843 20844( exit $ac_status ) 20845ac_cv_func_mmap_fixed_mapped=no 20846fi 20847rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20848fi 20849 20850 20851fi 20852{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 20853echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 20854if test $ac_cv_func_mmap_fixed_mapped = yes; then 20855 20856cat >>confdefs.h <<\_ACEOF 20857#define HAVE_MMAP 1 20858_ACEOF 20859 20860fi 20861rm -f conftest.mmap 20862 20863 { echo "$as_me:$LINENO: checking for mmap of files" >&5 20864echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 20865if test "${ac_cv_func_mmap_file+set}" = set; then 20866 echo $ECHO_N "(cached) $ECHO_C" >&6 20867else 20868 ac_ext=c 20869ac_cpp='$CPP $CPPFLAGS' 20870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20872ac_compiler_gnu=$ac_cv_c_compiler_gnu 20873 20874 if test "$cross_compiling" = yes; then 20875 ac_cv_func_mmap_file=no 20876else 20877 cat >conftest.$ac_ext <<_ACEOF 20878 20879 /* confdefs.h. */ 20880_ACEOF 20881cat confdefs.h >>conftest.$ac_ext 20882cat >>conftest.$ac_ext <<_ACEOF 20883/* end confdefs.h. */ 20884 20885#include <sys/types.h> 20886#include <sys/mman.h> 20887#include <fcntl.h> 20888 20889int 20890main () 20891{ 20892 20893 int fd; 20894 fd = creat ("foo",0777); 20895 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 20896 unlink ("foo"); 20897 return (fd != (int) MAP_FAILED); 20898 ; 20899 return 0; 20900} 20901_ACEOF 20902rm -f conftest$ac_exeext 20903if { (ac_try="$ac_link" 20904case "(($ac_try" in 20905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20906 *) ac_try_echo=$ac_try;; 20907esac 20908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20909 (eval "$ac_link") 2>&5 20910 ac_status=$? 20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20913 { (case "(($ac_try" in 20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20915 *) ac_try_echo=$ac_try;; 20916esac 20917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20918 (eval "$ac_try") 2>&5 20919 ac_status=$? 20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20921 (exit $ac_status); }; }; then 20922 ac_cv_func_mmap_file=yes 20923else 20924 echo "$as_me: program exited with status $ac_status" >&5 20925echo "$as_me: failed program was:" >&5 20926sed 's/^/| /' conftest.$ac_ext >&5 20927 20928( exit $ac_status ) 20929ac_cv_func_mmap_file=no 20930fi 20931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20932fi 20933 20934 20935 ac_ext=c 20936ac_cpp='$CPP $CPPFLAGS' 20937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20939ac_compiler_gnu=$ac_cv_c_compiler_gnu 20940 20941 20942fi 20943{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 20944echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 20945if test "$ac_cv_func_mmap_file" = yes; then 20946 20947cat >>confdefs.h <<\_ACEOF 20948#define HAVE_MMAP_FILE 20949_ACEOF 20950 20951 MMAP_FILE=yes 20952 20953fi 20954 20955 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 20956echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 20957if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 20958 echo $ECHO_N "(cached) $ECHO_C" >&6 20959else 20960 if test "$llvm_cv_os_type" = "Interix" ; then 20961 ac_cv_need_dev_zero_for_mmap=yes 20962 else 20963 ac_cv_need_dev_zero_for_mmap=no 20964 fi 20965 20966fi 20967{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 20968echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 20969if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 20970 20971cat >>confdefs.h <<\_ACEOF 20972#define NEED_DEV_ZERO_FOR_MMAP 1 20973_ACEOF 20974 20975fi 20976 20977 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 20978 then 20979 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 20980echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 20981 fi 20982 if test "$ac_cv_func_mmap_file" = "no" 20983 then 20984 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 20985echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 20986 fi 20987fi 20988 20989{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 20990echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 20991ac_ext=cpp 20992ac_cpp='$CXXCPP $CPPFLAGS' 20993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20996 20997cat >conftest.$ac_ext <<_ACEOF 20998 20999 /* confdefs.h. */ 21000_ACEOF 21001cat confdefs.h >>conftest.$ac_ext 21002cat >>conftest.$ac_ext <<_ACEOF 21003/* end confdefs.h. */ 21004 21005 int main() { 21006 volatile unsigned long val = 1; 21007 __sync_synchronize(); 21008 __sync_val_compare_and_swap(&val, 1, 0); 21009 __sync_add_and_fetch(&val, 1); 21010 __sync_sub_and_fetch(&val, 1); 21011 return 0; 21012 } 21013 21014 21015_ACEOF 21016rm -f conftest.$ac_objext conftest$ac_exeext 21017if { (ac_try="$ac_link" 21018case "(($ac_try" in 21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21020 *) ac_try_echo=$ac_try;; 21021esac 21022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21023 (eval "$ac_link") 2>conftest.er1 21024 ac_status=$? 21025 grep -v '^ *+' conftest.er1 >conftest.err 21026 rm -f conftest.er1 21027 cat conftest.err >&5 21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21029 (exit $ac_status); } && 21030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21031 { (case "(($ac_try" in 21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21033 *) ac_try_echo=$ac_try;; 21034esac 21035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21036 (eval "$ac_try") 2>&5 21037 ac_status=$? 21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21039 (exit $ac_status); }; } && 21040 { ac_try='test -s conftest$ac_exeext' 21041 { (case "(($ac_try" in 21042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21043 *) ac_try_echo=$ac_try;; 21044esac 21045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21046 (eval "$ac_try") 2>&5 21047 ac_status=$? 21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21049 (exit $ac_status); }; }; then 21050 21051 { echo "$as_me:$LINENO: result: yes" >&5 21052echo "${ECHO_T}yes" >&6; } 21053 21054cat >>confdefs.h <<\_ACEOF 21055#define LLVM_HAS_ATOMICS 1 21056_ACEOF 21057 21058 21059else 21060 echo "$as_me: failed program was:" >&5 21061sed 's/^/| /' conftest.$ac_ext >&5 21062 21063 21064 { echo "$as_me:$LINENO: result: no" >&5 21065echo "${ECHO_T}no" >&6; } 21066 21067cat >>confdefs.h <<\_ACEOF 21068#define LLVM_HAS_ATOMICS 0 21069_ACEOF 21070 21071 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 21072echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 21073 21074fi 21075 21076rm -f core conftest.err conftest.$ac_objext \ 21077 conftest$ac_exeext conftest.$ac_ext 21078ac_ext=c 21079ac_cpp='$CPP $CPPFLAGS' 21080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21082ac_compiler_gnu=$ac_cv_c_compiler_gnu 21083 21084 21085 21086if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 21087 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 21088echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 21089if test "${llvm_cv_linux_mixed+set}" = set; then 21090 echo $ECHO_N "(cached) $ECHO_C" >&6 21091else 21092 ac_ext=c 21093ac_cpp='$CPP $CPPFLAGS' 21094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21096ac_compiler_gnu=$ac_cv_c_compiler_gnu 21097 21098 cat >conftest.$ac_ext <<_ACEOF 21099/* confdefs.h. */ 21100_ACEOF 21101cat confdefs.h >>conftest.$ac_ext 21102cat >>conftest.$ac_ext <<_ACEOF 21103/* end confdefs.h. */ 21104#ifndef __x86_64__ 21105 error: Not x86-64 even if uname says so! 21106 #endif 21107 21108int 21109main () 21110{ 21111 21112 ; 21113 return 0; 21114} 21115_ACEOF 21116rm -f conftest.$ac_objext 21117if { (ac_try="$ac_compile" 21118case "(($ac_try" in 21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21120 *) ac_try_echo=$ac_try;; 21121esac 21122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21123 (eval "$ac_compile") 2>conftest.er1 21124 ac_status=$? 21125 grep -v '^ *+' conftest.er1 >conftest.err 21126 rm -f conftest.er1 21127 cat conftest.err >&5 21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21129 (exit $ac_status); } && 21130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21131 { (case "(($ac_try" in 21132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21133 *) ac_try_echo=$ac_try;; 21134esac 21135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21136 (eval "$ac_try") 2>&5 21137 ac_status=$? 21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21139 (exit $ac_status); }; } && 21140 { ac_try='test -s conftest.$ac_objext' 21141 { (case "(($ac_try" in 21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21143 *) ac_try_echo=$ac_try;; 21144esac 21145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21146 (eval "$ac_try") 2>&5 21147 ac_status=$? 21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21149 (exit $ac_status); }; }; then 21150 llvm_cv_linux_mixed=no 21151else 21152 echo "$as_me: failed program was:" >&5 21153sed 's/^/| /' conftest.$ac_ext >&5 21154 21155 llvm_cv_linux_mixed=yes 21156fi 21157 21158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21159 ac_ext=c 21160ac_cpp='$CPP $CPPFLAGS' 21161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21163ac_compiler_gnu=$ac_cv_c_compiler_gnu 21164 21165 21166fi 21167{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 21168echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 21169 21170 if test "$llvm_cv_linux_mixed" = "yes"; then 21171 llvm_cv_target_arch="x86" 21172 ARCH="x86" 21173 fi 21174fi 21175 21176 21177for ac_func in __dso_handle 21178do 21179as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 21180{ echo "$as_me:$LINENO: checking for $ac_func" >&5 21181echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 21182if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 21183 echo $ECHO_N "(cached) $ECHO_C" >&6 21184else 21185 cat >conftest.$ac_ext <<_ACEOF 21186/* confdefs.h. */ 21187_ACEOF 21188cat confdefs.h >>conftest.$ac_ext 21189cat >>conftest.$ac_ext <<_ACEOF 21190/* end confdefs.h. */ 21191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 21192 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 21193#define $ac_func innocuous_$ac_func 21194 21195/* System header to define __stub macros and hopefully few prototypes, 21196 which can conflict with char $ac_func (); below. 21197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 21198 <limits.h> exists even on freestanding compilers. */ 21199 21200#ifdef __STDC__ 21201# include <limits.h> 21202#else 21203# include <assert.h> 21204#endif 21205 21206#undef $ac_func 21207 21208/* Override any GCC internal prototype to avoid an error. 21209 Use char because int might match the return type of a GCC 21210 builtin and then its argument prototype would still apply. */ 21211#ifdef __cplusplus 21212extern "C" 21213#endif 21214char $ac_func (); 21215/* The GNU C library defines this for functions which it implements 21216 to always fail with ENOSYS. Some functions are actually named 21217 something starting with __ and the normal name is an alias. */ 21218#if defined __stub_$ac_func || defined __stub___$ac_func 21219choke me 21220#endif 21221 21222int 21223main () 21224{ 21225return $ac_func (); 21226 ; 21227 return 0; 21228} 21229_ACEOF 21230rm -f conftest.$ac_objext conftest$ac_exeext 21231if { (ac_try="$ac_link" 21232case "(($ac_try" in 21233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21234 *) ac_try_echo=$ac_try;; 21235esac 21236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21237 (eval "$ac_link") 2>conftest.er1 21238 ac_status=$? 21239 grep -v '^ *+' conftest.er1 >conftest.err 21240 rm -f conftest.er1 21241 cat conftest.err >&5 21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21243 (exit $ac_status); } && 21244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21245 { (case "(($ac_try" in 21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21247 *) ac_try_echo=$ac_try;; 21248esac 21249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21250 (eval "$ac_try") 2>&5 21251 ac_status=$? 21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21253 (exit $ac_status); }; } && 21254 { ac_try='test -s conftest$ac_exeext' 21255 { (case "(($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_try") 2>&5 21261 ac_status=$? 21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21263 (exit $ac_status); }; }; then 21264 eval "$as_ac_var=yes" 21265else 21266 echo "$as_me: failed program was:" >&5 21267sed 's/^/| /' conftest.$ac_ext >&5 21268 21269 eval "$as_ac_var=no" 21270fi 21271 21272rm -f core conftest.err conftest.$ac_objext \ 21273 conftest$ac_exeext conftest.$ac_ext 21274fi 21275ac_res=`eval echo '${'$as_ac_var'}'` 21276 { echo "$as_me:$LINENO: result: $ac_res" >&5 21277echo "${ECHO_T}$ac_res" >&6; } 21278if test `eval echo '${'$as_ac_var'}'` = yes; then 21279 cat >>confdefs.h <<_ACEOF 21280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21281_ACEOF 21282 21283fi 21284done 21285 21286 21287SHLIBEXT=$libltdl_cv_shlibext 21288 21289 21290SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 21291 21292 21293if test "${prefix}" = "NONE" ; then 21294 prefix="/usr/local" 21295fi 21296eval LLVM_PREFIX="${prefix}"; 21297eval LLVM_BINDIR="${prefix}/bin"; 21298eval LLVM_LIBDIR="${prefix}/lib"; 21299eval LLVM_DATADIR="${prefix}/share/llvm"; 21300eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 21301eval LLVM_ETCDIR="${prefix}/etc/llvm"; 21302eval LLVM_INCLUDEDIR="${prefix}/include"; 21303eval LLVM_INFODIR="${prefix}/info"; 21304eval LLVM_MANDIR="${prefix}/man"; 21305LLVM_CONFIGTIME=`date` 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317if test "${ENABLE_TIMESTAMPS}" = "0"; then 21318 LLVM_CONFIGTIME="(timestamp not enabled)" 21319fi 21320 21321 21322cat >>confdefs.h <<_ACEOF 21323#define LLVM_PREFIX "$LLVM_PREFIX" 21324_ACEOF 21325 21326 21327cat >>confdefs.h <<_ACEOF 21328#define LLVM_BINDIR "$LLVM_BINDIR" 21329_ACEOF 21330 21331 21332cat >>confdefs.h <<_ACEOF 21333#define LLVM_LIBDIR "$LLVM_LIBDIR" 21334_ACEOF 21335 21336 21337cat >>confdefs.h <<_ACEOF 21338#define LLVM_DATADIR "$LLVM_DATADIR" 21339_ACEOF 21340 21341 21342cat >>confdefs.h <<_ACEOF 21343#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 21344_ACEOF 21345 21346 21347cat >>confdefs.h <<_ACEOF 21348#define LLVM_ETCDIR "$LLVM_ETCDIR" 21349_ACEOF 21350 21351 21352cat >>confdefs.h <<_ACEOF 21353#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 21354_ACEOF 21355 21356 21357cat >>confdefs.h <<_ACEOF 21358#define LLVM_INFODIR "$LLVM_INFODIR" 21359_ACEOF 21360 21361 21362cat >>confdefs.h <<_ACEOF 21363#define LLVM_MANDIR "$LLVM_MANDIR" 21364_ACEOF 21365 21366 21367cat >>confdefs.h <<_ACEOF 21368#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 21369_ACEOF 21370 21371 21372cat >>confdefs.h <<_ACEOF 21373#define LLVM_HOSTTRIPLE "$host" 21374_ACEOF 21375 21376 21377cat >>confdefs.h <<_ACEOF 21378#define LLVM_DEFAULT_TARGET_TRIPLE "$target" 21379_ACEOF 21380 21381 21382if test "$BINDINGS_TO_BUILD" = auto ; then 21383 BINDINGS_TO_BUILD="" 21384 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 21385 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 21386 fi 21387fi 21388BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 21389 21390 21391ALL_BINDINGS=ocaml 21392 21393 21394binding_prereqs_failed=0 21395for a_binding in $BINDINGS_TO_BUILD ; do 21396 case "$a_binding" in 21397 ocaml) 21398 if test "x$OCAMLC" = x ; then 21399 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 21400echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 21401 binding_prereqs_failed=1 21402 fi 21403 if test "x$OCAMLDEP" = x ; then 21404 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 21405echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 21406 binding_prereqs_failed=1 21407 fi 21408 if test "x$OCAMLOPT" = x ; then 21409 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 21410echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 21411 fi 21412 if test "x$with_ocaml_libdir" != xauto ; then 21413 OCAML_LIBDIR=$with_ocaml_libdir 21414 21415 else 21416 ocaml_stdlib="`"$OCAMLC" -where`" 21417 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 21418 then 21419 # ocaml stdlib is beneath our prefix; use stdlib 21420 OCAML_LIBDIR=$ocaml_stdlib 21421 21422 else 21423 # ocaml stdlib is outside our prefix; use libdir/ocaml 21424 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 21425 21426 fi 21427 fi 21428 ;; 21429 esac 21430done 21431if test "$binding_prereqs_failed" = 1 ; then 21432 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 21433echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 21434 { (exit 1); exit 1; }; } 21435fi 21436 21437{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 21438echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 21439if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 21440 echo $ECHO_N "(cached) $ECHO_C" >&6 21441else 21442 ac_ext=cpp 21443ac_cpp='$CXXCPP $CPPFLAGS' 21444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21447 21448 oldcxxflags="$CXXFLAGS" 21449 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 21450 cat >conftest.$ac_ext <<_ACEOF 21451/* confdefs.h. */ 21452_ACEOF 21453cat confdefs.h >>conftest.$ac_ext 21454cat >>conftest.$ac_ext <<_ACEOF 21455/* end confdefs.h. */ 21456template <typename T> struct X { void __attribute__((noinline)) f() {} }; 21457int 21458main () 21459{ 21460X<int>().f(); 21461 ; 21462 return 0; 21463} 21464_ACEOF 21465rm -f conftest.$ac_objext 21466if { (ac_try="$ac_compile" 21467case "(($ac_try" in 21468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21469 *) ac_try_echo=$ac_try;; 21470esac 21471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21472 (eval "$ac_compile") 2>conftest.er1 21473 ac_status=$? 21474 grep -v '^ *+' conftest.er1 >conftest.err 21475 rm -f conftest.er1 21476 cat conftest.err >&5 21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21478 (exit $ac_status); } && 21479 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21480 { (case "(($ac_try" in 21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21482 *) ac_try_echo=$ac_try;; 21483esac 21484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21485 (eval "$ac_try") 2>&5 21486 ac_status=$? 21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21488 (exit $ac_status); }; } && 21489 { ac_try='test -s conftest.$ac_objext' 21490 { (case "(($ac_try" in 21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21492 *) ac_try_echo=$ac_try;; 21493esac 21494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21495 (eval "$ac_try") 2>&5 21496 ac_status=$? 21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21498 (exit $ac_status); }; }; then 21499 llvm_cv_cxx_visibility_inlines_hidden=yes 21500else 21501 echo "$as_me: failed program was:" >&5 21502sed 's/^/| /' conftest.$ac_ext >&5 21503 21504 llvm_cv_cxx_visibility_inlines_hidden=no 21505fi 21506 21507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21508 CXXFLAGS="$oldcxxflags" 21509 ac_ext=c 21510ac_cpp='$CPP $CPPFLAGS' 21511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21513ac_compiler_gnu=$ac_cv_c_compiler_gnu 21514 21515 21516fi 21517{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 21518echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 21519if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 21520 ENABLE_VISIBILITY_INLINES_HIDDEN=1 21521 21522else 21523 ENABLE_VISIBILITY_INLINES_HIDDEN=0 21524 21525fi 21526 21527 21528if test "$llvm_cv_link_use_r" = "yes" ; then 21529 RPATH="-Wl,-R" 21530else 21531 RPATH="-Wl,-rpath" 21532fi 21533 21534 21535if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 21536 RDYNAMIC="-Wl,-export-dynamic" 21537else 21538 RDYNAMIC="" 21539fi 21540 21541 21542 21543ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 21544 21545 21546 21547 21548 21549 21550ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 21551 21552ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 21553 21554ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 21555 21556ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 21557 21558ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 21559 21560 21561ac_config_files="$ac_config_files Makefile.config" 21562 21563 21564ac_config_files="$ac_config_files llvm.spec" 21565 21566 21567ac_config_files="$ac_config_files docs/doxygen.cfg" 21568 21569 21570if test "${clang_src_root}" = ""; then 21571 clang_src_root="$srcdir/tools/clang" 21572fi 21573if test -f ${clang_src_root}/README.txt; then 21574 configh="include/clang/Config/config.h" 21575 doxy="docs/doxygen.cfg" 21576 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" 21577 21578 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" 21579 21580fi 21581 21582ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" 21583 21584 21585test "x$program_prefix" = "xNONE" && program_prefix="" 21586 21587 21588 21589ac_config_commands="$ac_config_commands setup" 21590 21591ac_config_commands="$ac_config_commands Makefile" 21592 21593 21594ac_config_commands="$ac_config_commands Makefile.common" 21595 21596 21597ac_config_commands="$ac_config_commands examples/Makefile" 21598 21599 21600ac_config_commands="$ac_config_commands lib/Makefile" 21601 21602 21603ac_config_commands="$ac_config_commands runtime/Makefile" 21604 21605 21606ac_config_commands="$ac_config_commands test/Makefile" 21607 21608 21609ac_config_commands="$ac_config_commands test/Makefile.tests" 21610 21611 21612ac_config_commands="$ac_config_commands unittests/Makefile" 21613 21614 21615ac_config_commands="$ac_config_commands tools/Makefile" 21616 21617 21618ac_config_commands="$ac_config_commands utils/Makefile" 21619 21620 21621ac_config_commands="$ac_config_commands projects/Makefile" 21622 21623 21624ac_config_commands="$ac_config_commands bindings/Makefile" 21625 21626 21627ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 21628 21629 21630 21631cat >confcache <<\_ACEOF 21632# This file is a shell script that caches the results of configure 21633# tests run on this system so they can be shared between configure 21634# scripts and configure runs, see configure's option --config-cache. 21635# It is not useful on other systems. If it contains results you don't 21636# want to keep, you may remove or edit it. 21637# 21638# config.status only pays attention to the cache file if you give it 21639# the --recheck option to rerun configure. 21640# 21641# `ac_cv_env_foo' variables (set or unset) will be overridden when 21642# loading this file, other *unset* `ac_cv_foo' will be assigned the 21643# following values. 21644 21645_ACEOF 21646 21647# The following way of writing the cache mishandles newlines in values, 21648# but we know of no workaround that is simple, portable, and efficient. 21649# So, we kill variables containing newlines. 21650# Ultrix sh set writes to stderr and can't be redirected directly, 21651# and sets the high bit in the cache file unless we assign to the vars. 21652( 21653 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21654 eval ac_val=\$$ac_var 21655 case $ac_val in #( 21656 *${as_nl}*) 21657 case $ac_var in #( 21658 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21659echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21660 esac 21661 case $ac_var in #( 21662 _ | IFS | as_nl) ;; #( 21663 *) $as_unset $ac_var ;; 21664 esac ;; 21665 esac 21666 done 21667 21668 (set) 2>&1 | 21669 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21670 *${as_nl}ac_space=\ *) 21671 # `set' does not quote correctly, so add quotes (double-quote 21672 # substitution turns \\\\ into \\, and sed turns \\ into \). 21673 sed -n \ 21674 "s/'/'\\\\''/g; 21675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21676 ;; #( 21677 *) 21678 # `set' quotes correctly as required by POSIX, so do not add quotes. 21679 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21680 ;; 21681 esac | 21682 sort 21683) | 21684 sed ' 21685 /^ac_cv_env_/b end 21686 t clear 21687 :clear 21688 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21689 t end 21690 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21691 :end' >>confcache 21692if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21693 if test -w "$cache_file"; then 21694 test "x$cache_file" != "x/dev/null" && 21695 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21696echo "$as_me: updating cache $cache_file" >&6;} 21697 cat confcache >$cache_file 21698 else 21699 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21700echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21701 fi 21702fi 21703rm -f confcache 21704 21705test "x$prefix" = xNONE && prefix=$ac_default_prefix 21706# Let make expand exec_prefix. 21707test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21708 21709DEFS=-DHAVE_CONFIG_H 21710 21711ac_libobjs= 21712ac_ltlibobjs= 21713for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21714 # 1. Remove the extension, and $U if already installed. 21715 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21716 ac_i=`echo "$ac_i" | sed "$ac_script"` 21717 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21718 # will be set to the directory where LIBOBJS objects are built. 21719 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21720 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21721done 21722LIBOBJS=$ac_libobjs 21723 21724LTLIBOBJS=$ac_ltlibobjs 21725 21726 21727if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 21728 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 21729Usually this means the macro was only invoked conditionally." >&5 21730echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 21731Usually this means the macro was only invoked conditionally." >&2;} 21732 { (exit 1); exit 1; }; } 21733fi 21734if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 21735 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21736Usually this means the macro was only invoked conditionally." >&5 21737echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21738Usually this means the macro was only invoked conditionally." >&2;} 21739 { (exit 1); exit 1; }; } 21740fi 21741 21742: ${CONFIG_STATUS=./config.status} 21743ac_clean_files_save=$ac_clean_files 21744ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21745{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21746echo "$as_me: creating $CONFIG_STATUS" >&6;} 21747cat >$CONFIG_STATUS <<_ACEOF 21748#! $SHELL 21749# Generated by $as_me. 21750# Run this file to recreate the current configuration. 21751# Compiler output produced by configure, useful for debugging 21752# configure, is in config.log if it exists. 21753 21754debug=false 21755ac_cs_recheck=false 21756ac_cs_silent=false 21757SHELL=\${CONFIG_SHELL-$SHELL} 21758_ACEOF 21759 21760cat >>$CONFIG_STATUS <<\_ACEOF 21761## --------------------- ## 21762## M4sh Initialization. ## 21763## --------------------- ## 21764 21765# Be Bourne compatible 21766if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21767 emulate sh 21768 NULLCMD=: 21769 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21770 # is contrary to our usage. Disable this feature. 21771 alias -g '${1+"$@"}'='"$@"' 21772 setopt NO_GLOB_SUBST 21773else 21774 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21775fi 21776BIN_SH=xpg4; export BIN_SH # for Tru64 21777DUALCASE=1; export DUALCASE # for MKS sh 21778 21779 21780# PATH needs CR 21781# Avoid depending upon Character Ranges. 21782as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21783as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21784as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21785as_cr_digits='0123456789' 21786as_cr_alnum=$as_cr_Letters$as_cr_digits 21787 21788# The user is always right. 21789if test "${PATH_SEPARATOR+set}" != set; then 21790 echo "#! /bin/sh" >conf$$.sh 21791 echo "exit 0" >>conf$$.sh 21792 chmod +x conf$$.sh 21793 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21794 PATH_SEPARATOR=';' 21795 else 21796 PATH_SEPARATOR=: 21797 fi 21798 rm -f conf$$.sh 21799fi 21800 21801# Support unset when possible. 21802if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21803 as_unset=unset 21804else 21805 as_unset=false 21806fi 21807 21808 21809# IFS 21810# We need space, tab and new line, in precisely that order. Quoting is 21811# there to prevent editors from complaining about space-tab. 21812# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21813# splitting by setting IFS to empty value.) 21814as_nl=' 21815' 21816IFS=" "" $as_nl" 21817 21818# Find who we are. Look in the path if we contain no directory separator. 21819case $0 in 21820 *[\\/]* ) as_myself=$0 ;; 21821 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21822for as_dir in $PATH 21823do 21824 IFS=$as_save_IFS 21825 test -z "$as_dir" && as_dir=. 21826 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21827done 21828IFS=$as_save_IFS 21829 21830 ;; 21831esac 21832# We did not find ourselves, most probably we were run as `sh COMMAND' 21833# in which case we are not to be found in the path. 21834if test "x$as_myself" = x; then 21835 as_myself=$0 21836fi 21837if test ! -f "$as_myself"; then 21838 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21839 { (exit 1); exit 1; } 21840fi 21841 21842# Work around bugs in pre-3.0 UWIN ksh. 21843for as_var in ENV MAIL MAILPATH 21844do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21845done 21846PS1='$ ' 21847PS2='> ' 21848PS4='+ ' 21849 21850# NLS nuisances. 21851for as_var in \ 21852 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21853 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21854 LC_TELEPHONE LC_TIME 21855do 21856 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21857 eval $as_var=C; export $as_var 21858 else 21859 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21860 fi 21861done 21862 21863# Required to use basename. 21864if expr a : '\(a\)' >/dev/null 2>&1 && 21865 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21866 as_expr=expr 21867else 21868 as_expr=false 21869fi 21870 21871if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21872 as_basename=basename 21873else 21874 as_basename=false 21875fi 21876 21877 21878# Name of the executable. 21879as_me=`$as_basename -- "$0" || 21880$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21881 X"$0" : 'X\(//\)$' \| \ 21882 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21883echo X/"$0" | 21884 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21885 s//\1/ 21886 q 21887 } 21888 /^X\/\(\/\/\)$/{ 21889 s//\1/ 21890 q 21891 } 21892 /^X\/\(\/\).*/{ 21893 s//\1/ 21894 q 21895 } 21896 s/.*/./; q'` 21897 21898# CDPATH. 21899$as_unset CDPATH 21900 21901 21902 21903 as_lineno_1=$LINENO 21904 as_lineno_2=$LINENO 21905 test "x$as_lineno_1" != "x$as_lineno_2" && 21906 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21907 21908 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21909 # uniformly replaced by the line number. The first 'sed' inserts a 21910 # line-number line after each line using $LINENO; the second 'sed' 21911 # does the real work. The second script uses 'N' to pair each 21912 # line-number line with the line containing $LINENO, and appends 21913 # trailing '-' during substitution so that $LINENO is not a special 21914 # case at line end. 21915 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21916 # scripts with optimization help from Paolo Bonzini. Blame Lee 21917 # E. McMahon (1931-1989) for sed's syntax. :-) 21918 sed -n ' 21919 p 21920 /[$]LINENO/= 21921 ' <$as_myself | 21922 sed ' 21923 s/[$]LINENO.*/&-/ 21924 t lineno 21925 b 21926 :lineno 21927 N 21928 :loop 21929 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21930 t loop 21931 s/-\n.*// 21932 ' >$as_me.lineno && 21933 chmod +x "$as_me.lineno" || 21934 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21935 { (exit 1); exit 1; }; } 21936 21937 # Don't try to exec as it changes $[0], causing all sort of problems 21938 # (the dirname of $[0] is not the place where we might find the 21939 # original and so on. Autoconf is especially sensitive to this). 21940 . "./$as_me.lineno" 21941 # Exit status is that of the last command. 21942 exit 21943} 21944 21945 21946if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21947 as_dirname=dirname 21948else 21949 as_dirname=false 21950fi 21951 21952ECHO_C= ECHO_N= ECHO_T= 21953case `echo -n x` in 21954-n*) 21955 case `echo 'x\c'` in 21956 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21957 *) ECHO_C='\c';; 21958 esac;; 21959*) 21960 ECHO_N='-n';; 21961esac 21962 21963if expr a : '\(a\)' >/dev/null 2>&1 && 21964 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21965 as_expr=expr 21966else 21967 as_expr=false 21968fi 21969 21970rm -f conf$$ conf$$.exe conf$$.file 21971if test -d conf$$.dir; then 21972 rm -f conf$$.dir/conf$$.file 21973else 21974 rm -f conf$$.dir 21975 mkdir conf$$.dir 21976fi 21977echo >conf$$.file 21978if ln -s conf$$.file conf$$ 2>/dev/null; then 21979 as_ln_s='ln -s' 21980 # ... but there are two gotchas: 21981 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21982 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21983 # In both cases, we have to default to `cp -p'. 21984 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21985 as_ln_s='cp -p' 21986elif ln conf$$.file conf$$ 2>/dev/null; then 21987 as_ln_s=ln 21988else 21989 as_ln_s='cp -p' 21990fi 21991rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21992rmdir conf$$.dir 2>/dev/null 21993 21994if mkdir -p . 2>/dev/null; then 21995 as_mkdir_p=: 21996else 21997 test -d ./-p && rmdir ./-p 21998 as_mkdir_p=false 21999fi 22000 22001# Find out whether ``test -x'' works. Don't use a zero-byte file, as 22002# systems may use methods other than mode bits to determine executability. 22003cat >conf$$.file <<_ASEOF 22004#! /bin/sh 22005exit 0 22006_ASEOF 22007chmod +x conf$$.file 22008if test -x conf$$.file >/dev/null 2>&1; then 22009 as_executable_p="test -x" 22010else 22011 as_executable_p=: 22012fi 22013rm -f conf$$.file 22014 22015# Sed expression to map a string onto a valid CPP name. 22016as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22017 22018# Sed expression to map a string onto a valid variable name. 22019as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22020 22021 22022exec 6>&1 22023 22024# Save the log message, to keep $[0] and so on meaningful, and to 22025# report actual input values of CONFIG_FILES etc. instead of their 22026# values after options handling. 22027ac_log=" 22028This file was extended by LLVM $as_me 3.3svn, which was 22029generated by GNU Autoconf 2.60. Invocation command line was 22030 22031 CONFIG_FILES = $CONFIG_FILES 22032 CONFIG_HEADERS = $CONFIG_HEADERS 22033 CONFIG_LINKS = $CONFIG_LINKS 22034 CONFIG_COMMANDS = $CONFIG_COMMANDS 22035 $ $0 $@ 22036 22037on `(hostname || uname -n) 2>/dev/null | sed 1q` 22038" 22039 22040_ACEOF 22041 22042cat >>$CONFIG_STATUS <<_ACEOF 22043# Files that config.status was made for. 22044config_files="$ac_config_files" 22045config_headers="$ac_config_headers" 22046config_commands="$ac_config_commands" 22047 22048_ACEOF 22049 22050cat >>$CONFIG_STATUS <<\_ACEOF 22051ac_cs_usage="\ 22052\`$as_me' instantiates files from templates according to the 22053current configuration. 22054 22055Usage: $0 [OPTIONS] [FILE]... 22056 22057 -h, --help print this help, then exit 22058 -V, --version print version number, then exit 22059 -q, --quiet do not print progress messages 22060 -d, --debug don't remove temporary files 22061 --recheck update $as_me by reconfiguring in the same conditions 22062 --file=FILE[:TEMPLATE] 22063 instantiate the configuration file FILE 22064 --header=FILE[:TEMPLATE] 22065 instantiate the configuration header FILE 22066 22067Configuration files: 22068$config_files 22069 22070Configuration headers: 22071$config_headers 22072 22073Configuration commands: 22074$config_commands 22075 22076Report bugs to <bug-autoconf@gnu.org>." 22077 22078_ACEOF 22079cat >>$CONFIG_STATUS <<_ACEOF 22080ac_cs_version="\\ 22081LLVM config.status 3.3svn 22082configured by $0, generated by GNU Autoconf 2.60, 22083 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 22084 22085Copyright (C) 2006 Free Software Foundation, Inc. 22086This config.status script is free software; the Free Software Foundation 22087gives unlimited permission to copy, distribute and modify it." 22088 22089ac_pwd='$ac_pwd' 22090srcdir='$srcdir' 22091INSTALL='$INSTALL' 22092_ACEOF 22093 22094cat >>$CONFIG_STATUS <<\_ACEOF 22095# If no file are specified by the user, then we need to provide default 22096# value. By we need to know if files were specified by the user. 22097ac_need_defaults=: 22098while test $# != 0 22099do 22100 case $1 in 22101 --*=*) 22102 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22103 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22104 ac_shift=: 22105 ;; 22106 *) 22107 ac_option=$1 22108 ac_optarg=$2 22109 ac_shift=shift 22110 ;; 22111 esac 22112 22113 case $ac_option in 22114 # Handling of the options. 22115 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22116 ac_cs_recheck=: ;; 22117 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22118 echo "$ac_cs_version"; exit ;; 22119 --debug | --debu | --deb | --de | --d | -d ) 22120 debug=: ;; 22121 --file | --fil | --fi | --f ) 22122 $ac_shift 22123 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 22124 ac_need_defaults=false;; 22125 --header | --heade | --head | --hea ) 22126 $ac_shift 22127 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 22128 ac_need_defaults=false;; 22129 --he | --h) 22130 # Conflict between --help and --header 22131 { echo "$as_me: error: ambiguous option: $1 22132Try \`$0 --help' for more information." >&2 22133 { (exit 1); exit 1; }; };; 22134 --help | --hel | -h ) 22135 echo "$ac_cs_usage"; exit ;; 22136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22137 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22138 ac_cs_silent=: ;; 22139 22140 # This is an error. 22141 -*) { echo "$as_me: error: unrecognized option: $1 22142Try \`$0 --help' for more information." >&2 22143 { (exit 1); exit 1; }; } ;; 22144 22145 *) ac_config_targets="$ac_config_targets $1" 22146 ac_need_defaults=false ;; 22147 22148 esac 22149 shift 22150done 22151 22152ac_configure_extra_args= 22153 22154if $ac_cs_silent; then 22155 exec 6>/dev/null 22156 ac_configure_extra_args="$ac_configure_extra_args --silent" 22157fi 22158 22159_ACEOF 22160cat >>$CONFIG_STATUS <<_ACEOF 22161if \$ac_cs_recheck; then 22162 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 22163 CONFIG_SHELL=$SHELL 22164 export CONFIG_SHELL 22165 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22166fi 22167 22168_ACEOF 22169cat >>$CONFIG_STATUS <<\_ACEOF 22170exec 5>>config.log 22171{ 22172 echo 22173 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22174## Running $as_me. ## 22175_ASBOX 22176 echo "$ac_log" 22177} >&5 22178 22179_ACEOF 22180cat >>$CONFIG_STATUS <<_ACEOF 22181# 22182# INIT-COMMANDS 22183# 22184llvm_src="${srcdir}" 22185 22186_ACEOF 22187 22188cat >>$CONFIG_STATUS <<\_ACEOF 22189 22190# Handling of arguments. 22191for ac_config_target in $ac_config_targets 22192do 22193 case $ac_config_target in 22194 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 22195 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 22196 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 22197 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 22198 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 22199 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 22200 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 22201 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 22202 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 22203 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 22204 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; 22205 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; 22206 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; 22207 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 22208 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 22209 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 22210 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 22211 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 22212 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 22213 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 22214 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 22215 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 22216 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 22217 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 22218 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 22219 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 22220 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 22221 22222 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22223echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22224 { (exit 1); exit 1; }; };; 22225 esac 22226done 22227 22228 22229# If the user did not use the arguments to specify the items to instantiate, 22230# then the envvar interface is used. Set only those that are not. 22231# We use the long form for the default assignment because of an extremely 22232# bizarre bug on SunOS 4.1.3. 22233if $ac_need_defaults; then 22234 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22235 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22236 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22237fi 22238 22239# Have a temporary directory for convenience. Make it in the build tree 22240# simply because there is no reason against having it here, and in addition, 22241# creating and moving files from /tmp can sometimes cause problems. 22242# Hook for its removal unless debugging. 22243# Note that there is a small window in which the directory will not be cleaned: 22244# after its creation but before its name has been assigned to `$tmp'. 22245$debug || 22246{ 22247 tmp= 22248 trap 'exit_status=$? 22249 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22250' 0 22251 trap '{ (exit 1); exit 1; }' 1 2 13 15 22252} 22253# Create a (secure) tmp directory for tmp files. 22254 22255{ 22256 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22257 test -n "$tmp" && test -d "$tmp" 22258} || 22259{ 22260 tmp=./conf$$-$RANDOM 22261 (umask 077 && mkdir "$tmp") 22262} || 22263{ 22264 echo "$me: cannot create a temporary directory in ." >&2 22265 { (exit 1); exit 1; } 22266} 22267 22268# 22269# Set up the sed scripts for CONFIG_FILES section. 22270# 22271 22272# No need to generate the scripts if there are no CONFIG_FILES. 22273# This happens for instance when ./config.status config.h 22274if test -n "$CONFIG_FILES"; then 22275 22276_ACEOF 22277 22278 22279 22280ac_delim='%!_!# ' 22281for ac_last_try in false false false false false :; do 22282 cat >conf$$subs.sed <<_ACEOF 22283SHELL!$SHELL$ac_delim 22284PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22285PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22286PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22287PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22288PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22289PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22290exec_prefix!$exec_prefix$ac_delim 22291prefix!$prefix$ac_delim 22292program_transform_name!$program_transform_name$ac_delim 22293bindir!$bindir$ac_delim 22294sbindir!$sbindir$ac_delim 22295libexecdir!$libexecdir$ac_delim 22296datarootdir!$datarootdir$ac_delim 22297datadir!$datadir$ac_delim 22298sysconfdir!$sysconfdir$ac_delim 22299sharedstatedir!$sharedstatedir$ac_delim 22300localstatedir!$localstatedir$ac_delim 22301includedir!$includedir$ac_delim 22302oldincludedir!$oldincludedir$ac_delim 22303docdir!$docdir$ac_delim 22304infodir!$infodir$ac_delim 22305htmldir!$htmldir$ac_delim 22306dvidir!$dvidir$ac_delim 22307pdfdir!$pdfdir$ac_delim 22308psdir!$psdir$ac_delim 22309libdir!$libdir$ac_delim 22310localedir!$localedir$ac_delim 22311mandir!$mandir$ac_delim 22312DEFS!$DEFS$ac_delim 22313ECHO_C!$ECHO_C$ac_delim 22314ECHO_N!$ECHO_N$ac_delim 22315ECHO_T!$ECHO_T$ac_delim 22316LIBS!$LIBS$ac_delim 22317build_alias!$build_alias$ac_delim 22318host_alias!$host_alias$ac_delim 22319target_alias!$target_alias$ac_delim 22320LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 22321CC!$CC$ac_delim 22322CFLAGS!$CFLAGS$ac_delim 22323LDFLAGS!$LDFLAGS$ac_delim 22324CPPFLAGS!$CPPFLAGS$ac_delim 22325ac_ct_CC!$ac_ct_CC$ac_delim 22326EXEEXT!$EXEEXT$ac_delim 22327OBJEXT!$OBJEXT$ac_delim 22328CXX!$CXX$ac_delim 22329CXXFLAGS!$CXXFLAGS$ac_delim 22330ac_ct_CXX!$ac_ct_CXX$ac_delim 22331CPP!$CPP$ac_delim 22332subdirs!$subdirs$ac_delim 22333ENABLE_POLLY!$ENABLE_POLLY$ac_delim 22334LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 22335build!$build$ac_delim 22336build_cpu!$build_cpu$ac_delim 22337build_vendor!$build_vendor$ac_delim 22338build_os!$build_os$ac_delim 22339host!$host$ac_delim 22340host_cpu!$host_cpu$ac_delim 22341host_vendor!$host_vendor$ac_delim 22342host_os!$host_os$ac_delim 22343target!$target$ac_delim 22344target_cpu!$target_cpu$ac_delim 22345target_vendor!$target_vendor$ac_delim 22346target_os!$target_os$ac_delim 22347OS!$OS$ac_delim 22348HOST_OS!$HOST_OS$ac_delim 22349TARGET_OS!$TARGET_OS$ac_delim 22350LINKALL!$LINKALL$ac_delim 22351NOLINKALL!$NOLINKALL$ac_delim 22352LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 22353LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 22354ARCH!$ARCH$ac_delim 22355HOST_ARCH!$HOST_ARCH$ac_delim 22356ENDIAN!$ENDIAN$ac_delim 22357GREP!$GREP$ac_delim 22358EGREP!$EGREP$ac_delim 22359LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 22360BUILD_CC!$BUILD_CC$ac_delim 22361BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 22362BUILD_CXX!$BUILD_CXX$ac_delim 22363CVSBUILD!$CVSBUILD$ac_delim 22364ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 22365ENABLE_CXX11!$ENABLE_CXX11$ac_delim 22366ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim 22367ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim 22368ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim 22369ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 22370ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 22371DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 22372ENABLE_WERROR!$ENABLE_WERROR$ac_delim 22373ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 22374EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 22375DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 22376DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 22377KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim 22378JIT!$JIT$ac_delim 22379TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 22380_ACEOF 22381 22382 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22383 break 22384 elif $ac_last_try; then 22385 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22386echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22387 { (exit 1); exit 1; }; } 22388 else 22389 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22390 fi 22391done 22392 22393ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22394if test -n "$ac_eof"; then 22395 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22396 ac_eof=`expr $ac_eof + 1` 22397fi 22398 22399cat >>$CONFIG_STATUS <<_ACEOF 22400cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22401/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22402_ACEOF 22403sed ' 22404s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22405s/^/s,@/; s/!/@,|#_!!_#|/ 22406:n 22407t n 22408s/'"$ac_delim"'$/,g/; t 22409s/$/\\/; p 22410N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22411' >>$CONFIG_STATUS <conf$$subs.sed 22412rm -f conf$$subs.sed 22413cat >>$CONFIG_STATUS <<_ACEOF 22414CEOF$ac_eof 22415_ACEOF 22416 22417 22418ac_delim='%!_!# ' 22419for ac_last_try in false false false false false :; do 22420 cat >conf$$subs.sed <<_ACEOF 22421ENABLE_DOCS!$ENABLE_DOCS$ac_delim 22422ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 22423LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim 22424ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 22425ENABLE_PIC!$ENABLE_PIC$ac_delim 22426ENABLE_SHARED!$ENABLE_SHARED$ac_delim 22427ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 22428ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 22429ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim 22430TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 22431LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 22432LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 22433LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 22434LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 22435OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 22436EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 22437EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 22438CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim 22439BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 22440INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim 22441NM!$NM$ac_delim 22442ifGNUmake!$ifGNUmake$ac_delim 22443LN_S!$LN_S$ac_delim 22444CMP!$CMP$ac_delim 22445CP!$CP$ac_delim 22446DATE!$DATE$ac_delim 22447FIND!$FIND$ac_delim 22448MKDIR!$MKDIR$ac_delim 22449MV!$MV$ac_delim 22450RANLIB!$RANLIB$ac_delim 22451AR!$AR$ac_delim 22452RM!$RM$ac_delim 22453SED!$SED$ac_delim 22454TAR!$TAR$ac_delim 22455BINPWD!$BINPWD$ac_delim 22456GRAPHVIZ!$GRAPHVIZ$ac_delim 22457DOT!$DOT$ac_delim 22458FDP!$FDP$ac_delim 22459NEATO!$NEATO$ac_delim 22460TWOPI!$TWOPI$ac_delim 22461CIRCO!$CIRCO$ac_delim 22462GV!$GV$ac_delim 22463DOTTY!$DOTTY$ac_delim 22464XDOT_PY!$XDOT_PY$ac_delim 22465INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22466INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22467INSTALL_DATA!$INSTALL_DATA$ac_delim 22468BZIP2!$BZIP2$ac_delim 22469CAT!$CAT$ac_delim 22470DOXYGEN!$DOXYGEN$ac_delim 22471GROFF!$GROFF$ac_delim 22472GZIPBIN!$GZIPBIN$ac_delim 22473PDFROFF!$PDFROFF$ac_delim 22474ZIP!$ZIP$ac_delim 22475OCAMLC!$OCAMLC$ac_delim 22476OCAMLOPT!$OCAMLOPT$ac_delim 22477OCAMLDEP!$OCAMLDEP$ac_delim 22478OCAMLDOC!$OCAMLDOC$ac_delim 22479GAS!$GAS$ac_delim 22480HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 22481INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 22482INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 22483CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 22484CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 22485LIBADD_DL!$LIBADD_DL$ac_delim 22486NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 22487NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 22488NO_NESTED_ANON_TYPES!$NO_NESTED_ANON_TYPES$ac_delim 22489COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 22490NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim 22491NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim 22492PYTHON!$PYTHON$ac_delim 22493USE_UDIS86!$USE_UDIS86$ac_delim 22494USE_OPROFILE!$USE_OPROFILE$ac_delim 22495USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim 22496XML2CONFIG!$XML2CONFIG$ac_delim 22497LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim 22498LIBXML2_INC!$LIBXML2_INC$ac_delim 22499HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 22500HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 22501MMAP_FILE!$MMAP_FILE$ac_delim 22502SHLIBEXT!$SHLIBEXT$ac_delim 22503SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 22504LLVM_PREFIX!$LLVM_PREFIX$ac_delim 22505LLVM_BINDIR!$LLVM_BINDIR$ac_delim 22506LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 22507LLVM_DATADIR!$LLVM_DATADIR$ac_delim 22508LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 22509LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 22510LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 22511LLVM_INFODIR!$LLVM_INFODIR$ac_delim 22512LLVM_MANDIR!$LLVM_MANDIR$ac_delim 22513LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 22514BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 22515ALL_BINDINGS!$ALL_BINDINGS$ac_delim 22516OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 22517ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 22518_ACEOF 22519 22520 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22521 break 22522 elif $ac_last_try; then 22523 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22524echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22525 { (exit 1); exit 1; }; } 22526 else 22527 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22528 fi 22529done 22530 22531ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22532if test -n "$ac_eof"; then 22533 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22534 ac_eof=`expr $ac_eof + 1` 22535fi 22536 22537cat >>$CONFIG_STATUS <<_ACEOF 22538cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22539/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22540_ACEOF 22541sed ' 22542s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22543s/^/s,@/; s/!/@,|#_!!_#|/ 22544:n 22545t n 22546s/'"$ac_delim"'$/,g/; t 22547s/$/\\/; p 22548N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22549' >>$CONFIG_STATUS <conf$$subs.sed 22550rm -f conf$$subs.sed 22551cat >>$CONFIG_STATUS <<_ACEOF 22552CEOF$ac_eof 22553_ACEOF 22554 22555 22556ac_delim='%!_!# ' 22557for ac_last_try in false false false false false :; do 22558 cat >conf$$subs.sed <<_ACEOF 22559RPATH!$RPATH$ac_delim 22560RDYNAMIC!$RDYNAMIC$ac_delim 22561program_prefix!$program_prefix$ac_delim 22562LIBOBJS!$LIBOBJS$ac_delim 22563LTLIBOBJS!$LTLIBOBJS$ac_delim 22564_ACEOF 22565 22566 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then 22567 break 22568 elif $ac_last_try; then 22569 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22570echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22571 { (exit 1); exit 1; }; } 22572 else 22573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22574 fi 22575done 22576 22577ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22578if test -n "$ac_eof"; then 22579 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22580 ac_eof=`expr $ac_eof + 1` 22581fi 22582 22583cat >>$CONFIG_STATUS <<_ACEOF 22584cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof 22585/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22586_ACEOF 22587sed ' 22588s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22589s/^/s,@/; s/!/@,|#_!!_#|/ 22590:n 22591t n 22592s/'"$ac_delim"'$/,g/; t 22593s/$/\\/; p 22594N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22595' >>$CONFIG_STATUS <conf$$subs.sed 22596rm -f conf$$subs.sed 22597cat >>$CONFIG_STATUS <<_ACEOF 22598:end 22599s/|#_!!_#|//g 22600CEOF$ac_eof 22601_ACEOF 22602 22603 22604# VPATH may cause trouble with some makes, so we remove $(srcdir), 22605# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22606# trailing colons and then remove the whole line if VPATH becomes empty 22607# (actually we leave an empty line to preserve line numbers). 22608if test "x$srcdir" = x.; then 22609 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22610s/:*\$(srcdir):*/:/ 22611s/:*\${srcdir}:*/:/ 22612s/:*@srcdir@:*/:/ 22613s/^\([^=]*=[ ]*\):*/\1/ 22614s/:*$// 22615s/^[^=]*=[ ]*$// 22616}' 22617fi 22618 22619cat >>$CONFIG_STATUS <<\_ACEOF 22620fi # test -n "$CONFIG_FILES" 22621 22622 22623for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22624do 22625 case $ac_tag in 22626 :[FHLC]) ac_mode=$ac_tag; continue;; 22627 esac 22628 case $ac_mode$ac_tag in 22629 :[FHL]*:*);; 22630 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22631echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22632 { (exit 1); exit 1; }; };; 22633 :[FH]-) ac_tag=-:-;; 22634 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22635 esac 22636 ac_save_IFS=$IFS 22637 IFS=: 22638 set x $ac_tag 22639 IFS=$ac_save_IFS 22640 shift 22641 ac_file=$1 22642 shift 22643 22644 case $ac_mode in 22645 :L) ac_source=$1;; 22646 :[FH]) 22647 ac_file_inputs= 22648 for ac_f 22649 do 22650 case $ac_f in 22651 -) ac_f="$tmp/stdin";; 22652 *) # Look for the file first in the build tree, then in the source tree 22653 # (if the path is not absolute). The absolute path cannot be DOS-style, 22654 # because $ac_f cannot contain `:'. 22655 test -f "$ac_f" || 22656 case $ac_f in 22657 [\\/$]*) false;; 22658 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22659 esac || 22660 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22661echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22662 { (exit 1); exit 1; }; };; 22663 esac 22664 ac_file_inputs="$ac_file_inputs $ac_f" 22665 done 22666 22667 # Let's still pretend it is `configure' which instantiates (i.e., don't 22668 # use $as_me), people would be surprised to read: 22669 # /* config.h. Generated by config.status. */ 22670 configure_input="Generated from "`IFS=: 22671 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22672 if test x"$ac_file" != x-; then 22673 configure_input="$ac_file. $configure_input" 22674 { echo "$as_me:$LINENO: creating $ac_file" >&5 22675echo "$as_me: creating $ac_file" >&6;} 22676 fi 22677 22678 case $ac_tag in 22679 *:-:* | *:-) cat >"$tmp/stdin";; 22680 esac 22681 ;; 22682 esac 22683 22684 ac_dir=`$as_dirname -- "$ac_file" || 22685$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22686 X"$ac_file" : 'X\(//\)[^/]' \| \ 22687 X"$ac_file" : 'X\(//\)$' \| \ 22688 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22689echo X"$ac_file" | 22690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22691 s//\1/ 22692 q 22693 } 22694 /^X\(\/\/\)[^/].*/{ 22695 s//\1/ 22696 q 22697 } 22698 /^X\(\/\/\)$/{ 22699 s//\1/ 22700 q 22701 } 22702 /^X\(\/\).*/{ 22703 s//\1/ 22704 q 22705 } 22706 s/.*/./; q'` 22707 { as_dir="$ac_dir" 22708 case $as_dir in #( 22709 -*) as_dir=./$as_dir;; 22710 esac 22711 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22712 as_dirs= 22713 while :; do 22714 case $as_dir in #( 22715 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22716 *) as_qdir=$as_dir;; 22717 esac 22718 as_dirs="'$as_qdir' $as_dirs" 22719 as_dir=`$as_dirname -- "$as_dir" || 22720$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22721 X"$as_dir" : 'X\(//\)[^/]' \| \ 22722 X"$as_dir" : 'X\(//\)$' \| \ 22723 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22724echo X"$as_dir" | 22725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22726 s//\1/ 22727 q 22728 } 22729 /^X\(\/\/\)[^/].*/{ 22730 s//\1/ 22731 q 22732 } 22733 /^X\(\/\/\)$/{ 22734 s//\1/ 22735 q 22736 } 22737 /^X\(\/\).*/{ 22738 s//\1/ 22739 q 22740 } 22741 s/.*/./; q'` 22742 test -d "$as_dir" && break 22743 done 22744 test -z "$as_dirs" || eval "mkdir $as_dirs" 22745 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22746echo "$as_me: error: cannot create directory $as_dir" >&2;} 22747 { (exit 1); exit 1; }; }; } 22748 ac_builddir=. 22749 22750case "$ac_dir" in 22751.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22752*) 22753 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22754 # A ".." for each directory in $ac_dir_suffix. 22755 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22756 case $ac_top_builddir_sub in 22757 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22758 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22759 esac ;; 22760esac 22761ac_abs_top_builddir=$ac_pwd 22762ac_abs_builddir=$ac_pwd$ac_dir_suffix 22763# for backward compatibility: 22764ac_top_builddir=$ac_top_build_prefix 22765 22766case $srcdir in 22767 .) # We are building in place. 22768 ac_srcdir=. 22769 ac_top_srcdir=$ac_top_builddir_sub 22770 ac_abs_top_srcdir=$ac_pwd ;; 22771 [\\/]* | ?:[\\/]* ) # Absolute name. 22772 ac_srcdir=$srcdir$ac_dir_suffix; 22773 ac_top_srcdir=$srcdir 22774 ac_abs_top_srcdir=$srcdir ;; 22775 *) # Relative name. 22776 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22777 ac_top_srcdir=$ac_top_build_prefix$srcdir 22778 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22779esac 22780ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22781 22782 22783 case $ac_mode in 22784 :F) 22785 # 22786 # CONFIG_FILE 22787 # 22788 22789 case $INSTALL in 22790 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22791 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22792 esac 22793_ACEOF 22794 22795cat >>$CONFIG_STATUS <<\_ACEOF 22796# If the template does not know about datarootdir, expand it. 22797# FIXME: This hack should be removed a few years after 2.60. 22798ac_datarootdir_hack=; ac_datarootdir_seen= 22799 22800case `sed -n '/datarootdir/ { 22801 p 22802 q 22803} 22804/@datadir@/p 22805/@docdir@/p 22806/@infodir@/p 22807/@localedir@/p 22808/@mandir@/p 22809' $ac_file_inputs` in 22810*datarootdir*) ac_datarootdir_seen=yes;; 22811*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22812 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22813echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22814_ACEOF 22815cat >>$CONFIG_STATUS <<_ACEOF 22816 ac_datarootdir_hack=' 22817 s&@datadir@&$datadir&g 22818 s&@docdir@&$docdir&g 22819 s&@infodir@&$infodir&g 22820 s&@localedir@&$localedir&g 22821 s&@mandir@&$mandir&g 22822 s&\\\${datarootdir}&$datarootdir&g' ;; 22823esac 22824_ACEOF 22825 22826# Neutralize VPATH when `$srcdir' = `.'. 22827# Shell code in configure.ac might set extrasub. 22828# FIXME: do we really want to maintain this feature? 22829cat >>$CONFIG_STATUS <<_ACEOF 22830 sed "$ac_vpsub 22831$extrasub 22832_ACEOF 22833cat >>$CONFIG_STATUS <<\_ACEOF 22834:t 22835/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22836s&@configure_input@&$configure_input&;t t 22837s&@top_builddir@&$ac_top_builddir_sub&;t t 22838s&@srcdir@&$ac_srcdir&;t t 22839s&@abs_srcdir@&$ac_abs_srcdir&;t t 22840s&@top_srcdir@&$ac_top_srcdir&;t t 22841s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22842s&@builddir@&$ac_builddir&;t t 22843s&@abs_builddir@&$ac_abs_builddir&;t t 22844s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22845s&@INSTALL@&$ac_INSTALL&;t t 22846$ac_datarootdir_hack 22847" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out 22848 22849test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22850 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22851 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22852 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22853which seems to be undefined. Please make sure it is defined." >&5 22854echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22855which seems to be undefined. Please make sure it is defined." >&2;} 22856 22857 rm -f "$tmp/stdin" 22858 case $ac_file in 22859 -) cat "$tmp/out"; rm -f "$tmp/out";; 22860 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22861 esac 22862 ;; 22863 :H) 22864 # 22865 # CONFIG_HEADER 22866 # 22867_ACEOF 22868 22869# Transform confdefs.h into a sed script `conftest.defines', that 22870# substitutes the proper values into config.h.in to produce config.h. 22871rm -f conftest.defines conftest.tail 22872# First, append a space to every undef/define line, to ease matching. 22873echo 's/$/ /' >conftest.defines 22874# Then, protect against being on the right side of a sed subst, or in 22875# an unquoted here document, in config.status. If some macros were 22876# called several times there might be several #defines for the same 22877# symbol, which is useless. But do not sort them, since the last 22878# AC_DEFINE must be honored. 22879ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22880# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22881# NAME is the cpp macro being defined, VALUE is the value it is being given. 22882# PARAMS is the parameter list in the macro definition--in most cases, it's 22883# just an empty string. 22884ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22885ac_dB='\\)[ (].*,\\1define\\2' 22886ac_dC=' ' 22887ac_dD=' ,' 22888 22889uniq confdefs.h | 22890 sed -n ' 22891 t rset 22892 :rset 22893 s/^[ ]*#[ ]*define[ ][ ]*// 22894 t ok 22895 d 22896 :ok 22897 s/[\\&,]/\\&/g 22898 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22899 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22900 ' >>conftest.defines 22901 22902# Remove the space that was appended to ease matching. 22903# Then replace #undef with comments. This is necessary, for 22904# example, in the case of _POSIX_SOURCE, which is predefined and required 22905# on some systems where configure will not decide to define it. 22906# (The regexp can be short, since the line contains either #define or #undef.) 22907echo 's/ $// 22908s,^[ #]*u.*,/* & */,' >>conftest.defines 22909 22910# Break up conftest.defines: 22911ac_max_sed_lines=50 22912 22913# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22914# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22915# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22916# et cetera. 22917ac_in='$ac_file_inputs' 22918ac_out='"$tmp/out1"' 22919ac_nxt='"$tmp/out2"' 22920 22921while : 22922do 22923 # Write a here document: 22924 cat >>$CONFIG_STATUS <<_ACEOF 22925 # First, check the format of the line: 22926 cat >"\$tmp/defines.sed" <<\\CEOF 22927/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22928/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22929b 22930:def 22931_ACEOF 22932 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22933 echo 'CEOF 22934 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22935 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22936 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22937 grep . conftest.tail >/dev/null || break 22938 rm -f conftest.defines 22939 mv conftest.tail conftest.defines 22940done 22941rm -f conftest.defines conftest.tail 22942 22943echo "ac_result=$ac_in" >>$CONFIG_STATUS 22944cat >>$CONFIG_STATUS <<\_ACEOF 22945 if test x"$ac_file" != x-; then 22946 echo "/* $configure_input */" >"$tmp/config.h" 22947 cat "$ac_result" >>"$tmp/config.h" 22948 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22949 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22950echo "$as_me: $ac_file is unchanged" >&6;} 22951 else 22952 rm -f $ac_file 22953 mv "$tmp/config.h" $ac_file 22954 fi 22955 else 22956 echo "/* $configure_input */" 22957 cat "$ac_result" 22958 fi 22959 rm -f "$tmp/out12" 22960 ;; 22961 22962 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22963echo "$as_me: executing $ac_file commands" >&6;} 22964 ;; 22965 esac 22966 22967 22968 case $ac_file$ac_mode in 22969 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 22970 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 22971 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 22972 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 22973 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 22974 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 22975 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 22976 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 22977 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 22978 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 22979 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 22980 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 22981 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 22982 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 22983 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 22984 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 22985 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 22986 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 22987 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 22988 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 22989 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 22990 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 22991 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 22992 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 22993 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 22994 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 22995 22996 esac 22997done # for ac_tag 22998 22999 23000{ (exit 0); exit 0; } 23001_ACEOF 23002chmod +x $CONFIG_STATUS 23003ac_clean_files=$ac_clean_files_save 23004 23005 23006# configure is writing to config.log, and then calls config.status. 23007# config.status does its own redirection, appending to config.log. 23008# Unfortunately, on DOS this fails, as config.log is still kept open 23009# by configure, so config.status won't be able to write to it; its 23010# output is simply discarded. So we exec the FD to /dev/null, 23011# effectively closing config.log, so it can be properly (re)opened and 23012# appended to by config.status. When coming back to configure, we 23013# need to make the FD available again. 23014if test "$no_create" != yes; then 23015 ac_cs_success=: 23016 ac_config_status_args= 23017 test "$silent" = yes && 23018 ac_config_status_args="$ac_config_status_args --quiet" 23019 exec 5>/dev/null 23020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23021 exec 5>>config.log 23022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23023 # would make configure fail if this is the last instruction. 23024 $ac_cs_success || { (exit 1); exit 1; } 23025fi 23026 23027# 23028# CONFIG_SUBDIRS section. 23029# 23030if test "$no_recursion" != yes; then 23031 23032 # Remove --cache-file and --srcdir arguments so they do not pile up. 23033 ac_sub_configure_args= 23034 ac_prev= 23035 eval "set x $ac_configure_args" 23036 shift 23037 for ac_arg 23038 do 23039 if test -n "$ac_prev"; then 23040 ac_prev= 23041 continue 23042 fi 23043 case $ac_arg in 23044 -cache-file | --cache-file | --cache-fil | --cache-fi \ 23045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 23046 ac_prev=cache_file ;; 23047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 23048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 23049 | --c=*) 23050 ;; 23051 --config-cache | -C) 23052 ;; 23053 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 23054 ac_prev=srcdir ;; 23055 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 23056 ;; 23057 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 23058 ac_prev=prefix ;; 23059 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 23060 ;; 23061 *) 23062 case $ac_arg in 23063 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23064 esac 23065 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 23066 esac 23067 done 23068 23069 # Always prepend --prefix to ensure using the same prefix 23070 # in subdir configurations. 23071 ac_arg="--prefix=$prefix" 23072 case $ac_arg in 23073 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 23074 esac 23075 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 23076 23077 ac_popdir=`pwd` 23078 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 23079 23080 # Do not complain, so a configure script can configure whichever 23081 # parts of a large source tree are present. 23082 test -d "$srcdir/$ac_dir" || continue 23083 23084 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 23085 echo "$as_me:$LINENO: $ac_msg" >&5 23086 echo "$ac_msg" >&6 23087 { as_dir="$ac_dir" 23088 case $as_dir in #( 23089 -*) as_dir=./$as_dir;; 23090 esac 23091 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 23092 as_dirs= 23093 while :; do 23094 case $as_dir in #( 23095 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 23096 *) as_qdir=$as_dir;; 23097 esac 23098 as_dirs="'$as_qdir' $as_dirs" 23099 as_dir=`$as_dirname -- "$as_dir" || 23100$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23101 X"$as_dir" : 'X\(//\)[^/]' \| \ 23102 X"$as_dir" : 'X\(//\)$' \| \ 23103 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23104echo X"$as_dir" | 23105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23106 s//\1/ 23107 q 23108 } 23109 /^X\(\/\/\)[^/].*/{ 23110 s//\1/ 23111 q 23112 } 23113 /^X\(\/\/\)$/{ 23114 s//\1/ 23115 q 23116 } 23117 /^X\(\/\).*/{ 23118 s//\1/ 23119 q 23120 } 23121 s/.*/./; q'` 23122 test -d "$as_dir" && break 23123 done 23124 test -z "$as_dirs" || eval "mkdir $as_dirs" 23125 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 23126echo "$as_me: error: cannot create directory $as_dir" >&2;} 23127 { (exit 1); exit 1; }; }; } 23128 ac_builddir=. 23129 23130case "$ac_dir" in 23131.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23132*) 23133 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 23134 # A ".." for each directory in $ac_dir_suffix. 23135 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 23136 case $ac_top_builddir_sub in 23137 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23138 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23139 esac ;; 23140esac 23141ac_abs_top_builddir=$ac_pwd 23142ac_abs_builddir=$ac_pwd$ac_dir_suffix 23143# for backward compatibility: 23144ac_top_builddir=$ac_top_build_prefix 23145 23146case $srcdir in 23147 .) # We are building in place. 23148 ac_srcdir=. 23149 ac_top_srcdir=$ac_top_builddir_sub 23150 ac_abs_top_srcdir=$ac_pwd ;; 23151 [\\/]* | ?:[\\/]* ) # Absolute name. 23152 ac_srcdir=$srcdir$ac_dir_suffix; 23153 ac_top_srcdir=$srcdir 23154 ac_abs_top_srcdir=$srcdir ;; 23155 *) # Relative name. 23156 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23157 ac_top_srcdir=$ac_top_build_prefix$srcdir 23158 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23159esac 23160ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23161 23162 23163 cd "$ac_dir" 23164 23165 # Check for guested configure; otherwise get Cygnus style configure. 23166 if test -f "$ac_srcdir/configure.gnu"; then 23167 ac_sub_configure=$ac_srcdir/configure.gnu 23168 elif test -f "$ac_srcdir/configure"; then 23169 ac_sub_configure=$ac_srcdir/configure 23170 elif test -f "$ac_srcdir/configure.in"; then 23171 # This should be Cygnus configure. 23172 ac_sub_configure=$ac_aux_dir/configure 23173 else 23174 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 23175echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 23176 ac_sub_configure= 23177 fi 23178 23179 # The recursion is here. 23180 if test -n "$ac_sub_configure"; then 23181 # Make the cache file name correct relative to the subdirectory. 23182 case $cache_file in 23183 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 23184 *) # Relative name. 23185 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 23186 esac 23187 23188 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 23189echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 23190 # The eval makes quoting arguments work. 23191 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 23192 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 23193 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 23194echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 23195 { (exit 1); exit 1; }; } 23196 fi 23197 23198 cd "$ac_popdir" 23199 done 23200fi 23201 23202