1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for LLVM 3.2svn. 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-2012 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.2svn' 565PACKAGE_STRING='LLVM 3.2svn' 566PACKAGE_BUGREPORT='http://llvm.org/bugs/' 567 568ac_unique_file="lib/VMCore/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_OPTIMIZED 689ENABLE_PROFILING 690DISABLE_ASSERTIONS 691ENABLE_WERROR 692ENABLE_EXPENSIVE_CHECKS 693EXPENSIVE_CHECKS 694DEBUG_RUNTIME 695DEBUG_SYMBOLS 696KEEP_SYMBOLS 697JIT 698TARGET_HAS_JIT 699ENABLE_DOCS 700ENABLE_DOXYGEN 701LLVM_ENABLE_THREADS 702ENABLE_PTHREADS 703ENABLE_PIC 704ENABLE_SHARED 705ENABLE_EMBED_STDCXX 706ENABLE_TIMESTAMPS 707TARGETS_TO_BUILD 708LLVM_ENUM_TARGETS 709LLVM_ENUM_ASM_PRINTERS 710LLVM_ENUM_ASM_PARSERS 711LLVM_ENUM_DISASSEMBLERS 712OPTIMIZE_OPTION 713EXTRA_OPTIONS 714EXTRA_LD_OPTIONS 715CLANG_SRC_ROOT 716BINUTILS_INCDIR 717INTERNAL_PREFIX 718NM 719ifGNUmake 720LN_S 721CMP 722CP 723DATE 724FIND 725MKDIR 726MV 727RANLIB 728AR 729RM 730SED 731TAR 732BINPWD 733GRAPHVIZ 734DOT 735FDP 736NEATO 737TWOPI 738CIRCO 739GV 740DOTTY 741XDOT_PY 742INSTALL_PROGRAM 743INSTALL_SCRIPT 744INSTALL_DATA 745BZIP2 746CAT 747DOXYGEN 748GROFF 749GZIPBIN 750PDFROFF 751ZIP 752OCAMLC 753OCAMLOPT 754OCAMLDEP 755OCAMLDOC 756GAS 757HAVE_LINK_VERSION_SCRIPT 758INSTALL_LTDL_TRUE 759INSTALL_LTDL_FALSE 760CONVENIENCE_LTDL_TRUE 761CONVENIENCE_LTDL_FALSE 762LIBADD_DL 763NO_VARIADIC_MACROS 764NO_MISSING_FIELD_INITIALIZERS 765COVERED_SWITCH_DEFAULT 766USE_UDIS86 767USE_OPROFILE 768USE_INTEL_JITEVENTS 769INTEL_JITEVENTS_INCDIR 770INTEL_JITEVENTS_LIBDIR 771XML2CONFIG 772LIBXML2_LIBS 773LIBXML2_INC 774HAVE_PTHREAD 775HUGE_VAL_SANITY 776MMAP_FILE 777SHLIBEXT 778SHLIBPATH_VAR 779LLVM_PREFIX 780LLVM_BINDIR 781LLVM_LIBDIR 782LLVM_DATADIR 783LLVM_DOCSDIR 784LLVM_ETCDIR 785LLVM_INCLUDEDIR 786LLVM_INFODIR 787LLVM_MANDIR 788LLVM_CONFIGTIME 789BINDINGS_TO_BUILD 790ALL_BINDINGS 791OCAML_LIBDIR 792ENABLE_VISIBILITY_INLINES_HIDDEN 793RPATH 794RDYNAMIC 795LIBOBJS 796LTLIBOBJS' 797ac_subst_files='' 798 ac_precious_vars='build_alias 799host_alias 800target_alias 801CC 802CFLAGS 803LDFLAGS 804CPPFLAGS 805CXX 806CXXFLAGS 807CCC 808CPP' 809ac_subdirs_all='projects/llvm-gcc 810projects/test-suite 811projects/llvm-test 812projects/poolalloc 813projects/llvm-poolalloc 814projects/sample 815projects/privbracket 816projects/llvm-stacker 817projects/llvm-reopt 818projects/llvm-java 819projects/llvm-tv 820projects/safecode 821projects/llvm-kernel 822tools/polly' 823 824# Initialize some variables set by options. 825ac_init_help= 826ac_init_version=false 827# The variables have the same names as the options, with 828# dashes changed to underlines. 829cache_file=/dev/null 830exec_prefix=NONE 831no_create= 832no_recursion= 833prefix=NONE 834program_prefix=NONE 835program_suffix=NONE 836program_transform_name=s,x,x, 837silent= 838site= 839srcdir= 840verbose= 841x_includes=NONE 842x_libraries=NONE 843 844# Installation directory options. 845# These are left unexpanded so users can "make install exec_prefix=/foo" 846# and all the variables that are supposed to be based on exec_prefix 847# by default will actually change. 848# Use braces instead of parens because sh, perl, etc. also accept them. 849# (The list follows the same order as the GNU Coding Standards.) 850bindir='${exec_prefix}/bin' 851sbindir='${exec_prefix}/sbin' 852libexecdir='${exec_prefix}/libexec' 853datarootdir='${prefix}/share' 854datadir='${datarootdir}' 855sysconfdir='${prefix}/etc' 856sharedstatedir='${prefix}/com' 857localstatedir='${prefix}/var' 858includedir='${prefix}/include' 859oldincludedir='/usr/include' 860docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 861infodir='${datarootdir}/info' 862htmldir='${docdir}' 863dvidir='${docdir}' 864pdfdir='${docdir}' 865psdir='${docdir}' 866libdir='${exec_prefix}/lib' 867localedir='${datarootdir}/locale' 868mandir='${datarootdir}/man' 869 870ac_prev= 871ac_dashdash= 872for ac_option 873do 874 # If the previous option needs an argument, assign it. 875 if test -n "$ac_prev"; then 876 eval $ac_prev=\$ac_option 877 ac_prev= 878 continue 879 fi 880 881 case $ac_option in 882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 883 *) ac_optarg=yes ;; 884 esac 885 886 # Accept the important Cygnus configure options, so we can diagnose typos. 887 888 case $ac_dashdash$ac_option in 889 --) 890 ac_dashdash=yes ;; 891 892 -bindir | --bindir | --bindi | --bind | --bin | --bi) 893 ac_prev=bindir ;; 894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 895 bindir=$ac_optarg ;; 896 897 -build | --build | --buil | --bui | --bu) 898 ac_prev=build_alias ;; 899 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 900 build_alias=$ac_optarg ;; 901 902 -cache-file | --cache-file | --cache-fil | --cache-fi \ 903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 904 ac_prev=cache_file ;; 905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 907 cache_file=$ac_optarg ;; 908 909 --config-cache | -C) 910 cache_file=config.cache ;; 911 912 -datadir | --datadir | --datadi | --datad) 913 ac_prev=datadir ;; 914 -datadir=* | --datadir=* | --datadi=* | --datad=*) 915 datadir=$ac_optarg ;; 916 917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 918 | --dataroo | --dataro | --datar) 919 ac_prev=datarootdir ;; 920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 922 datarootdir=$ac_optarg ;; 923 924 -disable-* | --disable-*) 925 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 929 { (exit 1); exit 1; }; } 930 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 931 eval enable_$ac_feature=no ;; 932 933 -docdir | --docdir | --docdi | --doc | --do) 934 ac_prev=docdir ;; 935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 936 docdir=$ac_optarg ;; 937 938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 939 ac_prev=dvidir ;; 940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 941 dvidir=$ac_optarg ;; 942 943 -enable-* | --enable-*) 944 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 947 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 948 { (exit 1); exit 1; }; } 949 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 950 eval enable_$ac_feature=\$ac_optarg ;; 951 952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 954 | --exec | --exe | --ex) 955 ac_prev=exec_prefix ;; 956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 958 | --exec=* | --exe=* | --ex=*) 959 exec_prefix=$ac_optarg ;; 960 961 -gas | --gas | --ga | --g) 962 # Obsolete; use --with-gas. 963 with_gas=yes ;; 964 965 -help | --help | --hel | --he | -h) 966 ac_init_help=long ;; 967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 968 ac_init_help=recursive ;; 969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 970 ac_init_help=short ;; 971 972 -host | --host | --hos | --ho) 973 ac_prev=host_alias ;; 974 -host=* | --host=* | --hos=* | --ho=*) 975 host_alias=$ac_optarg ;; 976 977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 978 ac_prev=htmldir ;; 979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 980 | --ht=*) 981 htmldir=$ac_optarg ;; 982 983 -includedir | --includedir | --includedi | --included | --include \ 984 | --includ | --inclu | --incl | --inc) 985 ac_prev=includedir ;; 986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 987 | --includ=* | --inclu=* | --incl=* | --inc=*) 988 includedir=$ac_optarg ;; 989 990 -infodir | --infodir | --infodi | --infod | --info | --inf) 991 ac_prev=infodir ;; 992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 993 infodir=$ac_optarg ;; 994 995 -libdir | --libdir | --libdi | --libd) 996 ac_prev=libdir ;; 997 -libdir=* | --libdir=* | --libdi=* | --libd=*) 998 libdir=$ac_optarg ;; 999 1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1001 | --libexe | --libex | --libe) 1002 ac_prev=libexecdir ;; 1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1004 | --libexe=* | --libex=* | --libe=*) 1005 libexecdir=$ac_optarg ;; 1006 1007 -localedir | --localedir | --localedi | --localed | --locale) 1008 ac_prev=localedir ;; 1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1010 localedir=$ac_optarg ;; 1011 1012 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1013 | --localstate | --localstat | --localsta | --localst | --locals) 1014 ac_prev=localstatedir ;; 1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1017 localstatedir=$ac_optarg ;; 1018 1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1020 ac_prev=mandir ;; 1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1022 mandir=$ac_optarg ;; 1023 1024 -nfp | --nfp | --nf) 1025 # Obsolete; use --without-fp. 1026 with_fp=no ;; 1027 1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1029 | --no-cr | --no-c | -n) 1030 no_create=yes ;; 1031 1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1034 no_recursion=yes ;; 1035 1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1038 | --oldin | --oldi | --old | --ol | --o) 1039 ac_prev=oldincludedir ;; 1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1043 oldincludedir=$ac_optarg ;; 1044 1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1046 ac_prev=prefix ;; 1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1048 prefix=$ac_optarg ;; 1049 1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1051 | --program-pre | --program-pr | --program-p) 1052 ac_prev=program_prefix ;; 1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1055 program_prefix=$ac_optarg ;; 1056 1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1058 | --program-suf | --program-su | --program-s) 1059 ac_prev=program_suffix ;; 1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1062 program_suffix=$ac_optarg ;; 1063 1064 -program-transform-name | --program-transform-name \ 1065 | --program-transform-nam | --program-transform-na \ 1066 | --program-transform-n | --program-transform- \ 1067 | --program-transform | --program-transfor \ 1068 | --program-transfo | --program-transf \ 1069 | --program-trans | --program-tran \ 1070 | --progr-tra | --program-tr | --program-t) 1071 ac_prev=program_transform_name ;; 1072 -program-transform-name=* | --program-transform-name=* \ 1073 | --program-transform-nam=* | --program-transform-na=* \ 1074 | --program-transform-n=* | --program-transform-=* \ 1075 | --program-transform=* | --program-transfor=* \ 1076 | --program-transfo=* | --program-transf=* \ 1077 | --program-trans=* | --program-tran=* \ 1078 | --progr-tra=* | --program-tr=* | --program-t=*) 1079 program_transform_name=$ac_optarg ;; 1080 1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1082 ac_prev=pdfdir ;; 1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1084 pdfdir=$ac_optarg ;; 1085 1086 -psdir | --psdir | --psdi | --psd | --ps) 1087 ac_prev=psdir ;; 1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1089 psdir=$ac_optarg ;; 1090 1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1092 | -silent | --silent | --silen | --sile | --sil) 1093 silent=yes ;; 1094 1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1096 ac_prev=sbindir ;; 1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1098 | --sbi=* | --sb=*) 1099 sbindir=$ac_optarg ;; 1100 1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1103 | --sharedst | --shareds | --shared | --share | --shar \ 1104 | --sha | --sh) 1105 ac_prev=sharedstatedir ;; 1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1109 | --sha=* | --sh=*) 1110 sharedstatedir=$ac_optarg ;; 1111 1112 -site | --site | --sit) 1113 ac_prev=site ;; 1114 -site=* | --site=* | --sit=*) 1115 site=$ac_optarg ;; 1116 1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1118 ac_prev=srcdir ;; 1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1120 srcdir=$ac_optarg ;; 1121 1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1123 | --syscon | --sysco | --sysc | --sys | --sy) 1124 ac_prev=sysconfdir ;; 1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1127 sysconfdir=$ac_optarg ;; 1128 1129 -target | --target | --targe | --targ | --tar | --ta | --t) 1130 ac_prev=target_alias ;; 1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1132 target_alias=$ac_optarg ;; 1133 1134 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1135 verbose=yes ;; 1136 1137 -version | --version | --versio | --versi | --vers | -V) 1138 ac_init_version=: ;; 1139 1140 -with-* | --with-*) 1141 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1144 { echo "$as_me: error: invalid package name: $ac_package" >&2 1145 { (exit 1); exit 1; }; } 1146 ac_package=`echo $ac_package| sed 's/-/_/g'` 1147 eval with_$ac_package=\$ac_optarg ;; 1148 1149 -without-* | --without-*) 1150 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1153 { echo "$as_me: error: invalid package name: $ac_package" >&2 1154 { (exit 1); exit 1; }; } 1155 ac_package=`echo $ac_package | sed 's/-/_/g'` 1156 eval with_$ac_package=no ;; 1157 1158 --x) 1159 # Obsolete; use --with-x. 1160 with_x=yes ;; 1161 1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1163 | --x-incl | --x-inc | --x-in | --x-i) 1164 ac_prev=x_includes ;; 1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1167 x_includes=$ac_optarg ;; 1168 1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1171 ac_prev=x_libraries ;; 1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1174 x_libraries=$ac_optarg ;; 1175 1176 -*) { echo "$as_me: error: unrecognized option: $ac_option 1177Try \`$0 --help' for more information." >&2 1178 { (exit 1); exit 1; }; } 1179 ;; 1180 1181 *=*) 1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1183 # Reject names that are not valid shell variable names. 1184 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1185 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1186 { (exit 1); exit 1; }; } 1187 eval $ac_envvar=\$ac_optarg 1188 export $ac_envvar ;; 1189 1190 *) 1191 # FIXME: should be removed in autoconf 3.0. 1192 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1194 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1196 ;; 1197 1198 esac 1199done 1200 1201if test -n "$ac_prev"; then 1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1203 { echo "$as_me: error: missing argument to $ac_option" >&2 1204 { (exit 1); exit 1; }; } 1205fi 1206 1207# Be sure to have absolute directory names. 1208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1209 datadir sysconfdir sharedstatedir localstatedir includedir \ 1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1211 libdir localedir mandir 1212do 1213 eval ac_val=\$$ac_var 1214 case $ac_val in 1215 [\\/$]* | ?:[\\/]* ) continue;; 1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1217 esac 1218 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1219 { (exit 1); exit 1; }; } 1220done 1221 1222# There might be people who depend on the old broken behavior: `$host' 1223# used to hold the argument of --host etc. 1224# FIXME: To remove some day. 1225build=$build_alias 1226host=$host_alias 1227target=$target_alias 1228 1229# FIXME: To remove some day. 1230if test "x$host_alias" != x; then 1231 if test "x$build_alias" = x; then 1232 cross_compiling=maybe 1233 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1234 If a cross compiler is detected then cross compile mode will be used." >&2 1235 elif test "x$build_alias" != "x$host_alias"; then 1236 cross_compiling=yes 1237 fi 1238fi 1239 1240ac_tool_prefix= 1241test -n "$host_alias" && ac_tool_prefix=$host_alias- 1242 1243test "$silent" = yes && exec 6>/dev/null 1244 1245 1246ac_pwd=`pwd` && test -n "$ac_pwd" && 1247ac_ls_di=`ls -di .` && 1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1249 { echo "$as_me: error: Working directory cannot be determined" >&2 1250 { (exit 1); exit 1; }; } 1251test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1252 { echo "$as_me: error: pwd does not report name of working directory" >&2 1253 { (exit 1); exit 1; }; } 1254 1255 1256# Find the source files, if location was not specified. 1257if test -z "$srcdir"; then 1258 ac_srcdir_defaulted=yes 1259 # Try the directory containing this script, then the parent directory. 1260 ac_confdir=`$as_dirname -- "$0" || 1261$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1262 X"$0" : 'X\(//\)[^/]' \| \ 1263 X"$0" : 'X\(//\)$' \| \ 1264 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1265echo X"$0" | 1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\/\)[^/].*/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\/\)$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\).*/{ 1279 s//\1/ 1280 q 1281 } 1282 s/.*/./; q'` 1283 srcdir=$ac_confdir 1284 if test ! -r "$srcdir/$ac_unique_file"; then 1285 srcdir=.. 1286 fi 1287else 1288 ac_srcdir_defaulted=no 1289fi 1290if test ! -r "$srcdir/$ac_unique_file"; then 1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1292 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1293 { (exit 1); exit 1; }; } 1294fi 1295ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1296ac_abs_confdir=`( 1297 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1298 { (exit 1); exit 1; }; } 1299 pwd)` 1300# When building in place, set srcdir=. 1301if test "$ac_abs_confdir" = "$ac_pwd"; then 1302 srcdir=. 1303fi 1304# Remove unnecessary trailing slashes from srcdir. 1305# Double slashes in file names in object file debugging info 1306# mess up M-x gdb in Emacs. 1307case $srcdir in 1308*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1309esac 1310for ac_var in $ac_precious_vars; do 1311 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1312 eval ac_env_${ac_var}_value=\$${ac_var} 1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1314 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1315done 1316 1317# 1318# Report the --help message. 1319# 1320if test "$ac_init_help" = "long"; then 1321 # Omit some internal or obsolete options to make the list less imposing. 1322 # This message is too long to be a string in the A/UX 3.1 sh. 1323 cat <<_ACEOF 1324\`configure' configures LLVM 3.2svn to adapt to many kinds of systems. 1325 1326Usage: $0 [OPTION]... [VAR=VALUE]... 1327 1328To assign environment variables (e.g., CC, CFLAGS...), specify them as 1329VAR=VALUE. See below for descriptions of some of the useful variables. 1330 1331Defaults for the options are specified in brackets. 1332 1333Configuration: 1334 -h, --help display this help and exit 1335 --help=short display options specific to this package 1336 --help=recursive display the short help of all the included packages 1337 -V, --version display version information and exit 1338 -q, --quiet, --silent do not print \`checking...' messages 1339 --cache-file=FILE cache test results in FILE [disabled] 1340 -C, --config-cache alias for \`--cache-file=config.cache' 1341 -n, --no-create do not create output files 1342 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1343 1344Installation directories: 1345 --prefix=PREFIX install architecture-independent files in PREFIX 1346 [$ac_default_prefix] 1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1348 [PREFIX] 1349 1350By default, \`make install' will install all the files in 1351\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1352an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1353for instance \`--prefix=\$HOME'. 1354 1355For better control, use the options below. 1356 1357Fine tuning of the installation directories: 1358 --bindir=DIR user executables [EPREFIX/bin] 1359 --sbindir=DIR system admin executables [EPREFIX/sbin] 1360 --libexecdir=DIR program executables [EPREFIX/libexec] 1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1364 --libdir=DIR object code libraries [EPREFIX/lib] 1365 --includedir=DIR C header files [PREFIX/include] 1366 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1369 --infodir=DIR info documentation [DATAROOTDIR/info] 1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1371 --mandir=DIR man documentation [DATAROOTDIR/man] 1372 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm] 1373 --htmldir=DIR html documentation [DOCDIR] 1374 --dvidir=DIR dvi documentation [DOCDIR] 1375 --pdfdir=DIR pdf documentation [DOCDIR] 1376 --psdir=DIR ps documentation [DOCDIR] 1377_ACEOF 1378 1379 cat <<\_ACEOF 1380 1381System types: 1382 --build=BUILD configure for building on BUILD [guessed] 1383 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1384 --target=TARGET configure for building compilers for TARGET [HOST] 1385_ACEOF 1386fi 1387 1388if test -n "$ac_init_help"; then 1389 case $ac_init_help in 1390 short | recursive ) echo "Configuration of LLVM 3.2svn:";; 1391 esac 1392 cat <<\_ACEOF 1393 1394Optional Features: 1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1397 --enable-polly Use polly if available (default is YES) 1398 --enable-libcpp Use libc++ if available (default is NO) 1399 --enable-cxx11 Use c++11 if available (default is NO) 1400 --enable-optimized Compile with optimizations enabled (default is NO) 1401 --enable-profiling Compile with profiling enabled (default is NO) 1402 --enable-assertions Compile with assertion checks enabled (default is 1403 YES) 1404 --enable-werror Compile with -Werror enabled (default is NO) 1405 --enable-expensive-checks 1406 Compile with expensive debug checks enabled (default 1407 is NO) 1408 --enable-debug-runtime Build runtime libs with debug symbols (default is 1409 NO) 1410 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1411 optimization is on and YES if it's off) 1412 --enable-keep-symbols Do not strip installed executables) 1413 --enable-jit Enable Just In Time Compiling (default is YES) 1414 --enable-docs Build documents (default is YES) 1415 --enable-doxygen Build doxygen documentation (default is NO) 1416 --enable-threads Use threads if available (default is YES) 1417 --enable-pthreads Use pthreads if available (default is YES) 1418 --enable-pic Build LLVM with Position Independent Code (default 1419 is YES) 1420 --enable-shared Build a shared library and link tools against it 1421 (default is NO) 1422 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1423 Win32 DLL (default is NO) 1424 --enable-timestamps Enable embedding timestamp information in build 1425 (default is YES) 1426 --enable-targets Build specific host targets: all or 1427 target1,target2,... Valid targets are: host, x86, 1428 x86_64, sparc, powerpc, arm, mips, spu, hexagon, 1429 xcore, msp430, nvptx, and cpp (default=all) 1430 --enable-experimental-targets 1431 Build experimental host targets: disable or 1432 target1,target2,... (default=disable) 1433 --enable-bindings Build specific language bindings: 1434 all,auto,none,{binding-name} (default=auto) 1435 --enable-libffi Check for the presence of libffi (default is NO) 1436 --enable-ltdl-install install libltdl 1437 1438Optional Packages: 1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1441 --with-optimize-option Select the compiler options to use for optimized 1442 builds 1443 --with-extra-options Specify additional options to compile LLVM with 1444 --with-extra-ld-options Specify additional options to link LLVM with 1445 --with-ocaml-libdir Specify install location for ocaml bindings (default 1446 is stdlib) 1447 --with-clang-srcdir Directory to the out-of-tree Clang source 1448 --with-clang-resource-dir 1449 Relative directory from the Clang binary for 1450 resource files 1451 --with-c-include-dirs Colon separated list of directories clang will 1452 search for headers 1453 --with-gcc-toolchain Directory where gcc is installed. 1454 --with-default-sysroot Add --sysroot=<path> to all compiler invocations. 1455 --with-binutils-include Specify path to binutils/include/ containing 1456 plugin-api.h file for gold plugin. 1457 --with-bug-report-url Specify the URL where bug reports should be 1458 submitted (default=http://llvm.org/bugs/) 1459 --with-internal-prefix Installation directory for internal files 1460 --with-udis86=<path> Use udis86 external x86 disassembler library 1461 --with-oprofile=<prefix> 1462 Tell OProfile >= 0.9.4 how to symbolize JIT output 1463 --with-intel-jitevents=<vtune-amplifier-dir> 1464 Specify location of run-time support library for 1465 Intel JIT API 1466 (default=/opt/intel/vtune_amplifier_xe_2011) 1467 1468Some influential environment variables: 1469 CC C compiler command 1470 CFLAGS C compiler flags 1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1472 nonstandard directory <lib dir> 1473 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1474 you have headers in a nonstandard directory <include dir> 1475 CXX C++ compiler command 1476 CXXFLAGS C++ compiler flags 1477 CPP C preprocessor 1478 1479Use these variables to override the choices made by `configure' or to help 1480it to find libraries and programs with nonstandard names/locations. 1481 1482Report bugs to <http://llvm.org/bugs/>. 1483_ACEOF 1484ac_status=$? 1485fi 1486 1487if test "$ac_init_help" = "recursive"; then 1488 # If there are subdirs, report their specific --help. 1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1490 test -d "$ac_dir" || continue 1491 ac_builddir=. 1492 1493case "$ac_dir" in 1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1495*) 1496 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1497 # A ".." for each directory in $ac_dir_suffix. 1498 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1499 case $ac_top_builddir_sub in 1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1502 esac ;; 1503esac 1504ac_abs_top_builddir=$ac_pwd 1505ac_abs_builddir=$ac_pwd$ac_dir_suffix 1506# for backward compatibility: 1507ac_top_builddir=$ac_top_build_prefix 1508 1509case $srcdir in 1510 .) # We are building in place. 1511 ac_srcdir=. 1512 ac_top_srcdir=$ac_top_builddir_sub 1513 ac_abs_top_srcdir=$ac_pwd ;; 1514 [\\/]* | ?:[\\/]* ) # Absolute name. 1515 ac_srcdir=$srcdir$ac_dir_suffix; 1516 ac_top_srcdir=$srcdir 1517 ac_abs_top_srcdir=$srcdir ;; 1518 *) # Relative name. 1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1520 ac_top_srcdir=$ac_top_build_prefix$srcdir 1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1522esac 1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1524 1525 cd "$ac_dir" || { ac_status=$?; continue; } 1526 # Check for guested configure. 1527 if test -f "$ac_srcdir/configure.gnu"; then 1528 echo && 1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1530 elif test -f "$ac_srcdir/configure"; then 1531 echo && 1532 $SHELL "$ac_srcdir/configure" --help=recursive 1533 else 1534 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1535 fi || ac_status=$? 1536 cd "$ac_pwd" || { ac_status=$?; break; } 1537 done 1538fi 1539 1540test -n "$ac_init_help" && exit $ac_status 1541if $ac_init_version; then 1542 cat <<\_ACEOF 1543LLVM configure 3.2svn 1544generated by GNU Autoconf 2.60 1545 1546Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15472002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1548This configure script is free software; the Free Software Foundation 1549gives unlimited permission to copy, distribute and modify it. 1550 1551Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign. 1552_ACEOF 1553 exit 1554fi 1555cat >config.log <<_ACEOF 1556This file contains any messages produced by compilers while 1557running configure, to aid debugging if configure makes a mistake. 1558 1559It was created by LLVM $as_me 3.2svn, which was 1560generated by GNU Autoconf 2.60. Invocation command line was 1561 1562 $ $0 $@ 1563 1564_ACEOF 1565exec 5>>config.log 1566{ 1567cat <<_ASUNAME 1568## --------- ## 1569## Platform. ## 1570## --------- ## 1571 1572hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1573uname -m = `(uname -m) 2>/dev/null || echo unknown` 1574uname -r = `(uname -r) 2>/dev/null || echo unknown` 1575uname -s = `(uname -s) 2>/dev/null || echo unknown` 1576uname -v = `(uname -v) 2>/dev/null || echo unknown` 1577 1578/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1579/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1580 1581/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1582/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1583/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1584/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1585/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1586/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1587/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1588 1589_ASUNAME 1590 1591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1592for as_dir in $PATH 1593do 1594 IFS=$as_save_IFS 1595 test -z "$as_dir" && as_dir=. 1596 echo "PATH: $as_dir" 1597done 1598IFS=$as_save_IFS 1599 1600} >&5 1601 1602cat >&5 <<_ACEOF 1603 1604 1605## ----------- ## 1606## Core tests. ## 1607## ----------- ## 1608 1609_ACEOF 1610 1611 1612# Keep a trace of the command line. 1613# Strip out --no-create and --no-recursion so they do not pile up. 1614# Strip out --silent because we don't want to record it for future runs. 1615# Also quote any args containing shell meta-characters. 1616# Make two passes to allow for proper duplicate-argument suppression. 1617ac_configure_args= 1618ac_configure_args0= 1619ac_configure_args1= 1620ac_must_keep_next=false 1621for ac_pass in 1 2 1622do 1623 for ac_arg 1624 do 1625 case $ac_arg in 1626 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1628 | -silent | --silent | --silen | --sile | --sil) 1629 continue ;; 1630 *\'*) 1631 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1632 esac 1633 case $ac_pass in 1634 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1635 2) 1636 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1637 if test $ac_must_keep_next = true; then 1638 ac_must_keep_next=false # Got value, back to normal. 1639 else 1640 case $ac_arg in 1641 *=* | --config-cache | -C | -disable-* | --disable-* \ 1642 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1643 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1644 | -with-* | --with-* | -without-* | --without-* | --x) 1645 case "$ac_configure_args0 " in 1646 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1647 esac 1648 ;; 1649 -* ) ac_must_keep_next=true ;; 1650 esac 1651 fi 1652 ac_configure_args="$ac_configure_args '$ac_arg'" 1653 ;; 1654 esac 1655 done 1656done 1657$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1658$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1659 1660# When interrupted or exit'd, cleanup temporary files, and complete 1661# config.log. We remove comments because anyway the quotes in there 1662# would cause problems or look ugly. 1663# WARNING: Use '\'' to represent an apostrophe within the trap. 1664# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1665trap 'exit_status=$? 1666 # Save into config.log some information that might help in debugging. 1667 { 1668 echo 1669 1670 cat <<\_ASBOX 1671## ---------------- ## 1672## Cache variables. ## 1673## ---------------- ## 1674_ASBOX 1675 echo 1676 # The following way of writing the cache mishandles newlines in values, 1677( 1678 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1679 eval ac_val=\$$ac_var 1680 case $ac_val in #( 1681 *${as_nl}*) 1682 case $ac_var in #( 1683 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1684echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1685 esac 1686 case $ac_var in #( 1687 _ | IFS | as_nl) ;; #( 1688 *) $as_unset $ac_var ;; 1689 esac ;; 1690 esac 1691 done 1692 (set) 2>&1 | 1693 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1694 *${as_nl}ac_space=\ *) 1695 sed -n \ 1696 "s/'\''/'\''\\\\'\'''\''/g; 1697 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1698 ;; #( 1699 *) 1700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1701 ;; 1702 esac | 1703 sort 1704) 1705 echo 1706 1707 cat <<\_ASBOX 1708## ----------------- ## 1709## Output variables. ## 1710## ----------------- ## 1711_ASBOX 1712 echo 1713 for ac_var in $ac_subst_vars 1714 do 1715 eval ac_val=\$$ac_var 1716 case $ac_val in 1717 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1718 esac 1719 echo "$ac_var='\''$ac_val'\''" 1720 done | sort 1721 echo 1722 1723 if test -n "$ac_subst_files"; then 1724 cat <<\_ASBOX 1725## ------------------- ## 1726## File substitutions. ## 1727## ------------------- ## 1728_ASBOX 1729 echo 1730 for ac_var in $ac_subst_files 1731 do 1732 eval ac_val=\$$ac_var 1733 case $ac_val in 1734 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1735 esac 1736 echo "$ac_var='\''$ac_val'\''" 1737 done | sort 1738 echo 1739 fi 1740 1741 if test -s confdefs.h; then 1742 cat <<\_ASBOX 1743## ----------- ## 1744## confdefs.h. ## 1745## ----------- ## 1746_ASBOX 1747 echo 1748 cat confdefs.h 1749 echo 1750 fi 1751 test "$ac_signal" != 0 && 1752 echo "$as_me: caught signal $ac_signal" 1753 echo "$as_me: exit $exit_status" 1754 } >&5 1755 rm -f core *.core core.conftest.* && 1756 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1757 exit $exit_status 1758' 0 1759for ac_signal in 1 2 13 15; do 1760 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1761done 1762ac_signal=0 1763 1764# confdefs.h avoids OS command line length limits that DEFS can exceed. 1765rm -f -r conftest* confdefs.h 1766 1767# Predefined preprocessor variables. 1768 1769cat >>confdefs.h <<_ACEOF 1770#define PACKAGE_NAME "$PACKAGE_NAME" 1771_ACEOF 1772 1773 1774cat >>confdefs.h <<_ACEOF 1775#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1776_ACEOF 1777 1778 1779cat >>confdefs.h <<_ACEOF 1780#define PACKAGE_VERSION "$PACKAGE_VERSION" 1781_ACEOF 1782 1783 1784cat >>confdefs.h <<_ACEOF 1785#define PACKAGE_STRING "$PACKAGE_STRING" 1786_ACEOF 1787 1788 1789cat >>confdefs.h <<_ACEOF 1790#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1791_ACEOF 1792 1793 1794# Let the site file select an alternate cache file if it wants to. 1795# Prefer explicitly selected file to automatically selected ones. 1796if test -n "$CONFIG_SITE"; then 1797 set x "$CONFIG_SITE" 1798elif test "x$prefix" != xNONE; then 1799 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1800else 1801 set x "$ac_default_prefix/share/config.site" \ 1802 "$ac_default_prefix/etc/config.site" 1803fi 1804shift 1805for ac_site_file 1806do 1807 if test -r "$ac_site_file"; then 1808 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1809echo "$as_me: loading site script $ac_site_file" >&6;} 1810 sed 's/^/| /' "$ac_site_file" >&5 1811 . "$ac_site_file" 1812 fi 1813done 1814 1815if test -r "$cache_file"; then 1816 # Some versions of bash will fail to source /dev/null (special 1817 # files actually), so we avoid doing that. 1818 if test -f "$cache_file"; then 1819 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1820echo "$as_me: loading cache $cache_file" >&6;} 1821 case $cache_file in 1822 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1823 *) . "./$cache_file";; 1824 esac 1825 fi 1826else 1827 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1828echo "$as_me: creating cache $cache_file" >&6;} 1829 >$cache_file 1830fi 1831 1832# Check that the precious variables saved in the cache have kept the same 1833# value. 1834ac_cache_corrupted=false 1835for ac_var in $ac_precious_vars; do 1836 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1837 eval ac_new_set=\$ac_env_${ac_var}_set 1838 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1839 eval ac_new_val=\$ac_env_${ac_var}_value 1840 case $ac_old_set,$ac_new_set in 1841 set,) 1842 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1843echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1844 ac_cache_corrupted=: ;; 1845 ,set) 1846 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1847echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1848 ac_cache_corrupted=: ;; 1849 ,);; 1850 *) 1851 if test "x$ac_old_val" != "x$ac_new_val"; then 1852 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1853echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1854 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1855echo "$as_me: former value: $ac_old_val" >&2;} 1856 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1857echo "$as_me: current value: $ac_new_val" >&2;} 1858 ac_cache_corrupted=: 1859 fi;; 1860 esac 1861 # Pass precious variables to config.status. 1862 if test "$ac_new_set" = set; then 1863 case $ac_new_val in 1864 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1865 *) ac_arg=$ac_var=$ac_new_val ;; 1866 esac 1867 case " $ac_configure_args " in 1868 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1869 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1870 esac 1871 fi 1872done 1873if $ac_cache_corrupted; then 1874 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1875echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1876 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1877echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1878 { (exit 1); exit 1; }; } 1879fi 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905ac_ext=c 1906ac_cpp='$CPP $CPPFLAGS' 1907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1909ac_compiler_gnu=$ac_cv_c_compiler_gnu 1910 1911 1912 1913cat >>confdefs.h <<\_ACEOF 1914#define LLVM_VERSION_MAJOR 3 1915_ACEOF 1916 1917 1918cat >>confdefs.h <<\_ACEOF 1919#define LLVM_VERSION_MINOR 2 1920_ACEOF 1921 1922 1923LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign." 1924 1925 1926 1927 1928 1929 1930 1931ac_aux_dir= 1932for ac_dir in autoconf "$srcdir"/autoconf; do 1933 if test -f "$ac_dir/install-sh"; then 1934 ac_aux_dir=$ac_dir 1935 ac_install_sh="$ac_aux_dir/install-sh -c" 1936 break 1937 elif test -f "$ac_dir/install.sh"; then 1938 ac_aux_dir=$ac_dir 1939 ac_install_sh="$ac_aux_dir/install.sh -c" 1940 break 1941 elif test -f "$ac_dir/shtool"; then 1942 ac_aux_dir=$ac_dir 1943 ac_install_sh="$ac_aux_dir/shtool install -c" 1944 break 1945 fi 1946done 1947if test -z "$ac_aux_dir"; then 1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1949echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1950 { (exit 1); exit 1; }; } 1951fi 1952 1953# These three variables are undocumented and unsupported, 1954# and are intended to be withdrawn in a future Autoconf release. 1955# They can cause serious problems if a builder's source tree is in a directory 1956# whose full name contains unusual characters. 1957ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1958ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1959ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1960 1961 1962 1963if test ${srcdir} != "." ; then 1964 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1965 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1966echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1967 { (exit 1); exit 1; }; } 1968 fi 1969fi 1970 1971ac_ext=c 1972ac_cpp='$CPP $CPPFLAGS' 1973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1975ac_compiler_gnu=$ac_cv_c_compiler_gnu 1976if test -n "$ac_tool_prefix"; then 1977 for ac_prog in clang llvm-gcc gcc 1978 do 1979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1980set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1981{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1983if test "${ac_cv_prog_CC+set}" = set; then 1984 echo $ECHO_N "(cached) $ECHO_C" >&6 1985else 1986 if test -n "$CC"; then 1987 ac_cv_prog_CC="$CC" # Let the user override the test. 1988else 1989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1990for as_dir in $PATH 1991do 1992 IFS=$as_save_IFS 1993 test -z "$as_dir" && as_dir=. 1994 for ac_exec_ext in '' $ac_executable_extensions; do 1995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 1996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1998 break 2 1999 fi 2000done 2001done 2002IFS=$as_save_IFS 2003 2004fi 2005fi 2006CC=$ac_cv_prog_CC 2007if test -n "$CC"; then 2008 { echo "$as_me:$LINENO: result: $CC" >&5 2009echo "${ECHO_T}$CC" >&6; } 2010else 2011 { echo "$as_me:$LINENO: result: no" >&5 2012echo "${ECHO_T}no" >&6; } 2013fi 2014 2015 2016 test -n "$CC" && break 2017 done 2018fi 2019if test -z "$CC"; then 2020 ac_ct_CC=$CC 2021 for ac_prog in clang llvm-gcc gcc 2022do 2023 # Extract the first word of "$ac_prog", so it can be a program name with args. 2024set dummy $ac_prog; ac_word=$2 2025{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2027if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2028 echo $ECHO_N "(cached) $ECHO_C" >&6 2029else 2030 if test -n "$ac_ct_CC"; then 2031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2032else 2033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2034for as_dir in $PATH 2035do 2036 IFS=$as_save_IFS 2037 test -z "$as_dir" && as_dir=. 2038 for ac_exec_ext in '' $ac_executable_extensions; do 2039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2040 ac_cv_prog_ac_ct_CC="$ac_prog" 2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2042 break 2 2043 fi 2044done 2045done 2046IFS=$as_save_IFS 2047 2048fi 2049fi 2050ac_ct_CC=$ac_cv_prog_ac_ct_CC 2051if test -n "$ac_ct_CC"; then 2052 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2053echo "${ECHO_T}$ac_ct_CC" >&6; } 2054else 2055 { echo "$as_me:$LINENO: result: no" >&5 2056echo "${ECHO_T}no" >&6; } 2057fi 2058 2059 2060 test -n "$ac_ct_CC" && break 2061done 2062 2063 if test "x$ac_ct_CC" = x; then 2064 CC="" 2065 else 2066 case $cross_compiling:$ac_tool_warned in 2067yes:) 2068{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2069whose name does not start with the host triplet. If you think this 2070configuration is useful to you, please write to autoconf@gnu.org." >&5 2071echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2072whose name does not start with the host triplet. If you think this 2073configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2074ac_tool_warned=yes ;; 2075esac 2076 CC=$ac_ct_CC 2077 fi 2078fi 2079 2080 2081test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2082See \`config.log' for more details." >&5 2083echo "$as_me: error: no acceptable C compiler found in \$PATH 2084See \`config.log' for more details." >&2;} 2085 { (exit 1); exit 1; }; } 2086 2087# Provide some information about the compiler. 2088echo "$as_me:$LINENO: checking for C compiler version" >&5 2089ac_compiler=`set X $ac_compile; echo $2` 2090{ (ac_try="$ac_compiler --version >&5" 2091case "(($ac_try" in 2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2093 *) ac_try_echo=$ac_try;; 2094esac 2095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2096 (eval "$ac_compiler --version >&5") 2>&5 2097 ac_status=$? 2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2099 (exit $ac_status); } 2100{ (ac_try="$ac_compiler -v >&5" 2101case "(($ac_try" in 2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2103 *) ac_try_echo=$ac_try;; 2104esac 2105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2106 (eval "$ac_compiler -v >&5") 2>&5 2107 ac_status=$? 2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2109 (exit $ac_status); } 2110{ (ac_try="$ac_compiler -V >&5" 2111case "(($ac_try" in 2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2113 *) ac_try_echo=$ac_try;; 2114esac 2115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2116 (eval "$ac_compiler -V >&5") 2>&5 2117 ac_status=$? 2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2119 (exit $ac_status); } 2120 2121cat >conftest.$ac_ext <<_ACEOF 2122/* confdefs.h. */ 2123_ACEOF 2124cat confdefs.h >>conftest.$ac_ext 2125cat >>conftest.$ac_ext <<_ACEOF 2126/* end confdefs.h. */ 2127 2128int 2129main () 2130{ 2131 2132 ; 2133 return 0; 2134} 2135_ACEOF 2136ac_clean_files_save=$ac_clean_files 2137ac_clean_files="$ac_clean_files a.out a.exe b.out" 2138# Try to create an executable without -o first, disregard a.out. 2139# It will help us diagnose broken compilers, and finding out an intuition 2140# of exeext. 2141{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2142echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2143ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2144# 2145# List of possible output files, starting from the most likely. 2146# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2147# only as a last resort. b.out is created by i960 compilers. 2148ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2149# 2150# The IRIX 6 linker writes into existing files which may not be 2151# executable, retaining their permissions. Remove them first so a 2152# subsequent execution test works. 2153ac_rmfiles= 2154for ac_file in $ac_files 2155do 2156 case $ac_file in 2157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2158 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2159 esac 2160done 2161rm -f $ac_rmfiles 2162 2163if { (ac_try="$ac_link_default" 2164case "(($ac_try" in 2165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2166 *) ac_try_echo=$ac_try;; 2167esac 2168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2169 (eval "$ac_link_default") 2>&5 2170 ac_status=$? 2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2172 (exit $ac_status); }; then 2173 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2174# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2175# in a Makefile. We should not override ac_cv_exeext if it was cached, 2176# so that the user can short-circuit this test for compilers unknown to 2177# Autoconf. 2178for ac_file in $ac_files 2179do 2180 test -f "$ac_file" || continue 2181 case $ac_file in 2182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2183 ;; 2184 [ab].out ) 2185 # We found the default executable, but exeext='' is most 2186 # certainly right. 2187 break;; 2188 *.* ) 2189 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2190 then :; else 2191 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2192 fi 2193 # We set ac_cv_exeext here because the later test for it is not 2194 # safe: cross compilers may not add the suffix if given an `-o' 2195 # argument, so we may need to know it at that point already. 2196 # Even if this section looks crufty: it has the advantage of 2197 # actually working. 2198 break;; 2199 * ) 2200 break;; 2201 esac 2202done 2203test "$ac_cv_exeext" = no && ac_cv_exeext= 2204 2205else 2206 echo "$as_me: failed program was:" >&5 2207sed 's/^/| /' conftest.$ac_ext >&5 2208 2209{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2210See \`config.log' for more details." >&5 2211echo "$as_me: error: C compiler cannot create executables 2212See \`config.log' for more details." >&2;} 2213 { (exit 77); exit 77; }; } 2214fi 2215 2216ac_exeext=$ac_cv_exeext 2217{ echo "$as_me:$LINENO: result: $ac_file" >&5 2218echo "${ECHO_T}$ac_file" >&6; } 2219 2220# Check that the compiler produces executables we can run. If not, either 2221# the compiler is broken, or we cross compile. 2222{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2223echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2224# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2225# If not cross compiling, check that we can run a simple program. 2226if test "$cross_compiling" != yes; then 2227 if { ac_try='./$ac_file' 2228 { (case "(($ac_try" in 2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2230 *) ac_try_echo=$ac_try;; 2231esac 2232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2233 (eval "$ac_try") 2>&5 2234 ac_status=$? 2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2236 (exit $ac_status); }; }; then 2237 cross_compiling=no 2238 else 2239 if test "$cross_compiling" = maybe; then 2240 cross_compiling=yes 2241 else 2242 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2243If you meant to cross compile, use \`--host'. 2244See \`config.log' for more details." >&5 2245echo "$as_me: error: cannot run C compiled programs. 2246If you meant to cross compile, use \`--host'. 2247See \`config.log' for more details." >&2;} 2248 { (exit 1); exit 1; }; } 2249 fi 2250 fi 2251fi 2252{ echo "$as_me:$LINENO: result: yes" >&5 2253echo "${ECHO_T}yes" >&6; } 2254 2255rm -f a.out a.exe conftest$ac_cv_exeext b.out 2256ac_clean_files=$ac_clean_files_save 2257# Check that the compiler produces executables we can run. If not, either 2258# the compiler is broken, or we cross compile. 2259{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2260echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2261{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2262echo "${ECHO_T}$cross_compiling" >&6; } 2263 2264{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2265echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2266if { (ac_try="$ac_link" 2267case "(($ac_try" in 2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2269 *) ac_try_echo=$ac_try;; 2270esac 2271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2272 (eval "$ac_link") 2>&5 2273 ac_status=$? 2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2275 (exit $ac_status); }; then 2276 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2277# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2278# work properly (i.e., refer to `conftest.exe'), while it won't with 2279# `rm'. 2280for ac_file in conftest.exe conftest conftest.*; do 2281 test -f "$ac_file" || continue 2282 case $ac_file in 2283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2285 break;; 2286 * ) break;; 2287 esac 2288done 2289else 2290 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2291See \`config.log' for more details." >&5 2292echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2293See \`config.log' for more details." >&2;} 2294 { (exit 1); exit 1; }; } 2295fi 2296 2297rm -f conftest$ac_cv_exeext 2298{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2299echo "${ECHO_T}$ac_cv_exeext" >&6; } 2300 2301rm -f conftest.$ac_ext 2302EXEEXT=$ac_cv_exeext 2303ac_exeext=$EXEEXT 2304{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2305echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2306if test "${ac_cv_objext+set}" = set; then 2307 echo $ECHO_N "(cached) $ECHO_C" >&6 2308else 2309 cat >conftest.$ac_ext <<_ACEOF 2310/* confdefs.h. */ 2311_ACEOF 2312cat confdefs.h >>conftest.$ac_ext 2313cat >>conftest.$ac_ext <<_ACEOF 2314/* end confdefs.h. */ 2315 2316int 2317main () 2318{ 2319 2320 ; 2321 return 0; 2322} 2323_ACEOF 2324rm -f conftest.o conftest.obj 2325if { (ac_try="$ac_compile" 2326case "(($ac_try" in 2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2328 *) ac_try_echo=$ac_try;; 2329esac 2330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2331 (eval "$ac_compile") 2>&5 2332 ac_status=$? 2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2334 (exit $ac_status); }; then 2335 for ac_file in conftest.o conftest.obj conftest.*; do 2336 test -f "$ac_file" || continue; 2337 case $ac_file in 2338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2339 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2340 break;; 2341 esac 2342done 2343else 2344 echo "$as_me: failed program was:" >&5 2345sed 's/^/| /' conftest.$ac_ext >&5 2346 2347{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2348See \`config.log' for more details." >&5 2349echo "$as_me: error: cannot compute suffix of object files: cannot compile 2350See \`config.log' for more details." >&2;} 2351 { (exit 1); exit 1; }; } 2352fi 2353 2354rm -f conftest.$ac_cv_objext conftest.$ac_ext 2355fi 2356{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2357echo "${ECHO_T}$ac_cv_objext" >&6; } 2358OBJEXT=$ac_cv_objext 2359ac_objext=$OBJEXT 2360{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2361echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2362if test "${ac_cv_c_compiler_gnu+set}" = set; then 2363 echo $ECHO_N "(cached) $ECHO_C" >&6 2364else 2365 cat >conftest.$ac_ext <<_ACEOF 2366/* confdefs.h. */ 2367_ACEOF 2368cat confdefs.h >>conftest.$ac_ext 2369cat >>conftest.$ac_ext <<_ACEOF 2370/* end confdefs.h. */ 2371 2372int 2373main () 2374{ 2375#ifndef __GNUC__ 2376 choke me 2377#endif 2378 2379 ; 2380 return 0; 2381} 2382_ACEOF 2383rm -f conftest.$ac_objext 2384if { (ac_try="$ac_compile" 2385case "(($ac_try" in 2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2387 *) ac_try_echo=$ac_try;; 2388esac 2389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2390 (eval "$ac_compile") 2>conftest.er1 2391 ac_status=$? 2392 grep -v '^ *+' conftest.er1 >conftest.err 2393 rm -f conftest.er1 2394 cat conftest.err >&5 2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2396 (exit $ac_status); } && 2397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2398 { (case "(($ac_try" in 2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2400 *) ac_try_echo=$ac_try;; 2401esac 2402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2403 (eval "$ac_try") 2>&5 2404 ac_status=$? 2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2406 (exit $ac_status); }; } && 2407 { ac_try='test -s conftest.$ac_objext' 2408 { (case "(($ac_try" in 2409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2410 *) ac_try_echo=$ac_try;; 2411esac 2412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2413 (eval "$ac_try") 2>&5 2414 ac_status=$? 2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2416 (exit $ac_status); }; }; then 2417 ac_compiler_gnu=yes 2418else 2419 echo "$as_me: failed program was:" >&5 2420sed 's/^/| /' conftest.$ac_ext >&5 2421 2422 ac_compiler_gnu=no 2423fi 2424 2425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2426ac_cv_c_compiler_gnu=$ac_compiler_gnu 2427 2428fi 2429{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2430echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2431GCC=`test $ac_compiler_gnu = yes && echo yes` 2432ac_test_CFLAGS=${CFLAGS+set} 2433ac_save_CFLAGS=$CFLAGS 2434{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2435echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2436if test "${ac_cv_prog_cc_g+set}" = set; then 2437 echo $ECHO_N "(cached) $ECHO_C" >&6 2438else 2439 ac_save_c_werror_flag=$ac_c_werror_flag 2440 ac_c_werror_flag=yes 2441 ac_cv_prog_cc_g=no 2442 CFLAGS="-g" 2443 cat >conftest.$ac_ext <<_ACEOF 2444/* confdefs.h. */ 2445_ACEOF 2446cat confdefs.h >>conftest.$ac_ext 2447cat >>conftest.$ac_ext <<_ACEOF 2448/* end confdefs.h. */ 2449 2450int 2451main () 2452{ 2453 2454 ; 2455 return 0; 2456} 2457_ACEOF 2458rm -f conftest.$ac_objext 2459if { (ac_try="$ac_compile" 2460case "(($ac_try" in 2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2462 *) ac_try_echo=$ac_try;; 2463esac 2464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2465 (eval "$ac_compile") 2>conftest.er1 2466 ac_status=$? 2467 grep -v '^ *+' conftest.er1 >conftest.err 2468 rm -f conftest.er1 2469 cat conftest.err >&5 2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2471 (exit $ac_status); } && 2472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2473 { (case "(($ac_try" in 2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2475 *) ac_try_echo=$ac_try;; 2476esac 2477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2478 (eval "$ac_try") 2>&5 2479 ac_status=$? 2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2481 (exit $ac_status); }; } && 2482 { ac_try='test -s conftest.$ac_objext' 2483 { (case "(($ac_try" in 2484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2485 *) ac_try_echo=$ac_try;; 2486esac 2487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2488 (eval "$ac_try") 2>&5 2489 ac_status=$? 2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2491 (exit $ac_status); }; }; then 2492 ac_cv_prog_cc_g=yes 2493else 2494 echo "$as_me: failed program was:" >&5 2495sed 's/^/| /' conftest.$ac_ext >&5 2496 2497 CFLAGS="" 2498 cat >conftest.$ac_ext <<_ACEOF 2499/* confdefs.h. */ 2500_ACEOF 2501cat confdefs.h >>conftest.$ac_ext 2502cat >>conftest.$ac_ext <<_ACEOF 2503/* end confdefs.h. */ 2504 2505int 2506main () 2507{ 2508 2509 ; 2510 return 0; 2511} 2512_ACEOF 2513rm -f conftest.$ac_objext 2514if { (ac_try="$ac_compile" 2515case "(($ac_try" in 2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2517 *) ac_try_echo=$ac_try;; 2518esac 2519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2520 (eval "$ac_compile") 2>conftest.er1 2521 ac_status=$? 2522 grep -v '^ *+' conftest.er1 >conftest.err 2523 rm -f conftest.er1 2524 cat conftest.err >&5 2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2526 (exit $ac_status); } && 2527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2528 { (case "(($ac_try" in 2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2530 *) ac_try_echo=$ac_try;; 2531esac 2532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2533 (eval "$ac_try") 2>&5 2534 ac_status=$? 2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2536 (exit $ac_status); }; } && 2537 { ac_try='test -s conftest.$ac_objext' 2538 { (case "(($ac_try" in 2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2540 *) ac_try_echo=$ac_try;; 2541esac 2542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2543 (eval "$ac_try") 2>&5 2544 ac_status=$? 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2546 (exit $ac_status); }; }; then 2547 : 2548else 2549 echo "$as_me: failed program was:" >&5 2550sed 's/^/| /' conftest.$ac_ext >&5 2551 2552 ac_c_werror_flag=$ac_save_c_werror_flag 2553 CFLAGS="-g" 2554 cat >conftest.$ac_ext <<_ACEOF 2555/* confdefs.h. */ 2556_ACEOF 2557cat confdefs.h >>conftest.$ac_ext 2558cat >>conftest.$ac_ext <<_ACEOF 2559/* end confdefs.h. */ 2560 2561int 2562main () 2563{ 2564 2565 ; 2566 return 0; 2567} 2568_ACEOF 2569rm -f conftest.$ac_objext 2570if { (ac_try="$ac_compile" 2571case "(($ac_try" in 2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2573 *) ac_try_echo=$ac_try;; 2574esac 2575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2576 (eval "$ac_compile") 2>conftest.er1 2577 ac_status=$? 2578 grep -v '^ *+' conftest.er1 >conftest.err 2579 rm -f conftest.er1 2580 cat conftest.err >&5 2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2582 (exit $ac_status); } && 2583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2584 { (case "(($ac_try" in 2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2586 *) ac_try_echo=$ac_try;; 2587esac 2588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2589 (eval "$ac_try") 2>&5 2590 ac_status=$? 2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2592 (exit $ac_status); }; } && 2593 { ac_try='test -s conftest.$ac_objext' 2594 { (case "(($ac_try" in 2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2596 *) ac_try_echo=$ac_try;; 2597esac 2598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2599 (eval "$ac_try") 2>&5 2600 ac_status=$? 2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2602 (exit $ac_status); }; }; then 2603 ac_cv_prog_cc_g=yes 2604else 2605 echo "$as_me: failed program was:" >&5 2606sed 's/^/| /' conftest.$ac_ext >&5 2607 2608 2609fi 2610 2611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2612fi 2613 2614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2615fi 2616 2617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2618 ac_c_werror_flag=$ac_save_c_werror_flag 2619fi 2620{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2621echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2622if test "$ac_test_CFLAGS" = set; then 2623 CFLAGS=$ac_save_CFLAGS 2624elif test $ac_cv_prog_cc_g = yes; then 2625 if test "$GCC" = yes; then 2626 CFLAGS="-g -O2" 2627 else 2628 CFLAGS="-g" 2629 fi 2630else 2631 if test "$GCC" = yes; then 2632 CFLAGS="-O2" 2633 else 2634 CFLAGS= 2635 fi 2636fi 2637{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2638echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2639if test "${ac_cv_prog_cc_c89+set}" = set; then 2640 echo $ECHO_N "(cached) $ECHO_C" >&6 2641else 2642 ac_cv_prog_cc_c89=no 2643ac_save_CC=$CC 2644cat >conftest.$ac_ext <<_ACEOF 2645/* confdefs.h. */ 2646_ACEOF 2647cat confdefs.h >>conftest.$ac_ext 2648cat >>conftest.$ac_ext <<_ACEOF 2649/* end confdefs.h. */ 2650#include <stdarg.h> 2651#include <stdio.h> 2652#include <sys/types.h> 2653#include <sys/stat.h> 2654/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2655struct buf { int x; }; 2656FILE * (*rcsopen) (struct buf *, struct stat *, int); 2657static char *e (p, i) 2658 char **p; 2659 int i; 2660{ 2661 return p[i]; 2662} 2663static char *f (char * (*g) (char **, int), char **p, ...) 2664{ 2665 char *s; 2666 va_list v; 2667 va_start (v,p); 2668 s = g (p, va_arg (v,int)); 2669 va_end (v); 2670 return s; 2671} 2672 2673/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2674 function prototypes and stuff, but not '\xHH' hex character constants. 2675 These don't provoke an error unfortunately, instead are silently treated 2676 as 'x'. The following induces an error, until -std is added to get 2677 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2678 array size at least. It's necessary to write '\x00'==0 to get something 2679 that's true only with -std. */ 2680int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2681 2682/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2683 inside strings and character constants. */ 2684#define FOO(x) 'x' 2685int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2686 2687int test (int i, double x); 2688struct s1 {int (*f) (int a);}; 2689struct s2 {int (*f) (double a);}; 2690int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2691int argc; 2692char **argv; 2693int 2694main () 2695{ 2696return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2697 ; 2698 return 0; 2699} 2700_ACEOF 2701for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2702 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2703do 2704 CC="$ac_save_CC $ac_arg" 2705 rm -f conftest.$ac_objext 2706if { (ac_try="$ac_compile" 2707case "(($ac_try" in 2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2709 *) ac_try_echo=$ac_try;; 2710esac 2711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2712 (eval "$ac_compile") 2>conftest.er1 2713 ac_status=$? 2714 grep -v '^ *+' conftest.er1 >conftest.err 2715 rm -f conftest.er1 2716 cat conftest.err >&5 2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2718 (exit $ac_status); } && 2719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2720 { (case "(($ac_try" in 2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2722 *) ac_try_echo=$ac_try;; 2723esac 2724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2725 (eval "$ac_try") 2>&5 2726 ac_status=$? 2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2728 (exit $ac_status); }; } && 2729 { ac_try='test -s conftest.$ac_objext' 2730 { (case "(($ac_try" in 2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2732 *) ac_try_echo=$ac_try;; 2733esac 2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2735 (eval "$ac_try") 2>&5 2736 ac_status=$? 2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2738 (exit $ac_status); }; }; then 2739 ac_cv_prog_cc_c89=$ac_arg 2740else 2741 echo "$as_me: failed program was:" >&5 2742sed 's/^/| /' conftest.$ac_ext >&5 2743 2744 2745fi 2746 2747rm -f core conftest.err conftest.$ac_objext 2748 test "x$ac_cv_prog_cc_c89" != "xno" && break 2749done 2750rm -f conftest.$ac_ext 2751CC=$ac_save_CC 2752 2753fi 2754# AC_CACHE_VAL 2755case "x$ac_cv_prog_cc_c89" in 2756 x) 2757 { echo "$as_me:$LINENO: result: none needed" >&5 2758echo "${ECHO_T}none needed" >&6; } ;; 2759 xno) 2760 { echo "$as_me:$LINENO: result: unsupported" >&5 2761echo "${ECHO_T}unsupported" >&6; } ;; 2762 *) 2763 CC="$CC $ac_cv_prog_cc_c89" 2764 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2765echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2766esac 2767 2768 2769ac_ext=c 2770ac_cpp='$CPP $CPPFLAGS' 2771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2773ac_compiler_gnu=$ac_cv_c_compiler_gnu 2774 2775ac_ext=cpp 2776ac_cpp='$CXXCPP $CPPFLAGS' 2777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2780if test -z "$CXX"; then 2781 if test -n "$CCC"; then 2782 CXX=$CCC 2783 else 2784 if test -n "$ac_tool_prefix"; then 2785 for ac_prog in clang++ llvm-g++ g++ 2786 do 2787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2788set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2789{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2791if test "${ac_cv_prog_CXX+set}" = set; then 2792 echo $ECHO_N "(cached) $ECHO_C" >&6 2793else 2794 if test -n "$CXX"; then 2795 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2796else 2797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2798for as_dir in $PATH 2799do 2800 IFS=$as_save_IFS 2801 test -z "$as_dir" && as_dir=. 2802 for ac_exec_ext in '' $ac_executable_extensions; do 2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2804 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2806 break 2 2807 fi 2808done 2809done 2810IFS=$as_save_IFS 2811 2812fi 2813fi 2814CXX=$ac_cv_prog_CXX 2815if test -n "$CXX"; then 2816 { echo "$as_me:$LINENO: result: $CXX" >&5 2817echo "${ECHO_T}$CXX" >&6; } 2818else 2819 { echo "$as_me:$LINENO: result: no" >&5 2820echo "${ECHO_T}no" >&6; } 2821fi 2822 2823 2824 test -n "$CXX" && break 2825 done 2826fi 2827if test -z "$CXX"; then 2828 ac_ct_CXX=$CXX 2829 for ac_prog in clang++ llvm-g++ g++ 2830do 2831 # Extract the first word of "$ac_prog", so it can be a program name with args. 2832set dummy $ac_prog; ac_word=$2 2833{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2835if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2836 echo $ECHO_N "(cached) $ECHO_C" >&6 2837else 2838 if test -n "$ac_ct_CXX"; then 2839 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2840else 2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2842for as_dir in $PATH 2843do 2844 IFS=$as_save_IFS 2845 test -z "$as_dir" && as_dir=. 2846 for ac_exec_ext in '' $ac_executable_extensions; do 2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2848 ac_cv_prog_ac_ct_CXX="$ac_prog" 2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2850 break 2 2851 fi 2852done 2853done 2854IFS=$as_save_IFS 2855 2856fi 2857fi 2858ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2859if test -n "$ac_ct_CXX"; then 2860 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2861echo "${ECHO_T}$ac_ct_CXX" >&6; } 2862else 2863 { echo "$as_me:$LINENO: result: no" >&5 2864echo "${ECHO_T}no" >&6; } 2865fi 2866 2867 2868 test -n "$ac_ct_CXX" && break 2869done 2870 2871 if test "x$ac_ct_CXX" = x; then 2872 CXX="g++" 2873 else 2874 case $cross_compiling:$ac_tool_warned in 2875yes:) 2876{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2877whose name does not start with the host triplet. If you think this 2878configuration is useful to you, please write to autoconf@gnu.org." >&5 2879echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2880whose name does not start with the host triplet. If you think this 2881configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2882ac_tool_warned=yes ;; 2883esac 2884 CXX=$ac_ct_CXX 2885 fi 2886fi 2887 2888 fi 2889fi 2890# Provide some information about the compiler. 2891echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2892ac_compiler=`set X $ac_compile; echo $2` 2893{ (ac_try="$ac_compiler --version >&5" 2894case "(($ac_try" in 2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2896 *) ac_try_echo=$ac_try;; 2897esac 2898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2899 (eval "$ac_compiler --version >&5") 2>&5 2900 ac_status=$? 2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2902 (exit $ac_status); } 2903{ (ac_try="$ac_compiler -v >&5" 2904case "(($ac_try" in 2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2906 *) ac_try_echo=$ac_try;; 2907esac 2908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2909 (eval "$ac_compiler -v >&5") 2>&5 2910 ac_status=$? 2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2912 (exit $ac_status); } 2913{ (ac_try="$ac_compiler -V >&5" 2914case "(($ac_try" in 2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2916 *) ac_try_echo=$ac_try;; 2917esac 2918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2919 (eval "$ac_compiler -V >&5") 2>&5 2920 ac_status=$? 2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2922 (exit $ac_status); } 2923 2924{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2925echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2926if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2927 echo $ECHO_N "(cached) $ECHO_C" >&6 2928else 2929 cat >conftest.$ac_ext <<_ACEOF 2930/* confdefs.h. */ 2931_ACEOF 2932cat confdefs.h >>conftest.$ac_ext 2933cat >>conftest.$ac_ext <<_ACEOF 2934/* end confdefs.h. */ 2935 2936int 2937main () 2938{ 2939#ifndef __GNUC__ 2940 choke me 2941#endif 2942 2943 ; 2944 return 0; 2945} 2946_ACEOF 2947rm -f conftest.$ac_objext 2948if { (ac_try="$ac_compile" 2949case "(($ac_try" in 2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2951 *) ac_try_echo=$ac_try;; 2952esac 2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2954 (eval "$ac_compile") 2>conftest.er1 2955 ac_status=$? 2956 grep -v '^ *+' conftest.er1 >conftest.err 2957 rm -f conftest.er1 2958 cat conftest.err >&5 2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2960 (exit $ac_status); } && 2961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2962 { (case "(($ac_try" in 2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2964 *) ac_try_echo=$ac_try;; 2965esac 2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2967 (eval "$ac_try") 2>&5 2968 ac_status=$? 2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2970 (exit $ac_status); }; } && 2971 { ac_try='test -s conftest.$ac_objext' 2972 { (case "(($ac_try" in 2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2974 *) ac_try_echo=$ac_try;; 2975esac 2976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2977 (eval "$ac_try") 2>&5 2978 ac_status=$? 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 (exit $ac_status); }; }; then 2981 ac_compiler_gnu=yes 2982else 2983 echo "$as_me: failed program was:" >&5 2984sed 's/^/| /' conftest.$ac_ext >&5 2985 2986 ac_compiler_gnu=no 2987fi 2988 2989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2990ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2991 2992fi 2993{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2994echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2995GXX=`test $ac_compiler_gnu = yes && echo yes` 2996ac_test_CXXFLAGS=${CXXFLAGS+set} 2997ac_save_CXXFLAGS=$CXXFLAGS 2998{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2999echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3000if test "${ac_cv_prog_cxx_g+set}" = set; then 3001 echo $ECHO_N "(cached) $ECHO_C" >&6 3002else 3003 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3004 ac_cxx_werror_flag=yes 3005 ac_cv_prog_cxx_g=no 3006 CXXFLAGS="-g" 3007 cat >conftest.$ac_ext <<_ACEOF 3008/* confdefs.h. */ 3009_ACEOF 3010cat confdefs.h >>conftest.$ac_ext 3011cat >>conftest.$ac_ext <<_ACEOF 3012/* end confdefs.h. */ 3013 3014int 3015main () 3016{ 3017 3018 ; 3019 return 0; 3020} 3021_ACEOF 3022rm -f conftest.$ac_objext 3023if { (ac_try="$ac_compile" 3024case "(($ac_try" in 3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3026 *) ac_try_echo=$ac_try;; 3027esac 3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3029 (eval "$ac_compile") 2>conftest.er1 3030 ac_status=$? 3031 grep -v '^ *+' conftest.er1 >conftest.err 3032 rm -f conftest.er1 3033 cat conftest.err >&5 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); } && 3036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3037 { (case "(($ac_try" in 3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3039 *) ac_try_echo=$ac_try;; 3040esac 3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3042 (eval "$ac_try") 2>&5 3043 ac_status=$? 3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3045 (exit $ac_status); }; } && 3046 { ac_try='test -s conftest.$ac_objext' 3047 { (case "(($ac_try" in 3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3049 *) ac_try_echo=$ac_try;; 3050esac 3051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3052 (eval "$ac_try") 2>&5 3053 ac_status=$? 3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3055 (exit $ac_status); }; }; then 3056 ac_cv_prog_cxx_g=yes 3057else 3058 echo "$as_me: failed program was:" >&5 3059sed 's/^/| /' conftest.$ac_ext >&5 3060 3061 CXXFLAGS="" 3062 cat >conftest.$ac_ext <<_ACEOF 3063/* confdefs.h. */ 3064_ACEOF 3065cat confdefs.h >>conftest.$ac_ext 3066cat >>conftest.$ac_ext <<_ACEOF 3067/* end confdefs.h. */ 3068 3069int 3070main () 3071{ 3072 3073 ; 3074 return 0; 3075} 3076_ACEOF 3077rm -f conftest.$ac_objext 3078if { (ac_try="$ac_compile" 3079case "(($ac_try" in 3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3081 *) ac_try_echo=$ac_try;; 3082esac 3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3084 (eval "$ac_compile") 2>conftest.er1 3085 ac_status=$? 3086 grep -v '^ *+' conftest.er1 >conftest.err 3087 rm -f conftest.er1 3088 cat conftest.err >&5 3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3090 (exit $ac_status); } && 3091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3092 { (case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3097 (eval "$ac_try") 2>&5 3098 ac_status=$? 3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3100 (exit $ac_status); }; } && 3101 { ac_try='test -s conftest.$ac_objext' 3102 { (case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105esac 3106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3107 (eval "$ac_try") 2>&5 3108 ac_status=$? 3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3110 (exit $ac_status); }; }; then 3111 : 3112else 3113 echo "$as_me: failed program was:" >&5 3114sed 's/^/| /' conftest.$ac_ext >&5 3115 3116 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3117 CXXFLAGS="-g" 3118 cat >conftest.$ac_ext <<_ACEOF 3119/* confdefs.h. */ 3120_ACEOF 3121cat confdefs.h >>conftest.$ac_ext 3122cat >>conftest.$ac_ext <<_ACEOF 3123/* end confdefs.h. */ 3124 3125int 3126main () 3127{ 3128 3129 ; 3130 return 0; 3131} 3132_ACEOF 3133rm -f conftest.$ac_objext 3134if { (ac_try="$ac_compile" 3135case "(($ac_try" in 3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3137 *) ac_try_echo=$ac_try;; 3138esac 3139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3140 (eval "$ac_compile") 2>conftest.er1 3141 ac_status=$? 3142 grep -v '^ *+' conftest.er1 >conftest.err 3143 rm -f conftest.er1 3144 cat conftest.err >&5 3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3146 (exit $ac_status); } && 3147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3148 { (case "(($ac_try" in 3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3150 *) ac_try_echo=$ac_try;; 3151esac 3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3153 (eval "$ac_try") 2>&5 3154 ac_status=$? 3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3156 (exit $ac_status); }; } && 3157 { ac_try='test -s conftest.$ac_objext' 3158 { (case "(($ac_try" in 3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3160 *) ac_try_echo=$ac_try;; 3161esac 3162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3163 (eval "$ac_try") 2>&5 3164 ac_status=$? 3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3166 (exit $ac_status); }; }; then 3167 ac_cv_prog_cxx_g=yes 3168else 3169 echo "$as_me: failed program was:" >&5 3170sed 's/^/| /' conftest.$ac_ext >&5 3171 3172 3173fi 3174 3175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3176fi 3177 3178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3179fi 3180 3181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3183fi 3184{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3185echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3186if test "$ac_test_CXXFLAGS" = set; then 3187 CXXFLAGS=$ac_save_CXXFLAGS 3188elif test $ac_cv_prog_cxx_g = yes; then 3189 if test "$GXX" = yes; then 3190 CXXFLAGS="-g -O2" 3191 else 3192 CXXFLAGS="-g" 3193 fi 3194else 3195 if test "$GXX" = yes; then 3196 CXXFLAGS="-O2" 3197 else 3198 CXXFLAGS= 3199 fi 3200fi 3201ac_ext=c 3202ac_cpp='$CPP $CPPFLAGS' 3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3205ac_compiler_gnu=$ac_cv_c_compiler_gnu 3206 3207ac_ext=c 3208ac_cpp='$CPP $CPPFLAGS' 3209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3211ac_compiler_gnu=$ac_cv_c_compiler_gnu 3212{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3213echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3214# On Suns, sometimes $CPP names a directory. 3215if test -n "$CPP" && test -d "$CPP"; then 3216 CPP= 3217fi 3218if test -z "$CPP"; then 3219 if test "${ac_cv_prog_CPP+set}" = set; then 3220 echo $ECHO_N "(cached) $ECHO_C" >&6 3221else 3222 # Double quotes because CPP needs to be expanded 3223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3224 do 3225 ac_preproc_ok=false 3226for ac_c_preproc_warn_flag in '' yes 3227do 3228 # Use a header file that comes with gcc, so configuring glibc 3229 # with a fresh cross-compiler works. 3230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3231 # <limits.h> exists even on freestanding compilers. 3232 # On the NeXT, cc -E runs the code through the compiler's parser, 3233 # not just through cpp. "Syntax error" is here to catch this case. 3234 cat >conftest.$ac_ext <<_ACEOF 3235/* confdefs.h. */ 3236_ACEOF 3237cat confdefs.h >>conftest.$ac_ext 3238cat >>conftest.$ac_ext <<_ACEOF 3239/* end confdefs.h. */ 3240#ifdef __STDC__ 3241# include <limits.h> 3242#else 3243# include <assert.h> 3244#endif 3245 Syntax error 3246_ACEOF 3247if { (ac_try="$ac_cpp conftest.$ac_ext" 3248case "(($ac_try" in 3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3250 *) ac_try_echo=$ac_try;; 3251esac 3252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3254 ac_status=$? 3255 grep -v '^ *+' conftest.er1 >conftest.err 3256 rm -f conftest.er1 3257 cat conftest.err >&5 3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3259 (exit $ac_status); } >/dev/null; then 3260 if test -s conftest.err; then 3261 ac_cpp_err=$ac_c_preproc_warn_flag 3262 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3263 else 3264 ac_cpp_err= 3265 fi 3266else 3267 ac_cpp_err=yes 3268fi 3269if test -z "$ac_cpp_err"; then 3270 : 3271else 3272 echo "$as_me: failed program was:" >&5 3273sed 's/^/| /' conftest.$ac_ext >&5 3274 3275 # Broken: fails on valid input. 3276continue 3277fi 3278 3279rm -f conftest.err conftest.$ac_ext 3280 3281 # OK, works on sane cases. Now check whether nonexistent headers 3282 # can be detected and how. 3283 cat >conftest.$ac_ext <<_ACEOF 3284/* confdefs.h. */ 3285_ACEOF 3286cat confdefs.h >>conftest.$ac_ext 3287cat >>conftest.$ac_ext <<_ACEOF 3288/* end confdefs.h. */ 3289#include <ac_nonexistent.h> 3290_ACEOF 3291if { (ac_try="$ac_cpp conftest.$ac_ext" 3292case "(($ac_try" in 3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3294 *) ac_try_echo=$ac_try;; 3295esac 3296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3298 ac_status=$? 3299 grep -v '^ *+' conftest.er1 >conftest.err 3300 rm -f conftest.er1 3301 cat conftest.err >&5 3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3303 (exit $ac_status); } >/dev/null; then 3304 if test -s conftest.err; then 3305 ac_cpp_err=$ac_c_preproc_warn_flag 3306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3307 else 3308 ac_cpp_err= 3309 fi 3310else 3311 ac_cpp_err=yes 3312fi 3313if test -z "$ac_cpp_err"; then 3314 # Broken: success on invalid input. 3315continue 3316else 3317 echo "$as_me: failed program was:" >&5 3318sed 's/^/| /' conftest.$ac_ext >&5 3319 3320 # Passes both tests. 3321ac_preproc_ok=: 3322break 3323fi 3324 3325rm -f conftest.err conftest.$ac_ext 3326 3327done 3328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3329rm -f conftest.err conftest.$ac_ext 3330if $ac_preproc_ok; then 3331 break 3332fi 3333 3334 done 3335 ac_cv_prog_CPP=$CPP 3336 3337fi 3338 CPP=$ac_cv_prog_CPP 3339else 3340 ac_cv_prog_CPP=$CPP 3341fi 3342{ echo "$as_me:$LINENO: result: $CPP" >&5 3343echo "${ECHO_T}$CPP" >&6; } 3344ac_preproc_ok=false 3345for ac_c_preproc_warn_flag in '' yes 3346do 3347 # Use a header file that comes with gcc, so configuring glibc 3348 # with a fresh cross-compiler works. 3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3350 # <limits.h> exists even on freestanding compilers. 3351 # On the NeXT, cc -E runs the code through the compiler's parser, 3352 # not just through cpp. "Syntax error" is here to catch this case. 3353 cat >conftest.$ac_ext <<_ACEOF 3354/* confdefs.h. */ 3355_ACEOF 3356cat confdefs.h >>conftest.$ac_ext 3357cat >>conftest.$ac_ext <<_ACEOF 3358/* end confdefs.h. */ 3359#ifdef __STDC__ 3360# include <limits.h> 3361#else 3362# include <assert.h> 3363#endif 3364 Syntax error 3365_ACEOF 3366if { (ac_try="$ac_cpp conftest.$ac_ext" 3367case "(($ac_try" in 3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3369 *) ac_try_echo=$ac_try;; 3370esac 3371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3373 ac_status=$? 3374 grep -v '^ *+' conftest.er1 >conftest.err 3375 rm -f conftest.er1 3376 cat conftest.err >&5 3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3378 (exit $ac_status); } >/dev/null; then 3379 if test -s conftest.err; then 3380 ac_cpp_err=$ac_c_preproc_warn_flag 3381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3382 else 3383 ac_cpp_err= 3384 fi 3385else 3386 ac_cpp_err=yes 3387fi 3388if test -z "$ac_cpp_err"; then 3389 : 3390else 3391 echo "$as_me: failed program was:" >&5 3392sed 's/^/| /' conftest.$ac_ext >&5 3393 3394 # Broken: fails on valid input. 3395continue 3396fi 3397 3398rm -f conftest.err conftest.$ac_ext 3399 3400 # OK, works on sane cases. Now check whether nonexistent headers 3401 # can be detected and how. 3402 cat >conftest.$ac_ext <<_ACEOF 3403/* confdefs.h. */ 3404_ACEOF 3405cat confdefs.h >>conftest.$ac_ext 3406cat >>conftest.$ac_ext <<_ACEOF 3407/* end confdefs.h. */ 3408#include <ac_nonexistent.h> 3409_ACEOF 3410if { (ac_try="$ac_cpp conftest.$ac_ext" 3411case "(($ac_try" in 3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3413 *) ac_try_echo=$ac_try;; 3414esac 3415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3417 ac_status=$? 3418 grep -v '^ *+' conftest.er1 >conftest.err 3419 rm -f conftest.er1 3420 cat conftest.err >&5 3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3422 (exit $ac_status); } >/dev/null; then 3423 if test -s conftest.err; then 3424 ac_cpp_err=$ac_c_preproc_warn_flag 3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3426 else 3427 ac_cpp_err= 3428 fi 3429else 3430 ac_cpp_err=yes 3431fi 3432if test -z "$ac_cpp_err"; then 3433 # Broken: success on invalid input. 3434continue 3435else 3436 echo "$as_me: failed program was:" >&5 3437sed 's/^/| /' conftest.$ac_ext >&5 3438 3439 # Passes both tests. 3440ac_preproc_ok=: 3441break 3442fi 3443 3444rm -f conftest.err conftest.$ac_ext 3445 3446done 3447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3448rm -f conftest.err conftest.$ac_ext 3449if $ac_preproc_ok; then 3450 : 3451else 3452 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3453See \`config.log' for more details." >&5 3454echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3455See \`config.log' for more details." >&2;} 3456 { (exit 1); exit 1; }; } 3457fi 3458 3459ac_ext=c 3460ac_cpp='$CPP $CPPFLAGS' 3461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3463ac_compiler_gnu=$ac_cv_c_compiler_gnu 3464 3465 3466 3467 3468if test -d ${srcdir}/projects/llvm-gcc ; then 3469 subdirs="$subdirs projects/llvm-gcc" 3470 3471fi 3472 3473if test -d ${srcdir}/projects/test-suite ; then 3474 subdirs="$subdirs projects/test-suite" 3475 3476fi 3477 3478if test -d ${srcdir}/projects/llvm-test ; then 3479 subdirs="$subdirs projects/llvm-test" 3480 3481fi 3482 3483if test -d ${srcdir}/projects/poolalloc ; then 3484 subdirs="$subdirs projects/poolalloc" 3485 3486fi 3487 3488if test -d ${srcdir}/projects/llvm-poolalloc ; then 3489 subdirs="$subdirs projects/llvm-poolalloc" 3490 3491fi 3492 3493for i in `ls ${srcdir}/projects` 3494do 3495 if test -d ${srcdir}/projects/${i} ; then 3496 case ${i} in 3497 sample) subdirs="$subdirs projects/sample" 3498 ;; 3499 privbracket) subdirs="$subdirs projects/privbracket" 3500 ;; 3501 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 3502 ;; 3503 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 3504;; 3505 llvm-java) subdirs="$subdirs projects/llvm-java" 3506 ;; 3507 llvm-tv) subdirs="$subdirs projects/llvm-tv" 3508 ;; 3509 safecode) subdirs="$subdirs projects/safecode" 3510 ;; 3511 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 3512 ;; 3513 compiler-rt) ;; 3514 llvm-gcc) ;; 3515 test-suite) ;; 3516 llvm-test) ;; 3517 poolalloc) ;; 3518 llvm-poolalloc) ;; 3519 *) 3520 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3521echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3522 ;; 3523 esac 3524 fi 3525done 3526 3527# Check whether --enable-polly was given. 3528if test "${enable_polly+set}" = set; then 3529 enableval=$enable_polly; 3530else 3531 enableval=default 3532fi 3533 3534case "$enableval" in 3535 yes) ENABLE_POLLY=1 3536 ;; 3537 no) ENABLE_POLLY=0 3538 ;; 3539 default) ENABLE_POLLY=1 3540 ;; 3541 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3542echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3543 { (exit 1); exit 1; }; } ;; 3544esac 3545 3546 3547if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3548 LLVM_HAS_POLLY=1 3549 3550 subdirs="$subdirs tools/polly" 3551 3552fi 3553 3554 3555# Make sure we can run config.sub. 3556$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3557 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3558echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3559 { (exit 1); exit 1; }; } 3560 3561{ echo "$as_me:$LINENO: checking build system type" >&5 3562echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3563if test "${ac_cv_build+set}" = set; then 3564 echo $ECHO_N "(cached) $ECHO_C" >&6 3565else 3566 ac_build_alias=$build_alias 3567test "x$ac_build_alias" = x && 3568 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3569test "x$ac_build_alias" = x && 3570 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3571echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3572 { (exit 1); exit 1; }; } 3573ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3574 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3575echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3576 { (exit 1); exit 1; }; } 3577 3578fi 3579{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3580echo "${ECHO_T}$ac_cv_build" >&6; } 3581case $ac_cv_build in 3582*-*-*) ;; 3583*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3584echo "$as_me: error: invalid value of canonical build" >&2;} 3585 { (exit 1); exit 1; }; };; 3586esac 3587build=$ac_cv_build 3588ac_save_IFS=$IFS; IFS='-' 3589set x $ac_cv_build 3590shift 3591build_cpu=$1 3592build_vendor=$2 3593shift; shift 3594# Remember, the first character of IFS is used to create $*, 3595# except with old shells: 3596build_os=$* 3597IFS=$ac_save_IFS 3598case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3599 3600 3601{ echo "$as_me:$LINENO: checking host system type" >&5 3602echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3603if test "${ac_cv_host+set}" = set; then 3604 echo $ECHO_N "(cached) $ECHO_C" >&6 3605else 3606 if test "x$host_alias" = x; then 3607 ac_cv_host=$ac_cv_build 3608else 3609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3610 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3611echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3612 { (exit 1); exit 1; }; } 3613fi 3614 3615fi 3616{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3617echo "${ECHO_T}$ac_cv_host" >&6; } 3618case $ac_cv_host in 3619*-*-*) ;; 3620*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3621echo "$as_me: error: invalid value of canonical host" >&2;} 3622 { (exit 1); exit 1; }; };; 3623esac 3624host=$ac_cv_host 3625ac_save_IFS=$IFS; IFS='-' 3626set x $ac_cv_host 3627shift 3628host_cpu=$1 3629host_vendor=$2 3630shift; shift 3631# Remember, the first character of IFS is used to create $*, 3632# except with old shells: 3633host_os=$* 3634IFS=$ac_save_IFS 3635case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3636 3637 3638{ echo "$as_me:$LINENO: checking target system type" >&5 3639echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3640if test "${ac_cv_target+set}" = set; then 3641 echo $ECHO_N "(cached) $ECHO_C" >&6 3642else 3643 if test "x$target_alias" = x; then 3644 ac_cv_target=$ac_cv_host 3645else 3646 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3647 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3648echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3649 { (exit 1); exit 1; }; } 3650fi 3651 3652fi 3653{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3654echo "${ECHO_T}$ac_cv_target" >&6; } 3655case $ac_cv_target in 3656*-*-*) ;; 3657*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3658echo "$as_me: error: invalid value of canonical target" >&2;} 3659 { (exit 1); exit 1; }; };; 3660esac 3661target=$ac_cv_target 3662ac_save_IFS=$IFS; IFS='-' 3663set x $ac_cv_target 3664shift 3665target_cpu=$1 3666target_vendor=$2 3667shift; shift 3668# Remember, the first character of IFS is used to create $*, 3669# except with old shells: 3670target_os=$* 3671IFS=$ac_save_IFS 3672case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3673 3674 3675# The aliases save the names the user supplied, while $host etc. 3676# will get canonicalized. 3677test -n "$target_alias" && 3678 test "$program_prefix$program_suffix$program_transform_name" = \ 3679 NONENONEs,x,x, && 3680 program_prefix=${target_alias}- 3681 3682{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3683echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3684if test "${llvm_cv_os_type+set}" = set; then 3685 echo $ECHO_N "(cached) $ECHO_C" >&6 3686else 3687 case $host in 3688 *-*-aix*) 3689 llvm_cv_link_all_option="-Wl,--whole-archive" 3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3691 llvm_cv_os_type="AIX" 3692 llvm_cv_platform_type="Unix" ;; 3693 *-*-irix*) 3694 llvm_cv_link_all_option="-Wl,--whole-archive" 3695 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3696 llvm_cv_os_type="IRIX" 3697 llvm_cv_platform_type="Unix" ;; 3698 *-*-cygwin*) 3699 llvm_cv_link_all_option="-Wl,--whole-archive" 3700 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3701 llvm_cv_os_type="Cygwin" 3702 llvm_cv_platform_type="Unix" ;; 3703 *-*-darwin*) 3704 llvm_cv_link_all_option="-Wl,-all_load" 3705 llvm_cv_no_link_all_option="-Wl,-noall_load" 3706 llvm_cv_os_type="Darwin" 3707 llvm_cv_platform_type="Unix" ;; 3708 *-*-minix*) 3709 llvm_cv_link_all_option="-Wl,-all_load" 3710 llvm_cv_no_link_all_option="-Wl,-noall_load" 3711 llvm_cv_os_type="Minix" 3712 llvm_cv_platform_type="Unix" ;; 3713 *-*-freebsd* | *-*-kfreebsd-gnu) 3714 llvm_cv_link_all_option="-Wl,--whole-archive" 3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3716 llvm_cv_os_type="FreeBSD" 3717 llvm_cv_platform_type="Unix" ;; 3718 *-*-openbsd*) 3719 llvm_cv_link_all_option="-Wl,--whole-archive" 3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3721 llvm_cv_os_type="OpenBSD" 3722 llvm_cv_platform_type="Unix" ;; 3723 *-*-netbsd*) 3724 llvm_cv_link_all_option="-Wl,--whole-archive" 3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3726 llvm_cv_os_type="NetBSD" 3727 llvm_cv_platform_type="Unix" ;; 3728 *-*-dragonfly*) 3729 llvm_cv_link_all_option="-Wl,--whole-archive" 3730 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3731 llvm_cv_os_type="DragonFly" 3732 llvm_cv_platform_type="Unix" ;; 3733 *-*-hpux*) 3734 llvm_cv_link_all_option="-Wl,--whole-archive" 3735 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3736 llvm_cv_os_type="HP-UX" 3737 llvm_cv_platform_type="Unix" ;; 3738 *-*-interix*) 3739 llvm_cv_link_all_option="-Wl,--whole-archive" 3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3741 llvm_cv_os_type="Interix" 3742 llvm_cv_platform_type="Unix" ;; 3743 *-*-linux*) 3744 llvm_cv_link_all_option="-Wl,--whole-archive" 3745 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3746 llvm_cv_os_type="Linux" 3747 llvm_cv_platform_type="Unix" ;; 3748 *-*-gnu*) 3749 llvm_cv_link_all_option="-Wl,--whole-archive" 3750 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3751 llvm_cv_os_type="GNU" 3752 llvm_cv_platform_type="Unix" ;; 3753 *-*-solaris*) 3754 llvm_cv_link_all_option="-Wl,-z,allextract" 3755 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3756 llvm_cv_os_type="SunOS" 3757 llvm_cv_platform_type="Unix" ;; 3758 *-*-auroraux*) 3759 llvm_cv_link_all_option="-Wl,-z,allextract" 3760 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3761 llvm_cv_os_type="AuroraUX" 3762 llvm_cv_platform_type="Unix" ;; 3763 *-*-win32*) 3764 llvm_cv_link_all_option="-Wl,--whole-archive" 3765 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3766 llvm_cv_os_type="Win32" 3767 llvm_cv_platform_type="Win32" ;; 3768 *-*-mingw*) 3769 llvm_cv_link_all_option="-Wl,--whole-archive" 3770 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3771 llvm_cv_os_type="MingW" 3772 llvm_cv_platform_type="Win32" ;; 3773 *-*-haiku*) 3774 llvm_cv_link_all_option="-Wl,--whole-archive" 3775 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3776 llvm_cv_os_type="Haiku" 3777 llvm_cv_platform_type="Unix" ;; 3778 *-unknown-eabi*) 3779 llvm_cv_link_all_option="-Wl,--whole-archive" 3780 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3781 llvm_cv_os_type="Freestanding" 3782 llvm_cv_platform_type="Unix" ;; 3783 *-unknown-elf*) 3784 llvm_cv_link_all_option="-Wl,--whole-archive" 3785 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3786 llvm_cv_os_type="Freestanding" 3787 llvm_cv_platform_type="Unix" ;; 3788 *) 3789 llvm_cv_link_all_option="" 3790 llvm_cv_no_link_all_option="" 3791 llvm_cv_os_type="Unknown" 3792 llvm_cv_platform_type="Unknown" ;; 3793esac 3794fi 3795{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3796echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3797 3798{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3799echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3800if test "${llvm_cv_target_os_type+set}" = set; then 3801 echo $ECHO_N "(cached) $ECHO_C" >&6 3802else 3803 case $target in 3804 *-*-aix*) 3805 llvm_cv_target_os_type="AIX" ;; 3806 *-*-irix*) 3807 llvm_cv_target_os_type="IRIX" ;; 3808 *-*-cygwin*) 3809 llvm_cv_target_os_type="Cygwin" ;; 3810 *-*-darwin*) 3811 llvm_cv_target_os_type="Darwin" ;; 3812 *-*-minix*) 3813 llvm_cv_target_os_type="Minix" ;; 3814 *-*-freebsd* | *-*-kfreebsd-gnu) 3815 llvm_cv_target_os_type="FreeBSD" ;; 3816 *-*-openbsd*) 3817 llvm_cv_target_os_type="OpenBSD" ;; 3818 *-*-netbsd*) 3819 llvm_cv_target_os_type="NetBSD" ;; 3820 *-*-dragonfly*) 3821 llvm_cv_target_os_type="DragonFly" ;; 3822 *-*-hpux*) 3823 llvm_cv_target_os_type="HP-UX" ;; 3824 *-*-interix*) 3825 llvm_cv_target_os_type="Interix" ;; 3826 *-*-linux*) 3827 llvm_cv_target_os_type="Linux" ;; 3828 *-*-gnu*) 3829 llvm_cv_target_os_type="GNU" ;; 3830 *-*-solaris*) 3831 llvm_cv_target_os_type="SunOS" ;; 3832 *-*-auroraux*) 3833 llvm_cv_target_os_type="AuroraUX" ;; 3834 *-*-win32*) 3835 llvm_cv_target_os_type="Win32" ;; 3836 *-*-mingw*) 3837 llvm_cv_target_os_type="MingW" ;; 3838 *-*-haiku*) 3839 llvm_cv_target_os_type="Haiku" ;; 3840 *-*-rtems*) 3841 llvm_cv_target_os_type="RTEMS" ;; 3842 *-*-nacl*) 3843 llvm_cv_target_os_type="NativeClient" ;; 3844 *-unknown-eabi*) 3845 llvm_cv_target_os_type="Freestanding" ;; 3846 *) 3847 llvm_cv_target_os_type="Unknown" ;; 3848esac 3849fi 3850{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3851echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3852 3853if test "$llvm_cv_os_type" = "Unknown" ; then 3854 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3855echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3856 { (exit 1); exit 1; }; } 3857fi 3858 3859OS=$llvm_cv_os_type 3860 3861HOST_OS=$llvm_cv_os_type 3862 3863TARGET_OS=$llvm_cv_target_os_type 3864 3865 3866LINKALL=$llvm_cv_link_all_option 3867 3868NOLINKALL=$llvm_cv_no_link_all_option 3869 3870 3871case $llvm_cv_platform_type in 3872 Unix) 3873 3874cat >>confdefs.h <<\_ACEOF 3875#define LLVM_ON_UNIX 1 3876_ACEOF 3877 3878 LLVM_ON_UNIX=1 3879 3880 LLVM_ON_WIN32=0 3881 3882 ;; 3883 Win32) 3884 3885cat >>confdefs.h <<\_ACEOF 3886#define LLVM_ON_WIN32 1 3887_ACEOF 3888 3889 LLVM_ON_UNIX=0 3890 3891 LLVM_ON_WIN32=1 3892 3893 ;; 3894esac 3895 3896{ echo "$as_me:$LINENO: checking target architecture" >&5 3897echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 3898if test "${llvm_cv_target_arch+set}" = set; then 3899 echo $ECHO_N "(cached) $ECHO_C" >&6 3900else 3901 case $target in 3902 i?86-*) llvm_cv_target_arch="x86" ;; 3903 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 3904 sparc*-*) llvm_cv_target_arch="Sparc" ;; 3905 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 3906 arm*-*) llvm_cv_target_arch="ARM" ;; 3907 mips-*) llvm_cv_target_arch="Mips" ;; 3908 mipsel-*) llvm_cv_target_arch="Mips" ;; 3909 xcore-*) llvm_cv_target_arch="XCore" ;; 3910 msp430-*) llvm_cv_target_arch="MSP430" ;; 3911 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 3912 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 3913 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 3914 *) llvm_cv_target_arch="Unknown" ;; 3915esac 3916fi 3917{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 3918echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 3919 3920if test "$llvm_cv_target_arch" = "Unknown" ; then 3921 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 3922echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 3923fi 3924 3925case "$llvm_cv_target_arch" in 3926 x86) LLVM_NATIVE_ARCH="X86" ;; 3927 x86_64) LLVM_NATIVE_ARCH="X86" ;; 3928 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 3929esac 3930 3931ARCH=$llvm_cv_target_arch 3932 3933 3934case $host in 3935 i?86-*) host_arch="x86" ;; 3936 amd64-* | x86_64-*) host_arch="x86_64" ;; 3937 sparc*-*) host_arch="Sparc" ;; 3938 powerpc*-*) host_arch="PowerPC" ;; 3939 arm*-*) host_arch="ARM" ;; 3940 mips-*) host_arch="Mips" ;; 3941 mipsel-*) host_arch="Mips" ;; 3942 xcore-*) host_arch="XCore" ;; 3943 msp430-*) host_arch="MSP430" ;; 3944 hexagon-*) host_arch="Hexagon" ;; 3945 mblaze-*) host_arch="MBlaze" ;; 3946 *) host_arch="Unknown" ;; 3947esac 3948 3949if test "$host_arch" = "Unknown" ; then 3950 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5 3951echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;} 3952fi 3953 3954HOST_ARCH=$host_arch 3955 3956 3957 3958 3959{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3960echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3961if test "${ac_cv_path_GREP+set}" = set; then 3962 echo $ECHO_N "(cached) $ECHO_C" >&6 3963else 3964 # Extract the first word of "grep ggrep" to use in msg output 3965if test -z "$GREP"; then 3966set dummy grep ggrep; ac_prog_name=$2 3967if test "${ac_cv_path_GREP+set}" = set; then 3968 echo $ECHO_N "(cached) $ECHO_C" >&6 3969else 3970 ac_path_GREP_found=false 3971# Loop through the user's path and test for each of PROGNAME-LIST 3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3973for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3974do 3975 IFS=$as_save_IFS 3976 test -z "$as_dir" && as_dir=. 3977 for ac_prog in grep ggrep; do 3978 for ac_exec_ext in '' $ac_executable_extensions; do 3979 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3980 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3981 # Check for GNU ac_path_GREP and select it if it is found. 3982 # Check for GNU $ac_path_GREP 3983case `"$ac_path_GREP" --version 2>&1` in 3984*GNU*) 3985 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3986*) 3987 ac_count=0 3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3989 while : 3990 do 3991 cat "conftest.in" "conftest.in" >"conftest.tmp" 3992 mv "conftest.tmp" "conftest.in" 3993 cp "conftest.in" "conftest.nl" 3994 echo 'GREP' >> "conftest.nl" 3995 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3997 ac_count=`expr $ac_count + 1` 3998 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3999 # Best one so far, save it but keep looking for a better one 4000 ac_cv_path_GREP="$ac_path_GREP" 4001 ac_path_GREP_max=$ac_count 4002 fi 4003 # 10*(2^10) chars as input seems more than enough 4004 test $ac_count -gt 10 && break 4005 done 4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4007esac 4008 4009 4010 $ac_path_GREP_found && break 3 4011 done 4012done 4013 4014done 4015IFS=$as_save_IFS 4016 4017 4018fi 4019 4020GREP="$ac_cv_path_GREP" 4021if test -z "$GREP"; then 4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4023echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4024 { (exit 1); exit 1; }; } 4025fi 4026 4027else 4028 ac_cv_path_GREP=$GREP 4029fi 4030 4031 4032fi 4033{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4034echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4035 GREP="$ac_cv_path_GREP" 4036 4037 4038{ echo "$as_me:$LINENO: checking for egrep" >&5 4039echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4040if test "${ac_cv_path_EGREP+set}" = set; then 4041 echo $ECHO_N "(cached) $ECHO_C" >&6 4042else 4043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4044 then ac_cv_path_EGREP="$GREP -E" 4045 else 4046 # Extract the first word of "egrep" to use in msg output 4047if test -z "$EGREP"; then 4048set dummy egrep; ac_prog_name=$2 4049if test "${ac_cv_path_EGREP+set}" = set; then 4050 echo $ECHO_N "(cached) $ECHO_C" >&6 4051else 4052 ac_path_EGREP_found=false 4053# Loop through the user's path and test for each of PROGNAME-LIST 4054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4055for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4056do 4057 IFS=$as_save_IFS 4058 test -z "$as_dir" && as_dir=. 4059 for ac_prog in egrep; do 4060 for ac_exec_ext in '' $ac_executable_extensions; do 4061 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4062 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4063 # Check for GNU ac_path_EGREP and select it if it is found. 4064 # Check for GNU $ac_path_EGREP 4065case `"$ac_path_EGREP" --version 2>&1` in 4066*GNU*) 4067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4068*) 4069 ac_count=0 4070 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4071 while : 4072 do 4073 cat "conftest.in" "conftest.in" >"conftest.tmp" 4074 mv "conftest.tmp" "conftest.in" 4075 cp "conftest.in" "conftest.nl" 4076 echo 'EGREP' >> "conftest.nl" 4077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4079 ac_count=`expr $ac_count + 1` 4080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4081 # Best one so far, save it but keep looking for a better one 4082 ac_cv_path_EGREP="$ac_path_EGREP" 4083 ac_path_EGREP_max=$ac_count 4084 fi 4085 # 10*(2^10) chars as input seems more than enough 4086 test $ac_count -gt 10 && break 4087 done 4088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4089esac 4090 4091 4092 $ac_path_EGREP_found && break 3 4093 done 4094done 4095 4096done 4097IFS=$as_save_IFS 4098 4099 4100fi 4101 4102EGREP="$ac_cv_path_EGREP" 4103if test -z "$EGREP"; then 4104 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4105echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4106 { (exit 1); exit 1; }; } 4107fi 4108 4109else 4110 ac_cv_path_EGREP=$EGREP 4111fi 4112 4113 4114 fi 4115fi 4116{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4117echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4118 EGREP="$ac_cv_path_EGREP" 4119 4120 4121{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4122echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4123if test "${ac_cv_header_stdc+set}" = set; then 4124 echo $ECHO_N "(cached) $ECHO_C" >&6 4125else 4126 cat >conftest.$ac_ext <<_ACEOF 4127/* confdefs.h. */ 4128_ACEOF 4129cat confdefs.h >>conftest.$ac_ext 4130cat >>conftest.$ac_ext <<_ACEOF 4131/* end confdefs.h. */ 4132#include <stdlib.h> 4133#include <stdarg.h> 4134#include <string.h> 4135#include <float.h> 4136 4137int 4138main () 4139{ 4140 4141 ; 4142 return 0; 4143} 4144_ACEOF 4145rm -f conftest.$ac_objext 4146if { (ac_try="$ac_compile" 4147case "(($ac_try" in 4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4149 *) ac_try_echo=$ac_try;; 4150esac 4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4152 (eval "$ac_compile") 2>conftest.er1 4153 ac_status=$? 4154 grep -v '^ *+' conftest.er1 >conftest.err 4155 rm -f conftest.er1 4156 cat conftest.err >&5 4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4158 (exit $ac_status); } && 4159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4160 { (case "(($ac_try" in 4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4162 *) ac_try_echo=$ac_try;; 4163esac 4164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4165 (eval "$ac_try") 2>&5 4166 ac_status=$? 4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4168 (exit $ac_status); }; } && 4169 { ac_try='test -s conftest.$ac_objext' 4170 { (case "(($ac_try" in 4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4172 *) ac_try_echo=$ac_try;; 4173esac 4174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4175 (eval "$ac_try") 2>&5 4176 ac_status=$? 4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4178 (exit $ac_status); }; }; then 4179 ac_cv_header_stdc=yes 4180else 4181 echo "$as_me: failed program was:" >&5 4182sed 's/^/| /' conftest.$ac_ext >&5 4183 4184 ac_cv_header_stdc=no 4185fi 4186 4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4188 4189if test $ac_cv_header_stdc = yes; then 4190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4191 cat >conftest.$ac_ext <<_ACEOF 4192/* confdefs.h. */ 4193_ACEOF 4194cat confdefs.h >>conftest.$ac_ext 4195cat >>conftest.$ac_ext <<_ACEOF 4196/* end confdefs.h. */ 4197#include <string.h> 4198 4199_ACEOF 4200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4201 $EGREP "memchr" >/dev/null 2>&1; then 4202 : 4203else 4204 ac_cv_header_stdc=no 4205fi 4206rm -f conftest* 4207 4208fi 4209 4210if test $ac_cv_header_stdc = yes; then 4211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4212 cat >conftest.$ac_ext <<_ACEOF 4213/* confdefs.h. */ 4214_ACEOF 4215cat confdefs.h >>conftest.$ac_ext 4216cat >>conftest.$ac_ext <<_ACEOF 4217/* end confdefs.h. */ 4218#include <stdlib.h> 4219 4220_ACEOF 4221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4222 $EGREP "free" >/dev/null 2>&1; then 4223 : 4224else 4225 ac_cv_header_stdc=no 4226fi 4227rm -f conftest* 4228 4229fi 4230 4231if test $ac_cv_header_stdc = yes; then 4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4233 if test "$cross_compiling" = yes; then 4234 : 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 <ctype.h> 4243#include <stdlib.h> 4244#if ((' ' & 0x0FF) == 0x020) 4245# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4246# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4247#else 4248# define ISLOWER(c) \ 4249 (('a' <= (c) && (c) <= 'i') \ 4250 || ('j' <= (c) && (c) <= 'r') \ 4251 || ('s' <= (c) && (c) <= 'z')) 4252# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4253#endif 4254 4255#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4256int 4257main () 4258{ 4259 int i; 4260 for (i = 0; i < 256; i++) 4261 if (XOR (islower (i), ISLOWER (i)) 4262 || toupper (i) != TOUPPER (i)) 4263 return 2; 4264 return 0; 4265} 4266_ACEOF 4267rm -f conftest$ac_exeext 4268if { (ac_try="$ac_link" 4269case "(($ac_try" in 4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4271 *) ac_try_echo=$ac_try;; 4272esac 4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4274 (eval "$ac_link") 2>&5 4275 ac_status=$? 4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4278 { (case "(($ac_try" in 4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4280 *) ac_try_echo=$ac_try;; 4281esac 4282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4283 (eval "$ac_try") 2>&5 4284 ac_status=$? 4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286 (exit $ac_status); }; }; then 4287 : 4288else 4289 echo "$as_me: program exited with status $ac_status" >&5 4290echo "$as_me: failed program was:" >&5 4291sed 's/^/| /' conftest.$ac_ext >&5 4292 4293( exit $ac_status ) 4294ac_cv_header_stdc=no 4295fi 4296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4297fi 4298 4299 4300fi 4301fi 4302{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4303echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4304if test $ac_cv_header_stdc = yes; then 4305 4306cat >>confdefs.h <<\_ACEOF 4307#define STDC_HEADERS 1 4308_ACEOF 4309 4310fi 4311 4312# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4323 inttypes.h stdint.h unistd.h 4324do 4325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4326{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4329 echo $ECHO_N "(cached) $ECHO_C" >&6 4330else 4331 cat >conftest.$ac_ext <<_ACEOF 4332/* confdefs.h. */ 4333_ACEOF 4334cat confdefs.h >>conftest.$ac_ext 4335cat >>conftest.$ac_ext <<_ACEOF 4336/* end confdefs.h. */ 4337$ac_includes_default 4338 4339#include <$ac_header> 4340_ACEOF 4341rm -f conftest.$ac_objext 4342if { (ac_try="$ac_compile" 4343case "(($ac_try" in 4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4345 *) ac_try_echo=$ac_try;; 4346esac 4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4348 (eval "$ac_compile") 2>conftest.er1 4349 ac_status=$? 4350 grep -v '^ *+' conftest.er1 >conftest.err 4351 rm -f conftest.er1 4352 cat conftest.err >&5 4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4354 (exit $ac_status); } && 4355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4356 { (case "(($ac_try" in 4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4358 *) ac_try_echo=$ac_try;; 4359esac 4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4361 (eval "$ac_try") 2>&5 4362 ac_status=$? 4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4364 (exit $ac_status); }; } && 4365 { ac_try='test -s conftest.$ac_objext' 4366 { (case "(($ac_try" in 4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4368 *) ac_try_echo=$ac_try;; 4369esac 4370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4371 (eval "$ac_try") 2>&5 4372 ac_status=$? 4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4374 (exit $ac_status); }; }; then 4375 eval "$as_ac_Header=yes" 4376else 4377 echo "$as_me: failed program was:" >&5 4378sed 's/^/| /' conftest.$ac_ext >&5 4379 4380 eval "$as_ac_Header=no" 4381fi 4382 4383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4384fi 4385ac_res=`eval echo '${'$as_ac_Header'}'` 4386 { echo "$as_me:$LINENO: result: $ac_res" >&5 4387echo "${ECHO_T}$ac_res" >&6; } 4388if test `eval echo '${'$as_ac_Header'}'` = yes; then 4389 cat >>confdefs.h <<_ACEOF 4390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4391_ACEOF 4392 4393fi 4394 4395done 4396 4397 4398{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4399echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4400if test "${ac_cv_c_bigendian+set}" = set; then 4401 echo $ECHO_N "(cached) $ECHO_C" >&6 4402else 4403 # See if sys/param.h defines the BYTE_ORDER macro. 4404cat >conftest.$ac_ext <<_ACEOF 4405/* confdefs.h. */ 4406_ACEOF 4407cat confdefs.h >>conftest.$ac_ext 4408cat >>conftest.$ac_ext <<_ACEOF 4409/* end confdefs.h. */ 4410#include <sys/types.h> 4411#include <sys/param.h> 4412 4413int 4414main () 4415{ 4416#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4417 bogus endian macros 4418#endif 4419 4420 ; 4421 return 0; 4422} 4423_ACEOF 4424rm -f conftest.$ac_objext 4425if { (ac_try="$ac_compile" 4426case "(($ac_try" in 4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4428 *) ac_try_echo=$ac_try;; 4429esac 4430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4431 (eval "$ac_compile") 2>conftest.er1 4432 ac_status=$? 4433 grep -v '^ *+' conftest.er1 >conftest.err 4434 rm -f conftest.er1 4435 cat conftest.err >&5 4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4437 (exit $ac_status); } && 4438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4439 { (case "(($ac_try" in 4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4441 *) ac_try_echo=$ac_try;; 4442esac 4443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4444 (eval "$ac_try") 2>&5 4445 ac_status=$? 4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4447 (exit $ac_status); }; } && 4448 { ac_try='test -s conftest.$ac_objext' 4449 { (case "(($ac_try" in 4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4451 *) ac_try_echo=$ac_try;; 4452esac 4453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4454 (eval "$ac_try") 2>&5 4455 ac_status=$? 4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4457 (exit $ac_status); }; }; then 4458 # It does; now see whether it defined to BIG_ENDIAN or not. 4459cat >conftest.$ac_ext <<_ACEOF 4460/* confdefs.h. */ 4461_ACEOF 4462cat confdefs.h >>conftest.$ac_ext 4463cat >>conftest.$ac_ext <<_ACEOF 4464/* end confdefs.h. */ 4465#include <sys/types.h> 4466#include <sys/param.h> 4467 4468int 4469main () 4470{ 4471#if BYTE_ORDER != BIG_ENDIAN 4472 not big endian 4473#endif 4474 4475 ; 4476 return 0; 4477} 4478_ACEOF 4479rm -f conftest.$ac_objext 4480if { (ac_try="$ac_compile" 4481case "(($ac_try" in 4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4483 *) ac_try_echo=$ac_try;; 4484esac 4485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4486 (eval "$ac_compile") 2>conftest.er1 4487 ac_status=$? 4488 grep -v '^ *+' conftest.er1 >conftest.err 4489 rm -f conftest.er1 4490 cat conftest.err >&5 4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4492 (exit $ac_status); } && 4493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4494 { (case "(($ac_try" in 4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4496 *) ac_try_echo=$ac_try;; 4497esac 4498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4499 (eval "$ac_try") 2>&5 4500 ac_status=$? 4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4502 (exit $ac_status); }; } && 4503 { ac_try='test -s conftest.$ac_objext' 4504 { (case "(($ac_try" in 4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4506 *) ac_try_echo=$ac_try;; 4507esac 4508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4509 (eval "$ac_try") 2>&5 4510 ac_status=$? 4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4512 (exit $ac_status); }; }; then 4513 ac_cv_c_bigendian=yes 4514else 4515 echo "$as_me: failed program was:" >&5 4516sed 's/^/| /' conftest.$ac_ext >&5 4517 4518 ac_cv_c_bigendian=no 4519fi 4520 4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4522else 4523 echo "$as_me: failed program was:" >&5 4524sed 's/^/| /' conftest.$ac_ext >&5 4525 4526 # It does not; compile a test program. 4527if test "$cross_compiling" = yes; then 4528 # try to guess the endianness by grepping values into an object file 4529 ac_cv_c_bigendian=unknown 4530 cat >conftest.$ac_ext <<_ACEOF 4531/* confdefs.h. */ 4532_ACEOF 4533cat confdefs.h >>conftest.$ac_ext 4534cat >>conftest.$ac_ext <<_ACEOF 4535/* end confdefs.h. */ 4536short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4537short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4538void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4539short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4540short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4541void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4542int 4543main () 4544{ 4545 _ascii (); _ebcdic (); 4546 ; 4547 return 0; 4548} 4549_ACEOF 4550rm -f conftest.$ac_objext 4551if { (ac_try="$ac_compile" 4552case "(($ac_try" in 4553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4554 *) ac_try_echo=$ac_try;; 4555esac 4556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4557 (eval "$ac_compile") 2>conftest.er1 4558 ac_status=$? 4559 grep -v '^ *+' conftest.er1 >conftest.err 4560 rm -f conftest.er1 4561 cat conftest.err >&5 4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); } && 4564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4565 { (case "(($ac_try" in 4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4567 *) ac_try_echo=$ac_try;; 4568esac 4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4570 (eval "$ac_try") 2>&5 4571 ac_status=$? 4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4573 (exit $ac_status); }; } && 4574 { ac_try='test -s conftest.$ac_objext' 4575 { (case "(($ac_try" in 4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4577 *) ac_try_echo=$ac_try;; 4578esac 4579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4580 (eval "$ac_try") 2>&5 4581 ac_status=$? 4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4583 (exit $ac_status); }; }; then 4584 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4585 ac_cv_c_bigendian=yes 4586fi 4587if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4588 if test "$ac_cv_c_bigendian" = unknown; then 4589 ac_cv_c_bigendian=no 4590 else 4591 # finding both strings is unlikely to happen, but who knows? 4592 ac_cv_c_bigendian=unknown 4593 fi 4594fi 4595else 4596 echo "$as_me: failed program was:" >&5 4597sed 's/^/| /' conftest.$ac_ext >&5 4598 4599 4600fi 4601 4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4603else 4604 cat >conftest.$ac_ext <<_ACEOF 4605/* confdefs.h. */ 4606_ACEOF 4607cat confdefs.h >>conftest.$ac_ext 4608cat >>conftest.$ac_ext <<_ACEOF 4609/* end confdefs.h. */ 4610$ac_includes_default 4611int 4612main () 4613{ 4614 4615 /* Are we little or big endian? From Harbison&Steele. */ 4616 union 4617 { 4618 long int l; 4619 char c[sizeof (long int)]; 4620 } u; 4621 u.l = 1; 4622 return u.c[sizeof (long int) - 1] == 1; 4623 4624 ; 4625 return 0; 4626} 4627_ACEOF 4628rm -f conftest$ac_exeext 4629if { (ac_try="$ac_link" 4630case "(($ac_try" in 4631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4632 *) ac_try_echo=$ac_try;; 4633esac 4634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4635 (eval "$ac_link") 2>&5 4636 ac_status=$? 4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4639 { (case "(($ac_try" in 4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4641 *) ac_try_echo=$ac_try;; 4642esac 4643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4644 (eval "$ac_try") 2>&5 4645 ac_status=$? 4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4647 (exit $ac_status); }; }; then 4648 ac_cv_c_bigendian=no 4649else 4650 echo "$as_me: program exited with status $ac_status" >&5 4651echo "$as_me: failed program was:" >&5 4652sed 's/^/| /' conftest.$ac_ext >&5 4653 4654( exit $ac_status ) 4655ac_cv_c_bigendian=yes 4656fi 4657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4658fi 4659 4660 4661fi 4662 4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4664fi 4665{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4666echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4667case $ac_cv_c_bigendian in 4668 yes) 4669 ENDIAN=big 4670 ;; 4671 no) 4672 ENDIAN=little 4673 ;; 4674 *) 4675 { { echo "$as_me:$LINENO: error: unknown endianness 4676presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4677echo "$as_me: error: unknown endianness 4678presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4679 { (exit 1); exit 1; }; } ;; 4680esac 4681 4682 4683if test "$cross_compiling" = yes; then 4684 LLVM_CROSS_COMPILING=1 4685 4686 4687{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4688echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4689if test "${ac_cv_build_exeext+set}" = set; then 4690 echo $ECHO_N "(cached) $ECHO_C" >&6 4691else 4692 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4693 ac_cv_build_exeext=.exe 4694else 4695 ac_build_prefix=${build_alias}- 4696 4697 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4698set dummy ${ac_build_prefix}gcc; ac_word=$2 4699{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4701if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4702 echo $ECHO_N "(cached) $ECHO_C" >&6 4703else 4704 if test -n "$BUILD_CC"; then 4705 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4706else 4707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4708for as_dir in $PATH 4709do 4710 IFS=$as_save_IFS 4711 test -z "$as_dir" && as_dir=. 4712 for ac_exec_ext in '' $ac_executable_extensions; do 4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4714 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4716 break 2 4717 fi 4718done 4719done 4720IFS=$as_save_IFS 4721 4722fi 4723fi 4724BUILD_CC=$ac_cv_prog_BUILD_CC 4725if test -n "$BUILD_CC"; then 4726 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4727echo "${ECHO_T}$BUILD_CC" >&6; } 4728else 4729 { echo "$as_me:$LINENO: result: no" >&5 4730echo "${ECHO_T}no" >&6; } 4731fi 4732 4733 4734 if test -z "$BUILD_CC"; then 4735 # Extract the first word of "gcc", so it can be a program name with args. 4736set dummy gcc; ac_word=$2 4737{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4739if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4740 echo $ECHO_N "(cached) $ECHO_C" >&6 4741else 4742 if test -n "$BUILD_CC"; then 4743 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4744else 4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4746for as_dir in $PATH 4747do 4748 IFS=$as_save_IFS 4749 test -z "$as_dir" && as_dir=. 4750 for ac_exec_ext in '' $ac_executable_extensions; do 4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4752 ac_cv_prog_BUILD_CC="gcc" 4753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4754 break 2 4755 fi 4756done 4757done 4758IFS=$as_save_IFS 4759 4760fi 4761fi 4762BUILD_CC=$ac_cv_prog_BUILD_CC 4763if test -n "$BUILD_CC"; then 4764 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4765echo "${ECHO_T}$BUILD_CC" >&6; } 4766else 4767 { echo "$as_me:$LINENO: result: no" >&5 4768echo "${ECHO_T}no" >&6; } 4769fi 4770 4771 4772 if test -z "$BUILD_CC"; then 4773 # Extract the first word of "cc", so it can be a program name with args. 4774set dummy cc; ac_word=$2 4775{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4777if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4778 echo $ECHO_N "(cached) $ECHO_C" >&6 4779else 4780 if test -n "$BUILD_CC"; then 4781 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4782else 4783 ac_prog_rejected=no 4784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4785for as_dir in $PATH 4786do 4787 IFS=$as_save_IFS 4788 test -z "$as_dir" && as_dir=. 4789 for ac_exec_ext in '' $ac_executable_extensions; do 4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4791 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4792 ac_prog_rejected=yes 4793 continue 4794 fi 4795 ac_cv_prog_BUILD_CC="cc" 4796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4797 break 2 4798 fi 4799done 4800done 4801IFS=$as_save_IFS 4802 4803if test $ac_prog_rejected = yes; then 4804 # We found a bogon in the path, so make sure we never use it. 4805 set dummy $ac_cv_prog_BUILD_CC 4806 shift 4807 if test $# != 0; then 4808 # We chose a different compiler from the bogus one. 4809 # However, it has the same basename, so the bogon will be chosen 4810 # first if we set BUILD_CC to just the basename; use the full file name. 4811 shift 4812 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4813 fi 4814fi 4815fi 4816fi 4817BUILD_CC=$ac_cv_prog_BUILD_CC 4818if test -n "$BUILD_CC"; then 4819 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4820echo "${ECHO_T}$BUILD_CC" >&6; } 4821else 4822 { echo "$as_me:$LINENO: result: no" >&5 4823echo "${ECHO_T}no" >&6; } 4824fi 4825 4826 4827 fi 4828 fi 4829 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4830echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4831 { (exit 1); exit 1; }; } 4832 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4833 rm -f conftest* 4834 echo 'int main () { return 0; }' > conftest.$ac_ext 4835 ac_cv_build_exeext= 4836 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4837 (eval $ac_build_link) 2>&5 4838 ac_status=$? 4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4840 (exit $ac_status); }; then 4841 for file in conftest.*; do 4842 case $file in 4843 *.c | *.o | *.obj | *.dSYM) ;; 4844 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4845 esac 4846 done 4847 else 4848 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4849echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4850 { (exit 1); exit 1; }; } 4851 fi 4852 rm -f conftest* 4853 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4854fi 4855fi 4856 4857BUILD_EXEEXT="" 4858test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4859{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4860echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4861ac_build_exeext=$BUILD_EXEEXT 4862 4863 ac_build_prefix=${build_alias}- 4864 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4865set dummy ${ac_build_prefix}g++; ac_word=$2 4866{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4868if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4869 echo $ECHO_N "(cached) $ECHO_C" >&6 4870else 4871 if test -n "$BUILD_CXX"; then 4872 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4873else 4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4875for as_dir in $PATH 4876do 4877 IFS=$as_save_IFS 4878 test -z "$as_dir" && as_dir=. 4879 for ac_exec_ext in '' $ac_executable_extensions; do 4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4881 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4883 break 2 4884 fi 4885done 4886done 4887IFS=$as_save_IFS 4888 4889fi 4890fi 4891BUILD_CXX=$ac_cv_prog_BUILD_CXX 4892if test -n "$BUILD_CXX"; then 4893 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4894echo "${ECHO_T}$BUILD_CXX" >&6; } 4895else 4896 { echo "$as_me:$LINENO: result: no" >&5 4897echo "${ECHO_T}no" >&6; } 4898fi 4899 4900 4901 if test -z "$BUILD_CXX"; then 4902 # Extract the first word of "g++", so it can be a program name with args. 4903set dummy g++; ac_word=$2 4904{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4906if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4907 echo $ECHO_N "(cached) $ECHO_C" >&6 4908else 4909 if test -n "$BUILD_CXX"; then 4910 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4911else 4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4913for as_dir in $PATH 4914do 4915 IFS=$as_save_IFS 4916 test -z "$as_dir" && as_dir=. 4917 for ac_exec_ext in '' $ac_executable_extensions; do 4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4919 ac_cv_prog_BUILD_CXX="g++" 4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4921 break 2 4922 fi 4923done 4924done 4925IFS=$as_save_IFS 4926 4927fi 4928fi 4929BUILD_CXX=$ac_cv_prog_BUILD_CXX 4930if test -n "$BUILD_CXX"; then 4931 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4932echo "${ECHO_T}$BUILD_CXX" >&6; } 4933else 4934 { echo "$as_me:$LINENO: result: no" >&5 4935echo "${ECHO_T}no" >&6; } 4936fi 4937 4938 4939 if test -z "$BUILD_CXX"; then 4940 # Extract the first word of "c++", so it can be a program name with args. 4941set dummy c++; ac_word=$2 4942{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4944if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4945 echo $ECHO_N "(cached) $ECHO_C" >&6 4946else 4947 if test -n "$BUILD_CXX"; then 4948 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4949else 4950 ac_prog_rejected=no 4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4952for as_dir in $PATH 4953do 4954 IFS=$as_save_IFS 4955 test -z "$as_dir" && as_dir=. 4956 for ac_exec_ext in '' $ac_executable_extensions; do 4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4958 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4959 ac_prog_rejected=yes 4960 continue 4961 fi 4962 ac_cv_prog_BUILD_CXX="c++" 4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4964 break 2 4965 fi 4966done 4967done 4968IFS=$as_save_IFS 4969 4970if test $ac_prog_rejected = yes; then 4971 # We found a bogon in the path, so make sure we never use it. 4972 set dummy $ac_cv_prog_BUILD_CXX 4973 shift 4974 if test $# != 0; then 4975 # We chose a different compiler from the bogus one. 4976 # However, it has the same basename, so the bogon will be chosen 4977 # first if we set BUILD_CXX to just the basename; use the full file name. 4978 shift 4979 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4980 fi 4981fi 4982fi 4983fi 4984BUILD_CXX=$ac_cv_prog_BUILD_CXX 4985if test -n "$BUILD_CXX"; then 4986 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4987echo "${ECHO_T}$BUILD_CXX" >&6; } 4988else 4989 { echo "$as_me:$LINENO: result: no" >&5 4990echo "${ECHO_T}no" >&6; } 4991fi 4992 4993 4994 fi 4995 fi 4996else 4997 LLVM_CROSS_COMPILING=0 4998 4999fi 5000 5001if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 5002 cvsbuild="yes" 5003 optimize="no" 5004 CVSBUILD=CVSBUILD=1 5005 5006else 5007 cvsbuild="no" 5008 optimize="yes" 5009fi 5010 5011 5012# Check whether --enable-libcpp was given. 5013if test "${enable_libcpp+set}" = set; then 5014 enableval=$enable_libcpp; 5015else 5016 enableval=default 5017fi 5018 5019case "$enableval" in 5020 yes) ENABLE_LIBCPP=1 5021 ;; 5022 no) ENABLE_LIBCPP=0 5023 ;; 5024 default) ENABLE_LIBCPP=0 5025;; 5026 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 5027echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 5028 { (exit 1); exit 1; }; } ;; 5029esac 5030 5031# Check whether --enable-cxx11 was given. 5032if test "${enable_cxx11+set}" = set; then 5033 enableval=$enable_cxx11; 5034else 5035 enableval=default 5036fi 5037 5038case "$enableval" in 5039 yes) ENABLE_CXX11=1 5040 ;; 5041 no) ENABLE_CXX11=0 5042 ;; 5043 default) ENABLE_CXX11=0 5044;; 5045 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5 5046echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;} 5047 { (exit 1); exit 1; }; } ;; 5048esac 5049 5050# Check whether --enable-optimized was given. 5051if test "${enable_optimized+set}" = set; then 5052 enableval=$enable_optimized; 5053else 5054 enableval=$optimize 5055fi 5056 5057if test ${enableval} = "no" ; then 5058 ENABLE_OPTIMIZED= 5059 5060else 5061 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 5062 5063fi 5064 5065# Check whether --enable-profiling was given. 5066if test "${enable_profiling+set}" = set; then 5067 enableval=$enable_profiling; 5068else 5069 enableval="no" 5070fi 5071 5072if test ${enableval} = "no" ; then 5073 ENABLE_PROFILING= 5074 5075else 5076 ENABLE_PROFILING=ENABLE_PROFILING=1 5077 5078fi 5079 5080# Check whether --enable-assertions was given. 5081if test "${enable_assertions+set}" = set; then 5082 enableval=$enable_assertions; 5083else 5084 enableval="yes" 5085fi 5086 5087if test ${enableval} = "yes" ; then 5088 DISABLE_ASSERTIONS= 5089 5090else 5091 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5092 5093fi 5094 5095# Check whether --enable-werror was given. 5096if test "${enable_werror+set}" = set; then 5097 enableval=$enable_werror; 5098else 5099 enableval="no" 5100fi 5101 5102case "$enableval" in 5103 yes) ENABLE_WERROR=1 5104 ;; 5105 no) ENABLE_WERROR=0 5106 ;; 5107 default) ENABLE_WERROR=0 5108;; 5109 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 5110echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} 5111 { (exit 1); exit 1; }; } ;; 5112esac 5113 5114# Check whether --enable-expensive-checks was given. 5115if test "${enable_expensive_checks+set}" = set; then 5116 enableval=$enable_expensive_checks; 5117else 5118 enableval="no" 5119fi 5120 5121if test ${enableval} = "yes" ; then 5122 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5123 5124 EXPENSIVE_CHECKS=yes 5125 5126else 5127 ENABLE_EXPENSIVE_CHECKS= 5128 5129 EXPENSIVE_CHECKS=no 5130 5131fi 5132 5133# Check whether --enable-debug-runtime was given. 5134if test "${enable_debug_runtime+set}" = set; then 5135 enableval=$enable_debug_runtime; 5136else 5137 enableval=no 5138fi 5139 5140if test ${enableval} = "no" ; then 5141 DEBUG_RUNTIME= 5142 5143else 5144 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5145 5146fi 5147 5148# Check whether --enable-debug-symbols was given. 5149if test "${enable_debug_symbols+set}" = set; then 5150 enableval=$enable_debug_symbols; 5151else 5152 enableval=no 5153fi 5154 5155if test ${enableval} = "no" ; then 5156 DEBUG_SYMBOLS= 5157 5158else 5159 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5160 5161fi 5162 5163# Check whether --enable-keep-symbols was given. 5164if test "${enable_keep_symbols+set}" = set; then 5165 enableval=$enable_keep_symbols; 5166else 5167 enableval=no 5168fi 5169 5170if test ${enableval} = "no" ; then 5171 KEEP_SYMBOLS= 5172 5173else 5174 KEEP_SYMBOLS=KEEP_SYMBOLS=1 5175 5176fi 5177 5178# Check whether --enable-jit was given. 5179if test "${enable_jit+set}" = set; then 5180 enableval=$enable_jit; 5181else 5182 enableval=default 5183fi 5184 5185if test ${enableval} = "no" 5186then 5187 JIT= 5188 5189else 5190 case "$llvm_cv_target_arch" in 5191 x86) TARGET_HAS_JIT=1 5192 ;; 5193 Sparc) TARGET_HAS_JIT=0 5194 ;; 5195 PowerPC) TARGET_HAS_JIT=1 5196 ;; 5197 x86_64) TARGET_HAS_JIT=1 5198 ;; 5199 ARM) TARGET_HAS_JIT=1 5200 ;; 5201 Mips) TARGET_HAS_JIT=1 5202 ;; 5203 XCore) TARGET_HAS_JIT=0 5204 ;; 5205 MSP430) TARGET_HAS_JIT=0 5206 ;; 5207 Hexagon) TARGET_HAS_JIT=0 5208 ;; 5209 MBlaze) TARGET_HAS_JIT=0 5210 ;; 5211 NVPTX) TARGET_HAS_JIT=0 5212 ;; 5213 *) TARGET_HAS_JIT=0 5214 ;; 5215 esac 5216fi 5217 5218# Check whether --enable-docs was given. 5219if test "${enable_docs+set}" = set; then 5220 enableval=$enable_docs; 5221else 5222 enableval=default 5223fi 5224 5225case "$enableval" in 5226 yes) ENABLE_DOCS=1 5227 ;; 5228 no) ENABLE_DOCS=0 5229 ;; 5230 default) ENABLE_DOCS=1 5231 ;; 5232 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5233echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5234 { (exit 1); exit 1; }; } ;; 5235esac 5236 5237# Check whether --enable-doxygen was given. 5238if test "${enable_doxygen+set}" = set; then 5239 enableval=$enable_doxygen; 5240else 5241 enableval=default 5242fi 5243 5244case "$enableval" in 5245 yes) ENABLE_DOXYGEN=1 5246 ;; 5247 no) ENABLE_DOXYGEN=0 5248 ;; 5249 default) ENABLE_DOXYGEN=0 5250 ;; 5251 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5252echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5253 { (exit 1); exit 1; }; } ;; 5254esac 5255 5256# Check whether --enable-threads was given. 5257if test "${enable_threads+set}" = set; then 5258 enableval=$enable_threads; 5259else 5260 enableval=default 5261fi 5262 5263case "$enableval" in 5264 yes) LLVM_ENABLE_THREADS=1 5265 ;; 5266 no) LLVM_ENABLE_THREADS=0 5267 ;; 5268 default) LLVM_ENABLE_THREADS=1 5269 ;; 5270 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5271echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5272 { (exit 1); exit 1; }; } ;; 5273esac 5274 5275cat >>confdefs.h <<_ACEOF 5276#define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS 5277_ACEOF 5278 5279 5280# Check whether --enable-pthreads was given. 5281if test "${enable_pthreads+set}" = set; then 5282 enableval=$enable_pthreads; 5283else 5284 enableval=default 5285fi 5286 5287case "$enableval" in 5288 yes) ENABLE_PTHREADS=1 5289 ;; 5290 no) ENABLE_PTHREADS=0 5291 ;; 5292 default) ENABLE_PTHREADS=1 5293 ;; 5294 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5295echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5296 { (exit 1); exit 1; }; } ;; 5297esac 5298 5299# Check whether --enable-pic was given. 5300if test "${enable_pic+set}" = set; then 5301 enableval=$enable_pic; 5302else 5303 enableval=default 5304fi 5305 5306case "$enableval" in 5307 yes) ENABLE_PIC=1 5308 ;; 5309 no) ENABLE_PIC=0 5310 ;; 5311 default) ENABLE_PIC=1 5312 ;; 5313 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5314echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5315 { (exit 1); exit 1; }; } ;; 5316esac 5317 5318cat >>confdefs.h <<_ACEOF 5319#define ENABLE_PIC $ENABLE_PIC 5320_ACEOF 5321 5322 5323# Check whether --enable-shared was given. 5324if test "${enable_shared+set}" = set; then 5325 enableval=$enable_shared; 5326else 5327 enableval=default 5328fi 5329 5330case "$enableval" in 5331 yes) ENABLE_SHARED=1 5332 ;; 5333 no) ENABLE_SHARED=0 5334 ;; 5335 default) ENABLE_SHARED=0 5336 ;; 5337 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5338echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5339 { (exit 1); exit 1; }; } ;; 5340esac 5341 5342# Check whether --enable-embed-stdcxx was given. 5343if test "${enable_embed_stdcxx+set}" = set; then 5344 enableval=$enable_embed_stdcxx; 5345else 5346 enableval=default 5347fi 5348 5349case "$enableval" in 5350 yes) ENABLE_EMBED_STDCXX=1 5351 ;; 5352 no) ENABLE_EMBED_STDCXX=0 5353 ;; 5354 default) ENABLE_EMBED_STDCXX=0 5355 ;; 5356 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5357echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5358 { (exit 1); exit 1; }; } ;; 5359esac 5360 5361# Check whether --enable-timestamps was given. 5362if test "${enable_timestamps+set}" = set; then 5363 enableval=$enable_timestamps; 5364else 5365 enableval=default 5366fi 5367 5368case "$enableval" in 5369 yes) ENABLE_TIMESTAMPS=1 5370 ;; 5371 no) ENABLE_TIMESTAMPS=0 5372 ;; 5373 default) ENABLE_TIMESTAMPS=1 5374 ;; 5375 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5376echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5377 { (exit 1); exit 1; }; } ;; 5378esac 5379 5380cat >>confdefs.h <<_ACEOF 5381#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5382_ACEOF 5383 5384 5385TARGETS_TO_BUILD="" 5386# Check whether --enable-targets was given. 5387if test "${enable_targets+set}" = set; then 5388 enableval=$enable_targets; 5389else 5390 enableval=all 5391fi 5392 5393if test "$enableval" = host-only ; then 5394 enableval=host 5395fi 5396case "$enableval" in 5397 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;; 5398 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5399 case "$a_target" in 5400 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5401 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5402 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5403 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5404 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5405 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5406 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5407 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5408 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5409 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5410 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5411 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5412 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5413 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5414 host) case "$llvm_cv_target_arch" in 5415 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5416 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5417 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5418 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5419 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5420 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5421 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5422 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5423 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5424 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5425 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5426 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5427 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5428echo "$as_me: error: Can not set target to build" >&2;} 5429 { (exit 1); exit 1; }; } ;; 5430 esac ;; 5431 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5432echo "$as_me: error: Unrecognized target $a_target" >&2;} 5433 { (exit 1); exit 1; }; } ;; 5434 esac 5435 done 5436 ;; 5437esac 5438 5439# Check whether --enable-experimental-targets was given. 5440if test "${enable_experimental_targets+set}" = set; then 5441 enableval=$enable_experimental_targets; 5442else 5443 enableval=disable 5444fi 5445 5446 5447if test ${enableval} != "disable" 5448then 5449 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD" 5450fi 5451 5452TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5453 5454 5455for a_target in $TARGETS_TO_BUILD; do 5456 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5457 5458cat >>confdefs.h <<_ACEOF 5459#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5460_ACEOF 5461 5462 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5463 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5464 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5465 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5466 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5467 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5468 fi 5469 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5470 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5471 fi 5472 5473cat >>confdefs.h <<_ACEOF 5474#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5475_ACEOF 5476 5477 5478cat >>confdefs.h <<_ACEOF 5479#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5480_ACEOF 5481 5482 5483cat >>confdefs.h <<_ACEOF 5484#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5485_ACEOF 5486 5487 5488cat >>confdefs.h <<_ACEOF 5489#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5490_ACEOF 5491 5492 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5493 5494cat >>confdefs.h <<_ACEOF 5495#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5496_ACEOF 5497 5498 fi 5499 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5500 5501cat >>confdefs.h <<_ACEOF 5502#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5503_ACEOF 5504 5505 fi 5506 fi 5507done 5508 5509LLVM_ENUM_TARGETS="" 5510LLVM_ENUM_ASM_PRINTERS="" 5511LLVM_ENUM_ASM_PARSERS="" 5512LLVM_ENUM_DISASSEMBLERS="" 5513for target_to_build in $TARGETS_TO_BUILD; do 5514 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5515 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5516 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5517 fi 5518 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5519 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5520 fi 5521 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5522 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5523 fi 5524done 5525 5526 5527 5528 5529 5530 5531# Check whether --with-optimize-option was given. 5532if test "${with_optimize_option+set}" = set; then 5533 withval=$with_optimize_option; 5534else 5535 withval=default 5536fi 5537 5538{ echo "$as_me:$LINENO: checking optimization flags" >&5 5539echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5540case "$withval" in 5541 default) 5542 case "$llvm_cv_os_type" in 5543 FreeBSD) optimize_option=-O2 ;; 5544 MingW) optimize_option=-O2 ;; 5545 *) optimize_option=-O3 ;; 5546 esac ;; 5547 *) optimize_option="$withval" ;; 5548esac 5549OPTIMIZE_OPTION=$optimize_option 5550 5551{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5552echo "${ECHO_T}$optimize_option" >&6; } 5553 5554 5555# Check whether --with-extra-options was given. 5556if test "${with_extra_options+set}" = set; then 5557 withval=$with_extra_options; 5558else 5559 withval=default 5560fi 5561 5562case "$withval" in 5563 default) EXTRA_OPTIONS= ;; 5564 *) EXTRA_OPTIONS=$withval ;; 5565esac 5566EXTRA_OPTIONS=$EXTRA_OPTIONS 5567 5568 5569 5570# Check whether --with-extra-ld-options was given. 5571if test "${with_extra_ld_options+set}" = set; then 5572 withval=$with_extra_ld_options; 5573else 5574 withval=default 5575fi 5576 5577case "$withval" in 5578 default) EXTRA_LD_OPTIONS= ;; 5579 *) EXTRA_LD_OPTIONS=$withval ;; 5580esac 5581EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5582 5583 5584# Check whether --enable-bindings was given. 5585if test "${enable_bindings+set}" = set; then 5586 enableval=$enable_bindings; 5587else 5588 enableval=default 5589fi 5590 5591BINDINGS_TO_BUILD="" 5592case "$enableval" in 5593 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5594 all ) BINDINGS_TO_BUILD="ocaml" ;; 5595 none | no) BINDINGS_TO_BUILD="" ;; 5596 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5597 case "$a_binding" in 5598 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5599 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5600echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5601 { (exit 1); exit 1; }; } ;; 5602 esac 5603 done 5604 ;; 5605esac 5606 5607 5608# Check whether --with-ocaml-libdir was given. 5609if test "${with_ocaml_libdir+set}" = set; then 5610 withval=$with_ocaml_libdir; 5611else 5612 withval=auto 5613fi 5614 5615case "$withval" in 5616 auto) with_ocaml_libdir="$withval" ;; 5617 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5618 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5619echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5620 { (exit 1); exit 1; }; } ;; 5621esac 5622 5623 5624# Check whether --with-clang-srcdir was given. 5625if test "${with_clang_srcdir+set}" = set; then 5626 withval=$with_clang_srcdir; 5627else 5628 withval="-" 5629fi 5630 5631case "$withval" in 5632 -) clang_src_root="" ;; 5633 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5634 *) clang_src_root="$ac_pwd/$withval" ;; 5635esac 5636CLANG_SRC_ROOT=$clang_src_root 5637 5638 5639 5640# Check whether --with-clang-resource-dir was given. 5641if test "${with_clang_resource_dir+set}" = set; then 5642 withval=$with_clang_resource_dir; 5643else 5644 withval="" 5645fi 5646 5647 5648cat >>confdefs.h <<_ACEOF 5649#define CLANG_RESOURCE_DIR "$withval" 5650_ACEOF 5651 5652 5653 5654# Check whether --with-c-include-dirs was given. 5655if test "${with_c_include_dirs+set}" = set; then 5656 withval=$with_c_include_dirs; 5657else 5658 withval="" 5659fi 5660 5661 5662cat >>confdefs.h <<_ACEOF 5663#define C_INCLUDE_DIRS "$withval" 5664_ACEOF 5665 5666 5667# Clang normally uses the system c++ headers and libraries. With this option, 5668# clang will use the ones provided by a gcc installation instead. This option should 5669# be passed the same value that was used with --prefix when configuring gcc. 5670 5671# Check whether --with-gcc-toolchain was given. 5672if test "${with_gcc_toolchain+set}" = set; then 5673 withval=$with_gcc_toolchain; 5674else 5675 withval="" 5676fi 5677 5678 5679cat >>confdefs.h <<_ACEOF 5680#define GCC_INSTALL_PREFIX "$withval" 5681_ACEOF 5682 5683 5684 5685# Check whether --with-default-sysroot was given. 5686if test "${with_default_sysroot+set}" = set; then 5687 withval=$with_default_sysroot; 5688else 5689 withval="" 5690fi 5691 5692 5693cat >>confdefs.h <<_ACEOF 5694#define DEFAULT_SYSROOT "$withval" 5695_ACEOF 5696 5697 5698 5699# Check whether --with-binutils-include was given. 5700if test "${with_binutils_include+set}" = set; then 5701 withval=$with_binutils_include; 5702else 5703 withval=default 5704fi 5705 5706case "$withval" in 5707 default) WITH_BINUTILS_INCDIR=default ;; 5708 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5709 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5710echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5711 { (exit 1); exit 1; }; } ;; 5712esac 5713if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5714 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5715 5716 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5717 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5718 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5719echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5720 { (exit 1); exit 1; }; }; 5721 fi 5722fi 5723 5724 5725# Check whether --with-bug-report-url was given. 5726if test "${with_bug_report_url+set}" = set; then 5727 withval=$with_bug_report_url; 5728else 5729 withval="http://llvm.org/bugs/" 5730fi 5731 5732 5733cat >>confdefs.h <<_ACEOF 5734#define BUG_REPORT_URL "$withval" 5735_ACEOF 5736 5737 5738# Check whether --enable-libffi was given. 5739if test "${enable_libffi+set}" = set; then 5740 enableval=$enable_libffi; case "$enableval" in 5741 yes) llvm_cv_enable_libffi="yes" ;; 5742 no) llvm_cv_enable_libffi="no" ;; 5743 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5744echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5745 { (exit 1); exit 1; }; } ;; 5746 esac 5747else 5748 llvm_cv_enable_libffi=no 5749fi 5750 5751 5752 5753# Check whether --with-internal-prefix was given. 5754if test "${with_internal_prefix+set}" = set; then 5755 withval=$with_internal_prefix; 5756else 5757 withval="" 5758fi 5759 5760INTERNAL_PREFIX=$withval 5761 5762 5763 5764{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5765echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5766if test "${lt_cv_path_NM+set}" = set; then 5767 echo $ECHO_N "(cached) $ECHO_C" >&6 5768else 5769 if test -n "$NM"; then 5770 # Let the user override the test. 5771 lt_cv_path_NM="$NM" 5772else 5773 lt_nm_to_check="${ac_tool_prefix}nm" 5774 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5775 lt_nm_to_check="$lt_nm_to_check nm" 5776 fi 5777 for lt_tmp_nm in $lt_nm_to_check; do 5778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5779 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5780 IFS="$lt_save_ifs" 5781 test -z "$ac_dir" && ac_dir=. 5782 tmp_nm="$ac_dir/$lt_tmp_nm" 5783 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5784 # Check to see if the nm accepts a BSD-compat flag. 5785 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5786 # nm: unknown option "B" ignored 5787 # Tru64's nm complains that /dev/null is an invalid object file 5788 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5789 */dev/null* | *'Invalid file or object type'*) 5790 lt_cv_path_NM="$tmp_nm -B" 5791 break 5792 ;; 5793 *) 5794 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5795 */dev/null*) 5796 lt_cv_path_NM="$tmp_nm -p" 5797 break 5798 ;; 5799 *) 5800 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5801 continue # so that we can try to find one that supports BSD flags 5802 ;; 5803 esac 5804 ;; 5805 esac 5806 fi 5807 done 5808 IFS="$lt_save_ifs" 5809 done 5810 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5811fi 5812fi 5813{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5814echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5815NM="$lt_cv_path_NM" 5816 5817 5818 5819{ echo "$as_me:$LINENO: checking for GNU make" >&5 5820echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 5821if test "${llvm_cv_gnu_make_command+set}" = set; then 5822 echo $ECHO_N "(cached) $ECHO_C" >&6 5823else 5824 llvm_cv_gnu_make_command='' 5825 for a in "$MAKE" make gmake gnumake ; do 5826 if test -z "$a" ; then continue ; fi ; 5827 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 5828 then 5829 llvm_cv_gnu_make_command=$a ; 5830 break; 5831 fi 5832 done 5833fi 5834{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 5835echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 5836 if test "x$llvm_cv_gnu_make_command" != "x" ; then 5837 ifGNUmake='' ; 5838 else 5839 ifGNUmake='#' ; 5840 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 5841echo "${ECHO_T}\"Not found\"" >&6; }; 5842 fi 5843 5844 5845{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 5846echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5847LN_S=$as_ln_s 5848if test "$LN_S" = "ln -s"; then 5849 { echo "$as_me:$LINENO: result: yes" >&5 5850echo "${ECHO_T}yes" >&6; } 5851else 5852 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5853echo "${ECHO_T}no, using $LN_S" >&6; } 5854fi 5855 5856# Extract the first word of "cmp", so it can be a program name with args. 5857set dummy cmp; ac_word=$2 5858{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5860if test "${ac_cv_path_CMP+set}" = set; then 5861 echo $ECHO_N "(cached) $ECHO_C" >&6 5862else 5863 case $CMP in 5864 [\\/]* | ?:[\\/]*) 5865 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5866 ;; 5867 *) 5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5869for as_dir in $PATH 5870do 5871 IFS=$as_save_IFS 5872 test -z "$as_dir" && as_dir=. 5873 for ac_exec_ext in '' $ac_executable_extensions; do 5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5875 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5877 break 2 5878 fi 5879done 5880done 5881IFS=$as_save_IFS 5882 5883 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 5884 ;; 5885esac 5886fi 5887CMP=$ac_cv_path_CMP 5888if test -n "$CMP"; then 5889 { echo "$as_me:$LINENO: result: $CMP" >&5 5890echo "${ECHO_T}$CMP" >&6; } 5891else 5892 { echo "$as_me:$LINENO: result: no" >&5 5893echo "${ECHO_T}no" >&6; } 5894fi 5895 5896 5897# Extract the first word of "cp", so it can be a program name with args. 5898set dummy cp; ac_word=$2 5899{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5901if test "${ac_cv_path_CP+set}" = set; then 5902 echo $ECHO_N "(cached) $ECHO_C" >&6 5903else 5904 case $CP in 5905 [\\/]* | ?:[\\/]*) 5906 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5907 ;; 5908 *) 5909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5910for as_dir in $PATH 5911do 5912 IFS=$as_save_IFS 5913 test -z "$as_dir" && as_dir=. 5914 for ac_exec_ext in '' $ac_executable_extensions; do 5915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5916 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5918 break 2 5919 fi 5920done 5921done 5922IFS=$as_save_IFS 5923 5924 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 5925 ;; 5926esac 5927fi 5928CP=$ac_cv_path_CP 5929if test -n "$CP"; then 5930 { echo "$as_me:$LINENO: result: $CP" >&5 5931echo "${ECHO_T}$CP" >&6; } 5932else 5933 { echo "$as_me:$LINENO: result: no" >&5 5934echo "${ECHO_T}no" >&6; } 5935fi 5936 5937 5938# Extract the first word of "date", so it can be a program name with args. 5939set dummy date; ac_word=$2 5940{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5942if test "${ac_cv_path_DATE+set}" = set; then 5943 echo $ECHO_N "(cached) $ECHO_C" >&6 5944else 5945 case $DATE in 5946 [\\/]* | ?:[\\/]*) 5947 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5948 ;; 5949 *) 5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5951for as_dir in $PATH 5952do 5953 IFS=$as_save_IFS 5954 test -z "$as_dir" && as_dir=. 5955 for ac_exec_ext in '' $ac_executable_extensions; do 5956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5957 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5959 break 2 5960 fi 5961done 5962done 5963IFS=$as_save_IFS 5964 5965 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 5966 ;; 5967esac 5968fi 5969DATE=$ac_cv_path_DATE 5970if test -n "$DATE"; then 5971 { echo "$as_me:$LINENO: result: $DATE" >&5 5972echo "${ECHO_T}$DATE" >&6; } 5973else 5974 { echo "$as_me:$LINENO: result: no" >&5 5975echo "${ECHO_T}no" >&6; } 5976fi 5977 5978 5979# Extract the first word of "find", so it can be a program name with args. 5980set dummy find; ac_word=$2 5981{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5983if test "${ac_cv_path_FIND+set}" = set; then 5984 echo $ECHO_N "(cached) $ECHO_C" >&6 5985else 5986 case $FIND in 5987 [\\/]* | ?:[\\/]*) 5988 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 5989 ;; 5990 *) 5991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5992for as_dir in $PATH 5993do 5994 IFS=$as_save_IFS 5995 test -z "$as_dir" && as_dir=. 5996 for ac_exec_ext in '' $ac_executable_extensions; do 5997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5998 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 5999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6000 break 2 6001 fi 6002done 6003done 6004IFS=$as_save_IFS 6005 6006 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6007 ;; 6008esac 6009fi 6010FIND=$ac_cv_path_FIND 6011if test -n "$FIND"; then 6012 { echo "$as_me:$LINENO: result: $FIND" >&5 6013echo "${ECHO_T}$FIND" >&6; } 6014else 6015 { echo "$as_me:$LINENO: result: no" >&5 6016echo "${ECHO_T}no" >&6; } 6017fi 6018 6019 6020# Extract the first word of "grep", so it can be a program name with args. 6021set dummy grep; ac_word=$2 6022{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6024if test "${ac_cv_path_GREP+set}" = set; then 6025 echo $ECHO_N "(cached) $ECHO_C" >&6 6026else 6027 case $GREP in 6028 [\\/]* | ?:[\\/]*) 6029 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6030 ;; 6031 *) 6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6033for as_dir in $PATH 6034do 6035 IFS=$as_save_IFS 6036 test -z "$as_dir" && as_dir=. 6037 for ac_exec_ext in '' $ac_executable_extensions; do 6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6039 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6041 break 2 6042 fi 6043done 6044done 6045IFS=$as_save_IFS 6046 6047 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6048 ;; 6049esac 6050fi 6051GREP=$ac_cv_path_GREP 6052if test -n "$GREP"; then 6053 { echo "$as_me:$LINENO: result: $GREP" >&5 6054echo "${ECHO_T}$GREP" >&6; } 6055else 6056 { echo "$as_me:$LINENO: result: no" >&5 6057echo "${ECHO_T}no" >&6; } 6058fi 6059 6060 6061# Extract the first word of "mkdir", so it can be a program name with args. 6062set dummy mkdir; ac_word=$2 6063{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6065if test "${ac_cv_path_MKDIR+set}" = set; then 6066 echo $ECHO_N "(cached) $ECHO_C" >&6 6067else 6068 case $MKDIR in 6069 [\\/]* | ?:[\\/]*) 6070 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6071 ;; 6072 *) 6073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6074for as_dir in $PATH 6075do 6076 IFS=$as_save_IFS 6077 test -z "$as_dir" && as_dir=. 6078 for ac_exec_ext in '' $ac_executable_extensions; do 6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6080 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6082 break 2 6083 fi 6084done 6085done 6086IFS=$as_save_IFS 6087 6088 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6089 ;; 6090esac 6091fi 6092MKDIR=$ac_cv_path_MKDIR 6093if test -n "$MKDIR"; then 6094 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6095echo "${ECHO_T}$MKDIR" >&6; } 6096else 6097 { echo "$as_me:$LINENO: result: no" >&5 6098echo "${ECHO_T}no" >&6; } 6099fi 6100 6101 6102# Extract the first word of "mv", so it can be a program name with args. 6103set dummy mv; ac_word=$2 6104{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6106if test "${ac_cv_path_MV+set}" = set; then 6107 echo $ECHO_N "(cached) $ECHO_C" >&6 6108else 6109 case $MV in 6110 [\\/]* | ?:[\\/]*) 6111 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6112 ;; 6113 *) 6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6115for as_dir in $PATH 6116do 6117 IFS=$as_save_IFS 6118 test -z "$as_dir" && as_dir=. 6119 for ac_exec_ext in '' $ac_executable_extensions; do 6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6121 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6123 break 2 6124 fi 6125done 6126done 6127IFS=$as_save_IFS 6128 6129 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6130 ;; 6131esac 6132fi 6133MV=$ac_cv_path_MV 6134if test -n "$MV"; then 6135 { echo "$as_me:$LINENO: result: $MV" >&5 6136echo "${ECHO_T}$MV" >&6; } 6137else 6138 { echo "$as_me:$LINENO: result: no" >&5 6139echo "${ECHO_T}no" >&6; } 6140fi 6141 6142 6143if test -n "$ac_tool_prefix"; then 6144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6145set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6146{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6148if test "${ac_cv_prog_RANLIB+set}" = set; then 6149 echo $ECHO_N "(cached) $ECHO_C" >&6 6150else 6151 if test -n "$RANLIB"; then 6152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6153else 6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6155for as_dir in $PATH 6156do 6157 IFS=$as_save_IFS 6158 test -z "$as_dir" && as_dir=. 6159 for ac_exec_ext in '' $ac_executable_extensions; do 6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6163 break 2 6164 fi 6165done 6166done 6167IFS=$as_save_IFS 6168 6169fi 6170fi 6171RANLIB=$ac_cv_prog_RANLIB 6172if test -n "$RANLIB"; then 6173 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6174echo "${ECHO_T}$RANLIB" >&6; } 6175else 6176 { echo "$as_me:$LINENO: result: no" >&5 6177echo "${ECHO_T}no" >&6; } 6178fi 6179 6180 6181fi 6182if test -z "$ac_cv_prog_RANLIB"; then 6183 ac_ct_RANLIB=$RANLIB 6184 # Extract the first word of "ranlib", so it can be a program name with args. 6185set dummy ranlib; ac_word=$2 6186{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6188if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6189 echo $ECHO_N "(cached) $ECHO_C" >&6 6190else 6191 if test -n "$ac_ct_RANLIB"; then 6192 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6193else 6194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6195for as_dir in $PATH 6196do 6197 IFS=$as_save_IFS 6198 test -z "$as_dir" && as_dir=. 6199 for ac_exec_ext in '' $ac_executable_extensions; do 6200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6201 ac_cv_prog_ac_ct_RANLIB="ranlib" 6202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6203 break 2 6204 fi 6205done 6206done 6207IFS=$as_save_IFS 6208 6209fi 6210fi 6211ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6212if test -n "$ac_ct_RANLIB"; then 6213 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6214echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6215else 6216 { echo "$as_me:$LINENO: result: no" >&5 6217echo "${ECHO_T}no" >&6; } 6218fi 6219 6220 if test "x$ac_ct_RANLIB" = x; then 6221 RANLIB=":" 6222 else 6223 case $cross_compiling:$ac_tool_warned in 6224yes:) 6225{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6226whose name does not start with the host triplet. If you think this 6227configuration is useful to you, please write to autoconf@gnu.org." >&5 6228echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6229whose name does not start with the host triplet. If you think this 6230configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6231ac_tool_warned=yes ;; 6232esac 6233 RANLIB=$ac_ct_RANLIB 6234 fi 6235else 6236 RANLIB="$ac_cv_prog_RANLIB" 6237fi 6238 6239if test -n "$ac_tool_prefix"; then 6240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6241set dummy ${ac_tool_prefix}ar; ac_word=$2 6242{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6244if test "${ac_cv_prog_AR+set}" = set; then 6245 echo $ECHO_N "(cached) $ECHO_C" >&6 6246else 6247 if test -n "$AR"; then 6248 ac_cv_prog_AR="$AR" # Let the user override the test. 6249else 6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6251for as_dir in $PATH 6252do 6253 IFS=$as_save_IFS 6254 test -z "$as_dir" && as_dir=. 6255 for ac_exec_ext in '' $ac_executable_extensions; do 6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6257 ac_cv_prog_AR="${ac_tool_prefix}ar" 6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6259 break 2 6260 fi 6261done 6262done 6263IFS=$as_save_IFS 6264 6265fi 6266fi 6267AR=$ac_cv_prog_AR 6268if test -n "$AR"; then 6269 { echo "$as_me:$LINENO: result: $AR" >&5 6270echo "${ECHO_T}$AR" >&6; } 6271else 6272 { echo "$as_me:$LINENO: result: no" >&5 6273echo "${ECHO_T}no" >&6; } 6274fi 6275 6276 6277fi 6278if test -z "$ac_cv_prog_AR"; then 6279 ac_ct_AR=$AR 6280 # Extract the first word of "ar", so it can be a program name with args. 6281set dummy ar; ac_word=$2 6282{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6284if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6285 echo $ECHO_N "(cached) $ECHO_C" >&6 6286else 6287 if test -n "$ac_ct_AR"; then 6288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6289else 6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6291for as_dir in $PATH 6292do 6293 IFS=$as_save_IFS 6294 test -z "$as_dir" && as_dir=. 6295 for ac_exec_ext in '' $ac_executable_extensions; do 6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6297 ac_cv_prog_ac_ct_AR="ar" 6298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6299 break 2 6300 fi 6301done 6302done 6303IFS=$as_save_IFS 6304 6305fi 6306fi 6307ac_ct_AR=$ac_cv_prog_ac_ct_AR 6308if test -n "$ac_ct_AR"; then 6309 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6310echo "${ECHO_T}$ac_ct_AR" >&6; } 6311else 6312 { echo "$as_me:$LINENO: result: no" >&5 6313echo "${ECHO_T}no" >&6; } 6314fi 6315 6316 if test "x$ac_ct_AR" = x; then 6317 AR="false" 6318 else 6319 case $cross_compiling:$ac_tool_warned in 6320yes:) 6321{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6322whose name does not start with the host triplet. If you think this 6323configuration is useful to you, please write to autoconf@gnu.org." >&5 6324echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6325whose name does not start with the host triplet. If you think this 6326configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6327ac_tool_warned=yes ;; 6328esac 6329 AR=$ac_ct_AR 6330 fi 6331else 6332 AR="$ac_cv_prog_AR" 6333fi 6334 6335# Extract the first word of "rm", so it can be a program name with args. 6336set dummy rm; ac_word=$2 6337{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6339if test "${ac_cv_path_RM+set}" = set; then 6340 echo $ECHO_N "(cached) $ECHO_C" >&6 6341else 6342 case $RM in 6343 [\\/]* | ?:[\\/]*) 6344 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6345 ;; 6346 *) 6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6348for as_dir in $PATH 6349do 6350 IFS=$as_save_IFS 6351 test -z "$as_dir" && as_dir=. 6352 for ac_exec_ext in '' $ac_executable_extensions; do 6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6354 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6356 break 2 6357 fi 6358done 6359done 6360IFS=$as_save_IFS 6361 6362 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6363 ;; 6364esac 6365fi 6366RM=$ac_cv_path_RM 6367if test -n "$RM"; then 6368 { echo "$as_me:$LINENO: result: $RM" >&5 6369echo "${ECHO_T}$RM" >&6; } 6370else 6371 { echo "$as_me:$LINENO: result: no" >&5 6372echo "${ECHO_T}no" >&6; } 6373fi 6374 6375 6376# Extract the first word of "sed", so it can be a program name with args. 6377set dummy sed; ac_word=$2 6378{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6380if test "${ac_cv_path_SED+set}" = set; then 6381 echo $ECHO_N "(cached) $ECHO_C" >&6 6382else 6383 case $SED in 6384 [\\/]* | ?:[\\/]*) 6385 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6386 ;; 6387 *) 6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6389for as_dir in $PATH 6390do 6391 IFS=$as_save_IFS 6392 test -z "$as_dir" && as_dir=. 6393 for ac_exec_ext in '' $ac_executable_extensions; do 6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6395 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6397 break 2 6398 fi 6399done 6400done 6401IFS=$as_save_IFS 6402 6403 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6404 ;; 6405esac 6406fi 6407SED=$ac_cv_path_SED 6408if test -n "$SED"; then 6409 { echo "$as_me:$LINENO: result: $SED" >&5 6410echo "${ECHO_T}$SED" >&6; } 6411else 6412 { echo "$as_me:$LINENO: result: no" >&5 6413echo "${ECHO_T}no" >&6; } 6414fi 6415 6416 6417# Extract the first word of "tar", so it can be a program name with args. 6418set dummy tar; ac_word=$2 6419{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6421if test "${ac_cv_path_TAR+set}" = set; then 6422 echo $ECHO_N "(cached) $ECHO_C" >&6 6423else 6424 case $TAR in 6425 [\\/]* | ?:[\\/]*) 6426 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6427 ;; 6428 *) 6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430for as_dir in $PATH 6431do 6432 IFS=$as_save_IFS 6433 test -z "$as_dir" && as_dir=. 6434 for ac_exec_ext in '' $ac_executable_extensions; do 6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6436 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6438 break 2 6439 fi 6440done 6441done 6442IFS=$as_save_IFS 6443 6444 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6445 ;; 6446esac 6447fi 6448TAR=$ac_cv_path_TAR 6449if test -n "$TAR"; then 6450 { echo "$as_me:$LINENO: result: $TAR" >&5 6451echo "${ECHO_T}$TAR" >&6; } 6452else 6453 { echo "$as_me:$LINENO: result: no" >&5 6454echo "${ECHO_T}no" >&6; } 6455fi 6456 6457 6458# Extract the first word of "pwd", so it can be a program name with args. 6459set dummy pwd; ac_word=$2 6460{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6462if test "${ac_cv_path_BINPWD+set}" = set; then 6463 echo $ECHO_N "(cached) $ECHO_C" >&6 6464else 6465 case $BINPWD in 6466 [\\/]* | ?:[\\/]*) 6467 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6468 ;; 6469 *) 6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6471for as_dir in $PATH 6472do 6473 IFS=$as_save_IFS 6474 test -z "$as_dir" && as_dir=. 6475 for ac_exec_ext in '' $ac_executable_extensions; do 6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6477 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6479 break 2 6480 fi 6481done 6482done 6483IFS=$as_save_IFS 6484 6485 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6486 ;; 6487esac 6488fi 6489BINPWD=$ac_cv_path_BINPWD 6490if test -n "$BINPWD"; then 6491 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6492echo "${ECHO_T}$BINPWD" >&6; } 6493else 6494 { echo "$as_me:$LINENO: result: no" >&5 6495echo "${ECHO_T}no" >&6; } 6496fi 6497 6498 6499 6500# Extract the first word of "Graphviz", so it can be a program name with args. 6501set dummy Graphviz; ac_word=$2 6502{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6504if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6505 echo $ECHO_N "(cached) $ECHO_C" >&6 6506else 6507 case $GRAPHVIZ in 6508 [\\/]* | ?:[\\/]*) 6509 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6510 ;; 6511 *) 6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6513for as_dir in $PATH 6514do 6515 IFS=$as_save_IFS 6516 test -z "$as_dir" && as_dir=. 6517 for ac_exec_ext in '' $ac_executable_extensions; do 6518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6519 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6521 break 2 6522 fi 6523done 6524done 6525IFS=$as_save_IFS 6526 6527 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6528 ;; 6529esac 6530fi 6531GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6532if test -n "$GRAPHVIZ"; then 6533 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6534echo "${ECHO_T}$GRAPHVIZ" >&6; } 6535else 6536 { echo "$as_me:$LINENO: result: no" >&5 6537echo "${ECHO_T}no" >&6; } 6538fi 6539 6540 6541if test "$GRAPHVIZ" != "echo Graphviz" ; then 6542 6543cat >>confdefs.h <<\_ACEOF 6544#define HAVE_GRAPHVIZ 1 6545_ACEOF 6546 6547 if test "$llvm_cv_os_type" = "MingW" ; then 6548 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6549 fi 6550 6551cat >>confdefs.h <<_ACEOF 6552#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6553_ACEOF 6554 6555fi 6556# Extract the first word of "dot", so it can be a program name with args. 6557set dummy dot; ac_word=$2 6558{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6560if test "${ac_cv_path_DOT+set}" = set; then 6561 echo $ECHO_N "(cached) $ECHO_C" >&6 6562else 6563 case $DOT in 6564 [\\/]* | ?:[\\/]*) 6565 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6566 ;; 6567 *) 6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6569for as_dir in $PATH 6570do 6571 IFS=$as_save_IFS 6572 test -z "$as_dir" && as_dir=. 6573 for ac_exec_ext in '' $ac_executable_extensions; do 6574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6575 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6577 break 2 6578 fi 6579done 6580done 6581IFS=$as_save_IFS 6582 6583 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6584 ;; 6585esac 6586fi 6587DOT=$ac_cv_path_DOT 6588if test -n "$DOT"; then 6589 { echo "$as_me:$LINENO: result: $DOT" >&5 6590echo "${ECHO_T}$DOT" >&6; } 6591else 6592 { echo "$as_me:$LINENO: result: no" >&5 6593echo "${ECHO_T}no" >&6; } 6594fi 6595 6596 6597if test "$DOT" != "echo dot" ; then 6598 6599cat >>confdefs.h <<\_ACEOF 6600#define HAVE_DOT 1 6601_ACEOF 6602 6603 if test "$llvm_cv_os_type" = "MingW" ; then 6604 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6605 fi 6606 6607cat >>confdefs.h <<_ACEOF 6608#define LLVM_PATH_DOT "$DOT${EXEEXT}" 6609_ACEOF 6610 6611fi 6612# Extract the first word of "fdp", so it can be a program name with args. 6613set dummy fdp; ac_word=$2 6614{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6616if test "${ac_cv_path_FDP+set}" = set; then 6617 echo $ECHO_N "(cached) $ECHO_C" >&6 6618else 6619 case $FDP in 6620 [\\/]* | ?:[\\/]*) 6621 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6622 ;; 6623 *) 6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6625for as_dir in $PATH 6626do 6627 IFS=$as_save_IFS 6628 test -z "$as_dir" && as_dir=. 6629 for ac_exec_ext in '' $ac_executable_extensions; do 6630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6631 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6633 break 2 6634 fi 6635done 6636done 6637IFS=$as_save_IFS 6638 6639 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6640 ;; 6641esac 6642fi 6643FDP=$ac_cv_path_FDP 6644if test -n "$FDP"; then 6645 { echo "$as_me:$LINENO: result: $FDP" >&5 6646echo "${ECHO_T}$FDP" >&6; } 6647else 6648 { echo "$as_me:$LINENO: result: no" >&5 6649echo "${ECHO_T}no" >&6; } 6650fi 6651 6652 6653if test "$FDP" != "echo fdp" ; then 6654 6655cat >>confdefs.h <<\_ACEOF 6656#define HAVE_FDP 1 6657_ACEOF 6658 6659 if test "$llvm_cv_os_type" = "MingW" ; then 6660 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6661 fi 6662 6663cat >>confdefs.h <<_ACEOF 6664#define LLVM_PATH_FDP "$FDP${EXEEXT}" 6665_ACEOF 6666 6667fi 6668# Extract the first word of "neato", so it can be a program name with args. 6669set dummy neato; ac_word=$2 6670{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6672if test "${ac_cv_path_NEATO+set}" = set; then 6673 echo $ECHO_N "(cached) $ECHO_C" >&6 6674else 6675 case $NEATO in 6676 [\\/]* | ?:[\\/]*) 6677 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6678 ;; 6679 *) 6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681for as_dir in $PATH 6682do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6687 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691done 6692done 6693IFS=$as_save_IFS 6694 6695 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6696 ;; 6697esac 6698fi 6699NEATO=$ac_cv_path_NEATO 6700if test -n "$NEATO"; then 6701 { echo "$as_me:$LINENO: result: $NEATO" >&5 6702echo "${ECHO_T}$NEATO" >&6; } 6703else 6704 { echo "$as_me:$LINENO: result: no" >&5 6705echo "${ECHO_T}no" >&6; } 6706fi 6707 6708 6709if test "$NEATO" != "echo neato" ; then 6710 6711cat >>confdefs.h <<\_ACEOF 6712#define HAVE_NEATO 1 6713_ACEOF 6714 6715 if test "$llvm_cv_os_type" = "MingW" ; then 6716 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6717 fi 6718 6719cat >>confdefs.h <<_ACEOF 6720#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6721_ACEOF 6722 6723fi 6724# Extract the first word of "twopi", so it can be a program name with args. 6725set dummy twopi; ac_word=$2 6726{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6728if test "${ac_cv_path_TWOPI+set}" = set; then 6729 echo $ECHO_N "(cached) $ECHO_C" >&6 6730else 6731 case $TWOPI in 6732 [\\/]* | ?:[\\/]*) 6733 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 6734 ;; 6735 *) 6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6737for as_dir in $PATH 6738do 6739 IFS=$as_save_IFS 6740 test -z "$as_dir" && as_dir=. 6741 for ac_exec_ext in '' $ac_executable_extensions; do 6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6743 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6745 break 2 6746 fi 6747done 6748done 6749IFS=$as_save_IFS 6750 6751 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 6752 ;; 6753esac 6754fi 6755TWOPI=$ac_cv_path_TWOPI 6756if test -n "$TWOPI"; then 6757 { echo "$as_me:$LINENO: result: $TWOPI" >&5 6758echo "${ECHO_T}$TWOPI" >&6; } 6759else 6760 { echo "$as_me:$LINENO: result: no" >&5 6761echo "${ECHO_T}no" >&6; } 6762fi 6763 6764 6765if test "$TWOPI" != "echo twopi" ; then 6766 6767cat >>confdefs.h <<\_ACEOF 6768#define HAVE_TWOPI 1 6769_ACEOF 6770 6771 if test "$llvm_cv_os_type" = "MingW" ; then 6772 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6773 fi 6774 6775cat >>confdefs.h <<_ACEOF 6776#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 6777_ACEOF 6778 6779fi 6780# Extract the first word of "circo", so it can be a program name with args. 6781set dummy circo; ac_word=$2 6782{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6784if test "${ac_cv_path_CIRCO+set}" = set; then 6785 echo $ECHO_N "(cached) $ECHO_C" >&6 6786else 6787 case $CIRCO in 6788 [\\/]* | ?:[\\/]*) 6789 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 6790 ;; 6791 *) 6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6793for as_dir in $PATH 6794do 6795 IFS=$as_save_IFS 6796 test -z "$as_dir" && as_dir=. 6797 for ac_exec_ext in '' $ac_executable_extensions; do 6798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6799 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 6800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6801 break 2 6802 fi 6803done 6804done 6805IFS=$as_save_IFS 6806 6807 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 6808 ;; 6809esac 6810fi 6811CIRCO=$ac_cv_path_CIRCO 6812if test -n "$CIRCO"; then 6813 { echo "$as_me:$LINENO: result: $CIRCO" >&5 6814echo "${ECHO_T}$CIRCO" >&6; } 6815else 6816 { echo "$as_me:$LINENO: result: no" >&5 6817echo "${ECHO_T}no" >&6; } 6818fi 6819 6820 6821if test "$CIRCO" != "echo circo" ; then 6822 6823cat >>confdefs.h <<\_ACEOF 6824#define HAVE_CIRCO 1 6825_ACEOF 6826 6827 if test "$llvm_cv_os_type" = "MingW" ; then 6828 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6829 fi 6830 6831cat >>confdefs.h <<_ACEOF 6832#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 6833_ACEOF 6834 6835fi 6836for ac_prog in gv gsview32 6837do 6838 # Extract the first word of "$ac_prog", so it can be a program name with args. 6839set dummy $ac_prog; ac_word=$2 6840{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6842if test "${ac_cv_path_GV+set}" = set; then 6843 echo $ECHO_N "(cached) $ECHO_C" >&6 6844else 6845 case $GV in 6846 [\\/]* | ?:[\\/]*) 6847 ac_cv_path_GV="$GV" # Let the user override the test with a path. 6848 ;; 6849 *) 6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6851for as_dir in $PATH 6852do 6853 IFS=$as_save_IFS 6854 test -z "$as_dir" && as_dir=. 6855 for ac_exec_ext in '' $ac_executable_extensions; do 6856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6857 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 6858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6859 break 2 6860 fi 6861done 6862done 6863IFS=$as_save_IFS 6864 6865 ;; 6866esac 6867fi 6868GV=$ac_cv_path_GV 6869if test -n "$GV"; then 6870 { echo "$as_me:$LINENO: result: $GV" >&5 6871echo "${ECHO_T}$GV" >&6; } 6872else 6873 { echo "$as_me:$LINENO: result: no" >&5 6874echo "${ECHO_T}no" >&6; } 6875fi 6876 6877 6878 test -n "$GV" && break 6879done 6880test -n "$GV" || GV="echo gv" 6881 6882if test "$GV" != "echo gv" ; then 6883 6884cat >>confdefs.h <<\_ACEOF 6885#define HAVE_GV 1 6886_ACEOF 6887 6888 if test "$llvm_cv_os_type" = "MingW" ; then 6889 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6890 fi 6891 6892cat >>confdefs.h <<_ACEOF 6893#define LLVM_PATH_GV "$GV${EXEEXT}" 6894_ACEOF 6895 6896fi 6897# Extract the first word of "dotty", so it can be a program name with args. 6898set dummy dotty; ac_word=$2 6899{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6901if test "${ac_cv_path_DOTTY+set}" = set; then 6902 echo $ECHO_N "(cached) $ECHO_C" >&6 6903else 6904 case $DOTTY in 6905 [\\/]* | ?:[\\/]*) 6906 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 6907 ;; 6908 *) 6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6910for as_dir in $PATH 6911do 6912 IFS=$as_save_IFS 6913 test -z "$as_dir" && as_dir=. 6914 for ac_exec_ext in '' $ac_executable_extensions; do 6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6916 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6918 break 2 6919 fi 6920done 6921done 6922IFS=$as_save_IFS 6923 6924 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 6925 ;; 6926esac 6927fi 6928DOTTY=$ac_cv_path_DOTTY 6929if test -n "$DOTTY"; then 6930 { echo "$as_me:$LINENO: result: $DOTTY" >&5 6931echo "${ECHO_T}$DOTTY" >&6; } 6932else 6933 { echo "$as_me:$LINENO: result: no" >&5 6934echo "${ECHO_T}no" >&6; } 6935fi 6936 6937 6938if test "$DOTTY" != "echo dotty" ; then 6939 6940cat >>confdefs.h <<\_ACEOF 6941#define HAVE_DOTTY 1 6942_ACEOF 6943 6944 if test "$llvm_cv_os_type" = "MingW" ; then 6945 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6946 fi 6947 6948cat >>confdefs.h <<_ACEOF 6949#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 6950_ACEOF 6951 6952fi 6953# Extract the first word of "xdot.py", so it can be a program name with args. 6954set dummy xdot.py; ac_word=$2 6955{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6957if test "${ac_cv_path_XDOT_PY+set}" = set; then 6958 echo $ECHO_N "(cached) $ECHO_C" >&6 6959else 6960 case $XDOT_PY in 6961 [\\/]* | ?:[\\/]*) 6962 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 6963 ;; 6964 *) 6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6966for as_dir in $PATH 6967do 6968 IFS=$as_save_IFS 6969 test -z "$as_dir" && as_dir=. 6970 for ac_exec_ext in '' $ac_executable_extensions; do 6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6972 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6974 break 2 6975 fi 6976done 6977done 6978IFS=$as_save_IFS 6979 6980 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 6981 ;; 6982esac 6983fi 6984XDOT_PY=$ac_cv_path_XDOT_PY 6985if test -n "$XDOT_PY"; then 6986 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 6987echo "${ECHO_T}$XDOT_PY" >&6; } 6988else 6989 { echo "$as_me:$LINENO: result: no" >&5 6990echo "${ECHO_T}no" >&6; } 6991fi 6992 6993 6994if test "$XDOT_PY" != "echo xdot.py" ; then 6995 6996cat >>confdefs.h <<\_ACEOF 6997#define HAVE_XDOT_PY 1 6998_ACEOF 6999 7000 if test "$llvm_cv_os_type" = "MingW" ; then 7001 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7002 fi 7003 7004cat >>confdefs.h <<_ACEOF 7005#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 7006_ACEOF 7007 7008fi 7009 7010# Find a good install program. We prefer a C program (faster), 7011# so one script is as good as another. But avoid the broken or 7012# incompatible versions: 7013# SysV /etc/install, /usr/sbin/install 7014# SunOS /usr/etc/install 7015# IRIX /sbin/install 7016# AIX /bin/install 7017# AmigaOS /C/install, which installs bootblocks on floppy discs 7018# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7019# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7020# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7021# OS/2's system install, which has a completely different semantic 7022# ./install, which can be erroneously created by make from ./install.sh. 7023{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 7024echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 7025if test -z "$INSTALL"; then 7026if test "${ac_cv_path_install+set}" = set; then 7027 echo $ECHO_N "(cached) $ECHO_C" >&6 7028else 7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7030for as_dir in $PATH 7031do 7032 IFS=$as_save_IFS 7033 test -z "$as_dir" && as_dir=. 7034 # Account for people who put trailing slashes in PATH elements. 7035case $as_dir/ in 7036 ./ | .// | /cC/* | \ 7037 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7038 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 7039 /usr/ucb/* ) ;; 7040 *) 7041 # OSF1 and SCO ODT 3.0 have their own names for install. 7042 # Don't use installbsd from OSF since it installs stuff as root 7043 # by default. 7044 for ac_prog in ginstall scoinst install; do 7045 for ac_exec_ext in '' $ac_executable_extensions; do 7046 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 7047 if test $ac_prog = install && 7048 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7049 # AIX install. It has an incompatible calling convention. 7050 : 7051 elif test $ac_prog = install && 7052 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7053 # program-specific install script used by HP pwplus--don't use. 7054 : 7055 else 7056 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7057 break 3 7058 fi 7059 fi 7060 done 7061 done 7062 ;; 7063esac 7064done 7065IFS=$as_save_IFS 7066 7067 7068fi 7069 if test "${ac_cv_path_install+set}" = set; then 7070 INSTALL=$ac_cv_path_install 7071 else 7072 # As a last resort, use the slow shell script. Don't cache a 7073 # value for INSTALL within a source directory, because that will 7074 # break other packages using the cache if that directory is 7075 # removed, or if the value is a relative name. 7076 INSTALL=$ac_install_sh 7077 fi 7078fi 7079{ echo "$as_me:$LINENO: result: $INSTALL" >&5 7080echo "${ECHO_T}$INSTALL" >&6; } 7081 7082# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7083# It thinks the first close brace ends the variable substitution. 7084test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7085 7086test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7087 7088test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7089 7090case "$INSTALL" in 7091 [\\/$]* | ?:[\\/]* ) ;; 7092 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 7093esac 7094 7095# Extract the first word of "bzip2", so it can be a program name with args. 7096set dummy bzip2; ac_word=$2 7097{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7099if test "${ac_cv_path_BZIP2+set}" = set; then 7100 echo $ECHO_N "(cached) $ECHO_C" >&6 7101else 7102 case $BZIP2 in 7103 [\\/]* | ?:[\\/]*) 7104 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7105 ;; 7106 *) 7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7108for as_dir in $PATH 7109do 7110 IFS=$as_save_IFS 7111 test -z "$as_dir" && as_dir=. 7112 for ac_exec_ext in '' $ac_executable_extensions; do 7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7114 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7116 break 2 7117 fi 7118done 7119done 7120IFS=$as_save_IFS 7121 7122 ;; 7123esac 7124fi 7125BZIP2=$ac_cv_path_BZIP2 7126if test -n "$BZIP2"; then 7127 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7128echo "${ECHO_T}$BZIP2" >&6; } 7129else 7130 { echo "$as_me:$LINENO: result: no" >&5 7131echo "${ECHO_T}no" >&6; } 7132fi 7133 7134 7135# Extract the first word of "cat", so it can be a program name with args. 7136set dummy cat; ac_word=$2 7137{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7139if test "${ac_cv_path_CAT+set}" = set; then 7140 echo $ECHO_N "(cached) $ECHO_C" >&6 7141else 7142 case $CAT in 7143 [\\/]* | ?:[\\/]*) 7144 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 7145 ;; 7146 *) 7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7148for as_dir in $PATH 7149do 7150 IFS=$as_save_IFS 7151 test -z "$as_dir" && as_dir=. 7152 for ac_exec_ext in '' $ac_executable_extensions; do 7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7154 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 7155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7156 break 2 7157 fi 7158done 7159done 7160IFS=$as_save_IFS 7161 7162 ;; 7163esac 7164fi 7165CAT=$ac_cv_path_CAT 7166if test -n "$CAT"; then 7167 { echo "$as_me:$LINENO: result: $CAT" >&5 7168echo "${ECHO_T}$CAT" >&6; } 7169else 7170 { echo "$as_me:$LINENO: result: no" >&5 7171echo "${ECHO_T}no" >&6; } 7172fi 7173 7174 7175# Extract the first word of "doxygen", so it can be a program name with args. 7176set dummy doxygen; ac_word=$2 7177{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7179if test "${ac_cv_path_DOXYGEN+set}" = set; then 7180 echo $ECHO_N "(cached) $ECHO_C" >&6 7181else 7182 case $DOXYGEN in 7183 [\\/]* | ?:[\\/]*) 7184 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7185 ;; 7186 *) 7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7188for as_dir in $PATH 7189do 7190 IFS=$as_save_IFS 7191 test -z "$as_dir" && as_dir=. 7192 for ac_exec_ext in '' $ac_executable_extensions; do 7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7194 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7196 break 2 7197 fi 7198done 7199done 7200IFS=$as_save_IFS 7201 7202 ;; 7203esac 7204fi 7205DOXYGEN=$ac_cv_path_DOXYGEN 7206if test -n "$DOXYGEN"; then 7207 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7208echo "${ECHO_T}$DOXYGEN" >&6; } 7209else 7210 { echo "$as_me:$LINENO: result: no" >&5 7211echo "${ECHO_T}no" >&6; } 7212fi 7213 7214 7215# Extract the first word of "groff", so it can be a program name with args. 7216set dummy groff; ac_word=$2 7217{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7219if test "${ac_cv_path_GROFF+set}" = set; then 7220 echo $ECHO_N "(cached) $ECHO_C" >&6 7221else 7222 case $GROFF in 7223 [\\/]* | ?:[\\/]*) 7224 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7225 ;; 7226 *) 7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7228for as_dir in $PATH 7229do 7230 IFS=$as_save_IFS 7231 test -z "$as_dir" && as_dir=. 7232 for ac_exec_ext in '' $ac_executable_extensions; do 7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7234 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7236 break 2 7237 fi 7238done 7239done 7240IFS=$as_save_IFS 7241 7242 ;; 7243esac 7244fi 7245GROFF=$ac_cv_path_GROFF 7246if test -n "$GROFF"; then 7247 { echo "$as_me:$LINENO: result: $GROFF" >&5 7248echo "${ECHO_T}$GROFF" >&6; } 7249else 7250 { echo "$as_me:$LINENO: result: no" >&5 7251echo "${ECHO_T}no" >&6; } 7252fi 7253 7254 7255# Extract the first word of "gzip", so it can be a program name with args. 7256set dummy gzip; ac_word=$2 7257{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7259if test "${ac_cv_path_GZIPBIN+set}" = set; then 7260 echo $ECHO_N "(cached) $ECHO_C" >&6 7261else 7262 case $GZIPBIN in 7263 [\\/]* | ?:[\\/]*) 7264 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7265 ;; 7266 *) 7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7268for as_dir in $PATH 7269do 7270 IFS=$as_save_IFS 7271 test -z "$as_dir" && as_dir=. 7272 for ac_exec_ext in '' $ac_executable_extensions; do 7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7274 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7276 break 2 7277 fi 7278done 7279done 7280IFS=$as_save_IFS 7281 7282 ;; 7283esac 7284fi 7285GZIPBIN=$ac_cv_path_GZIPBIN 7286if test -n "$GZIPBIN"; then 7287 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7288echo "${ECHO_T}$GZIPBIN" >&6; } 7289else 7290 { echo "$as_me:$LINENO: result: no" >&5 7291echo "${ECHO_T}no" >&6; } 7292fi 7293 7294 7295# Extract the first word of "pdfroff", so it can be a program name with args. 7296set dummy pdfroff; ac_word=$2 7297{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7299if test "${ac_cv_path_PDFROFF+set}" = set; then 7300 echo $ECHO_N "(cached) $ECHO_C" >&6 7301else 7302 case $PDFROFF in 7303 [\\/]* | ?:[\\/]*) 7304 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7305 ;; 7306 *) 7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7308for as_dir in $PATH 7309do 7310 IFS=$as_save_IFS 7311 test -z "$as_dir" && as_dir=. 7312 for ac_exec_ext in '' $ac_executable_extensions; do 7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7314 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7316 break 2 7317 fi 7318done 7319done 7320IFS=$as_save_IFS 7321 7322 ;; 7323esac 7324fi 7325PDFROFF=$ac_cv_path_PDFROFF 7326if test -n "$PDFROFF"; then 7327 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7328echo "${ECHO_T}$PDFROFF" >&6; } 7329else 7330 { echo "$as_me:$LINENO: result: no" >&5 7331echo "${ECHO_T}no" >&6; } 7332fi 7333 7334 7335# Extract the first word of "zip", so it can be a program name with args. 7336set dummy zip; ac_word=$2 7337{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7339if test "${ac_cv_path_ZIP+set}" = set; then 7340 echo $ECHO_N "(cached) $ECHO_C" >&6 7341else 7342 case $ZIP in 7343 [\\/]* | ?:[\\/]*) 7344 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7345 ;; 7346 *) 7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7348for as_dir in $PATH 7349do 7350 IFS=$as_save_IFS 7351 test -z "$as_dir" && as_dir=. 7352 for ac_exec_ext in '' $ac_executable_extensions; do 7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7354 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7356 break 2 7357 fi 7358done 7359done 7360IFS=$as_save_IFS 7361 7362 ;; 7363esac 7364fi 7365ZIP=$ac_cv_path_ZIP 7366if test -n "$ZIP"; then 7367 { echo "$as_me:$LINENO: result: $ZIP" >&5 7368echo "${ECHO_T}$ZIP" >&6; } 7369else 7370 { echo "$as_me:$LINENO: result: no" >&5 7371echo "${ECHO_T}no" >&6; } 7372fi 7373 7374 7375for ac_prog in ocamlc 7376do 7377 # Extract the first word of "$ac_prog", so it can be a program name with args. 7378set dummy $ac_prog; ac_word=$2 7379{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7381if test "${ac_cv_path_OCAMLC+set}" = set; then 7382 echo $ECHO_N "(cached) $ECHO_C" >&6 7383else 7384 case $OCAMLC in 7385 [\\/]* | ?:[\\/]*) 7386 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7387 ;; 7388 *) 7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7390for as_dir in $PATH 7391do 7392 IFS=$as_save_IFS 7393 test -z "$as_dir" && as_dir=. 7394 for ac_exec_ext in '' $ac_executable_extensions; do 7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7396 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7398 break 2 7399 fi 7400done 7401done 7402IFS=$as_save_IFS 7403 7404 ;; 7405esac 7406fi 7407OCAMLC=$ac_cv_path_OCAMLC 7408if test -n "$OCAMLC"; then 7409 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7410echo "${ECHO_T}$OCAMLC" >&6; } 7411else 7412 { echo "$as_me:$LINENO: result: no" >&5 7413echo "${ECHO_T}no" >&6; } 7414fi 7415 7416 7417 test -n "$OCAMLC" && break 7418done 7419 7420for ac_prog in ocamlopt 7421do 7422 # Extract the first word of "$ac_prog", so it can be a program name with args. 7423set dummy $ac_prog; ac_word=$2 7424{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7426if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7427 echo $ECHO_N "(cached) $ECHO_C" >&6 7428else 7429 case $OCAMLOPT in 7430 [\\/]* | ?:[\\/]*) 7431 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7432 ;; 7433 *) 7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7435for as_dir in $PATH 7436do 7437 IFS=$as_save_IFS 7438 test -z "$as_dir" && as_dir=. 7439 for ac_exec_ext in '' $ac_executable_extensions; do 7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7441 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7443 break 2 7444 fi 7445done 7446done 7447IFS=$as_save_IFS 7448 7449 ;; 7450esac 7451fi 7452OCAMLOPT=$ac_cv_path_OCAMLOPT 7453if test -n "$OCAMLOPT"; then 7454 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7455echo "${ECHO_T}$OCAMLOPT" >&6; } 7456else 7457 { echo "$as_me:$LINENO: result: no" >&5 7458echo "${ECHO_T}no" >&6; } 7459fi 7460 7461 7462 test -n "$OCAMLOPT" && break 7463done 7464 7465for ac_prog in ocamldep 7466do 7467 # Extract the first word of "$ac_prog", so it can be a program name with args. 7468set dummy $ac_prog; ac_word=$2 7469{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7471if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7472 echo $ECHO_N "(cached) $ECHO_C" >&6 7473else 7474 case $OCAMLDEP in 7475 [\\/]* | ?:[\\/]*) 7476 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7477 ;; 7478 *) 7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7480for as_dir in $PATH 7481do 7482 IFS=$as_save_IFS 7483 test -z "$as_dir" && as_dir=. 7484 for ac_exec_ext in '' $ac_executable_extensions; do 7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7486 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7488 break 2 7489 fi 7490done 7491done 7492IFS=$as_save_IFS 7493 7494 ;; 7495esac 7496fi 7497OCAMLDEP=$ac_cv_path_OCAMLDEP 7498if test -n "$OCAMLDEP"; then 7499 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7500echo "${ECHO_T}$OCAMLDEP" >&6; } 7501else 7502 { echo "$as_me:$LINENO: result: no" >&5 7503echo "${ECHO_T}no" >&6; } 7504fi 7505 7506 7507 test -n "$OCAMLDEP" && break 7508done 7509 7510for ac_prog in ocamldoc 7511do 7512 # Extract the first word of "$ac_prog", so it can be a program name with args. 7513set dummy $ac_prog; ac_word=$2 7514{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7516if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7517 echo $ECHO_N "(cached) $ECHO_C" >&6 7518else 7519 case $OCAMLDOC in 7520 [\\/]* | ?:[\\/]*) 7521 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7522 ;; 7523 *) 7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7525for as_dir in $PATH 7526do 7527 IFS=$as_save_IFS 7528 test -z "$as_dir" && as_dir=. 7529 for ac_exec_ext in '' $ac_executable_extensions; do 7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7531 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7533 break 2 7534 fi 7535done 7536done 7537IFS=$as_save_IFS 7538 7539 ;; 7540esac 7541fi 7542OCAMLDOC=$ac_cv_path_OCAMLDOC 7543if test -n "$OCAMLDOC"; then 7544 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7545echo "${ECHO_T}$OCAMLDOC" >&6; } 7546else 7547 { echo "$as_me:$LINENO: result: no" >&5 7548echo "${ECHO_T}no" >&6; } 7549fi 7550 7551 7552 test -n "$OCAMLDOC" && break 7553done 7554 7555for ac_prog in gas as 7556do 7557 # Extract the first word of "$ac_prog", so it can be a program name with args. 7558set dummy $ac_prog; ac_word=$2 7559{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7561if test "${ac_cv_path_GAS+set}" = set; then 7562 echo $ECHO_N "(cached) $ECHO_C" >&6 7563else 7564 case $GAS in 7565 [\\/]* | ?:[\\/]*) 7566 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7567 ;; 7568 *) 7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7570for as_dir in $PATH 7571do 7572 IFS=$as_save_IFS 7573 test -z "$as_dir" && as_dir=. 7574 for ac_exec_ext in '' $ac_executable_extensions; do 7575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7576 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7578 break 2 7579 fi 7580done 7581done 7582IFS=$as_save_IFS 7583 7584 ;; 7585esac 7586fi 7587GAS=$ac_cv_path_GAS 7588if test -n "$GAS"; then 7589 { echo "$as_me:$LINENO: result: $GAS" >&5 7590echo "${ECHO_T}$GAS" >&6; } 7591else 7592 { echo "$as_me:$LINENO: result: no" >&5 7593echo "${ECHO_T}no" >&6; } 7594fi 7595 7596 7597 test -n "$GAS" && break 7598done 7599 7600 7601{ echo "$as_me:$LINENO: checking for linker version" >&5 7602echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7603if test "${llvm_cv_link_version+set}" = set; then 7604 echo $ECHO_N "(cached) $ECHO_C" >&6 7605else 7606 7607 version_string="$(ld -v 2>&1 | head -1)" 7608 7609 # Check for ld64. 7610 if (echo "$version_string" | grep -q "ld64"); then 7611 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7612 else 7613 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7614 fi 7615 7616fi 7617{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7618echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7619 7620cat >>confdefs.h <<_ACEOF 7621#define HOST_LINK_VERSION "$llvm_cv_link_version" 7622_ACEOF 7623 7624 7625 7626{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7627echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7628if test "${llvm_cv_link_use_r+set}" = set; then 7629 echo $ECHO_N "(cached) $ECHO_C" >&6 7630else 7631 ac_ext=c 7632ac_cpp='$CPP $CPPFLAGS' 7633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7635ac_compiler_gnu=$ac_cv_c_compiler_gnu 7636 7637 oldcflags="$CFLAGS" 7638 CFLAGS="$CFLAGS -Wl,-R." 7639 cat >conftest.$ac_ext <<_ACEOF 7640/* confdefs.h. */ 7641_ACEOF 7642cat confdefs.h >>conftest.$ac_ext 7643cat >>conftest.$ac_ext <<_ACEOF 7644/* end confdefs.h. */ 7645 7646int 7647main () 7648{ 7649 7650 ; 7651 return 0; 7652} 7653_ACEOF 7654rm -f conftest.$ac_objext conftest$ac_exeext 7655if { (ac_try="$ac_link" 7656case "(($ac_try" in 7657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7658 *) ac_try_echo=$ac_try;; 7659esac 7660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7661 (eval "$ac_link") 2>conftest.er1 7662 ac_status=$? 7663 grep -v '^ *+' conftest.er1 >conftest.err 7664 rm -f conftest.er1 7665 cat conftest.err >&5 7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7667 (exit $ac_status); } && 7668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7669 { (case "(($ac_try" in 7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7671 *) ac_try_echo=$ac_try;; 7672esac 7673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7674 (eval "$ac_try") 2>&5 7675 ac_status=$? 7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7677 (exit $ac_status); }; } && 7678 { ac_try='test -s conftest$ac_exeext' 7679 { (case "(($ac_try" in 7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7681 *) ac_try_echo=$ac_try;; 7682esac 7683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7684 (eval "$ac_try") 2>&5 7685 ac_status=$? 7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7687 (exit $ac_status); }; }; then 7688 llvm_cv_link_use_r=yes 7689else 7690 echo "$as_me: failed program was:" >&5 7691sed 's/^/| /' conftest.$ac_ext >&5 7692 7693 llvm_cv_link_use_r=no 7694fi 7695 7696rm -f core conftest.err conftest.$ac_objext \ 7697 conftest$ac_exeext conftest.$ac_ext 7698 CFLAGS="$oldcflags" 7699 ac_ext=c 7700ac_cpp='$CPP $CPPFLAGS' 7701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7703ac_compiler_gnu=$ac_cv_c_compiler_gnu 7704 7705 7706fi 7707{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7708echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7709if test "$llvm_cv_link_use_r" = yes ; then 7710 7711cat >>confdefs.h <<\_ACEOF 7712#define HAVE_LINK_R 1 7713_ACEOF 7714 7715 fi 7716 7717 7718{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 7719echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 7720if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7721 echo $ECHO_N "(cached) $ECHO_C" >&6 7722else 7723 ac_ext=c 7724ac_cpp='$CPP $CPPFLAGS' 7725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7727ac_compiler_gnu=$ac_cv_c_compiler_gnu 7728 7729 oldcflags="$CFLAGS" 7730 CFLAGS="$CFLAGS -Wl,-export-dynamic" 7731 cat >conftest.$ac_ext <<_ACEOF 7732/* confdefs.h. */ 7733_ACEOF 7734cat confdefs.h >>conftest.$ac_ext 7735cat >>conftest.$ac_ext <<_ACEOF 7736/* end confdefs.h. */ 7737 7738int 7739main () 7740{ 7741 7742 ; 7743 return 0; 7744} 7745_ACEOF 7746rm -f conftest.$ac_objext conftest$ac_exeext 7747if { (ac_try="$ac_link" 7748case "(($ac_try" in 7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7750 *) ac_try_echo=$ac_try;; 7751esac 7752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7753 (eval "$ac_link") 2>conftest.er1 7754 ac_status=$? 7755 grep -v '^ *+' conftest.er1 >conftest.err 7756 rm -f conftest.er1 7757 cat conftest.err >&5 7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7759 (exit $ac_status); } && 7760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7761 { (case "(($ac_try" in 7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7763 *) ac_try_echo=$ac_try;; 7764esac 7765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7766 (eval "$ac_try") 2>&5 7767 ac_status=$? 7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7769 (exit $ac_status); }; } && 7770 { ac_try='test -s conftest$ac_exeext' 7771 { (case "(($ac_try" in 7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7773 *) ac_try_echo=$ac_try;; 7774esac 7775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7776 (eval "$ac_try") 2>&5 7777 ac_status=$? 7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7779 (exit $ac_status); }; }; then 7780 llvm_cv_link_use_export_dynamic=yes 7781else 7782 echo "$as_me: failed program was:" >&5 7783sed 's/^/| /' conftest.$ac_ext >&5 7784 7785 llvm_cv_link_use_export_dynamic=no 7786fi 7787 7788rm -f core conftest.err conftest.$ac_objext \ 7789 conftest$ac_exeext conftest.$ac_ext 7790 CFLAGS="$oldcflags" 7791 ac_ext=c 7792ac_cpp='$CPP $CPPFLAGS' 7793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7795ac_compiler_gnu=$ac_cv_c_compiler_gnu 7796 7797 7798fi 7799{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 7800echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 7801if test "$llvm_cv_link_use_export_dynamic" = yes ; then 7802 7803cat >>confdefs.h <<\_ACEOF 7804#define HAVE_LINK_EXPORT_DYNAMIC 1 7805_ACEOF 7806 7807 fi 7808 7809 7810{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 7811echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 7812if test "${llvm_cv_link_use_version_script+set}" = set; then 7813 echo $ECHO_N "(cached) $ECHO_C" >&6 7814else 7815 ac_ext=c 7816ac_cpp='$CPP $CPPFLAGS' 7817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7819ac_compiler_gnu=$ac_cv_c_compiler_gnu 7820 7821 oldcflags="$CFLAGS" 7822 7823 # The following code is from the autoconf manual, 7824 # "11.13: Limitations of Usual Tools". 7825 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 7826 # Use mktemp if possible; otherwise fall back on mkdir, 7827 # with $RANDOM to make collisions less likely. 7828 : ${TMPDIR=/tmp} 7829 { 7830 tmp=` 7831 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 7832 ` && 7833 test -n "$tmp" && test -d "$tmp" 7834 } || { 7835 tmp=$TMPDIR/foo$$-$RANDOM 7836 (umask 077 && mkdir "$tmp") 7837 } || exit $? 7838 7839 echo "{" > "$tmp/export.map" 7840 echo " global: main;" >> "$tmp/export.map" 7841 echo " local: *;" >> "$tmp/export.map" 7842 echo "};" >> "$tmp/export.map" 7843 7844 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 7845 cat >conftest.$ac_ext <<_ACEOF 7846/* confdefs.h. */ 7847_ACEOF 7848cat confdefs.h >>conftest.$ac_ext 7849cat >>conftest.$ac_ext <<_ACEOF 7850/* end confdefs.h. */ 7851 7852int 7853main () 7854{ 7855 7856 ; 7857 return 0; 7858} 7859_ACEOF 7860rm -f conftest.$ac_objext conftest$ac_exeext 7861if { (ac_try="$ac_link" 7862case "(($ac_try" in 7863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7864 *) ac_try_echo=$ac_try;; 7865esac 7866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7867 (eval "$ac_link") 2>conftest.er1 7868 ac_status=$? 7869 grep -v '^ *+' conftest.er1 >conftest.err 7870 rm -f conftest.er1 7871 cat conftest.err >&5 7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7873 (exit $ac_status); } && 7874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7875 { (case "(($ac_try" in 7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7877 *) ac_try_echo=$ac_try;; 7878esac 7879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7880 (eval "$ac_try") 2>&5 7881 ac_status=$? 7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7883 (exit $ac_status); }; } && 7884 { ac_try='test -s conftest$ac_exeext' 7885 { (case "(($ac_try" in 7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7887 *) ac_try_echo=$ac_try;; 7888esac 7889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7890 (eval "$ac_try") 2>&5 7891 ac_status=$? 7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7893 (exit $ac_status); }; }; then 7894 llvm_cv_link_use_version_script=yes 7895else 7896 echo "$as_me: failed program was:" >&5 7897sed 's/^/| /' conftest.$ac_ext >&5 7898 7899 llvm_cv_link_use_version_script=no 7900fi 7901 7902rm -f core conftest.err conftest.$ac_objext \ 7903 conftest$ac_exeext conftest.$ac_ext 7904 rm "$tmp/export.map" 7905 rmdir "$tmp" 7906 CFLAGS="$oldcflags" 7907 ac_ext=c 7908ac_cpp='$CPP $CPPFLAGS' 7909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7911ac_compiler_gnu=$ac_cv_c_compiler_gnu 7912 7913 7914fi 7915{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 7916echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 7917if test "$llvm_cv_link_use_version_script" = yes ; then 7918 HAVE_LINK_VERSION_SCRIPT=1 7919 7920 fi 7921 7922 7923 7924 7925{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7926echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 7927if test "${ac_cv_c_const+set}" = set; then 7928 echo $ECHO_N "(cached) $ECHO_C" >&6 7929else 7930 cat >conftest.$ac_ext <<_ACEOF 7931/* confdefs.h. */ 7932_ACEOF 7933cat confdefs.h >>conftest.$ac_ext 7934cat >>conftest.$ac_ext <<_ACEOF 7935/* end confdefs.h. */ 7936 7937int 7938main () 7939{ 7940/* FIXME: Include the comments suggested by Paul. */ 7941#ifndef __cplusplus 7942 /* Ultrix mips cc rejects this. */ 7943 typedef int charset[2]; 7944 const charset x; 7945 /* SunOS 4.1.1 cc rejects this. */ 7946 char const *const *ccp; 7947 char **p; 7948 /* NEC SVR4.0.2 mips cc rejects this. */ 7949 struct point {int x, y;}; 7950 static struct point const zero = {0,0}; 7951 /* AIX XL C 1.02.0.0 rejects this. 7952 It does not let you subtract one const X* pointer from another in 7953 an arm of an if-expression whose if-part is not a constant 7954 expression */ 7955 const char *g = "string"; 7956 ccp = &g + (g ? g-g : 0); 7957 /* HPUX 7.0 cc rejects these. */ 7958 ++ccp; 7959 p = (char**) ccp; 7960 ccp = (char const *const *) p; 7961 { /* SCO 3.2v4 cc rejects this. */ 7962 char *t; 7963 char const *s = 0 ? (char *) 0 : (char const *) 0; 7964 7965 *t++ = 0; 7966 if (s) return 0; 7967 } 7968 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7969 int x[] = {25, 17}; 7970 const int *foo = &x[0]; 7971 ++foo; 7972 } 7973 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7974 typedef const int *iptr; 7975 iptr p = 0; 7976 ++p; 7977 } 7978 { /* AIX XL C 1.02.0.0 rejects this saying 7979 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7980 struct s { int j; const int *ap[3]; }; 7981 struct s *b; b->j = 5; 7982 } 7983 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7984 const int foo = 10; 7985 if (!foo) return 0; 7986 } 7987 return !x[0] && !zero.x; 7988#endif 7989 7990 ; 7991 return 0; 7992} 7993_ACEOF 7994rm -f conftest.$ac_objext 7995if { (ac_try="$ac_compile" 7996case "(($ac_try" in 7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7998 *) ac_try_echo=$ac_try;; 7999esac 8000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8001 (eval "$ac_compile") 2>conftest.er1 8002 ac_status=$? 8003 grep -v '^ *+' conftest.er1 >conftest.err 8004 rm -f conftest.er1 8005 cat conftest.err >&5 8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8007 (exit $ac_status); } && 8008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8009 { (case "(($ac_try" in 8010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8011 *) ac_try_echo=$ac_try;; 8012esac 8013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8014 (eval "$ac_try") 2>&5 8015 ac_status=$? 8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8017 (exit $ac_status); }; } && 8018 { ac_try='test -s conftest.$ac_objext' 8019 { (case "(($ac_try" in 8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8021 *) ac_try_echo=$ac_try;; 8022esac 8023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8024 (eval "$ac_try") 2>&5 8025 ac_status=$? 8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8027 (exit $ac_status); }; }; then 8028 ac_cv_c_const=yes 8029else 8030 echo "$as_me: failed program was:" >&5 8031sed 's/^/| /' conftest.$ac_ext >&5 8032 8033 ac_cv_c_const=no 8034fi 8035 8036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8037fi 8038{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8039echo "${ECHO_T}$ac_cv_c_const" >&6; } 8040if test $ac_cv_c_const = no; then 8041 8042cat >>confdefs.h <<\_ACEOF 8043#define const 8044_ACEOF 8045 8046fi 8047 8048 8049 8050 8051 8052 8053ac_header_dirent=no 8054for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8055 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8056{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8057echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8059 echo $ECHO_N "(cached) $ECHO_C" >&6 8060else 8061 cat >conftest.$ac_ext <<_ACEOF 8062/* confdefs.h. */ 8063_ACEOF 8064cat confdefs.h >>conftest.$ac_ext 8065cat >>conftest.$ac_ext <<_ACEOF 8066/* end confdefs.h. */ 8067#include <sys/types.h> 8068#include <$ac_hdr> 8069 8070int 8071main () 8072{ 8073if ((DIR *) 0) 8074return 0; 8075 ; 8076 return 0; 8077} 8078_ACEOF 8079rm -f conftest.$ac_objext 8080if { (ac_try="$ac_compile" 8081case "(($ac_try" in 8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8083 *) ac_try_echo=$ac_try;; 8084esac 8085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8086 (eval "$ac_compile") 2>conftest.er1 8087 ac_status=$? 8088 grep -v '^ *+' conftest.er1 >conftest.err 8089 rm -f conftest.er1 8090 cat conftest.err >&5 8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8092 (exit $ac_status); } && 8093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 8103 { ac_try='test -s conftest.$ac_objext' 8104 { (case "(($ac_try" in 8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8106 *) ac_try_echo=$ac_try;; 8107esac 8108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8109 (eval "$ac_try") 2>&5 8110 ac_status=$? 8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8112 (exit $ac_status); }; }; then 8113 eval "$as_ac_Header=yes" 8114else 8115 echo "$as_me: failed program was:" >&5 8116sed 's/^/| /' conftest.$ac_ext >&5 8117 8118 eval "$as_ac_Header=no" 8119fi 8120 8121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8122fi 8123ac_res=`eval echo '${'$as_ac_Header'}'` 8124 { echo "$as_me:$LINENO: result: $ac_res" >&5 8125echo "${ECHO_T}$ac_res" >&6; } 8126if test `eval echo '${'$as_ac_Header'}'` = yes; then 8127 cat >>confdefs.h <<_ACEOF 8128#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8129_ACEOF 8130 8131ac_header_dirent=$ac_hdr; break 8132fi 8133 8134done 8135# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8136if test $ac_header_dirent = dirent.h; then 8137 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8138echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8139if test "${ac_cv_search_opendir+set}" = set; then 8140 echo $ECHO_N "(cached) $ECHO_C" >&6 8141else 8142 ac_func_search_save_LIBS=$LIBS 8143cat >conftest.$ac_ext <<_ACEOF 8144/* confdefs.h. */ 8145_ACEOF 8146cat confdefs.h >>conftest.$ac_ext 8147cat >>conftest.$ac_ext <<_ACEOF 8148/* end confdefs.h. */ 8149 8150/* Override any GCC internal prototype to avoid an error. 8151 Use char because int might match the return type of a GCC 8152 builtin and then its argument prototype would still apply. */ 8153#ifdef __cplusplus 8154extern "C" 8155#endif 8156char opendir (); 8157int 8158main () 8159{ 8160return opendir (); 8161 ; 8162 return 0; 8163} 8164_ACEOF 8165for ac_lib in '' dir; do 8166 if test -z "$ac_lib"; then 8167 ac_res="none required" 8168 else 8169 ac_res=-l$ac_lib 8170 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8171 fi 8172 rm -f conftest.$ac_objext conftest$ac_exeext 8173if { (ac_try="$ac_link" 8174case "(($ac_try" in 8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8176 *) ac_try_echo=$ac_try;; 8177esac 8178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8179 (eval "$ac_link") 2>conftest.er1 8180 ac_status=$? 8181 grep -v '^ *+' conftest.er1 >conftest.err 8182 rm -f conftest.er1 8183 cat conftest.err >&5 8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8185 (exit $ac_status); } && 8186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8187 { (case "(($ac_try" in 8188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8189 *) ac_try_echo=$ac_try;; 8190esac 8191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8192 (eval "$ac_try") 2>&5 8193 ac_status=$? 8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8195 (exit $ac_status); }; } && 8196 { ac_try='test -s conftest$ac_exeext' 8197 { (case "(($ac_try" in 8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8199 *) ac_try_echo=$ac_try;; 8200esac 8201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8202 (eval "$ac_try") 2>&5 8203 ac_status=$? 8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8205 (exit $ac_status); }; }; then 8206 ac_cv_search_opendir=$ac_res 8207else 8208 echo "$as_me: failed program was:" >&5 8209sed 's/^/| /' conftest.$ac_ext >&5 8210 8211 8212fi 8213 8214rm -f core conftest.err conftest.$ac_objext \ 8215 conftest$ac_exeext 8216 if test "${ac_cv_search_opendir+set}" = set; then 8217 break 8218fi 8219done 8220if test "${ac_cv_search_opendir+set}" = set; then 8221 : 8222else 8223 ac_cv_search_opendir=no 8224fi 8225rm conftest.$ac_ext 8226LIBS=$ac_func_search_save_LIBS 8227fi 8228{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8229echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8230ac_res=$ac_cv_search_opendir 8231if test "$ac_res" != no; then 8232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8233 8234fi 8235 8236else 8237 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8238echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8239if test "${ac_cv_search_opendir+set}" = set; then 8240 echo $ECHO_N "(cached) $ECHO_C" >&6 8241else 8242 ac_func_search_save_LIBS=$LIBS 8243cat >conftest.$ac_ext <<_ACEOF 8244/* confdefs.h. */ 8245_ACEOF 8246cat confdefs.h >>conftest.$ac_ext 8247cat >>conftest.$ac_ext <<_ACEOF 8248/* end confdefs.h. */ 8249 8250/* Override any GCC internal prototype to avoid an error. 8251 Use char because int might match the return type of a GCC 8252 builtin and then its argument prototype would still apply. */ 8253#ifdef __cplusplus 8254extern "C" 8255#endif 8256char opendir (); 8257int 8258main () 8259{ 8260return opendir (); 8261 ; 8262 return 0; 8263} 8264_ACEOF 8265for ac_lib in '' x; do 8266 if test -z "$ac_lib"; then 8267 ac_res="none required" 8268 else 8269 ac_res=-l$ac_lib 8270 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8271 fi 8272 rm -f conftest.$ac_objext conftest$ac_exeext 8273if { (ac_try="$ac_link" 8274case "(($ac_try" in 8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8276 *) ac_try_echo=$ac_try;; 8277esac 8278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8279 (eval "$ac_link") 2>conftest.er1 8280 ac_status=$? 8281 grep -v '^ *+' conftest.er1 >conftest.err 8282 rm -f conftest.er1 8283 cat conftest.err >&5 8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8285 (exit $ac_status); } && 8286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8287 { (case "(($ac_try" in 8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8289 *) ac_try_echo=$ac_try;; 8290esac 8291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8292 (eval "$ac_try") 2>&5 8293 ac_status=$? 8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8295 (exit $ac_status); }; } && 8296 { ac_try='test -s conftest$ac_exeext' 8297 { (case "(($ac_try" in 8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8299 *) ac_try_echo=$ac_try;; 8300esac 8301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8302 (eval "$ac_try") 2>&5 8303 ac_status=$? 8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8305 (exit $ac_status); }; }; then 8306 ac_cv_search_opendir=$ac_res 8307else 8308 echo "$as_me: failed program was:" >&5 8309sed 's/^/| /' conftest.$ac_ext >&5 8310 8311 8312fi 8313 8314rm -f core conftest.err conftest.$ac_objext \ 8315 conftest$ac_exeext 8316 if test "${ac_cv_search_opendir+set}" = set; then 8317 break 8318fi 8319done 8320if test "${ac_cv_search_opendir+set}" = set; then 8321 : 8322else 8323 ac_cv_search_opendir=no 8324fi 8325rm conftest.$ac_ext 8326LIBS=$ac_func_search_save_LIBS 8327fi 8328{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8329echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8330ac_res=$ac_cv_search_opendir 8331if test "$ac_res" != no; then 8332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8333 8334fi 8335 8336fi 8337 8338 8339for ac_header in dlfcn.h 8340do 8341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8343 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8346 echo $ECHO_N "(cached) $ECHO_C" >&6 8347fi 8348ac_res=`eval echo '${'$as_ac_Header'}'` 8349 { echo "$as_me:$LINENO: result: $ac_res" >&5 8350echo "${ECHO_T}$ac_res" >&6; } 8351else 8352 # Is the header compilable? 8353{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8355cat >conftest.$ac_ext <<_ACEOF 8356/* confdefs.h. */ 8357_ACEOF 8358cat confdefs.h >>conftest.$ac_ext 8359cat >>conftest.$ac_ext <<_ACEOF 8360/* end confdefs.h. */ 8361$ac_includes_default 8362#include <$ac_header> 8363_ACEOF 8364rm -f conftest.$ac_objext 8365if { (ac_try="$ac_compile" 8366case "(($ac_try" in 8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8368 *) ac_try_echo=$ac_try;; 8369esac 8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8371 (eval "$ac_compile") 2>conftest.er1 8372 ac_status=$? 8373 grep -v '^ *+' conftest.er1 >conftest.err 8374 rm -f conftest.er1 8375 cat conftest.err >&5 8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8377 (exit $ac_status); } && 8378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8379 { (case "(($ac_try" in 8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8381 *) ac_try_echo=$ac_try;; 8382esac 8383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8384 (eval "$ac_try") 2>&5 8385 ac_status=$? 8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8387 (exit $ac_status); }; } && 8388 { ac_try='test -s conftest.$ac_objext' 8389 { (case "(($ac_try" in 8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8391 *) ac_try_echo=$ac_try;; 8392esac 8393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8394 (eval "$ac_try") 2>&5 8395 ac_status=$? 8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8397 (exit $ac_status); }; }; then 8398 ac_header_compiler=yes 8399else 8400 echo "$as_me: failed program was:" >&5 8401sed 's/^/| /' conftest.$ac_ext >&5 8402 8403 ac_header_compiler=no 8404fi 8405 8406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8407{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8408echo "${ECHO_T}$ac_header_compiler" >&6; } 8409 8410# Is the header present? 8411{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8412echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8413cat >conftest.$ac_ext <<_ACEOF 8414/* confdefs.h. */ 8415_ACEOF 8416cat confdefs.h >>conftest.$ac_ext 8417cat >>conftest.$ac_ext <<_ACEOF 8418/* end confdefs.h. */ 8419#include <$ac_header> 8420_ACEOF 8421if { (ac_try="$ac_cpp conftest.$ac_ext" 8422case "(($ac_try" in 8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8424 *) ac_try_echo=$ac_try;; 8425esac 8426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8428 ac_status=$? 8429 grep -v '^ *+' conftest.er1 >conftest.err 8430 rm -f conftest.er1 8431 cat conftest.err >&5 8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8433 (exit $ac_status); } >/dev/null; then 8434 if test -s conftest.err; then 8435 ac_cpp_err=$ac_c_preproc_warn_flag 8436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8437 else 8438 ac_cpp_err= 8439 fi 8440else 8441 ac_cpp_err=yes 8442fi 8443if test -z "$ac_cpp_err"; then 8444 ac_header_preproc=yes 8445else 8446 echo "$as_me: failed program was:" >&5 8447sed 's/^/| /' conftest.$ac_ext >&5 8448 8449 ac_header_preproc=no 8450fi 8451 8452rm -f conftest.err conftest.$ac_ext 8453{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8454echo "${ECHO_T}$ac_header_preproc" >&6; } 8455 8456# So? What about this header? 8457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8458 yes:no: ) 8459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8463 ac_header_preproc=yes 8464 ;; 8465 no:yes:* ) 8466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8478 ( cat <<\_ASBOX 8479## ------------------------------------ ## 8480## Report this to http://llvm.org/bugs/ ## 8481## ------------------------------------ ## 8482_ASBOX 8483 ) | sed "s/^/$as_me: WARNING: /" >&2 8484 ;; 8485esac 8486{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8489 echo $ECHO_N "(cached) $ECHO_C" >&6 8490else 8491 eval "$as_ac_Header=\$ac_header_preproc" 8492fi 8493ac_res=`eval echo '${'$as_ac_Header'}'` 8494 { echo "$as_me:$LINENO: result: $ac_res" >&5 8495echo "${ECHO_T}$ac_res" >&6; } 8496 8497fi 8498if test `eval echo '${'$as_ac_Header'}'` = yes; then 8499 cat >>confdefs.h <<_ACEOF 8500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8501_ACEOF 8502 8503fi 8504 8505done 8506 8507# Check whether --enable-ltdl-install was given. 8508if test "${enable_ltdl_install+set}" = set; then 8509 enableval=$enable_ltdl_install; 8510fi 8511 8512 8513 8514 8515if test x"${enable_ltdl_install-no}" != xno; then 8516 INSTALL_LTDL_TRUE= 8517 INSTALL_LTDL_FALSE='#' 8518else 8519 INSTALL_LTDL_TRUE='#' 8520 INSTALL_LTDL_FALSE= 8521fi 8522 8523 8524 8525if test x"${enable_ltdl_convenience-no}" != xno; then 8526 CONVENIENCE_LTDL_TRUE= 8527 CONVENIENCE_LTDL_FALSE='#' 8528else 8529 CONVENIENCE_LTDL_TRUE='#' 8530 CONVENIENCE_LTDL_FALSE= 8531fi 8532 8533 8534{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8535echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8536library_names_spec= 8537libname_spec='lib$name' 8538soname_spec= 8539shrext_cmds=".so" 8540postinstall_cmds= 8541postuninstall_cmds= 8542finish_cmds= 8543finish_eval= 8544shlibpath_var= 8545shlibpath_overrides_runpath=unknown 8546version_type=none 8547dynamic_linker="$host_os ld.so" 8548sys_lib_dlsearch_path_spec="/lib /usr/lib" 8549if test "$GCC" = yes; then 8550 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8551 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8552 # if the path contains ";" then we assume it to be the separator 8553 # otherwise default to the standard path separator (i.e. ":") - it is 8554 # assumed that no part of a normal pathname contains ";" but that should 8555 # okay in the real world where ";" in dirpaths is itself problematic. 8556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8557 else 8558 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8559 fi 8560else 8561 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8562fi 8563need_lib_prefix=unknown 8564hardcode_into_libs=no 8565 8566# when you set need_version to no, make sure it does not cause -set_version 8567# flags to be left without arguments 8568need_version=unknown 8569 8570case $host_os in 8571aix3*) 8572 version_type=linux 8573 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8574 shlibpath_var=LIBPATH 8575 8576 # AIX 3 has no versioning support, so we append a major version to the name. 8577 soname_spec='${libname}${release}${shared_ext}$major' 8578 ;; 8579 8580aix4* | aix5*) 8581 version_type=linux 8582 need_lib_prefix=no 8583 need_version=no 8584 hardcode_into_libs=yes 8585 if test "$host_cpu" = ia64; then 8586 # AIX 5 supports IA64 8587 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8588 shlibpath_var=LD_LIBRARY_PATH 8589 else 8590 # With GCC up to 2.95.x, collect2 would create an import file 8591 # for dependence libraries. The import file would start with 8592 # the line `#! .'. This would cause the generated library to 8593 # depend on `.', always an invalid library. This was fixed in 8594 # development snapshots of GCC prior to 3.0. 8595 case $host_os in 8596 aix4 | aix4.[01] | aix4.[01].*) 8597 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8598 echo ' yes ' 8599 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8600 : 8601 else 8602 can_build_shared=no 8603 fi 8604 ;; 8605 esac 8606 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8607 # soname into executable. Probably we can add versioning support to 8608 # collect2, so additional links can be useful in future. 8609 if test "$aix_use_runtimelinking" = yes; then 8610 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8611 # instead of lib<name>.a to let people know that these are not 8612 # typical AIX shared libraries. 8613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8614 else 8615 # We preserve .a as extension for shared libraries through AIX4.2 8616 # and later when we are not doing run time linking. 8617 library_names_spec='${libname}${release}.a $libname.a' 8618 soname_spec='${libname}${release}${shared_ext}$major' 8619 fi 8620 shlibpath_var=LIBPATH 8621 fi 8622 ;; 8623 8624amigaos*) 8625 library_names_spec='$libname.ixlibrary $libname.a' 8626 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8627 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' 8628 ;; 8629 8630beos*) 8631 library_names_spec='${libname}${shared_ext}' 8632 dynamic_linker="$host_os ld.so" 8633 shlibpath_var=LIBRARY_PATH 8634 ;; 8635 8636bsdi[45]*) 8637 version_type=linux 8638 need_version=no 8639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8640 soname_spec='${libname}${release}${shared_ext}$major' 8641 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8642 shlibpath_var=LD_LIBRARY_PATH 8643 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8644 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8645 # the default ld.so.conf also contains /usr/contrib/lib and 8646 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8647 # libtool to hard-code these into programs 8648 ;; 8649 8650cygwin* | mingw* | pw32*) 8651 version_type=windows 8652 shrext_cmds=".dll" 8653 need_version=no 8654 need_lib_prefix=no 8655 8656 case $GCC,$host_os in 8657 yes,cygwin* | yes,mingw* | yes,pw32*) 8658 library_names_spec='$libname.dll.a' 8659 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8660 postinstall_cmds='base_file=`basename \${file}`~ 8661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8662 dldir=$destdir/`dirname \$dlpath`~ 8663 test -d \$dldir || mkdir -p \$dldir~ 8664 $install_prog $dir/$dlname \$dldir/$dlname~ 8665 chmod a+x \$dldir/$dlname' 8666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8667 dlpath=$dir/\$dldll~ 8668 $rm \$dlpath' 8669 shlibpath_overrides_runpath=yes 8670 8671 case $host_os in 8672 cygwin*) 8673 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8675 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8676 ;; 8677 mingw*) 8678 # MinGW DLLs use traditional 'lib' prefix 8679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8681 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8682 # It is most probably a Windows format PATH printed by 8683 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8684 # path with ; separators, and with drive letters. We can handle the 8685 # drive letters (cygwin fileutils understands them), so leave them, 8686 # especially as we might pass files found there to a mingw objdump, 8687 # which wouldn't understand a cygwinified path. Ahh. 8688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8689 else 8690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8691 fi 8692 ;; 8693 pw32*) 8694 # pw32 DLLs use 'pw' prefix rather than 'lib' 8695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8696 ;; 8697 esac 8698 ;; 8699 8700 *) 8701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8702 ;; 8703 esac 8704 dynamic_linker='Win32 ld.exe' 8705 # FIXME: first we should search . and the directory the executable is in 8706 shlibpath_var=PATH 8707 ;; 8708 8709darwin* | rhapsody*) 8710 dynamic_linker="$host_os dyld" 8711 version_type=darwin 8712 need_lib_prefix=no 8713 need_version=no 8714 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8715 soname_spec='${libname}${release}${major}$shared_ext' 8716 shlibpath_overrides_runpath=yes 8717 shlibpath_var=DYLD_LIBRARY_PATH 8718 shrext_cmds='.dylib' 8719 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8720 if test "$GCC" = yes; then 8721 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"` 8722 else 8723 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8724 fi 8725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8726 ;; 8727 8728dgux*) 8729 version_type=linux 8730 need_lib_prefix=no 8731 need_version=no 8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8733 soname_spec='${libname}${release}${shared_ext}$major' 8734 shlibpath_var=LD_LIBRARY_PATH 8735 ;; 8736 8737freebsd1.*) 8738 dynamic_linker=no 8739 ;; 8740 8741kfreebsd*-gnu) 8742 version_type=linux 8743 need_lib_prefix=no 8744 need_version=no 8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8746 soname_spec='${libname}${release}${shared_ext}$major' 8747 shlibpath_var=LD_LIBRARY_PATH 8748 shlibpath_overrides_runpath=no 8749 hardcode_into_libs=yes 8750 dynamic_linker='GNU ld.so' 8751 ;; 8752 8753freebsd* | dragonfly*) 8754 # DragonFly does not have aout. When/if they implement a new 8755 # versioning mechanism, adjust this. 8756 if test -x /usr/bin/objformat; then 8757 objformat=`/usr/bin/objformat` 8758 else 8759 case $host_os in 8760 freebsd[123].*) objformat=aout ;; 8761 *) objformat=elf ;; 8762 esac 8763 fi 8764 version_type=freebsd-$objformat 8765 case $version_type in 8766 freebsd-elf*) 8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8768 need_version=no 8769 need_lib_prefix=no 8770 ;; 8771 freebsd-*) 8772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8773 need_version=yes 8774 ;; 8775 esac 8776 shlibpath_var=LD_LIBRARY_PATH 8777 case $host_os in 8778 freebsd2.*) 8779 shlibpath_overrides_runpath=yes 8780 ;; 8781 freebsd3.[01]* | freebsdelf3.[01]*) 8782 shlibpath_overrides_runpath=yes 8783 hardcode_into_libs=yes 8784 ;; 8785 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8786 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8787 shlibpath_overrides_runpath=no 8788 hardcode_into_libs=yes 8789 ;; 8790 freebsd*) # from 4.6 on 8791 shlibpath_overrides_runpath=yes 8792 hardcode_into_libs=yes 8793 ;; 8794 esac 8795 ;; 8796 8797gnu*) 8798 version_type=linux 8799 need_lib_prefix=no 8800 need_version=no 8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8802 soname_spec='${libname}${release}${shared_ext}$major' 8803 shlibpath_var=LD_LIBRARY_PATH 8804 hardcode_into_libs=yes 8805 ;; 8806 8807hpux9* | hpux10* | hpux11*) 8808 # Give a soname corresponding to the major version so that dld.sl refuses to 8809 # link against other versions. 8810 version_type=sunos 8811 need_lib_prefix=no 8812 need_version=no 8813 case $host_cpu in 8814 ia64*) 8815 shrext_cmds='.so' 8816 hardcode_into_libs=yes 8817 dynamic_linker="$host_os dld.so" 8818 shlibpath_var=LD_LIBRARY_PATH 8819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8821 soname_spec='${libname}${release}${shared_ext}$major' 8822 if test "X$HPUX_IA64_MODE" = X32; then 8823 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8824 else 8825 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8826 fi 8827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8828 ;; 8829 hppa*64*) 8830 shrext_cmds='.sl' 8831 hardcode_into_libs=yes 8832 dynamic_linker="$host_os dld.sl" 8833 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8836 soname_spec='${libname}${release}${shared_ext}$major' 8837 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8839 ;; 8840 *) 8841 shrext_cmds='.sl' 8842 dynamic_linker="$host_os dld.sl" 8843 shlibpath_var=SHLIB_PATH 8844 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8846 soname_spec='${libname}${release}${shared_ext}$major' 8847 ;; 8848 esac 8849 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8850 postinstall_cmds='chmod 555 $lib' 8851 ;; 8852 8853interix3*) 8854 version_type=linux 8855 need_lib_prefix=no 8856 need_version=no 8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8858 soname_spec='${libname}${release}${shared_ext}$major' 8859 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8860 shlibpath_var=LD_LIBRARY_PATH 8861 shlibpath_overrides_runpath=no 8862 hardcode_into_libs=yes 8863 ;; 8864 8865irix5* | irix6* | nonstopux*) 8866 case $host_os in 8867 nonstopux*) version_type=nonstopux ;; 8868 *) 8869 if test "$lt_cv_prog_gnu_ld" = yes; then 8870 version_type=linux 8871 else 8872 version_type=irix 8873 fi ;; 8874 esac 8875 need_lib_prefix=no 8876 need_version=no 8877 soname_spec='${libname}${release}${shared_ext}$major' 8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8879 case $host_os in 8880 irix5* | nonstopux*) 8881 libsuff= shlibsuff= 8882 ;; 8883 *) 8884 case $LD in # libtool.m4 will add one of these switches to LD 8885 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8886 libsuff= shlibsuff= libmagic=32-bit;; 8887 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8888 libsuff=32 shlibsuff=N32 libmagic=N32;; 8889 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8890 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8891 *) libsuff= shlibsuff= libmagic=never-match;; 8892 esac 8893 ;; 8894 esac 8895 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8896 shlibpath_overrides_runpath=no 8897 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8898 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8899 hardcode_into_libs=yes 8900 ;; 8901 8902# No shared lib support for Linux oldld, aout, or coff. 8903linux*oldld* | linux*aout* | linux*coff*) 8904 dynamic_linker=no 8905 ;; 8906 8907# This must be Linux ELF. 8908linux*) 8909 version_type=linux 8910 need_lib_prefix=no 8911 need_version=no 8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8913 soname_spec='${libname}${release}${shared_ext}$major' 8914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8915 shlibpath_var=LD_LIBRARY_PATH 8916 shlibpath_overrides_runpath=no 8917 # This implies no fast_install, which is unacceptable. 8918 # Some rework will be needed to allow for fast_install 8919 # before this can be enabled. 8920 hardcode_into_libs=yes 8921 8922 # Append ld.so.conf contents to the search path 8923 if test -f /etc/ld.so.conf; then 8924 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' ' '` 8925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8926 fi 8927 8928 # We used to test for /lib/ld.so.1 and disable shared libraries on 8929 # powerpc, because MkLinux only supported shared libraries with the 8930 # GNU dynamic linker. Since this was broken with cross compilers, 8931 # most powerpc-linux boxes support dynamic linking these days and 8932 # people can always --disable-shared, the test was removed, and we 8933 # assume the GNU/Linux dynamic linker is in use. 8934 dynamic_linker='GNU/Linux ld.so' 8935 ;; 8936 8937knetbsd*-gnu) 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 shlibpath_overrides_runpath=no 8945 hardcode_into_libs=yes 8946 dynamic_linker='GNU ld.so' 8947 ;; 8948 8949netbsd*) 8950 version_type=sunos 8951 need_lib_prefix=no 8952 need_version=no 8953 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8956 dynamic_linker='NetBSD (a.out) ld.so' 8957 else 8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8959 soname_spec='${libname}${release}${shared_ext}$major' 8960 dynamic_linker='NetBSD ld.elf_so' 8961 fi 8962 shlibpath_var=LD_LIBRARY_PATH 8963 shlibpath_overrides_runpath=yes 8964 hardcode_into_libs=yes 8965 ;; 8966 8967newsos6) 8968 version_type=linux 8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8970 shlibpath_var=LD_LIBRARY_PATH 8971 shlibpath_overrides_runpath=yes 8972 ;; 8973 8974nto-qnx*) 8975 version_type=linux 8976 need_lib_prefix=no 8977 need_version=no 8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8979 soname_spec='${libname}${release}${shared_ext}$major' 8980 shlibpath_var=LD_LIBRARY_PATH 8981 shlibpath_overrides_runpath=yes 8982 ;; 8983 8984openbsd* | bitrig*) 8985 version_type=sunos 8986 sys_lib_dlsearch_path_spec="/usr/lib" 8987 need_lib_prefix=no 8988 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8989 case $host_os in 8990 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8991 *) need_version=no ;; 8992 esac 8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8995 shlibpath_var=LD_LIBRARY_PATH 8996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8997 case $host_os in 8998 openbsd2.[89] | openbsd2.[89].*) 8999 shlibpath_overrides_runpath=no 9000 ;; 9001 *) 9002 shlibpath_overrides_runpath=yes 9003 ;; 9004 esac 9005 else 9006 shlibpath_overrides_runpath=yes 9007 fi 9008 ;; 9009 9010os2*) 9011 libname_spec='$name' 9012 shrext_cmds=".dll" 9013 need_lib_prefix=no 9014 library_names_spec='$libname${shared_ext} $libname.a' 9015 dynamic_linker='OS/2 ld.exe' 9016 shlibpath_var=LIBPATH 9017 ;; 9018 9019osf3* | osf4* | osf5*) 9020 version_type=osf 9021 need_lib_prefix=no 9022 need_version=no 9023 soname_spec='${libname}${release}${shared_ext}$major' 9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9025 shlibpath_var=LD_LIBRARY_PATH 9026 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9027 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9028 ;; 9029 9030solaris*) 9031 version_type=linux 9032 need_lib_prefix=no 9033 need_version=no 9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9035 soname_spec='${libname}${release}${shared_ext}$major' 9036 shlibpath_var=LD_LIBRARY_PATH 9037 shlibpath_overrides_runpath=yes 9038 hardcode_into_libs=yes 9039 # ldd complains unless libraries are executable 9040 postinstall_cmds='chmod +x $lib' 9041 ;; 9042 9043sunos4*) 9044 version_type=sunos 9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9046 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9047 shlibpath_var=LD_LIBRARY_PATH 9048 shlibpath_overrides_runpath=yes 9049 if test "$with_gnu_ld" = yes; then 9050 need_lib_prefix=no 9051 fi 9052 need_version=yes 9053 ;; 9054 9055sysv4 | sysv4.3*) 9056 version_type=linux 9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9058 soname_spec='${libname}${release}${shared_ext}$major' 9059 shlibpath_var=LD_LIBRARY_PATH 9060 case $host_vendor in 9061 sni) 9062 shlibpath_overrides_runpath=no 9063 need_lib_prefix=no 9064 export_dynamic_flag_spec='${wl}-Blargedynsym' 9065 runpath_var=LD_RUN_PATH 9066 ;; 9067 siemens) 9068 need_lib_prefix=no 9069 ;; 9070 motorola) 9071 need_lib_prefix=no 9072 need_version=no 9073 shlibpath_overrides_runpath=no 9074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9075 ;; 9076 esac 9077 ;; 9078 9079sysv4*MP*) 9080 if test -d /usr/nec ;then 9081 version_type=linux 9082 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9083 soname_spec='$libname${shared_ext}.$major' 9084 shlibpath_var=LD_LIBRARY_PATH 9085 fi 9086 ;; 9087 9088sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9089 version_type=freebsd-elf 9090 need_lib_prefix=no 9091 need_version=no 9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9093 soname_spec='${libname}${release}${shared_ext}$major' 9094 shlibpath_var=LD_LIBRARY_PATH 9095 hardcode_into_libs=yes 9096 if test "$with_gnu_ld" = yes; then 9097 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9098 shlibpath_overrides_runpath=no 9099 else 9100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9101 shlibpath_overrides_runpath=yes 9102 case $host_os in 9103 sco3.2v5*) 9104 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9105 ;; 9106 esac 9107 fi 9108 sys_lib_dlsearch_path_spec='/usr/lib' 9109 ;; 9110 9111uts4*) 9112 version_type=linux 9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9114 soname_spec='${libname}${release}${shared_ext}$major' 9115 shlibpath_var=LD_LIBRARY_PATH 9116 ;; 9117 9118*) 9119 dynamic_linker=no 9120 ;; 9121esac 9122{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9123echo "${ECHO_T}$dynamic_linker" >&6; } 9124test "$dynamic_linker" = no && can_build_shared=no 9125 9126variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9127if test "$GCC" = yes; then 9128 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9129fi 9130 9131 9132{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9133echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9134if test "${libltdl_cv_shlibext+set}" = set; then 9135 echo $ECHO_N "(cached) $ECHO_C" >&6 9136else 9137 9138module=yes 9139eval libltdl_cv_shlibext=$shrext_cmds 9140 9141fi 9142{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9143echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9144if test -n "$libltdl_cv_shlibext"; then 9145 9146cat >>confdefs.h <<_ACEOF 9147#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9148_ACEOF 9149 9150fi 9151 9152 9153{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 9154echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 9155if test "${libltdl_cv_shlibpath_var+set}" = set; then 9156 echo $ECHO_N "(cached) $ECHO_C" >&6 9157else 9158 libltdl_cv_shlibpath_var="$shlibpath_var" 9159fi 9160{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 9161echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 9162if test -n "$libltdl_cv_shlibpath_var"; then 9163 9164cat >>confdefs.h <<_ACEOF 9165#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 9166_ACEOF 9167 9168fi 9169 9170 9171{ echo "$as_me:$LINENO: checking for the default library search path" >&5 9172echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9173if test "${libltdl_cv_sys_search_path+set}" = set; then 9174 echo $ECHO_N "(cached) $ECHO_C" >&6 9175else 9176 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9177fi 9178{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9179echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9180if test -n "$libltdl_cv_sys_search_path"; then 9181 sys_search_path= 9182 for dir in $libltdl_cv_sys_search_path; do 9183 if test -z "$sys_search_path"; then 9184 sys_search_path="$dir" 9185 else 9186 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9187 fi 9188 done 9189 9190cat >>confdefs.h <<_ACEOF 9191#define LTDL_SYSSEARCHPATH "$sys_search_path" 9192_ACEOF 9193 9194fi 9195 9196{ echo "$as_me:$LINENO: checking for objdir" >&5 9197echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9198if test "${libltdl_cv_objdir+set}" = set; then 9199 echo $ECHO_N "(cached) $ECHO_C" >&6 9200else 9201 libltdl_cv_objdir="$objdir" 9202 if test -n "$objdir"; then 9203 : 9204 else 9205 rm -f .libs 2>/dev/null 9206 mkdir .libs 2>/dev/null 9207 if test -d .libs; then 9208 libltdl_cv_objdir=.libs 9209 else 9210 # MS-DOS does not allow filenames that begin with a dot. 9211 libltdl_cv_objdir=_libs 9212 fi 9213 rmdir .libs 2>/dev/null 9214 fi 9215 9216fi 9217{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9218echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9219 9220cat >>confdefs.h <<_ACEOF 9221#define LTDL_OBJDIR "$libltdl_cv_objdir/" 9222_ACEOF 9223 9224 9225 9226 9227 9228 9229# Check for command to grab the raw symbol name followed by C symbol from nm. 9230{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9231echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9232if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9233 echo $ECHO_N "(cached) $ECHO_C" >&6 9234else 9235 9236# These are sane defaults that work on at least a few old systems. 9237# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9238 9239# Character class describing NM global symbol codes. 9240symcode='[BCDEGRST]' 9241 9242# Regexp to match symbols that can be accessed directly from C. 9243sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9244 9245# Transform an extracted symbol line into a proper C declaration 9246lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9247 9248# Transform an extracted symbol line into symbol name and symbol address 9249lt_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'" 9250 9251# Define system-specific variables. 9252case $host_os in 9253aix*) 9254 symcode='[BCDT]' 9255 ;; 9256cygwin* | mingw* | pw32*) 9257 symcode='[ABCDGISTW]' 9258 ;; 9259hpux*) # Its linker distinguishes data from code symbols 9260 if test "$host_cpu" = ia64; then 9261 symcode='[ABCDEGRST]' 9262 fi 9263 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9264 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'" 9265 ;; 9266linux*) 9267 if test "$host_cpu" = ia64; then 9268 symcode='[ABCDGIRSTW]' 9269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9270 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'" 9271 fi 9272 ;; 9273irix* | nonstopux*) 9274 symcode='[BCDEGRST]' 9275 ;; 9276osf*) 9277 symcode='[BCDEGQRST]' 9278 ;; 9279solaris*) 9280 symcode='[BDRT]' 9281 ;; 9282sco3.2v5*) 9283 symcode='[DT]' 9284 ;; 9285sysv4.2uw2*) 9286 symcode='[DT]' 9287 ;; 9288sysv5* | sco5v6* | unixware* | OpenUNIX*) 9289 symcode='[ABDT]' 9290 ;; 9291sysv4) 9292 symcode='[DFNSTU]' 9293 ;; 9294esac 9295 9296# Handle CRLF in mingw tool chain 9297opt_cr= 9298case $build_os in 9299mingw*) 9300 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9301 ;; 9302esac 9303 9304# If we're using GNU nm, then use its standard symbol codes. 9305case `$NM -V 2>&1` in 9306*GNU* | *'with BFD'*) 9307 symcode='[ABCDGIRSTW]' ;; 9308esac 9309 9310# Try without a prefix undercore, then with it. 9311for ac_symprfx in "" "_"; do 9312 9313 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9314 symxfrm="\\1 $ac_symprfx\\2 \\2" 9315 9316 # Write the raw and C identifiers. 9317 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9318 9319 # Check to see that the pipe works correctly. 9320 pipe_works=no 9321 9322 rm -f conftest* 9323 cat > conftest.$ac_ext <<EOF 9324#ifdef __cplusplus 9325extern "C" { 9326#endif 9327char nm_test_var; 9328void nm_test_func(){} 9329#ifdef __cplusplus 9330} 9331#endif 9332int main(){nm_test_var='a';nm_test_func();return(0);} 9333EOF 9334 9335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9336 (eval $ac_compile) 2>&5 9337 ac_status=$? 9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9339 (exit $ac_status); }; then 9340 # Now try to grab the symbols. 9341 nlist=conftest.nm 9342 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9343 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9344 ac_status=$? 9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9346 (exit $ac_status); } && test -s "$nlist"; then 9347 # Try sorting and uniquifying the output. 9348 if sort "$nlist" | uniq > "$nlist"T; then 9349 mv -f "$nlist"T "$nlist" 9350 else 9351 rm -f "$nlist"T 9352 fi 9353 9354 # Make sure that we snagged all the symbols we need. 9355 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9356 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9357 cat <<EOF > conftest.$ac_ext 9358#ifdef __cplusplus 9359extern "C" { 9360#endif 9361 9362EOF 9363 # Now generate the symbol file. 9364 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9365 9366 cat <<EOF >> conftest.$ac_ext 9367#if defined (__STDC__) && __STDC__ 9368# define lt_ptr_t void * 9369#else 9370# define lt_ptr_t char * 9371# define const 9372#endif 9373 9374/* The mapping between symbol names and symbols. */ 9375const struct { 9376 const char *name; 9377 lt_ptr_t address; 9378} 9379lt_preloaded_symbols[] = 9380{ 9381EOF 9382 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9383 cat <<\EOF >> conftest.$ac_ext 9384 {0, (lt_ptr_t) 0} 9385}; 9386 9387#ifdef __cplusplus 9388} 9389#endif 9390EOF 9391 # Now try linking the two files. 9392 mv conftest.$ac_objext conftstm.$ac_objext 9393 lt_save_LIBS="$LIBS" 9394 lt_save_CFLAGS="$CFLAGS" 9395 LIBS="conftstm.$ac_objext" 9396 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9398 (eval $ac_link) 2>&5 9399 ac_status=$? 9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9401 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9402 pipe_works=yes 9403 fi 9404 LIBS="$lt_save_LIBS" 9405 CFLAGS="$lt_save_CFLAGS" 9406 else 9407 echo "cannot find nm_test_func in $nlist" >&5 9408 fi 9409 else 9410 echo "cannot find nm_test_var in $nlist" >&5 9411 fi 9412 else 9413 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9414 fi 9415 else 9416 echo "$progname: failed program was:" >&5 9417 cat conftest.$ac_ext >&5 9418 fi 9419 rm -f conftest* conftst* 9420 9421 # Do not use the global_symbol_pipe unless it works. 9422 if test "$pipe_works" = yes; then 9423 break 9424 else 9425 lt_cv_sys_global_symbol_pipe= 9426 fi 9427done 9428 9429fi 9430 9431if test -z "$lt_cv_sys_global_symbol_pipe"; then 9432 lt_cv_sys_global_symbol_to_cdecl= 9433fi 9434if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9435 { echo "$as_me:$LINENO: result: failed" >&5 9436echo "${ECHO_T}failed" >&6; } 9437else 9438 { echo "$as_me:$LINENO: result: ok" >&5 9439echo "${ECHO_T}ok" >&6; } 9440fi 9441 9442 9443{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9444echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9445if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9446 echo $ECHO_N "(cached) $ECHO_C" >&6 9447else 9448 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9449 libltdl_cv_preloaded_symbols=yes 9450 else 9451 libltdl_cv_preloaded_symbols=no 9452 fi 9453 9454fi 9455{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9456echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9457if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9458 9459cat >>confdefs.h <<\_ACEOF 9460#define HAVE_PRELOADED_SYMBOLS 1 9461_ACEOF 9462 9463fi 9464 9465LIBADD_DL= 9466 9467ac_ext=c 9468ac_cpp='$CPP $CPPFLAGS' 9469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9471ac_compiler_gnu=$ac_cv_c_compiler_gnu 9472 9473 9474{ echo "$as_me:$LINENO: checking for shl_load" >&5 9475echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9476if test "${ac_cv_func_shl_load+set}" = set; then 9477 echo $ECHO_N "(cached) $ECHO_C" >&6 9478else 9479 cat >conftest.$ac_ext <<_ACEOF 9480/* confdefs.h. */ 9481_ACEOF 9482cat confdefs.h >>conftest.$ac_ext 9483cat >>conftest.$ac_ext <<_ACEOF 9484/* end confdefs.h. */ 9485/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9486 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9487#define shl_load innocuous_shl_load 9488 9489/* System header to define __stub macros and hopefully few prototypes, 9490 which can conflict with char shl_load (); below. 9491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9492 <limits.h> exists even on freestanding compilers. */ 9493 9494#ifdef __STDC__ 9495# include <limits.h> 9496#else 9497# include <assert.h> 9498#endif 9499 9500#undef shl_load 9501 9502/* Override any GCC internal prototype to avoid an error. 9503 Use char because int might match the return type of a GCC 9504 builtin and then its argument prototype would still apply. */ 9505#ifdef __cplusplus 9506extern "C" 9507#endif 9508char shl_load (); 9509/* The GNU C library defines this for functions which it implements 9510 to always fail with ENOSYS. Some functions are actually named 9511 something starting with __ and the normal name is an alias. */ 9512#if defined __stub_shl_load || defined __stub___shl_load 9513choke me 9514#endif 9515 9516int 9517main () 9518{ 9519return shl_load (); 9520 ; 9521 return 0; 9522} 9523_ACEOF 9524rm -f conftest.$ac_objext conftest$ac_exeext 9525if { (ac_try="$ac_link" 9526case "(($ac_try" in 9527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9528 *) ac_try_echo=$ac_try;; 9529esac 9530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9531 (eval "$ac_link") 2>conftest.er1 9532 ac_status=$? 9533 grep -v '^ *+' conftest.er1 >conftest.err 9534 rm -f conftest.er1 9535 cat conftest.err >&5 9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9537 (exit $ac_status); } && 9538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9539 { (case "(($ac_try" in 9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9541 *) ac_try_echo=$ac_try;; 9542esac 9543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9544 (eval "$ac_try") 2>&5 9545 ac_status=$? 9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9547 (exit $ac_status); }; } && 9548 { ac_try='test -s conftest$ac_exeext' 9549 { (case "(($ac_try" in 9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9551 *) ac_try_echo=$ac_try;; 9552esac 9553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9554 (eval "$ac_try") 2>&5 9555 ac_status=$? 9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9557 (exit $ac_status); }; }; then 9558 ac_cv_func_shl_load=yes 9559else 9560 echo "$as_me: failed program was:" >&5 9561sed 's/^/| /' conftest.$ac_ext >&5 9562 9563 ac_cv_func_shl_load=no 9564fi 9565 9566rm -f core conftest.err conftest.$ac_objext \ 9567 conftest$ac_exeext conftest.$ac_ext 9568fi 9569{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9570echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9571if test $ac_cv_func_shl_load = yes; then 9572 9573cat >>confdefs.h <<\_ACEOF 9574#define HAVE_SHL_LOAD 1 9575_ACEOF 9576 9577else 9578 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9579echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9580if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9581 echo $ECHO_N "(cached) $ECHO_C" >&6 9582else 9583 ac_check_lib_save_LIBS=$LIBS 9584LIBS="-ldld $LIBS" 9585cat >conftest.$ac_ext <<_ACEOF 9586/* confdefs.h. */ 9587_ACEOF 9588cat confdefs.h >>conftest.$ac_ext 9589cat >>conftest.$ac_ext <<_ACEOF 9590/* end confdefs.h. */ 9591 9592/* Override any GCC internal prototype to avoid an error. 9593 Use char because int might match the return type of a GCC 9594 builtin and then its argument prototype would still apply. */ 9595#ifdef __cplusplus 9596extern "C" 9597#endif 9598char shl_load (); 9599int 9600main () 9601{ 9602return shl_load (); 9603 ; 9604 return 0; 9605} 9606_ACEOF 9607rm -f conftest.$ac_objext conftest$ac_exeext 9608if { (ac_try="$ac_link" 9609case "(($ac_try" in 9610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9611 *) ac_try_echo=$ac_try;; 9612esac 9613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9614 (eval "$ac_link") 2>conftest.er1 9615 ac_status=$? 9616 grep -v '^ *+' conftest.er1 >conftest.err 9617 rm -f conftest.er1 9618 cat conftest.err >&5 9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9620 (exit $ac_status); } && 9621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9622 { (case "(($ac_try" in 9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9624 *) ac_try_echo=$ac_try;; 9625esac 9626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9627 (eval "$ac_try") 2>&5 9628 ac_status=$? 9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9630 (exit $ac_status); }; } && 9631 { ac_try='test -s conftest$ac_exeext' 9632 { (case "(($ac_try" in 9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9634 *) ac_try_echo=$ac_try;; 9635esac 9636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9637 (eval "$ac_try") 2>&5 9638 ac_status=$? 9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9640 (exit $ac_status); }; }; then 9641 ac_cv_lib_dld_shl_load=yes 9642else 9643 echo "$as_me: failed program was:" >&5 9644sed 's/^/| /' conftest.$ac_ext >&5 9645 9646 ac_cv_lib_dld_shl_load=no 9647fi 9648 9649rm -f core conftest.err conftest.$ac_objext \ 9650 conftest$ac_exeext conftest.$ac_ext 9651LIBS=$ac_check_lib_save_LIBS 9652fi 9653{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9654echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9655if test $ac_cv_lib_dld_shl_load = yes; then 9656 9657cat >>confdefs.h <<\_ACEOF 9658#define HAVE_SHL_LOAD 1 9659_ACEOF 9660 9661 LIBADD_DL="$LIBADD_DL -ldld" 9662else 9663 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9664echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9665if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9666 echo $ECHO_N "(cached) $ECHO_C" >&6 9667else 9668 ac_check_lib_save_LIBS=$LIBS 9669LIBS="-ldl $LIBS" 9670cat >conftest.$ac_ext <<_ACEOF 9671/* confdefs.h. */ 9672_ACEOF 9673cat confdefs.h >>conftest.$ac_ext 9674cat >>conftest.$ac_ext <<_ACEOF 9675/* end confdefs.h. */ 9676 9677/* Override any GCC internal prototype to avoid an error. 9678 Use char because int might match the return type of a GCC 9679 builtin and then its argument prototype would still apply. */ 9680#ifdef __cplusplus 9681extern "C" 9682#endif 9683char dlopen (); 9684int 9685main () 9686{ 9687return dlopen (); 9688 ; 9689 return 0; 9690} 9691_ACEOF 9692rm -f conftest.$ac_objext conftest$ac_exeext 9693if { (ac_try="$ac_link" 9694case "(($ac_try" in 9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9696 *) ac_try_echo=$ac_try;; 9697esac 9698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9699 (eval "$ac_link") 2>conftest.er1 9700 ac_status=$? 9701 grep -v '^ *+' conftest.er1 >conftest.err 9702 rm -f conftest.er1 9703 cat conftest.err >&5 9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9705 (exit $ac_status); } && 9706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9707 { (case "(($ac_try" in 9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9709 *) ac_try_echo=$ac_try;; 9710esac 9711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9712 (eval "$ac_try") 2>&5 9713 ac_status=$? 9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9715 (exit $ac_status); }; } && 9716 { ac_try='test -s conftest$ac_exeext' 9717 { (case "(($ac_try" in 9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9719 *) ac_try_echo=$ac_try;; 9720esac 9721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9722 (eval "$ac_try") 2>&5 9723 ac_status=$? 9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9725 (exit $ac_status); }; }; then 9726 ac_cv_lib_dl_dlopen=yes 9727else 9728 echo "$as_me: failed program was:" >&5 9729sed 's/^/| /' conftest.$ac_ext >&5 9730 9731 ac_cv_lib_dl_dlopen=no 9732fi 9733 9734rm -f core conftest.err conftest.$ac_objext \ 9735 conftest$ac_exeext conftest.$ac_ext 9736LIBS=$ac_check_lib_save_LIBS 9737fi 9738{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9739echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9740if test $ac_cv_lib_dl_dlopen = yes; then 9741 9742cat >>confdefs.h <<\_ACEOF 9743#define HAVE_LIBDL 1 9744_ACEOF 9745 9746 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 9747else 9748 cat >conftest.$ac_ext <<_ACEOF 9749/* confdefs.h. */ 9750_ACEOF 9751cat confdefs.h >>conftest.$ac_ext 9752cat >>conftest.$ac_ext <<_ACEOF 9753/* end confdefs.h. */ 9754#if HAVE_DLFCN_H 9755# include <dlfcn.h> 9756#endif 9757 9758int 9759main () 9760{ 9761dlopen(0, 0); 9762 ; 9763 return 0; 9764} 9765_ACEOF 9766rm -f conftest.$ac_objext conftest$ac_exeext 9767if { (ac_try="$ac_link" 9768case "(($ac_try" in 9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9770 *) ac_try_echo=$ac_try;; 9771esac 9772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9773 (eval "$ac_link") 2>conftest.er1 9774 ac_status=$? 9775 grep -v '^ *+' conftest.er1 >conftest.err 9776 rm -f conftest.er1 9777 cat conftest.err >&5 9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9779 (exit $ac_status); } && 9780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9781 { (case "(($ac_try" in 9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9783 *) ac_try_echo=$ac_try;; 9784esac 9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9786 (eval "$ac_try") 2>&5 9787 ac_status=$? 9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9789 (exit $ac_status); }; } && 9790 { ac_try='test -s conftest$ac_exeext' 9791 { (case "(($ac_try" in 9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9793 *) ac_try_echo=$ac_try;; 9794esac 9795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9796 (eval "$ac_try") 2>&5 9797 ac_status=$? 9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9799 (exit $ac_status); }; }; then 9800 9801cat >>confdefs.h <<\_ACEOF 9802#define HAVE_LIBDL 1 9803_ACEOF 9804 libltdl_cv_func_dlopen="yes" 9805else 9806 echo "$as_me: failed program was:" >&5 9807sed 's/^/| /' conftest.$ac_ext >&5 9808 9809 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9810echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9811if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9812 echo $ECHO_N "(cached) $ECHO_C" >&6 9813else 9814 ac_check_lib_save_LIBS=$LIBS 9815LIBS="-lsvld $LIBS" 9816cat >conftest.$ac_ext <<_ACEOF 9817/* confdefs.h. */ 9818_ACEOF 9819cat confdefs.h >>conftest.$ac_ext 9820cat >>conftest.$ac_ext <<_ACEOF 9821/* end confdefs.h. */ 9822 9823/* Override any GCC internal prototype to avoid an error. 9824 Use char because int might match the return type of a GCC 9825 builtin and then its argument prototype would still apply. */ 9826#ifdef __cplusplus 9827extern "C" 9828#endif 9829char dlopen (); 9830int 9831main () 9832{ 9833return dlopen (); 9834 ; 9835 return 0; 9836} 9837_ACEOF 9838rm -f conftest.$ac_objext conftest$ac_exeext 9839if { (ac_try="$ac_link" 9840case "(($ac_try" in 9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9842 *) ac_try_echo=$ac_try;; 9843esac 9844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9845 (eval "$ac_link") 2>conftest.er1 9846 ac_status=$? 9847 grep -v '^ *+' conftest.er1 >conftest.err 9848 rm -f conftest.er1 9849 cat conftest.err >&5 9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9851 (exit $ac_status); } && 9852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9853 { (case "(($ac_try" in 9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9855 *) ac_try_echo=$ac_try;; 9856esac 9857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9858 (eval "$ac_try") 2>&5 9859 ac_status=$? 9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9861 (exit $ac_status); }; } && 9862 { ac_try='test -s conftest$ac_exeext' 9863 { (case "(($ac_try" in 9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9865 *) ac_try_echo=$ac_try;; 9866esac 9867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9868 (eval "$ac_try") 2>&5 9869 ac_status=$? 9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9871 (exit $ac_status); }; }; then 9872 ac_cv_lib_svld_dlopen=yes 9873else 9874 echo "$as_me: failed program was:" >&5 9875sed 's/^/| /' conftest.$ac_ext >&5 9876 9877 ac_cv_lib_svld_dlopen=no 9878fi 9879 9880rm -f core conftest.err conftest.$ac_objext \ 9881 conftest$ac_exeext conftest.$ac_ext 9882LIBS=$ac_check_lib_save_LIBS 9883fi 9884{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9885echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9886if test $ac_cv_lib_svld_dlopen = yes; then 9887 9888cat >>confdefs.h <<\_ACEOF 9889#define HAVE_LIBDL 1 9890_ACEOF 9891 9892 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 9893else 9894 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9895echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9896if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9897 echo $ECHO_N "(cached) $ECHO_C" >&6 9898else 9899 ac_check_lib_save_LIBS=$LIBS 9900LIBS="-ldld $LIBS" 9901cat >conftest.$ac_ext <<_ACEOF 9902/* confdefs.h. */ 9903_ACEOF 9904cat confdefs.h >>conftest.$ac_ext 9905cat >>conftest.$ac_ext <<_ACEOF 9906/* end confdefs.h. */ 9907 9908/* Override any GCC internal prototype to avoid an error. 9909 Use char because int might match the return type of a GCC 9910 builtin and then its argument prototype would still apply. */ 9911#ifdef __cplusplus 9912extern "C" 9913#endif 9914char dld_link (); 9915int 9916main () 9917{ 9918return dld_link (); 9919 ; 9920 return 0; 9921} 9922_ACEOF 9923rm -f conftest.$ac_objext conftest$ac_exeext 9924if { (ac_try="$ac_link" 9925case "(($ac_try" in 9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9927 *) ac_try_echo=$ac_try;; 9928esac 9929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9930 (eval "$ac_link") 2>conftest.er1 9931 ac_status=$? 9932 grep -v '^ *+' conftest.er1 >conftest.err 9933 rm -f conftest.er1 9934 cat conftest.err >&5 9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9936 (exit $ac_status); } && 9937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9938 { (case "(($ac_try" in 9939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9940 *) ac_try_echo=$ac_try;; 9941esac 9942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9943 (eval "$ac_try") 2>&5 9944 ac_status=$? 9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9946 (exit $ac_status); }; } && 9947 { ac_try='test -s conftest$ac_exeext' 9948 { (case "(($ac_try" in 9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9950 *) ac_try_echo=$ac_try;; 9951esac 9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9953 (eval "$ac_try") 2>&5 9954 ac_status=$? 9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9956 (exit $ac_status); }; }; then 9957 ac_cv_lib_dld_dld_link=yes 9958else 9959 echo "$as_me: failed program was:" >&5 9960sed 's/^/| /' conftest.$ac_ext >&5 9961 9962 ac_cv_lib_dld_dld_link=no 9963fi 9964 9965rm -f core conftest.err conftest.$ac_objext \ 9966 conftest$ac_exeext conftest.$ac_ext 9967LIBS=$ac_check_lib_save_LIBS 9968fi 9969{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9970echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9971if test $ac_cv_lib_dld_dld_link = yes; then 9972 9973cat >>confdefs.h <<\_ACEOF 9974#define HAVE_DLD 1 9975_ACEOF 9976 9977 LIBADD_DL="$LIBADD_DL -ldld" 9978else 9979 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 9980echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 9981if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 9982 echo $ECHO_N "(cached) $ECHO_C" >&6 9983else 9984 cat >conftest.$ac_ext <<_ACEOF 9985/* confdefs.h. */ 9986_ACEOF 9987cat confdefs.h >>conftest.$ac_ext 9988cat >>conftest.$ac_ext <<_ACEOF 9989/* end confdefs.h. */ 9990/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 9991 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9992#define _dyld_func_lookup innocuous__dyld_func_lookup 9993 9994/* System header to define __stub macros and hopefully few prototypes, 9995 which can conflict with char _dyld_func_lookup (); below. 9996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9997 <limits.h> exists even on freestanding compilers. */ 9998 9999#ifdef __STDC__ 10000# include <limits.h> 10001#else 10002# include <assert.h> 10003#endif 10004 10005#undef _dyld_func_lookup 10006 10007/* Override any GCC internal prototype to avoid an error. 10008 Use char because int might match the return type of a GCC 10009 builtin and then its argument prototype would still apply. */ 10010#ifdef __cplusplus 10011extern "C" 10012#endif 10013char _dyld_func_lookup (); 10014/* The GNU C library defines this for functions which it implements 10015 to always fail with ENOSYS. Some functions are actually named 10016 something starting with __ and the normal name is an alias. */ 10017#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10018choke me 10019#endif 10020 10021int 10022main () 10023{ 10024return _dyld_func_lookup (); 10025 ; 10026 return 0; 10027} 10028_ACEOF 10029rm -f conftest.$ac_objext conftest$ac_exeext 10030if { (ac_try="$ac_link" 10031case "(($ac_try" in 10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10033 *) ac_try_echo=$ac_try;; 10034esac 10035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10036 (eval "$ac_link") 2>conftest.er1 10037 ac_status=$? 10038 grep -v '^ *+' conftest.er1 >conftest.err 10039 rm -f conftest.er1 10040 cat conftest.err >&5 10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10042 (exit $ac_status); } && 10043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10044 { (case "(($ac_try" in 10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10046 *) ac_try_echo=$ac_try;; 10047esac 10048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10049 (eval "$ac_try") 2>&5 10050 ac_status=$? 10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10052 (exit $ac_status); }; } && 10053 { ac_try='test -s conftest$ac_exeext' 10054 { (case "(($ac_try" in 10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10056 *) ac_try_echo=$ac_try;; 10057esac 10058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10059 (eval "$ac_try") 2>&5 10060 ac_status=$? 10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10062 (exit $ac_status); }; }; then 10063 ac_cv_func__dyld_func_lookup=yes 10064else 10065 echo "$as_me: failed program was:" >&5 10066sed 's/^/| /' conftest.$ac_ext >&5 10067 10068 ac_cv_func__dyld_func_lookup=no 10069fi 10070 10071rm -f core conftest.err conftest.$ac_objext \ 10072 conftest$ac_exeext conftest.$ac_ext 10073fi 10074{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10075echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10076if test $ac_cv_func__dyld_func_lookup = yes; then 10077 10078cat >>confdefs.h <<\_ACEOF 10079#define HAVE_DYLD 1 10080_ACEOF 10081 10082fi 10083 10084 10085fi 10086 10087 10088fi 10089 10090 10091fi 10092 10093rm -f core conftest.err conftest.$ac_objext \ 10094 conftest$ac_exeext conftest.$ac_ext 10095 10096fi 10097 10098 10099fi 10100 10101 10102fi 10103 10104 10105if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10106then 10107 lt_save_LIBS="$LIBS" 10108 LIBS="$LIBS $LIBADD_DL" 10109 10110for ac_func in dlerror 10111do 10112as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10113{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10114echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10115if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10116 echo $ECHO_N "(cached) $ECHO_C" >&6 10117else 10118 cat >conftest.$ac_ext <<_ACEOF 10119/* confdefs.h. */ 10120_ACEOF 10121cat confdefs.h >>conftest.$ac_ext 10122cat >>conftest.$ac_ext <<_ACEOF 10123/* end confdefs.h. */ 10124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10125 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10126#define $ac_func innocuous_$ac_func 10127 10128/* System header to define __stub macros and hopefully few prototypes, 10129 which can conflict with char $ac_func (); below. 10130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10131 <limits.h> exists even on freestanding compilers. */ 10132 10133#ifdef __STDC__ 10134# include <limits.h> 10135#else 10136# include <assert.h> 10137#endif 10138 10139#undef $ac_func 10140 10141/* Override any GCC internal prototype to avoid an error. 10142 Use char because int might match the return type of a GCC 10143 builtin and then its argument prototype would still apply. */ 10144#ifdef __cplusplus 10145extern "C" 10146#endif 10147char $ac_func (); 10148/* The GNU C library defines this for functions which it implements 10149 to always fail with ENOSYS. Some functions are actually named 10150 something starting with __ and the normal name is an alias. */ 10151#if defined __stub_$ac_func || defined __stub___$ac_func 10152choke me 10153#endif 10154 10155int 10156main () 10157{ 10158return $ac_func (); 10159 ; 10160 return 0; 10161} 10162_ACEOF 10163rm -f conftest.$ac_objext conftest$ac_exeext 10164if { (ac_try="$ac_link" 10165case "(($ac_try" in 10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10167 *) ac_try_echo=$ac_try;; 10168esac 10169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10170 (eval "$ac_link") 2>conftest.er1 10171 ac_status=$? 10172 grep -v '^ *+' conftest.er1 >conftest.err 10173 rm -f conftest.er1 10174 cat conftest.err >&5 10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10176 (exit $ac_status); } && 10177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10178 { (case "(($ac_try" in 10179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10180 *) ac_try_echo=$ac_try;; 10181esac 10182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10183 (eval "$ac_try") 2>&5 10184 ac_status=$? 10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10186 (exit $ac_status); }; } && 10187 { ac_try='test -s conftest$ac_exeext' 10188 { (case "(($ac_try" in 10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10190 *) ac_try_echo=$ac_try;; 10191esac 10192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10193 (eval "$ac_try") 2>&5 10194 ac_status=$? 10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10196 (exit $ac_status); }; }; then 10197 eval "$as_ac_var=yes" 10198else 10199 echo "$as_me: failed program was:" >&5 10200sed 's/^/| /' conftest.$ac_ext >&5 10201 10202 eval "$as_ac_var=no" 10203fi 10204 10205rm -f core conftest.err conftest.$ac_objext \ 10206 conftest$ac_exeext conftest.$ac_ext 10207fi 10208ac_res=`eval echo '${'$as_ac_var'}'` 10209 { echo "$as_me:$LINENO: result: $ac_res" >&5 10210echo "${ECHO_T}$ac_res" >&6; } 10211if test `eval echo '${'$as_ac_var'}'` = yes; then 10212 cat >>confdefs.h <<_ACEOF 10213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10214_ACEOF 10215 10216fi 10217done 10218 10219 LIBS="$lt_save_LIBS" 10220fi 10221ac_ext=c 10222ac_cpp='$CPP $CPPFLAGS' 10223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10225ac_compiler_gnu=$ac_cv_c_compiler_gnu 10226 10227 10228 10229{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10230echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10231if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10232 echo $ECHO_N "(cached) $ECHO_C" >&6 10233else 10234 ac_cv_sys_symbol_underscore=no 10235 cat > conftest.$ac_ext <<EOF 10236void nm_test_func(){} 10237int main(){nm_test_func;return 0;} 10238EOF 10239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10240 (eval $ac_compile) 2>&5 10241 ac_status=$? 10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10243 (exit $ac_status); }; then 10244 # Now try to grab the symbols. 10245 ac_nlist=conftest.nm 10246 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10247 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10248 ac_status=$? 10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10250 (exit $ac_status); } && test -s "$ac_nlist"; then 10251 # See whether the symbols have a leading underscore. 10252 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10253 ac_cv_sys_symbol_underscore=yes 10254 else 10255 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10256 : 10257 else 10258 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10259 fi 10260 fi 10261 else 10262 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10263 fi 10264 else 10265 echo "configure: failed program was:" >&5 10266 cat conftest.c >&5 10267 fi 10268 rm -rf conftest* 10269 10270fi 10271{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10272echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10273 10274 10275if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10276 if test x"$libltdl_cv_func_dlopen" = xyes || 10277 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10278 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10279echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10280if test "${libltdl_cv_need_uscore+set}" = set; then 10281 echo $ECHO_N "(cached) $ECHO_C" >&6 10282else 10283 libltdl_cv_need_uscore=unknown 10284 save_LIBS="$LIBS" 10285 LIBS="$LIBS $LIBADD_DL" 10286 if test "$cross_compiling" = yes; then : 10287 libltdl_cv_need_uscore=cross 10288else 10289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10290 lt_status=$lt_dlunknown 10291 cat > conftest.$ac_ext <<EOF 10292#line 10292 "configure" 10293#include "confdefs.h" 10294 10295#if HAVE_DLFCN_H 10296#include <dlfcn.h> 10297#endif 10298 10299#include <stdio.h> 10300 10301#ifdef RTLD_GLOBAL 10302# define LT_DLGLOBAL RTLD_GLOBAL 10303#else 10304# ifdef DL_GLOBAL 10305# define LT_DLGLOBAL DL_GLOBAL 10306# else 10307# define LT_DLGLOBAL 0 10308# endif 10309#endif 10310 10311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10312 find out it does not work in some platform. */ 10313#ifndef LT_DLLAZY_OR_NOW 10314# ifdef RTLD_LAZY 10315# define LT_DLLAZY_OR_NOW RTLD_LAZY 10316# else 10317# ifdef DL_LAZY 10318# define LT_DLLAZY_OR_NOW DL_LAZY 10319# else 10320# ifdef RTLD_NOW 10321# define LT_DLLAZY_OR_NOW RTLD_NOW 10322# else 10323# ifdef DL_NOW 10324# define LT_DLLAZY_OR_NOW DL_NOW 10325# else 10326# define LT_DLLAZY_OR_NOW 0 10327# endif 10328# endif 10329# endif 10330# endif 10331#endif 10332 10333#ifdef __cplusplus 10334extern "C" void exit (int); 10335#endif 10336 10337void fnord() { int i=42;} 10338int main () 10339{ 10340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10341 int status = $lt_dlunknown; 10342 10343 if (self) 10344 { 10345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10346 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10347 /* dlclose (self); */ 10348 } 10349 else 10350 puts (dlerror ()); 10351 10352 exit (status); 10353} 10354EOF 10355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10356 (eval $ac_link) 2>&5 10357 ac_status=$? 10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10359 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10360 (./conftest; exit; ) >&5 2>/dev/null 10361 lt_status=$? 10362 case x$lt_status in 10363 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10364 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10365 x$lt_dlunknown|x*) ;; 10366 esac 10367 else : 10368 # compilation failed 10369 10370 fi 10371fi 10372rm -fr conftest* 10373 10374 LIBS="$save_LIBS" 10375 10376fi 10377{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10378echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10379 fi 10380fi 10381 10382if test x"$libltdl_cv_need_uscore" = xyes; then 10383 10384cat >>confdefs.h <<\_ACEOF 10385#define NEED_USCORE 1 10386_ACEOF 10387 10388fi 10389 10390 10391{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10392echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10393if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10394 echo $ECHO_N "(cached) $ECHO_C" >&6 10395else 10396 # PORTME does your system automatically load deplibs for dlopen? 10397 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10398 # For now, we just catch OSes we know something about -- in the 10399 # future, we'll try test this programmatically. 10400 libltdl_cv_sys_dlopen_deplibs=unknown 10401 case "$host_os" in 10402 aix3*|aix4.1.*|aix4.2.*) 10403 # Unknown whether this is true for these versions of AIX, but 10404 # we want this `case' here to explicitly catch those versions. 10405 libltdl_cv_sys_dlopen_deplibs=unknown 10406 ;; 10407 aix[45]*) 10408 libltdl_cv_sys_dlopen_deplibs=yes 10409 ;; 10410 darwin*) 10411 # Assuming the user has installed a libdl from somewhere, this is true 10412 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10413 libltdl_cv_sys_dlopen_deplibs=yes 10414 ;; 10415 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10416 # GNU and its variants, using gnu ld.so (Glibc) 10417 libltdl_cv_sys_dlopen_deplibs=yes 10418 ;; 10419 hpux10*|hpux11*) 10420 libltdl_cv_sys_dlopen_deplibs=yes 10421 ;; 10422 interix*) 10423 libltdl_cv_sys_dlopen_deplibs=yes 10424 ;; 10425 irix[12345]*|irix6.[01]*) 10426 # Catch all versions of IRIX before 6.2, and indicate that we don't 10427 # know how it worked for any of those versions. 10428 libltdl_cv_sys_dlopen_deplibs=unknown 10429 ;; 10430 irix*) 10431 # The case above catches anything before 6.2, and it's known that 10432 # at 6.2 and later dlopen does load deplibs. 10433 libltdl_cv_sys_dlopen_deplibs=yes 10434 ;; 10435 netbsd*) 10436 libltdl_cv_sys_dlopen_deplibs=yes 10437 ;; 10438 openbsd*) 10439 libltdl_cv_sys_dlopen_deplibs=yes 10440 ;; 10441 osf[1234]*) 10442 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10443 # it did *not* use an RPATH in a shared library to find objects the 10444 # library depends on, so we explicitly say `no'. 10445 libltdl_cv_sys_dlopen_deplibs=no 10446 ;; 10447 osf5.0|osf5.0a|osf5.1) 10448 # dlopen *does* load deplibs and with the right loader patch applied 10449 # it even uses RPATH in a shared library to search for shared objects 10450 # that the library depends on, but there's no easy way to know if that 10451 # patch is installed. Since this is the case, all we can really 10452 # say is unknown -- it depends on the patch being installed. If 10453 # it is, this changes to `yes'. Without it, it would be `no'. 10454 libltdl_cv_sys_dlopen_deplibs=unknown 10455 ;; 10456 osf*) 10457 # the two cases above should catch all versions of osf <= 5.1. Read 10458 # the comments above for what we know about them. 10459 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10460 # is used to find them so we can finally say `yes'. 10461 libltdl_cv_sys_dlopen_deplibs=yes 10462 ;; 10463 solaris*) 10464 libltdl_cv_sys_dlopen_deplibs=yes 10465 ;; 10466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10467 libltdl_cv_sys_dlopen_deplibs=yes 10468 ;; 10469 esac 10470 10471fi 10472{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10473echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10474if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10475 10476cat >>confdefs.h <<\_ACEOF 10477#define LTDL_DLOPEN_DEPLIBS 1 10478_ACEOF 10479 10480fi 10481 10482 10483for ac_header in argz.h 10484do 10485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10487 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10490 echo $ECHO_N "(cached) $ECHO_C" >&6 10491fi 10492ac_res=`eval echo '${'$as_ac_Header'}'` 10493 { echo "$as_me:$LINENO: result: $ac_res" >&5 10494echo "${ECHO_T}$ac_res" >&6; } 10495else 10496 # Is the header compilable? 10497{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10498echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10499cat >conftest.$ac_ext <<_ACEOF 10500/* confdefs.h. */ 10501_ACEOF 10502cat confdefs.h >>conftest.$ac_ext 10503cat >>conftest.$ac_ext <<_ACEOF 10504/* end confdefs.h. */ 10505$ac_includes_default 10506#include <$ac_header> 10507_ACEOF 10508rm -f conftest.$ac_objext 10509if { (ac_try="$ac_compile" 10510case "(($ac_try" in 10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10512 *) ac_try_echo=$ac_try;; 10513esac 10514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10515 (eval "$ac_compile") 2>conftest.er1 10516 ac_status=$? 10517 grep -v '^ *+' conftest.er1 >conftest.err 10518 rm -f conftest.er1 10519 cat conftest.err >&5 10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10521 (exit $ac_status); } && 10522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10523 { (case "(($ac_try" in 10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10525 *) ac_try_echo=$ac_try;; 10526esac 10527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10528 (eval "$ac_try") 2>&5 10529 ac_status=$? 10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10531 (exit $ac_status); }; } && 10532 { ac_try='test -s conftest.$ac_objext' 10533 { (case "(($ac_try" in 10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10535 *) ac_try_echo=$ac_try;; 10536esac 10537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10538 (eval "$ac_try") 2>&5 10539 ac_status=$? 10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10541 (exit $ac_status); }; }; then 10542 ac_header_compiler=yes 10543else 10544 echo "$as_me: failed program was:" >&5 10545sed 's/^/| /' conftest.$ac_ext >&5 10546 10547 ac_header_compiler=no 10548fi 10549 10550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10551{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10552echo "${ECHO_T}$ac_header_compiler" >&6; } 10553 10554# Is the header present? 10555{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10556echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10557cat >conftest.$ac_ext <<_ACEOF 10558/* confdefs.h. */ 10559_ACEOF 10560cat confdefs.h >>conftest.$ac_ext 10561cat >>conftest.$ac_ext <<_ACEOF 10562/* end confdefs.h. */ 10563#include <$ac_header> 10564_ACEOF 10565if { (ac_try="$ac_cpp conftest.$ac_ext" 10566case "(($ac_try" in 10567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10568 *) ac_try_echo=$ac_try;; 10569esac 10570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10572 ac_status=$? 10573 grep -v '^ *+' conftest.er1 >conftest.err 10574 rm -f conftest.er1 10575 cat conftest.err >&5 10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10577 (exit $ac_status); } >/dev/null; then 10578 if test -s conftest.err; then 10579 ac_cpp_err=$ac_c_preproc_warn_flag 10580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10581 else 10582 ac_cpp_err= 10583 fi 10584else 10585 ac_cpp_err=yes 10586fi 10587if test -z "$ac_cpp_err"; then 10588 ac_header_preproc=yes 10589else 10590 echo "$as_me: failed program was:" >&5 10591sed 's/^/| /' conftest.$ac_ext >&5 10592 10593 ac_header_preproc=no 10594fi 10595 10596rm -f conftest.err conftest.$ac_ext 10597{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10598echo "${ECHO_T}$ac_header_preproc" >&6; } 10599 10600# So? What about this header? 10601case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10602 yes:no: ) 10603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10604echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10606echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10607 ac_header_preproc=yes 10608 ;; 10609 no:yes:* ) 10610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10611echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10613echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10615echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10617echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10619echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10621echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10622 ( cat <<\_ASBOX 10623## ------------------------------------ ## 10624## Report this to http://llvm.org/bugs/ ## 10625## ------------------------------------ ## 10626_ASBOX 10627 ) | sed "s/^/$as_me: WARNING: /" >&2 10628 ;; 10629esac 10630{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10633 echo $ECHO_N "(cached) $ECHO_C" >&6 10634else 10635 eval "$as_ac_Header=\$ac_header_preproc" 10636fi 10637ac_res=`eval echo '${'$as_ac_Header'}'` 10638 { echo "$as_me:$LINENO: result: $ac_res" >&5 10639echo "${ECHO_T}$ac_res" >&6; } 10640 10641fi 10642if test `eval echo '${'$as_ac_Header'}'` = yes; then 10643 cat >>confdefs.h <<_ACEOF 10644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10645_ACEOF 10646 10647fi 10648 10649done 10650 10651 10652{ echo "$as_me:$LINENO: checking for error_t" >&5 10653echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10654if test "${ac_cv_type_error_t+set}" = set; then 10655 echo $ECHO_N "(cached) $ECHO_C" >&6 10656else 10657 cat >conftest.$ac_ext <<_ACEOF 10658/* confdefs.h. */ 10659_ACEOF 10660cat confdefs.h >>conftest.$ac_ext 10661cat >>conftest.$ac_ext <<_ACEOF 10662/* end confdefs.h. */ 10663#if HAVE_ARGZ_H 10664# include <argz.h> 10665#endif 10666 10667typedef error_t ac__type_new_; 10668int 10669main () 10670{ 10671if ((ac__type_new_ *) 0) 10672 return 0; 10673if (sizeof (ac__type_new_)) 10674 return 0; 10675 ; 10676 return 0; 10677} 10678_ACEOF 10679rm -f conftest.$ac_objext 10680if { (ac_try="$ac_compile" 10681case "(($ac_try" in 10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10683 *) ac_try_echo=$ac_try;; 10684esac 10685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10686 (eval "$ac_compile") 2>conftest.er1 10687 ac_status=$? 10688 grep -v '^ *+' conftest.er1 >conftest.err 10689 rm -f conftest.er1 10690 cat conftest.err >&5 10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10692 (exit $ac_status); } && 10693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10694 { (case "(($ac_try" in 10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10696 *) ac_try_echo=$ac_try;; 10697esac 10698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10699 (eval "$ac_try") 2>&5 10700 ac_status=$? 10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10702 (exit $ac_status); }; } && 10703 { ac_try='test -s conftest.$ac_objext' 10704 { (case "(($ac_try" in 10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10706 *) ac_try_echo=$ac_try;; 10707esac 10708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10709 (eval "$ac_try") 2>&5 10710 ac_status=$? 10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10712 (exit $ac_status); }; }; then 10713 ac_cv_type_error_t=yes 10714else 10715 echo "$as_me: failed program was:" >&5 10716sed 's/^/| /' conftest.$ac_ext >&5 10717 10718 ac_cv_type_error_t=no 10719fi 10720 10721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10722fi 10723{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10724echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10725if test $ac_cv_type_error_t = yes; then 10726 10727cat >>confdefs.h <<_ACEOF 10728#define HAVE_ERROR_T 1 10729_ACEOF 10730 10731 10732else 10733 10734cat >>confdefs.h <<\_ACEOF 10735#define error_t int 10736_ACEOF 10737 10738fi 10739 10740 10741 10742 10743 10744 10745 10746for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 10747do 10748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10749{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10752 echo $ECHO_N "(cached) $ECHO_C" >&6 10753else 10754 cat >conftest.$ac_ext <<_ACEOF 10755/* confdefs.h. */ 10756_ACEOF 10757cat confdefs.h >>conftest.$ac_ext 10758cat >>conftest.$ac_ext <<_ACEOF 10759/* end confdefs.h. */ 10760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10761 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10762#define $ac_func innocuous_$ac_func 10763 10764/* System header to define __stub macros and hopefully few prototypes, 10765 which can conflict with char $ac_func (); below. 10766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10767 <limits.h> exists even on freestanding compilers. */ 10768 10769#ifdef __STDC__ 10770# include <limits.h> 10771#else 10772# include <assert.h> 10773#endif 10774 10775#undef $ac_func 10776 10777/* Override any GCC internal prototype to avoid an error. 10778 Use char because int might match the return type of a GCC 10779 builtin and then its argument prototype would still apply. */ 10780#ifdef __cplusplus 10781extern "C" 10782#endif 10783char $ac_func (); 10784/* The GNU C library defines this for functions which it implements 10785 to always fail with ENOSYS. Some functions are actually named 10786 something starting with __ and the normal name is an alias. */ 10787#if defined __stub_$ac_func || defined __stub___$ac_func 10788choke me 10789#endif 10790 10791int 10792main () 10793{ 10794return $ac_func (); 10795 ; 10796 return 0; 10797} 10798_ACEOF 10799rm -f conftest.$ac_objext conftest$ac_exeext 10800if { (ac_try="$ac_link" 10801case "(($ac_try" in 10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10803 *) ac_try_echo=$ac_try;; 10804esac 10805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10806 (eval "$ac_link") 2>conftest.er1 10807 ac_status=$? 10808 grep -v '^ *+' conftest.er1 >conftest.err 10809 rm -f conftest.er1 10810 cat conftest.err >&5 10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10812 (exit $ac_status); } && 10813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10814 { (case "(($ac_try" in 10815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10816 *) ac_try_echo=$ac_try;; 10817esac 10818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10819 (eval "$ac_try") 2>&5 10820 ac_status=$? 10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10822 (exit $ac_status); }; } && 10823 { ac_try='test -s conftest$ac_exeext' 10824 { (case "(($ac_try" in 10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10826 *) ac_try_echo=$ac_try;; 10827esac 10828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10829 (eval "$ac_try") 2>&5 10830 ac_status=$? 10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10832 (exit $ac_status); }; }; then 10833 eval "$as_ac_var=yes" 10834else 10835 echo "$as_me: failed program was:" >&5 10836sed 's/^/| /' conftest.$ac_ext >&5 10837 10838 eval "$as_ac_var=no" 10839fi 10840 10841rm -f core conftest.err conftest.$ac_objext \ 10842 conftest$ac_exeext conftest.$ac_ext 10843fi 10844ac_res=`eval echo '${'$as_ac_var'}'` 10845 { echo "$as_me:$LINENO: result: $ac_res" >&5 10846echo "${ECHO_T}$ac_res" >&6; } 10847if test `eval echo '${'$as_ac_var'}'` = yes; then 10848 cat >>confdefs.h <<_ACEOF 10849#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10850_ACEOF 10851 10852fi 10853done 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 10883 stdio.h unistd.h 10884do 10885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10887 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10890 echo $ECHO_N "(cached) $ECHO_C" >&6 10891fi 10892ac_res=`eval echo '${'$as_ac_Header'}'` 10893 { echo "$as_me:$LINENO: result: $ac_res" >&5 10894echo "${ECHO_T}$ac_res" >&6; } 10895else 10896 # Is the header compilable? 10897{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10899cat >conftest.$ac_ext <<_ACEOF 10900/* confdefs.h. */ 10901_ACEOF 10902cat confdefs.h >>conftest.$ac_ext 10903cat >>conftest.$ac_ext <<_ACEOF 10904/* end confdefs.h. */ 10905$ac_includes_default 10906#include <$ac_header> 10907_ACEOF 10908rm -f conftest.$ac_objext 10909if { (ac_try="$ac_compile" 10910case "(($ac_try" in 10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10912 *) ac_try_echo=$ac_try;; 10913esac 10914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10915 (eval "$ac_compile") 2>conftest.er1 10916 ac_status=$? 10917 grep -v '^ *+' conftest.er1 >conftest.err 10918 rm -f conftest.er1 10919 cat conftest.err >&5 10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10921 (exit $ac_status); } && 10922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10923 { (case "(($ac_try" in 10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10925 *) ac_try_echo=$ac_try;; 10926esac 10927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10928 (eval "$ac_try") 2>&5 10929 ac_status=$? 10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10931 (exit $ac_status); }; } && 10932 { ac_try='test -s conftest.$ac_objext' 10933 { (case "(($ac_try" in 10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10935 *) ac_try_echo=$ac_try;; 10936esac 10937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10938 (eval "$ac_try") 2>&5 10939 ac_status=$? 10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10941 (exit $ac_status); }; }; then 10942 ac_header_compiler=yes 10943else 10944 echo "$as_me: failed program was:" >&5 10945sed 's/^/| /' conftest.$ac_ext >&5 10946 10947 ac_header_compiler=no 10948fi 10949 10950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10951{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10952echo "${ECHO_T}$ac_header_compiler" >&6; } 10953 10954# Is the header present? 10955{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10956echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10957cat >conftest.$ac_ext <<_ACEOF 10958/* confdefs.h. */ 10959_ACEOF 10960cat confdefs.h >>conftest.$ac_ext 10961cat >>conftest.$ac_ext <<_ACEOF 10962/* end confdefs.h. */ 10963#include <$ac_header> 10964_ACEOF 10965if { (ac_try="$ac_cpp conftest.$ac_ext" 10966case "(($ac_try" in 10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10968 *) ac_try_echo=$ac_try;; 10969esac 10970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10972 ac_status=$? 10973 grep -v '^ *+' conftest.er1 >conftest.err 10974 rm -f conftest.er1 10975 cat conftest.err >&5 10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10977 (exit $ac_status); } >/dev/null; then 10978 if test -s conftest.err; then 10979 ac_cpp_err=$ac_c_preproc_warn_flag 10980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10981 else 10982 ac_cpp_err= 10983 fi 10984else 10985 ac_cpp_err=yes 10986fi 10987if test -z "$ac_cpp_err"; then 10988 ac_header_preproc=yes 10989else 10990 echo "$as_me: failed program was:" >&5 10991sed 's/^/| /' conftest.$ac_ext >&5 10992 10993 ac_header_preproc=no 10994fi 10995 10996rm -f conftest.err conftest.$ac_ext 10997{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10998echo "${ECHO_T}$ac_header_preproc" >&6; } 10999 11000# So? What about this header? 11001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11002 yes:no: ) 11003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11004echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11006echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11007 ac_header_preproc=yes 11008 ;; 11009 no:yes:* ) 11010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11011echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11013echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11015echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11017echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11019echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11021echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11022 ( cat <<\_ASBOX 11023## ------------------------------------ ## 11024## Report this to http://llvm.org/bugs/ ## 11025## ------------------------------------ ## 11026_ASBOX 11027 ) | sed "s/^/$as_me: WARNING: /" >&2 11028 ;; 11029esac 11030{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11033 echo $ECHO_N "(cached) $ECHO_C" >&6 11034else 11035 eval "$as_ac_Header=\$ac_header_preproc" 11036fi 11037ac_res=`eval echo '${'$as_ac_Header'}'` 11038 { echo "$as_me:$LINENO: result: $ac_res" >&5 11039echo "${ECHO_T}$ac_res" >&6; } 11040 11041fi 11042if test `eval echo '${'$as_ac_Header'}'` = yes; then 11043 cat >>confdefs.h <<_ACEOF 11044#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11045_ACEOF 11046 11047fi 11048 11049done 11050 11051 11052 11053 11054 11055for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 11056do 11057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11059 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11062 echo $ECHO_N "(cached) $ECHO_C" >&6 11063fi 11064ac_res=`eval echo '${'$as_ac_Header'}'` 11065 { echo "$as_me:$LINENO: result: $ac_res" >&5 11066echo "${ECHO_T}$ac_res" >&6; } 11067else 11068 # Is the header compilable? 11069{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11071cat >conftest.$ac_ext <<_ACEOF 11072/* confdefs.h. */ 11073_ACEOF 11074cat confdefs.h >>conftest.$ac_ext 11075cat >>conftest.$ac_ext <<_ACEOF 11076/* end confdefs.h. */ 11077$ac_includes_default 11078#include <$ac_header> 11079_ACEOF 11080rm -f conftest.$ac_objext 11081if { (ac_try="$ac_compile" 11082case "(($ac_try" in 11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11084 *) ac_try_echo=$ac_try;; 11085esac 11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11087 (eval "$ac_compile") 2>conftest.er1 11088 ac_status=$? 11089 grep -v '^ *+' conftest.er1 >conftest.err 11090 rm -f conftest.er1 11091 cat conftest.err >&5 11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11093 (exit $ac_status); } && 11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11095 { (case "(($ac_try" in 11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11097 *) ac_try_echo=$ac_try;; 11098esac 11099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11100 (eval "$ac_try") 2>&5 11101 ac_status=$? 11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11103 (exit $ac_status); }; } && 11104 { ac_try='test -s conftest.$ac_objext' 11105 { (case "(($ac_try" in 11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11107 *) ac_try_echo=$ac_try;; 11108esac 11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11110 (eval "$ac_try") 2>&5 11111 ac_status=$? 11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11113 (exit $ac_status); }; }; then 11114 ac_header_compiler=yes 11115else 11116 echo "$as_me: failed program was:" >&5 11117sed 's/^/| /' conftest.$ac_ext >&5 11118 11119 ac_header_compiler=no 11120fi 11121 11122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11123{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11124echo "${ECHO_T}$ac_header_compiler" >&6; } 11125 11126# Is the header present? 11127{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11129cat >conftest.$ac_ext <<_ACEOF 11130/* confdefs.h. */ 11131_ACEOF 11132cat confdefs.h >>conftest.$ac_ext 11133cat >>conftest.$ac_ext <<_ACEOF 11134/* end confdefs.h. */ 11135#include <$ac_header> 11136_ACEOF 11137if { (ac_try="$ac_cpp conftest.$ac_ext" 11138case "(($ac_try" in 11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11140 *) ac_try_echo=$ac_try;; 11141esac 11142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11144 ac_status=$? 11145 grep -v '^ *+' conftest.er1 >conftest.err 11146 rm -f conftest.er1 11147 cat conftest.err >&5 11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11149 (exit $ac_status); } >/dev/null; then 11150 if test -s conftest.err; then 11151 ac_cpp_err=$ac_c_preproc_warn_flag 11152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11153 else 11154 ac_cpp_err= 11155 fi 11156else 11157 ac_cpp_err=yes 11158fi 11159if test -z "$ac_cpp_err"; then 11160 ac_header_preproc=yes 11161else 11162 echo "$as_me: failed program was:" >&5 11163sed 's/^/| /' conftest.$ac_ext >&5 11164 11165 ac_header_preproc=no 11166fi 11167 11168rm -f conftest.err conftest.$ac_ext 11169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11170echo "${ECHO_T}$ac_header_preproc" >&6; } 11171 11172# So? What about this header? 11173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11174 yes:no: ) 11175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11179 ac_header_preproc=yes 11180 ;; 11181 no:yes:* ) 11182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11194 ( cat <<\_ASBOX 11195## ------------------------------------ ## 11196## Report this to http://llvm.org/bugs/ ## 11197## ------------------------------------ ## 11198_ASBOX 11199 ) | sed "s/^/$as_me: WARNING: /" >&2 11200 ;; 11201esac 11202{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11205 echo $ECHO_N "(cached) $ECHO_C" >&6 11206else 11207 eval "$as_ac_Header=\$ac_header_preproc" 11208fi 11209ac_res=`eval echo '${'$as_ac_Header'}'` 11210 { echo "$as_me:$LINENO: result: $ac_res" >&5 11211echo "${ECHO_T}$ac_res" >&6; } 11212 11213fi 11214if test `eval echo '${'$as_ac_Header'}'` = yes; then 11215 cat >>confdefs.h <<_ACEOF 11216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11217_ACEOF 11218 11219fi 11220 11221done 11222 11223 11224 11225for ac_header in string.h strings.h 11226do 11227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11229 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11232 echo $ECHO_N "(cached) $ECHO_C" >&6 11233fi 11234ac_res=`eval echo '${'$as_ac_Header'}'` 11235 { echo "$as_me:$LINENO: result: $ac_res" >&5 11236echo "${ECHO_T}$ac_res" >&6; } 11237else 11238 # Is the header compilable? 11239{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11240echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11241cat >conftest.$ac_ext <<_ACEOF 11242/* confdefs.h. */ 11243_ACEOF 11244cat confdefs.h >>conftest.$ac_ext 11245cat >>conftest.$ac_ext <<_ACEOF 11246/* end confdefs.h. */ 11247$ac_includes_default 11248#include <$ac_header> 11249_ACEOF 11250rm -f conftest.$ac_objext 11251if { (ac_try="$ac_compile" 11252case "(($ac_try" in 11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11254 *) ac_try_echo=$ac_try;; 11255esac 11256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11257 (eval "$ac_compile") 2>conftest.er1 11258 ac_status=$? 11259 grep -v '^ *+' conftest.er1 >conftest.err 11260 rm -f conftest.er1 11261 cat conftest.err >&5 11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11263 (exit $ac_status); } && 11264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11265 { (case "(($ac_try" in 11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11267 *) ac_try_echo=$ac_try;; 11268esac 11269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11270 (eval "$ac_try") 2>&5 11271 ac_status=$? 11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11273 (exit $ac_status); }; } && 11274 { ac_try='test -s conftest.$ac_objext' 11275 { (case "(($ac_try" in 11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11277 *) ac_try_echo=$ac_try;; 11278esac 11279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11280 (eval "$ac_try") 2>&5 11281 ac_status=$? 11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11283 (exit $ac_status); }; }; then 11284 ac_header_compiler=yes 11285else 11286 echo "$as_me: failed program was:" >&5 11287sed 's/^/| /' conftest.$ac_ext >&5 11288 11289 ac_header_compiler=no 11290fi 11291 11292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11293{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11294echo "${ECHO_T}$ac_header_compiler" >&6; } 11295 11296# Is the header present? 11297{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11298echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11299cat >conftest.$ac_ext <<_ACEOF 11300/* confdefs.h. */ 11301_ACEOF 11302cat confdefs.h >>conftest.$ac_ext 11303cat >>conftest.$ac_ext <<_ACEOF 11304/* end confdefs.h. */ 11305#include <$ac_header> 11306_ACEOF 11307if { (ac_try="$ac_cpp conftest.$ac_ext" 11308case "(($ac_try" in 11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11310 *) ac_try_echo=$ac_try;; 11311esac 11312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11314 ac_status=$? 11315 grep -v '^ *+' conftest.er1 >conftest.err 11316 rm -f conftest.er1 11317 cat conftest.err >&5 11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11319 (exit $ac_status); } >/dev/null; then 11320 if test -s conftest.err; then 11321 ac_cpp_err=$ac_c_preproc_warn_flag 11322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11323 else 11324 ac_cpp_err= 11325 fi 11326else 11327 ac_cpp_err=yes 11328fi 11329if test -z "$ac_cpp_err"; then 11330 ac_header_preproc=yes 11331else 11332 echo "$as_me: failed program was:" >&5 11333sed 's/^/| /' conftest.$ac_ext >&5 11334 11335 ac_header_preproc=no 11336fi 11337 11338rm -f conftest.err conftest.$ac_ext 11339{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11340echo "${ECHO_T}$ac_header_preproc" >&6; } 11341 11342# So? What about this header? 11343case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11344 yes:no: ) 11345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11349 ac_header_preproc=yes 11350 ;; 11351 no:yes:* ) 11352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11355echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11359echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11364 ( cat <<\_ASBOX 11365## ------------------------------------ ## 11366## Report this to http://llvm.org/bugs/ ## 11367## ------------------------------------ ## 11368_ASBOX 11369 ) | sed "s/^/$as_me: WARNING: /" >&2 11370 ;; 11371esac 11372{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11375 echo $ECHO_N "(cached) $ECHO_C" >&6 11376else 11377 eval "$as_ac_Header=\$ac_header_preproc" 11378fi 11379ac_res=`eval echo '${'$as_ac_Header'}'` 11380 { echo "$as_me:$LINENO: result: $ac_res" >&5 11381echo "${ECHO_T}$ac_res" >&6; } 11382 11383fi 11384if test `eval echo '${'$as_ac_Header'}'` = yes; then 11385 cat >>confdefs.h <<_ACEOF 11386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11387_ACEOF 11388 break 11389fi 11390 11391done 11392 11393 11394 11395 11396for ac_func in strchr index 11397do 11398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11399{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11401if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11402 echo $ECHO_N "(cached) $ECHO_C" >&6 11403else 11404 cat >conftest.$ac_ext <<_ACEOF 11405/* confdefs.h. */ 11406_ACEOF 11407cat confdefs.h >>conftest.$ac_ext 11408cat >>conftest.$ac_ext <<_ACEOF 11409/* end confdefs.h. */ 11410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11411 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11412#define $ac_func innocuous_$ac_func 11413 11414/* System header to define __stub macros and hopefully few prototypes, 11415 which can conflict with char $ac_func (); below. 11416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11417 <limits.h> exists even on freestanding compilers. */ 11418 11419#ifdef __STDC__ 11420# include <limits.h> 11421#else 11422# include <assert.h> 11423#endif 11424 11425#undef $ac_func 11426 11427/* Override any GCC internal prototype to avoid an error. 11428 Use char because int might match the return type of a GCC 11429 builtin and then its argument prototype would still apply. */ 11430#ifdef __cplusplus 11431extern "C" 11432#endif 11433char $ac_func (); 11434/* The GNU C library defines this for functions which it implements 11435 to always fail with ENOSYS. Some functions are actually named 11436 something starting with __ and the normal name is an alias. */ 11437#if defined __stub_$ac_func || defined __stub___$ac_func 11438choke me 11439#endif 11440 11441int 11442main () 11443{ 11444return $ac_func (); 11445 ; 11446 return 0; 11447} 11448_ACEOF 11449rm -f conftest.$ac_objext conftest$ac_exeext 11450if { (ac_try="$ac_link" 11451case "(($ac_try" in 11452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11453 *) ac_try_echo=$ac_try;; 11454esac 11455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11456 (eval "$ac_link") 2>conftest.er1 11457 ac_status=$? 11458 grep -v '^ *+' conftest.er1 >conftest.err 11459 rm -f conftest.er1 11460 cat conftest.err >&5 11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11462 (exit $ac_status); } && 11463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11464 { (case "(($ac_try" in 11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11466 *) ac_try_echo=$ac_try;; 11467esac 11468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11469 (eval "$ac_try") 2>&5 11470 ac_status=$? 11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11472 (exit $ac_status); }; } && 11473 { ac_try='test -s conftest$ac_exeext' 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); }; }; then 11483 eval "$as_ac_var=yes" 11484else 11485 echo "$as_me: failed program was:" >&5 11486sed 's/^/| /' conftest.$ac_ext >&5 11487 11488 eval "$as_ac_var=no" 11489fi 11490 11491rm -f core conftest.err conftest.$ac_objext \ 11492 conftest$ac_exeext conftest.$ac_ext 11493fi 11494ac_res=`eval echo '${'$as_ac_var'}'` 11495 { echo "$as_me:$LINENO: result: $ac_res" >&5 11496echo "${ECHO_T}$ac_res" >&6; } 11497if test `eval echo '${'$as_ac_var'}'` = yes; then 11498 cat >>confdefs.h <<_ACEOF 11499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11500_ACEOF 11501 break 11502fi 11503done 11504 11505 11506 11507for ac_func in strrchr rindex 11508do 11509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11510{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11512if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11513 echo $ECHO_N "(cached) $ECHO_C" >&6 11514else 11515 cat >conftest.$ac_ext <<_ACEOF 11516/* confdefs.h. */ 11517_ACEOF 11518cat confdefs.h >>conftest.$ac_ext 11519cat >>conftest.$ac_ext <<_ACEOF 11520/* end confdefs.h. */ 11521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11522 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11523#define $ac_func innocuous_$ac_func 11524 11525/* System header to define __stub macros and hopefully few prototypes, 11526 which can conflict with char $ac_func (); below. 11527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11528 <limits.h> exists even on freestanding compilers. */ 11529 11530#ifdef __STDC__ 11531# include <limits.h> 11532#else 11533# include <assert.h> 11534#endif 11535 11536#undef $ac_func 11537 11538/* Override any GCC internal prototype to avoid an error. 11539 Use char because int might match the return type of a GCC 11540 builtin and then its argument prototype would still apply. */ 11541#ifdef __cplusplus 11542extern "C" 11543#endif 11544char $ac_func (); 11545/* The GNU C library defines this for functions which it implements 11546 to always fail with ENOSYS. Some functions are actually named 11547 something starting with __ and the normal name is an alias. */ 11548#if defined __stub_$ac_func || defined __stub___$ac_func 11549choke me 11550#endif 11551 11552int 11553main () 11554{ 11555return $ac_func (); 11556 ; 11557 return 0; 11558} 11559_ACEOF 11560rm -f conftest.$ac_objext conftest$ac_exeext 11561if { (ac_try="$ac_link" 11562case "(($ac_try" in 11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11564 *) ac_try_echo=$ac_try;; 11565esac 11566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11567 (eval "$ac_link") 2>conftest.er1 11568 ac_status=$? 11569 grep -v '^ *+' conftest.er1 >conftest.err 11570 rm -f conftest.er1 11571 cat conftest.err >&5 11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11573 (exit $ac_status); } && 11574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11575 { (case "(($ac_try" in 11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11577 *) ac_try_echo=$ac_try;; 11578esac 11579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11580 (eval "$ac_try") 2>&5 11581 ac_status=$? 11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11583 (exit $ac_status); }; } && 11584 { ac_try='test -s conftest$ac_exeext' 11585 { (case "(($ac_try" in 11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11587 *) ac_try_echo=$ac_try;; 11588esac 11589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11590 (eval "$ac_try") 2>&5 11591 ac_status=$? 11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11593 (exit $ac_status); }; }; then 11594 eval "$as_ac_var=yes" 11595else 11596 echo "$as_me: failed program was:" >&5 11597sed 's/^/| /' conftest.$ac_ext >&5 11598 11599 eval "$as_ac_var=no" 11600fi 11601 11602rm -f core conftest.err conftest.$ac_objext \ 11603 conftest$ac_exeext conftest.$ac_ext 11604fi 11605ac_res=`eval echo '${'$as_ac_var'}'` 11606 { echo "$as_me:$LINENO: result: $ac_res" >&5 11607echo "${ECHO_T}$ac_res" >&6; } 11608if test `eval echo '${'$as_ac_var'}'` = yes; then 11609 cat >>confdefs.h <<_ACEOF 11610#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11611_ACEOF 11612 break 11613fi 11614done 11615 11616 11617 11618for ac_func in memcpy bcopy 11619do 11620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11621{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11623if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11624 echo $ECHO_N "(cached) $ECHO_C" >&6 11625else 11626 cat >conftest.$ac_ext <<_ACEOF 11627/* confdefs.h. */ 11628_ACEOF 11629cat confdefs.h >>conftest.$ac_ext 11630cat >>conftest.$ac_ext <<_ACEOF 11631/* end confdefs.h. */ 11632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11633 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11634#define $ac_func innocuous_$ac_func 11635 11636/* System header to define __stub macros and hopefully few prototypes, 11637 which can conflict with char $ac_func (); below. 11638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11639 <limits.h> exists even on freestanding compilers. */ 11640 11641#ifdef __STDC__ 11642# include <limits.h> 11643#else 11644# include <assert.h> 11645#endif 11646 11647#undef $ac_func 11648 11649/* Override any GCC internal prototype to avoid an error. 11650 Use char because int might match the return type of a GCC 11651 builtin and then its argument prototype would still apply. */ 11652#ifdef __cplusplus 11653extern "C" 11654#endif 11655char $ac_func (); 11656/* The GNU C library defines this for functions which it implements 11657 to always fail with ENOSYS. Some functions are actually named 11658 something starting with __ and the normal name is an alias. */ 11659#if defined __stub_$ac_func || defined __stub___$ac_func 11660choke me 11661#endif 11662 11663int 11664main () 11665{ 11666return $ac_func (); 11667 ; 11668 return 0; 11669} 11670_ACEOF 11671rm -f conftest.$ac_objext conftest$ac_exeext 11672if { (ac_try="$ac_link" 11673case "(($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_link") 2>conftest.er1 11679 ac_status=$? 11680 grep -v '^ *+' conftest.er1 >conftest.err 11681 rm -f conftest.er1 11682 cat conftest.err >&5 11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11684 (exit $ac_status); } && 11685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11686 { (case "(($ac_try" in 11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11688 *) ac_try_echo=$ac_try;; 11689esac 11690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11691 (eval "$ac_try") 2>&5 11692 ac_status=$? 11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11694 (exit $ac_status); }; } && 11695 { ac_try='test -s conftest$ac_exeext' 11696 { (case "(($ac_try" in 11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11698 *) ac_try_echo=$ac_try;; 11699esac 11700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11701 (eval "$ac_try") 2>&5 11702 ac_status=$? 11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11704 (exit $ac_status); }; }; then 11705 eval "$as_ac_var=yes" 11706else 11707 echo "$as_me: failed program was:" >&5 11708sed 's/^/| /' conftest.$ac_ext >&5 11709 11710 eval "$as_ac_var=no" 11711fi 11712 11713rm -f core conftest.err conftest.$ac_objext \ 11714 conftest$ac_exeext conftest.$ac_ext 11715fi 11716ac_res=`eval echo '${'$as_ac_var'}'` 11717 { echo "$as_me:$LINENO: result: $ac_res" >&5 11718echo "${ECHO_T}$ac_res" >&6; } 11719if test `eval echo '${'$as_ac_var'}'` = yes; then 11720 cat >>confdefs.h <<_ACEOF 11721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11722_ACEOF 11723 break 11724fi 11725done 11726 11727 11728 11729for ac_func in memmove strcmp 11730do 11731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11732{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11734if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11735 echo $ECHO_N "(cached) $ECHO_C" >&6 11736else 11737 cat >conftest.$ac_ext <<_ACEOF 11738/* confdefs.h. */ 11739_ACEOF 11740cat confdefs.h >>conftest.$ac_ext 11741cat >>conftest.$ac_ext <<_ACEOF 11742/* end confdefs.h. */ 11743/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11744 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11745#define $ac_func innocuous_$ac_func 11746 11747/* System header to define __stub macros and hopefully few prototypes, 11748 which can conflict with char $ac_func (); below. 11749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11750 <limits.h> exists even on freestanding compilers. */ 11751 11752#ifdef __STDC__ 11753# include <limits.h> 11754#else 11755# include <assert.h> 11756#endif 11757 11758#undef $ac_func 11759 11760/* Override any GCC internal prototype to avoid an error. 11761 Use char because int might match the return type of a GCC 11762 builtin and then its argument prototype would still apply. */ 11763#ifdef __cplusplus 11764extern "C" 11765#endif 11766char $ac_func (); 11767/* The GNU C library defines this for functions which it implements 11768 to always fail with ENOSYS. Some functions are actually named 11769 something starting with __ and the normal name is an alias. */ 11770#if defined __stub_$ac_func || defined __stub___$ac_func 11771choke me 11772#endif 11773 11774int 11775main () 11776{ 11777return $ac_func (); 11778 ; 11779 return 0; 11780} 11781_ACEOF 11782rm -f conftest.$ac_objext conftest$ac_exeext 11783if { (ac_try="$ac_link" 11784case "(($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_link") 2>conftest.er1 11790 ac_status=$? 11791 grep -v '^ *+' conftest.er1 >conftest.err 11792 rm -f conftest.er1 11793 cat conftest.err >&5 11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11795 (exit $ac_status); } && 11796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11797 { (case "(($ac_try" in 11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11799 *) ac_try_echo=$ac_try;; 11800esac 11801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11802 (eval "$ac_try") 2>&5 11803 ac_status=$? 11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11805 (exit $ac_status); }; } && 11806 { ac_try='test -s conftest$ac_exeext' 11807 { (case "(($ac_try" in 11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11809 *) ac_try_echo=$ac_try;; 11810esac 11811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11812 (eval "$ac_try") 2>&5 11813 ac_status=$? 11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11815 (exit $ac_status); }; }; then 11816 eval "$as_ac_var=yes" 11817else 11818 echo "$as_me: failed program was:" >&5 11819sed 's/^/| /' conftest.$ac_ext >&5 11820 11821 eval "$as_ac_var=no" 11822fi 11823 11824rm -f core conftest.err conftest.$ac_objext \ 11825 conftest$ac_exeext conftest.$ac_ext 11826fi 11827ac_res=`eval echo '${'$as_ac_var'}'` 11828 { echo "$as_me:$LINENO: result: $ac_res" >&5 11829echo "${ECHO_T}$ac_res" >&6; } 11830if test `eval echo '${'$as_ac_var'}'` = yes; then 11831 cat >>confdefs.h <<_ACEOF 11832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11833_ACEOF 11834 11835fi 11836done 11837 11838 11839 11840 11841for ac_func in closedir opendir readdir 11842do 11843as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11844{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11846if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11847 echo $ECHO_N "(cached) $ECHO_C" >&6 11848else 11849 cat >conftest.$ac_ext <<_ACEOF 11850/* confdefs.h. */ 11851_ACEOF 11852cat confdefs.h >>conftest.$ac_ext 11853cat >>conftest.$ac_ext <<_ACEOF 11854/* end confdefs.h. */ 11855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11856 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11857#define $ac_func innocuous_$ac_func 11858 11859/* System header to define __stub macros and hopefully few prototypes, 11860 which can conflict with char $ac_func (); below. 11861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11862 <limits.h> exists even on freestanding compilers. */ 11863 11864#ifdef __STDC__ 11865# include <limits.h> 11866#else 11867# include <assert.h> 11868#endif 11869 11870#undef $ac_func 11871 11872/* Override any GCC internal prototype to avoid an error. 11873 Use char because int might match the return type of a GCC 11874 builtin and then its argument prototype would still apply. */ 11875#ifdef __cplusplus 11876extern "C" 11877#endif 11878char $ac_func (); 11879/* The GNU C library defines this for functions which it implements 11880 to always fail with ENOSYS. Some functions are actually named 11881 something starting with __ and the normal name is an alias. */ 11882#if defined __stub_$ac_func || defined __stub___$ac_func 11883choke me 11884#endif 11885 11886int 11887main () 11888{ 11889return $ac_func (); 11890 ; 11891 return 0; 11892} 11893_ACEOF 11894rm -f conftest.$ac_objext conftest$ac_exeext 11895if { (ac_try="$ac_link" 11896case "(($ac_try" in 11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11898 *) ac_try_echo=$ac_try;; 11899esac 11900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11901 (eval "$ac_link") 2>conftest.er1 11902 ac_status=$? 11903 grep -v '^ *+' conftest.er1 >conftest.err 11904 rm -f conftest.er1 11905 cat conftest.err >&5 11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11907 (exit $ac_status); } && 11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11909 { (case "(($ac_try" in 11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11911 *) ac_try_echo=$ac_try;; 11912esac 11913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11914 (eval "$ac_try") 2>&5 11915 ac_status=$? 11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11917 (exit $ac_status); }; } && 11918 { ac_try='test -s conftest$ac_exeext' 11919 { (case "(($ac_try" in 11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11921 *) ac_try_echo=$ac_try;; 11922esac 11923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11924 (eval "$ac_try") 2>&5 11925 ac_status=$? 11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11927 (exit $ac_status); }; }; then 11928 eval "$as_ac_var=yes" 11929else 11930 echo "$as_me: failed program was:" >&5 11931sed 's/^/| /' conftest.$ac_ext >&5 11932 11933 eval "$as_ac_var=no" 11934fi 11935 11936rm -f core conftest.err conftest.$ac_objext \ 11937 conftest$ac_exeext conftest.$ac_ext 11938fi 11939ac_res=`eval echo '${'$as_ac_var'}'` 11940 { echo "$as_me:$LINENO: result: $ac_res" >&5 11941echo "${ECHO_T}$ac_res" >&6; } 11942if test `eval echo '${'$as_ac_var'}'` = yes; then 11943 cat >>confdefs.h <<_ACEOF 11944#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11945_ACEOF 11946 11947fi 11948done 11949 11950 11951 11952{ echo "$as_me:$LINENO: checking tool compatibility" >&5 11953echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 11954 11955ICC=no 11956IXX=no 11957case $CC in 11958 icc*|icpc*) 11959 ICC=yes 11960 IXX=yes 11961 ;; 11962 *) 11963 ;; 11964esac 11965 11966if test "$GCC" != "yes" && test "$ICC" != "yes" 11967then 11968 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 11969echo "$as_me: error: gcc|icc required but not found" >&2;} 11970 { (exit 1); exit 1; }; } 11971fi 11972 11973if test "$GXX" != "yes" && test "$IXX" != "yes" 11974then 11975 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 11976echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 11977 { (exit 1); exit 1; }; } 11978fi 11979 11980if test "$GCC" = "yes" 11981then 11982 cat >conftest.$ac_ext <<_ACEOF 11983#if !defined(__GNUC__) || __GNUC__ < 3 11984#error Unsupported GCC version 11985#endif 11986 11987_ACEOF 11988rm -f conftest.$ac_objext 11989if { (ac_try="$ac_compile" 11990case "(($ac_try" in 11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11992 *) ac_try_echo=$ac_try;; 11993esac 11994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11995 (eval "$ac_compile") 2>conftest.er1 11996 ac_status=$? 11997 grep -v '^ *+' conftest.er1 >conftest.err 11998 rm -f conftest.er1 11999 cat conftest.err >&5 12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12001 (exit $ac_status); } && 12002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12003 { (case "(($ac_try" in 12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12005 *) ac_try_echo=$ac_try;; 12006esac 12007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12008 (eval "$ac_try") 2>&5 12009 ac_status=$? 12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12011 (exit $ac_status); }; } && 12012 { ac_try='test -s conftest.$ac_objext' 12013 { (case "(($ac_try" in 12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12015 *) ac_try_echo=$ac_try;; 12016esac 12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12018 (eval "$ac_try") 2>&5 12019 ac_status=$? 12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12021 (exit $ac_status); }; }; then 12022 : 12023else 12024 echo "$as_me: failed program was:" >&5 12025sed 's/^/| /' conftest.$ac_ext >&5 12026 12027 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 12028echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 12029 { (exit 1); exit 1; }; } 12030fi 12031 12032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12033fi 12034 12035if test -z "$llvm_cv_gnu_make_command" 12036then 12037 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 12038echo "$as_me: error: GNU Make required but not found" >&2;} 12039 { (exit 1); exit 1; }; } 12040fi 12041 12042{ echo "$as_me:$LINENO: result: ok" >&5 12043echo "${ECHO_T}ok" >&6; } 12044 12045{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 12046echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 12047NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 12048 12049NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 12050 12051COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 12052 12053{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5 12054echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; } 12055 12056 12057 12058{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 12059echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 12060if test "${ac_cv_lib_m_sin+set}" = set; then 12061 echo $ECHO_N "(cached) $ECHO_C" >&6 12062else 12063 ac_check_lib_save_LIBS=$LIBS 12064LIBS="-lm $LIBS" 12065cat >conftest.$ac_ext <<_ACEOF 12066/* confdefs.h. */ 12067_ACEOF 12068cat confdefs.h >>conftest.$ac_ext 12069cat >>conftest.$ac_ext <<_ACEOF 12070/* end confdefs.h. */ 12071 12072/* Override any GCC internal prototype to avoid an error. 12073 Use char because int might match the return type of a GCC 12074 builtin and then its argument prototype would still apply. */ 12075#ifdef __cplusplus 12076extern "C" 12077#endif 12078char sin (); 12079int 12080main () 12081{ 12082return sin (); 12083 ; 12084 return 0; 12085} 12086_ACEOF 12087rm -f conftest.$ac_objext conftest$ac_exeext 12088if { (ac_try="$ac_link" 12089case "(($ac_try" in 12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12091 *) ac_try_echo=$ac_try;; 12092esac 12093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12094 (eval "$ac_link") 2>conftest.er1 12095 ac_status=$? 12096 grep -v '^ *+' conftest.er1 >conftest.err 12097 rm -f conftest.er1 12098 cat conftest.err >&5 12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12100 (exit $ac_status); } && 12101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12102 { (case "(($ac_try" in 12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12104 *) ac_try_echo=$ac_try;; 12105esac 12106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12107 (eval "$ac_try") 2>&5 12108 ac_status=$? 12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12110 (exit $ac_status); }; } && 12111 { ac_try='test -s conftest$ac_exeext' 12112 { (case "(($ac_try" in 12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12114 *) ac_try_echo=$ac_try;; 12115esac 12116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12117 (eval "$ac_try") 2>&5 12118 ac_status=$? 12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12120 (exit $ac_status); }; }; then 12121 ac_cv_lib_m_sin=yes 12122else 12123 echo "$as_me: failed program was:" >&5 12124sed 's/^/| /' conftest.$ac_ext >&5 12125 12126 ac_cv_lib_m_sin=no 12127fi 12128 12129rm -f core conftest.err conftest.$ac_objext \ 12130 conftest$ac_exeext conftest.$ac_ext 12131LIBS=$ac_check_lib_save_LIBS 12132fi 12133{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 12134echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 12135if test $ac_cv_lib_m_sin = yes; then 12136 cat >>confdefs.h <<_ACEOF 12137#define HAVE_LIBM 1 12138_ACEOF 12139 12140 LIBS="-lm $LIBS" 12141 12142fi 12143 12144if test "$llvm_cv_os_type" = "MingW" ; then 12145 12146{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 12147echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 12148if test "${ac_cv_lib_imagehlp_main+set}" = set; then 12149 echo $ECHO_N "(cached) $ECHO_C" >&6 12150else 12151 ac_check_lib_save_LIBS=$LIBS 12152LIBS="-limagehlp $LIBS" 12153cat >conftest.$ac_ext <<_ACEOF 12154/* confdefs.h. */ 12155_ACEOF 12156cat confdefs.h >>conftest.$ac_ext 12157cat >>conftest.$ac_ext <<_ACEOF 12158/* end confdefs.h. */ 12159 12160 12161int 12162main () 12163{ 12164return main (); 12165 ; 12166 return 0; 12167} 12168_ACEOF 12169rm -f conftest.$ac_objext conftest$ac_exeext 12170if { (ac_try="$ac_link" 12171case "(($ac_try" in 12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12173 *) ac_try_echo=$ac_try;; 12174esac 12175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12176 (eval "$ac_link") 2>conftest.er1 12177 ac_status=$? 12178 grep -v '^ *+' conftest.er1 >conftest.err 12179 rm -f conftest.er1 12180 cat conftest.err >&5 12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12182 (exit $ac_status); } && 12183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12184 { (case "(($ac_try" in 12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12186 *) ac_try_echo=$ac_try;; 12187esac 12188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12189 (eval "$ac_try") 2>&5 12190 ac_status=$? 12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12192 (exit $ac_status); }; } && 12193 { ac_try='test -s conftest$ac_exeext' 12194 { (case "(($ac_try" in 12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12196 *) ac_try_echo=$ac_try;; 12197esac 12198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12199 (eval "$ac_try") 2>&5 12200 ac_status=$? 12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12202 (exit $ac_status); }; }; then 12203 ac_cv_lib_imagehlp_main=yes 12204else 12205 echo "$as_me: failed program was:" >&5 12206sed 's/^/| /' conftest.$ac_ext >&5 12207 12208 ac_cv_lib_imagehlp_main=no 12209fi 12210 12211rm -f core conftest.err conftest.$ac_objext \ 12212 conftest$ac_exeext conftest.$ac_ext 12213LIBS=$ac_check_lib_save_LIBS 12214fi 12215{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 12216echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 12217if test $ac_cv_lib_imagehlp_main = yes; then 12218 cat >>confdefs.h <<_ACEOF 12219#define HAVE_LIBIMAGEHLP 1 12220_ACEOF 12221 12222 LIBS="-limagehlp $LIBS" 12223 12224fi 12225 12226 12227{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 12228echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 12229if test "${ac_cv_lib_psapi_main+set}" = set; then 12230 echo $ECHO_N "(cached) $ECHO_C" >&6 12231else 12232 ac_check_lib_save_LIBS=$LIBS 12233LIBS="-lpsapi $LIBS" 12234cat >conftest.$ac_ext <<_ACEOF 12235/* confdefs.h. */ 12236_ACEOF 12237cat confdefs.h >>conftest.$ac_ext 12238cat >>conftest.$ac_ext <<_ACEOF 12239/* end confdefs.h. */ 12240 12241 12242int 12243main () 12244{ 12245return main (); 12246 ; 12247 return 0; 12248} 12249_ACEOF 12250rm -f conftest.$ac_objext conftest$ac_exeext 12251if { (ac_try="$ac_link" 12252case "(($ac_try" in 12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12254 *) ac_try_echo=$ac_try;; 12255esac 12256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12257 (eval "$ac_link") 2>conftest.er1 12258 ac_status=$? 12259 grep -v '^ *+' conftest.er1 >conftest.err 12260 rm -f conftest.er1 12261 cat conftest.err >&5 12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12263 (exit $ac_status); } && 12264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12265 { (case "(($ac_try" in 12266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12267 *) ac_try_echo=$ac_try;; 12268esac 12269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12270 (eval "$ac_try") 2>&5 12271 ac_status=$? 12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12273 (exit $ac_status); }; } && 12274 { ac_try='test -s conftest$ac_exeext' 12275 { (case "(($ac_try" in 12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12277 *) ac_try_echo=$ac_try;; 12278esac 12279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12280 (eval "$ac_try") 2>&5 12281 ac_status=$? 12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12283 (exit $ac_status); }; }; then 12284 ac_cv_lib_psapi_main=yes 12285else 12286 echo "$as_me: failed program was:" >&5 12287sed 's/^/| /' conftest.$ac_ext >&5 12288 12289 ac_cv_lib_psapi_main=no 12290fi 12291 12292rm -f core conftest.err conftest.$ac_objext \ 12293 conftest$ac_exeext conftest.$ac_ext 12294LIBS=$ac_check_lib_save_LIBS 12295fi 12296{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12297echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12298if test $ac_cv_lib_psapi_main = yes; then 12299 cat >>confdefs.h <<_ACEOF 12300#define HAVE_LIBPSAPI 1 12301_ACEOF 12302 12303 LIBS="-lpsapi $LIBS" 12304 12305fi 12306 12307fi 12308 12309{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12310echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12311if test "${ac_cv_search_dlopen+set}" = set; then 12312 echo $ECHO_N "(cached) $ECHO_C" >&6 12313else 12314 ac_func_search_save_LIBS=$LIBS 12315cat >conftest.$ac_ext <<_ACEOF 12316/* confdefs.h. */ 12317_ACEOF 12318cat confdefs.h >>conftest.$ac_ext 12319cat >>conftest.$ac_ext <<_ACEOF 12320/* end confdefs.h. */ 12321 12322/* Override any GCC internal prototype to avoid an error. 12323 Use char because int might match the return type of a GCC 12324 builtin and then its argument prototype would still apply. */ 12325#ifdef __cplusplus 12326extern "C" 12327#endif 12328char dlopen (); 12329int 12330main () 12331{ 12332return dlopen (); 12333 ; 12334 return 0; 12335} 12336_ACEOF 12337for ac_lib in '' dl; do 12338 if test -z "$ac_lib"; then 12339 ac_res="none required" 12340 else 12341 ac_res=-l$ac_lib 12342 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12343 fi 12344 rm -f conftest.$ac_objext conftest$ac_exeext 12345if { (ac_try="$ac_link" 12346case "(($ac_try" in 12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12348 *) ac_try_echo=$ac_try;; 12349esac 12350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12351 (eval "$ac_link") 2>conftest.er1 12352 ac_status=$? 12353 grep -v '^ *+' conftest.er1 >conftest.err 12354 rm -f conftest.er1 12355 cat conftest.err >&5 12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12357 (exit $ac_status); } && 12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12359 { (case "(($ac_try" in 12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12361 *) ac_try_echo=$ac_try;; 12362esac 12363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12364 (eval "$ac_try") 2>&5 12365 ac_status=$? 12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12367 (exit $ac_status); }; } && 12368 { ac_try='test -s conftest$ac_exeext' 12369 { (case "(($ac_try" in 12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12371 *) ac_try_echo=$ac_try;; 12372esac 12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12374 (eval "$ac_try") 2>&5 12375 ac_status=$? 12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12377 (exit $ac_status); }; }; then 12378 ac_cv_search_dlopen=$ac_res 12379else 12380 echo "$as_me: failed program was:" >&5 12381sed 's/^/| /' conftest.$ac_ext >&5 12382 12383 12384fi 12385 12386rm -f core conftest.err conftest.$ac_objext \ 12387 conftest$ac_exeext 12388 if test "${ac_cv_search_dlopen+set}" = set; then 12389 break 12390fi 12391done 12392if test "${ac_cv_search_dlopen+set}" = set; then 12393 : 12394else 12395 ac_cv_search_dlopen=no 12396fi 12397rm conftest.$ac_ext 12398LIBS=$ac_func_search_save_LIBS 12399fi 12400{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12401echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12402ac_res=$ac_cv_search_dlopen 12403if test "$ac_res" != no; then 12404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12405 12406cat >>confdefs.h <<\_ACEOF 12407#define HAVE_DLOPEN 1 12408_ACEOF 12409 12410else 12411 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12412echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12413fi 12414 12415 12416if test "$llvm_cv_enable_libffi" = "yes" ; then 12417 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12418echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12419if test "${ac_cv_search_ffi_call+set}" = set; then 12420 echo $ECHO_N "(cached) $ECHO_C" >&6 12421else 12422 ac_func_search_save_LIBS=$LIBS 12423cat >conftest.$ac_ext <<_ACEOF 12424/* confdefs.h. */ 12425_ACEOF 12426cat confdefs.h >>conftest.$ac_ext 12427cat >>conftest.$ac_ext <<_ACEOF 12428/* end confdefs.h. */ 12429 12430/* Override any GCC internal prototype to avoid an error. 12431 Use char because int might match the return type of a GCC 12432 builtin and then its argument prototype would still apply. */ 12433#ifdef __cplusplus 12434extern "C" 12435#endif 12436char ffi_call (); 12437int 12438main () 12439{ 12440return ffi_call (); 12441 ; 12442 return 0; 12443} 12444_ACEOF 12445for ac_lib in '' ffi; do 12446 if test -z "$ac_lib"; then 12447 ac_res="none required" 12448 else 12449 ac_res=-l$ac_lib 12450 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12451 fi 12452 rm -f conftest.$ac_objext conftest$ac_exeext 12453if { (ac_try="$ac_link" 12454case "(($ac_try" in 12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12456 *) ac_try_echo=$ac_try;; 12457esac 12458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12459 (eval "$ac_link") 2>conftest.er1 12460 ac_status=$? 12461 grep -v '^ *+' conftest.er1 >conftest.err 12462 rm -f conftest.er1 12463 cat conftest.err >&5 12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12465 (exit $ac_status); } && 12466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12467 { (case "(($ac_try" in 12468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12469 *) ac_try_echo=$ac_try;; 12470esac 12471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12472 (eval "$ac_try") 2>&5 12473 ac_status=$? 12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12475 (exit $ac_status); }; } && 12476 { ac_try='test -s conftest$ac_exeext' 12477 { (case "(($ac_try" in 12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12479 *) ac_try_echo=$ac_try;; 12480esac 12481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12482 (eval "$ac_try") 2>&5 12483 ac_status=$? 12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12485 (exit $ac_status); }; }; then 12486 ac_cv_search_ffi_call=$ac_res 12487else 12488 echo "$as_me: failed program was:" >&5 12489sed 's/^/| /' conftest.$ac_ext >&5 12490 12491 12492fi 12493 12494rm -f core conftest.err conftest.$ac_objext \ 12495 conftest$ac_exeext 12496 if test "${ac_cv_search_ffi_call+set}" = set; then 12497 break 12498fi 12499done 12500if test "${ac_cv_search_ffi_call+set}" = set; then 12501 : 12502else 12503 ac_cv_search_ffi_call=no 12504fi 12505rm conftest.$ac_ext 12506LIBS=$ac_func_search_save_LIBS 12507fi 12508{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12509echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12510ac_res=$ac_cv_search_ffi_call 12511if test "$ac_res" != no; then 12512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12513 12514cat >>confdefs.h <<\_ACEOF 12515#define HAVE_FFI_CALL 1 12516_ACEOF 12517 12518else 12519 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12520echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12521 { (exit 1); exit 1; }; } 12522fi 12523 12524fi 12525 12526{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12527echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12528if test "${ac_cv_search_mallinfo+set}" = set; then 12529 echo $ECHO_N "(cached) $ECHO_C" >&6 12530else 12531 ac_func_search_save_LIBS=$LIBS 12532cat >conftest.$ac_ext <<_ACEOF 12533/* confdefs.h. */ 12534_ACEOF 12535cat confdefs.h >>conftest.$ac_ext 12536cat >>conftest.$ac_ext <<_ACEOF 12537/* end confdefs.h. */ 12538 12539/* Override any GCC internal prototype to avoid an error. 12540 Use char because int might match the return type of a GCC 12541 builtin and then its argument prototype would still apply. */ 12542#ifdef __cplusplus 12543extern "C" 12544#endif 12545char mallinfo (); 12546int 12547main () 12548{ 12549return mallinfo (); 12550 ; 12551 return 0; 12552} 12553_ACEOF 12554for ac_lib in '' malloc; do 12555 if test -z "$ac_lib"; then 12556 ac_res="none required" 12557 else 12558 ac_res=-l$ac_lib 12559 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12560 fi 12561 rm -f conftest.$ac_objext conftest$ac_exeext 12562if { (ac_try="$ac_link" 12563case "(($ac_try" in 12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12565 *) ac_try_echo=$ac_try;; 12566esac 12567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12568 (eval "$ac_link") 2>conftest.er1 12569 ac_status=$? 12570 grep -v '^ *+' conftest.er1 >conftest.err 12571 rm -f conftest.er1 12572 cat conftest.err >&5 12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12574 (exit $ac_status); } && 12575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12576 { (case "(($ac_try" in 12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12578 *) ac_try_echo=$ac_try;; 12579esac 12580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12581 (eval "$ac_try") 2>&5 12582 ac_status=$? 12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12584 (exit $ac_status); }; } && 12585 { ac_try='test -s conftest$ac_exeext' 12586 { (case "(($ac_try" in 12587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12588 *) ac_try_echo=$ac_try;; 12589esac 12590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12591 (eval "$ac_try") 2>&5 12592 ac_status=$? 12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12594 (exit $ac_status); }; }; then 12595 ac_cv_search_mallinfo=$ac_res 12596else 12597 echo "$as_me: failed program was:" >&5 12598sed 's/^/| /' conftest.$ac_ext >&5 12599 12600 12601fi 12602 12603rm -f core conftest.err conftest.$ac_objext \ 12604 conftest$ac_exeext 12605 if test "${ac_cv_search_mallinfo+set}" = set; then 12606 break 12607fi 12608done 12609if test "${ac_cv_search_mallinfo+set}" = set; then 12610 : 12611else 12612 ac_cv_search_mallinfo=no 12613fi 12614rm conftest.$ac_ext 12615LIBS=$ac_func_search_save_LIBS 12616fi 12617{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 12618echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 12619ac_res=$ac_cv_search_mallinfo 12620if test "$ac_res" != no; then 12621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12622 12623cat >>confdefs.h <<\_ACEOF 12624#define HAVE_MALLINFO 1 12625_ACEOF 12626 12627fi 12628 12629 12630if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 12631 12632{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 12633echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 12634if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 12635 echo $ECHO_N "(cached) $ECHO_C" >&6 12636else 12637 ac_check_lib_save_LIBS=$LIBS 12638LIBS="-lpthread $LIBS" 12639cat >conftest.$ac_ext <<_ACEOF 12640/* confdefs.h. */ 12641_ACEOF 12642cat confdefs.h >>conftest.$ac_ext 12643cat >>conftest.$ac_ext <<_ACEOF 12644/* end confdefs.h. */ 12645 12646/* Override any GCC internal prototype to avoid an error. 12647 Use char because int might match the return type of a GCC 12648 builtin and then its argument prototype would still apply. */ 12649#ifdef __cplusplus 12650extern "C" 12651#endif 12652char pthread_mutex_init (); 12653int 12654main () 12655{ 12656return pthread_mutex_init (); 12657 ; 12658 return 0; 12659} 12660_ACEOF 12661rm -f conftest.$ac_objext conftest$ac_exeext 12662if { (ac_try="$ac_link" 12663case "(($ac_try" in 12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12665 *) ac_try_echo=$ac_try;; 12666esac 12667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12668 (eval "$ac_link") 2>conftest.er1 12669 ac_status=$? 12670 grep -v '^ *+' conftest.er1 >conftest.err 12671 rm -f conftest.er1 12672 cat conftest.err >&5 12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12674 (exit $ac_status); } && 12675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12676 { (case "(($ac_try" in 12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12678 *) ac_try_echo=$ac_try;; 12679esac 12680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12681 (eval "$ac_try") 2>&5 12682 ac_status=$? 12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12684 (exit $ac_status); }; } && 12685 { ac_try='test -s conftest$ac_exeext' 12686 { (case "(($ac_try" in 12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12688 *) ac_try_echo=$ac_try;; 12689esac 12690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12691 (eval "$ac_try") 2>&5 12692 ac_status=$? 12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12694 (exit $ac_status); }; }; then 12695 ac_cv_lib_pthread_pthread_mutex_init=yes 12696else 12697 echo "$as_me: failed program was:" >&5 12698sed 's/^/| /' conftest.$ac_ext >&5 12699 12700 ac_cv_lib_pthread_pthread_mutex_init=no 12701fi 12702 12703rm -f core conftest.err conftest.$ac_objext \ 12704 conftest$ac_exeext conftest.$ac_ext 12705LIBS=$ac_check_lib_save_LIBS 12706fi 12707{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 12708echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 12709if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 12710 cat >>confdefs.h <<_ACEOF 12711#define HAVE_LIBPTHREAD 1 12712_ACEOF 12713 12714 LIBS="-lpthread $LIBS" 12715 12716fi 12717 12718 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 12719echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 12720if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12721 echo $ECHO_N "(cached) $ECHO_C" >&6 12722else 12723 ac_func_search_save_LIBS=$LIBS 12724cat >conftest.$ac_ext <<_ACEOF 12725/* confdefs.h. */ 12726_ACEOF 12727cat confdefs.h >>conftest.$ac_ext 12728cat >>conftest.$ac_ext <<_ACEOF 12729/* end confdefs.h. */ 12730 12731/* Override any GCC internal prototype to avoid an error. 12732 Use char because int might match the return type of a GCC 12733 builtin and then its argument prototype would still apply. */ 12734#ifdef __cplusplus 12735extern "C" 12736#endif 12737char pthread_mutex_lock (); 12738int 12739main () 12740{ 12741return pthread_mutex_lock (); 12742 ; 12743 return 0; 12744} 12745_ACEOF 12746for ac_lib in '' pthread; do 12747 if test -z "$ac_lib"; then 12748 ac_res="none required" 12749 else 12750 ac_res=-l$ac_lib 12751 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12752 fi 12753 rm -f conftest.$ac_objext conftest$ac_exeext 12754if { (ac_try="$ac_link" 12755case "(($ac_try" in 12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12757 *) ac_try_echo=$ac_try;; 12758esac 12759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12760 (eval "$ac_link") 2>conftest.er1 12761 ac_status=$? 12762 grep -v '^ *+' conftest.er1 >conftest.err 12763 rm -f conftest.er1 12764 cat conftest.err >&5 12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12766 (exit $ac_status); } && 12767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12768 { (case "(($ac_try" in 12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12770 *) ac_try_echo=$ac_try;; 12771esac 12772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12773 (eval "$ac_try") 2>&5 12774 ac_status=$? 12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12776 (exit $ac_status); }; } && 12777 { ac_try='test -s conftest$ac_exeext' 12778 { (case "(($ac_try" in 12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12780 *) ac_try_echo=$ac_try;; 12781esac 12782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12783 (eval "$ac_try") 2>&5 12784 ac_status=$? 12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12786 (exit $ac_status); }; }; then 12787 ac_cv_search_pthread_mutex_lock=$ac_res 12788else 12789 echo "$as_me: failed program was:" >&5 12790sed 's/^/| /' conftest.$ac_ext >&5 12791 12792 12793fi 12794 12795rm -f core conftest.err conftest.$ac_objext \ 12796 conftest$ac_exeext 12797 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12798 break 12799fi 12800done 12801if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12802 : 12803else 12804 ac_cv_search_pthread_mutex_lock=no 12805fi 12806rm conftest.$ac_ext 12807LIBS=$ac_func_search_save_LIBS 12808fi 12809{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 12810echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 12811ac_res=$ac_cv_search_pthread_mutex_lock 12812if test "$ac_res" != no; then 12813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12814 12815cat >>confdefs.h <<\_ACEOF 12816#define HAVE_PTHREAD_MUTEX_LOCK 1 12817_ACEOF 12818 12819fi 12820 12821 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 12822echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 12823if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12824 echo $ECHO_N "(cached) $ECHO_C" >&6 12825else 12826 ac_func_search_save_LIBS=$LIBS 12827cat >conftest.$ac_ext <<_ACEOF 12828/* confdefs.h. */ 12829_ACEOF 12830cat confdefs.h >>conftest.$ac_ext 12831cat >>conftest.$ac_ext <<_ACEOF 12832/* end confdefs.h. */ 12833 12834/* Override any GCC internal prototype to avoid an error. 12835 Use char because int might match the return type of a GCC 12836 builtin and then its argument prototype would still apply. */ 12837#ifdef __cplusplus 12838extern "C" 12839#endif 12840char pthread_rwlock_init (); 12841int 12842main () 12843{ 12844return pthread_rwlock_init (); 12845 ; 12846 return 0; 12847} 12848_ACEOF 12849for ac_lib in '' pthread; do 12850 if test -z "$ac_lib"; then 12851 ac_res="none required" 12852 else 12853 ac_res=-l$ac_lib 12854 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12855 fi 12856 rm -f conftest.$ac_objext conftest$ac_exeext 12857if { (ac_try="$ac_link" 12858case "(($ac_try" in 12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12860 *) ac_try_echo=$ac_try;; 12861esac 12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12863 (eval "$ac_link") 2>conftest.er1 12864 ac_status=$? 12865 grep -v '^ *+' conftest.er1 >conftest.err 12866 rm -f conftest.er1 12867 cat conftest.err >&5 12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12869 (exit $ac_status); } && 12870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12871 { (case "(($ac_try" in 12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12873 *) ac_try_echo=$ac_try;; 12874esac 12875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12876 (eval "$ac_try") 2>&5 12877 ac_status=$? 12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12879 (exit $ac_status); }; } && 12880 { ac_try='test -s conftest$ac_exeext' 12881 { (case "(($ac_try" in 12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12883 *) ac_try_echo=$ac_try;; 12884esac 12885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12886 (eval "$ac_try") 2>&5 12887 ac_status=$? 12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12889 (exit $ac_status); }; }; then 12890 ac_cv_search_pthread_rwlock_init=$ac_res 12891else 12892 echo "$as_me: failed program was:" >&5 12893sed 's/^/| /' conftest.$ac_ext >&5 12894 12895 12896fi 12897 12898rm -f core conftest.err conftest.$ac_objext \ 12899 conftest$ac_exeext 12900 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12901 break 12902fi 12903done 12904if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12905 : 12906else 12907 ac_cv_search_pthread_rwlock_init=no 12908fi 12909rm conftest.$ac_ext 12910LIBS=$ac_func_search_save_LIBS 12911fi 12912{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 12913echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 12914ac_res=$ac_cv_search_pthread_rwlock_init 12915if test "$ac_res" != no; then 12916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12917 12918cat >>confdefs.h <<\_ACEOF 12919#define HAVE_PTHREAD_RWLOCK_INIT 1 12920_ACEOF 12921 12922fi 12923 12924 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 12925echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 12926if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12927 echo $ECHO_N "(cached) $ECHO_C" >&6 12928else 12929 ac_func_search_save_LIBS=$LIBS 12930cat >conftest.$ac_ext <<_ACEOF 12931/* confdefs.h. */ 12932_ACEOF 12933cat confdefs.h >>conftest.$ac_ext 12934cat >>conftest.$ac_ext <<_ACEOF 12935/* end confdefs.h. */ 12936 12937/* Override any GCC internal prototype to avoid an error. 12938 Use char because int might match the return type of a GCC 12939 builtin and then its argument prototype would still apply. */ 12940#ifdef __cplusplus 12941extern "C" 12942#endif 12943char pthread_getspecific (); 12944int 12945main () 12946{ 12947return pthread_getspecific (); 12948 ; 12949 return 0; 12950} 12951_ACEOF 12952for ac_lib in '' pthread; do 12953 if test -z "$ac_lib"; then 12954 ac_res="none required" 12955 else 12956 ac_res=-l$ac_lib 12957 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12958 fi 12959 rm -f conftest.$ac_objext conftest$ac_exeext 12960if { (ac_try="$ac_link" 12961case "(($ac_try" in 12962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12963 *) ac_try_echo=$ac_try;; 12964esac 12965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12966 (eval "$ac_link") 2>conftest.er1 12967 ac_status=$? 12968 grep -v '^ *+' conftest.er1 >conftest.err 12969 rm -f conftest.er1 12970 cat conftest.err >&5 12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12972 (exit $ac_status); } && 12973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12974 { (case "(($ac_try" in 12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12976 *) ac_try_echo=$ac_try;; 12977esac 12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12979 (eval "$ac_try") 2>&5 12980 ac_status=$? 12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12982 (exit $ac_status); }; } && 12983 { ac_try='test -s conftest$ac_exeext' 12984 { (case "(($ac_try" in 12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12986 *) ac_try_echo=$ac_try;; 12987esac 12988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12989 (eval "$ac_try") 2>&5 12990 ac_status=$? 12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12992 (exit $ac_status); }; }; then 12993 ac_cv_search_pthread_getspecific=$ac_res 12994else 12995 echo "$as_me: failed program was:" >&5 12996sed 's/^/| /' conftest.$ac_ext >&5 12997 12998 12999fi 13000 13001rm -f core conftest.err conftest.$ac_objext \ 13002 conftest$ac_exeext 13003 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13004 break 13005fi 13006done 13007if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13008 : 13009else 13010 ac_cv_search_pthread_getspecific=no 13011fi 13012rm conftest.$ac_ext 13013LIBS=$ac_func_search_save_LIBS 13014fi 13015{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 13016echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 13017ac_res=$ac_cv_search_pthread_getspecific 13018if test "$ac_res" != no; then 13019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13020 13021cat >>confdefs.h <<\_ACEOF 13022#define HAVE_PTHREAD_GETSPECIFIC 1 13023_ACEOF 13024 13025fi 13026 13027fi 13028 13029 13030# Check whether --with-udis86 was given. 13031if test "${with_udis86+set}" = set; then 13032 withval=$with_udis86; 13033 USE_UDIS86=1 13034 13035 case "$withval" in 13036 /usr/lib|yes) ;; 13037 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13038 esac 13039 13040{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 13041echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 13042if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 13043 echo $ECHO_N "(cached) $ECHO_C" >&6 13044else 13045 ac_check_lib_save_LIBS=$LIBS 13046LIBS="-ludis86 $LIBS" 13047cat >conftest.$ac_ext <<_ACEOF 13048/* confdefs.h. */ 13049_ACEOF 13050cat confdefs.h >>conftest.$ac_ext 13051cat >>conftest.$ac_ext <<_ACEOF 13052/* end confdefs.h. */ 13053 13054/* Override any GCC internal prototype to avoid an error. 13055 Use char because int might match the return type of a GCC 13056 builtin and then its argument prototype would still apply. */ 13057#ifdef __cplusplus 13058extern "C" 13059#endif 13060char ud_init (); 13061int 13062main () 13063{ 13064return ud_init (); 13065 ; 13066 return 0; 13067} 13068_ACEOF 13069rm -f conftest.$ac_objext conftest$ac_exeext 13070if { (ac_try="$ac_link" 13071case "(($ac_try" in 13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13073 *) ac_try_echo=$ac_try;; 13074esac 13075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13076 (eval "$ac_link") 2>conftest.er1 13077 ac_status=$? 13078 grep -v '^ *+' conftest.er1 >conftest.err 13079 rm -f conftest.er1 13080 cat conftest.err >&5 13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13082 (exit $ac_status); } && 13083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13084 { (case "(($ac_try" in 13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13086 *) ac_try_echo=$ac_try;; 13087esac 13088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13089 (eval "$ac_try") 2>&5 13090 ac_status=$? 13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13092 (exit $ac_status); }; } && 13093 { ac_try='test -s conftest$ac_exeext' 13094 { (case "(($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_try") 2>&5 13100 ac_status=$? 13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13102 (exit $ac_status); }; }; then 13103 ac_cv_lib_udis86_ud_init=yes 13104else 13105 echo "$as_me: failed program was:" >&5 13106sed 's/^/| /' conftest.$ac_ext >&5 13107 13108 ac_cv_lib_udis86_ud_init=no 13109fi 13110 13111rm -f core conftest.err conftest.$ac_objext \ 13112 conftest$ac_exeext conftest.$ac_ext 13113LIBS=$ac_check_lib_save_LIBS 13114fi 13115{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13116echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13117if test $ac_cv_lib_udis86_ud_init = yes; then 13118 cat >>confdefs.h <<_ACEOF 13119#define HAVE_LIBUDIS86 1 13120_ACEOF 13121 13122 LIBS="-ludis86 $LIBS" 13123 13124else 13125 13126 echo "Error! You need to have libudis86 around." 13127 exit -1 13128 13129fi 13130 13131 13132else 13133 USE_UDIS86=0 13134 13135fi 13136 13137 13138cat >>confdefs.h <<_ACEOF 13139#define USE_UDIS86 $USE_UDIS86 13140_ACEOF 13141 13142 13143 13144# Check whether --with-oprofile was given. 13145if test "${with_oprofile+set}" = set; then 13146 withval=$with_oprofile; 13147 USE_OPROFILE=1 13148 13149 case "$withval" in 13150 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13151 no) llvm_cv_oppath= 13152 USE_OPROFILE=0 13153 ;; 13154 *) llvm_cv_oppath="${withval}/lib/oprofile" 13155 CPPFLAGS="-I${withval}/include";; 13156 esac 13157 case $llvm_cv_os_type in 13158 Linux) 13159 if test -n "$llvm_cv_oppath" ; then 13160 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13161 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13162echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13163if test "${ac_cv_search_bfd_init+set}" = set; then 13164 echo $ECHO_N "(cached) $ECHO_C" >&6 13165else 13166 ac_func_search_save_LIBS=$LIBS 13167cat >conftest.$ac_ext <<_ACEOF 13168/* confdefs.h. */ 13169_ACEOF 13170cat confdefs.h >>conftest.$ac_ext 13171cat >>conftest.$ac_ext <<_ACEOF 13172/* end confdefs.h. */ 13173 13174/* Override any GCC internal prototype to avoid an error. 13175 Use char because int might match the return type of a GCC 13176 builtin and then its argument prototype would still apply. */ 13177#ifdef __cplusplus 13178extern "C" 13179#endif 13180char bfd_init (); 13181int 13182main () 13183{ 13184return bfd_init (); 13185 ; 13186 return 0; 13187} 13188_ACEOF 13189for ac_lib in '' bfd; do 13190 if test -z "$ac_lib"; then 13191 ac_res="none required" 13192 else 13193 ac_res=-l$ac_lib 13194 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13195 fi 13196 rm -f conftest.$ac_objext conftest$ac_exeext 13197if { (ac_try="$ac_link" 13198case "(($ac_try" in 13199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13200 *) ac_try_echo=$ac_try;; 13201esac 13202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13203 (eval "$ac_link") 2>conftest.er1 13204 ac_status=$? 13205 grep -v '^ *+' conftest.er1 >conftest.err 13206 rm -f conftest.er1 13207 cat conftest.err >&5 13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13209 (exit $ac_status); } && 13210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13211 { (case "(($ac_try" in 13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13213 *) ac_try_echo=$ac_try;; 13214esac 13215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13216 (eval "$ac_try") 2>&5 13217 ac_status=$? 13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13219 (exit $ac_status); }; } && 13220 { ac_try='test -s conftest$ac_exeext' 13221 { (case "(($ac_try" in 13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13223 *) ac_try_echo=$ac_try;; 13224esac 13225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13226 (eval "$ac_try") 2>&5 13227 ac_status=$? 13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13229 (exit $ac_status); }; }; then 13230 ac_cv_search_bfd_init=$ac_res 13231else 13232 echo "$as_me: failed program was:" >&5 13233sed 's/^/| /' conftest.$ac_ext >&5 13234 13235 13236fi 13237 13238rm -f core conftest.err conftest.$ac_objext \ 13239 conftest$ac_exeext 13240 if test "${ac_cv_search_bfd_init+set}" = set; then 13241 break 13242fi 13243done 13244if test "${ac_cv_search_bfd_init+set}" = set; then 13245 : 13246else 13247 ac_cv_search_bfd_init=no 13248fi 13249rm conftest.$ac_ext 13250LIBS=$ac_func_search_save_LIBS 13251fi 13252{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13253echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13254ac_res=$ac_cv_search_bfd_init 13255if test "$ac_res" != no; then 13256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13257 13258fi 13259 13260 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13261echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13262if test "${ac_cv_search_op_open_agent+set}" = set; then 13263 echo $ECHO_N "(cached) $ECHO_C" >&6 13264else 13265 ac_func_search_save_LIBS=$LIBS 13266cat >conftest.$ac_ext <<_ACEOF 13267/* confdefs.h. */ 13268_ACEOF 13269cat confdefs.h >>conftest.$ac_ext 13270cat >>conftest.$ac_ext <<_ACEOF 13271/* end confdefs.h. */ 13272 13273/* Override any GCC internal prototype to avoid an error. 13274 Use char because int might match the return type of a GCC 13275 builtin and then its argument prototype would still apply. */ 13276#ifdef __cplusplus 13277extern "C" 13278#endif 13279char op_open_agent (); 13280int 13281main () 13282{ 13283return op_open_agent (); 13284 ; 13285 return 0; 13286} 13287_ACEOF 13288for ac_lib in '' opagent; do 13289 if test -z "$ac_lib"; then 13290 ac_res="none required" 13291 else 13292 ac_res=-l$ac_lib 13293 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13294 fi 13295 rm -f conftest.$ac_objext conftest$ac_exeext 13296if { (ac_try="$ac_link" 13297case "(($ac_try" in 13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13299 *) ac_try_echo=$ac_try;; 13300esac 13301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13302 (eval "$ac_link") 2>conftest.er1 13303 ac_status=$? 13304 grep -v '^ *+' conftest.er1 >conftest.err 13305 rm -f conftest.er1 13306 cat conftest.err >&5 13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13308 (exit $ac_status); } && 13309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13310 { (case "(($ac_try" in 13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13312 *) ac_try_echo=$ac_try;; 13313esac 13314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13315 (eval "$ac_try") 2>&5 13316 ac_status=$? 13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13318 (exit $ac_status); }; } && 13319 { ac_try='test -s conftest$ac_exeext' 13320 { (case "(($ac_try" in 13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13322 *) ac_try_echo=$ac_try;; 13323esac 13324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13325 (eval "$ac_try") 2>&5 13326 ac_status=$? 13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13328 (exit $ac_status); }; }; then 13329 ac_cv_search_op_open_agent=$ac_res 13330else 13331 echo "$as_me: failed program was:" >&5 13332sed 's/^/| /' conftest.$ac_ext >&5 13333 13334 13335fi 13336 13337rm -f core conftest.err conftest.$ac_objext \ 13338 conftest$ac_exeext 13339 if test "${ac_cv_search_op_open_agent+set}" = set; then 13340 break 13341fi 13342done 13343if test "${ac_cv_search_op_open_agent+set}" = set; then 13344 : 13345else 13346 ac_cv_search_op_open_agent=no 13347fi 13348rm conftest.$ac_ext 13349LIBS=$ac_func_search_save_LIBS 13350fi 13351{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13352echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13353ac_res=$ac_cv_search_op_open_agent 13354if test "$ac_res" != no; then 13355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13356 13357else 13358 13359 echo "Error! You need to have libopagent around." 13360 exit -1 13361 13362fi 13363 13364 if test "${ac_cv_header_opagent_h+set}" = set; then 13365 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13366echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13367if test "${ac_cv_header_opagent_h+set}" = set; then 13368 echo $ECHO_N "(cached) $ECHO_C" >&6 13369fi 13370{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13371echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13372else 13373 # Is the header compilable? 13374{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 13375echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13376cat >conftest.$ac_ext <<_ACEOF 13377/* confdefs.h. */ 13378_ACEOF 13379cat confdefs.h >>conftest.$ac_ext 13380cat >>conftest.$ac_ext <<_ACEOF 13381/* end confdefs.h. */ 13382$ac_includes_default 13383#include <opagent.h> 13384_ACEOF 13385rm -f conftest.$ac_objext 13386if { (ac_try="$ac_compile" 13387case "(($ac_try" in 13388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13389 *) ac_try_echo=$ac_try;; 13390esac 13391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13392 (eval "$ac_compile") 2>conftest.er1 13393 ac_status=$? 13394 grep -v '^ *+' conftest.er1 >conftest.err 13395 rm -f conftest.er1 13396 cat conftest.err >&5 13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13398 (exit $ac_status); } && 13399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13400 { (case "(($ac_try" in 13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13402 *) ac_try_echo=$ac_try;; 13403esac 13404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13405 (eval "$ac_try") 2>&5 13406 ac_status=$? 13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13408 (exit $ac_status); }; } && 13409 { ac_try='test -s conftest.$ac_objext' 13410 { (case "(($ac_try" in 13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13412 *) ac_try_echo=$ac_try;; 13413esac 13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13415 (eval "$ac_try") 2>&5 13416 ac_status=$? 13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13418 (exit $ac_status); }; }; then 13419 ac_header_compiler=yes 13420else 13421 echo "$as_me: failed program was:" >&5 13422sed 's/^/| /' conftest.$ac_ext >&5 13423 13424 ac_header_compiler=no 13425fi 13426 13427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13428{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13429echo "${ECHO_T}$ac_header_compiler" >&6; } 13430 13431# Is the header present? 13432{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 13433echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13434cat >conftest.$ac_ext <<_ACEOF 13435/* confdefs.h. */ 13436_ACEOF 13437cat confdefs.h >>conftest.$ac_ext 13438cat >>conftest.$ac_ext <<_ACEOF 13439/* end confdefs.h. */ 13440#include <opagent.h> 13441_ACEOF 13442if { (ac_try="$ac_cpp conftest.$ac_ext" 13443case "(($ac_try" in 13444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13445 *) ac_try_echo=$ac_try;; 13446esac 13447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13449 ac_status=$? 13450 grep -v '^ *+' conftest.er1 >conftest.err 13451 rm -f conftest.er1 13452 cat conftest.err >&5 13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13454 (exit $ac_status); } >/dev/null; then 13455 if test -s conftest.err; then 13456 ac_cpp_err=$ac_c_preproc_warn_flag 13457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13458 else 13459 ac_cpp_err= 13460 fi 13461else 13462 ac_cpp_err=yes 13463fi 13464if test -z "$ac_cpp_err"; then 13465 ac_header_preproc=yes 13466else 13467 echo "$as_me: failed program was:" >&5 13468sed 's/^/| /' conftest.$ac_ext >&5 13469 13470 ac_header_preproc=no 13471fi 13472 13473rm -f conftest.err conftest.$ac_ext 13474{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13475echo "${ECHO_T}$ac_header_preproc" >&6; } 13476 13477# So? What about this header? 13478case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13479 yes:no: ) 13480 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 13481echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13482 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 13483echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 13484 ac_header_preproc=yes 13485 ;; 13486 no:yes:* ) 13487 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 13488echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 13489 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 13490echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 13491 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 13492echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 13493 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 13494echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 13495 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 13496echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 13497 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 13498echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 13499 ( cat <<\_ASBOX 13500## ------------------------------------ ## 13501## Report this to http://llvm.org/bugs/ ## 13502## ------------------------------------ ## 13503_ASBOX 13504 ) | sed "s/^/$as_me: WARNING: /" >&2 13505 ;; 13506esac 13507{ echo "$as_me:$LINENO: checking for opagent.h" >&5 13508echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13509if test "${ac_cv_header_opagent_h+set}" = set; then 13510 echo $ECHO_N "(cached) $ECHO_C" >&6 13511else 13512 ac_cv_header_opagent_h=$ac_header_preproc 13513fi 13514{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13515echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13516 13517fi 13518if test $ac_cv_header_opagent_h = yes; then 13519 : 13520else 13521 13522 echo "Error! You need to have opagent.h around." 13523 exit -1 13524 13525fi 13526 13527 13528 fi ;; 13529 *) 13530 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5 13531echo "$as_me: error: OProfile support is available on Linux only." >&2;} 13532 { (exit 1); exit 1; }; } ;; 13533 esac 13534 13535else 13536 13537 USE_OPROFILE=0 13538 13539 13540fi 13541 13542 13543cat >>confdefs.h <<_ACEOF 13544#define LLVM_USE_OPROFILE $USE_OPROFILE 13545_ACEOF 13546 13547 13548 13549# Check whether --with-intel-jitevents was given. 13550if test "${with_intel_jitevents+set}" = set; then 13551 withval=$with_intel_jitevents; 13552 case $llvm_cv_os_type in 13553 Linux|Win32|Cygwin|MingW) ;; 13554 *) 13555 { { echo "$as_me:$LINENO: error: 13556 Intel JIT API support is available on Linux and Windows only.\"" >&5 13557echo "$as_me: error: 13558 Intel JIT API support is available on Linux and Windows only.\"" >&2;} 13559 { (exit 1); exit 1; }; } ;; 13560 esac 13561 13562 USE_INTEL_JITEVENTS=1 13563 13564 case "$llvm_cv_target_arch" in 13565 x86) llvm_intel_jitevents_archdir="lib32";; 13566 x86_64) llvm_intel_jitevents_archdir="lib64";; 13567 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API" 13568 exit -1;; 13569 esac 13570 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include" 13571 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir" 13572 case "$withval" in 13573 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include 13574 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;; 13575 *) ;; 13576 esac 13577 13578 13579 13580 13581 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}" 13582 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR" 13583 13584 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5 13585echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; } 13586if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then 13587 echo $ECHO_N "(cached) $ECHO_C" >&6 13588else 13589 ac_func_search_save_LIBS=$LIBS 13590cat >conftest.$ac_ext <<_ACEOF 13591/* confdefs.h. */ 13592_ACEOF 13593cat confdefs.h >>conftest.$ac_ext 13594cat >>conftest.$ac_ext <<_ACEOF 13595/* end confdefs.h. */ 13596 13597/* Override any GCC internal prototype to avoid an error. 13598 Use char because int might match the return type of a GCC 13599 builtin and then its argument prototype would still apply. */ 13600#ifdef __cplusplus 13601extern "C" 13602#endif 13603char iJIT_IsProfilingActive (); 13604int 13605main () 13606{ 13607return iJIT_IsProfilingActive (); 13608 ; 13609 return 0; 13610} 13611_ACEOF 13612for ac_lib in '' jitprofiling; do 13613 if test -z "$ac_lib"; then 13614 ac_res="none required" 13615 else 13616 ac_res=-l$ac_lib 13617 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13618 fi 13619 rm -f conftest.$ac_objext conftest$ac_exeext 13620if { (ac_try="$ac_link" 13621case "(($ac_try" in 13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13623 *) ac_try_echo=$ac_try;; 13624esac 13625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13626 (eval "$ac_link") 2>conftest.er1 13627 ac_status=$? 13628 grep -v '^ *+' conftest.er1 >conftest.err 13629 rm -f conftest.er1 13630 cat conftest.err >&5 13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13632 (exit $ac_status); } && 13633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13634 { (case "(($ac_try" in 13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13636 *) ac_try_echo=$ac_try;; 13637esac 13638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13639 (eval "$ac_try") 2>&5 13640 ac_status=$? 13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13642 (exit $ac_status); }; } && 13643 { ac_try='test -s conftest$ac_exeext' 13644 { (case "(($ac_try" in 13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13646 *) ac_try_echo=$ac_try;; 13647esac 13648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13649 (eval "$ac_try") 2>&5 13650 ac_status=$? 13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13652 (exit $ac_status); }; }; then 13653 ac_cv_search_iJIT_IsProfilingActive=$ac_res 13654else 13655 echo "$as_me: failed program was:" >&5 13656sed 's/^/| /' conftest.$ac_ext >&5 13657 13658 13659fi 13660 13661rm -f core conftest.err conftest.$ac_objext \ 13662 conftest$ac_exeext 13663 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then 13664 break 13665fi 13666done 13667if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then 13668 : 13669else 13670 ac_cv_search_iJIT_IsProfilingActive=no 13671fi 13672rm conftest.$ac_ext 13673LIBS=$ac_func_search_save_LIBS 13674fi 13675{ echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5 13676echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; } 13677ac_res=$ac_cv_search_iJIT_IsProfilingActive 13678if test "$ac_res" != no; then 13679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13680 13681else 13682 13683 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents" 13684 exit -1 13685 13686fi 13687 13688 if test "${ac_cv_header_jitprofiling_h+set}" = set; then 13689 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5 13690echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; } 13691if test "${ac_cv_header_jitprofiling_h+set}" = set; then 13692 echo $ECHO_N "(cached) $ECHO_C" >&6 13693fi 13694{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5 13695echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; } 13696else 13697 # Is the header compilable? 13698{ echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5 13699echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; } 13700cat >conftest.$ac_ext <<_ACEOF 13701/* confdefs.h. */ 13702_ACEOF 13703cat confdefs.h >>conftest.$ac_ext 13704cat >>conftest.$ac_ext <<_ACEOF 13705/* end confdefs.h. */ 13706$ac_includes_default 13707#include <jitprofiling.h> 13708_ACEOF 13709rm -f conftest.$ac_objext 13710if { (ac_try="$ac_compile" 13711case "(($ac_try" in 13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13713 *) ac_try_echo=$ac_try;; 13714esac 13715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13716 (eval "$ac_compile") 2>conftest.er1 13717 ac_status=$? 13718 grep -v '^ *+' conftest.er1 >conftest.err 13719 rm -f conftest.er1 13720 cat conftest.err >&5 13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13722 (exit $ac_status); } && 13723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13724 { (case "(($ac_try" in 13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13726 *) ac_try_echo=$ac_try;; 13727esac 13728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13729 (eval "$ac_try") 2>&5 13730 ac_status=$? 13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13732 (exit $ac_status); }; } && 13733 { ac_try='test -s conftest.$ac_objext' 13734 { (case "(($ac_try" in 13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13736 *) ac_try_echo=$ac_try;; 13737esac 13738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13739 (eval "$ac_try") 2>&5 13740 ac_status=$? 13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13742 (exit $ac_status); }; }; then 13743 ac_header_compiler=yes 13744else 13745 echo "$as_me: failed program was:" >&5 13746sed 's/^/| /' conftest.$ac_ext >&5 13747 13748 ac_header_compiler=no 13749fi 13750 13751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13752{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13753echo "${ECHO_T}$ac_header_compiler" >&6; } 13754 13755# Is the header present? 13756{ echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5 13757echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; } 13758cat >conftest.$ac_ext <<_ACEOF 13759/* confdefs.h. */ 13760_ACEOF 13761cat confdefs.h >>conftest.$ac_ext 13762cat >>conftest.$ac_ext <<_ACEOF 13763/* end confdefs.h. */ 13764#include <jitprofiling.h> 13765_ACEOF 13766if { (ac_try="$ac_cpp conftest.$ac_ext" 13767case "(($ac_try" in 13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13769 *) ac_try_echo=$ac_try;; 13770esac 13771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13773 ac_status=$? 13774 grep -v '^ *+' conftest.er1 >conftest.err 13775 rm -f conftest.er1 13776 cat conftest.err >&5 13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13778 (exit $ac_status); } >/dev/null; then 13779 if test -s conftest.err; then 13780 ac_cpp_err=$ac_c_preproc_warn_flag 13781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13782 else 13783 ac_cpp_err= 13784 fi 13785else 13786 ac_cpp_err=yes 13787fi 13788if test -z "$ac_cpp_err"; then 13789 ac_header_preproc=yes 13790else 13791 echo "$as_me: failed program was:" >&5 13792sed 's/^/| /' conftest.$ac_ext >&5 13793 13794 ac_header_preproc=no 13795fi 13796 13797rm -f conftest.err conftest.$ac_ext 13798{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13799echo "${ECHO_T}$ac_header_preproc" >&6; } 13800 13801# So? What about this header? 13802case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13803 yes:no: ) 13804 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5 13805echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13806 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5 13807echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;} 13808 ac_header_preproc=yes 13809 ;; 13810 no:yes:* ) 13811 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5 13812echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;} 13813 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5 13814echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;} 13815 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5 13816echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;} 13817 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5 13818echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;} 13819 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5 13820echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;} 13821 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5 13822echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;} 13823 ( cat <<\_ASBOX 13824## ------------------------------------ ## 13825## Report this to http://llvm.org/bugs/ ## 13826## ------------------------------------ ## 13827_ASBOX 13828 ) | sed "s/^/$as_me: WARNING: /" >&2 13829 ;; 13830esac 13831{ echo "$as_me:$LINENO: checking for jitprofiling.h" >&5 13832echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; } 13833if test "${ac_cv_header_jitprofiling_h+set}" = set; then 13834 echo $ECHO_N "(cached) $ECHO_C" >&6 13835else 13836 ac_cv_header_jitprofiling_h=$ac_header_preproc 13837fi 13838{ echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5 13839echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; } 13840 13841fi 13842if test $ac_cv_header_jitprofiling_h = yes; then 13843 : 13844else 13845 13846 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents" 13847 exit -1 13848 13849fi 13850 13851 13852 13853 13854else 13855 13856 USE_INTEL_JITEVENTS=0 13857 13858 13859fi 13860 13861 13862cat >>confdefs.h <<_ACEOF 13863#define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS 13864_ACEOF 13865 13866 13867for ac_prog in xml2-config 13868do 13869 # Extract the first word of "$ac_prog", so it can be a program name with args. 13870set dummy $ac_prog; ac_word=$2 13871{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13873if test "${ac_cv_prog_XML2CONFIG+set}" = set; then 13874 echo $ECHO_N "(cached) $ECHO_C" >&6 13875else 13876 if test -n "$XML2CONFIG"; then 13877 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test. 13878else 13879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13880for as_dir in $PATH 13881do 13882 IFS=$as_save_IFS 13883 test -z "$as_dir" && as_dir=. 13884 for ac_exec_ext in '' $ac_executable_extensions; do 13885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 13886 ac_cv_prog_XML2CONFIG="$ac_prog" 13887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13888 break 2 13889 fi 13890done 13891done 13892IFS=$as_save_IFS 13893 13894fi 13895fi 13896XML2CONFIG=$ac_cv_prog_XML2CONFIG 13897if test -n "$XML2CONFIG"; then 13898 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5 13899echo "${ECHO_T}$XML2CONFIG" >&6; } 13900else 13901 { echo "$as_me:$LINENO: result: no" >&5 13902echo "${ECHO_T}no" >&6; } 13903fi 13904 13905 13906 test -n "$XML2CONFIG" && break 13907done 13908 13909 13910{ echo "$as_me:$LINENO: checking for libxml2 includes" >&5 13911echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; } 13912if test "x$XML2CONFIG" = "x"; then 13913 { echo "$as_me:$LINENO: result: xml2-config not found" >&5 13914echo "${ECHO_T}xml2-config not found" >&6; } 13915else 13916 LIBXML2_INC=`$XML2CONFIG --cflags` 13917 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5 13918echo "${ECHO_T}$LIBXML2_INC" >&6; } 13919 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5 13920echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; } 13921if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then 13922 echo $ECHO_N "(cached) $ECHO_C" >&6 13923else 13924 ac_check_lib_save_LIBS=$LIBS 13925LIBS="-lxml2 $LIBS" 13926cat >conftest.$ac_ext <<_ACEOF 13927/* confdefs.h. */ 13928_ACEOF 13929cat confdefs.h >>conftest.$ac_ext 13930cat >>conftest.$ac_ext <<_ACEOF 13931/* end confdefs.h. */ 13932 13933/* Override any GCC internal prototype to avoid an error. 13934 Use char because int might match the return type of a GCC 13935 builtin and then its argument prototype would still apply. */ 13936#ifdef __cplusplus 13937extern "C" 13938#endif 13939char xmlReadFile (); 13940int 13941main () 13942{ 13943return xmlReadFile (); 13944 ; 13945 return 0; 13946} 13947_ACEOF 13948rm -f conftest.$ac_objext conftest$ac_exeext 13949if { (ac_try="$ac_link" 13950case "(($ac_try" in 13951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13952 *) ac_try_echo=$ac_try;; 13953esac 13954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13955 (eval "$ac_link") 2>conftest.er1 13956 ac_status=$? 13957 grep -v '^ *+' conftest.er1 >conftest.err 13958 rm -f conftest.er1 13959 cat conftest.err >&5 13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13961 (exit $ac_status); } && 13962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13963 { (case "(($ac_try" in 13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13965 *) ac_try_echo=$ac_try;; 13966esac 13967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13968 (eval "$ac_try") 2>&5 13969 ac_status=$? 13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13971 (exit $ac_status); }; } && 13972 { ac_try='test -s conftest$ac_exeext' 13973 { (case "(($ac_try" in 13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13975 *) ac_try_echo=$ac_try;; 13976esac 13977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13978 (eval "$ac_try") 2>&5 13979 ac_status=$? 13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13981 (exit $ac_status); }; }; then 13982 ac_cv_lib_xml2_xmlReadFile=yes 13983else 13984 echo "$as_me: failed program was:" >&5 13985sed 's/^/| /' conftest.$ac_ext >&5 13986 13987 ac_cv_lib_xml2_xmlReadFile=no 13988fi 13989 13990rm -f core conftest.err conftest.$ac_objext \ 13991 conftest$ac_exeext conftest.$ac_ext 13992LIBS=$ac_check_lib_save_LIBS 13993fi 13994{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5 13995echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; } 13996if test $ac_cv_lib_xml2_xmlReadFile = yes; then 13997 13998cat >>confdefs.h <<\_ACEOF 13999#define CLANG_HAVE_LIBXML 1 14000_ACEOF 14001 14002 LIBXML2_LIBS="-lxml2" 14003fi 14004 14005fi 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015ac_header_dirent=no 14016for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14017 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14018{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 14019echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 14020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14021 echo $ECHO_N "(cached) $ECHO_C" >&6 14022else 14023 cat >conftest.$ac_ext <<_ACEOF 14024/* confdefs.h. */ 14025_ACEOF 14026cat confdefs.h >>conftest.$ac_ext 14027cat >>conftest.$ac_ext <<_ACEOF 14028/* end confdefs.h. */ 14029#include <sys/types.h> 14030#include <$ac_hdr> 14031 14032int 14033main () 14034{ 14035if ((DIR *) 0) 14036return 0; 14037 ; 14038 return 0; 14039} 14040_ACEOF 14041rm -f conftest.$ac_objext 14042if { (ac_try="$ac_compile" 14043case "(($ac_try" in 14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14045 *) ac_try_echo=$ac_try;; 14046esac 14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14048 (eval "$ac_compile") 2>conftest.er1 14049 ac_status=$? 14050 grep -v '^ *+' conftest.er1 >conftest.err 14051 rm -f conftest.er1 14052 cat conftest.err >&5 14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14054 (exit $ac_status); } && 14055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14056 { (case "(($ac_try" in 14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14058 *) ac_try_echo=$ac_try;; 14059esac 14060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14061 (eval "$ac_try") 2>&5 14062 ac_status=$? 14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14064 (exit $ac_status); }; } && 14065 { ac_try='test -s conftest.$ac_objext' 14066 { (case "(($ac_try" in 14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14068 *) ac_try_echo=$ac_try;; 14069esac 14070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14071 (eval "$ac_try") 2>&5 14072 ac_status=$? 14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14074 (exit $ac_status); }; }; then 14075 eval "$as_ac_Header=yes" 14076else 14077 echo "$as_me: failed program was:" >&5 14078sed 's/^/| /' conftest.$ac_ext >&5 14079 14080 eval "$as_ac_Header=no" 14081fi 14082 14083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14084fi 14085ac_res=`eval echo '${'$as_ac_Header'}'` 14086 { echo "$as_me:$LINENO: result: $ac_res" >&5 14087echo "${ECHO_T}$ac_res" >&6; } 14088if test `eval echo '${'$as_ac_Header'}'` = yes; then 14089 cat >>confdefs.h <<_ACEOF 14090#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14091_ACEOF 14092 14093ac_header_dirent=$ac_hdr; break 14094fi 14095 14096done 14097# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14098if test $ac_header_dirent = dirent.h; then 14099 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14100echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14101if test "${ac_cv_search_opendir+set}" = set; then 14102 echo $ECHO_N "(cached) $ECHO_C" >&6 14103else 14104 ac_func_search_save_LIBS=$LIBS 14105cat >conftest.$ac_ext <<_ACEOF 14106/* confdefs.h. */ 14107_ACEOF 14108cat confdefs.h >>conftest.$ac_ext 14109cat >>conftest.$ac_ext <<_ACEOF 14110/* end confdefs.h. */ 14111 14112/* Override any GCC internal prototype to avoid an error. 14113 Use char because int might match the return type of a GCC 14114 builtin and then its argument prototype would still apply. */ 14115#ifdef __cplusplus 14116extern "C" 14117#endif 14118char opendir (); 14119int 14120main () 14121{ 14122return opendir (); 14123 ; 14124 return 0; 14125} 14126_ACEOF 14127for ac_lib in '' dir; do 14128 if test -z "$ac_lib"; then 14129 ac_res="none required" 14130 else 14131 ac_res=-l$ac_lib 14132 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14133 fi 14134 rm -f conftest.$ac_objext conftest$ac_exeext 14135if { (ac_try="$ac_link" 14136case "(($ac_try" in 14137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14138 *) ac_try_echo=$ac_try;; 14139esac 14140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14141 (eval "$ac_link") 2>conftest.er1 14142 ac_status=$? 14143 grep -v '^ *+' conftest.er1 >conftest.err 14144 rm -f conftest.er1 14145 cat conftest.err >&5 14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14147 (exit $ac_status); } && 14148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14149 { (case "(($ac_try" in 14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14151 *) ac_try_echo=$ac_try;; 14152esac 14153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14154 (eval "$ac_try") 2>&5 14155 ac_status=$? 14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14157 (exit $ac_status); }; } && 14158 { ac_try='test -s conftest$ac_exeext' 14159 { (case "(($ac_try" in 14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14161 *) ac_try_echo=$ac_try;; 14162esac 14163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14164 (eval "$ac_try") 2>&5 14165 ac_status=$? 14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14167 (exit $ac_status); }; }; then 14168 ac_cv_search_opendir=$ac_res 14169else 14170 echo "$as_me: failed program was:" >&5 14171sed 's/^/| /' conftest.$ac_ext >&5 14172 14173 14174fi 14175 14176rm -f core conftest.err conftest.$ac_objext \ 14177 conftest$ac_exeext 14178 if test "${ac_cv_search_opendir+set}" = set; then 14179 break 14180fi 14181done 14182if test "${ac_cv_search_opendir+set}" = set; then 14183 : 14184else 14185 ac_cv_search_opendir=no 14186fi 14187rm conftest.$ac_ext 14188LIBS=$ac_func_search_save_LIBS 14189fi 14190{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14191echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14192ac_res=$ac_cv_search_opendir 14193if test "$ac_res" != no; then 14194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14195 14196fi 14197 14198else 14199 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14200echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14201if test "${ac_cv_search_opendir+set}" = set; then 14202 echo $ECHO_N "(cached) $ECHO_C" >&6 14203else 14204 ac_func_search_save_LIBS=$LIBS 14205cat >conftest.$ac_ext <<_ACEOF 14206/* confdefs.h. */ 14207_ACEOF 14208cat confdefs.h >>conftest.$ac_ext 14209cat >>conftest.$ac_ext <<_ACEOF 14210/* end confdefs.h. */ 14211 14212/* Override any GCC internal prototype to avoid an error. 14213 Use char because int might match the return type of a GCC 14214 builtin and then its argument prototype would still apply. */ 14215#ifdef __cplusplus 14216extern "C" 14217#endif 14218char opendir (); 14219int 14220main () 14221{ 14222return opendir (); 14223 ; 14224 return 0; 14225} 14226_ACEOF 14227for ac_lib in '' x; do 14228 if test -z "$ac_lib"; then 14229 ac_res="none required" 14230 else 14231 ac_res=-l$ac_lib 14232 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14233 fi 14234 rm -f conftest.$ac_objext conftest$ac_exeext 14235if { (ac_try="$ac_link" 14236case "(($ac_try" in 14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14238 *) ac_try_echo=$ac_try;; 14239esac 14240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14241 (eval "$ac_link") 2>conftest.er1 14242 ac_status=$? 14243 grep -v '^ *+' conftest.er1 >conftest.err 14244 rm -f conftest.er1 14245 cat conftest.err >&5 14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14247 (exit $ac_status); } && 14248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14249 { (case "(($ac_try" in 14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14251 *) ac_try_echo=$ac_try;; 14252esac 14253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14254 (eval "$ac_try") 2>&5 14255 ac_status=$? 14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14257 (exit $ac_status); }; } && 14258 { ac_try='test -s conftest$ac_exeext' 14259 { (case "(($ac_try" in 14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14261 *) ac_try_echo=$ac_try;; 14262esac 14263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14264 (eval "$ac_try") 2>&5 14265 ac_status=$? 14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14267 (exit $ac_status); }; }; then 14268 ac_cv_search_opendir=$ac_res 14269else 14270 echo "$as_me: failed program was:" >&5 14271sed 's/^/| /' conftest.$ac_ext >&5 14272 14273 14274fi 14275 14276rm -f core conftest.err conftest.$ac_objext \ 14277 conftest$ac_exeext 14278 if test "${ac_cv_search_opendir+set}" = set; then 14279 break 14280fi 14281done 14282if test "${ac_cv_search_opendir+set}" = set; then 14283 : 14284else 14285 ac_cv_search_opendir=no 14286fi 14287rm conftest.$ac_ext 14288LIBS=$ac_func_search_save_LIBS 14289fi 14290{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14291echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14292ac_res=$ac_cv_search_opendir 14293if test "$ac_res" != no; then 14294 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14295 14296fi 14297 14298fi 14299 14300{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 14301echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 14302if test "${ac_cv_header_mmap_anon+set}" = set; then 14303 echo $ECHO_N "(cached) $ECHO_C" >&6 14304else 14305 ac_ext=c 14306ac_cpp='$CPP $CPPFLAGS' 14307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14309ac_compiler_gnu=$ac_cv_c_compiler_gnu 14310 14311 cat >conftest.$ac_ext <<_ACEOF 14312/* confdefs.h. */ 14313_ACEOF 14314cat confdefs.h >>conftest.$ac_ext 14315cat >>conftest.$ac_ext <<_ACEOF 14316/* end confdefs.h. */ 14317#include <sys/mman.h> 14318#include <unistd.h> 14319#include <fcntl.h> 14320int 14321main () 14322{ 14323mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 14324 ; 14325 return 0; 14326} 14327_ACEOF 14328rm -f conftest.$ac_objext 14329if { (ac_try="$ac_compile" 14330case "(($ac_try" in 14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14332 *) ac_try_echo=$ac_try;; 14333esac 14334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14335 (eval "$ac_compile") 2>conftest.er1 14336 ac_status=$? 14337 grep -v '^ *+' conftest.er1 >conftest.err 14338 rm -f conftest.er1 14339 cat conftest.err >&5 14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14341 (exit $ac_status); } && 14342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14343 { (case "(($ac_try" in 14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14345 *) ac_try_echo=$ac_try;; 14346esac 14347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14348 (eval "$ac_try") 2>&5 14349 ac_status=$? 14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14351 (exit $ac_status); }; } && 14352 { ac_try='test -s conftest.$ac_objext' 14353 { (case "(($ac_try" in 14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14355 *) ac_try_echo=$ac_try;; 14356esac 14357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14358 (eval "$ac_try") 2>&5 14359 ac_status=$? 14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14361 (exit $ac_status); }; }; then 14362 ac_cv_header_mmap_anon=yes 14363else 14364 echo "$as_me: failed program was:" >&5 14365sed 's/^/| /' conftest.$ac_ext >&5 14366 14367 ac_cv_header_mmap_anon=no 14368fi 14369 14370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14371 ac_ext=c 14372ac_cpp='$CPP $CPPFLAGS' 14373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14375ac_compiler_gnu=$ac_cv_c_compiler_gnu 14376 14377 14378fi 14379{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 14380echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 14381if test "$ac_cv_header_mmap_anon" = yes; then 14382 14383cat >>confdefs.h <<\_ACEOF 14384#define HAVE_MMAP_ANONYMOUS 1 14385_ACEOF 14386 14387fi 14388 14389{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 14390echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 14391if test "${ac_cv_header_stat_broken+set}" = set; then 14392 echo $ECHO_N "(cached) $ECHO_C" >&6 14393else 14394 cat >conftest.$ac_ext <<_ACEOF 14395/* confdefs.h. */ 14396_ACEOF 14397cat confdefs.h >>conftest.$ac_ext 14398cat >>conftest.$ac_ext <<_ACEOF 14399/* end confdefs.h. */ 14400#include <sys/types.h> 14401#include <sys/stat.h> 14402 14403#if defined S_ISBLK && defined S_IFDIR 14404# if S_ISBLK (S_IFDIR) 14405You lose. 14406# endif 14407#endif 14408 14409#if defined S_ISBLK && defined S_IFCHR 14410# if S_ISBLK (S_IFCHR) 14411You lose. 14412# endif 14413#endif 14414 14415#if defined S_ISLNK && defined S_IFREG 14416# if S_ISLNK (S_IFREG) 14417You lose. 14418# endif 14419#endif 14420 14421#if defined S_ISSOCK && defined S_IFREG 14422# if S_ISSOCK (S_IFREG) 14423You lose. 14424# endif 14425#endif 14426 14427_ACEOF 14428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14429 $EGREP "You lose" >/dev/null 2>&1; then 14430 ac_cv_header_stat_broken=yes 14431else 14432 ac_cv_header_stat_broken=no 14433fi 14434rm -f conftest* 14435 14436fi 14437{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14438echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14439if test $ac_cv_header_stat_broken = yes; then 14440 14441cat >>confdefs.h <<\_ACEOF 14442#define STAT_MACROS_BROKEN 1 14443_ACEOF 14444 14445fi 14446 14447{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 14448echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14449if test "${ac_cv_header_sys_wait_h+set}" = set; then 14450 echo $ECHO_N "(cached) $ECHO_C" >&6 14451else 14452 cat >conftest.$ac_ext <<_ACEOF 14453/* confdefs.h. */ 14454_ACEOF 14455cat confdefs.h >>conftest.$ac_ext 14456cat >>conftest.$ac_ext <<_ACEOF 14457/* end confdefs.h. */ 14458#include <sys/types.h> 14459#include <sys/wait.h> 14460#ifndef WEXITSTATUS 14461# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14462#endif 14463#ifndef WIFEXITED 14464# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14465#endif 14466 14467int 14468main () 14469{ 14470 int s; 14471 wait (&s); 14472 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14473 ; 14474 return 0; 14475} 14476_ACEOF 14477rm -f conftest.$ac_objext 14478if { (ac_try="$ac_compile" 14479case "(($ac_try" in 14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14481 *) ac_try_echo=$ac_try;; 14482esac 14483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14484 (eval "$ac_compile") 2>conftest.er1 14485 ac_status=$? 14486 grep -v '^ *+' conftest.er1 >conftest.err 14487 rm -f conftest.er1 14488 cat conftest.err >&5 14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14490 (exit $ac_status); } && 14491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14492 { (case "(($ac_try" in 14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14494 *) ac_try_echo=$ac_try;; 14495esac 14496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14497 (eval "$ac_try") 2>&5 14498 ac_status=$? 14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14500 (exit $ac_status); }; } && 14501 { ac_try='test -s conftest.$ac_objext' 14502 { (case "(($ac_try" in 14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14504 *) ac_try_echo=$ac_try;; 14505esac 14506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14507 (eval "$ac_try") 2>&5 14508 ac_status=$? 14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14510 (exit $ac_status); }; }; then 14511 ac_cv_header_sys_wait_h=yes 14512else 14513 echo "$as_me: failed program was:" >&5 14514sed 's/^/| /' conftest.$ac_ext >&5 14515 14516 ac_cv_header_sys_wait_h=no 14517fi 14518 14519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14520fi 14521{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14522echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14523if test $ac_cv_header_sys_wait_h = yes; then 14524 14525cat >>confdefs.h <<\_ACEOF 14526#define HAVE_SYS_WAIT_H 1 14527_ACEOF 14528 14529fi 14530 14531{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14532echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14533if test "${ac_cv_header_time+set}" = set; then 14534 echo $ECHO_N "(cached) $ECHO_C" >&6 14535else 14536 cat >conftest.$ac_ext <<_ACEOF 14537/* confdefs.h. */ 14538_ACEOF 14539cat confdefs.h >>conftest.$ac_ext 14540cat >>conftest.$ac_ext <<_ACEOF 14541/* end confdefs.h. */ 14542#include <sys/types.h> 14543#include <sys/time.h> 14544#include <time.h> 14545 14546int 14547main () 14548{ 14549if ((struct tm *) 0) 14550return 0; 14551 ; 14552 return 0; 14553} 14554_ACEOF 14555rm -f conftest.$ac_objext 14556if { (ac_try="$ac_compile" 14557case "(($ac_try" in 14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14559 *) ac_try_echo=$ac_try;; 14560esac 14561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14562 (eval "$ac_compile") 2>conftest.er1 14563 ac_status=$? 14564 grep -v '^ *+' conftest.er1 >conftest.err 14565 rm -f conftest.er1 14566 cat conftest.err >&5 14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14568 (exit $ac_status); } && 14569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14570 { (case "(($ac_try" in 14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14572 *) ac_try_echo=$ac_try;; 14573esac 14574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14575 (eval "$ac_try") 2>&5 14576 ac_status=$? 14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14578 (exit $ac_status); }; } && 14579 { ac_try='test -s conftest.$ac_objext' 14580 { (case "(($ac_try" in 14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14582 *) ac_try_echo=$ac_try;; 14583esac 14584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14585 (eval "$ac_try") 2>&5 14586 ac_status=$? 14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14588 (exit $ac_status); }; }; then 14589 ac_cv_header_time=yes 14590else 14591 echo "$as_me: failed program was:" >&5 14592sed 's/^/| /' conftest.$ac_ext >&5 14593 14594 ac_cv_header_time=no 14595fi 14596 14597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14598fi 14599{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14600echo "${ECHO_T}$ac_cv_header_time" >&6; } 14601if test $ac_cv_header_time = yes; then 14602 14603cat >>confdefs.h <<\_ACEOF 14604#define TIME_WITH_SYS_TIME 1 14605_ACEOF 14606 14607fi 14608 14609 14610 14611 14612 14613 14614 14615 14616for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 14617do 14618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14620 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14623 echo $ECHO_N "(cached) $ECHO_C" >&6 14624fi 14625ac_res=`eval echo '${'$as_ac_Header'}'` 14626 { echo "$as_me:$LINENO: result: $ac_res" >&5 14627echo "${ECHO_T}$ac_res" >&6; } 14628else 14629 # Is the header compilable? 14630{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14632cat >conftest.$ac_ext <<_ACEOF 14633/* confdefs.h. */ 14634_ACEOF 14635cat confdefs.h >>conftest.$ac_ext 14636cat >>conftest.$ac_ext <<_ACEOF 14637/* end confdefs.h. */ 14638$ac_includes_default 14639#include <$ac_header> 14640_ACEOF 14641rm -f conftest.$ac_objext 14642if { (ac_try="$ac_compile" 14643case "(($ac_try" in 14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14645 *) ac_try_echo=$ac_try;; 14646esac 14647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14648 (eval "$ac_compile") 2>conftest.er1 14649 ac_status=$? 14650 grep -v '^ *+' conftest.er1 >conftest.err 14651 rm -f conftest.er1 14652 cat conftest.err >&5 14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14654 (exit $ac_status); } && 14655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14656 { (case "(($ac_try" in 14657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14658 *) ac_try_echo=$ac_try;; 14659esac 14660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14661 (eval "$ac_try") 2>&5 14662 ac_status=$? 14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14664 (exit $ac_status); }; } && 14665 { ac_try='test -s conftest.$ac_objext' 14666 { (case "(($ac_try" in 14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14668 *) ac_try_echo=$ac_try;; 14669esac 14670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14671 (eval "$ac_try") 2>&5 14672 ac_status=$? 14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14674 (exit $ac_status); }; }; then 14675 ac_header_compiler=yes 14676else 14677 echo "$as_me: failed program was:" >&5 14678sed 's/^/| /' conftest.$ac_ext >&5 14679 14680 ac_header_compiler=no 14681fi 14682 14683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14684{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14685echo "${ECHO_T}$ac_header_compiler" >&6; } 14686 14687# Is the header present? 14688{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14690cat >conftest.$ac_ext <<_ACEOF 14691/* confdefs.h. */ 14692_ACEOF 14693cat confdefs.h >>conftest.$ac_ext 14694cat >>conftest.$ac_ext <<_ACEOF 14695/* end confdefs.h. */ 14696#include <$ac_header> 14697_ACEOF 14698if { (ac_try="$ac_cpp conftest.$ac_ext" 14699case "(($ac_try" in 14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14701 *) ac_try_echo=$ac_try;; 14702esac 14703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14705 ac_status=$? 14706 grep -v '^ *+' conftest.er1 >conftest.err 14707 rm -f conftest.er1 14708 cat conftest.err >&5 14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14710 (exit $ac_status); } >/dev/null; then 14711 if test -s conftest.err; then 14712 ac_cpp_err=$ac_c_preproc_warn_flag 14713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14714 else 14715 ac_cpp_err= 14716 fi 14717else 14718 ac_cpp_err=yes 14719fi 14720if test -z "$ac_cpp_err"; then 14721 ac_header_preproc=yes 14722else 14723 echo "$as_me: failed program was:" >&5 14724sed 's/^/| /' conftest.$ac_ext >&5 14725 14726 ac_header_preproc=no 14727fi 14728 14729rm -f conftest.err conftest.$ac_ext 14730{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14731echo "${ECHO_T}$ac_header_preproc" >&6; } 14732 14733# So? What about this header? 14734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14735 yes:no: ) 14736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14740 ac_header_preproc=yes 14741 ;; 14742 no:yes:* ) 14743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14750echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14755 ( cat <<\_ASBOX 14756## ------------------------------------ ## 14757## Report this to http://llvm.org/bugs/ ## 14758## ------------------------------------ ## 14759_ASBOX 14760 ) | sed "s/^/$as_me: WARNING: /" >&2 14761 ;; 14762esac 14763{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14766 echo $ECHO_N "(cached) $ECHO_C" >&6 14767else 14768 eval "$as_ac_Header=\$ac_header_preproc" 14769fi 14770ac_res=`eval echo '${'$as_ac_Header'}'` 14771 { echo "$as_me:$LINENO: result: $ac_res" >&5 14772echo "${ECHO_T}$ac_res" >&6; } 14773 14774fi 14775if test `eval echo '${'$as_ac_Header'}'` = yes; then 14776 cat >>confdefs.h <<_ACEOF 14777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14778_ACEOF 14779 14780fi 14781 14782done 14783 14784 14785 14786 14787 14788 14789 14790for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 14791do 14792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14794 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14797 echo $ECHO_N "(cached) $ECHO_C" >&6 14798fi 14799ac_res=`eval echo '${'$as_ac_Header'}'` 14800 { echo "$as_me:$LINENO: result: $ac_res" >&5 14801echo "${ECHO_T}$ac_res" >&6; } 14802else 14803 # Is the header compilable? 14804{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14805echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14806cat >conftest.$ac_ext <<_ACEOF 14807/* confdefs.h. */ 14808_ACEOF 14809cat confdefs.h >>conftest.$ac_ext 14810cat >>conftest.$ac_ext <<_ACEOF 14811/* end confdefs.h. */ 14812$ac_includes_default 14813#include <$ac_header> 14814_ACEOF 14815rm -f conftest.$ac_objext 14816if { (ac_try="$ac_compile" 14817case "(($ac_try" in 14818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14819 *) ac_try_echo=$ac_try;; 14820esac 14821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14822 (eval "$ac_compile") 2>conftest.er1 14823 ac_status=$? 14824 grep -v '^ *+' conftest.er1 >conftest.err 14825 rm -f conftest.er1 14826 cat conftest.err >&5 14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14828 (exit $ac_status); } && 14829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14830 { (case "(($ac_try" in 14831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14832 *) ac_try_echo=$ac_try;; 14833esac 14834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14835 (eval "$ac_try") 2>&5 14836 ac_status=$? 14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14838 (exit $ac_status); }; } && 14839 { ac_try='test -s conftest.$ac_objext' 14840 { (case "(($ac_try" in 14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14842 *) ac_try_echo=$ac_try;; 14843esac 14844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14845 (eval "$ac_try") 2>&5 14846 ac_status=$? 14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14848 (exit $ac_status); }; }; then 14849 ac_header_compiler=yes 14850else 14851 echo "$as_me: failed program was:" >&5 14852sed 's/^/| /' conftest.$ac_ext >&5 14853 14854 ac_header_compiler=no 14855fi 14856 14857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14858{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14859echo "${ECHO_T}$ac_header_compiler" >&6; } 14860 14861# Is the header present? 14862{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14864cat >conftest.$ac_ext <<_ACEOF 14865/* confdefs.h. */ 14866_ACEOF 14867cat confdefs.h >>conftest.$ac_ext 14868cat >>conftest.$ac_ext <<_ACEOF 14869/* end confdefs.h. */ 14870#include <$ac_header> 14871_ACEOF 14872if { (ac_try="$ac_cpp conftest.$ac_ext" 14873case "(($ac_try" in 14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14875 *) ac_try_echo=$ac_try;; 14876esac 14877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14879 ac_status=$? 14880 grep -v '^ *+' conftest.er1 >conftest.err 14881 rm -f conftest.er1 14882 cat conftest.err >&5 14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14884 (exit $ac_status); } >/dev/null; then 14885 if test -s conftest.err; then 14886 ac_cpp_err=$ac_c_preproc_warn_flag 14887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14888 else 14889 ac_cpp_err= 14890 fi 14891else 14892 ac_cpp_err=yes 14893fi 14894if test -z "$ac_cpp_err"; then 14895 ac_header_preproc=yes 14896else 14897 echo "$as_me: failed program was:" >&5 14898sed 's/^/| /' conftest.$ac_ext >&5 14899 14900 ac_header_preproc=no 14901fi 14902 14903rm -f conftest.err conftest.$ac_ext 14904{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14905echo "${ECHO_T}$ac_header_preproc" >&6; } 14906 14907# So? What about this header? 14908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14909 yes:no: ) 14910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14913echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14914 ac_header_preproc=yes 14915 ;; 14916 no:yes:* ) 14917 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14918echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14919 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14920echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14921 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14922echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14923 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14924echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14926echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14927 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14928echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14929 ( cat <<\_ASBOX 14930## ------------------------------------ ## 14931## Report this to http://llvm.org/bugs/ ## 14932## ------------------------------------ ## 14933_ASBOX 14934 ) | sed "s/^/$as_me: WARNING: /" >&2 14935 ;; 14936esac 14937{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14940 echo $ECHO_N "(cached) $ECHO_C" >&6 14941else 14942 eval "$as_ac_Header=\$ac_header_preproc" 14943fi 14944ac_res=`eval echo '${'$as_ac_Header'}'` 14945 { echo "$as_me:$LINENO: result: $ac_res" >&5 14946echo "${ECHO_T}$ac_res" >&6; } 14947 14948fi 14949if test `eval echo '${'$as_ac_Header'}'` = yes; then 14950 cat >>confdefs.h <<_ACEOF 14951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14952_ACEOF 14953 14954fi 14955 14956done 14957 14958 14959 14960for ac_header in utime.h windows.h 14961do 14962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14964 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14967 echo $ECHO_N "(cached) $ECHO_C" >&6 14968fi 14969ac_res=`eval echo '${'$as_ac_Header'}'` 14970 { echo "$as_me:$LINENO: result: $ac_res" >&5 14971echo "${ECHO_T}$ac_res" >&6; } 14972else 14973 # Is the header compilable? 14974{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14976cat >conftest.$ac_ext <<_ACEOF 14977/* confdefs.h. */ 14978_ACEOF 14979cat confdefs.h >>conftest.$ac_ext 14980cat >>conftest.$ac_ext <<_ACEOF 14981/* end confdefs.h. */ 14982$ac_includes_default 14983#include <$ac_header> 14984_ACEOF 14985rm -f conftest.$ac_objext 14986if { (ac_try="$ac_compile" 14987case "(($ac_try" in 14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14989 *) ac_try_echo=$ac_try;; 14990esac 14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14992 (eval "$ac_compile") 2>conftest.er1 14993 ac_status=$? 14994 grep -v '^ *+' conftest.er1 >conftest.err 14995 rm -f conftest.er1 14996 cat conftest.err >&5 14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14998 (exit $ac_status); } && 14999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15000 { (case "(($ac_try" in 15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15002 *) ac_try_echo=$ac_try;; 15003esac 15004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15005 (eval "$ac_try") 2>&5 15006 ac_status=$? 15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15008 (exit $ac_status); }; } && 15009 { ac_try='test -s conftest.$ac_objext' 15010 { (case "(($ac_try" in 15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15012 *) ac_try_echo=$ac_try;; 15013esac 15014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15015 (eval "$ac_try") 2>&5 15016 ac_status=$? 15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15018 (exit $ac_status); }; }; then 15019 ac_header_compiler=yes 15020else 15021 echo "$as_me: failed program was:" >&5 15022sed 's/^/| /' conftest.$ac_ext >&5 15023 15024 ac_header_compiler=no 15025fi 15026 15027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15028{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15029echo "${ECHO_T}$ac_header_compiler" >&6; } 15030 15031# Is the header present? 15032{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15034cat >conftest.$ac_ext <<_ACEOF 15035/* confdefs.h. */ 15036_ACEOF 15037cat confdefs.h >>conftest.$ac_ext 15038cat >>conftest.$ac_ext <<_ACEOF 15039/* end confdefs.h. */ 15040#include <$ac_header> 15041_ACEOF 15042if { (ac_try="$ac_cpp conftest.$ac_ext" 15043case "(($ac_try" in 15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15045 *) ac_try_echo=$ac_try;; 15046esac 15047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15049 ac_status=$? 15050 grep -v '^ *+' conftest.er1 >conftest.err 15051 rm -f conftest.er1 15052 cat conftest.err >&5 15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15054 (exit $ac_status); } >/dev/null; then 15055 if test -s conftest.err; then 15056 ac_cpp_err=$ac_c_preproc_warn_flag 15057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15058 else 15059 ac_cpp_err= 15060 fi 15061else 15062 ac_cpp_err=yes 15063fi 15064if test -z "$ac_cpp_err"; then 15065 ac_header_preproc=yes 15066else 15067 echo "$as_me: failed program was:" >&5 15068sed 's/^/| /' conftest.$ac_ext >&5 15069 15070 ac_header_preproc=no 15071fi 15072 15073rm -f conftest.err conftest.$ac_ext 15074{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15075echo "${ECHO_T}$ac_header_preproc" >&6; } 15076 15077# So? What about this header? 15078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15079 yes:no: ) 15080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15084 ac_header_preproc=yes 15085 ;; 15086 no:yes:* ) 15087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15090echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15094echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15099 ( cat <<\_ASBOX 15100## ------------------------------------ ## 15101## Report this to http://llvm.org/bugs/ ## 15102## ------------------------------------ ## 15103_ASBOX 15104 ) | sed "s/^/$as_me: WARNING: /" >&2 15105 ;; 15106esac 15107{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15110 echo $ECHO_N "(cached) $ECHO_C" >&6 15111else 15112 eval "$as_ac_Header=\$ac_header_preproc" 15113fi 15114ac_res=`eval echo '${'$as_ac_Header'}'` 15115 { echo "$as_me:$LINENO: result: $ac_res" >&5 15116echo "${ECHO_T}$ac_res" >&6; } 15117 15118fi 15119if test `eval echo '${'$as_ac_Header'}'` = yes; then 15120 cat >>confdefs.h <<_ACEOF 15121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15122_ACEOF 15123 15124fi 15125 15126done 15127 15128 15129 15130 15131 15132 15133for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 15134do 15135as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15137 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15140 echo $ECHO_N "(cached) $ECHO_C" >&6 15141fi 15142ac_res=`eval echo '${'$as_ac_Header'}'` 15143 { echo "$as_me:$LINENO: result: $ac_res" >&5 15144echo "${ECHO_T}$ac_res" >&6; } 15145else 15146 # Is the header compilable? 15147{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15149cat >conftest.$ac_ext <<_ACEOF 15150/* confdefs.h. */ 15151_ACEOF 15152cat confdefs.h >>conftest.$ac_ext 15153cat >>conftest.$ac_ext <<_ACEOF 15154/* end confdefs.h. */ 15155$ac_includes_default 15156#include <$ac_header> 15157_ACEOF 15158rm -f conftest.$ac_objext 15159if { (ac_try="$ac_compile" 15160case "(($ac_try" in 15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15162 *) ac_try_echo=$ac_try;; 15163esac 15164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15165 (eval "$ac_compile") 2>conftest.er1 15166 ac_status=$? 15167 grep -v '^ *+' conftest.er1 >conftest.err 15168 rm -f conftest.er1 15169 cat conftest.err >&5 15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15171 (exit $ac_status); } && 15172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15173 { (case "(($ac_try" in 15174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15175 *) ac_try_echo=$ac_try;; 15176esac 15177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15178 (eval "$ac_try") 2>&5 15179 ac_status=$? 15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15181 (exit $ac_status); }; } && 15182 { ac_try='test -s conftest.$ac_objext' 15183 { (case "(($ac_try" in 15184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15185 *) ac_try_echo=$ac_try;; 15186esac 15187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15188 (eval "$ac_try") 2>&5 15189 ac_status=$? 15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15191 (exit $ac_status); }; }; then 15192 ac_header_compiler=yes 15193else 15194 echo "$as_me: failed program was:" >&5 15195sed 's/^/| /' conftest.$ac_ext >&5 15196 15197 ac_header_compiler=no 15198fi 15199 15200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15201{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15202echo "${ECHO_T}$ac_header_compiler" >&6; } 15203 15204# Is the header present? 15205{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15206echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15207cat >conftest.$ac_ext <<_ACEOF 15208/* confdefs.h. */ 15209_ACEOF 15210cat confdefs.h >>conftest.$ac_ext 15211cat >>conftest.$ac_ext <<_ACEOF 15212/* end confdefs.h. */ 15213#include <$ac_header> 15214_ACEOF 15215if { (ac_try="$ac_cpp conftest.$ac_ext" 15216case "(($ac_try" in 15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15218 *) ac_try_echo=$ac_try;; 15219esac 15220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15222 ac_status=$? 15223 grep -v '^ *+' conftest.er1 >conftest.err 15224 rm -f conftest.er1 15225 cat conftest.err >&5 15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15227 (exit $ac_status); } >/dev/null; then 15228 if test -s conftest.err; then 15229 ac_cpp_err=$ac_c_preproc_warn_flag 15230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15231 else 15232 ac_cpp_err= 15233 fi 15234else 15235 ac_cpp_err=yes 15236fi 15237if test -z "$ac_cpp_err"; then 15238 ac_header_preproc=yes 15239else 15240 echo "$as_me: failed program was:" >&5 15241sed 's/^/| /' conftest.$ac_ext >&5 15242 15243 ac_header_preproc=no 15244fi 15245 15246rm -f conftest.err conftest.$ac_ext 15247{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15248echo "${ECHO_T}$ac_header_preproc" >&6; } 15249 15250# So? What about this header? 15251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15252 yes:no: ) 15253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15257 ac_header_preproc=yes 15258 ;; 15259 no:yes:* ) 15260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15267echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15272 ( cat <<\_ASBOX 15273## ------------------------------------ ## 15274## Report this to http://llvm.org/bugs/ ## 15275## ------------------------------------ ## 15276_ASBOX 15277 ) | sed "s/^/$as_me: WARNING: /" >&2 15278 ;; 15279esac 15280{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15283 echo $ECHO_N "(cached) $ECHO_C" >&6 15284else 15285 eval "$as_ac_Header=\$ac_header_preproc" 15286fi 15287ac_res=`eval echo '${'$as_ac_Header'}'` 15288 { echo "$as_me:$LINENO: result: $ac_res" >&5 15289echo "${ECHO_T}$ac_res" >&6; } 15290 15291fi 15292if test `eval echo '${'$as_ac_Header'}'` = yes; then 15293 cat >>confdefs.h <<_ACEOF 15294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15295_ACEOF 15296 15297fi 15298 15299done 15300 15301 15302 15303 15304 15305for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 15306do 15307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15309 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15312 echo $ECHO_N "(cached) $ECHO_C" >&6 15313fi 15314ac_res=`eval echo '${'$as_ac_Header'}'` 15315 { echo "$as_me:$LINENO: result: $ac_res" >&5 15316echo "${ECHO_T}$ac_res" >&6; } 15317else 15318 # Is the header compilable? 15319{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15321cat >conftest.$ac_ext <<_ACEOF 15322/* confdefs.h. */ 15323_ACEOF 15324cat confdefs.h >>conftest.$ac_ext 15325cat >>conftest.$ac_ext <<_ACEOF 15326/* end confdefs.h. */ 15327$ac_includes_default 15328#include <$ac_header> 15329_ACEOF 15330rm -f conftest.$ac_objext 15331if { (ac_try="$ac_compile" 15332case "(($ac_try" in 15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15334 *) ac_try_echo=$ac_try;; 15335esac 15336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15337 (eval "$ac_compile") 2>conftest.er1 15338 ac_status=$? 15339 grep -v '^ *+' conftest.er1 >conftest.err 15340 rm -f conftest.er1 15341 cat conftest.err >&5 15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15343 (exit $ac_status); } && 15344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15345 { (case "(($ac_try" in 15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15347 *) ac_try_echo=$ac_try;; 15348esac 15349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15350 (eval "$ac_try") 2>&5 15351 ac_status=$? 15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15353 (exit $ac_status); }; } && 15354 { ac_try='test -s conftest.$ac_objext' 15355 { (case "(($ac_try" in 15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15357 *) ac_try_echo=$ac_try;; 15358esac 15359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15360 (eval "$ac_try") 2>&5 15361 ac_status=$? 15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15363 (exit $ac_status); }; }; then 15364 ac_header_compiler=yes 15365else 15366 echo "$as_me: failed program was:" >&5 15367sed 's/^/| /' conftest.$ac_ext >&5 15368 15369 ac_header_compiler=no 15370fi 15371 15372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15373{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15374echo "${ECHO_T}$ac_header_compiler" >&6; } 15375 15376# Is the header present? 15377{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15378echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15379cat >conftest.$ac_ext <<_ACEOF 15380/* confdefs.h. */ 15381_ACEOF 15382cat confdefs.h >>conftest.$ac_ext 15383cat >>conftest.$ac_ext <<_ACEOF 15384/* end confdefs.h. */ 15385#include <$ac_header> 15386_ACEOF 15387if { (ac_try="$ac_cpp conftest.$ac_ext" 15388case "(($ac_try" in 15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15390 *) ac_try_echo=$ac_try;; 15391esac 15392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15394 ac_status=$? 15395 grep -v '^ *+' conftest.er1 >conftest.err 15396 rm -f conftest.er1 15397 cat conftest.err >&5 15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15399 (exit $ac_status); } >/dev/null; then 15400 if test -s conftest.err; then 15401 ac_cpp_err=$ac_c_preproc_warn_flag 15402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15403 else 15404 ac_cpp_err= 15405 fi 15406else 15407 ac_cpp_err=yes 15408fi 15409if test -z "$ac_cpp_err"; then 15410 ac_header_preproc=yes 15411else 15412 echo "$as_me: failed program was:" >&5 15413sed 's/^/| /' conftest.$ac_ext >&5 15414 15415 ac_header_preproc=no 15416fi 15417 15418rm -f conftest.err conftest.$ac_ext 15419{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15420echo "${ECHO_T}$ac_header_preproc" >&6; } 15421 15422# So? What about this header? 15423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15424 yes:no: ) 15425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15429 ac_header_preproc=yes 15430 ;; 15431 no:yes:* ) 15432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15444 ( cat <<\_ASBOX 15445## ------------------------------------ ## 15446## Report this to http://llvm.org/bugs/ ## 15447## ------------------------------------ ## 15448_ASBOX 15449 ) | sed "s/^/$as_me: WARNING: /" >&2 15450 ;; 15451esac 15452{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15455 echo $ECHO_N "(cached) $ECHO_C" >&6 15456else 15457 eval "$as_ac_Header=\$ac_header_preproc" 15458fi 15459ac_res=`eval echo '${'$as_ac_Header'}'` 15460 { echo "$as_me:$LINENO: result: $ac_res" >&5 15461echo "${ECHO_T}$ac_res" >&6; } 15462 15463fi 15464if test `eval echo '${'$as_ac_Header'}'` = yes; then 15465 cat >>confdefs.h <<_ACEOF 15466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15467_ACEOF 15468 15469fi 15470 15471done 15472 15473 15474for ac_header in valgrind/valgrind.h 15475do 15476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15478 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15481 echo $ECHO_N "(cached) $ECHO_C" >&6 15482fi 15483ac_res=`eval echo '${'$as_ac_Header'}'` 15484 { echo "$as_me:$LINENO: result: $ac_res" >&5 15485echo "${ECHO_T}$ac_res" >&6; } 15486else 15487 # Is the header compilable? 15488{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15490cat >conftest.$ac_ext <<_ACEOF 15491/* confdefs.h. */ 15492_ACEOF 15493cat confdefs.h >>conftest.$ac_ext 15494cat >>conftest.$ac_ext <<_ACEOF 15495/* end confdefs.h. */ 15496$ac_includes_default 15497#include <$ac_header> 15498_ACEOF 15499rm -f conftest.$ac_objext 15500if { (ac_try="$ac_compile" 15501case "(($ac_try" in 15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15503 *) ac_try_echo=$ac_try;; 15504esac 15505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15506 (eval "$ac_compile") 2>conftest.er1 15507 ac_status=$? 15508 grep -v '^ *+' conftest.er1 >conftest.err 15509 rm -f conftest.er1 15510 cat conftest.err >&5 15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15512 (exit $ac_status); } && 15513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15514 { (case "(($ac_try" in 15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15516 *) ac_try_echo=$ac_try;; 15517esac 15518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15519 (eval "$ac_try") 2>&5 15520 ac_status=$? 15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15522 (exit $ac_status); }; } && 15523 { ac_try='test -s conftest.$ac_objext' 15524 { (case "(($ac_try" in 15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15526 *) ac_try_echo=$ac_try;; 15527esac 15528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15529 (eval "$ac_try") 2>&5 15530 ac_status=$? 15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15532 (exit $ac_status); }; }; then 15533 ac_header_compiler=yes 15534else 15535 echo "$as_me: failed program was:" >&5 15536sed 's/^/| /' conftest.$ac_ext >&5 15537 15538 ac_header_compiler=no 15539fi 15540 15541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15542{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15543echo "${ECHO_T}$ac_header_compiler" >&6; } 15544 15545# Is the header present? 15546{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15547echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15548cat >conftest.$ac_ext <<_ACEOF 15549/* confdefs.h. */ 15550_ACEOF 15551cat confdefs.h >>conftest.$ac_ext 15552cat >>conftest.$ac_ext <<_ACEOF 15553/* end confdefs.h. */ 15554#include <$ac_header> 15555_ACEOF 15556if { (ac_try="$ac_cpp conftest.$ac_ext" 15557case "(($ac_try" in 15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15559 *) ac_try_echo=$ac_try;; 15560esac 15561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15563 ac_status=$? 15564 grep -v '^ *+' conftest.er1 >conftest.err 15565 rm -f conftest.er1 15566 cat conftest.err >&5 15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15568 (exit $ac_status); } >/dev/null; then 15569 if test -s conftest.err; then 15570 ac_cpp_err=$ac_c_preproc_warn_flag 15571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15572 else 15573 ac_cpp_err= 15574 fi 15575else 15576 ac_cpp_err=yes 15577fi 15578if test -z "$ac_cpp_err"; then 15579 ac_header_preproc=yes 15580else 15581 echo "$as_me: failed program was:" >&5 15582sed 's/^/| /' conftest.$ac_ext >&5 15583 15584 ac_header_preproc=no 15585fi 15586 15587rm -f conftest.err conftest.$ac_ext 15588{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15589echo "${ECHO_T}$ac_header_preproc" >&6; } 15590 15591# So? What about this header? 15592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15593 yes:no: ) 15594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15595echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15597echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15598 ac_header_preproc=yes 15599 ;; 15600 no:yes:* ) 15601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15602echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15604echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15606echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15608echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15610echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15612echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15613 ( cat <<\_ASBOX 15614## ------------------------------------ ## 15615## Report this to http://llvm.org/bugs/ ## 15616## ------------------------------------ ## 15617_ASBOX 15618 ) | sed "s/^/$as_me: WARNING: /" >&2 15619 ;; 15620esac 15621{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15624 echo $ECHO_N "(cached) $ECHO_C" >&6 15625else 15626 eval "$as_ac_Header=\$ac_header_preproc" 15627fi 15628ac_res=`eval echo '${'$as_ac_Header'}'` 15629 { echo "$as_me:$LINENO: result: $ac_res" >&5 15630echo "${ECHO_T}$ac_res" >&6; } 15631 15632fi 15633if test `eval echo '${'$as_ac_Header'}'` = yes; then 15634 cat >>confdefs.h <<_ACEOF 15635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15636_ACEOF 15637 15638fi 15639 15640done 15641 15642 15643for ac_header in fenv.h 15644do 15645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15647 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15650 echo $ECHO_N "(cached) $ECHO_C" >&6 15651fi 15652ac_res=`eval echo '${'$as_ac_Header'}'` 15653 { echo "$as_me:$LINENO: result: $ac_res" >&5 15654echo "${ECHO_T}$ac_res" >&6; } 15655else 15656 # Is the header compilable? 15657{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15658echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15659cat >conftest.$ac_ext <<_ACEOF 15660/* confdefs.h. */ 15661_ACEOF 15662cat confdefs.h >>conftest.$ac_ext 15663cat >>conftest.$ac_ext <<_ACEOF 15664/* end confdefs.h. */ 15665$ac_includes_default 15666#include <$ac_header> 15667_ACEOF 15668rm -f conftest.$ac_objext 15669if { (ac_try="$ac_compile" 15670case "(($ac_try" in 15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15672 *) ac_try_echo=$ac_try;; 15673esac 15674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15675 (eval "$ac_compile") 2>conftest.er1 15676 ac_status=$? 15677 grep -v '^ *+' conftest.er1 >conftest.err 15678 rm -f conftest.er1 15679 cat conftest.err >&5 15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15681 (exit $ac_status); } && 15682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15683 { (case "(($ac_try" in 15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15685 *) ac_try_echo=$ac_try;; 15686esac 15687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15688 (eval "$ac_try") 2>&5 15689 ac_status=$? 15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15691 (exit $ac_status); }; } && 15692 { ac_try='test -s conftest.$ac_objext' 15693 { (case "(($ac_try" in 15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15695 *) ac_try_echo=$ac_try;; 15696esac 15697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15698 (eval "$ac_try") 2>&5 15699 ac_status=$? 15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15701 (exit $ac_status); }; }; then 15702 ac_header_compiler=yes 15703else 15704 echo "$as_me: failed program was:" >&5 15705sed 's/^/| /' conftest.$ac_ext >&5 15706 15707 ac_header_compiler=no 15708fi 15709 15710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15711{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15712echo "${ECHO_T}$ac_header_compiler" >&6; } 15713 15714# Is the header present? 15715{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15717cat >conftest.$ac_ext <<_ACEOF 15718/* confdefs.h. */ 15719_ACEOF 15720cat confdefs.h >>conftest.$ac_ext 15721cat >>conftest.$ac_ext <<_ACEOF 15722/* end confdefs.h. */ 15723#include <$ac_header> 15724_ACEOF 15725if { (ac_try="$ac_cpp conftest.$ac_ext" 15726case "(($ac_try" in 15727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15728 *) ac_try_echo=$ac_try;; 15729esac 15730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15732 ac_status=$? 15733 grep -v '^ *+' conftest.er1 >conftest.err 15734 rm -f conftest.er1 15735 cat conftest.err >&5 15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15737 (exit $ac_status); } >/dev/null; then 15738 if test -s conftest.err; then 15739 ac_cpp_err=$ac_c_preproc_warn_flag 15740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15741 else 15742 ac_cpp_err= 15743 fi 15744else 15745 ac_cpp_err=yes 15746fi 15747if test -z "$ac_cpp_err"; then 15748 ac_header_preproc=yes 15749else 15750 echo "$as_me: failed program was:" >&5 15751sed 's/^/| /' conftest.$ac_ext >&5 15752 15753 ac_header_preproc=no 15754fi 15755 15756rm -f conftest.err conftest.$ac_ext 15757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15758echo "${ECHO_T}$ac_header_preproc" >&6; } 15759 15760# So? What about this header? 15761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15762 yes:no: ) 15763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15767 ac_header_preproc=yes 15768 ;; 15769 no:yes:* ) 15770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15782 ( cat <<\_ASBOX 15783## ------------------------------------ ## 15784## Report this to http://llvm.org/bugs/ ## 15785## ------------------------------------ ## 15786_ASBOX 15787 ) | sed "s/^/$as_me: WARNING: /" >&2 15788 ;; 15789esac 15790{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15793 echo $ECHO_N "(cached) $ECHO_C" >&6 15794else 15795 eval "$as_ac_Header=\$ac_header_preproc" 15796fi 15797ac_res=`eval echo '${'$as_ac_Header'}'` 15798 { echo "$as_me:$LINENO: result: $ac_res" >&5 15799echo "${ECHO_T}$ac_res" >&6; } 15800 15801fi 15802if test `eval echo '${'$as_ac_Header'}'` = yes; then 15803 cat >>confdefs.h <<_ACEOF 15804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15805_ACEOF 15806 15807fi 15808 15809done 15810 15811if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 15812 15813for ac_header in pthread.h 15814do 15815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15820 echo $ECHO_N "(cached) $ECHO_C" >&6 15821fi 15822ac_res=`eval echo '${'$as_ac_Header'}'` 15823 { echo "$as_me:$LINENO: result: $ac_res" >&5 15824echo "${ECHO_T}$ac_res" >&6; } 15825else 15826 # Is the header compilable? 15827{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15829cat >conftest.$ac_ext <<_ACEOF 15830/* confdefs.h. */ 15831_ACEOF 15832cat confdefs.h >>conftest.$ac_ext 15833cat >>conftest.$ac_ext <<_ACEOF 15834/* end confdefs.h. */ 15835$ac_includes_default 15836#include <$ac_header> 15837_ACEOF 15838rm -f conftest.$ac_objext 15839if { (ac_try="$ac_compile" 15840case "(($ac_try" in 15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15842 *) ac_try_echo=$ac_try;; 15843esac 15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15845 (eval "$ac_compile") 2>conftest.er1 15846 ac_status=$? 15847 grep -v '^ *+' conftest.er1 >conftest.err 15848 rm -f conftest.er1 15849 cat conftest.err >&5 15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15851 (exit $ac_status); } && 15852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15853 { (case "(($ac_try" in 15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15855 *) ac_try_echo=$ac_try;; 15856esac 15857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15858 (eval "$ac_try") 2>&5 15859 ac_status=$? 15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15861 (exit $ac_status); }; } && 15862 { ac_try='test -s conftest.$ac_objext' 15863 { (case "(($ac_try" in 15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15865 *) ac_try_echo=$ac_try;; 15866esac 15867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15868 (eval "$ac_try") 2>&5 15869 ac_status=$? 15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15871 (exit $ac_status); }; }; then 15872 ac_header_compiler=yes 15873else 15874 echo "$as_me: failed program was:" >&5 15875sed 's/^/| /' conftest.$ac_ext >&5 15876 15877 ac_header_compiler=no 15878fi 15879 15880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15881{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15882echo "${ECHO_T}$ac_header_compiler" >&6; } 15883 15884# Is the header present? 15885{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15887cat >conftest.$ac_ext <<_ACEOF 15888/* confdefs.h. */ 15889_ACEOF 15890cat confdefs.h >>conftest.$ac_ext 15891cat >>conftest.$ac_ext <<_ACEOF 15892/* end confdefs.h. */ 15893#include <$ac_header> 15894_ACEOF 15895if { (ac_try="$ac_cpp conftest.$ac_ext" 15896case "(($ac_try" in 15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15898 *) ac_try_echo=$ac_try;; 15899esac 15900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15902 ac_status=$? 15903 grep -v '^ *+' conftest.er1 >conftest.err 15904 rm -f conftest.er1 15905 cat conftest.err >&5 15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15907 (exit $ac_status); } >/dev/null; then 15908 if test -s conftest.err; then 15909 ac_cpp_err=$ac_c_preproc_warn_flag 15910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15911 else 15912 ac_cpp_err= 15913 fi 15914else 15915 ac_cpp_err=yes 15916fi 15917if test -z "$ac_cpp_err"; then 15918 ac_header_preproc=yes 15919else 15920 echo "$as_me: failed program was:" >&5 15921sed 's/^/| /' conftest.$ac_ext >&5 15922 15923 ac_header_preproc=no 15924fi 15925 15926rm -f conftest.err conftest.$ac_ext 15927{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15928echo "${ECHO_T}$ac_header_preproc" >&6; } 15929 15930# So? What about this header? 15931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15932 yes:no: ) 15933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15937 ac_header_preproc=yes 15938 ;; 15939 no:yes:* ) 15940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15952 ( cat <<\_ASBOX 15953## ------------------------------------ ## 15954## Report this to http://llvm.org/bugs/ ## 15955## ------------------------------------ ## 15956_ASBOX 15957 ) | sed "s/^/$as_me: WARNING: /" >&2 15958 ;; 15959esac 15960{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15963 echo $ECHO_N "(cached) $ECHO_C" >&6 15964else 15965 eval "$as_ac_Header=\$ac_header_preproc" 15966fi 15967ac_res=`eval echo '${'$as_ac_Header'}'` 15968 { echo "$as_me:$LINENO: result: $ac_res" >&5 15969echo "${ECHO_T}$ac_res" >&6; } 15970 15971fi 15972if test `eval echo '${'$as_ac_Header'}'` = yes; then 15973 cat >>confdefs.h <<_ACEOF 15974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15975_ACEOF 15976 HAVE_PTHREAD=1 15977 15978else 15979 HAVE_PTHREAD=0 15980 15981fi 15982 15983done 15984 15985else 15986 HAVE_PTHREAD=0 15987 15988fi 15989 15990if test "$llvm_cv_enable_libffi" = "yes" ; then 15991 15992 15993for ac_header in ffi.h ffi/ffi.h 15994do 15995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15997 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16000 echo $ECHO_N "(cached) $ECHO_C" >&6 16001fi 16002ac_res=`eval echo '${'$as_ac_Header'}'` 16003 { echo "$as_me:$LINENO: result: $ac_res" >&5 16004echo "${ECHO_T}$ac_res" >&6; } 16005else 16006 # Is the header compilable? 16007{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16008echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16009cat >conftest.$ac_ext <<_ACEOF 16010/* confdefs.h. */ 16011_ACEOF 16012cat confdefs.h >>conftest.$ac_ext 16013cat >>conftest.$ac_ext <<_ACEOF 16014/* end confdefs.h. */ 16015$ac_includes_default 16016#include <$ac_header> 16017_ACEOF 16018rm -f conftest.$ac_objext 16019if { (ac_try="$ac_compile" 16020case "(($ac_try" in 16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16022 *) ac_try_echo=$ac_try;; 16023esac 16024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16025 (eval "$ac_compile") 2>conftest.er1 16026 ac_status=$? 16027 grep -v '^ *+' conftest.er1 >conftest.err 16028 rm -f conftest.er1 16029 cat conftest.err >&5 16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16031 (exit $ac_status); } && 16032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16033 { (case "(($ac_try" in 16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16035 *) ac_try_echo=$ac_try;; 16036esac 16037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16038 (eval "$ac_try") 2>&5 16039 ac_status=$? 16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16041 (exit $ac_status); }; } && 16042 { ac_try='test -s conftest.$ac_objext' 16043 { (case "(($ac_try" in 16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16045 *) ac_try_echo=$ac_try;; 16046esac 16047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16048 (eval "$ac_try") 2>&5 16049 ac_status=$? 16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16051 (exit $ac_status); }; }; then 16052 ac_header_compiler=yes 16053else 16054 echo "$as_me: failed program was:" >&5 16055sed 's/^/| /' conftest.$ac_ext >&5 16056 16057 ac_header_compiler=no 16058fi 16059 16060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16061{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16062echo "${ECHO_T}$ac_header_compiler" >&6; } 16063 16064# Is the header present? 16065{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16066echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16067cat >conftest.$ac_ext <<_ACEOF 16068/* confdefs.h. */ 16069_ACEOF 16070cat confdefs.h >>conftest.$ac_ext 16071cat >>conftest.$ac_ext <<_ACEOF 16072/* end confdefs.h. */ 16073#include <$ac_header> 16074_ACEOF 16075if { (ac_try="$ac_cpp conftest.$ac_ext" 16076case "(($ac_try" in 16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16078 *) ac_try_echo=$ac_try;; 16079esac 16080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16082 ac_status=$? 16083 grep -v '^ *+' conftest.er1 >conftest.err 16084 rm -f conftest.er1 16085 cat conftest.err >&5 16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16087 (exit $ac_status); } >/dev/null; then 16088 if test -s conftest.err; then 16089 ac_cpp_err=$ac_c_preproc_warn_flag 16090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16091 else 16092 ac_cpp_err= 16093 fi 16094else 16095 ac_cpp_err=yes 16096fi 16097if test -z "$ac_cpp_err"; then 16098 ac_header_preproc=yes 16099else 16100 echo "$as_me: failed program was:" >&5 16101sed 's/^/| /' conftest.$ac_ext >&5 16102 16103 ac_header_preproc=no 16104fi 16105 16106rm -f conftest.err conftest.$ac_ext 16107{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16108echo "${ECHO_T}$ac_header_preproc" >&6; } 16109 16110# So? What about this header? 16111case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16112 yes:no: ) 16113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16114echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16116echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16117 ac_header_preproc=yes 16118 ;; 16119 no:yes:* ) 16120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16121echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16123echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16125echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16127echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16129echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16131echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16132 ( cat <<\_ASBOX 16133## ------------------------------------ ## 16134## Report this to http://llvm.org/bugs/ ## 16135## ------------------------------------ ## 16136_ASBOX 16137 ) | sed "s/^/$as_me: WARNING: /" >&2 16138 ;; 16139esac 16140{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16143 echo $ECHO_N "(cached) $ECHO_C" >&6 16144else 16145 eval "$as_ac_Header=\$ac_header_preproc" 16146fi 16147ac_res=`eval echo '${'$as_ac_Header'}'` 16148 { echo "$as_me:$LINENO: result: $ac_res" >&5 16149echo "${ECHO_T}$ac_res" >&6; } 16150 16151fi 16152if test `eval echo '${'$as_ac_Header'}'` = yes; then 16153 cat >>confdefs.h <<_ACEOF 16154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16155_ACEOF 16156 16157fi 16158 16159done 16160 16161fi 16162 16163 16164for ac_header in CrashReporterClient.h 16165do 16166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16168 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16171 echo $ECHO_N "(cached) $ECHO_C" >&6 16172fi 16173ac_res=`eval echo '${'$as_ac_Header'}'` 16174 { echo "$as_me:$LINENO: result: $ac_res" >&5 16175echo "${ECHO_T}$ac_res" >&6; } 16176else 16177 # Is the header compilable? 16178{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16179echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16180cat >conftest.$ac_ext <<_ACEOF 16181/* confdefs.h. */ 16182_ACEOF 16183cat confdefs.h >>conftest.$ac_ext 16184cat >>conftest.$ac_ext <<_ACEOF 16185/* end confdefs.h. */ 16186$ac_includes_default 16187#include <$ac_header> 16188_ACEOF 16189rm -f conftest.$ac_objext 16190if { (ac_try="$ac_compile" 16191case "(($ac_try" in 16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16193 *) ac_try_echo=$ac_try;; 16194esac 16195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16196 (eval "$ac_compile") 2>conftest.er1 16197 ac_status=$? 16198 grep -v '^ *+' conftest.er1 >conftest.err 16199 rm -f conftest.er1 16200 cat conftest.err >&5 16201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16202 (exit $ac_status); } && 16203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16204 { (case "(($ac_try" in 16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16206 *) ac_try_echo=$ac_try;; 16207esac 16208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16209 (eval "$ac_try") 2>&5 16210 ac_status=$? 16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16212 (exit $ac_status); }; } && 16213 { ac_try='test -s conftest.$ac_objext' 16214 { (case "(($ac_try" in 16215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16216 *) ac_try_echo=$ac_try;; 16217esac 16218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16219 (eval "$ac_try") 2>&5 16220 ac_status=$? 16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16222 (exit $ac_status); }; }; then 16223 ac_header_compiler=yes 16224else 16225 echo "$as_me: failed program was:" >&5 16226sed 's/^/| /' conftest.$ac_ext >&5 16227 16228 ac_header_compiler=no 16229fi 16230 16231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16232{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16233echo "${ECHO_T}$ac_header_compiler" >&6; } 16234 16235# Is the header present? 16236{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16238cat >conftest.$ac_ext <<_ACEOF 16239/* confdefs.h. */ 16240_ACEOF 16241cat confdefs.h >>conftest.$ac_ext 16242cat >>conftest.$ac_ext <<_ACEOF 16243/* end confdefs.h. */ 16244#include <$ac_header> 16245_ACEOF 16246if { (ac_try="$ac_cpp conftest.$ac_ext" 16247case "(($ac_try" in 16248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16249 *) ac_try_echo=$ac_try;; 16250esac 16251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16253 ac_status=$? 16254 grep -v '^ *+' conftest.er1 >conftest.err 16255 rm -f conftest.er1 16256 cat conftest.err >&5 16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16258 (exit $ac_status); } >/dev/null; then 16259 if test -s conftest.err; then 16260 ac_cpp_err=$ac_c_preproc_warn_flag 16261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16262 else 16263 ac_cpp_err= 16264 fi 16265else 16266 ac_cpp_err=yes 16267fi 16268if test -z "$ac_cpp_err"; then 16269 ac_header_preproc=yes 16270else 16271 echo "$as_me: failed program was:" >&5 16272sed 's/^/| /' conftest.$ac_ext >&5 16273 16274 ac_header_preproc=no 16275fi 16276 16277rm -f conftest.err conftest.$ac_ext 16278{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16279echo "${ECHO_T}$ac_header_preproc" >&6; } 16280 16281# So? What about this header? 16282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16283 yes:no: ) 16284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16285echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16287echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16288 ac_header_preproc=yes 16289 ;; 16290 no:yes:* ) 16291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16292echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16294echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16296echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16298echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16300echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16302echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16303 ( cat <<\_ASBOX 16304## ------------------------------------ ## 16305## Report this to http://llvm.org/bugs/ ## 16306## ------------------------------------ ## 16307_ASBOX 16308 ) | sed "s/^/$as_me: WARNING: /" >&2 16309 ;; 16310esac 16311{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16312echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16314 echo $ECHO_N "(cached) $ECHO_C" >&6 16315else 16316 eval "$as_ac_Header=\$ac_header_preproc" 16317fi 16318ac_res=`eval echo '${'$as_ac_Header'}'` 16319 { echo "$as_me:$LINENO: result: $ac_res" >&5 16320echo "${ECHO_T}$ac_res" >&6; } 16321 16322fi 16323if test `eval echo '${'$as_ac_Header'}'` = yes; then 16324 cat >>confdefs.h <<_ACEOF 16325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16326_ACEOF 16327 16328fi 16329 16330done 16331 16332 16333{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 16334echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 16335cat >conftest.$ac_ext <<_ACEOF 16336/* confdefs.h. */ 16337_ACEOF 16338cat confdefs.h >>conftest.$ac_ext 16339cat >>conftest.$ac_ext <<_ACEOF 16340/* end confdefs.h. */ 16341extern const char *__crashreporter_info__; 16342 int main() { 16343 __crashreporter_info__ = "test"; 16344 return 0; 16345 } 16346 16347_ACEOF 16348rm -f conftest.$ac_objext conftest$ac_exeext 16349if { (ac_try="$ac_link" 16350case "(($ac_try" in 16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16352 *) ac_try_echo=$ac_try;; 16353esac 16354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16355 (eval "$ac_link") 2>conftest.er1 16356 ac_status=$? 16357 grep -v '^ *+' conftest.er1 >conftest.err 16358 rm -f conftest.er1 16359 cat conftest.err >&5 16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16361 (exit $ac_status); } && 16362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16363 { (case "(($ac_try" in 16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16365 *) ac_try_echo=$ac_try;; 16366esac 16367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16368 (eval "$ac_try") 2>&5 16369 ac_status=$? 16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16371 (exit $ac_status); }; } && 16372 { ac_try='test -s conftest$ac_exeext' 16373 { (case "(($ac_try" in 16374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16375 *) ac_try_echo=$ac_try;; 16376esac 16377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16378 (eval "$ac_try") 2>&5 16379 ac_status=$? 16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16381 (exit $ac_status); }; }; then 16382 { echo "$as_me:$LINENO: result: yes" >&5 16383echo "${ECHO_T}yes" >&6; } 16384 16385cat >>confdefs.h <<\_ACEOF 16386#define HAVE_CRASHREPORTER_INFO 1 16387_ACEOF 16388 16389else 16390 echo "$as_me: failed program was:" >&5 16391sed 's/^/| /' conftest.$ac_ext >&5 16392 16393 { echo "$as_me:$LINENO: result: no" >&5 16394echo "${ECHO_T}no" >&6; } 16395 16396cat >>confdefs.h <<\_ACEOF 16397#define HAVE_CRASHREPORTER_INFO 0 16398_ACEOF 16399 16400fi 16401 16402rm -f core conftest.err conftest.$ac_objext \ 16403 conftest$ac_exeext conftest.$ac_ext 16404 16405 16406 16407 16408 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 16409echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 16410if test "${ac_cv_huge_val_sanity+set}" = set; then 16411 echo $ECHO_N "(cached) $ECHO_C" >&6 16412else 16413 16414 ac_ext=cpp 16415ac_cpp='$CXXCPP $CPPFLAGS' 16416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16419 16420 ac_save_CXXFLAGS=$CXXFLAGS 16421 CXXFLAGS="$CXXFLAGS -pedantic" 16422 if test "$cross_compiling" = yes; then 16423 ac_cv_huge_val_sanity=yes 16424else 16425 cat >conftest.$ac_ext <<_ACEOF 16426/* confdefs.h. */ 16427_ACEOF 16428cat confdefs.h >>conftest.$ac_ext 16429cat >>conftest.$ac_ext <<_ACEOF 16430/* end confdefs.h. */ 16431#include <math.h> 16432int 16433main () 16434{ 16435double x = HUGE_VAL; return x != x; 16436 ; 16437 return 0; 16438} 16439_ACEOF 16440rm -f conftest$ac_exeext 16441if { (ac_try="$ac_link" 16442case "(($ac_try" in 16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16444 *) ac_try_echo=$ac_try;; 16445esac 16446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16447 (eval "$ac_link") 2>&5 16448 ac_status=$? 16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16451 { (case "(($ac_try" in 16452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16453 *) ac_try_echo=$ac_try;; 16454esac 16455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16456 (eval "$ac_try") 2>&5 16457 ac_status=$? 16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16459 (exit $ac_status); }; }; then 16460 ac_cv_huge_val_sanity=yes 16461else 16462 echo "$as_me: program exited with status $ac_status" >&5 16463echo "$as_me: failed program was:" >&5 16464sed 's/^/| /' conftest.$ac_ext >&5 16465 16466( exit $ac_status ) 16467ac_cv_huge_val_sanity=no 16468fi 16469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16470fi 16471 16472 16473 CXXFLAGS=$ac_save_CXXFLAGS 16474 ac_ext=c 16475ac_cpp='$CPP $CPPFLAGS' 16476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16478ac_compiler_gnu=$ac_cv_c_compiler_gnu 16479 16480 16481fi 16482{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16483echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16484 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16485 16486 16487{ echo "$as_me:$LINENO: checking for pid_t" >&5 16488echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16489if test "${ac_cv_type_pid_t+set}" = set; then 16490 echo $ECHO_N "(cached) $ECHO_C" >&6 16491else 16492 cat >conftest.$ac_ext <<_ACEOF 16493/* confdefs.h. */ 16494_ACEOF 16495cat confdefs.h >>conftest.$ac_ext 16496cat >>conftest.$ac_ext <<_ACEOF 16497/* end confdefs.h. */ 16498$ac_includes_default 16499typedef pid_t ac__type_new_; 16500int 16501main () 16502{ 16503if ((ac__type_new_ *) 0) 16504 return 0; 16505if (sizeof (ac__type_new_)) 16506 return 0; 16507 ; 16508 return 0; 16509} 16510_ACEOF 16511rm -f conftest.$ac_objext 16512if { (ac_try="$ac_compile" 16513case "(($ac_try" in 16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16515 *) ac_try_echo=$ac_try;; 16516esac 16517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16518 (eval "$ac_compile") 2>conftest.er1 16519 ac_status=$? 16520 grep -v '^ *+' conftest.er1 >conftest.err 16521 rm -f conftest.er1 16522 cat conftest.err >&5 16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16524 (exit $ac_status); } && 16525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16526 { (case "(($ac_try" in 16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16528 *) ac_try_echo=$ac_try;; 16529esac 16530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16531 (eval "$ac_try") 2>&5 16532 ac_status=$? 16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16534 (exit $ac_status); }; } && 16535 { ac_try='test -s conftest.$ac_objext' 16536 { (case "(($ac_try" in 16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16538 *) ac_try_echo=$ac_try;; 16539esac 16540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16541 (eval "$ac_try") 2>&5 16542 ac_status=$? 16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16544 (exit $ac_status); }; }; then 16545 ac_cv_type_pid_t=yes 16546else 16547 echo "$as_me: failed program was:" >&5 16548sed 's/^/| /' conftest.$ac_ext >&5 16549 16550 ac_cv_type_pid_t=no 16551fi 16552 16553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16554fi 16555{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16556echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16557if test $ac_cv_type_pid_t = yes; then 16558 : 16559else 16560 16561cat >>confdefs.h <<_ACEOF 16562#define pid_t int 16563_ACEOF 16564 16565fi 16566 16567{ echo "$as_me:$LINENO: checking for size_t" >&5 16568echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 16569if test "${ac_cv_type_size_t+set}" = set; then 16570 echo $ECHO_N "(cached) $ECHO_C" >&6 16571else 16572 cat >conftest.$ac_ext <<_ACEOF 16573/* confdefs.h. */ 16574_ACEOF 16575cat confdefs.h >>conftest.$ac_ext 16576cat >>conftest.$ac_ext <<_ACEOF 16577/* end confdefs.h. */ 16578$ac_includes_default 16579typedef size_t ac__type_new_; 16580int 16581main () 16582{ 16583if ((ac__type_new_ *) 0) 16584 return 0; 16585if (sizeof (ac__type_new_)) 16586 return 0; 16587 ; 16588 return 0; 16589} 16590_ACEOF 16591rm -f conftest.$ac_objext 16592if { (ac_try="$ac_compile" 16593case "(($ac_try" in 16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16595 *) ac_try_echo=$ac_try;; 16596esac 16597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16598 (eval "$ac_compile") 2>conftest.er1 16599 ac_status=$? 16600 grep -v '^ *+' conftest.er1 >conftest.err 16601 rm -f conftest.er1 16602 cat conftest.err >&5 16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16604 (exit $ac_status); } && 16605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16606 { (case "(($ac_try" in 16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16608 *) ac_try_echo=$ac_try;; 16609esac 16610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16611 (eval "$ac_try") 2>&5 16612 ac_status=$? 16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16614 (exit $ac_status); }; } && 16615 { ac_try='test -s conftest.$ac_objext' 16616 { (case "(($ac_try" in 16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16618 *) ac_try_echo=$ac_try;; 16619esac 16620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16621 (eval "$ac_try") 2>&5 16622 ac_status=$? 16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16624 (exit $ac_status); }; }; then 16625 ac_cv_type_size_t=yes 16626else 16627 echo "$as_me: failed program was:" >&5 16628sed 's/^/| /' conftest.$ac_ext >&5 16629 16630 ac_cv_type_size_t=no 16631fi 16632 16633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16634fi 16635{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16636echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 16637if test $ac_cv_type_size_t = yes; then 16638 : 16639else 16640 16641cat >>confdefs.h <<_ACEOF 16642#define size_t unsigned int 16643_ACEOF 16644 16645fi 16646 16647 16648cat >>confdefs.h <<_ACEOF 16649#define RETSIGTYPE void 16650_ACEOF 16651 16652{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 16653echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 16654if test "${ac_cv_struct_tm+set}" = set; then 16655 echo $ECHO_N "(cached) $ECHO_C" >&6 16656else 16657 cat >conftest.$ac_ext <<_ACEOF 16658/* confdefs.h. */ 16659_ACEOF 16660cat confdefs.h >>conftest.$ac_ext 16661cat >>conftest.$ac_ext <<_ACEOF 16662/* end confdefs.h. */ 16663#include <sys/types.h> 16664#include <time.h> 16665 16666int 16667main () 16668{ 16669struct tm *tp; tp->tm_sec; 16670 ; 16671 return 0; 16672} 16673_ACEOF 16674rm -f conftest.$ac_objext 16675if { (ac_try="$ac_compile" 16676case "(($ac_try" in 16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16678 *) ac_try_echo=$ac_try;; 16679esac 16680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16681 (eval "$ac_compile") 2>conftest.er1 16682 ac_status=$? 16683 grep -v '^ *+' conftest.er1 >conftest.err 16684 rm -f conftest.er1 16685 cat conftest.err >&5 16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16687 (exit $ac_status); } && 16688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16689 { (case "(($ac_try" in 16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16691 *) ac_try_echo=$ac_try;; 16692esac 16693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16694 (eval "$ac_try") 2>&5 16695 ac_status=$? 16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16697 (exit $ac_status); }; } && 16698 { ac_try='test -s conftest.$ac_objext' 16699 { (case "(($ac_try" in 16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16701 *) ac_try_echo=$ac_try;; 16702esac 16703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16704 (eval "$ac_try") 2>&5 16705 ac_status=$? 16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16707 (exit $ac_status); }; }; then 16708 ac_cv_struct_tm=time.h 16709else 16710 echo "$as_me: failed program was:" >&5 16711sed 's/^/| /' conftest.$ac_ext >&5 16712 16713 ac_cv_struct_tm=sys/time.h 16714fi 16715 16716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16717fi 16718{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 16719echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 16720if test $ac_cv_struct_tm = sys/time.h; then 16721 16722cat >>confdefs.h <<\_ACEOF 16723#define TM_IN_SYS_TIME 1 16724_ACEOF 16725 16726fi 16727 16728{ echo "$as_me:$LINENO: checking for int64_t" >&5 16729echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 16730if test "${ac_cv_type_int64_t+set}" = set; then 16731 echo $ECHO_N "(cached) $ECHO_C" >&6 16732else 16733 cat >conftest.$ac_ext <<_ACEOF 16734/* confdefs.h. */ 16735_ACEOF 16736cat confdefs.h >>conftest.$ac_ext 16737cat >>conftest.$ac_ext <<_ACEOF 16738/* end confdefs.h. */ 16739$ac_includes_default 16740typedef int64_t ac__type_new_; 16741int 16742main () 16743{ 16744if ((ac__type_new_ *) 0) 16745 return 0; 16746if (sizeof (ac__type_new_)) 16747 return 0; 16748 ; 16749 return 0; 16750} 16751_ACEOF 16752rm -f conftest.$ac_objext 16753if { (ac_try="$ac_compile" 16754case "(($ac_try" in 16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16756 *) ac_try_echo=$ac_try;; 16757esac 16758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16759 (eval "$ac_compile") 2>conftest.er1 16760 ac_status=$? 16761 grep -v '^ *+' conftest.er1 >conftest.err 16762 rm -f conftest.er1 16763 cat conftest.err >&5 16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16765 (exit $ac_status); } && 16766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16767 { (case "(($ac_try" in 16768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16769 *) ac_try_echo=$ac_try;; 16770esac 16771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16772 (eval "$ac_try") 2>&5 16773 ac_status=$? 16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16775 (exit $ac_status); }; } && 16776 { ac_try='test -s conftest.$ac_objext' 16777 { (case "(($ac_try" in 16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16779 *) ac_try_echo=$ac_try;; 16780esac 16781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16782 (eval "$ac_try") 2>&5 16783 ac_status=$? 16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16785 (exit $ac_status); }; }; then 16786 ac_cv_type_int64_t=yes 16787else 16788 echo "$as_me: failed program was:" >&5 16789sed 's/^/| /' conftest.$ac_ext >&5 16790 16791 ac_cv_type_int64_t=no 16792fi 16793 16794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16795fi 16796{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 16797echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 16798if test $ac_cv_type_int64_t = yes; then 16799 16800cat >>confdefs.h <<_ACEOF 16801#define HAVE_INT64_T 1 16802_ACEOF 16803 16804 16805else 16806 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 16807echo "$as_me: error: Type int64_t required but not found" >&2;} 16808 { (exit 1); exit 1; }; } 16809fi 16810 16811{ echo "$as_me:$LINENO: checking for uint64_t" >&5 16812echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 16813if test "${ac_cv_type_uint64_t+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$ac_includes_default 16823typedef uint64_t ac__type_new_; 16824int 16825main () 16826{ 16827if ((ac__type_new_ *) 0) 16828 return 0; 16829if (sizeof (ac__type_new_)) 16830 return 0; 16831 ; 16832 return 0; 16833} 16834_ACEOF 16835rm -f conftest.$ac_objext 16836if { (ac_try="$ac_compile" 16837case "(($ac_try" in 16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16839 *) ac_try_echo=$ac_try;; 16840esac 16841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16842 (eval "$ac_compile") 2>conftest.er1 16843 ac_status=$? 16844 grep -v '^ *+' conftest.er1 >conftest.err 16845 rm -f conftest.er1 16846 cat conftest.err >&5 16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16848 (exit $ac_status); } && 16849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16850 { (case "(($ac_try" in 16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16852 *) ac_try_echo=$ac_try;; 16853esac 16854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16855 (eval "$ac_try") 2>&5 16856 ac_status=$? 16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16858 (exit $ac_status); }; } && 16859 { ac_try='test -s conftest.$ac_objext' 16860 { (case "(($ac_try" in 16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16862 *) ac_try_echo=$ac_try;; 16863esac 16864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16865 (eval "$ac_try") 2>&5 16866 ac_status=$? 16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16868 (exit $ac_status); }; }; then 16869 ac_cv_type_uint64_t=yes 16870else 16871 echo "$as_me: failed program was:" >&5 16872sed 's/^/| /' conftest.$ac_ext >&5 16873 16874 ac_cv_type_uint64_t=no 16875fi 16876 16877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16878fi 16879{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 16880echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 16881if test $ac_cv_type_uint64_t = yes; then 16882 16883cat >>confdefs.h <<_ACEOF 16884#define HAVE_UINT64_T 1 16885_ACEOF 16886 16887 16888else 16889 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 16890echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 16891if test "${ac_cv_type_u_int64_t+set}" = set; then 16892 echo $ECHO_N "(cached) $ECHO_C" >&6 16893else 16894 cat >conftest.$ac_ext <<_ACEOF 16895/* confdefs.h. */ 16896_ACEOF 16897cat confdefs.h >>conftest.$ac_ext 16898cat >>conftest.$ac_ext <<_ACEOF 16899/* end confdefs.h. */ 16900$ac_includes_default 16901typedef u_int64_t ac__type_new_; 16902int 16903main () 16904{ 16905if ((ac__type_new_ *) 0) 16906 return 0; 16907if (sizeof (ac__type_new_)) 16908 return 0; 16909 ; 16910 return 0; 16911} 16912_ACEOF 16913rm -f conftest.$ac_objext 16914if { (ac_try="$ac_compile" 16915case "(($ac_try" in 16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16917 *) ac_try_echo=$ac_try;; 16918esac 16919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16920 (eval "$ac_compile") 2>conftest.er1 16921 ac_status=$? 16922 grep -v '^ *+' conftest.er1 >conftest.err 16923 rm -f conftest.er1 16924 cat conftest.err >&5 16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16926 (exit $ac_status); } && 16927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16928 { (case "(($ac_try" in 16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16930 *) ac_try_echo=$ac_try;; 16931esac 16932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16933 (eval "$ac_try") 2>&5 16934 ac_status=$? 16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16936 (exit $ac_status); }; } && 16937 { ac_try='test -s conftest.$ac_objext' 16938 { (case "(($ac_try" in 16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16940 *) ac_try_echo=$ac_try;; 16941esac 16942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16943 (eval "$ac_try") 2>&5 16944 ac_status=$? 16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16946 (exit $ac_status); }; }; then 16947 ac_cv_type_u_int64_t=yes 16948else 16949 echo "$as_me: failed program was:" >&5 16950sed 's/^/| /' conftest.$ac_ext >&5 16951 16952 ac_cv_type_u_int64_t=no 16953fi 16954 16955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16956fi 16957{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 16958echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 16959if test $ac_cv_type_u_int64_t = yes; then 16960 16961cat >>confdefs.h <<_ACEOF 16962#define HAVE_U_INT64_T 1 16963_ACEOF 16964 16965 16966else 16967 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 16968echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 16969 { (exit 1); exit 1; }; } 16970fi 16971 16972fi 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 16984do 16985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16986{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16988if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16989 echo $ECHO_N "(cached) $ECHO_C" >&6 16990else 16991 cat >conftest.$ac_ext <<_ACEOF 16992/* confdefs.h. */ 16993_ACEOF 16994cat confdefs.h >>conftest.$ac_ext 16995cat >>conftest.$ac_ext <<_ACEOF 16996/* end confdefs.h. */ 16997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16998 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16999#define $ac_func innocuous_$ac_func 17000 17001/* System header to define __stub macros and hopefully few prototypes, 17002 which can conflict with char $ac_func (); below. 17003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17004 <limits.h> exists even on freestanding compilers. */ 17005 17006#ifdef __STDC__ 17007# include <limits.h> 17008#else 17009# include <assert.h> 17010#endif 17011 17012#undef $ac_func 17013 17014/* Override any GCC internal prototype to avoid an error. 17015 Use char because int might match the return type of a GCC 17016 builtin and then its argument prototype would still apply. */ 17017#ifdef __cplusplus 17018extern "C" 17019#endif 17020char $ac_func (); 17021/* The GNU C library defines this for functions which it implements 17022 to always fail with ENOSYS. Some functions are actually named 17023 something starting with __ and the normal name is an alias. */ 17024#if defined __stub_$ac_func || defined __stub___$ac_func 17025choke me 17026#endif 17027 17028int 17029main () 17030{ 17031return $ac_func (); 17032 ; 17033 return 0; 17034} 17035_ACEOF 17036rm -f conftest.$ac_objext conftest$ac_exeext 17037if { (ac_try="$ac_link" 17038case "(($ac_try" in 17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17040 *) ac_try_echo=$ac_try;; 17041esac 17042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17043 (eval "$ac_link") 2>conftest.er1 17044 ac_status=$? 17045 grep -v '^ *+' conftest.er1 >conftest.err 17046 rm -f conftest.er1 17047 cat conftest.err >&5 17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17049 (exit $ac_status); } && 17050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17051 { (case "(($ac_try" in 17052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17053 *) ac_try_echo=$ac_try;; 17054esac 17055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17056 (eval "$ac_try") 2>&5 17057 ac_status=$? 17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17059 (exit $ac_status); }; } && 17060 { ac_try='test -s conftest$ac_exeext' 17061 { (case "(($ac_try" in 17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17063 *) ac_try_echo=$ac_try;; 17064esac 17065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17066 (eval "$ac_try") 2>&5 17067 ac_status=$? 17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17069 (exit $ac_status); }; }; then 17070 eval "$as_ac_var=yes" 17071else 17072 echo "$as_me: failed program was:" >&5 17073sed 's/^/| /' conftest.$ac_ext >&5 17074 17075 eval "$as_ac_var=no" 17076fi 17077 17078rm -f core conftest.err conftest.$ac_objext \ 17079 conftest$ac_exeext conftest.$ac_ext 17080fi 17081ac_res=`eval echo '${'$as_ac_var'}'` 17082 { echo "$as_me:$LINENO: result: $ac_res" >&5 17083echo "${ECHO_T}$ac_res" >&6; } 17084if test `eval echo '${'$as_ac_var'}'` = yes; then 17085 cat >>confdefs.h <<_ACEOF 17086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17087_ACEOF 17088 17089fi 17090done 17091 17092 17093 17094 17095 17096for ac_func in powf fmodf strtof round 17097do 17098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17099{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17101if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17102 echo $ECHO_N "(cached) $ECHO_C" >&6 17103else 17104 cat >conftest.$ac_ext <<_ACEOF 17105/* confdefs.h. */ 17106_ACEOF 17107cat confdefs.h >>conftest.$ac_ext 17108cat >>conftest.$ac_ext <<_ACEOF 17109/* end confdefs.h. */ 17110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17111 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17112#define $ac_func innocuous_$ac_func 17113 17114/* System header to define __stub macros and hopefully few prototypes, 17115 which can conflict with char $ac_func (); below. 17116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17117 <limits.h> exists even on freestanding compilers. */ 17118 17119#ifdef __STDC__ 17120# include <limits.h> 17121#else 17122# include <assert.h> 17123#endif 17124 17125#undef $ac_func 17126 17127/* Override any GCC internal prototype to avoid an error. 17128 Use char because int might match the return type of a GCC 17129 builtin and then its argument prototype would still apply. */ 17130#ifdef __cplusplus 17131extern "C" 17132#endif 17133char $ac_func (); 17134/* The GNU C library defines this for functions which it implements 17135 to always fail with ENOSYS. Some functions are actually named 17136 something starting with __ and the normal name is an alias. */ 17137#if defined __stub_$ac_func || defined __stub___$ac_func 17138choke me 17139#endif 17140 17141int 17142main () 17143{ 17144return $ac_func (); 17145 ; 17146 return 0; 17147} 17148_ACEOF 17149rm -f conftest.$ac_objext conftest$ac_exeext 17150if { (ac_try="$ac_link" 17151case "(($ac_try" in 17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17153 *) ac_try_echo=$ac_try;; 17154esac 17155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17156 (eval "$ac_link") 2>conftest.er1 17157 ac_status=$? 17158 grep -v '^ *+' conftest.er1 >conftest.err 17159 rm -f conftest.er1 17160 cat conftest.err >&5 17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17162 (exit $ac_status); } && 17163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17164 { (case "(($ac_try" in 17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17166 *) ac_try_echo=$ac_try;; 17167esac 17168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17169 (eval "$ac_try") 2>&5 17170 ac_status=$? 17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17172 (exit $ac_status); }; } && 17173 { ac_try='test -s conftest$ac_exeext' 17174 { (case "(($ac_try" in 17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17176 *) ac_try_echo=$ac_try;; 17177esac 17178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17179 (eval "$ac_try") 2>&5 17180 ac_status=$? 17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17182 (exit $ac_status); }; }; then 17183 eval "$as_ac_var=yes" 17184else 17185 echo "$as_me: failed program was:" >&5 17186sed 's/^/| /' conftest.$ac_ext >&5 17187 17188 eval "$as_ac_var=no" 17189fi 17190 17191rm -f core conftest.err conftest.$ac_objext \ 17192 conftest$ac_exeext conftest.$ac_ext 17193fi 17194ac_res=`eval echo '${'$as_ac_var'}'` 17195 { echo "$as_me:$LINENO: result: $ac_res" >&5 17196echo "${ECHO_T}$ac_res" >&6; } 17197if test `eval echo '${'$as_ac_var'}'` = yes; then 17198 cat >>confdefs.h <<_ACEOF 17199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17200_ACEOF 17201 17202fi 17203done 17204 17205 17206 17207 17208 17209 17210for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 17211do 17212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17213{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17215if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17216 echo $ECHO_N "(cached) $ECHO_C" >&6 17217else 17218 cat >conftest.$ac_ext <<_ACEOF 17219/* confdefs.h. */ 17220_ACEOF 17221cat confdefs.h >>conftest.$ac_ext 17222cat >>conftest.$ac_ext <<_ACEOF 17223/* end confdefs.h. */ 17224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17225 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17226#define $ac_func innocuous_$ac_func 17227 17228/* System header to define __stub macros and hopefully few prototypes, 17229 which can conflict with char $ac_func (); below. 17230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17231 <limits.h> exists even on freestanding compilers. */ 17232 17233#ifdef __STDC__ 17234# include <limits.h> 17235#else 17236# include <assert.h> 17237#endif 17238 17239#undef $ac_func 17240 17241/* Override any GCC internal prototype to avoid an error. 17242 Use char because int might match the return type of a GCC 17243 builtin and then its argument prototype would still apply. */ 17244#ifdef __cplusplus 17245extern "C" 17246#endif 17247char $ac_func (); 17248/* The GNU C library defines this for functions which it implements 17249 to always fail with ENOSYS. Some functions are actually named 17250 something starting with __ and the normal name is an alias. */ 17251#if defined __stub_$ac_func || defined __stub___$ac_func 17252choke me 17253#endif 17254 17255int 17256main () 17257{ 17258return $ac_func (); 17259 ; 17260 return 0; 17261} 17262_ACEOF 17263rm -f conftest.$ac_objext conftest$ac_exeext 17264if { (ac_try="$ac_link" 17265case "(($ac_try" in 17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17267 *) ac_try_echo=$ac_try;; 17268esac 17269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17270 (eval "$ac_link") 2>conftest.er1 17271 ac_status=$? 17272 grep -v '^ *+' conftest.er1 >conftest.err 17273 rm -f conftest.er1 17274 cat conftest.err >&5 17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17276 (exit $ac_status); } && 17277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17278 { (case "(($ac_try" in 17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17280 *) ac_try_echo=$ac_try;; 17281esac 17282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17283 (eval "$ac_try") 2>&5 17284 ac_status=$? 17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17286 (exit $ac_status); }; } && 17287 { ac_try='test -s conftest$ac_exeext' 17288 { (case "(($ac_try" in 17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17290 *) ac_try_echo=$ac_try;; 17291esac 17292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17293 (eval "$ac_try") 2>&5 17294 ac_status=$? 17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17296 (exit $ac_status); }; }; then 17297 eval "$as_ac_var=yes" 17298else 17299 echo "$as_me: failed program was:" >&5 17300sed 's/^/| /' conftest.$ac_ext >&5 17301 17302 eval "$as_ac_var=no" 17303fi 17304 17305rm -f core conftest.err conftest.$ac_objext \ 17306 conftest$ac_exeext conftest.$ac_ext 17307fi 17308ac_res=`eval echo '${'$as_ac_var'}'` 17309 { echo "$as_me:$LINENO: result: $ac_res" >&5 17310echo "${ECHO_T}$ac_res" >&6; } 17311if test `eval echo '${'$as_ac_var'}'` = yes; then 17312 cat >>confdefs.h <<_ACEOF 17313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17314_ACEOF 17315 17316fi 17317done 17318 17319 17320 17321 17322for ac_func in isatty mkdtemp mkstemp 17323do 17324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17325{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17328 echo $ECHO_N "(cached) $ECHO_C" >&6 17329else 17330 cat >conftest.$ac_ext <<_ACEOF 17331/* confdefs.h. */ 17332_ACEOF 17333cat confdefs.h >>conftest.$ac_ext 17334cat >>conftest.$ac_ext <<_ACEOF 17335/* end confdefs.h. */ 17336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17337 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17338#define $ac_func innocuous_$ac_func 17339 17340/* System header to define __stub macros and hopefully few prototypes, 17341 which can conflict with char $ac_func (); below. 17342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17343 <limits.h> exists even on freestanding compilers. */ 17344 17345#ifdef __STDC__ 17346# include <limits.h> 17347#else 17348# include <assert.h> 17349#endif 17350 17351#undef $ac_func 17352 17353/* Override any GCC internal prototype to avoid an error. 17354 Use char because int might match the return type of a GCC 17355 builtin and then its argument prototype would still apply. */ 17356#ifdef __cplusplus 17357extern "C" 17358#endif 17359char $ac_func (); 17360/* The GNU C library defines this for functions which it implements 17361 to always fail with ENOSYS. Some functions are actually named 17362 something starting with __ and the normal name is an alias. */ 17363#if defined __stub_$ac_func || defined __stub___$ac_func 17364choke me 17365#endif 17366 17367int 17368main () 17369{ 17370return $ac_func (); 17371 ; 17372 return 0; 17373} 17374_ACEOF 17375rm -f conftest.$ac_objext conftest$ac_exeext 17376if { (ac_try="$ac_link" 17377case "(($ac_try" in 17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17379 *) ac_try_echo=$ac_try;; 17380esac 17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17382 (eval "$ac_link") 2>conftest.er1 17383 ac_status=$? 17384 grep -v '^ *+' conftest.er1 >conftest.err 17385 rm -f conftest.er1 17386 cat conftest.err >&5 17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17388 (exit $ac_status); } && 17389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17390 { (case "(($ac_try" in 17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17392 *) ac_try_echo=$ac_try;; 17393esac 17394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17395 (eval "$ac_try") 2>&5 17396 ac_status=$? 17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17398 (exit $ac_status); }; } && 17399 { ac_try='test -s conftest$ac_exeext' 17400 { (case "(($ac_try" in 17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17402 *) ac_try_echo=$ac_try;; 17403esac 17404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17405 (eval "$ac_try") 2>&5 17406 ac_status=$? 17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17408 (exit $ac_status); }; }; then 17409 eval "$as_ac_var=yes" 17410else 17411 echo "$as_me: failed program was:" >&5 17412sed 's/^/| /' conftest.$ac_ext >&5 17413 17414 eval "$as_ac_var=no" 17415fi 17416 17417rm -f core conftest.err conftest.$ac_objext \ 17418 conftest$ac_exeext conftest.$ac_ext 17419fi 17420ac_res=`eval echo '${'$as_ac_var'}'` 17421 { echo "$as_me:$LINENO: result: $ac_res" >&5 17422echo "${ECHO_T}$ac_res" >&6; } 17423if test `eval echo '${'$as_ac_var'}'` = yes; then 17424 cat >>confdefs.h <<_ACEOF 17425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17426_ACEOF 17427 17428fi 17429done 17430 17431 17432 17433 17434 17435 17436 17437 17438for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup 17439do 17440as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17441{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17443if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17444 echo $ECHO_N "(cached) $ECHO_C" >&6 17445else 17446 cat >conftest.$ac_ext <<_ACEOF 17447/* confdefs.h. */ 17448_ACEOF 17449cat confdefs.h >>conftest.$ac_ext 17450cat >>conftest.$ac_ext <<_ACEOF 17451/* end confdefs.h. */ 17452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17453 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17454#define $ac_func innocuous_$ac_func 17455 17456/* System header to define __stub macros and hopefully few prototypes, 17457 which can conflict with char $ac_func (); below. 17458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17459 <limits.h> exists even on freestanding compilers. */ 17460 17461#ifdef __STDC__ 17462# include <limits.h> 17463#else 17464# include <assert.h> 17465#endif 17466 17467#undef $ac_func 17468 17469/* Override any GCC internal prototype to avoid an error. 17470 Use char because int might match the return type of a GCC 17471 builtin and then its argument prototype would still apply. */ 17472#ifdef __cplusplus 17473extern "C" 17474#endif 17475char $ac_func (); 17476/* The GNU C library defines this for functions which it implements 17477 to always fail with ENOSYS. Some functions are actually named 17478 something starting with __ and the normal name is an alias. */ 17479#if defined __stub_$ac_func || defined __stub___$ac_func 17480choke me 17481#endif 17482 17483int 17484main () 17485{ 17486return $ac_func (); 17487 ; 17488 return 0; 17489} 17490_ACEOF 17491rm -f conftest.$ac_objext conftest$ac_exeext 17492if { (ac_try="$ac_link" 17493case "(($ac_try" in 17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17495 *) ac_try_echo=$ac_try;; 17496esac 17497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17498 (eval "$ac_link") 2>conftest.er1 17499 ac_status=$? 17500 grep -v '^ *+' conftest.er1 >conftest.err 17501 rm -f conftest.er1 17502 cat conftest.err >&5 17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17504 (exit $ac_status); } && 17505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17506 { (case "(($ac_try" in 17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17508 *) ac_try_echo=$ac_try;; 17509esac 17510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17511 (eval "$ac_try") 2>&5 17512 ac_status=$? 17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17514 (exit $ac_status); }; } && 17515 { ac_try='test -s conftest$ac_exeext' 17516 { (case "(($ac_try" in 17517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17518 *) ac_try_echo=$ac_try;; 17519esac 17520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17521 (eval "$ac_try") 2>&5 17522 ac_status=$? 17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17524 (exit $ac_status); }; }; then 17525 eval "$as_ac_var=yes" 17526else 17527 echo "$as_me: failed program was:" >&5 17528sed 's/^/| /' conftest.$ac_ext >&5 17529 17530 eval "$as_ac_var=no" 17531fi 17532 17533rm -f core conftest.err conftest.$ac_objext \ 17534 conftest$ac_exeext conftest.$ac_ext 17535fi 17536ac_res=`eval echo '${'$as_ac_var'}'` 17537 { echo "$as_me:$LINENO: result: $ac_res" >&5 17538echo "${ECHO_T}$ac_res" >&6; } 17539if test `eval echo '${'$as_ac_var'}'` = yes; then 17540 cat >>confdefs.h <<_ACEOF 17541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17542_ACEOF 17543 17544fi 17545done 17546 17547 17548 17549 17550 17551for ac_func in strerror strerror_r setenv arc4random 17552do 17553as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17554{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17555echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17556if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17557 echo $ECHO_N "(cached) $ECHO_C" >&6 17558else 17559 cat >conftest.$ac_ext <<_ACEOF 17560/* confdefs.h. */ 17561_ACEOF 17562cat confdefs.h >>conftest.$ac_ext 17563cat >>conftest.$ac_ext <<_ACEOF 17564/* end confdefs.h. */ 17565/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17566 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17567#define $ac_func innocuous_$ac_func 17568 17569/* System header to define __stub macros and hopefully few prototypes, 17570 which can conflict with char $ac_func (); below. 17571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17572 <limits.h> exists even on freestanding compilers. */ 17573 17574#ifdef __STDC__ 17575# include <limits.h> 17576#else 17577# include <assert.h> 17578#endif 17579 17580#undef $ac_func 17581 17582/* Override any GCC internal prototype to avoid an error. 17583 Use char because int might match the return type of a GCC 17584 builtin and then its argument prototype would still apply. */ 17585#ifdef __cplusplus 17586extern "C" 17587#endif 17588char $ac_func (); 17589/* The GNU C library defines this for functions which it implements 17590 to always fail with ENOSYS. Some functions are actually named 17591 something starting with __ and the normal name is an alias. */ 17592#if defined __stub_$ac_func || defined __stub___$ac_func 17593choke me 17594#endif 17595 17596int 17597main () 17598{ 17599return $ac_func (); 17600 ; 17601 return 0; 17602} 17603_ACEOF 17604rm -f conftest.$ac_objext conftest$ac_exeext 17605if { (ac_try="$ac_link" 17606case "(($ac_try" in 17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17608 *) ac_try_echo=$ac_try;; 17609esac 17610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17611 (eval "$ac_link") 2>conftest.er1 17612 ac_status=$? 17613 grep -v '^ *+' conftest.er1 >conftest.err 17614 rm -f conftest.er1 17615 cat conftest.err >&5 17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17617 (exit $ac_status); } && 17618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17619 { (case "(($ac_try" in 17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17621 *) ac_try_echo=$ac_try;; 17622esac 17623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17624 (eval "$ac_try") 2>&5 17625 ac_status=$? 17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17627 (exit $ac_status); }; } && 17628 { ac_try='test -s conftest$ac_exeext' 17629 { (case "(($ac_try" in 17630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17631 *) ac_try_echo=$ac_try;; 17632esac 17633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17634 (eval "$ac_try") 2>&5 17635 ac_status=$? 17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17637 (exit $ac_status); }; }; then 17638 eval "$as_ac_var=yes" 17639else 17640 echo "$as_me: failed program was:" >&5 17641sed 's/^/| /' conftest.$ac_ext >&5 17642 17643 eval "$as_ac_var=no" 17644fi 17645 17646rm -f core conftest.err conftest.$ac_objext \ 17647 conftest$ac_exeext conftest.$ac_ext 17648fi 17649ac_res=`eval echo '${'$as_ac_var'}'` 17650 { echo "$as_me:$LINENO: result: $ac_res" >&5 17651echo "${ECHO_T}$ac_res" >&6; } 17652if test `eval echo '${'$as_ac_var'}'` = yes; then 17653 cat >>confdefs.h <<_ACEOF 17654#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17655_ACEOF 17656 17657fi 17658done 17659 17660 17661 17662 17663 17664for ac_func in strtoll strtoq sysconf malloc_zone_statistics 17665do 17666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17667{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17669if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17670 echo $ECHO_N "(cached) $ECHO_C" >&6 17671else 17672 cat >conftest.$ac_ext <<_ACEOF 17673/* confdefs.h. */ 17674_ACEOF 17675cat confdefs.h >>conftest.$ac_ext 17676cat >>conftest.$ac_ext <<_ACEOF 17677/* end confdefs.h. */ 17678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17679 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17680#define $ac_func innocuous_$ac_func 17681 17682/* System header to define __stub macros and hopefully few prototypes, 17683 which can conflict with char $ac_func (); below. 17684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17685 <limits.h> exists even on freestanding compilers. */ 17686 17687#ifdef __STDC__ 17688# include <limits.h> 17689#else 17690# include <assert.h> 17691#endif 17692 17693#undef $ac_func 17694 17695/* Override any GCC internal prototype to avoid an error. 17696 Use char because int might match the return type of a GCC 17697 builtin and then its argument prototype would still apply. */ 17698#ifdef __cplusplus 17699extern "C" 17700#endif 17701char $ac_func (); 17702/* The GNU C library defines this for functions which it implements 17703 to always fail with ENOSYS. Some functions are actually named 17704 something starting with __ and the normal name is an alias. */ 17705#if defined __stub_$ac_func || defined __stub___$ac_func 17706choke me 17707#endif 17708 17709int 17710main () 17711{ 17712return $ac_func (); 17713 ; 17714 return 0; 17715} 17716_ACEOF 17717rm -f conftest.$ac_objext conftest$ac_exeext 17718if { (ac_try="$ac_link" 17719case "(($ac_try" in 17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17721 *) ac_try_echo=$ac_try;; 17722esac 17723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17724 (eval "$ac_link") 2>conftest.er1 17725 ac_status=$? 17726 grep -v '^ *+' conftest.er1 >conftest.err 17727 rm -f conftest.er1 17728 cat conftest.err >&5 17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17730 (exit $ac_status); } && 17731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17732 { (case "(($ac_try" in 17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17734 *) ac_try_echo=$ac_try;; 17735esac 17736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17737 (eval "$ac_try") 2>&5 17738 ac_status=$? 17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17740 (exit $ac_status); }; } && 17741 { ac_try='test -s conftest$ac_exeext' 17742 { (case "(($ac_try" in 17743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17744 *) ac_try_echo=$ac_try;; 17745esac 17746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17747 (eval "$ac_try") 2>&5 17748 ac_status=$? 17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17750 (exit $ac_status); }; }; then 17751 eval "$as_ac_var=yes" 17752else 17753 echo "$as_me: failed program was:" >&5 17754sed 's/^/| /' conftest.$ac_ext >&5 17755 17756 eval "$as_ac_var=no" 17757fi 17758 17759rm -f core conftest.err conftest.$ac_objext \ 17760 conftest$ac_exeext conftest.$ac_ext 17761fi 17762ac_res=`eval echo '${'$as_ac_var'}'` 17763 { echo "$as_me:$LINENO: result: $ac_res" >&5 17764echo "${ECHO_T}$ac_res" >&6; } 17765if test `eval echo '${'$as_ac_var'}'` = yes; then 17766 cat >>confdefs.h <<_ACEOF 17767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17768_ACEOF 17769 17770fi 17771done 17772 17773 17774 17775 17776 17777 17778for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 17779do 17780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17781{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17783if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17784 echo $ECHO_N "(cached) $ECHO_C" >&6 17785else 17786 cat >conftest.$ac_ext <<_ACEOF 17787/* confdefs.h. */ 17788_ACEOF 17789cat confdefs.h >>conftest.$ac_ext 17790cat >>conftest.$ac_ext <<_ACEOF 17791/* end confdefs.h. */ 17792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17793 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17794#define $ac_func innocuous_$ac_func 17795 17796/* System header to define __stub macros and hopefully few prototypes, 17797 which can conflict with char $ac_func (); below. 17798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17799 <limits.h> exists even on freestanding compilers. */ 17800 17801#ifdef __STDC__ 17802# include <limits.h> 17803#else 17804# include <assert.h> 17805#endif 17806 17807#undef $ac_func 17808 17809/* Override any GCC internal prototype to avoid an error. 17810 Use char because int might match the return type of a GCC 17811 builtin and then its argument prototype would still apply. */ 17812#ifdef __cplusplus 17813extern "C" 17814#endif 17815char $ac_func (); 17816/* The GNU C library defines this for functions which it implements 17817 to always fail with ENOSYS. Some functions are actually named 17818 something starting with __ and the normal name is an alias. */ 17819#if defined __stub_$ac_func || defined __stub___$ac_func 17820choke me 17821#endif 17822 17823int 17824main () 17825{ 17826return $ac_func (); 17827 ; 17828 return 0; 17829} 17830_ACEOF 17831rm -f conftest.$ac_objext conftest$ac_exeext 17832if { (ac_try="$ac_link" 17833case "(($ac_try" in 17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17835 *) ac_try_echo=$ac_try;; 17836esac 17837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17838 (eval "$ac_link") 2>conftest.er1 17839 ac_status=$? 17840 grep -v '^ *+' conftest.er1 >conftest.err 17841 rm -f conftest.er1 17842 cat conftest.err >&5 17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17844 (exit $ac_status); } && 17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17846 { (case "(($ac_try" in 17847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17848 *) ac_try_echo=$ac_try;; 17849esac 17850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17851 (eval "$ac_try") 2>&5 17852 ac_status=$? 17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17854 (exit $ac_status); }; } && 17855 { ac_try='test -s conftest$ac_exeext' 17856 { (case "(($ac_try" in 17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17858 *) ac_try_echo=$ac_try;; 17859esac 17860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17861 (eval "$ac_try") 2>&5 17862 ac_status=$? 17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17864 (exit $ac_status); }; }; then 17865 eval "$as_ac_var=yes" 17866else 17867 echo "$as_me: failed program was:" >&5 17868sed 's/^/| /' conftest.$ac_ext >&5 17869 17870 eval "$as_ac_var=no" 17871fi 17872 17873rm -f core conftest.err conftest.$ac_objext \ 17874 conftest$ac_exeext conftest.$ac_ext 17875fi 17876ac_res=`eval echo '${'$as_ac_var'}'` 17877 { echo "$as_me:$LINENO: result: $ac_res" >&5 17878echo "${ECHO_T}$ac_res" >&6; } 17879if test `eval echo '${'$as_ac_var'}'` = yes; then 17880 cat >>confdefs.h <<_ACEOF 17881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17882_ACEOF 17883 17884fi 17885done 17886 17887{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 17888echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 17889if test "${llvm_cv_c_printf_a+set}" = set; then 17890 echo $ECHO_N "(cached) $ECHO_C" >&6 17891else 17892 ac_ext=c 17893ac_cpp='$CPP $CPPFLAGS' 17894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17896ac_compiler_gnu=$ac_cv_c_compiler_gnu 17897 17898 if test "$cross_compiling" = yes; then 17899 llvmac_cv_c_printf_a=no 17900else 17901 cat >conftest.$ac_ext <<_ACEOF 17902 17903 /* confdefs.h. */ 17904_ACEOF 17905cat confdefs.h >>conftest.$ac_ext 17906cat >>conftest.$ac_ext <<_ACEOF 17907/* end confdefs.h. */ 17908 17909#include <stdio.h> 17910#include <stdlib.h> 17911 17912int 17913main () 17914{ 17915 17916volatile double A, B; 17917char Buffer[100]; 17918A = 1; 17919A /= 10.0; 17920sprintf(Buffer, "%a", A); 17921B = atof(Buffer); 17922if (A != B) 17923 return (1); 17924if (A != 0x1.999999999999ap-4) 17925 return (1); 17926return (0); 17927 ; 17928 return 0; 17929} 17930_ACEOF 17931rm -f conftest$ac_exeext 17932if { (ac_try="$ac_link" 17933case "(($ac_try" in 17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17935 *) ac_try_echo=$ac_try;; 17936esac 17937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17938 (eval "$ac_link") 2>&5 17939 ac_status=$? 17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17942 { (case "(($ac_try" in 17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17944 *) ac_try_echo=$ac_try;; 17945esac 17946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17947 (eval "$ac_try") 2>&5 17948 ac_status=$? 17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17950 (exit $ac_status); }; }; then 17951 llvm_cv_c_printf_a=yes 17952else 17953 echo "$as_me: program exited with status $ac_status" >&5 17954echo "$as_me: failed program was:" >&5 17955sed 's/^/| /' conftest.$ac_ext >&5 17956 17957( exit $ac_status ) 17958llvmac_cv_c_printf_a=no 17959fi 17960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17961fi 17962 17963 17964 ac_ext=c 17965ac_cpp='$CPP $CPPFLAGS' 17966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17968ac_compiler_gnu=$ac_cv_c_compiler_gnu 17969 17970fi 17971{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 17972echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 17973 if test "$llvm_cv_c_printf_a" = "yes"; then 17974 17975cat >>confdefs.h <<\_ACEOF 17976#define HAVE_PRINTF_A 1 17977_ACEOF 17978 17979 fi 17980 17981 17982{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 17983echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 17984if test "${ac_cv_func_rand48+set}" = set; then 17985 echo $ECHO_N "(cached) $ECHO_C" >&6 17986else 17987 ac_ext=cpp 17988ac_cpp='$CXXCPP $CPPFLAGS' 17989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17992 17993 cat >conftest.$ac_ext <<_ACEOF 17994/* confdefs.h. */ 17995_ACEOF 17996cat confdefs.h >>conftest.$ac_ext 17997cat >>conftest.$ac_ext <<_ACEOF 17998/* end confdefs.h. */ 17999#include <stdlib.h> 18000int 18001main () 18002{ 18003srand48(0);lrand48();drand48(); 18004 ; 18005 return 0; 18006} 18007_ACEOF 18008rm -f conftest.$ac_objext 18009if { (ac_try="$ac_compile" 18010case "(($ac_try" in 18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18012 *) ac_try_echo=$ac_try;; 18013esac 18014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18015 (eval "$ac_compile") 2>conftest.er1 18016 ac_status=$? 18017 grep -v '^ *+' conftest.er1 >conftest.err 18018 rm -f conftest.er1 18019 cat conftest.err >&5 18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18021 (exit $ac_status); } && 18022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18023 { (case "(($ac_try" in 18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18025 *) ac_try_echo=$ac_try;; 18026esac 18027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18028 (eval "$ac_try") 2>&5 18029 ac_status=$? 18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18031 (exit $ac_status); }; } && 18032 { ac_try='test -s conftest.$ac_objext' 18033 { (case "(($ac_try" in 18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18035 *) ac_try_echo=$ac_try;; 18036esac 18037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18038 (eval "$ac_try") 2>&5 18039 ac_status=$? 18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18041 (exit $ac_status); }; }; then 18042 ac_cv_func_rand48=yes 18043else 18044 echo "$as_me: failed program was:" >&5 18045sed 's/^/| /' conftest.$ac_ext >&5 18046 18047 ac_cv_func_rand48=no 18048fi 18049 18050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 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 18057fi 18058{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 18059echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 18060 18061if test "$ac_cv_func_rand48" = "yes" ; then 18062 18063cat >>confdefs.h <<\_ACEOF 18064#define HAVE_RAND48 1 18065_ACEOF 18066 18067fi 18068 18069 18070{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 18071echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 18072if test "${ac_cv_have_decl_strerror_s+set}" = set; then 18073 echo $ECHO_N "(cached) $ECHO_C" >&6 18074else 18075 cat >conftest.$ac_ext <<_ACEOF 18076/* confdefs.h. */ 18077_ACEOF 18078cat confdefs.h >>conftest.$ac_ext 18079cat >>conftest.$ac_ext <<_ACEOF 18080/* end confdefs.h. */ 18081$ac_includes_default 18082int 18083main () 18084{ 18085#ifndef strerror_s 18086 char *p = (char *) strerror_s; 18087 return !p; 18088#endif 18089 18090 ; 18091 return 0; 18092} 18093_ACEOF 18094rm -f conftest.$ac_objext 18095if { (ac_try="$ac_compile" 18096case "(($ac_try" in 18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18098 *) ac_try_echo=$ac_try;; 18099esac 18100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18101 (eval "$ac_compile") 2>conftest.er1 18102 ac_status=$? 18103 grep -v '^ *+' conftest.er1 >conftest.err 18104 rm -f conftest.er1 18105 cat conftest.err >&5 18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18107 (exit $ac_status); } && 18108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18109 { (case "(($ac_try" in 18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18111 *) ac_try_echo=$ac_try;; 18112esac 18113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18114 (eval "$ac_try") 2>&5 18115 ac_status=$? 18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18117 (exit $ac_status); }; } && 18118 { ac_try='test -s conftest.$ac_objext' 18119 { (case "(($ac_try" in 18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18121 *) ac_try_echo=$ac_try;; 18122esac 18123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18124 (eval "$ac_try") 2>&5 18125 ac_status=$? 18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18127 (exit $ac_status); }; }; then 18128 ac_cv_have_decl_strerror_s=yes 18129else 18130 echo "$as_me: failed program was:" >&5 18131sed 's/^/| /' conftest.$ac_ext >&5 18132 18133 ac_cv_have_decl_strerror_s=no 18134fi 18135 18136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18137fi 18138{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 18139echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 18140if test $ac_cv_have_decl_strerror_s = yes; then 18141 18142cat >>confdefs.h <<_ACEOF 18143#define HAVE_DECL_STRERROR_S 1 18144_ACEOF 18145 18146 18147else 18148 cat >>confdefs.h <<_ACEOF 18149#define HAVE_DECL_STRERROR_S 0 18150_ACEOF 18151 18152 18153fi 18154 18155 18156 18157if test "$llvm_cv_os_type" = "MingW" ; then 18158 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 18159echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 18160if test "${ac_cv_lib_gcc__alloca+set}" = set; then 18161 echo $ECHO_N "(cached) $ECHO_C" >&6 18162else 18163 ac_check_lib_save_LIBS=$LIBS 18164LIBS="-lgcc $LIBS" 18165cat >conftest.$ac_ext <<_ACEOF 18166/* confdefs.h. */ 18167_ACEOF 18168cat confdefs.h >>conftest.$ac_ext 18169cat >>conftest.$ac_ext <<_ACEOF 18170/* end confdefs.h. */ 18171 18172/* Override any GCC internal prototype to avoid an error. 18173 Use char because int might match the return type of a GCC 18174 builtin and then its argument prototype would still apply. */ 18175#ifdef __cplusplus 18176extern "C" 18177#endif 18178char _alloca (); 18179int 18180main () 18181{ 18182return _alloca (); 18183 ; 18184 return 0; 18185} 18186_ACEOF 18187rm -f conftest.$ac_objext conftest$ac_exeext 18188if { (ac_try="$ac_link" 18189case "(($ac_try" in 18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18191 *) ac_try_echo=$ac_try;; 18192esac 18193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18194 (eval "$ac_link") 2>conftest.er1 18195 ac_status=$? 18196 grep -v '^ *+' conftest.er1 >conftest.err 18197 rm -f conftest.er1 18198 cat conftest.err >&5 18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18200 (exit $ac_status); } && 18201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18202 { (case "(($ac_try" in 18203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18204 *) ac_try_echo=$ac_try;; 18205esac 18206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18207 (eval "$ac_try") 2>&5 18208 ac_status=$? 18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18210 (exit $ac_status); }; } && 18211 { ac_try='test -s conftest$ac_exeext' 18212 { (case "(($ac_try" in 18213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18214 *) ac_try_echo=$ac_try;; 18215esac 18216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18217 (eval "$ac_try") 2>&5 18218 ac_status=$? 18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18220 (exit $ac_status); }; }; then 18221 ac_cv_lib_gcc__alloca=yes 18222else 18223 echo "$as_me: failed program was:" >&5 18224sed 's/^/| /' conftest.$ac_ext >&5 18225 18226 ac_cv_lib_gcc__alloca=no 18227fi 18228 18229rm -f core conftest.err conftest.$ac_objext \ 18230 conftest$ac_exeext conftest.$ac_ext 18231LIBS=$ac_check_lib_save_LIBS 18232fi 18233{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 18234echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 18235if test $ac_cv_lib_gcc__alloca = yes; then 18236 18237cat >>confdefs.h <<\_ACEOF 18238#define HAVE__ALLOCA 1 18239_ACEOF 18240 18241fi 18242 18243 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 18244echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 18245if test "${ac_cv_lib_gcc___alloca+set}" = set; then 18246 echo $ECHO_N "(cached) $ECHO_C" >&6 18247else 18248 ac_check_lib_save_LIBS=$LIBS 18249LIBS="-lgcc $LIBS" 18250cat >conftest.$ac_ext <<_ACEOF 18251/* confdefs.h. */ 18252_ACEOF 18253cat confdefs.h >>conftest.$ac_ext 18254cat >>conftest.$ac_ext <<_ACEOF 18255/* end confdefs.h. */ 18256 18257/* Override any GCC internal prototype to avoid an error. 18258 Use char because int might match the return type of a GCC 18259 builtin and then its argument prototype would still apply. */ 18260#ifdef __cplusplus 18261extern "C" 18262#endif 18263char __alloca (); 18264int 18265main () 18266{ 18267return __alloca (); 18268 ; 18269 return 0; 18270} 18271_ACEOF 18272rm -f conftest.$ac_objext conftest$ac_exeext 18273if { (ac_try="$ac_link" 18274case "(($ac_try" in 18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18276 *) ac_try_echo=$ac_try;; 18277esac 18278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18279 (eval "$ac_link") 2>conftest.er1 18280 ac_status=$? 18281 grep -v '^ *+' conftest.er1 >conftest.err 18282 rm -f conftest.er1 18283 cat conftest.err >&5 18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18285 (exit $ac_status); } && 18286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18287 { (case "(($ac_try" in 18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18289 *) ac_try_echo=$ac_try;; 18290esac 18291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18292 (eval "$ac_try") 2>&5 18293 ac_status=$? 18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18295 (exit $ac_status); }; } && 18296 { ac_try='test -s conftest$ac_exeext' 18297 { (case "(($ac_try" in 18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18299 *) ac_try_echo=$ac_try;; 18300esac 18301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18302 (eval "$ac_try") 2>&5 18303 ac_status=$? 18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18305 (exit $ac_status); }; }; then 18306 ac_cv_lib_gcc___alloca=yes 18307else 18308 echo "$as_me: failed program was:" >&5 18309sed 's/^/| /' conftest.$ac_ext >&5 18310 18311 ac_cv_lib_gcc___alloca=no 18312fi 18313 18314rm -f core conftest.err conftest.$ac_objext \ 18315 conftest$ac_exeext conftest.$ac_ext 18316LIBS=$ac_check_lib_save_LIBS 18317fi 18318{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 18319echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 18320if test $ac_cv_lib_gcc___alloca = yes; then 18321 18322cat >>confdefs.h <<\_ACEOF 18323#define HAVE___ALLOCA 1 18324_ACEOF 18325 18326fi 18327 18328 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 18329echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 18330if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 18331 echo $ECHO_N "(cached) $ECHO_C" >&6 18332else 18333 ac_check_lib_save_LIBS=$LIBS 18334LIBS="-lgcc $LIBS" 18335cat >conftest.$ac_ext <<_ACEOF 18336/* confdefs.h. */ 18337_ACEOF 18338cat confdefs.h >>conftest.$ac_ext 18339cat >>conftest.$ac_ext <<_ACEOF 18340/* end confdefs.h. */ 18341 18342/* Override any GCC internal prototype to avoid an error. 18343 Use char because int might match the return type of a GCC 18344 builtin and then its argument prototype would still apply. */ 18345#ifdef __cplusplus 18346extern "C" 18347#endif 18348char __chkstk (); 18349int 18350main () 18351{ 18352return __chkstk (); 18353 ; 18354 return 0; 18355} 18356_ACEOF 18357rm -f conftest.$ac_objext conftest$ac_exeext 18358if { (ac_try="$ac_link" 18359case "(($ac_try" in 18360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18361 *) ac_try_echo=$ac_try;; 18362esac 18363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18364 (eval "$ac_link") 2>conftest.er1 18365 ac_status=$? 18366 grep -v '^ *+' conftest.er1 >conftest.err 18367 rm -f conftest.er1 18368 cat conftest.err >&5 18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18370 (exit $ac_status); } && 18371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18372 { (case "(($ac_try" in 18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18374 *) ac_try_echo=$ac_try;; 18375esac 18376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18377 (eval "$ac_try") 2>&5 18378 ac_status=$? 18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18380 (exit $ac_status); }; } && 18381 { ac_try='test -s conftest$ac_exeext' 18382 { (case "(($ac_try" in 18383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18384 *) ac_try_echo=$ac_try;; 18385esac 18386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18387 (eval "$ac_try") 2>&5 18388 ac_status=$? 18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18390 (exit $ac_status); }; }; then 18391 ac_cv_lib_gcc___chkstk=yes 18392else 18393 echo "$as_me: failed program was:" >&5 18394sed 's/^/| /' conftest.$ac_ext >&5 18395 18396 ac_cv_lib_gcc___chkstk=no 18397fi 18398 18399rm -f core conftest.err conftest.$ac_objext \ 18400 conftest$ac_exeext conftest.$ac_ext 18401LIBS=$ac_check_lib_save_LIBS 18402fi 18403{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 18404echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 18405if test $ac_cv_lib_gcc___chkstk = yes; then 18406 18407cat >>confdefs.h <<\_ACEOF 18408#define HAVE___CHKSTK 1 18409_ACEOF 18410 18411fi 18412 18413 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 18414echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 18415if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 18416 echo $ECHO_N "(cached) $ECHO_C" >&6 18417else 18418 ac_check_lib_save_LIBS=$LIBS 18419LIBS="-lgcc $LIBS" 18420cat >conftest.$ac_ext <<_ACEOF 18421/* confdefs.h. */ 18422_ACEOF 18423cat confdefs.h >>conftest.$ac_ext 18424cat >>conftest.$ac_ext <<_ACEOF 18425/* end confdefs.h. */ 18426 18427/* Override any GCC internal prototype to avoid an error. 18428 Use char because int might match the return type of a GCC 18429 builtin and then its argument prototype would still apply. */ 18430#ifdef __cplusplus 18431extern "C" 18432#endif 18433char ___chkstk (); 18434int 18435main () 18436{ 18437return ___chkstk (); 18438 ; 18439 return 0; 18440} 18441_ACEOF 18442rm -f conftest.$ac_objext conftest$ac_exeext 18443if { (ac_try="$ac_link" 18444case "(($ac_try" in 18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18446 *) ac_try_echo=$ac_try;; 18447esac 18448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18449 (eval "$ac_link") 2>conftest.er1 18450 ac_status=$? 18451 grep -v '^ *+' conftest.er1 >conftest.err 18452 rm -f conftest.er1 18453 cat conftest.err >&5 18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18455 (exit $ac_status); } && 18456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18457 { (case "(($ac_try" in 18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18459 *) ac_try_echo=$ac_try;; 18460esac 18461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18462 (eval "$ac_try") 2>&5 18463 ac_status=$? 18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18465 (exit $ac_status); }; } && 18466 { ac_try='test -s conftest$ac_exeext' 18467 { (case "(($ac_try" in 18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18469 *) ac_try_echo=$ac_try;; 18470esac 18471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18472 (eval "$ac_try") 2>&5 18473 ac_status=$? 18474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18475 (exit $ac_status); }; }; then 18476 ac_cv_lib_gcc____chkstk=yes 18477else 18478 echo "$as_me: failed program was:" >&5 18479sed 's/^/| /' conftest.$ac_ext >&5 18480 18481 ac_cv_lib_gcc____chkstk=no 18482fi 18483 18484rm -f core conftest.err conftest.$ac_objext \ 18485 conftest$ac_exeext conftest.$ac_ext 18486LIBS=$ac_check_lib_save_LIBS 18487fi 18488{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 18489echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 18490if test $ac_cv_lib_gcc____chkstk = yes; then 18491 18492cat >>confdefs.h <<\_ACEOF 18493#define HAVE____CHKSTK 1 18494_ACEOF 18495 18496fi 18497 18498 18499 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 18500echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 18501if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 18502 echo $ECHO_N "(cached) $ECHO_C" >&6 18503else 18504 ac_check_lib_save_LIBS=$LIBS 18505LIBS="-lgcc $LIBS" 18506cat >conftest.$ac_ext <<_ACEOF 18507/* confdefs.h. */ 18508_ACEOF 18509cat confdefs.h >>conftest.$ac_ext 18510cat >>conftest.$ac_ext <<_ACEOF 18511/* end confdefs.h. */ 18512 18513/* Override any GCC internal prototype to avoid an error. 18514 Use char because int might match the return type of a GCC 18515 builtin and then its argument prototype would still apply. */ 18516#ifdef __cplusplus 18517extern "C" 18518#endif 18519char __ashldi3 (); 18520int 18521main () 18522{ 18523return __ashldi3 (); 18524 ; 18525 return 0; 18526} 18527_ACEOF 18528rm -f conftest.$ac_objext conftest$ac_exeext 18529if { (ac_try="$ac_link" 18530case "(($ac_try" in 18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18532 *) ac_try_echo=$ac_try;; 18533esac 18534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18535 (eval "$ac_link") 2>conftest.er1 18536 ac_status=$? 18537 grep -v '^ *+' conftest.er1 >conftest.err 18538 rm -f conftest.er1 18539 cat conftest.err >&5 18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18541 (exit $ac_status); } && 18542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18543 { (case "(($ac_try" in 18544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18545 *) ac_try_echo=$ac_try;; 18546esac 18547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18548 (eval "$ac_try") 2>&5 18549 ac_status=$? 18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18551 (exit $ac_status); }; } && 18552 { ac_try='test -s conftest$ac_exeext' 18553 { (case "(($ac_try" in 18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18555 *) ac_try_echo=$ac_try;; 18556esac 18557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18558 (eval "$ac_try") 2>&5 18559 ac_status=$? 18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18561 (exit $ac_status); }; }; then 18562 ac_cv_lib_gcc___ashldi3=yes 18563else 18564 echo "$as_me: failed program was:" >&5 18565sed 's/^/| /' conftest.$ac_ext >&5 18566 18567 ac_cv_lib_gcc___ashldi3=no 18568fi 18569 18570rm -f core conftest.err conftest.$ac_objext \ 18571 conftest$ac_exeext conftest.$ac_ext 18572LIBS=$ac_check_lib_save_LIBS 18573fi 18574{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 18575echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 18576if test $ac_cv_lib_gcc___ashldi3 = yes; then 18577 18578cat >>confdefs.h <<\_ACEOF 18579#define HAVE___ASHLDI3 1 18580_ACEOF 18581 18582fi 18583 18584 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 18585echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 18586if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 18587 echo $ECHO_N "(cached) $ECHO_C" >&6 18588else 18589 ac_check_lib_save_LIBS=$LIBS 18590LIBS="-lgcc $LIBS" 18591cat >conftest.$ac_ext <<_ACEOF 18592/* confdefs.h. */ 18593_ACEOF 18594cat confdefs.h >>conftest.$ac_ext 18595cat >>conftest.$ac_ext <<_ACEOF 18596/* end confdefs.h. */ 18597 18598/* Override any GCC internal prototype to avoid an error. 18599 Use char because int might match the return type of a GCC 18600 builtin and then its argument prototype would still apply. */ 18601#ifdef __cplusplus 18602extern "C" 18603#endif 18604char __ashrdi3 (); 18605int 18606main () 18607{ 18608return __ashrdi3 (); 18609 ; 18610 return 0; 18611} 18612_ACEOF 18613rm -f conftest.$ac_objext conftest$ac_exeext 18614if { (ac_try="$ac_link" 18615case "(($ac_try" in 18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18617 *) ac_try_echo=$ac_try;; 18618esac 18619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18620 (eval "$ac_link") 2>conftest.er1 18621 ac_status=$? 18622 grep -v '^ *+' conftest.er1 >conftest.err 18623 rm -f conftest.er1 18624 cat conftest.err >&5 18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18626 (exit $ac_status); } && 18627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18628 { (case "(($ac_try" in 18629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18630 *) ac_try_echo=$ac_try;; 18631esac 18632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18633 (eval "$ac_try") 2>&5 18634 ac_status=$? 18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18636 (exit $ac_status); }; } && 18637 { ac_try='test -s conftest$ac_exeext' 18638 { (case "(($ac_try" in 18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18640 *) ac_try_echo=$ac_try;; 18641esac 18642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18643 (eval "$ac_try") 2>&5 18644 ac_status=$? 18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18646 (exit $ac_status); }; }; then 18647 ac_cv_lib_gcc___ashrdi3=yes 18648else 18649 echo "$as_me: failed program was:" >&5 18650sed 's/^/| /' conftest.$ac_ext >&5 18651 18652 ac_cv_lib_gcc___ashrdi3=no 18653fi 18654 18655rm -f core conftest.err conftest.$ac_objext \ 18656 conftest$ac_exeext conftest.$ac_ext 18657LIBS=$ac_check_lib_save_LIBS 18658fi 18659{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 18660echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 18661if test $ac_cv_lib_gcc___ashrdi3 = yes; then 18662 18663cat >>confdefs.h <<\_ACEOF 18664#define HAVE___ASHRDI3 1 18665_ACEOF 18666 18667fi 18668 18669 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 18670echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 18671if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 18672 echo $ECHO_N "(cached) $ECHO_C" >&6 18673else 18674 ac_check_lib_save_LIBS=$LIBS 18675LIBS="-lgcc $LIBS" 18676cat >conftest.$ac_ext <<_ACEOF 18677/* confdefs.h. */ 18678_ACEOF 18679cat confdefs.h >>conftest.$ac_ext 18680cat >>conftest.$ac_ext <<_ACEOF 18681/* end confdefs.h. */ 18682 18683/* Override any GCC internal prototype to avoid an error. 18684 Use char because int might match the return type of a GCC 18685 builtin and then its argument prototype would still apply. */ 18686#ifdef __cplusplus 18687extern "C" 18688#endif 18689char __divdi3 (); 18690int 18691main () 18692{ 18693return __divdi3 (); 18694 ; 18695 return 0; 18696} 18697_ACEOF 18698rm -f conftest.$ac_objext conftest$ac_exeext 18699if { (ac_try="$ac_link" 18700case "(($ac_try" in 18701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18702 *) ac_try_echo=$ac_try;; 18703esac 18704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18705 (eval "$ac_link") 2>conftest.er1 18706 ac_status=$? 18707 grep -v '^ *+' conftest.er1 >conftest.err 18708 rm -f conftest.er1 18709 cat conftest.err >&5 18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18711 (exit $ac_status); } && 18712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18713 { (case "(($ac_try" in 18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18715 *) ac_try_echo=$ac_try;; 18716esac 18717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18718 (eval "$ac_try") 2>&5 18719 ac_status=$? 18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18721 (exit $ac_status); }; } && 18722 { ac_try='test -s conftest$ac_exeext' 18723 { (case "(($ac_try" in 18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18725 *) ac_try_echo=$ac_try;; 18726esac 18727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18728 (eval "$ac_try") 2>&5 18729 ac_status=$? 18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18731 (exit $ac_status); }; }; then 18732 ac_cv_lib_gcc___divdi3=yes 18733else 18734 echo "$as_me: failed program was:" >&5 18735sed 's/^/| /' conftest.$ac_ext >&5 18736 18737 ac_cv_lib_gcc___divdi3=no 18738fi 18739 18740rm -f core conftest.err conftest.$ac_objext \ 18741 conftest$ac_exeext conftest.$ac_ext 18742LIBS=$ac_check_lib_save_LIBS 18743fi 18744{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 18745echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 18746if test $ac_cv_lib_gcc___divdi3 = yes; then 18747 18748cat >>confdefs.h <<\_ACEOF 18749#define HAVE___DIVDI3 1 18750_ACEOF 18751 18752fi 18753 18754 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 18755echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 18756if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 18757 echo $ECHO_N "(cached) $ECHO_C" >&6 18758else 18759 ac_check_lib_save_LIBS=$LIBS 18760LIBS="-lgcc $LIBS" 18761cat >conftest.$ac_ext <<_ACEOF 18762/* confdefs.h. */ 18763_ACEOF 18764cat confdefs.h >>conftest.$ac_ext 18765cat >>conftest.$ac_ext <<_ACEOF 18766/* end confdefs.h. */ 18767 18768/* Override any GCC internal prototype to avoid an error. 18769 Use char because int might match the return type of a GCC 18770 builtin and then its argument prototype would still apply. */ 18771#ifdef __cplusplus 18772extern "C" 18773#endif 18774char __fixdfdi (); 18775int 18776main () 18777{ 18778return __fixdfdi (); 18779 ; 18780 return 0; 18781} 18782_ACEOF 18783rm -f conftest.$ac_objext conftest$ac_exeext 18784if { (ac_try="$ac_link" 18785case "(($ac_try" in 18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18787 *) ac_try_echo=$ac_try;; 18788esac 18789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18790 (eval "$ac_link") 2>conftest.er1 18791 ac_status=$? 18792 grep -v '^ *+' conftest.er1 >conftest.err 18793 rm -f conftest.er1 18794 cat conftest.err >&5 18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18796 (exit $ac_status); } && 18797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18798 { (case "(($ac_try" in 18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18800 *) ac_try_echo=$ac_try;; 18801esac 18802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18803 (eval "$ac_try") 2>&5 18804 ac_status=$? 18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18806 (exit $ac_status); }; } && 18807 { ac_try='test -s conftest$ac_exeext' 18808 { (case "(($ac_try" in 18809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18810 *) ac_try_echo=$ac_try;; 18811esac 18812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18813 (eval "$ac_try") 2>&5 18814 ac_status=$? 18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18816 (exit $ac_status); }; }; then 18817 ac_cv_lib_gcc___fixdfdi=yes 18818else 18819 echo "$as_me: failed program was:" >&5 18820sed 's/^/| /' conftest.$ac_ext >&5 18821 18822 ac_cv_lib_gcc___fixdfdi=no 18823fi 18824 18825rm -f core conftest.err conftest.$ac_objext \ 18826 conftest$ac_exeext conftest.$ac_ext 18827LIBS=$ac_check_lib_save_LIBS 18828fi 18829{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 18830echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 18831if test $ac_cv_lib_gcc___fixdfdi = yes; then 18832 18833cat >>confdefs.h <<\_ACEOF 18834#define HAVE___FIXDFDI 1 18835_ACEOF 18836 18837fi 18838 18839 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 18840echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 18841if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 18842 echo $ECHO_N "(cached) $ECHO_C" >&6 18843else 18844 ac_check_lib_save_LIBS=$LIBS 18845LIBS="-lgcc $LIBS" 18846cat >conftest.$ac_ext <<_ACEOF 18847/* confdefs.h. */ 18848_ACEOF 18849cat confdefs.h >>conftest.$ac_ext 18850cat >>conftest.$ac_ext <<_ACEOF 18851/* end confdefs.h. */ 18852 18853/* Override any GCC internal prototype to avoid an error. 18854 Use char because int might match the return type of a GCC 18855 builtin and then its argument prototype would still apply. */ 18856#ifdef __cplusplus 18857extern "C" 18858#endif 18859char __fixsfdi (); 18860int 18861main () 18862{ 18863return __fixsfdi (); 18864 ; 18865 return 0; 18866} 18867_ACEOF 18868rm -f conftest.$ac_objext conftest$ac_exeext 18869if { (ac_try="$ac_link" 18870case "(($ac_try" in 18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18872 *) ac_try_echo=$ac_try;; 18873esac 18874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18875 (eval "$ac_link") 2>conftest.er1 18876 ac_status=$? 18877 grep -v '^ *+' conftest.er1 >conftest.err 18878 rm -f conftest.er1 18879 cat conftest.err >&5 18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18881 (exit $ac_status); } && 18882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18883 { (case "(($ac_try" in 18884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18885 *) ac_try_echo=$ac_try;; 18886esac 18887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18888 (eval "$ac_try") 2>&5 18889 ac_status=$? 18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18891 (exit $ac_status); }; } && 18892 { ac_try='test -s conftest$ac_exeext' 18893 { (case "(($ac_try" in 18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18895 *) ac_try_echo=$ac_try;; 18896esac 18897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18898 (eval "$ac_try") 2>&5 18899 ac_status=$? 18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18901 (exit $ac_status); }; }; then 18902 ac_cv_lib_gcc___fixsfdi=yes 18903else 18904 echo "$as_me: failed program was:" >&5 18905sed 's/^/| /' conftest.$ac_ext >&5 18906 18907 ac_cv_lib_gcc___fixsfdi=no 18908fi 18909 18910rm -f core conftest.err conftest.$ac_objext \ 18911 conftest$ac_exeext conftest.$ac_ext 18912LIBS=$ac_check_lib_save_LIBS 18913fi 18914{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 18915echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 18916if test $ac_cv_lib_gcc___fixsfdi = yes; then 18917 18918cat >>confdefs.h <<\_ACEOF 18919#define HAVE___FIXSFDI 1 18920_ACEOF 18921 18922fi 18923 18924 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 18925echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 18926if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 18927 echo $ECHO_N "(cached) $ECHO_C" >&6 18928else 18929 ac_check_lib_save_LIBS=$LIBS 18930LIBS="-lgcc $LIBS" 18931cat >conftest.$ac_ext <<_ACEOF 18932/* confdefs.h. */ 18933_ACEOF 18934cat confdefs.h >>conftest.$ac_ext 18935cat >>conftest.$ac_ext <<_ACEOF 18936/* end confdefs.h. */ 18937 18938/* Override any GCC internal prototype to avoid an error. 18939 Use char because int might match the return type of a GCC 18940 builtin and then its argument prototype would still apply. */ 18941#ifdef __cplusplus 18942extern "C" 18943#endif 18944char __floatdidf (); 18945int 18946main () 18947{ 18948return __floatdidf (); 18949 ; 18950 return 0; 18951} 18952_ACEOF 18953rm -f conftest.$ac_objext conftest$ac_exeext 18954if { (ac_try="$ac_link" 18955case "(($ac_try" in 18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18957 *) ac_try_echo=$ac_try;; 18958esac 18959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18960 (eval "$ac_link") 2>conftest.er1 18961 ac_status=$? 18962 grep -v '^ *+' conftest.er1 >conftest.err 18963 rm -f conftest.er1 18964 cat conftest.err >&5 18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18966 (exit $ac_status); } && 18967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18968 { (case "(($ac_try" in 18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18970 *) ac_try_echo=$ac_try;; 18971esac 18972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18973 (eval "$ac_try") 2>&5 18974 ac_status=$? 18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18976 (exit $ac_status); }; } && 18977 { ac_try='test -s conftest$ac_exeext' 18978 { (case "(($ac_try" in 18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18980 *) ac_try_echo=$ac_try;; 18981esac 18982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18983 (eval "$ac_try") 2>&5 18984 ac_status=$? 18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18986 (exit $ac_status); }; }; then 18987 ac_cv_lib_gcc___floatdidf=yes 18988else 18989 echo "$as_me: failed program was:" >&5 18990sed 's/^/| /' conftest.$ac_ext >&5 18991 18992 ac_cv_lib_gcc___floatdidf=no 18993fi 18994 18995rm -f core conftest.err conftest.$ac_objext \ 18996 conftest$ac_exeext conftest.$ac_ext 18997LIBS=$ac_check_lib_save_LIBS 18998fi 18999{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 19000echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 19001if test $ac_cv_lib_gcc___floatdidf = yes; then 19002 19003cat >>confdefs.h <<\_ACEOF 19004#define HAVE___FLOATDIDF 1 19005_ACEOF 19006 19007fi 19008 19009 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 19010echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 19011if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 19012 echo $ECHO_N "(cached) $ECHO_C" >&6 19013else 19014 ac_check_lib_save_LIBS=$LIBS 19015LIBS="-lgcc $LIBS" 19016cat >conftest.$ac_ext <<_ACEOF 19017/* confdefs.h. */ 19018_ACEOF 19019cat confdefs.h >>conftest.$ac_ext 19020cat >>conftest.$ac_ext <<_ACEOF 19021/* end confdefs.h. */ 19022 19023/* Override any GCC internal prototype to avoid an error. 19024 Use char because int might match the return type of a GCC 19025 builtin and then its argument prototype would still apply. */ 19026#ifdef __cplusplus 19027extern "C" 19028#endif 19029char __lshrdi3 (); 19030int 19031main () 19032{ 19033return __lshrdi3 (); 19034 ; 19035 return 0; 19036} 19037_ACEOF 19038rm -f conftest.$ac_objext conftest$ac_exeext 19039if { (ac_try="$ac_link" 19040case "(($ac_try" in 19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19042 *) ac_try_echo=$ac_try;; 19043esac 19044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19045 (eval "$ac_link") 2>conftest.er1 19046 ac_status=$? 19047 grep -v '^ *+' conftest.er1 >conftest.err 19048 rm -f conftest.er1 19049 cat conftest.err >&5 19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19051 (exit $ac_status); } && 19052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19053 { (case "(($ac_try" in 19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19055 *) ac_try_echo=$ac_try;; 19056esac 19057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19058 (eval "$ac_try") 2>&5 19059 ac_status=$? 19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19061 (exit $ac_status); }; } && 19062 { ac_try='test -s conftest$ac_exeext' 19063 { (case "(($ac_try" in 19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19065 *) ac_try_echo=$ac_try;; 19066esac 19067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19068 (eval "$ac_try") 2>&5 19069 ac_status=$? 19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19071 (exit $ac_status); }; }; then 19072 ac_cv_lib_gcc___lshrdi3=yes 19073else 19074 echo "$as_me: failed program was:" >&5 19075sed 's/^/| /' conftest.$ac_ext >&5 19076 19077 ac_cv_lib_gcc___lshrdi3=no 19078fi 19079 19080rm -f core conftest.err conftest.$ac_objext \ 19081 conftest$ac_exeext conftest.$ac_ext 19082LIBS=$ac_check_lib_save_LIBS 19083fi 19084{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 19085echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 19086if test $ac_cv_lib_gcc___lshrdi3 = yes; then 19087 19088cat >>confdefs.h <<\_ACEOF 19089#define HAVE___LSHRDI3 1 19090_ACEOF 19091 19092fi 19093 19094 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 19095echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 19096if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 19097 echo $ECHO_N "(cached) $ECHO_C" >&6 19098else 19099 ac_check_lib_save_LIBS=$LIBS 19100LIBS="-lgcc $LIBS" 19101cat >conftest.$ac_ext <<_ACEOF 19102/* confdefs.h. */ 19103_ACEOF 19104cat confdefs.h >>conftest.$ac_ext 19105cat >>conftest.$ac_ext <<_ACEOF 19106/* end confdefs.h. */ 19107 19108/* Override any GCC internal prototype to avoid an error. 19109 Use char because int might match the return type of a GCC 19110 builtin and then its argument prototype would still apply. */ 19111#ifdef __cplusplus 19112extern "C" 19113#endif 19114char __moddi3 (); 19115int 19116main () 19117{ 19118return __moddi3 (); 19119 ; 19120 return 0; 19121} 19122_ACEOF 19123rm -f conftest.$ac_objext conftest$ac_exeext 19124if { (ac_try="$ac_link" 19125case "(($ac_try" in 19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19127 *) ac_try_echo=$ac_try;; 19128esac 19129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19130 (eval "$ac_link") 2>conftest.er1 19131 ac_status=$? 19132 grep -v '^ *+' conftest.er1 >conftest.err 19133 rm -f conftest.er1 19134 cat conftest.err >&5 19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19136 (exit $ac_status); } && 19137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19138 { (case "(($ac_try" in 19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19140 *) ac_try_echo=$ac_try;; 19141esac 19142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19143 (eval "$ac_try") 2>&5 19144 ac_status=$? 19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19146 (exit $ac_status); }; } && 19147 { ac_try='test -s conftest$ac_exeext' 19148 { (case "(($ac_try" in 19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19150 *) ac_try_echo=$ac_try;; 19151esac 19152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19153 (eval "$ac_try") 2>&5 19154 ac_status=$? 19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19156 (exit $ac_status); }; }; then 19157 ac_cv_lib_gcc___moddi3=yes 19158else 19159 echo "$as_me: failed program was:" >&5 19160sed 's/^/| /' conftest.$ac_ext >&5 19161 19162 ac_cv_lib_gcc___moddi3=no 19163fi 19164 19165rm -f core conftest.err conftest.$ac_objext \ 19166 conftest$ac_exeext conftest.$ac_ext 19167LIBS=$ac_check_lib_save_LIBS 19168fi 19169{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 19170echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 19171if test $ac_cv_lib_gcc___moddi3 = yes; then 19172 19173cat >>confdefs.h <<\_ACEOF 19174#define HAVE___MODDI3 1 19175_ACEOF 19176 19177fi 19178 19179 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 19180echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 19181if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 19182 echo $ECHO_N "(cached) $ECHO_C" >&6 19183else 19184 ac_check_lib_save_LIBS=$LIBS 19185LIBS="-lgcc $LIBS" 19186cat >conftest.$ac_ext <<_ACEOF 19187/* confdefs.h. */ 19188_ACEOF 19189cat confdefs.h >>conftest.$ac_ext 19190cat >>conftest.$ac_ext <<_ACEOF 19191/* end confdefs.h. */ 19192 19193/* Override any GCC internal prototype to avoid an error. 19194 Use char because int might match the return type of a GCC 19195 builtin and then its argument prototype would still apply. */ 19196#ifdef __cplusplus 19197extern "C" 19198#endif 19199char __udivdi3 (); 19200int 19201main () 19202{ 19203return __udivdi3 (); 19204 ; 19205 return 0; 19206} 19207_ACEOF 19208rm -f conftest.$ac_objext conftest$ac_exeext 19209if { (ac_try="$ac_link" 19210case "(($ac_try" in 19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19212 *) ac_try_echo=$ac_try;; 19213esac 19214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19215 (eval "$ac_link") 2>conftest.er1 19216 ac_status=$? 19217 grep -v '^ *+' conftest.er1 >conftest.err 19218 rm -f conftest.er1 19219 cat conftest.err >&5 19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19221 (exit $ac_status); } && 19222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19223 { (case "(($ac_try" in 19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19225 *) ac_try_echo=$ac_try;; 19226esac 19227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19228 (eval "$ac_try") 2>&5 19229 ac_status=$? 19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19231 (exit $ac_status); }; } && 19232 { ac_try='test -s conftest$ac_exeext' 19233 { (case "(($ac_try" in 19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19235 *) ac_try_echo=$ac_try;; 19236esac 19237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19238 (eval "$ac_try") 2>&5 19239 ac_status=$? 19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19241 (exit $ac_status); }; }; then 19242 ac_cv_lib_gcc___udivdi3=yes 19243else 19244 echo "$as_me: failed program was:" >&5 19245sed 's/^/| /' conftest.$ac_ext >&5 19246 19247 ac_cv_lib_gcc___udivdi3=no 19248fi 19249 19250rm -f core conftest.err conftest.$ac_objext \ 19251 conftest$ac_exeext conftest.$ac_ext 19252LIBS=$ac_check_lib_save_LIBS 19253fi 19254{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 19255echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 19256if test $ac_cv_lib_gcc___udivdi3 = yes; then 19257 19258cat >>confdefs.h <<\_ACEOF 19259#define HAVE___UDIVDI3 1 19260_ACEOF 19261 19262fi 19263 19264 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 19265echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 19266if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 19267 echo $ECHO_N "(cached) $ECHO_C" >&6 19268else 19269 ac_check_lib_save_LIBS=$LIBS 19270LIBS="-lgcc $LIBS" 19271cat >conftest.$ac_ext <<_ACEOF 19272/* confdefs.h. */ 19273_ACEOF 19274cat confdefs.h >>conftest.$ac_ext 19275cat >>conftest.$ac_ext <<_ACEOF 19276/* end confdefs.h. */ 19277 19278/* Override any GCC internal prototype to avoid an error. 19279 Use char because int might match the return type of a GCC 19280 builtin and then its argument prototype would still apply. */ 19281#ifdef __cplusplus 19282extern "C" 19283#endif 19284char __umoddi3 (); 19285int 19286main () 19287{ 19288return __umoddi3 (); 19289 ; 19290 return 0; 19291} 19292_ACEOF 19293rm -f conftest.$ac_objext conftest$ac_exeext 19294if { (ac_try="$ac_link" 19295case "(($ac_try" in 19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19297 *) ac_try_echo=$ac_try;; 19298esac 19299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19300 (eval "$ac_link") 2>conftest.er1 19301 ac_status=$? 19302 grep -v '^ *+' conftest.er1 >conftest.err 19303 rm -f conftest.er1 19304 cat conftest.err >&5 19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19306 (exit $ac_status); } && 19307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19308 { (case "(($ac_try" in 19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19310 *) ac_try_echo=$ac_try;; 19311esac 19312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19313 (eval "$ac_try") 2>&5 19314 ac_status=$? 19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19316 (exit $ac_status); }; } && 19317 { ac_try='test -s conftest$ac_exeext' 19318 { (case "(($ac_try" in 19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19320 *) ac_try_echo=$ac_try;; 19321esac 19322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19323 (eval "$ac_try") 2>&5 19324 ac_status=$? 19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19326 (exit $ac_status); }; }; then 19327 ac_cv_lib_gcc___umoddi3=yes 19328else 19329 echo "$as_me: failed program was:" >&5 19330sed 's/^/| /' conftest.$ac_ext >&5 19331 19332 ac_cv_lib_gcc___umoddi3=no 19333fi 19334 19335rm -f core conftest.err conftest.$ac_objext \ 19336 conftest$ac_exeext conftest.$ac_ext 19337LIBS=$ac_check_lib_save_LIBS 19338fi 19339{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 19340echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 19341if test $ac_cv_lib_gcc___umoddi3 = yes; then 19342 19343cat >>confdefs.h <<\_ACEOF 19344#define HAVE___UMODDI3 1 19345_ACEOF 19346 19347fi 19348 19349 19350 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 19351echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 19352if test "${ac_cv_lib_gcc___main+set}" = set; then 19353 echo $ECHO_N "(cached) $ECHO_C" >&6 19354else 19355 ac_check_lib_save_LIBS=$LIBS 19356LIBS="-lgcc $LIBS" 19357cat >conftest.$ac_ext <<_ACEOF 19358/* confdefs.h. */ 19359_ACEOF 19360cat confdefs.h >>conftest.$ac_ext 19361cat >>conftest.$ac_ext <<_ACEOF 19362/* end confdefs.h. */ 19363 19364/* Override any GCC internal prototype to avoid an error. 19365 Use char because int might match the return type of a GCC 19366 builtin and then its argument prototype would still apply. */ 19367#ifdef __cplusplus 19368extern "C" 19369#endif 19370char __main (); 19371int 19372main () 19373{ 19374return __main (); 19375 ; 19376 return 0; 19377} 19378_ACEOF 19379rm -f conftest.$ac_objext conftest$ac_exeext 19380if { (ac_try="$ac_link" 19381case "(($ac_try" in 19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19383 *) ac_try_echo=$ac_try;; 19384esac 19385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19386 (eval "$ac_link") 2>conftest.er1 19387 ac_status=$? 19388 grep -v '^ *+' conftest.er1 >conftest.err 19389 rm -f conftest.er1 19390 cat conftest.err >&5 19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19392 (exit $ac_status); } && 19393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19394 { (case "(($ac_try" in 19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19396 *) ac_try_echo=$ac_try;; 19397esac 19398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19399 (eval "$ac_try") 2>&5 19400 ac_status=$? 19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19402 (exit $ac_status); }; } && 19403 { ac_try='test -s conftest$ac_exeext' 19404 { (case "(($ac_try" in 19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19406 *) ac_try_echo=$ac_try;; 19407esac 19408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19409 (eval "$ac_try") 2>&5 19410 ac_status=$? 19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19412 (exit $ac_status); }; }; then 19413 ac_cv_lib_gcc___main=yes 19414else 19415 echo "$as_me: failed program was:" >&5 19416sed 's/^/| /' conftest.$ac_ext >&5 19417 19418 ac_cv_lib_gcc___main=no 19419fi 19420 19421rm -f core conftest.err conftest.$ac_objext \ 19422 conftest$ac_exeext conftest.$ac_ext 19423LIBS=$ac_check_lib_save_LIBS 19424fi 19425{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 19426echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 19427if test $ac_cv_lib_gcc___main = yes; then 19428 19429cat >>confdefs.h <<\_ACEOF 19430#define HAVE___MAIN 1 19431_ACEOF 19432 19433fi 19434 19435 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 19436echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 19437if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 19438 echo $ECHO_N "(cached) $ECHO_C" >&6 19439else 19440 ac_check_lib_save_LIBS=$LIBS 19441LIBS="-lgcc $LIBS" 19442cat >conftest.$ac_ext <<_ACEOF 19443/* confdefs.h. */ 19444_ACEOF 19445cat confdefs.h >>conftest.$ac_ext 19446cat >>conftest.$ac_ext <<_ACEOF 19447/* end confdefs.h. */ 19448 19449/* Override any GCC internal prototype to avoid an error. 19450 Use char because int might match the return type of a GCC 19451 builtin and then its argument prototype would still apply. */ 19452#ifdef __cplusplus 19453extern "C" 19454#endif 19455char __cmpdi2 (); 19456int 19457main () 19458{ 19459return __cmpdi2 (); 19460 ; 19461 return 0; 19462} 19463_ACEOF 19464rm -f conftest.$ac_objext conftest$ac_exeext 19465if { (ac_try="$ac_link" 19466case "(($ac_try" in 19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19468 *) ac_try_echo=$ac_try;; 19469esac 19470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19471 (eval "$ac_link") 2>conftest.er1 19472 ac_status=$? 19473 grep -v '^ *+' conftest.er1 >conftest.err 19474 rm -f conftest.er1 19475 cat conftest.err >&5 19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19477 (exit $ac_status); } && 19478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19479 { (case "(($ac_try" in 19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19481 *) ac_try_echo=$ac_try;; 19482esac 19483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19484 (eval "$ac_try") 2>&5 19485 ac_status=$? 19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19487 (exit $ac_status); }; } && 19488 { ac_try='test -s conftest$ac_exeext' 19489 { (case "(($ac_try" in 19490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19491 *) ac_try_echo=$ac_try;; 19492esac 19493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19494 (eval "$ac_try") 2>&5 19495 ac_status=$? 19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19497 (exit $ac_status); }; }; then 19498 ac_cv_lib_gcc___cmpdi2=yes 19499else 19500 echo "$as_me: failed program was:" >&5 19501sed 's/^/| /' conftest.$ac_ext >&5 19502 19503 ac_cv_lib_gcc___cmpdi2=no 19504fi 19505 19506rm -f core conftest.err conftest.$ac_objext \ 19507 conftest$ac_exeext conftest.$ac_ext 19508LIBS=$ac_check_lib_save_LIBS 19509fi 19510{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 19511echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 19512if test $ac_cv_lib_gcc___cmpdi2 = yes; then 19513 19514cat >>confdefs.h <<\_ACEOF 19515#define HAVE___CMPDI2 1 19516_ACEOF 19517 19518fi 19519 19520fi 19521 19522if test "$llvm_cv_os_type" = "MingW" ; then 19523 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 19524echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 19525 cat >conftest.$ac_ext <<_ACEOF 19526#include <windows.h> 19527#include <imagehlp.h> 19528extern void foo(PENUMLOADED_MODULES_CALLBACK); 19529extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 19530_ACEOF 19531rm -f conftest.$ac_objext 19532if { (ac_try="$ac_compile" 19533case "(($ac_try" in 19534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19535 *) ac_try_echo=$ac_try;; 19536esac 19537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19538 (eval "$ac_compile") 2>conftest.er1 19539 ac_status=$? 19540 grep -v '^ *+' conftest.er1 >conftest.err 19541 rm -f conftest.er1 19542 cat conftest.err >&5 19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19544 (exit $ac_status); } && 19545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19546 { (case "(($ac_try" in 19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19548 *) ac_try_echo=$ac_try;; 19549esac 19550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19551 (eval "$ac_try") 2>&5 19552 ac_status=$? 19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19554 (exit $ac_status); }; } && 19555 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 19565 19566 { echo "$as_me:$LINENO: result: yes" >&5 19567echo "${ECHO_T}yes" >&6; } 19568 llvm_cv_win32_elmcb_pcstr="PCSTR" 19569 19570else 19571 echo "$as_me: failed program was:" >&5 19572sed 's/^/| /' conftest.$ac_ext >&5 19573 19574 19575 { echo "$as_me:$LINENO: result: no" >&5 19576echo "${ECHO_T}no" >&6; } 19577 llvm_cv_win32_elmcb_pcstr="PSTR" 19578 19579fi 19580 19581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19582 19583cat >>confdefs.h <<_ACEOF 19584#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 19585_ACEOF 19586 19587fi 19588 19589 19590{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 19591echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 19592if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 19593 echo $ECHO_N "(cached) $ECHO_C" >&6 19594else 19595 ac_ext=cpp 19596ac_cpp='$CXXCPP $CPPFLAGS' 19597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19600 19601 cat >conftest.$ac_ext <<_ACEOF 19602/* confdefs.h. */ 19603_ACEOF 19604cat confdefs.h >>conftest.$ac_ext 19605cat >>conftest.$ac_ext <<_ACEOF 19606/* end confdefs.h. */ 19607#include <math.h> 19608int 19609main () 19610{ 19611float f; isnan(f); 19612 ; 19613 return 0; 19614} 19615_ACEOF 19616rm -f conftest.$ac_objext 19617if { (ac_try="$ac_compile" 19618case "(($ac_try" in 19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19620 *) ac_try_echo=$ac_try;; 19621esac 19622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19623 (eval "$ac_compile") 2>conftest.er1 19624 ac_status=$? 19625 grep -v '^ *+' conftest.er1 >conftest.err 19626 rm -f conftest.er1 19627 cat conftest.err >&5 19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19629 (exit $ac_status); } && 19630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19631 { (case "(($ac_try" in 19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19633 *) ac_try_echo=$ac_try;; 19634esac 19635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19636 (eval "$ac_try") 2>&5 19637 ac_status=$? 19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19639 (exit $ac_status); }; } && 19640 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 19650 ac_cv_func_isnan_in_math_h=yes 19651else 19652 echo "$as_me: failed program was:" >&5 19653sed 's/^/| /' conftest.$ac_ext >&5 19654 19655 ac_cv_func_isnan_in_math_h=no 19656fi 19657 19658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19659 ac_ext=c 19660ac_cpp='$CPP $CPPFLAGS' 19661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19663ac_compiler_gnu=$ac_cv_c_compiler_gnu 19664 19665fi 19666{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 19667echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 19668 19669 19670if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 19671 19672cat >>confdefs.h <<\_ACEOF 19673#define HAVE_ISNAN_IN_MATH_H 1 19674_ACEOF 19675 19676fi 19677 19678{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 19679echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 19680if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 19681 echo $ECHO_N "(cached) $ECHO_C" >&6 19682else 19683 ac_ext=cpp 19684ac_cpp='$CXXCPP $CPPFLAGS' 19685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19688 19689 cat >conftest.$ac_ext <<_ACEOF 19690/* confdefs.h. */ 19691_ACEOF 19692cat confdefs.h >>conftest.$ac_ext 19693cat >>conftest.$ac_ext <<_ACEOF 19694/* end confdefs.h. */ 19695#include <cmath> 19696int 19697main () 19698{ 19699float f; isnan(f); 19700 ; 19701 return 0; 19702} 19703_ACEOF 19704rm -f conftest.$ac_objext 19705if { (ac_try="$ac_compile" 19706case "(($ac_try" in 19707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19708 *) ac_try_echo=$ac_try;; 19709esac 19710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19711 (eval "$ac_compile") 2>conftest.er1 19712 ac_status=$? 19713 grep -v '^ *+' conftest.er1 >conftest.err 19714 rm -f conftest.er1 19715 cat conftest.err >&5 19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19717 (exit $ac_status); } && 19718 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19719 { (case "(($ac_try" in 19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19721 *) ac_try_echo=$ac_try;; 19722esac 19723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19724 (eval "$ac_try") 2>&5 19725 ac_status=$? 19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19727 (exit $ac_status); }; } && 19728 { ac_try='test -s conftest.$ac_objext' 19729 { (case "(($ac_try" in 19730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19731 *) ac_try_echo=$ac_try;; 19732esac 19733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19734 (eval "$ac_try") 2>&5 19735 ac_status=$? 19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19737 (exit $ac_status); }; }; then 19738 ac_cv_func_isnan_in_cmath=yes 19739else 19740 echo "$as_me: failed program was:" >&5 19741sed 's/^/| /' conftest.$ac_ext >&5 19742 19743 ac_cv_func_isnan_in_cmath=no 19744fi 19745 19746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19747 ac_ext=c 19748ac_cpp='$CPP $CPPFLAGS' 19749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19751ac_compiler_gnu=$ac_cv_c_compiler_gnu 19752 19753fi 19754{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 19755echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 19756 19757if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 19758 19759cat >>confdefs.h <<\_ACEOF 19760#define HAVE_ISNAN_IN_CMATH 1 19761_ACEOF 19762 19763fi 19764 19765{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 19766echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 19767if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 19768 echo $ECHO_N "(cached) $ECHO_C" >&6 19769else 19770 ac_ext=cpp 19771ac_cpp='$CXXCPP $CPPFLAGS' 19772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19775 19776 cat >conftest.$ac_ext <<_ACEOF 19777/* confdefs.h. */ 19778_ACEOF 19779cat confdefs.h >>conftest.$ac_ext 19780cat >>conftest.$ac_ext <<_ACEOF 19781/* end confdefs.h. */ 19782#include <cmath> 19783int 19784main () 19785{ 19786float f; std::isnan(f); 19787 ; 19788 return 0; 19789} 19790_ACEOF 19791rm -f conftest.$ac_objext 19792if { (ac_try="$ac_compile" 19793case "(($ac_try" in 19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19795 *) ac_try_echo=$ac_try;; 19796esac 19797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19798 (eval "$ac_compile") 2>conftest.er1 19799 ac_status=$? 19800 grep -v '^ *+' conftest.er1 >conftest.err 19801 rm -f conftest.er1 19802 cat conftest.err >&5 19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19804 (exit $ac_status); } && 19805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19806 { (case "(($ac_try" in 19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19808 *) ac_try_echo=$ac_try;; 19809esac 19810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19811 (eval "$ac_try") 2>&5 19812 ac_status=$? 19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19814 (exit $ac_status); }; } && 19815 { ac_try='test -s conftest.$ac_objext' 19816 { (case "(($ac_try" in 19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19818 *) ac_try_echo=$ac_try;; 19819esac 19820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19821 (eval "$ac_try") 2>&5 19822 ac_status=$? 19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19824 (exit $ac_status); }; }; then 19825 ac_cv_func_std_isnan_in_cmath=yes 19826else 19827 echo "$as_me: failed program was:" >&5 19828sed 's/^/| /' conftest.$ac_ext >&5 19829 19830 ac_cv_func_std_isnan_in_cmath=no 19831fi 19832 19833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19834 ac_ext=c 19835ac_cpp='$CPP $CPPFLAGS' 19836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19838ac_compiler_gnu=$ac_cv_c_compiler_gnu 19839 19840fi 19841{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 19842echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 19843 19844if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 19845 19846cat >>confdefs.h <<\_ACEOF 19847#define HAVE_STD_ISNAN_IN_CMATH 1 19848_ACEOF 19849 19850fi 19851 19852 19853{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 19854echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 19855if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 19856 echo $ECHO_N "(cached) $ECHO_C" >&6 19857else 19858 ac_ext=cpp 19859ac_cpp='$CXXCPP $CPPFLAGS' 19860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19863 19864 cat >conftest.$ac_ext <<_ACEOF 19865/* confdefs.h. */ 19866_ACEOF 19867cat confdefs.h >>conftest.$ac_ext 19868cat >>conftest.$ac_ext <<_ACEOF 19869/* end confdefs.h. */ 19870#include <math.h> 19871int 19872main () 19873{ 19874float f; isinf(f); 19875 ; 19876 return 0; 19877} 19878_ACEOF 19879rm -f conftest.$ac_objext 19880if { (ac_try="$ac_compile" 19881case "(($ac_try" in 19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19883 *) ac_try_echo=$ac_try;; 19884esac 19885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19886 (eval "$ac_compile") 2>conftest.er1 19887 ac_status=$? 19888 grep -v '^ *+' conftest.er1 >conftest.err 19889 rm -f conftest.er1 19890 cat conftest.err >&5 19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19892 (exit $ac_status); } && 19893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19894 { (case "(($ac_try" in 19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19896 *) ac_try_echo=$ac_try;; 19897esac 19898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19899 (eval "$ac_try") 2>&5 19900 ac_status=$? 19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19902 (exit $ac_status); }; } && 19903 { ac_try='test -s conftest.$ac_objext' 19904 { (case "(($ac_try" in 19905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19906 *) ac_try_echo=$ac_try;; 19907esac 19908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19909 (eval "$ac_try") 2>&5 19910 ac_status=$? 19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19912 (exit $ac_status); }; }; then 19913 ac_cv_func_isinf_in_math_h=yes 19914else 19915 echo "$as_me: failed program was:" >&5 19916sed 's/^/| /' conftest.$ac_ext >&5 19917 19918 ac_cv_func_isinf_in_math_h=no 19919fi 19920 19921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19922 ac_ext=c 19923ac_cpp='$CPP $CPPFLAGS' 19924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19926ac_compiler_gnu=$ac_cv_c_compiler_gnu 19927 19928fi 19929{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 19930echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 19931 19932if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 19933 19934cat >>confdefs.h <<\_ACEOF 19935#define HAVE_ISINF_IN_MATH_H 1 19936_ACEOF 19937 19938fi 19939 19940{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 19941echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 19942if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 19943 echo $ECHO_N "(cached) $ECHO_C" >&6 19944else 19945 ac_ext=cpp 19946ac_cpp='$CXXCPP $CPPFLAGS' 19947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19950 19951 cat >conftest.$ac_ext <<_ACEOF 19952/* confdefs.h. */ 19953_ACEOF 19954cat confdefs.h >>conftest.$ac_ext 19955cat >>conftest.$ac_ext <<_ACEOF 19956/* end confdefs.h. */ 19957#include <cmath> 19958int 19959main () 19960{ 19961float f; isinf(f); 19962 ; 19963 return 0; 19964} 19965_ACEOF 19966rm -f conftest.$ac_objext 19967if { (ac_try="$ac_compile" 19968case "(($ac_try" in 19969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19970 *) ac_try_echo=$ac_try;; 19971esac 19972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19973 (eval "$ac_compile") 2>conftest.er1 19974 ac_status=$? 19975 grep -v '^ *+' conftest.er1 >conftest.err 19976 rm -f conftest.er1 19977 cat conftest.err >&5 19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19979 (exit $ac_status); } && 19980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19981 { (case "(($ac_try" in 19982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19983 *) ac_try_echo=$ac_try;; 19984esac 19985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19986 (eval "$ac_try") 2>&5 19987 ac_status=$? 19988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19989 (exit $ac_status); }; } && 19990 { ac_try='test -s conftest.$ac_objext' 19991 { (case "(($ac_try" in 19992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19993 *) ac_try_echo=$ac_try;; 19994esac 19995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19996 (eval "$ac_try") 2>&5 19997 ac_status=$? 19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19999 (exit $ac_status); }; }; then 20000 ac_cv_func_isinf_in_cmath=yes 20001else 20002 echo "$as_me: failed program was:" >&5 20003sed 's/^/| /' conftest.$ac_ext >&5 20004 20005 ac_cv_func_isinf_in_cmath=no 20006fi 20007 20008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20009 ac_ext=c 20010ac_cpp='$CPP $CPPFLAGS' 20011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20013ac_compiler_gnu=$ac_cv_c_compiler_gnu 20014 20015fi 20016{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 20017echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 20018 20019if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 20020 20021cat >>confdefs.h <<\_ACEOF 20022#define HAVE_ISINF_IN_CMATH 1 20023_ACEOF 20024 20025fi 20026 20027{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 20028echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 20029if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 20030 echo $ECHO_N "(cached) $ECHO_C" >&6 20031else 20032 ac_ext=cpp 20033ac_cpp='$CXXCPP $CPPFLAGS' 20034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20037 20038 cat >conftest.$ac_ext <<_ACEOF 20039/* confdefs.h. */ 20040_ACEOF 20041cat confdefs.h >>conftest.$ac_ext 20042cat >>conftest.$ac_ext <<_ACEOF 20043/* end confdefs.h. */ 20044#include <cmath> 20045int 20046main () 20047{ 20048float f; std::isinf(f); 20049 ; 20050 return 0; 20051} 20052_ACEOF 20053rm -f conftest.$ac_objext 20054if { (ac_try="$ac_compile" 20055case "(($ac_try" in 20056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20057 *) ac_try_echo=$ac_try;; 20058esac 20059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20060 (eval "$ac_compile") 2>conftest.er1 20061 ac_status=$? 20062 grep -v '^ *+' conftest.er1 >conftest.err 20063 rm -f conftest.er1 20064 cat conftest.err >&5 20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20066 (exit $ac_status); } && 20067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20068 { (case "(($ac_try" in 20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20070 *) ac_try_echo=$ac_try;; 20071esac 20072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20073 (eval "$ac_try") 2>&5 20074 ac_status=$? 20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20076 (exit $ac_status); }; } && 20077 { ac_try='test -s conftest.$ac_objext' 20078 { (case "(($ac_try" in 20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20080 *) ac_try_echo=$ac_try;; 20081esac 20082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20083 (eval "$ac_try") 2>&5 20084 ac_status=$? 20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20086 (exit $ac_status); }; }; then 20087 ac_cv_func_std_isinf_in_cmath=yes 20088else 20089 echo "$as_me: failed program was:" >&5 20090sed 's/^/| /' conftest.$ac_ext >&5 20091 20092 ac_cv_func_std_isinf_in_cmath=no 20093fi 20094 20095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20096 ac_ext=c 20097ac_cpp='$CPP $CPPFLAGS' 20098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20100ac_compiler_gnu=$ac_cv_c_compiler_gnu 20101 20102fi 20103{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 20104echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 20105 20106if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 20107 20108cat >>confdefs.h <<\_ACEOF 20109#define HAVE_STD_ISINF_IN_CMATH 1 20110_ACEOF 20111 20112fi 20113 20114{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 20115echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 20116if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 20117 echo $ECHO_N "(cached) $ECHO_C" >&6 20118else 20119 ac_ext=cpp 20120ac_cpp='$CXXCPP $CPPFLAGS' 20121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20124 20125 cat >conftest.$ac_ext <<_ACEOF 20126/* confdefs.h. */ 20127_ACEOF 20128cat confdefs.h >>conftest.$ac_ext 20129cat >>conftest.$ac_ext <<_ACEOF 20130/* end confdefs.h. */ 20131#include <ieeefp.h> 20132int 20133main () 20134{ 20135float f; finite(f); 20136 ; 20137 return 0; 20138} 20139_ACEOF 20140rm -f conftest.$ac_objext 20141if { (ac_try="$ac_compile" 20142case "(($ac_try" in 20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20144 *) ac_try_echo=$ac_try;; 20145esac 20146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20147 (eval "$ac_compile") 2>conftest.er1 20148 ac_status=$? 20149 grep -v '^ *+' conftest.er1 >conftest.err 20150 rm -f conftest.er1 20151 cat conftest.err >&5 20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20153 (exit $ac_status); } && 20154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20155 { (case "(($ac_try" in 20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20157 *) ac_try_echo=$ac_try;; 20158esac 20159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20160 (eval "$ac_try") 2>&5 20161 ac_status=$? 20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20163 (exit $ac_status); }; } && 20164 { ac_try='test -s conftest.$ac_objext' 20165 { (case "(($ac_try" in 20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20167 *) ac_try_echo=$ac_try;; 20168esac 20169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20170 (eval "$ac_try") 2>&5 20171 ac_status=$? 20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20173 (exit $ac_status); }; }; then 20174 ac_cv_func_finite_in_ieeefp_h=yes 20175else 20176 echo "$as_me: failed program was:" >&5 20177sed 's/^/| /' conftest.$ac_ext >&5 20178 20179 ac_cv_func_finite_in_ieeefp_h=no 20180fi 20181 20182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20183 ac_ext=c 20184ac_cpp='$CPP $CPPFLAGS' 20185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20187ac_compiler_gnu=$ac_cv_c_compiler_gnu 20188 20189fi 20190{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 20191echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 20192 20193if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 20194 20195cat >>confdefs.h <<\_ACEOF 20196#define HAVE_FINITE_IN_IEEEFP_H 1 20197_ACEOF 20198 20199fi 20200 20201 20202 20203if test "$llvm_cv_platform_type" = "Unix" ; then 20204 20205 20206for ac_header in stdlib.h unistd.h 20207do 20208as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20210 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20213 echo $ECHO_N "(cached) $ECHO_C" >&6 20214fi 20215ac_res=`eval echo '${'$as_ac_Header'}'` 20216 { echo "$as_me:$LINENO: result: $ac_res" >&5 20217echo "${ECHO_T}$ac_res" >&6; } 20218else 20219 # Is the header compilable? 20220{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20222cat >conftest.$ac_ext <<_ACEOF 20223/* confdefs.h. */ 20224_ACEOF 20225cat confdefs.h >>conftest.$ac_ext 20226cat >>conftest.$ac_ext <<_ACEOF 20227/* end confdefs.h. */ 20228$ac_includes_default 20229#include <$ac_header> 20230_ACEOF 20231rm -f conftest.$ac_objext 20232if { (ac_try="$ac_compile" 20233case "(($ac_try" in 20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20235 *) ac_try_echo=$ac_try;; 20236esac 20237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20238 (eval "$ac_compile") 2>conftest.er1 20239 ac_status=$? 20240 grep -v '^ *+' conftest.er1 >conftest.err 20241 rm -f conftest.er1 20242 cat conftest.err >&5 20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20244 (exit $ac_status); } && 20245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20246 { (case "(($ac_try" in 20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20248 *) ac_try_echo=$ac_try;; 20249esac 20250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20251 (eval "$ac_try") 2>&5 20252 ac_status=$? 20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20254 (exit $ac_status); }; } && 20255 { ac_try='test -s conftest.$ac_objext' 20256 { (case "(($ac_try" in 20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20258 *) ac_try_echo=$ac_try;; 20259esac 20260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20261 (eval "$ac_try") 2>&5 20262 ac_status=$? 20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20264 (exit $ac_status); }; }; then 20265 ac_header_compiler=yes 20266else 20267 echo "$as_me: failed program was:" >&5 20268sed 's/^/| /' conftest.$ac_ext >&5 20269 20270 ac_header_compiler=no 20271fi 20272 20273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20274{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20275echo "${ECHO_T}$ac_header_compiler" >&6; } 20276 20277# Is the header present? 20278{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20279echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20280cat >conftest.$ac_ext <<_ACEOF 20281/* confdefs.h. */ 20282_ACEOF 20283cat confdefs.h >>conftest.$ac_ext 20284cat >>conftest.$ac_ext <<_ACEOF 20285/* end confdefs.h. */ 20286#include <$ac_header> 20287_ACEOF 20288if { (ac_try="$ac_cpp conftest.$ac_ext" 20289case "(($ac_try" in 20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20291 *) ac_try_echo=$ac_try;; 20292esac 20293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20295 ac_status=$? 20296 grep -v '^ *+' conftest.er1 >conftest.err 20297 rm -f conftest.er1 20298 cat conftest.err >&5 20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20300 (exit $ac_status); } >/dev/null; then 20301 if test -s conftest.err; then 20302 ac_cpp_err=$ac_c_preproc_warn_flag 20303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20304 else 20305 ac_cpp_err= 20306 fi 20307else 20308 ac_cpp_err=yes 20309fi 20310if test -z "$ac_cpp_err"; then 20311 ac_header_preproc=yes 20312else 20313 echo "$as_me: failed program was:" >&5 20314sed 's/^/| /' conftest.$ac_ext >&5 20315 20316 ac_header_preproc=no 20317fi 20318 20319rm -f conftest.err conftest.$ac_ext 20320{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20321echo "${ECHO_T}$ac_header_preproc" >&6; } 20322 20323# So? What about this header? 20324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20325 yes:no: ) 20326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20327echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20329echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20330 ac_header_preproc=yes 20331 ;; 20332 no:yes:* ) 20333 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20334echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20335 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20336echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20337 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20338echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20339 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20340echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20342echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20343 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20344echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20345 ( cat <<\_ASBOX 20346## ------------------------------------ ## 20347## Report this to http://llvm.org/bugs/ ## 20348## ------------------------------------ ## 20349_ASBOX 20350 ) | sed "s/^/$as_me: WARNING: /" >&2 20351 ;; 20352esac 20353{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20356 echo $ECHO_N "(cached) $ECHO_C" >&6 20357else 20358 eval "$as_ac_Header=\$ac_header_preproc" 20359fi 20360ac_res=`eval echo '${'$as_ac_Header'}'` 20361 { echo "$as_me:$LINENO: result: $ac_res" >&5 20362echo "${ECHO_T}$ac_res" >&6; } 20363 20364fi 20365if test `eval echo '${'$as_ac_Header'}'` = yes; then 20366 cat >>confdefs.h <<_ACEOF 20367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20368_ACEOF 20369 20370fi 20371 20372done 20373 20374 20375for ac_func in getpagesize 20376do 20377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20378{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20380if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20381 echo $ECHO_N "(cached) $ECHO_C" >&6 20382else 20383 cat >conftest.$ac_ext <<_ACEOF 20384/* confdefs.h. */ 20385_ACEOF 20386cat confdefs.h >>conftest.$ac_ext 20387cat >>conftest.$ac_ext <<_ACEOF 20388/* end confdefs.h. */ 20389/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20390 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20391#define $ac_func innocuous_$ac_func 20392 20393/* System header to define __stub macros and hopefully few prototypes, 20394 which can conflict with char $ac_func (); below. 20395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20396 <limits.h> exists even on freestanding compilers. */ 20397 20398#ifdef __STDC__ 20399# include <limits.h> 20400#else 20401# include <assert.h> 20402#endif 20403 20404#undef $ac_func 20405 20406/* Override any GCC internal prototype to avoid an error. 20407 Use char because int might match the return type of a GCC 20408 builtin and then its argument prototype would still apply. */ 20409#ifdef __cplusplus 20410extern "C" 20411#endif 20412char $ac_func (); 20413/* The GNU C library defines this for functions which it implements 20414 to always fail with ENOSYS. Some functions are actually named 20415 something starting with __ and the normal name is an alias. */ 20416#if defined __stub_$ac_func || defined __stub___$ac_func 20417choke me 20418#endif 20419 20420int 20421main () 20422{ 20423return $ac_func (); 20424 ; 20425 return 0; 20426} 20427_ACEOF 20428rm -f conftest.$ac_objext conftest$ac_exeext 20429if { (ac_try="$ac_link" 20430case "(($ac_try" in 20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20432 *) ac_try_echo=$ac_try;; 20433esac 20434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20435 (eval "$ac_link") 2>conftest.er1 20436 ac_status=$? 20437 grep -v '^ *+' conftest.er1 >conftest.err 20438 rm -f conftest.er1 20439 cat conftest.err >&5 20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20441 (exit $ac_status); } && 20442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20443 { (case "(($ac_try" in 20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20445 *) ac_try_echo=$ac_try;; 20446esac 20447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20448 (eval "$ac_try") 2>&5 20449 ac_status=$? 20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20451 (exit $ac_status); }; } && 20452 { ac_try='test -s conftest$ac_exeext' 20453 { (case "(($ac_try" in 20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20455 *) ac_try_echo=$ac_try;; 20456esac 20457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20458 (eval "$ac_try") 2>&5 20459 ac_status=$? 20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20461 (exit $ac_status); }; }; then 20462 eval "$as_ac_var=yes" 20463else 20464 echo "$as_me: failed program was:" >&5 20465sed 's/^/| /' conftest.$ac_ext >&5 20466 20467 eval "$as_ac_var=no" 20468fi 20469 20470rm -f core conftest.err conftest.$ac_objext \ 20471 conftest$ac_exeext conftest.$ac_ext 20472fi 20473ac_res=`eval echo '${'$as_ac_var'}'` 20474 { echo "$as_me:$LINENO: result: $ac_res" >&5 20475echo "${ECHO_T}$ac_res" >&6; } 20476if test `eval echo '${'$as_ac_var'}'` = yes; then 20477 cat >>confdefs.h <<_ACEOF 20478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20479_ACEOF 20480 20481fi 20482done 20483 20484{ echo "$as_me:$LINENO: checking for working mmap" >&5 20485echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 20486if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 20487 echo $ECHO_N "(cached) $ECHO_C" >&6 20488else 20489 if test "$cross_compiling" = yes; then 20490 ac_cv_func_mmap_fixed_mapped=no 20491else 20492 cat >conftest.$ac_ext <<_ACEOF 20493/* confdefs.h. */ 20494_ACEOF 20495cat confdefs.h >>conftest.$ac_ext 20496cat >>conftest.$ac_ext <<_ACEOF 20497/* end confdefs.h. */ 20498$ac_includes_default 20499/* malloc might have been renamed as rpl_malloc. */ 20500#undef malloc 20501 20502/* Thanks to Mike Haertel and Jim Avera for this test. 20503 Here is a matrix of mmap possibilities: 20504 mmap private not fixed 20505 mmap private fixed at somewhere currently unmapped 20506 mmap private fixed at somewhere already mapped 20507 mmap shared not fixed 20508 mmap shared fixed at somewhere currently unmapped 20509 mmap shared fixed at somewhere already mapped 20510 For private mappings, we should verify that changes cannot be read() 20511 back from the file, nor mmap's back from the file at a different 20512 address. (There have been systems where private was not correctly 20513 implemented like the infamous i386 svr4.0, and systems where the 20514 VM page cache was not coherent with the file system buffer cache 20515 like early versions of FreeBSD and possibly contemporary NetBSD.) 20516 For shared mappings, we should conversely verify that changes get 20517 propagated back to all the places they're supposed to be. 20518 20519 Grep wants private fixed already mapped. 20520 The main things grep needs to know about mmap are: 20521 * does it exist and is it safe to write into the mmap'd area 20522 * how to use it (BSD variants) */ 20523 20524#include <fcntl.h> 20525#include <sys/mman.h> 20526 20527#if !STDC_HEADERS && !HAVE_STDLIB_H 20528char *malloc (); 20529#endif 20530 20531/* This mess was copied from the GNU getpagesize.h. */ 20532#if !HAVE_GETPAGESIZE 20533/* Assume that all systems that can run configure have sys/param.h. */ 20534# if !HAVE_SYS_PARAM_H 20535# define HAVE_SYS_PARAM_H 1 20536# endif 20537 20538# ifdef _SC_PAGESIZE 20539# define getpagesize() sysconf(_SC_PAGESIZE) 20540# else /* no _SC_PAGESIZE */ 20541# if HAVE_SYS_PARAM_H 20542# include <sys/param.h> 20543# ifdef EXEC_PAGESIZE 20544# define getpagesize() EXEC_PAGESIZE 20545# else /* no EXEC_PAGESIZE */ 20546# ifdef NBPG 20547# define getpagesize() NBPG * CLSIZE 20548# ifndef CLSIZE 20549# define CLSIZE 1 20550# endif /* no CLSIZE */ 20551# else /* no NBPG */ 20552# ifdef NBPC 20553# define getpagesize() NBPC 20554# else /* no NBPC */ 20555# ifdef PAGESIZE 20556# define getpagesize() PAGESIZE 20557# endif /* PAGESIZE */ 20558# endif /* no NBPC */ 20559# endif /* no NBPG */ 20560# endif /* no EXEC_PAGESIZE */ 20561# else /* no HAVE_SYS_PARAM_H */ 20562# define getpagesize() 8192 /* punt totally */ 20563# endif /* no HAVE_SYS_PARAM_H */ 20564# endif /* no _SC_PAGESIZE */ 20565 20566#endif /* no HAVE_GETPAGESIZE */ 20567 20568int 20569main () 20570{ 20571 char *data, *data2, *data3; 20572 int i, pagesize; 20573 int fd; 20574 20575 pagesize = getpagesize (); 20576 20577 /* First, make a file with some known garbage in it. */ 20578 data = (char *) malloc (pagesize); 20579 if (!data) 20580 return 1; 20581 for (i = 0; i < pagesize; ++i) 20582 *(data + i) = rand (); 20583 umask (0); 20584 fd = creat ("conftest.mmap", 0600); 20585 if (fd < 0) 20586 return 1; 20587 if (write (fd, data, pagesize) != pagesize) 20588 return 1; 20589 close (fd); 20590 20591 /* Next, try to mmap the file at a fixed address which already has 20592 something else allocated at it. If we can, also make sure that 20593 we see the same garbage. */ 20594 fd = open ("conftest.mmap", O_RDWR); 20595 if (fd < 0) 20596 return 1; 20597 data2 = (char *) malloc (2 * pagesize); 20598 if (!data2) 20599 return 1; 20600 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 20601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20602 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20603 return 1; 20604 for (i = 0; i < pagesize; ++i) 20605 if (*(data + i) != *(data2 + i)) 20606 return 1; 20607 20608 /* Finally, make sure that changes to the mapped area do not 20609 percolate back to the file as seen by read(). (This is a bug on 20610 some variants of i386 svr4.0.) */ 20611 for (i = 0; i < pagesize; ++i) 20612 *(data2 + i) = *(data2 + i) + 1; 20613 data3 = (char *) malloc (pagesize); 20614 if (!data3) 20615 return 1; 20616 if (read (fd, data3, pagesize) != pagesize) 20617 return 1; 20618 for (i = 0; i < pagesize; ++i) 20619 if (*(data + i) != *(data3 + i)) 20620 return 1; 20621 close (fd); 20622 return 0; 20623} 20624_ACEOF 20625rm -f conftest$ac_exeext 20626if { (ac_try="$ac_link" 20627case "(($ac_try" in 20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20629 *) ac_try_echo=$ac_try;; 20630esac 20631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20632 (eval "$ac_link") 2>&5 20633 ac_status=$? 20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 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); }; }; then 20645 ac_cv_func_mmap_fixed_mapped=yes 20646else 20647 echo "$as_me: program exited with status $ac_status" >&5 20648echo "$as_me: failed program was:" >&5 20649sed 's/^/| /' conftest.$ac_ext >&5 20650 20651( exit $ac_status ) 20652ac_cv_func_mmap_fixed_mapped=no 20653fi 20654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20655fi 20656 20657 20658fi 20659{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 20660echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 20661if test $ac_cv_func_mmap_fixed_mapped = yes; then 20662 20663cat >>confdefs.h <<\_ACEOF 20664#define HAVE_MMAP 1 20665_ACEOF 20666 20667fi 20668rm -f conftest.mmap 20669 20670 { echo "$as_me:$LINENO: checking for mmap of files" >&5 20671echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 20672if test "${ac_cv_func_mmap_file+set}" = set; then 20673 echo $ECHO_N "(cached) $ECHO_C" >&6 20674else 20675 ac_ext=c 20676ac_cpp='$CPP $CPPFLAGS' 20677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20679ac_compiler_gnu=$ac_cv_c_compiler_gnu 20680 20681 if test "$cross_compiling" = yes; then 20682 ac_cv_func_mmap_file=no 20683else 20684 cat >conftest.$ac_ext <<_ACEOF 20685 20686 /* confdefs.h. */ 20687_ACEOF 20688cat confdefs.h >>conftest.$ac_ext 20689cat >>conftest.$ac_ext <<_ACEOF 20690/* end confdefs.h. */ 20691 20692#include <sys/types.h> 20693#include <sys/mman.h> 20694#include <fcntl.h> 20695 20696int 20697main () 20698{ 20699 20700 int fd; 20701 fd = creat ("foo",0777); 20702 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 20703 unlink ("foo"); 20704 return (fd != (int) MAP_FAILED); 20705 ; 20706 return 0; 20707} 20708_ACEOF 20709rm -f conftest$ac_exeext 20710if { (ac_try="$ac_link" 20711case "(($ac_try" in 20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20713 *) ac_try_echo=$ac_try;; 20714esac 20715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20716 (eval "$ac_link") 2>&5 20717 ac_status=$? 20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20720 { (case "(($ac_try" in 20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20722 *) ac_try_echo=$ac_try;; 20723esac 20724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20725 (eval "$ac_try") 2>&5 20726 ac_status=$? 20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20728 (exit $ac_status); }; }; then 20729 ac_cv_func_mmap_file=yes 20730else 20731 echo "$as_me: program exited with status $ac_status" >&5 20732echo "$as_me: failed program was:" >&5 20733sed 's/^/| /' conftest.$ac_ext >&5 20734 20735( exit $ac_status ) 20736ac_cv_func_mmap_file=no 20737fi 20738rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20739fi 20740 20741 20742 ac_ext=c 20743ac_cpp='$CPP $CPPFLAGS' 20744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20746ac_compiler_gnu=$ac_cv_c_compiler_gnu 20747 20748 20749fi 20750{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 20751echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 20752if test "$ac_cv_func_mmap_file" = yes; then 20753 20754cat >>confdefs.h <<\_ACEOF 20755#define HAVE_MMAP_FILE 20756_ACEOF 20757 20758 MMAP_FILE=yes 20759 20760fi 20761 20762 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 20763echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 20764if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 20765 echo $ECHO_N "(cached) $ECHO_C" >&6 20766else 20767 if test "$llvm_cv_os_type" = "Interix" ; then 20768 ac_cv_need_dev_zero_for_mmap=yes 20769 else 20770 ac_cv_need_dev_zero_for_mmap=no 20771 fi 20772 20773fi 20774{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 20775echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 20776if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 20777 20778cat >>confdefs.h <<\_ACEOF 20779#define NEED_DEV_ZERO_FOR_MMAP 1 20780_ACEOF 20781 20782fi 20783 20784 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 20785 then 20786 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 20787echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 20788 fi 20789 if test "$ac_cv_func_mmap_file" = "no" 20790 then 20791 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 20792echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 20793 fi 20794fi 20795 20796{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 20797echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 20798ac_ext=cpp 20799ac_cpp='$CXXCPP $CPPFLAGS' 20800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20803 20804cat >conftest.$ac_ext <<_ACEOF 20805/* confdefs.h. */ 20806_ACEOF 20807cat confdefs.h >>conftest.$ac_ext 20808cat >>conftest.$ac_ext <<_ACEOF 20809/* end confdefs.h. */ 20810int main() { 20811 volatile unsigned long val = 1; 20812 __sync_synchronize(); 20813 __sync_val_compare_and_swap(&val, 1, 0); 20814 __sync_add_and_fetch(&val, 1); 20815 __sync_sub_and_fetch(&val, 1); 20816 return 0; 20817 } 20818 20819_ACEOF 20820rm -f conftest.$ac_objext conftest$ac_exeext 20821if { (ac_try="$ac_link" 20822case "(($ac_try" in 20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20824 *) ac_try_echo=$ac_try;; 20825esac 20826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20827 (eval "$ac_link") 2>conftest.er1 20828 ac_status=$? 20829 grep -v '^ *+' conftest.er1 >conftest.err 20830 rm -f conftest.er1 20831 cat conftest.err >&5 20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20833 (exit $ac_status); } && 20834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20835 { (case "(($ac_try" in 20836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20837 *) ac_try_echo=$ac_try;; 20838esac 20839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20840 (eval "$ac_try") 2>&5 20841 ac_status=$? 20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20843 (exit $ac_status); }; } && 20844 { ac_try='test -s conftest$ac_exeext' 20845 { (case "(($ac_try" in 20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20847 *) ac_try_echo=$ac_try;; 20848esac 20849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20850 (eval "$ac_try") 2>&5 20851 ac_status=$? 20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20853 (exit $ac_status); }; }; then 20854 ac_ext=c 20855ac_cpp='$CPP $CPPFLAGS' 20856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20858ac_compiler_gnu=$ac_cv_c_compiler_gnu 20859 20860 { echo "$as_me:$LINENO: result: yes" >&5 20861echo "${ECHO_T}yes" >&6; } 20862 20863cat >>confdefs.h <<\_ACEOF 20864#define LLVM_HAS_ATOMICS 1 20865_ACEOF 20866 20867else 20868 echo "$as_me: failed program was:" >&5 20869sed 's/^/| /' conftest.$ac_ext >&5 20870 20871 { echo "$as_me:$LINENO: result: no" >&5 20872echo "${ECHO_T}no" >&6; } 20873 20874cat >>confdefs.h <<\_ACEOF 20875#define LLVM_HAS_ATOMICS 0 20876_ACEOF 20877 20878 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 20879echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 20880fi 20881 20882rm -f core conftest.err conftest.$ac_objext \ 20883 conftest$ac_exeext conftest.$ac_ext 20884 20885 20886if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 20887 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 20888echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 20889if test "${llvm_cv_linux_mixed+set}" = set; then 20890 echo $ECHO_N "(cached) $ECHO_C" >&6 20891else 20892 ac_ext=c 20893ac_cpp='$CPP $CPPFLAGS' 20894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20896ac_compiler_gnu=$ac_cv_c_compiler_gnu 20897 20898 cat >conftest.$ac_ext <<_ACEOF 20899/* confdefs.h. */ 20900_ACEOF 20901cat confdefs.h >>conftest.$ac_ext 20902cat >>conftest.$ac_ext <<_ACEOF 20903/* end confdefs.h. */ 20904#ifndef __x86_64__ 20905 error: Not x86-64 even if uname says so! 20906 #endif 20907 20908int 20909main () 20910{ 20911 20912 ; 20913 return 0; 20914} 20915_ACEOF 20916rm -f conftest.$ac_objext 20917if { (ac_try="$ac_compile" 20918case "(($ac_try" in 20919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20920 *) ac_try_echo=$ac_try;; 20921esac 20922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20923 (eval "$ac_compile") 2>conftest.er1 20924 ac_status=$? 20925 grep -v '^ *+' conftest.er1 >conftest.err 20926 rm -f conftest.er1 20927 cat conftest.err >&5 20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20929 (exit $ac_status); } && 20930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20931 { (case "(($ac_try" in 20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20933 *) ac_try_echo=$ac_try;; 20934esac 20935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20936 (eval "$ac_try") 2>&5 20937 ac_status=$? 20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20939 (exit $ac_status); }; } && 20940 { ac_try='test -s conftest.$ac_objext' 20941 { (case "(($ac_try" in 20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20943 *) ac_try_echo=$ac_try;; 20944esac 20945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20946 (eval "$ac_try") 2>&5 20947 ac_status=$? 20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20949 (exit $ac_status); }; }; then 20950 llvm_cv_linux_mixed=no 20951else 20952 echo "$as_me: failed program was:" >&5 20953sed 's/^/| /' conftest.$ac_ext >&5 20954 20955 llvm_cv_linux_mixed=yes 20956fi 20957 20958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20959 ac_ext=c 20960ac_cpp='$CPP $CPPFLAGS' 20961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20963ac_compiler_gnu=$ac_cv_c_compiler_gnu 20964 20965 20966fi 20967{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 20968echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 20969 20970 if test "$llvm_cv_linux_mixed" = "yes"; then 20971 llvm_cv_target_arch="x86" 20972 ARCH="x86" 20973 fi 20974fi 20975 20976 20977for ac_func in __dso_handle 20978do 20979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20980{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20982if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20983 echo $ECHO_N "(cached) $ECHO_C" >&6 20984else 20985 cat >conftest.$ac_ext <<_ACEOF 20986/* confdefs.h. */ 20987_ACEOF 20988cat confdefs.h >>conftest.$ac_ext 20989cat >>conftest.$ac_ext <<_ACEOF 20990/* end confdefs.h. */ 20991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20992 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20993#define $ac_func innocuous_$ac_func 20994 20995/* System header to define __stub macros and hopefully few prototypes, 20996 which can conflict with char $ac_func (); below. 20997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20998 <limits.h> exists even on freestanding compilers. */ 20999 21000#ifdef __STDC__ 21001# include <limits.h> 21002#else 21003# include <assert.h> 21004#endif 21005 21006#undef $ac_func 21007 21008/* Override any GCC internal prototype to avoid an error. 21009 Use char because int might match the return type of a GCC 21010 builtin and then its argument prototype would still apply. */ 21011#ifdef __cplusplus 21012extern "C" 21013#endif 21014char $ac_func (); 21015/* The GNU C library defines this for functions which it implements 21016 to always fail with ENOSYS. Some functions are actually named 21017 something starting with __ and the normal name is an alias. */ 21018#if defined __stub_$ac_func || defined __stub___$ac_func 21019choke me 21020#endif 21021 21022int 21023main () 21024{ 21025return $ac_func (); 21026 ; 21027 return 0; 21028} 21029_ACEOF 21030rm -f conftest.$ac_objext conftest$ac_exeext 21031if { (ac_try="$ac_link" 21032case "(($ac_try" in 21033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21034 *) ac_try_echo=$ac_try;; 21035esac 21036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21037 (eval "$ac_link") 2>conftest.er1 21038 ac_status=$? 21039 grep -v '^ *+' conftest.er1 >conftest.err 21040 rm -f conftest.er1 21041 cat conftest.err >&5 21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21043 (exit $ac_status); } && 21044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21045 { (case "(($ac_try" in 21046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21047 *) ac_try_echo=$ac_try;; 21048esac 21049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21050 (eval "$ac_try") 2>&5 21051 ac_status=$? 21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21053 (exit $ac_status); }; } && 21054 { ac_try='test -s conftest$ac_exeext' 21055 { (case "(($ac_try" in 21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21057 *) ac_try_echo=$ac_try;; 21058esac 21059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21060 (eval "$ac_try") 2>&5 21061 ac_status=$? 21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21063 (exit $ac_status); }; }; then 21064 eval "$as_ac_var=yes" 21065else 21066 echo "$as_me: failed program was:" >&5 21067sed 's/^/| /' conftest.$ac_ext >&5 21068 21069 eval "$as_ac_var=no" 21070fi 21071 21072rm -f core conftest.err conftest.$ac_objext \ 21073 conftest$ac_exeext conftest.$ac_ext 21074fi 21075ac_res=`eval echo '${'$as_ac_var'}'` 21076 { echo "$as_me:$LINENO: result: $ac_res" >&5 21077echo "${ECHO_T}$ac_res" >&6; } 21078if test `eval echo '${'$as_ac_var'}'` = yes; then 21079 cat >>confdefs.h <<_ACEOF 21080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 21081_ACEOF 21082 21083fi 21084done 21085 21086 21087SHLIBEXT=$libltdl_cv_shlibext 21088 21089 21090SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 21091 21092 21093if test "${prefix}" = "NONE" ; then 21094 prefix="/usr/local" 21095fi 21096eval LLVM_PREFIX="${prefix}"; 21097eval LLVM_BINDIR="${prefix}/bin"; 21098eval LLVM_LIBDIR="${prefix}/lib"; 21099eval LLVM_DATADIR="${prefix}/share/llvm"; 21100eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 21101eval LLVM_ETCDIR="${prefix}/etc/llvm"; 21102eval LLVM_INCLUDEDIR="${prefix}/include"; 21103eval LLVM_INFODIR="${prefix}/info"; 21104eval LLVM_MANDIR="${prefix}/man"; 21105LLVM_CONFIGTIME=`date` 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117if test "${ENABLE_TIMESTAMPS}" = "0"; then 21118 LLVM_CONFIGTIME="(timestamp not enabled)" 21119fi 21120 21121 21122cat >>confdefs.h <<_ACEOF 21123#define LLVM_PREFIX "$LLVM_PREFIX" 21124_ACEOF 21125 21126 21127cat >>confdefs.h <<_ACEOF 21128#define LLVM_BINDIR "$LLVM_BINDIR" 21129_ACEOF 21130 21131 21132cat >>confdefs.h <<_ACEOF 21133#define LLVM_LIBDIR "$LLVM_LIBDIR" 21134_ACEOF 21135 21136 21137cat >>confdefs.h <<_ACEOF 21138#define LLVM_DATADIR "$LLVM_DATADIR" 21139_ACEOF 21140 21141 21142cat >>confdefs.h <<_ACEOF 21143#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 21144_ACEOF 21145 21146 21147cat >>confdefs.h <<_ACEOF 21148#define LLVM_ETCDIR "$LLVM_ETCDIR" 21149_ACEOF 21150 21151 21152cat >>confdefs.h <<_ACEOF 21153#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 21154_ACEOF 21155 21156 21157cat >>confdefs.h <<_ACEOF 21158#define LLVM_INFODIR "$LLVM_INFODIR" 21159_ACEOF 21160 21161 21162cat >>confdefs.h <<_ACEOF 21163#define LLVM_MANDIR "$LLVM_MANDIR" 21164_ACEOF 21165 21166 21167cat >>confdefs.h <<_ACEOF 21168#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 21169_ACEOF 21170 21171 21172cat >>confdefs.h <<_ACEOF 21173#define LLVM_HOSTTRIPLE "$host" 21174_ACEOF 21175 21176 21177cat >>confdefs.h <<_ACEOF 21178#define LLVM_DEFAULT_TARGET_TRIPLE "$target" 21179_ACEOF 21180 21181 21182if test "$BINDINGS_TO_BUILD" = auto ; then 21183 BINDINGS_TO_BUILD="" 21184 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 21185 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 21186 fi 21187fi 21188BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 21189 21190 21191ALL_BINDINGS=ocaml 21192 21193 21194binding_prereqs_failed=0 21195for a_binding in $BINDINGS_TO_BUILD ; do 21196 case "$a_binding" in 21197 ocaml) 21198 if test "x$OCAMLC" = x ; then 21199 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 21200echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 21201 binding_prereqs_failed=1 21202 fi 21203 if test "x$OCAMLDEP" = x ; then 21204 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 21205echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 21206 binding_prereqs_failed=1 21207 fi 21208 if test "x$OCAMLOPT" = x ; then 21209 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 21210echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 21211 fi 21212 if test "x$with_ocaml_libdir" != xauto ; then 21213 OCAML_LIBDIR=$with_ocaml_libdir 21214 21215 else 21216 ocaml_stdlib="`"$OCAMLC" -where`" 21217 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 21218 then 21219 # ocaml stdlib is beneath our prefix; use stdlib 21220 OCAML_LIBDIR=$ocaml_stdlib 21221 21222 else 21223 # ocaml stdlib is outside our prefix; use libdir/ocaml 21224 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 21225 21226 fi 21227 fi 21228 ;; 21229 esac 21230done 21231if test "$binding_prereqs_failed" = 1 ; then 21232 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 21233echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 21234 { (exit 1); exit 1; }; } 21235fi 21236 21237{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 21238echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 21239if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 21240 echo $ECHO_N "(cached) $ECHO_C" >&6 21241else 21242 ac_ext=cpp 21243ac_cpp='$CXXCPP $CPPFLAGS' 21244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21247 21248 oldcxxflags="$CXXFLAGS" 21249 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 21250 cat >conftest.$ac_ext <<_ACEOF 21251/* confdefs.h. */ 21252_ACEOF 21253cat confdefs.h >>conftest.$ac_ext 21254cat >>conftest.$ac_ext <<_ACEOF 21255/* end confdefs.h. */ 21256template <typename T> struct X { void __attribute__((noinline)) f() {} }; 21257int 21258main () 21259{ 21260X<int>().f(); 21261 ; 21262 return 0; 21263} 21264_ACEOF 21265rm -f conftest.$ac_objext 21266if { (ac_try="$ac_compile" 21267case "(($ac_try" in 21268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21269 *) ac_try_echo=$ac_try;; 21270esac 21271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21272 (eval "$ac_compile") 2>conftest.er1 21273 ac_status=$? 21274 grep -v '^ *+' conftest.er1 >conftest.err 21275 rm -f conftest.er1 21276 cat conftest.err >&5 21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21278 (exit $ac_status); } && 21279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 21280 { (case "(($ac_try" in 21281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21282 *) ac_try_echo=$ac_try;; 21283esac 21284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21285 (eval "$ac_try") 2>&5 21286 ac_status=$? 21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21288 (exit $ac_status); }; } && 21289 { ac_try='test -s conftest.$ac_objext' 21290 { (case "(($ac_try" in 21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21292 *) ac_try_echo=$ac_try;; 21293esac 21294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21295 (eval "$ac_try") 2>&5 21296 ac_status=$? 21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21298 (exit $ac_status); }; }; then 21299 llvm_cv_cxx_visibility_inlines_hidden=yes 21300else 21301 echo "$as_me: failed program was:" >&5 21302sed 's/^/| /' conftest.$ac_ext >&5 21303 21304 llvm_cv_cxx_visibility_inlines_hidden=no 21305fi 21306 21307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21308 CXXFLAGS="$oldcxxflags" 21309 ac_ext=c 21310ac_cpp='$CPP $CPPFLAGS' 21311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21313ac_compiler_gnu=$ac_cv_c_compiler_gnu 21314 21315 21316fi 21317{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 21318echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 21319if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 21320 ENABLE_VISIBILITY_INLINES_HIDDEN=1 21321 21322else 21323 ENABLE_VISIBILITY_INLINES_HIDDEN=0 21324 21325fi 21326 21327 21328if test "$llvm_cv_link_use_r" = "yes" ; then 21329 RPATH="-Wl,-R" 21330else 21331 RPATH="-Wl,-rpath" 21332fi 21333 21334 21335if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 21336 RDYNAMIC="-Wl,-export-dynamic" 21337else 21338 RDYNAMIC="" 21339fi 21340 21341 21342 21343ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 21344 21345 21346 21347 21348 21349 21350ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 21351 21352ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 21353 21354ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 21355 21356ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 21357 21358ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 21359 21360 21361ac_config_files="$ac_config_files Makefile.config" 21362 21363 21364ac_config_files="$ac_config_files llvm.spec" 21365 21366 21367ac_config_files="$ac_config_files docs/doxygen.cfg" 21368 21369 21370if test "${clang_src_root}" = ""; then 21371 clang_src_root="$srcdir/tools/clang" 21372fi 21373if test -f ${clang_src_root}/README.txt; then 21374 configh="include/clang/Config/config.h" 21375 doxy="docs/doxygen.cfg" 21376 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in" 21377 21378 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in" 21379 21380fi 21381 21382ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" 21383 21384 21385ac_config_commands="$ac_config_commands setup" 21386 21387ac_config_commands="$ac_config_commands Makefile" 21388 21389 21390ac_config_commands="$ac_config_commands Makefile.common" 21391 21392 21393ac_config_commands="$ac_config_commands examples/Makefile" 21394 21395 21396ac_config_commands="$ac_config_commands lib/Makefile" 21397 21398 21399ac_config_commands="$ac_config_commands runtime/Makefile" 21400 21401 21402ac_config_commands="$ac_config_commands test/Makefile" 21403 21404 21405ac_config_commands="$ac_config_commands test/Makefile.tests" 21406 21407 21408ac_config_commands="$ac_config_commands unittests/Makefile" 21409 21410 21411ac_config_commands="$ac_config_commands tools/Makefile" 21412 21413 21414ac_config_commands="$ac_config_commands utils/Makefile" 21415 21416 21417ac_config_commands="$ac_config_commands projects/Makefile" 21418 21419 21420ac_config_commands="$ac_config_commands bindings/Makefile" 21421 21422 21423ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 21424 21425 21426 21427cat >confcache <<\_ACEOF 21428# This file is a shell script that caches the results of configure 21429# tests run on this system so they can be shared between configure 21430# scripts and configure runs, see configure's option --config-cache. 21431# It is not useful on other systems. If it contains results you don't 21432# want to keep, you may remove or edit it. 21433# 21434# config.status only pays attention to the cache file if you give it 21435# the --recheck option to rerun configure. 21436# 21437# `ac_cv_env_foo' variables (set or unset) will be overridden when 21438# loading this file, other *unset* `ac_cv_foo' will be assigned the 21439# following values. 21440 21441_ACEOF 21442 21443# The following way of writing the cache mishandles newlines in values, 21444# but we know of no workaround that is simple, portable, and efficient. 21445# So, we kill variables containing newlines. 21446# Ultrix sh set writes to stderr and can't be redirected directly, 21447# and sets the high bit in the cache file unless we assign to the vars. 21448( 21449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21450 eval ac_val=\$$ac_var 21451 case $ac_val in #( 21452 *${as_nl}*) 21453 case $ac_var in #( 21454 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21455echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21456 esac 21457 case $ac_var in #( 21458 _ | IFS | as_nl) ;; #( 21459 *) $as_unset $ac_var ;; 21460 esac ;; 21461 esac 21462 done 21463 21464 (set) 2>&1 | 21465 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21466 *${as_nl}ac_space=\ *) 21467 # `set' does not quote correctly, so add quotes (double-quote 21468 # substitution turns \\\\ into \\, and sed turns \\ into \). 21469 sed -n \ 21470 "s/'/'\\\\''/g; 21471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21472 ;; #( 21473 *) 21474 # `set' quotes correctly as required by POSIX, so do not add quotes. 21475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21476 ;; 21477 esac | 21478 sort 21479) | 21480 sed ' 21481 /^ac_cv_env_/b end 21482 t clear 21483 :clear 21484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21485 t end 21486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21487 :end' >>confcache 21488if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21489 if test -w "$cache_file"; then 21490 test "x$cache_file" != "x/dev/null" && 21491 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21492echo "$as_me: updating cache $cache_file" >&6;} 21493 cat confcache >$cache_file 21494 else 21495 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21496echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21497 fi 21498fi 21499rm -f confcache 21500 21501test "x$prefix" = xNONE && prefix=$ac_default_prefix 21502# Let make expand exec_prefix. 21503test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21504 21505DEFS=-DHAVE_CONFIG_H 21506 21507ac_libobjs= 21508ac_ltlibobjs= 21509for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21510 # 1. Remove the extension, and $U if already installed. 21511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21512 ac_i=`echo "$ac_i" | sed "$ac_script"` 21513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21514 # will be set to the directory where LIBOBJS objects are built. 21515 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21516 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21517done 21518LIBOBJS=$ac_libobjs 21519 21520LTLIBOBJS=$ac_ltlibobjs 21521 21522 21523if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 21524 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 21525Usually this means the macro was only invoked conditionally." >&5 21526echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 21527Usually this means the macro was only invoked conditionally." >&2;} 21528 { (exit 1); exit 1; }; } 21529fi 21530if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 21531 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21532Usually this means the macro was only invoked conditionally." >&5 21533echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21534Usually this means the macro was only invoked conditionally." >&2;} 21535 { (exit 1); exit 1; }; } 21536fi 21537 21538: ${CONFIG_STATUS=./config.status} 21539ac_clean_files_save=$ac_clean_files 21540ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21541{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21542echo "$as_me: creating $CONFIG_STATUS" >&6;} 21543cat >$CONFIG_STATUS <<_ACEOF 21544#! $SHELL 21545# Generated by $as_me. 21546# Run this file to recreate the current configuration. 21547# Compiler output produced by configure, useful for debugging 21548# configure, is in config.log if it exists. 21549 21550debug=false 21551ac_cs_recheck=false 21552ac_cs_silent=false 21553SHELL=\${CONFIG_SHELL-$SHELL} 21554_ACEOF 21555 21556cat >>$CONFIG_STATUS <<\_ACEOF 21557## --------------------- ## 21558## M4sh Initialization. ## 21559## --------------------- ## 21560 21561# Be Bourne compatible 21562if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21563 emulate sh 21564 NULLCMD=: 21565 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21566 # is contrary to our usage. Disable this feature. 21567 alias -g '${1+"$@"}'='"$@"' 21568 setopt NO_GLOB_SUBST 21569else 21570 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21571fi 21572BIN_SH=xpg4; export BIN_SH # for Tru64 21573DUALCASE=1; export DUALCASE # for MKS sh 21574 21575 21576# PATH needs CR 21577# Avoid depending upon Character Ranges. 21578as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21579as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21580as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21581as_cr_digits='0123456789' 21582as_cr_alnum=$as_cr_Letters$as_cr_digits 21583 21584# The user is always right. 21585if test "${PATH_SEPARATOR+set}" != set; then 21586 echo "#! /bin/sh" >conf$$.sh 21587 echo "exit 0" >>conf$$.sh 21588 chmod +x conf$$.sh 21589 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21590 PATH_SEPARATOR=';' 21591 else 21592 PATH_SEPARATOR=: 21593 fi 21594 rm -f conf$$.sh 21595fi 21596 21597# Support unset when possible. 21598if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21599 as_unset=unset 21600else 21601 as_unset=false 21602fi 21603 21604 21605# IFS 21606# We need space, tab and new line, in precisely that order. Quoting is 21607# there to prevent editors from complaining about space-tab. 21608# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21609# splitting by setting IFS to empty value.) 21610as_nl=' 21611' 21612IFS=" "" $as_nl" 21613 21614# Find who we are. Look in the path if we contain no directory separator. 21615case $0 in 21616 *[\\/]* ) as_myself=$0 ;; 21617 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21618for as_dir in $PATH 21619do 21620 IFS=$as_save_IFS 21621 test -z "$as_dir" && as_dir=. 21622 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21623done 21624IFS=$as_save_IFS 21625 21626 ;; 21627esac 21628# We did not find ourselves, most probably we were run as `sh COMMAND' 21629# in which case we are not to be found in the path. 21630if test "x$as_myself" = x; then 21631 as_myself=$0 21632fi 21633if test ! -f "$as_myself"; then 21634 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21635 { (exit 1); exit 1; } 21636fi 21637 21638# Work around bugs in pre-3.0 UWIN ksh. 21639for as_var in ENV MAIL MAILPATH 21640do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21641done 21642PS1='$ ' 21643PS2='> ' 21644PS4='+ ' 21645 21646# NLS nuisances. 21647for as_var in \ 21648 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21649 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21650 LC_TELEPHONE LC_TIME 21651do 21652 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21653 eval $as_var=C; export $as_var 21654 else 21655 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21656 fi 21657done 21658 21659# Required to use basename. 21660if expr a : '\(a\)' >/dev/null 2>&1 && 21661 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21662 as_expr=expr 21663else 21664 as_expr=false 21665fi 21666 21667if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21668 as_basename=basename 21669else 21670 as_basename=false 21671fi 21672 21673 21674# Name of the executable. 21675as_me=`$as_basename -- "$0" || 21676$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21677 X"$0" : 'X\(//\)$' \| \ 21678 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21679echo X/"$0" | 21680 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21681 s//\1/ 21682 q 21683 } 21684 /^X\/\(\/\/\)$/{ 21685 s//\1/ 21686 q 21687 } 21688 /^X\/\(\/\).*/{ 21689 s//\1/ 21690 q 21691 } 21692 s/.*/./; q'` 21693 21694# CDPATH. 21695$as_unset CDPATH 21696 21697 21698 21699 as_lineno_1=$LINENO 21700 as_lineno_2=$LINENO 21701 test "x$as_lineno_1" != "x$as_lineno_2" && 21702 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21703 21704 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21705 # uniformly replaced by the line number. The first 'sed' inserts a 21706 # line-number line after each line using $LINENO; the second 'sed' 21707 # does the real work. The second script uses 'N' to pair each 21708 # line-number line with the line containing $LINENO, and appends 21709 # trailing '-' during substitution so that $LINENO is not a special 21710 # case at line end. 21711 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21712 # scripts with optimization help from Paolo Bonzini. Blame Lee 21713 # E. McMahon (1931-1989) for sed's syntax. :-) 21714 sed -n ' 21715 p 21716 /[$]LINENO/= 21717 ' <$as_myself | 21718 sed ' 21719 s/[$]LINENO.*/&-/ 21720 t lineno 21721 b 21722 :lineno 21723 N 21724 :loop 21725 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21726 t loop 21727 s/-\n.*// 21728 ' >$as_me.lineno && 21729 chmod +x "$as_me.lineno" || 21730 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21731 { (exit 1); exit 1; }; } 21732 21733 # Don't try to exec as it changes $[0], causing all sort of problems 21734 # (the dirname of $[0] is not the place where we might find the 21735 # original and so on. Autoconf is especially sensitive to this). 21736 . "./$as_me.lineno" 21737 # Exit status is that of the last command. 21738 exit 21739} 21740 21741 21742if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21743 as_dirname=dirname 21744else 21745 as_dirname=false 21746fi 21747 21748ECHO_C= ECHO_N= ECHO_T= 21749case `echo -n x` in 21750-n*) 21751 case `echo 'x\c'` in 21752 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21753 *) ECHO_C='\c';; 21754 esac;; 21755*) 21756 ECHO_N='-n';; 21757esac 21758 21759if expr a : '\(a\)' >/dev/null 2>&1 && 21760 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21761 as_expr=expr 21762else 21763 as_expr=false 21764fi 21765 21766rm -f conf$$ conf$$.exe conf$$.file 21767if test -d conf$$.dir; then 21768 rm -f conf$$.dir/conf$$.file 21769else 21770 rm -f conf$$.dir 21771 mkdir conf$$.dir 21772fi 21773echo >conf$$.file 21774if ln -s conf$$.file conf$$ 2>/dev/null; then 21775 as_ln_s='ln -s' 21776 # ... but there are two gotchas: 21777 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21778 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21779 # In both cases, we have to default to `cp -p'. 21780 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21781 as_ln_s='cp -p' 21782elif ln conf$$.file conf$$ 2>/dev/null; then 21783 as_ln_s=ln 21784else 21785 as_ln_s='cp -p' 21786fi 21787rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21788rmdir conf$$.dir 2>/dev/null 21789 21790if mkdir -p . 2>/dev/null; then 21791 as_mkdir_p=: 21792else 21793 test -d ./-p && rmdir ./-p 21794 as_mkdir_p=false 21795fi 21796 21797# Find out whether ``test -x'' works. Don't use a zero-byte file, as 21798# systems may use methods other than mode bits to determine executability. 21799cat >conf$$.file <<_ASEOF 21800#! /bin/sh 21801exit 0 21802_ASEOF 21803chmod +x conf$$.file 21804if test -x conf$$.file >/dev/null 2>&1; then 21805 as_executable_p="test -x" 21806else 21807 as_executable_p=: 21808fi 21809rm -f conf$$.file 21810 21811# Sed expression to map a string onto a valid CPP name. 21812as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21813 21814# Sed expression to map a string onto a valid variable name. 21815as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21816 21817 21818exec 6>&1 21819 21820# Save the log message, to keep $[0] and so on meaningful, and to 21821# report actual input values of CONFIG_FILES etc. instead of their 21822# values after options handling. 21823ac_log=" 21824This file was extended by LLVM $as_me 3.2svn, which was 21825generated by GNU Autoconf 2.60. Invocation command line was 21826 21827 CONFIG_FILES = $CONFIG_FILES 21828 CONFIG_HEADERS = $CONFIG_HEADERS 21829 CONFIG_LINKS = $CONFIG_LINKS 21830 CONFIG_COMMANDS = $CONFIG_COMMANDS 21831 $ $0 $@ 21832 21833on `(hostname || uname -n) 2>/dev/null | sed 1q` 21834" 21835 21836_ACEOF 21837 21838cat >>$CONFIG_STATUS <<_ACEOF 21839# Files that config.status was made for. 21840config_files="$ac_config_files" 21841config_headers="$ac_config_headers" 21842config_commands="$ac_config_commands" 21843 21844_ACEOF 21845 21846cat >>$CONFIG_STATUS <<\_ACEOF 21847ac_cs_usage="\ 21848\`$as_me' instantiates files from templates according to the 21849current configuration. 21850 21851Usage: $0 [OPTIONS] [FILE]... 21852 21853 -h, --help print this help, then exit 21854 -V, --version print version number, then exit 21855 -q, --quiet do not print progress messages 21856 -d, --debug don't remove temporary files 21857 --recheck update $as_me by reconfiguring in the same conditions 21858 --file=FILE[:TEMPLATE] 21859 instantiate the configuration file FILE 21860 --header=FILE[:TEMPLATE] 21861 instantiate the configuration header FILE 21862 21863Configuration files: 21864$config_files 21865 21866Configuration headers: 21867$config_headers 21868 21869Configuration commands: 21870$config_commands 21871 21872Report bugs to <bug-autoconf@gnu.org>." 21873 21874_ACEOF 21875cat >>$CONFIG_STATUS <<_ACEOF 21876ac_cs_version="\\ 21877LLVM config.status 3.2svn 21878configured by $0, generated by GNU Autoconf 2.60, 21879 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21880 21881Copyright (C) 2006 Free Software Foundation, Inc. 21882This config.status script is free software; the Free Software Foundation 21883gives unlimited permission to copy, distribute and modify it." 21884 21885ac_pwd='$ac_pwd' 21886srcdir='$srcdir' 21887INSTALL='$INSTALL' 21888_ACEOF 21889 21890cat >>$CONFIG_STATUS <<\_ACEOF 21891# If no file are specified by the user, then we need to provide default 21892# value. By we need to know if files were specified by the user. 21893ac_need_defaults=: 21894while test $# != 0 21895do 21896 case $1 in 21897 --*=*) 21898 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21900 ac_shift=: 21901 ;; 21902 *) 21903 ac_option=$1 21904 ac_optarg=$2 21905 ac_shift=shift 21906 ;; 21907 esac 21908 21909 case $ac_option in 21910 # Handling of the options. 21911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21912 ac_cs_recheck=: ;; 21913 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21914 echo "$ac_cs_version"; exit ;; 21915 --debug | --debu | --deb | --de | --d | -d ) 21916 debug=: ;; 21917 --file | --fil | --fi | --f ) 21918 $ac_shift 21919 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21920 ac_need_defaults=false;; 21921 --header | --heade | --head | --hea ) 21922 $ac_shift 21923 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21924 ac_need_defaults=false;; 21925 --he | --h) 21926 # Conflict between --help and --header 21927 { echo "$as_me: error: ambiguous option: $1 21928Try \`$0 --help' for more information." >&2 21929 { (exit 1); exit 1; }; };; 21930 --help | --hel | -h ) 21931 echo "$ac_cs_usage"; exit ;; 21932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21933 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21934 ac_cs_silent=: ;; 21935 21936 # This is an error. 21937 -*) { echo "$as_me: error: unrecognized option: $1 21938Try \`$0 --help' for more information." >&2 21939 { (exit 1); exit 1; }; } ;; 21940 21941 *) ac_config_targets="$ac_config_targets $1" 21942 ac_need_defaults=false ;; 21943 21944 esac 21945 shift 21946done 21947 21948ac_configure_extra_args= 21949 21950if $ac_cs_silent; then 21951 exec 6>/dev/null 21952 ac_configure_extra_args="$ac_configure_extra_args --silent" 21953fi 21954 21955_ACEOF 21956cat >>$CONFIG_STATUS <<_ACEOF 21957if \$ac_cs_recheck; then 21958 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21959 CONFIG_SHELL=$SHELL 21960 export CONFIG_SHELL 21961 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21962fi 21963 21964_ACEOF 21965cat >>$CONFIG_STATUS <<\_ACEOF 21966exec 5>>config.log 21967{ 21968 echo 21969 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21970## Running $as_me. ## 21971_ASBOX 21972 echo "$ac_log" 21973} >&5 21974 21975_ACEOF 21976cat >>$CONFIG_STATUS <<_ACEOF 21977# 21978# INIT-COMMANDS 21979# 21980llvm_src="${srcdir}" 21981 21982_ACEOF 21983 21984cat >>$CONFIG_STATUS <<\_ACEOF 21985 21986# Handling of arguments. 21987for ac_config_target in $ac_config_targets 21988do 21989 case $ac_config_target in 21990 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 21991 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 21992 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 21993 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 21994 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 21995 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 21996 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 21997 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 21998 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 21999 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 22000 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;; 22001 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;; 22002 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; 22003 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 22004 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 22005 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 22006 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 22007 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 22008 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 22009 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 22010 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 22011 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 22012 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 22013 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 22014 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 22015 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 22016 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 22017 22018 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 22019echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 22020 { (exit 1); exit 1; }; };; 22021 esac 22022done 22023 22024 22025# If the user did not use the arguments to specify the items to instantiate, 22026# then the envvar interface is used. Set only those that are not. 22027# We use the long form for the default assignment because of an extremely 22028# bizarre bug on SunOS 4.1.3. 22029if $ac_need_defaults; then 22030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22032 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22033fi 22034 22035# Have a temporary directory for convenience. Make it in the build tree 22036# simply because there is no reason against having it here, and in addition, 22037# creating and moving files from /tmp can sometimes cause problems. 22038# Hook for its removal unless debugging. 22039# Note that there is a small window in which the directory will not be cleaned: 22040# after its creation but before its name has been assigned to `$tmp'. 22041$debug || 22042{ 22043 tmp= 22044 trap 'exit_status=$? 22045 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 22046' 0 22047 trap '{ (exit 1); exit 1; }' 1 2 13 15 22048} 22049# Create a (secure) tmp directory for tmp files. 22050 22051{ 22052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22053 test -n "$tmp" && test -d "$tmp" 22054} || 22055{ 22056 tmp=./conf$$-$RANDOM 22057 (umask 077 && mkdir "$tmp") 22058} || 22059{ 22060 echo "$me: cannot create a temporary directory in ." >&2 22061 { (exit 1); exit 1; } 22062} 22063 22064# 22065# Set up the sed scripts for CONFIG_FILES section. 22066# 22067 22068# No need to generate the scripts if there are no CONFIG_FILES. 22069# This happens for instance when ./config.status config.h 22070if test -n "$CONFIG_FILES"; then 22071 22072_ACEOF 22073 22074 22075 22076ac_delim='%!_!# ' 22077for ac_last_try in false false false false false :; do 22078 cat >conf$$subs.sed <<_ACEOF 22079SHELL!$SHELL$ac_delim 22080PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 22081PACKAGE_NAME!$PACKAGE_NAME$ac_delim 22082PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 22083PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 22084PACKAGE_STRING!$PACKAGE_STRING$ac_delim 22085PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 22086exec_prefix!$exec_prefix$ac_delim 22087prefix!$prefix$ac_delim 22088program_transform_name!$program_transform_name$ac_delim 22089bindir!$bindir$ac_delim 22090sbindir!$sbindir$ac_delim 22091libexecdir!$libexecdir$ac_delim 22092datarootdir!$datarootdir$ac_delim 22093datadir!$datadir$ac_delim 22094sysconfdir!$sysconfdir$ac_delim 22095sharedstatedir!$sharedstatedir$ac_delim 22096localstatedir!$localstatedir$ac_delim 22097includedir!$includedir$ac_delim 22098oldincludedir!$oldincludedir$ac_delim 22099docdir!$docdir$ac_delim 22100infodir!$infodir$ac_delim 22101htmldir!$htmldir$ac_delim 22102dvidir!$dvidir$ac_delim 22103pdfdir!$pdfdir$ac_delim 22104psdir!$psdir$ac_delim 22105libdir!$libdir$ac_delim 22106localedir!$localedir$ac_delim 22107mandir!$mandir$ac_delim 22108DEFS!$DEFS$ac_delim 22109ECHO_C!$ECHO_C$ac_delim 22110ECHO_N!$ECHO_N$ac_delim 22111ECHO_T!$ECHO_T$ac_delim 22112LIBS!$LIBS$ac_delim 22113build_alias!$build_alias$ac_delim 22114host_alias!$host_alias$ac_delim 22115target_alias!$target_alias$ac_delim 22116LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 22117CC!$CC$ac_delim 22118CFLAGS!$CFLAGS$ac_delim 22119LDFLAGS!$LDFLAGS$ac_delim 22120CPPFLAGS!$CPPFLAGS$ac_delim 22121ac_ct_CC!$ac_ct_CC$ac_delim 22122EXEEXT!$EXEEXT$ac_delim 22123OBJEXT!$OBJEXT$ac_delim 22124CXX!$CXX$ac_delim 22125CXXFLAGS!$CXXFLAGS$ac_delim 22126ac_ct_CXX!$ac_ct_CXX$ac_delim 22127CPP!$CPP$ac_delim 22128subdirs!$subdirs$ac_delim 22129ENABLE_POLLY!$ENABLE_POLLY$ac_delim 22130LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 22131build!$build$ac_delim 22132build_cpu!$build_cpu$ac_delim 22133build_vendor!$build_vendor$ac_delim 22134build_os!$build_os$ac_delim 22135host!$host$ac_delim 22136host_cpu!$host_cpu$ac_delim 22137host_vendor!$host_vendor$ac_delim 22138host_os!$host_os$ac_delim 22139target!$target$ac_delim 22140target_cpu!$target_cpu$ac_delim 22141target_vendor!$target_vendor$ac_delim 22142target_os!$target_os$ac_delim 22143OS!$OS$ac_delim 22144HOST_OS!$HOST_OS$ac_delim 22145TARGET_OS!$TARGET_OS$ac_delim 22146LINKALL!$LINKALL$ac_delim 22147NOLINKALL!$NOLINKALL$ac_delim 22148LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 22149LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 22150ARCH!$ARCH$ac_delim 22151HOST_ARCH!$HOST_ARCH$ac_delim 22152ENDIAN!$ENDIAN$ac_delim 22153GREP!$GREP$ac_delim 22154EGREP!$EGREP$ac_delim 22155LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 22156BUILD_CC!$BUILD_CC$ac_delim 22157BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 22158BUILD_CXX!$BUILD_CXX$ac_delim 22159CVSBUILD!$CVSBUILD$ac_delim 22160ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 22161ENABLE_CXX11!$ENABLE_CXX11$ac_delim 22162ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 22163ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 22164DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 22165ENABLE_WERROR!$ENABLE_WERROR$ac_delim 22166ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 22167EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 22168DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 22169DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 22170KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim 22171JIT!$JIT$ac_delim 22172TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 22173ENABLE_DOCS!$ENABLE_DOCS$ac_delim 22174ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 22175LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim 22176_ACEOF 22177 22178 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 22179 break 22180 elif $ac_last_try; then 22181 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22182echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22183 { (exit 1); exit 1; }; } 22184 else 22185 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22186 fi 22187done 22188 22189ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22190if test -n "$ac_eof"; then 22191 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22192 ac_eof=`expr $ac_eof + 1` 22193fi 22194 22195cat >>$CONFIG_STATUS <<_ACEOF 22196cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 22197/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22198_ACEOF 22199sed ' 22200s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22201s/^/s,@/; s/!/@,|#_!!_#|/ 22202:n 22203t n 22204s/'"$ac_delim"'$/,g/; t 22205s/$/\\/; p 22206N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22207' >>$CONFIG_STATUS <conf$$subs.sed 22208rm -f conf$$subs.sed 22209cat >>$CONFIG_STATUS <<_ACEOF 22210CEOF$ac_eof 22211_ACEOF 22212 22213 22214ac_delim='%!_!# ' 22215for ac_last_try in false false false false false :; do 22216 cat >conf$$subs.sed <<_ACEOF 22217ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 22218ENABLE_PIC!$ENABLE_PIC$ac_delim 22219ENABLE_SHARED!$ENABLE_SHARED$ac_delim 22220ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 22221ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 22222TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 22223LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 22224LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 22225LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 22226LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 22227OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 22228EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 22229EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 22230CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim 22231BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 22232INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim 22233NM!$NM$ac_delim 22234ifGNUmake!$ifGNUmake$ac_delim 22235LN_S!$LN_S$ac_delim 22236CMP!$CMP$ac_delim 22237CP!$CP$ac_delim 22238DATE!$DATE$ac_delim 22239FIND!$FIND$ac_delim 22240MKDIR!$MKDIR$ac_delim 22241MV!$MV$ac_delim 22242RANLIB!$RANLIB$ac_delim 22243AR!$AR$ac_delim 22244RM!$RM$ac_delim 22245SED!$SED$ac_delim 22246TAR!$TAR$ac_delim 22247BINPWD!$BINPWD$ac_delim 22248GRAPHVIZ!$GRAPHVIZ$ac_delim 22249DOT!$DOT$ac_delim 22250FDP!$FDP$ac_delim 22251NEATO!$NEATO$ac_delim 22252TWOPI!$TWOPI$ac_delim 22253CIRCO!$CIRCO$ac_delim 22254GV!$GV$ac_delim 22255DOTTY!$DOTTY$ac_delim 22256XDOT_PY!$XDOT_PY$ac_delim 22257INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 22258INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 22259INSTALL_DATA!$INSTALL_DATA$ac_delim 22260BZIP2!$BZIP2$ac_delim 22261CAT!$CAT$ac_delim 22262DOXYGEN!$DOXYGEN$ac_delim 22263GROFF!$GROFF$ac_delim 22264GZIPBIN!$GZIPBIN$ac_delim 22265PDFROFF!$PDFROFF$ac_delim 22266ZIP!$ZIP$ac_delim 22267OCAMLC!$OCAMLC$ac_delim 22268OCAMLOPT!$OCAMLOPT$ac_delim 22269OCAMLDEP!$OCAMLDEP$ac_delim 22270OCAMLDOC!$OCAMLDOC$ac_delim 22271GAS!$GAS$ac_delim 22272HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 22273INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 22274INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 22275CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 22276CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 22277LIBADD_DL!$LIBADD_DL$ac_delim 22278NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 22279NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 22280COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 22281USE_UDIS86!$USE_UDIS86$ac_delim 22282USE_OPROFILE!$USE_OPROFILE$ac_delim 22283USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim 22284INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim 22285INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim 22286XML2CONFIG!$XML2CONFIG$ac_delim 22287LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim 22288LIBXML2_INC!$LIBXML2_INC$ac_delim 22289HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 22290HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 22291MMAP_FILE!$MMAP_FILE$ac_delim 22292SHLIBEXT!$SHLIBEXT$ac_delim 22293SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 22294LLVM_PREFIX!$LLVM_PREFIX$ac_delim 22295LLVM_BINDIR!$LLVM_BINDIR$ac_delim 22296LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 22297LLVM_DATADIR!$LLVM_DATADIR$ac_delim 22298LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 22299LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 22300LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 22301LLVM_INFODIR!$LLVM_INFODIR$ac_delim 22302LLVM_MANDIR!$LLVM_MANDIR$ac_delim 22303LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 22304BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 22305ALL_BINDINGS!$ALL_BINDINGS$ac_delim 22306OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 22307ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 22308RPATH!$RPATH$ac_delim 22309RDYNAMIC!$RDYNAMIC$ac_delim 22310LIBOBJS!$LIBOBJS$ac_delim 22311LTLIBOBJS!$LTLIBOBJS$ac_delim 22312_ACEOF 22313 22314 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then 22315 break 22316 elif $ac_last_try; then 22317 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22318echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22319 { (exit 1); exit 1; }; } 22320 else 22321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22322 fi 22323done 22324 22325ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22326if test -n "$ac_eof"; then 22327 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22328 ac_eof=`expr $ac_eof + 1` 22329fi 22330 22331cat >>$CONFIG_STATUS <<_ACEOF 22332cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22333/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22334_ACEOF 22335sed ' 22336s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22337s/^/s,@/; s/!/@,|#_!!_#|/ 22338:n 22339t n 22340s/'"$ac_delim"'$/,g/; t 22341s/$/\\/; p 22342N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22343' >>$CONFIG_STATUS <conf$$subs.sed 22344rm -f conf$$subs.sed 22345cat >>$CONFIG_STATUS <<_ACEOF 22346:end 22347s/|#_!!_#|//g 22348CEOF$ac_eof 22349_ACEOF 22350 22351 22352# VPATH may cause trouble with some makes, so we remove $(srcdir), 22353# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22354# trailing colons and then remove the whole line if VPATH becomes empty 22355# (actually we leave an empty line to preserve line numbers). 22356if test "x$srcdir" = x.; then 22357 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22358s/:*\$(srcdir):*/:/ 22359s/:*\${srcdir}:*/:/ 22360s/:*@srcdir@:*/:/ 22361s/^\([^=]*=[ ]*\):*/\1/ 22362s/:*$// 22363s/^[^=]*=[ ]*$// 22364}' 22365fi 22366 22367cat >>$CONFIG_STATUS <<\_ACEOF 22368fi # test -n "$CONFIG_FILES" 22369 22370 22371for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22372do 22373 case $ac_tag in 22374 :[FHLC]) ac_mode=$ac_tag; continue;; 22375 esac 22376 case $ac_mode$ac_tag in 22377 :[FHL]*:*);; 22378 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22379echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22380 { (exit 1); exit 1; }; };; 22381 :[FH]-) ac_tag=-:-;; 22382 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22383 esac 22384 ac_save_IFS=$IFS 22385 IFS=: 22386 set x $ac_tag 22387 IFS=$ac_save_IFS 22388 shift 22389 ac_file=$1 22390 shift 22391 22392 case $ac_mode in 22393 :L) ac_source=$1;; 22394 :[FH]) 22395 ac_file_inputs= 22396 for ac_f 22397 do 22398 case $ac_f in 22399 -) ac_f="$tmp/stdin";; 22400 *) # Look for the file first in the build tree, then in the source tree 22401 # (if the path is not absolute). The absolute path cannot be DOS-style, 22402 # because $ac_f cannot contain `:'. 22403 test -f "$ac_f" || 22404 case $ac_f in 22405 [\\/$]*) false;; 22406 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22407 esac || 22408 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22409echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22410 { (exit 1); exit 1; }; };; 22411 esac 22412 ac_file_inputs="$ac_file_inputs $ac_f" 22413 done 22414 22415 # Let's still pretend it is `configure' which instantiates (i.e., don't 22416 # use $as_me), people would be surprised to read: 22417 # /* config.h. Generated by config.status. */ 22418 configure_input="Generated from "`IFS=: 22419 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22420 if test x"$ac_file" != x-; then 22421 configure_input="$ac_file. $configure_input" 22422 { echo "$as_me:$LINENO: creating $ac_file" >&5 22423echo "$as_me: creating $ac_file" >&6;} 22424 fi 22425 22426 case $ac_tag in 22427 *:-:* | *:-) cat >"$tmp/stdin";; 22428 esac 22429 ;; 22430 esac 22431 22432 ac_dir=`$as_dirname -- "$ac_file" || 22433$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22434 X"$ac_file" : 'X\(//\)[^/]' \| \ 22435 X"$ac_file" : 'X\(//\)$' \| \ 22436 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22437echo X"$ac_file" | 22438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22439 s//\1/ 22440 q 22441 } 22442 /^X\(\/\/\)[^/].*/{ 22443 s//\1/ 22444 q 22445 } 22446 /^X\(\/\/\)$/{ 22447 s//\1/ 22448 q 22449 } 22450 /^X\(\/\).*/{ 22451 s//\1/ 22452 q 22453 } 22454 s/.*/./; q'` 22455 { as_dir="$ac_dir" 22456 case $as_dir in #( 22457 -*) as_dir=./$as_dir;; 22458 esac 22459 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22460 as_dirs= 22461 while :; do 22462 case $as_dir in #( 22463 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22464 *) as_qdir=$as_dir;; 22465 esac 22466 as_dirs="'$as_qdir' $as_dirs" 22467 as_dir=`$as_dirname -- "$as_dir" || 22468$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22469 X"$as_dir" : 'X\(//\)[^/]' \| \ 22470 X"$as_dir" : 'X\(//\)$' \| \ 22471 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22472echo X"$as_dir" | 22473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22474 s//\1/ 22475 q 22476 } 22477 /^X\(\/\/\)[^/].*/{ 22478 s//\1/ 22479 q 22480 } 22481 /^X\(\/\/\)$/{ 22482 s//\1/ 22483 q 22484 } 22485 /^X\(\/\).*/{ 22486 s//\1/ 22487 q 22488 } 22489 s/.*/./; q'` 22490 test -d "$as_dir" && break 22491 done 22492 test -z "$as_dirs" || eval "mkdir $as_dirs" 22493 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22494echo "$as_me: error: cannot create directory $as_dir" >&2;} 22495 { (exit 1); exit 1; }; }; } 22496 ac_builddir=. 22497 22498case "$ac_dir" in 22499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22500*) 22501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22502 # A ".." for each directory in $ac_dir_suffix. 22503 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22504 case $ac_top_builddir_sub in 22505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22507 esac ;; 22508esac 22509ac_abs_top_builddir=$ac_pwd 22510ac_abs_builddir=$ac_pwd$ac_dir_suffix 22511# for backward compatibility: 22512ac_top_builddir=$ac_top_build_prefix 22513 22514case $srcdir in 22515 .) # We are building in place. 22516 ac_srcdir=. 22517 ac_top_srcdir=$ac_top_builddir_sub 22518 ac_abs_top_srcdir=$ac_pwd ;; 22519 [\\/]* | ?:[\\/]* ) # Absolute name. 22520 ac_srcdir=$srcdir$ac_dir_suffix; 22521 ac_top_srcdir=$srcdir 22522 ac_abs_top_srcdir=$srcdir ;; 22523 *) # Relative name. 22524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22525 ac_top_srcdir=$ac_top_build_prefix$srcdir 22526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22527esac 22528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22529 22530 22531 case $ac_mode in 22532 :F) 22533 # 22534 # CONFIG_FILE 22535 # 22536 22537 case $INSTALL in 22538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22539 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22540 esac 22541_ACEOF 22542 22543cat >>$CONFIG_STATUS <<\_ACEOF 22544# If the template does not know about datarootdir, expand it. 22545# FIXME: This hack should be removed a few years after 2.60. 22546ac_datarootdir_hack=; ac_datarootdir_seen= 22547 22548case `sed -n '/datarootdir/ { 22549 p 22550 q 22551} 22552/@datadir@/p 22553/@docdir@/p 22554/@infodir@/p 22555/@localedir@/p 22556/@mandir@/p 22557' $ac_file_inputs` in 22558*datarootdir*) ac_datarootdir_seen=yes;; 22559*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22560 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22561echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22562_ACEOF 22563cat >>$CONFIG_STATUS <<_ACEOF 22564 ac_datarootdir_hack=' 22565 s&@datadir@&$datadir&g 22566 s&@docdir@&$docdir&g 22567 s&@infodir@&$infodir&g 22568 s&@localedir@&$localedir&g 22569 s&@mandir@&$mandir&g 22570 s&\\\${datarootdir}&$datarootdir&g' ;; 22571esac 22572_ACEOF 22573 22574# Neutralize VPATH when `$srcdir' = `.'. 22575# Shell code in configure.ac might set extrasub. 22576# FIXME: do we really want to maintain this feature? 22577cat >>$CONFIG_STATUS <<_ACEOF 22578 sed "$ac_vpsub 22579$extrasub 22580_ACEOF 22581cat >>$CONFIG_STATUS <<\_ACEOF 22582:t 22583/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22584s&@configure_input@&$configure_input&;t t 22585s&@top_builddir@&$ac_top_builddir_sub&;t t 22586s&@srcdir@&$ac_srcdir&;t t 22587s&@abs_srcdir@&$ac_abs_srcdir&;t t 22588s&@top_srcdir@&$ac_top_srcdir&;t t 22589s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22590s&@builddir@&$ac_builddir&;t t 22591s&@abs_builddir@&$ac_abs_builddir&;t t 22592s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22593s&@INSTALL@&$ac_INSTALL&;t t 22594$ac_datarootdir_hack 22595" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22596 22597test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22598 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22599 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22600 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22601which seems to be undefined. Please make sure it is defined." >&5 22602echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22603which seems to be undefined. Please make sure it is defined." >&2;} 22604 22605 rm -f "$tmp/stdin" 22606 case $ac_file in 22607 -) cat "$tmp/out"; rm -f "$tmp/out";; 22608 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22609 esac 22610 ;; 22611 :H) 22612 # 22613 # CONFIG_HEADER 22614 # 22615_ACEOF 22616 22617# Transform confdefs.h into a sed script `conftest.defines', that 22618# substitutes the proper values into config.h.in to produce config.h. 22619rm -f conftest.defines conftest.tail 22620# First, append a space to every undef/define line, to ease matching. 22621echo 's/$/ /' >conftest.defines 22622# Then, protect against being on the right side of a sed subst, or in 22623# an unquoted here document, in config.status. If some macros were 22624# called several times there might be several #defines for the same 22625# symbol, which is useless. But do not sort them, since the last 22626# AC_DEFINE must be honored. 22627ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22628# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22629# NAME is the cpp macro being defined, VALUE is the value it is being given. 22630# PARAMS is the parameter list in the macro definition--in most cases, it's 22631# just an empty string. 22632ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22633ac_dB='\\)[ (].*,\\1define\\2' 22634ac_dC=' ' 22635ac_dD=' ,' 22636 22637uniq confdefs.h | 22638 sed -n ' 22639 t rset 22640 :rset 22641 s/^[ ]*#[ ]*define[ ][ ]*// 22642 t ok 22643 d 22644 :ok 22645 s/[\\&,]/\\&/g 22646 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22647 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22648 ' >>conftest.defines 22649 22650# Remove the space that was appended to ease matching. 22651# Then replace #undef with comments. This is necessary, for 22652# example, in the case of _POSIX_SOURCE, which is predefined and required 22653# on some systems where configure will not decide to define it. 22654# (The regexp can be short, since the line contains either #define or #undef.) 22655echo 's/ $// 22656s,^[ #]*u.*,/* & */,' >>conftest.defines 22657 22658# Break up conftest.defines: 22659ac_max_sed_lines=50 22660 22661# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22662# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22663# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22664# et cetera. 22665ac_in='$ac_file_inputs' 22666ac_out='"$tmp/out1"' 22667ac_nxt='"$tmp/out2"' 22668 22669while : 22670do 22671 # Write a here document: 22672 cat >>$CONFIG_STATUS <<_ACEOF 22673 # First, check the format of the line: 22674 cat >"\$tmp/defines.sed" <<\\CEOF 22675/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22676/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22677b 22678:def 22679_ACEOF 22680 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22681 echo 'CEOF 22682 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22683 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22684 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22685 grep . conftest.tail >/dev/null || break 22686 rm -f conftest.defines 22687 mv conftest.tail conftest.defines 22688done 22689rm -f conftest.defines conftest.tail 22690 22691echo "ac_result=$ac_in" >>$CONFIG_STATUS 22692cat >>$CONFIG_STATUS <<\_ACEOF 22693 if test x"$ac_file" != x-; then 22694 echo "/* $configure_input */" >"$tmp/config.h" 22695 cat "$ac_result" >>"$tmp/config.h" 22696 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22697 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22698echo "$as_me: $ac_file is unchanged" >&6;} 22699 else 22700 rm -f $ac_file 22701 mv "$tmp/config.h" $ac_file 22702 fi 22703 else 22704 echo "/* $configure_input */" 22705 cat "$ac_result" 22706 fi 22707 rm -f "$tmp/out12" 22708 ;; 22709 22710 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22711echo "$as_me: executing $ac_file commands" >&6;} 22712 ;; 22713 esac 22714 22715 22716 case $ac_file$ac_mode in 22717 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 22718 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 22719 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 22720 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 22721 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 22722 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 22723 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 22724 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 22725 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 22726 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 22727 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 22728 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 22729 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 22730 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 22731 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 22732 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 22733 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 22734 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 22735 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 22736 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 22737 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 22738 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 22739 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 22740 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 22741 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 22742 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 22743 22744 esac 22745done # for ac_tag 22746 22747 22748{ (exit 0); exit 0; } 22749_ACEOF 22750chmod +x $CONFIG_STATUS 22751ac_clean_files=$ac_clean_files_save 22752 22753 22754# configure is writing to config.log, and then calls config.status. 22755# config.status does its own redirection, appending to config.log. 22756# Unfortunately, on DOS this fails, as config.log is still kept open 22757# by configure, so config.status won't be able to write to it; its 22758# output is simply discarded. So we exec the FD to /dev/null, 22759# effectively closing config.log, so it can be properly (re)opened and 22760# appended to by config.status. When coming back to configure, we 22761# need to make the FD available again. 22762if test "$no_create" != yes; then 22763 ac_cs_success=: 22764 ac_config_status_args= 22765 test "$silent" = yes && 22766 ac_config_status_args="$ac_config_status_args --quiet" 22767 exec 5>/dev/null 22768 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22769 exec 5>>config.log 22770 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22771 # would make configure fail if this is the last instruction. 22772 $ac_cs_success || { (exit 1); exit 1; } 22773fi 22774 22775# 22776# CONFIG_SUBDIRS section. 22777# 22778if test "$no_recursion" != yes; then 22779 22780 # Remove --cache-file and --srcdir arguments so they do not pile up. 22781 ac_sub_configure_args= 22782 ac_prev= 22783 eval "set x $ac_configure_args" 22784 shift 22785 for ac_arg 22786 do 22787 if test -n "$ac_prev"; then 22788 ac_prev= 22789 continue 22790 fi 22791 case $ac_arg in 22792 -cache-file | --cache-file | --cache-fil | --cache-fi \ 22793 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 22794 ac_prev=cache_file ;; 22795 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 22796 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 22797 | --c=*) 22798 ;; 22799 --config-cache | -C) 22800 ;; 22801 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 22802 ac_prev=srcdir ;; 22803 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 22804 ;; 22805 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 22806 ac_prev=prefix ;; 22807 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 22808 ;; 22809 *) 22810 case $ac_arg in 22811 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22812 esac 22813 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 22814 esac 22815 done 22816 22817 # Always prepend --prefix to ensure using the same prefix 22818 # in subdir configurations. 22819 ac_arg="--prefix=$prefix" 22820 case $ac_arg in 22821 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22822 esac 22823 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 22824 22825 ac_popdir=`pwd` 22826 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 22827 22828 # Do not complain, so a configure script can configure whichever 22829 # parts of a large source tree are present. 22830 test -d "$srcdir/$ac_dir" || continue 22831 22832 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 22833 echo "$as_me:$LINENO: $ac_msg" >&5 22834 echo "$ac_msg" >&6 22835 { as_dir="$ac_dir" 22836 case $as_dir in #( 22837 -*) as_dir=./$as_dir;; 22838 esac 22839 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22840 as_dirs= 22841 while :; do 22842 case $as_dir in #( 22843 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22844 *) as_qdir=$as_dir;; 22845 esac 22846 as_dirs="'$as_qdir' $as_dirs" 22847 as_dir=`$as_dirname -- "$as_dir" || 22848$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22849 X"$as_dir" : 'X\(//\)[^/]' \| \ 22850 X"$as_dir" : 'X\(//\)$' \| \ 22851 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22852echo X"$as_dir" | 22853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22854 s//\1/ 22855 q 22856 } 22857 /^X\(\/\/\)[^/].*/{ 22858 s//\1/ 22859 q 22860 } 22861 /^X\(\/\/\)$/{ 22862 s//\1/ 22863 q 22864 } 22865 /^X\(\/\).*/{ 22866 s//\1/ 22867 q 22868 } 22869 s/.*/./; q'` 22870 test -d "$as_dir" && break 22871 done 22872 test -z "$as_dirs" || eval "mkdir $as_dirs" 22873 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22874echo "$as_me: error: cannot create directory $as_dir" >&2;} 22875 { (exit 1); exit 1; }; }; } 22876 ac_builddir=. 22877 22878case "$ac_dir" in 22879.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22880*) 22881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22882 # A ".." for each directory in $ac_dir_suffix. 22883 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22884 case $ac_top_builddir_sub in 22885 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22886 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22887 esac ;; 22888esac 22889ac_abs_top_builddir=$ac_pwd 22890ac_abs_builddir=$ac_pwd$ac_dir_suffix 22891# for backward compatibility: 22892ac_top_builddir=$ac_top_build_prefix 22893 22894case $srcdir in 22895 .) # We are building in place. 22896 ac_srcdir=. 22897 ac_top_srcdir=$ac_top_builddir_sub 22898 ac_abs_top_srcdir=$ac_pwd ;; 22899 [\\/]* | ?:[\\/]* ) # Absolute name. 22900 ac_srcdir=$srcdir$ac_dir_suffix; 22901 ac_top_srcdir=$srcdir 22902 ac_abs_top_srcdir=$srcdir ;; 22903 *) # Relative name. 22904 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22905 ac_top_srcdir=$ac_top_build_prefix$srcdir 22906 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22907esac 22908ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22909 22910 22911 cd "$ac_dir" 22912 22913 # Check for guested configure; otherwise get Cygnus style configure. 22914 if test -f "$ac_srcdir/configure.gnu"; then 22915 ac_sub_configure=$ac_srcdir/configure.gnu 22916 elif test -f "$ac_srcdir/configure"; then 22917 ac_sub_configure=$ac_srcdir/configure 22918 elif test -f "$ac_srcdir/configure.in"; then 22919 # This should be Cygnus configure. 22920 ac_sub_configure=$ac_aux_dir/configure 22921 else 22922 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 22923echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 22924 ac_sub_configure= 22925 fi 22926 22927 # The recursion is here. 22928 if test -n "$ac_sub_configure"; then 22929 # Make the cache file name correct relative to the subdirectory. 22930 case $cache_file in 22931 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 22932 *) # Relative name. 22933 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 22934 esac 22935 22936 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 22937echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 22938 # The eval makes quoting arguments work. 22939 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 22940 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 22941 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 22942echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 22943 { (exit 1); exit 1; }; } 22944 fi 22945 22946 cd "$ac_popdir" 22947 done 22948fi 22949 22950