configure revision 33ba8b0e96acde0d8ab1ffc565a5ef4c8b6b6ac2
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for llvm 3.1svn. 4# 5# Report bugs to <llvmbugs@cs.uiuc.edu>. 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-2011 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.1svn' 565PACKAGE_STRING='llvm 3.1svn' 566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu' 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 677ENDIAN 678GREP 679EGREP 680LLVM_CROSS_COMPILING 681BUILD_CC 682BUILD_EXEEXT 683BUILD_CXX 684CVSBUILD 685ENABLE_OPTIMIZED 686ENABLE_PROFILING 687DISABLE_ASSERTIONS 688ENABLE_EXPENSIVE_CHECKS 689EXPENSIVE_CHECKS 690DEBUG_RUNTIME 691DEBUG_SYMBOLS 692JIT 693TARGET_HAS_JIT 694ENABLE_DOCS 695ENABLE_DOXYGEN 696ENABLE_THREADS 697ENABLE_PTHREADS 698ENABLE_PIC 699ENABLE_SHARED 700ENABLE_EMBED_STDCXX 701ENABLE_TIMESTAMPS 702TARGETS_TO_BUILD 703LLVM_ENUM_TARGETS 704LLVM_ENUM_ASM_PRINTERS 705LLVM_ENUM_ASM_PARSERS 706LLVM_ENUM_DISASSEMBLERS 707ENABLE_CBE_PRINTF_A 708OPTIMIZE_OPTION 709EXTRA_OPTIONS 710EXTRA_LD_OPTIONS 711CLANG_SRC_ROOT 712BINUTILS_INCDIR 713NM 714ifGNUmake 715LN_S 716CMP 717CP 718DATE 719FIND 720MKDIR 721MV 722RANLIB 723AR 724RM 725SED 726TAR 727BINPWD 728GRAPHVIZ 729DOT 730FDP 731NEATO 732TWOPI 733CIRCO 734GV 735DOTTY 736XDOT_PY 737PERL 738HAVE_PERL 739INSTALL_PROGRAM 740INSTALL_SCRIPT 741INSTALL_DATA 742BZIP2 743CAT 744DOXYGEN 745GROFF 746GZIPBIN 747POD2HTML 748POD2MAN 749PDFROFF 750RUNTEST 751TCLSH 752ZIP 753OCAMLC 754OCAMLOPT 755OCAMLDEP 756OCAMLDOC 757GAS 758HAVE_LINK_VERSION_SCRIPT 759INSTALL_LTDL_TRUE 760INSTALL_LTDL_FALSE 761CONVENIENCE_LTDL_TRUE 762CONVENIENCE_LTDL_FALSE 763LIBADD_DL 764NO_VARIADIC_MACROS 765NO_MISSING_FIELD_INITIALIZERS 766USE_UDIS86 767USE_OPROFILE 768HAVE_PTHREAD 769HUGE_VAL_SANITY 770MMAP_FILE 771SHLIBEXT 772SHLIBPATH_VAR 773LLVM_PREFIX 774LLVM_BINDIR 775LLVM_LIBDIR 776LLVM_DATADIR 777LLVM_DOCSDIR 778LLVM_ETCDIR 779LLVM_INCLUDEDIR 780LLVM_INFODIR 781LLVM_MANDIR 782LLVM_CONFIGTIME 783BINDINGS_TO_BUILD 784ALL_BINDINGS 785OCAML_LIBDIR 786ENABLE_VISIBILITY_INLINES_HIDDEN 787RPATH 788RDYNAMIC 789LIBOBJS 790LTLIBOBJS' 791ac_subst_files='' 792 ac_precious_vars='build_alias 793host_alias 794target_alias 795CC 796CFLAGS 797LDFLAGS 798CPPFLAGS 799CXX 800CXXFLAGS 801CCC 802CPP' 803ac_subdirs_all='projects/llvm-gcc 804projects/test-suite 805projects/llvm-test 806projects/poolalloc 807projects/llvm-poolalloc 808projects/sample 809projects/privbracket 810projects/llvm-stacker 811projects/llvm-reopt 812projects/llvm-java 813projects/llvm-tv 814projects/safecode 815projects/llvm-kernel 816tools/polly' 817 818# Initialize some variables set by options. 819ac_init_help= 820ac_init_version=false 821# The variables have the same names as the options, with 822# dashes changed to underlines. 823cache_file=/dev/null 824exec_prefix=NONE 825no_create= 826no_recursion= 827prefix=NONE 828program_prefix=NONE 829program_suffix=NONE 830program_transform_name=s,x,x, 831silent= 832site= 833srcdir= 834verbose= 835x_includes=NONE 836x_libraries=NONE 837 838# Installation directory options. 839# These are left unexpanded so users can "make install exec_prefix=/foo" 840# and all the variables that are supposed to be based on exec_prefix 841# by default will actually change. 842# Use braces instead of parens because sh, perl, etc. also accept them. 843# (The list follows the same order as the GNU Coding Standards.) 844bindir='${exec_prefix}/bin' 845sbindir='${exec_prefix}/sbin' 846libexecdir='${exec_prefix}/libexec' 847datarootdir='${prefix}/share' 848datadir='${datarootdir}' 849sysconfdir='${prefix}/etc' 850sharedstatedir='${prefix}/com' 851localstatedir='${prefix}/var' 852includedir='${prefix}/include' 853oldincludedir='/usr/include' 854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 855infodir='${datarootdir}/info' 856htmldir='${docdir}' 857dvidir='${docdir}' 858pdfdir='${docdir}' 859psdir='${docdir}' 860libdir='${exec_prefix}/lib' 861localedir='${datarootdir}/locale' 862mandir='${datarootdir}/man' 863 864ac_prev= 865ac_dashdash= 866for ac_option 867do 868 # If the previous option needs an argument, assign it. 869 if test -n "$ac_prev"; then 870 eval $ac_prev=\$ac_option 871 ac_prev= 872 continue 873 fi 874 875 case $ac_option in 876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 877 *) ac_optarg=yes ;; 878 esac 879 880 # Accept the important Cygnus configure options, so we can diagnose typos. 881 882 case $ac_dashdash$ac_option in 883 --) 884 ac_dashdash=yes ;; 885 886 -bindir | --bindir | --bindi | --bind | --bin | --bi) 887 ac_prev=bindir ;; 888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 889 bindir=$ac_optarg ;; 890 891 -build | --build | --buil | --bui | --bu) 892 ac_prev=build_alias ;; 893 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 894 build_alias=$ac_optarg ;; 895 896 -cache-file | --cache-file | --cache-fil | --cache-fi \ 897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 898 ac_prev=cache_file ;; 899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 901 cache_file=$ac_optarg ;; 902 903 --config-cache | -C) 904 cache_file=config.cache ;; 905 906 -datadir | --datadir | --datadi | --datad) 907 ac_prev=datadir ;; 908 -datadir=* | --datadir=* | --datadi=* | --datad=*) 909 datadir=$ac_optarg ;; 910 911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 912 | --dataroo | --dataro | --datar) 913 ac_prev=datarootdir ;; 914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 916 datarootdir=$ac_optarg ;; 917 918 -disable-* | --disable-*) 919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 920 # Reject names that are not valid shell variable names. 921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 923 { (exit 1); exit 1; }; } 924 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 925 eval enable_$ac_feature=no ;; 926 927 -docdir | --docdir | --docdi | --doc | --do) 928 ac_prev=docdir ;; 929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 930 docdir=$ac_optarg ;; 931 932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 933 ac_prev=dvidir ;; 934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 935 dvidir=$ac_optarg ;; 936 937 -enable-* | --enable-*) 938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 942 { (exit 1); exit 1; }; } 943 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 944 eval enable_$ac_feature=\$ac_optarg ;; 945 946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 948 | --exec | --exe | --ex) 949 ac_prev=exec_prefix ;; 950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 952 | --exec=* | --exe=* | --ex=*) 953 exec_prefix=$ac_optarg ;; 954 955 -gas | --gas | --ga | --g) 956 # Obsolete; use --with-gas. 957 with_gas=yes ;; 958 959 -help | --help | --hel | --he | -h) 960 ac_init_help=long ;; 961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 962 ac_init_help=recursive ;; 963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 964 ac_init_help=short ;; 965 966 -host | --host | --hos | --ho) 967 ac_prev=host_alias ;; 968 -host=* | --host=* | --hos=* | --ho=*) 969 host_alias=$ac_optarg ;; 970 971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 972 ac_prev=htmldir ;; 973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 974 | --ht=*) 975 htmldir=$ac_optarg ;; 976 977 -includedir | --includedir | --includedi | --included | --include \ 978 | --includ | --inclu | --incl | --inc) 979 ac_prev=includedir ;; 980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 981 | --includ=* | --inclu=* | --incl=* | --inc=*) 982 includedir=$ac_optarg ;; 983 984 -infodir | --infodir | --infodi | --infod | --info | --inf) 985 ac_prev=infodir ;; 986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 987 infodir=$ac_optarg ;; 988 989 -libdir | --libdir | --libdi | --libd) 990 ac_prev=libdir ;; 991 -libdir=* | --libdir=* | --libdi=* | --libd=*) 992 libdir=$ac_optarg ;; 993 994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 995 | --libexe | --libex | --libe) 996 ac_prev=libexecdir ;; 997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 998 | --libexe=* | --libex=* | --libe=*) 999 libexecdir=$ac_optarg ;; 1000 1001 -localedir | --localedir | --localedi | --localed | --locale) 1002 ac_prev=localedir ;; 1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1004 localedir=$ac_optarg ;; 1005 1006 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1007 | --localstate | --localstat | --localsta | --localst | --locals) 1008 ac_prev=localstatedir ;; 1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1011 localstatedir=$ac_optarg ;; 1012 1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1014 ac_prev=mandir ;; 1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1016 mandir=$ac_optarg ;; 1017 1018 -nfp | --nfp | --nf) 1019 # Obsolete; use --without-fp. 1020 with_fp=no ;; 1021 1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1023 | --no-cr | --no-c | -n) 1024 no_create=yes ;; 1025 1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1028 no_recursion=yes ;; 1029 1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1032 | --oldin | --oldi | --old | --ol | --o) 1033 ac_prev=oldincludedir ;; 1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1037 oldincludedir=$ac_optarg ;; 1038 1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1040 ac_prev=prefix ;; 1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1042 prefix=$ac_optarg ;; 1043 1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1045 | --program-pre | --program-pr | --program-p) 1046 ac_prev=program_prefix ;; 1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1049 program_prefix=$ac_optarg ;; 1050 1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1052 | --program-suf | --program-su | --program-s) 1053 ac_prev=program_suffix ;; 1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1056 program_suffix=$ac_optarg ;; 1057 1058 -program-transform-name | --program-transform-name \ 1059 | --program-transform-nam | --program-transform-na \ 1060 | --program-transform-n | --program-transform- \ 1061 | --program-transform | --program-transfor \ 1062 | --program-transfo | --program-transf \ 1063 | --program-trans | --program-tran \ 1064 | --progr-tra | --program-tr | --program-t) 1065 ac_prev=program_transform_name ;; 1066 -program-transform-name=* | --program-transform-name=* \ 1067 | --program-transform-nam=* | --program-transform-na=* \ 1068 | --program-transform-n=* | --program-transform-=* \ 1069 | --program-transform=* | --program-transfor=* \ 1070 | --program-transfo=* | --program-transf=* \ 1071 | --program-trans=* | --program-tran=* \ 1072 | --progr-tra=* | --program-tr=* | --program-t=*) 1073 program_transform_name=$ac_optarg ;; 1074 1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1076 ac_prev=pdfdir ;; 1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1078 pdfdir=$ac_optarg ;; 1079 1080 -psdir | --psdir | --psdi | --psd | --ps) 1081 ac_prev=psdir ;; 1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1083 psdir=$ac_optarg ;; 1084 1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1086 | -silent | --silent | --silen | --sile | --sil) 1087 silent=yes ;; 1088 1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1090 ac_prev=sbindir ;; 1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1092 | --sbi=* | --sb=*) 1093 sbindir=$ac_optarg ;; 1094 1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1097 | --sharedst | --shareds | --shared | --share | --shar \ 1098 | --sha | --sh) 1099 ac_prev=sharedstatedir ;; 1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1103 | --sha=* | --sh=*) 1104 sharedstatedir=$ac_optarg ;; 1105 1106 -site | --site | --sit) 1107 ac_prev=site ;; 1108 -site=* | --site=* | --sit=*) 1109 site=$ac_optarg ;; 1110 1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1112 ac_prev=srcdir ;; 1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1114 srcdir=$ac_optarg ;; 1115 1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1117 | --syscon | --sysco | --sysc | --sys | --sy) 1118 ac_prev=sysconfdir ;; 1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1121 sysconfdir=$ac_optarg ;; 1122 1123 -target | --target | --targe | --targ | --tar | --ta | --t) 1124 ac_prev=target_alias ;; 1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1126 target_alias=$ac_optarg ;; 1127 1128 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1129 verbose=yes ;; 1130 1131 -version | --version | --versio | --versi | --vers | -V) 1132 ac_init_version=: ;; 1133 1134 -with-* | --with-*) 1135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1136 # Reject names that are not valid shell variable names. 1137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1138 { echo "$as_me: error: invalid package name: $ac_package" >&2 1139 { (exit 1); exit 1; }; } 1140 ac_package=`echo $ac_package| sed 's/-/_/g'` 1141 eval with_$ac_package=\$ac_optarg ;; 1142 1143 -without-* | --without-*) 1144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1147 { echo "$as_me: error: invalid package name: $ac_package" >&2 1148 { (exit 1); exit 1; }; } 1149 ac_package=`echo $ac_package | sed 's/-/_/g'` 1150 eval with_$ac_package=no ;; 1151 1152 --x) 1153 # Obsolete; use --with-x. 1154 with_x=yes ;; 1155 1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1157 | --x-incl | --x-inc | --x-in | --x-i) 1158 ac_prev=x_includes ;; 1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1161 x_includes=$ac_optarg ;; 1162 1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1165 ac_prev=x_libraries ;; 1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1168 x_libraries=$ac_optarg ;; 1169 1170 -*) { echo "$as_me: error: unrecognized option: $ac_option 1171Try \`$0 --help' for more information." >&2 1172 { (exit 1); exit 1; }; } 1173 ;; 1174 1175 *=*) 1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1177 # Reject names that are not valid shell variable names. 1178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1180 { (exit 1); exit 1; }; } 1181 eval $ac_envvar=\$ac_optarg 1182 export $ac_envvar ;; 1183 1184 *) 1185 # FIXME: should be removed in autoconf 3.0. 1186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1190 ;; 1191 1192 esac 1193done 1194 1195if test -n "$ac_prev"; then 1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1197 { echo "$as_me: error: missing argument to $ac_option" >&2 1198 { (exit 1); exit 1; }; } 1199fi 1200 1201# Be sure to have absolute directory names. 1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1203 datadir sysconfdir sharedstatedir localstatedir includedir \ 1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1205 libdir localedir mandir 1206do 1207 eval ac_val=\$$ac_var 1208 case $ac_val in 1209 [\\/$]* | ?:[\\/]* ) continue;; 1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1211 esac 1212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1213 { (exit 1); exit 1; }; } 1214done 1215 1216# There might be people who depend on the old broken behavior: `$host' 1217# used to hold the argument of --host etc. 1218# FIXME: To remove some day. 1219build=$build_alias 1220host=$host_alias 1221target=$target_alias 1222 1223# FIXME: To remove some day. 1224if test "x$host_alias" != x; then 1225 if test "x$build_alias" = x; then 1226 cross_compiling=maybe 1227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1228 If a cross compiler is detected then cross compile mode will be used." >&2 1229 elif test "x$build_alias" != "x$host_alias"; then 1230 cross_compiling=yes 1231 fi 1232fi 1233 1234ac_tool_prefix= 1235test -n "$host_alias" && ac_tool_prefix=$host_alias- 1236 1237test "$silent" = yes && exec 6>/dev/null 1238 1239 1240ac_pwd=`pwd` && test -n "$ac_pwd" && 1241ac_ls_di=`ls -di .` && 1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1243 { echo "$as_me: error: Working directory cannot be determined" >&2 1244 { (exit 1); exit 1; }; } 1245test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1246 { echo "$as_me: error: pwd does not report name of working directory" >&2 1247 { (exit 1); exit 1; }; } 1248 1249 1250# Find the source files, if location was not specified. 1251if test -z "$srcdir"; then 1252 ac_srcdir_defaulted=yes 1253 # Try the directory containing this script, then the parent directory. 1254 ac_confdir=`$as_dirname -- "$0" || 1255$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1256 X"$0" : 'X\(//\)[^/]' \| \ 1257 X"$0" : 'X\(//\)$' \| \ 1258 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1259echo X"$0" | 1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\/\)[^/].*/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\/\)$/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\).*/{ 1273 s//\1/ 1274 q 1275 } 1276 s/.*/./; q'` 1277 srcdir=$ac_confdir 1278 if test ! -r "$srcdir/$ac_unique_file"; then 1279 srcdir=.. 1280 fi 1281else 1282 ac_srcdir_defaulted=no 1283fi 1284if test ! -r "$srcdir/$ac_unique_file"; then 1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1287 { (exit 1); exit 1; }; } 1288fi 1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1290ac_abs_confdir=`( 1291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1292 { (exit 1); exit 1; }; } 1293 pwd)` 1294# When building in place, set srcdir=. 1295if test "$ac_abs_confdir" = "$ac_pwd"; then 1296 srcdir=. 1297fi 1298# Remove unnecessary trailing slashes from srcdir. 1299# Double slashes in file names in object file debugging info 1300# mess up M-x gdb in Emacs. 1301case $srcdir in 1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1303esac 1304for ac_var in $ac_precious_vars; do 1305 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1306 eval ac_env_${ac_var}_value=\$${ac_var} 1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1308 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1309done 1310 1311# 1312# Report the --help message. 1313# 1314if test "$ac_init_help" = "long"; then 1315 # Omit some internal or obsolete options to make the list less imposing. 1316 # This message is too long to be a string in the A/UX 3.1 sh. 1317 cat <<_ACEOF 1318\`configure' configures llvm 3.1svn to adapt to many kinds of systems. 1319 1320Usage: $0 [OPTION]... [VAR=VALUE]... 1321 1322To assign environment variables (e.g., CC, CFLAGS...), specify them as 1323VAR=VALUE. See below for descriptions of some of the useful variables. 1324 1325Defaults for the options are specified in brackets. 1326 1327Configuration: 1328 -h, --help display this help and exit 1329 --help=short display options specific to this package 1330 --help=recursive display the short help of all the included packages 1331 -V, --version display version information and exit 1332 -q, --quiet, --silent do not print \`checking...' messages 1333 --cache-file=FILE cache test results in FILE [disabled] 1334 -C, --config-cache alias for \`--cache-file=config.cache' 1335 -n, --no-create do not create output files 1336 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1337 1338Installation directories: 1339 --prefix=PREFIX install architecture-independent files in PREFIX 1340 [$ac_default_prefix] 1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1342 [PREFIX] 1343 1344By default, \`make install' will install all the files in 1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1346an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1347for instance \`--prefix=\$HOME'. 1348 1349For better control, use the options below. 1350 1351Fine tuning of the installation directories: 1352 --bindir=DIR user executables [EPREFIX/bin] 1353 --sbindir=DIR system admin executables [EPREFIX/sbin] 1354 --libexecdir=DIR program executables [EPREFIX/libexec] 1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1358 --libdir=DIR object code libraries [EPREFIX/lib] 1359 --includedir=DIR C header files [PREFIX/include] 1360 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1363 --infodir=DIR info documentation [DATAROOTDIR/info] 1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1365 --mandir=DIR man documentation [DATAROOTDIR/man] 1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] 1367 --htmldir=DIR html documentation [DOCDIR] 1368 --dvidir=DIR dvi documentation [DOCDIR] 1369 --pdfdir=DIR pdf documentation [DOCDIR] 1370 --psdir=DIR ps documentation [DOCDIR] 1371_ACEOF 1372 1373 cat <<\_ACEOF 1374 1375System types: 1376 --build=BUILD configure for building on BUILD [guessed] 1377 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1378 --target=TARGET configure for building compilers for TARGET [HOST] 1379_ACEOF 1380fi 1381 1382if test -n "$ac_init_help"; then 1383 case $ac_init_help in 1384 short | recursive ) echo "Configuration of llvm 3.1svn:";; 1385 esac 1386 cat <<\_ACEOF 1387 1388Optional Features: 1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1391 --enable-polly Use polly if available (default is YES) 1392 --enable-optimized Compile with optimizations enabled (default is NO) 1393 --enable-profiling Compile with profiling enabled (default is NO) 1394 --enable-assertions Compile with assertion checks enabled (default is 1395 YES) 1396 --enable-expensive-checks 1397 Compile with expensive debug checks enabled (default 1398 is NO) 1399 --enable-debug-runtime Build runtime libs with debug symbols (default is 1400 NO) 1401 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1402 optimization is on and YES if it's off) 1403 --enable-jit Enable Just In Time Compiling (default is YES) 1404 --enable-docs Build documents (default is YES) 1405 --enable-doxygen Build doxygen documentation (default is NO) 1406 --enable-threads Use threads if available (default is YES) 1407 --enable-pthreads Use pthreads if available (default is YES) 1408 --enable-pic Build LLVM with Position Independent Code (default 1409 is YES) 1410 --enable-shared Build a shared library and link tools against it 1411 (default is NO) 1412 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1413 Win32 DLL (default is NO) 1414 --enable-timestamps Enable embedding timestamp information in build 1415 (default is YES) 1416 --enable-targets Build specific host targets: all or 1417 target1,target2,... Valid targets are: host, x86, 1418 x86_64, sparc, powerpc, arm, mips, spu, 1419 xcore, msp430, ptx, cbe, and cpp (default=all) 1420 --enable-cbe-printf-a Enable C Backend output with hex floating point via 1421 %a (default is YES) 1422 --enable-bindings Build specific language bindings: 1423 all,auto,none,{binding-name} (default=auto) 1424 --enable-libffi Check for the presence of libffi (default is NO) 1425 --enable-ltdl-install install libltdl 1426 1427Optional Packages: 1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1430 --with-optimize-option Select the compiler options to use for optimized 1431 builds 1432 --with-extra-options Specify additional options to compile LLVM with 1433 --with-extra-ld-options Specify additional options to link LLVM with 1434 --with-ocaml-libdir Specify install location for ocaml bindings (default 1435 is stdlib) 1436 --with-clang-srcdir Directory to the out-of-tree Clang source 1437 --with-clang-resource-dir 1438 Relative directory from the Clang binary for 1439 resource files 1440 --with-c-include-dirs Colon separated list of directories clang will 1441 search for headers 1442 --with-cxx-include-root Directory with the libstdc++ headers. 1443 --with-cxx-include-arch Architecture of the libstdc++ headers. 1444 --with-cxx-include-32bit-dir 1445 32 bit multilib dir. 1446 --with-cxx-include-64bit-dir 1447 64 bit multilib directory. 1448 --with-binutils-include Specify path to binutils/include/ containing 1449 plugin-api.h file for gold plugin. 1450 --with-bug-report-url Specify the URL where bug reports should be 1451 submitted (default=http://llvm.org/bugs/) 1452 --with-tclinclude directory where tcl headers are 1453 --with-udis86=<path> Use udis86 external x86 disassembler library 1454 --with-oprofile=<prefix> 1455 Tell OProfile >= 0.9.4 how to symbolize JIT output 1456 1457Some influential environment variables: 1458 CC C compiler command 1459 CFLAGS C compiler flags 1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1461 nonstandard directory <lib dir> 1462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1463 you have headers in a nonstandard directory <include dir> 1464 CXX C++ compiler command 1465 CXXFLAGS C++ compiler flags 1466 CPP C preprocessor 1467 1468Use these variables to override the choices made by `configure' or to help 1469it to find libraries and programs with nonstandard names/locations. 1470 1471Report bugs to <llvmbugs@cs.uiuc.edu>. 1472_ACEOF 1473ac_status=$? 1474fi 1475 1476if test "$ac_init_help" = "recursive"; then 1477 # If there are subdirs, report their specific --help. 1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1479 test -d "$ac_dir" || continue 1480 ac_builddir=. 1481 1482case "$ac_dir" in 1483.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1484*) 1485 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1486 # A ".." for each directory in $ac_dir_suffix. 1487 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1488 case $ac_top_builddir_sub in 1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1491 esac ;; 1492esac 1493ac_abs_top_builddir=$ac_pwd 1494ac_abs_builddir=$ac_pwd$ac_dir_suffix 1495# for backward compatibility: 1496ac_top_builddir=$ac_top_build_prefix 1497 1498case $srcdir in 1499 .) # We are building in place. 1500 ac_srcdir=. 1501 ac_top_srcdir=$ac_top_builddir_sub 1502 ac_abs_top_srcdir=$ac_pwd ;; 1503 [\\/]* | ?:[\\/]* ) # Absolute name. 1504 ac_srcdir=$srcdir$ac_dir_suffix; 1505 ac_top_srcdir=$srcdir 1506 ac_abs_top_srcdir=$srcdir ;; 1507 *) # Relative name. 1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1509 ac_top_srcdir=$ac_top_build_prefix$srcdir 1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1511esac 1512ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1513 1514 cd "$ac_dir" || { ac_status=$?; continue; } 1515 # Check for guested configure. 1516 if test -f "$ac_srcdir/configure.gnu"; then 1517 echo && 1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1519 elif test -f "$ac_srcdir/configure"; then 1520 echo && 1521 $SHELL "$ac_srcdir/configure" --help=recursive 1522 else 1523 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1524 fi || ac_status=$? 1525 cd "$ac_pwd" || { ac_status=$?; break; } 1526 done 1527fi 1528 1529test -n "$ac_init_help" && exit $ac_status 1530if $ac_init_version; then 1531 cat <<\_ACEOF 1532llvm configure 3.1svn 1533generated by GNU Autoconf 2.60 1534 1535Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15362002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1537This configure script is free software; the Free Software Foundation 1538gives unlimited permission to copy, distribute and modify it. 1539 1540Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign. 1541_ACEOF 1542 exit 1543fi 1544cat >config.log <<_ACEOF 1545This file contains any messages produced by compilers while 1546running configure, to aid debugging if configure makes a mistake. 1547 1548It was created by llvm $as_me 3.1svn, which was 1549generated by GNU Autoconf 2.60. Invocation command line was 1550 1551 $ $0 $@ 1552 1553_ACEOF 1554exec 5>>config.log 1555{ 1556cat <<_ASUNAME 1557## --------- ## 1558## Platform. ## 1559## --------- ## 1560 1561hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1562uname -m = `(uname -m) 2>/dev/null || echo unknown` 1563uname -r = `(uname -r) 2>/dev/null || echo unknown` 1564uname -s = `(uname -s) 2>/dev/null || echo unknown` 1565uname -v = `(uname -v) 2>/dev/null || echo unknown` 1566 1567/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1568/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1569 1570/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1571/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1572/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1573/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1574/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1575/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1576/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1577 1578_ASUNAME 1579 1580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1581for as_dir in $PATH 1582do 1583 IFS=$as_save_IFS 1584 test -z "$as_dir" && as_dir=. 1585 echo "PATH: $as_dir" 1586done 1587IFS=$as_save_IFS 1588 1589} >&5 1590 1591cat >&5 <<_ACEOF 1592 1593 1594## ----------- ## 1595## Core tests. ## 1596## ----------- ## 1597 1598_ACEOF 1599 1600 1601# Keep a trace of the command line. 1602# Strip out --no-create and --no-recursion so they do not pile up. 1603# Strip out --silent because we don't want to record it for future runs. 1604# Also quote any args containing shell meta-characters. 1605# Make two passes to allow for proper duplicate-argument suppression. 1606ac_configure_args= 1607ac_configure_args0= 1608ac_configure_args1= 1609ac_must_keep_next=false 1610for ac_pass in 1 2 1611do 1612 for ac_arg 1613 do 1614 case $ac_arg in 1615 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1617 | -silent | --silent | --silen | --sile | --sil) 1618 continue ;; 1619 *\'*) 1620 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1621 esac 1622 case $ac_pass in 1623 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1624 2) 1625 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1626 if test $ac_must_keep_next = true; then 1627 ac_must_keep_next=false # Got value, back to normal. 1628 else 1629 case $ac_arg in 1630 *=* | --config-cache | -C | -disable-* | --disable-* \ 1631 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1632 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1633 | -with-* | --with-* | -without-* | --without-* | --x) 1634 case "$ac_configure_args0 " in 1635 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1636 esac 1637 ;; 1638 -* ) ac_must_keep_next=true ;; 1639 esac 1640 fi 1641 ac_configure_args="$ac_configure_args '$ac_arg'" 1642 ;; 1643 esac 1644 done 1645done 1646$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1647$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1648 1649# When interrupted or exit'd, cleanup temporary files, and complete 1650# config.log. We remove comments because anyway the quotes in there 1651# would cause problems or look ugly. 1652# WARNING: Use '\'' to represent an apostrophe within the trap. 1653# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1654trap 'exit_status=$? 1655 # Save into config.log some information that might help in debugging. 1656 { 1657 echo 1658 1659 cat <<\_ASBOX 1660## ---------------- ## 1661## Cache variables. ## 1662## ---------------- ## 1663_ASBOX 1664 echo 1665 # The following way of writing the cache mishandles newlines in values, 1666( 1667 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1668 eval ac_val=\$$ac_var 1669 case $ac_val in #( 1670 *${as_nl}*) 1671 case $ac_var in #( 1672 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1673echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1674 esac 1675 case $ac_var in #( 1676 _ | IFS | as_nl) ;; #( 1677 *) $as_unset $ac_var ;; 1678 esac ;; 1679 esac 1680 done 1681 (set) 2>&1 | 1682 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1683 *${as_nl}ac_space=\ *) 1684 sed -n \ 1685 "s/'\''/'\''\\\\'\'''\''/g; 1686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1687 ;; #( 1688 *) 1689 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1690 ;; 1691 esac | 1692 sort 1693) 1694 echo 1695 1696 cat <<\_ASBOX 1697## ----------------- ## 1698## Output variables. ## 1699## ----------------- ## 1700_ASBOX 1701 echo 1702 for ac_var in $ac_subst_vars 1703 do 1704 eval ac_val=\$$ac_var 1705 case $ac_val in 1706 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1707 esac 1708 echo "$ac_var='\''$ac_val'\''" 1709 done | sort 1710 echo 1711 1712 if test -n "$ac_subst_files"; then 1713 cat <<\_ASBOX 1714## ------------------- ## 1715## File substitutions. ## 1716## ------------------- ## 1717_ASBOX 1718 echo 1719 for ac_var in $ac_subst_files 1720 do 1721 eval ac_val=\$$ac_var 1722 case $ac_val in 1723 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1724 esac 1725 echo "$ac_var='\''$ac_val'\''" 1726 done | sort 1727 echo 1728 fi 1729 1730 if test -s confdefs.h; then 1731 cat <<\_ASBOX 1732## ----------- ## 1733## confdefs.h. ## 1734## ----------- ## 1735_ASBOX 1736 echo 1737 cat confdefs.h 1738 echo 1739 fi 1740 test "$ac_signal" != 0 && 1741 echo "$as_me: caught signal $ac_signal" 1742 echo "$as_me: exit $exit_status" 1743 } >&5 1744 rm -f core *.core core.conftest.* && 1745 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1746 exit $exit_status 1747' 0 1748for ac_signal in 1 2 13 15; do 1749 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1750done 1751ac_signal=0 1752 1753# confdefs.h avoids OS command line length limits that DEFS can exceed. 1754rm -f -r conftest* confdefs.h 1755 1756# Predefined preprocessor variables. 1757 1758cat >>confdefs.h <<_ACEOF 1759#define PACKAGE_NAME "$PACKAGE_NAME" 1760_ACEOF 1761 1762 1763cat >>confdefs.h <<_ACEOF 1764#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1765_ACEOF 1766 1767 1768cat >>confdefs.h <<_ACEOF 1769#define PACKAGE_VERSION "$PACKAGE_VERSION" 1770_ACEOF 1771 1772 1773cat >>confdefs.h <<_ACEOF 1774#define PACKAGE_STRING "$PACKAGE_STRING" 1775_ACEOF 1776 1777 1778cat >>confdefs.h <<_ACEOF 1779#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1780_ACEOF 1781 1782 1783# Let the site file select an alternate cache file if it wants to. 1784# Prefer explicitly selected file to automatically selected ones. 1785if test -n "$CONFIG_SITE"; then 1786 set x "$CONFIG_SITE" 1787elif test "x$prefix" != xNONE; then 1788 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1789else 1790 set x "$ac_default_prefix/share/config.site" \ 1791 "$ac_default_prefix/etc/config.site" 1792fi 1793shift 1794for ac_site_file 1795do 1796 if test -r "$ac_site_file"; then 1797 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1798echo "$as_me: loading site script $ac_site_file" >&6;} 1799 sed 's/^/| /' "$ac_site_file" >&5 1800 . "$ac_site_file" 1801 fi 1802done 1803 1804if test -r "$cache_file"; then 1805 # Some versions of bash will fail to source /dev/null (special 1806 # files actually), so we avoid doing that. 1807 if test -f "$cache_file"; then 1808 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1809echo "$as_me: loading cache $cache_file" >&6;} 1810 case $cache_file in 1811 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1812 *) . "./$cache_file";; 1813 esac 1814 fi 1815else 1816 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1817echo "$as_me: creating cache $cache_file" >&6;} 1818 >$cache_file 1819fi 1820 1821# Check that the precious variables saved in the cache have kept the same 1822# value. 1823ac_cache_corrupted=false 1824for ac_var in $ac_precious_vars; do 1825 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1826 eval ac_new_set=\$ac_env_${ac_var}_set 1827 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1828 eval ac_new_val=\$ac_env_${ac_var}_value 1829 case $ac_old_set,$ac_new_set in 1830 set,) 1831 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1832echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1833 ac_cache_corrupted=: ;; 1834 ,set) 1835 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1836echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1837 ac_cache_corrupted=: ;; 1838 ,);; 1839 *) 1840 if test "x$ac_old_val" != "x$ac_new_val"; then 1841 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1842echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1843 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1844echo "$as_me: former value: $ac_old_val" >&2;} 1845 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1846echo "$as_me: current value: $ac_new_val" >&2;} 1847 ac_cache_corrupted=: 1848 fi;; 1849 esac 1850 # Pass precious variables to config.status. 1851 if test "$ac_new_set" = set; then 1852 case $ac_new_val in 1853 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1854 *) ac_arg=$ac_var=$ac_new_val ;; 1855 esac 1856 case " $ac_configure_args " in 1857 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1858 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1859 esac 1860 fi 1861done 1862if $ac_cache_corrupted; then 1863 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1864echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1865 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1866echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1867 { (exit 1); exit 1; }; } 1868fi 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894ac_ext=c 1895ac_cpp='$CPP $CPPFLAGS' 1896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1898ac_compiler_gnu=$ac_cv_c_compiler_gnu 1899 1900 1901 1902LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign." 1903 1904 1905 1906 1907 1908 1909 1910ac_aux_dir= 1911for ac_dir in autoconf "$srcdir"/autoconf; do 1912 if test -f "$ac_dir/install-sh"; then 1913 ac_aux_dir=$ac_dir 1914 ac_install_sh="$ac_aux_dir/install-sh -c" 1915 break 1916 elif test -f "$ac_dir/install.sh"; then 1917 ac_aux_dir=$ac_dir 1918 ac_install_sh="$ac_aux_dir/install.sh -c" 1919 break 1920 elif test -f "$ac_dir/shtool"; then 1921 ac_aux_dir=$ac_dir 1922 ac_install_sh="$ac_aux_dir/shtool install -c" 1923 break 1924 fi 1925done 1926if test -z "$ac_aux_dir"; then 1927 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1928echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1929 { (exit 1); exit 1; }; } 1930fi 1931 1932# These three variables are undocumented and unsupported, 1933# and are intended to be withdrawn in a future Autoconf release. 1934# They can cause serious problems if a builder's source tree is in a directory 1935# whose full name contains unusual characters. 1936ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1937ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1938ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1939 1940 1941 1942if test ${srcdir} != "." ; then 1943 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1944 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1945echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1946 { (exit 1); exit 1; }; } 1947 fi 1948fi 1949 1950ac_ext=c 1951ac_cpp='$CPP $CPPFLAGS' 1952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1954ac_compiler_gnu=$ac_cv_c_compiler_gnu 1955if test -n "$ac_tool_prefix"; then 1956 for ac_prog in clang llvm-gcc gcc 1957 do 1958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1959set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1960{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1962if test "${ac_cv_prog_CC+set}" = set; then 1963 echo $ECHO_N "(cached) $ECHO_C" >&6 1964else 1965 if test -n "$CC"; then 1966 ac_cv_prog_CC="$CC" # Let the user override the test. 1967else 1968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1969for as_dir in $PATH 1970do 1971 IFS=$as_save_IFS 1972 test -z "$as_dir" && as_dir=. 1973 for ac_exec_ext in '' $ac_executable_extensions; do 1974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 1975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1977 break 2 1978 fi 1979done 1980done 1981IFS=$as_save_IFS 1982 1983fi 1984fi 1985CC=$ac_cv_prog_CC 1986if test -n "$CC"; then 1987 { echo "$as_me:$LINENO: result: $CC" >&5 1988echo "${ECHO_T}$CC" >&6; } 1989else 1990 { echo "$as_me:$LINENO: result: no" >&5 1991echo "${ECHO_T}no" >&6; } 1992fi 1993 1994 1995 test -n "$CC" && break 1996 done 1997fi 1998if test -z "$CC"; then 1999 ac_ct_CC=$CC 2000 for ac_prog in clang llvm-gcc gcc 2001do 2002 # Extract the first word of "$ac_prog", so it can be a program name with args. 2003set dummy $ac_prog; ac_word=$2 2004{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2006if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2007 echo $ECHO_N "(cached) $ECHO_C" >&6 2008else 2009 if test -n "$ac_ct_CC"; then 2010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2011else 2012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2013for as_dir in $PATH 2014do 2015 IFS=$as_save_IFS 2016 test -z "$as_dir" && as_dir=. 2017 for ac_exec_ext in '' $ac_executable_extensions; do 2018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2019 ac_cv_prog_ac_ct_CC="$ac_prog" 2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2021 break 2 2022 fi 2023done 2024done 2025IFS=$as_save_IFS 2026 2027fi 2028fi 2029ac_ct_CC=$ac_cv_prog_ac_ct_CC 2030if test -n "$ac_ct_CC"; then 2031 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2032echo "${ECHO_T}$ac_ct_CC" >&6; } 2033else 2034 { echo "$as_me:$LINENO: result: no" >&5 2035echo "${ECHO_T}no" >&6; } 2036fi 2037 2038 2039 test -n "$ac_ct_CC" && break 2040done 2041 2042 if test "x$ac_ct_CC" = x; then 2043 CC="" 2044 else 2045 case $cross_compiling:$ac_tool_warned in 2046yes:) 2047{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2048whose name does not start with the host triplet. If you think this 2049configuration is useful to you, please write to autoconf@gnu.org." >&5 2050echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2051whose name does not start with the host triplet. If you think this 2052configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2053ac_tool_warned=yes ;; 2054esac 2055 CC=$ac_ct_CC 2056 fi 2057fi 2058 2059 2060test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2061See \`config.log' for more details." >&5 2062echo "$as_me: error: no acceptable C compiler found in \$PATH 2063See \`config.log' for more details." >&2;} 2064 { (exit 1); exit 1; }; } 2065 2066# Provide some information about the compiler. 2067echo "$as_me:$LINENO: checking for C compiler version" >&5 2068ac_compiler=`set X $ac_compile; echo $2` 2069{ (ac_try="$ac_compiler --version >&5" 2070case "(($ac_try" in 2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2072 *) ac_try_echo=$ac_try;; 2073esac 2074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2075 (eval "$ac_compiler --version >&5") 2>&5 2076 ac_status=$? 2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2078 (exit $ac_status); } 2079{ (ac_try="$ac_compiler -v >&5" 2080case "(($ac_try" in 2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2082 *) ac_try_echo=$ac_try;; 2083esac 2084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2085 (eval "$ac_compiler -v >&5") 2>&5 2086 ac_status=$? 2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2088 (exit $ac_status); } 2089{ (ac_try="$ac_compiler -V >&5" 2090case "(($ac_try" in 2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2092 *) ac_try_echo=$ac_try;; 2093esac 2094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2095 (eval "$ac_compiler -V >&5") 2>&5 2096 ac_status=$? 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2098 (exit $ac_status); } 2099 2100cat >conftest.$ac_ext <<_ACEOF 2101/* confdefs.h. */ 2102_ACEOF 2103cat confdefs.h >>conftest.$ac_ext 2104cat >>conftest.$ac_ext <<_ACEOF 2105/* end confdefs.h. */ 2106 2107int 2108main () 2109{ 2110 2111 ; 2112 return 0; 2113} 2114_ACEOF 2115ac_clean_files_save=$ac_clean_files 2116ac_clean_files="$ac_clean_files a.out a.exe b.out" 2117# Try to create an executable without -o first, disregard a.out. 2118# It will help us diagnose broken compilers, and finding out an intuition 2119# of exeext. 2120{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2121echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2122ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2123# 2124# List of possible output files, starting from the most likely. 2125# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2126# only as a last resort. b.out is created by i960 compilers. 2127ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2128# 2129# The IRIX 6 linker writes into existing files which may not be 2130# executable, retaining their permissions. Remove them first so a 2131# subsequent execution test works. 2132ac_rmfiles= 2133for ac_file in $ac_files 2134do 2135 case $ac_file in 2136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2137 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2138 esac 2139done 2140rm -f $ac_rmfiles 2141 2142if { (ac_try="$ac_link_default" 2143case "(($ac_try" in 2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2145 *) ac_try_echo=$ac_try;; 2146esac 2147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2148 (eval "$ac_link_default") 2>&5 2149 ac_status=$? 2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2151 (exit $ac_status); }; then 2152 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2153# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2154# in a Makefile. We should not override ac_cv_exeext if it was cached, 2155# so that the user can short-circuit this test for compilers unknown to 2156# Autoconf. 2157for ac_file in $ac_files 2158do 2159 test -f "$ac_file" || continue 2160 case $ac_file in 2161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2162 ;; 2163 [ab].out ) 2164 # We found the default executable, but exeext='' is most 2165 # certainly right. 2166 break;; 2167 *.* ) 2168 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2169 then :; else 2170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2171 fi 2172 # We set ac_cv_exeext here because the later test for it is not 2173 # safe: cross compilers may not add the suffix if given an `-o' 2174 # argument, so we may need to know it at that point already. 2175 # Even if this section looks crufty: it has the advantage of 2176 # actually working. 2177 break;; 2178 * ) 2179 break;; 2180 esac 2181done 2182test "$ac_cv_exeext" = no && ac_cv_exeext= 2183 2184else 2185 echo "$as_me: failed program was:" >&5 2186sed 's/^/| /' conftest.$ac_ext >&5 2187 2188{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2189See \`config.log' for more details." >&5 2190echo "$as_me: error: C compiler cannot create executables 2191See \`config.log' for more details." >&2;} 2192 { (exit 77); exit 77; }; } 2193fi 2194 2195ac_exeext=$ac_cv_exeext 2196{ echo "$as_me:$LINENO: result: $ac_file" >&5 2197echo "${ECHO_T}$ac_file" >&6; } 2198 2199# Check that the compiler produces executables we can run. If not, either 2200# the compiler is broken, or we cross compile. 2201{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2202echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2203# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2204# If not cross compiling, check that we can run a simple program. 2205if test "$cross_compiling" != yes; then 2206 if { ac_try='./$ac_file' 2207 { (case "(($ac_try" in 2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2209 *) ac_try_echo=$ac_try;; 2210esac 2211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2212 (eval "$ac_try") 2>&5 2213 ac_status=$? 2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2215 (exit $ac_status); }; }; then 2216 cross_compiling=no 2217 else 2218 if test "$cross_compiling" = maybe; then 2219 cross_compiling=yes 2220 else 2221 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2222If you meant to cross compile, use \`--host'. 2223See \`config.log' for more details." >&5 2224echo "$as_me: error: cannot run C compiled programs. 2225If you meant to cross compile, use \`--host'. 2226See \`config.log' for more details." >&2;} 2227 { (exit 1); exit 1; }; } 2228 fi 2229 fi 2230fi 2231{ echo "$as_me:$LINENO: result: yes" >&5 2232echo "${ECHO_T}yes" >&6; } 2233 2234rm -f a.out a.exe conftest$ac_cv_exeext b.out 2235ac_clean_files=$ac_clean_files_save 2236# Check that the compiler produces executables we can run. If not, either 2237# the compiler is broken, or we cross compile. 2238{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2239echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2240{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2241echo "${ECHO_T}$cross_compiling" >&6; } 2242 2243{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2244echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2245if { (ac_try="$ac_link" 2246case "(($ac_try" in 2247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2248 *) ac_try_echo=$ac_try;; 2249esac 2250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2251 (eval "$ac_link") 2>&5 2252 ac_status=$? 2253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2254 (exit $ac_status); }; then 2255 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2256# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2257# work properly (i.e., refer to `conftest.exe'), while it won't with 2258# `rm'. 2259for ac_file in conftest.exe conftest conftest.*; do 2260 test -f "$ac_file" || continue 2261 case $ac_file in 2262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2263 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2264 break;; 2265 * ) break;; 2266 esac 2267done 2268else 2269 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2270See \`config.log' for more details." >&5 2271echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2272See \`config.log' for more details." >&2;} 2273 { (exit 1); exit 1; }; } 2274fi 2275 2276rm -f conftest$ac_cv_exeext 2277{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2278echo "${ECHO_T}$ac_cv_exeext" >&6; } 2279 2280rm -f conftest.$ac_ext 2281EXEEXT=$ac_cv_exeext 2282ac_exeext=$EXEEXT 2283{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2284echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2285if test "${ac_cv_objext+set}" = set; then 2286 echo $ECHO_N "(cached) $ECHO_C" >&6 2287else 2288 cat >conftest.$ac_ext <<_ACEOF 2289/* confdefs.h. */ 2290_ACEOF 2291cat confdefs.h >>conftest.$ac_ext 2292cat >>conftest.$ac_ext <<_ACEOF 2293/* end confdefs.h. */ 2294 2295int 2296main () 2297{ 2298 2299 ; 2300 return 0; 2301} 2302_ACEOF 2303rm -f conftest.o conftest.obj 2304if { (ac_try="$ac_compile" 2305case "(($ac_try" in 2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2307 *) ac_try_echo=$ac_try;; 2308esac 2309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2310 (eval "$ac_compile") 2>&5 2311 ac_status=$? 2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2313 (exit $ac_status); }; then 2314 for ac_file in conftest.o conftest.obj conftest.*; do 2315 test -f "$ac_file" || continue; 2316 case $ac_file in 2317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2319 break;; 2320 esac 2321done 2322else 2323 echo "$as_me: failed program was:" >&5 2324sed 's/^/| /' conftest.$ac_ext >&5 2325 2326{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2327See \`config.log' for more details." >&5 2328echo "$as_me: error: cannot compute suffix of object files: cannot compile 2329See \`config.log' for more details." >&2;} 2330 { (exit 1); exit 1; }; } 2331fi 2332 2333rm -f conftest.$ac_cv_objext conftest.$ac_ext 2334fi 2335{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2336echo "${ECHO_T}$ac_cv_objext" >&6; } 2337OBJEXT=$ac_cv_objext 2338ac_objext=$OBJEXT 2339{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2340echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2341if test "${ac_cv_c_compiler_gnu+set}" = set; then 2342 echo $ECHO_N "(cached) $ECHO_C" >&6 2343else 2344 cat >conftest.$ac_ext <<_ACEOF 2345/* confdefs.h. */ 2346_ACEOF 2347cat confdefs.h >>conftest.$ac_ext 2348cat >>conftest.$ac_ext <<_ACEOF 2349/* end confdefs.h. */ 2350 2351int 2352main () 2353{ 2354#ifndef __GNUC__ 2355 choke me 2356#endif 2357 2358 ; 2359 return 0; 2360} 2361_ACEOF 2362rm -f conftest.$ac_objext 2363if { (ac_try="$ac_compile" 2364case "(($ac_try" in 2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2366 *) ac_try_echo=$ac_try;; 2367esac 2368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2369 (eval "$ac_compile") 2>conftest.er1 2370 ac_status=$? 2371 grep -v '^ *+' conftest.er1 >conftest.err 2372 rm -f conftest.er1 2373 cat conftest.err >&5 2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2375 (exit $ac_status); } && 2376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2377 { (case "(($ac_try" in 2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2379 *) ac_try_echo=$ac_try;; 2380esac 2381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2382 (eval "$ac_try") 2>&5 2383 ac_status=$? 2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2385 (exit $ac_status); }; } && 2386 { ac_try='test -s conftest.$ac_objext' 2387 { (case "(($ac_try" in 2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2389 *) ac_try_echo=$ac_try;; 2390esac 2391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2392 (eval "$ac_try") 2>&5 2393 ac_status=$? 2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395 (exit $ac_status); }; }; then 2396 ac_compiler_gnu=yes 2397else 2398 echo "$as_me: failed program was:" >&5 2399sed 's/^/| /' conftest.$ac_ext >&5 2400 2401 ac_compiler_gnu=no 2402fi 2403 2404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2405ac_cv_c_compiler_gnu=$ac_compiler_gnu 2406 2407fi 2408{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2409echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2410GCC=`test $ac_compiler_gnu = yes && echo yes` 2411ac_test_CFLAGS=${CFLAGS+set} 2412ac_save_CFLAGS=$CFLAGS 2413{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2414echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2415if test "${ac_cv_prog_cc_g+set}" = set; then 2416 echo $ECHO_N "(cached) $ECHO_C" >&6 2417else 2418 ac_save_c_werror_flag=$ac_c_werror_flag 2419 ac_c_werror_flag=yes 2420 ac_cv_prog_cc_g=no 2421 CFLAGS="-g" 2422 cat >conftest.$ac_ext <<_ACEOF 2423/* confdefs.h. */ 2424_ACEOF 2425cat confdefs.h >>conftest.$ac_ext 2426cat >>conftest.$ac_ext <<_ACEOF 2427/* end confdefs.h. */ 2428 2429int 2430main () 2431{ 2432 2433 ; 2434 return 0; 2435} 2436_ACEOF 2437rm -f conftest.$ac_objext 2438if { (ac_try="$ac_compile" 2439case "(($ac_try" in 2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2441 *) ac_try_echo=$ac_try;; 2442esac 2443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2444 (eval "$ac_compile") 2>conftest.er1 2445 ac_status=$? 2446 grep -v '^ *+' conftest.er1 >conftest.err 2447 rm -f conftest.er1 2448 cat conftest.err >&5 2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2450 (exit $ac_status); } && 2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2452 { (case "(($ac_try" in 2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2454 *) ac_try_echo=$ac_try;; 2455esac 2456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2457 (eval "$ac_try") 2>&5 2458 ac_status=$? 2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2460 (exit $ac_status); }; } && 2461 { ac_try='test -s conftest.$ac_objext' 2462 { (case "(($ac_try" in 2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2464 *) ac_try_echo=$ac_try;; 2465esac 2466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2467 (eval "$ac_try") 2>&5 2468 ac_status=$? 2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2470 (exit $ac_status); }; }; then 2471 ac_cv_prog_cc_g=yes 2472else 2473 echo "$as_me: failed program was:" >&5 2474sed 's/^/| /' conftest.$ac_ext >&5 2475 2476 CFLAGS="" 2477 cat >conftest.$ac_ext <<_ACEOF 2478/* confdefs.h. */ 2479_ACEOF 2480cat confdefs.h >>conftest.$ac_ext 2481cat >>conftest.$ac_ext <<_ACEOF 2482/* end confdefs.h. */ 2483 2484int 2485main () 2486{ 2487 2488 ; 2489 return 0; 2490} 2491_ACEOF 2492rm -f conftest.$ac_objext 2493if { (ac_try="$ac_compile" 2494case "(($ac_try" in 2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2496 *) ac_try_echo=$ac_try;; 2497esac 2498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2499 (eval "$ac_compile") 2>conftest.er1 2500 ac_status=$? 2501 grep -v '^ *+' conftest.er1 >conftest.err 2502 rm -f conftest.er1 2503 cat conftest.err >&5 2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2505 (exit $ac_status); } && 2506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2507 { (case "(($ac_try" in 2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2509 *) ac_try_echo=$ac_try;; 2510esac 2511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2512 (eval "$ac_try") 2>&5 2513 ac_status=$? 2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2515 (exit $ac_status); }; } && 2516 { ac_try='test -s conftest.$ac_objext' 2517 { (case "(($ac_try" in 2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2519 *) ac_try_echo=$ac_try;; 2520esac 2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2522 (eval "$ac_try") 2>&5 2523 ac_status=$? 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); }; }; then 2526 : 2527else 2528 echo "$as_me: failed program was:" >&5 2529sed 's/^/| /' conftest.$ac_ext >&5 2530 2531 ac_c_werror_flag=$ac_save_c_werror_flag 2532 CFLAGS="-g" 2533 cat >conftest.$ac_ext <<_ACEOF 2534/* confdefs.h. */ 2535_ACEOF 2536cat confdefs.h >>conftest.$ac_ext 2537cat >>conftest.$ac_ext <<_ACEOF 2538/* end confdefs.h. */ 2539 2540int 2541main () 2542{ 2543 2544 ; 2545 return 0; 2546} 2547_ACEOF 2548rm -f conftest.$ac_objext 2549if { (ac_try="$ac_compile" 2550case "(($ac_try" in 2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2552 *) ac_try_echo=$ac_try;; 2553esac 2554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2555 (eval "$ac_compile") 2>conftest.er1 2556 ac_status=$? 2557 grep -v '^ *+' conftest.er1 >conftest.err 2558 rm -f conftest.er1 2559 cat conftest.err >&5 2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2561 (exit $ac_status); } && 2562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2563 { (case "(($ac_try" in 2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2565 *) ac_try_echo=$ac_try;; 2566esac 2567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2568 (eval "$ac_try") 2>&5 2569 ac_status=$? 2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2571 (exit $ac_status); }; } && 2572 { ac_try='test -s conftest.$ac_objext' 2573 { (case "(($ac_try" in 2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2575 *) ac_try_echo=$ac_try;; 2576esac 2577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2578 (eval "$ac_try") 2>&5 2579 ac_status=$? 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); }; }; then 2582 ac_cv_prog_cc_g=yes 2583else 2584 echo "$as_me: failed program was:" >&5 2585sed 's/^/| /' conftest.$ac_ext >&5 2586 2587 2588fi 2589 2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2591fi 2592 2593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2594fi 2595 2596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2597 ac_c_werror_flag=$ac_save_c_werror_flag 2598fi 2599{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2600echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2601if test "$ac_test_CFLAGS" = set; then 2602 CFLAGS=$ac_save_CFLAGS 2603elif test $ac_cv_prog_cc_g = yes; then 2604 if test "$GCC" = yes; then 2605 CFLAGS="-g -O2" 2606 else 2607 CFLAGS="-g" 2608 fi 2609else 2610 if test "$GCC" = yes; then 2611 CFLAGS="-O2" 2612 else 2613 CFLAGS= 2614 fi 2615fi 2616{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2617echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2618if test "${ac_cv_prog_cc_c89+set}" = set; then 2619 echo $ECHO_N "(cached) $ECHO_C" >&6 2620else 2621 ac_cv_prog_cc_c89=no 2622ac_save_CC=$CC 2623cat >conftest.$ac_ext <<_ACEOF 2624/* confdefs.h. */ 2625_ACEOF 2626cat confdefs.h >>conftest.$ac_ext 2627cat >>conftest.$ac_ext <<_ACEOF 2628/* end confdefs.h. */ 2629#include <stdarg.h> 2630#include <stdio.h> 2631#include <sys/types.h> 2632#include <sys/stat.h> 2633/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2634struct buf { int x; }; 2635FILE * (*rcsopen) (struct buf *, struct stat *, int); 2636static char *e (p, i) 2637 char **p; 2638 int i; 2639{ 2640 return p[i]; 2641} 2642static char *f (char * (*g) (char **, int), char **p, ...) 2643{ 2644 char *s; 2645 va_list v; 2646 va_start (v,p); 2647 s = g (p, va_arg (v,int)); 2648 va_end (v); 2649 return s; 2650} 2651 2652/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2653 function prototypes and stuff, but not '\xHH' hex character constants. 2654 These don't provoke an error unfortunately, instead are silently treated 2655 as 'x'. The following induces an error, until -std is added to get 2656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2657 array size at least. It's necessary to write '\x00'==0 to get something 2658 that's true only with -std. */ 2659int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2660 2661/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2662 inside strings and character constants. */ 2663#define FOO(x) 'x' 2664int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2665 2666int test (int i, double x); 2667struct s1 {int (*f) (int a);}; 2668struct s2 {int (*f) (double a);}; 2669int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2670int argc; 2671char **argv; 2672int 2673main () 2674{ 2675return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2676 ; 2677 return 0; 2678} 2679_ACEOF 2680for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2681 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2682do 2683 CC="$ac_save_CC $ac_arg" 2684 rm -f conftest.$ac_objext 2685if { (ac_try="$ac_compile" 2686case "(($ac_try" in 2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2688 *) ac_try_echo=$ac_try;; 2689esac 2690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2691 (eval "$ac_compile") 2>conftest.er1 2692 ac_status=$? 2693 grep -v '^ *+' conftest.er1 >conftest.err 2694 rm -f conftest.er1 2695 cat conftest.err >&5 2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2697 (exit $ac_status); } && 2698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2699 { (case "(($ac_try" in 2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2701 *) ac_try_echo=$ac_try;; 2702esac 2703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2704 (eval "$ac_try") 2>&5 2705 ac_status=$? 2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2707 (exit $ac_status); }; } && 2708 { ac_try='test -s conftest.$ac_objext' 2709 { (case "(($ac_try" in 2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2711 *) ac_try_echo=$ac_try;; 2712esac 2713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2714 (eval "$ac_try") 2>&5 2715 ac_status=$? 2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2717 (exit $ac_status); }; }; then 2718 ac_cv_prog_cc_c89=$ac_arg 2719else 2720 echo "$as_me: failed program was:" >&5 2721sed 's/^/| /' conftest.$ac_ext >&5 2722 2723 2724fi 2725 2726rm -f core conftest.err conftest.$ac_objext 2727 test "x$ac_cv_prog_cc_c89" != "xno" && break 2728done 2729rm -f conftest.$ac_ext 2730CC=$ac_save_CC 2731 2732fi 2733# AC_CACHE_VAL 2734case "x$ac_cv_prog_cc_c89" in 2735 x) 2736 { echo "$as_me:$LINENO: result: none needed" >&5 2737echo "${ECHO_T}none needed" >&6; } ;; 2738 xno) 2739 { echo "$as_me:$LINENO: result: unsupported" >&5 2740echo "${ECHO_T}unsupported" >&6; } ;; 2741 *) 2742 CC="$CC $ac_cv_prog_cc_c89" 2743 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2744echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2745esac 2746 2747 2748ac_ext=c 2749ac_cpp='$CPP $CPPFLAGS' 2750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2752ac_compiler_gnu=$ac_cv_c_compiler_gnu 2753 2754ac_ext=cpp 2755ac_cpp='$CXXCPP $CPPFLAGS' 2756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2759if test -z "$CXX"; then 2760 if test -n "$CCC"; then 2761 CXX=$CCC 2762 else 2763 if test -n "$ac_tool_prefix"; then 2764 for ac_prog in clang++ llvm-g++ g++ 2765 do 2766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2767set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2768{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2770if test "${ac_cv_prog_CXX+set}" = set; then 2771 echo $ECHO_N "(cached) $ECHO_C" >&6 2772else 2773 if test -n "$CXX"; then 2774 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2775else 2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2777for as_dir in $PATH 2778do 2779 IFS=$as_save_IFS 2780 test -z "$as_dir" && as_dir=. 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2783 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787done 2788done 2789IFS=$as_save_IFS 2790 2791fi 2792fi 2793CXX=$ac_cv_prog_CXX 2794if test -n "$CXX"; then 2795 { echo "$as_me:$LINENO: result: $CXX" >&5 2796echo "${ECHO_T}$CXX" >&6; } 2797else 2798 { echo "$as_me:$LINENO: result: no" >&5 2799echo "${ECHO_T}no" >&6; } 2800fi 2801 2802 2803 test -n "$CXX" && break 2804 done 2805fi 2806if test -z "$CXX"; then 2807 ac_ct_CXX=$CXX 2808 for ac_prog in clang++ llvm-g++ g++ 2809do 2810 # Extract the first word of "$ac_prog", so it can be a program name with args. 2811set dummy $ac_prog; ac_word=$2 2812{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2814if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2815 echo $ECHO_N "(cached) $ECHO_C" >&6 2816else 2817 if test -n "$ac_ct_CXX"; then 2818 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2819else 2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2821for as_dir in $PATH 2822do 2823 IFS=$as_save_IFS 2824 test -z "$as_dir" && as_dir=. 2825 for ac_exec_ext in '' $ac_executable_extensions; do 2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2827 ac_cv_prog_ac_ct_CXX="$ac_prog" 2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2829 break 2 2830 fi 2831done 2832done 2833IFS=$as_save_IFS 2834 2835fi 2836fi 2837ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2838if test -n "$ac_ct_CXX"; then 2839 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2840echo "${ECHO_T}$ac_ct_CXX" >&6; } 2841else 2842 { echo "$as_me:$LINENO: result: no" >&5 2843echo "${ECHO_T}no" >&6; } 2844fi 2845 2846 2847 test -n "$ac_ct_CXX" && break 2848done 2849 2850 if test "x$ac_ct_CXX" = x; then 2851 CXX="g++" 2852 else 2853 case $cross_compiling:$ac_tool_warned in 2854yes:) 2855{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2856whose name does not start with the host triplet. If you think this 2857configuration is useful to you, please write to autoconf@gnu.org." >&5 2858echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2859whose name does not start with the host triplet. If you think this 2860configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2861ac_tool_warned=yes ;; 2862esac 2863 CXX=$ac_ct_CXX 2864 fi 2865fi 2866 2867 fi 2868fi 2869# Provide some information about the compiler. 2870echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2871ac_compiler=`set X $ac_compile; echo $2` 2872{ (ac_try="$ac_compiler --version >&5" 2873case "(($ac_try" in 2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2875 *) ac_try_echo=$ac_try;; 2876esac 2877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2878 (eval "$ac_compiler --version >&5") 2>&5 2879 ac_status=$? 2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2881 (exit $ac_status); } 2882{ (ac_try="$ac_compiler -v >&5" 2883case "(($ac_try" in 2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2885 *) ac_try_echo=$ac_try;; 2886esac 2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2888 (eval "$ac_compiler -v >&5") 2>&5 2889 ac_status=$? 2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2891 (exit $ac_status); } 2892{ (ac_try="$ac_compiler -V >&5" 2893case "(($ac_try" in 2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2895 *) ac_try_echo=$ac_try;; 2896esac 2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2898 (eval "$ac_compiler -V >&5") 2>&5 2899 ac_status=$? 2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2901 (exit $ac_status); } 2902 2903{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2904echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2905if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2906 echo $ECHO_N "(cached) $ECHO_C" >&6 2907else 2908 cat >conftest.$ac_ext <<_ACEOF 2909/* confdefs.h. */ 2910_ACEOF 2911cat confdefs.h >>conftest.$ac_ext 2912cat >>conftest.$ac_ext <<_ACEOF 2913/* end confdefs.h. */ 2914 2915int 2916main () 2917{ 2918#ifndef __GNUC__ 2919 choke me 2920#endif 2921 2922 ; 2923 return 0; 2924} 2925_ACEOF 2926rm -f conftest.$ac_objext 2927if { (ac_try="$ac_compile" 2928case "(($ac_try" in 2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2930 *) ac_try_echo=$ac_try;; 2931esac 2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2933 (eval "$ac_compile") 2>conftest.er1 2934 ac_status=$? 2935 grep -v '^ *+' conftest.er1 >conftest.err 2936 rm -f conftest.er1 2937 cat conftest.err >&5 2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2939 (exit $ac_status); } && 2940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2941 { (case "(($ac_try" in 2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2943 *) ac_try_echo=$ac_try;; 2944esac 2945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2946 (eval "$ac_try") 2>&5 2947 ac_status=$? 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2949 (exit $ac_status); }; } && 2950 { ac_try='test -s conftest.$ac_objext' 2951 { (case "(($ac_try" in 2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2953 *) ac_try_echo=$ac_try;; 2954esac 2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2956 (eval "$ac_try") 2>&5 2957 ac_status=$? 2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2959 (exit $ac_status); }; }; then 2960 ac_compiler_gnu=yes 2961else 2962 echo "$as_me: failed program was:" >&5 2963sed 's/^/| /' conftest.$ac_ext >&5 2964 2965 ac_compiler_gnu=no 2966fi 2967 2968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2969ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2970 2971fi 2972{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2973echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2974GXX=`test $ac_compiler_gnu = yes && echo yes` 2975ac_test_CXXFLAGS=${CXXFLAGS+set} 2976ac_save_CXXFLAGS=$CXXFLAGS 2977{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2978echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 2979if test "${ac_cv_prog_cxx_g+set}" = set; then 2980 echo $ECHO_N "(cached) $ECHO_C" >&6 2981else 2982 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2983 ac_cxx_werror_flag=yes 2984 ac_cv_prog_cxx_g=no 2985 CXXFLAGS="-g" 2986 cat >conftest.$ac_ext <<_ACEOF 2987/* confdefs.h. */ 2988_ACEOF 2989cat confdefs.h >>conftest.$ac_ext 2990cat >>conftest.$ac_ext <<_ACEOF 2991/* end confdefs.h. */ 2992 2993int 2994main () 2995{ 2996 2997 ; 2998 return 0; 2999} 3000_ACEOF 3001rm -f conftest.$ac_objext 3002if { (ac_try="$ac_compile" 3003case "(($ac_try" in 3004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3005 *) ac_try_echo=$ac_try;; 3006esac 3007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3008 (eval "$ac_compile") 2>conftest.er1 3009 ac_status=$? 3010 grep -v '^ *+' conftest.er1 >conftest.err 3011 rm -f conftest.er1 3012 cat conftest.err >&5 3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3014 (exit $ac_status); } && 3015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3016 { (case "(($ac_try" in 3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3018 *) ac_try_echo=$ac_try;; 3019esac 3020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3021 (eval "$ac_try") 2>&5 3022 ac_status=$? 3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3024 (exit $ac_status); }; } && 3025 { ac_try='test -s conftest.$ac_objext' 3026 { (case "(($ac_try" in 3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3028 *) ac_try_echo=$ac_try;; 3029esac 3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3031 (eval "$ac_try") 2>&5 3032 ac_status=$? 3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); }; }; then 3035 ac_cv_prog_cxx_g=yes 3036else 3037 echo "$as_me: failed program was:" >&5 3038sed 's/^/| /' conftest.$ac_ext >&5 3039 3040 CXXFLAGS="" 3041 cat >conftest.$ac_ext <<_ACEOF 3042/* confdefs.h. */ 3043_ACEOF 3044cat confdefs.h >>conftest.$ac_ext 3045cat >>conftest.$ac_ext <<_ACEOF 3046/* end confdefs.h. */ 3047 3048int 3049main () 3050{ 3051 3052 ; 3053 return 0; 3054} 3055_ACEOF 3056rm -f conftest.$ac_objext 3057if { (ac_try="$ac_compile" 3058case "(($ac_try" in 3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3060 *) ac_try_echo=$ac_try;; 3061esac 3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3063 (eval "$ac_compile") 2>conftest.er1 3064 ac_status=$? 3065 grep -v '^ *+' conftest.er1 >conftest.err 3066 rm -f conftest.er1 3067 cat conftest.err >&5 3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3069 (exit $ac_status); } && 3070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3071 { (case "(($ac_try" in 3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3073 *) ac_try_echo=$ac_try;; 3074esac 3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3076 (eval "$ac_try") 2>&5 3077 ac_status=$? 3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3079 (exit $ac_status); }; } && 3080 { ac_try='test -s conftest.$ac_objext' 3081 { (case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084esac 3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3086 (eval "$ac_try") 2>&5 3087 ac_status=$? 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); }; }; then 3090 : 3091else 3092 echo "$as_me: failed program was:" >&5 3093sed 's/^/| /' conftest.$ac_ext >&5 3094 3095 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3096 CXXFLAGS="-g" 3097 cat >conftest.$ac_ext <<_ACEOF 3098/* confdefs.h. */ 3099_ACEOF 3100cat confdefs.h >>conftest.$ac_ext 3101cat >>conftest.$ac_ext <<_ACEOF 3102/* end confdefs.h. */ 3103 3104int 3105main () 3106{ 3107 3108 ; 3109 return 0; 3110} 3111_ACEOF 3112rm -f conftest.$ac_objext 3113if { (ac_try="$ac_compile" 3114case "(($ac_try" in 3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3116 *) ac_try_echo=$ac_try;; 3117esac 3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3119 (eval "$ac_compile") 2>conftest.er1 3120 ac_status=$? 3121 grep -v '^ *+' conftest.er1 >conftest.err 3122 rm -f conftest.er1 3123 cat conftest.err >&5 3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125 (exit $ac_status); } && 3126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3127 { (case "(($ac_try" in 3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3129 *) ac_try_echo=$ac_try;; 3130esac 3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3132 (eval "$ac_try") 2>&5 3133 ac_status=$? 3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3135 (exit $ac_status); }; } && 3136 { ac_try='test -s conftest.$ac_objext' 3137 { (case "(($ac_try" in 3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3139 *) ac_try_echo=$ac_try;; 3140esac 3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3142 (eval "$ac_try") 2>&5 3143 ac_status=$? 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3145 (exit $ac_status); }; }; then 3146 ac_cv_prog_cxx_g=yes 3147else 3148 echo "$as_me: failed program was:" >&5 3149sed 's/^/| /' conftest.$ac_ext >&5 3150 3151 3152fi 3153 3154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3155fi 3156 3157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3158fi 3159 3160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3161 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3162fi 3163{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3164echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3165if test "$ac_test_CXXFLAGS" = set; then 3166 CXXFLAGS=$ac_save_CXXFLAGS 3167elif test $ac_cv_prog_cxx_g = yes; then 3168 if test "$GXX" = yes; then 3169 CXXFLAGS="-g -O2" 3170 else 3171 CXXFLAGS="-g" 3172 fi 3173else 3174 if test "$GXX" = yes; then 3175 CXXFLAGS="-O2" 3176 else 3177 CXXFLAGS= 3178 fi 3179fi 3180ac_ext=c 3181ac_cpp='$CPP $CPPFLAGS' 3182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3184ac_compiler_gnu=$ac_cv_c_compiler_gnu 3185 3186ac_ext=c 3187ac_cpp='$CPP $CPPFLAGS' 3188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3190ac_compiler_gnu=$ac_cv_c_compiler_gnu 3191{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3192echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3193# On Suns, sometimes $CPP names a directory. 3194if test -n "$CPP" && test -d "$CPP"; then 3195 CPP= 3196fi 3197if test -z "$CPP"; then 3198 if test "${ac_cv_prog_CPP+set}" = set; then 3199 echo $ECHO_N "(cached) $ECHO_C" >&6 3200else 3201 # Double quotes because CPP needs to be expanded 3202 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3203 do 3204 ac_preproc_ok=false 3205for ac_c_preproc_warn_flag in '' yes 3206do 3207 # Use a header file that comes with gcc, so configuring glibc 3208 # with a fresh cross-compiler works. 3209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3210 # <limits.h> exists even on freestanding compilers. 3211 # On the NeXT, cc -E runs the code through the compiler's parser, 3212 # not just through cpp. "Syntax error" is here to catch this case. 3213 cat >conftest.$ac_ext <<_ACEOF 3214/* confdefs.h. */ 3215_ACEOF 3216cat confdefs.h >>conftest.$ac_ext 3217cat >>conftest.$ac_ext <<_ACEOF 3218/* end confdefs.h. */ 3219#ifdef __STDC__ 3220# include <limits.h> 3221#else 3222# include <assert.h> 3223#endif 3224 Syntax error 3225_ACEOF 3226if { (ac_try="$ac_cpp conftest.$ac_ext" 3227case "(($ac_try" in 3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3229 *) ac_try_echo=$ac_try;; 3230esac 3231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3233 ac_status=$? 3234 grep -v '^ *+' conftest.er1 >conftest.err 3235 rm -f conftest.er1 3236 cat conftest.err >&5 3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3238 (exit $ac_status); } >/dev/null; then 3239 if test -s conftest.err; then 3240 ac_cpp_err=$ac_c_preproc_warn_flag 3241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3242 else 3243 ac_cpp_err= 3244 fi 3245else 3246 ac_cpp_err=yes 3247fi 3248if test -z "$ac_cpp_err"; then 3249 : 3250else 3251 echo "$as_me: failed program was:" >&5 3252sed 's/^/| /' conftest.$ac_ext >&5 3253 3254 # Broken: fails on valid input. 3255continue 3256fi 3257 3258rm -f conftest.err conftest.$ac_ext 3259 3260 # OK, works on sane cases. Now check whether nonexistent headers 3261 # can be detected and how. 3262 cat >conftest.$ac_ext <<_ACEOF 3263/* confdefs.h. */ 3264_ACEOF 3265cat confdefs.h >>conftest.$ac_ext 3266cat >>conftest.$ac_ext <<_ACEOF 3267/* end confdefs.h. */ 3268#include <ac_nonexistent.h> 3269_ACEOF 3270if { (ac_try="$ac_cpp conftest.$ac_ext" 3271case "(($ac_try" in 3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3273 *) ac_try_echo=$ac_try;; 3274esac 3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3277 ac_status=$? 3278 grep -v '^ *+' conftest.er1 >conftest.err 3279 rm -f conftest.er1 3280 cat conftest.err >&5 3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3282 (exit $ac_status); } >/dev/null; then 3283 if test -s conftest.err; then 3284 ac_cpp_err=$ac_c_preproc_warn_flag 3285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3286 else 3287 ac_cpp_err= 3288 fi 3289else 3290 ac_cpp_err=yes 3291fi 3292if test -z "$ac_cpp_err"; then 3293 # Broken: success on invalid input. 3294continue 3295else 3296 echo "$as_me: failed program was:" >&5 3297sed 's/^/| /' conftest.$ac_ext >&5 3298 3299 # Passes both tests. 3300ac_preproc_ok=: 3301break 3302fi 3303 3304rm -f conftest.err conftest.$ac_ext 3305 3306done 3307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3308rm -f conftest.err conftest.$ac_ext 3309if $ac_preproc_ok; then 3310 break 3311fi 3312 3313 done 3314 ac_cv_prog_CPP=$CPP 3315 3316fi 3317 CPP=$ac_cv_prog_CPP 3318else 3319 ac_cv_prog_CPP=$CPP 3320fi 3321{ echo "$as_me:$LINENO: result: $CPP" >&5 3322echo "${ECHO_T}$CPP" >&6; } 3323ac_preproc_ok=false 3324for ac_c_preproc_warn_flag in '' yes 3325do 3326 # Use a header file that comes with gcc, so configuring glibc 3327 # with a fresh cross-compiler works. 3328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3329 # <limits.h> exists even on freestanding compilers. 3330 # On the NeXT, cc -E runs the code through the compiler's parser, 3331 # not just through cpp. "Syntax error" is here to catch this case. 3332 cat >conftest.$ac_ext <<_ACEOF 3333/* confdefs.h. */ 3334_ACEOF 3335cat confdefs.h >>conftest.$ac_ext 3336cat >>conftest.$ac_ext <<_ACEOF 3337/* end confdefs.h. */ 3338#ifdef __STDC__ 3339# include <limits.h> 3340#else 3341# include <assert.h> 3342#endif 3343 Syntax error 3344_ACEOF 3345if { (ac_try="$ac_cpp conftest.$ac_ext" 3346case "(($ac_try" in 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3348 *) ac_try_echo=$ac_try;; 3349esac 3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3352 ac_status=$? 3353 grep -v '^ *+' conftest.er1 >conftest.err 3354 rm -f conftest.er1 3355 cat conftest.err >&5 3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); } >/dev/null; then 3358 if test -s conftest.err; then 3359 ac_cpp_err=$ac_c_preproc_warn_flag 3360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3361 else 3362 ac_cpp_err= 3363 fi 3364else 3365 ac_cpp_err=yes 3366fi 3367if test -z "$ac_cpp_err"; then 3368 : 3369else 3370 echo "$as_me: failed program was:" >&5 3371sed 's/^/| /' conftest.$ac_ext >&5 3372 3373 # Broken: fails on valid input. 3374continue 3375fi 3376 3377rm -f conftest.err conftest.$ac_ext 3378 3379 # OK, works on sane cases. Now check whether nonexistent headers 3380 # can be detected and how. 3381 cat >conftest.$ac_ext <<_ACEOF 3382/* confdefs.h. */ 3383_ACEOF 3384cat confdefs.h >>conftest.$ac_ext 3385cat >>conftest.$ac_ext <<_ACEOF 3386/* end confdefs.h. */ 3387#include <ac_nonexistent.h> 3388_ACEOF 3389if { (ac_try="$ac_cpp conftest.$ac_ext" 3390case "(($ac_try" in 3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3392 *) ac_try_echo=$ac_try;; 3393esac 3394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3396 ac_status=$? 3397 grep -v '^ *+' conftest.er1 >conftest.err 3398 rm -f conftest.er1 3399 cat conftest.err >&5 3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3401 (exit $ac_status); } >/dev/null; then 3402 if test -s conftest.err; then 3403 ac_cpp_err=$ac_c_preproc_warn_flag 3404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3405 else 3406 ac_cpp_err= 3407 fi 3408else 3409 ac_cpp_err=yes 3410fi 3411if test -z "$ac_cpp_err"; then 3412 # Broken: success on invalid input. 3413continue 3414else 3415 echo "$as_me: failed program was:" >&5 3416sed 's/^/| /' conftest.$ac_ext >&5 3417 3418 # Passes both tests. 3419ac_preproc_ok=: 3420break 3421fi 3422 3423rm -f conftest.err conftest.$ac_ext 3424 3425done 3426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3427rm -f conftest.err conftest.$ac_ext 3428if $ac_preproc_ok; then 3429 : 3430else 3431 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3432See \`config.log' for more details." >&5 3433echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3434See \`config.log' for more details." >&2;} 3435 { (exit 1); exit 1; }; } 3436fi 3437 3438ac_ext=c 3439ac_cpp='$CPP $CPPFLAGS' 3440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3442ac_compiler_gnu=$ac_cv_c_compiler_gnu 3443 3444 3445 3446 3447if test -d ${srcdir}/projects/llvm-gcc ; then 3448 subdirs="$subdirs projects/llvm-gcc" 3449 3450fi 3451 3452if test -d ${srcdir}/projects/test-suite ; then 3453 subdirs="$subdirs projects/test-suite" 3454 3455fi 3456 3457if test -d ${srcdir}/projects/llvm-test ; then 3458 subdirs="$subdirs projects/llvm-test" 3459 3460fi 3461 3462if test -d ${srcdir}/projects/poolalloc ; then 3463 subdirs="$subdirs projects/poolalloc" 3464 3465fi 3466 3467if test -d ${srcdir}/projects/llvm-poolalloc ; then 3468 subdirs="$subdirs projects/llvm-poolalloc" 3469 3470fi 3471 3472for i in `ls ${srcdir}/projects` 3473do 3474 if test -d ${srcdir}/projects/${i} ; then 3475 case ${i} in 3476 sample) subdirs="$subdirs projects/sample" 3477 ;; 3478 privbracket) subdirs="$subdirs projects/privbracket" 3479 ;; 3480 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 3481 ;; 3482 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 3483;; 3484 llvm-java) subdirs="$subdirs projects/llvm-java" 3485 ;; 3486 llvm-tv) subdirs="$subdirs projects/llvm-tv" 3487 ;; 3488 safecode) subdirs="$subdirs projects/safecode" 3489 ;; 3490 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 3491 ;; 3492 llvm-gcc) ;; 3493 test-suite) ;; 3494 llvm-test) ;; 3495 poolalloc) ;; 3496 llvm-poolalloc) ;; 3497 *) 3498 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 3499echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 3500 ;; 3501 esac 3502 fi 3503done 3504 3505# Check whether --enable-polly was given. 3506if test "${enable_polly+set}" = set; then 3507 enableval=$enable_polly; 3508else 3509 enableval=default 3510fi 3511 3512case "$enableval" in 3513 yes) ENABLE_POLLY=1 3514 ;; 3515 no) ENABLE_POLLY=0 3516 ;; 3517 default) ENABLE_POLLY=1 3518 ;; 3519 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3520echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3521 { (exit 1); exit 1; }; } ;; 3522esac 3523 3524 3525if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3526 LLVM_HAS_POLLY=1 3527 3528 subdirs="$subdirs tools/polly" 3529 3530fi 3531 3532 3533# Make sure we can run config.sub. 3534$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3535 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3536echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3537 { (exit 1); exit 1; }; } 3538 3539{ echo "$as_me:$LINENO: checking build system type" >&5 3540echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3541if test "${ac_cv_build+set}" = set; then 3542 echo $ECHO_N "(cached) $ECHO_C" >&6 3543else 3544 ac_build_alias=$build_alias 3545test "x$ac_build_alias" = x && 3546 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3547test "x$ac_build_alias" = x && 3548 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3549echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3550 { (exit 1); exit 1; }; } 3551ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3552 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3553echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3554 { (exit 1); exit 1; }; } 3555 3556fi 3557{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3558echo "${ECHO_T}$ac_cv_build" >&6; } 3559case $ac_cv_build in 3560*-*-*) ;; 3561*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3562echo "$as_me: error: invalid value of canonical build" >&2;} 3563 { (exit 1); exit 1; }; };; 3564esac 3565build=$ac_cv_build 3566ac_save_IFS=$IFS; IFS='-' 3567set x $ac_cv_build 3568shift 3569build_cpu=$1 3570build_vendor=$2 3571shift; shift 3572# Remember, the first character of IFS is used to create $*, 3573# except with old shells: 3574build_os=$* 3575IFS=$ac_save_IFS 3576case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3577 3578 3579{ echo "$as_me:$LINENO: checking host system type" >&5 3580echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3581if test "${ac_cv_host+set}" = set; then 3582 echo $ECHO_N "(cached) $ECHO_C" >&6 3583else 3584 if test "x$host_alias" = x; then 3585 ac_cv_host=$ac_cv_build 3586else 3587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3588 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3589echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3590 { (exit 1); exit 1; }; } 3591fi 3592 3593fi 3594{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3595echo "${ECHO_T}$ac_cv_host" >&6; } 3596case $ac_cv_host in 3597*-*-*) ;; 3598*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3599echo "$as_me: error: invalid value of canonical host" >&2;} 3600 { (exit 1); exit 1; }; };; 3601esac 3602host=$ac_cv_host 3603ac_save_IFS=$IFS; IFS='-' 3604set x $ac_cv_host 3605shift 3606host_cpu=$1 3607host_vendor=$2 3608shift; shift 3609# Remember, the first character of IFS is used to create $*, 3610# except with old shells: 3611host_os=$* 3612IFS=$ac_save_IFS 3613case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3614 3615 3616{ echo "$as_me:$LINENO: checking target system type" >&5 3617echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3618if test "${ac_cv_target+set}" = set; then 3619 echo $ECHO_N "(cached) $ECHO_C" >&6 3620else 3621 if test "x$target_alias" = x; then 3622 ac_cv_target=$ac_cv_host 3623else 3624 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3625 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3626echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3627 { (exit 1); exit 1; }; } 3628fi 3629 3630fi 3631{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3632echo "${ECHO_T}$ac_cv_target" >&6; } 3633case $ac_cv_target in 3634*-*-*) ;; 3635*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3636echo "$as_me: error: invalid value of canonical target" >&2;} 3637 { (exit 1); exit 1; }; };; 3638esac 3639target=$ac_cv_target 3640ac_save_IFS=$IFS; IFS='-' 3641set x $ac_cv_target 3642shift 3643target_cpu=$1 3644target_vendor=$2 3645shift; shift 3646# Remember, the first character of IFS is used to create $*, 3647# except with old shells: 3648target_os=$* 3649IFS=$ac_save_IFS 3650case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3651 3652 3653# The aliases save the names the user supplied, while $host etc. 3654# will get canonicalized. 3655test -n "$target_alias" && 3656 test "$program_prefix$program_suffix$program_transform_name" = \ 3657 NONENONEs,x,x, && 3658 program_prefix=${target_alias}- 3659 3660{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3661echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3662if test "${llvm_cv_os_type+set}" = set; then 3663 echo $ECHO_N "(cached) $ECHO_C" >&6 3664else 3665 case $host in 3666 *-*-aix*) 3667 llvm_cv_link_all_option="-Wl,--whole-archive" 3668 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3669 llvm_cv_os_type="AIX" 3670 llvm_cv_platform_type="Unix" ;; 3671 *-*-irix*) 3672 llvm_cv_link_all_option="-Wl,--whole-archive" 3673 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3674 llvm_cv_os_type="IRIX" 3675 llvm_cv_platform_type="Unix" ;; 3676 *-*-cygwin*) 3677 llvm_cv_link_all_option="-Wl,--whole-archive" 3678 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3679 llvm_cv_os_type="Cygwin" 3680 llvm_cv_platform_type="Unix" ;; 3681 *-*-darwin*) 3682 llvm_cv_link_all_option="-Wl,-all_load" 3683 llvm_cv_no_link_all_option="-Wl,-noall_load" 3684 llvm_cv_os_type="Darwin" 3685 llvm_cv_platform_type="Unix" ;; 3686 *-*-minix*) 3687 llvm_cv_link_all_option="-Wl,-all_load" 3688 llvm_cv_no_link_all_option="-Wl,-noall_load" 3689 llvm_cv_os_type="Minix" 3690 llvm_cv_platform_type="Unix" ;; 3691 *-*-freebsd*) 3692 llvm_cv_link_all_option="-Wl,--whole-archive" 3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3694 llvm_cv_os_type="FreeBSD" 3695 llvm_cv_platform_type="Unix" ;; 3696 *-*-openbsd*) 3697 llvm_cv_link_all_option="-Wl,--whole-archive" 3698 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3699 llvm_cv_os_type="OpenBSD" 3700 llvm_cv_platform_type="Unix" ;; 3701 *-*-netbsd*) 3702 llvm_cv_link_all_option="-Wl,--whole-archive" 3703 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3704 llvm_cv_os_type="NetBSD" 3705 llvm_cv_platform_type="Unix" ;; 3706 *-*-dragonfly*) 3707 llvm_cv_link_all_option="-Wl,--whole-archive" 3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3709 llvm_cv_os_type="DragonFly" 3710 llvm_cv_platform_type="Unix" ;; 3711 *-*-hpux*) 3712 llvm_cv_link_all_option="-Wl,--whole-archive" 3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3714 llvm_cv_os_type="HP-UX" 3715 llvm_cv_platform_type="Unix" ;; 3716 *-*-interix*) 3717 llvm_cv_link_all_option="-Wl,--whole-archive" 3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3719 llvm_cv_os_type="Interix" 3720 llvm_cv_platform_type="Unix" ;; 3721 *-*-linux*) 3722 llvm_cv_link_all_option="-Wl,--whole-archive" 3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3724 llvm_cv_os_type="Linux" 3725 llvm_cv_platform_type="Unix" ;; 3726 *-*-solaris*) 3727 llvm_cv_link_all_option="-Wl,-z,allextract" 3728 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3729 llvm_cv_os_type="SunOS" 3730 llvm_cv_platform_type="Unix" ;; 3731 *-*-auroraux*) 3732 llvm_cv_link_all_option="-Wl,-z,allextract" 3733 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3734 llvm_cv_os_type="AuroraUX" 3735 llvm_cv_platform_type="Unix" ;; 3736 *-*-win32*) 3737 llvm_cv_link_all_option="-Wl,--whole-archive" 3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3739 llvm_cv_os_type="Win32" 3740 llvm_cv_platform_type="Win32" ;; 3741 *-*-mingw*) 3742 llvm_cv_link_all_option="-Wl,--whole-archive" 3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3744 llvm_cv_os_type="MingW" 3745 llvm_cv_platform_type="Win32" ;; 3746 *-*-haiku*) 3747 llvm_cv_link_all_option="-Wl,--whole-archive" 3748 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3749 llvm_cv_os_type="Haiku" 3750 llvm_cv_platform_type="Unix" ;; 3751 *-unknown-eabi*) 3752 llvm_cv_link_all_option="-Wl,--whole-archive" 3753 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3754 llvm_cv_os_type="Freestanding" 3755 llvm_cv_platform_type="Unix" ;; 3756 *-unknown-elf*) 3757 llvm_cv_link_all_option="-Wl,--whole-archive" 3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3759 llvm_cv_os_type="Freestanding" 3760 llvm_cv_platform_type="Unix" ;; 3761 *) 3762 llvm_cv_link_all_option="" 3763 llvm_cv_no_link_all_option="" 3764 llvm_cv_os_type="Unknown" 3765 llvm_cv_platform_type="Unknown" ;; 3766esac 3767fi 3768{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3769echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3770 3771{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3772echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3773if test "${llvm_cv_target_os_type+set}" = set; then 3774 echo $ECHO_N "(cached) $ECHO_C" >&6 3775else 3776 case $target in 3777 *-*-aix*) 3778 llvm_cv_target_os_type="AIX" ;; 3779 *-*-irix*) 3780 llvm_cv_target_os_type="IRIX" ;; 3781 *-*-cygwin*) 3782 llvm_cv_target_os_type="Cygwin" ;; 3783 *-*-darwin*) 3784 llvm_cv_target_os_type="Darwin" ;; 3785 *-*-minix*) 3786 llvm_cv_target_os_type="Minix" ;; 3787 *-*-freebsd*) 3788 llvm_cv_target_os_type="FreeBSD" ;; 3789 *-*-openbsd*) 3790 llvm_cv_target_os_type="OpenBSD" ;; 3791 *-*-netbsd*) 3792 llvm_cv_target_os_type="NetBSD" ;; 3793 *-*-dragonfly*) 3794 llvm_cv_target_os_type="DragonFly" ;; 3795 *-*-hpux*) 3796 llvm_cv_target_os_type="HP-UX" ;; 3797 *-*-interix*) 3798 llvm_cv_target_os_type="Interix" ;; 3799 *-*-linux*) 3800 llvm_cv_target_os_type="Linux" ;; 3801 *-*-solaris*) 3802 llvm_cv_target_os_type="SunOS" ;; 3803 *-*-auroraux*) 3804 llvm_cv_target_os_type="AuroraUX" ;; 3805 *-*-win32*) 3806 llvm_cv_target_os_type="Win32" ;; 3807 *-*-mingw*) 3808 llvm_cv_target_os_type="MingW" ;; 3809 *-*-haiku*) 3810 llvm_cv_target_os_type="Haiku" ;; 3811 *-*-rtems*) 3812 llvm_cv_target_os_type="RTEMS" ;; 3813 *-*-nacl*) 3814 llvm_cv_target_os_type="NativeClient" ;; 3815 *-unknown-eabi*) 3816 llvm_cv_target_os_type="Freestanding" ;; 3817 *) 3818 llvm_cv_target_os_type="Unknown" ;; 3819esac 3820fi 3821{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3822echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3823 3824if test "$llvm_cv_os_type" = "Unknown" ; then 3825 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3826echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3827 { (exit 1); exit 1; }; } 3828fi 3829 3830OS=$llvm_cv_os_type 3831 3832HOST_OS=$llvm_cv_os_type 3833 3834TARGET_OS=$llvm_cv_target_os_type 3835 3836 3837LINKALL=$llvm_cv_link_all_option 3838 3839NOLINKALL=$llvm_cv_no_link_all_option 3840 3841 3842case $llvm_cv_platform_type in 3843 Unix) 3844 3845cat >>confdefs.h <<\_ACEOF 3846#define LLVM_ON_UNIX 1 3847_ACEOF 3848 3849 LLVM_ON_UNIX=1 3850 3851 LLVM_ON_WIN32=0 3852 3853 ;; 3854 Win32) 3855 3856cat >>confdefs.h <<\_ACEOF 3857#define LLVM_ON_WIN32 1 3858_ACEOF 3859 3860 LLVM_ON_UNIX=0 3861 3862 LLVM_ON_WIN32=1 3863 3864 ;; 3865esac 3866 3867{ echo "$as_me:$LINENO: checking target architecture" >&5 3868echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 3869if test "${llvm_cv_target_arch+set}" = set; then 3870 echo $ECHO_N "(cached) $ECHO_C" >&6 3871else 3872 case $target in 3873 i?86-*) llvm_cv_target_arch="x86" ;; 3874 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 3875 sparc*-*) llvm_cv_target_arch="Sparc" ;; 3876 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 3877 arm*-*) llvm_cv_target_arch="ARM" ;; 3878 mips-*) llvm_cv_target_arch="Mips" ;; 3879 xcore-*) llvm_cv_target_arch="XCore" ;; 3880 msp430-*) llvm_cv_target_arch="MSP430" ;; 3881 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 3882 ptx-*) llvm_cv_target_arch="PTX" ;; 3883 *) llvm_cv_target_arch="Unknown" ;; 3884esac 3885fi 3886{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 3887echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 3888 3889if test "$llvm_cv_target_arch" = "Unknown" ; then 3890 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 3891echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 3892fi 3893 3894# Determine the LLVM native architecture for the target 3895case "$llvm_cv_target_arch" in 3896 x86) LLVM_NATIVE_ARCH="X86" ;; 3897 x86_64) LLVM_NATIVE_ARCH="X86" ;; 3898 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 3899esac 3900 3901ARCH=$llvm_cv_target_arch 3902 3903 3904 3905 3906{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3907echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3908if test "${ac_cv_path_GREP+set}" = set; then 3909 echo $ECHO_N "(cached) $ECHO_C" >&6 3910else 3911 # Extract the first word of "grep ggrep" to use in msg output 3912if test -z "$GREP"; then 3913set dummy grep ggrep; ac_prog_name=$2 3914if test "${ac_cv_path_GREP+set}" = set; then 3915 echo $ECHO_N "(cached) $ECHO_C" >&6 3916else 3917 ac_path_GREP_found=false 3918# Loop through the user's path and test for each of PROGNAME-LIST 3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3920for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3921do 3922 IFS=$as_save_IFS 3923 test -z "$as_dir" && as_dir=. 3924 for ac_prog in grep ggrep; do 3925 for ac_exec_ext in '' $ac_executable_extensions; do 3926 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3927 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3928 # Check for GNU ac_path_GREP and select it if it is found. 3929 # Check for GNU $ac_path_GREP 3930case `"$ac_path_GREP" --version 2>&1` in 3931*GNU*) 3932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3933*) 3934 ac_count=0 3935 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3936 while : 3937 do 3938 cat "conftest.in" "conftest.in" >"conftest.tmp" 3939 mv "conftest.tmp" "conftest.in" 3940 cp "conftest.in" "conftest.nl" 3941 echo 'GREP' >> "conftest.nl" 3942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3944 ac_count=`expr $ac_count + 1` 3945 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3946 # Best one so far, save it but keep looking for a better one 3947 ac_cv_path_GREP="$ac_path_GREP" 3948 ac_path_GREP_max=$ac_count 3949 fi 3950 # 10*(2^10) chars as input seems more than enough 3951 test $ac_count -gt 10 && break 3952 done 3953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3954esac 3955 3956 3957 $ac_path_GREP_found && break 3 3958 done 3959done 3960 3961done 3962IFS=$as_save_IFS 3963 3964 3965fi 3966 3967GREP="$ac_cv_path_GREP" 3968if test -z "$GREP"; then 3969 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3970echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3971 { (exit 1); exit 1; }; } 3972fi 3973 3974else 3975 ac_cv_path_GREP=$GREP 3976fi 3977 3978 3979fi 3980{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3981echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3982 GREP="$ac_cv_path_GREP" 3983 3984 3985{ echo "$as_me:$LINENO: checking for egrep" >&5 3986echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3987if test "${ac_cv_path_EGREP+set}" = set; then 3988 echo $ECHO_N "(cached) $ECHO_C" >&6 3989else 3990 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3991 then ac_cv_path_EGREP="$GREP -E" 3992 else 3993 # Extract the first word of "egrep" to use in msg output 3994if test -z "$EGREP"; then 3995set dummy egrep; ac_prog_name=$2 3996if test "${ac_cv_path_EGREP+set}" = set; then 3997 echo $ECHO_N "(cached) $ECHO_C" >&6 3998else 3999 ac_path_EGREP_found=false 4000# Loop through the user's path and test for each of PROGNAME-LIST 4001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4002for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4003do 4004 IFS=$as_save_IFS 4005 test -z "$as_dir" && as_dir=. 4006 for ac_prog in egrep; do 4007 for ac_exec_ext in '' $ac_executable_extensions; do 4008 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4009 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4010 # Check for GNU ac_path_EGREP and select it if it is found. 4011 # Check for GNU $ac_path_EGREP 4012case `"$ac_path_EGREP" --version 2>&1` in 4013*GNU*) 4014 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4015*) 4016 ac_count=0 4017 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4018 while : 4019 do 4020 cat "conftest.in" "conftest.in" >"conftest.tmp" 4021 mv "conftest.tmp" "conftest.in" 4022 cp "conftest.in" "conftest.nl" 4023 echo 'EGREP' >> "conftest.nl" 4024 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4026 ac_count=`expr $ac_count + 1` 4027 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4028 # Best one so far, save it but keep looking for a better one 4029 ac_cv_path_EGREP="$ac_path_EGREP" 4030 ac_path_EGREP_max=$ac_count 4031 fi 4032 # 10*(2^10) chars as input seems more than enough 4033 test $ac_count -gt 10 && break 4034 done 4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4036esac 4037 4038 4039 $ac_path_EGREP_found && break 3 4040 done 4041done 4042 4043done 4044IFS=$as_save_IFS 4045 4046 4047fi 4048 4049EGREP="$ac_cv_path_EGREP" 4050if test -z "$EGREP"; then 4051 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4052echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4053 { (exit 1); exit 1; }; } 4054fi 4055 4056else 4057 ac_cv_path_EGREP=$EGREP 4058fi 4059 4060 4061 fi 4062fi 4063{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4064echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4065 EGREP="$ac_cv_path_EGREP" 4066 4067 4068{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4069echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4070if test "${ac_cv_header_stdc+set}" = set; then 4071 echo $ECHO_N "(cached) $ECHO_C" >&6 4072else 4073 cat >conftest.$ac_ext <<_ACEOF 4074/* confdefs.h. */ 4075_ACEOF 4076cat confdefs.h >>conftest.$ac_ext 4077cat >>conftest.$ac_ext <<_ACEOF 4078/* end confdefs.h. */ 4079#include <stdlib.h> 4080#include <stdarg.h> 4081#include <string.h> 4082#include <float.h> 4083 4084int 4085main () 4086{ 4087 4088 ; 4089 return 0; 4090} 4091_ACEOF 4092rm -f conftest.$ac_objext 4093if { (ac_try="$ac_compile" 4094case "(($ac_try" in 4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4096 *) ac_try_echo=$ac_try;; 4097esac 4098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4099 (eval "$ac_compile") 2>conftest.er1 4100 ac_status=$? 4101 grep -v '^ *+' conftest.er1 >conftest.err 4102 rm -f conftest.er1 4103 cat conftest.err >&5 4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4105 (exit $ac_status); } && 4106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4107 { (case "(($ac_try" in 4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4109 *) ac_try_echo=$ac_try;; 4110esac 4111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4112 (eval "$ac_try") 2>&5 4113 ac_status=$? 4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4115 (exit $ac_status); }; } && 4116 { ac_try='test -s conftest.$ac_objext' 4117 { (case "(($ac_try" in 4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4119 *) ac_try_echo=$ac_try;; 4120esac 4121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4122 (eval "$ac_try") 2>&5 4123 ac_status=$? 4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4125 (exit $ac_status); }; }; then 4126 ac_cv_header_stdc=yes 4127else 4128 echo "$as_me: failed program was:" >&5 4129sed 's/^/| /' conftest.$ac_ext >&5 4130 4131 ac_cv_header_stdc=no 4132fi 4133 4134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4135 4136if test $ac_cv_header_stdc = yes; then 4137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4138 cat >conftest.$ac_ext <<_ACEOF 4139/* confdefs.h. */ 4140_ACEOF 4141cat confdefs.h >>conftest.$ac_ext 4142cat >>conftest.$ac_ext <<_ACEOF 4143/* end confdefs.h. */ 4144#include <string.h> 4145 4146_ACEOF 4147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4148 $EGREP "memchr" >/dev/null 2>&1; then 4149 : 4150else 4151 ac_cv_header_stdc=no 4152fi 4153rm -f conftest* 4154 4155fi 4156 4157if test $ac_cv_header_stdc = yes; then 4158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4159 cat >conftest.$ac_ext <<_ACEOF 4160/* confdefs.h. */ 4161_ACEOF 4162cat confdefs.h >>conftest.$ac_ext 4163cat >>conftest.$ac_ext <<_ACEOF 4164/* end confdefs.h. */ 4165#include <stdlib.h> 4166 4167_ACEOF 4168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4169 $EGREP "free" >/dev/null 2>&1; then 4170 : 4171else 4172 ac_cv_header_stdc=no 4173fi 4174rm -f conftest* 4175 4176fi 4177 4178if test $ac_cv_header_stdc = yes; then 4179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4180 if test "$cross_compiling" = yes; then 4181 : 4182else 4183 cat >conftest.$ac_ext <<_ACEOF 4184/* confdefs.h. */ 4185_ACEOF 4186cat confdefs.h >>conftest.$ac_ext 4187cat >>conftest.$ac_ext <<_ACEOF 4188/* end confdefs.h. */ 4189#include <ctype.h> 4190#include <stdlib.h> 4191#if ((' ' & 0x0FF) == 0x020) 4192# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4193# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4194#else 4195# define ISLOWER(c) \ 4196 (('a' <= (c) && (c) <= 'i') \ 4197 || ('j' <= (c) && (c) <= 'r') \ 4198 || ('s' <= (c) && (c) <= 'z')) 4199# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4200#endif 4201 4202#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4203int 4204main () 4205{ 4206 int i; 4207 for (i = 0; i < 256; i++) 4208 if (XOR (islower (i), ISLOWER (i)) 4209 || toupper (i) != TOUPPER (i)) 4210 return 2; 4211 return 0; 4212} 4213_ACEOF 4214rm -f conftest$ac_exeext 4215if { (ac_try="$ac_link" 4216case "(($ac_try" in 4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4218 *) ac_try_echo=$ac_try;; 4219esac 4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4221 (eval "$ac_link") 2>&5 4222 ac_status=$? 4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4225 { (case "(($ac_try" in 4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4227 *) ac_try_echo=$ac_try;; 4228esac 4229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4230 (eval "$ac_try") 2>&5 4231 ac_status=$? 4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4233 (exit $ac_status); }; }; then 4234 : 4235else 4236 echo "$as_me: program exited with status $ac_status" >&5 4237echo "$as_me: failed program was:" >&5 4238sed 's/^/| /' conftest.$ac_ext >&5 4239 4240( exit $ac_status ) 4241ac_cv_header_stdc=no 4242fi 4243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4244fi 4245 4246 4247fi 4248fi 4249{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4250echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4251if test $ac_cv_header_stdc = yes; then 4252 4253cat >>confdefs.h <<\_ACEOF 4254#define STDC_HEADERS 1 4255_ACEOF 4256 4257fi 4258 4259# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4270 inttypes.h stdint.h unistd.h 4271do 4272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4273{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4276 echo $ECHO_N "(cached) $ECHO_C" >&6 4277else 4278 cat >conftest.$ac_ext <<_ACEOF 4279/* confdefs.h. */ 4280_ACEOF 4281cat confdefs.h >>conftest.$ac_ext 4282cat >>conftest.$ac_ext <<_ACEOF 4283/* end confdefs.h. */ 4284$ac_includes_default 4285 4286#include <$ac_header> 4287_ACEOF 4288rm -f conftest.$ac_objext 4289if { (ac_try="$ac_compile" 4290case "(($ac_try" in 4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4292 *) ac_try_echo=$ac_try;; 4293esac 4294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4295 (eval "$ac_compile") 2>conftest.er1 4296 ac_status=$? 4297 grep -v '^ *+' conftest.er1 >conftest.err 4298 rm -f conftest.er1 4299 cat conftest.err >&5 4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4301 (exit $ac_status); } && 4302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4303 { (case "(($ac_try" in 4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4305 *) ac_try_echo=$ac_try;; 4306esac 4307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4308 (eval "$ac_try") 2>&5 4309 ac_status=$? 4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4311 (exit $ac_status); }; } && 4312 { ac_try='test -s conftest.$ac_objext' 4313 { (case "(($ac_try" in 4314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4315 *) ac_try_echo=$ac_try;; 4316esac 4317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4318 (eval "$ac_try") 2>&5 4319 ac_status=$? 4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4321 (exit $ac_status); }; }; then 4322 eval "$as_ac_Header=yes" 4323else 4324 echo "$as_me: failed program was:" >&5 4325sed 's/^/| /' conftest.$ac_ext >&5 4326 4327 eval "$as_ac_Header=no" 4328fi 4329 4330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4331fi 4332ac_res=`eval echo '${'$as_ac_Header'}'` 4333 { echo "$as_me:$LINENO: result: $ac_res" >&5 4334echo "${ECHO_T}$ac_res" >&6; } 4335if test `eval echo '${'$as_ac_Header'}'` = yes; then 4336 cat >>confdefs.h <<_ACEOF 4337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4338_ACEOF 4339 4340fi 4341 4342done 4343 4344 4345{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4346echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4347if test "${ac_cv_c_bigendian+set}" = set; then 4348 echo $ECHO_N "(cached) $ECHO_C" >&6 4349else 4350 # See if sys/param.h defines the BYTE_ORDER macro. 4351cat >conftest.$ac_ext <<_ACEOF 4352/* confdefs.h. */ 4353_ACEOF 4354cat confdefs.h >>conftest.$ac_ext 4355cat >>conftest.$ac_ext <<_ACEOF 4356/* end confdefs.h. */ 4357#include <sys/types.h> 4358#include <sys/param.h> 4359 4360int 4361main () 4362{ 4363#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4364 bogus endian macros 4365#endif 4366 4367 ; 4368 return 0; 4369} 4370_ACEOF 4371rm -f conftest.$ac_objext 4372if { (ac_try="$ac_compile" 4373case "(($ac_try" in 4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4375 *) ac_try_echo=$ac_try;; 4376esac 4377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4378 (eval "$ac_compile") 2>conftest.er1 4379 ac_status=$? 4380 grep -v '^ *+' conftest.er1 >conftest.err 4381 rm -f conftest.er1 4382 cat conftest.err >&5 4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4384 (exit $ac_status); } && 4385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4386 { (case "(($ac_try" in 4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4388 *) ac_try_echo=$ac_try;; 4389esac 4390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4391 (eval "$ac_try") 2>&5 4392 ac_status=$? 4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4394 (exit $ac_status); }; } && 4395 { ac_try='test -s conftest.$ac_objext' 4396 { (case "(($ac_try" in 4397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4398 *) ac_try_echo=$ac_try;; 4399esac 4400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4401 (eval "$ac_try") 2>&5 4402 ac_status=$? 4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4404 (exit $ac_status); }; }; then 4405 # It does; now see whether it defined to BIG_ENDIAN or not. 4406cat >conftest.$ac_ext <<_ACEOF 4407/* confdefs.h. */ 4408_ACEOF 4409cat confdefs.h >>conftest.$ac_ext 4410cat >>conftest.$ac_ext <<_ACEOF 4411/* end confdefs.h. */ 4412#include <sys/types.h> 4413#include <sys/param.h> 4414 4415int 4416main () 4417{ 4418#if BYTE_ORDER != BIG_ENDIAN 4419 not big endian 4420#endif 4421 4422 ; 4423 return 0; 4424} 4425_ACEOF 4426rm -f conftest.$ac_objext 4427if { (ac_try="$ac_compile" 4428case "(($ac_try" in 4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4430 *) ac_try_echo=$ac_try;; 4431esac 4432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4433 (eval "$ac_compile") 2>conftest.er1 4434 ac_status=$? 4435 grep -v '^ *+' conftest.er1 >conftest.err 4436 rm -f conftest.er1 4437 cat conftest.err >&5 4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4439 (exit $ac_status); } && 4440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4441 { (case "(($ac_try" in 4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4443 *) ac_try_echo=$ac_try;; 4444esac 4445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4446 (eval "$ac_try") 2>&5 4447 ac_status=$? 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); }; } && 4450 { ac_try='test -s conftest.$ac_objext' 4451 { (case "(($ac_try" in 4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4453 *) ac_try_echo=$ac_try;; 4454esac 4455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4456 (eval "$ac_try") 2>&5 4457 ac_status=$? 4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4459 (exit $ac_status); }; }; then 4460 ac_cv_c_bigendian=yes 4461else 4462 echo "$as_me: failed program was:" >&5 4463sed 's/^/| /' conftest.$ac_ext >&5 4464 4465 ac_cv_c_bigendian=no 4466fi 4467 4468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4469else 4470 echo "$as_me: failed program was:" >&5 4471sed 's/^/| /' conftest.$ac_ext >&5 4472 4473 # It does not; compile a test program. 4474if test "$cross_compiling" = yes; then 4475 # try to guess the endianness by grepping values into an object file 4476 ac_cv_c_bigendian=unknown 4477 cat >conftest.$ac_ext <<_ACEOF 4478/* confdefs.h. */ 4479_ACEOF 4480cat confdefs.h >>conftest.$ac_ext 4481cat >>conftest.$ac_ext <<_ACEOF 4482/* end confdefs.h. */ 4483short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4484short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4485void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4486short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4487short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4488void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4489int 4490main () 4491{ 4492 _ascii (); _ebcdic (); 4493 ; 4494 return 0; 4495} 4496_ACEOF 4497rm -f conftest.$ac_objext 4498if { (ac_try="$ac_compile" 4499case "(($ac_try" in 4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4501 *) ac_try_echo=$ac_try;; 4502esac 4503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4504 (eval "$ac_compile") 2>conftest.er1 4505 ac_status=$? 4506 grep -v '^ *+' conftest.er1 >conftest.err 4507 rm -f conftest.er1 4508 cat conftest.err >&5 4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4510 (exit $ac_status); } && 4511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4512 { (case "(($ac_try" in 4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4514 *) ac_try_echo=$ac_try;; 4515esac 4516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4517 (eval "$ac_try") 2>&5 4518 ac_status=$? 4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4520 (exit $ac_status); }; } && 4521 { ac_try='test -s conftest.$ac_objext' 4522 { (case "(($ac_try" in 4523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4524 *) ac_try_echo=$ac_try;; 4525esac 4526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4527 (eval "$ac_try") 2>&5 4528 ac_status=$? 4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4530 (exit $ac_status); }; }; then 4531 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4532 ac_cv_c_bigendian=yes 4533fi 4534if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4535 if test "$ac_cv_c_bigendian" = unknown; then 4536 ac_cv_c_bigendian=no 4537 else 4538 # finding both strings is unlikely to happen, but who knows? 4539 ac_cv_c_bigendian=unknown 4540 fi 4541fi 4542else 4543 echo "$as_me: failed program was:" >&5 4544sed 's/^/| /' conftest.$ac_ext >&5 4545 4546 4547fi 4548 4549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4550else 4551 cat >conftest.$ac_ext <<_ACEOF 4552/* confdefs.h. */ 4553_ACEOF 4554cat confdefs.h >>conftest.$ac_ext 4555cat >>conftest.$ac_ext <<_ACEOF 4556/* end confdefs.h. */ 4557$ac_includes_default 4558int 4559main () 4560{ 4561 4562 /* Are we little or big endian? From Harbison&Steele. */ 4563 union 4564 { 4565 long int l; 4566 char c[sizeof (long int)]; 4567 } u; 4568 u.l = 1; 4569 return u.c[sizeof (long int) - 1] == 1; 4570 4571 ; 4572 return 0; 4573} 4574_ACEOF 4575rm -f conftest$ac_exeext 4576if { (ac_try="$ac_link" 4577case "(($ac_try" in 4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4579 *) ac_try_echo=$ac_try;; 4580esac 4581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4582 (eval "$ac_link") 2>&5 4583 ac_status=$? 4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4586 { (case "(($ac_try" in 4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4588 *) ac_try_echo=$ac_try;; 4589esac 4590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4591 (eval "$ac_try") 2>&5 4592 ac_status=$? 4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4594 (exit $ac_status); }; }; then 4595 ac_cv_c_bigendian=no 4596else 4597 echo "$as_me: program exited with status $ac_status" >&5 4598echo "$as_me: failed program was:" >&5 4599sed 's/^/| /' conftest.$ac_ext >&5 4600 4601( exit $ac_status ) 4602ac_cv_c_bigendian=yes 4603fi 4604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4605fi 4606 4607 4608fi 4609 4610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4611fi 4612{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4613echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4614case $ac_cv_c_bigendian in 4615 yes) 4616 ENDIAN=big 4617 ;; 4618 no) 4619 ENDIAN=little 4620 ;; 4621 *) 4622 { { echo "$as_me:$LINENO: error: unknown endianness 4623presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4624echo "$as_me: error: unknown endianness 4625presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4626 { (exit 1); exit 1; }; } ;; 4627esac 4628 4629 4630if test "$cross_compiling" = yes; then 4631 LLVM_CROSS_COMPILING=1 4632 4633 4634{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4635echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4636if test "${ac_cv_build_exeext+set}" = set; then 4637 echo $ECHO_N "(cached) $ECHO_C" >&6 4638else 4639 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4640 ac_cv_build_exeext=.exe 4641else 4642 ac_build_prefix=${build_alias}- 4643 4644 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4645set dummy ${ac_build_prefix}gcc; ac_word=$2 4646{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4648if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4649 echo $ECHO_N "(cached) $ECHO_C" >&6 4650else 4651 if test -n "$BUILD_CC"; then 4652 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4653else 4654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4655for as_dir in $PATH 4656do 4657 IFS=$as_save_IFS 4658 test -z "$as_dir" && as_dir=. 4659 for ac_exec_ext in '' $ac_executable_extensions; do 4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4661 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4663 break 2 4664 fi 4665done 4666done 4667IFS=$as_save_IFS 4668 4669fi 4670fi 4671BUILD_CC=$ac_cv_prog_BUILD_CC 4672if test -n "$BUILD_CC"; then 4673 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4674echo "${ECHO_T}$BUILD_CC" >&6; } 4675else 4676 { echo "$as_me:$LINENO: result: no" >&5 4677echo "${ECHO_T}no" >&6; } 4678fi 4679 4680 4681 if test -z "$BUILD_CC"; then 4682 # Extract the first word of "gcc", so it can be a program name with args. 4683set dummy gcc; ac_word=$2 4684{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4686if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4687 echo $ECHO_N "(cached) $ECHO_C" >&6 4688else 4689 if test -n "$BUILD_CC"; then 4690 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4691else 4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4693for as_dir in $PATH 4694do 4695 IFS=$as_save_IFS 4696 test -z "$as_dir" && as_dir=. 4697 for ac_exec_ext in '' $ac_executable_extensions; do 4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4699 ac_cv_prog_BUILD_CC="gcc" 4700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4701 break 2 4702 fi 4703done 4704done 4705IFS=$as_save_IFS 4706 4707fi 4708fi 4709BUILD_CC=$ac_cv_prog_BUILD_CC 4710if test -n "$BUILD_CC"; then 4711 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4712echo "${ECHO_T}$BUILD_CC" >&6; } 4713else 4714 { echo "$as_me:$LINENO: result: no" >&5 4715echo "${ECHO_T}no" >&6; } 4716fi 4717 4718 4719 if test -z "$BUILD_CC"; then 4720 # Extract the first word of "cc", so it can be a program name with args. 4721set dummy cc; ac_word=$2 4722{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4724if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4725 echo $ECHO_N "(cached) $ECHO_C" >&6 4726else 4727 if test -n "$BUILD_CC"; then 4728 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4729else 4730 ac_prog_rejected=no 4731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4732for as_dir in $PATH 4733do 4734 IFS=$as_save_IFS 4735 test -z "$as_dir" && as_dir=. 4736 for ac_exec_ext in '' $ac_executable_extensions; do 4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4739 ac_prog_rejected=yes 4740 continue 4741 fi 4742 ac_cv_prog_BUILD_CC="cc" 4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4744 break 2 4745 fi 4746done 4747done 4748IFS=$as_save_IFS 4749 4750if test $ac_prog_rejected = yes; then 4751 # We found a bogon in the path, so make sure we never use it. 4752 set dummy $ac_cv_prog_BUILD_CC 4753 shift 4754 if test $# != 0; then 4755 # We chose a different compiler from the bogus one. 4756 # However, it has the same basename, so the bogon will be chosen 4757 # first if we set BUILD_CC to just the basename; use the full file name. 4758 shift 4759 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4760 fi 4761fi 4762fi 4763fi 4764BUILD_CC=$ac_cv_prog_BUILD_CC 4765if test -n "$BUILD_CC"; then 4766 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4767echo "${ECHO_T}$BUILD_CC" >&6; } 4768else 4769 { echo "$as_me:$LINENO: result: no" >&5 4770echo "${ECHO_T}no" >&6; } 4771fi 4772 4773 4774 fi 4775 fi 4776 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4777echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4778 { (exit 1); exit 1; }; } 4779 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4780 rm -f conftest* 4781 echo 'int main () { return 0; }' > conftest.$ac_ext 4782 ac_cv_build_exeext= 4783 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4784 (eval $ac_build_link) 2>&5 4785 ac_status=$? 4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4787 (exit $ac_status); }; then 4788 for file in conftest.*; do 4789 case $file in 4790 *.c | *.o | *.obj | *.dSYM) ;; 4791 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4792 esac 4793 done 4794 else 4795 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4796echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4797 { (exit 1); exit 1; }; } 4798 fi 4799 rm -f conftest* 4800 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4801fi 4802fi 4803 4804BUILD_EXEEXT="" 4805test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4806{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4807echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4808ac_build_exeext=$BUILD_EXEEXT 4809 4810 ac_build_prefix=${build_alias}- 4811 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4812set dummy ${ac_build_prefix}g++; ac_word=$2 4813{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4815if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4816 echo $ECHO_N "(cached) $ECHO_C" >&6 4817else 4818 if test -n "$BUILD_CXX"; then 4819 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4820else 4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4822for as_dir in $PATH 4823do 4824 IFS=$as_save_IFS 4825 test -z "$as_dir" && as_dir=. 4826 for ac_exec_ext in '' $ac_executable_extensions; do 4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4828 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4830 break 2 4831 fi 4832done 4833done 4834IFS=$as_save_IFS 4835 4836fi 4837fi 4838BUILD_CXX=$ac_cv_prog_BUILD_CXX 4839if test -n "$BUILD_CXX"; then 4840 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4841echo "${ECHO_T}$BUILD_CXX" >&6; } 4842else 4843 { echo "$as_me:$LINENO: result: no" >&5 4844echo "${ECHO_T}no" >&6; } 4845fi 4846 4847 4848 if test -z "$BUILD_CXX"; then 4849 # Extract the first word of "g++", so it can be a program name with args. 4850set dummy g++; ac_word=$2 4851{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4853if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4854 echo $ECHO_N "(cached) $ECHO_C" >&6 4855else 4856 if test -n "$BUILD_CXX"; then 4857 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4858else 4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4860for as_dir in $PATH 4861do 4862 IFS=$as_save_IFS 4863 test -z "$as_dir" && as_dir=. 4864 for ac_exec_ext in '' $ac_executable_extensions; do 4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4866 ac_cv_prog_BUILD_CXX="g++" 4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4868 break 2 4869 fi 4870done 4871done 4872IFS=$as_save_IFS 4873 4874fi 4875fi 4876BUILD_CXX=$ac_cv_prog_BUILD_CXX 4877if test -n "$BUILD_CXX"; then 4878 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4879echo "${ECHO_T}$BUILD_CXX" >&6; } 4880else 4881 { echo "$as_me:$LINENO: result: no" >&5 4882echo "${ECHO_T}no" >&6; } 4883fi 4884 4885 4886 if test -z "$BUILD_CXX"; then 4887 # Extract the first word of "c++", so it can be a program name with args. 4888set dummy c++; ac_word=$2 4889{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4891if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4892 echo $ECHO_N "(cached) $ECHO_C" >&6 4893else 4894 if test -n "$BUILD_CXX"; then 4895 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4896else 4897 ac_prog_rejected=no 4898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4899for as_dir in $PATH 4900do 4901 IFS=$as_save_IFS 4902 test -z "$as_dir" && as_dir=. 4903 for ac_exec_ext in '' $ac_executable_extensions; do 4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4905 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4906 ac_prog_rejected=yes 4907 continue 4908 fi 4909 ac_cv_prog_BUILD_CXX="c++" 4910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4911 break 2 4912 fi 4913done 4914done 4915IFS=$as_save_IFS 4916 4917if test $ac_prog_rejected = yes; then 4918 # We found a bogon in the path, so make sure we never use it. 4919 set dummy $ac_cv_prog_BUILD_CXX 4920 shift 4921 if test $# != 0; then 4922 # We chose a different compiler from the bogus one. 4923 # However, it has the same basename, so the bogon will be chosen 4924 # first if we set BUILD_CXX to just the basename; use the full file name. 4925 shift 4926 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4927 fi 4928fi 4929fi 4930fi 4931BUILD_CXX=$ac_cv_prog_BUILD_CXX 4932if test -n "$BUILD_CXX"; then 4933 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4934echo "${ECHO_T}$BUILD_CXX" >&6; } 4935else 4936 { echo "$as_me:$LINENO: result: no" >&5 4937echo "${ECHO_T}no" >&6; } 4938fi 4939 4940 4941 fi 4942 fi 4943else 4944 LLVM_CROSS_COMPILING=0 4945 4946fi 4947 4948if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4949 cvsbuild="yes" 4950 optimize="no" 4951 CVSBUILD=CVSBUILD=1 4952 4953else 4954 cvsbuild="no" 4955 optimize="yes" 4956fi 4957 4958 4959# Check whether --enable-optimized was given. 4960if test "${enable_optimized+set}" = set; then 4961 enableval=$enable_optimized; 4962else 4963 enableval=$optimize 4964fi 4965 4966if test ${enableval} = "no" ; then 4967 ENABLE_OPTIMIZED= 4968 4969else 4970 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4971 4972fi 4973 4974# Check whether --enable-profiling was given. 4975if test "${enable_profiling+set}" = set; then 4976 enableval=$enable_profiling; 4977else 4978 enableval="no" 4979fi 4980 4981if test ${enableval} = "no" ; then 4982 ENABLE_PROFILING= 4983 4984else 4985 ENABLE_PROFILING=ENABLE_PROFILING=1 4986 4987fi 4988 4989# Check whether --enable-assertions was given. 4990if test "${enable_assertions+set}" = set; then 4991 enableval=$enable_assertions; 4992else 4993 enableval="yes" 4994fi 4995 4996if test ${enableval} = "yes" ; then 4997 DISABLE_ASSERTIONS= 4998 4999else 5000 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5001 5002fi 5003 5004# Check whether --enable-expensive-checks was given. 5005if test "${enable_expensive_checks+set}" = set; then 5006 enableval=$enable_expensive_checks; 5007else 5008 enableval="no" 5009fi 5010 5011if test ${enableval} = "yes" ; then 5012 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5013 5014 EXPENSIVE_CHECKS=yes 5015 5016else 5017 ENABLE_EXPENSIVE_CHECKS= 5018 5019 EXPENSIVE_CHECKS=no 5020 5021fi 5022 5023# Check whether --enable-debug-runtime was given. 5024if test "${enable_debug_runtime+set}" = set; then 5025 enableval=$enable_debug_runtime; 5026else 5027 enableval=no 5028fi 5029 5030if test ${enableval} = "no" ; then 5031 DEBUG_RUNTIME= 5032 5033else 5034 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5035 5036fi 5037 5038# Check whether --enable-debug-symbols was given. 5039if test "${enable_debug_symbols+set}" = set; then 5040 enableval=$enable_debug_symbols; 5041else 5042 enableval=no 5043fi 5044 5045if test ${enableval} = "no" ; then 5046 DEBUG_SYMBOLS= 5047 5048else 5049 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5050 5051fi 5052 5053# Check whether --enable-jit was given. 5054if test "${enable_jit+set}" = set; then 5055 enableval=$enable_jit; 5056else 5057 enableval=default 5058fi 5059 5060if test ${enableval} = "no" 5061then 5062 JIT= 5063 5064else 5065 case "$llvm_cv_target_arch" in 5066 x86) TARGET_HAS_JIT=1 5067 ;; 5068 Sparc) TARGET_HAS_JIT=0 5069 ;; 5070 PowerPC) TARGET_HAS_JIT=1 5071 ;; 5072 x86_64) TARGET_HAS_JIT=1 5073 ;; 5074 ARM) TARGET_HAS_JIT=1 5075 ;; 5076 Mips) TARGET_HAS_JIT=1 5077 ;; 5078 XCore) TARGET_HAS_JIT=0 5079 ;; 5080 MSP430) TARGET_HAS_JIT=0 5081 ;; 5082 MBlaze) TARGET_HAS_JIT=0 5083 ;; 5084 PTX) TARGET_HAS_JIT=0 5085 ;; 5086 *) TARGET_HAS_JIT=0 5087 ;; 5088 esac 5089fi 5090 5091# Check whether --enable-docs was given. 5092if test "${enable_docs+set}" = set; then 5093 enableval=$enable_docs; 5094else 5095 enableval=default 5096fi 5097 5098case "$enableval" in 5099 yes) ENABLE_DOCS=1 5100 ;; 5101 no) ENABLE_DOCS=0 5102 ;; 5103 default) ENABLE_DOCS=1 5104 ;; 5105 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5106echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5107 { (exit 1); exit 1; }; } ;; 5108esac 5109 5110# Check whether --enable-doxygen was given. 5111if test "${enable_doxygen+set}" = set; then 5112 enableval=$enable_doxygen; 5113else 5114 enableval=default 5115fi 5116 5117case "$enableval" in 5118 yes) ENABLE_DOXYGEN=1 5119 ;; 5120 no) ENABLE_DOXYGEN=0 5121 ;; 5122 default) ENABLE_DOXYGEN=0 5123 ;; 5124 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5125echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5126 { (exit 1); exit 1; }; } ;; 5127esac 5128 5129# Check whether --enable-threads was given. 5130if test "${enable_threads+set}" = set; then 5131 enableval=$enable_threads; 5132else 5133 enableval=default 5134fi 5135 5136case "$enableval" in 5137 yes) ENABLE_THREADS=1 5138 ;; 5139 no) ENABLE_THREADS=0 5140 ;; 5141 default) ENABLE_THREADS=1 5142 ;; 5143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5144echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5145 { (exit 1); exit 1; }; } ;; 5146esac 5147 5148cat >>confdefs.h <<_ACEOF 5149#define ENABLE_THREADS $ENABLE_THREADS 5150_ACEOF 5151 5152 5153# Check whether --enable-pthreads was given. 5154if test "${enable_pthreads+set}" = set; then 5155 enableval=$enable_pthreads; 5156else 5157 enableval=default 5158fi 5159 5160case "$enableval" in 5161 yes) ENABLE_PTHREADS=1 5162 ;; 5163 no) ENABLE_PTHREADS=0 5164 ;; 5165 default) ENABLE_PTHREADS=1 5166 ;; 5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5168echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5169 { (exit 1); exit 1; }; } ;; 5170esac 5171 5172# Check whether --enable-pic was given. 5173if test "${enable_pic+set}" = set; then 5174 enableval=$enable_pic; 5175else 5176 enableval=default 5177fi 5178 5179case "$enableval" in 5180 yes) ENABLE_PIC=1 5181 ;; 5182 no) ENABLE_PIC=0 5183 ;; 5184 default) ENABLE_PIC=1 5185 ;; 5186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5187echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5188 { (exit 1); exit 1; }; } ;; 5189esac 5190 5191cat >>confdefs.h <<_ACEOF 5192#define ENABLE_PIC $ENABLE_PIC 5193_ACEOF 5194 5195 5196# Check whether --enable-shared was given. 5197if test "${enable_shared+set}" = set; then 5198 enableval=$enable_shared; 5199else 5200 enableval=default 5201fi 5202 5203case "$enableval" in 5204 yes) ENABLE_SHARED=1 5205 ;; 5206 no) ENABLE_SHARED=0 5207 ;; 5208 default) ENABLE_SHARED=0 5209 ;; 5210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5211echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5212 { (exit 1); exit 1; }; } ;; 5213esac 5214 5215# Check whether --enable-embed-stdcxx was given. 5216if test "${enable_embed_stdcxx+set}" = set; then 5217 enableval=$enable_embed_stdcxx; 5218else 5219 enableval=default 5220fi 5221 5222case "$enableval" in 5223 yes) ENABLE_EMBED_STDCXX=1 5224 ;; 5225 no) ENABLE_EMBED_STDCXX=0 5226 ;; 5227 default) ENABLE_EMBED_STDCXX=0 5228 ;; 5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5230echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5231 { (exit 1); exit 1; }; } ;; 5232esac 5233 5234# Check whether --enable-timestamps was given. 5235if test "${enable_timestamps+set}" = set; then 5236 enableval=$enable_timestamps; 5237else 5238 enableval=default 5239fi 5240 5241case "$enableval" in 5242 yes) ENABLE_TIMESTAMPS=1 5243 ;; 5244 no) ENABLE_TIMESTAMPS=0 5245 ;; 5246 default) ENABLE_TIMESTAMPS=1 5247 ;; 5248 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5249echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5250 { (exit 1); exit 1; }; } ;; 5251esac 5252 5253cat >>confdefs.h <<_ACEOF 5254#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5255_ACEOF 5256 5257 5258TARGETS_TO_BUILD="" 5259# Check whether --enable-targets was given. 5260if test "${enable_targets+set}" = set; then 5261 enableval=$enable_targets; 5262else 5263 enableval=all 5264fi 5265 5266if test "$enableval" = host-only ; then 5267 enableval=host 5268fi 5269case "$enableval" in 5270 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX" ;; 5271 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5272 case "$a_target" in 5273 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5274 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5275 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5276 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5277 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5278 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5279 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5280 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5281 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5282 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; 5283 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5284 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5285 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 5286 host) case "$llvm_cv_target_arch" in 5287 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5288 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5289 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5290 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5291 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5292 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5293 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 5294 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 5295 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5296 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5297 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 5298 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5299echo "$as_me: error: Can not set target to build" >&2;} 5300 { (exit 1); exit 1; }; } ;; 5301 esac ;; 5302 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5303echo "$as_me: error: Unrecognized target $a_target" >&2;} 5304 { (exit 1); exit 1; }; } ;; 5305 esac 5306 done 5307 ;; 5308esac 5309TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5310 5311 5312# Determine whether we are building LLVM support for the native architecture. 5313# If so, define LLVM_NATIVE_ARCH to that LLVM target. 5314for a_target in $TARGETS_TO_BUILD; do 5315 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5316 5317cat >>confdefs.h <<_ACEOF 5318#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5319_ACEOF 5320 5321 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5322 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5323 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5324 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5325 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5326 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5327 fi 5328 5329cat >>confdefs.h <<_ACEOF 5330#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5331_ACEOF 5332 5333 5334cat >>confdefs.h <<_ACEOF 5335#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5336_ACEOF 5337 5338 5339cat >>confdefs.h <<_ACEOF 5340#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5341_ACEOF 5342 5343 5344cat >>confdefs.h <<_ACEOF 5345#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5346_ACEOF 5347 5348 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5349 5350cat >>confdefs.h <<_ACEOF 5351#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5352_ACEOF 5353 5354 fi 5355 fi 5356done 5357 5358# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual 5359# target feature def files. 5360LLVM_ENUM_TARGETS="" 5361LLVM_ENUM_ASM_PRINTERS="" 5362LLVM_ENUM_ASM_PARSERS="" 5363LLVM_ENUM_DISASSEMBLERS="" 5364for target_to_build in $TARGETS_TO_BUILD; do 5365 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5366 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5367 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5368 fi 5369 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5370 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5371 fi 5372 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5373 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5374 fi 5375done 5376 5377 5378 5379 5380 5381# Check whether --enable-cbe-printf-a was given. 5382if test "${enable_cbe_printf_a+set}" = set; then 5383 enableval=$enable_cbe_printf_a; 5384else 5385 enableval=default 5386fi 5387 5388case "$enableval" in 5389 yes) ENABLE_CBE_PRINTF_A=1 5390 ;; 5391 no) ENABLE_CBE_PRINTF_A=0 5392 ;; 5393 default) ENABLE_CBE_PRINTF_A=1 5394 ;; 5395 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 5396echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} 5397 { (exit 1); exit 1; }; } ;; 5398esac 5399 5400cat >>confdefs.h <<_ACEOF 5401#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A 5402_ACEOF 5403 5404 5405 5406# Check whether --with-optimize-option was given. 5407if test "${with_optimize_option+set}" = set; then 5408 withval=$with_optimize_option; 5409else 5410 withval=default 5411fi 5412 5413{ echo "$as_me:$LINENO: checking optimization flags" >&5 5414echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5415case "$withval" in 5416 default) 5417 case "$llvm_cv_os_type" in 5418 FreeBSD) optimize_option=-O2 ;; 5419 MingW) optimize_option=-O2 ;; 5420 *) optimize_option=-O3 ;; 5421 esac ;; 5422 *) optimize_option="$withval" ;; 5423esac 5424OPTIMIZE_OPTION=$optimize_option 5425 5426{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5427echo "${ECHO_T}$optimize_option" >&6; } 5428 5429 5430# Check whether --with-extra-options was given. 5431if test "${with_extra_options+set}" = set; then 5432 withval=$with_extra_options; 5433else 5434 withval=default 5435fi 5436 5437case "$withval" in 5438 default) EXTRA_OPTIONS= ;; 5439 *) EXTRA_OPTIONS=$withval ;; 5440esac 5441EXTRA_OPTIONS=$EXTRA_OPTIONS 5442 5443 5444 5445# Check whether --with-extra-ld-options was given. 5446if test "${with_extra_ld_options+set}" = set; then 5447 withval=$with_extra_ld_options; 5448else 5449 withval=default 5450fi 5451 5452case "$withval" in 5453 default) EXTRA_LD_OPTIONS= ;; 5454 *) EXTRA_LD_OPTIONS=$withval ;; 5455esac 5456EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5457 5458 5459# Check whether --enable-bindings was given. 5460if test "${enable_bindings+set}" = set; then 5461 enableval=$enable_bindings; 5462else 5463 enableval=default 5464fi 5465 5466BINDINGS_TO_BUILD="" 5467case "$enableval" in 5468 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5469 all ) BINDINGS_TO_BUILD="ocaml" ;; 5470 none | no) BINDINGS_TO_BUILD="" ;; 5471 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5472 case "$a_binding" in 5473 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5474 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5475echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5476 { (exit 1); exit 1; }; } ;; 5477 esac 5478 done 5479 ;; 5480esac 5481 5482 5483# Check whether --with-ocaml-libdir was given. 5484if test "${with_ocaml_libdir+set}" = set; then 5485 withval=$with_ocaml_libdir; 5486else 5487 withval=auto 5488fi 5489 5490case "$withval" in 5491 auto) with_ocaml_libdir="$withval" ;; 5492 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5493 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5494echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5495 { (exit 1); exit 1; }; } ;; 5496esac 5497 5498 5499# Check whether --with-clang-srcdir was given. 5500if test "${with_clang_srcdir+set}" = set; then 5501 withval=$with_clang_srcdir; 5502else 5503 withval="-" 5504fi 5505 5506case "$withval" in 5507 -) clang_src_root="" ;; 5508 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;; 5509 *) clang_src_root="$ac_pwd/$withval" ;; 5510esac 5511CLANG_SRC_ROOT=$clang_src_root 5512 5513 5514 5515# Check whether --with-clang-resource-dir was given. 5516if test "${with_clang_resource_dir+set}" = set; then 5517 withval=$with_clang_resource_dir; 5518else 5519 withval="" 5520fi 5521 5522 5523cat >>confdefs.h <<_ACEOF 5524#define CLANG_RESOURCE_DIR "$withval" 5525_ACEOF 5526 5527 5528 5529# Check whether --with-c-include-dirs was given. 5530if test "${with_c_include_dirs+set}" = set; then 5531 withval=$with_c_include_dirs; 5532else 5533 withval="" 5534fi 5535 5536 5537cat >>confdefs.h <<_ACEOF 5538#define C_INCLUDE_DIRS "$withval" 5539_ACEOF 5540 5541 5542 5543# Check whether --with-cxx-include-root was given. 5544if test "${with_cxx_include_root+set}" = set; then 5545 withval=$with_cxx_include_root; 5546else 5547 withval="" 5548fi 5549 5550 5551cat >>confdefs.h <<_ACEOF 5552#define CXX_INCLUDE_ROOT "$withval" 5553_ACEOF 5554 5555 5556 5557# Check whether --with-cxx-include-arch was given. 5558if test "${with_cxx_include_arch+set}" = set; then 5559 withval=$with_cxx_include_arch; 5560else 5561 withval="" 5562fi 5563 5564 5565cat >>confdefs.h <<_ACEOF 5566#define CXX_INCLUDE_ARCH "$withval" 5567_ACEOF 5568 5569 5570 5571# Check whether --with-cxx-include-32bit-dir was given. 5572if test "${with_cxx_include_32bit_dir+set}" = set; then 5573 withval=$with_cxx_include_32bit_dir; 5574else 5575 withval="" 5576fi 5577 5578 5579cat >>confdefs.h <<_ACEOF 5580#define CXX_INCLUDE_32BIT_DIR "$withval" 5581_ACEOF 5582 5583 5584 5585# Check whether --with-cxx-include-64bit-dir was given. 5586if test "${with_cxx_include_64bit_dir+set}" = set; then 5587 withval=$with_cxx_include_64bit_dir; 5588else 5589 withval="" 5590fi 5591 5592 5593cat >>confdefs.h <<_ACEOF 5594#define CXX_INCLUDE_64BIT_DIR "$withval" 5595_ACEOF 5596 5597 5598 5599# Check whether --with-binutils-include was given. 5600if test "${with_binutils_include+set}" = set; then 5601 withval=$with_binutils_include; 5602else 5603 withval=default 5604fi 5605 5606case "$withval" in 5607 default) WITH_BINUTILS_INCDIR=default ;; 5608 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5609 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5610echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5611 { (exit 1); exit 1; }; } ;; 5612esac 5613if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5614 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5615 5616 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5617 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5618 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5619echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5620 { (exit 1); exit 1; }; }; 5621 fi 5622fi 5623 5624 5625# Check whether --with-bug-report-url was given. 5626if test "${with_bug_report_url+set}" = set; then 5627 withval=$with_bug_report_url; 5628else 5629 withval="http://llvm.org/bugs/" 5630fi 5631 5632 5633cat >>confdefs.h <<_ACEOF 5634#define BUG_REPORT_URL "$withval" 5635_ACEOF 5636 5637 5638# Check whether --enable-libffi was given. 5639if test "${enable_libffi+set}" = set; then 5640 enableval=$enable_libffi; case "$enableval" in 5641 yes) llvm_cv_enable_libffi="yes" ;; 5642 no) llvm_cv_enable_libffi="no" ;; 5643 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5644echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5645 { (exit 1); exit 1; }; } ;; 5646 esac 5647else 5648 llvm_cv_enable_libffi=no 5649fi 5650 5651 5652 5653{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5654echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5655if test "${lt_cv_path_NM+set}" = set; then 5656 echo $ECHO_N "(cached) $ECHO_C" >&6 5657else 5658 if test -n "$NM"; then 5659 # Let the user override the test. 5660 lt_cv_path_NM="$NM" 5661else 5662 lt_nm_to_check="${ac_tool_prefix}nm" 5663 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5664 lt_nm_to_check="$lt_nm_to_check nm" 5665 fi 5666 for lt_tmp_nm in $lt_nm_to_check; do 5667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5668 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5669 IFS="$lt_save_ifs" 5670 test -z "$ac_dir" && ac_dir=. 5671 tmp_nm="$ac_dir/$lt_tmp_nm" 5672 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5673 # Check to see if the nm accepts a BSD-compat flag. 5674 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5675 # nm: unknown option "B" ignored 5676 # Tru64's nm complains that /dev/null is an invalid object file 5677 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5678 */dev/null* | *'Invalid file or object type'*) 5679 lt_cv_path_NM="$tmp_nm -B" 5680 break 5681 ;; 5682 *) 5683 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5684 */dev/null*) 5685 lt_cv_path_NM="$tmp_nm -p" 5686 break 5687 ;; 5688 *) 5689 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5690 continue # so that we can try to find one that supports BSD flags 5691 ;; 5692 esac 5693 ;; 5694 esac 5695 fi 5696 done 5697 IFS="$lt_save_ifs" 5698 done 5699 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5700fi 5701fi 5702{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5703echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5704NM="$lt_cv_path_NM" 5705 5706 5707 5708{ echo "$as_me:$LINENO: checking for GNU make" >&5 5709echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 5710if test "${llvm_cv_gnu_make_command+set}" = set; then 5711 echo $ECHO_N "(cached) $ECHO_C" >&6 5712else 5713 llvm_cv_gnu_make_command='' 5714 for a in "$MAKE" make gmake gnumake ; do 5715 if test -z "$a" ; then continue ; fi ; 5716 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 5717 then 5718 llvm_cv_gnu_make_command=$a ; 5719 break; 5720 fi 5721 done 5722fi 5723{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 5724echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 5725 if test "x$llvm_cv_gnu_make_command" != "x" ; then 5726 ifGNUmake='' ; 5727 else 5728 ifGNUmake='#' ; 5729 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 5730echo "${ECHO_T}\"Not found\"" >&6; }; 5731 fi 5732 5733 5734{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 5735echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5736LN_S=$as_ln_s 5737if test "$LN_S" = "ln -s"; then 5738 { echo "$as_me:$LINENO: result: yes" >&5 5739echo "${ECHO_T}yes" >&6; } 5740else 5741 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5742echo "${ECHO_T}no, using $LN_S" >&6; } 5743fi 5744 5745# Extract the first word of "cmp", so it can be a program name with args. 5746set dummy cmp; ac_word=$2 5747{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5749if test "${ac_cv_path_CMP+set}" = set; then 5750 echo $ECHO_N "(cached) $ECHO_C" >&6 5751else 5752 case $CMP in 5753 [\\/]* | ?:[\\/]*) 5754 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5755 ;; 5756 *) 5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5758for as_dir in $PATH 5759do 5760 IFS=$as_save_IFS 5761 test -z "$as_dir" && as_dir=. 5762 for ac_exec_ext in '' $ac_executable_extensions; do 5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5764 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5766 break 2 5767 fi 5768done 5769done 5770IFS=$as_save_IFS 5771 5772 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 5773 ;; 5774esac 5775fi 5776CMP=$ac_cv_path_CMP 5777if test -n "$CMP"; then 5778 { echo "$as_me:$LINENO: result: $CMP" >&5 5779echo "${ECHO_T}$CMP" >&6; } 5780else 5781 { echo "$as_me:$LINENO: result: no" >&5 5782echo "${ECHO_T}no" >&6; } 5783fi 5784 5785 5786# Extract the first word of "cp", so it can be a program name with args. 5787set dummy cp; ac_word=$2 5788{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5790if test "${ac_cv_path_CP+set}" = set; then 5791 echo $ECHO_N "(cached) $ECHO_C" >&6 5792else 5793 case $CP in 5794 [\\/]* | ?:[\\/]*) 5795 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5796 ;; 5797 *) 5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5799for as_dir in $PATH 5800do 5801 IFS=$as_save_IFS 5802 test -z "$as_dir" && as_dir=. 5803 for ac_exec_ext in '' $ac_executable_extensions; do 5804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5805 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5807 break 2 5808 fi 5809done 5810done 5811IFS=$as_save_IFS 5812 5813 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 5814 ;; 5815esac 5816fi 5817CP=$ac_cv_path_CP 5818if test -n "$CP"; then 5819 { echo "$as_me:$LINENO: result: $CP" >&5 5820echo "${ECHO_T}$CP" >&6; } 5821else 5822 { echo "$as_me:$LINENO: result: no" >&5 5823echo "${ECHO_T}no" >&6; } 5824fi 5825 5826 5827# Extract the first word of "date", so it can be a program name with args. 5828set dummy date; ac_word=$2 5829{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5831if test "${ac_cv_path_DATE+set}" = set; then 5832 echo $ECHO_N "(cached) $ECHO_C" >&6 5833else 5834 case $DATE in 5835 [\\/]* | ?:[\\/]*) 5836 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5837 ;; 5838 *) 5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5840for as_dir in $PATH 5841do 5842 IFS=$as_save_IFS 5843 test -z "$as_dir" && as_dir=. 5844 for ac_exec_ext in '' $ac_executable_extensions; do 5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5846 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5848 break 2 5849 fi 5850done 5851done 5852IFS=$as_save_IFS 5853 5854 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 5855 ;; 5856esac 5857fi 5858DATE=$ac_cv_path_DATE 5859if test -n "$DATE"; then 5860 { echo "$as_me:$LINENO: result: $DATE" >&5 5861echo "${ECHO_T}$DATE" >&6; } 5862else 5863 { echo "$as_me:$LINENO: result: no" >&5 5864echo "${ECHO_T}no" >&6; } 5865fi 5866 5867 5868# Extract the first word of "find", so it can be a program name with args. 5869set dummy find; ac_word=$2 5870{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5872if test "${ac_cv_path_FIND+set}" = set; then 5873 echo $ECHO_N "(cached) $ECHO_C" >&6 5874else 5875 case $FIND in 5876 [\\/]* | ?:[\\/]*) 5877 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 5878 ;; 5879 *) 5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5881for as_dir in $PATH 5882do 5883 IFS=$as_save_IFS 5884 test -z "$as_dir" && as_dir=. 5885 for ac_exec_ext in '' $ac_executable_extensions; do 5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5887 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5889 break 2 5890 fi 5891done 5892done 5893IFS=$as_save_IFS 5894 5895 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 5896 ;; 5897esac 5898fi 5899FIND=$ac_cv_path_FIND 5900if test -n "$FIND"; then 5901 { echo "$as_me:$LINENO: result: $FIND" >&5 5902echo "${ECHO_T}$FIND" >&6; } 5903else 5904 { echo "$as_me:$LINENO: result: no" >&5 5905echo "${ECHO_T}no" >&6; } 5906fi 5907 5908 5909# Extract the first word of "grep", so it can be a program name with args. 5910set dummy grep; ac_word=$2 5911{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5913if test "${ac_cv_path_GREP+set}" = set; then 5914 echo $ECHO_N "(cached) $ECHO_C" >&6 5915else 5916 case $GREP in 5917 [\\/]* | ?:[\\/]*) 5918 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 5919 ;; 5920 *) 5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5922for as_dir in $PATH 5923do 5924 IFS=$as_save_IFS 5925 test -z "$as_dir" && as_dir=. 5926 for ac_exec_ext in '' $ac_executable_extensions; do 5927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5928 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 5929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5930 break 2 5931 fi 5932done 5933done 5934IFS=$as_save_IFS 5935 5936 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 5937 ;; 5938esac 5939fi 5940GREP=$ac_cv_path_GREP 5941if test -n "$GREP"; then 5942 { echo "$as_me:$LINENO: result: $GREP" >&5 5943echo "${ECHO_T}$GREP" >&6; } 5944else 5945 { echo "$as_me:$LINENO: result: no" >&5 5946echo "${ECHO_T}no" >&6; } 5947fi 5948 5949 5950# Extract the first word of "mkdir", so it can be a program name with args. 5951set dummy mkdir; ac_word=$2 5952{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5954if test "${ac_cv_path_MKDIR+set}" = set; then 5955 echo $ECHO_N "(cached) $ECHO_C" >&6 5956else 5957 case $MKDIR in 5958 [\\/]* | ?:[\\/]*) 5959 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 5960 ;; 5961 *) 5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5963for as_dir in $PATH 5964do 5965 IFS=$as_save_IFS 5966 test -z "$as_dir" && as_dir=. 5967 for ac_exec_ext in '' $ac_executable_extensions; do 5968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5969 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5971 break 2 5972 fi 5973done 5974done 5975IFS=$as_save_IFS 5976 5977 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 5978 ;; 5979esac 5980fi 5981MKDIR=$ac_cv_path_MKDIR 5982if test -n "$MKDIR"; then 5983 { echo "$as_me:$LINENO: result: $MKDIR" >&5 5984echo "${ECHO_T}$MKDIR" >&6; } 5985else 5986 { echo "$as_me:$LINENO: result: no" >&5 5987echo "${ECHO_T}no" >&6; } 5988fi 5989 5990 5991# Extract the first word of "mv", so it can be a program name with args. 5992set dummy mv; ac_word=$2 5993{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5995if test "${ac_cv_path_MV+set}" = set; then 5996 echo $ECHO_N "(cached) $ECHO_C" >&6 5997else 5998 case $MV in 5999 [\\/]* | ?:[\\/]*) 6000 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6001 ;; 6002 *) 6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004for as_dir in $PATH 6005do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_exec_ext in '' $ac_executable_extensions; do 6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6010 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6012 break 2 6013 fi 6014done 6015done 6016IFS=$as_save_IFS 6017 6018 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6019 ;; 6020esac 6021fi 6022MV=$ac_cv_path_MV 6023if test -n "$MV"; then 6024 { echo "$as_me:$LINENO: result: $MV" >&5 6025echo "${ECHO_T}$MV" >&6; } 6026else 6027 { echo "$as_me:$LINENO: result: no" >&5 6028echo "${ECHO_T}no" >&6; } 6029fi 6030 6031 6032if test -n "$ac_tool_prefix"; then 6033 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6034set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6035{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6037if test "${ac_cv_prog_RANLIB+set}" = set; then 6038 echo $ECHO_N "(cached) $ECHO_C" >&6 6039else 6040 if test -n "$RANLIB"; then 6041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6042else 6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6044for as_dir in $PATH 6045do 6046 IFS=$as_save_IFS 6047 test -z "$as_dir" && as_dir=. 6048 for ac_exec_ext in '' $ac_executable_extensions; do 6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6052 break 2 6053 fi 6054done 6055done 6056IFS=$as_save_IFS 6057 6058fi 6059fi 6060RANLIB=$ac_cv_prog_RANLIB 6061if test -n "$RANLIB"; then 6062 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6063echo "${ECHO_T}$RANLIB" >&6; } 6064else 6065 { echo "$as_me:$LINENO: result: no" >&5 6066echo "${ECHO_T}no" >&6; } 6067fi 6068 6069 6070fi 6071if test -z "$ac_cv_prog_RANLIB"; then 6072 ac_ct_RANLIB=$RANLIB 6073 # Extract the first word of "ranlib", so it can be a program name with args. 6074set dummy ranlib; ac_word=$2 6075{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6077if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6078 echo $ECHO_N "(cached) $ECHO_C" >&6 6079else 6080 if test -n "$ac_ct_RANLIB"; then 6081 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6082else 6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6084for as_dir in $PATH 6085do 6086 IFS=$as_save_IFS 6087 test -z "$as_dir" && as_dir=. 6088 for ac_exec_ext in '' $ac_executable_extensions; do 6089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6090 ac_cv_prog_ac_ct_RANLIB="ranlib" 6091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6092 break 2 6093 fi 6094done 6095done 6096IFS=$as_save_IFS 6097 6098fi 6099fi 6100ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6101if test -n "$ac_ct_RANLIB"; then 6102 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6103echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6104else 6105 { echo "$as_me:$LINENO: result: no" >&5 6106echo "${ECHO_T}no" >&6; } 6107fi 6108 6109 if test "x$ac_ct_RANLIB" = x; then 6110 RANLIB=":" 6111 else 6112 case $cross_compiling:$ac_tool_warned in 6113yes:) 6114{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6115whose name does not start with the host triplet. If you think this 6116configuration is useful to you, please write to autoconf@gnu.org." >&5 6117echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6118whose name does not start with the host triplet. If you think this 6119configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6120ac_tool_warned=yes ;; 6121esac 6122 RANLIB=$ac_ct_RANLIB 6123 fi 6124else 6125 RANLIB="$ac_cv_prog_RANLIB" 6126fi 6127 6128if test -n "$ac_tool_prefix"; then 6129 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6130set dummy ${ac_tool_prefix}ar; ac_word=$2 6131{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6133if test "${ac_cv_prog_AR+set}" = set; then 6134 echo $ECHO_N "(cached) $ECHO_C" >&6 6135else 6136 if test -n "$AR"; then 6137 ac_cv_prog_AR="$AR" # Let the user override the test. 6138else 6139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6140for as_dir in $PATH 6141do 6142 IFS=$as_save_IFS 6143 test -z "$as_dir" && as_dir=. 6144 for ac_exec_ext in '' $ac_executable_extensions; do 6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6146 ac_cv_prog_AR="${ac_tool_prefix}ar" 6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6148 break 2 6149 fi 6150done 6151done 6152IFS=$as_save_IFS 6153 6154fi 6155fi 6156AR=$ac_cv_prog_AR 6157if test -n "$AR"; then 6158 { echo "$as_me:$LINENO: result: $AR" >&5 6159echo "${ECHO_T}$AR" >&6; } 6160else 6161 { echo "$as_me:$LINENO: result: no" >&5 6162echo "${ECHO_T}no" >&6; } 6163fi 6164 6165 6166fi 6167if test -z "$ac_cv_prog_AR"; then 6168 ac_ct_AR=$AR 6169 # Extract the first word of "ar", so it can be a program name with args. 6170set dummy ar; ac_word=$2 6171{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6173if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6174 echo $ECHO_N "(cached) $ECHO_C" >&6 6175else 6176 if test -n "$ac_ct_AR"; then 6177 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6178else 6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6180for as_dir in $PATH 6181do 6182 IFS=$as_save_IFS 6183 test -z "$as_dir" && as_dir=. 6184 for ac_exec_ext in '' $ac_executable_extensions; do 6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6186 ac_cv_prog_ac_ct_AR="ar" 6187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6188 break 2 6189 fi 6190done 6191done 6192IFS=$as_save_IFS 6193 6194fi 6195fi 6196ac_ct_AR=$ac_cv_prog_ac_ct_AR 6197if test -n "$ac_ct_AR"; then 6198 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6199echo "${ECHO_T}$ac_ct_AR" >&6; } 6200else 6201 { echo "$as_me:$LINENO: result: no" >&5 6202echo "${ECHO_T}no" >&6; } 6203fi 6204 6205 if test "x$ac_ct_AR" = x; then 6206 AR="false" 6207 else 6208 case $cross_compiling:$ac_tool_warned in 6209yes:) 6210{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6211whose name does not start with the host triplet. If you think this 6212configuration is useful to you, please write to autoconf@gnu.org." >&5 6213echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6214whose name does not start with the host triplet. If you think this 6215configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6216ac_tool_warned=yes ;; 6217esac 6218 AR=$ac_ct_AR 6219 fi 6220else 6221 AR="$ac_cv_prog_AR" 6222fi 6223 6224# Extract the first word of "rm", so it can be a program name with args. 6225set dummy rm; ac_word=$2 6226{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6228if test "${ac_cv_path_RM+set}" = set; then 6229 echo $ECHO_N "(cached) $ECHO_C" >&6 6230else 6231 case $RM in 6232 [\\/]* | ?:[\\/]*) 6233 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6234 ;; 6235 *) 6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6237for as_dir in $PATH 6238do 6239 IFS=$as_save_IFS 6240 test -z "$as_dir" && as_dir=. 6241 for ac_exec_ext in '' $ac_executable_extensions; do 6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6243 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6245 break 2 6246 fi 6247done 6248done 6249IFS=$as_save_IFS 6250 6251 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6252 ;; 6253esac 6254fi 6255RM=$ac_cv_path_RM 6256if test -n "$RM"; then 6257 { echo "$as_me:$LINENO: result: $RM" >&5 6258echo "${ECHO_T}$RM" >&6; } 6259else 6260 { echo "$as_me:$LINENO: result: no" >&5 6261echo "${ECHO_T}no" >&6; } 6262fi 6263 6264 6265# Extract the first word of "sed", so it can be a program name with args. 6266set dummy sed; ac_word=$2 6267{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6269if test "${ac_cv_path_SED+set}" = set; then 6270 echo $ECHO_N "(cached) $ECHO_C" >&6 6271else 6272 case $SED in 6273 [\\/]* | ?:[\\/]*) 6274 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6275 ;; 6276 *) 6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6278for as_dir in $PATH 6279do 6280 IFS=$as_save_IFS 6281 test -z "$as_dir" && as_dir=. 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6284 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6286 break 2 6287 fi 6288done 6289done 6290IFS=$as_save_IFS 6291 6292 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6293 ;; 6294esac 6295fi 6296SED=$ac_cv_path_SED 6297if test -n "$SED"; then 6298 { echo "$as_me:$LINENO: result: $SED" >&5 6299echo "${ECHO_T}$SED" >&6; } 6300else 6301 { echo "$as_me:$LINENO: result: no" >&5 6302echo "${ECHO_T}no" >&6; } 6303fi 6304 6305 6306# Extract the first word of "tar", so it can be a program name with args. 6307set dummy tar; ac_word=$2 6308{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6310if test "${ac_cv_path_TAR+set}" = set; then 6311 echo $ECHO_N "(cached) $ECHO_C" >&6 6312else 6313 case $TAR in 6314 [\\/]* | ?:[\\/]*) 6315 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6316 ;; 6317 *) 6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6319for as_dir in $PATH 6320do 6321 IFS=$as_save_IFS 6322 test -z "$as_dir" && as_dir=. 6323 for ac_exec_ext in '' $ac_executable_extensions; do 6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6325 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6327 break 2 6328 fi 6329done 6330done 6331IFS=$as_save_IFS 6332 6333 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6334 ;; 6335esac 6336fi 6337TAR=$ac_cv_path_TAR 6338if test -n "$TAR"; then 6339 { echo "$as_me:$LINENO: result: $TAR" >&5 6340echo "${ECHO_T}$TAR" >&6; } 6341else 6342 { echo "$as_me:$LINENO: result: no" >&5 6343echo "${ECHO_T}no" >&6; } 6344fi 6345 6346 6347# Extract the first word of "pwd", so it can be a program name with args. 6348set dummy pwd; ac_word=$2 6349{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6351if test "${ac_cv_path_BINPWD+set}" = set; then 6352 echo $ECHO_N "(cached) $ECHO_C" >&6 6353else 6354 case $BINPWD in 6355 [\\/]* | ?:[\\/]*) 6356 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6357 ;; 6358 *) 6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6360for as_dir in $PATH 6361do 6362 IFS=$as_save_IFS 6363 test -z "$as_dir" && as_dir=. 6364 for ac_exec_ext in '' $ac_executable_extensions; do 6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6366 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6368 break 2 6369 fi 6370done 6371done 6372IFS=$as_save_IFS 6373 6374 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6375 ;; 6376esac 6377fi 6378BINPWD=$ac_cv_path_BINPWD 6379if test -n "$BINPWD"; then 6380 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6381echo "${ECHO_T}$BINPWD" >&6; } 6382else 6383 { echo "$as_me:$LINENO: result: no" >&5 6384echo "${ECHO_T}no" >&6; } 6385fi 6386 6387 6388 6389# Extract the first word of "Graphviz", so it can be a program name with args. 6390set dummy Graphviz; ac_word=$2 6391{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6393if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6394 echo $ECHO_N "(cached) $ECHO_C" >&6 6395else 6396 case $GRAPHVIZ in 6397 [\\/]* | ?:[\\/]*) 6398 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6399 ;; 6400 *) 6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6402for as_dir in $PATH 6403do 6404 IFS=$as_save_IFS 6405 test -z "$as_dir" && as_dir=. 6406 for ac_exec_ext in '' $ac_executable_extensions; do 6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6408 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6410 break 2 6411 fi 6412done 6413done 6414IFS=$as_save_IFS 6415 6416 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6417 ;; 6418esac 6419fi 6420GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6421if test -n "$GRAPHVIZ"; then 6422 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6423echo "${ECHO_T}$GRAPHVIZ" >&6; } 6424else 6425 { echo "$as_me:$LINENO: result: no" >&5 6426echo "${ECHO_T}no" >&6; } 6427fi 6428 6429 6430if test "$GRAPHVIZ" != "echo Graphviz" ; then 6431 6432cat >>confdefs.h <<\_ACEOF 6433#define HAVE_GRAPHVIZ 1 6434_ACEOF 6435 6436 if test "$llvm_cv_os_type" = "MingW" ; then 6437 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6438 fi 6439 6440cat >>confdefs.h <<_ACEOF 6441#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6442_ACEOF 6443 6444fi 6445# Extract the first word of "dot", so it can be a program name with args. 6446set dummy dot; ac_word=$2 6447{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6449if test "${ac_cv_path_DOT+set}" = set; then 6450 echo $ECHO_N "(cached) $ECHO_C" >&6 6451else 6452 case $DOT in 6453 [\\/]* | ?:[\\/]*) 6454 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6455 ;; 6456 *) 6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6458for as_dir in $PATH 6459do 6460 IFS=$as_save_IFS 6461 test -z "$as_dir" && as_dir=. 6462 for ac_exec_ext in '' $ac_executable_extensions; do 6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6464 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6466 break 2 6467 fi 6468done 6469done 6470IFS=$as_save_IFS 6471 6472 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6473 ;; 6474esac 6475fi 6476DOT=$ac_cv_path_DOT 6477if test -n "$DOT"; then 6478 { echo "$as_me:$LINENO: result: $DOT" >&5 6479echo "${ECHO_T}$DOT" >&6; } 6480else 6481 { echo "$as_me:$LINENO: result: no" >&5 6482echo "${ECHO_T}no" >&6; } 6483fi 6484 6485 6486if test "$DOT" != "echo dot" ; then 6487 6488cat >>confdefs.h <<\_ACEOF 6489#define HAVE_DOT 1 6490_ACEOF 6491 6492 if test "$llvm_cv_os_type" = "MingW" ; then 6493 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6494 fi 6495 6496cat >>confdefs.h <<_ACEOF 6497#define LLVM_PATH_DOT "$DOT${EXEEXT}" 6498_ACEOF 6499 6500fi 6501# Extract the first word of "fdp", so it can be a program name with args. 6502set dummy fdp; ac_word=$2 6503{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6505if test "${ac_cv_path_FDP+set}" = set; then 6506 echo $ECHO_N "(cached) $ECHO_C" >&6 6507else 6508 case $FDP in 6509 [\\/]* | ?:[\\/]*) 6510 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6511 ;; 6512 *) 6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6514for as_dir in $PATH 6515do 6516 IFS=$as_save_IFS 6517 test -z "$as_dir" && as_dir=. 6518 for ac_exec_ext in '' $ac_executable_extensions; do 6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6520 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6522 break 2 6523 fi 6524done 6525done 6526IFS=$as_save_IFS 6527 6528 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6529 ;; 6530esac 6531fi 6532FDP=$ac_cv_path_FDP 6533if test -n "$FDP"; then 6534 { echo "$as_me:$LINENO: result: $FDP" >&5 6535echo "${ECHO_T}$FDP" >&6; } 6536else 6537 { echo "$as_me:$LINENO: result: no" >&5 6538echo "${ECHO_T}no" >&6; } 6539fi 6540 6541 6542if test "$FDP" != "echo fdp" ; then 6543 6544cat >>confdefs.h <<\_ACEOF 6545#define HAVE_FDP 1 6546_ACEOF 6547 6548 if test "$llvm_cv_os_type" = "MingW" ; then 6549 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6550 fi 6551 6552cat >>confdefs.h <<_ACEOF 6553#define LLVM_PATH_FDP "$FDP${EXEEXT}" 6554_ACEOF 6555 6556fi 6557# Extract the first word of "neato", so it can be a program name with args. 6558set dummy neato; ac_word=$2 6559{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6561if test "${ac_cv_path_NEATO+set}" = set; then 6562 echo $ECHO_N "(cached) $ECHO_C" >&6 6563else 6564 case $NEATO in 6565 [\\/]* | ?:[\\/]*) 6566 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6567 ;; 6568 *) 6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6570for as_dir in $PATH 6571do 6572 IFS=$as_save_IFS 6573 test -z "$as_dir" && as_dir=. 6574 for ac_exec_ext in '' $ac_executable_extensions; do 6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6576 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6578 break 2 6579 fi 6580done 6581done 6582IFS=$as_save_IFS 6583 6584 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6585 ;; 6586esac 6587fi 6588NEATO=$ac_cv_path_NEATO 6589if test -n "$NEATO"; then 6590 { echo "$as_me:$LINENO: result: $NEATO" >&5 6591echo "${ECHO_T}$NEATO" >&6; } 6592else 6593 { echo "$as_me:$LINENO: result: no" >&5 6594echo "${ECHO_T}no" >&6; } 6595fi 6596 6597 6598if test "$NEATO" != "echo neato" ; then 6599 6600cat >>confdefs.h <<\_ACEOF 6601#define HAVE_NEATO 1 6602_ACEOF 6603 6604 if test "$llvm_cv_os_type" = "MingW" ; then 6605 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6606 fi 6607 6608cat >>confdefs.h <<_ACEOF 6609#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6610_ACEOF 6611 6612fi 6613# Extract the first word of "twopi", so it can be a program name with args. 6614set dummy twopi; ac_word=$2 6615{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6617if test "${ac_cv_path_TWOPI+set}" = set; then 6618 echo $ECHO_N "(cached) $ECHO_C" >&6 6619else 6620 case $TWOPI in 6621 [\\/]* | ?:[\\/]*) 6622 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 6623 ;; 6624 *) 6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6626for as_dir in $PATH 6627do 6628 IFS=$as_save_IFS 6629 test -z "$as_dir" && as_dir=. 6630 for ac_exec_ext in '' $ac_executable_extensions; do 6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6632 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6634 break 2 6635 fi 6636done 6637done 6638IFS=$as_save_IFS 6639 6640 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 6641 ;; 6642esac 6643fi 6644TWOPI=$ac_cv_path_TWOPI 6645if test -n "$TWOPI"; then 6646 { echo "$as_me:$LINENO: result: $TWOPI" >&5 6647echo "${ECHO_T}$TWOPI" >&6; } 6648else 6649 { echo "$as_me:$LINENO: result: no" >&5 6650echo "${ECHO_T}no" >&6; } 6651fi 6652 6653 6654if test "$TWOPI" != "echo twopi" ; then 6655 6656cat >>confdefs.h <<\_ACEOF 6657#define HAVE_TWOPI 1 6658_ACEOF 6659 6660 if test "$llvm_cv_os_type" = "MingW" ; then 6661 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6662 fi 6663 6664cat >>confdefs.h <<_ACEOF 6665#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 6666_ACEOF 6667 6668fi 6669# Extract the first word of "circo", so it can be a program name with args. 6670set dummy circo; ac_word=$2 6671{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6673if test "${ac_cv_path_CIRCO+set}" = set; then 6674 echo $ECHO_N "(cached) $ECHO_C" >&6 6675else 6676 case $CIRCO in 6677 [\\/]* | ?:[\\/]*) 6678 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 6679 ;; 6680 *) 6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6682for as_dir in $PATH 6683do 6684 IFS=$as_save_IFS 6685 test -z "$as_dir" && as_dir=. 6686 for ac_exec_ext in '' $ac_executable_extensions; do 6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6688 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6690 break 2 6691 fi 6692done 6693done 6694IFS=$as_save_IFS 6695 6696 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 6697 ;; 6698esac 6699fi 6700CIRCO=$ac_cv_path_CIRCO 6701if test -n "$CIRCO"; then 6702 { echo "$as_me:$LINENO: result: $CIRCO" >&5 6703echo "${ECHO_T}$CIRCO" >&6; } 6704else 6705 { echo "$as_me:$LINENO: result: no" >&5 6706echo "${ECHO_T}no" >&6; } 6707fi 6708 6709 6710if test "$CIRCO" != "echo circo" ; then 6711 6712cat >>confdefs.h <<\_ACEOF 6713#define HAVE_CIRCO 1 6714_ACEOF 6715 6716 if test "$llvm_cv_os_type" = "MingW" ; then 6717 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6718 fi 6719 6720cat >>confdefs.h <<_ACEOF 6721#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 6722_ACEOF 6723 6724fi 6725for ac_prog in gv gsview32 6726do 6727 # Extract the first word of "$ac_prog", so it can be a program name with args. 6728set dummy $ac_prog; ac_word=$2 6729{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6731if test "${ac_cv_path_GV+set}" = set; then 6732 echo $ECHO_N "(cached) $ECHO_C" >&6 6733else 6734 case $GV in 6735 [\\/]* | ?:[\\/]*) 6736 ac_cv_path_GV="$GV" # Let the user override the test with a path. 6737 ;; 6738 *) 6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6740for as_dir in $PATH 6741do 6742 IFS=$as_save_IFS 6743 test -z "$as_dir" && as_dir=. 6744 for ac_exec_ext in '' $ac_executable_extensions; do 6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6746 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6748 break 2 6749 fi 6750done 6751done 6752IFS=$as_save_IFS 6753 6754 ;; 6755esac 6756fi 6757GV=$ac_cv_path_GV 6758if test -n "$GV"; then 6759 { echo "$as_me:$LINENO: result: $GV" >&5 6760echo "${ECHO_T}$GV" >&6; } 6761else 6762 { echo "$as_me:$LINENO: result: no" >&5 6763echo "${ECHO_T}no" >&6; } 6764fi 6765 6766 6767 test -n "$GV" && break 6768done 6769test -n "$GV" || GV="echo gv" 6770 6771if test "$GV" != "echo gv" ; then 6772 6773cat >>confdefs.h <<\_ACEOF 6774#define HAVE_GV 1 6775_ACEOF 6776 6777 if test "$llvm_cv_os_type" = "MingW" ; then 6778 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6779 fi 6780 6781cat >>confdefs.h <<_ACEOF 6782#define LLVM_PATH_GV "$GV${EXEEXT}" 6783_ACEOF 6784 6785fi 6786# Extract the first word of "dotty", so it can be a program name with args. 6787set dummy dotty; ac_word=$2 6788{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6790if test "${ac_cv_path_DOTTY+set}" = set; then 6791 echo $ECHO_N "(cached) $ECHO_C" >&6 6792else 6793 case $DOTTY in 6794 [\\/]* | ?:[\\/]*) 6795 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 6796 ;; 6797 *) 6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6799for as_dir in $PATH 6800do 6801 IFS=$as_save_IFS 6802 test -z "$as_dir" && as_dir=. 6803 for ac_exec_ext in '' $ac_executable_extensions; do 6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6805 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 6806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6807 break 2 6808 fi 6809done 6810done 6811IFS=$as_save_IFS 6812 6813 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 6814 ;; 6815esac 6816fi 6817DOTTY=$ac_cv_path_DOTTY 6818if test -n "$DOTTY"; then 6819 { echo "$as_me:$LINENO: result: $DOTTY" >&5 6820echo "${ECHO_T}$DOTTY" >&6; } 6821else 6822 { echo "$as_me:$LINENO: result: no" >&5 6823echo "${ECHO_T}no" >&6; } 6824fi 6825 6826 6827if test "$DOTTY" != "echo dotty" ; then 6828 6829cat >>confdefs.h <<\_ACEOF 6830#define HAVE_DOTTY 1 6831_ACEOF 6832 6833 if test "$llvm_cv_os_type" = "MingW" ; then 6834 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6835 fi 6836 6837cat >>confdefs.h <<_ACEOF 6838#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 6839_ACEOF 6840 6841fi 6842# Extract the first word of "xdot.py", so it can be a program name with args. 6843set dummy xdot.py; ac_word=$2 6844{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6846if test "${ac_cv_path_XDOT_PY+set}" = set; then 6847 echo $ECHO_N "(cached) $ECHO_C" >&6 6848else 6849 case $XDOT_PY in 6850 [\\/]* | ?:[\\/]*) 6851 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 6852 ;; 6853 *) 6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6855for as_dir in $PATH 6856do 6857 IFS=$as_save_IFS 6858 test -z "$as_dir" && as_dir=. 6859 for ac_exec_ext in '' $ac_executable_extensions; do 6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6861 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6863 break 2 6864 fi 6865done 6866done 6867IFS=$as_save_IFS 6868 6869 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 6870 ;; 6871esac 6872fi 6873XDOT_PY=$ac_cv_path_XDOT_PY 6874if test -n "$XDOT_PY"; then 6875 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 6876echo "${ECHO_T}$XDOT_PY" >&6; } 6877else 6878 { echo "$as_me:$LINENO: result: no" >&5 6879echo "${ECHO_T}no" >&6; } 6880fi 6881 6882 6883if test "$XDOT_PY" != "echo xdot.py" ; then 6884 6885cat >>confdefs.h <<\_ACEOF 6886#define HAVE_XDOT_PY 1 6887_ACEOF 6888 6889 if test "$llvm_cv_os_type" = "MingW" ; then 6890 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6891 fi 6892 6893cat >>confdefs.h <<_ACEOF 6894#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 6895_ACEOF 6896 6897fi 6898 6899 6900# Extract the first word of "perl", so it can be a program name with args. 6901set dummy perl; ac_word=$2 6902{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6904if test "${ac_cv_path_PERL+set}" = set; then 6905 echo $ECHO_N "(cached) $ECHO_C" >&6 6906else 6907 case $PERL in 6908 [\\/]* | ?:[\\/]*) 6909 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 6910 ;; 6911 *) 6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6913for as_dir in $PATH 6914do 6915 IFS=$as_save_IFS 6916 test -z "$as_dir" && as_dir=. 6917 for ac_exec_ext in '' $ac_executable_extensions; do 6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6919 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6921 break 2 6922 fi 6923done 6924done 6925IFS=$as_save_IFS 6926 6927 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" 6928 ;; 6929esac 6930fi 6931PERL=$ac_cv_path_PERL 6932if test -n "$PERL"; then 6933 { echo "$as_me:$LINENO: result: $PERL" >&5 6934echo "${ECHO_T}$PERL" >&6; } 6935else 6936 { echo "$as_me:$LINENO: result: no" >&5 6937echo "${ECHO_T}no" >&6; } 6938fi 6939 6940 6941if test "$PERL" != "none"; then 6942 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 6943echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } 6944 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then 6945 { echo "$as_me:$LINENO: result: yes" >&5 6946echo "${ECHO_T}yes" >&6; } 6947 else 6948 PERL=none 6949 { echo "$as_me:$LINENO: result: not found" >&5 6950echo "${ECHO_T}not found" >&6; } 6951 fi 6952fi 6953 6954 6955if test x"$PERL" = xnone; then 6956 HAVE_PERL=0 6957 6958 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 6959echo "$as_me: error: perl is required but was not found, please install it" >&2;} 6960 { (exit 1); exit 1; }; } 6961else 6962 HAVE_PERL=1 6963 6964fi 6965 6966# Find a good install program. We prefer a C program (faster), 6967# so one script is as good as another. But avoid the broken or 6968# incompatible versions: 6969# SysV /etc/install, /usr/sbin/install 6970# SunOS /usr/etc/install 6971# IRIX /sbin/install 6972# AIX /bin/install 6973# AmigaOS /C/install, which installs bootblocks on floppy discs 6974# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6975# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6976# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6977# OS/2's system install, which has a completely different semantic 6978# ./install, which can be erroneously created by make from ./install.sh. 6979{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 6980echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 6981if test -z "$INSTALL"; then 6982if test "${ac_cv_path_install+set}" = set; then 6983 echo $ECHO_N "(cached) $ECHO_C" >&6 6984else 6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6986for as_dir in $PATH 6987do 6988 IFS=$as_save_IFS 6989 test -z "$as_dir" && as_dir=. 6990 # Account for people who put trailing slashes in PATH elements. 6991case $as_dir/ in 6992 ./ | .// | /cC/* | \ 6993 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6994 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 6995 /usr/ucb/* ) ;; 6996 *) 6997 # OSF1 and SCO ODT 3.0 have their own names for install. 6998 # Don't use installbsd from OSF since it installs stuff as root 6999 # by default. 7000 for ac_prog in ginstall scoinst install; do 7001 for ac_exec_ext in '' $ac_executable_extensions; do 7002 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 7003 if test $ac_prog = install && 7004 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7005 # AIX install. It has an incompatible calling convention. 7006 : 7007 elif test $ac_prog = install && 7008 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7009 # program-specific install script used by HP pwplus--don't use. 7010 : 7011 else 7012 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7013 break 3 7014 fi 7015 fi 7016 done 7017 done 7018 ;; 7019esac 7020done 7021IFS=$as_save_IFS 7022 7023 7024fi 7025 if test "${ac_cv_path_install+set}" = set; then 7026 INSTALL=$ac_cv_path_install 7027 else 7028 # As a last resort, use the slow shell script. Don't cache a 7029 # value for INSTALL within a source directory, because that will 7030 # break other packages using the cache if that directory is 7031 # removed, or if the value is a relative name. 7032 INSTALL=$ac_install_sh 7033 fi 7034fi 7035{ echo "$as_me:$LINENO: result: $INSTALL" >&5 7036echo "${ECHO_T}$INSTALL" >&6; } 7037 7038# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7039# It thinks the first close brace ends the variable substitution. 7040test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7041 7042test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7043 7044test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7045 7046case "$INSTALL" in 7047 [\\/$]* | ?:[\\/]* ) ;; 7048 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 7049esac 7050 7051# Extract the first word of "bzip2", so it can be a program name with args. 7052set dummy bzip2; ac_word=$2 7053{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7055if test "${ac_cv_path_BZIP2+set}" = set; then 7056 echo $ECHO_N "(cached) $ECHO_C" >&6 7057else 7058 case $BZIP2 in 7059 [\\/]* | ?:[\\/]*) 7060 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7061 ;; 7062 *) 7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7064for as_dir in $PATH 7065do 7066 IFS=$as_save_IFS 7067 test -z "$as_dir" && as_dir=. 7068 for ac_exec_ext in '' $ac_executable_extensions; do 7069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7070 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7072 break 2 7073 fi 7074done 7075done 7076IFS=$as_save_IFS 7077 7078 ;; 7079esac 7080fi 7081BZIP2=$ac_cv_path_BZIP2 7082if test -n "$BZIP2"; then 7083 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7084echo "${ECHO_T}$BZIP2" >&6; } 7085else 7086 { echo "$as_me:$LINENO: result: no" >&5 7087echo "${ECHO_T}no" >&6; } 7088fi 7089 7090 7091# Extract the first word of "cat", so it can be a program name with args. 7092set dummy cat; ac_word=$2 7093{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7095if test "${ac_cv_path_CAT+set}" = set; then 7096 echo $ECHO_N "(cached) $ECHO_C" >&6 7097else 7098 case $CAT in 7099 [\\/]* | ?:[\\/]*) 7100 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 7101 ;; 7102 *) 7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7104for as_dir in $PATH 7105do 7106 IFS=$as_save_IFS 7107 test -z "$as_dir" && as_dir=. 7108 for ac_exec_ext in '' $ac_executable_extensions; do 7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7110 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 7111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7112 break 2 7113 fi 7114done 7115done 7116IFS=$as_save_IFS 7117 7118 ;; 7119esac 7120fi 7121CAT=$ac_cv_path_CAT 7122if test -n "$CAT"; then 7123 { echo "$as_me:$LINENO: result: $CAT" >&5 7124echo "${ECHO_T}$CAT" >&6; } 7125else 7126 { echo "$as_me:$LINENO: result: no" >&5 7127echo "${ECHO_T}no" >&6; } 7128fi 7129 7130 7131# Extract the first word of "doxygen", so it can be a program name with args. 7132set dummy doxygen; ac_word=$2 7133{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7135if test "${ac_cv_path_DOXYGEN+set}" = set; then 7136 echo $ECHO_N "(cached) $ECHO_C" >&6 7137else 7138 case $DOXYGEN in 7139 [\\/]* | ?:[\\/]*) 7140 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7141 ;; 7142 *) 7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7144for as_dir in $PATH 7145do 7146 IFS=$as_save_IFS 7147 test -z "$as_dir" && as_dir=. 7148 for ac_exec_ext in '' $ac_executable_extensions; do 7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7150 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7152 break 2 7153 fi 7154done 7155done 7156IFS=$as_save_IFS 7157 7158 ;; 7159esac 7160fi 7161DOXYGEN=$ac_cv_path_DOXYGEN 7162if test -n "$DOXYGEN"; then 7163 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7164echo "${ECHO_T}$DOXYGEN" >&6; } 7165else 7166 { echo "$as_me:$LINENO: result: no" >&5 7167echo "${ECHO_T}no" >&6; } 7168fi 7169 7170 7171# Extract the first word of "groff", so it can be a program name with args. 7172set dummy groff; ac_word=$2 7173{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7175if test "${ac_cv_path_GROFF+set}" = set; then 7176 echo $ECHO_N "(cached) $ECHO_C" >&6 7177else 7178 case $GROFF in 7179 [\\/]* | ?:[\\/]*) 7180 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7181 ;; 7182 *) 7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7184for as_dir in $PATH 7185do 7186 IFS=$as_save_IFS 7187 test -z "$as_dir" && as_dir=. 7188 for ac_exec_ext in '' $ac_executable_extensions; do 7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7190 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7192 break 2 7193 fi 7194done 7195done 7196IFS=$as_save_IFS 7197 7198 ;; 7199esac 7200fi 7201GROFF=$ac_cv_path_GROFF 7202if test -n "$GROFF"; then 7203 { echo "$as_me:$LINENO: result: $GROFF" >&5 7204echo "${ECHO_T}$GROFF" >&6; } 7205else 7206 { echo "$as_me:$LINENO: result: no" >&5 7207echo "${ECHO_T}no" >&6; } 7208fi 7209 7210 7211# Extract the first word of "gzip", so it can be a program name with args. 7212set dummy gzip; ac_word=$2 7213{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7215if test "${ac_cv_path_GZIPBIN+set}" = set; then 7216 echo $ECHO_N "(cached) $ECHO_C" >&6 7217else 7218 case $GZIPBIN in 7219 [\\/]* | ?:[\\/]*) 7220 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7221 ;; 7222 *) 7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7224for as_dir in $PATH 7225do 7226 IFS=$as_save_IFS 7227 test -z "$as_dir" && as_dir=. 7228 for ac_exec_ext in '' $ac_executable_extensions; do 7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7230 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7232 break 2 7233 fi 7234done 7235done 7236IFS=$as_save_IFS 7237 7238 ;; 7239esac 7240fi 7241GZIPBIN=$ac_cv_path_GZIPBIN 7242if test -n "$GZIPBIN"; then 7243 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7244echo "${ECHO_T}$GZIPBIN" >&6; } 7245else 7246 { echo "$as_me:$LINENO: result: no" >&5 7247echo "${ECHO_T}no" >&6; } 7248fi 7249 7250 7251# Extract the first word of "pod2html", so it can be a program name with args. 7252set dummy pod2html; ac_word=$2 7253{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7255if test "${ac_cv_path_POD2HTML+set}" = set; then 7256 echo $ECHO_N "(cached) $ECHO_C" >&6 7257else 7258 case $POD2HTML in 7259 [\\/]* | ?:[\\/]*) 7260 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. 7261 ;; 7262 *) 7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264for as_dir in $PATH 7265do 7266 IFS=$as_save_IFS 7267 test -z "$as_dir" && as_dir=. 7268 for ac_exec_ext in '' $ac_executable_extensions; do 7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7270 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" 7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7272 break 2 7273 fi 7274done 7275done 7276IFS=$as_save_IFS 7277 7278 ;; 7279esac 7280fi 7281POD2HTML=$ac_cv_path_POD2HTML 7282if test -n "$POD2HTML"; then 7283 { echo "$as_me:$LINENO: result: $POD2HTML" >&5 7284echo "${ECHO_T}$POD2HTML" >&6; } 7285else 7286 { echo "$as_me:$LINENO: result: no" >&5 7287echo "${ECHO_T}no" >&6; } 7288fi 7289 7290 7291# Extract the first word of "pod2man", so it can be a program name with args. 7292set dummy pod2man; ac_word=$2 7293{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7295if test "${ac_cv_path_POD2MAN+set}" = set; then 7296 echo $ECHO_N "(cached) $ECHO_C" >&6 7297else 7298 case $POD2MAN in 7299 [\\/]* | ?:[\\/]*) 7300 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. 7301 ;; 7302 *) 7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7304for as_dir in $PATH 7305do 7306 IFS=$as_save_IFS 7307 test -z "$as_dir" && as_dir=. 7308 for ac_exec_ext in '' $ac_executable_extensions; do 7309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7310 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" 7311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7312 break 2 7313 fi 7314done 7315done 7316IFS=$as_save_IFS 7317 7318 ;; 7319esac 7320fi 7321POD2MAN=$ac_cv_path_POD2MAN 7322if test -n "$POD2MAN"; then 7323 { echo "$as_me:$LINENO: result: $POD2MAN" >&5 7324echo "${ECHO_T}$POD2MAN" >&6; } 7325else 7326 { echo "$as_me:$LINENO: result: no" >&5 7327echo "${ECHO_T}no" >&6; } 7328fi 7329 7330 7331# Extract the first word of "pdfroff", so it can be a program name with args. 7332set dummy pdfroff; ac_word=$2 7333{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7335if test "${ac_cv_path_PDFROFF+set}" = set; then 7336 echo $ECHO_N "(cached) $ECHO_C" >&6 7337else 7338 case $PDFROFF in 7339 [\\/]* | ?:[\\/]*) 7340 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7341 ;; 7342 *) 7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7344for as_dir in $PATH 7345do 7346 IFS=$as_save_IFS 7347 test -z "$as_dir" && as_dir=. 7348 for ac_exec_ext in '' $ac_executable_extensions; do 7349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7350 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7352 break 2 7353 fi 7354done 7355done 7356IFS=$as_save_IFS 7357 7358 ;; 7359esac 7360fi 7361PDFROFF=$ac_cv_path_PDFROFF 7362if test -n "$PDFROFF"; then 7363 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7364echo "${ECHO_T}$PDFROFF" >&6; } 7365else 7366 { echo "$as_me:$LINENO: result: no" >&5 7367echo "${ECHO_T}no" >&6; } 7368fi 7369 7370 7371# Extract the first word of "runtest", so it can be a program name with args. 7372set dummy runtest; ac_word=$2 7373{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7375if test "${ac_cv_path_RUNTEST+set}" = set; then 7376 echo $ECHO_N "(cached) $ECHO_C" >&6 7377else 7378 case $RUNTEST in 7379 [\\/]* | ?:[\\/]*) 7380 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. 7381 ;; 7382 *) 7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7384for as_dir in $PATH 7385do 7386 IFS=$as_save_IFS 7387 test -z "$as_dir" && as_dir=. 7388 for ac_exec_ext in '' $ac_executable_extensions; do 7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7390 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" 7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7392 break 2 7393 fi 7394done 7395done 7396IFS=$as_save_IFS 7397 7398 ;; 7399esac 7400fi 7401RUNTEST=$ac_cv_path_RUNTEST 7402if test -n "$RUNTEST"; then 7403 { echo "$as_me:$LINENO: result: $RUNTEST" >&5 7404echo "${ECHO_T}$RUNTEST" >&6; } 7405else 7406 { echo "$as_me:$LINENO: result: no" >&5 7407echo "${ECHO_T}no" >&6; } 7408fi 7409 7410 7411 7412no_itcl=true 7413{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 7414echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } 7415 7416# Check whether --with-tclinclude was given. 7417if test "${with_tclinclude+set}" = set; then 7418 withval=$with_tclinclude; with_tclinclude=${withval} 7419else 7420 with_tclinclude='' 7421fi 7422 7423if test "${ac_cv_path_tclsh+set}" = set; then 7424 echo $ECHO_N "(cached) $ECHO_C" >&6 7425else 7426 7427if test x"${with_tclinclude}" != x ; then 7428 if test -f ${with_tclinclude}/tclsh ; then 7429 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` 7430 elif test -f ${with_tclinclude}/src/tclsh ; then 7431 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` 7432 else 7433 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 7434echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} 7435 { (exit 1); exit 1; }; } 7436 fi 7437fi 7438fi 7439 7440 7441if test x"${ac_cv_path_tclsh}" = x ; then 7442 { echo "$as_me:$LINENO: result: none" >&5 7443echo "${ECHO_T}none" >&6; } 7444 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh 7445do 7446 # Extract the first word of "$ac_prog", so it can be a program name with args. 7447set dummy $ac_prog; ac_word=$2 7448{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7450if test "${ac_cv_path_TCLSH+set}" = set; then 7451 echo $ECHO_N "(cached) $ECHO_C" >&6 7452else 7453 case $TCLSH in 7454 [\\/]* | ?:[\\/]*) 7455 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. 7456 ;; 7457 *) 7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7459for as_dir in $PATH 7460do 7461 IFS=$as_save_IFS 7462 test -z "$as_dir" && as_dir=. 7463 for ac_exec_ext in '' $ac_executable_extensions; do 7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7465 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" 7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7467 break 2 7468 fi 7469done 7470done 7471IFS=$as_save_IFS 7472 7473 ;; 7474esac 7475fi 7476TCLSH=$ac_cv_path_TCLSH 7477if test -n "$TCLSH"; then 7478 { echo "$as_me:$LINENO: result: $TCLSH" >&5 7479echo "${ECHO_T}$TCLSH" >&6; } 7480else 7481 { echo "$as_me:$LINENO: result: no" >&5 7482echo "${ECHO_T}no" >&6; } 7483fi 7484 7485 7486 test -n "$TCLSH" && break 7487done 7488 7489 if test x"${TCLSH}" = x ; then 7490 ac_cv_path_tclsh=''; 7491 else 7492 ac_cv_path_tclsh="${TCLSH}"; 7493 fi 7494else 7495 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 7496echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } 7497 TCLSH="${ac_cv_path_tclsh}" 7498 7499fi 7500 7501# Extract the first word of "zip", so it can be a program name with args. 7502set dummy zip; ac_word=$2 7503{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7505if test "${ac_cv_path_ZIP+set}" = set; then 7506 echo $ECHO_N "(cached) $ECHO_C" >&6 7507else 7508 case $ZIP in 7509 [\\/]* | ?:[\\/]*) 7510 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7511 ;; 7512 *) 7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7514for as_dir in $PATH 7515do 7516 IFS=$as_save_IFS 7517 test -z "$as_dir" && as_dir=. 7518 for ac_exec_ext in '' $ac_executable_extensions; do 7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7520 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7522 break 2 7523 fi 7524done 7525done 7526IFS=$as_save_IFS 7527 7528 ;; 7529esac 7530fi 7531ZIP=$ac_cv_path_ZIP 7532if test -n "$ZIP"; then 7533 { echo "$as_me:$LINENO: result: $ZIP" >&5 7534echo "${ECHO_T}$ZIP" >&6; } 7535else 7536 { echo "$as_me:$LINENO: result: no" >&5 7537echo "${ECHO_T}no" >&6; } 7538fi 7539 7540 7541for ac_prog in ocamlc 7542do 7543 # Extract the first word of "$ac_prog", so it can be a program name with args. 7544set dummy $ac_prog; ac_word=$2 7545{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7547if test "${ac_cv_path_OCAMLC+set}" = set; then 7548 echo $ECHO_N "(cached) $ECHO_C" >&6 7549else 7550 case $OCAMLC in 7551 [\\/]* | ?:[\\/]*) 7552 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7553 ;; 7554 *) 7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7556for as_dir in $PATH 7557do 7558 IFS=$as_save_IFS 7559 test -z "$as_dir" && as_dir=. 7560 for ac_exec_ext in '' $ac_executable_extensions; do 7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7562 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7564 break 2 7565 fi 7566done 7567done 7568IFS=$as_save_IFS 7569 7570 ;; 7571esac 7572fi 7573OCAMLC=$ac_cv_path_OCAMLC 7574if test -n "$OCAMLC"; then 7575 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7576echo "${ECHO_T}$OCAMLC" >&6; } 7577else 7578 { echo "$as_me:$LINENO: result: no" >&5 7579echo "${ECHO_T}no" >&6; } 7580fi 7581 7582 7583 test -n "$OCAMLC" && break 7584done 7585 7586for ac_prog in ocamlopt 7587do 7588 # Extract the first word of "$ac_prog", so it can be a program name with args. 7589set dummy $ac_prog; ac_word=$2 7590{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7592if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7593 echo $ECHO_N "(cached) $ECHO_C" >&6 7594else 7595 case $OCAMLOPT in 7596 [\\/]* | ?:[\\/]*) 7597 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7598 ;; 7599 *) 7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7601for as_dir in $PATH 7602do 7603 IFS=$as_save_IFS 7604 test -z "$as_dir" && as_dir=. 7605 for ac_exec_ext in '' $ac_executable_extensions; do 7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7607 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7609 break 2 7610 fi 7611done 7612done 7613IFS=$as_save_IFS 7614 7615 ;; 7616esac 7617fi 7618OCAMLOPT=$ac_cv_path_OCAMLOPT 7619if test -n "$OCAMLOPT"; then 7620 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7621echo "${ECHO_T}$OCAMLOPT" >&6; } 7622else 7623 { echo "$as_me:$LINENO: result: no" >&5 7624echo "${ECHO_T}no" >&6; } 7625fi 7626 7627 7628 test -n "$OCAMLOPT" && break 7629done 7630 7631for ac_prog in ocamldep 7632do 7633 # Extract the first word of "$ac_prog", so it can be a program name with args. 7634set dummy $ac_prog; ac_word=$2 7635{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7637if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7638 echo $ECHO_N "(cached) $ECHO_C" >&6 7639else 7640 case $OCAMLDEP in 7641 [\\/]* | ?:[\\/]*) 7642 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7643 ;; 7644 *) 7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7646for as_dir in $PATH 7647do 7648 IFS=$as_save_IFS 7649 test -z "$as_dir" && as_dir=. 7650 for ac_exec_ext in '' $ac_executable_extensions; do 7651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7652 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7654 break 2 7655 fi 7656done 7657done 7658IFS=$as_save_IFS 7659 7660 ;; 7661esac 7662fi 7663OCAMLDEP=$ac_cv_path_OCAMLDEP 7664if test -n "$OCAMLDEP"; then 7665 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7666echo "${ECHO_T}$OCAMLDEP" >&6; } 7667else 7668 { echo "$as_me:$LINENO: result: no" >&5 7669echo "${ECHO_T}no" >&6; } 7670fi 7671 7672 7673 test -n "$OCAMLDEP" && break 7674done 7675 7676for ac_prog in ocamldoc 7677do 7678 # Extract the first word of "$ac_prog", so it can be a program name with args. 7679set dummy $ac_prog; ac_word=$2 7680{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7682if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7683 echo $ECHO_N "(cached) $ECHO_C" >&6 7684else 7685 case $OCAMLDOC in 7686 [\\/]* | ?:[\\/]*) 7687 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7688 ;; 7689 *) 7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7691for as_dir in $PATH 7692do 7693 IFS=$as_save_IFS 7694 test -z "$as_dir" && as_dir=. 7695 for ac_exec_ext in '' $ac_executable_extensions; do 7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7697 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7699 break 2 7700 fi 7701done 7702done 7703IFS=$as_save_IFS 7704 7705 ;; 7706esac 7707fi 7708OCAMLDOC=$ac_cv_path_OCAMLDOC 7709if test -n "$OCAMLDOC"; then 7710 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7711echo "${ECHO_T}$OCAMLDOC" >&6; } 7712else 7713 { echo "$as_me:$LINENO: result: no" >&5 7714echo "${ECHO_T}no" >&6; } 7715fi 7716 7717 7718 test -n "$OCAMLDOC" && break 7719done 7720 7721for ac_prog in gas as 7722do 7723 # Extract the first word of "$ac_prog", so it can be a program name with args. 7724set dummy $ac_prog; ac_word=$2 7725{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7727if test "${ac_cv_path_GAS+set}" = set; then 7728 echo $ECHO_N "(cached) $ECHO_C" >&6 7729else 7730 case $GAS in 7731 [\\/]* | ?:[\\/]*) 7732 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7733 ;; 7734 *) 7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7736for as_dir in $PATH 7737do 7738 IFS=$as_save_IFS 7739 test -z "$as_dir" && as_dir=. 7740 for ac_exec_ext in '' $ac_executable_extensions; do 7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7742 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7744 break 2 7745 fi 7746done 7747done 7748IFS=$as_save_IFS 7749 7750 ;; 7751esac 7752fi 7753GAS=$ac_cv_path_GAS 7754if test -n "$GAS"; then 7755 { echo "$as_me:$LINENO: result: $GAS" >&5 7756echo "${ECHO_T}$GAS" >&6; } 7757else 7758 { echo "$as_me:$LINENO: result: no" >&5 7759echo "${ECHO_T}no" >&6; } 7760fi 7761 7762 7763 test -n "$GAS" && break 7764done 7765 7766 7767{ echo "$as_me:$LINENO: checking for linker version" >&5 7768echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7769if test "${llvm_cv_link_version+set}" = set; then 7770 echo $ECHO_N "(cached) $ECHO_C" >&6 7771else 7772 7773 version_string="$(ld -v 2>&1 | head -1)" 7774 7775 # Check for ld64. 7776 if (echo "$version_string" | grep -q "ld64"); then 7777 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") 7778 else 7779 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7780 fi 7781 7782fi 7783{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7784echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7785 7786cat >>confdefs.h <<_ACEOF 7787#define HOST_LINK_VERSION "$llvm_cv_link_version" 7788_ACEOF 7789 7790 7791 7792{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7793echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7794if test "${llvm_cv_link_use_r+set}" = set; then 7795 echo $ECHO_N "(cached) $ECHO_C" >&6 7796else 7797 ac_ext=c 7798ac_cpp='$CPP $CPPFLAGS' 7799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7801ac_compiler_gnu=$ac_cv_c_compiler_gnu 7802 7803 oldcflags="$CFLAGS" 7804 CFLAGS="$CFLAGS -Wl,-R." 7805 cat >conftest.$ac_ext <<_ACEOF 7806/* confdefs.h. */ 7807_ACEOF 7808cat confdefs.h >>conftest.$ac_ext 7809cat >>conftest.$ac_ext <<_ACEOF 7810/* end confdefs.h. */ 7811 7812int 7813main () 7814{ 7815 7816 ; 7817 return 0; 7818} 7819_ACEOF 7820rm -f conftest.$ac_objext conftest$ac_exeext 7821if { (ac_try="$ac_link" 7822case "(($ac_try" in 7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7824 *) ac_try_echo=$ac_try;; 7825esac 7826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7827 (eval "$ac_link") 2>conftest.er1 7828 ac_status=$? 7829 grep -v '^ *+' conftest.er1 >conftest.err 7830 rm -f conftest.er1 7831 cat conftest.err >&5 7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7833 (exit $ac_status); } && 7834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7835 { (case "(($ac_try" in 7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7837 *) ac_try_echo=$ac_try;; 7838esac 7839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7840 (eval "$ac_try") 2>&5 7841 ac_status=$? 7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7843 (exit $ac_status); }; } && 7844 { ac_try='test -s conftest$ac_exeext' 7845 { (case "(($ac_try" in 7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7847 *) ac_try_echo=$ac_try;; 7848esac 7849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7850 (eval "$ac_try") 2>&5 7851 ac_status=$? 7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7853 (exit $ac_status); }; }; then 7854 llvm_cv_link_use_r=yes 7855else 7856 echo "$as_me: failed program was:" >&5 7857sed 's/^/| /' conftest.$ac_ext >&5 7858 7859 llvm_cv_link_use_r=no 7860fi 7861 7862rm -f core conftest.err conftest.$ac_objext \ 7863 conftest$ac_exeext conftest.$ac_ext 7864 CFLAGS="$oldcflags" 7865 ac_ext=c 7866ac_cpp='$CPP $CPPFLAGS' 7867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7869ac_compiler_gnu=$ac_cv_c_compiler_gnu 7870 7871 7872fi 7873{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7874echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7875if test "$llvm_cv_link_use_r" = yes ; then 7876 7877cat >>confdefs.h <<\_ACEOF 7878#define HAVE_LINK_R 1 7879_ACEOF 7880 7881 fi 7882 7883 7884{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 7885echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 7886if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7887 echo $ECHO_N "(cached) $ECHO_C" >&6 7888else 7889 ac_ext=c 7890ac_cpp='$CPP $CPPFLAGS' 7891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7893ac_compiler_gnu=$ac_cv_c_compiler_gnu 7894 7895 oldcflags="$CFLAGS" 7896 CFLAGS="$CFLAGS -Wl,-export-dynamic" 7897 cat >conftest.$ac_ext <<_ACEOF 7898/* confdefs.h. */ 7899_ACEOF 7900cat confdefs.h >>conftest.$ac_ext 7901cat >>conftest.$ac_ext <<_ACEOF 7902/* end confdefs.h. */ 7903 7904int 7905main () 7906{ 7907 7908 ; 7909 return 0; 7910} 7911_ACEOF 7912rm -f conftest.$ac_objext conftest$ac_exeext 7913if { (ac_try="$ac_link" 7914case "(($ac_try" in 7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7916 *) ac_try_echo=$ac_try;; 7917esac 7918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7919 (eval "$ac_link") 2>conftest.er1 7920 ac_status=$? 7921 grep -v '^ *+' conftest.er1 >conftest.err 7922 rm -f conftest.er1 7923 cat conftest.err >&5 7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7925 (exit $ac_status); } && 7926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7927 { (case "(($ac_try" in 7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7929 *) ac_try_echo=$ac_try;; 7930esac 7931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7932 (eval "$ac_try") 2>&5 7933 ac_status=$? 7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7935 (exit $ac_status); }; } && 7936 { ac_try='test -s conftest$ac_exeext' 7937 { (case "(($ac_try" in 7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7939 *) ac_try_echo=$ac_try;; 7940esac 7941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7942 (eval "$ac_try") 2>&5 7943 ac_status=$? 7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7945 (exit $ac_status); }; }; then 7946 llvm_cv_link_use_export_dynamic=yes 7947else 7948 echo "$as_me: failed program was:" >&5 7949sed 's/^/| /' conftest.$ac_ext >&5 7950 7951 llvm_cv_link_use_export_dynamic=no 7952fi 7953 7954rm -f core conftest.err conftest.$ac_objext \ 7955 conftest$ac_exeext conftest.$ac_ext 7956 CFLAGS="$oldcflags" 7957 ac_ext=c 7958ac_cpp='$CPP $CPPFLAGS' 7959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7961ac_compiler_gnu=$ac_cv_c_compiler_gnu 7962 7963 7964fi 7965{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 7966echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 7967if test "$llvm_cv_link_use_export_dynamic" = yes ; then 7968 7969cat >>confdefs.h <<\_ACEOF 7970#define HAVE_LINK_EXPORT_DYNAMIC 1 7971_ACEOF 7972 7973 fi 7974 7975 7976{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 7977echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 7978if test "${llvm_cv_link_use_version_script+set}" = set; then 7979 echo $ECHO_N "(cached) $ECHO_C" >&6 7980else 7981 ac_ext=c 7982ac_cpp='$CPP $CPPFLAGS' 7983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7985ac_compiler_gnu=$ac_cv_c_compiler_gnu 7986 7987 oldcflags="$CFLAGS" 7988 7989 # The following code is from the autoconf manual, 7990 # "11.13: Limitations of Usual Tools". 7991 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 7992 # Use mktemp if possible; otherwise fall back on mkdir, 7993 # with $RANDOM to make collisions less likely. 7994 : ${TMPDIR=/tmp} 7995 { 7996 tmp=` 7997 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 7998 ` && 7999 test -n "$tmp" && test -d "$tmp" 8000 } || { 8001 tmp=$TMPDIR/foo$$-$RANDOM 8002 (umask 077 && mkdir "$tmp") 8003 } || exit $? 8004 8005 echo "{" > "$tmp/export.map" 8006 echo " global: main;" >> "$tmp/export.map" 8007 echo " local: *;" >> "$tmp/export.map" 8008 echo "};" >> "$tmp/export.map" 8009 8010 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 8011 cat >conftest.$ac_ext <<_ACEOF 8012/* confdefs.h. */ 8013_ACEOF 8014cat confdefs.h >>conftest.$ac_ext 8015cat >>conftest.$ac_ext <<_ACEOF 8016/* end confdefs.h. */ 8017 8018int 8019main () 8020{ 8021 8022 ; 8023 return 0; 8024} 8025_ACEOF 8026rm -f conftest.$ac_objext conftest$ac_exeext 8027if { (ac_try="$ac_link" 8028case "(($ac_try" in 8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8030 *) ac_try_echo=$ac_try;; 8031esac 8032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8033 (eval "$ac_link") 2>conftest.er1 8034 ac_status=$? 8035 grep -v '^ *+' conftest.er1 >conftest.err 8036 rm -f conftest.er1 8037 cat conftest.err >&5 8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8039 (exit $ac_status); } && 8040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8041 { (case "(($ac_try" in 8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8043 *) ac_try_echo=$ac_try;; 8044esac 8045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8046 (eval "$ac_try") 2>&5 8047 ac_status=$? 8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8049 (exit $ac_status); }; } && 8050 { ac_try='test -s conftest$ac_exeext' 8051 { (case "(($ac_try" in 8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8053 *) ac_try_echo=$ac_try;; 8054esac 8055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8056 (eval "$ac_try") 2>&5 8057 ac_status=$? 8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8059 (exit $ac_status); }; }; then 8060 llvm_cv_link_use_version_script=yes 8061else 8062 echo "$as_me: failed program was:" >&5 8063sed 's/^/| /' conftest.$ac_ext >&5 8064 8065 llvm_cv_link_use_version_script=no 8066fi 8067 8068rm -f core conftest.err conftest.$ac_objext \ 8069 conftest$ac_exeext conftest.$ac_ext 8070 rm "$tmp/export.map" 8071 rmdir "$tmp" 8072 CFLAGS="$oldcflags" 8073 ac_ext=c 8074ac_cpp='$CPP $CPPFLAGS' 8075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8077ac_compiler_gnu=$ac_cv_c_compiler_gnu 8078 8079 8080fi 8081{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 8082echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 8083if test "$llvm_cv_link_use_version_script" = yes ; then 8084 HAVE_LINK_VERSION_SCRIPT=1 8085 8086 fi 8087 8088 8089 8090 8091{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8092echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 8093if test "${ac_cv_c_const+set}" = set; then 8094 echo $ECHO_N "(cached) $ECHO_C" >&6 8095else 8096 cat >conftest.$ac_ext <<_ACEOF 8097/* confdefs.h. */ 8098_ACEOF 8099cat confdefs.h >>conftest.$ac_ext 8100cat >>conftest.$ac_ext <<_ACEOF 8101/* end confdefs.h. */ 8102 8103int 8104main () 8105{ 8106/* FIXME: Include the comments suggested by Paul. */ 8107#ifndef __cplusplus 8108 /* Ultrix mips cc rejects this. */ 8109 typedef int charset[2]; 8110 const charset x; 8111 /* SunOS 4.1.1 cc rejects this. */ 8112 char const *const *ccp; 8113 char **p; 8114 /* NEC SVR4.0.2 mips cc rejects this. */ 8115 struct point {int x, y;}; 8116 static struct point const zero = {0,0}; 8117 /* AIX XL C 1.02.0.0 rejects this. 8118 It does not let you subtract one const X* pointer from another in 8119 an arm of an if-expression whose if-part is not a constant 8120 expression */ 8121 const char *g = "string"; 8122 ccp = &g + (g ? g-g : 0); 8123 /* HPUX 7.0 cc rejects these. */ 8124 ++ccp; 8125 p = (char**) ccp; 8126 ccp = (char const *const *) p; 8127 { /* SCO 3.2v4 cc rejects this. */ 8128 char *t; 8129 char const *s = 0 ? (char *) 0 : (char const *) 0; 8130 8131 *t++ = 0; 8132 if (s) return 0; 8133 } 8134 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8135 int x[] = {25, 17}; 8136 const int *foo = &x[0]; 8137 ++foo; 8138 } 8139 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8140 typedef const int *iptr; 8141 iptr p = 0; 8142 ++p; 8143 } 8144 { /* AIX XL C 1.02.0.0 rejects this saying 8145 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8146 struct s { int j; const int *ap[3]; }; 8147 struct s *b; b->j = 5; 8148 } 8149 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8150 const int foo = 10; 8151 if (!foo) return 0; 8152 } 8153 return !x[0] && !zero.x; 8154#endif 8155 8156 ; 8157 return 0; 8158} 8159_ACEOF 8160rm -f conftest.$ac_objext 8161if { (ac_try="$ac_compile" 8162case "(($ac_try" in 8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8164 *) ac_try_echo=$ac_try;; 8165esac 8166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8167 (eval "$ac_compile") 2>conftest.er1 8168 ac_status=$? 8169 grep -v '^ *+' conftest.er1 >conftest.err 8170 rm -f conftest.er1 8171 cat conftest.err >&5 8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8173 (exit $ac_status); } && 8174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8175 { (case "(($ac_try" in 8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8177 *) ac_try_echo=$ac_try;; 8178esac 8179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8180 (eval "$ac_try") 2>&5 8181 ac_status=$? 8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8183 (exit $ac_status); }; } && 8184 { ac_try='test -s conftest.$ac_objext' 8185 { (case "(($ac_try" in 8186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8187 *) ac_try_echo=$ac_try;; 8188esac 8189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8190 (eval "$ac_try") 2>&5 8191 ac_status=$? 8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8193 (exit $ac_status); }; }; then 8194 ac_cv_c_const=yes 8195else 8196 echo "$as_me: failed program was:" >&5 8197sed 's/^/| /' conftest.$ac_ext >&5 8198 8199 ac_cv_c_const=no 8200fi 8201 8202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8203fi 8204{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8205echo "${ECHO_T}$ac_cv_c_const" >&6; } 8206if test $ac_cv_c_const = no; then 8207 8208cat >>confdefs.h <<\_ACEOF 8209#define const 8210_ACEOF 8211 8212fi 8213 8214 8215 8216 8217 8218 8219ac_header_dirent=no 8220for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8221 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8222{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8223echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8225 echo $ECHO_N "(cached) $ECHO_C" >&6 8226else 8227 cat >conftest.$ac_ext <<_ACEOF 8228/* confdefs.h. */ 8229_ACEOF 8230cat confdefs.h >>conftest.$ac_ext 8231cat >>conftest.$ac_ext <<_ACEOF 8232/* end confdefs.h. */ 8233#include <sys/types.h> 8234#include <$ac_hdr> 8235 8236int 8237main () 8238{ 8239if ((DIR *) 0) 8240return 0; 8241 ; 8242 return 0; 8243} 8244_ACEOF 8245rm -f conftest.$ac_objext 8246if { (ac_try="$ac_compile" 8247case "(($ac_try" in 8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8249 *) ac_try_echo=$ac_try;; 8250esac 8251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8252 (eval "$ac_compile") 2>conftest.er1 8253 ac_status=$? 8254 grep -v '^ *+' conftest.er1 >conftest.err 8255 rm -f conftest.er1 8256 cat conftest.err >&5 8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8258 (exit $ac_status); } && 8259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8260 { (case "(($ac_try" in 8261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8262 *) ac_try_echo=$ac_try;; 8263esac 8264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8265 (eval "$ac_try") 2>&5 8266 ac_status=$? 8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8268 (exit $ac_status); }; } && 8269 { ac_try='test -s conftest.$ac_objext' 8270 { (case "(($ac_try" in 8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8272 *) ac_try_echo=$ac_try;; 8273esac 8274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8275 (eval "$ac_try") 2>&5 8276 ac_status=$? 8277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8278 (exit $ac_status); }; }; then 8279 eval "$as_ac_Header=yes" 8280else 8281 echo "$as_me: failed program was:" >&5 8282sed 's/^/| /' conftest.$ac_ext >&5 8283 8284 eval "$as_ac_Header=no" 8285fi 8286 8287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8288fi 8289ac_res=`eval echo '${'$as_ac_Header'}'` 8290 { echo "$as_me:$LINENO: result: $ac_res" >&5 8291echo "${ECHO_T}$ac_res" >&6; } 8292if test `eval echo '${'$as_ac_Header'}'` = yes; then 8293 cat >>confdefs.h <<_ACEOF 8294#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8295_ACEOF 8296 8297ac_header_dirent=$ac_hdr; break 8298fi 8299 8300done 8301# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8302if test $ac_header_dirent = dirent.h; then 8303 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8304echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8305if test "${ac_cv_search_opendir+set}" = set; then 8306 echo $ECHO_N "(cached) $ECHO_C" >&6 8307else 8308 ac_func_search_save_LIBS=$LIBS 8309cat >conftest.$ac_ext <<_ACEOF 8310/* confdefs.h. */ 8311_ACEOF 8312cat confdefs.h >>conftest.$ac_ext 8313cat >>conftest.$ac_ext <<_ACEOF 8314/* end confdefs.h. */ 8315 8316/* Override any GCC internal prototype to avoid an error. 8317 Use char because int might match the return type of a GCC 8318 builtin and then its argument prototype would still apply. */ 8319#ifdef __cplusplus 8320extern "C" 8321#endif 8322char opendir (); 8323int 8324main () 8325{ 8326return opendir (); 8327 ; 8328 return 0; 8329} 8330_ACEOF 8331for ac_lib in '' dir; do 8332 if test -z "$ac_lib"; then 8333 ac_res="none required" 8334 else 8335 ac_res=-l$ac_lib 8336 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8337 fi 8338 rm -f conftest.$ac_objext conftest$ac_exeext 8339if { (ac_try="$ac_link" 8340case "(($ac_try" in 8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8342 *) ac_try_echo=$ac_try;; 8343esac 8344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8345 (eval "$ac_link") 2>conftest.er1 8346 ac_status=$? 8347 grep -v '^ *+' conftest.er1 >conftest.err 8348 rm -f conftest.er1 8349 cat conftest.err >&5 8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8351 (exit $ac_status); } && 8352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8353 { (case "(($ac_try" in 8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8355 *) ac_try_echo=$ac_try;; 8356esac 8357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8358 (eval "$ac_try") 2>&5 8359 ac_status=$? 8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8361 (exit $ac_status); }; } && 8362 { ac_try='test -s conftest$ac_exeext' 8363 { (case "(($ac_try" in 8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8365 *) ac_try_echo=$ac_try;; 8366esac 8367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8368 (eval "$ac_try") 2>&5 8369 ac_status=$? 8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8371 (exit $ac_status); }; }; then 8372 ac_cv_search_opendir=$ac_res 8373else 8374 echo "$as_me: failed program was:" >&5 8375sed 's/^/| /' conftest.$ac_ext >&5 8376 8377 8378fi 8379 8380rm -f core conftest.err conftest.$ac_objext \ 8381 conftest$ac_exeext 8382 if test "${ac_cv_search_opendir+set}" = set; then 8383 break 8384fi 8385done 8386if test "${ac_cv_search_opendir+set}" = set; then 8387 : 8388else 8389 ac_cv_search_opendir=no 8390fi 8391rm conftest.$ac_ext 8392LIBS=$ac_func_search_save_LIBS 8393fi 8394{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8395echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8396ac_res=$ac_cv_search_opendir 8397if test "$ac_res" != no; then 8398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8399 8400fi 8401 8402else 8403 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8404echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8405if test "${ac_cv_search_opendir+set}" = set; then 8406 echo $ECHO_N "(cached) $ECHO_C" >&6 8407else 8408 ac_func_search_save_LIBS=$LIBS 8409cat >conftest.$ac_ext <<_ACEOF 8410/* confdefs.h. */ 8411_ACEOF 8412cat confdefs.h >>conftest.$ac_ext 8413cat >>conftest.$ac_ext <<_ACEOF 8414/* end confdefs.h. */ 8415 8416/* Override any GCC internal prototype to avoid an error. 8417 Use char because int might match the return type of a GCC 8418 builtin and then its argument prototype would still apply. */ 8419#ifdef __cplusplus 8420extern "C" 8421#endif 8422char opendir (); 8423int 8424main () 8425{ 8426return opendir (); 8427 ; 8428 return 0; 8429} 8430_ACEOF 8431for ac_lib in '' x; do 8432 if test -z "$ac_lib"; then 8433 ac_res="none required" 8434 else 8435 ac_res=-l$ac_lib 8436 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8437 fi 8438 rm -f conftest.$ac_objext conftest$ac_exeext 8439if { (ac_try="$ac_link" 8440case "(($ac_try" in 8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8442 *) ac_try_echo=$ac_try;; 8443esac 8444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8445 (eval "$ac_link") 2>conftest.er1 8446 ac_status=$? 8447 grep -v '^ *+' conftest.er1 >conftest.err 8448 rm -f conftest.er1 8449 cat conftest.err >&5 8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8451 (exit $ac_status); } && 8452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8453 { (case "(($ac_try" in 8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8455 *) ac_try_echo=$ac_try;; 8456esac 8457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8458 (eval "$ac_try") 2>&5 8459 ac_status=$? 8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8461 (exit $ac_status); }; } && 8462 { ac_try='test -s conftest$ac_exeext' 8463 { (case "(($ac_try" in 8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8465 *) ac_try_echo=$ac_try;; 8466esac 8467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8468 (eval "$ac_try") 2>&5 8469 ac_status=$? 8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8471 (exit $ac_status); }; }; then 8472 ac_cv_search_opendir=$ac_res 8473else 8474 echo "$as_me: failed program was:" >&5 8475sed 's/^/| /' conftest.$ac_ext >&5 8476 8477 8478fi 8479 8480rm -f core conftest.err conftest.$ac_objext \ 8481 conftest$ac_exeext 8482 if test "${ac_cv_search_opendir+set}" = set; then 8483 break 8484fi 8485done 8486if test "${ac_cv_search_opendir+set}" = set; then 8487 : 8488else 8489 ac_cv_search_opendir=no 8490fi 8491rm conftest.$ac_ext 8492LIBS=$ac_func_search_save_LIBS 8493fi 8494{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8495echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8496ac_res=$ac_cv_search_opendir 8497if test "$ac_res" != no; then 8498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8499 8500fi 8501 8502fi 8503 8504 8505for ac_header in dlfcn.h 8506do 8507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8509 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8512 echo $ECHO_N "(cached) $ECHO_C" >&6 8513fi 8514ac_res=`eval echo '${'$as_ac_Header'}'` 8515 { echo "$as_me:$LINENO: result: $ac_res" >&5 8516echo "${ECHO_T}$ac_res" >&6; } 8517else 8518 # Is the header compilable? 8519{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8521cat >conftest.$ac_ext <<_ACEOF 8522/* confdefs.h. */ 8523_ACEOF 8524cat confdefs.h >>conftest.$ac_ext 8525cat >>conftest.$ac_ext <<_ACEOF 8526/* end confdefs.h. */ 8527$ac_includes_default 8528#include <$ac_header> 8529_ACEOF 8530rm -f conftest.$ac_objext 8531if { (ac_try="$ac_compile" 8532case "(($ac_try" in 8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8534 *) ac_try_echo=$ac_try;; 8535esac 8536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8537 (eval "$ac_compile") 2>conftest.er1 8538 ac_status=$? 8539 grep -v '^ *+' conftest.er1 >conftest.err 8540 rm -f conftest.er1 8541 cat conftest.err >&5 8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8543 (exit $ac_status); } && 8544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8545 { (case "(($ac_try" in 8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8547 *) ac_try_echo=$ac_try;; 8548esac 8549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8550 (eval "$ac_try") 2>&5 8551 ac_status=$? 8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8553 (exit $ac_status); }; } && 8554 { ac_try='test -s conftest.$ac_objext' 8555 { (case "(($ac_try" in 8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8557 *) ac_try_echo=$ac_try;; 8558esac 8559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8560 (eval "$ac_try") 2>&5 8561 ac_status=$? 8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8563 (exit $ac_status); }; }; then 8564 ac_header_compiler=yes 8565else 8566 echo "$as_me: failed program was:" >&5 8567sed 's/^/| /' conftest.$ac_ext >&5 8568 8569 ac_header_compiler=no 8570fi 8571 8572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8573{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8574echo "${ECHO_T}$ac_header_compiler" >&6; } 8575 8576# Is the header present? 8577{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8579cat >conftest.$ac_ext <<_ACEOF 8580/* confdefs.h. */ 8581_ACEOF 8582cat confdefs.h >>conftest.$ac_ext 8583cat >>conftest.$ac_ext <<_ACEOF 8584/* end confdefs.h. */ 8585#include <$ac_header> 8586_ACEOF 8587if { (ac_try="$ac_cpp conftest.$ac_ext" 8588case "(($ac_try" in 8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8590 *) ac_try_echo=$ac_try;; 8591esac 8592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8594 ac_status=$? 8595 grep -v '^ *+' conftest.er1 >conftest.err 8596 rm -f conftest.er1 8597 cat conftest.err >&5 8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8599 (exit $ac_status); } >/dev/null; then 8600 if test -s conftest.err; then 8601 ac_cpp_err=$ac_c_preproc_warn_flag 8602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8603 else 8604 ac_cpp_err= 8605 fi 8606else 8607 ac_cpp_err=yes 8608fi 8609if test -z "$ac_cpp_err"; then 8610 ac_header_preproc=yes 8611else 8612 echo "$as_me: failed program was:" >&5 8613sed 's/^/| /' conftest.$ac_ext >&5 8614 8615 ac_header_preproc=no 8616fi 8617 8618rm -f conftest.err conftest.$ac_ext 8619{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8620echo "${ECHO_T}$ac_header_preproc" >&6; } 8621 8622# So? What about this header? 8623case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8624 yes:no: ) 8625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8628echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8629 ac_header_preproc=yes 8630 ;; 8631 no:yes:* ) 8632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8635echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8637echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8639echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8641echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8643echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8644 ( cat <<\_ASBOX 8645## ----------------------------------- ## 8646## Report this to llvmbugs@cs.uiuc.edu ## 8647## ----------------------------------- ## 8648_ASBOX 8649 ) | sed "s/^/$as_me: WARNING: /" >&2 8650 ;; 8651esac 8652{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8655 echo $ECHO_N "(cached) $ECHO_C" >&6 8656else 8657 eval "$as_ac_Header=\$ac_header_preproc" 8658fi 8659ac_res=`eval echo '${'$as_ac_Header'}'` 8660 { echo "$as_me:$LINENO: result: $ac_res" >&5 8661echo "${ECHO_T}$ac_res" >&6; } 8662 8663fi 8664if test `eval echo '${'$as_ac_Header'}'` = yes; then 8665 cat >>confdefs.h <<_ACEOF 8666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8667_ACEOF 8668 8669fi 8670 8671done 8672 8673# Check whether --enable-ltdl-install was given. 8674if test "${enable_ltdl_install+set}" = set; then 8675 enableval=$enable_ltdl_install; 8676fi 8677 8678 8679 8680 8681if test x"${enable_ltdl_install-no}" != xno; then 8682 INSTALL_LTDL_TRUE= 8683 INSTALL_LTDL_FALSE='#' 8684else 8685 INSTALL_LTDL_TRUE='#' 8686 INSTALL_LTDL_FALSE= 8687fi 8688 8689 8690 8691if test x"${enable_ltdl_convenience-no}" != xno; then 8692 CONVENIENCE_LTDL_TRUE= 8693 CONVENIENCE_LTDL_FALSE='#' 8694else 8695 CONVENIENCE_LTDL_TRUE='#' 8696 CONVENIENCE_LTDL_FALSE= 8697fi 8698 8699 8700{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8701echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8702library_names_spec= 8703libname_spec='lib$name' 8704soname_spec= 8705shrext_cmds=".so" 8706postinstall_cmds= 8707postuninstall_cmds= 8708finish_cmds= 8709finish_eval= 8710shlibpath_var= 8711shlibpath_overrides_runpath=unknown 8712version_type=none 8713dynamic_linker="$host_os ld.so" 8714sys_lib_dlsearch_path_spec="/lib /usr/lib" 8715if test "$GCC" = yes; then 8716 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8717 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8718 # if the path contains ";" then we assume it to be the separator 8719 # otherwise default to the standard path separator (i.e. ":") - it is 8720 # assumed that no part of a normal pathname contains ";" but that should 8721 # okay in the real world where ";" in dirpaths is itself problematic. 8722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8723 else 8724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8725 fi 8726else 8727 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8728fi 8729need_lib_prefix=unknown 8730hardcode_into_libs=no 8731 8732# when you set need_version to no, make sure it does not cause -set_version 8733# flags to be left without arguments 8734need_version=unknown 8735 8736case $host_os in 8737aix3*) 8738 version_type=linux 8739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8740 shlibpath_var=LIBPATH 8741 8742 # AIX 3 has no versioning support, so we append a major version to the name. 8743 soname_spec='${libname}${release}${shared_ext}$major' 8744 ;; 8745 8746aix4* | aix5*) 8747 version_type=linux 8748 need_lib_prefix=no 8749 need_version=no 8750 hardcode_into_libs=yes 8751 if test "$host_cpu" = ia64; then 8752 # AIX 5 supports IA64 8753 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8754 shlibpath_var=LD_LIBRARY_PATH 8755 else 8756 # With GCC up to 2.95.x, collect2 would create an import file 8757 # for dependence libraries. The import file would start with 8758 # the line `#! .'. This would cause the generated library to 8759 # depend on `.', always an invalid library. This was fixed in 8760 # development snapshots of GCC prior to 3.0. 8761 case $host_os in 8762 aix4 | aix4.[01] | aix4.[01].*) 8763 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8764 echo ' yes ' 8765 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8766 : 8767 else 8768 can_build_shared=no 8769 fi 8770 ;; 8771 esac 8772 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8773 # soname into executable. Probably we can add versioning support to 8774 # collect2, so additional links can be useful in future. 8775 if test "$aix_use_runtimelinking" = yes; then 8776 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8777 # instead of lib<name>.a to let people know that these are not 8778 # typical AIX shared libraries. 8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8780 else 8781 # We preserve .a as extension for shared libraries through AIX4.2 8782 # and later when we are not doing run time linking. 8783 library_names_spec='${libname}${release}.a $libname.a' 8784 soname_spec='${libname}${release}${shared_ext}$major' 8785 fi 8786 shlibpath_var=LIBPATH 8787 fi 8788 ;; 8789 8790amigaos*) 8791 library_names_spec='$libname.ixlibrary $libname.a' 8792 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8793 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' 8794 ;; 8795 8796beos*) 8797 library_names_spec='${libname}${shared_ext}' 8798 dynamic_linker="$host_os ld.so" 8799 shlibpath_var=LIBRARY_PATH 8800 ;; 8801 8802bsdi[45]*) 8803 version_type=linux 8804 need_version=no 8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8806 soname_spec='${libname}${release}${shared_ext}$major' 8807 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8808 shlibpath_var=LD_LIBRARY_PATH 8809 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8810 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8811 # the default ld.so.conf also contains /usr/contrib/lib and 8812 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8813 # libtool to hard-code these into programs 8814 ;; 8815 8816cygwin* | mingw* | pw32*) 8817 version_type=windows 8818 shrext_cmds=".dll" 8819 need_version=no 8820 need_lib_prefix=no 8821 8822 case $GCC,$host_os in 8823 yes,cygwin* | yes,mingw* | yes,pw32*) 8824 library_names_spec='$libname.dll.a' 8825 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8826 postinstall_cmds='base_file=`basename \${file}`~ 8827 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8828 dldir=$destdir/`dirname \$dlpath`~ 8829 test -d \$dldir || mkdir -p \$dldir~ 8830 $install_prog $dir/$dlname \$dldir/$dlname~ 8831 chmod a+x \$dldir/$dlname' 8832 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8833 dlpath=$dir/\$dldll~ 8834 $rm \$dlpath' 8835 shlibpath_overrides_runpath=yes 8836 8837 case $host_os in 8838 cygwin*) 8839 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8840 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8841 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8842 ;; 8843 mingw*) 8844 # MinGW DLLs use traditional 'lib' prefix 8845 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8846 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8847 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8848 # It is most probably a Windows format PATH printed by 8849 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8850 # path with ; separators, and with drive letters. We can handle the 8851 # drive letters (cygwin fileutils understands them), so leave them, 8852 # especially as we might pass files found there to a mingw objdump, 8853 # which wouldn't understand a cygwinified path. Ahh. 8854 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8855 else 8856 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8857 fi 8858 ;; 8859 pw32*) 8860 # pw32 DLLs use 'pw' prefix rather than 'lib' 8861 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8862 ;; 8863 esac 8864 ;; 8865 8866 *) 8867 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8868 ;; 8869 esac 8870 dynamic_linker='Win32 ld.exe' 8871 # FIXME: first we should search . and the directory the executable is in 8872 shlibpath_var=PATH 8873 ;; 8874 8875darwin* | rhapsody*) 8876 dynamic_linker="$host_os dyld" 8877 version_type=darwin 8878 need_lib_prefix=no 8879 need_version=no 8880 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8881 soname_spec='${libname}${release}${major}$shared_ext' 8882 shlibpath_overrides_runpath=yes 8883 shlibpath_var=DYLD_LIBRARY_PATH 8884 shrext_cmds='.dylib' 8885 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8886 if test "$GCC" = yes; then 8887 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"` 8888 else 8889 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8890 fi 8891 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8892 ;; 8893 8894dgux*) 8895 version_type=linux 8896 need_lib_prefix=no 8897 need_version=no 8898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8899 soname_spec='${libname}${release}${shared_ext}$major' 8900 shlibpath_var=LD_LIBRARY_PATH 8901 ;; 8902 8903freebsd1.*) 8904 dynamic_linker=no 8905 ;; 8906 8907kfreebsd*-gnu) 8908 version_type=linux 8909 need_lib_prefix=no 8910 need_version=no 8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8912 soname_spec='${libname}${release}${shared_ext}$major' 8913 shlibpath_var=LD_LIBRARY_PATH 8914 shlibpath_overrides_runpath=no 8915 hardcode_into_libs=yes 8916 dynamic_linker='GNU ld.so' 8917 ;; 8918 8919freebsd* | dragonfly*) 8920 # DragonFly does not have aout. When/if they implement a new 8921 # versioning mechanism, adjust this. 8922 if test -x /usr/bin/objformat; then 8923 objformat=`/usr/bin/objformat` 8924 else 8925 case $host_os in 8926 freebsd[123].*) objformat=aout ;; 8927 *) objformat=elf ;; 8928 esac 8929 fi 8930 version_type=freebsd-$objformat 8931 case $version_type in 8932 freebsd-elf*) 8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8934 need_version=no 8935 need_lib_prefix=no 8936 ;; 8937 freebsd-*) 8938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8939 need_version=yes 8940 ;; 8941 esac 8942 shlibpath_var=LD_LIBRARY_PATH 8943 case $host_os in 8944 freebsd2.*) 8945 shlibpath_overrides_runpath=yes 8946 ;; 8947 freebsd3.[01]* | freebsdelf3.[01]*) 8948 shlibpath_overrides_runpath=yes 8949 hardcode_into_libs=yes 8950 ;; 8951 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8952 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8953 shlibpath_overrides_runpath=no 8954 hardcode_into_libs=yes 8955 ;; 8956 freebsd*) # from 4.6 on 8957 shlibpath_overrides_runpath=yes 8958 hardcode_into_libs=yes 8959 ;; 8960 esac 8961 ;; 8962 8963gnu*) 8964 version_type=linux 8965 need_lib_prefix=no 8966 need_version=no 8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8968 soname_spec='${libname}${release}${shared_ext}$major' 8969 shlibpath_var=LD_LIBRARY_PATH 8970 hardcode_into_libs=yes 8971 ;; 8972 8973hpux9* | hpux10* | hpux11*) 8974 # Give a soname corresponding to the major version so that dld.sl refuses to 8975 # link against other versions. 8976 version_type=sunos 8977 need_lib_prefix=no 8978 need_version=no 8979 case $host_cpu in 8980 ia64*) 8981 shrext_cmds='.so' 8982 hardcode_into_libs=yes 8983 dynamic_linker="$host_os dld.so" 8984 shlibpath_var=LD_LIBRARY_PATH 8985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8987 soname_spec='${libname}${release}${shared_ext}$major' 8988 if test "X$HPUX_IA64_MODE" = X32; then 8989 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8990 else 8991 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8992 fi 8993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8994 ;; 8995 hppa*64*) 8996 shrext_cmds='.sl' 8997 hardcode_into_libs=yes 8998 dynamic_linker="$host_os dld.sl" 8999 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9002 soname_spec='${libname}${release}${shared_ext}$major' 9003 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9005 ;; 9006 *) 9007 shrext_cmds='.sl' 9008 dynamic_linker="$host_os dld.sl" 9009 shlibpath_var=SHLIB_PATH 9010 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9012 soname_spec='${libname}${release}${shared_ext}$major' 9013 ;; 9014 esac 9015 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9016 postinstall_cmds='chmod 555 $lib' 9017 ;; 9018 9019interix3*) 9020 version_type=linux 9021 need_lib_prefix=no 9022 need_version=no 9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9024 soname_spec='${libname}${release}${shared_ext}$major' 9025 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9026 shlibpath_var=LD_LIBRARY_PATH 9027 shlibpath_overrides_runpath=no 9028 hardcode_into_libs=yes 9029 ;; 9030 9031irix5* | irix6* | nonstopux*) 9032 case $host_os in 9033 nonstopux*) version_type=nonstopux ;; 9034 *) 9035 if test "$lt_cv_prog_gnu_ld" = yes; then 9036 version_type=linux 9037 else 9038 version_type=irix 9039 fi ;; 9040 esac 9041 need_lib_prefix=no 9042 need_version=no 9043 soname_spec='${libname}${release}${shared_ext}$major' 9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9045 case $host_os in 9046 irix5* | nonstopux*) 9047 libsuff= shlibsuff= 9048 ;; 9049 *) 9050 case $LD in # libtool.m4 will add one of these switches to LD 9051 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9052 libsuff= shlibsuff= libmagic=32-bit;; 9053 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9054 libsuff=32 shlibsuff=N32 libmagic=N32;; 9055 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9056 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9057 *) libsuff= shlibsuff= libmagic=never-match;; 9058 esac 9059 ;; 9060 esac 9061 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9062 shlibpath_overrides_runpath=no 9063 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9064 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9065 hardcode_into_libs=yes 9066 ;; 9067 9068# No shared lib support for Linux oldld, aout, or coff. 9069linux*oldld* | linux*aout* | linux*coff*) 9070 dynamic_linker=no 9071 ;; 9072 9073# This must be Linux ELF. 9074linux*) 9075 version_type=linux 9076 need_lib_prefix=no 9077 need_version=no 9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9079 soname_spec='${libname}${release}${shared_ext}$major' 9080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9081 shlibpath_var=LD_LIBRARY_PATH 9082 shlibpath_overrides_runpath=no 9083 # This implies no fast_install, which is unacceptable. 9084 # Some rework will be needed to allow for fast_install 9085 # before this can be enabled. 9086 hardcode_into_libs=yes 9087 9088 # Append ld.so.conf contents to the search path 9089 if test -f /etc/ld.so.conf; then 9090 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' ' '` 9091 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9092 fi 9093 9094 # We used to test for /lib/ld.so.1 and disable shared libraries on 9095 # powerpc, because MkLinux only supported shared libraries with the 9096 # GNU dynamic linker. Since this was broken with cross compilers, 9097 # most powerpc-linux boxes support dynamic linking these days and 9098 # people can always --disable-shared, the test was removed, and we 9099 # assume the GNU/Linux dynamic linker is in use. 9100 dynamic_linker='GNU/Linux ld.so' 9101 ;; 9102 9103knetbsd*-gnu) 9104 version_type=linux 9105 need_lib_prefix=no 9106 need_version=no 9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9108 soname_spec='${libname}${release}${shared_ext}$major' 9109 shlibpath_var=LD_LIBRARY_PATH 9110 shlibpath_overrides_runpath=no 9111 hardcode_into_libs=yes 9112 dynamic_linker='GNU ld.so' 9113 ;; 9114 9115netbsd*) 9116 version_type=sunos 9117 need_lib_prefix=no 9118 need_version=no 9119 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9121 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9122 dynamic_linker='NetBSD (a.out) ld.so' 9123 else 9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9125 soname_spec='${libname}${release}${shared_ext}$major' 9126 dynamic_linker='NetBSD ld.elf_so' 9127 fi 9128 shlibpath_var=LD_LIBRARY_PATH 9129 shlibpath_overrides_runpath=yes 9130 hardcode_into_libs=yes 9131 ;; 9132 9133newsos6) 9134 version_type=linux 9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9136 shlibpath_var=LD_LIBRARY_PATH 9137 shlibpath_overrides_runpath=yes 9138 ;; 9139 9140nto-qnx*) 9141 version_type=linux 9142 need_lib_prefix=no 9143 need_version=no 9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9145 soname_spec='${libname}${release}${shared_ext}$major' 9146 shlibpath_var=LD_LIBRARY_PATH 9147 shlibpath_overrides_runpath=yes 9148 ;; 9149 9150openbsd*) 9151 version_type=sunos 9152 sys_lib_dlsearch_path_spec="/usr/lib" 9153 need_lib_prefix=no 9154 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9155 case $host_os in 9156 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9157 *) need_version=no ;; 9158 esac 9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9161 shlibpath_var=LD_LIBRARY_PATH 9162 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9163 case $host_os in 9164 openbsd2.[89] | openbsd2.[89].*) 9165 shlibpath_overrides_runpath=no 9166 ;; 9167 *) 9168 shlibpath_overrides_runpath=yes 9169 ;; 9170 esac 9171 else 9172 shlibpath_overrides_runpath=yes 9173 fi 9174 ;; 9175 9176os2*) 9177 libname_spec='$name' 9178 shrext_cmds=".dll" 9179 need_lib_prefix=no 9180 library_names_spec='$libname${shared_ext} $libname.a' 9181 dynamic_linker='OS/2 ld.exe' 9182 shlibpath_var=LIBPATH 9183 ;; 9184 9185osf3* | osf4* | osf5*) 9186 version_type=osf 9187 need_lib_prefix=no 9188 need_version=no 9189 soname_spec='${libname}${release}${shared_ext}$major' 9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9191 shlibpath_var=LD_LIBRARY_PATH 9192 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9193 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9194 ;; 9195 9196solaris*) 9197 version_type=linux 9198 need_lib_prefix=no 9199 need_version=no 9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9201 soname_spec='${libname}${release}${shared_ext}$major' 9202 shlibpath_var=LD_LIBRARY_PATH 9203 shlibpath_overrides_runpath=yes 9204 hardcode_into_libs=yes 9205 # ldd complains unless libraries are executable 9206 postinstall_cmds='chmod +x $lib' 9207 ;; 9208 9209sunos4*) 9210 version_type=sunos 9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9212 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9213 shlibpath_var=LD_LIBRARY_PATH 9214 shlibpath_overrides_runpath=yes 9215 if test "$with_gnu_ld" = yes; then 9216 need_lib_prefix=no 9217 fi 9218 need_version=yes 9219 ;; 9220 9221sysv4 | sysv4.3*) 9222 version_type=linux 9223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9224 soname_spec='${libname}${release}${shared_ext}$major' 9225 shlibpath_var=LD_LIBRARY_PATH 9226 case $host_vendor in 9227 sni) 9228 shlibpath_overrides_runpath=no 9229 need_lib_prefix=no 9230 export_dynamic_flag_spec='${wl}-Blargedynsym' 9231 runpath_var=LD_RUN_PATH 9232 ;; 9233 siemens) 9234 need_lib_prefix=no 9235 ;; 9236 motorola) 9237 need_lib_prefix=no 9238 need_version=no 9239 shlibpath_overrides_runpath=no 9240 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9241 ;; 9242 esac 9243 ;; 9244 9245sysv4*MP*) 9246 if test -d /usr/nec ;then 9247 version_type=linux 9248 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9249 soname_spec='$libname${shared_ext}.$major' 9250 shlibpath_var=LD_LIBRARY_PATH 9251 fi 9252 ;; 9253 9254sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9255 version_type=freebsd-elf 9256 need_lib_prefix=no 9257 need_version=no 9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9259 soname_spec='${libname}${release}${shared_ext}$major' 9260 shlibpath_var=LD_LIBRARY_PATH 9261 hardcode_into_libs=yes 9262 if test "$with_gnu_ld" = yes; then 9263 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9264 shlibpath_overrides_runpath=no 9265 else 9266 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9267 shlibpath_overrides_runpath=yes 9268 case $host_os in 9269 sco3.2v5*) 9270 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9271 ;; 9272 esac 9273 fi 9274 sys_lib_dlsearch_path_spec='/usr/lib' 9275 ;; 9276 9277uts4*) 9278 version_type=linux 9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9280 soname_spec='${libname}${release}${shared_ext}$major' 9281 shlibpath_var=LD_LIBRARY_PATH 9282 ;; 9283 9284*) 9285 dynamic_linker=no 9286 ;; 9287esac 9288{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9289echo "${ECHO_T}$dynamic_linker" >&6; } 9290test "$dynamic_linker" = no && can_build_shared=no 9291 9292variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9293if test "$GCC" = yes; then 9294 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9295fi 9296 9297 9298{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9299echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9300if test "${libltdl_cv_shlibext+set}" = set; then 9301 echo $ECHO_N "(cached) $ECHO_C" >&6 9302else 9303 9304module=yes 9305eval libltdl_cv_shlibext=$shrext_cmds 9306 9307fi 9308{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9309echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9310if test -n "$libltdl_cv_shlibext"; then 9311 9312cat >>confdefs.h <<_ACEOF 9313#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9314_ACEOF 9315 9316fi 9317 9318 9319{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 9320echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 9321if test "${libltdl_cv_shlibpath_var+set}" = set; then 9322 echo $ECHO_N "(cached) $ECHO_C" >&6 9323else 9324 libltdl_cv_shlibpath_var="$shlibpath_var" 9325fi 9326{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 9327echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 9328if test -n "$libltdl_cv_shlibpath_var"; then 9329 9330cat >>confdefs.h <<_ACEOF 9331#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 9332_ACEOF 9333 9334fi 9335 9336 9337{ echo "$as_me:$LINENO: checking for the default library search path" >&5 9338echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9339if test "${libltdl_cv_sys_search_path+set}" = set; then 9340 echo $ECHO_N "(cached) $ECHO_C" >&6 9341else 9342 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9343fi 9344{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9345echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9346if test -n "$libltdl_cv_sys_search_path"; then 9347 sys_search_path= 9348 for dir in $libltdl_cv_sys_search_path; do 9349 if test -z "$sys_search_path"; then 9350 sys_search_path="$dir" 9351 else 9352 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9353 fi 9354 done 9355 9356cat >>confdefs.h <<_ACEOF 9357#define LTDL_SYSSEARCHPATH "$sys_search_path" 9358_ACEOF 9359 9360fi 9361 9362{ echo "$as_me:$LINENO: checking for objdir" >&5 9363echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9364if test "${libltdl_cv_objdir+set}" = set; then 9365 echo $ECHO_N "(cached) $ECHO_C" >&6 9366else 9367 libltdl_cv_objdir="$objdir" 9368 if test -n "$objdir"; then 9369 : 9370 else 9371 rm -f .libs 2>/dev/null 9372 mkdir .libs 2>/dev/null 9373 if test -d .libs; then 9374 libltdl_cv_objdir=.libs 9375 else 9376 # MS-DOS does not allow filenames that begin with a dot. 9377 libltdl_cv_objdir=_libs 9378 fi 9379 rmdir .libs 2>/dev/null 9380 fi 9381 9382fi 9383{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9384echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9385 9386cat >>confdefs.h <<_ACEOF 9387#define LTDL_OBJDIR "$libltdl_cv_objdir/" 9388_ACEOF 9389 9390 9391 9392 9393 9394 9395# Check for command to grab the raw symbol name followed by C symbol from nm. 9396{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9397echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9398if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9399 echo $ECHO_N "(cached) $ECHO_C" >&6 9400else 9401 9402# These are sane defaults that work on at least a few old systems. 9403# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9404 9405# Character class describing NM global symbol codes. 9406symcode='[BCDEGRST]' 9407 9408# Regexp to match symbols that can be accessed directly from C. 9409sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9410 9411# Transform an extracted symbol line into a proper C declaration 9412lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9413 9414# Transform an extracted symbol line into symbol name and symbol address 9415lt_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'" 9416 9417# Define system-specific variables. 9418case $host_os in 9419aix*) 9420 symcode='[BCDT]' 9421 ;; 9422cygwin* | mingw* | pw32*) 9423 symcode='[ABCDGISTW]' 9424 ;; 9425hpux*) # Its linker distinguishes data from code symbols 9426 if test "$host_cpu" = ia64; then 9427 symcode='[ABCDEGRST]' 9428 fi 9429 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9430 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'" 9431 ;; 9432linux*) 9433 if test "$host_cpu" = ia64; then 9434 symcode='[ABCDGIRSTW]' 9435 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9436 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'" 9437 fi 9438 ;; 9439irix* | nonstopux*) 9440 symcode='[BCDEGRST]' 9441 ;; 9442osf*) 9443 symcode='[BCDEGQRST]' 9444 ;; 9445solaris*) 9446 symcode='[BDRT]' 9447 ;; 9448sco3.2v5*) 9449 symcode='[DT]' 9450 ;; 9451sysv4.2uw2*) 9452 symcode='[DT]' 9453 ;; 9454sysv5* | sco5v6* | unixware* | OpenUNIX*) 9455 symcode='[ABDT]' 9456 ;; 9457sysv4) 9458 symcode='[DFNSTU]' 9459 ;; 9460esac 9461 9462# Handle CRLF in mingw tool chain 9463opt_cr= 9464case $build_os in 9465mingw*) 9466 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9467 ;; 9468esac 9469 9470# If we're using GNU nm, then use its standard symbol codes. 9471case `$NM -V 2>&1` in 9472*GNU* | *'with BFD'*) 9473 symcode='[ABCDGIRSTW]' ;; 9474esac 9475 9476# Try without a prefix undercore, then with it. 9477for ac_symprfx in "" "_"; do 9478 9479 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9480 symxfrm="\\1 $ac_symprfx\\2 \\2" 9481 9482 # Write the raw and C identifiers. 9483 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9484 9485 # Check to see that the pipe works correctly. 9486 pipe_works=no 9487 9488 rm -f conftest* 9489 cat > conftest.$ac_ext <<EOF 9490#ifdef __cplusplus 9491extern "C" { 9492#endif 9493char nm_test_var; 9494void nm_test_func(){} 9495#ifdef __cplusplus 9496} 9497#endif 9498int main(){nm_test_var='a';nm_test_func();return(0);} 9499EOF 9500 9501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9502 (eval $ac_compile) 2>&5 9503 ac_status=$? 9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9505 (exit $ac_status); }; then 9506 # Now try to grab the symbols. 9507 nlist=conftest.nm 9508 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9509 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9510 ac_status=$? 9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9512 (exit $ac_status); } && test -s "$nlist"; then 9513 # Try sorting and uniquifying the output. 9514 if sort "$nlist" | uniq > "$nlist"T; then 9515 mv -f "$nlist"T "$nlist" 9516 else 9517 rm -f "$nlist"T 9518 fi 9519 9520 # Make sure that we snagged all the symbols we need. 9521 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9522 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9523 cat <<EOF > conftest.$ac_ext 9524#ifdef __cplusplus 9525extern "C" { 9526#endif 9527 9528EOF 9529 # Now generate the symbol file. 9530 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9531 9532 cat <<EOF >> conftest.$ac_ext 9533#if defined (__STDC__) && __STDC__ 9534# define lt_ptr_t void * 9535#else 9536# define lt_ptr_t char * 9537# define const 9538#endif 9539 9540/* The mapping between symbol names and symbols. */ 9541const struct { 9542 const char *name; 9543 lt_ptr_t address; 9544} 9545lt_preloaded_symbols[] = 9546{ 9547EOF 9548 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9549 cat <<\EOF >> conftest.$ac_ext 9550 {0, (lt_ptr_t) 0} 9551}; 9552 9553#ifdef __cplusplus 9554} 9555#endif 9556EOF 9557 # Now try linking the two files. 9558 mv conftest.$ac_objext conftstm.$ac_objext 9559 lt_save_LIBS="$LIBS" 9560 lt_save_CFLAGS="$CFLAGS" 9561 LIBS="conftstm.$ac_objext" 9562 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9564 (eval $ac_link) 2>&5 9565 ac_status=$? 9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9567 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9568 pipe_works=yes 9569 fi 9570 LIBS="$lt_save_LIBS" 9571 CFLAGS="$lt_save_CFLAGS" 9572 else 9573 echo "cannot find nm_test_func in $nlist" >&5 9574 fi 9575 else 9576 echo "cannot find nm_test_var in $nlist" >&5 9577 fi 9578 else 9579 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9580 fi 9581 else 9582 echo "$progname: failed program was:" >&5 9583 cat conftest.$ac_ext >&5 9584 fi 9585 rm -f conftest* conftst* 9586 9587 # Do not use the global_symbol_pipe unless it works. 9588 if test "$pipe_works" = yes; then 9589 break 9590 else 9591 lt_cv_sys_global_symbol_pipe= 9592 fi 9593done 9594 9595fi 9596 9597if test -z "$lt_cv_sys_global_symbol_pipe"; then 9598 lt_cv_sys_global_symbol_to_cdecl= 9599fi 9600if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9601 { echo "$as_me:$LINENO: result: failed" >&5 9602echo "${ECHO_T}failed" >&6; } 9603else 9604 { echo "$as_me:$LINENO: result: ok" >&5 9605echo "${ECHO_T}ok" >&6; } 9606fi 9607 9608 9609{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9610echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9611if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9612 echo $ECHO_N "(cached) $ECHO_C" >&6 9613else 9614 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9615 libltdl_cv_preloaded_symbols=yes 9616 else 9617 libltdl_cv_preloaded_symbols=no 9618 fi 9619 9620fi 9621{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9622echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9623if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9624 9625cat >>confdefs.h <<\_ACEOF 9626#define HAVE_PRELOADED_SYMBOLS 1 9627_ACEOF 9628 9629fi 9630 9631LIBADD_DL= 9632 9633ac_ext=c 9634ac_cpp='$CPP $CPPFLAGS' 9635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9637ac_compiler_gnu=$ac_cv_c_compiler_gnu 9638 9639 9640{ echo "$as_me:$LINENO: checking for shl_load" >&5 9641echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9642if test "${ac_cv_func_shl_load+set}" = set; then 9643 echo $ECHO_N "(cached) $ECHO_C" >&6 9644else 9645 cat >conftest.$ac_ext <<_ACEOF 9646/* confdefs.h. */ 9647_ACEOF 9648cat confdefs.h >>conftest.$ac_ext 9649cat >>conftest.$ac_ext <<_ACEOF 9650/* end confdefs.h. */ 9651/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9652 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9653#define shl_load innocuous_shl_load 9654 9655/* System header to define __stub macros and hopefully few prototypes, 9656 which can conflict with char shl_load (); below. 9657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9658 <limits.h> exists even on freestanding compilers. */ 9659 9660#ifdef __STDC__ 9661# include <limits.h> 9662#else 9663# include <assert.h> 9664#endif 9665 9666#undef shl_load 9667 9668/* Override any GCC internal prototype to avoid an error. 9669 Use char because int might match the return type of a GCC 9670 builtin and then its argument prototype would still apply. */ 9671#ifdef __cplusplus 9672extern "C" 9673#endif 9674char shl_load (); 9675/* The GNU C library defines this for functions which it implements 9676 to always fail with ENOSYS. Some functions are actually named 9677 something starting with __ and the normal name is an alias. */ 9678#if defined __stub_shl_load || defined __stub___shl_load 9679choke me 9680#endif 9681 9682int 9683main () 9684{ 9685return shl_load (); 9686 ; 9687 return 0; 9688} 9689_ACEOF 9690rm -f conftest.$ac_objext conftest$ac_exeext 9691if { (ac_try="$ac_link" 9692case "(($ac_try" in 9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9694 *) ac_try_echo=$ac_try;; 9695esac 9696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9697 (eval "$ac_link") 2>conftest.er1 9698 ac_status=$? 9699 grep -v '^ *+' conftest.er1 >conftest.err 9700 rm -f conftest.er1 9701 cat conftest.err >&5 9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9703 (exit $ac_status); } && 9704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9705 { (case "(($ac_try" in 9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9707 *) ac_try_echo=$ac_try;; 9708esac 9709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9710 (eval "$ac_try") 2>&5 9711 ac_status=$? 9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9713 (exit $ac_status); }; } && 9714 { ac_try='test -s conftest$ac_exeext' 9715 { (case "(($ac_try" in 9716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9717 *) ac_try_echo=$ac_try;; 9718esac 9719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9720 (eval "$ac_try") 2>&5 9721 ac_status=$? 9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9723 (exit $ac_status); }; }; then 9724 ac_cv_func_shl_load=yes 9725else 9726 echo "$as_me: failed program was:" >&5 9727sed 's/^/| /' conftest.$ac_ext >&5 9728 9729 ac_cv_func_shl_load=no 9730fi 9731 9732rm -f core conftest.err conftest.$ac_objext \ 9733 conftest$ac_exeext conftest.$ac_ext 9734fi 9735{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9736echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9737if test $ac_cv_func_shl_load = yes; then 9738 9739cat >>confdefs.h <<\_ACEOF 9740#define HAVE_SHL_LOAD 1 9741_ACEOF 9742 9743else 9744 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9745echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9746if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9747 echo $ECHO_N "(cached) $ECHO_C" >&6 9748else 9749 ac_check_lib_save_LIBS=$LIBS 9750LIBS="-ldld $LIBS" 9751cat >conftest.$ac_ext <<_ACEOF 9752/* confdefs.h. */ 9753_ACEOF 9754cat confdefs.h >>conftest.$ac_ext 9755cat >>conftest.$ac_ext <<_ACEOF 9756/* end confdefs.h. */ 9757 9758/* Override any GCC internal prototype to avoid an error. 9759 Use char because int might match the return type of a GCC 9760 builtin and then its argument prototype would still apply. */ 9761#ifdef __cplusplus 9762extern "C" 9763#endif 9764char shl_load (); 9765int 9766main () 9767{ 9768return shl_load (); 9769 ; 9770 return 0; 9771} 9772_ACEOF 9773rm -f conftest.$ac_objext conftest$ac_exeext 9774if { (ac_try="$ac_link" 9775case "(($ac_try" in 9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9777 *) ac_try_echo=$ac_try;; 9778esac 9779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9780 (eval "$ac_link") 2>conftest.er1 9781 ac_status=$? 9782 grep -v '^ *+' conftest.er1 >conftest.err 9783 rm -f conftest.er1 9784 cat conftest.err >&5 9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9786 (exit $ac_status); } && 9787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9788 { (case "(($ac_try" in 9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9790 *) ac_try_echo=$ac_try;; 9791esac 9792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9793 (eval "$ac_try") 2>&5 9794 ac_status=$? 9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9796 (exit $ac_status); }; } && 9797 { ac_try='test -s conftest$ac_exeext' 9798 { (case "(($ac_try" in 9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9800 *) ac_try_echo=$ac_try;; 9801esac 9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9803 (eval "$ac_try") 2>&5 9804 ac_status=$? 9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9806 (exit $ac_status); }; }; then 9807 ac_cv_lib_dld_shl_load=yes 9808else 9809 echo "$as_me: failed program was:" >&5 9810sed 's/^/| /' conftest.$ac_ext >&5 9811 9812 ac_cv_lib_dld_shl_load=no 9813fi 9814 9815rm -f core conftest.err conftest.$ac_objext \ 9816 conftest$ac_exeext conftest.$ac_ext 9817LIBS=$ac_check_lib_save_LIBS 9818fi 9819{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9820echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9821if test $ac_cv_lib_dld_shl_load = yes; then 9822 9823cat >>confdefs.h <<\_ACEOF 9824#define HAVE_SHL_LOAD 1 9825_ACEOF 9826 9827 LIBADD_DL="$LIBADD_DL -ldld" 9828else 9829 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9830echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9831if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9832 echo $ECHO_N "(cached) $ECHO_C" >&6 9833else 9834 ac_check_lib_save_LIBS=$LIBS 9835LIBS="-ldl $LIBS" 9836cat >conftest.$ac_ext <<_ACEOF 9837/* confdefs.h. */ 9838_ACEOF 9839cat confdefs.h >>conftest.$ac_ext 9840cat >>conftest.$ac_ext <<_ACEOF 9841/* end confdefs.h. */ 9842 9843/* Override any GCC internal prototype to avoid an error. 9844 Use char because int might match the return type of a GCC 9845 builtin and then its argument prototype would still apply. */ 9846#ifdef __cplusplus 9847extern "C" 9848#endif 9849char dlopen (); 9850int 9851main () 9852{ 9853return dlopen (); 9854 ; 9855 return 0; 9856} 9857_ACEOF 9858rm -f conftest.$ac_objext conftest$ac_exeext 9859if { (ac_try="$ac_link" 9860case "(($ac_try" in 9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9862 *) ac_try_echo=$ac_try;; 9863esac 9864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9865 (eval "$ac_link") 2>conftest.er1 9866 ac_status=$? 9867 grep -v '^ *+' conftest.er1 >conftest.err 9868 rm -f conftest.er1 9869 cat conftest.err >&5 9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9871 (exit $ac_status); } && 9872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9873 { (case "(($ac_try" in 9874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9875 *) ac_try_echo=$ac_try;; 9876esac 9877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9878 (eval "$ac_try") 2>&5 9879 ac_status=$? 9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9881 (exit $ac_status); }; } && 9882 { ac_try='test -s conftest$ac_exeext' 9883 { (case "(($ac_try" in 9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9885 *) ac_try_echo=$ac_try;; 9886esac 9887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9888 (eval "$ac_try") 2>&5 9889 ac_status=$? 9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9891 (exit $ac_status); }; }; then 9892 ac_cv_lib_dl_dlopen=yes 9893else 9894 echo "$as_me: failed program was:" >&5 9895sed 's/^/| /' conftest.$ac_ext >&5 9896 9897 ac_cv_lib_dl_dlopen=no 9898fi 9899 9900rm -f core conftest.err conftest.$ac_objext \ 9901 conftest$ac_exeext conftest.$ac_ext 9902LIBS=$ac_check_lib_save_LIBS 9903fi 9904{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9905echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9906if test $ac_cv_lib_dl_dlopen = yes; then 9907 9908cat >>confdefs.h <<\_ACEOF 9909#define HAVE_LIBDL 1 9910_ACEOF 9911 9912 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 9913else 9914 cat >conftest.$ac_ext <<_ACEOF 9915/* confdefs.h. */ 9916_ACEOF 9917cat confdefs.h >>conftest.$ac_ext 9918cat >>conftest.$ac_ext <<_ACEOF 9919/* end confdefs.h. */ 9920#if HAVE_DLFCN_H 9921# include <dlfcn.h> 9922#endif 9923 9924int 9925main () 9926{ 9927dlopen(0, 0); 9928 ; 9929 return 0; 9930} 9931_ACEOF 9932rm -f conftest.$ac_objext conftest$ac_exeext 9933if { (ac_try="$ac_link" 9934case "(($ac_try" in 9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9936 *) ac_try_echo=$ac_try;; 9937esac 9938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9939 (eval "$ac_link") 2>conftest.er1 9940 ac_status=$? 9941 grep -v '^ *+' conftest.er1 >conftest.err 9942 rm -f conftest.er1 9943 cat conftest.err >&5 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9945 (exit $ac_status); } && 9946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9947 { (case "(($ac_try" in 9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9949 *) ac_try_echo=$ac_try;; 9950esac 9951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9952 (eval "$ac_try") 2>&5 9953 ac_status=$? 9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9955 (exit $ac_status); }; } && 9956 { ac_try='test -s conftest$ac_exeext' 9957 { (case "(($ac_try" in 9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9959 *) ac_try_echo=$ac_try;; 9960esac 9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9962 (eval "$ac_try") 2>&5 9963 ac_status=$? 9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9965 (exit $ac_status); }; }; then 9966 9967cat >>confdefs.h <<\_ACEOF 9968#define HAVE_LIBDL 1 9969_ACEOF 9970 libltdl_cv_func_dlopen="yes" 9971else 9972 echo "$as_me: failed program was:" >&5 9973sed 's/^/| /' conftest.$ac_ext >&5 9974 9975 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9976echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9977if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9978 echo $ECHO_N "(cached) $ECHO_C" >&6 9979else 9980 ac_check_lib_save_LIBS=$LIBS 9981LIBS="-lsvld $LIBS" 9982cat >conftest.$ac_ext <<_ACEOF 9983/* confdefs.h. */ 9984_ACEOF 9985cat confdefs.h >>conftest.$ac_ext 9986cat >>conftest.$ac_ext <<_ACEOF 9987/* end confdefs.h. */ 9988 9989/* Override any GCC internal prototype to avoid an error. 9990 Use char because int might match the return type of a GCC 9991 builtin and then its argument prototype would still apply. */ 9992#ifdef __cplusplus 9993extern "C" 9994#endif 9995char dlopen (); 9996int 9997main () 9998{ 9999return dlopen (); 10000 ; 10001 return 0; 10002} 10003_ACEOF 10004rm -f conftest.$ac_objext conftest$ac_exeext 10005if { (ac_try="$ac_link" 10006case "(($ac_try" in 10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10008 *) ac_try_echo=$ac_try;; 10009esac 10010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10011 (eval "$ac_link") 2>conftest.er1 10012 ac_status=$? 10013 grep -v '^ *+' conftest.er1 >conftest.err 10014 rm -f conftest.er1 10015 cat conftest.err >&5 10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10017 (exit $ac_status); } && 10018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10019 { (case "(($ac_try" in 10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10021 *) ac_try_echo=$ac_try;; 10022esac 10023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10024 (eval "$ac_try") 2>&5 10025 ac_status=$? 10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10027 (exit $ac_status); }; } && 10028 { ac_try='test -s conftest$ac_exeext' 10029 { (case "(($ac_try" in 10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10031 *) ac_try_echo=$ac_try;; 10032esac 10033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10034 (eval "$ac_try") 2>&5 10035 ac_status=$? 10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10037 (exit $ac_status); }; }; then 10038 ac_cv_lib_svld_dlopen=yes 10039else 10040 echo "$as_me: failed program was:" >&5 10041sed 's/^/| /' conftest.$ac_ext >&5 10042 10043 ac_cv_lib_svld_dlopen=no 10044fi 10045 10046rm -f core conftest.err conftest.$ac_objext \ 10047 conftest$ac_exeext conftest.$ac_ext 10048LIBS=$ac_check_lib_save_LIBS 10049fi 10050{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10051echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10052if test $ac_cv_lib_svld_dlopen = yes; then 10053 10054cat >>confdefs.h <<\_ACEOF 10055#define HAVE_LIBDL 1 10056_ACEOF 10057 10058 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 10059else 10060 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10061echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10062if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10063 echo $ECHO_N "(cached) $ECHO_C" >&6 10064else 10065 ac_check_lib_save_LIBS=$LIBS 10066LIBS="-ldld $LIBS" 10067cat >conftest.$ac_ext <<_ACEOF 10068/* confdefs.h. */ 10069_ACEOF 10070cat confdefs.h >>conftest.$ac_ext 10071cat >>conftest.$ac_ext <<_ACEOF 10072/* end confdefs.h. */ 10073 10074/* Override any GCC internal prototype to avoid an error. 10075 Use char because int might match the return type of a GCC 10076 builtin and then its argument prototype would still apply. */ 10077#ifdef __cplusplus 10078extern "C" 10079#endif 10080char dld_link (); 10081int 10082main () 10083{ 10084return dld_link (); 10085 ; 10086 return 0; 10087} 10088_ACEOF 10089rm -f conftest.$ac_objext conftest$ac_exeext 10090if { (ac_try="$ac_link" 10091case "(($ac_try" in 10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10093 *) ac_try_echo=$ac_try;; 10094esac 10095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10096 (eval "$ac_link") 2>conftest.er1 10097 ac_status=$? 10098 grep -v '^ *+' conftest.er1 >conftest.err 10099 rm -f conftest.er1 10100 cat conftest.err >&5 10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10102 (exit $ac_status); } && 10103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10104 { (case "(($ac_try" in 10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10106 *) ac_try_echo=$ac_try;; 10107esac 10108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10109 (eval "$ac_try") 2>&5 10110 ac_status=$? 10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10112 (exit $ac_status); }; } && 10113 { ac_try='test -s conftest$ac_exeext' 10114 { (case "(($ac_try" in 10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10116 *) ac_try_echo=$ac_try;; 10117esac 10118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10119 (eval "$ac_try") 2>&5 10120 ac_status=$? 10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10122 (exit $ac_status); }; }; then 10123 ac_cv_lib_dld_dld_link=yes 10124else 10125 echo "$as_me: failed program was:" >&5 10126sed 's/^/| /' conftest.$ac_ext >&5 10127 10128 ac_cv_lib_dld_dld_link=no 10129fi 10130 10131rm -f core conftest.err conftest.$ac_objext \ 10132 conftest$ac_exeext conftest.$ac_ext 10133LIBS=$ac_check_lib_save_LIBS 10134fi 10135{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10136echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10137if test $ac_cv_lib_dld_dld_link = yes; then 10138 10139cat >>confdefs.h <<\_ACEOF 10140#define HAVE_DLD 1 10141_ACEOF 10142 10143 LIBADD_DL="$LIBADD_DL -ldld" 10144else 10145 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 10146echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10147if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10148 echo $ECHO_N "(cached) $ECHO_C" >&6 10149else 10150 cat >conftest.$ac_ext <<_ACEOF 10151/* confdefs.h. */ 10152_ACEOF 10153cat confdefs.h >>conftest.$ac_ext 10154cat >>conftest.$ac_ext <<_ACEOF 10155/* end confdefs.h. */ 10156/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10157 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10158#define _dyld_func_lookup innocuous__dyld_func_lookup 10159 10160/* System header to define __stub macros and hopefully few prototypes, 10161 which can conflict with char _dyld_func_lookup (); below. 10162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10163 <limits.h> exists even on freestanding compilers. */ 10164 10165#ifdef __STDC__ 10166# include <limits.h> 10167#else 10168# include <assert.h> 10169#endif 10170 10171#undef _dyld_func_lookup 10172 10173/* Override any GCC internal prototype to avoid an error. 10174 Use char because int might match the return type of a GCC 10175 builtin and then its argument prototype would still apply. */ 10176#ifdef __cplusplus 10177extern "C" 10178#endif 10179char _dyld_func_lookup (); 10180/* The GNU C library defines this for functions which it implements 10181 to always fail with ENOSYS. Some functions are actually named 10182 something starting with __ and the normal name is an alias. */ 10183#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10184choke me 10185#endif 10186 10187int 10188main () 10189{ 10190return _dyld_func_lookup (); 10191 ; 10192 return 0; 10193} 10194_ACEOF 10195rm -f conftest.$ac_objext conftest$ac_exeext 10196if { (ac_try="$ac_link" 10197case "(($ac_try" in 10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10199 *) ac_try_echo=$ac_try;; 10200esac 10201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10202 (eval "$ac_link") 2>conftest.er1 10203 ac_status=$? 10204 grep -v '^ *+' conftest.er1 >conftest.err 10205 rm -f conftest.er1 10206 cat conftest.err >&5 10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10208 (exit $ac_status); } && 10209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10210 { (case "(($ac_try" in 10211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10212 *) ac_try_echo=$ac_try;; 10213esac 10214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10215 (eval "$ac_try") 2>&5 10216 ac_status=$? 10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10218 (exit $ac_status); }; } && 10219 { ac_try='test -s conftest$ac_exeext' 10220 { (case "(($ac_try" in 10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10222 *) ac_try_echo=$ac_try;; 10223esac 10224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10225 (eval "$ac_try") 2>&5 10226 ac_status=$? 10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10228 (exit $ac_status); }; }; then 10229 ac_cv_func__dyld_func_lookup=yes 10230else 10231 echo "$as_me: failed program was:" >&5 10232sed 's/^/| /' conftest.$ac_ext >&5 10233 10234 ac_cv_func__dyld_func_lookup=no 10235fi 10236 10237rm -f core conftest.err conftest.$ac_objext \ 10238 conftest$ac_exeext conftest.$ac_ext 10239fi 10240{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10241echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10242if test $ac_cv_func__dyld_func_lookup = yes; then 10243 10244cat >>confdefs.h <<\_ACEOF 10245#define HAVE_DYLD 1 10246_ACEOF 10247 10248fi 10249 10250 10251fi 10252 10253 10254fi 10255 10256 10257fi 10258 10259rm -f core conftest.err conftest.$ac_objext \ 10260 conftest$ac_exeext conftest.$ac_ext 10261 10262fi 10263 10264 10265fi 10266 10267 10268fi 10269 10270 10271if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10272then 10273 lt_save_LIBS="$LIBS" 10274 LIBS="$LIBS $LIBADD_DL" 10275 10276for ac_func in dlerror 10277do 10278as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10279{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10280echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10281if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10282 echo $ECHO_N "(cached) $ECHO_C" >&6 10283else 10284 cat >conftest.$ac_ext <<_ACEOF 10285/* confdefs.h. */ 10286_ACEOF 10287cat confdefs.h >>conftest.$ac_ext 10288cat >>conftest.$ac_ext <<_ACEOF 10289/* end confdefs.h. */ 10290/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10291 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10292#define $ac_func innocuous_$ac_func 10293 10294/* System header to define __stub macros and hopefully few prototypes, 10295 which can conflict with char $ac_func (); below. 10296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10297 <limits.h> exists even on freestanding compilers. */ 10298 10299#ifdef __STDC__ 10300# include <limits.h> 10301#else 10302# include <assert.h> 10303#endif 10304 10305#undef $ac_func 10306 10307/* Override any GCC internal prototype to avoid an error. 10308 Use char because int might match the return type of a GCC 10309 builtin and then its argument prototype would still apply. */ 10310#ifdef __cplusplus 10311extern "C" 10312#endif 10313char $ac_func (); 10314/* The GNU C library defines this for functions which it implements 10315 to always fail with ENOSYS. Some functions are actually named 10316 something starting with __ and the normal name is an alias. */ 10317#if defined __stub_$ac_func || defined __stub___$ac_func 10318choke me 10319#endif 10320 10321int 10322main () 10323{ 10324return $ac_func (); 10325 ; 10326 return 0; 10327} 10328_ACEOF 10329rm -f conftest.$ac_objext conftest$ac_exeext 10330if { (ac_try="$ac_link" 10331case "(($ac_try" in 10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10333 *) ac_try_echo=$ac_try;; 10334esac 10335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10336 (eval "$ac_link") 2>conftest.er1 10337 ac_status=$? 10338 grep -v '^ *+' conftest.er1 >conftest.err 10339 rm -f conftest.er1 10340 cat conftest.err >&5 10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10342 (exit $ac_status); } && 10343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10344 { (case "(($ac_try" in 10345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10346 *) ac_try_echo=$ac_try;; 10347esac 10348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10349 (eval "$ac_try") 2>&5 10350 ac_status=$? 10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10352 (exit $ac_status); }; } && 10353 { ac_try='test -s conftest$ac_exeext' 10354 { (case "(($ac_try" in 10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10356 *) ac_try_echo=$ac_try;; 10357esac 10358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10359 (eval "$ac_try") 2>&5 10360 ac_status=$? 10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10362 (exit $ac_status); }; }; then 10363 eval "$as_ac_var=yes" 10364else 10365 echo "$as_me: failed program was:" >&5 10366sed 's/^/| /' conftest.$ac_ext >&5 10367 10368 eval "$as_ac_var=no" 10369fi 10370 10371rm -f core conftest.err conftest.$ac_objext \ 10372 conftest$ac_exeext conftest.$ac_ext 10373fi 10374ac_res=`eval echo '${'$as_ac_var'}'` 10375 { echo "$as_me:$LINENO: result: $ac_res" >&5 10376echo "${ECHO_T}$ac_res" >&6; } 10377if test `eval echo '${'$as_ac_var'}'` = yes; then 10378 cat >>confdefs.h <<_ACEOF 10379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10380_ACEOF 10381 10382fi 10383done 10384 10385 LIBS="$lt_save_LIBS" 10386fi 10387ac_ext=c 10388ac_cpp='$CPP $CPPFLAGS' 10389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10391ac_compiler_gnu=$ac_cv_c_compiler_gnu 10392 10393 10394 10395{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10396echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10397if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10398 echo $ECHO_N "(cached) $ECHO_C" >&6 10399else 10400 ac_cv_sys_symbol_underscore=no 10401 cat > conftest.$ac_ext <<EOF 10402void nm_test_func(){} 10403int main(){nm_test_func;return 0;} 10404EOF 10405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10406 (eval $ac_compile) 2>&5 10407 ac_status=$? 10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10409 (exit $ac_status); }; then 10410 # Now try to grab the symbols. 10411 ac_nlist=conftest.nm 10412 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10413 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10414 ac_status=$? 10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10416 (exit $ac_status); } && test -s "$ac_nlist"; then 10417 # See whether the symbols have a leading underscore. 10418 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10419 ac_cv_sys_symbol_underscore=yes 10420 else 10421 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10422 : 10423 else 10424 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10425 fi 10426 fi 10427 else 10428 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10429 fi 10430 else 10431 echo "configure: failed program was:" >&5 10432 cat conftest.c >&5 10433 fi 10434 rm -rf conftest* 10435 10436fi 10437{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10438echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10439 10440 10441if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10442 if test x"$libltdl_cv_func_dlopen" = xyes || 10443 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10444 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10445echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10446if test "${libltdl_cv_need_uscore+set}" = set; then 10447 echo $ECHO_N "(cached) $ECHO_C" >&6 10448else 10449 libltdl_cv_need_uscore=unknown 10450 save_LIBS="$LIBS" 10451 LIBS="$LIBS $LIBADD_DL" 10452 if test "$cross_compiling" = yes; then : 10453 libltdl_cv_need_uscore=cross 10454else 10455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10456 lt_status=$lt_dlunknown 10457 cat > conftest.$ac_ext <<EOF 10458#line 10463 "configure" 10459#include "confdefs.h" 10460 10461#if HAVE_DLFCN_H 10462#include <dlfcn.h> 10463#endif 10464 10465#include <stdio.h> 10466 10467#ifdef RTLD_GLOBAL 10468# define LT_DLGLOBAL RTLD_GLOBAL 10469#else 10470# ifdef DL_GLOBAL 10471# define LT_DLGLOBAL DL_GLOBAL 10472# else 10473# define LT_DLGLOBAL 0 10474# endif 10475#endif 10476 10477/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10478 find out it does not work in some platform. */ 10479#ifndef LT_DLLAZY_OR_NOW 10480# ifdef RTLD_LAZY 10481# define LT_DLLAZY_OR_NOW RTLD_LAZY 10482# else 10483# ifdef DL_LAZY 10484# define LT_DLLAZY_OR_NOW DL_LAZY 10485# else 10486# ifdef RTLD_NOW 10487# define LT_DLLAZY_OR_NOW RTLD_NOW 10488# else 10489# ifdef DL_NOW 10490# define LT_DLLAZY_OR_NOW DL_NOW 10491# else 10492# define LT_DLLAZY_OR_NOW 0 10493# endif 10494# endif 10495# endif 10496# endif 10497#endif 10498 10499#ifdef __cplusplus 10500extern "C" void exit (int); 10501#endif 10502 10503void fnord() { int i=42;} 10504int main () 10505{ 10506 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10507 int status = $lt_dlunknown; 10508 10509 if (self) 10510 { 10511 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10512 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10513 /* dlclose (self); */ 10514 } 10515 else 10516 puts (dlerror ()); 10517 10518 exit (status); 10519} 10520EOF 10521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10522 (eval $ac_link) 2>&5 10523 ac_status=$? 10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10525 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10526 (./conftest; exit; ) >&5 2>/dev/null 10527 lt_status=$? 10528 case x$lt_status in 10529 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10530 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10531 x$lt_dlunknown|x*) ;; 10532 esac 10533 else : 10534 # compilation failed 10535 10536 fi 10537fi 10538rm -fr conftest* 10539 10540 LIBS="$save_LIBS" 10541 10542fi 10543{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10544echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10545 fi 10546fi 10547 10548if test x"$libltdl_cv_need_uscore" = xyes; then 10549 10550cat >>confdefs.h <<\_ACEOF 10551#define NEED_USCORE 1 10552_ACEOF 10553 10554fi 10555 10556 10557{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10558echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10559if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10560 echo $ECHO_N "(cached) $ECHO_C" >&6 10561else 10562 # PORTME does your system automatically load deplibs for dlopen? 10563 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10564 # For now, we just catch OSes we know something about -- in the 10565 # future, we'll try test this programmatically. 10566 libltdl_cv_sys_dlopen_deplibs=unknown 10567 case "$host_os" in 10568 aix3*|aix4.1.*|aix4.2.*) 10569 # Unknown whether this is true for these versions of AIX, but 10570 # we want this `case' here to explicitly catch those versions. 10571 libltdl_cv_sys_dlopen_deplibs=unknown 10572 ;; 10573 aix[45]*) 10574 libltdl_cv_sys_dlopen_deplibs=yes 10575 ;; 10576 darwin*) 10577 # Assuming the user has installed a libdl from somewhere, this is true 10578 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10579 libltdl_cv_sys_dlopen_deplibs=yes 10580 ;; 10581 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10582 # GNU and its variants, using gnu ld.so (Glibc) 10583 libltdl_cv_sys_dlopen_deplibs=yes 10584 ;; 10585 hpux10*|hpux11*) 10586 libltdl_cv_sys_dlopen_deplibs=yes 10587 ;; 10588 interix*) 10589 libltdl_cv_sys_dlopen_deplibs=yes 10590 ;; 10591 irix[12345]*|irix6.[01]*) 10592 # Catch all versions of IRIX before 6.2, and indicate that we don't 10593 # know how it worked for any of those versions. 10594 libltdl_cv_sys_dlopen_deplibs=unknown 10595 ;; 10596 irix*) 10597 # The case above catches anything before 6.2, and it's known that 10598 # at 6.2 and later dlopen does load deplibs. 10599 libltdl_cv_sys_dlopen_deplibs=yes 10600 ;; 10601 netbsd*) 10602 libltdl_cv_sys_dlopen_deplibs=yes 10603 ;; 10604 openbsd*) 10605 libltdl_cv_sys_dlopen_deplibs=yes 10606 ;; 10607 osf[1234]*) 10608 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10609 # it did *not* use an RPATH in a shared library to find objects the 10610 # library depends on, so we explicitly say `no'. 10611 libltdl_cv_sys_dlopen_deplibs=no 10612 ;; 10613 osf5.0|osf5.0a|osf5.1) 10614 # dlopen *does* load deplibs and with the right loader patch applied 10615 # it even uses RPATH in a shared library to search for shared objects 10616 # that the library depends on, but there's no easy way to know if that 10617 # patch is installed. Since this is the case, all we can really 10618 # say is unknown -- it depends on the patch being installed. If 10619 # it is, this changes to `yes'. Without it, it would be `no'. 10620 libltdl_cv_sys_dlopen_deplibs=unknown 10621 ;; 10622 osf*) 10623 # the two cases above should catch all versions of osf <= 5.1. Read 10624 # the comments above for what we know about them. 10625 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10626 # is used to find them so we can finally say `yes'. 10627 libltdl_cv_sys_dlopen_deplibs=yes 10628 ;; 10629 solaris*) 10630 libltdl_cv_sys_dlopen_deplibs=yes 10631 ;; 10632 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10633 libltdl_cv_sys_dlopen_deplibs=yes 10634 ;; 10635 esac 10636 10637fi 10638{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10639echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10640if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10641 10642cat >>confdefs.h <<\_ACEOF 10643#define LTDL_DLOPEN_DEPLIBS 1 10644_ACEOF 10645 10646fi 10647 10648 10649for ac_header in argz.h 10650do 10651as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10653 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10656 echo $ECHO_N "(cached) $ECHO_C" >&6 10657fi 10658ac_res=`eval echo '${'$as_ac_Header'}'` 10659 { echo "$as_me:$LINENO: result: $ac_res" >&5 10660echo "${ECHO_T}$ac_res" >&6; } 10661else 10662 # Is the header compilable? 10663{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10665cat >conftest.$ac_ext <<_ACEOF 10666/* confdefs.h. */ 10667_ACEOF 10668cat confdefs.h >>conftest.$ac_ext 10669cat >>conftest.$ac_ext <<_ACEOF 10670/* end confdefs.h. */ 10671$ac_includes_default 10672#include <$ac_header> 10673_ACEOF 10674rm -f conftest.$ac_objext 10675if { (ac_try="$ac_compile" 10676case "(($ac_try" in 10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10678 *) ac_try_echo=$ac_try;; 10679esac 10680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10681 (eval "$ac_compile") 2>conftest.er1 10682 ac_status=$? 10683 grep -v '^ *+' conftest.er1 >conftest.err 10684 rm -f conftest.er1 10685 cat conftest.err >&5 10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10687 (exit $ac_status); } && 10688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10689 { (case "(($ac_try" in 10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10691 *) ac_try_echo=$ac_try;; 10692esac 10693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10694 (eval "$ac_try") 2>&5 10695 ac_status=$? 10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10697 (exit $ac_status); }; } && 10698 { ac_try='test -s conftest.$ac_objext' 10699 { (case "(($ac_try" in 10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10701 *) ac_try_echo=$ac_try;; 10702esac 10703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10704 (eval "$ac_try") 2>&5 10705 ac_status=$? 10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10707 (exit $ac_status); }; }; then 10708 ac_header_compiler=yes 10709else 10710 echo "$as_me: failed program was:" >&5 10711sed 's/^/| /' conftest.$ac_ext >&5 10712 10713 ac_header_compiler=no 10714fi 10715 10716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10717{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10718echo "${ECHO_T}$ac_header_compiler" >&6; } 10719 10720# Is the header present? 10721{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10722echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10723cat >conftest.$ac_ext <<_ACEOF 10724/* confdefs.h. */ 10725_ACEOF 10726cat confdefs.h >>conftest.$ac_ext 10727cat >>conftest.$ac_ext <<_ACEOF 10728/* end confdefs.h. */ 10729#include <$ac_header> 10730_ACEOF 10731if { (ac_try="$ac_cpp conftest.$ac_ext" 10732case "(($ac_try" in 10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10734 *) ac_try_echo=$ac_try;; 10735esac 10736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10738 ac_status=$? 10739 grep -v '^ *+' conftest.er1 >conftest.err 10740 rm -f conftest.er1 10741 cat conftest.err >&5 10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10743 (exit $ac_status); } >/dev/null; then 10744 if test -s conftest.err; then 10745 ac_cpp_err=$ac_c_preproc_warn_flag 10746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10747 else 10748 ac_cpp_err= 10749 fi 10750else 10751 ac_cpp_err=yes 10752fi 10753if test -z "$ac_cpp_err"; then 10754 ac_header_preproc=yes 10755else 10756 echo "$as_me: failed program was:" >&5 10757sed 's/^/| /' conftest.$ac_ext >&5 10758 10759 ac_header_preproc=no 10760fi 10761 10762rm -f conftest.err conftest.$ac_ext 10763{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10764echo "${ECHO_T}$ac_header_preproc" >&6; } 10765 10766# So? What about this header? 10767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10768 yes:no: ) 10769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10773 ac_header_preproc=yes 10774 ;; 10775 no:yes:* ) 10776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10783echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10788 ( cat <<\_ASBOX 10789## ----------------------------------- ## 10790## Report this to llvmbugs@cs.uiuc.edu ## 10791## ----------------------------------- ## 10792_ASBOX 10793 ) | sed "s/^/$as_me: WARNING: /" >&2 10794 ;; 10795esac 10796{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10799 echo $ECHO_N "(cached) $ECHO_C" >&6 10800else 10801 eval "$as_ac_Header=\$ac_header_preproc" 10802fi 10803ac_res=`eval echo '${'$as_ac_Header'}'` 10804 { echo "$as_me:$LINENO: result: $ac_res" >&5 10805echo "${ECHO_T}$ac_res" >&6; } 10806 10807fi 10808if test `eval echo '${'$as_ac_Header'}'` = yes; then 10809 cat >>confdefs.h <<_ACEOF 10810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10811_ACEOF 10812 10813fi 10814 10815done 10816 10817 10818{ echo "$as_me:$LINENO: checking for error_t" >&5 10819echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10820if test "${ac_cv_type_error_t+set}" = set; then 10821 echo $ECHO_N "(cached) $ECHO_C" >&6 10822else 10823 cat >conftest.$ac_ext <<_ACEOF 10824/* confdefs.h. */ 10825_ACEOF 10826cat confdefs.h >>conftest.$ac_ext 10827cat >>conftest.$ac_ext <<_ACEOF 10828/* end confdefs.h. */ 10829#if HAVE_ARGZ_H 10830# include <argz.h> 10831#endif 10832 10833typedef error_t ac__type_new_; 10834int 10835main () 10836{ 10837if ((ac__type_new_ *) 0) 10838 return 0; 10839if (sizeof (ac__type_new_)) 10840 return 0; 10841 ; 10842 return 0; 10843} 10844_ACEOF 10845rm -f conftest.$ac_objext 10846if { (ac_try="$ac_compile" 10847case "(($ac_try" in 10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10849 *) ac_try_echo=$ac_try;; 10850esac 10851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10852 (eval "$ac_compile") 2>conftest.er1 10853 ac_status=$? 10854 grep -v '^ *+' conftest.er1 >conftest.err 10855 rm -f conftest.er1 10856 cat conftest.err >&5 10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10858 (exit $ac_status); } && 10859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10860 { (case "(($ac_try" in 10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10862 *) ac_try_echo=$ac_try;; 10863esac 10864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10865 (eval "$ac_try") 2>&5 10866 ac_status=$? 10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10868 (exit $ac_status); }; } && 10869 { ac_try='test -s conftest.$ac_objext' 10870 { (case "(($ac_try" in 10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10872 *) ac_try_echo=$ac_try;; 10873esac 10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10875 (eval "$ac_try") 2>&5 10876 ac_status=$? 10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10878 (exit $ac_status); }; }; then 10879 ac_cv_type_error_t=yes 10880else 10881 echo "$as_me: failed program was:" >&5 10882sed 's/^/| /' conftest.$ac_ext >&5 10883 10884 ac_cv_type_error_t=no 10885fi 10886 10887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10888fi 10889{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10890echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10891if test $ac_cv_type_error_t = yes; then 10892 10893cat >>confdefs.h <<_ACEOF 10894#define HAVE_ERROR_T 1 10895_ACEOF 10896 10897 10898else 10899 10900cat >>confdefs.h <<\_ACEOF 10901#define error_t int 10902_ACEOF 10903 10904fi 10905 10906 10907 10908 10909 10910 10911 10912for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 10913do 10914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10915{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10917if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10918 echo $ECHO_N "(cached) $ECHO_C" >&6 10919else 10920 cat >conftest.$ac_ext <<_ACEOF 10921/* confdefs.h. */ 10922_ACEOF 10923cat confdefs.h >>conftest.$ac_ext 10924cat >>conftest.$ac_ext <<_ACEOF 10925/* end confdefs.h. */ 10926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10927 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10928#define $ac_func innocuous_$ac_func 10929 10930/* System header to define __stub macros and hopefully few prototypes, 10931 which can conflict with char $ac_func (); below. 10932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10933 <limits.h> exists even on freestanding compilers. */ 10934 10935#ifdef __STDC__ 10936# include <limits.h> 10937#else 10938# include <assert.h> 10939#endif 10940 10941#undef $ac_func 10942 10943/* Override any GCC internal prototype to avoid an error. 10944 Use char because int might match the return type of a GCC 10945 builtin and then its argument prototype would still apply. */ 10946#ifdef __cplusplus 10947extern "C" 10948#endif 10949char $ac_func (); 10950/* The GNU C library defines this for functions which it implements 10951 to always fail with ENOSYS. Some functions are actually named 10952 something starting with __ and the normal name is an alias. */ 10953#if defined __stub_$ac_func || defined __stub___$ac_func 10954choke me 10955#endif 10956 10957int 10958main () 10959{ 10960return $ac_func (); 10961 ; 10962 return 0; 10963} 10964_ACEOF 10965rm -f conftest.$ac_objext conftest$ac_exeext 10966if { (ac_try="$ac_link" 10967case "(($ac_try" in 10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10969 *) ac_try_echo=$ac_try;; 10970esac 10971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10972 (eval "$ac_link") 2>conftest.er1 10973 ac_status=$? 10974 grep -v '^ *+' conftest.er1 >conftest.err 10975 rm -f conftest.er1 10976 cat conftest.err >&5 10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10978 (exit $ac_status); } && 10979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10980 { (case "(($ac_try" in 10981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10982 *) ac_try_echo=$ac_try;; 10983esac 10984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10985 (eval "$ac_try") 2>&5 10986 ac_status=$? 10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10988 (exit $ac_status); }; } && 10989 { ac_try='test -s conftest$ac_exeext' 10990 { (case "(($ac_try" in 10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10992 *) ac_try_echo=$ac_try;; 10993esac 10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10995 (eval "$ac_try") 2>&5 10996 ac_status=$? 10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10998 (exit $ac_status); }; }; then 10999 eval "$as_ac_var=yes" 11000else 11001 echo "$as_me: failed program was:" >&5 11002sed 's/^/| /' conftest.$ac_ext >&5 11003 11004 eval "$as_ac_var=no" 11005fi 11006 11007rm -f core conftest.err conftest.$ac_objext \ 11008 conftest$ac_exeext conftest.$ac_ext 11009fi 11010ac_res=`eval echo '${'$as_ac_var'}'` 11011 { echo "$as_me:$LINENO: result: $ac_res" >&5 11012echo "${ECHO_T}$ac_res" >&6; } 11013if test `eval echo '${'$as_ac_var'}'` = yes; then 11014 cat >>confdefs.h <<_ACEOF 11015#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11016_ACEOF 11017 11018fi 11019done 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 11049 stdio.h unistd.h 11050do 11051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11053 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11056 echo $ECHO_N "(cached) $ECHO_C" >&6 11057fi 11058ac_res=`eval echo '${'$as_ac_Header'}'` 11059 { echo "$as_me:$LINENO: result: $ac_res" >&5 11060echo "${ECHO_T}$ac_res" >&6; } 11061else 11062 # Is the header compilable? 11063{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11065cat >conftest.$ac_ext <<_ACEOF 11066/* confdefs.h. */ 11067_ACEOF 11068cat confdefs.h >>conftest.$ac_ext 11069cat >>conftest.$ac_ext <<_ACEOF 11070/* end confdefs.h. */ 11071$ac_includes_default 11072#include <$ac_header> 11073_ACEOF 11074rm -f conftest.$ac_objext 11075if { (ac_try="$ac_compile" 11076case "(($ac_try" in 11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11078 *) ac_try_echo=$ac_try;; 11079esac 11080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11081 (eval "$ac_compile") 2>conftest.er1 11082 ac_status=$? 11083 grep -v '^ *+' conftest.er1 >conftest.err 11084 rm -f conftest.er1 11085 cat conftest.err >&5 11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11087 (exit $ac_status); } && 11088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11089 { (case "(($ac_try" in 11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11091 *) ac_try_echo=$ac_try;; 11092esac 11093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11094 (eval "$ac_try") 2>&5 11095 ac_status=$? 11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11097 (exit $ac_status); }; } && 11098 { ac_try='test -s conftest.$ac_objext' 11099 { (case "(($ac_try" in 11100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11101 *) ac_try_echo=$ac_try;; 11102esac 11103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11104 (eval "$ac_try") 2>&5 11105 ac_status=$? 11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11107 (exit $ac_status); }; }; then 11108 ac_header_compiler=yes 11109else 11110 echo "$as_me: failed program was:" >&5 11111sed 's/^/| /' conftest.$ac_ext >&5 11112 11113 ac_header_compiler=no 11114fi 11115 11116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11117{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11118echo "${ECHO_T}$ac_header_compiler" >&6; } 11119 11120# Is the header present? 11121{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11123cat >conftest.$ac_ext <<_ACEOF 11124/* confdefs.h. */ 11125_ACEOF 11126cat confdefs.h >>conftest.$ac_ext 11127cat >>conftest.$ac_ext <<_ACEOF 11128/* end confdefs.h. */ 11129#include <$ac_header> 11130_ACEOF 11131if { (ac_try="$ac_cpp conftest.$ac_ext" 11132case "(($ac_try" in 11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11134 *) ac_try_echo=$ac_try;; 11135esac 11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11138 ac_status=$? 11139 grep -v '^ *+' conftest.er1 >conftest.err 11140 rm -f conftest.er1 11141 cat conftest.err >&5 11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11143 (exit $ac_status); } >/dev/null; then 11144 if test -s conftest.err; then 11145 ac_cpp_err=$ac_c_preproc_warn_flag 11146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11147 else 11148 ac_cpp_err= 11149 fi 11150else 11151 ac_cpp_err=yes 11152fi 11153if test -z "$ac_cpp_err"; then 11154 ac_header_preproc=yes 11155else 11156 echo "$as_me: failed program was:" >&5 11157sed 's/^/| /' conftest.$ac_ext >&5 11158 11159 ac_header_preproc=no 11160fi 11161 11162rm -f conftest.err conftest.$ac_ext 11163{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11164echo "${ECHO_T}$ac_header_preproc" >&6; } 11165 11166# So? What about this header? 11167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11168 yes:no: ) 11169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11173 ac_header_preproc=yes 11174 ;; 11175 no:yes:* ) 11176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11188 ( cat <<\_ASBOX 11189## ----------------------------------- ## 11190## Report this to llvmbugs@cs.uiuc.edu ## 11191## ----------------------------------- ## 11192_ASBOX 11193 ) | sed "s/^/$as_me: WARNING: /" >&2 11194 ;; 11195esac 11196{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11199 echo $ECHO_N "(cached) $ECHO_C" >&6 11200else 11201 eval "$as_ac_Header=\$ac_header_preproc" 11202fi 11203ac_res=`eval echo '${'$as_ac_Header'}'` 11204 { echo "$as_me:$LINENO: result: $ac_res" >&5 11205echo "${ECHO_T}$ac_res" >&6; } 11206 11207fi 11208if test `eval echo '${'$as_ac_Header'}'` = yes; then 11209 cat >>confdefs.h <<_ACEOF 11210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11211_ACEOF 11212 11213fi 11214 11215done 11216 11217 11218 11219 11220 11221for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 11222do 11223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11225 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11228 echo $ECHO_N "(cached) $ECHO_C" >&6 11229fi 11230ac_res=`eval echo '${'$as_ac_Header'}'` 11231 { echo "$as_me:$LINENO: result: $ac_res" >&5 11232echo "${ECHO_T}$ac_res" >&6; } 11233else 11234 # Is the header compilable? 11235{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11236echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11237cat >conftest.$ac_ext <<_ACEOF 11238/* confdefs.h. */ 11239_ACEOF 11240cat confdefs.h >>conftest.$ac_ext 11241cat >>conftest.$ac_ext <<_ACEOF 11242/* end confdefs.h. */ 11243$ac_includes_default 11244#include <$ac_header> 11245_ACEOF 11246rm -f conftest.$ac_objext 11247if { (ac_try="$ac_compile" 11248case "(($ac_try" in 11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11250 *) ac_try_echo=$ac_try;; 11251esac 11252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11253 (eval "$ac_compile") 2>conftest.er1 11254 ac_status=$? 11255 grep -v '^ *+' conftest.er1 >conftest.err 11256 rm -f conftest.er1 11257 cat conftest.err >&5 11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11259 (exit $ac_status); } && 11260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11261 { (case "(($ac_try" in 11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11263 *) ac_try_echo=$ac_try;; 11264esac 11265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11266 (eval "$ac_try") 2>&5 11267 ac_status=$? 11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11269 (exit $ac_status); }; } && 11270 { ac_try='test -s conftest.$ac_objext' 11271 { (case "(($ac_try" in 11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11273 *) ac_try_echo=$ac_try;; 11274esac 11275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11276 (eval "$ac_try") 2>&5 11277 ac_status=$? 11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11279 (exit $ac_status); }; }; then 11280 ac_header_compiler=yes 11281else 11282 echo "$as_me: failed program was:" >&5 11283sed 's/^/| /' conftest.$ac_ext >&5 11284 11285 ac_header_compiler=no 11286fi 11287 11288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11289{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11290echo "${ECHO_T}$ac_header_compiler" >&6; } 11291 11292# Is the header present? 11293{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11295cat >conftest.$ac_ext <<_ACEOF 11296/* confdefs.h. */ 11297_ACEOF 11298cat confdefs.h >>conftest.$ac_ext 11299cat >>conftest.$ac_ext <<_ACEOF 11300/* end confdefs.h. */ 11301#include <$ac_header> 11302_ACEOF 11303if { (ac_try="$ac_cpp conftest.$ac_ext" 11304case "(($ac_try" in 11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11306 *) ac_try_echo=$ac_try;; 11307esac 11308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11310 ac_status=$? 11311 grep -v '^ *+' conftest.er1 >conftest.err 11312 rm -f conftest.er1 11313 cat conftest.err >&5 11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11315 (exit $ac_status); } >/dev/null; then 11316 if test -s conftest.err; then 11317 ac_cpp_err=$ac_c_preproc_warn_flag 11318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11319 else 11320 ac_cpp_err= 11321 fi 11322else 11323 ac_cpp_err=yes 11324fi 11325if test -z "$ac_cpp_err"; then 11326 ac_header_preproc=yes 11327else 11328 echo "$as_me: failed program was:" >&5 11329sed 's/^/| /' conftest.$ac_ext >&5 11330 11331 ac_header_preproc=no 11332fi 11333 11334rm -f conftest.err conftest.$ac_ext 11335{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11336echo "${ECHO_T}$ac_header_preproc" >&6; } 11337 11338# So? What about this header? 11339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11340 yes:no: ) 11341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11345 ac_header_preproc=yes 11346 ;; 11347 no:yes:* ) 11348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11360 ( cat <<\_ASBOX 11361## ----------------------------------- ## 11362## Report this to llvmbugs@cs.uiuc.edu ## 11363## ----------------------------------- ## 11364_ASBOX 11365 ) | sed "s/^/$as_me: WARNING: /" >&2 11366 ;; 11367esac 11368{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11371 echo $ECHO_N "(cached) $ECHO_C" >&6 11372else 11373 eval "$as_ac_Header=\$ac_header_preproc" 11374fi 11375ac_res=`eval echo '${'$as_ac_Header'}'` 11376 { echo "$as_me:$LINENO: result: $ac_res" >&5 11377echo "${ECHO_T}$ac_res" >&6; } 11378 11379fi 11380if test `eval echo '${'$as_ac_Header'}'` = yes; then 11381 cat >>confdefs.h <<_ACEOF 11382#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11383_ACEOF 11384 11385fi 11386 11387done 11388 11389 11390 11391for ac_header in string.h strings.h 11392do 11393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11394if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11398 echo $ECHO_N "(cached) $ECHO_C" >&6 11399fi 11400ac_res=`eval echo '${'$as_ac_Header'}'` 11401 { echo "$as_me:$LINENO: result: $ac_res" >&5 11402echo "${ECHO_T}$ac_res" >&6; } 11403else 11404 # Is the header compilable? 11405{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11407cat >conftest.$ac_ext <<_ACEOF 11408/* confdefs.h. */ 11409_ACEOF 11410cat confdefs.h >>conftest.$ac_ext 11411cat >>conftest.$ac_ext <<_ACEOF 11412/* end confdefs.h. */ 11413$ac_includes_default 11414#include <$ac_header> 11415_ACEOF 11416rm -f conftest.$ac_objext 11417if { (ac_try="$ac_compile" 11418case "(($ac_try" in 11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11420 *) ac_try_echo=$ac_try;; 11421esac 11422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11423 (eval "$ac_compile") 2>conftest.er1 11424 ac_status=$? 11425 grep -v '^ *+' conftest.er1 >conftest.err 11426 rm -f conftest.er1 11427 cat conftest.err >&5 11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11429 (exit $ac_status); } && 11430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11431 { (case "(($ac_try" in 11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11433 *) ac_try_echo=$ac_try;; 11434esac 11435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11436 (eval "$ac_try") 2>&5 11437 ac_status=$? 11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11439 (exit $ac_status); }; } && 11440 { ac_try='test -s conftest.$ac_objext' 11441 { (case "(($ac_try" in 11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11443 *) ac_try_echo=$ac_try;; 11444esac 11445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11446 (eval "$ac_try") 2>&5 11447 ac_status=$? 11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11449 (exit $ac_status); }; }; then 11450 ac_header_compiler=yes 11451else 11452 echo "$as_me: failed program was:" >&5 11453sed 's/^/| /' conftest.$ac_ext >&5 11454 11455 ac_header_compiler=no 11456fi 11457 11458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11459{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11460echo "${ECHO_T}$ac_header_compiler" >&6; } 11461 11462# Is the header present? 11463{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11464echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11465cat >conftest.$ac_ext <<_ACEOF 11466/* confdefs.h. */ 11467_ACEOF 11468cat confdefs.h >>conftest.$ac_ext 11469cat >>conftest.$ac_ext <<_ACEOF 11470/* end confdefs.h. */ 11471#include <$ac_header> 11472_ACEOF 11473if { (ac_try="$ac_cpp conftest.$ac_ext" 11474case "(($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_cpp conftest.$ac_ext") 2>conftest.er1 11480 ac_status=$? 11481 grep -v '^ *+' conftest.er1 >conftest.err 11482 rm -f conftest.er1 11483 cat conftest.err >&5 11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11485 (exit $ac_status); } >/dev/null; then 11486 if test -s conftest.err; then 11487 ac_cpp_err=$ac_c_preproc_warn_flag 11488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11489 else 11490 ac_cpp_err= 11491 fi 11492else 11493 ac_cpp_err=yes 11494fi 11495if test -z "$ac_cpp_err"; then 11496 ac_header_preproc=yes 11497else 11498 echo "$as_me: failed program was:" >&5 11499sed 's/^/| /' conftest.$ac_ext >&5 11500 11501 ac_header_preproc=no 11502fi 11503 11504rm -f conftest.err conftest.$ac_ext 11505{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11506echo "${ECHO_T}$ac_header_preproc" >&6; } 11507 11508# So? What about this header? 11509case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11510 yes:no: ) 11511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11512echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11514echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11515 ac_header_preproc=yes 11516 ;; 11517 no:yes:* ) 11518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11519echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11521echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11523echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11525echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11527echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11529echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11530 ( cat <<\_ASBOX 11531## ----------------------------------- ## 11532## Report this to llvmbugs@cs.uiuc.edu ## 11533## ----------------------------------- ## 11534_ASBOX 11535 ) | sed "s/^/$as_me: WARNING: /" >&2 11536 ;; 11537esac 11538{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11541 echo $ECHO_N "(cached) $ECHO_C" >&6 11542else 11543 eval "$as_ac_Header=\$ac_header_preproc" 11544fi 11545ac_res=`eval echo '${'$as_ac_Header'}'` 11546 { echo "$as_me:$LINENO: result: $ac_res" >&5 11547echo "${ECHO_T}$ac_res" >&6; } 11548 11549fi 11550if test `eval echo '${'$as_ac_Header'}'` = yes; then 11551 cat >>confdefs.h <<_ACEOF 11552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11553_ACEOF 11554 break 11555fi 11556 11557done 11558 11559 11560 11561 11562for ac_func in strchr index 11563do 11564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11565{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11567if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11568 echo $ECHO_N "(cached) $ECHO_C" >&6 11569else 11570 cat >conftest.$ac_ext <<_ACEOF 11571/* confdefs.h. */ 11572_ACEOF 11573cat confdefs.h >>conftest.$ac_ext 11574cat >>conftest.$ac_ext <<_ACEOF 11575/* end confdefs.h. */ 11576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11577 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11578#define $ac_func innocuous_$ac_func 11579 11580/* System header to define __stub macros and hopefully few prototypes, 11581 which can conflict with char $ac_func (); below. 11582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11583 <limits.h> exists even on freestanding compilers. */ 11584 11585#ifdef __STDC__ 11586# include <limits.h> 11587#else 11588# include <assert.h> 11589#endif 11590 11591#undef $ac_func 11592 11593/* Override any GCC internal prototype to avoid an error. 11594 Use char because int might match the return type of a GCC 11595 builtin and then its argument prototype would still apply. */ 11596#ifdef __cplusplus 11597extern "C" 11598#endif 11599char $ac_func (); 11600/* The GNU C library defines this for functions which it implements 11601 to always fail with ENOSYS. Some functions are actually named 11602 something starting with __ and the normal name is an alias. */ 11603#if defined __stub_$ac_func || defined __stub___$ac_func 11604choke me 11605#endif 11606 11607int 11608main () 11609{ 11610return $ac_func (); 11611 ; 11612 return 0; 11613} 11614_ACEOF 11615rm -f conftest.$ac_objext conftest$ac_exeext 11616if { (ac_try="$ac_link" 11617case "(($ac_try" in 11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11619 *) ac_try_echo=$ac_try;; 11620esac 11621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11622 (eval "$ac_link") 2>conftest.er1 11623 ac_status=$? 11624 grep -v '^ *+' conftest.er1 >conftest.err 11625 rm -f conftest.er1 11626 cat conftest.err >&5 11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11628 (exit $ac_status); } && 11629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11630 { (case "(($ac_try" in 11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11632 *) ac_try_echo=$ac_try;; 11633esac 11634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11635 (eval "$ac_try") 2>&5 11636 ac_status=$? 11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11638 (exit $ac_status); }; } && 11639 { ac_try='test -s conftest$ac_exeext' 11640 { (case "(($ac_try" in 11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11642 *) ac_try_echo=$ac_try;; 11643esac 11644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11645 (eval "$ac_try") 2>&5 11646 ac_status=$? 11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11648 (exit $ac_status); }; }; then 11649 eval "$as_ac_var=yes" 11650else 11651 echo "$as_me: failed program was:" >&5 11652sed 's/^/| /' conftest.$ac_ext >&5 11653 11654 eval "$as_ac_var=no" 11655fi 11656 11657rm -f core conftest.err conftest.$ac_objext \ 11658 conftest$ac_exeext conftest.$ac_ext 11659fi 11660ac_res=`eval echo '${'$as_ac_var'}'` 11661 { echo "$as_me:$LINENO: result: $ac_res" >&5 11662echo "${ECHO_T}$ac_res" >&6; } 11663if test `eval echo '${'$as_ac_var'}'` = yes; then 11664 cat >>confdefs.h <<_ACEOF 11665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11666_ACEOF 11667 break 11668fi 11669done 11670 11671 11672 11673for ac_func in strrchr rindex 11674do 11675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11676{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11678if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11679 echo $ECHO_N "(cached) $ECHO_C" >&6 11680else 11681 cat >conftest.$ac_ext <<_ACEOF 11682/* confdefs.h. */ 11683_ACEOF 11684cat confdefs.h >>conftest.$ac_ext 11685cat >>conftest.$ac_ext <<_ACEOF 11686/* end confdefs.h. */ 11687/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11688 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11689#define $ac_func innocuous_$ac_func 11690 11691/* System header to define __stub macros and hopefully few prototypes, 11692 which can conflict with char $ac_func (); below. 11693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11694 <limits.h> exists even on freestanding compilers. */ 11695 11696#ifdef __STDC__ 11697# include <limits.h> 11698#else 11699# include <assert.h> 11700#endif 11701 11702#undef $ac_func 11703 11704/* Override any GCC internal prototype to avoid an error. 11705 Use char because int might match the return type of a GCC 11706 builtin and then its argument prototype would still apply. */ 11707#ifdef __cplusplus 11708extern "C" 11709#endif 11710char $ac_func (); 11711/* The GNU C library defines this for functions which it implements 11712 to always fail with ENOSYS. Some functions are actually named 11713 something starting with __ and the normal name is an alias. */ 11714#if defined __stub_$ac_func || defined __stub___$ac_func 11715choke me 11716#endif 11717 11718int 11719main () 11720{ 11721return $ac_func (); 11722 ; 11723 return 0; 11724} 11725_ACEOF 11726rm -f conftest.$ac_objext conftest$ac_exeext 11727if { (ac_try="$ac_link" 11728case "(($ac_try" in 11729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11730 *) ac_try_echo=$ac_try;; 11731esac 11732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11733 (eval "$ac_link") 2>conftest.er1 11734 ac_status=$? 11735 grep -v '^ *+' conftest.er1 >conftest.err 11736 rm -f conftest.er1 11737 cat conftest.err >&5 11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11739 (exit $ac_status); } && 11740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11741 { (case "(($ac_try" in 11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11743 *) ac_try_echo=$ac_try;; 11744esac 11745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11746 (eval "$ac_try") 2>&5 11747 ac_status=$? 11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11749 (exit $ac_status); }; } && 11750 { ac_try='test -s conftest$ac_exeext' 11751 { (case "(($ac_try" in 11752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11753 *) ac_try_echo=$ac_try;; 11754esac 11755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11756 (eval "$ac_try") 2>&5 11757 ac_status=$? 11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11759 (exit $ac_status); }; }; then 11760 eval "$as_ac_var=yes" 11761else 11762 echo "$as_me: failed program was:" >&5 11763sed 's/^/| /' conftest.$ac_ext >&5 11764 11765 eval "$as_ac_var=no" 11766fi 11767 11768rm -f core conftest.err conftest.$ac_objext \ 11769 conftest$ac_exeext conftest.$ac_ext 11770fi 11771ac_res=`eval echo '${'$as_ac_var'}'` 11772 { echo "$as_me:$LINENO: result: $ac_res" >&5 11773echo "${ECHO_T}$ac_res" >&6; } 11774if test `eval echo '${'$as_ac_var'}'` = yes; then 11775 cat >>confdefs.h <<_ACEOF 11776#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11777_ACEOF 11778 break 11779fi 11780done 11781 11782 11783 11784for ac_func in memcpy bcopy 11785do 11786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11787{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11789if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11790 echo $ECHO_N "(cached) $ECHO_C" >&6 11791else 11792 cat >conftest.$ac_ext <<_ACEOF 11793/* confdefs.h. */ 11794_ACEOF 11795cat confdefs.h >>conftest.$ac_ext 11796cat >>conftest.$ac_ext <<_ACEOF 11797/* end confdefs.h. */ 11798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11799 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11800#define $ac_func innocuous_$ac_func 11801 11802/* System header to define __stub macros and hopefully few prototypes, 11803 which can conflict with char $ac_func (); below. 11804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11805 <limits.h> exists even on freestanding compilers. */ 11806 11807#ifdef __STDC__ 11808# include <limits.h> 11809#else 11810# include <assert.h> 11811#endif 11812 11813#undef $ac_func 11814 11815/* Override any GCC internal prototype to avoid an error. 11816 Use char because int might match the return type of a GCC 11817 builtin and then its argument prototype would still apply. */ 11818#ifdef __cplusplus 11819extern "C" 11820#endif 11821char $ac_func (); 11822/* The GNU C library defines this for functions which it implements 11823 to always fail with ENOSYS. Some functions are actually named 11824 something starting with __ and the normal name is an alias. */ 11825#if defined __stub_$ac_func || defined __stub___$ac_func 11826choke me 11827#endif 11828 11829int 11830main () 11831{ 11832return $ac_func (); 11833 ; 11834 return 0; 11835} 11836_ACEOF 11837rm -f conftest.$ac_objext conftest$ac_exeext 11838if { (ac_try="$ac_link" 11839case "(($ac_try" in 11840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11841 *) ac_try_echo=$ac_try;; 11842esac 11843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11844 (eval "$ac_link") 2>conftest.er1 11845 ac_status=$? 11846 grep -v '^ *+' conftest.er1 >conftest.err 11847 rm -f conftest.er1 11848 cat conftest.err >&5 11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11850 (exit $ac_status); } && 11851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11852 { (case "(($ac_try" in 11853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11854 *) ac_try_echo=$ac_try;; 11855esac 11856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11857 (eval "$ac_try") 2>&5 11858 ac_status=$? 11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11860 (exit $ac_status); }; } && 11861 { ac_try='test -s conftest$ac_exeext' 11862 { (case "(($ac_try" in 11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11864 *) ac_try_echo=$ac_try;; 11865esac 11866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11867 (eval "$ac_try") 2>&5 11868 ac_status=$? 11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11870 (exit $ac_status); }; }; then 11871 eval "$as_ac_var=yes" 11872else 11873 echo "$as_me: failed program was:" >&5 11874sed 's/^/| /' conftest.$ac_ext >&5 11875 11876 eval "$as_ac_var=no" 11877fi 11878 11879rm -f core conftest.err conftest.$ac_objext \ 11880 conftest$ac_exeext conftest.$ac_ext 11881fi 11882ac_res=`eval echo '${'$as_ac_var'}'` 11883 { echo "$as_me:$LINENO: result: $ac_res" >&5 11884echo "${ECHO_T}$ac_res" >&6; } 11885if test `eval echo '${'$as_ac_var'}'` = yes; then 11886 cat >>confdefs.h <<_ACEOF 11887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11888_ACEOF 11889 break 11890fi 11891done 11892 11893 11894 11895for ac_func in memmove strcmp 11896do 11897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11898{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11900if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11901 echo $ECHO_N "(cached) $ECHO_C" >&6 11902else 11903 cat >conftest.$ac_ext <<_ACEOF 11904/* confdefs.h. */ 11905_ACEOF 11906cat confdefs.h >>conftest.$ac_ext 11907cat >>conftest.$ac_ext <<_ACEOF 11908/* end confdefs.h. */ 11909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11910 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11911#define $ac_func innocuous_$ac_func 11912 11913/* System header to define __stub macros and hopefully few prototypes, 11914 which can conflict with char $ac_func (); below. 11915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11916 <limits.h> exists even on freestanding compilers. */ 11917 11918#ifdef __STDC__ 11919# include <limits.h> 11920#else 11921# include <assert.h> 11922#endif 11923 11924#undef $ac_func 11925 11926/* Override any GCC internal prototype to avoid an error. 11927 Use char because int might match the return type of a GCC 11928 builtin and then its argument prototype would still apply. */ 11929#ifdef __cplusplus 11930extern "C" 11931#endif 11932char $ac_func (); 11933/* The GNU C library defines this for functions which it implements 11934 to always fail with ENOSYS. Some functions are actually named 11935 something starting with __ and the normal name is an alias. */ 11936#if defined __stub_$ac_func || defined __stub___$ac_func 11937choke me 11938#endif 11939 11940int 11941main () 11942{ 11943return $ac_func (); 11944 ; 11945 return 0; 11946} 11947_ACEOF 11948rm -f conftest.$ac_objext conftest$ac_exeext 11949if { (ac_try="$ac_link" 11950case "(($ac_try" in 11951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11952 *) ac_try_echo=$ac_try;; 11953esac 11954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11955 (eval "$ac_link") 2>conftest.er1 11956 ac_status=$? 11957 grep -v '^ *+' conftest.er1 >conftest.err 11958 rm -f conftest.er1 11959 cat conftest.err >&5 11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11961 (exit $ac_status); } && 11962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11963 { (case "(($ac_try" in 11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11965 *) ac_try_echo=$ac_try;; 11966esac 11967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11968 (eval "$ac_try") 2>&5 11969 ac_status=$? 11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11971 (exit $ac_status); }; } && 11972 { ac_try='test -s conftest$ac_exeext' 11973 { (case "(($ac_try" in 11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11975 *) ac_try_echo=$ac_try;; 11976esac 11977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11978 (eval "$ac_try") 2>&5 11979 ac_status=$? 11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11981 (exit $ac_status); }; }; then 11982 eval "$as_ac_var=yes" 11983else 11984 echo "$as_me: failed program was:" >&5 11985sed 's/^/| /' conftest.$ac_ext >&5 11986 11987 eval "$as_ac_var=no" 11988fi 11989 11990rm -f core conftest.err conftest.$ac_objext \ 11991 conftest$ac_exeext conftest.$ac_ext 11992fi 11993ac_res=`eval echo '${'$as_ac_var'}'` 11994 { echo "$as_me:$LINENO: result: $ac_res" >&5 11995echo "${ECHO_T}$ac_res" >&6; } 11996if test `eval echo '${'$as_ac_var'}'` = yes; then 11997 cat >>confdefs.h <<_ACEOF 11998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11999_ACEOF 12000 12001fi 12002done 12003 12004 12005 12006 12007for ac_func in closedir opendir readdir 12008do 12009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12010{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12012if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12013 echo $ECHO_N "(cached) $ECHO_C" >&6 12014else 12015 cat >conftest.$ac_ext <<_ACEOF 12016/* confdefs.h. */ 12017_ACEOF 12018cat confdefs.h >>conftest.$ac_ext 12019cat >>conftest.$ac_ext <<_ACEOF 12020/* end confdefs.h. */ 12021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12022 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12023#define $ac_func innocuous_$ac_func 12024 12025/* System header to define __stub macros and hopefully few prototypes, 12026 which can conflict with char $ac_func (); below. 12027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12028 <limits.h> exists even on freestanding compilers. */ 12029 12030#ifdef __STDC__ 12031# include <limits.h> 12032#else 12033# include <assert.h> 12034#endif 12035 12036#undef $ac_func 12037 12038/* Override any GCC internal prototype to avoid an error. 12039 Use char because int might match the return type of a GCC 12040 builtin and then its argument prototype would still apply. */ 12041#ifdef __cplusplus 12042extern "C" 12043#endif 12044char $ac_func (); 12045/* The GNU C library defines this for functions which it implements 12046 to always fail with ENOSYS. Some functions are actually named 12047 something starting with __ and the normal name is an alias. */ 12048#if defined __stub_$ac_func || defined __stub___$ac_func 12049choke me 12050#endif 12051 12052int 12053main () 12054{ 12055return $ac_func (); 12056 ; 12057 return 0; 12058} 12059_ACEOF 12060rm -f conftest.$ac_objext conftest$ac_exeext 12061if { (ac_try="$ac_link" 12062case "(($ac_try" in 12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12064 *) ac_try_echo=$ac_try;; 12065esac 12066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12067 (eval "$ac_link") 2>conftest.er1 12068 ac_status=$? 12069 grep -v '^ *+' conftest.er1 >conftest.err 12070 rm -f conftest.er1 12071 cat conftest.err >&5 12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12073 (exit $ac_status); } && 12074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12075 { (case "(($ac_try" in 12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12077 *) ac_try_echo=$ac_try;; 12078esac 12079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12080 (eval "$ac_try") 2>&5 12081 ac_status=$? 12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12083 (exit $ac_status); }; } && 12084 { ac_try='test -s conftest$ac_exeext' 12085 { (case "(($ac_try" in 12086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12087 *) ac_try_echo=$ac_try;; 12088esac 12089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12090 (eval "$ac_try") 2>&5 12091 ac_status=$? 12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12093 (exit $ac_status); }; }; then 12094 eval "$as_ac_var=yes" 12095else 12096 echo "$as_me: failed program was:" >&5 12097sed 's/^/| /' conftest.$ac_ext >&5 12098 12099 eval "$as_ac_var=no" 12100fi 12101 12102rm -f core conftest.err conftest.$ac_objext \ 12103 conftest$ac_exeext conftest.$ac_ext 12104fi 12105ac_res=`eval echo '${'$as_ac_var'}'` 12106 { echo "$as_me:$LINENO: result: $ac_res" >&5 12107echo "${ECHO_T}$ac_res" >&6; } 12108if test `eval echo '${'$as_ac_var'}'` = yes; then 12109 cat >>confdefs.h <<_ACEOF 12110#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12111_ACEOF 12112 12113fi 12114done 12115 12116 12117 12118{ echo "$as_me:$LINENO: checking tool compatibility" >&5 12119echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 12120 12121ICC=no 12122IXX=no 12123case $CC in 12124 icc*|icpc*) 12125 ICC=yes 12126 IXX=yes 12127 ;; 12128 *) 12129 ;; 12130esac 12131 12132if test "$GCC" != "yes" && test "$ICC" != "yes" 12133then 12134 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 12135echo "$as_me: error: gcc|icc required but not found" >&2;} 12136 { (exit 1); exit 1; }; } 12137fi 12138 12139if test "$GXX" != "yes" && test "$IXX" != "yes" 12140then 12141 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 12142echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 12143 { (exit 1); exit 1; }; } 12144fi 12145 12146if test "$GCC" = "yes" 12147then 12148 cat >conftest.$ac_ext <<_ACEOF 12149#if !defined(__GNUC__) || __GNUC__ < 3 12150#error Unsupported GCC version 12151#endif 12152 12153_ACEOF 12154rm -f conftest.$ac_objext 12155if { (ac_try="$ac_compile" 12156case "(($ac_try" in 12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12158 *) ac_try_echo=$ac_try;; 12159esac 12160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12161 (eval "$ac_compile") 2>conftest.er1 12162 ac_status=$? 12163 grep -v '^ *+' conftest.er1 >conftest.err 12164 rm -f conftest.er1 12165 cat conftest.err >&5 12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12167 (exit $ac_status); } && 12168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12169 { (case "(($ac_try" in 12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12171 *) ac_try_echo=$ac_try;; 12172esac 12173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12174 (eval "$ac_try") 2>&5 12175 ac_status=$? 12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12177 (exit $ac_status); }; } && 12178 { ac_try='test -s conftest.$ac_objext' 12179 { (case "(($ac_try" in 12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12181 *) ac_try_echo=$ac_try;; 12182esac 12183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12184 (eval "$ac_try") 2>&5 12185 ac_status=$? 12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12187 (exit $ac_status); }; }; then 12188 : 12189else 12190 echo "$as_me: failed program was:" >&5 12191sed 's/^/| /' conftest.$ac_ext >&5 12192 12193 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 12194echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 12195 { (exit 1); exit 1; }; } 12196fi 12197 12198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12199fi 12200 12201if test -z "$llvm_cv_gnu_make_command" 12202then 12203 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 12204echo "$as_me: error: GNU Make required but not found" >&2;} 12205 { (exit 1); exit 1; }; } 12206fi 12207 12208{ echo "$as_me:$LINENO: result: ok" >&5 12209echo "${ECHO_T}ok" >&6; } 12210 12211{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 12212echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 12213NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 12214 12215NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 12216 12217{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 12218echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } 12219 12220 12221 12222{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 12223echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 12224if test "${ac_cv_lib_m_sin+set}" = set; then 12225 echo $ECHO_N "(cached) $ECHO_C" >&6 12226else 12227 ac_check_lib_save_LIBS=$LIBS 12228LIBS="-lm $LIBS" 12229cat >conftest.$ac_ext <<_ACEOF 12230/* confdefs.h. */ 12231_ACEOF 12232cat confdefs.h >>conftest.$ac_ext 12233cat >>conftest.$ac_ext <<_ACEOF 12234/* end confdefs.h. */ 12235 12236/* Override any GCC internal prototype to avoid an error. 12237 Use char because int might match the return type of a GCC 12238 builtin and then its argument prototype would still apply. */ 12239#ifdef __cplusplus 12240extern "C" 12241#endif 12242char sin (); 12243int 12244main () 12245{ 12246return sin (); 12247 ; 12248 return 0; 12249} 12250_ACEOF 12251rm -f conftest.$ac_objext conftest$ac_exeext 12252if { (ac_try="$ac_link" 12253case "(($ac_try" in 12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12255 *) ac_try_echo=$ac_try;; 12256esac 12257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12258 (eval "$ac_link") 2>conftest.er1 12259 ac_status=$? 12260 grep -v '^ *+' conftest.er1 >conftest.err 12261 rm -f conftest.er1 12262 cat conftest.err >&5 12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12264 (exit $ac_status); } && 12265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12266 { (case "(($ac_try" in 12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12268 *) ac_try_echo=$ac_try;; 12269esac 12270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12271 (eval "$ac_try") 2>&5 12272 ac_status=$? 12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12274 (exit $ac_status); }; } && 12275 { ac_try='test -s conftest$ac_exeext' 12276 { (case "(($ac_try" in 12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12278 *) ac_try_echo=$ac_try;; 12279esac 12280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12281 (eval "$ac_try") 2>&5 12282 ac_status=$? 12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12284 (exit $ac_status); }; }; then 12285 ac_cv_lib_m_sin=yes 12286else 12287 echo "$as_me: failed program was:" >&5 12288sed 's/^/| /' conftest.$ac_ext >&5 12289 12290 ac_cv_lib_m_sin=no 12291fi 12292 12293rm -f core conftest.err conftest.$ac_objext \ 12294 conftest$ac_exeext conftest.$ac_ext 12295LIBS=$ac_check_lib_save_LIBS 12296fi 12297{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 12298echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 12299if test $ac_cv_lib_m_sin = yes; then 12300 cat >>confdefs.h <<_ACEOF 12301#define HAVE_LIBM 1 12302_ACEOF 12303 12304 LIBS="-lm $LIBS" 12305 12306fi 12307 12308if test "$llvm_cv_os_type" = "MingW" ; then 12309 12310{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 12311echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 12312if test "${ac_cv_lib_imagehlp_main+set}" = set; then 12313 echo $ECHO_N "(cached) $ECHO_C" >&6 12314else 12315 ac_check_lib_save_LIBS=$LIBS 12316LIBS="-limagehlp $LIBS" 12317cat >conftest.$ac_ext <<_ACEOF 12318/* confdefs.h. */ 12319_ACEOF 12320cat confdefs.h >>conftest.$ac_ext 12321cat >>conftest.$ac_ext <<_ACEOF 12322/* end confdefs.h. */ 12323 12324 12325int 12326main () 12327{ 12328return main (); 12329 ; 12330 return 0; 12331} 12332_ACEOF 12333rm -f conftest.$ac_objext conftest$ac_exeext 12334if { (ac_try="$ac_link" 12335case "(($ac_try" in 12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12337 *) ac_try_echo=$ac_try;; 12338esac 12339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12340 (eval "$ac_link") 2>conftest.er1 12341 ac_status=$? 12342 grep -v '^ *+' conftest.er1 >conftest.err 12343 rm -f conftest.er1 12344 cat conftest.err >&5 12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12346 (exit $ac_status); } && 12347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12348 { (case "(($ac_try" in 12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12350 *) ac_try_echo=$ac_try;; 12351esac 12352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12353 (eval "$ac_try") 2>&5 12354 ac_status=$? 12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12356 (exit $ac_status); }; } && 12357 { ac_try='test -s conftest$ac_exeext' 12358 { (case "(($ac_try" in 12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12360 *) ac_try_echo=$ac_try;; 12361esac 12362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12363 (eval "$ac_try") 2>&5 12364 ac_status=$? 12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12366 (exit $ac_status); }; }; then 12367 ac_cv_lib_imagehlp_main=yes 12368else 12369 echo "$as_me: failed program was:" >&5 12370sed 's/^/| /' conftest.$ac_ext >&5 12371 12372 ac_cv_lib_imagehlp_main=no 12373fi 12374 12375rm -f core conftest.err conftest.$ac_objext \ 12376 conftest$ac_exeext conftest.$ac_ext 12377LIBS=$ac_check_lib_save_LIBS 12378fi 12379{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 12380echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 12381if test $ac_cv_lib_imagehlp_main = yes; then 12382 cat >>confdefs.h <<_ACEOF 12383#define HAVE_LIBIMAGEHLP 1 12384_ACEOF 12385 12386 LIBS="-limagehlp $LIBS" 12387 12388fi 12389 12390 12391{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 12392echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 12393if test "${ac_cv_lib_psapi_main+set}" = set; then 12394 echo $ECHO_N "(cached) $ECHO_C" >&6 12395else 12396 ac_check_lib_save_LIBS=$LIBS 12397LIBS="-lpsapi $LIBS" 12398cat >conftest.$ac_ext <<_ACEOF 12399/* confdefs.h. */ 12400_ACEOF 12401cat confdefs.h >>conftest.$ac_ext 12402cat >>conftest.$ac_ext <<_ACEOF 12403/* end confdefs.h. */ 12404 12405 12406int 12407main () 12408{ 12409return main (); 12410 ; 12411 return 0; 12412} 12413_ACEOF 12414rm -f conftest.$ac_objext conftest$ac_exeext 12415if { (ac_try="$ac_link" 12416case "(($ac_try" in 12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12418 *) ac_try_echo=$ac_try;; 12419esac 12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12421 (eval "$ac_link") 2>conftest.er1 12422 ac_status=$? 12423 grep -v '^ *+' conftest.er1 >conftest.err 12424 rm -f conftest.er1 12425 cat conftest.err >&5 12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12427 (exit $ac_status); } && 12428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12429 { (case "(($ac_try" in 12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12431 *) ac_try_echo=$ac_try;; 12432esac 12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12434 (eval "$ac_try") 2>&5 12435 ac_status=$? 12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12437 (exit $ac_status); }; } && 12438 { ac_try='test -s conftest$ac_exeext' 12439 { (case "(($ac_try" in 12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12441 *) ac_try_echo=$ac_try;; 12442esac 12443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12444 (eval "$ac_try") 2>&5 12445 ac_status=$? 12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12447 (exit $ac_status); }; }; then 12448 ac_cv_lib_psapi_main=yes 12449else 12450 echo "$as_me: failed program was:" >&5 12451sed 's/^/| /' conftest.$ac_ext >&5 12452 12453 ac_cv_lib_psapi_main=no 12454fi 12455 12456rm -f core conftest.err conftest.$ac_objext \ 12457 conftest$ac_exeext conftest.$ac_ext 12458LIBS=$ac_check_lib_save_LIBS 12459fi 12460{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12461echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12462if test $ac_cv_lib_psapi_main = yes; then 12463 cat >>confdefs.h <<_ACEOF 12464#define HAVE_LIBPSAPI 1 12465_ACEOF 12466 12467 LIBS="-lpsapi $LIBS" 12468 12469fi 12470 12471fi 12472 12473{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12474echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12475if test "${ac_cv_search_dlopen+set}" = set; then 12476 echo $ECHO_N "(cached) $ECHO_C" >&6 12477else 12478 ac_func_search_save_LIBS=$LIBS 12479cat >conftest.$ac_ext <<_ACEOF 12480/* confdefs.h. */ 12481_ACEOF 12482cat confdefs.h >>conftest.$ac_ext 12483cat >>conftest.$ac_ext <<_ACEOF 12484/* end confdefs.h. */ 12485 12486/* Override any GCC internal prototype to avoid an error. 12487 Use char because int might match the return type of a GCC 12488 builtin and then its argument prototype would still apply. */ 12489#ifdef __cplusplus 12490extern "C" 12491#endif 12492char dlopen (); 12493int 12494main () 12495{ 12496return dlopen (); 12497 ; 12498 return 0; 12499} 12500_ACEOF 12501for ac_lib in '' dl; do 12502 if test -z "$ac_lib"; then 12503 ac_res="none required" 12504 else 12505 ac_res=-l$ac_lib 12506 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12507 fi 12508 rm -f conftest.$ac_objext conftest$ac_exeext 12509if { (ac_try="$ac_link" 12510case "(($ac_try" in 12511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12512 *) ac_try_echo=$ac_try;; 12513esac 12514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12515 (eval "$ac_link") 2>conftest.er1 12516 ac_status=$? 12517 grep -v '^ *+' conftest.er1 >conftest.err 12518 rm -f conftest.er1 12519 cat conftest.err >&5 12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12521 (exit $ac_status); } && 12522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12523 { (case "(($ac_try" in 12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12525 *) ac_try_echo=$ac_try;; 12526esac 12527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12528 (eval "$ac_try") 2>&5 12529 ac_status=$? 12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12531 (exit $ac_status); }; } && 12532 { ac_try='test -s conftest$ac_exeext' 12533 { (case "(($ac_try" in 12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12535 *) ac_try_echo=$ac_try;; 12536esac 12537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12538 (eval "$ac_try") 2>&5 12539 ac_status=$? 12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12541 (exit $ac_status); }; }; then 12542 ac_cv_search_dlopen=$ac_res 12543else 12544 echo "$as_me: failed program was:" >&5 12545sed 's/^/| /' conftest.$ac_ext >&5 12546 12547 12548fi 12549 12550rm -f core conftest.err conftest.$ac_objext \ 12551 conftest$ac_exeext 12552 if test "${ac_cv_search_dlopen+set}" = set; then 12553 break 12554fi 12555done 12556if test "${ac_cv_search_dlopen+set}" = set; then 12557 : 12558else 12559 ac_cv_search_dlopen=no 12560fi 12561rm conftest.$ac_ext 12562LIBS=$ac_func_search_save_LIBS 12563fi 12564{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12565echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12566ac_res=$ac_cv_search_dlopen 12567if test "$ac_res" != no; then 12568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12569 12570cat >>confdefs.h <<\_ACEOF 12571#define HAVE_DLOPEN 1 12572_ACEOF 12573 12574else 12575 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12576echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12577fi 12578 12579 12580if test "$llvm_cv_enable_libffi" = "yes" ; then 12581 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12582echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12583if test "${ac_cv_search_ffi_call+set}" = set; then 12584 echo $ECHO_N "(cached) $ECHO_C" >&6 12585else 12586 ac_func_search_save_LIBS=$LIBS 12587cat >conftest.$ac_ext <<_ACEOF 12588/* confdefs.h. */ 12589_ACEOF 12590cat confdefs.h >>conftest.$ac_ext 12591cat >>conftest.$ac_ext <<_ACEOF 12592/* end confdefs.h. */ 12593 12594/* Override any GCC internal prototype to avoid an error. 12595 Use char because int might match the return type of a GCC 12596 builtin and then its argument prototype would still apply. */ 12597#ifdef __cplusplus 12598extern "C" 12599#endif 12600char ffi_call (); 12601int 12602main () 12603{ 12604return ffi_call (); 12605 ; 12606 return 0; 12607} 12608_ACEOF 12609for ac_lib in '' ffi; do 12610 if test -z "$ac_lib"; then 12611 ac_res="none required" 12612 else 12613 ac_res=-l$ac_lib 12614 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12615 fi 12616 rm -f conftest.$ac_objext conftest$ac_exeext 12617if { (ac_try="$ac_link" 12618case "(($ac_try" in 12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12620 *) ac_try_echo=$ac_try;; 12621esac 12622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12623 (eval "$ac_link") 2>conftest.er1 12624 ac_status=$? 12625 grep -v '^ *+' conftest.er1 >conftest.err 12626 rm -f conftest.er1 12627 cat conftest.err >&5 12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12629 (exit $ac_status); } && 12630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12631 { (case "(($ac_try" in 12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12633 *) ac_try_echo=$ac_try;; 12634esac 12635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12636 (eval "$ac_try") 2>&5 12637 ac_status=$? 12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12639 (exit $ac_status); }; } && 12640 { ac_try='test -s conftest$ac_exeext' 12641 { (case "(($ac_try" in 12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12643 *) ac_try_echo=$ac_try;; 12644esac 12645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12646 (eval "$ac_try") 2>&5 12647 ac_status=$? 12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12649 (exit $ac_status); }; }; then 12650 ac_cv_search_ffi_call=$ac_res 12651else 12652 echo "$as_me: failed program was:" >&5 12653sed 's/^/| /' conftest.$ac_ext >&5 12654 12655 12656fi 12657 12658rm -f core conftest.err conftest.$ac_objext \ 12659 conftest$ac_exeext 12660 if test "${ac_cv_search_ffi_call+set}" = set; then 12661 break 12662fi 12663done 12664if test "${ac_cv_search_ffi_call+set}" = set; then 12665 : 12666else 12667 ac_cv_search_ffi_call=no 12668fi 12669rm conftest.$ac_ext 12670LIBS=$ac_func_search_save_LIBS 12671fi 12672{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12673echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12674ac_res=$ac_cv_search_ffi_call 12675if test "$ac_res" != no; then 12676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12677 12678cat >>confdefs.h <<\_ACEOF 12679#define HAVE_FFI_CALL 1 12680_ACEOF 12681 12682else 12683 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12684echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12685 { (exit 1); exit 1; }; } 12686fi 12687 12688fi 12689 12690{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12691echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12692if test "${ac_cv_search_mallinfo+set}" = set; then 12693 echo $ECHO_N "(cached) $ECHO_C" >&6 12694else 12695 ac_func_search_save_LIBS=$LIBS 12696cat >conftest.$ac_ext <<_ACEOF 12697/* confdefs.h. */ 12698_ACEOF 12699cat confdefs.h >>conftest.$ac_ext 12700cat >>conftest.$ac_ext <<_ACEOF 12701/* end confdefs.h. */ 12702 12703/* Override any GCC internal prototype to avoid an error. 12704 Use char because int might match the return type of a GCC 12705 builtin and then its argument prototype would still apply. */ 12706#ifdef __cplusplus 12707extern "C" 12708#endif 12709char mallinfo (); 12710int 12711main () 12712{ 12713return mallinfo (); 12714 ; 12715 return 0; 12716} 12717_ACEOF 12718for ac_lib in '' malloc; do 12719 if test -z "$ac_lib"; then 12720 ac_res="none required" 12721 else 12722 ac_res=-l$ac_lib 12723 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12724 fi 12725 rm -f conftest.$ac_objext conftest$ac_exeext 12726if { (ac_try="$ac_link" 12727case "(($ac_try" in 12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12729 *) ac_try_echo=$ac_try;; 12730esac 12731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12732 (eval "$ac_link") 2>conftest.er1 12733 ac_status=$? 12734 grep -v '^ *+' conftest.er1 >conftest.err 12735 rm -f conftest.er1 12736 cat conftest.err >&5 12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12738 (exit $ac_status); } && 12739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12740 { (case "(($ac_try" in 12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12742 *) ac_try_echo=$ac_try;; 12743esac 12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12745 (eval "$ac_try") 2>&5 12746 ac_status=$? 12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12748 (exit $ac_status); }; } && 12749 { ac_try='test -s conftest$ac_exeext' 12750 { (case "(($ac_try" in 12751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12752 *) ac_try_echo=$ac_try;; 12753esac 12754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12755 (eval "$ac_try") 2>&5 12756 ac_status=$? 12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12758 (exit $ac_status); }; }; then 12759 ac_cv_search_mallinfo=$ac_res 12760else 12761 echo "$as_me: failed program was:" >&5 12762sed 's/^/| /' conftest.$ac_ext >&5 12763 12764 12765fi 12766 12767rm -f core conftest.err conftest.$ac_objext \ 12768 conftest$ac_exeext 12769 if test "${ac_cv_search_mallinfo+set}" = set; then 12770 break 12771fi 12772done 12773if test "${ac_cv_search_mallinfo+set}" = set; then 12774 : 12775else 12776 ac_cv_search_mallinfo=no 12777fi 12778rm conftest.$ac_ext 12779LIBS=$ac_func_search_save_LIBS 12780fi 12781{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 12782echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 12783ac_res=$ac_cv_search_mallinfo 12784if test "$ac_res" != no; then 12785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12786 12787cat >>confdefs.h <<\_ACEOF 12788#define HAVE_MALLINFO 1 12789_ACEOF 12790 12791fi 12792 12793 12794if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 12795 12796{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 12797echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 12798if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 12799 echo $ECHO_N "(cached) $ECHO_C" >&6 12800else 12801 ac_check_lib_save_LIBS=$LIBS 12802LIBS="-lpthread $LIBS" 12803cat >conftest.$ac_ext <<_ACEOF 12804/* confdefs.h. */ 12805_ACEOF 12806cat confdefs.h >>conftest.$ac_ext 12807cat >>conftest.$ac_ext <<_ACEOF 12808/* end confdefs.h. */ 12809 12810/* Override any GCC internal prototype to avoid an error. 12811 Use char because int might match the return type of a GCC 12812 builtin and then its argument prototype would still apply. */ 12813#ifdef __cplusplus 12814extern "C" 12815#endif 12816char pthread_mutex_init (); 12817int 12818main () 12819{ 12820return pthread_mutex_init (); 12821 ; 12822 return 0; 12823} 12824_ACEOF 12825rm -f conftest.$ac_objext conftest$ac_exeext 12826if { (ac_try="$ac_link" 12827case "(($ac_try" in 12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12829 *) ac_try_echo=$ac_try;; 12830esac 12831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12832 (eval "$ac_link") 2>conftest.er1 12833 ac_status=$? 12834 grep -v '^ *+' conftest.er1 >conftest.err 12835 rm -f conftest.er1 12836 cat conftest.err >&5 12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12838 (exit $ac_status); } && 12839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12840 { (case "(($ac_try" in 12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12842 *) ac_try_echo=$ac_try;; 12843esac 12844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12845 (eval "$ac_try") 2>&5 12846 ac_status=$? 12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12848 (exit $ac_status); }; } && 12849 { ac_try='test -s conftest$ac_exeext' 12850 { (case "(($ac_try" in 12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12852 *) ac_try_echo=$ac_try;; 12853esac 12854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12855 (eval "$ac_try") 2>&5 12856 ac_status=$? 12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12858 (exit $ac_status); }; }; then 12859 ac_cv_lib_pthread_pthread_mutex_init=yes 12860else 12861 echo "$as_me: failed program was:" >&5 12862sed 's/^/| /' conftest.$ac_ext >&5 12863 12864 ac_cv_lib_pthread_pthread_mutex_init=no 12865fi 12866 12867rm -f core conftest.err conftest.$ac_objext \ 12868 conftest$ac_exeext conftest.$ac_ext 12869LIBS=$ac_check_lib_save_LIBS 12870fi 12871{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 12872echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 12873if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 12874 cat >>confdefs.h <<_ACEOF 12875#define HAVE_LIBPTHREAD 1 12876_ACEOF 12877 12878 LIBS="-lpthread $LIBS" 12879 12880fi 12881 12882 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 12883echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 12884if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12885 echo $ECHO_N "(cached) $ECHO_C" >&6 12886else 12887 ac_func_search_save_LIBS=$LIBS 12888cat >conftest.$ac_ext <<_ACEOF 12889/* confdefs.h. */ 12890_ACEOF 12891cat confdefs.h >>conftest.$ac_ext 12892cat >>conftest.$ac_ext <<_ACEOF 12893/* end confdefs.h. */ 12894 12895/* Override any GCC internal prototype to avoid an error. 12896 Use char because int might match the return type of a GCC 12897 builtin and then its argument prototype would still apply. */ 12898#ifdef __cplusplus 12899extern "C" 12900#endif 12901char pthread_mutex_lock (); 12902int 12903main () 12904{ 12905return pthread_mutex_lock (); 12906 ; 12907 return 0; 12908} 12909_ACEOF 12910for ac_lib in '' pthread; do 12911 if test -z "$ac_lib"; then 12912 ac_res="none required" 12913 else 12914 ac_res=-l$ac_lib 12915 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12916 fi 12917 rm -f conftest.$ac_objext conftest$ac_exeext 12918if { (ac_try="$ac_link" 12919case "(($ac_try" in 12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12921 *) ac_try_echo=$ac_try;; 12922esac 12923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12924 (eval "$ac_link") 2>conftest.er1 12925 ac_status=$? 12926 grep -v '^ *+' conftest.er1 >conftest.err 12927 rm -f conftest.er1 12928 cat conftest.err >&5 12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12930 (exit $ac_status); } && 12931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12932 { (case "(($ac_try" in 12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12934 *) ac_try_echo=$ac_try;; 12935esac 12936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12937 (eval "$ac_try") 2>&5 12938 ac_status=$? 12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12940 (exit $ac_status); }; } && 12941 { ac_try='test -s conftest$ac_exeext' 12942 { (case "(($ac_try" in 12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12944 *) ac_try_echo=$ac_try;; 12945esac 12946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12947 (eval "$ac_try") 2>&5 12948 ac_status=$? 12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12950 (exit $ac_status); }; }; then 12951 ac_cv_search_pthread_mutex_lock=$ac_res 12952else 12953 echo "$as_me: failed program was:" >&5 12954sed 's/^/| /' conftest.$ac_ext >&5 12955 12956 12957fi 12958 12959rm -f core conftest.err conftest.$ac_objext \ 12960 conftest$ac_exeext 12961 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12962 break 12963fi 12964done 12965if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12966 : 12967else 12968 ac_cv_search_pthread_mutex_lock=no 12969fi 12970rm conftest.$ac_ext 12971LIBS=$ac_func_search_save_LIBS 12972fi 12973{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 12974echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 12975ac_res=$ac_cv_search_pthread_mutex_lock 12976if test "$ac_res" != no; then 12977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12978 12979cat >>confdefs.h <<\_ACEOF 12980#define HAVE_PTHREAD_MUTEX_LOCK 1 12981_ACEOF 12982 12983fi 12984 12985 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 12986echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 12987if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12988 echo $ECHO_N "(cached) $ECHO_C" >&6 12989else 12990 ac_func_search_save_LIBS=$LIBS 12991cat >conftest.$ac_ext <<_ACEOF 12992/* confdefs.h. */ 12993_ACEOF 12994cat confdefs.h >>conftest.$ac_ext 12995cat >>conftest.$ac_ext <<_ACEOF 12996/* end confdefs.h. */ 12997 12998/* Override any GCC internal prototype to avoid an error. 12999 Use char because int might match the return type of a GCC 13000 builtin and then its argument prototype would still apply. */ 13001#ifdef __cplusplus 13002extern "C" 13003#endif 13004char pthread_rwlock_init (); 13005int 13006main () 13007{ 13008return pthread_rwlock_init (); 13009 ; 13010 return 0; 13011} 13012_ACEOF 13013for ac_lib in '' pthread; do 13014 if test -z "$ac_lib"; then 13015 ac_res="none required" 13016 else 13017 ac_res=-l$ac_lib 13018 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13019 fi 13020 rm -f conftest.$ac_objext conftest$ac_exeext 13021if { (ac_try="$ac_link" 13022case "(($ac_try" in 13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13024 *) ac_try_echo=$ac_try;; 13025esac 13026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13027 (eval "$ac_link") 2>conftest.er1 13028 ac_status=$? 13029 grep -v '^ *+' conftest.er1 >conftest.err 13030 rm -f conftest.er1 13031 cat conftest.err >&5 13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13033 (exit $ac_status); } && 13034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13035 { (case "(($ac_try" in 13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13037 *) ac_try_echo=$ac_try;; 13038esac 13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13040 (eval "$ac_try") 2>&5 13041 ac_status=$? 13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13043 (exit $ac_status); }; } && 13044 { ac_try='test -s conftest$ac_exeext' 13045 { (case "(($ac_try" in 13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13047 *) ac_try_echo=$ac_try;; 13048esac 13049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13050 (eval "$ac_try") 2>&5 13051 ac_status=$? 13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13053 (exit $ac_status); }; }; then 13054 ac_cv_search_pthread_rwlock_init=$ac_res 13055else 13056 echo "$as_me: failed program was:" >&5 13057sed 's/^/| /' conftest.$ac_ext >&5 13058 13059 13060fi 13061 13062rm -f core conftest.err conftest.$ac_objext \ 13063 conftest$ac_exeext 13064 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13065 break 13066fi 13067done 13068if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13069 : 13070else 13071 ac_cv_search_pthread_rwlock_init=no 13072fi 13073rm conftest.$ac_ext 13074LIBS=$ac_func_search_save_LIBS 13075fi 13076{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 13077echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 13078ac_res=$ac_cv_search_pthread_rwlock_init 13079if test "$ac_res" != no; then 13080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13081 13082cat >>confdefs.h <<\_ACEOF 13083#define HAVE_PTHREAD_RWLOCK_INIT 1 13084_ACEOF 13085 13086fi 13087 13088 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 13089echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 13090if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13091 echo $ECHO_N "(cached) $ECHO_C" >&6 13092else 13093 ac_func_search_save_LIBS=$LIBS 13094cat >conftest.$ac_ext <<_ACEOF 13095/* confdefs.h. */ 13096_ACEOF 13097cat confdefs.h >>conftest.$ac_ext 13098cat >>conftest.$ac_ext <<_ACEOF 13099/* end confdefs.h. */ 13100 13101/* Override any GCC internal prototype to avoid an error. 13102 Use char because int might match the return type of a GCC 13103 builtin and then its argument prototype would still apply. */ 13104#ifdef __cplusplus 13105extern "C" 13106#endif 13107char pthread_getspecific (); 13108int 13109main () 13110{ 13111return pthread_getspecific (); 13112 ; 13113 return 0; 13114} 13115_ACEOF 13116for ac_lib in '' pthread; do 13117 if test -z "$ac_lib"; then 13118 ac_res="none required" 13119 else 13120 ac_res=-l$ac_lib 13121 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13122 fi 13123 rm -f conftest.$ac_objext conftest$ac_exeext 13124if { (ac_try="$ac_link" 13125case "(($ac_try" in 13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13127 *) ac_try_echo=$ac_try;; 13128esac 13129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13130 (eval "$ac_link") 2>conftest.er1 13131 ac_status=$? 13132 grep -v '^ *+' conftest.er1 >conftest.err 13133 rm -f conftest.er1 13134 cat conftest.err >&5 13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13136 (exit $ac_status); } && 13137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13138 { (case "(($ac_try" in 13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13140 *) ac_try_echo=$ac_try;; 13141esac 13142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13143 (eval "$ac_try") 2>&5 13144 ac_status=$? 13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13146 (exit $ac_status); }; } && 13147 { ac_try='test -s conftest$ac_exeext' 13148 { (case "(($ac_try" in 13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13150 *) ac_try_echo=$ac_try;; 13151esac 13152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13153 (eval "$ac_try") 2>&5 13154 ac_status=$? 13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13156 (exit $ac_status); }; }; then 13157 ac_cv_search_pthread_getspecific=$ac_res 13158else 13159 echo "$as_me: failed program was:" >&5 13160sed 's/^/| /' conftest.$ac_ext >&5 13161 13162 13163fi 13164 13165rm -f core conftest.err conftest.$ac_objext \ 13166 conftest$ac_exeext 13167 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13168 break 13169fi 13170done 13171if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13172 : 13173else 13174 ac_cv_search_pthread_getspecific=no 13175fi 13176rm conftest.$ac_ext 13177LIBS=$ac_func_search_save_LIBS 13178fi 13179{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 13180echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 13181ac_res=$ac_cv_search_pthread_getspecific 13182if test "$ac_res" != no; then 13183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13184 13185cat >>confdefs.h <<\_ACEOF 13186#define HAVE_PTHREAD_GETSPECIFIC 1 13187_ACEOF 13188 13189fi 13190 13191fi 13192 13193 13194# Check whether --with-udis86 was given. 13195if test "${with_udis86+set}" = set; then 13196 withval=$with_udis86; 13197 USE_UDIS86=1 13198 13199 case "$withval" in 13200 /usr/lib|yes) ;; 13201 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13202 esac 13203 13204{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 13205echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 13206if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 13207 echo $ECHO_N "(cached) $ECHO_C" >&6 13208else 13209 ac_check_lib_save_LIBS=$LIBS 13210LIBS="-ludis86 $LIBS" 13211cat >conftest.$ac_ext <<_ACEOF 13212/* confdefs.h. */ 13213_ACEOF 13214cat confdefs.h >>conftest.$ac_ext 13215cat >>conftest.$ac_ext <<_ACEOF 13216/* end confdefs.h. */ 13217 13218/* Override any GCC internal prototype to avoid an error. 13219 Use char because int might match the return type of a GCC 13220 builtin and then its argument prototype would still apply. */ 13221#ifdef __cplusplus 13222extern "C" 13223#endif 13224char ud_init (); 13225int 13226main () 13227{ 13228return ud_init (); 13229 ; 13230 return 0; 13231} 13232_ACEOF 13233rm -f conftest.$ac_objext conftest$ac_exeext 13234if { (ac_try="$ac_link" 13235case "(($ac_try" in 13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13237 *) ac_try_echo=$ac_try;; 13238esac 13239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13240 (eval "$ac_link") 2>conftest.er1 13241 ac_status=$? 13242 grep -v '^ *+' conftest.er1 >conftest.err 13243 rm -f conftest.er1 13244 cat conftest.err >&5 13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13246 (exit $ac_status); } && 13247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13248 { (case "(($ac_try" in 13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13250 *) ac_try_echo=$ac_try;; 13251esac 13252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13253 (eval "$ac_try") 2>&5 13254 ac_status=$? 13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13256 (exit $ac_status); }; } && 13257 { ac_try='test -s conftest$ac_exeext' 13258 { (case "(($ac_try" in 13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13260 *) ac_try_echo=$ac_try;; 13261esac 13262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13263 (eval "$ac_try") 2>&5 13264 ac_status=$? 13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13266 (exit $ac_status); }; }; then 13267 ac_cv_lib_udis86_ud_init=yes 13268else 13269 echo "$as_me: failed program was:" >&5 13270sed 's/^/| /' conftest.$ac_ext >&5 13271 13272 ac_cv_lib_udis86_ud_init=no 13273fi 13274 13275rm -f core conftest.err conftest.$ac_objext \ 13276 conftest$ac_exeext conftest.$ac_ext 13277LIBS=$ac_check_lib_save_LIBS 13278fi 13279{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13280echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13281if test $ac_cv_lib_udis86_ud_init = yes; then 13282 cat >>confdefs.h <<_ACEOF 13283#define HAVE_LIBUDIS86 1 13284_ACEOF 13285 13286 LIBS="-ludis86 $LIBS" 13287 13288else 13289 13290 echo "Error! You need to have libudis86 around." 13291 exit -1 13292 13293fi 13294 13295 13296else 13297 USE_UDIS86=0 13298 13299fi 13300 13301 13302cat >>confdefs.h <<_ACEOF 13303#define USE_UDIS86 $USE_UDIS86 13304_ACEOF 13305 13306 13307 13308# Check whether --with-oprofile was given. 13309if test "${with_oprofile+set}" = set; then 13310 withval=$with_oprofile; 13311 USE_OPROFILE=1 13312 13313 case "$withval" in 13314 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13315 no) llvm_cv_oppath= 13316 USE_OPROFILE=0 13317 ;; 13318 *) llvm_cv_oppath="${withval}/lib/oprofile" 13319 CPPFLAGS="-I${withval}/include";; 13320 esac 13321 if test -n "$llvm_cv_oppath" ; then 13322 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13323 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13324echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13325if test "${ac_cv_search_bfd_init+set}" = set; then 13326 echo $ECHO_N "(cached) $ECHO_C" >&6 13327else 13328 ac_func_search_save_LIBS=$LIBS 13329cat >conftest.$ac_ext <<_ACEOF 13330/* confdefs.h. */ 13331_ACEOF 13332cat confdefs.h >>conftest.$ac_ext 13333cat >>conftest.$ac_ext <<_ACEOF 13334/* end confdefs.h. */ 13335 13336/* Override any GCC internal prototype to avoid an error. 13337 Use char because int might match the return type of a GCC 13338 builtin and then its argument prototype would still apply. */ 13339#ifdef __cplusplus 13340extern "C" 13341#endif 13342char bfd_init (); 13343int 13344main () 13345{ 13346return bfd_init (); 13347 ; 13348 return 0; 13349} 13350_ACEOF 13351for ac_lib in '' bfd; do 13352 if test -z "$ac_lib"; then 13353 ac_res="none required" 13354 else 13355 ac_res=-l$ac_lib 13356 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13357 fi 13358 rm -f conftest.$ac_objext conftest$ac_exeext 13359if { (ac_try="$ac_link" 13360case "(($ac_try" in 13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13362 *) ac_try_echo=$ac_try;; 13363esac 13364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13365 (eval "$ac_link") 2>conftest.er1 13366 ac_status=$? 13367 grep -v '^ *+' conftest.er1 >conftest.err 13368 rm -f conftest.er1 13369 cat conftest.err >&5 13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13371 (exit $ac_status); } && 13372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13373 { (case "(($ac_try" in 13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13375 *) ac_try_echo=$ac_try;; 13376esac 13377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13378 (eval "$ac_try") 2>&5 13379 ac_status=$? 13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13381 (exit $ac_status); }; } && 13382 { ac_try='test -s conftest$ac_exeext' 13383 { (case "(($ac_try" in 13384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13385 *) ac_try_echo=$ac_try;; 13386esac 13387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13388 (eval "$ac_try") 2>&5 13389 ac_status=$? 13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13391 (exit $ac_status); }; }; then 13392 ac_cv_search_bfd_init=$ac_res 13393else 13394 echo "$as_me: failed program was:" >&5 13395sed 's/^/| /' conftest.$ac_ext >&5 13396 13397 13398fi 13399 13400rm -f core conftest.err conftest.$ac_objext \ 13401 conftest$ac_exeext 13402 if test "${ac_cv_search_bfd_init+set}" = set; then 13403 break 13404fi 13405done 13406if test "${ac_cv_search_bfd_init+set}" = set; then 13407 : 13408else 13409 ac_cv_search_bfd_init=no 13410fi 13411rm conftest.$ac_ext 13412LIBS=$ac_func_search_save_LIBS 13413fi 13414{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13415echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13416ac_res=$ac_cv_search_bfd_init 13417if test "$ac_res" != no; then 13418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13419 13420fi 13421 13422 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13423echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13424if test "${ac_cv_search_op_open_agent+set}" = set; then 13425 echo $ECHO_N "(cached) $ECHO_C" >&6 13426else 13427 ac_func_search_save_LIBS=$LIBS 13428cat >conftest.$ac_ext <<_ACEOF 13429/* confdefs.h. */ 13430_ACEOF 13431cat confdefs.h >>conftest.$ac_ext 13432cat >>conftest.$ac_ext <<_ACEOF 13433/* end confdefs.h. */ 13434 13435/* Override any GCC internal prototype to avoid an error. 13436 Use char because int might match the return type of a GCC 13437 builtin and then its argument prototype would still apply. */ 13438#ifdef __cplusplus 13439extern "C" 13440#endif 13441char op_open_agent (); 13442int 13443main () 13444{ 13445return op_open_agent (); 13446 ; 13447 return 0; 13448} 13449_ACEOF 13450for ac_lib in '' opagent; do 13451 if test -z "$ac_lib"; then 13452 ac_res="none required" 13453 else 13454 ac_res=-l$ac_lib 13455 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13456 fi 13457 rm -f conftest.$ac_objext conftest$ac_exeext 13458if { (ac_try="$ac_link" 13459case "(($ac_try" in 13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13461 *) ac_try_echo=$ac_try;; 13462esac 13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13464 (eval "$ac_link") 2>conftest.er1 13465 ac_status=$? 13466 grep -v '^ *+' conftest.er1 >conftest.err 13467 rm -f conftest.er1 13468 cat conftest.err >&5 13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13470 (exit $ac_status); } && 13471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13472 { (case "(($ac_try" in 13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13474 *) ac_try_echo=$ac_try;; 13475esac 13476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13477 (eval "$ac_try") 2>&5 13478 ac_status=$? 13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13480 (exit $ac_status); }; } && 13481 { ac_try='test -s conftest$ac_exeext' 13482 { (case "(($ac_try" in 13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13484 *) ac_try_echo=$ac_try;; 13485esac 13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13487 (eval "$ac_try") 2>&5 13488 ac_status=$? 13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13490 (exit $ac_status); }; }; then 13491 ac_cv_search_op_open_agent=$ac_res 13492else 13493 echo "$as_me: failed program was:" >&5 13494sed 's/^/| /' conftest.$ac_ext >&5 13495 13496 13497fi 13498 13499rm -f core conftest.err conftest.$ac_objext \ 13500 conftest$ac_exeext 13501 if test "${ac_cv_search_op_open_agent+set}" = set; then 13502 break 13503fi 13504done 13505if test "${ac_cv_search_op_open_agent+set}" = set; then 13506 : 13507else 13508 ac_cv_search_op_open_agent=no 13509fi 13510rm conftest.$ac_ext 13511LIBS=$ac_func_search_save_LIBS 13512fi 13513{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13514echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13515ac_res=$ac_cv_search_op_open_agent 13516if test "$ac_res" != no; then 13517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13518 13519else 13520 13521 echo "Error! You need to have libopagent around." 13522 exit -1 13523 13524fi 13525 13526 if test "${ac_cv_header_opagent_h+set}" = set; then 13527 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13528echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13529if test "${ac_cv_header_opagent_h+set}" = set; then 13530 echo $ECHO_N "(cached) $ECHO_C" >&6 13531fi 13532{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13533echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13534else 13535 # Is the header compilable? 13536{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 13537echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13538cat >conftest.$ac_ext <<_ACEOF 13539/* confdefs.h. */ 13540_ACEOF 13541cat confdefs.h >>conftest.$ac_ext 13542cat >>conftest.$ac_ext <<_ACEOF 13543/* end confdefs.h. */ 13544$ac_includes_default 13545#include <opagent.h> 13546_ACEOF 13547rm -f conftest.$ac_objext 13548if { (ac_try="$ac_compile" 13549case "(($ac_try" in 13550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13551 *) ac_try_echo=$ac_try;; 13552esac 13553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13554 (eval "$ac_compile") 2>conftest.er1 13555 ac_status=$? 13556 grep -v '^ *+' conftest.er1 >conftest.err 13557 rm -f conftest.er1 13558 cat conftest.err >&5 13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13560 (exit $ac_status); } && 13561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13562 { (case "(($ac_try" in 13563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13564 *) ac_try_echo=$ac_try;; 13565esac 13566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13567 (eval "$ac_try") 2>&5 13568 ac_status=$? 13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13570 (exit $ac_status); }; } && 13571 { ac_try='test -s conftest.$ac_objext' 13572 { (case "(($ac_try" in 13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13574 *) ac_try_echo=$ac_try;; 13575esac 13576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13577 (eval "$ac_try") 2>&5 13578 ac_status=$? 13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13580 (exit $ac_status); }; }; then 13581 ac_header_compiler=yes 13582else 13583 echo "$as_me: failed program was:" >&5 13584sed 's/^/| /' conftest.$ac_ext >&5 13585 13586 ac_header_compiler=no 13587fi 13588 13589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13590{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13591echo "${ECHO_T}$ac_header_compiler" >&6; } 13592 13593# Is the header present? 13594{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 13595echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13596cat >conftest.$ac_ext <<_ACEOF 13597/* confdefs.h. */ 13598_ACEOF 13599cat confdefs.h >>conftest.$ac_ext 13600cat >>conftest.$ac_ext <<_ACEOF 13601/* end confdefs.h. */ 13602#include <opagent.h> 13603_ACEOF 13604if { (ac_try="$ac_cpp conftest.$ac_ext" 13605case "(($ac_try" in 13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13607 *) ac_try_echo=$ac_try;; 13608esac 13609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13611 ac_status=$? 13612 grep -v '^ *+' conftest.er1 >conftest.err 13613 rm -f conftest.er1 13614 cat conftest.err >&5 13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13616 (exit $ac_status); } >/dev/null; then 13617 if test -s conftest.err; then 13618 ac_cpp_err=$ac_c_preproc_warn_flag 13619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13620 else 13621 ac_cpp_err= 13622 fi 13623else 13624 ac_cpp_err=yes 13625fi 13626if test -z "$ac_cpp_err"; then 13627 ac_header_preproc=yes 13628else 13629 echo "$as_me: failed program was:" >&5 13630sed 's/^/| /' conftest.$ac_ext >&5 13631 13632 ac_header_preproc=no 13633fi 13634 13635rm -f conftest.err conftest.$ac_ext 13636{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13637echo "${ECHO_T}$ac_header_preproc" >&6; } 13638 13639# So? What about this header? 13640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13641 yes:no: ) 13642 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 13643echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13644 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 13645echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 13646 ac_header_preproc=yes 13647 ;; 13648 no:yes:* ) 13649 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 13650echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 13651 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 13652echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 13653 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 13654echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 13655 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 13656echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 13657 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 13658echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 13659 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 13660echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 13661 ( cat <<\_ASBOX 13662## ----------------------------------- ## 13663## Report this to llvmbugs@cs.uiuc.edu ## 13664## ----------------------------------- ## 13665_ASBOX 13666 ) | sed "s/^/$as_me: WARNING: /" >&2 13667 ;; 13668esac 13669{ echo "$as_me:$LINENO: checking for opagent.h" >&5 13670echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13671if test "${ac_cv_header_opagent_h+set}" = set; then 13672 echo $ECHO_N "(cached) $ECHO_C" >&6 13673else 13674 ac_cv_header_opagent_h=$ac_header_preproc 13675fi 13676{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13677echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13678 13679fi 13680if test $ac_cv_header_opagent_h = yes; then 13681 : 13682else 13683 13684 echo "Error! You need to have opagent.h around." 13685 exit -1 13686 13687fi 13688 13689 13690 fi 13691 13692else 13693 13694 USE_OPROFILE=0 13695 13696 13697fi 13698 13699 13700cat >>confdefs.h <<_ACEOF 13701#define USE_OPROFILE $USE_OPROFILE 13702_ACEOF 13703 13704 13705 13706 13707 13708 13709 13710 13711ac_header_dirent=no 13712for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 13713 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 13714{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 13715echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 13716if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13717 echo $ECHO_N "(cached) $ECHO_C" >&6 13718else 13719 cat >conftest.$ac_ext <<_ACEOF 13720/* confdefs.h. */ 13721_ACEOF 13722cat confdefs.h >>conftest.$ac_ext 13723cat >>conftest.$ac_ext <<_ACEOF 13724/* end confdefs.h. */ 13725#include <sys/types.h> 13726#include <$ac_hdr> 13727 13728int 13729main () 13730{ 13731if ((DIR *) 0) 13732return 0; 13733 ; 13734 return 0; 13735} 13736_ACEOF 13737rm -f conftest.$ac_objext 13738if { (ac_try="$ac_compile" 13739case "(($ac_try" in 13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13741 *) ac_try_echo=$ac_try;; 13742esac 13743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13744 (eval "$ac_compile") 2>conftest.er1 13745 ac_status=$? 13746 grep -v '^ *+' conftest.er1 >conftest.err 13747 rm -f conftest.er1 13748 cat conftest.err >&5 13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13750 (exit $ac_status); } && 13751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13752 { (case "(($ac_try" in 13753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13754 *) ac_try_echo=$ac_try;; 13755esac 13756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13757 (eval "$ac_try") 2>&5 13758 ac_status=$? 13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13760 (exit $ac_status); }; } && 13761 { ac_try='test -s conftest.$ac_objext' 13762 { (case "(($ac_try" in 13763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13764 *) ac_try_echo=$ac_try;; 13765esac 13766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13767 (eval "$ac_try") 2>&5 13768 ac_status=$? 13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13770 (exit $ac_status); }; }; then 13771 eval "$as_ac_Header=yes" 13772else 13773 echo "$as_me: failed program was:" >&5 13774sed 's/^/| /' conftest.$ac_ext >&5 13775 13776 eval "$as_ac_Header=no" 13777fi 13778 13779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13780fi 13781ac_res=`eval echo '${'$as_ac_Header'}'` 13782 { echo "$as_me:$LINENO: result: $ac_res" >&5 13783echo "${ECHO_T}$ac_res" >&6; } 13784if test `eval echo '${'$as_ac_Header'}'` = yes; then 13785 cat >>confdefs.h <<_ACEOF 13786#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 13787_ACEOF 13788 13789ac_header_dirent=$ac_hdr; break 13790fi 13791 13792done 13793# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 13794if test $ac_header_dirent = dirent.h; then 13795 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13796echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13797if test "${ac_cv_search_opendir+set}" = set; then 13798 echo $ECHO_N "(cached) $ECHO_C" >&6 13799else 13800 ac_func_search_save_LIBS=$LIBS 13801cat >conftest.$ac_ext <<_ACEOF 13802/* confdefs.h. */ 13803_ACEOF 13804cat confdefs.h >>conftest.$ac_ext 13805cat >>conftest.$ac_ext <<_ACEOF 13806/* end confdefs.h. */ 13807 13808/* Override any GCC internal prototype to avoid an error. 13809 Use char because int might match the return type of a GCC 13810 builtin and then its argument prototype would still apply. */ 13811#ifdef __cplusplus 13812extern "C" 13813#endif 13814char opendir (); 13815int 13816main () 13817{ 13818return opendir (); 13819 ; 13820 return 0; 13821} 13822_ACEOF 13823for ac_lib in '' dir; do 13824 if test -z "$ac_lib"; then 13825 ac_res="none required" 13826 else 13827 ac_res=-l$ac_lib 13828 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13829 fi 13830 rm -f conftest.$ac_objext conftest$ac_exeext 13831if { (ac_try="$ac_link" 13832case "(($ac_try" in 13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13834 *) ac_try_echo=$ac_try;; 13835esac 13836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13837 (eval "$ac_link") 2>conftest.er1 13838 ac_status=$? 13839 grep -v '^ *+' conftest.er1 >conftest.err 13840 rm -f conftest.er1 13841 cat conftest.err >&5 13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13843 (exit $ac_status); } && 13844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13845 { (case "(($ac_try" in 13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13847 *) ac_try_echo=$ac_try;; 13848esac 13849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13850 (eval "$ac_try") 2>&5 13851 ac_status=$? 13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13853 (exit $ac_status); }; } && 13854 { ac_try='test -s conftest$ac_exeext' 13855 { (case "(($ac_try" in 13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13857 *) ac_try_echo=$ac_try;; 13858esac 13859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13860 (eval "$ac_try") 2>&5 13861 ac_status=$? 13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13863 (exit $ac_status); }; }; then 13864 ac_cv_search_opendir=$ac_res 13865else 13866 echo "$as_me: failed program was:" >&5 13867sed 's/^/| /' conftest.$ac_ext >&5 13868 13869 13870fi 13871 13872rm -f core conftest.err conftest.$ac_objext \ 13873 conftest$ac_exeext 13874 if test "${ac_cv_search_opendir+set}" = set; then 13875 break 13876fi 13877done 13878if test "${ac_cv_search_opendir+set}" = set; then 13879 : 13880else 13881 ac_cv_search_opendir=no 13882fi 13883rm conftest.$ac_ext 13884LIBS=$ac_func_search_save_LIBS 13885fi 13886{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13887echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 13888ac_res=$ac_cv_search_opendir 13889if test "$ac_res" != no; then 13890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13891 13892fi 13893 13894else 13895 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13896echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13897if test "${ac_cv_search_opendir+set}" = set; then 13898 echo $ECHO_N "(cached) $ECHO_C" >&6 13899else 13900 ac_func_search_save_LIBS=$LIBS 13901cat >conftest.$ac_ext <<_ACEOF 13902/* confdefs.h. */ 13903_ACEOF 13904cat confdefs.h >>conftest.$ac_ext 13905cat >>conftest.$ac_ext <<_ACEOF 13906/* end confdefs.h. */ 13907 13908/* Override any GCC internal prototype to avoid an error. 13909 Use char because int might match the return type of a GCC 13910 builtin and then its argument prototype would still apply. */ 13911#ifdef __cplusplus 13912extern "C" 13913#endif 13914char opendir (); 13915int 13916main () 13917{ 13918return opendir (); 13919 ; 13920 return 0; 13921} 13922_ACEOF 13923for ac_lib in '' x; do 13924 if test -z "$ac_lib"; then 13925 ac_res="none required" 13926 else 13927 ac_res=-l$ac_lib 13928 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13929 fi 13930 rm -f conftest.$ac_objext conftest$ac_exeext 13931if { (ac_try="$ac_link" 13932case "(($ac_try" in 13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13934 *) ac_try_echo=$ac_try;; 13935esac 13936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13937 (eval "$ac_link") 2>conftest.er1 13938 ac_status=$? 13939 grep -v '^ *+' conftest.er1 >conftest.err 13940 rm -f conftest.er1 13941 cat conftest.err >&5 13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13943 (exit $ac_status); } && 13944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13945 { (case "(($ac_try" in 13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13947 *) ac_try_echo=$ac_try;; 13948esac 13949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13950 (eval "$ac_try") 2>&5 13951 ac_status=$? 13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13953 (exit $ac_status); }; } && 13954 { ac_try='test -s conftest$ac_exeext' 13955 { (case "(($ac_try" in 13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13957 *) ac_try_echo=$ac_try;; 13958esac 13959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13960 (eval "$ac_try") 2>&5 13961 ac_status=$? 13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13963 (exit $ac_status); }; }; then 13964 ac_cv_search_opendir=$ac_res 13965else 13966 echo "$as_me: failed program was:" >&5 13967sed 's/^/| /' conftest.$ac_ext >&5 13968 13969 13970fi 13971 13972rm -f core conftest.err conftest.$ac_objext \ 13973 conftest$ac_exeext 13974 if test "${ac_cv_search_opendir+set}" = set; then 13975 break 13976fi 13977done 13978if test "${ac_cv_search_opendir+set}" = set; then 13979 : 13980else 13981 ac_cv_search_opendir=no 13982fi 13983rm conftest.$ac_ext 13984LIBS=$ac_func_search_save_LIBS 13985fi 13986{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13987echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 13988ac_res=$ac_cv_search_opendir 13989if test "$ac_res" != no; then 13990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13991 13992fi 13993 13994fi 13995 13996{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 13997echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 13998if test "${ac_cv_header_mmap_anon+set}" = set; then 13999 echo $ECHO_N "(cached) $ECHO_C" >&6 14000else 14001 ac_ext=c 14002ac_cpp='$CPP $CPPFLAGS' 14003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14005ac_compiler_gnu=$ac_cv_c_compiler_gnu 14006 14007 cat >conftest.$ac_ext <<_ACEOF 14008/* confdefs.h. */ 14009_ACEOF 14010cat confdefs.h >>conftest.$ac_ext 14011cat >>conftest.$ac_ext <<_ACEOF 14012/* end confdefs.h. */ 14013#include <sys/mman.h> 14014#include <unistd.h> 14015#include <fcntl.h> 14016int 14017main () 14018{ 14019mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 14020 ; 14021 return 0; 14022} 14023_ACEOF 14024rm -f conftest.$ac_objext 14025if { (ac_try="$ac_compile" 14026case "(($ac_try" in 14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14028 *) ac_try_echo=$ac_try;; 14029esac 14030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14031 (eval "$ac_compile") 2>conftest.er1 14032 ac_status=$? 14033 grep -v '^ *+' conftest.er1 >conftest.err 14034 rm -f conftest.er1 14035 cat conftest.err >&5 14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14037 (exit $ac_status); } && 14038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14039 { (case "(($ac_try" in 14040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14041 *) ac_try_echo=$ac_try;; 14042esac 14043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14044 (eval "$ac_try") 2>&5 14045 ac_status=$? 14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14047 (exit $ac_status); }; } && 14048 { ac_try='test -s conftest.$ac_objext' 14049 { (case "(($ac_try" in 14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14051 *) ac_try_echo=$ac_try;; 14052esac 14053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14054 (eval "$ac_try") 2>&5 14055 ac_status=$? 14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14057 (exit $ac_status); }; }; then 14058 ac_cv_header_mmap_anon=yes 14059else 14060 echo "$as_me: failed program was:" >&5 14061sed 's/^/| /' conftest.$ac_ext >&5 14062 14063 ac_cv_header_mmap_anon=no 14064fi 14065 14066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14067 ac_ext=c 14068ac_cpp='$CPP $CPPFLAGS' 14069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14071ac_compiler_gnu=$ac_cv_c_compiler_gnu 14072 14073 14074fi 14075{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 14076echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 14077if test "$ac_cv_header_mmap_anon" = yes; then 14078 14079cat >>confdefs.h <<\_ACEOF 14080#define HAVE_MMAP_ANONYMOUS 1 14081_ACEOF 14082 14083fi 14084 14085{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 14086echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 14087if test "${ac_cv_header_stat_broken+set}" = set; then 14088 echo $ECHO_N "(cached) $ECHO_C" >&6 14089else 14090 cat >conftest.$ac_ext <<_ACEOF 14091/* confdefs.h. */ 14092_ACEOF 14093cat confdefs.h >>conftest.$ac_ext 14094cat >>conftest.$ac_ext <<_ACEOF 14095/* end confdefs.h. */ 14096#include <sys/types.h> 14097#include <sys/stat.h> 14098 14099#if defined S_ISBLK && defined S_IFDIR 14100# if S_ISBLK (S_IFDIR) 14101You lose. 14102# endif 14103#endif 14104 14105#if defined S_ISBLK && defined S_IFCHR 14106# if S_ISBLK (S_IFCHR) 14107You lose. 14108# endif 14109#endif 14110 14111#if defined S_ISLNK && defined S_IFREG 14112# if S_ISLNK (S_IFREG) 14113You lose. 14114# endif 14115#endif 14116 14117#if defined S_ISSOCK && defined S_IFREG 14118# if S_ISSOCK (S_IFREG) 14119You lose. 14120# endif 14121#endif 14122 14123_ACEOF 14124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14125 $EGREP "You lose" >/dev/null 2>&1; then 14126 ac_cv_header_stat_broken=yes 14127else 14128 ac_cv_header_stat_broken=no 14129fi 14130rm -f conftest* 14131 14132fi 14133{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14134echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14135if test $ac_cv_header_stat_broken = yes; then 14136 14137cat >>confdefs.h <<\_ACEOF 14138#define STAT_MACROS_BROKEN 1 14139_ACEOF 14140 14141fi 14142 14143{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 14144echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14145if test "${ac_cv_header_sys_wait_h+set}" = set; then 14146 echo $ECHO_N "(cached) $ECHO_C" >&6 14147else 14148 cat >conftest.$ac_ext <<_ACEOF 14149/* confdefs.h. */ 14150_ACEOF 14151cat confdefs.h >>conftest.$ac_ext 14152cat >>conftest.$ac_ext <<_ACEOF 14153/* end confdefs.h. */ 14154#include <sys/types.h> 14155#include <sys/wait.h> 14156#ifndef WEXITSTATUS 14157# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14158#endif 14159#ifndef WIFEXITED 14160# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14161#endif 14162 14163int 14164main () 14165{ 14166 int s; 14167 wait (&s); 14168 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14169 ; 14170 return 0; 14171} 14172_ACEOF 14173rm -f conftest.$ac_objext 14174if { (ac_try="$ac_compile" 14175case "(($ac_try" in 14176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14177 *) ac_try_echo=$ac_try;; 14178esac 14179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14180 (eval "$ac_compile") 2>conftest.er1 14181 ac_status=$? 14182 grep -v '^ *+' conftest.er1 >conftest.err 14183 rm -f conftest.er1 14184 cat conftest.err >&5 14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14186 (exit $ac_status); } && 14187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14188 { (case "(($ac_try" in 14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14190 *) ac_try_echo=$ac_try;; 14191esac 14192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14193 (eval "$ac_try") 2>&5 14194 ac_status=$? 14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14196 (exit $ac_status); }; } && 14197 { ac_try='test -s conftest.$ac_objext' 14198 { (case "(($ac_try" in 14199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14200 *) ac_try_echo=$ac_try;; 14201esac 14202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14203 (eval "$ac_try") 2>&5 14204 ac_status=$? 14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14206 (exit $ac_status); }; }; then 14207 ac_cv_header_sys_wait_h=yes 14208else 14209 echo "$as_me: failed program was:" >&5 14210sed 's/^/| /' conftest.$ac_ext >&5 14211 14212 ac_cv_header_sys_wait_h=no 14213fi 14214 14215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14216fi 14217{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14218echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14219if test $ac_cv_header_sys_wait_h = yes; then 14220 14221cat >>confdefs.h <<\_ACEOF 14222#define HAVE_SYS_WAIT_H 1 14223_ACEOF 14224 14225fi 14226 14227{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14228echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14229if test "${ac_cv_header_time+set}" = set; then 14230 echo $ECHO_N "(cached) $ECHO_C" >&6 14231else 14232 cat >conftest.$ac_ext <<_ACEOF 14233/* confdefs.h. */ 14234_ACEOF 14235cat confdefs.h >>conftest.$ac_ext 14236cat >>conftest.$ac_ext <<_ACEOF 14237/* end confdefs.h. */ 14238#include <sys/types.h> 14239#include <sys/time.h> 14240#include <time.h> 14241 14242int 14243main () 14244{ 14245if ((struct tm *) 0) 14246return 0; 14247 ; 14248 return 0; 14249} 14250_ACEOF 14251rm -f conftest.$ac_objext 14252if { (ac_try="$ac_compile" 14253case "(($ac_try" in 14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14255 *) ac_try_echo=$ac_try;; 14256esac 14257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14258 (eval "$ac_compile") 2>conftest.er1 14259 ac_status=$? 14260 grep -v '^ *+' conftest.er1 >conftest.err 14261 rm -f conftest.er1 14262 cat conftest.err >&5 14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14264 (exit $ac_status); } && 14265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14266 { (case "(($ac_try" in 14267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14268 *) ac_try_echo=$ac_try;; 14269esac 14270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14271 (eval "$ac_try") 2>&5 14272 ac_status=$? 14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14274 (exit $ac_status); }; } && 14275 { ac_try='test -s conftest.$ac_objext' 14276 { (case "(($ac_try" in 14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14278 *) ac_try_echo=$ac_try;; 14279esac 14280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14281 (eval "$ac_try") 2>&5 14282 ac_status=$? 14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14284 (exit $ac_status); }; }; then 14285 ac_cv_header_time=yes 14286else 14287 echo "$as_me: failed program was:" >&5 14288sed 's/^/| /' conftest.$ac_ext >&5 14289 14290 ac_cv_header_time=no 14291fi 14292 14293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14294fi 14295{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14296echo "${ECHO_T}$ac_cv_header_time" >&6; } 14297if test $ac_cv_header_time = yes; then 14298 14299cat >>confdefs.h <<\_ACEOF 14300#define TIME_WITH_SYS_TIME 1 14301_ACEOF 14302 14303fi 14304 14305 14306 14307 14308 14309 14310 14311 14312for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 14313do 14314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14316 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14319 echo $ECHO_N "(cached) $ECHO_C" >&6 14320fi 14321ac_res=`eval echo '${'$as_ac_Header'}'` 14322 { echo "$as_me:$LINENO: result: $ac_res" >&5 14323echo "${ECHO_T}$ac_res" >&6; } 14324else 14325 # Is the header compilable? 14326{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14328cat >conftest.$ac_ext <<_ACEOF 14329/* confdefs.h. */ 14330_ACEOF 14331cat confdefs.h >>conftest.$ac_ext 14332cat >>conftest.$ac_ext <<_ACEOF 14333/* end confdefs.h. */ 14334$ac_includes_default 14335#include <$ac_header> 14336_ACEOF 14337rm -f conftest.$ac_objext 14338if { (ac_try="$ac_compile" 14339case "(($ac_try" in 14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14341 *) ac_try_echo=$ac_try;; 14342esac 14343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14344 (eval "$ac_compile") 2>conftest.er1 14345 ac_status=$? 14346 grep -v '^ *+' conftest.er1 >conftest.err 14347 rm -f conftest.er1 14348 cat conftest.err >&5 14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14350 (exit $ac_status); } && 14351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14352 { (case "(($ac_try" in 14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14354 *) ac_try_echo=$ac_try;; 14355esac 14356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14357 (eval "$ac_try") 2>&5 14358 ac_status=$? 14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14360 (exit $ac_status); }; } && 14361 { ac_try='test -s conftest.$ac_objext' 14362 { (case "(($ac_try" in 14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14364 *) ac_try_echo=$ac_try;; 14365esac 14366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14367 (eval "$ac_try") 2>&5 14368 ac_status=$? 14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14370 (exit $ac_status); }; }; then 14371 ac_header_compiler=yes 14372else 14373 echo "$as_me: failed program was:" >&5 14374sed 's/^/| /' conftest.$ac_ext >&5 14375 14376 ac_header_compiler=no 14377fi 14378 14379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14380{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14381echo "${ECHO_T}$ac_header_compiler" >&6; } 14382 14383# Is the header present? 14384{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14385echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14386cat >conftest.$ac_ext <<_ACEOF 14387/* confdefs.h. */ 14388_ACEOF 14389cat confdefs.h >>conftest.$ac_ext 14390cat >>conftest.$ac_ext <<_ACEOF 14391/* end confdefs.h. */ 14392#include <$ac_header> 14393_ACEOF 14394if { (ac_try="$ac_cpp conftest.$ac_ext" 14395case "(($ac_try" in 14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14397 *) ac_try_echo=$ac_try;; 14398esac 14399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14401 ac_status=$? 14402 grep -v '^ *+' conftest.er1 >conftest.err 14403 rm -f conftest.er1 14404 cat conftest.err >&5 14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14406 (exit $ac_status); } >/dev/null; then 14407 if test -s conftest.err; then 14408 ac_cpp_err=$ac_c_preproc_warn_flag 14409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14410 else 14411 ac_cpp_err= 14412 fi 14413else 14414 ac_cpp_err=yes 14415fi 14416if test -z "$ac_cpp_err"; then 14417 ac_header_preproc=yes 14418else 14419 echo "$as_me: failed program was:" >&5 14420sed 's/^/| /' conftest.$ac_ext >&5 14421 14422 ac_header_preproc=no 14423fi 14424 14425rm -f conftest.err conftest.$ac_ext 14426{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14427echo "${ECHO_T}$ac_header_preproc" >&6; } 14428 14429# So? What about this header? 14430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14431 yes:no: ) 14432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14435echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14436 ac_header_preproc=yes 14437 ;; 14438 no:yes:* ) 14439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14440echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14442echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14444echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14446echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14448echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14450echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14451 ( cat <<\_ASBOX 14452## ----------------------------------- ## 14453## Report this to llvmbugs@cs.uiuc.edu ## 14454## ----------------------------------- ## 14455_ASBOX 14456 ) | sed "s/^/$as_me: WARNING: /" >&2 14457 ;; 14458esac 14459{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14462 echo $ECHO_N "(cached) $ECHO_C" >&6 14463else 14464 eval "$as_ac_Header=\$ac_header_preproc" 14465fi 14466ac_res=`eval echo '${'$as_ac_Header'}'` 14467 { echo "$as_me:$LINENO: result: $ac_res" >&5 14468echo "${ECHO_T}$ac_res" >&6; } 14469 14470fi 14471if test `eval echo '${'$as_ac_Header'}'` = yes; then 14472 cat >>confdefs.h <<_ACEOF 14473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14474_ACEOF 14475 14476fi 14477 14478done 14479 14480 14481 14482 14483 14484 14485 14486for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 14487do 14488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14490 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14493 echo $ECHO_N "(cached) $ECHO_C" >&6 14494fi 14495ac_res=`eval echo '${'$as_ac_Header'}'` 14496 { echo "$as_me:$LINENO: result: $ac_res" >&5 14497echo "${ECHO_T}$ac_res" >&6; } 14498else 14499 # Is the header compilable? 14500{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14501echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14502cat >conftest.$ac_ext <<_ACEOF 14503/* confdefs.h. */ 14504_ACEOF 14505cat confdefs.h >>conftest.$ac_ext 14506cat >>conftest.$ac_ext <<_ACEOF 14507/* end confdefs.h. */ 14508$ac_includes_default 14509#include <$ac_header> 14510_ACEOF 14511rm -f conftest.$ac_objext 14512if { (ac_try="$ac_compile" 14513case "(($ac_try" in 14514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14515 *) ac_try_echo=$ac_try;; 14516esac 14517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14518 (eval "$ac_compile") 2>conftest.er1 14519 ac_status=$? 14520 grep -v '^ *+' conftest.er1 >conftest.err 14521 rm -f conftest.er1 14522 cat conftest.err >&5 14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14524 (exit $ac_status); } && 14525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14526 { (case "(($ac_try" in 14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14528 *) ac_try_echo=$ac_try;; 14529esac 14530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14531 (eval "$ac_try") 2>&5 14532 ac_status=$? 14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14534 (exit $ac_status); }; } && 14535 { ac_try='test -s conftest.$ac_objext' 14536 { (case "(($ac_try" in 14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14538 *) ac_try_echo=$ac_try;; 14539esac 14540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14541 (eval "$ac_try") 2>&5 14542 ac_status=$? 14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14544 (exit $ac_status); }; }; then 14545 ac_header_compiler=yes 14546else 14547 echo "$as_me: failed program was:" >&5 14548sed 's/^/| /' conftest.$ac_ext >&5 14549 14550 ac_header_compiler=no 14551fi 14552 14553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14554{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14555echo "${ECHO_T}$ac_header_compiler" >&6; } 14556 14557# Is the header present? 14558{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14559echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14560cat >conftest.$ac_ext <<_ACEOF 14561/* confdefs.h. */ 14562_ACEOF 14563cat confdefs.h >>conftest.$ac_ext 14564cat >>conftest.$ac_ext <<_ACEOF 14565/* end confdefs.h. */ 14566#include <$ac_header> 14567_ACEOF 14568if { (ac_try="$ac_cpp conftest.$ac_ext" 14569case "(($ac_try" in 14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14571 *) ac_try_echo=$ac_try;; 14572esac 14573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14575 ac_status=$? 14576 grep -v '^ *+' conftest.er1 >conftest.err 14577 rm -f conftest.er1 14578 cat conftest.err >&5 14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14580 (exit $ac_status); } >/dev/null; then 14581 if test -s conftest.err; then 14582 ac_cpp_err=$ac_c_preproc_warn_flag 14583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14584 else 14585 ac_cpp_err= 14586 fi 14587else 14588 ac_cpp_err=yes 14589fi 14590if test -z "$ac_cpp_err"; then 14591 ac_header_preproc=yes 14592else 14593 echo "$as_me: failed program was:" >&5 14594sed 's/^/| /' conftest.$ac_ext >&5 14595 14596 ac_header_preproc=no 14597fi 14598 14599rm -f conftest.err conftest.$ac_ext 14600{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14601echo "${ECHO_T}$ac_header_preproc" >&6; } 14602 14603# So? What about this header? 14604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14605 yes:no: ) 14606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14610 ac_header_preproc=yes 14611 ;; 14612 no:yes:* ) 14613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14625 ( cat <<\_ASBOX 14626## ----------------------------------- ## 14627## Report this to llvmbugs@cs.uiuc.edu ## 14628## ----------------------------------- ## 14629_ASBOX 14630 ) | sed "s/^/$as_me: WARNING: /" >&2 14631 ;; 14632esac 14633{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14636 echo $ECHO_N "(cached) $ECHO_C" >&6 14637else 14638 eval "$as_ac_Header=\$ac_header_preproc" 14639fi 14640ac_res=`eval echo '${'$as_ac_Header'}'` 14641 { echo "$as_me:$LINENO: result: $ac_res" >&5 14642echo "${ECHO_T}$ac_res" >&6; } 14643 14644fi 14645if test `eval echo '${'$as_ac_Header'}'` = yes; then 14646 cat >>confdefs.h <<_ACEOF 14647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14648_ACEOF 14649 14650fi 14651 14652done 14653 14654 14655 14656for ac_header in utime.h windows.h 14657do 14658as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14659if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14660 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14663 echo $ECHO_N "(cached) $ECHO_C" >&6 14664fi 14665ac_res=`eval echo '${'$as_ac_Header'}'` 14666 { echo "$as_me:$LINENO: result: $ac_res" >&5 14667echo "${ECHO_T}$ac_res" >&6; } 14668else 14669 # Is the header compilable? 14670{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14671echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14672cat >conftest.$ac_ext <<_ACEOF 14673/* confdefs.h. */ 14674_ACEOF 14675cat confdefs.h >>conftest.$ac_ext 14676cat >>conftest.$ac_ext <<_ACEOF 14677/* end confdefs.h. */ 14678$ac_includes_default 14679#include <$ac_header> 14680_ACEOF 14681rm -f conftest.$ac_objext 14682if { (ac_try="$ac_compile" 14683case "(($ac_try" in 14684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14685 *) ac_try_echo=$ac_try;; 14686esac 14687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14688 (eval "$ac_compile") 2>conftest.er1 14689 ac_status=$? 14690 grep -v '^ *+' conftest.er1 >conftest.err 14691 rm -f conftest.er1 14692 cat conftest.err >&5 14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14694 (exit $ac_status); } && 14695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14696 { (case "(($ac_try" in 14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14698 *) ac_try_echo=$ac_try;; 14699esac 14700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14701 (eval "$ac_try") 2>&5 14702 ac_status=$? 14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14704 (exit $ac_status); }; } && 14705 { ac_try='test -s conftest.$ac_objext' 14706 { (case "(($ac_try" in 14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14708 *) ac_try_echo=$ac_try;; 14709esac 14710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14711 (eval "$ac_try") 2>&5 14712 ac_status=$? 14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14714 (exit $ac_status); }; }; then 14715 ac_header_compiler=yes 14716else 14717 echo "$as_me: failed program was:" >&5 14718sed 's/^/| /' conftest.$ac_ext >&5 14719 14720 ac_header_compiler=no 14721fi 14722 14723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14724{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14725echo "${ECHO_T}$ac_header_compiler" >&6; } 14726 14727# Is the header present? 14728{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14729echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14730cat >conftest.$ac_ext <<_ACEOF 14731/* confdefs.h. */ 14732_ACEOF 14733cat confdefs.h >>conftest.$ac_ext 14734cat >>conftest.$ac_ext <<_ACEOF 14735/* end confdefs.h. */ 14736#include <$ac_header> 14737_ACEOF 14738if { (ac_try="$ac_cpp conftest.$ac_ext" 14739case "(($ac_try" in 14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14741 *) ac_try_echo=$ac_try;; 14742esac 14743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14745 ac_status=$? 14746 grep -v '^ *+' conftest.er1 >conftest.err 14747 rm -f conftest.er1 14748 cat conftest.err >&5 14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14750 (exit $ac_status); } >/dev/null; then 14751 if test -s conftest.err; then 14752 ac_cpp_err=$ac_c_preproc_warn_flag 14753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14754 else 14755 ac_cpp_err= 14756 fi 14757else 14758 ac_cpp_err=yes 14759fi 14760if test -z "$ac_cpp_err"; then 14761 ac_header_preproc=yes 14762else 14763 echo "$as_me: failed program was:" >&5 14764sed 's/^/| /' conftest.$ac_ext >&5 14765 14766 ac_header_preproc=no 14767fi 14768 14769rm -f conftest.err conftest.$ac_ext 14770{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14771echo "${ECHO_T}$ac_header_preproc" >&6; } 14772 14773# So? What about this header? 14774case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14775 yes:no: ) 14776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14780 ac_header_preproc=yes 14781 ;; 14782 no:yes:* ) 14783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14786echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14790echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14795 ( cat <<\_ASBOX 14796## ----------------------------------- ## 14797## Report this to llvmbugs@cs.uiuc.edu ## 14798## ----------------------------------- ## 14799_ASBOX 14800 ) | sed "s/^/$as_me: WARNING: /" >&2 14801 ;; 14802esac 14803{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14805if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14806 echo $ECHO_N "(cached) $ECHO_C" >&6 14807else 14808 eval "$as_ac_Header=\$ac_header_preproc" 14809fi 14810ac_res=`eval echo '${'$as_ac_Header'}'` 14811 { echo "$as_me:$LINENO: result: $ac_res" >&5 14812echo "${ECHO_T}$ac_res" >&6; } 14813 14814fi 14815if test `eval echo '${'$as_ac_Header'}'` = yes; then 14816 cat >>confdefs.h <<_ACEOF 14817#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14818_ACEOF 14819 14820fi 14821 14822done 14823 14824 14825 14826 14827 14828 14829for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 14830do 14831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14833 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14836 echo $ECHO_N "(cached) $ECHO_C" >&6 14837fi 14838ac_res=`eval echo '${'$as_ac_Header'}'` 14839 { echo "$as_me:$LINENO: result: $ac_res" >&5 14840echo "${ECHO_T}$ac_res" >&6; } 14841else 14842 # Is the header compilable? 14843{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14845cat >conftest.$ac_ext <<_ACEOF 14846/* confdefs.h. */ 14847_ACEOF 14848cat confdefs.h >>conftest.$ac_ext 14849cat >>conftest.$ac_ext <<_ACEOF 14850/* end confdefs.h. */ 14851$ac_includes_default 14852#include <$ac_header> 14853_ACEOF 14854rm -f conftest.$ac_objext 14855if { (ac_try="$ac_compile" 14856case "(($ac_try" in 14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14858 *) ac_try_echo=$ac_try;; 14859esac 14860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14861 (eval "$ac_compile") 2>conftest.er1 14862 ac_status=$? 14863 grep -v '^ *+' conftest.er1 >conftest.err 14864 rm -f conftest.er1 14865 cat conftest.err >&5 14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14867 (exit $ac_status); } && 14868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14869 { (case "(($ac_try" in 14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14871 *) ac_try_echo=$ac_try;; 14872esac 14873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14874 (eval "$ac_try") 2>&5 14875 ac_status=$? 14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14877 (exit $ac_status); }; } && 14878 { ac_try='test -s conftest.$ac_objext' 14879 { (case "(($ac_try" in 14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14881 *) ac_try_echo=$ac_try;; 14882esac 14883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14884 (eval "$ac_try") 2>&5 14885 ac_status=$? 14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14887 (exit $ac_status); }; }; then 14888 ac_header_compiler=yes 14889else 14890 echo "$as_me: failed program was:" >&5 14891sed 's/^/| /' conftest.$ac_ext >&5 14892 14893 ac_header_compiler=no 14894fi 14895 14896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14898echo "${ECHO_T}$ac_header_compiler" >&6; } 14899 14900# Is the header present? 14901{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14903cat >conftest.$ac_ext <<_ACEOF 14904/* confdefs.h. */ 14905_ACEOF 14906cat confdefs.h >>conftest.$ac_ext 14907cat >>conftest.$ac_ext <<_ACEOF 14908/* end confdefs.h. */ 14909#include <$ac_header> 14910_ACEOF 14911if { (ac_try="$ac_cpp conftest.$ac_ext" 14912case "(($ac_try" in 14913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14914 *) ac_try_echo=$ac_try;; 14915esac 14916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14918 ac_status=$? 14919 grep -v '^ *+' conftest.er1 >conftest.err 14920 rm -f conftest.er1 14921 cat conftest.err >&5 14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14923 (exit $ac_status); } >/dev/null; then 14924 if test -s conftest.err; then 14925 ac_cpp_err=$ac_c_preproc_warn_flag 14926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14927 else 14928 ac_cpp_err= 14929 fi 14930else 14931 ac_cpp_err=yes 14932fi 14933if test -z "$ac_cpp_err"; then 14934 ac_header_preproc=yes 14935else 14936 echo "$as_me: failed program was:" >&5 14937sed 's/^/| /' conftest.$ac_ext >&5 14938 14939 ac_header_preproc=no 14940fi 14941 14942rm -f conftest.err conftest.$ac_ext 14943{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14944echo "${ECHO_T}$ac_header_preproc" >&6; } 14945 14946# So? What about this header? 14947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14948 yes:no: ) 14949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14953 ac_header_preproc=yes 14954 ;; 14955 no:yes:* ) 14956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14963echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14968 ( cat <<\_ASBOX 14969## ----------------------------------- ## 14970## Report this to llvmbugs@cs.uiuc.edu ## 14971## ----------------------------------- ## 14972_ASBOX 14973 ) | sed "s/^/$as_me: WARNING: /" >&2 14974 ;; 14975esac 14976{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14979 echo $ECHO_N "(cached) $ECHO_C" >&6 14980else 14981 eval "$as_ac_Header=\$ac_header_preproc" 14982fi 14983ac_res=`eval echo '${'$as_ac_Header'}'` 14984 { echo "$as_me:$LINENO: result: $ac_res" >&5 14985echo "${ECHO_T}$ac_res" >&6; } 14986 14987fi 14988if test `eval echo '${'$as_ac_Header'}'` = yes; then 14989 cat >>confdefs.h <<_ACEOF 14990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14991_ACEOF 14992 14993fi 14994 14995done 14996 14997 14998 14999 15000 15001for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 15002do 15003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15004if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15005 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15007if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15008 echo $ECHO_N "(cached) $ECHO_C" >&6 15009fi 15010ac_res=`eval echo '${'$as_ac_Header'}'` 15011 { echo "$as_me:$LINENO: result: $ac_res" >&5 15012echo "${ECHO_T}$ac_res" >&6; } 15013else 15014 # Is the header compilable? 15015{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15016echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15017cat >conftest.$ac_ext <<_ACEOF 15018/* confdefs.h. */ 15019_ACEOF 15020cat confdefs.h >>conftest.$ac_ext 15021cat >>conftest.$ac_ext <<_ACEOF 15022/* end confdefs.h. */ 15023$ac_includes_default 15024#include <$ac_header> 15025_ACEOF 15026rm -f conftest.$ac_objext 15027if { (ac_try="$ac_compile" 15028case "(($ac_try" in 15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15030 *) ac_try_echo=$ac_try;; 15031esac 15032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15033 (eval "$ac_compile") 2>conftest.er1 15034 ac_status=$? 15035 grep -v '^ *+' conftest.er1 >conftest.err 15036 rm -f conftest.er1 15037 cat conftest.err >&5 15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15039 (exit $ac_status); } && 15040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15041 { (case "(($ac_try" in 15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15043 *) ac_try_echo=$ac_try;; 15044esac 15045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15046 (eval "$ac_try") 2>&5 15047 ac_status=$? 15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15049 (exit $ac_status); }; } && 15050 { ac_try='test -s conftest.$ac_objext' 15051 { (case "(($ac_try" in 15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15053 *) ac_try_echo=$ac_try;; 15054esac 15055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15056 (eval "$ac_try") 2>&5 15057 ac_status=$? 15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15059 (exit $ac_status); }; }; then 15060 ac_header_compiler=yes 15061else 15062 echo "$as_me: failed program was:" >&5 15063sed 's/^/| /' conftest.$ac_ext >&5 15064 15065 ac_header_compiler=no 15066fi 15067 15068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15069{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15070echo "${ECHO_T}$ac_header_compiler" >&6; } 15071 15072# Is the header present? 15073{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15075cat >conftest.$ac_ext <<_ACEOF 15076/* confdefs.h. */ 15077_ACEOF 15078cat confdefs.h >>conftest.$ac_ext 15079cat >>conftest.$ac_ext <<_ACEOF 15080/* end confdefs.h. */ 15081#include <$ac_header> 15082_ACEOF 15083if { (ac_try="$ac_cpp conftest.$ac_ext" 15084case "(($ac_try" in 15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15086 *) ac_try_echo=$ac_try;; 15087esac 15088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15090 ac_status=$? 15091 grep -v '^ *+' conftest.er1 >conftest.err 15092 rm -f conftest.er1 15093 cat conftest.err >&5 15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15095 (exit $ac_status); } >/dev/null; then 15096 if test -s conftest.err; then 15097 ac_cpp_err=$ac_c_preproc_warn_flag 15098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15099 else 15100 ac_cpp_err= 15101 fi 15102else 15103 ac_cpp_err=yes 15104fi 15105if test -z "$ac_cpp_err"; then 15106 ac_header_preproc=yes 15107else 15108 echo "$as_me: failed program was:" >&5 15109sed 's/^/| /' conftest.$ac_ext >&5 15110 15111 ac_header_preproc=no 15112fi 15113 15114rm -f conftest.err conftest.$ac_ext 15115{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15116echo "${ECHO_T}$ac_header_preproc" >&6; } 15117 15118# So? What about this header? 15119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15120 yes:no: ) 15121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15125 ac_header_preproc=yes 15126 ;; 15127 no:yes:* ) 15128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15131echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15135echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15140 ( cat <<\_ASBOX 15141## ----------------------------------- ## 15142## Report this to llvmbugs@cs.uiuc.edu ## 15143## ----------------------------------- ## 15144_ASBOX 15145 ) | sed "s/^/$as_me: WARNING: /" >&2 15146 ;; 15147esac 15148{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15151 echo $ECHO_N "(cached) $ECHO_C" >&6 15152else 15153 eval "$as_ac_Header=\$ac_header_preproc" 15154fi 15155ac_res=`eval echo '${'$as_ac_Header'}'` 15156 { echo "$as_me:$LINENO: result: $ac_res" >&5 15157echo "${ECHO_T}$ac_res" >&6; } 15158 15159fi 15160if test `eval echo '${'$as_ac_Header'}'` = yes; then 15161 cat >>confdefs.h <<_ACEOF 15162#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15163_ACEOF 15164 15165fi 15166 15167done 15168 15169 15170for ac_header in valgrind/valgrind.h 15171do 15172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15174 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15176if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15177 echo $ECHO_N "(cached) $ECHO_C" >&6 15178fi 15179ac_res=`eval echo '${'$as_ac_Header'}'` 15180 { echo "$as_me:$LINENO: result: $ac_res" >&5 15181echo "${ECHO_T}$ac_res" >&6; } 15182else 15183 # Is the header compilable? 15184{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15186cat >conftest.$ac_ext <<_ACEOF 15187/* confdefs.h. */ 15188_ACEOF 15189cat confdefs.h >>conftest.$ac_ext 15190cat >>conftest.$ac_ext <<_ACEOF 15191/* end confdefs.h. */ 15192$ac_includes_default 15193#include <$ac_header> 15194_ACEOF 15195rm -f conftest.$ac_objext 15196if { (ac_try="$ac_compile" 15197case "(($ac_try" in 15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15199 *) ac_try_echo=$ac_try;; 15200esac 15201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15202 (eval "$ac_compile") 2>conftest.er1 15203 ac_status=$? 15204 grep -v '^ *+' conftest.er1 >conftest.err 15205 rm -f conftest.er1 15206 cat conftest.err >&5 15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15208 (exit $ac_status); } && 15209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15210 { (case "(($ac_try" in 15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15212 *) ac_try_echo=$ac_try;; 15213esac 15214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15215 (eval "$ac_try") 2>&5 15216 ac_status=$? 15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15218 (exit $ac_status); }; } && 15219 { ac_try='test -s conftest.$ac_objext' 15220 { (case "(($ac_try" in 15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15222 *) ac_try_echo=$ac_try;; 15223esac 15224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15225 (eval "$ac_try") 2>&5 15226 ac_status=$? 15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15228 (exit $ac_status); }; }; then 15229 ac_header_compiler=yes 15230else 15231 echo "$as_me: failed program was:" >&5 15232sed 's/^/| /' conftest.$ac_ext >&5 15233 15234 ac_header_compiler=no 15235fi 15236 15237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15238{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15239echo "${ECHO_T}$ac_header_compiler" >&6; } 15240 15241# Is the header present? 15242{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15243echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15244cat >conftest.$ac_ext <<_ACEOF 15245/* confdefs.h. */ 15246_ACEOF 15247cat confdefs.h >>conftest.$ac_ext 15248cat >>conftest.$ac_ext <<_ACEOF 15249/* end confdefs.h. */ 15250#include <$ac_header> 15251_ACEOF 15252if { (ac_try="$ac_cpp conftest.$ac_ext" 15253case "(($ac_try" in 15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15255 *) ac_try_echo=$ac_try;; 15256esac 15257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15259 ac_status=$? 15260 grep -v '^ *+' conftest.er1 >conftest.err 15261 rm -f conftest.er1 15262 cat conftest.err >&5 15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15264 (exit $ac_status); } >/dev/null; then 15265 if test -s conftest.err; then 15266 ac_cpp_err=$ac_c_preproc_warn_flag 15267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15268 else 15269 ac_cpp_err= 15270 fi 15271else 15272 ac_cpp_err=yes 15273fi 15274if test -z "$ac_cpp_err"; then 15275 ac_header_preproc=yes 15276else 15277 echo "$as_me: failed program was:" >&5 15278sed 's/^/| /' conftest.$ac_ext >&5 15279 15280 ac_header_preproc=no 15281fi 15282 15283rm -f conftest.err conftest.$ac_ext 15284{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15285echo "${ECHO_T}$ac_header_preproc" >&6; } 15286 15287# So? What about this header? 15288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15289 yes:no: ) 15290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15291echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15293echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15294 ac_header_preproc=yes 15295 ;; 15296 no:yes:* ) 15297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15298echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15300echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15302echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15304echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15308echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15309 ( cat <<\_ASBOX 15310## ----------------------------------- ## 15311## Report this to llvmbugs@cs.uiuc.edu ## 15312## ----------------------------------- ## 15313_ASBOX 15314 ) | sed "s/^/$as_me: WARNING: /" >&2 15315 ;; 15316esac 15317{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15320 echo $ECHO_N "(cached) $ECHO_C" >&6 15321else 15322 eval "$as_ac_Header=\$ac_header_preproc" 15323fi 15324ac_res=`eval echo '${'$as_ac_Header'}'` 15325 { echo "$as_me:$LINENO: result: $ac_res" >&5 15326echo "${ECHO_T}$ac_res" >&6; } 15327 15328fi 15329if test `eval echo '${'$as_ac_Header'}'` = yes; then 15330 cat >>confdefs.h <<_ACEOF 15331#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15332_ACEOF 15333 15334fi 15335 15336done 15337 15338 15339for ac_header in fenv.h 15340do 15341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15343 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15346 echo $ECHO_N "(cached) $ECHO_C" >&6 15347fi 15348ac_res=`eval echo '${'$as_ac_Header'}'` 15349 { echo "$as_me:$LINENO: result: $ac_res" >&5 15350echo "${ECHO_T}$ac_res" >&6; } 15351else 15352 # Is the header compilable? 15353{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15355cat >conftest.$ac_ext <<_ACEOF 15356/* confdefs.h. */ 15357_ACEOF 15358cat confdefs.h >>conftest.$ac_ext 15359cat >>conftest.$ac_ext <<_ACEOF 15360/* end confdefs.h. */ 15361$ac_includes_default 15362#include <$ac_header> 15363_ACEOF 15364rm -f conftest.$ac_objext 15365if { (ac_try="$ac_compile" 15366case "(($ac_try" in 15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15368 *) ac_try_echo=$ac_try;; 15369esac 15370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15371 (eval "$ac_compile") 2>conftest.er1 15372 ac_status=$? 15373 grep -v '^ *+' conftest.er1 >conftest.err 15374 rm -f conftest.er1 15375 cat conftest.err >&5 15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15377 (exit $ac_status); } && 15378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15379 { (case "(($ac_try" in 15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15381 *) ac_try_echo=$ac_try;; 15382esac 15383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15384 (eval "$ac_try") 2>&5 15385 ac_status=$? 15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15387 (exit $ac_status); }; } && 15388 { ac_try='test -s conftest.$ac_objext' 15389 { (case "(($ac_try" in 15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15391 *) ac_try_echo=$ac_try;; 15392esac 15393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15394 (eval "$ac_try") 2>&5 15395 ac_status=$? 15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15397 (exit $ac_status); }; }; then 15398 ac_header_compiler=yes 15399else 15400 echo "$as_me: failed program was:" >&5 15401sed 's/^/| /' conftest.$ac_ext >&5 15402 15403 ac_header_compiler=no 15404fi 15405 15406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15407{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15408echo "${ECHO_T}$ac_header_compiler" >&6; } 15409 15410# Is the header present? 15411{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15412echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15413cat >conftest.$ac_ext <<_ACEOF 15414/* confdefs.h. */ 15415_ACEOF 15416cat confdefs.h >>conftest.$ac_ext 15417cat >>conftest.$ac_ext <<_ACEOF 15418/* end confdefs.h. */ 15419#include <$ac_header> 15420_ACEOF 15421if { (ac_try="$ac_cpp conftest.$ac_ext" 15422case "(($ac_try" in 15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15424 *) ac_try_echo=$ac_try;; 15425esac 15426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15428 ac_status=$? 15429 grep -v '^ *+' conftest.er1 >conftest.err 15430 rm -f conftest.er1 15431 cat conftest.err >&5 15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15433 (exit $ac_status); } >/dev/null; then 15434 if test -s conftest.err; then 15435 ac_cpp_err=$ac_c_preproc_warn_flag 15436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15437 else 15438 ac_cpp_err= 15439 fi 15440else 15441 ac_cpp_err=yes 15442fi 15443if test -z "$ac_cpp_err"; then 15444 ac_header_preproc=yes 15445else 15446 echo "$as_me: failed program was:" >&5 15447sed 's/^/| /' conftest.$ac_ext >&5 15448 15449 ac_header_preproc=no 15450fi 15451 15452rm -f conftest.err conftest.$ac_ext 15453{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15454echo "${ECHO_T}$ac_header_preproc" >&6; } 15455 15456# So? What about this header? 15457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15458 yes:no: ) 15459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15460echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15462echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15463 ac_header_preproc=yes 15464 ;; 15465 no:yes:* ) 15466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15467echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15469echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15471echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15473echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15475echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15477echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15478 ( cat <<\_ASBOX 15479## ----------------------------------- ## 15480## Report this to llvmbugs@cs.uiuc.edu ## 15481## ----------------------------------- ## 15482_ASBOX 15483 ) | sed "s/^/$as_me: WARNING: /" >&2 15484 ;; 15485esac 15486{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15489 echo $ECHO_N "(cached) $ECHO_C" >&6 15490else 15491 eval "$as_ac_Header=\$ac_header_preproc" 15492fi 15493ac_res=`eval echo '${'$as_ac_Header'}'` 15494 { echo "$as_me:$LINENO: result: $ac_res" >&5 15495echo "${ECHO_T}$ac_res" >&6; } 15496 15497fi 15498if test `eval echo '${'$as_ac_Header'}'` = yes; then 15499 cat >>confdefs.h <<_ACEOF 15500#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15501_ACEOF 15502 15503fi 15504 15505done 15506 15507if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 15508 15509for ac_header in pthread.h 15510do 15511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15513 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15516 echo $ECHO_N "(cached) $ECHO_C" >&6 15517fi 15518ac_res=`eval echo '${'$as_ac_Header'}'` 15519 { echo "$as_me:$LINENO: result: $ac_res" >&5 15520echo "${ECHO_T}$ac_res" >&6; } 15521else 15522 # Is the header compilable? 15523{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15524echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15525cat >conftest.$ac_ext <<_ACEOF 15526/* confdefs.h. */ 15527_ACEOF 15528cat confdefs.h >>conftest.$ac_ext 15529cat >>conftest.$ac_ext <<_ACEOF 15530/* end confdefs.h. */ 15531$ac_includes_default 15532#include <$ac_header> 15533_ACEOF 15534rm -f conftest.$ac_objext 15535if { (ac_try="$ac_compile" 15536case "(($ac_try" in 15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15538 *) ac_try_echo=$ac_try;; 15539esac 15540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15541 (eval "$ac_compile") 2>conftest.er1 15542 ac_status=$? 15543 grep -v '^ *+' conftest.er1 >conftest.err 15544 rm -f conftest.er1 15545 cat conftest.err >&5 15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15547 (exit $ac_status); } && 15548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15549 { (case "(($ac_try" in 15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15551 *) ac_try_echo=$ac_try;; 15552esac 15553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15554 (eval "$ac_try") 2>&5 15555 ac_status=$? 15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15557 (exit $ac_status); }; } && 15558 { ac_try='test -s conftest.$ac_objext' 15559 { (case "(($ac_try" in 15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15561 *) ac_try_echo=$ac_try;; 15562esac 15563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15564 (eval "$ac_try") 2>&5 15565 ac_status=$? 15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15567 (exit $ac_status); }; }; then 15568 ac_header_compiler=yes 15569else 15570 echo "$as_me: failed program was:" >&5 15571sed 's/^/| /' conftest.$ac_ext >&5 15572 15573 ac_header_compiler=no 15574fi 15575 15576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15577{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15578echo "${ECHO_T}$ac_header_compiler" >&6; } 15579 15580# Is the header present? 15581{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15583cat >conftest.$ac_ext <<_ACEOF 15584/* confdefs.h. */ 15585_ACEOF 15586cat confdefs.h >>conftest.$ac_ext 15587cat >>conftest.$ac_ext <<_ACEOF 15588/* end confdefs.h. */ 15589#include <$ac_header> 15590_ACEOF 15591if { (ac_try="$ac_cpp conftest.$ac_ext" 15592case "(($ac_try" in 15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15594 *) ac_try_echo=$ac_try;; 15595esac 15596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15598 ac_status=$? 15599 grep -v '^ *+' conftest.er1 >conftest.err 15600 rm -f conftest.er1 15601 cat conftest.err >&5 15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15603 (exit $ac_status); } >/dev/null; then 15604 if test -s conftest.err; then 15605 ac_cpp_err=$ac_c_preproc_warn_flag 15606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15607 else 15608 ac_cpp_err= 15609 fi 15610else 15611 ac_cpp_err=yes 15612fi 15613if test -z "$ac_cpp_err"; then 15614 ac_header_preproc=yes 15615else 15616 echo "$as_me: failed program was:" >&5 15617sed 's/^/| /' conftest.$ac_ext >&5 15618 15619 ac_header_preproc=no 15620fi 15621 15622rm -f conftest.err conftest.$ac_ext 15623{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15624echo "${ECHO_T}$ac_header_preproc" >&6; } 15625 15626# So? What about this header? 15627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15628 yes:no: ) 15629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15633 ac_header_preproc=yes 15634 ;; 15635 no:yes:* ) 15636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15648 ( cat <<\_ASBOX 15649## ----------------------------------- ## 15650## Report this to llvmbugs@cs.uiuc.edu ## 15651## ----------------------------------- ## 15652_ASBOX 15653 ) | sed "s/^/$as_me: WARNING: /" >&2 15654 ;; 15655esac 15656{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15659 echo $ECHO_N "(cached) $ECHO_C" >&6 15660else 15661 eval "$as_ac_Header=\$ac_header_preproc" 15662fi 15663ac_res=`eval echo '${'$as_ac_Header'}'` 15664 { echo "$as_me:$LINENO: result: $ac_res" >&5 15665echo "${ECHO_T}$ac_res" >&6; } 15666 15667fi 15668if test `eval echo '${'$as_ac_Header'}'` = yes; then 15669 cat >>confdefs.h <<_ACEOF 15670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15671_ACEOF 15672 HAVE_PTHREAD=1 15673 15674else 15675 HAVE_PTHREAD=0 15676 15677fi 15678 15679done 15680 15681else 15682 HAVE_PTHREAD=0 15683 15684fi 15685 15686if test "$llvm_cv_enable_libffi" = "yes" ; then 15687 15688 15689for ac_header in ffi.h ffi/ffi.h 15690do 15691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15693 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15696 echo $ECHO_N "(cached) $ECHO_C" >&6 15697fi 15698ac_res=`eval echo '${'$as_ac_Header'}'` 15699 { echo "$as_me:$LINENO: result: $ac_res" >&5 15700echo "${ECHO_T}$ac_res" >&6; } 15701else 15702 # Is the header compilable? 15703{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15705cat >conftest.$ac_ext <<_ACEOF 15706/* confdefs.h. */ 15707_ACEOF 15708cat confdefs.h >>conftest.$ac_ext 15709cat >>conftest.$ac_ext <<_ACEOF 15710/* end confdefs.h. */ 15711$ac_includes_default 15712#include <$ac_header> 15713_ACEOF 15714rm -f conftest.$ac_objext 15715if { (ac_try="$ac_compile" 15716case "(($ac_try" in 15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15718 *) ac_try_echo=$ac_try;; 15719esac 15720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15721 (eval "$ac_compile") 2>conftest.er1 15722 ac_status=$? 15723 grep -v '^ *+' conftest.er1 >conftest.err 15724 rm -f conftest.er1 15725 cat conftest.err >&5 15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15727 (exit $ac_status); } && 15728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15729 { (case "(($ac_try" in 15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15731 *) ac_try_echo=$ac_try;; 15732esac 15733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15734 (eval "$ac_try") 2>&5 15735 ac_status=$? 15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15737 (exit $ac_status); }; } && 15738 { ac_try='test -s conftest.$ac_objext' 15739 { (case "(($ac_try" in 15740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15741 *) ac_try_echo=$ac_try;; 15742esac 15743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15744 (eval "$ac_try") 2>&5 15745 ac_status=$? 15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15747 (exit $ac_status); }; }; then 15748 ac_header_compiler=yes 15749else 15750 echo "$as_me: failed program was:" >&5 15751sed 's/^/| /' conftest.$ac_ext >&5 15752 15753 ac_header_compiler=no 15754fi 15755 15756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15757{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15758echo "${ECHO_T}$ac_header_compiler" >&6; } 15759 15760# Is the header present? 15761{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15763cat >conftest.$ac_ext <<_ACEOF 15764/* confdefs.h. */ 15765_ACEOF 15766cat confdefs.h >>conftest.$ac_ext 15767cat >>conftest.$ac_ext <<_ACEOF 15768/* end confdefs.h. */ 15769#include <$ac_header> 15770_ACEOF 15771if { (ac_try="$ac_cpp conftest.$ac_ext" 15772case "(($ac_try" in 15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15774 *) ac_try_echo=$ac_try;; 15775esac 15776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15778 ac_status=$? 15779 grep -v '^ *+' conftest.er1 >conftest.err 15780 rm -f conftest.er1 15781 cat conftest.err >&5 15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15783 (exit $ac_status); } >/dev/null; then 15784 if test -s conftest.err; then 15785 ac_cpp_err=$ac_c_preproc_warn_flag 15786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15787 else 15788 ac_cpp_err= 15789 fi 15790else 15791 ac_cpp_err=yes 15792fi 15793if test -z "$ac_cpp_err"; then 15794 ac_header_preproc=yes 15795else 15796 echo "$as_me: failed program was:" >&5 15797sed 's/^/| /' conftest.$ac_ext >&5 15798 15799 ac_header_preproc=no 15800fi 15801 15802rm -f conftest.err conftest.$ac_ext 15803{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15804echo "${ECHO_T}$ac_header_preproc" >&6; } 15805 15806# So? What about this header? 15807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15808 yes:no: ) 15809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15810echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15812echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15813 ac_header_preproc=yes 15814 ;; 15815 no:yes:* ) 15816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15817echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15819echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15821echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15823echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15827echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15828 ( cat <<\_ASBOX 15829## ----------------------------------- ## 15830## Report this to llvmbugs@cs.uiuc.edu ## 15831## ----------------------------------- ## 15832_ASBOX 15833 ) | sed "s/^/$as_me: WARNING: /" >&2 15834 ;; 15835esac 15836{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15839 echo $ECHO_N "(cached) $ECHO_C" >&6 15840else 15841 eval "$as_ac_Header=\$ac_header_preproc" 15842fi 15843ac_res=`eval echo '${'$as_ac_Header'}'` 15844 { echo "$as_me:$LINENO: result: $ac_res" >&5 15845echo "${ECHO_T}$ac_res" >&6; } 15846 15847fi 15848if test `eval echo '${'$as_ac_Header'}'` = yes; then 15849 cat >>confdefs.h <<_ACEOF 15850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15851_ACEOF 15852 15853fi 15854 15855done 15856 15857fi 15858 15859 15860for ac_header in CrashReporterClient.h 15861do 15862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15864 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15867 echo $ECHO_N "(cached) $ECHO_C" >&6 15868fi 15869ac_res=`eval echo '${'$as_ac_Header'}'` 15870 { echo "$as_me:$LINENO: result: $ac_res" >&5 15871echo "${ECHO_T}$ac_res" >&6; } 15872else 15873 # Is the header compilable? 15874{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15875echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15876cat >conftest.$ac_ext <<_ACEOF 15877/* confdefs.h. */ 15878_ACEOF 15879cat confdefs.h >>conftest.$ac_ext 15880cat >>conftest.$ac_ext <<_ACEOF 15881/* end confdefs.h. */ 15882$ac_includes_default 15883#include <$ac_header> 15884_ACEOF 15885rm -f conftest.$ac_objext 15886if { (ac_try="$ac_compile" 15887case "(($ac_try" in 15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15889 *) ac_try_echo=$ac_try;; 15890esac 15891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15892 (eval "$ac_compile") 2>conftest.er1 15893 ac_status=$? 15894 grep -v '^ *+' conftest.er1 >conftest.err 15895 rm -f conftest.er1 15896 cat conftest.err >&5 15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15898 (exit $ac_status); } && 15899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15900 { (case "(($ac_try" in 15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15902 *) ac_try_echo=$ac_try;; 15903esac 15904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15905 (eval "$ac_try") 2>&5 15906 ac_status=$? 15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15908 (exit $ac_status); }; } && 15909 { ac_try='test -s conftest.$ac_objext' 15910 { (case "(($ac_try" in 15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15912 *) ac_try_echo=$ac_try;; 15913esac 15914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15915 (eval "$ac_try") 2>&5 15916 ac_status=$? 15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15918 (exit $ac_status); }; }; then 15919 ac_header_compiler=yes 15920else 15921 echo "$as_me: failed program was:" >&5 15922sed 's/^/| /' conftest.$ac_ext >&5 15923 15924 ac_header_compiler=no 15925fi 15926 15927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15928{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15929echo "${ECHO_T}$ac_header_compiler" >&6; } 15930 15931# Is the header present? 15932{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15933echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15934cat >conftest.$ac_ext <<_ACEOF 15935/* confdefs.h. */ 15936_ACEOF 15937cat confdefs.h >>conftest.$ac_ext 15938cat >>conftest.$ac_ext <<_ACEOF 15939/* end confdefs.h. */ 15940#include <$ac_header> 15941_ACEOF 15942if { (ac_try="$ac_cpp conftest.$ac_ext" 15943case "(($ac_try" in 15944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15945 *) ac_try_echo=$ac_try;; 15946esac 15947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15949 ac_status=$? 15950 grep -v '^ *+' conftest.er1 >conftest.err 15951 rm -f conftest.er1 15952 cat conftest.err >&5 15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15954 (exit $ac_status); } >/dev/null; then 15955 if test -s conftest.err; then 15956 ac_cpp_err=$ac_c_preproc_warn_flag 15957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15958 else 15959 ac_cpp_err= 15960 fi 15961else 15962 ac_cpp_err=yes 15963fi 15964if test -z "$ac_cpp_err"; then 15965 ac_header_preproc=yes 15966else 15967 echo "$as_me: failed program was:" >&5 15968sed 's/^/| /' conftest.$ac_ext >&5 15969 15970 ac_header_preproc=no 15971fi 15972 15973rm -f conftest.err conftest.$ac_ext 15974{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15975echo "${ECHO_T}$ac_header_preproc" >&6; } 15976 15977# So? What about this header? 15978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15979 yes:no: ) 15980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15983echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15984 ac_header_preproc=yes 15985 ;; 15986 no:yes:* ) 15987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15988echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15990echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15992echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15994echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15998echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15999 ( cat <<\_ASBOX 16000## ----------------------------------- ## 16001## Report this to llvmbugs@cs.uiuc.edu ## 16002## ----------------------------------- ## 16003_ASBOX 16004 ) | sed "s/^/$as_me: WARNING: /" >&2 16005 ;; 16006esac 16007{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16010 echo $ECHO_N "(cached) $ECHO_C" >&6 16011else 16012 eval "$as_ac_Header=\$ac_header_preproc" 16013fi 16014ac_res=`eval echo '${'$as_ac_Header'}'` 16015 { echo "$as_me:$LINENO: result: $ac_res" >&5 16016echo "${ECHO_T}$ac_res" >&6; } 16017 16018fi 16019if test `eval echo '${'$as_ac_Header'}'` = yes; then 16020 cat >>confdefs.h <<_ACEOF 16021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16022_ACEOF 16023 16024fi 16025 16026done 16027 16028 16029{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 16030echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 16031cat >conftest.$ac_ext <<_ACEOF 16032/* confdefs.h. */ 16033_ACEOF 16034cat confdefs.h >>conftest.$ac_ext 16035cat >>conftest.$ac_ext <<_ACEOF 16036/* end confdefs.h. */ 16037extern const char *__crashreporter_info__; 16038 int main() { 16039 __crashreporter_info__ = "test"; 16040 return 0; 16041 } 16042 16043_ACEOF 16044rm -f conftest.$ac_objext conftest$ac_exeext 16045if { (ac_try="$ac_link" 16046case "(($ac_try" in 16047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16048 *) ac_try_echo=$ac_try;; 16049esac 16050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16051 (eval "$ac_link") 2>conftest.er1 16052 ac_status=$? 16053 grep -v '^ *+' conftest.er1 >conftest.err 16054 rm -f conftest.er1 16055 cat conftest.err >&5 16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16057 (exit $ac_status); } && 16058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16059 { (case "(($ac_try" in 16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16061 *) ac_try_echo=$ac_try;; 16062esac 16063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16064 (eval "$ac_try") 2>&5 16065 ac_status=$? 16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16067 (exit $ac_status); }; } && 16068 { ac_try='test -s conftest$ac_exeext' 16069 { (case "(($ac_try" in 16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16071 *) ac_try_echo=$ac_try;; 16072esac 16073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16074 (eval "$ac_try") 2>&5 16075 ac_status=$? 16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16077 (exit $ac_status); }; }; then 16078 { echo "$as_me:$LINENO: result: yes" >&5 16079echo "${ECHO_T}yes" >&6; } 16080 16081cat >>confdefs.h <<\_ACEOF 16082#define HAVE_CRASHREPORTER_INFO 1 16083_ACEOF 16084 16085else 16086 echo "$as_me: failed program was:" >&5 16087sed 's/^/| /' conftest.$ac_ext >&5 16088 16089 { echo "$as_me:$LINENO: result: no" >&5 16090echo "${ECHO_T}no" >&6; } 16091 16092cat >>confdefs.h <<\_ACEOF 16093#define HAVE_CRASHREPORTER_INFO 0 16094_ACEOF 16095 16096fi 16097 16098rm -f core conftest.err conftest.$ac_objext \ 16099 conftest$ac_exeext conftest.$ac_ext 16100 16101 16102 16103 16104 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 16105echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 16106if test "${ac_cv_huge_val_sanity+set}" = set; then 16107 echo $ECHO_N "(cached) $ECHO_C" >&6 16108else 16109 16110 ac_ext=cpp 16111ac_cpp='$CXXCPP $CPPFLAGS' 16112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16115 16116 ac_save_CXXFLAGS=$CXXFLAGS 16117 CXXFLAGS=-pedantic 16118 if test "$cross_compiling" = yes; then 16119 ac_cv_huge_val_sanity=yes 16120else 16121 cat >conftest.$ac_ext <<_ACEOF 16122/* confdefs.h. */ 16123_ACEOF 16124cat confdefs.h >>conftest.$ac_ext 16125cat >>conftest.$ac_ext <<_ACEOF 16126/* end confdefs.h. */ 16127#include <math.h> 16128int 16129main () 16130{ 16131double x = HUGE_VAL; return x != x; 16132 ; 16133 return 0; 16134} 16135_ACEOF 16136rm -f conftest$ac_exeext 16137if { (ac_try="$ac_link" 16138case "(($ac_try" in 16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16140 *) ac_try_echo=$ac_try;; 16141esac 16142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16143 (eval "$ac_link") 2>&5 16144 ac_status=$? 16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16147 { (case "(($ac_try" in 16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16149 *) ac_try_echo=$ac_try;; 16150esac 16151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16152 (eval "$ac_try") 2>&5 16153 ac_status=$? 16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16155 (exit $ac_status); }; }; then 16156 ac_cv_huge_val_sanity=yes 16157else 16158 echo "$as_me: program exited with status $ac_status" >&5 16159echo "$as_me: failed program was:" >&5 16160sed 's/^/| /' conftest.$ac_ext >&5 16161 16162( exit $ac_status ) 16163ac_cv_huge_val_sanity=no 16164fi 16165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16166fi 16167 16168 16169 CXXFLAGS=$ac_save_CXXFLAGS 16170 ac_ext=c 16171ac_cpp='$CPP $CPPFLAGS' 16172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16174ac_compiler_gnu=$ac_cv_c_compiler_gnu 16175 16176 16177fi 16178{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16179echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16180 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16181 16182 16183{ echo "$as_me:$LINENO: checking for pid_t" >&5 16184echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16185if test "${ac_cv_type_pid_t+set}" = set; then 16186 echo $ECHO_N "(cached) $ECHO_C" >&6 16187else 16188 cat >conftest.$ac_ext <<_ACEOF 16189/* confdefs.h. */ 16190_ACEOF 16191cat confdefs.h >>conftest.$ac_ext 16192cat >>conftest.$ac_ext <<_ACEOF 16193/* end confdefs.h. */ 16194$ac_includes_default 16195typedef pid_t ac__type_new_; 16196int 16197main () 16198{ 16199if ((ac__type_new_ *) 0) 16200 return 0; 16201if (sizeof (ac__type_new_)) 16202 return 0; 16203 ; 16204 return 0; 16205} 16206_ACEOF 16207rm -f conftest.$ac_objext 16208if { (ac_try="$ac_compile" 16209case "(($ac_try" in 16210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16211 *) ac_try_echo=$ac_try;; 16212esac 16213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16214 (eval "$ac_compile") 2>conftest.er1 16215 ac_status=$? 16216 grep -v '^ *+' conftest.er1 >conftest.err 16217 rm -f conftest.er1 16218 cat conftest.err >&5 16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16220 (exit $ac_status); } && 16221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16222 { (case "(($ac_try" in 16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16224 *) ac_try_echo=$ac_try;; 16225esac 16226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16227 (eval "$ac_try") 2>&5 16228 ac_status=$? 16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16230 (exit $ac_status); }; } && 16231 { ac_try='test -s conftest.$ac_objext' 16232 { (case "(($ac_try" in 16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16234 *) ac_try_echo=$ac_try;; 16235esac 16236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16237 (eval "$ac_try") 2>&5 16238 ac_status=$? 16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16240 (exit $ac_status); }; }; then 16241 ac_cv_type_pid_t=yes 16242else 16243 echo "$as_me: failed program was:" >&5 16244sed 's/^/| /' conftest.$ac_ext >&5 16245 16246 ac_cv_type_pid_t=no 16247fi 16248 16249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16250fi 16251{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16252echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16253if test $ac_cv_type_pid_t = yes; then 16254 : 16255else 16256 16257cat >>confdefs.h <<_ACEOF 16258#define pid_t int 16259_ACEOF 16260 16261fi 16262 16263{ echo "$as_me:$LINENO: checking for size_t" >&5 16264echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 16265if test "${ac_cv_type_size_t+set}" = set; then 16266 echo $ECHO_N "(cached) $ECHO_C" >&6 16267else 16268 cat >conftest.$ac_ext <<_ACEOF 16269/* confdefs.h. */ 16270_ACEOF 16271cat confdefs.h >>conftest.$ac_ext 16272cat >>conftest.$ac_ext <<_ACEOF 16273/* end confdefs.h. */ 16274$ac_includes_default 16275typedef size_t ac__type_new_; 16276int 16277main () 16278{ 16279if ((ac__type_new_ *) 0) 16280 return 0; 16281if (sizeof (ac__type_new_)) 16282 return 0; 16283 ; 16284 return 0; 16285} 16286_ACEOF 16287rm -f conftest.$ac_objext 16288if { (ac_try="$ac_compile" 16289case "(($ac_try" in 16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16291 *) ac_try_echo=$ac_try;; 16292esac 16293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16294 (eval "$ac_compile") 2>conftest.er1 16295 ac_status=$? 16296 grep -v '^ *+' conftest.er1 >conftest.err 16297 rm -f conftest.er1 16298 cat conftest.err >&5 16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16300 (exit $ac_status); } && 16301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16302 { (case "(($ac_try" in 16303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16304 *) ac_try_echo=$ac_try;; 16305esac 16306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16307 (eval "$ac_try") 2>&5 16308 ac_status=$? 16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16310 (exit $ac_status); }; } && 16311 { ac_try='test -s conftest.$ac_objext' 16312 { (case "(($ac_try" in 16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16314 *) ac_try_echo=$ac_try;; 16315esac 16316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16317 (eval "$ac_try") 2>&5 16318 ac_status=$? 16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16320 (exit $ac_status); }; }; then 16321 ac_cv_type_size_t=yes 16322else 16323 echo "$as_me: failed program was:" >&5 16324sed 's/^/| /' conftest.$ac_ext >&5 16325 16326 ac_cv_type_size_t=no 16327fi 16328 16329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16330fi 16331{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16332echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 16333if test $ac_cv_type_size_t = yes; then 16334 : 16335else 16336 16337cat >>confdefs.h <<_ACEOF 16338#define size_t unsigned int 16339_ACEOF 16340 16341fi 16342 16343 16344cat >>confdefs.h <<_ACEOF 16345#define RETSIGTYPE void 16346_ACEOF 16347 16348{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 16349echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 16350if test "${ac_cv_struct_tm+set}" = set; then 16351 echo $ECHO_N "(cached) $ECHO_C" >&6 16352else 16353 cat >conftest.$ac_ext <<_ACEOF 16354/* confdefs.h. */ 16355_ACEOF 16356cat confdefs.h >>conftest.$ac_ext 16357cat >>conftest.$ac_ext <<_ACEOF 16358/* end confdefs.h. */ 16359#include <sys/types.h> 16360#include <time.h> 16361 16362int 16363main () 16364{ 16365struct tm *tp; tp->tm_sec; 16366 ; 16367 return 0; 16368} 16369_ACEOF 16370rm -f conftest.$ac_objext 16371if { (ac_try="$ac_compile" 16372case "(($ac_try" in 16373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16374 *) ac_try_echo=$ac_try;; 16375esac 16376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16377 (eval "$ac_compile") 2>conftest.er1 16378 ac_status=$? 16379 grep -v '^ *+' conftest.er1 >conftest.err 16380 rm -f conftest.er1 16381 cat conftest.err >&5 16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16383 (exit $ac_status); } && 16384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16385 { (case "(($ac_try" in 16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16387 *) ac_try_echo=$ac_try;; 16388esac 16389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16390 (eval "$ac_try") 2>&5 16391 ac_status=$? 16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16393 (exit $ac_status); }; } && 16394 { ac_try='test -s conftest.$ac_objext' 16395 { (case "(($ac_try" in 16396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16397 *) ac_try_echo=$ac_try;; 16398esac 16399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16400 (eval "$ac_try") 2>&5 16401 ac_status=$? 16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16403 (exit $ac_status); }; }; then 16404 ac_cv_struct_tm=time.h 16405else 16406 echo "$as_me: failed program was:" >&5 16407sed 's/^/| /' conftest.$ac_ext >&5 16408 16409 ac_cv_struct_tm=sys/time.h 16410fi 16411 16412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16413fi 16414{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 16415echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 16416if test $ac_cv_struct_tm = sys/time.h; then 16417 16418cat >>confdefs.h <<\_ACEOF 16419#define TM_IN_SYS_TIME 1 16420_ACEOF 16421 16422fi 16423 16424{ echo "$as_me:$LINENO: checking for int64_t" >&5 16425echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 16426if test "${ac_cv_type_int64_t+set}" = set; then 16427 echo $ECHO_N "(cached) $ECHO_C" >&6 16428else 16429 cat >conftest.$ac_ext <<_ACEOF 16430/* confdefs.h. */ 16431_ACEOF 16432cat confdefs.h >>conftest.$ac_ext 16433cat >>conftest.$ac_ext <<_ACEOF 16434/* end confdefs.h. */ 16435$ac_includes_default 16436typedef int64_t ac__type_new_; 16437int 16438main () 16439{ 16440if ((ac__type_new_ *) 0) 16441 return 0; 16442if (sizeof (ac__type_new_)) 16443 return 0; 16444 ; 16445 return 0; 16446} 16447_ACEOF 16448rm -f conftest.$ac_objext 16449if { (ac_try="$ac_compile" 16450case "(($ac_try" in 16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16452 *) ac_try_echo=$ac_try;; 16453esac 16454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16455 (eval "$ac_compile") 2>conftest.er1 16456 ac_status=$? 16457 grep -v '^ *+' conftest.er1 >conftest.err 16458 rm -f conftest.er1 16459 cat conftest.err >&5 16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16461 (exit $ac_status); } && 16462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16463 { (case "(($ac_try" in 16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16465 *) ac_try_echo=$ac_try;; 16466esac 16467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16468 (eval "$ac_try") 2>&5 16469 ac_status=$? 16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16471 (exit $ac_status); }; } && 16472 { ac_try='test -s conftest.$ac_objext' 16473 { (case "(($ac_try" in 16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16475 *) ac_try_echo=$ac_try;; 16476esac 16477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16478 (eval "$ac_try") 2>&5 16479 ac_status=$? 16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16481 (exit $ac_status); }; }; then 16482 ac_cv_type_int64_t=yes 16483else 16484 echo "$as_me: failed program was:" >&5 16485sed 's/^/| /' conftest.$ac_ext >&5 16486 16487 ac_cv_type_int64_t=no 16488fi 16489 16490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16491fi 16492{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 16493echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 16494if test $ac_cv_type_int64_t = yes; then 16495 16496cat >>confdefs.h <<_ACEOF 16497#define HAVE_INT64_T 1 16498_ACEOF 16499 16500 16501else 16502 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 16503echo "$as_me: error: Type int64_t required but not found" >&2;} 16504 { (exit 1); exit 1; }; } 16505fi 16506 16507{ echo "$as_me:$LINENO: checking for uint64_t" >&5 16508echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 16509if test "${ac_cv_type_uint64_t+set}" = set; then 16510 echo $ECHO_N "(cached) $ECHO_C" >&6 16511else 16512 cat >conftest.$ac_ext <<_ACEOF 16513/* confdefs.h. */ 16514_ACEOF 16515cat confdefs.h >>conftest.$ac_ext 16516cat >>conftest.$ac_ext <<_ACEOF 16517/* end confdefs.h. */ 16518$ac_includes_default 16519typedef uint64_t ac__type_new_; 16520int 16521main () 16522{ 16523if ((ac__type_new_ *) 0) 16524 return 0; 16525if (sizeof (ac__type_new_)) 16526 return 0; 16527 ; 16528 return 0; 16529} 16530_ACEOF 16531rm -f conftest.$ac_objext 16532if { (ac_try="$ac_compile" 16533case "(($ac_try" in 16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16535 *) ac_try_echo=$ac_try;; 16536esac 16537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16538 (eval "$ac_compile") 2>conftest.er1 16539 ac_status=$? 16540 grep -v '^ *+' conftest.er1 >conftest.err 16541 rm -f conftest.er1 16542 cat conftest.err >&5 16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16544 (exit $ac_status); } && 16545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16546 { (case "(($ac_try" in 16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16548 *) ac_try_echo=$ac_try;; 16549esac 16550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16551 (eval "$ac_try") 2>&5 16552 ac_status=$? 16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16554 (exit $ac_status); }; } && 16555 { ac_try='test -s conftest.$ac_objext' 16556 { (case "(($ac_try" in 16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16558 *) ac_try_echo=$ac_try;; 16559esac 16560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16561 (eval "$ac_try") 2>&5 16562 ac_status=$? 16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16564 (exit $ac_status); }; }; then 16565 ac_cv_type_uint64_t=yes 16566else 16567 echo "$as_me: failed program was:" >&5 16568sed 's/^/| /' conftest.$ac_ext >&5 16569 16570 ac_cv_type_uint64_t=no 16571fi 16572 16573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16574fi 16575{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 16576echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 16577if test $ac_cv_type_uint64_t = yes; then 16578 16579cat >>confdefs.h <<_ACEOF 16580#define HAVE_UINT64_T 1 16581_ACEOF 16582 16583 16584else 16585 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 16586echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 16587if test "${ac_cv_type_u_int64_t+set}" = set; then 16588 echo $ECHO_N "(cached) $ECHO_C" >&6 16589else 16590 cat >conftest.$ac_ext <<_ACEOF 16591/* confdefs.h. */ 16592_ACEOF 16593cat confdefs.h >>conftest.$ac_ext 16594cat >>conftest.$ac_ext <<_ACEOF 16595/* end confdefs.h. */ 16596$ac_includes_default 16597typedef u_int64_t ac__type_new_; 16598int 16599main () 16600{ 16601if ((ac__type_new_ *) 0) 16602 return 0; 16603if (sizeof (ac__type_new_)) 16604 return 0; 16605 ; 16606 return 0; 16607} 16608_ACEOF 16609rm -f conftest.$ac_objext 16610if { (ac_try="$ac_compile" 16611case "(($ac_try" in 16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16613 *) ac_try_echo=$ac_try;; 16614esac 16615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16616 (eval "$ac_compile") 2>conftest.er1 16617 ac_status=$? 16618 grep -v '^ *+' conftest.er1 >conftest.err 16619 rm -f conftest.er1 16620 cat conftest.err >&5 16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16622 (exit $ac_status); } && 16623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16624 { (case "(($ac_try" in 16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16626 *) ac_try_echo=$ac_try;; 16627esac 16628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16629 (eval "$ac_try") 2>&5 16630 ac_status=$? 16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16632 (exit $ac_status); }; } && 16633 { ac_try='test -s conftest.$ac_objext' 16634 { (case "(($ac_try" in 16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16636 *) ac_try_echo=$ac_try;; 16637esac 16638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16639 (eval "$ac_try") 2>&5 16640 ac_status=$? 16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16642 (exit $ac_status); }; }; then 16643 ac_cv_type_u_int64_t=yes 16644else 16645 echo "$as_me: failed program was:" >&5 16646sed 's/^/| /' conftest.$ac_ext >&5 16647 16648 ac_cv_type_u_int64_t=no 16649fi 16650 16651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16652fi 16653{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 16654echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 16655if test $ac_cv_type_u_int64_t = yes; then 16656 16657cat >>confdefs.h <<_ACEOF 16658#define HAVE_U_INT64_T 1 16659_ACEOF 16660 16661 16662else 16663 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 16664echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 16665 { (exit 1); exit 1; }; } 16666fi 16667 16668fi 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 16680do 16681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16682{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16684if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16685 echo $ECHO_N "(cached) $ECHO_C" >&6 16686else 16687 cat >conftest.$ac_ext <<_ACEOF 16688/* confdefs.h. */ 16689_ACEOF 16690cat confdefs.h >>conftest.$ac_ext 16691cat >>conftest.$ac_ext <<_ACEOF 16692/* end confdefs.h. */ 16693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16694 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16695#define $ac_func innocuous_$ac_func 16696 16697/* System header to define __stub macros and hopefully few prototypes, 16698 which can conflict with char $ac_func (); below. 16699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16700 <limits.h> exists even on freestanding compilers. */ 16701 16702#ifdef __STDC__ 16703# include <limits.h> 16704#else 16705# include <assert.h> 16706#endif 16707 16708#undef $ac_func 16709 16710/* Override any GCC internal prototype to avoid an error. 16711 Use char because int might match the return type of a GCC 16712 builtin and then its argument prototype would still apply. */ 16713#ifdef __cplusplus 16714extern "C" 16715#endif 16716char $ac_func (); 16717/* The GNU C library defines this for functions which it implements 16718 to always fail with ENOSYS. Some functions are actually named 16719 something starting with __ and the normal name is an alias. */ 16720#if defined __stub_$ac_func || defined __stub___$ac_func 16721choke me 16722#endif 16723 16724int 16725main () 16726{ 16727return $ac_func (); 16728 ; 16729 return 0; 16730} 16731_ACEOF 16732rm -f conftest.$ac_objext conftest$ac_exeext 16733if { (ac_try="$ac_link" 16734case "(($ac_try" in 16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16736 *) ac_try_echo=$ac_try;; 16737esac 16738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16739 (eval "$ac_link") 2>conftest.er1 16740 ac_status=$? 16741 grep -v '^ *+' conftest.er1 >conftest.err 16742 rm -f conftest.er1 16743 cat conftest.err >&5 16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16745 (exit $ac_status); } && 16746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16747 { (case "(($ac_try" in 16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16749 *) ac_try_echo=$ac_try;; 16750esac 16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16752 (eval "$ac_try") 2>&5 16753 ac_status=$? 16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16755 (exit $ac_status); }; } && 16756 { ac_try='test -s conftest$ac_exeext' 16757 { (case "(($ac_try" in 16758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16759 *) ac_try_echo=$ac_try;; 16760esac 16761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16762 (eval "$ac_try") 2>&5 16763 ac_status=$? 16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16765 (exit $ac_status); }; }; then 16766 eval "$as_ac_var=yes" 16767else 16768 echo "$as_me: failed program was:" >&5 16769sed 's/^/| /' conftest.$ac_ext >&5 16770 16771 eval "$as_ac_var=no" 16772fi 16773 16774rm -f core conftest.err conftest.$ac_objext \ 16775 conftest$ac_exeext conftest.$ac_ext 16776fi 16777ac_res=`eval echo '${'$as_ac_var'}'` 16778 { echo "$as_me:$LINENO: result: $ac_res" >&5 16779echo "${ECHO_T}$ac_res" >&6; } 16780if test `eval echo '${'$as_ac_var'}'` = yes; then 16781 cat >>confdefs.h <<_ACEOF 16782#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16783_ACEOF 16784 16785fi 16786done 16787 16788 16789 16790 16791 16792for ac_func in powf fmodf strtof round 16793do 16794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16795{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16797if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16798 echo $ECHO_N "(cached) $ECHO_C" >&6 16799else 16800 cat >conftest.$ac_ext <<_ACEOF 16801/* confdefs.h. */ 16802_ACEOF 16803cat confdefs.h >>conftest.$ac_ext 16804cat >>conftest.$ac_ext <<_ACEOF 16805/* end confdefs.h. */ 16806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16807 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16808#define $ac_func innocuous_$ac_func 16809 16810/* System header to define __stub macros and hopefully few prototypes, 16811 which can conflict with char $ac_func (); below. 16812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16813 <limits.h> exists even on freestanding compilers. */ 16814 16815#ifdef __STDC__ 16816# include <limits.h> 16817#else 16818# include <assert.h> 16819#endif 16820 16821#undef $ac_func 16822 16823/* Override any GCC internal prototype to avoid an error. 16824 Use char because int might match the return type of a GCC 16825 builtin and then its argument prototype would still apply. */ 16826#ifdef __cplusplus 16827extern "C" 16828#endif 16829char $ac_func (); 16830/* The GNU C library defines this for functions which it implements 16831 to always fail with ENOSYS. Some functions are actually named 16832 something starting with __ and the normal name is an alias. */ 16833#if defined __stub_$ac_func || defined __stub___$ac_func 16834choke me 16835#endif 16836 16837int 16838main () 16839{ 16840return $ac_func (); 16841 ; 16842 return 0; 16843} 16844_ACEOF 16845rm -f conftest.$ac_objext conftest$ac_exeext 16846if { (ac_try="$ac_link" 16847case "(($ac_try" in 16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16849 *) ac_try_echo=$ac_try;; 16850esac 16851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16852 (eval "$ac_link") 2>conftest.er1 16853 ac_status=$? 16854 grep -v '^ *+' conftest.er1 >conftest.err 16855 rm -f conftest.er1 16856 cat conftest.err >&5 16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16858 (exit $ac_status); } && 16859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 16869 { ac_try='test -s conftest$ac_exeext' 16870 { (case "(($ac_try" in 16871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16872 *) ac_try_echo=$ac_try;; 16873esac 16874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16875 (eval "$ac_try") 2>&5 16876 ac_status=$? 16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16878 (exit $ac_status); }; }; then 16879 eval "$as_ac_var=yes" 16880else 16881 echo "$as_me: failed program was:" >&5 16882sed 's/^/| /' conftest.$ac_ext >&5 16883 16884 eval "$as_ac_var=no" 16885fi 16886 16887rm -f core conftest.err conftest.$ac_objext \ 16888 conftest$ac_exeext conftest.$ac_ext 16889fi 16890ac_res=`eval echo '${'$as_ac_var'}'` 16891 { echo "$as_me:$LINENO: result: $ac_res" >&5 16892echo "${ECHO_T}$ac_res" >&6; } 16893if test `eval echo '${'$as_ac_var'}'` = yes; then 16894 cat >>confdefs.h <<_ACEOF 16895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16896_ACEOF 16897 16898fi 16899done 16900 16901 16902 16903 16904 16905 16906for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 16907do 16908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16909{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16911if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16912 echo $ECHO_N "(cached) $ECHO_C" >&6 16913else 16914 cat >conftest.$ac_ext <<_ACEOF 16915/* confdefs.h. */ 16916_ACEOF 16917cat confdefs.h >>conftest.$ac_ext 16918cat >>conftest.$ac_ext <<_ACEOF 16919/* end confdefs.h. */ 16920/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16921 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16922#define $ac_func innocuous_$ac_func 16923 16924/* System header to define __stub macros and hopefully few prototypes, 16925 which can conflict with char $ac_func (); below. 16926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16927 <limits.h> exists even on freestanding compilers. */ 16928 16929#ifdef __STDC__ 16930# include <limits.h> 16931#else 16932# include <assert.h> 16933#endif 16934 16935#undef $ac_func 16936 16937/* Override any GCC internal prototype to avoid an error. 16938 Use char because int might match the return type of a GCC 16939 builtin and then its argument prototype would still apply. */ 16940#ifdef __cplusplus 16941extern "C" 16942#endif 16943char $ac_func (); 16944/* The GNU C library defines this for functions which it implements 16945 to always fail with ENOSYS. Some functions are actually named 16946 something starting with __ and the normal name is an alias. */ 16947#if defined __stub_$ac_func || defined __stub___$ac_func 16948choke me 16949#endif 16950 16951int 16952main () 16953{ 16954return $ac_func (); 16955 ; 16956 return 0; 16957} 16958_ACEOF 16959rm -f conftest.$ac_objext conftest$ac_exeext 16960if { (ac_try="$ac_link" 16961case "(($ac_try" in 16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16963 *) ac_try_echo=$ac_try;; 16964esac 16965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16966 (eval "$ac_link") 2>conftest.er1 16967 ac_status=$? 16968 grep -v '^ *+' conftest.er1 >conftest.err 16969 rm -f conftest.er1 16970 cat conftest.err >&5 16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16972 (exit $ac_status); } && 16973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16974 { (case "(($ac_try" in 16975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16976 *) ac_try_echo=$ac_try;; 16977esac 16978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16979 (eval "$ac_try") 2>&5 16980 ac_status=$? 16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16982 (exit $ac_status); }; } && 16983 { ac_try='test -s conftest$ac_exeext' 16984 { (case "(($ac_try" in 16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16986 *) ac_try_echo=$ac_try;; 16987esac 16988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16989 (eval "$ac_try") 2>&5 16990 ac_status=$? 16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16992 (exit $ac_status); }; }; then 16993 eval "$as_ac_var=yes" 16994else 16995 echo "$as_me: failed program was:" >&5 16996sed 's/^/| /' conftest.$ac_ext >&5 16997 16998 eval "$as_ac_var=no" 16999fi 17000 17001rm -f core conftest.err conftest.$ac_objext \ 17002 conftest$ac_exeext conftest.$ac_ext 17003fi 17004ac_res=`eval echo '${'$as_ac_var'}'` 17005 { echo "$as_me:$LINENO: result: $ac_res" >&5 17006echo "${ECHO_T}$ac_res" >&6; } 17007if test `eval echo '${'$as_ac_var'}'` = yes; then 17008 cat >>confdefs.h <<_ACEOF 17009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17010_ACEOF 17011 17012fi 17013done 17014 17015 17016 17017 17018for ac_func in isatty mkdtemp mkstemp 17019do 17020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17021{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17023if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17024 echo $ECHO_N "(cached) $ECHO_C" >&6 17025else 17026 cat >conftest.$ac_ext <<_ACEOF 17027/* confdefs.h. */ 17028_ACEOF 17029cat confdefs.h >>conftest.$ac_ext 17030cat >>conftest.$ac_ext <<_ACEOF 17031/* end confdefs.h. */ 17032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17033 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17034#define $ac_func innocuous_$ac_func 17035 17036/* System header to define __stub macros and hopefully few prototypes, 17037 which can conflict with char $ac_func (); below. 17038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17039 <limits.h> exists even on freestanding compilers. */ 17040 17041#ifdef __STDC__ 17042# include <limits.h> 17043#else 17044# include <assert.h> 17045#endif 17046 17047#undef $ac_func 17048 17049/* Override any GCC internal prototype to avoid an error. 17050 Use char because int might match the return type of a GCC 17051 builtin and then its argument prototype would still apply. */ 17052#ifdef __cplusplus 17053extern "C" 17054#endif 17055char $ac_func (); 17056/* The GNU C library defines this for functions which it implements 17057 to always fail with ENOSYS. Some functions are actually named 17058 something starting with __ and the normal name is an alias. */ 17059#if defined __stub_$ac_func || defined __stub___$ac_func 17060choke me 17061#endif 17062 17063int 17064main () 17065{ 17066return $ac_func (); 17067 ; 17068 return 0; 17069} 17070_ACEOF 17071rm -f conftest.$ac_objext conftest$ac_exeext 17072if { (ac_try="$ac_link" 17073case "(($ac_try" in 17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17075 *) ac_try_echo=$ac_try;; 17076esac 17077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17078 (eval "$ac_link") 2>conftest.er1 17079 ac_status=$? 17080 grep -v '^ *+' conftest.er1 >conftest.err 17081 rm -f conftest.er1 17082 cat conftest.err >&5 17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17084 (exit $ac_status); } && 17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17086 { (case "(($ac_try" in 17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17088 *) ac_try_echo=$ac_try;; 17089esac 17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17091 (eval "$ac_try") 2>&5 17092 ac_status=$? 17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17094 (exit $ac_status); }; } && 17095 { ac_try='test -s conftest$ac_exeext' 17096 { (case "(($ac_try" in 17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17098 *) ac_try_echo=$ac_try;; 17099esac 17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17101 (eval "$ac_try") 2>&5 17102 ac_status=$? 17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17104 (exit $ac_status); }; }; then 17105 eval "$as_ac_var=yes" 17106else 17107 echo "$as_me: failed program was:" >&5 17108sed 's/^/| /' conftest.$ac_ext >&5 17109 17110 eval "$as_ac_var=no" 17111fi 17112 17113rm -f core conftest.err conftest.$ac_objext \ 17114 conftest$ac_exeext conftest.$ac_ext 17115fi 17116ac_res=`eval echo '${'$as_ac_var'}'` 17117 { echo "$as_me:$LINENO: result: $ac_res" >&5 17118echo "${ECHO_T}$ac_res" >&6; } 17119if test `eval echo '${'$as_ac_var'}'` = yes; then 17120 cat >>confdefs.h <<_ACEOF 17121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17122_ACEOF 17123 17124fi 17125done 17126 17127 17128 17129 17130 17131 17132 17133for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup 17134do 17135as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17136{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17137echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17138if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17139 echo $ECHO_N "(cached) $ECHO_C" >&6 17140else 17141 cat >conftest.$ac_ext <<_ACEOF 17142/* confdefs.h. */ 17143_ACEOF 17144cat confdefs.h >>conftest.$ac_ext 17145cat >>conftest.$ac_ext <<_ACEOF 17146/* end confdefs.h. */ 17147/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17148 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17149#define $ac_func innocuous_$ac_func 17150 17151/* System header to define __stub macros and hopefully few prototypes, 17152 which can conflict with char $ac_func (); below. 17153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17154 <limits.h> exists even on freestanding compilers. */ 17155 17156#ifdef __STDC__ 17157# include <limits.h> 17158#else 17159# include <assert.h> 17160#endif 17161 17162#undef $ac_func 17163 17164/* Override any GCC internal prototype to avoid an error. 17165 Use char because int might match the return type of a GCC 17166 builtin and then its argument prototype would still apply. */ 17167#ifdef __cplusplus 17168extern "C" 17169#endif 17170char $ac_func (); 17171/* The GNU C library defines this for functions which it implements 17172 to always fail with ENOSYS. Some functions are actually named 17173 something starting with __ and the normal name is an alias. */ 17174#if defined __stub_$ac_func || defined __stub___$ac_func 17175choke me 17176#endif 17177 17178int 17179main () 17180{ 17181return $ac_func (); 17182 ; 17183 return 0; 17184} 17185_ACEOF 17186rm -f conftest.$ac_objext conftest$ac_exeext 17187if { (ac_try="$ac_link" 17188case "(($ac_try" in 17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17190 *) ac_try_echo=$ac_try;; 17191esac 17192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17193 (eval "$ac_link") 2>conftest.er1 17194 ac_status=$? 17195 grep -v '^ *+' conftest.er1 >conftest.err 17196 rm -f conftest.er1 17197 cat conftest.err >&5 17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17199 (exit $ac_status); } && 17200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17201 { (case "(($ac_try" in 17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17203 *) ac_try_echo=$ac_try;; 17204esac 17205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17206 (eval "$ac_try") 2>&5 17207 ac_status=$? 17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17209 (exit $ac_status); }; } && 17210 { ac_try='test -s conftest$ac_exeext' 17211 { (case "(($ac_try" in 17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17213 *) ac_try_echo=$ac_try;; 17214esac 17215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17216 (eval "$ac_try") 2>&5 17217 ac_status=$? 17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17219 (exit $ac_status); }; }; then 17220 eval "$as_ac_var=yes" 17221else 17222 echo "$as_me: failed program was:" >&5 17223sed 's/^/| /' conftest.$ac_ext >&5 17224 17225 eval "$as_ac_var=no" 17226fi 17227 17228rm -f core conftest.err conftest.$ac_objext \ 17229 conftest$ac_exeext conftest.$ac_ext 17230fi 17231ac_res=`eval echo '${'$as_ac_var'}'` 17232 { echo "$as_me:$LINENO: result: $ac_res" >&5 17233echo "${ECHO_T}$ac_res" >&6; } 17234if test `eval echo '${'$as_ac_var'}'` = yes; then 17235 cat >>confdefs.h <<_ACEOF 17236#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17237_ACEOF 17238 17239fi 17240done 17241 17242 17243 17244 17245for ac_func in strerror strerror_r setenv 17246do 17247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17248{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17250if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17251 echo $ECHO_N "(cached) $ECHO_C" >&6 17252else 17253 cat >conftest.$ac_ext <<_ACEOF 17254/* confdefs.h. */ 17255_ACEOF 17256cat confdefs.h >>conftest.$ac_ext 17257cat >>conftest.$ac_ext <<_ACEOF 17258/* end confdefs.h. */ 17259/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17260 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17261#define $ac_func innocuous_$ac_func 17262 17263/* System header to define __stub macros and hopefully few prototypes, 17264 which can conflict with char $ac_func (); below. 17265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17266 <limits.h> exists even on freestanding compilers. */ 17267 17268#ifdef __STDC__ 17269# include <limits.h> 17270#else 17271# include <assert.h> 17272#endif 17273 17274#undef $ac_func 17275 17276/* Override any GCC internal prototype to avoid an error. 17277 Use char because int might match the return type of a GCC 17278 builtin and then its argument prototype would still apply. */ 17279#ifdef __cplusplus 17280extern "C" 17281#endif 17282char $ac_func (); 17283/* The GNU C library defines this for functions which it implements 17284 to always fail with ENOSYS. Some functions are actually named 17285 something starting with __ and the normal name is an alias. */ 17286#if defined __stub_$ac_func || defined __stub___$ac_func 17287choke me 17288#endif 17289 17290int 17291main () 17292{ 17293return $ac_func (); 17294 ; 17295 return 0; 17296} 17297_ACEOF 17298rm -f conftest.$ac_objext conftest$ac_exeext 17299if { (ac_try="$ac_link" 17300case "(($ac_try" in 17301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17302 *) ac_try_echo=$ac_try;; 17303esac 17304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17305 (eval "$ac_link") 2>conftest.er1 17306 ac_status=$? 17307 grep -v '^ *+' conftest.er1 >conftest.err 17308 rm -f conftest.er1 17309 cat conftest.err >&5 17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17311 (exit $ac_status); } && 17312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17313 { (case "(($ac_try" in 17314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17315 *) ac_try_echo=$ac_try;; 17316esac 17317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17318 (eval "$ac_try") 2>&5 17319 ac_status=$? 17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17321 (exit $ac_status); }; } && 17322 { ac_try='test -s conftest$ac_exeext' 17323 { (case "(($ac_try" in 17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17325 *) ac_try_echo=$ac_try;; 17326esac 17327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17328 (eval "$ac_try") 2>&5 17329 ac_status=$? 17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17331 (exit $ac_status); }; }; then 17332 eval "$as_ac_var=yes" 17333else 17334 echo "$as_me: failed program was:" >&5 17335sed 's/^/| /' conftest.$ac_ext >&5 17336 17337 eval "$as_ac_var=no" 17338fi 17339 17340rm -f core conftest.err conftest.$ac_objext \ 17341 conftest$ac_exeext conftest.$ac_ext 17342fi 17343ac_res=`eval echo '${'$as_ac_var'}'` 17344 { echo "$as_me:$LINENO: result: $ac_res" >&5 17345echo "${ECHO_T}$ac_res" >&6; } 17346if test `eval echo '${'$as_ac_var'}'` = yes; then 17347 cat >>confdefs.h <<_ACEOF 17348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17349_ACEOF 17350 17351fi 17352done 17353 17354 17355 17356 17357 17358for ac_func in strtoll strtoq sysconf malloc_zone_statistics 17359do 17360as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17361{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17362echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17363if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17364 echo $ECHO_N "(cached) $ECHO_C" >&6 17365else 17366 cat >conftest.$ac_ext <<_ACEOF 17367/* confdefs.h. */ 17368_ACEOF 17369cat confdefs.h >>conftest.$ac_ext 17370cat >>conftest.$ac_ext <<_ACEOF 17371/* end confdefs.h. */ 17372/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17373 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17374#define $ac_func innocuous_$ac_func 17375 17376/* System header to define __stub macros and hopefully few prototypes, 17377 which can conflict with char $ac_func (); below. 17378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17379 <limits.h> exists even on freestanding compilers. */ 17380 17381#ifdef __STDC__ 17382# include <limits.h> 17383#else 17384# include <assert.h> 17385#endif 17386 17387#undef $ac_func 17388 17389/* Override any GCC internal prototype to avoid an error. 17390 Use char because int might match the return type of a GCC 17391 builtin and then its argument prototype would still apply. */ 17392#ifdef __cplusplus 17393extern "C" 17394#endif 17395char $ac_func (); 17396/* The GNU C library defines this for functions which it implements 17397 to always fail with ENOSYS. Some functions are actually named 17398 something starting with __ and the normal name is an alias. */ 17399#if defined __stub_$ac_func || defined __stub___$ac_func 17400choke me 17401#endif 17402 17403int 17404main () 17405{ 17406return $ac_func (); 17407 ; 17408 return 0; 17409} 17410_ACEOF 17411rm -f conftest.$ac_objext conftest$ac_exeext 17412if { (ac_try="$ac_link" 17413case "(($ac_try" in 17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17415 *) ac_try_echo=$ac_try;; 17416esac 17417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17418 (eval "$ac_link") 2>conftest.er1 17419 ac_status=$? 17420 grep -v '^ *+' conftest.er1 >conftest.err 17421 rm -f conftest.er1 17422 cat conftest.err >&5 17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17424 (exit $ac_status); } && 17425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17426 { (case "(($ac_try" in 17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17428 *) ac_try_echo=$ac_try;; 17429esac 17430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17431 (eval "$ac_try") 2>&5 17432 ac_status=$? 17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17434 (exit $ac_status); }; } && 17435 { ac_try='test -s conftest$ac_exeext' 17436 { (case "(($ac_try" in 17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17438 *) ac_try_echo=$ac_try;; 17439esac 17440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17441 (eval "$ac_try") 2>&5 17442 ac_status=$? 17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17444 (exit $ac_status); }; }; then 17445 eval "$as_ac_var=yes" 17446else 17447 echo "$as_me: failed program was:" >&5 17448sed 's/^/| /' conftest.$ac_ext >&5 17449 17450 eval "$as_ac_var=no" 17451fi 17452 17453rm -f core conftest.err conftest.$ac_objext \ 17454 conftest$ac_exeext conftest.$ac_ext 17455fi 17456ac_res=`eval echo '${'$as_ac_var'}'` 17457 { echo "$as_me:$LINENO: result: $ac_res" >&5 17458echo "${ECHO_T}$ac_res" >&6; } 17459if test `eval echo '${'$as_ac_var'}'` = yes; then 17460 cat >>confdefs.h <<_ACEOF 17461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17462_ACEOF 17463 17464fi 17465done 17466 17467 17468 17469 17470 17471 17472for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 17473do 17474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17475{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17477if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17478 echo $ECHO_N "(cached) $ECHO_C" >&6 17479else 17480 cat >conftest.$ac_ext <<_ACEOF 17481/* confdefs.h. */ 17482_ACEOF 17483cat confdefs.h >>conftest.$ac_ext 17484cat >>conftest.$ac_ext <<_ACEOF 17485/* end confdefs.h. */ 17486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17487 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17488#define $ac_func innocuous_$ac_func 17489 17490/* System header to define __stub macros and hopefully few prototypes, 17491 which can conflict with char $ac_func (); below. 17492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17493 <limits.h> exists even on freestanding compilers. */ 17494 17495#ifdef __STDC__ 17496# include <limits.h> 17497#else 17498# include <assert.h> 17499#endif 17500 17501#undef $ac_func 17502 17503/* Override any GCC internal prototype to avoid an error. 17504 Use char because int might match the return type of a GCC 17505 builtin and then its argument prototype would still apply. */ 17506#ifdef __cplusplus 17507extern "C" 17508#endif 17509char $ac_func (); 17510/* The GNU C library defines this for functions which it implements 17511 to always fail with ENOSYS. Some functions are actually named 17512 something starting with __ and the normal name is an alias. */ 17513#if defined __stub_$ac_func || defined __stub___$ac_func 17514choke me 17515#endif 17516 17517int 17518main () 17519{ 17520return $ac_func (); 17521 ; 17522 return 0; 17523} 17524_ACEOF 17525rm -f conftest.$ac_objext conftest$ac_exeext 17526if { (ac_try="$ac_link" 17527case "(($ac_try" in 17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17529 *) ac_try_echo=$ac_try;; 17530esac 17531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17532 (eval "$ac_link") 2>conftest.er1 17533 ac_status=$? 17534 grep -v '^ *+' conftest.er1 >conftest.err 17535 rm -f conftest.er1 17536 cat conftest.err >&5 17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17538 (exit $ac_status); } && 17539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17540 { (case "(($ac_try" in 17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17542 *) ac_try_echo=$ac_try;; 17543esac 17544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17545 (eval "$ac_try") 2>&5 17546 ac_status=$? 17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17548 (exit $ac_status); }; } && 17549 { ac_try='test -s conftest$ac_exeext' 17550 { (case "(($ac_try" in 17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17552 *) ac_try_echo=$ac_try;; 17553esac 17554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17555 (eval "$ac_try") 2>&5 17556 ac_status=$? 17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17558 (exit $ac_status); }; }; then 17559 eval "$as_ac_var=yes" 17560else 17561 echo "$as_me: failed program was:" >&5 17562sed 's/^/| /' conftest.$ac_ext >&5 17563 17564 eval "$as_ac_var=no" 17565fi 17566 17567rm -f core conftest.err conftest.$ac_objext \ 17568 conftest$ac_exeext conftest.$ac_ext 17569fi 17570ac_res=`eval echo '${'$as_ac_var'}'` 17571 { echo "$as_me:$LINENO: result: $ac_res" >&5 17572echo "${ECHO_T}$ac_res" >&6; } 17573if test `eval echo '${'$as_ac_var'}'` = yes; then 17574 cat >>confdefs.h <<_ACEOF 17575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17576_ACEOF 17577 17578fi 17579done 17580 17581{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 17582echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 17583if test "${llvm_cv_c_printf_a+set}" = set; then 17584 echo $ECHO_N "(cached) $ECHO_C" >&6 17585else 17586 ac_ext=c 17587ac_cpp='$CPP $CPPFLAGS' 17588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17590ac_compiler_gnu=$ac_cv_c_compiler_gnu 17591 17592 if test "$cross_compiling" = yes; then 17593 llvmac_cv_c_printf_a=no 17594else 17595 cat >conftest.$ac_ext <<_ACEOF 17596 17597 /* confdefs.h. */ 17598_ACEOF 17599cat confdefs.h >>conftest.$ac_ext 17600cat >>conftest.$ac_ext <<_ACEOF 17601/* end confdefs.h. */ 17602 17603#include <stdio.h> 17604#include <stdlib.h> 17605 17606int 17607main () 17608{ 17609 17610volatile double A, B; 17611char Buffer[100]; 17612A = 1; 17613A /= 10.0; 17614sprintf(Buffer, "%a", A); 17615B = atof(Buffer); 17616if (A != B) 17617 return (1); 17618if (A != 0x1.999999999999ap-4) 17619 return (1); 17620return (0); 17621 ; 17622 return 0; 17623} 17624_ACEOF 17625rm -f conftest$ac_exeext 17626if { (ac_try="$ac_link" 17627case "(($ac_try" in 17628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17629 *) ac_try_echo=$ac_try;; 17630esac 17631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17632 (eval "$ac_link") 2>&5 17633 ac_status=$? 17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17636 { (case "(($ac_try" in 17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17638 *) ac_try_echo=$ac_try;; 17639esac 17640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17641 (eval "$ac_try") 2>&5 17642 ac_status=$? 17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17644 (exit $ac_status); }; }; then 17645 llvm_cv_c_printf_a=yes 17646else 17647 echo "$as_me: program exited with status $ac_status" >&5 17648echo "$as_me: failed program was:" >&5 17649sed 's/^/| /' conftest.$ac_ext >&5 17650 17651( exit $ac_status ) 17652llvmac_cv_c_printf_a=no 17653fi 17654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17655fi 17656 17657 17658 ac_ext=c 17659ac_cpp='$CPP $CPPFLAGS' 17660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17662ac_compiler_gnu=$ac_cv_c_compiler_gnu 17663 17664fi 17665{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 17666echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 17667 if test "$llvm_cv_c_printf_a" = "yes"; then 17668 17669cat >>confdefs.h <<\_ACEOF 17670#define HAVE_PRINTF_A 1 17671_ACEOF 17672 17673 fi 17674 17675 17676{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 17677echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 17678if test "${ac_cv_func_rand48+set}" = set; then 17679 echo $ECHO_N "(cached) $ECHO_C" >&6 17680else 17681 ac_ext=cpp 17682ac_cpp='$CXXCPP $CPPFLAGS' 17683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17686 17687 cat >conftest.$ac_ext <<_ACEOF 17688/* confdefs.h. */ 17689_ACEOF 17690cat confdefs.h >>conftest.$ac_ext 17691cat >>conftest.$ac_ext <<_ACEOF 17692/* end confdefs.h. */ 17693#include <stdlib.h> 17694int 17695main () 17696{ 17697srand48(0);lrand48();drand48(); 17698 ; 17699 return 0; 17700} 17701_ACEOF 17702rm -f conftest.$ac_objext 17703if { (ac_try="$ac_compile" 17704case "(($ac_try" in 17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17706 *) ac_try_echo=$ac_try;; 17707esac 17708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17709 (eval "$ac_compile") 2>conftest.er1 17710 ac_status=$? 17711 grep -v '^ *+' conftest.er1 >conftest.err 17712 rm -f conftest.er1 17713 cat conftest.err >&5 17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17715 (exit $ac_status); } && 17716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 17717 { (case "(($ac_try" in 17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17719 *) ac_try_echo=$ac_try;; 17720esac 17721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17722 (eval "$ac_try") 2>&5 17723 ac_status=$? 17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17725 (exit $ac_status); }; } && 17726 { ac_try='test -s conftest.$ac_objext' 17727 { (case "(($ac_try" in 17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17729 *) ac_try_echo=$ac_try;; 17730esac 17731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17732 (eval "$ac_try") 2>&5 17733 ac_status=$? 17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17735 (exit $ac_status); }; }; then 17736 ac_cv_func_rand48=yes 17737else 17738 echo "$as_me: failed program was:" >&5 17739sed 's/^/| /' conftest.$ac_ext >&5 17740 17741 ac_cv_func_rand48=no 17742fi 17743 17744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17745 ac_ext=c 17746ac_cpp='$CPP $CPPFLAGS' 17747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17749ac_compiler_gnu=$ac_cv_c_compiler_gnu 17750 17751fi 17752{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 17753echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 17754 17755if test "$ac_cv_func_rand48" = "yes" ; then 17756 17757cat >>confdefs.h <<\_ACEOF 17758#define HAVE_RAND48 1 17759_ACEOF 17760 17761fi 17762 17763 17764{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 17765echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 17766if test "${ac_cv_have_decl_strerror_s+set}" = set; then 17767 echo $ECHO_N "(cached) $ECHO_C" >&6 17768else 17769 cat >conftest.$ac_ext <<_ACEOF 17770/* confdefs.h. */ 17771_ACEOF 17772cat confdefs.h >>conftest.$ac_ext 17773cat >>conftest.$ac_ext <<_ACEOF 17774/* end confdefs.h. */ 17775$ac_includes_default 17776int 17777main () 17778{ 17779#ifndef strerror_s 17780 char *p = (char *) strerror_s; 17781 return !p; 17782#endif 17783 17784 ; 17785 return 0; 17786} 17787_ACEOF 17788rm -f conftest.$ac_objext 17789if { (ac_try="$ac_compile" 17790case "(($ac_try" in 17791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17792 *) ac_try_echo=$ac_try;; 17793esac 17794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17795 (eval "$ac_compile") 2>conftest.er1 17796 ac_status=$? 17797 grep -v '^ *+' conftest.er1 >conftest.err 17798 rm -f conftest.er1 17799 cat conftest.err >&5 17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17801 (exit $ac_status); } && 17802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17803 { (case "(($ac_try" in 17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17805 *) ac_try_echo=$ac_try;; 17806esac 17807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17808 (eval "$ac_try") 2>&5 17809 ac_status=$? 17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17811 (exit $ac_status); }; } && 17812 { ac_try='test -s conftest.$ac_objext' 17813 { (case "(($ac_try" in 17814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17815 *) ac_try_echo=$ac_try;; 17816esac 17817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17818 (eval "$ac_try") 2>&5 17819 ac_status=$? 17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17821 (exit $ac_status); }; }; then 17822 ac_cv_have_decl_strerror_s=yes 17823else 17824 echo "$as_me: failed program was:" >&5 17825sed 's/^/| /' conftest.$ac_ext >&5 17826 17827 ac_cv_have_decl_strerror_s=no 17828fi 17829 17830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17831fi 17832{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 17833echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 17834if test $ac_cv_have_decl_strerror_s = yes; then 17835 17836cat >>confdefs.h <<_ACEOF 17837#define HAVE_DECL_STRERROR_S 1 17838_ACEOF 17839 17840 17841else 17842 cat >>confdefs.h <<_ACEOF 17843#define HAVE_DECL_STRERROR_S 0 17844_ACEOF 17845 17846 17847fi 17848 17849 17850 17851if test "$llvm_cv_os_type" = "MingW" ; then 17852 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 17853echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 17854if test "${ac_cv_lib_gcc__alloca+set}" = set; then 17855 echo $ECHO_N "(cached) $ECHO_C" >&6 17856else 17857 ac_check_lib_save_LIBS=$LIBS 17858LIBS="-lgcc $LIBS" 17859cat >conftest.$ac_ext <<_ACEOF 17860/* confdefs.h. */ 17861_ACEOF 17862cat confdefs.h >>conftest.$ac_ext 17863cat >>conftest.$ac_ext <<_ACEOF 17864/* end confdefs.h. */ 17865 17866/* Override any GCC internal prototype to avoid an error. 17867 Use char because int might match the return type of a GCC 17868 builtin and then its argument prototype would still apply. */ 17869#ifdef __cplusplus 17870extern "C" 17871#endif 17872char _alloca (); 17873int 17874main () 17875{ 17876return _alloca (); 17877 ; 17878 return 0; 17879} 17880_ACEOF 17881rm -f conftest.$ac_objext conftest$ac_exeext 17882if { (ac_try="$ac_link" 17883case "(($ac_try" in 17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17885 *) ac_try_echo=$ac_try;; 17886esac 17887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17888 (eval "$ac_link") 2>conftest.er1 17889 ac_status=$? 17890 grep -v '^ *+' conftest.er1 >conftest.err 17891 rm -f conftest.er1 17892 cat conftest.err >&5 17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17894 (exit $ac_status); } && 17895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17896 { (case "(($ac_try" in 17897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17898 *) ac_try_echo=$ac_try;; 17899esac 17900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17901 (eval "$ac_try") 2>&5 17902 ac_status=$? 17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17904 (exit $ac_status); }; } && 17905 { ac_try='test -s conftest$ac_exeext' 17906 { (case "(($ac_try" in 17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17908 *) ac_try_echo=$ac_try;; 17909esac 17910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17911 (eval "$ac_try") 2>&5 17912 ac_status=$? 17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17914 (exit $ac_status); }; }; then 17915 ac_cv_lib_gcc__alloca=yes 17916else 17917 echo "$as_me: failed program was:" >&5 17918sed 's/^/| /' conftest.$ac_ext >&5 17919 17920 ac_cv_lib_gcc__alloca=no 17921fi 17922 17923rm -f core conftest.err conftest.$ac_objext \ 17924 conftest$ac_exeext conftest.$ac_ext 17925LIBS=$ac_check_lib_save_LIBS 17926fi 17927{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 17928echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 17929if test $ac_cv_lib_gcc__alloca = yes; then 17930 17931cat >>confdefs.h <<\_ACEOF 17932#define HAVE__ALLOCA 1 17933_ACEOF 17934 17935fi 17936 17937 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 17938echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 17939if test "${ac_cv_lib_gcc___alloca+set}" = set; then 17940 echo $ECHO_N "(cached) $ECHO_C" >&6 17941else 17942 ac_check_lib_save_LIBS=$LIBS 17943LIBS="-lgcc $LIBS" 17944cat >conftest.$ac_ext <<_ACEOF 17945/* confdefs.h. */ 17946_ACEOF 17947cat confdefs.h >>conftest.$ac_ext 17948cat >>conftest.$ac_ext <<_ACEOF 17949/* end confdefs.h. */ 17950 17951/* Override any GCC internal prototype to avoid an error. 17952 Use char because int might match the return type of a GCC 17953 builtin and then its argument prototype would still apply. */ 17954#ifdef __cplusplus 17955extern "C" 17956#endif 17957char __alloca (); 17958int 17959main () 17960{ 17961return __alloca (); 17962 ; 17963 return 0; 17964} 17965_ACEOF 17966rm -f conftest.$ac_objext conftest$ac_exeext 17967if { (ac_try="$ac_link" 17968case "(($ac_try" in 17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17970 *) ac_try_echo=$ac_try;; 17971esac 17972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17973 (eval "$ac_link") 2>conftest.er1 17974 ac_status=$? 17975 grep -v '^ *+' conftest.er1 >conftest.err 17976 rm -f conftest.er1 17977 cat conftest.err >&5 17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17979 (exit $ac_status); } && 17980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17981 { (case "(($ac_try" in 17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17983 *) ac_try_echo=$ac_try;; 17984esac 17985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17986 (eval "$ac_try") 2>&5 17987 ac_status=$? 17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17989 (exit $ac_status); }; } && 17990 { ac_try='test -s conftest$ac_exeext' 17991 { (case "(($ac_try" in 17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17993 *) ac_try_echo=$ac_try;; 17994esac 17995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17996 (eval "$ac_try") 2>&5 17997 ac_status=$? 17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17999 (exit $ac_status); }; }; then 18000 ac_cv_lib_gcc___alloca=yes 18001else 18002 echo "$as_me: failed program was:" >&5 18003sed 's/^/| /' conftest.$ac_ext >&5 18004 18005 ac_cv_lib_gcc___alloca=no 18006fi 18007 18008rm -f core conftest.err conftest.$ac_objext \ 18009 conftest$ac_exeext conftest.$ac_ext 18010LIBS=$ac_check_lib_save_LIBS 18011fi 18012{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 18013echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 18014if test $ac_cv_lib_gcc___alloca = yes; then 18015 18016cat >>confdefs.h <<\_ACEOF 18017#define HAVE___ALLOCA 1 18018_ACEOF 18019 18020fi 18021 18022 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 18023echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 18024if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 18025 echo $ECHO_N "(cached) $ECHO_C" >&6 18026else 18027 ac_check_lib_save_LIBS=$LIBS 18028LIBS="-lgcc $LIBS" 18029cat >conftest.$ac_ext <<_ACEOF 18030/* confdefs.h. */ 18031_ACEOF 18032cat confdefs.h >>conftest.$ac_ext 18033cat >>conftest.$ac_ext <<_ACEOF 18034/* end confdefs.h. */ 18035 18036/* Override any GCC internal prototype to avoid an error. 18037 Use char because int might match the return type of a GCC 18038 builtin and then its argument prototype would still apply. */ 18039#ifdef __cplusplus 18040extern "C" 18041#endif 18042char __chkstk (); 18043int 18044main () 18045{ 18046return __chkstk (); 18047 ; 18048 return 0; 18049} 18050_ACEOF 18051rm -f conftest.$ac_objext conftest$ac_exeext 18052if { (ac_try="$ac_link" 18053case "(($ac_try" in 18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18055 *) ac_try_echo=$ac_try;; 18056esac 18057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18058 (eval "$ac_link") 2>conftest.er1 18059 ac_status=$? 18060 grep -v '^ *+' conftest.er1 >conftest.err 18061 rm -f conftest.er1 18062 cat conftest.err >&5 18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18064 (exit $ac_status); } && 18065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18066 { (case "(($ac_try" in 18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18068 *) ac_try_echo=$ac_try;; 18069esac 18070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18071 (eval "$ac_try") 2>&5 18072 ac_status=$? 18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18074 (exit $ac_status); }; } && 18075 { ac_try='test -s conftest$ac_exeext' 18076 { (case "(($ac_try" in 18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18078 *) ac_try_echo=$ac_try;; 18079esac 18080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18081 (eval "$ac_try") 2>&5 18082 ac_status=$? 18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18084 (exit $ac_status); }; }; then 18085 ac_cv_lib_gcc___chkstk=yes 18086else 18087 echo "$as_me: failed program was:" >&5 18088sed 's/^/| /' conftest.$ac_ext >&5 18089 18090 ac_cv_lib_gcc___chkstk=no 18091fi 18092 18093rm -f core conftest.err conftest.$ac_objext \ 18094 conftest$ac_exeext conftest.$ac_ext 18095LIBS=$ac_check_lib_save_LIBS 18096fi 18097{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 18098echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 18099if test $ac_cv_lib_gcc___chkstk = yes; then 18100 18101cat >>confdefs.h <<\_ACEOF 18102#define HAVE___CHKSTK 1 18103_ACEOF 18104 18105fi 18106 18107 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 18108echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 18109if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 18110 echo $ECHO_N "(cached) $ECHO_C" >&6 18111else 18112 ac_check_lib_save_LIBS=$LIBS 18113LIBS="-lgcc $LIBS" 18114cat >conftest.$ac_ext <<_ACEOF 18115/* confdefs.h. */ 18116_ACEOF 18117cat confdefs.h >>conftest.$ac_ext 18118cat >>conftest.$ac_ext <<_ACEOF 18119/* end confdefs.h. */ 18120 18121/* Override any GCC internal prototype to avoid an error. 18122 Use char because int might match the return type of a GCC 18123 builtin and then its argument prototype would still apply. */ 18124#ifdef __cplusplus 18125extern "C" 18126#endif 18127char ___chkstk (); 18128int 18129main () 18130{ 18131return ___chkstk (); 18132 ; 18133 return 0; 18134} 18135_ACEOF 18136rm -f conftest.$ac_objext conftest$ac_exeext 18137if { (ac_try="$ac_link" 18138case "(($ac_try" in 18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18140 *) ac_try_echo=$ac_try;; 18141esac 18142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18143 (eval "$ac_link") 2>conftest.er1 18144 ac_status=$? 18145 grep -v '^ *+' conftest.er1 >conftest.err 18146 rm -f conftest.er1 18147 cat conftest.err >&5 18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18149 (exit $ac_status); } && 18150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18151 { (case "(($ac_try" in 18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18153 *) ac_try_echo=$ac_try;; 18154esac 18155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18156 (eval "$ac_try") 2>&5 18157 ac_status=$? 18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18159 (exit $ac_status); }; } && 18160 { ac_try='test -s conftest$ac_exeext' 18161 { (case "(($ac_try" in 18162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18163 *) ac_try_echo=$ac_try;; 18164esac 18165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18166 (eval "$ac_try") 2>&5 18167 ac_status=$? 18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18169 (exit $ac_status); }; }; then 18170 ac_cv_lib_gcc____chkstk=yes 18171else 18172 echo "$as_me: failed program was:" >&5 18173sed 's/^/| /' conftest.$ac_ext >&5 18174 18175 ac_cv_lib_gcc____chkstk=no 18176fi 18177 18178rm -f core conftest.err conftest.$ac_objext \ 18179 conftest$ac_exeext conftest.$ac_ext 18180LIBS=$ac_check_lib_save_LIBS 18181fi 18182{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 18183echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 18184if test $ac_cv_lib_gcc____chkstk = yes; then 18185 18186cat >>confdefs.h <<\_ACEOF 18187#define HAVE____CHKSTK 1 18188_ACEOF 18189 18190fi 18191 18192 18193 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 18194echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 18195if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 18196 echo $ECHO_N "(cached) $ECHO_C" >&6 18197else 18198 ac_check_lib_save_LIBS=$LIBS 18199LIBS="-lgcc $LIBS" 18200cat >conftest.$ac_ext <<_ACEOF 18201/* confdefs.h. */ 18202_ACEOF 18203cat confdefs.h >>conftest.$ac_ext 18204cat >>conftest.$ac_ext <<_ACEOF 18205/* end confdefs.h. */ 18206 18207/* Override any GCC internal prototype to avoid an error. 18208 Use char because int might match the return type of a GCC 18209 builtin and then its argument prototype would still apply. */ 18210#ifdef __cplusplus 18211extern "C" 18212#endif 18213char __ashldi3 (); 18214int 18215main () 18216{ 18217return __ashldi3 (); 18218 ; 18219 return 0; 18220} 18221_ACEOF 18222rm -f conftest.$ac_objext conftest$ac_exeext 18223if { (ac_try="$ac_link" 18224case "(($ac_try" in 18225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18226 *) ac_try_echo=$ac_try;; 18227esac 18228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18229 (eval "$ac_link") 2>conftest.er1 18230 ac_status=$? 18231 grep -v '^ *+' conftest.er1 >conftest.err 18232 rm -f conftest.er1 18233 cat conftest.err >&5 18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18235 (exit $ac_status); } && 18236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18237 { (case "(($ac_try" in 18238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18239 *) ac_try_echo=$ac_try;; 18240esac 18241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18242 (eval "$ac_try") 2>&5 18243 ac_status=$? 18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18245 (exit $ac_status); }; } && 18246 { ac_try='test -s conftest$ac_exeext' 18247 { (case "(($ac_try" in 18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18249 *) ac_try_echo=$ac_try;; 18250esac 18251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18252 (eval "$ac_try") 2>&5 18253 ac_status=$? 18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18255 (exit $ac_status); }; }; then 18256 ac_cv_lib_gcc___ashldi3=yes 18257else 18258 echo "$as_me: failed program was:" >&5 18259sed 's/^/| /' conftest.$ac_ext >&5 18260 18261 ac_cv_lib_gcc___ashldi3=no 18262fi 18263 18264rm -f core conftest.err conftest.$ac_objext \ 18265 conftest$ac_exeext conftest.$ac_ext 18266LIBS=$ac_check_lib_save_LIBS 18267fi 18268{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 18269echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 18270if test $ac_cv_lib_gcc___ashldi3 = yes; then 18271 18272cat >>confdefs.h <<\_ACEOF 18273#define HAVE___ASHLDI3 1 18274_ACEOF 18275 18276fi 18277 18278 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 18279echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 18280if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 18281 echo $ECHO_N "(cached) $ECHO_C" >&6 18282else 18283 ac_check_lib_save_LIBS=$LIBS 18284LIBS="-lgcc $LIBS" 18285cat >conftest.$ac_ext <<_ACEOF 18286/* confdefs.h. */ 18287_ACEOF 18288cat confdefs.h >>conftest.$ac_ext 18289cat >>conftest.$ac_ext <<_ACEOF 18290/* end confdefs.h. */ 18291 18292/* Override any GCC internal prototype to avoid an error. 18293 Use char because int might match the return type of a GCC 18294 builtin and then its argument prototype would still apply. */ 18295#ifdef __cplusplus 18296extern "C" 18297#endif 18298char __ashrdi3 (); 18299int 18300main () 18301{ 18302return __ashrdi3 (); 18303 ; 18304 return 0; 18305} 18306_ACEOF 18307rm -f conftest.$ac_objext conftest$ac_exeext 18308if { (ac_try="$ac_link" 18309case "(($ac_try" in 18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18311 *) ac_try_echo=$ac_try;; 18312esac 18313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18314 (eval "$ac_link") 2>conftest.er1 18315 ac_status=$? 18316 grep -v '^ *+' conftest.er1 >conftest.err 18317 rm -f conftest.er1 18318 cat conftest.err >&5 18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18320 (exit $ac_status); } && 18321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18322 { (case "(($ac_try" in 18323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18324 *) ac_try_echo=$ac_try;; 18325esac 18326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18327 (eval "$ac_try") 2>&5 18328 ac_status=$? 18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18330 (exit $ac_status); }; } && 18331 { ac_try='test -s conftest$ac_exeext' 18332 { (case "(($ac_try" in 18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18334 *) ac_try_echo=$ac_try;; 18335esac 18336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18337 (eval "$ac_try") 2>&5 18338 ac_status=$? 18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18340 (exit $ac_status); }; }; then 18341 ac_cv_lib_gcc___ashrdi3=yes 18342else 18343 echo "$as_me: failed program was:" >&5 18344sed 's/^/| /' conftest.$ac_ext >&5 18345 18346 ac_cv_lib_gcc___ashrdi3=no 18347fi 18348 18349rm -f core conftest.err conftest.$ac_objext \ 18350 conftest$ac_exeext conftest.$ac_ext 18351LIBS=$ac_check_lib_save_LIBS 18352fi 18353{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 18354echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 18355if test $ac_cv_lib_gcc___ashrdi3 = yes; then 18356 18357cat >>confdefs.h <<\_ACEOF 18358#define HAVE___ASHRDI3 1 18359_ACEOF 18360 18361fi 18362 18363 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 18364echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 18365if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 18366 echo $ECHO_N "(cached) $ECHO_C" >&6 18367else 18368 ac_check_lib_save_LIBS=$LIBS 18369LIBS="-lgcc $LIBS" 18370cat >conftest.$ac_ext <<_ACEOF 18371/* confdefs.h. */ 18372_ACEOF 18373cat confdefs.h >>conftest.$ac_ext 18374cat >>conftest.$ac_ext <<_ACEOF 18375/* end confdefs.h. */ 18376 18377/* Override any GCC internal prototype to avoid an error. 18378 Use char because int might match the return type of a GCC 18379 builtin and then its argument prototype would still apply. */ 18380#ifdef __cplusplus 18381extern "C" 18382#endif 18383char __divdi3 (); 18384int 18385main () 18386{ 18387return __divdi3 (); 18388 ; 18389 return 0; 18390} 18391_ACEOF 18392rm -f conftest.$ac_objext conftest$ac_exeext 18393if { (ac_try="$ac_link" 18394case "(($ac_try" in 18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18396 *) ac_try_echo=$ac_try;; 18397esac 18398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18399 (eval "$ac_link") 2>conftest.er1 18400 ac_status=$? 18401 grep -v '^ *+' conftest.er1 >conftest.err 18402 rm -f conftest.er1 18403 cat conftest.err >&5 18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18405 (exit $ac_status); } && 18406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18407 { (case "(($ac_try" in 18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18409 *) ac_try_echo=$ac_try;; 18410esac 18411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18412 (eval "$ac_try") 2>&5 18413 ac_status=$? 18414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18415 (exit $ac_status); }; } && 18416 { ac_try='test -s conftest$ac_exeext' 18417 { (case "(($ac_try" in 18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18419 *) ac_try_echo=$ac_try;; 18420esac 18421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18422 (eval "$ac_try") 2>&5 18423 ac_status=$? 18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18425 (exit $ac_status); }; }; then 18426 ac_cv_lib_gcc___divdi3=yes 18427else 18428 echo "$as_me: failed program was:" >&5 18429sed 's/^/| /' conftest.$ac_ext >&5 18430 18431 ac_cv_lib_gcc___divdi3=no 18432fi 18433 18434rm -f core conftest.err conftest.$ac_objext \ 18435 conftest$ac_exeext conftest.$ac_ext 18436LIBS=$ac_check_lib_save_LIBS 18437fi 18438{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 18439echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 18440if test $ac_cv_lib_gcc___divdi3 = yes; then 18441 18442cat >>confdefs.h <<\_ACEOF 18443#define HAVE___DIVDI3 1 18444_ACEOF 18445 18446fi 18447 18448 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 18449echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 18450if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 18451 echo $ECHO_N "(cached) $ECHO_C" >&6 18452else 18453 ac_check_lib_save_LIBS=$LIBS 18454LIBS="-lgcc $LIBS" 18455cat >conftest.$ac_ext <<_ACEOF 18456/* confdefs.h. */ 18457_ACEOF 18458cat confdefs.h >>conftest.$ac_ext 18459cat >>conftest.$ac_ext <<_ACEOF 18460/* end confdefs.h. */ 18461 18462/* Override any GCC internal prototype to avoid an error. 18463 Use char because int might match the return type of a GCC 18464 builtin and then its argument prototype would still apply. */ 18465#ifdef __cplusplus 18466extern "C" 18467#endif 18468char __fixdfdi (); 18469int 18470main () 18471{ 18472return __fixdfdi (); 18473 ; 18474 return 0; 18475} 18476_ACEOF 18477rm -f conftest.$ac_objext conftest$ac_exeext 18478if { (ac_try="$ac_link" 18479case "(($ac_try" in 18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18481 *) ac_try_echo=$ac_try;; 18482esac 18483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18484 (eval "$ac_link") 2>conftest.er1 18485 ac_status=$? 18486 grep -v '^ *+' conftest.er1 >conftest.err 18487 rm -f conftest.er1 18488 cat conftest.err >&5 18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18490 (exit $ac_status); } && 18491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18492 { (case "(($ac_try" in 18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18494 *) ac_try_echo=$ac_try;; 18495esac 18496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18497 (eval "$ac_try") 2>&5 18498 ac_status=$? 18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18500 (exit $ac_status); }; } && 18501 { ac_try='test -s conftest$ac_exeext' 18502 { (case "(($ac_try" in 18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18504 *) ac_try_echo=$ac_try;; 18505esac 18506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18507 (eval "$ac_try") 2>&5 18508 ac_status=$? 18509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18510 (exit $ac_status); }; }; then 18511 ac_cv_lib_gcc___fixdfdi=yes 18512else 18513 echo "$as_me: failed program was:" >&5 18514sed 's/^/| /' conftest.$ac_ext >&5 18515 18516 ac_cv_lib_gcc___fixdfdi=no 18517fi 18518 18519rm -f core conftest.err conftest.$ac_objext \ 18520 conftest$ac_exeext conftest.$ac_ext 18521LIBS=$ac_check_lib_save_LIBS 18522fi 18523{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 18524echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 18525if test $ac_cv_lib_gcc___fixdfdi = yes; then 18526 18527cat >>confdefs.h <<\_ACEOF 18528#define HAVE___FIXDFDI 1 18529_ACEOF 18530 18531fi 18532 18533 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 18534echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 18535if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 18536 echo $ECHO_N "(cached) $ECHO_C" >&6 18537else 18538 ac_check_lib_save_LIBS=$LIBS 18539LIBS="-lgcc $LIBS" 18540cat >conftest.$ac_ext <<_ACEOF 18541/* confdefs.h. */ 18542_ACEOF 18543cat confdefs.h >>conftest.$ac_ext 18544cat >>conftest.$ac_ext <<_ACEOF 18545/* end confdefs.h. */ 18546 18547/* Override any GCC internal prototype to avoid an error. 18548 Use char because int might match the return type of a GCC 18549 builtin and then its argument prototype would still apply. */ 18550#ifdef __cplusplus 18551extern "C" 18552#endif 18553char __fixsfdi (); 18554int 18555main () 18556{ 18557return __fixsfdi (); 18558 ; 18559 return 0; 18560} 18561_ACEOF 18562rm -f conftest.$ac_objext conftest$ac_exeext 18563if { (ac_try="$ac_link" 18564case "(($ac_try" in 18565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18566 *) ac_try_echo=$ac_try;; 18567esac 18568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18569 (eval "$ac_link") 2>conftest.er1 18570 ac_status=$? 18571 grep -v '^ *+' conftest.er1 >conftest.err 18572 rm -f conftest.er1 18573 cat conftest.err >&5 18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18575 (exit $ac_status); } && 18576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18577 { (case "(($ac_try" in 18578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18579 *) ac_try_echo=$ac_try;; 18580esac 18581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18582 (eval "$ac_try") 2>&5 18583 ac_status=$? 18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18585 (exit $ac_status); }; } && 18586 { ac_try='test -s conftest$ac_exeext' 18587 { (case "(($ac_try" in 18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18589 *) ac_try_echo=$ac_try;; 18590esac 18591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18592 (eval "$ac_try") 2>&5 18593 ac_status=$? 18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18595 (exit $ac_status); }; }; then 18596 ac_cv_lib_gcc___fixsfdi=yes 18597else 18598 echo "$as_me: failed program was:" >&5 18599sed 's/^/| /' conftest.$ac_ext >&5 18600 18601 ac_cv_lib_gcc___fixsfdi=no 18602fi 18603 18604rm -f core conftest.err conftest.$ac_objext \ 18605 conftest$ac_exeext conftest.$ac_ext 18606LIBS=$ac_check_lib_save_LIBS 18607fi 18608{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 18609echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 18610if test $ac_cv_lib_gcc___fixsfdi = yes; then 18611 18612cat >>confdefs.h <<\_ACEOF 18613#define HAVE___FIXSFDI 1 18614_ACEOF 18615 18616fi 18617 18618 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 18619echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 18620if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 18621 echo $ECHO_N "(cached) $ECHO_C" >&6 18622else 18623 ac_check_lib_save_LIBS=$LIBS 18624LIBS="-lgcc $LIBS" 18625cat >conftest.$ac_ext <<_ACEOF 18626/* confdefs.h. */ 18627_ACEOF 18628cat confdefs.h >>conftest.$ac_ext 18629cat >>conftest.$ac_ext <<_ACEOF 18630/* end confdefs.h. */ 18631 18632/* Override any GCC internal prototype to avoid an error. 18633 Use char because int might match the return type of a GCC 18634 builtin and then its argument prototype would still apply. */ 18635#ifdef __cplusplus 18636extern "C" 18637#endif 18638char __floatdidf (); 18639int 18640main () 18641{ 18642return __floatdidf (); 18643 ; 18644 return 0; 18645} 18646_ACEOF 18647rm -f conftest.$ac_objext conftest$ac_exeext 18648if { (ac_try="$ac_link" 18649case "(($ac_try" in 18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18651 *) ac_try_echo=$ac_try;; 18652esac 18653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18654 (eval "$ac_link") 2>conftest.er1 18655 ac_status=$? 18656 grep -v '^ *+' conftest.er1 >conftest.err 18657 rm -f conftest.er1 18658 cat conftest.err >&5 18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18660 (exit $ac_status); } && 18661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18662 { (case "(($ac_try" in 18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18664 *) ac_try_echo=$ac_try;; 18665esac 18666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18667 (eval "$ac_try") 2>&5 18668 ac_status=$? 18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18670 (exit $ac_status); }; } && 18671 { ac_try='test -s conftest$ac_exeext' 18672 { (case "(($ac_try" in 18673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18674 *) ac_try_echo=$ac_try;; 18675esac 18676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18677 (eval "$ac_try") 2>&5 18678 ac_status=$? 18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18680 (exit $ac_status); }; }; then 18681 ac_cv_lib_gcc___floatdidf=yes 18682else 18683 echo "$as_me: failed program was:" >&5 18684sed 's/^/| /' conftest.$ac_ext >&5 18685 18686 ac_cv_lib_gcc___floatdidf=no 18687fi 18688 18689rm -f core conftest.err conftest.$ac_objext \ 18690 conftest$ac_exeext conftest.$ac_ext 18691LIBS=$ac_check_lib_save_LIBS 18692fi 18693{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 18694echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 18695if test $ac_cv_lib_gcc___floatdidf = yes; then 18696 18697cat >>confdefs.h <<\_ACEOF 18698#define HAVE___FLOATDIDF 1 18699_ACEOF 18700 18701fi 18702 18703 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 18704echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 18705if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 18706 echo $ECHO_N "(cached) $ECHO_C" >&6 18707else 18708 ac_check_lib_save_LIBS=$LIBS 18709LIBS="-lgcc $LIBS" 18710cat >conftest.$ac_ext <<_ACEOF 18711/* confdefs.h. */ 18712_ACEOF 18713cat confdefs.h >>conftest.$ac_ext 18714cat >>conftest.$ac_ext <<_ACEOF 18715/* end confdefs.h. */ 18716 18717/* Override any GCC internal prototype to avoid an error. 18718 Use char because int might match the return type of a GCC 18719 builtin and then its argument prototype would still apply. */ 18720#ifdef __cplusplus 18721extern "C" 18722#endif 18723char __lshrdi3 (); 18724int 18725main () 18726{ 18727return __lshrdi3 (); 18728 ; 18729 return 0; 18730} 18731_ACEOF 18732rm -f conftest.$ac_objext conftest$ac_exeext 18733if { (ac_try="$ac_link" 18734case "(($ac_try" in 18735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18736 *) ac_try_echo=$ac_try;; 18737esac 18738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18739 (eval "$ac_link") 2>conftest.er1 18740 ac_status=$? 18741 grep -v '^ *+' conftest.er1 >conftest.err 18742 rm -f conftest.er1 18743 cat conftest.err >&5 18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18745 (exit $ac_status); } && 18746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18747 { (case "(($ac_try" in 18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18749 *) ac_try_echo=$ac_try;; 18750esac 18751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18752 (eval "$ac_try") 2>&5 18753 ac_status=$? 18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18755 (exit $ac_status); }; } && 18756 { ac_try='test -s conftest$ac_exeext' 18757 { (case "(($ac_try" in 18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18759 *) ac_try_echo=$ac_try;; 18760esac 18761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18762 (eval "$ac_try") 2>&5 18763 ac_status=$? 18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18765 (exit $ac_status); }; }; then 18766 ac_cv_lib_gcc___lshrdi3=yes 18767else 18768 echo "$as_me: failed program was:" >&5 18769sed 's/^/| /' conftest.$ac_ext >&5 18770 18771 ac_cv_lib_gcc___lshrdi3=no 18772fi 18773 18774rm -f core conftest.err conftest.$ac_objext \ 18775 conftest$ac_exeext conftest.$ac_ext 18776LIBS=$ac_check_lib_save_LIBS 18777fi 18778{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 18779echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 18780if test $ac_cv_lib_gcc___lshrdi3 = yes; then 18781 18782cat >>confdefs.h <<\_ACEOF 18783#define HAVE___LSHRDI3 1 18784_ACEOF 18785 18786fi 18787 18788 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 18789echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 18790if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 18791 echo $ECHO_N "(cached) $ECHO_C" >&6 18792else 18793 ac_check_lib_save_LIBS=$LIBS 18794LIBS="-lgcc $LIBS" 18795cat >conftest.$ac_ext <<_ACEOF 18796/* confdefs.h. */ 18797_ACEOF 18798cat confdefs.h >>conftest.$ac_ext 18799cat >>conftest.$ac_ext <<_ACEOF 18800/* end confdefs.h. */ 18801 18802/* Override any GCC internal prototype to avoid an error. 18803 Use char because int might match the return type of a GCC 18804 builtin and then its argument prototype would still apply. */ 18805#ifdef __cplusplus 18806extern "C" 18807#endif 18808char __moddi3 (); 18809int 18810main () 18811{ 18812return __moddi3 (); 18813 ; 18814 return 0; 18815} 18816_ACEOF 18817rm -f conftest.$ac_objext conftest$ac_exeext 18818if { (ac_try="$ac_link" 18819case "(($ac_try" in 18820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18821 *) ac_try_echo=$ac_try;; 18822esac 18823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18824 (eval "$ac_link") 2>conftest.er1 18825 ac_status=$? 18826 grep -v '^ *+' conftest.er1 >conftest.err 18827 rm -f conftest.er1 18828 cat conftest.err >&5 18829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18830 (exit $ac_status); } && 18831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18832 { (case "(($ac_try" in 18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18834 *) ac_try_echo=$ac_try;; 18835esac 18836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18837 (eval "$ac_try") 2>&5 18838 ac_status=$? 18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18840 (exit $ac_status); }; } && 18841 { ac_try='test -s conftest$ac_exeext' 18842 { (case "(($ac_try" in 18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18844 *) ac_try_echo=$ac_try;; 18845esac 18846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18847 (eval "$ac_try") 2>&5 18848 ac_status=$? 18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18850 (exit $ac_status); }; }; then 18851 ac_cv_lib_gcc___moddi3=yes 18852else 18853 echo "$as_me: failed program was:" >&5 18854sed 's/^/| /' conftest.$ac_ext >&5 18855 18856 ac_cv_lib_gcc___moddi3=no 18857fi 18858 18859rm -f core conftest.err conftest.$ac_objext \ 18860 conftest$ac_exeext conftest.$ac_ext 18861LIBS=$ac_check_lib_save_LIBS 18862fi 18863{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 18864echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 18865if test $ac_cv_lib_gcc___moddi3 = yes; then 18866 18867cat >>confdefs.h <<\_ACEOF 18868#define HAVE___MODDI3 1 18869_ACEOF 18870 18871fi 18872 18873 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 18874echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 18875if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 18876 echo $ECHO_N "(cached) $ECHO_C" >&6 18877else 18878 ac_check_lib_save_LIBS=$LIBS 18879LIBS="-lgcc $LIBS" 18880cat >conftest.$ac_ext <<_ACEOF 18881/* confdefs.h. */ 18882_ACEOF 18883cat confdefs.h >>conftest.$ac_ext 18884cat >>conftest.$ac_ext <<_ACEOF 18885/* end confdefs.h. */ 18886 18887/* Override any GCC internal prototype to avoid an error. 18888 Use char because int might match the return type of a GCC 18889 builtin and then its argument prototype would still apply. */ 18890#ifdef __cplusplus 18891extern "C" 18892#endif 18893char __udivdi3 (); 18894int 18895main () 18896{ 18897return __udivdi3 (); 18898 ; 18899 return 0; 18900} 18901_ACEOF 18902rm -f conftest.$ac_objext conftest$ac_exeext 18903if { (ac_try="$ac_link" 18904case "(($ac_try" in 18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18906 *) ac_try_echo=$ac_try;; 18907esac 18908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18909 (eval "$ac_link") 2>conftest.er1 18910 ac_status=$? 18911 grep -v '^ *+' conftest.er1 >conftest.err 18912 rm -f conftest.er1 18913 cat conftest.err >&5 18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18915 (exit $ac_status); } && 18916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18917 { (case "(($ac_try" in 18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18919 *) ac_try_echo=$ac_try;; 18920esac 18921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18922 (eval "$ac_try") 2>&5 18923 ac_status=$? 18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18925 (exit $ac_status); }; } && 18926 { ac_try='test -s conftest$ac_exeext' 18927 { (case "(($ac_try" in 18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18929 *) ac_try_echo=$ac_try;; 18930esac 18931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18932 (eval "$ac_try") 2>&5 18933 ac_status=$? 18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18935 (exit $ac_status); }; }; then 18936 ac_cv_lib_gcc___udivdi3=yes 18937else 18938 echo "$as_me: failed program was:" >&5 18939sed 's/^/| /' conftest.$ac_ext >&5 18940 18941 ac_cv_lib_gcc___udivdi3=no 18942fi 18943 18944rm -f core conftest.err conftest.$ac_objext \ 18945 conftest$ac_exeext conftest.$ac_ext 18946LIBS=$ac_check_lib_save_LIBS 18947fi 18948{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 18949echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 18950if test $ac_cv_lib_gcc___udivdi3 = yes; then 18951 18952cat >>confdefs.h <<\_ACEOF 18953#define HAVE___UDIVDI3 1 18954_ACEOF 18955 18956fi 18957 18958 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 18959echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 18960if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 18961 echo $ECHO_N "(cached) $ECHO_C" >&6 18962else 18963 ac_check_lib_save_LIBS=$LIBS 18964LIBS="-lgcc $LIBS" 18965cat >conftest.$ac_ext <<_ACEOF 18966/* confdefs.h. */ 18967_ACEOF 18968cat confdefs.h >>conftest.$ac_ext 18969cat >>conftest.$ac_ext <<_ACEOF 18970/* end confdefs.h. */ 18971 18972/* Override any GCC internal prototype to avoid an error. 18973 Use char because int might match the return type of a GCC 18974 builtin and then its argument prototype would still apply. */ 18975#ifdef __cplusplus 18976extern "C" 18977#endif 18978char __umoddi3 (); 18979int 18980main () 18981{ 18982return __umoddi3 (); 18983 ; 18984 return 0; 18985} 18986_ACEOF 18987rm -f conftest.$ac_objext conftest$ac_exeext 18988if { (ac_try="$ac_link" 18989case "(($ac_try" in 18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18991 *) ac_try_echo=$ac_try;; 18992esac 18993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18994 (eval "$ac_link") 2>conftest.er1 18995 ac_status=$? 18996 grep -v '^ *+' conftest.er1 >conftest.err 18997 rm -f conftest.er1 18998 cat conftest.err >&5 18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19000 (exit $ac_status); } && 19001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19002 { (case "(($ac_try" in 19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19004 *) ac_try_echo=$ac_try;; 19005esac 19006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19007 (eval "$ac_try") 2>&5 19008 ac_status=$? 19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19010 (exit $ac_status); }; } && 19011 { ac_try='test -s conftest$ac_exeext' 19012 { (case "(($ac_try" in 19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19014 *) ac_try_echo=$ac_try;; 19015esac 19016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19017 (eval "$ac_try") 2>&5 19018 ac_status=$? 19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19020 (exit $ac_status); }; }; then 19021 ac_cv_lib_gcc___umoddi3=yes 19022else 19023 echo "$as_me: failed program was:" >&5 19024sed 's/^/| /' conftest.$ac_ext >&5 19025 19026 ac_cv_lib_gcc___umoddi3=no 19027fi 19028 19029rm -f core conftest.err conftest.$ac_objext \ 19030 conftest$ac_exeext conftest.$ac_ext 19031LIBS=$ac_check_lib_save_LIBS 19032fi 19033{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 19034echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 19035if test $ac_cv_lib_gcc___umoddi3 = yes; then 19036 19037cat >>confdefs.h <<\_ACEOF 19038#define HAVE___UMODDI3 1 19039_ACEOF 19040 19041fi 19042 19043 19044 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 19045echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 19046if test "${ac_cv_lib_gcc___main+set}" = set; then 19047 echo $ECHO_N "(cached) $ECHO_C" >&6 19048else 19049 ac_check_lib_save_LIBS=$LIBS 19050LIBS="-lgcc $LIBS" 19051cat >conftest.$ac_ext <<_ACEOF 19052/* confdefs.h. */ 19053_ACEOF 19054cat confdefs.h >>conftest.$ac_ext 19055cat >>conftest.$ac_ext <<_ACEOF 19056/* end confdefs.h. */ 19057 19058/* Override any GCC internal prototype to avoid an error. 19059 Use char because int might match the return type of a GCC 19060 builtin and then its argument prototype would still apply. */ 19061#ifdef __cplusplus 19062extern "C" 19063#endif 19064char __main (); 19065int 19066main () 19067{ 19068return __main (); 19069 ; 19070 return 0; 19071} 19072_ACEOF 19073rm -f conftest.$ac_objext conftest$ac_exeext 19074if { (ac_try="$ac_link" 19075case "(($ac_try" in 19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19077 *) ac_try_echo=$ac_try;; 19078esac 19079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19080 (eval "$ac_link") 2>conftest.er1 19081 ac_status=$? 19082 grep -v '^ *+' conftest.er1 >conftest.err 19083 rm -f conftest.er1 19084 cat conftest.err >&5 19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19086 (exit $ac_status); } && 19087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19088 { (case "(($ac_try" in 19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19090 *) ac_try_echo=$ac_try;; 19091esac 19092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19093 (eval "$ac_try") 2>&5 19094 ac_status=$? 19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19096 (exit $ac_status); }; } && 19097 { ac_try='test -s conftest$ac_exeext' 19098 { (case "(($ac_try" in 19099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19100 *) ac_try_echo=$ac_try;; 19101esac 19102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19103 (eval "$ac_try") 2>&5 19104 ac_status=$? 19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19106 (exit $ac_status); }; }; then 19107 ac_cv_lib_gcc___main=yes 19108else 19109 echo "$as_me: failed program was:" >&5 19110sed 's/^/| /' conftest.$ac_ext >&5 19111 19112 ac_cv_lib_gcc___main=no 19113fi 19114 19115rm -f core conftest.err conftest.$ac_objext \ 19116 conftest$ac_exeext conftest.$ac_ext 19117LIBS=$ac_check_lib_save_LIBS 19118fi 19119{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 19120echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 19121if test $ac_cv_lib_gcc___main = yes; then 19122 19123cat >>confdefs.h <<\_ACEOF 19124#define HAVE___MAIN 1 19125_ACEOF 19126 19127fi 19128 19129 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 19130echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 19131if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 19132 echo $ECHO_N "(cached) $ECHO_C" >&6 19133else 19134 ac_check_lib_save_LIBS=$LIBS 19135LIBS="-lgcc $LIBS" 19136cat >conftest.$ac_ext <<_ACEOF 19137/* confdefs.h. */ 19138_ACEOF 19139cat confdefs.h >>conftest.$ac_ext 19140cat >>conftest.$ac_ext <<_ACEOF 19141/* end confdefs.h. */ 19142 19143/* Override any GCC internal prototype to avoid an error. 19144 Use char because int might match the return type of a GCC 19145 builtin and then its argument prototype would still apply. */ 19146#ifdef __cplusplus 19147extern "C" 19148#endif 19149char __cmpdi2 (); 19150int 19151main () 19152{ 19153return __cmpdi2 (); 19154 ; 19155 return 0; 19156} 19157_ACEOF 19158rm -f conftest.$ac_objext conftest$ac_exeext 19159if { (ac_try="$ac_link" 19160case "(($ac_try" in 19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19162 *) ac_try_echo=$ac_try;; 19163esac 19164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19165 (eval "$ac_link") 2>conftest.er1 19166 ac_status=$? 19167 grep -v '^ *+' conftest.er1 >conftest.err 19168 rm -f conftest.er1 19169 cat conftest.err >&5 19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19171 (exit $ac_status); } && 19172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19173 { (case "(($ac_try" in 19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19175 *) ac_try_echo=$ac_try;; 19176esac 19177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19178 (eval "$ac_try") 2>&5 19179 ac_status=$? 19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19181 (exit $ac_status); }; } && 19182 { ac_try='test -s conftest$ac_exeext' 19183 { (case "(($ac_try" in 19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19185 *) ac_try_echo=$ac_try;; 19186esac 19187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19188 (eval "$ac_try") 2>&5 19189 ac_status=$? 19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19191 (exit $ac_status); }; }; then 19192 ac_cv_lib_gcc___cmpdi2=yes 19193else 19194 echo "$as_me: failed program was:" >&5 19195sed 's/^/| /' conftest.$ac_ext >&5 19196 19197 ac_cv_lib_gcc___cmpdi2=no 19198fi 19199 19200rm -f core conftest.err conftest.$ac_objext \ 19201 conftest$ac_exeext conftest.$ac_ext 19202LIBS=$ac_check_lib_save_LIBS 19203fi 19204{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 19205echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 19206if test $ac_cv_lib_gcc___cmpdi2 = yes; then 19207 19208cat >>confdefs.h <<\_ACEOF 19209#define HAVE___CMPDI2 1 19210_ACEOF 19211 19212fi 19213 19214fi 19215 19216if test "$llvm_cv_os_type" = "MingW" ; then 19217 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 19218echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 19219 cat >conftest.$ac_ext <<_ACEOF 19220#include <windows.h> 19221#include <imagehlp.h> 19222extern void foo(PENUMLOADED_MODULES_CALLBACK); 19223extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 19224_ACEOF 19225rm -f conftest.$ac_objext 19226if { (ac_try="$ac_compile" 19227case "(($ac_try" in 19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19229 *) ac_try_echo=$ac_try;; 19230esac 19231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19232 (eval "$ac_compile") 2>conftest.er1 19233 ac_status=$? 19234 grep -v '^ *+' conftest.er1 >conftest.err 19235 rm -f conftest.er1 19236 cat conftest.err >&5 19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19238 (exit $ac_status); } && 19239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19240 { (case "(($ac_try" in 19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19242 *) ac_try_echo=$ac_try;; 19243esac 19244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19245 (eval "$ac_try") 2>&5 19246 ac_status=$? 19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19248 (exit $ac_status); }; } && 19249 { ac_try='test -s conftest.$ac_objext' 19250 { (case "(($ac_try" in 19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19252 *) ac_try_echo=$ac_try;; 19253esac 19254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19255 (eval "$ac_try") 2>&5 19256 ac_status=$? 19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19258 (exit $ac_status); }; }; then 19259 19260 { echo "$as_me:$LINENO: result: yes" >&5 19261echo "${ECHO_T}yes" >&6; } 19262 llvm_cv_win32_elmcb_pcstr="PCSTR" 19263 19264else 19265 echo "$as_me: failed program was:" >&5 19266sed 's/^/| /' conftest.$ac_ext >&5 19267 19268 19269 { echo "$as_me:$LINENO: result: no" >&5 19270echo "${ECHO_T}no" >&6; } 19271 llvm_cv_win32_elmcb_pcstr="PSTR" 19272 19273fi 19274 19275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19276 19277cat >>confdefs.h <<_ACEOF 19278#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 19279_ACEOF 19280 19281fi 19282 19283 19284{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 19285echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 19286if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 19287 echo $ECHO_N "(cached) $ECHO_C" >&6 19288else 19289 ac_ext=cpp 19290ac_cpp='$CXXCPP $CPPFLAGS' 19291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19292ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19293ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19294 19295 cat >conftest.$ac_ext <<_ACEOF 19296/* confdefs.h. */ 19297_ACEOF 19298cat confdefs.h >>conftest.$ac_ext 19299cat >>conftest.$ac_ext <<_ACEOF 19300/* end confdefs.h. */ 19301#include <math.h> 19302int 19303main () 19304{ 19305float f; isnan(f); 19306 ; 19307 return 0; 19308} 19309_ACEOF 19310rm -f conftest.$ac_objext 19311if { (ac_try="$ac_compile" 19312case "(($ac_try" in 19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19314 *) ac_try_echo=$ac_try;; 19315esac 19316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19317 (eval "$ac_compile") 2>conftest.er1 19318 ac_status=$? 19319 grep -v '^ *+' conftest.er1 >conftest.err 19320 rm -f conftest.er1 19321 cat conftest.err >&5 19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19323 (exit $ac_status); } && 19324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19325 { (case "(($ac_try" in 19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19327 *) ac_try_echo=$ac_try;; 19328esac 19329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19330 (eval "$ac_try") 2>&5 19331 ac_status=$? 19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19333 (exit $ac_status); }; } && 19334 { ac_try='test -s conftest.$ac_objext' 19335 { (case "(($ac_try" in 19336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19337 *) ac_try_echo=$ac_try;; 19338esac 19339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19340 (eval "$ac_try") 2>&5 19341 ac_status=$? 19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19343 (exit $ac_status); }; }; then 19344 ac_cv_func_isnan_in_math_h=yes 19345else 19346 echo "$as_me: failed program was:" >&5 19347sed 's/^/| /' conftest.$ac_ext >&5 19348 19349 ac_cv_func_isnan_in_math_h=no 19350fi 19351 19352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19353 ac_ext=c 19354ac_cpp='$CPP $CPPFLAGS' 19355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19357ac_compiler_gnu=$ac_cv_c_compiler_gnu 19358 19359fi 19360{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 19361echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 19362 19363 19364if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 19365 19366cat >>confdefs.h <<\_ACEOF 19367#define HAVE_ISNAN_IN_MATH_H 1 19368_ACEOF 19369 19370fi 19371 19372{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 19373echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 19374if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 19375 echo $ECHO_N "(cached) $ECHO_C" >&6 19376else 19377 ac_ext=cpp 19378ac_cpp='$CXXCPP $CPPFLAGS' 19379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19382 19383 cat >conftest.$ac_ext <<_ACEOF 19384/* confdefs.h. */ 19385_ACEOF 19386cat confdefs.h >>conftest.$ac_ext 19387cat >>conftest.$ac_ext <<_ACEOF 19388/* end confdefs.h. */ 19389#include <cmath> 19390int 19391main () 19392{ 19393float f; isnan(f); 19394 ; 19395 return 0; 19396} 19397_ACEOF 19398rm -f conftest.$ac_objext 19399if { (ac_try="$ac_compile" 19400case "(($ac_try" in 19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19402 *) ac_try_echo=$ac_try;; 19403esac 19404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19405 (eval "$ac_compile") 2>conftest.er1 19406 ac_status=$? 19407 grep -v '^ *+' conftest.er1 >conftest.err 19408 rm -f conftest.er1 19409 cat conftest.err >&5 19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19411 (exit $ac_status); } && 19412 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19413 { (case "(($ac_try" in 19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19415 *) ac_try_echo=$ac_try;; 19416esac 19417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19418 (eval "$ac_try") 2>&5 19419 ac_status=$? 19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19421 (exit $ac_status); }; } && 19422 { ac_try='test -s conftest.$ac_objext' 19423 { (case "(($ac_try" in 19424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19425 *) ac_try_echo=$ac_try;; 19426esac 19427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19428 (eval "$ac_try") 2>&5 19429 ac_status=$? 19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19431 (exit $ac_status); }; }; then 19432 ac_cv_func_isnan_in_cmath=yes 19433else 19434 echo "$as_me: failed program was:" >&5 19435sed 's/^/| /' conftest.$ac_ext >&5 19436 19437 ac_cv_func_isnan_in_cmath=no 19438fi 19439 19440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19441 ac_ext=c 19442ac_cpp='$CPP $CPPFLAGS' 19443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19445ac_compiler_gnu=$ac_cv_c_compiler_gnu 19446 19447fi 19448{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 19449echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 19450 19451if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 19452 19453cat >>confdefs.h <<\_ACEOF 19454#define HAVE_ISNAN_IN_CMATH 1 19455_ACEOF 19456 19457fi 19458 19459{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 19460echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 19461if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 19462 echo $ECHO_N "(cached) $ECHO_C" >&6 19463else 19464 ac_ext=cpp 19465ac_cpp='$CXXCPP $CPPFLAGS' 19466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19469 19470 cat >conftest.$ac_ext <<_ACEOF 19471/* confdefs.h. */ 19472_ACEOF 19473cat confdefs.h >>conftest.$ac_ext 19474cat >>conftest.$ac_ext <<_ACEOF 19475/* end confdefs.h. */ 19476#include <cmath> 19477int 19478main () 19479{ 19480float f; std::isnan(f); 19481 ; 19482 return 0; 19483} 19484_ACEOF 19485rm -f conftest.$ac_objext 19486if { (ac_try="$ac_compile" 19487case "(($ac_try" in 19488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19489 *) ac_try_echo=$ac_try;; 19490esac 19491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19492 (eval "$ac_compile") 2>conftest.er1 19493 ac_status=$? 19494 grep -v '^ *+' conftest.er1 >conftest.err 19495 rm -f conftest.er1 19496 cat conftest.err >&5 19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19498 (exit $ac_status); } && 19499 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19500 { (case "(($ac_try" in 19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19502 *) ac_try_echo=$ac_try;; 19503esac 19504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19505 (eval "$ac_try") 2>&5 19506 ac_status=$? 19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19508 (exit $ac_status); }; } && 19509 { ac_try='test -s conftest.$ac_objext' 19510 { (case "(($ac_try" in 19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19512 *) ac_try_echo=$ac_try;; 19513esac 19514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19515 (eval "$ac_try") 2>&5 19516 ac_status=$? 19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19518 (exit $ac_status); }; }; then 19519 ac_cv_func_std_isnan_in_cmath=yes 19520else 19521 echo "$as_me: failed program was:" >&5 19522sed 's/^/| /' conftest.$ac_ext >&5 19523 19524 ac_cv_func_std_isnan_in_cmath=no 19525fi 19526 19527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19528 ac_ext=c 19529ac_cpp='$CPP $CPPFLAGS' 19530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19532ac_compiler_gnu=$ac_cv_c_compiler_gnu 19533 19534fi 19535{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 19536echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 19537 19538if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 19539 19540cat >>confdefs.h <<\_ACEOF 19541#define HAVE_STD_ISNAN_IN_CMATH 1 19542_ACEOF 19543 19544fi 19545 19546 19547{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 19548echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 19549if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 19550 echo $ECHO_N "(cached) $ECHO_C" >&6 19551else 19552 ac_ext=cpp 19553ac_cpp='$CXXCPP $CPPFLAGS' 19554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19557 19558 cat >conftest.$ac_ext <<_ACEOF 19559/* confdefs.h. */ 19560_ACEOF 19561cat confdefs.h >>conftest.$ac_ext 19562cat >>conftest.$ac_ext <<_ACEOF 19563/* end confdefs.h. */ 19564#include <math.h> 19565int 19566main () 19567{ 19568float f; isinf(f); 19569 ; 19570 return 0; 19571} 19572_ACEOF 19573rm -f conftest.$ac_objext 19574if { (ac_try="$ac_compile" 19575case "(($ac_try" in 19576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19577 *) ac_try_echo=$ac_try;; 19578esac 19579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19580 (eval "$ac_compile") 2>conftest.er1 19581 ac_status=$? 19582 grep -v '^ *+' conftest.er1 >conftest.err 19583 rm -f conftest.er1 19584 cat conftest.err >&5 19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19586 (exit $ac_status); } && 19587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19588 { (case "(($ac_try" in 19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19590 *) ac_try_echo=$ac_try;; 19591esac 19592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19593 (eval "$ac_try") 2>&5 19594 ac_status=$? 19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19596 (exit $ac_status); }; } && 19597 { ac_try='test -s conftest.$ac_objext' 19598 { (case "(($ac_try" in 19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19600 *) ac_try_echo=$ac_try;; 19601esac 19602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19603 (eval "$ac_try") 2>&5 19604 ac_status=$? 19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19606 (exit $ac_status); }; }; then 19607 ac_cv_func_isinf_in_math_h=yes 19608else 19609 echo "$as_me: failed program was:" >&5 19610sed 's/^/| /' conftest.$ac_ext >&5 19611 19612 ac_cv_func_isinf_in_math_h=no 19613fi 19614 19615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19616 ac_ext=c 19617ac_cpp='$CPP $CPPFLAGS' 19618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19620ac_compiler_gnu=$ac_cv_c_compiler_gnu 19621 19622fi 19623{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 19624echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 19625 19626if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 19627 19628cat >>confdefs.h <<\_ACEOF 19629#define HAVE_ISINF_IN_MATH_H 1 19630_ACEOF 19631 19632fi 19633 19634{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 19635echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 19636if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 19637 echo $ECHO_N "(cached) $ECHO_C" >&6 19638else 19639 ac_ext=cpp 19640ac_cpp='$CXXCPP $CPPFLAGS' 19641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19644 19645 cat >conftest.$ac_ext <<_ACEOF 19646/* confdefs.h. */ 19647_ACEOF 19648cat confdefs.h >>conftest.$ac_ext 19649cat >>conftest.$ac_ext <<_ACEOF 19650/* end confdefs.h. */ 19651#include <cmath> 19652int 19653main () 19654{ 19655float f; isinf(f); 19656 ; 19657 return 0; 19658} 19659_ACEOF 19660rm -f conftest.$ac_objext 19661if { (ac_try="$ac_compile" 19662case "(($ac_try" in 19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19664 *) ac_try_echo=$ac_try;; 19665esac 19666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19667 (eval "$ac_compile") 2>conftest.er1 19668 ac_status=$? 19669 grep -v '^ *+' conftest.er1 >conftest.err 19670 rm -f conftest.er1 19671 cat conftest.err >&5 19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19673 (exit $ac_status); } && 19674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19675 { (case "(($ac_try" in 19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19677 *) ac_try_echo=$ac_try;; 19678esac 19679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19680 (eval "$ac_try") 2>&5 19681 ac_status=$? 19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19683 (exit $ac_status); }; } && 19684 { ac_try='test -s conftest.$ac_objext' 19685 { (case "(($ac_try" in 19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19687 *) ac_try_echo=$ac_try;; 19688esac 19689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19690 (eval "$ac_try") 2>&5 19691 ac_status=$? 19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19693 (exit $ac_status); }; }; then 19694 ac_cv_func_isinf_in_cmath=yes 19695else 19696 echo "$as_me: failed program was:" >&5 19697sed 's/^/| /' conftest.$ac_ext >&5 19698 19699 ac_cv_func_isinf_in_cmath=no 19700fi 19701 19702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19703 ac_ext=c 19704ac_cpp='$CPP $CPPFLAGS' 19705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19707ac_compiler_gnu=$ac_cv_c_compiler_gnu 19708 19709fi 19710{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 19711echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 19712 19713if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 19714 19715cat >>confdefs.h <<\_ACEOF 19716#define HAVE_ISINF_IN_CMATH 1 19717_ACEOF 19718 19719fi 19720 19721{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 19722echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 19723if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 19724 echo $ECHO_N "(cached) $ECHO_C" >&6 19725else 19726 ac_ext=cpp 19727ac_cpp='$CXXCPP $CPPFLAGS' 19728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19731 19732 cat >conftest.$ac_ext <<_ACEOF 19733/* confdefs.h. */ 19734_ACEOF 19735cat confdefs.h >>conftest.$ac_ext 19736cat >>conftest.$ac_ext <<_ACEOF 19737/* end confdefs.h. */ 19738#include <cmath> 19739int 19740main () 19741{ 19742float f; std::isinf(f)} 19743 ; 19744 return 0; 19745} 19746_ACEOF 19747rm -f conftest.$ac_objext 19748if { (ac_try="$ac_compile" 19749case "(($ac_try" in 19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19751 *) ac_try_echo=$ac_try;; 19752esac 19753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19754 (eval "$ac_compile") 2>conftest.er1 19755 ac_status=$? 19756 grep -v '^ *+' conftest.er1 >conftest.err 19757 rm -f conftest.er1 19758 cat conftest.err >&5 19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19760 (exit $ac_status); } && 19761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19762 { (case "(($ac_try" in 19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19764 *) ac_try_echo=$ac_try;; 19765esac 19766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19767 (eval "$ac_try") 2>&5 19768 ac_status=$? 19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19770 (exit $ac_status); }; } && 19771 { ac_try='test -s conftest.$ac_objext' 19772 { (case "(($ac_try" in 19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19774 *) ac_try_echo=$ac_try;; 19775esac 19776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19777 (eval "$ac_try") 2>&5 19778 ac_status=$? 19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19780 (exit $ac_status); }; }; then 19781 ac_cv_func_std_isinf_in_cmath=yes 19782else 19783 echo "$as_me: failed program was:" >&5 19784sed 's/^/| /' conftest.$ac_ext >&5 19785 19786 ac_cv_func_std_isinf_in_cmath=no 19787fi 19788 19789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19790 ac_ext=c 19791ac_cpp='$CPP $CPPFLAGS' 19792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19794ac_compiler_gnu=$ac_cv_c_compiler_gnu 19795 19796fi 19797{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 19798echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 19799 19800if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 19801 19802cat >>confdefs.h <<\_ACEOF 19803#define HAVE_STD_ISINF_IN_CMATH 1 19804_ACEOF 19805 19806fi 19807 19808{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 19809echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 19810if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 19811 echo $ECHO_N "(cached) $ECHO_C" >&6 19812else 19813 ac_ext=cpp 19814ac_cpp='$CXXCPP $CPPFLAGS' 19815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19818 19819 cat >conftest.$ac_ext <<_ACEOF 19820/* confdefs.h. */ 19821_ACEOF 19822cat confdefs.h >>conftest.$ac_ext 19823cat >>conftest.$ac_ext <<_ACEOF 19824/* end confdefs.h. */ 19825#include <ieeefp.h> 19826int 19827main () 19828{ 19829float f; finite(f); 19830 ; 19831 return 0; 19832} 19833_ACEOF 19834rm -f conftest.$ac_objext 19835if { (ac_try="$ac_compile" 19836case "(($ac_try" in 19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19838 *) ac_try_echo=$ac_try;; 19839esac 19840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19841 (eval "$ac_compile") 2>conftest.er1 19842 ac_status=$? 19843 grep -v '^ *+' conftest.er1 >conftest.err 19844 rm -f conftest.er1 19845 cat conftest.err >&5 19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19847 (exit $ac_status); } && 19848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19849 { (case "(($ac_try" in 19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19851 *) ac_try_echo=$ac_try;; 19852esac 19853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19854 (eval "$ac_try") 2>&5 19855 ac_status=$? 19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19857 (exit $ac_status); }; } && 19858 { ac_try='test -s conftest.$ac_objext' 19859 { (case "(($ac_try" in 19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19861 *) ac_try_echo=$ac_try;; 19862esac 19863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19864 (eval "$ac_try") 2>&5 19865 ac_status=$? 19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19867 (exit $ac_status); }; }; then 19868 ac_cv_func_finite_in_ieeefp_h=yes 19869else 19870 echo "$as_me: failed program was:" >&5 19871sed 's/^/| /' conftest.$ac_ext >&5 19872 19873 ac_cv_func_finite_in_ieeefp_h=no 19874fi 19875 19876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19877 ac_ext=c 19878ac_cpp='$CPP $CPPFLAGS' 19879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19881ac_compiler_gnu=$ac_cv_c_compiler_gnu 19882 19883fi 19884{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 19885echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 19886 19887if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 19888 19889cat >>confdefs.h <<\_ACEOF 19890#define HAVE_FINITE_IN_IEEEFP_H 1 19891_ACEOF 19892 19893fi 19894 19895 19896 19897if test "$llvm_cv_platform_type" = "Unix" ; then 19898 19899 19900for ac_header in stdlib.h unistd.h 19901do 19902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19904 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19907 echo $ECHO_N "(cached) $ECHO_C" >&6 19908fi 19909ac_res=`eval echo '${'$as_ac_Header'}'` 19910 { echo "$as_me:$LINENO: result: $ac_res" >&5 19911echo "${ECHO_T}$ac_res" >&6; } 19912else 19913 # Is the header compilable? 19914{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 19915echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 19916cat >conftest.$ac_ext <<_ACEOF 19917/* confdefs.h. */ 19918_ACEOF 19919cat confdefs.h >>conftest.$ac_ext 19920cat >>conftest.$ac_ext <<_ACEOF 19921/* end confdefs.h. */ 19922$ac_includes_default 19923#include <$ac_header> 19924_ACEOF 19925rm -f conftest.$ac_objext 19926if { (ac_try="$ac_compile" 19927case "(($ac_try" in 19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19929 *) ac_try_echo=$ac_try;; 19930esac 19931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19932 (eval "$ac_compile") 2>conftest.er1 19933 ac_status=$? 19934 grep -v '^ *+' conftest.er1 >conftest.err 19935 rm -f conftest.er1 19936 cat conftest.err >&5 19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19938 (exit $ac_status); } && 19939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19940 { (case "(($ac_try" in 19941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19942 *) ac_try_echo=$ac_try;; 19943esac 19944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19945 (eval "$ac_try") 2>&5 19946 ac_status=$? 19947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19948 (exit $ac_status); }; } && 19949 { ac_try='test -s conftest.$ac_objext' 19950 { (case "(($ac_try" in 19951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19952 *) ac_try_echo=$ac_try;; 19953esac 19954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19955 (eval "$ac_try") 2>&5 19956 ac_status=$? 19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19958 (exit $ac_status); }; }; then 19959 ac_header_compiler=yes 19960else 19961 echo "$as_me: failed program was:" >&5 19962sed 's/^/| /' conftest.$ac_ext >&5 19963 19964 ac_header_compiler=no 19965fi 19966 19967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19968{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19969echo "${ECHO_T}$ac_header_compiler" >&6; } 19970 19971# Is the header present? 19972{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 19973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 19974cat >conftest.$ac_ext <<_ACEOF 19975/* confdefs.h. */ 19976_ACEOF 19977cat confdefs.h >>conftest.$ac_ext 19978cat >>conftest.$ac_ext <<_ACEOF 19979/* end confdefs.h. */ 19980#include <$ac_header> 19981_ACEOF 19982if { (ac_try="$ac_cpp conftest.$ac_ext" 19983case "(($ac_try" in 19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19985 *) ac_try_echo=$ac_try;; 19986esac 19987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19989 ac_status=$? 19990 grep -v '^ *+' conftest.er1 >conftest.err 19991 rm -f conftest.er1 19992 cat conftest.err >&5 19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19994 (exit $ac_status); } >/dev/null; then 19995 if test -s conftest.err; then 19996 ac_cpp_err=$ac_c_preproc_warn_flag 19997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19998 else 19999 ac_cpp_err= 20000 fi 20001else 20002 ac_cpp_err=yes 20003fi 20004if test -z "$ac_cpp_err"; then 20005 ac_header_preproc=yes 20006else 20007 echo "$as_me: failed program was:" >&5 20008sed 's/^/| /' conftest.$ac_ext >&5 20009 20010 ac_header_preproc=no 20011fi 20012 20013rm -f conftest.err conftest.$ac_ext 20014{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20015echo "${ECHO_T}$ac_header_preproc" >&6; } 20016 20017# So? What about this header? 20018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20019 yes:no: ) 20020 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20021echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20023echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20024 ac_header_preproc=yes 20025 ;; 20026 no:yes:* ) 20027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20028echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20030echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20031 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20032echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20033 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20034echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20036echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20037 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20038echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20039 ( cat <<\_ASBOX 20040## ----------------------------------- ## 20041## Report this to llvmbugs@cs.uiuc.edu ## 20042## ----------------------------------- ## 20043_ASBOX 20044 ) | sed "s/^/$as_me: WARNING: /" >&2 20045 ;; 20046esac 20047{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20050 echo $ECHO_N "(cached) $ECHO_C" >&6 20051else 20052 eval "$as_ac_Header=\$ac_header_preproc" 20053fi 20054ac_res=`eval echo '${'$as_ac_Header'}'` 20055 { echo "$as_me:$LINENO: result: $ac_res" >&5 20056echo "${ECHO_T}$ac_res" >&6; } 20057 20058fi 20059if test `eval echo '${'$as_ac_Header'}'` = yes; then 20060 cat >>confdefs.h <<_ACEOF 20061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20062_ACEOF 20063 20064fi 20065 20066done 20067 20068 20069for ac_func in getpagesize 20070do 20071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20072{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20074if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20075 echo $ECHO_N "(cached) $ECHO_C" >&6 20076else 20077 cat >conftest.$ac_ext <<_ACEOF 20078/* confdefs.h. */ 20079_ACEOF 20080cat confdefs.h >>conftest.$ac_ext 20081cat >>conftest.$ac_ext <<_ACEOF 20082/* end confdefs.h. */ 20083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20084 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20085#define $ac_func innocuous_$ac_func 20086 20087/* System header to define __stub macros and hopefully few prototypes, 20088 which can conflict with char $ac_func (); below. 20089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20090 <limits.h> exists even on freestanding compilers. */ 20091 20092#ifdef __STDC__ 20093# include <limits.h> 20094#else 20095# include <assert.h> 20096#endif 20097 20098#undef $ac_func 20099 20100/* Override any GCC internal prototype to avoid an error. 20101 Use char because int might match the return type of a GCC 20102 builtin and then its argument prototype would still apply. */ 20103#ifdef __cplusplus 20104extern "C" 20105#endif 20106char $ac_func (); 20107/* The GNU C library defines this for functions which it implements 20108 to always fail with ENOSYS. Some functions are actually named 20109 something starting with __ and the normal name is an alias. */ 20110#if defined __stub_$ac_func || defined __stub___$ac_func 20111choke me 20112#endif 20113 20114int 20115main () 20116{ 20117return $ac_func (); 20118 ; 20119 return 0; 20120} 20121_ACEOF 20122rm -f conftest.$ac_objext conftest$ac_exeext 20123if { (ac_try="$ac_link" 20124case "(($ac_try" in 20125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20126 *) ac_try_echo=$ac_try;; 20127esac 20128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20129 (eval "$ac_link") 2>conftest.er1 20130 ac_status=$? 20131 grep -v '^ *+' conftest.er1 >conftest.err 20132 rm -f conftest.er1 20133 cat conftest.err >&5 20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20135 (exit $ac_status); } && 20136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20137 { (case "(($ac_try" in 20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20139 *) ac_try_echo=$ac_try;; 20140esac 20141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20142 (eval "$ac_try") 2>&5 20143 ac_status=$? 20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20145 (exit $ac_status); }; } && 20146 { ac_try='test -s conftest$ac_exeext' 20147 { (case "(($ac_try" in 20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20149 *) ac_try_echo=$ac_try;; 20150esac 20151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20152 (eval "$ac_try") 2>&5 20153 ac_status=$? 20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20155 (exit $ac_status); }; }; then 20156 eval "$as_ac_var=yes" 20157else 20158 echo "$as_me: failed program was:" >&5 20159sed 's/^/| /' conftest.$ac_ext >&5 20160 20161 eval "$as_ac_var=no" 20162fi 20163 20164rm -f core conftest.err conftest.$ac_objext \ 20165 conftest$ac_exeext conftest.$ac_ext 20166fi 20167ac_res=`eval echo '${'$as_ac_var'}'` 20168 { echo "$as_me:$LINENO: result: $ac_res" >&5 20169echo "${ECHO_T}$ac_res" >&6; } 20170if test `eval echo '${'$as_ac_var'}'` = yes; then 20171 cat >>confdefs.h <<_ACEOF 20172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20173_ACEOF 20174 20175fi 20176done 20177 20178{ echo "$as_me:$LINENO: checking for working mmap" >&5 20179echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 20180if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 20181 echo $ECHO_N "(cached) $ECHO_C" >&6 20182else 20183 if test "$cross_compiling" = yes; then 20184 ac_cv_func_mmap_fixed_mapped=no 20185else 20186 cat >conftest.$ac_ext <<_ACEOF 20187/* confdefs.h. */ 20188_ACEOF 20189cat confdefs.h >>conftest.$ac_ext 20190cat >>conftest.$ac_ext <<_ACEOF 20191/* end confdefs.h. */ 20192$ac_includes_default 20193/* malloc might have been renamed as rpl_malloc. */ 20194#undef malloc 20195 20196/* Thanks to Mike Haertel and Jim Avera for this test. 20197 Here is a matrix of mmap possibilities: 20198 mmap private not fixed 20199 mmap private fixed at somewhere currently unmapped 20200 mmap private fixed at somewhere already mapped 20201 mmap shared not fixed 20202 mmap shared fixed at somewhere currently unmapped 20203 mmap shared fixed at somewhere already mapped 20204 For private mappings, we should verify that changes cannot be read() 20205 back from the file, nor mmap's back from the file at a different 20206 address. (There have been systems where private was not correctly 20207 implemented like the infamous i386 svr4.0, and systems where the 20208 VM page cache was not coherent with the file system buffer cache 20209 like early versions of FreeBSD and possibly contemporary NetBSD.) 20210 For shared mappings, we should conversely verify that changes get 20211 propagated back to all the places they're supposed to be. 20212 20213 Grep wants private fixed already mapped. 20214 The main things grep needs to know about mmap are: 20215 * does it exist and is it safe to write into the mmap'd area 20216 * how to use it (BSD variants) */ 20217 20218#include <fcntl.h> 20219#include <sys/mman.h> 20220 20221#if !STDC_HEADERS && !HAVE_STDLIB_H 20222char *malloc (); 20223#endif 20224 20225/* This mess was copied from the GNU getpagesize.h. */ 20226#if !HAVE_GETPAGESIZE 20227/* Assume that all systems that can run configure have sys/param.h. */ 20228# if !HAVE_SYS_PARAM_H 20229# define HAVE_SYS_PARAM_H 1 20230# endif 20231 20232# ifdef _SC_PAGESIZE 20233# define getpagesize() sysconf(_SC_PAGESIZE) 20234# else /* no _SC_PAGESIZE */ 20235# if HAVE_SYS_PARAM_H 20236# include <sys/param.h> 20237# ifdef EXEC_PAGESIZE 20238# define getpagesize() EXEC_PAGESIZE 20239# else /* no EXEC_PAGESIZE */ 20240# ifdef NBPG 20241# define getpagesize() NBPG * CLSIZE 20242# ifndef CLSIZE 20243# define CLSIZE 1 20244# endif /* no CLSIZE */ 20245# else /* no NBPG */ 20246# ifdef NBPC 20247# define getpagesize() NBPC 20248# else /* no NBPC */ 20249# ifdef PAGESIZE 20250# define getpagesize() PAGESIZE 20251# endif /* PAGESIZE */ 20252# endif /* no NBPC */ 20253# endif /* no NBPG */ 20254# endif /* no EXEC_PAGESIZE */ 20255# else /* no HAVE_SYS_PARAM_H */ 20256# define getpagesize() 8192 /* punt totally */ 20257# endif /* no HAVE_SYS_PARAM_H */ 20258# endif /* no _SC_PAGESIZE */ 20259 20260#endif /* no HAVE_GETPAGESIZE */ 20261 20262int 20263main () 20264{ 20265 char *data, *data2, *data3; 20266 int i, pagesize; 20267 int fd; 20268 20269 pagesize = getpagesize (); 20270 20271 /* First, make a file with some known garbage in it. */ 20272 data = (char *) malloc (pagesize); 20273 if (!data) 20274 return 1; 20275 for (i = 0; i < pagesize; ++i) 20276 *(data + i) = rand (); 20277 umask (0); 20278 fd = creat ("conftest.mmap", 0600); 20279 if (fd < 0) 20280 return 1; 20281 if (write (fd, data, pagesize) != pagesize) 20282 return 1; 20283 close (fd); 20284 20285 /* Next, try to mmap the file at a fixed address which already has 20286 something else allocated at it. If we can, also make sure that 20287 we see the same garbage. */ 20288 fd = open ("conftest.mmap", O_RDWR); 20289 if (fd < 0) 20290 return 1; 20291 data2 = (char *) malloc (2 * pagesize); 20292 if (!data2) 20293 return 1; 20294 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 20295 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20296 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20297 return 1; 20298 for (i = 0; i < pagesize; ++i) 20299 if (*(data + i) != *(data2 + i)) 20300 return 1; 20301 20302 /* Finally, make sure that changes to the mapped area do not 20303 percolate back to the file as seen by read(). (This is a bug on 20304 some variants of i386 svr4.0.) */ 20305 for (i = 0; i < pagesize; ++i) 20306 *(data2 + i) = *(data2 + i) + 1; 20307 data3 = (char *) malloc (pagesize); 20308 if (!data3) 20309 return 1; 20310 if (read (fd, data3, pagesize) != pagesize) 20311 return 1; 20312 for (i = 0; i < pagesize; ++i) 20313 if (*(data + i) != *(data3 + i)) 20314 return 1; 20315 close (fd); 20316 return 0; 20317} 20318_ACEOF 20319rm -f conftest$ac_exeext 20320if { (ac_try="$ac_link" 20321case "(($ac_try" in 20322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20323 *) ac_try_echo=$ac_try;; 20324esac 20325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20326 (eval "$ac_link") 2>&5 20327 ac_status=$? 20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20330 { (case "(($ac_try" in 20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20332 *) ac_try_echo=$ac_try;; 20333esac 20334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20335 (eval "$ac_try") 2>&5 20336 ac_status=$? 20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20338 (exit $ac_status); }; }; then 20339 ac_cv_func_mmap_fixed_mapped=yes 20340else 20341 echo "$as_me: program exited with status $ac_status" >&5 20342echo "$as_me: failed program was:" >&5 20343sed 's/^/| /' conftest.$ac_ext >&5 20344 20345( exit $ac_status ) 20346ac_cv_func_mmap_fixed_mapped=no 20347fi 20348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20349fi 20350 20351 20352fi 20353{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 20354echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 20355if test $ac_cv_func_mmap_fixed_mapped = yes; then 20356 20357cat >>confdefs.h <<\_ACEOF 20358#define HAVE_MMAP 1 20359_ACEOF 20360 20361fi 20362rm -f conftest.mmap 20363 20364 { echo "$as_me:$LINENO: checking for mmap of files" >&5 20365echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 20366if test "${ac_cv_func_mmap_file+set}" = set; then 20367 echo $ECHO_N "(cached) $ECHO_C" >&6 20368else 20369 ac_ext=c 20370ac_cpp='$CPP $CPPFLAGS' 20371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20373ac_compiler_gnu=$ac_cv_c_compiler_gnu 20374 20375 if test "$cross_compiling" = yes; then 20376 ac_cv_func_mmap_file=no 20377else 20378 cat >conftest.$ac_ext <<_ACEOF 20379 20380 /* confdefs.h. */ 20381_ACEOF 20382cat confdefs.h >>conftest.$ac_ext 20383cat >>conftest.$ac_ext <<_ACEOF 20384/* end confdefs.h. */ 20385 20386#include <sys/types.h> 20387#include <sys/mman.h> 20388#include <fcntl.h> 20389 20390int 20391main () 20392{ 20393 20394 int fd; 20395 fd = creat ("foo",0777); 20396 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 20397 unlink ("foo"); 20398 return (fd != (int) MAP_FAILED); 20399 ; 20400 return 0; 20401} 20402_ACEOF 20403rm -f conftest$ac_exeext 20404if { (ac_try="$ac_link" 20405case "(($ac_try" in 20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20407 *) ac_try_echo=$ac_try;; 20408esac 20409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20410 (eval "$ac_link") 2>&5 20411 ac_status=$? 20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20414 { (case "(($ac_try" in 20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20416 *) ac_try_echo=$ac_try;; 20417esac 20418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20419 (eval "$ac_try") 2>&5 20420 ac_status=$? 20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20422 (exit $ac_status); }; }; then 20423 ac_cv_func_mmap_file=yes 20424else 20425 echo "$as_me: program exited with status $ac_status" >&5 20426echo "$as_me: failed program was:" >&5 20427sed 's/^/| /' conftest.$ac_ext >&5 20428 20429( exit $ac_status ) 20430ac_cv_func_mmap_file=no 20431fi 20432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20433fi 20434 20435 20436 ac_ext=c 20437ac_cpp='$CPP $CPPFLAGS' 20438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20440ac_compiler_gnu=$ac_cv_c_compiler_gnu 20441 20442 20443fi 20444{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 20445echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 20446if test "$ac_cv_func_mmap_file" = yes; then 20447 20448cat >>confdefs.h <<\_ACEOF 20449#define HAVE_MMAP_FILE 20450_ACEOF 20451 20452 MMAP_FILE=yes 20453 20454fi 20455 20456 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 20457echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 20458if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 20459 echo $ECHO_N "(cached) $ECHO_C" >&6 20460else 20461 if test "$llvm_cv_os_type" = "Interix" ; then 20462 ac_cv_need_dev_zero_for_mmap=yes 20463 else 20464 ac_cv_need_dev_zero_for_mmap=no 20465 fi 20466 20467fi 20468{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 20469echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 20470if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 20471 20472cat >>confdefs.h <<\_ACEOF 20473#define NEED_DEV_ZERO_FOR_MMAP 1 20474_ACEOF 20475 20476fi 20477 20478 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 20479 then 20480 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 20481echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 20482 fi 20483 if test "$ac_cv_func_mmap_file" = "no" 20484 then 20485 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 20486echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 20487 fi 20488fi 20489 20490{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 20491echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 20492ac_ext=cpp 20493ac_cpp='$CXXCPP $CPPFLAGS' 20494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20497 20498cat >conftest.$ac_ext <<_ACEOF 20499/* confdefs.h. */ 20500_ACEOF 20501cat confdefs.h >>conftest.$ac_ext 20502cat >>conftest.$ac_ext <<_ACEOF 20503/* end confdefs.h. */ 20504int main() { 20505 volatile unsigned long val = 1; 20506 __sync_synchronize(); 20507 __sync_val_compare_and_swap(&val, 1, 0); 20508 __sync_add_and_fetch(&val, 1); 20509 __sync_sub_and_fetch(&val, 1); 20510 return 0; 20511 } 20512 20513_ACEOF 20514rm -f conftest.$ac_objext conftest$ac_exeext 20515if { (ac_try="$ac_link" 20516case "(($ac_try" in 20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20518 *) ac_try_echo=$ac_try;; 20519esac 20520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20521 (eval "$ac_link") 2>conftest.er1 20522 ac_status=$? 20523 grep -v '^ *+' conftest.er1 >conftest.err 20524 rm -f conftest.er1 20525 cat conftest.err >&5 20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20527 (exit $ac_status); } && 20528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20529 { (case "(($ac_try" in 20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20531 *) ac_try_echo=$ac_try;; 20532esac 20533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20534 (eval "$ac_try") 2>&5 20535 ac_status=$? 20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20537 (exit $ac_status); }; } && 20538 { ac_try='test -s conftest$ac_exeext' 20539 { (case "(($ac_try" in 20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20541 *) ac_try_echo=$ac_try;; 20542esac 20543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20544 (eval "$ac_try") 2>&5 20545 ac_status=$? 20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20547 (exit $ac_status); }; }; then 20548 ac_ext=c 20549ac_cpp='$CPP $CPPFLAGS' 20550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20552ac_compiler_gnu=$ac_cv_c_compiler_gnu 20553 20554 { echo "$as_me:$LINENO: result: yes" >&5 20555echo "${ECHO_T}yes" >&6; } 20556 20557cat >>confdefs.h <<\_ACEOF 20558#define LLVM_HAS_ATOMICS 1 20559_ACEOF 20560 20561else 20562 echo "$as_me: failed program was:" >&5 20563sed 's/^/| /' conftest.$ac_ext >&5 20564 20565 { echo "$as_me:$LINENO: result: no" >&5 20566echo "${ECHO_T}no" >&6; } 20567 20568cat >>confdefs.h <<\_ACEOF 20569#define LLVM_HAS_ATOMICS 0 20570_ACEOF 20571 20572 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 20573echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 20574fi 20575 20576rm -f core conftest.err conftest.$ac_objext \ 20577 conftest$ac_exeext conftest.$ac_ext 20578 20579 20580if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 20581 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 20582echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 20583if test "${llvm_cv_linux_mixed+set}" = set; then 20584 echo $ECHO_N "(cached) $ECHO_C" >&6 20585else 20586 ac_ext=c 20587ac_cpp='$CPP $CPPFLAGS' 20588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20590ac_compiler_gnu=$ac_cv_c_compiler_gnu 20591 20592 cat >conftest.$ac_ext <<_ACEOF 20593/* confdefs.h. */ 20594_ACEOF 20595cat confdefs.h >>conftest.$ac_ext 20596cat >>conftest.$ac_ext <<_ACEOF 20597/* end confdefs.h. */ 20598#ifndef __x86_64__ 20599 error: Not x86-64 even if uname says so! 20600 #endif 20601 20602int 20603main () 20604{ 20605 20606 ; 20607 return 0; 20608} 20609_ACEOF 20610rm -f conftest.$ac_objext 20611if { (ac_try="$ac_compile" 20612case "(($ac_try" in 20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20614 *) ac_try_echo=$ac_try;; 20615esac 20616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20617 (eval "$ac_compile") 2>conftest.er1 20618 ac_status=$? 20619 grep -v '^ *+' conftest.er1 >conftest.err 20620 rm -f conftest.er1 20621 cat conftest.err >&5 20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20623 (exit $ac_status); } && 20624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20625 { (case "(($ac_try" in 20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20627 *) ac_try_echo=$ac_try;; 20628esac 20629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20630 (eval "$ac_try") 2>&5 20631 ac_status=$? 20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20633 (exit $ac_status); }; } && 20634 { ac_try='test -s conftest.$ac_objext' 20635 { (case "(($ac_try" in 20636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20637 *) ac_try_echo=$ac_try;; 20638esac 20639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20640 (eval "$ac_try") 2>&5 20641 ac_status=$? 20642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20643 (exit $ac_status); }; }; then 20644 llvm_cv_linux_mixed=no 20645else 20646 echo "$as_me: failed program was:" >&5 20647sed 's/^/| /' conftest.$ac_ext >&5 20648 20649 llvm_cv_linux_mixed=yes 20650fi 20651 20652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20653 ac_ext=c 20654ac_cpp='$CPP $CPPFLAGS' 20655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20657ac_compiler_gnu=$ac_cv_c_compiler_gnu 20658 20659 20660fi 20661{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 20662echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 20663 20664 if test "$llvm_cv_linux_mixed" = "yes"; then 20665 llvm_cv_target_arch="x86" 20666 ARCH="x86" 20667 fi 20668fi 20669 20670 20671for ac_func in __dso_handle 20672do 20673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20674{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20677 echo $ECHO_N "(cached) $ECHO_C" >&6 20678else 20679 cat >conftest.$ac_ext <<_ACEOF 20680/* confdefs.h. */ 20681_ACEOF 20682cat confdefs.h >>conftest.$ac_ext 20683cat >>conftest.$ac_ext <<_ACEOF 20684/* end confdefs.h. */ 20685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20686 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20687#define $ac_func innocuous_$ac_func 20688 20689/* System header to define __stub macros and hopefully few prototypes, 20690 which can conflict with char $ac_func (); below. 20691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20692 <limits.h> exists even on freestanding compilers. */ 20693 20694#ifdef __STDC__ 20695# include <limits.h> 20696#else 20697# include <assert.h> 20698#endif 20699 20700#undef $ac_func 20701 20702/* Override any GCC internal prototype to avoid an error. 20703 Use char because int might match the return type of a GCC 20704 builtin and then its argument prototype would still apply. */ 20705#ifdef __cplusplus 20706extern "C" 20707#endif 20708char $ac_func (); 20709/* The GNU C library defines this for functions which it implements 20710 to always fail with ENOSYS. Some functions are actually named 20711 something starting with __ and the normal name is an alias. */ 20712#if defined __stub_$ac_func || defined __stub___$ac_func 20713choke me 20714#endif 20715 20716int 20717main () 20718{ 20719return $ac_func (); 20720 ; 20721 return 0; 20722} 20723_ACEOF 20724rm -f conftest.$ac_objext conftest$ac_exeext 20725if { (ac_try="$ac_link" 20726case "(($ac_try" in 20727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20728 *) ac_try_echo=$ac_try;; 20729esac 20730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20731 (eval "$ac_link") 2>conftest.er1 20732 ac_status=$? 20733 grep -v '^ *+' conftest.er1 >conftest.err 20734 rm -f conftest.er1 20735 cat conftest.err >&5 20736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20737 (exit $ac_status); } && 20738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20739 { (case "(($ac_try" in 20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20741 *) ac_try_echo=$ac_try;; 20742esac 20743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20744 (eval "$ac_try") 2>&5 20745 ac_status=$? 20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20747 (exit $ac_status); }; } && 20748 { ac_try='test -s conftest$ac_exeext' 20749 { (case "(($ac_try" in 20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20751 *) ac_try_echo=$ac_try;; 20752esac 20753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20754 (eval "$ac_try") 2>&5 20755 ac_status=$? 20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20757 (exit $ac_status); }; }; then 20758 eval "$as_ac_var=yes" 20759else 20760 echo "$as_me: failed program was:" >&5 20761sed 's/^/| /' conftest.$ac_ext >&5 20762 20763 eval "$as_ac_var=no" 20764fi 20765 20766rm -f core conftest.err conftest.$ac_objext \ 20767 conftest$ac_exeext conftest.$ac_ext 20768fi 20769ac_res=`eval echo '${'$as_ac_var'}'` 20770 { echo "$as_me:$LINENO: result: $ac_res" >&5 20771echo "${ECHO_T}$ac_res" >&6; } 20772if test `eval echo '${'$as_ac_var'}'` = yes; then 20773 cat >>confdefs.h <<_ACEOF 20774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20775_ACEOF 20776 20777fi 20778done 20779 20780 20781SHLIBEXT=$libltdl_cv_shlibext 20782 20783 20784SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 20785 20786 20787# Translate the various configuration directories and other basic 20788# information into substitutions that will end up in Makefile.config.in 20789# that these configured values can be used by the makefiles 20790if test "${prefix}" = "NONE" ; then 20791 prefix="/usr/local" 20792fi 20793eval LLVM_PREFIX="${prefix}"; 20794eval LLVM_BINDIR="${prefix}/bin"; 20795eval LLVM_LIBDIR="${prefix}/lib"; 20796eval LLVM_DATADIR="${prefix}/share/llvm"; 20797eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 20798eval LLVM_ETCDIR="${prefix}/etc/llvm"; 20799eval LLVM_INCLUDEDIR="${prefix}/include"; 20800eval LLVM_INFODIR="${prefix}/info"; 20801eval LLVM_MANDIR="${prefix}/man"; 20802LLVM_CONFIGTIME=`date` 20803 20804 20805 20806 20807 20808 20809 20810 20811 20812 20813 20814# Place the various directores into the config.h file as #defines so that we 20815# can know about the installation paths within LLVM. 20816 20817cat >>confdefs.h <<_ACEOF 20818#define LLVM_PREFIX "$LLVM_PREFIX" 20819_ACEOF 20820 20821 20822cat >>confdefs.h <<_ACEOF 20823#define LLVM_BINDIR "$LLVM_BINDIR" 20824_ACEOF 20825 20826 20827cat >>confdefs.h <<_ACEOF 20828#define LLVM_LIBDIR "$LLVM_LIBDIR" 20829_ACEOF 20830 20831 20832cat >>confdefs.h <<_ACEOF 20833#define LLVM_DATADIR "$LLVM_DATADIR" 20834_ACEOF 20835 20836 20837cat >>confdefs.h <<_ACEOF 20838#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 20839_ACEOF 20840 20841 20842cat >>confdefs.h <<_ACEOF 20843#define LLVM_ETCDIR "$LLVM_ETCDIR" 20844_ACEOF 20845 20846 20847cat >>confdefs.h <<_ACEOF 20848#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 20849_ACEOF 20850 20851 20852cat >>confdefs.h <<_ACEOF 20853#define LLVM_INFODIR "$LLVM_INFODIR" 20854_ACEOF 20855 20856 20857cat >>confdefs.h <<_ACEOF 20858#define LLVM_MANDIR "$LLVM_MANDIR" 20859_ACEOF 20860 20861 20862cat >>confdefs.h <<_ACEOF 20863#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 20864_ACEOF 20865 20866 20867cat >>confdefs.h <<_ACEOF 20868#define LLVM_HOSTTRIPLE "$host" 20869_ACEOF 20870 20871 20872# Determine which bindings to build. 20873if test "$BINDINGS_TO_BUILD" = auto ; then 20874 BINDINGS_TO_BUILD="" 20875 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 20876 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 20877 fi 20878fi 20879BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 20880 20881 20882# This isn't really configurey, but it avoids having to repeat the list in 20883# other files. 20884ALL_BINDINGS=ocaml 20885 20886 20887# Do any work necessary to ensure that bindings have what they need. 20888binding_prereqs_failed=0 20889for a_binding in $BINDINGS_TO_BUILD ; do 20890 case "$a_binding" in 20891 ocaml) 20892 if test "x$OCAMLC" = x ; then 20893 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 20894echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 20895 binding_prereqs_failed=1 20896 fi 20897 if test "x$OCAMLDEP" = x ; then 20898 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 20899echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 20900 binding_prereqs_failed=1 20901 fi 20902 if test "x$OCAMLOPT" = x ; then 20903 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 20904echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 20905 fi 20906 if test "x$with_ocaml_libdir" != xauto ; then 20907 OCAML_LIBDIR=$with_ocaml_libdir 20908 20909 else 20910 ocaml_stdlib="`"$OCAMLC" -where`" 20911 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 20912 then 20913 # ocaml stdlib is beneath our prefix; use stdlib 20914 OCAML_LIBDIR=$ocaml_stdlib 20915 20916 else 20917 # ocaml stdlib is outside our prefix; use libdir/ocaml 20918 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 20919 20920 fi 20921 fi 20922 ;; 20923 esac 20924done 20925if test "$binding_prereqs_failed" = 1 ; then 20926 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 20927echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 20928 { (exit 1); exit 1; }; } 20929fi 20930 20931{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 20932echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 20933if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 20934 echo $ECHO_N "(cached) $ECHO_C" >&6 20935else 20936 ac_ext=cpp 20937ac_cpp='$CXXCPP $CPPFLAGS' 20938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20941 20942 oldcxxflags="$CXXFLAGS" 20943 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" 20944 cat >conftest.$ac_ext <<_ACEOF 20945/* confdefs.h. */ 20946_ACEOF 20947cat confdefs.h >>conftest.$ac_ext 20948cat >>conftest.$ac_ext <<_ACEOF 20949/* end confdefs.h. */ 20950 20951int 20952main () 20953{ 20954 20955 ; 20956 return 0; 20957} 20958_ACEOF 20959rm -f conftest.$ac_objext 20960if { (ac_try="$ac_compile" 20961case "(($ac_try" in 20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20963 *) ac_try_echo=$ac_try;; 20964esac 20965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20966 (eval "$ac_compile") 2>conftest.er1 20967 ac_status=$? 20968 grep -v '^ *+' conftest.er1 >conftest.err 20969 rm -f conftest.er1 20970 cat conftest.err >&5 20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20972 (exit $ac_status); } && 20973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20974 { (case "(($ac_try" in 20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20976 *) ac_try_echo=$ac_try;; 20977esac 20978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20979 (eval "$ac_try") 2>&5 20980 ac_status=$? 20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20982 (exit $ac_status); }; } && 20983 { ac_try='test -s conftest.$ac_objext' 20984 { (case "(($ac_try" in 20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20986 *) ac_try_echo=$ac_try;; 20987esac 20988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20989 (eval "$ac_try") 2>&5 20990 ac_status=$? 20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20992 (exit $ac_status); }; }; then 20993 llvm_cv_cxx_visibility_inlines_hidden=yes 20994else 20995 echo "$as_me: failed program was:" >&5 20996sed 's/^/| /' conftest.$ac_ext >&5 20997 20998 llvm_cv_cxx_visibility_inlines_hidden=no 20999fi 21000 21001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21002 CXXFLAGS="$oldcxxflags" 21003 ac_ext=c 21004ac_cpp='$CPP $CPPFLAGS' 21005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21007ac_compiler_gnu=$ac_cv_c_compiler_gnu 21008 21009 21010fi 21011{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 21012echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 21013if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 21014 ENABLE_VISIBILITY_INLINES_HIDDEN=1 21015 21016else 21017 ENABLE_VISIBILITY_INLINES_HIDDEN=0 21018 21019fi 21020 21021 21022if test "$llvm_cv_link_use_r" = "yes" ; then 21023 RPATH="-Wl,-R" 21024else 21025 RPATH="-Wl,-rpath" 21026fi 21027 21028 21029if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 21030 RDYNAMIC="-Wl,-export-dynamic" 21031else 21032 RDYNAMIC="" 21033fi 21034 21035 21036 21037ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 21038 21039 21040 21041 21042 21043 21044ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 21045 21046ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 21047 21048ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 21049 21050ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 21051 21052ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h" 21053 21054 21055ac_config_files="$ac_config_files Makefile.config" 21056 21057 21058ac_config_files="$ac_config_files llvm.spec" 21059 21060 21061ac_config_files="$ac_config_files docs/doxygen.cfg" 21062 21063if test -f ${srcdir}/tools/clang/README.txt; then 21064 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg" 21065 21066fi 21067 21068ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" 21069 21070 21071ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm" 21072 21073 21074ac_config_commands="$ac_config_commands setup" 21075 21076ac_config_commands="$ac_config_commands Makefile" 21077 21078 21079ac_config_commands="$ac_config_commands Makefile.common" 21080 21081 21082ac_config_commands="$ac_config_commands examples/Makefile" 21083 21084 21085ac_config_commands="$ac_config_commands lib/Makefile" 21086 21087 21088ac_config_commands="$ac_config_commands runtime/Makefile" 21089 21090 21091ac_config_commands="$ac_config_commands test/Makefile" 21092 21093 21094ac_config_commands="$ac_config_commands test/Makefile.tests" 21095 21096 21097ac_config_commands="$ac_config_commands unittests/Makefile" 21098 21099 21100ac_config_commands="$ac_config_commands tools/Makefile" 21101 21102 21103ac_config_commands="$ac_config_commands utils/Makefile" 21104 21105 21106ac_config_commands="$ac_config_commands projects/Makefile" 21107 21108 21109ac_config_commands="$ac_config_commands bindings/Makefile" 21110 21111 21112ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 21113 21114 21115 21116cat >confcache <<\_ACEOF 21117# This file is a shell script that caches the results of configure 21118# tests run on this system so they can be shared between configure 21119# scripts and configure runs, see configure's option --config-cache. 21120# It is not useful on other systems. If it contains results you don't 21121# want to keep, you may remove or edit it. 21122# 21123# config.status only pays attention to the cache file if you give it 21124# the --recheck option to rerun configure. 21125# 21126# `ac_cv_env_foo' variables (set or unset) will be overridden when 21127# loading this file, other *unset* `ac_cv_foo' will be assigned the 21128# following values. 21129 21130_ACEOF 21131 21132# The following way of writing the cache mishandles newlines in values, 21133# but we know of no workaround that is simple, portable, and efficient. 21134# So, we kill variables containing newlines. 21135# Ultrix sh set writes to stderr and can't be redirected directly, 21136# and sets the high bit in the cache file unless we assign to the vars. 21137( 21138 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21139 eval ac_val=\$$ac_var 21140 case $ac_val in #( 21141 *${as_nl}*) 21142 case $ac_var in #( 21143 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21144echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21145 esac 21146 case $ac_var in #( 21147 _ | IFS | as_nl) ;; #( 21148 *) $as_unset $ac_var ;; 21149 esac ;; 21150 esac 21151 done 21152 21153 (set) 2>&1 | 21154 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21155 *${as_nl}ac_space=\ *) 21156 # `set' does not quote correctly, so add quotes (double-quote 21157 # substitution turns \\\\ into \\, and sed turns \\ into \). 21158 sed -n \ 21159 "s/'/'\\\\''/g; 21160 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21161 ;; #( 21162 *) 21163 # `set' quotes correctly as required by POSIX, so do not add quotes. 21164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21165 ;; 21166 esac | 21167 sort 21168) | 21169 sed ' 21170 /^ac_cv_env_/b end 21171 t clear 21172 :clear 21173 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21174 t end 21175 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21176 :end' >>confcache 21177if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21178 if test -w "$cache_file"; then 21179 test "x$cache_file" != "x/dev/null" && 21180 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21181echo "$as_me: updating cache $cache_file" >&6;} 21182 cat confcache >$cache_file 21183 else 21184 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21185echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21186 fi 21187fi 21188rm -f confcache 21189 21190test "x$prefix" = xNONE && prefix=$ac_default_prefix 21191# Let make expand exec_prefix. 21192test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21193 21194DEFS=-DHAVE_CONFIG_H 21195 21196ac_libobjs= 21197ac_ltlibobjs= 21198for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21199 # 1. Remove the extension, and $U if already installed. 21200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21201 ac_i=`echo "$ac_i" | sed "$ac_script"` 21202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21203 # will be set to the directory where LIBOBJS objects are built. 21204 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21205 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21206done 21207LIBOBJS=$ac_libobjs 21208 21209LTLIBOBJS=$ac_ltlibobjs 21210 21211 21212if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 21213 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 21214Usually this means the macro was only invoked conditionally." >&5 21215echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 21216Usually this means the macro was only invoked conditionally." >&2;} 21217 { (exit 1); exit 1; }; } 21218fi 21219if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 21220 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21221Usually this means the macro was only invoked conditionally." >&5 21222echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21223Usually this means the macro was only invoked conditionally." >&2;} 21224 { (exit 1); exit 1; }; } 21225fi 21226 21227: ${CONFIG_STATUS=./config.status} 21228ac_clean_files_save=$ac_clean_files 21229ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21230{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21231echo "$as_me: creating $CONFIG_STATUS" >&6;} 21232cat >$CONFIG_STATUS <<_ACEOF 21233#! $SHELL 21234# Generated by $as_me. 21235# Run this file to recreate the current configuration. 21236# Compiler output produced by configure, useful for debugging 21237# configure, is in config.log if it exists. 21238 21239debug=false 21240ac_cs_recheck=false 21241ac_cs_silent=false 21242SHELL=\${CONFIG_SHELL-$SHELL} 21243_ACEOF 21244 21245cat >>$CONFIG_STATUS <<\_ACEOF 21246## --------------------- ## 21247## M4sh Initialization. ## 21248## --------------------- ## 21249 21250# Be Bourne compatible 21251if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21252 emulate sh 21253 NULLCMD=: 21254 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21255 # is contrary to our usage. Disable this feature. 21256 alias -g '${1+"$@"}'='"$@"' 21257 setopt NO_GLOB_SUBST 21258else 21259 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21260fi 21261BIN_SH=xpg4; export BIN_SH # for Tru64 21262DUALCASE=1; export DUALCASE # for MKS sh 21263 21264 21265# PATH needs CR 21266# Avoid depending upon Character Ranges. 21267as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21268as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21269as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21270as_cr_digits='0123456789' 21271as_cr_alnum=$as_cr_Letters$as_cr_digits 21272 21273# The user is always right. 21274if test "${PATH_SEPARATOR+set}" != set; then 21275 echo "#! /bin/sh" >conf$$.sh 21276 echo "exit 0" >>conf$$.sh 21277 chmod +x conf$$.sh 21278 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21279 PATH_SEPARATOR=';' 21280 else 21281 PATH_SEPARATOR=: 21282 fi 21283 rm -f conf$$.sh 21284fi 21285 21286# Support unset when possible. 21287if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21288 as_unset=unset 21289else 21290 as_unset=false 21291fi 21292 21293 21294# IFS 21295# We need space, tab and new line, in precisely that order. Quoting is 21296# there to prevent editors from complaining about space-tab. 21297# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21298# splitting by setting IFS to empty value.) 21299as_nl=' 21300' 21301IFS=" "" $as_nl" 21302 21303# Find who we are. Look in the path if we contain no directory separator. 21304case $0 in 21305 *[\\/]* ) as_myself=$0 ;; 21306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21307for as_dir in $PATH 21308do 21309 IFS=$as_save_IFS 21310 test -z "$as_dir" && as_dir=. 21311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21312done 21313IFS=$as_save_IFS 21314 21315 ;; 21316esac 21317# We did not find ourselves, most probably we were run as `sh COMMAND' 21318# in which case we are not to be found in the path. 21319if test "x$as_myself" = x; then 21320 as_myself=$0 21321fi 21322if test ! -f "$as_myself"; then 21323 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21324 { (exit 1); exit 1; } 21325fi 21326 21327# Work around bugs in pre-3.0 UWIN ksh. 21328for as_var in ENV MAIL MAILPATH 21329do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21330done 21331PS1='$ ' 21332PS2='> ' 21333PS4='+ ' 21334 21335# NLS nuisances. 21336for as_var in \ 21337 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21338 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21339 LC_TELEPHONE LC_TIME 21340do 21341 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21342 eval $as_var=C; export $as_var 21343 else 21344 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21345 fi 21346done 21347 21348# Required to use basename. 21349if expr a : '\(a\)' >/dev/null 2>&1 && 21350 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21351 as_expr=expr 21352else 21353 as_expr=false 21354fi 21355 21356if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21357 as_basename=basename 21358else 21359 as_basename=false 21360fi 21361 21362 21363# Name of the executable. 21364as_me=`$as_basename -- "$0" || 21365$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21366 X"$0" : 'X\(//\)$' \| \ 21367 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21368echo X/"$0" | 21369 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21370 s//\1/ 21371 q 21372 } 21373 /^X\/\(\/\/\)$/{ 21374 s//\1/ 21375 q 21376 } 21377 /^X\/\(\/\).*/{ 21378 s//\1/ 21379 q 21380 } 21381 s/.*/./; q'` 21382 21383# CDPATH. 21384$as_unset CDPATH 21385 21386 21387 21388 as_lineno_1=$LINENO 21389 as_lineno_2=$LINENO 21390 test "x$as_lineno_1" != "x$as_lineno_2" && 21391 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21392 21393 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21394 # uniformly replaced by the line number. The first 'sed' inserts a 21395 # line-number line after each line using $LINENO; the second 'sed' 21396 # does the real work. The second script uses 'N' to pair each 21397 # line-number line with the line containing $LINENO, and appends 21398 # trailing '-' during substitution so that $LINENO is not a special 21399 # case at line end. 21400 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21401 # scripts with optimization help from Paolo Bonzini. Blame Lee 21402 # E. McMahon (1931-1989) for sed's syntax. :-) 21403 sed -n ' 21404 p 21405 /[$]LINENO/= 21406 ' <$as_myself | 21407 sed ' 21408 s/[$]LINENO.*/&-/ 21409 t lineno 21410 b 21411 :lineno 21412 N 21413 :loop 21414 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21415 t loop 21416 s/-\n.*// 21417 ' >$as_me.lineno && 21418 chmod +x "$as_me.lineno" || 21419 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21420 { (exit 1); exit 1; }; } 21421 21422 # Don't try to exec as it changes $[0], causing all sort of problems 21423 # (the dirname of $[0] is not the place where we might find the 21424 # original and so on. Autoconf is especially sensitive to this). 21425 . "./$as_me.lineno" 21426 # Exit status is that of the last command. 21427 exit 21428} 21429 21430 21431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21432 as_dirname=dirname 21433else 21434 as_dirname=false 21435fi 21436 21437ECHO_C= ECHO_N= ECHO_T= 21438case `echo -n x` in 21439-n*) 21440 case `echo 'x\c'` in 21441 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21442 *) ECHO_C='\c';; 21443 esac;; 21444*) 21445 ECHO_N='-n';; 21446esac 21447 21448if expr a : '\(a\)' >/dev/null 2>&1 && 21449 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21450 as_expr=expr 21451else 21452 as_expr=false 21453fi 21454 21455rm -f conf$$ conf$$.exe conf$$.file 21456if test -d conf$$.dir; then 21457 rm -f conf$$.dir/conf$$.file 21458else 21459 rm -f conf$$.dir 21460 mkdir conf$$.dir 21461fi 21462echo >conf$$.file 21463if ln -s conf$$.file conf$$ 2>/dev/null; then 21464 as_ln_s='ln -s' 21465 # ... but there are two gotchas: 21466 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21467 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21468 # In both cases, we have to default to `cp -p'. 21469 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21470 as_ln_s='cp -p' 21471elif ln conf$$.file conf$$ 2>/dev/null; then 21472 as_ln_s=ln 21473else 21474 as_ln_s='cp -p' 21475fi 21476rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21477rmdir conf$$.dir 2>/dev/null 21478 21479if mkdir -p . 2>/dev/null; then 21480 as_mkdir_p=: 21481else 21482 test -d ./-p && rmdir ./-p 21483 as_mkdir_p=false 21484fi 21485 21486# Find out whether ``test -x'' works. Don't use a zero-byte file, as 21487# systems may use methods other than mode bits to determine executability. 21488cat >conf$$.file <<_ASEOF 21489#! /bin/sh 21490exit 0 21491_ASEOF 21492chmod +x conf$$.file 21493if test -x conf$$.file >/dev/null 2>&1; then 21494 as_executable_p="test -x" 21495else 21496 as_executable_p=: 21497fi 21498rm -f conf$$.file 21499 21500# Sed expression to map a string onto a valid CPP name. 21501as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21502 21503# Sed expression to map a string onto a valid variable name. 21504as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21505 21506 21507exec 6>&1 21508 21509# Save the log message, to keep $[0] and so on meaningful, and to 21510# report actual input values of CONFIG_FILES etc. instead of their 21511# values after options handling. 21512ac_log=" 21513This file was extended by llvm $as_me 3.1svn, which was 21514generated by GNU Autoconf 2.60. Invocation command line was 21515 21516 CONFIG_FILES = $CONFIG_FILES 21517 CONFIG_HEADERS = $CONFIG_HEADERS 21518 CONFIG_LINKS = $CONFIG_LINKS 21519 CONFIG_COMMANDS = $CONFIG_COMMANDS 21520 $ $0 $@ 21521 21522on `(hostname || uname -n) 2>/dev/null | sed 1q` 21523" 21524 21525_ACEOF 21526 21527cat >>$CONFIG_STATUS <<_ACEOF 21528# Files that config.status was made for. 21529config_files="$ac_config_files" 21530config_headers="$ac_config_headers" 21531config_commands="$ac_config_commands" 21532 21533_ACEOF 21534 21535cat >>$CONFIG_STATUS <<\_ACEOF 21536ac_cs_usage="\ 21537\`$as_me' instantiates files from templates according to the 21538current configuration. 21539 21540Usage: $0 [OPTIONS] [FILE]... 21541 21542 -h, --help print this help, then exit 21543 -V, --version print version number, then exit 21544 -q, --quiet do not print progress messages 21545 -d, --debug don't remove temporary files 21546 --recheck update $as_me by reconfiguring in the same conditions 21547 --file=FILE[:TEMPLATE] 21548 instantiate the configuration file FILE 21549 --header=FILE[:TEMPLATE] 21550 instantiate the configuration header FILE 21551 21552Configuration files: 21553$config_files 21554 21555Configuration headers: 21556$config_headers 21557 21558Configuration commands: 21559$config_commands 21560 21561Report bugs to <bug-autoconf@gnu.org>." 21562 21563_ACEOF 21564cat >>$CONFIG_STATUS <<_ACEOF 21565ac_cs_version="\\ 21566llvm config.status 3.1svn 21567configured by $0, generated by GNU Autoconf 2.60, 21568 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21569 21570Copyright (C) 2006 Free Software Foundation, Inc. 21571This config.status script is free software; the Free Software Foundation 21572gives unlimited permission to copy, distribute and modify it." 21573 21574ac_pwd='$ac_pwd' 21575srcdir='$srcdir' 21576INSTALL='$INSTALL' 21577_ACEOF 21578 21579cat >>$CONFIG_STATUS <<\_ACEOF 21580# If no file are specified by the user, then we need to provide default 21581# value. By we need to know if files were specified by the user. 21582ac_need_defaults=: 21583while test $# != 0 21584do 21585 case $1 in 21586 --*=*) 21587 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21588 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21589 ac_shift=: 21590 ;; 21591 *) 21592 ac_option=$1 21593 ac_optarg=$2 21594 ac_shift=shift 21595 ;; 21596 esac 21597 21598 case $ac_option in 21599 # Handling of the options. 21600 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21601 ac_cs_recheck=: ;; 21602 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21603 echo "$ac_cs_version"; exit ;; 21604 --debug | --debu | --deb | --de | --d | -d ) 21605 debug=: ;; 21606 --file | --fil | --fi | --f ) 21607 $ac_shift 21608 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21609 ac_need_defaults=false;; 21610 --header | --heade | --head | --hea ) 21611 $ac_shift 21612 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21613 ac_need_defaults=false;; 21614 --he | --h) 21615 # Conflict between --help and --header 21616 { echo "$as_me: error: ambiguous option: $1 21617Try \`$0 --help' for more information." >&2 21618 { (exit 1); exit 1; }; };; 21619 --help | --hel | -h ) 21620 echo "$ac_cs_usage"; exit ;; 21621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21622 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21623 ac_cs_silent=: ;; 21624 21625 # This is an error. 21626 -*) { echo "$as_me: error: unrecognized option: $1 21627Try \`$0 --help' for more information." >&2 21628 { (exit 1); exit 1; }; } ;; 21629 21630 *) ac_config_targets="$ac_config_targets $1" 21631 ac_need_defaults=false ;; 21632 21633 esac 21634 shift 21635done 21636 21637ac_configure_extra_args= 21638 21639if $ac_cs_silent; then 21640 exec 6>/dev/null 21641 ac_configure_extra_args="$ac_configure_extra_args --silent" 21642fi 21643 21644_ACEOF 21645cat >>$CONFIG_STATUS <<_ACEOF 21646if \$ac_cs_recheck; then 21647 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21648 CONFIG_SHELL=$SHELL 21649 export CONFIG_SHELL 21650 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21651fi 21652 21653_ACEOF 21654cat >>$CONFIG_STATUS <<\_ACEOF 21655exec 5>>config.log 21656{ 21657 echo 21658 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21659## Running $as_me. ## 21660_ASBOX 21661 echo "$ac_log" 21662} >&5 21663 21664_ACEOF 21665cat >>$CONFIG_STATUS <<_ACEOF 21666# 21667# INIT-COMMANDS 21668# 21669llvm_src="${srcdir}" 21670 21671_ACEOF 21672 21673cat >>$CONFIG_STATUS <<\_ACEOF 21674 21675# Handling of arguments. 21676for ac_config_target in $ac_config_targets 21677do 21678 case $ac_config_target in 21679 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 21680 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 21681 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 21682 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 21683 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 21684 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 21685 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;; 21686 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 21687 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 21688 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 21689 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;; 21690 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; 21691 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;; 21692 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 21693 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 21694 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 21695 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 21696 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 21697 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 21698 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 21699 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 21700 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 21701 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 21702 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 21703 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 21704 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 21705 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 21706 21707 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21708echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21709 { (exit 1); exit 1; }; };; 21710 esac 21711done 21712 21713 21714# If the user did not use the arguments to specify the items to instantiate, 21715# then the envvar interface is used. Set only those that are not. 21716# We use the long form for the default assignment because of an extremely 21717# bizarre bug on SunOS 4.1.3. 21718if $ac_need_defaults; then 21719 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21720 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21721 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21722fi 21723 21724# Have a temporary directory for convenience. Make it in the build tree 21725# simply because there is no reason against having it here, and in addition, 21726# creating and moving files from /tmp can sometimes cause problems. 21727# Hook for its removal unless debugging. 21728# Note that there is a small window in which the directory will not be cleaned: 21729# after its creation but before its name has been assigned to `$tmp'. 21730$debug || 21731{ 21732 tmp= 21733 trap 'exit_status=$? 21734 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21735' 0 21736 trap '{ (exit 1); exit 1; }' 1 2 13 15 21737} 21738# Create a (secure) tmp directory for tmp files. 21739 21740{ 21741 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21742 test -n "$tmp" && test -d "$tmp" 21743} || 21744{ 21745 tmp=./conf$$-$RANDOM 21746 (umask 077 && mkdir "$tmp") 21747} || 21748{ 21749 echo "$me: cannot create a temporary directory in ." >&2 21750 { (exit 1); exit 1; } 21751} 21752 21753# 21754# Set up the sed scripts for CONFIG_FILES section. 21755# 21756 21757# No need to generate the scripts if there are no CONFIG_FILES. 21758# This happens for instance when ./config.status config.h 21759if test -n "$CONFIG_FILES"; then 21760 21761_ACEOF 21762 21763 21764 21765ac_delim='%!_!# ' 21766for ac_last_try in false false false false false :; do 21767 cat >conf$$subs.sed <<_ACEOF 21768SHELL!$SHELL$ac_delim 21769PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21770PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21771PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21772PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21773PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21774PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21775exec_prefix!$exec_prefix$ac_delim 21776prefix!$prefix$ac_delim 21777program_transform_name!$program_transform_name$ac_delim 21778bindir!$bindir$ac_delim 21779sbindir!$sbindir$ac_delim 21780libexecdir!$libexecdir$ac_delim 21781datarootdir!$datarootdir$ac_delim 21782datadir!$datadir$ac_delim 21783sysconfdir!$sysconfdir$ac_delim 21784sharedstatedir!$sharedstatedir$ac_delim 21785localstatedir!$localstatedir$ac_delim 21786includedir!$includedir$ac_delim 21787oldincludedir!$oldincludedir$ac_delim 21788docdir!$docdir$ac_delim 21789infodir!$infodir$ac_delim 21790htmldir!$htmldir$ac_delim 21791dvidir!$dvidir$ac_delim 21792pdfdir!$pdfdir$ac_delim 21793psdir!$psdir$ac_delim 21794libdir!$libdir$ac_delim 21795localedir!$localedir$ac_delim 21796mandir!$mandir$ac_delim 21797DEFS!$DEFS$ac_delim 21798ECHO_C!$ECHO_C$ac_delim 21799ECHO_N!$ECHO_N$ac_delim 21800ECHO_T!$ECHO_T$ac_delim 21801LIBS!$LIBS$ac_delim 21802build_alias!$build_alias$ac_delim 21803host_alias!$host_alias$ac_delim 21804target_alias!$target_alias$ac_delim 21805LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 21806CC!$CC$ac_delim 21807CFLAGS!$CFLAGS$ac_delim 21808LDFLAGS!$LDFLAGS$ac_delim 21809CPPFLAGS!$CPPFLAGS$ac_delim 21810ac_ct_CC!$ac_ct_CC$ac_delim 21811EXEEXT!$EXEEXT$ac_delim 21812OBJEXT!$OBJEXT$ac_delim 21813CXX!$CXX$ac_delim 21814CXXFLAGS!$CXXFLAGS$ac_delim 21815ac_ct_CXX!$ac_ct_CXX$ac_delim 21816CPP!$CPP$ac_delim 21817subdirs!$subdirs$ac_delim 21818ENABLE_POLLY!$ENABLE_POLLY$ac_delim 21819LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 21820build!$build$ac_delim 21821build_cpu!$build_cpu$ac_delim 21822build_vendor!$build_vendor$ac_delim 21823build_os!$build_os$ac_delim 21824host!$host$ac_delim 21825host_cpu!$host_cpu$ac_delim 21826host_vendor!$host_vendor$ac_delim 21827host_os!$host_os$ac_delim 21828target!$target$ac_delim 21829target_cpu!$target_cpu$ac_delim 21830target_vendor!$target_vendor$ac_delim 21831target_os!$target_os$ac_delim 21832OS!$OS$ac_delim 21833HOST_OS!$HOST_OS$ac_delim 21834TARGET_OS!$TARGET_OS$ac_delim 21835LINKALL!$LINKALL$ac_delim 21836NOLINKALL!$NOLINKALL$ac_delim 21837LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 21838LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 21839ARCH!$ARCH$ac_delim 21840ENDIAN!$ENDIAN$ac_delim 21841GREP!$GREP$ac_delim 21842EGREP!$EGREP$ac_delim 21843LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 21844BUILD_CC!$BUILD_CC$ac_delim 21845BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 21846BUILD_CXX!$BUILD_CXX$ac_delim 21847CVSBUILD!$CVSBUILD$ac_delim 21848ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 21849ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 21850DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 21851ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 21852EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 21853DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 21854DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 21855JIT!$JIT$ac_delim 21856TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 21857ENABLE_DOCS!$ENABLE_DOCS$ac_delim 21858ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 21859ENABLE_THREADS!$ENABLE_THREADS$ac_delim 21860ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 21861ENABLE_PIC!$ENABLE_PIC$ac_delim 21862ENABLE_SHARED!$ENABLE_SHARED$ac_delim 21863ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 21864ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 21865_ACEOF 21866 21867 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21868 break 21869 elif $ac_last_try; then 21870 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21871echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21872 { (exit 1); exit 1; }; } 21873 else 21874 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21875 fi 21876done 21877 21878ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21879if test -n "$ac_eof"; then 21880 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21881 ac_eof=`expr $ac_eof + 1` 21882fi 21883 21884cat >>$CONFIG_STATUS <<_ACEOF 21885cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21886/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21887_ACEOF 21888sed ' 21889s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21890s/^/s,@/; s/!/@,|#_!!_#|/ 21891:n 21892t n 21893s/'"$ac_delim"'$/,g/; t 21894s/$/\\/; p 21895N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21896' >>$CONFIG_STATUS <conf$$subs.sed 21897rm -f conf$$subs.sed 21898cat >>$CONFIG_STATUS <<_ACEOF 21899CEOF$ac_eof 21900_ACEOF 21901 21902 21903ac_delim='%!_!# ' 21904for ac_last_try in false false false false false :; do 21905 cat >conf$$subs.sed <<_ACEOF 21906TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 21907LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 21908LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 21909LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 21910LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 21911ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim 21912OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 21913EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 21914EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 21915CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim 21916BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 21917NM!$NM$ac_delim 21918ifGNUmake!$ifGNUmake$ac_delim 21919LN_S!$LN_S$ac_delim 21920CMP!$CMP$ac_delim 21921CP!$CP$ac_delim 21922DATE!$DATE$ac_delim 21923FIND!$FIND$ac_delim 21924MKDIR!$MKDIR$ac_delim 21925MV!$MV$ac_delim 21926RANLIB!$RANLIB$ac_delim 21927AR!$AR$ac_delim 21928RM!$RM$ac_delim 21929SED!$SED$ac_delim 21930TAR!$TAR$ac_delim 21931BINPWD!$BINPWD$ac_delim 21932GRAPHVIZ!$GRAPHVIZ$ac_delim 21933DOT!$DOT$ac_delim 21934FDP!$FDP$ac_delim 21935NEATO!$NEATO$ac_delim 21936TWOPI!$TWOPI$ac_delim 21937CIRCO!$CIRCO$ac_delim 21938GV!$GV$ac_delim 21939DOTTY!$DOTTY$ac_delim 21940XDOT_PY!$XDOT_PY$ac_delim 21941PERL!$PERL$ac_delim 21942HAVE_PERL!$HAVE_PERL$ac_delim 21943INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21944INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21945INSTALL_DATA!$INSTALL_DATA$ac_delim 21946BZIP2!$BZIP2$ac_delim 21947CAT!$CAT$ac_delim 21948DOXYGEN!$DOXYGEN$ac_delim 21949GROFF!$GROFF$ac_delim 21950GZIPBIN!$GZIPBIN$ac_delim 21951POD2HTML!$POD2HTML$ac_delim 21952POD2MAN!$POD2MAN$ac_delim 21953PDFROFF!$PDFROFF$ac_delim 21954RUNTEST!$RUNTEST$ac_delim 21955TCLSH!$TCLSH$ac_delim 21956ZIP!$ZIP$ac_delim 21957OCAMLC!$OCAMLC$ac_delim 21958OCAMLOPT!$OCAMLOPT$ac_delim 21959OCAMLDEP!$OCAMLDEP$ac_delim 21960OCAMLDOC!$OCAMLDOC$ac_delim 21961GAS!$GAS$ac_delim 21962HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 21963INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 21964INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 21965CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 21966CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 21967LIBADD_DL!$LIBADD_DL$ac_delim 21968NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 21969NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 21970USE_UDIS86!$USE_UDIS86$ac_delim 21971USE_OPROFILE!$USE_OPROFILE$ac_delim 21972HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 21973HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 21974MMAP_FILE!$MMAP_FILE$ac_delim 21975SHLIBEXT!$SHLIBEXT$ac_delim 21976SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 21977LLVM_PREFIX!$LLVM_PREFIX$ac_delim 21978LLVM_BINDIR!$LLVM_BINDIR$ac_delim 21979LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 21980LLVM_DATADIR!$LLVM_DATADIR$ac_delim 21981LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 21982LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 21983LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 21984LLVM_INFODIR!$LLVM_INFODIR$ac_delim 21985LLVM_MANDIR!$LLVM_MANDIR$ac_delim 21986LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 21987BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 21988ALL_BINDINGS!$ALL_BINDINGS$ac_delim 21989OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 21990ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 21991RPATH!$RPATH$ac_delim 21992RDYNAMIC!$RDYNAMIC$ac_delim 21993LIBOBJS!$LIBOBJS$ac_delim 21994LTLIBOBJS!$LTLIBOBJS$ac_delim 21995_ACEOF 21996 21997 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then 21998 break 21999 elif $ac_last_try; then 22000 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 22001echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 22002 { (exit 1); exit 1; }; } 22003 else 22004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22005 fi 22006done 22007 22008ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 22009if test -n "$ac_eof"; then 22010 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 22011 ac_eof=`expr $ac_eof + 1` 22012fi 22013 22014cat >>$CONFIG_STATUS <<_ACEOF 22015cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 22016/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 22017_ACEOF 22018sed ' 22019s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 22020s/^/s,@/; s/!/@,|#_!!_#|/ 22021:n 22022t n 22023s/'"$ac_delim"'$/,g/; t 22024s/$/\\/; p 22025N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 22026' >>$CONFIG_STATUS <conf$$subs.sed 22027rm -f conf$$subs.sed 22028cat >>$CONFIG_STATUS <<_ACEOF 22029:end 22030s/|#_!!_#|//g 22031CEOF$ac_eof 22032_ACEOF 22033 22034 22035# VPATH may cause trouble with some makes, so we remove $(srcdir), 22036# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22037# trailing colons and then remove the whole line if VPATH becomes empty 22038# (actually we leave an empty line to preserve line numbers). 22039if test "x$srcdir" = x.; then 22040 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22041s/:*\$(srcdir):*/:/ 22042s/:*\${srcdir}:*/:/ 22043s/:*@srcdir@:*/:/ 22044s/^\([^=]*=[ ]*\):*/\1/ 22045s/:*$// 22046s/^[^=]*=[ ]*$// 22047}' 22048fi 22049 22050cat >>$CONFIG_STATUS <<\_ACEOF 22051fi # test -n "$CONFIG_FILES" 22052 22053 22054for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22055do 22056 case $ac_tag in 22057 :[FHLC]) ac_mode=$ac_tag; continue;; 22058 esac 22059 case $ac_mode$ac_tag in 22060 :[FHL]*:*);; 22061 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22062echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22063 { (exit 1); exit 1; }; };; 22064 :[FH]-) ac_tag=-:-;; 22065 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22066 esac 22067 ac_save_IFS=$IFS 22068 IFS=: 22069 set x $ac_tag 22070 IFS=$ac_save_IFS 22071 shift 22072 ac_file=$1 22073 shift 22074 22075 case $ac_mode in 22076 :L) ac_source=$1;; 22077 :[FH]) 22078 ac_file_inputs= 22079 for ac_f 22080 do 22081 case $ac_f in 22082 -) ac_f="$tmp/stdin";; 22083 *) # Look for the file first in the build tree, then in the source tree 22084 # (if the path is not absolute). The absolute path cannot be DOS-style, 22085 # because $ac_f cannot contain `:'. 22086 test -f "$ac_f" || 22087 case $ac_f in 22088 [\\/$]*) false;; 22089 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22090 esac || 22091 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22092echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22093 { (exit 1); exit 1; }; };; 22094 esac 22095 ac_file_inputs="$ac_file_inputs $ac_f" 22096 done 22097 22098 # Let's still pretend it is `configure' which instantiates (i.e., don't 22099 # use $as_me), people would be surprised to read: 22100 # /* config.h. Generated by config.status. */ 22101 configure_input="Generated from "`IFS=: 22102 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22103 if test x"$ac_file" != x-; then 22104 configure_input="$ac_file. $configure_input" 22105 { echo "$as_me:$LINENO: creating $ac_file" >&5 22106echo "$as_me: creating $ac_file" >&6;} 22107 fi 22108 22109 case $ac_tag in 22110 *:-:* | *:-) cat >"$tmp/stdin";; 22111 esac 22112 ;; 22113 esac 22114 22115 ac_dir=`$as_dirname -- "$ac_file" || 22116$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22117 X"$ac_file" : 'X\(//\)[^/]' \| \ 22118 X"$ac_file" : 'X\(//\)$' \| \ 22119 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22120echo X"$ac_file" | 22121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22122 s//\1/ 22123 q 22124 } 22125 /^X\(\/\/\)[^/].*/{ 22126 s//\1/ 22127 q 22128 } 22129 /^X\(\/\/\)$/{ 22130 s//\1/ 22131 q 22132 } 22133 /^X\(\/\).*/{ 22134 s//\1/ 22135 q 22136 } 22137 s/.*/./; q'` 22138 { as_dir="$ac_dir" 22139 case $as_dir in #( 22140 -*) as_dir=./$as_dir;; 22141 esac 22142 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22143 as_dirs= 22144 while :; do 22145 case $as_dir in #( 22146 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22147 *) as_qdir=$as_dir;; 22148 esac 22149 as_dirs="'$as_qdir' $as_dirs" 22150 as_dir=`$as_dirname -- "$as_dir" || 22151$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22152 X"$as_dir" : 'X\(//\)[^/]' \| \ 22153 X"$as_dir" : 'X\(//\)$' \| \ 22154 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22155echo X"$as_dir" | 22156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22157 s//\1/ 22158 q 22159 } 22160 /^X\(\/\/\)[^/].*/{ 22161 s//\1/ 22162 q 22163 } 22164 /^X\(\/\/\)$/{ 22165 s//\1/ 22166 q 22167 } 22168 /^X\(\/\).*/{ 22169 s//\1/ 22170 q 22171 } 22172 s/.*/./; q'` 22173 test -d "$as_dir" && break 22174 done 22175 test -z "$as_dirs" || eval "mkdir $as_dirs" 22176 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22177echo "$as_me: error: cannot create directory $as_dir" >&2;} 22178 { (exit 1); exit 1; }; }; } 22179 ac_builddir=. 22180 22181case "$ac_dir" in 22182.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22183*) 22184 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22185 # A ".." for each directory in $ac_dir_suffix. 22186 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22187 case $ac_top_builddir_sub in 22188 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22189 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22190 esac ;; 22191esac 22192ac_abs_top_builddir=$ac_pwd 22193ac_abs_builddir=$ac_pwd$ac_dir_suffix 22194# for backward compatibility: 22195ac_top_builddir=$ac_top_build_prefix 22196 22197case $srcdir in 22198 .) # We are building in place. 22199 ac_srcdir=. 22200 ac_top_srcdir=$ac_top_builddir_sub 22201 ac_abs_top_srcdir=$ac_pwd ;; 22202 [\\/]* | ?:[\\/]* ) # Absolute name. 22203 ac_srcdir=$srcdir$ac_dir_suffix; 22204 ac_top_srcdir=$srcdir 22205 ac_abs_top_srcdir=$srcdir ;; 22206 *) # Relative name. 22207 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22208 ac_top_srcdir=$ac_top_build_prefix$srcdir 22209 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22210esac 22211ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22212 22213 22214 case $ac_mode in 22215 :F) 22216 # 22217 # CONFIG_FILE 22218 # 22219 22220 case $INSTALL in 22221 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22222 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22223 esac 22224_ACEOF 22225 22226cat >>$CONFIG_STATUS <<\_ACEOF 22227# If the template does not know about datarootdir, expand it. 22228# FIXME: This hack should be removed a few years after 2.60. 22229ac_datarootdir_hack=; ac_datarootdir_seen= 22230 22231case `sed -n '/datarootdir/ { 22232 p 22233 q 22234} 22235/@datadir@/p 22236/@docdir@/p 22237/@infodir@/p 22238/@localedir@/p 22239/@mandir@/p 22240' $ac_file_inputs` in 22241*datarootdir*) ac_datarootdir_seen=yes;; 22242*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22243 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22244echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22245_ACEOF 22246cat >>$CONFIG_STATUS <<_ACEOF 22247 ac_datarootdir_hack=' 22248 s&@datadir@&$datadir&g 22249 s&@docdir@&$docdir&g 22250 s&@infodir@&$infodir&g 22251 s&@localedir@&$localedir&g 22252 s&@mandir@&$mandir&g 22253 s&\\\${datarootdir}&$datarootdir&g' ;; 22254esac 22255_ACEOF 22256 22257# Neutralize VPATH when `$srcdir' = `.'. 22258# Shell code in configure.ac might set extrasub. 22259# FIXME: do we really want to maintain this feature? 22260cat >>$CONFIG_STATUS <<_ACEOF 22261 sed "$ac_vpsub 22262$extrasub 22263_ACEOF 22264cat >>$CONFIG_STATUS <<\_ACEOF 22265:t 22266/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22267s&@configure_input@&$configure_input&;t t 22268s&@top_builddir@&$ac_top_builddir_sub&;t t 22269s&@srcdir@&$ac_srcdir&;t t 22270s&@abs_srcdir@&$ac_abs_srcdir&;t t 22271s&@top_srcdir@&$ac_top_srcdir&;t t 22272s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22273s&@builddir@&$ac_builddir&;t t 22274s&@abs_builddir@&$ac_abs_builddir&;t t 22275s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22276s&@INSTALL@&$ac_INSTALL&;t t 22277$ac_datarootdir_hack 22278" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22279 22280test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22281 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22282 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22283 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22284which seems to be undefined. Please make sure it is defined." >&5 22285echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22286which seems to be undefined. Please make sure it is defined." >&2;} 22287 22288 rm -f "$tmp/stdin" 22289 case $ac_file in 22290 -) cat "$tmp/out"; rm -f "$tmp/out";; 22291 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22292 esac 22293 ;; 22294 :H) 22295 # 22296 # CONFIG_HEADER 22297 # 22298_ACEOF 22299 22300# Transform confdefs.h into a sed script `conftest.defines', that 22301# substitutes the proper values into config.h.in to produce config.h. 22302rm -f conftest.defines conftest.tail 22303# First, append a space to every undef/define line, to ease matching. 22304echo 's/$/ /' >conftest.defines 22305# Then, protect against being on the right side of a sed subst, or in 22306# an unquoted here document, in config.status. If some macros were 22307# called several times there might be several #defines for the same 22308# symbol, which is useless. But do not sort them, since the last 22309# AC_DEFINE must be honored. 22310ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22311# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22312# NAME is the cpp macro being defined, VALUE is the value it is being given. 22313# PARAMS is the parameter list in the macro definition--in most cases, it's 22314# just an empty string. 22315ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22316ac_dB='\\)[ (].*,\\1define\\2' 22317ac_dC=' ' 22318ac_dD=' ,' 22319 22320uniq confdefs.h | 22321 sed -n ' 22322 t rset 22323 :rset 22324 s/^[ ]*#[ ]*define[ ][ ]*// 22325 t ok 22326 d 22327 :ok 22328 s/[\\&,]/\\&/g 22329 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22330 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22331 ' >>conftest.defines 22332 22333# Remove the space that was appended to ease matching. 22334# Then replace #undef with comments. This is necessary, for 22335# example, in the case of _POSIX_SOURCE, which is predefined and required 22336# on some systems where configure will not decide to define it. 22337# (The regexp can be short, since the line contains either #define or #undef.) 22338echo 's/ $// 22339s,^[ #]*u.*,/* & */,' >>conftest.defines 22340 22341# Break up conftest.defines: 22342ac_max_sed_lines=50 22343 22344# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22345# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22346# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22347# et cetera. 22348ac_in='$ac_file_inputs' 22349ac_out='"$tmp/out1"' 22350ac_nxt='"$tmp/out2"' 22351 22352while : 22353do 22354 # Write a here document: 22355 cat >>$CONFIG_STATUS <<_ACEOF 22356 # First, check the format of the line: 22357 cat >"\$tmp/defines.sed" <<\\CEOF 22358/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22359/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22360b 22361:def 22362_ACEOF 22363 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22364 echo 'CEOF 22365 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22366 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22367 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22368 grep . conftest.tail >/dev/null || break 22369 rm -f conftest.defines 22370 mv conftest.tail conftest.defines 22371done 22372rm -f conftest.defines conftest.tail 22373 22374echo "ac_result=$ac_in" >>$CONFIG_STATUS 22375cat >>$CONFIG_STATUS <<\_ACEOF 22376 if test x"$ac_file" != x-; then 22377 echo "/* $configure_input */" >"$tmp/config.h" 22378 cat "$ac_result" >>"$tmp/config.h" 22379 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22380 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22381echo "$as_me: $ac_file is unchanged" >&6;} 22382 else 22383 rm -f $ac_file 22384 mv "$tmp/config.h" $ac_file 22385 fi 22386 else 22387 echo "/* $configure_input */" 22388 cat "$ac_result" 22389 fi 22390 rm -f "$tmp/out12" 22391 ;; 22392 22393 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22394echo "$as_me: executing $ac_file commands" >&6;} 22395 ;; 22396 esac 22397 22398 22399 case $ac_file$ac_mode in 22400 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 22401 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 22402 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 22403 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 22404 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 22405 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 22406 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 22407 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 22408 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 22409 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 22410 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 22411 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 22412 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 22413 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 22414 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 22415 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 22416 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 22417 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 22418 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 22419 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 22420 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 22421 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 22422 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 22423 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 22424 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 22425 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 22426 22427 esac 22428done # for ac_tag 22429 22430 22431{ (exit 0); exit 0; } 22432_ACEOF 22433chmod +x $CONFIG_STATUS 22434ac_clean_files=$ac_clean_files_save 22435 22436 22437# configure is writing to config.log, and then calls config.status. 22438# config.status does its own redirection, appending to config.log. 22439# Unfortunately, on DOS this fails, as config.log is still kept open 22440# by configure, so config.status won't be able to write to it; its 22441# output is simply discarded. So we exec the FD to /dev/null, 22442# effectively closing config.log, so it can be properly (re)opened and 22443# appended to by config.status. When coming back to configure, we 22444# need to make the FD available again. 22445if test "$no_create" != yes; then 22446 ac_cs_success=: 22447 ac_config_status_args= 22448 test "$silent" = yes && 22449 ac_config_status_args="$ac_config_status_args --quiet" 22450 exec 5>/dev/null 22451 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22452 exec 5>>config.log 22453 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22454 # would make configure fail if this is the last instruction. 22455 $ac_cs_success || { (exit 1); exit 1; } 22456fi 22457 22458# 22459# CONFIG_SUBDIRS section. 22460# 22461if test "$no_recursion" != yes; then 22462 22463 # Remove --cache-file and --srcdir arguments so they do not pile up. 22464 ac_sub_configure_args= 22465 ac_prev= 22466 eval "set x $ac_configure_args" 22467 shift 22468 for ac_arg 22469 do 22470 if test -n "$ac_prev"; then 22471 ac_prev= 22472 continue 22473 fi 22474 case $ac_arg in 22475 -cache-file | --cache-file | --cache-fil | --cache-fi \ 22476 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 22477 ac_prev=cache_file ;; 22478 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 22479 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 22480 | --c=*) 22481 ;; 22482 --config-cache | -C) 22483 ;; 22484 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 22485 ac_prev=srcdir ;; 22486 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 22487 ;; 22488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 22489 ac_prev=prefix ;; 22490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 22491 ;; 22492 *) 22493 case $ac_arg in 22494 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22495 esac 22496 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 22497 esac 22498 done 22499 22500 # Always prepend --prefix to ensure using the same prefix 22501 # in subdir configurations. 22502 ac_arg="--prefix=$prefix" 22503 case $ac_arg in 22504 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22505 esac 22506 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 22507 22508 ac_popdir=`pwd` 22509 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 22510 22511 # Do not complain, so a configure script can configure whichever 22512 # parts of a large source tree are present. 22513 test -d "$srcdir/$ac_dir" || continue 22514 22515 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 22516 echo "$as_me:$LINENO: $ac_msg" >&5 22517 echo "$ac_msg" >&6 22518 { as_dir="$ac_dir" 22519 case $as_dir in #( 22520 -*) as_dir=./$as_dir;; 22521 esac 22522 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22523 as_dirs= 22524 while :; do 22525 case $as_dir in #( 22526 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22527 *) as_qdir=$as_dir;; 22528 esac 22529 as_dirs="'$as_qdir' $as_dirs" 22530 as_dir=`$as_dirname -- "$as_dir" || 22531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22532 X"$as_dir" : 'X\(//\)[^/]' \| \ 22533 X"$as_dir" : 'X\(//\)$' \| \ 22534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22535echo X"$as_dir" | 22536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22537 s//\1/ 22538 q 22539 } 22540 /^X\(\/\/\)[^/].*/{ 22541 s//\1/ 22542 q 22543 } 22544 /^X\(\/\/\)$/{ 22545 s//\1/ 22546 q 22547 } 22548 /^X\(\/\).*/{ 22549 s//\1/ 22550 q 22551 } 22552 s/.*/./; q'` 22553 test -d "$as_dir" && break 22554 done 22555 test -z "$as_dirs" || eval "mkdir $as_dirs" 22556 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22557echo "$as_me: error: cannot create directory $as_dir" >&2;} 22558 { (exit 1); exit 1; }; }; } 22559 ac_builddir=. 22560 22561case "$ac_dir" in 22562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22563*) 22564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22565 # A ".." for each directory in $ac_dir_suffix. 22566 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22567 case $ac_top_builddir_sub in 22568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22570 esac ;; 22571esac 22572ac_abs_top_builddir=$ac_pwd 22573ac_abs_builddir=$ac_pwd$ac_dir_suffix 22574# for backward compatibility: 22575ac_top_builddir=$ac_top_build_prefix 22576 22577case $srcdir in 22578 .) # We are building in place. 22579 ac_srcdir=. 22580 ac_top_srcdir=$ac_top_builddir_sub 22581 ac_abs_top_srcdir=$ac_pwd ;; 22582 [\\/]* | ?:[\\/]* ) # Absolute name. 22583 ac_srcdir=$srcdir$ac_dir_suffix; 22584 ac_top_srcdir=$srcdir 22585 ac_abs_top_srcdir=$srcdir ;; 22586 *) # Relative name. 22587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22588 ac_top_srcdir=$ac_top_build_prefix$srcdir 22589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22590esac 22591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22592 22593 22594 cd "$ac_dir" 22595 22596 # Check for guested configure; otherwise get Cygnus style configure. 22597 if test -f "$ac_srcdir/configure.gnu"; then 22598 ac_sub_configure=$ac_srcdir/configure.gnu 22599 elif test -f "$ac_srcdir/configure"; then 22600 ac_sub_configure=$ac_srcdir/configure 22601 elif test -f "$ac_srcdir/configure.in"; then 22602 # This should be Cygnus configure. 22603 ac_sub_configure=$ac_aux_dir/configure 22604 else 22605 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 22606echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 22607 ac_sub_configure= 22608 fi 22609 22610 # The recursion is here. 22611 if test -n "$ac_sub_configure"; then 22612 # Make the cache file name correct relative to the subdirectory. 22613 case $cache_file in 22614 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 22615 *) # Relative name. 22616 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 22617 esac 22618 22619 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 22620echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 22621 # The eval makes quoting arguments work. 22622 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 22623 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 22624 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 22625echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 22626 { (exit 1); exit 1; }; } 22627 fi 22628 22629 cd "$ac_popdir" 22630 done 22631fi 22632 22633