configure revision 60cb528246dd01b80b1b1260a2a877ea488e620a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for llvm 2.9svn. 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-2010 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='2.9svn' 565PACKAGE_STRING='llvm 2.9svn' 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 643subdirs 644build 645build_cpu 646build_vendor 647build_os 648host 649host_cpu 650host_vendor 651host_os 652target 653target_cpu 654target_vendor 655target_os 656OS 657HOST_OS 658TARGET_OS 659LINKALL 660NOLINKALL 661LLVM_ON_UNIX 662LLVM_ON_WIN32 663ARCH 664ENDIAN 665CC 666CFLAGS 667LDFLAGS 668CPPFLAGS 669ac_ct_CC 670EXEEXT 671OBJEXT 672CPP 673GREP 674EGREP 675LLVM_CROSS_COMPILING 676BUILD_CC 677BUILD_EXEEXT 678BUILD_CXX 679CVSBUILD 680ENABLE_OPTIMIZED 681ENABLE_PROFILING 682DISABLE_ASSERTIONS 683ENABLE_EXPENSIVE_CHECKS 684EXPENSIVE_CHECKS 685DEBUG_RUNTIME 686DEBUG_SYMBOLS 687JIT 688TARGET_HAS_JIT 689ENABLE_DOXYGEN 690ENABLE_THREADS 691ENABLE_PIC 692ENABLE_SHARED 693ENABLE_TIMESTAMPS 694TARGETS_TO_BUILD 695LLVM_ENUM_TARGETS 696LLVM_ENUM_ASM_PRINTERS 697LLVM_ENUM_ASM_PARSERS 698LLVM_ENUM_DISASSEMBLERS 699ENABLE_CBE_PRINTF_A 700CLANGPATH 701CLANGXXPATH 702ENABLE_BUILT_CLANG 703OPTIMIZE_OPTION 704EXTRA_OPTIONS 705BINUTILS_INCDIR 706CXX 707CXXFLAGS 708ac_ct_CXX 709NM 710ifGNUmake 711LN_S 712CMP 713CP 714DATE 715FIND 716MKDIR 717MV 718RANLIB 719AR 720RM 721SED 722TAR 723BINPWD 724GRAPHVIZ 725DOT 726FDP 727NEATO 728TWOPI 729CIRCO 730GV 731DOTTY 732XDOT_PY 733PERL 734HAVE_PERL 735INSTALL_PROGRAM 736INSTALL_SCRIPT 737INSTALL_DATA 738BZIP2 739CAT 740DOXYGEN 741GROFF 742GZIP 743POD2HTML 744POD2MAN 745PDFROFF 746RUNTEST 747TCLSH 748ZIP 749OCAMLC 750OCAMLOPT 751OCAMLDEP 752OCAMLDOC 753GAS 754HAVE_LINK_VERSION_SCRIPT 755INSTALL_LTDL_TRUE 756INSTALL_LTDL_FALSE 757CONVENIENCE_LTDL_TRUE 758CONVENIENCE_LTDL_FALSE 759LIBADD_DL 760LLVMGCCCOMMAND 761LLVMGXXCOMMAND 762LLVMGCC 763LLVMGXX 764LLVMCC_OPTION 765NO_VARIADIC_MACROS 766NO_MISSING_FIELD_INITIALIZERS 767USE_UDIS86 768USE_OPROFILE 769HAVE_PTHREAD 770HUGE_VAL_SANITY 771MMAP_FILE 772LLVMCC1 773LLVMCC1PLUS 774LLVMGCCDIR 775LLVMGCC_LANGS 776SHLIBEXT 777SHLIBPATH_VAR 778LLVM_PREFIX 779LLVM_BINDIR 780LLVM_LIBDIR 781LLVM_DATADIR 782LLVM_DOCSDIR 783LLVM_ETCDIR 784LLVM_INCLUDEDIR 785LLVM_INFODIR 786LLVM_MANDIR 787LLVM_CONFIGTIME 788BINDINGS_TO_BUILD 789ALL_BINDINGS 790OCAML_LIBDIR 791ENABLE_VISIBILITY_INLINES_HIDDEN 792RPATH 793RDYNAMIC 794LIBOBJS 795LTLIBOBJS' 796ac_subst_files='' 797 ac_precious_vars='build_alias 798host_alias 799target_alias 800CC 801CFLAGS 802LDFLAGS 803CPPFLAGS 804CPP 805CXX 806CXXFLAGS 807CCC' 808ac_subdirs_all='projects/llvm-gcc 809projects/test-suite 810projects/llvm-test 811projects/poolalloc 812projects/llvm-poolalloc 813projects/sample 814projects/privbracket 815projects/llvm-stacker 816projects/llvm-reopt 817projects/llvm-java 818projects/llvm-tv 819projects/safecode 820projects/llvm-kernel' 821 822# Initialize some variables set by options. 823ac_init_help= 824ac_init_version=false 825# The variables have the same names as the options, with 826# dashes changed to underlines. 827cache_file=/dev/null 828exec_prefix=NONE 829no_create= 830no_recursion= 831prefix=NONE 832program_prefix=NONE 833program_suffix=NONE 834program_transform_name=s,x,x, 835silent= 836site= 837srcdir= 838verbose= 839x_includes=NONE 840x_libraries=NONE 841 842# Installation directory options. 843# These are left unexpanded so users can "make install exec_prefix=/foo" 844# and all the variables that are supposed to be based on exec_prefix 845# by default will actually change. 846# Use braces instead of parens because sh, perl, etc. also accept them. 847# (The list follows the same order as the GNU Coding Standards.) 848bindir='${exec_prefix}/bin' 849sbindir='${exec_prefix}/sbin' 850libexecdir='${exec_prefix}/libexec' 851datarootdir='${prefix}/share' 852datadir='${datarootdir}' 853sysconfdir='${prefix}/etc' 854sharedstatedir='${prefix}/com' 855localstatedir='${prefix}/var' 856includedir='${prefix}/include' 857oldincludedir='/usr/include' 858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 859infodir='${datarootdir}/info' 860htmldir='${docdir}' 861dvidir='${docdir}' 862pdfdir='${docdir}' 863psdir='${docdir}' 864libdir='${exec_prefix}/lib' 865localedir='${datarootdir}/locale' 866mandir='${datarootdir}/man' 867 868ac_prev= 869ac_dashdash= 870for ac_option 871do 872 # If the previous option needs an argument, assign it. 873 if test -n "$ac_prev"; then 874 eval $ac_prev=\$ac_option 875 ac_prev= 876 continue 877 fi 878 879 case $ac_option in 880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 881 *) ac_optarg=yes ;; 882 esac 883 884 # Accept the important Cygnus configure options, so we can diagnose typos. 885 886 case $ac_dashdash$ac_option in 887 --) 888 ac_dashdash=yes ;; 889 890 -bindir | --bindir | --bindi | --bind | --bin | --bi) 891 ac_prev=bindir ;; 892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 893 bindir=$ac_optarg ;; 894 895 -build | --build | --buil | --bui | --bu) 896 ac_prev=build_alias ;; 897 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 898 build_alias=$ac_optarg ;; 899 900 -cache-file | --cache-file | --cache-fil | --cache-fi \ 901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 902 ac_prev=cache_file ;; 903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 905 cache_file=$ac_optarg ;; 906 907 --config-cache | -C) 908 cache_file=config.cache ;; 909 910 -datadir | --datadir | --datadi | --datad) 911 ac_prev=datadir ;; 912 -datadir=* | --datadir=* | --datadi=* | --datad=*) 913 datadir=$ac_optarg ;; 914 915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 916 | --dataroo | --dataro | --datar) 917 ac_prev=datarootdir ;; 918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 920 datarootdir=$ac_optarg ;; 921 922 -disable-* | --disable-*) 923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 927 { (exit 1); exit 1; }; } 928 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 929 eval enable_$ac_feature=no ;; 930 931 -docdir | --docdir | --docdi | --doc | --do) 932 ac_prev=docdir ;; 933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 934 docdir=$ac_optarg ;; 935 936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 937 ac_prev=dvidir ;; 938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 939 dvidir=$ac_optarg ;; 940 941 -enable-* | --enable-*) 942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 943 # Reject names that are not valid shell variable names. 944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 946 { (exit 1); exit 1; }; } 947 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 948 eval enable_$ac_feature=\$ac_optarg ;; 949 950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 952 | --exec | --exe | --ex) 953 ac_prev=exec_prefix ;; 954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 956 | --exec=* | --exe=* | --ex=*) 957 exec_prefix=$ac_optarg ;; 958 959 -gas | --gas | --ga | --g) 960 # Obsolete; use --with-gas. 961 with_gas=yes ;; 962 963 -help | --help | --hel | --he | -h) 964 ac_init_help=long ;; 965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 966 ac_init_help=recursive ;; 967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 968 ac_init_help=short ;; 969 970 -host | --host | --hos | --ho) 971 ac_prev=host_alias ;; 972 -host=* | --host=* | --hos=* | --ho=*) 973 host_alias=$ac_optarg ;; 974 975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 976 ac_prev=htmldir ;; 977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 978 | --ht=*) 979 htmldir=$ac_optarg ;; 980 981 -includedir | --includedir | --includedi | --included | --include \ 982 | --includ | --inclu | --incl | --inc) 983 ac_prev=includedir ;; 984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 985 | --includ=* | --inclu=* | --incl=* | --inc=*) 986 includedir=$ac_optarg ;; 987 988 -infodir | --infodir | --infodi | --infod | --info | --inf) 989 ac_prev=infodir ;; 990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 991 infodir=$ac_optarg ;; 992 993 -libdir | --libdir | --libdi | --libd) 994 ac_prev=libdir ;; 995 -libdir=* | --libdir=* | --libdi=* | --libd=*) 996 libdir=$ac_optarg ;; 997 998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 999 | --libexe | --libex | --libe) 1000 ac_prev=libexecdir ;; 1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1002 | --libexe=* | --libex=* | --libe=*) 1003 libexecdir=$ac_optarg ;; 1004 1005 -localedir | --localedir | --localedi | --localed | --locale) 1006 ac_prev=localedir ;; 1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1008 localedir=$ac_optarg ;; 1009 1010 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1011 | --localstate | --localstat | --localsta | --localst | --locals) 1012 ac_prev=localstatedir ;; 1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1015 localstatedir=$ac_optarg ;; 1016 1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1018 ac_prev=mandir ;; 1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1020 mandir=$ac_optarg ;; 1021 1022 -nfp | --nfp | --nf) 1023 # Obsolete; use --without-fp. 1024 with_fp=no ;; 1025 1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1027 | --no-cr | --no-c | -n) 1028 no_create=yes ;; 1029 1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1032 no_recursion=yes ;; 1033 1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1036 | --oldin | --oldi | --old | --ol | --o) 1037 ac_prev=oldincludedir ;; 1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1041 oldincludedir=$ac_optarg ;; 1042 1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1044 ac_prev=prefix ;; 1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1046 prefix=$ac_optarg ;; 1047 1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1049 | --program-pre | --program-pr | --program-p) 1050 ac_prev=program_prefix ;; 1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1053 program_prefix=$ac_optarg ;; 1054 1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1056 | --program-suf | --program-su | --program-s) 1057 ac_prev=program_suffix ;; 1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1060 program_suffix=$ac_optarg ;; 1061 1062 -program-transform-name | --program-transform-name \ 1063 | --program-transform-nam | --program-transform-na \ 1064 | --program-transform-n | --program-transform- \ 1065 | --program-transform | --program-transfor \ 1066 | --program-transfo | --program-transf \ 1067 | --program-trans | --program-tran \ 1068 | --progr-tra | --program-tr | --program-t) 1069 ac_prev=program_transform_name ;; 1070 -program-transform-name=* | --program-transform-name=* \ 1071 | --program-transform-nam=* | --program-transform-na=* \ 1072 | --program-transform-n=* | --program-transform-=* \ 1073 | --program-transform=* | --program-transfor=* \ 1074 | --program-transfo=* | --program-transf=* \ 1075 | --program-trans=* | --program-tran=* \ 1076 | --progr-tra=* | --program-tr=* | --program-t=*) 1077 program_transform_name=$ac_optarg ;; 1078 1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1080 ac_prev=pdfdir ;; 1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1082 pdfdir=$ac_optarg ;; 1083 1084 -psdir | --psdir | --psdi | --psd | --ps) 1085 ac_prev=psdir ;; 1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1087 psdir=$ac_optarg ;; 1088 1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1090 | -silent | --silent | --silen | --sile | --sil) 1091 silent=yes ;; 1092 1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1094 ac_prev=sbindir ;; 1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1096 | --sbi=* | --sb=*) 1097 sbindir=$ac_optarg ;; 1098 1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1101 | --sharedst | --shareds | --shared | --share | --shar \ 1102 | --sha | --sh) 1103 ac_prev=sharedstatedir ;; 1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1107 | --sha=* | --sh=*) 1108 sharedstatedir=$ac_optarg ;; 1109 1110 -site | --site | --sit) 1111 ac_prev=site ;; 1112 -site=* | --site=* | --sit=*) 1113 site=$ac_optarg ;; 1114 1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1116 ac_prev=srcdir ;; 1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1118 srcdir=$ac_optarg ;; 1119 1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1121 | --syscon | --sysco | --sysc | --sys | --sy) 1122 ac_prev=sysconfdir ;; 1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1125 sysconfdir=$ac_optarg ;; 1126 1127 -target | --target | --targe | --targ | --tar | --ta | --t) 1128 ac_prev=target_alias ;; 1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1130 target_alias=$ac_optarg ;; 1131 1132 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1133 verbose=yes ;; 1134 1135 -version | --version | --versio | --versi | --vers | -V) 1136 ac_init_version=: ;; 1137 1138 -with-* | --with-*) 1139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1140 # Reject names that are not valid shell variable names. 1141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1142 { echo "$as_me: error: invalid package name: $ac_package" >&2 1143 { (exit 1); exit 1; }; } 1144 ac_package=`echo $ac_package| sed 's/-/_/g'` 1145 eval with_$ac_package=\$ac_optarg ;; 1146 1147 -without-* | --without-*) 1148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1149 # Reject names that are not valid shell variable names. 1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1151 { echo "$as_me: error: invalid package name: $ac_package" >&2 1152 { (exit 1); exit 1; }; } 1153 ac_package=`echo $ac_package | sed 's/-/_/g'` 1154 eval with_$ac_package=no ;; 1155 1156 --x) 1157 # Obsolete; use --with-x. 1158 with_x=yes ;; 1159 1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1161 | --x-incl | --x-inc | --x-in | --x-i) 1162 ac_prev=x_includes ;; 1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1165 x_includes=$ac_optarg ;; 1166 1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1169 ac_prev=x_libraries ;; 1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1172 x_libraries=$ac_optarg ;; 1173 1174 -*) { echo "$as_me: error: unrecognized option: $ac_option 1175Try \`$0 --help' for more information." >&2 1176 { (exit 1); exit 1; }; } 1177 ;; 1178 1179 *=*) 1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1181 # Reject names that are not valid shell variable names. 1182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1184 { (exit 1); exit 1; }; } 1185 eval $ac_envvar=\$ac_optarg 1186 export $ac_envvar ;; 1187 1188 *) 1189 # FIXME: should be removed in autoconf 3.0. 1190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1194 ;; 1195 1196 esac 1197done 1198 1199if test -n "$ac_prev"; then 1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1201 { echo "$as_me: error: missing argument to $ac_option" >&2 1202 { (exit 1); exit 1; }; } 1203fi 1204 1205# Be sure to have absolute directory names. 1206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1207 datadir sysconfdir sharedstatedir localstatedir includedir \ 1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1209 libdir localedir mandir 1210do 1211 eval ac_val=\$$ac_var 1212 case $ac_val in 1213 [\\/$]* | ?:[\\/]* ) continue;; 1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1215 esac 1216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1217 { (exit 1); exit 1; }; } 1218done 1219 1220# There might be people who depend on the old broken behavior: `$host' 1221# used to hold the argument of --host etc. 1222# FIXME: To remove some day. 1223build=$build_alias 1224host=$host_alias 1225target=$target_alias 1226 1227# FIXME: To remove some day. 1228if test "x$host_alias" != x; then 1229 if test "x$build_alias" = x; then 1230 cross_compiling=maybe 1231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1232 If a cross compiler is detected then cross compile mode will be used." >&2 1233 elif test "x$build_alias" != "x$host_alias"; then 1234 cross_compiling=yes 1235 fi 1236fi 1237 1238ac_tool_prefix= 1239test -n "$host_alias" && ac_tool_prefix=$host_alias- 1240 1241test "$silent" = yes && exec 6>/dev/null 1242 1243 1244ac_pwd=`pwd` && test -n "$ac_pwd" && 1245ac_ls_di=`ls -di .` && 1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1247 { echo "$as_me: error: Working directory cannot be determined" >&2 1248 { (exit 1); exit 1; }; } 1249test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1250 { echo "$as_me: error: pwd does not report name of working directory" >&2 1251 { (exit 1); exit 1; }; } 1252 1253 1254# Find the source files, if location was not specified. 1255if test -z "$srcdir"; then 1256 ac_srcdir_defaulted=yes 1257 # Try the directory containing this script, then the parent directory. 1258 ac_confdir=`$as_dirname -- "$0" || 1259$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1260 X"$0" : 'X\(//\)[^/]' \| \ 1261 X"$0" : 'X\(//\)$' \| \ 1262 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1263echo X"$0" | 1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\/\)[^/].*/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\/\)$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\).*/{ 1277 s//\1/ 1278 q 1279 } 1280 s/.*/./; q'` 1281 srcdir=$ac_confdir 1282 if test ! -r "$srcdir/$ac_unique_file"; then 1283 srcdir=.. 1284 fi 1285else 1286 ac_srcdir_defaulted=no 1287fi 1288if test ! -r "$srcdir/$ac_unique_file"; then 1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1291 { (exit 1); exit 1; }; } 1292fi 1293ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1294ac_abs_confdir=`( 1295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1296 { (exit 1); exit 1; }; } 1297 pwd)` 1298# When building in place, set srcdir=. 1299if test "$ac_abs_confdir" = "$ac_pwd"; then 1300 srcdir=. 1301fi 1302# Remove unnecessary trailing slashes from srcdir. 1303# Double slashes in file names in object file debugging info 1304# mess up M-x gdb in Emacs. 1305case $srcdir in 1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1307esac 1308for ac_var in $ac_precious_vars; do 1309 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1310 eval ac_env_${ac_var}_value=\$${ac_var} 1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1312 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1313done 1314 1315# 1316# Report the --help message. 1317# 1318if test "$ac_init_help" = "long"; then 1319 # Omit some internal or obsolete options to make the list less imposing. 1320 # This message is too long to be a string in the A/UX 3.1 sh. 1321 cat <<_ACEOF 1322\`configure' configures llvm 2.9svn to adapt to many kinds of systems. 1323 1324Usage: $0 [OPTION]... [VAR=VALUE]... 1325 1326To assign environment variables (e.g., CC, CFLAGS...), specify them as 1327VAR=VALUE. See below for descriptions of some of the useful variables. 1328 1329Defaults for the options are specified in brackets. 1330 1331Configuration: 1332 -h, --help display this help and exit 1333 --help=short display options specific to this package 1334 --help=recursive display the short help of all the included packages 1335 -V, --version display version information and exit 1336 -q, --quiet, --silent do not print \`checking...' messages 1337 --cache-file=FILE cache test results in FILE [disabled] 1338 -C, --config-cache alias for \`--cache-file=config.cache' 1339 -n, --no-create do not create output files 1340 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1341 1342Installation directories: 1343 --prefix=PREFIX install architecture-independent files in PREFIX 1344 [$ac_default_prefix] 1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1346 [PREFIX] 1347 1348By default, \`make install' will install all the files in 1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1350an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1351for instance \`--prefix=\$HOME'. 1352 1353For better control, use the options below. 1354 1355Fine tuning of the installation directories: 1356 --bindir=DIR user executables [EPREFIX/bin] 1357 --sbindir=DIR system admin executables [EPREFIX/sbin] 1358 --libexecdir=DIR program executables [EPREFIX/libexec] 1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1362 --libdir=DIR object code libraries [EPREFIX/lib] 1363 --includedir=DIR C header files [PREFIX/include] 1364 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1367 --infodir=DIR info documentation [DATAROOTDIR/info] 1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1369 --mandir=DIR man documentation [DATAROOTDIR/man] 1370 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] 1371 --htmldir=DIR html documentation [DOCDIR] 1372 --dvidir=DIR dvi documentation [DOCDIR] 1373 --pdfdir=DIR pdf documentation [DOCDIR] 1374 --psdir=DIR ps documentation [DOCDIR] 1375_ACEOF 1376 1377 cat <<\_ACEOF 1378 1379System types: 1380 --build=BUILD configure for building on BUILD [guessed] 1381 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1382 --target=TARGET configure for building compilers for TARGET [HOST] 1383_ACEOF 1384fi 1385 1386if test -n "$ac_init_help"; then 1387 case $ac_init_help in 1388 short | recursive ) echo "Configuration of llvm 2.9svn:";; 1389 esac 1390 cat <<\_ACEOF 1391 1392Optional Features: 1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1395 --enable-optimized Compile with optimizations enabled (default is NO) 1396 --enable-profiling Compile with profiling enabled (default is NO) 1397 --enable-assertions Compile with assertion checks enabled (default is 1398 YES) 1399 --enable-expensive-checks 1400 Compile with expensive debug checks enabled (default 1401 is NO) 1402 --enable-debug-runtime Build runtime libs with debug symbols (default is 1403 NO) 1404 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1405 optimization is on and YES if it's off) 1406 --enable-jit Enable Just In Time Compiling (default is YES) 1407 --enable-doxygen Build doxygen documentation (default is NO) 1408 --enable-threads Use threads if available (default is YES) 1409 --enable-pic Build LLVM with Position Independent Code (default 1410 is YES) 1411 --enable-shared Build a shared library and link tools against it 1412 (default is NO) 1413 --enable-timestamps Enable embedding timestamp information in build 1414 (default is YES) 1415 --enable-targets Build specific host targets: all or 1416 target1,target2,... Valid targets are: host, x86, 1417 x86_64, sparc, powerpc, alpha, arm, mips, spu, 1418 pic16, xcore, msp430, systemz, blackfin, ptx, cbe, 1419 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-llvmgccdir Specify location of llvm-gcc install dir (default 1431 searches PATH) 1432 --with-llvmgcc Specify location of llvm-gcc driver (default 1433 searches PATH) 1434 --with-llvmgxx Specify location of llvm-g++ driver (default 1435 searches PATH) 1436 --with-clang Specify location of clang compiler (default is 1437 --with-built-clang) 1438 --with-built-clang Use the compiled Clang as the LLVM compiler 1439 (default=check) 1440 --with-optimize-option Select the compiler options to use for optimized 1441 builds 1442 --with-extra-options Specify additional options to compile LLVM with 1443 --with-ocaml-libdir Specify install location for ocaml bindings (default 1444 is stdlib) 1445 --with-c-include-dirs Colon separated list of directories clang will 1446 search for headers 1447 --with-cxx-include-root Directory with the libstdc++ headers. 1448 --with-cxx-include-arch Architecture of the libstdc++ headers. 1449 --with-cxx-include-32bit-dir 1450 32 bit multilib dir. 1451 --with-cxx-include-64bit-dir 1452 64 bit multilib directory. 1453 --with-binutils-include Specify path to binutils/include/ containing 1454 plugin-api.h file for gold plugin. 1455 --with-tclinclude directory where tcl headers are 1456 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc, 1457 clang, or none; default=check) 1458 --with-udis86=<path> Use udis86 external x86 disassembler library 1459 --with-oprofile=<prefix> 1460 Tell OProfile >= 0.9.4 how to symbolize JIT output 1461 1462Some influential environment variables: 1463 CC C compiler command 1464 CFLAGS C compiler flags 1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1466 nonstandard directory <lib dir> 1467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1468 you have headers in a nonstandard directory <include dir> 1469 CPP C preprocessor 1470 CXX C++ compiler command 1471 CXXFLAGS C++ compiler flags 1472 1473Use these variables to override the choices made by `configure' or to help 1474it to find libraries and programs with nonstandard names/locations. 1475 1476Report bugs to <llvmbugs@cs.uiuc.edu>. 1477_ACEOF 1478ac_status=$? 1479fi 1480 1481if test "$ac_init_help" = "recursive"; then 1482 # If there are subdirs, report their specific --help. 1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1484 test -d "$ac_dir" || continue 1485 ac_builddir=. 1486 1487case "$ac_dir" in 1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1489*) 1490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1491 # A ".." for each directory in $ac_dir_suffix. 1492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1493 case $ac_top_builddir_sub in 1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1496 esac ;; 1497esac 1498ac_abs_top_builddir=$ac_pwd 1499ac_abs_builddir=$ac_pwd$ac_dir_suffix 1500# for backward compatibility: 1501ac_top_builddir=$ac_top_build_prefix 1502 1503case $srcdir in 1504 .) # We are building in place. 1505 ac_srcdir=. 1506 ac_top_srcdir=$ac_top_builddir_sub 1507 ac_abs_top_srcdir=$ac_pwd ;; 1508 [\\/]* | ?:[\\/]* ) # Absolute name. 1509 ac_srcdir=$srcdir$ac_dir_suffix; 1510 ac_top_srcdir=$srcdir 1511 ac_abs_top_srcdir=$srcdir ;; 1512 *) # Relative name. 1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1514 ac_top_srcdir=$ac_top_build_prefix$srcdir 1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1516esac 1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1518 1519 cd "$ac_dir" || { ac_status=$?; continue; } 1520 # Check for guested configure. 1521 if test -f "$ac_srcdir/configure.gnu"; then 1522 echo && 1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1524 elif test -f "$ac_srcdir/configure"; then 1525 echo && 1526 $SHELL "$ac_srcdir/configure" --help=recursive 1527 else 1528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1529 fi || ac_status=$? 1530 cd "$ac_pwd" || { ac_status=$?; break; } 1531 done 1532fi 1533 1534test -n "$ac_init_help" && exit $ac_status 1535if $ac_init_version; then 1536 cat <<\_ACEOF 1537llvm configure 2.9svn 1538generated by GNU Autoconf 2.60 1539 1540Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15412002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1542This configure script is free software; the Free Software Foundation 1543gives unlimited permission to copy, distribute and modify it. 1544 1545Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign. 1546_ACEOF 1547 exit 1548fi 1549cat >config.log <<_ACEOF 1550This file contains any messages produced by compilers while 1551running configure, to aid debugging if configure makes a mistake. 1552 1553It was created by llvm $as_me 2.9svn, which was 1554generated by GNU Autoconf 2.60. Invocation command line was 1555 1556 $ $0 $@ 1557 1558_ACEOF 1559exec 5>>config.log 1560{ 1561cat <<_ASUNAME 1562## --------- ## 1563## Platform. ## 1564## --------- ## 1565 1566hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1567uname -m = `(uname -m) 2>/dev/null || echo unknown` 1568uname -r = `(uname -r) 2>/dev/null || echo unknown` 1569uname -s = `(uname -s) 2>/dev/null || echo unknown` 1570uname -v = `(uname -v) 2>/dev/null || echo unknown` 1571 1572/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1573/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1574 1575/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1576/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1577/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1578/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1579/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1580/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1581/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1582 1583_ASUNAME 1584 1585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1586for as_dir in $PATH 1587do 1588 IFS=$as_save_IFS 1589 test -z "$as_dir" && as_dir=. 1590 echo "PATH: $as_dir" 1591done 1592IFS=$as_save_IFS 1593 1594} >&5 1595 1596cat >&5 <<_ACEOF 1597 1598 1599## ----------- ## 1600## Core tests. ## 1601## ----------- ## 1602 1603_ACEOF 1604 1605 1606# Keep a trace of the command line. 1607# Strip out --no-create and --no-recursion so they do not pile up. 1608# Strip out --silent because we don't want to record it for future runs. 1609# Also quote any args containing shell meta-characters. 1610# Make two passes to allow for proper duplicate-argument suppression. 1611ac_configure_args= 1612ac_configure_args0= 1613ac_configure_args1= 1614ac_must_keep_next=false 1615for ac_pass in 1 2 1616do 1617 for ac_arg 1618 do 1619 case $ac_arg in 1620 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1622 | -silent | --silent | --silen | --sile | --sil) 1623 continue ;; 1624 *\'*) 1625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1626 esac 1627 case $ac_pass in 1628 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1629 2) 1630 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1631 if test $ac_must_keep_next = true; then 1632 ac_must_keep_next=false # Got value, back to normal. 1633 else 1634 case $ac_arg in 1635 *=* | --config-cache | -C | -disable-* | --disable-* \ 1636 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1637 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1638 | -with-* | --with-* | -without-* | --without-* | --x) 1639 case "$ac_configure_args0 " in 1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1641 esac 1642 ;; 1643 -* ) ac_must_keep_next=true ;; 1644 esac 1645 fi 1646 ac_configure_args="$ac_configure_args '$ac_arg'" 1647 ;; 1648 esac 1649 done 1650done 1651$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1652$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1653 1654# When interrupted or exit'd, cleanup temporary files, and complete 1655# config.log. We remove comments because anyway the quotes in there 1656# would cause problems or look ugly. 1657# WARNING: Use '\'' to represent an apostrophe within the trap. 1658# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1659trap 'exit_status=$? 1660 # Save into config.log some information that might help in debugging. 1661 { 1662 echo 1663 1664 cat <<\_ASBOX 1665## ---------------- ## 1666## Cache variables. ## 1667## ---------------- ## 1668_ASBOX 1669 echo 1670 # The following way of writing the cache mishandles newlines in values, 1671( 1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1673 eval ac_val=\$$ac_var 1674 case $ac_val in #( 1675 *${as_nl}*) 1676 case $ac_var in #( 1677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1678echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1679 esac 1680 case $ac_var in #( 1681 _ | IFS | as_nl) ;; #( 1682 *) $as_unset $ac_var ;; 1683 esac ;; 1684 esac 1685 done 1686 (set) 2>&1 | 1687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1688 *${as_nl}ac_space=\ *) 1689 sed -n \ 1690 "s/'\''/'\''\\\\'\'''\''/g; 1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1692 ;; #( 1693 *) 1694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1695 ;; 1696 esac | 1697 sort 1698) 1699 echo 1700 1701 cat <<\_ASBOX 1702## ----------------- ## 1703## Output variables. ## 1704## ----------------- ## 1705_ASBOX 1706 echo 1707 for ac_var in $ac_subst_vars 1708 do 1709 eval ac_val=\$$ac_var 1710 case $ac_val in 1711 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1712 esac 1713 echo "$ac_var='\''$ac_val'\''" 1714 done | sort 1715 echo 1716 1717 if test -n "$ac_subst_files"; then 1718 cat <<\_ASBOX 1719## ------------------- ## 1720## File substitutions. ## 1721## ------------------- ## 1722_ASBOX 1723 echo 1724 for ac_var in $ac_subst_files 1725 do 1726 eval ac_val=\$$ac_var 1727 case $ac_val in 1728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1729 esac 1730 echo "$ac_var='\''$ac_val'\''" 1731 done | sort 1732 echo 1733 fi 1734 1735 if test -s confdefs.h; then 1736 cat <<\_ASBOX 1737## ----------- ## 1738## confdefs.h. ## 1739## ----------- ## 1740_ASBOX 1741 echo 1742 cat confdefs.h 1743 echo 1744 fi 1745 test "$ac_signal" != 0 && 1746 echo "$as_me: caught signal $ac_signal" 1747 echo "$as_me: exit $exit_status" 1748 } >&5 1749 rm -f core *.core core.conftest.* && 1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1751 exit $exit_status 1752' 0 1753for ac_signal in 1 2 13 15; do 1754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1755done 1756ac_signal=0 1757 1758# confdefs.h avoids OS command line length limits that DEFS can exceed. 1759rm -f -r conftest* confdefs.h 1760 1761# Predefined preprocessor variables. 1762 1763cat >>confdefs.h <<_ACEOF 1764#define PACKAGE_NAME "$PACKAGE_NAME" 1765_ACEOF 1766 1767 1768cat >>confdefs.h <<_ACEOF 1769#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1770_ACEOF 1771 1772 1773cat >>confdefs.h <<_ACEOF 1774#define PACKAGE_VERSION "$PACKAGE_VERSION" 1775_ACEOF 1776 1777 1778cat >>confdefs.h <<_ACEOF 1779#define PACKAGE_STRING "$PACKAGE_STRING" 1780_ACEOF 1781 1782 1783cat >>confdefs.h <<_ACEOF 1784#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1785_ACEOF 1786 1787 1788# Let the site file select an alternate cache file if it wants to. 1789# Prefer explicitly selected file to automatically selected ones. 1790if test -n "$CONFIG_SITE"; then 1791 set x "$CONFIG_SITE" 1792elif test "x$prefix" != xNONE; then 1793 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1794else 1795 set x "$ac_default_prefix/share/config.site" \ 1796 "$ac_default_prefix/etc/config.site" 1797fi 1798shift 1799for ac_site_file 1800do 1801 if test -r "$ac_site_file"; then 1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1803echo "$as_me: loading site script $ac_site_file" >&6;} 1804 sed 's/^/| /' "$ac_site_file" >&5 1805 . "$ac_site_file" 1806 fi 1807done 1808 1809if test -r "$cache_file"; then 1810 # Some versions of bash will fail to source /dev/null (special 1811 # files actually), so we avoid doing that. 1812 if test -f "$cache_file"; then 1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1814echo "$as_me: loading cache $cache_file" >&6;} 1815 case $cache_file in 1816 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1817 *) . "./$cache_file";; 1818 esac 1819 fi 1820else 1821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1822echo "$as_me: creating cache $cache_file" >&6;} 1823 >$cache_file 1824fi 1825 1826# Check that the precious variables saved in the cache have kept the same 1827# value. 1828ac_cache_corrupted=false 1829for ac_var in $ac_precious_vars; do 1830 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1831 eval ac_new_set=\$ac_env_${ac_var}_set 1832 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1833 eval ac_new_val=\$ac_env_${ac_var}_value 1834 case $ac_old_set,$ac_new_set in 1835 set,) 1836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1837echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1838 ac_cache_corrupted=: ;; 1839 ,set) 1840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1841echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1842 ac_cache_corrupted=: ;; 1843 ,);; 1844 *) 1845 if test "x$ac_old_val" != "x$ac_new_val"; then 1846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1847echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1849echo "$as_me: former value: $ac_old_val" >&2;} 1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1851echo "$as_me: current value: $ac_new_val" >&2;} 1852 ac_cache_corrupted=: 1853 fi;; 1854 esac 1855 # Pass precious variables to config.status. 1856 if test "$ac_new_set" = set; then 1857 case $ac_new_val in 1858 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1859 *) ac_arg=$ac_var=$ac_new_val ;; 1860 esac 1861 case " $ac_configure_args " in 1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1863 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1864 esac 1865 fi 1866done 1867if $ac_cache_corrupted; then 1868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1869echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1871echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1872 { (exit 1); exit 1; }; } 1873fi 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899ac_ext=c 1900ac_cpp='$CPP $CPPFLAGS' 1901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1903ac_compiler_gnu=$ac_cv_c_compiler_gnu 1904 1905 1906 1907LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign." 1908 1909 1910 1911 1912 1913 1914 1915ac_aux_dir= 1916for ac_dir in autoconf "$srcdir"/autoconf; do 1917 if test -f "$ac_dir/install-sh"; then 1918 ac_aux_dir=$ac_dir 1919 ac_install_sh="$ac_aux_dir/install-sh -c" 1920 break 1921 elif test -f "$ac_dir/install.sh"; then 1922 ac_aux_dir=$ac_dir 1923 ac_install_sh="$ac_aux_dir/install.sh -c" 1924 break 1925 elif test -f "$ac_dir/shtool"; then 1926 ac_aux_dir=$ac_dir 1927 ac_install_sh="$ac_aux_dir/shtool install -c" 1928 break 1929 fi 1930done 1931if test -z "$ac_aux_dir"; then 1932 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1933echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1934 { (exit 1); exit 1; }; } 1935fi 1936 1937# These three variables are undocumented and unsupported, 1938# and are intended to be withdrawn in a future Autoconf release. 1939# They can cause serious problems if a builder's source tree is in a directory 1940# whose full name contains unusual characters. 1941ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1942ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1943ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1944 1945 1946 1947if test ${srcdir} != "." ; then 1948 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1949 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1950echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1951 { (exit 1); exit 1; }; } 1952 fi 1953fi 1954 1955 1956 1957if test -d ${srcdir}/projects/llvm-gcc ; then 1958 subdirs="$subdirs projects/llvm-gcc" 1959 1960fi 1961 1962if test -d ${srcdir}/projects/test-suite ; then 1963 subdirs="$subdirs projects/test-suite" 1964 1965fi 1966 1967if test -d ${srcdir}/projects/llvm-test ; then 1968 subdirs="$subdirs projects/llvm-test" 1969 1970fi 1971 1972if test -d ${srcdir}/projects/poolalloc ; then 1973 subdirs="$subdirs projects/poolalloc" 1974 1975fi 1976 1977if test -d ${srcdir}/projects/llvm-poolalloc ; then 1978 subdirs="$subdirs projects/llvm-poolalloc" 1979 1980fi 1981 1982for i in `ls ${srcdir}/projects` 1983do 1984 if test -d ${srcdir}/projects/${i} ; then 1985 case ${i} in 1986 sample) subdirs="$subdirs projects/sample" 1987 ;; 1988 privbracket) subdirs="$subdirs projects/privbracket" 1989 ;; 1990 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 1991 ;; 1992 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 1993;; 1994 llvm-java) subdirs="$subdirs projects/llvm-java" 1995 ;; 1996 llvm-tv) subdirs="$subdirs projects/llvm-tv" 1997 ;; 1998 safecode) subdirs="$subdirs projects/safecode" 1999 ;; 2000 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 2001 ;; 2002 llvm-gcc) ;; 2003 test-suite) ;; 2004 llvm-test) ;; 2005 poolalloc) ;; 2006 llvm-poolalloc) ;; 2007 *) 2008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 2009echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 2010 ;; 2011 esac 2012 fi 2013done 2014 2015 2016# Make sure we can run config.sub. 2017$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2019echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2020 { (exit 1); exit 1; }; } 2021 2022{ echo "$as_me:$LINENO: checking build system type" >&5 2023echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2024if test "${ac_cv_build+set}" = set; then 2025 echo $ECHO_N "(cached) $ECHO_C" >&6 2026else 2027 ac_build_alias=$build_alias 2028test "x$ac_build_alias" = x && 2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2030test "x$ac_build_alias" = x && 2031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2032echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2033 { (exit 1); exit 1; }; } 2034ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2036echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2037 { (exit 1); exit 1; }; } 2038 2039fi 2040{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2041echo "${ECHO_T}$ac_cv_build" >&6; } 2042case $ac_cv_build in 2043*-*-*) ;; 2044*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2045echo "$as_me: error: invalid value of canonical build" >&2;} 2046 { (exit 1); exit 1; }; };; 2047esac 2048build=$ac_cv_build 2049ac_save_IFS=$IFS; IFS='-' 2050set x $ac_cv_build 2051shift 2052build_cpu=$1 2053build_vendor=$2 2054shift; shift 2055# Remember, the first character of IFS is used to create $*, 2056# except with old shells: 2057build_os=$* 2058IFS=$ac_save_IFS 2059case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2060 2061 2062{ echo "$as_me:$LINENO: checking host system type" >&5 2063echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2064if test "${ac_cv_host+set}" = set; then 2065 echo $ECHO_N "(cached) $ECHO_C" >&6 2066else 2067 if test "x$host_alias" = x; then 2068 ac_cv_host=$ac_cv_build 2069else 2070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2072echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2073 { (exit 1); exit 1; }; } 2074fi 2075 2076fi 2077{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2078echo "${ECHO_T}$ac_cv_host" >&6; } 2079case $ac_cv_host in 2080*-*-*) ;; 2081*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2082echo "$as_me: error: invalid value of canonical host" >&2;} 2083 { (exit 1); exit 1; }; };; 2084esac 2085host=$ac_cv_host 2086ac_save_IFS=$IFS; IFS='-' 2087set x $ac_cv_host 2088shift 2089host_cpu=$1 2090host_vendor=$2 2091shift; shift 2092# Remember, the first character of IFS is used to create $*, 2093# except with old shells: 2094host_os=$* 2095IFS=$ac_save_IFS 2096case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2097 2098 2099{ echo "$as_me:$LINENO: checking target system type" >&5 2100echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2101if test "${ac_cv_target+set}" = set; then 2102 echo $ECHO_N "(cached) $ECHO_C" >&6 2103else 2104 if test "x$target_alias" = x; then 2105 ac_cv_target=$ac_cv_host 2106else 2107 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2109echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2110 { (exit 1); exit 1; }; } 2111fi 2112 2113fi 2114{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2115echo "${ECHO_T}$ac_cv_target" >&6; } 2116case $ac_cv_target in 2117*-*-*) ;; 2118*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2119echo "$as_me: error: invalid value of canonical target" >&2;} 2120 { (exit 1); exit 1; }; };; 2121esac 2122target=$ac_cv_target 2123ac_save_IFS=$IFS; IFS='-' 2124set x $ac_cv_target 2125shift 2126target_cpu=$1 2127target_vendor=$2 2128shift; shift 2129# Remember, the first character of IFS is used to create $*, 2130# except with old shells: 2131target_os=$* 2132IFS=$ac_save_IFS 2133case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2134 2135 2136# The aliases save the names the user supplied, while $host etc. 2137# will get canonicalized. 2138test -n "$target_alias" && 2139 test "$program_prefix$program_suffix$program_transform_name" = \ 2140 NONENONEs,x,x, && 2141 program_prefix=${target_alias}- 2142 2143{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 2144echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 2145if test "${llvm_cv_os_type+set}" = set; then 2146 echo $ECHO_N "(cached) $ECHO_C" >&6 2147else 2148 case $host in 2149 *-*-aix*) 2150 llvm_cv_link_all_option="-Wl,--whole-archive" 2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2152 llvm_cv_os_type="AIX" 2153 llvm_cv_platform_type="Unix" ;; 2154 *-*-irix*) 2155 llvm_cv_link_all_option="-Wl,--whole-archive" 2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2157 llvm_cv_os_type="IRIX" 2158 llvm_cv_platform_type="Unix" ;; 2159 *-*-cygwin*) 2160 llvm_cv_link_all_option="-Wl,--whole-archive" 2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2162 llvm_cv_os_type="Cygwin" 2163 llvm_cv_platform_type="Unix" ;; 2164 *-*-darwin*) 2165 llvm_cv_link_all_option="-Wl,-all_load" 2166 llvm_cv_no_link_all_option="-Wl,-noall_load" 2167 llvm_cv_os_type="Darwin" 2168 llvm_cv_platform_type="Unix" ;; 2169 *-*-minix*) 2170 llvm_cv_link_all_option="-Wl,-all_load" 2171 llvm_cv_no_link_all_option="-Wl,-noall_load" 2172 llvm_cv_os_type="Minix" 2173 llvm_cv_platform_type="Unix" ;; 2174 *-*-freebsd*) 2175 llvm_cv_link_all_option="-Wl,--whole-archive" 2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2177 llvm_cv_os_type="FreeBSD" 2178 llvm_cv_platform_type="Unix" ;; 2179 *-*-openbsd*) 2180 llvm_cv_link_all_option="-Wl,--whole-archive" 2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2182 llvm_cv_os_type="OpenBSD" 2183 llvm_cv_platform_type="Unix" ;; 2184 *-*-netbsd*) 2185 llvm_cv_link_all_option="-Wl,--whole-archive" 2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2187 llvm_cv_os_type="NetBSD" 2188 llvm_cv_platform_type="Unix" ;; 2189 *-*-dragonfly*) 2190 llvm_cv_link_all_option="-Wl,--whole-archive" 2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2192 llvm_cv_os_type="DragonFly" 2193 llvm_cv_platform_type="Unix" ;; 2194 *-*-hpux*) 2195 llvm_cv_link_all_option="-Wl,--whole-archive" 2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2197 llvm_cv_os_type="HP-UX" 2198 llvm_cv_platform_type="Unix" ;; 2199 *-*-interix*) 2200 llvm_cv_link_all_option="-Wl,--whole-archive" 2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2202 llvm_cv_os_type="Interix" 2203 llvm_cv_platform_type="Unix" ;; 2204 *-*-linux*) 2205 llvm_cv_link_all_option="-Wl,--whole-archive" 2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2207 llvm_cv_os_type="Linux" 2208 llvm_cv_platform_type="Unix" ;; 2209 *-*-solaris*) 2210 llvm_cv_link_all_option="-Wl,-z,allextract" 2211 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 2212 llvm_cv_os_type="SunOS" 2213 llvm_cv_platform_type="Unix" ;; 2214 *-*-auroraux*) 2215 llvm_cv_link_all_option="-Wl,-z,allextract" 2216 llvm_cv_link_all_option="-Wl,-z,defaultextract" 2217 llvm_cv_os_type="AuroraUX" 2218 llvm_cv_platform_type="Unix" ;; 2219 *-*-win32*) 2220 llvm_cv_link_all_option="-Wl,--whole-archive" 2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2222 llvm_cv_os_type="Win32" 2223 llvm_cv_platform_type="Win32" ;; 2224 *-*-mingw*) 2225 llvm_cv_link_all_option="-Wl,--whole-archive" 2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2227 llvm_cv_os_type="MingW" 2228 llvm_cv_platform_type="Win32" ;; 2229 *-*-haiku*) 2230 llvm_cv_link_all_option="-Wl,--whole-archive" 2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2232 llvm_cv_os_type="Haiku" 2233 llvm_cv_platform_type="Unix" ;; 2234 *-unknown-eabi*) 2235 llvm_cv_link_all_option="-Wl,--whole-archive" 2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2237 llvm_cv_os_type="Freestanding" 2238 llvm_cv_platform_type="Unix" ;; 2239 *-unknown-elf*) 2240 llvm_cv_link_all_option="-Wl,--whole-archive" 2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2242 llvm_cv_os_type="Freestanding" 2243 llvm_cv_platform_type="Unix" ;; 2244 *) 2245 llvm_cv_link_all_option="" 2246 llvm_cv_no_link_all_option="" 2247 llvm_cv_os_type="Unknown" 2248 llvm_cv_platform_type="Unknown" ;; 2249esac 2250fi 2251{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 2252echo "${ECHO_T}$llvm_cv_os_type" >&6; } 2253 2254{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 2255echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 2256if test "${llvm_cv_target_os_type+set}" = set; then 2257 echo $ECHO_N "(cached) $ECHO_C" >&6 2258else 2259 case $target in 2260 *-*-aix*) 2261 llvm_cv_target_os_type="AIX" ;; 2262 *-*-irix*) 2263 llvm_cv_target_os_type="IRIX" ;; 2264 *-*-cygwin*) 2265 llvm_cv_target_os_type="Cygwin" ;; 2266 *-*-darwin*) 2267 llvm_cv_target_os_type="Darwin" ;; 2268 *-*-minix*) 2269 llvm_cv_target_os_type="Minix" ;; 2270 *-*-freebsd*) 2271 llvm_cv_target_os_type="FreeBSD" ;; 2272 *-*-openbsd*) 2273 llvm_cv_target_os_type="OpenBSD" ;; 2274 *-*-netbsd*) 2275 llvm_cv_target_os_type="NetBSD" ;; 2276 *-*-dragonfly*) 2277 llvm_cv_target_os_type="DragonFly" ;; 2278 *-*-hpux*) 2279 llvm_cv_target_os_type="HP-UX" ;; 2280 *-*-interix*) 2281 llvm_cv_target_os_type="Interix" ;; 2282 *-*-linux*) 2283 llvm_cv_target_os_type="Linux" ;; 2284 *-*-solaris*) 2285 llvm_cv_target_os_type="SunOS" ;; 2286 *-*-auroraux*) 2287 llvm_cv_target_os_type="AuroraUX" ;; 2288 *-*-win32*) 2289 llvm_cv_target_os_type="Win32" ;; 2290 *-*-mingw*) 2291 llvm_cv_target_os_type="MingW" ;; 2292 *-*-haiku*) 2293 llvm_cv_target_os_type="Haiku" ;; 2294 *-unknown-eabi*) 2295 llvm_cv_target_os_type="Freestanding" ;; 2296 *) 2297 llvm_cv_target_os_type="Unknown" ;; 2298esac 2299fi 2300{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 2301echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 2302 2303if test "$llvm_cv_os_type" = "Unknown" ; then 2304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 2305echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 2306 { (exit 1); exit 1; }; } 2307fi 2308 2309OS=$llvm_cv_os_type 2310 2311HOST_OS=$llvm_cv_os_type 2312 2313TARGET_OS=$llvm_cv_target_os_type 2314 2315 2316LINKALL=$llvm_cv_link_all_option 2317 2318NOLINKALL=$llvm_cv_no_link_all_option 2319 2320 2321case $llvm_cv_platform_type in 2322 Unix) 2323 2324cat >>confdefs.h <<\_ACEOF 2325#define LLVM_ON_UNIX 1 2326_ACEOF 2327 2328 LLVM_ON_UNIX=1 2329 2330 LLVM_ON_WIN32=0 2331 2332 ;; 2333 Win32) 2334 2335cat >>confdefs.h <<\_ACEOF 2336#define LLVM_ON_WIN32 1 2337_ACEOF 2338 2339 LLVM_ON_UNIX=0 2340 2341 LLVM_ON_WIN32=1 2342 2343 ;; 2344esac 2345 2346{ echo "$as_me:$LINENO: checking target architecture" >&5 2347echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 2348if test "${llvm_cv_target_arch+set}" = set; then 2349 echo $ECHO_N "(cached) $ECHO_C" >&6 2350else 2351 case $target in 2352 i?86-*) llvm_cv_target_arch="x86" ;; 2353 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 2354 sparc*-*) llvm_cv_target_arch="Sparc" ;; 2355 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 2356 alpha*-*) llvm_cv_target_arch="Alpha" ;; 2357 arm*-*) llvm_cv_target_arch="ARM" ;; 2358 mips-*) llvm_cv_target_arch="Mips" ;; 2359 xcore-*) llvm_cv_target_arch="XCore" ;; 2360 msp430-*) llvm_cv_target_arch="MSP430" ;; 2361 s390x-*) llvm_cv_target_arch="SystemZ" ;; 2362 bfin-*) llvm_cv_target_arch="Blackfin" ;; 2363 mblaze-*) llvm_cv_target_arch="MBlaze" ;; 2364 ptx-*) llvm_cv_target_arch="PTX" ;; 2365 *) llvm_cv_target_arch="Unknown" ;; 2366esac 2367fi 2368{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 2369echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 2370 2371if test "$llvm_cv_target_arch" = "Unknown" ; then 2372 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 2373echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 2374fi 2375 2376# Determine the LLVM native architecture for the target 2377case "$llvm_cv_target_arch" in 2378 x86) LLVM_NATIVE_ARCH="X86" ;; 2379 x86_64) LLVM_NATIVE_ARCH="X86" ;; 2380 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 2381esac 2382 2383ARCH=$llvm_cv_target_arch 2384 2385 2386ac_ext=c 2387ac_cpp='$CPP $CPPFLAGS' 2388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2390ac_compiler_gnu=$ac_cv_c_compiler_gnu 2391if test -n "$ac_tool_prefix"; then 2392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2393set dummy ${ac_tool_prefix}gcc; ac_word=$2 2394{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2396if test "${ac_cv_prog_CC+set}" = set; then 2397 echo $ECHO_N "(cached) $ECHO_C" >&6 2398else 2399 if test -n "$CC"; then 2400 ac_cv_prog_CC="$CC" # Let the user override the test. 2401else 2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2403for as_dir in $PATH 2404do 2405 IFS=$as_save_IFS 2406 test -z "$as_dir" && as_dir=. 2407 for ac_exec_ext in '' $ac_executable_extensions; do 2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2409 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2411 break 2 2412 fi 2413done 2414done 2415IFS=$as_save_IFS 2416 2417fi 2418fi 2419CC=$ac_cv_prog_CC 2420if test -n "$CC"; then 2421 { echo "$as_me:$LINENO: result: $CC" >&5 2422echo "${ECHO_T}$CC" >&6; } 2423else 2424 { echo "$as_me:$LINENO: result: no" >&5 2425echo "${ECHO_T}no" >&6; } 2426fi 2427 2428 2429fi 2430if test -z "$ac_cv_prog_CC"; then 2431 ac_ct_CC=$CC 2432 # Extract the first word of "gcc", so it can be a program name with args. 2433set dummy gcc; ac_word=$2 2434{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2436if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2437 echo $ECHO_N "(cached) $ECHO_C" >&6 2438else 2439 if test -n "$ac_ct_CC"; then 2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2441else 2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2443for as_dir in $PATH 2444do 2445 IFS=$as_save_IFS 2446 test -z "$as_dir" && as_dir=. 2447 for ac_exec_ext in '' $ac_executable_extensions; do 2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2449 ac_cv_prog_ac_ct_CC="gcc" 2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2451 break 2 2452 fi 2453done 2454done 2455IFS=$as_save_IFS 2456 2457fi 2458fi 2459ac_ct_CC=$ac_cv_prog_ac_ct_CC 2460if test -n "$ac_ct_CC"; then 2461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2462echo "${ECHO_T}$ac_ct_CC" >&6; } 2463else 2464 { echo "$as_me:$LINENO: result: no" >&5 2465echo "${ECHO_T}no" >&6; } 2466fi 2467 2468 if test "x$ac_ct_CC" = x; then 2469 CC="" 2470 else 2471 case $cross_compiling:$ac_tool_warned in 2472yes:) 2473{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2474whose name does not start with the host triplet. If you think this 2475configuration is useful to you, please write to autoconf@gnu.org." >&5 2476echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2477whose name does not start with the host triplet. If you think this 2478configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2479ac_tool_warned=yes ;; 2480esac 2481 CC=$ac_ct_CC 2482 fi 2483else 2484 CC="$ac_cv_prog_CC" 2485fi 2486 2487if test -z "$CC"; then 2488 if test -n "$ac_tool_prefix"; then 2489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2490set dummy ${ac_tool_prefix}cc; ac_word=$2 2491{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2493if test "${ac_cv_prog_CC+set}" = set; then 2494 echo $ECHO_N "(cached) $ECHO_C" >&6 2495else 2496 if test -n "$CC"; then 2497 ac_cv_prog_CC="$CC" # Let the user override the test. 2498else 2499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2500for as_dir in $PATH 2501do 2502 IFS=$as_save_IFS 2503 test -z "$as_dir" && as_dir=. 2504 for ac_exec_ext in '' $ac_executable_extensions; do 2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2506 ac_cv_prog_CC="${ac_tool_prefix}cc" 2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2508 break 2 2509 fi 2510done 2511done 2512IFS=$as_save_IFS 2513 2514fi 2515fi 2516CC=$ac_cv_prog_CC 2517if test -n "$CC"; then 2518 { echo "$as_me:$LINENO: result: $CC" >&5 2519echo "${ECHO_T}$CC" >&6; } 2520else 2521 { echo "$as_me:$LINENO: result: no" >&5 2522echo "${ECHO_T}no" >&6; } 2523fi 2524 2525 2526 fi 2527fi 2528if test -z "$CC"; then 2529 # Extract the first word of "cc", so it can be a program name with args. 2530set dummy cc; ac_word=$2 2531{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2533if test "${ac_cv_prog_CC+set}" = set; then 2534 echo $ECHO_N "(cached) $ECHO_C" >&6 2535else 2536 if test -n "$CC"; then 2537 ac_cv_prog_CC="$CC" # Let the user override the test. 2538else 2539 ac_prog_rejected=no 2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2541for as_dir in $PATH 2542do 2543 IFS=$as_save_IFS 2544 test -z "$as_dir" && as_dir=. 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2548 ac_prog_rejected=yes 2549 continue 2550 fi 2551 ac_cv_prog_CC="cc" 2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2553 break 2 2554 fi 2555done 2556done 2557IFS=$as_save_IFS 2558 2559if test $ac_prog_rejected = yes; then 2560 # We found a bogon in the path, so make sure we never use it. 2561 set dummy $ac_cv_prog_CC 2562 shift 2563 if test $# != 0; then 2564 # We chose a different compiler from the bogus one. 2565 # However, it has the same basename, so the bogon will be chosen 2566 # first if we set CC to just the basename; use the full file name. 2567 shift 2568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2569 fi 2570fi 2571fi 2572fi 2573CC=$ac_cv_prog_CC 2574if test -n "$CC"; then 2575 { echo "$as_me:$LINENO: result: $CC" >&5 2576echo "${ECHO_T}$CC" >&6; } 2577else 2578 { echo "$as_me:$LINENO: result: no" >&5 2579echo "${ECHO_T}no" >&6; } 2580fi 2581 2582 2583fi 2584if test -z "$CC"; then 2585 if test -n "$ac_tool_prefix"; then 2586 for ac_prog in cl.exe 2587 do 2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2589set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2590{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2592if test "${ac_cv_prog_CC+set}" = set; then 2593 echo $ECHO_N "(cached) $ECHO_C" >&6 2594else 2595 if test -n "$CC"; then 2596 ac_cv_prog_CC="$CC" # Let the user override the test. 2597else 2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2599for as_dir in $PATH 2600do 2601 IFS=$as_save_IFS 2602 test -z "$as_dir" && as_dir=. 2603 for ac_exec_ext in '' $ac_executable_extensions; do 2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2607 break 2 2608 fi 2609done 2610done 2611IFS=$as_save_IFS 2612 2613fi 2614fi 2615CC=$ac_cv_prog_CC 2616if test -n "$CC"; then 2617 { echo "$as_me:$LINENO: result: $CC" >&5 2618echo "${ECHO_T}$CC" >&6; } 2619else 2620 { echo "$as_me:$LINENO: result: no" >&5 2621echo "${ECHO_T}no" >&6; } 2622fi 2623 2624 2625 test -n "$CC" && break 2626 done 2627fi 2628if test -z "$CC"; then 2629 ac_ct_CC=$CC 2630 for ac_prog in cl.exe 2631do 2632 # Extract the first word of "$ac_prog", so it can be a program name with args. 2633set dummy $ac_prog; ac_word=$2 2634{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2637 echo $ECHO_N "(cached) $ECHO_C" >&6 2638else 2639 if test -n "$ac_ct_CC"; then 2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2641else 2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2643for as_dir in $PATH 2644do 2645 IFS=$as_save_IFS 2646 test -z "$as_dir" && as_dir=. 2647 for ac_exec_ext in '' $ac_executable_extensions; do 2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2649 ac_cv_prog_ac_ct_CC="$ac_prog" 2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2651 break 2 2652 fi 2653done 2654done 2655IFS=$as_save_IFS 2656 2657fi 2658fi 2659ac_ct_CC=$ac_cv_prog_ac_ct_CC 2660if test -n "$ac_ct_CC"; then 2661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2662echo "${ECHO_T}$ac_ct_CC" >&6; } 2663else 2664 { echo "$as_me:$LINENO: result: no" >&5 2665echo "${ECHO_T}no" >&6; } 2666fi 2667 2668 2669 test -n "$ac_ct_CC" && break 2670done 2671 2672 if test "x$ac_ct_CC" = x; then 2673 CC="" 2674 else 2675 case $cross_compiling:$ac_tool_warned in 2676yes:) 2677{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2678whose name does not start with the host triplet. If you think this 2679configuration is useful to you, please write to autoconf@gnu.org." >&5 2680echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2681whose name does not start with the host triplet. If you think this 2682configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2683ac_tool_warned=yes ;; 2684esac 2685 CC=$ac_ct_CC 2686 fi 2687fi 2688 2689fi 2690 2691 2692test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2693See \`config.log' for more details." >&5 2694echo "$as_me: error: no acceptable C compiler found in \$PATH 2695See \`config.log' for more details." >&2;} 2696 { (exit 1); exit 1; }; } 2697 2698# Provide some information about the compiler. 2699echo "$as_me:$LINENO: checking for C compiler version" >&5 2700ac_compiler=`set X $ac_compile; echo $2` 2701{ (ac_try="$ac_compiler --version >&5" 2702case "(($ac_try" in 2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2704 *) ac_try_echo=$ac_try;; 2705esac 2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2707 (eval "$ac_compiler --version >&5") 2>&5 2708 ac_status=$? 2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2710 (exit $ac_status); } 2711{ (ac_try="$ac_compiler -v >&5" 2712case "(($ac_try" in 2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2714 *) ac_try_echo=$ac_try;; 2715esac 2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2717 (eval "$ac_compiler -v >&5") 2>&5 2718 ac_status=$? 2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2720 (exit $ac_status); } 2721{ (ac_try="$ac_compiler -V >&5" 2722case "(($ac_try" in 2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2724 *) ac_try_echo=$ac_try;; 2725esac 2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2727 (eval "$ac_compiler -V >&5") 2>&5 2728 ac_status=$? 2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2730 (exit $ac_status); } 2731 2732cat >conftest.$ac_ext <<_ACEOF 2733/* confdefs.h. */ 2734_ACEOF 2735cat confdefs.h >>conftest.$ac_ext 2736cat >>conftest.$ac_ext <<_ACEOF 2737/* end confdefs.h. */ 2738 2739int 2740main () 2741{ 2742 2743 ; 2744 return 0; 2745} 2746_ACEOF 2747ac_clean_files_save=$ac_clean_files 2748ac_clean_files="$ac_clean_files a.out a.exe b.out" 2749# Try to create an executable without -o first, disregard a.out. 2750# It will help us diagnose broken compilers, and finding out an intuition 2751# of exeext. 2752{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2753echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2754ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2755# 2756# List of possible output files, starting from the most likely. 2757# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2758# only as a last resort. b.out is created by i960 compilers. 2759ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2760# 2761# The IRIX 6 linker writes into existing files which may not be 2762# executable, retaining their permissions. Remove them first so a 2763# subsequent execution test works. 2764ac_rmfiles= 2765for ac_file in $ac_files 2766do 2767 case $ac_file in 2768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2769 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2770 esac 2771done 2772rm -f $ac_rmfiles 2773 2774if { (ac_try="$ac_link_default" 2775case "(($ac_try" in 2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2777 *) ac_try_echo=$ac_try;; 2778esac 2779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2780 (eval "$ac_link_default") 2>&5 2781 ac_status=$? 2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2783 (exit $ac_status); }; then 2784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2785# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2786# in a Makefile. We should not override ac_cv_exeext if it was cached, 2787# so that the user can short-circuit this test for compilers unknown to 2788# Autoconf. 2789for ac_file in $ac_files 2790do 2791 test -f "$ac_file" || continue 2792 case $ac_file in 2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2794 ;; 2795 [ab].out ) 2796 # We found the default executable, but exeext='' is most 2797 # certainly right. 2798 break;; 2799 *.* ) 2800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2801 then :; else 2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2803 fi 2804 # We set ac_cv_exeext here because the later test for it is not 2805 # safe: cross compilers may not add the suffix if given an `-o' 2806 # argument, so we may need to know it at that point already. 2807 # Even if this section looks crufty: it has the advantage of 2808 # actually working. 2809 break;; 2810 * ) 2811 break;; 2812 esac 2813done 2814test "$ac_cv_exeext" = no && ac_cv_exeext= 2815 2816else 2817 echo "$as_me: failed program was:" >&5 2818sed 's/^/| /' conftest.$ac_ext >&5 2819 2820{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2821See \`config.log' for more details." >&5 2822echo "$as_me: error: C compiler cannot create executables 2823See \`config.log' for more details." >&2;} 2824 { (exit 77); exit 77; }; } 2825fi 2826 2827ac_exeext=$ac_cv_exeext 2828{ echo "$as_me:$LINENO: result: $ac_file" >&5 2829echo "${ECHO_T}$ac_file" >&6; } 2830 2831# Check that the compiler produces executables we can run. If not, either 2832# the compiler is broken, or we cross compile. 2833{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2834echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2835# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2836# If not cross compiling, check that we can run a simple program. 2837if test "$cross_compiling" != yes; then 2838 if { ac_try='./$ac_file' 2839 { (case "(($ac_try" in 2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2841 *) ac_try_echo=$ac_try;; 2842esac 2843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2844 (eval "$ac_try") 2>&5 2845 ac_status=$? 2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2847 (exit $ac_status); }; }; then 2848 cross_compiling=no 2849 else 2850 if test "$cross_compiling" = maybe; then 2851 cross_compiling=yes 2852 else 2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2854If you meant to cross compile, use \`--host'. 2855See \`config.log' for more details." >&5 2856echo "$as_me: error: cannot run C compiled programs. 2857If you meant to cross compile, use \`--host'. 2858See \`config.log' for more details." >&2;} 2859 { (exit 1); exit 1; }; } 2860 fi 2861 fi 2862fi 2863{ echo "$as_me:$LINENO: result: yes" >&5 2864echo "${ECHO_T}yes" >&6; } 2865 2866rm -f a.out a.exe conftest$ac_cv_exeext b.out 2867ac_clean_files=$ac_clean_files_save 2868# Check that the compiler produces executables we can run. If not, either 2869# the compiler is broken, or we cross compile. 2870{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2871echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2872{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2873echo "${ECHO_T}$cross_compiling" >&6; } 2874 2875{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2876echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2877if { (ac_try="$ac_link" 2878case "(($ac_try" in 2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2880 *) ac_try_echo=$ac_try;; 2881esac 2882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2883 (eval "$ac_link") 2>&5 2884 ac_status=$? 2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2886 (exit $ac_status); }; then 2887 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2888# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2889# work properly (i.e., refer to `conftest.exe'), while it won't with 2890# `rm'. 2891for ac_file in conftest.exe conftest conftest.*; do 2892 test -f "$ac_file" || continue 2893 case $ac_file in 2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2896 break;; 2897 * ) break;; 2898 esac 2899done 2900else 2901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2902See \`config.log' for more details." >&5 2903echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2904See \`config.log' for more details." >&2;} 2905 { (exit 1); exit 1; }; } 2906fi 2907 2908rm -f conftest$ac_cv_exeext 2909{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2910echo "${ECHO_T}$ac_cv_exeext" >&6; } 2911 2912rm -f conftest.$ac_ext 2913EXEEXT=$ac_cv_exeext 2914ac_exeext=$EXEEXT 2915{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2916echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2917if test "${ac_cv_objext+set}" = set; then 2918 echo $ECHO_N "(cached) $ECHO_C" >&6 2919else 2920 cat >conftest.$ac_ext <<_ACEOF 2921/* confdefs.h. */ 2922_ACEOF 2923cat confdefs.h >>conftest.$ac_ext 2924cat >>conftest.$ac_ext <<_ACEOF 2925/* end confdefs.h. */ 2926 2927int 2928main () 2929{ 2930 2931 ; 2932 return 0; 2933} 2934_ACEOF 2935rm -f conftest.o conftest.obj 2936if { (ac_try="$ac_compile" 2937case "(($ac_try" in 2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2939 *) ac_try_echo=$ac_try;; 2940esac 2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2942 (eval "$ac_compile") 2>&5 2943 ac_status=$? 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); }; then 2946 for ac_file in conftest.o conftest.obj conftest.*; do 2947 test -f "$ac_file" || continue; 2948 case $ac_file in 2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2951 break;; 2952 esac 2953done 2954else 2955 echo "$as_me: failed program was:" >&5 2956sed 's/^/| /' conftest.$ac_ext >&5 2957 2958{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2959See \`config.log' for more details." >&5 2960echo "$as_me: error: cannot compute suffix of object files: cannot compile 2961See \`config.log' for more details." >&2;} 2962 { (exit 1); exit 1; }; } 2963fi 2964 2965rm -f conftest.$ac_cv_objext conftest.$ac_ext 2966fi 2967{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2968echo "${ECHO_T}$ac_cv_objext" >&6; } 2969OBJEXT=$ac_cv_objext 2970ac_objext=$OBJEXT 2971{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2972echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2973if test "${ac_cv_c_compiler_gnu+set}" = set; then 2974 echo $ECHO_N "(cached) $ECHO_C" >&6 2975else 2976 cat >conftest.$ac_ext <<_ACEOF 2977/* confdefs.h. */ 2978_ACEOF 2979cat confdefs.h >>conftest.$ac_ext 2980cat >>conftest.$ac_ext <<_ACEOF 2981/* end confdefs.h. */ 2982 2983int 2984main () 2985{ 2986#ifndef __GNUC__ 2987 choke me 2988#endif 2989 2990 ; 2991 return 0; 2992} 2993_ACEOF 2994rm -f conftest.$ac_objext 2995if { (ac_try="$ac_compile" 2996case "(($ac_try" in 2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2998 *) ac_try_echo=$ac_try;; 2999esac 3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3001 (eval "$ac_compile") 2>conftest.er1 3002 ac_status=$? 3003 grep -v '^ *+' conftest.er1 >conftest.err 3004 rm -f conftest.er1 3005 cat conftest.err >&5 3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3007 (exit $ac_status); } && 3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3009 { (case "(($ac_try" in 3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3011 *) ac_try_echo=$ac_try;; 3012esac 3013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3014 (eval "$ac_try") 2>&5 3015 ac_status=$? 3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3017 (exit $ac_status); }; } && 3018 { ac_try='test -s conftest.$ac_objext' 3019 { (case "(($ac_try" in 3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3021 *) ac_try_echo=$ac_try;; 3022esac 3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3024 (eval "$ac_try") 2>&5 3025 ac_status=$? 3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3027 (exit $ac_status); }; }; then 3028 ac_compiler_gnu=yes 3029else 3030 echo "$as_me: failed program was:" >&5 3031sed 's/^/| /' conftest.$ac_ext >&5 3032 3033 ac_compiler_gnu=no 3034fi 3035 3036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3037ac_cv_c_compiler_gnu=$ac_compiler_gnu 3038 3039fi 3040{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3041echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3042GCC=`test $ac_compiler_gnu = yes && echo yes` 3043ac_test_CFLAGS=${CFLAGS+set} 3044ac_save_CFLAGS=$CFLAGS 3045{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3046echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3047if test "${ac_cv_prog_cc_g+set}" = set; then 3048 echo $ECHO_N "(cached) $ECHO_C" >&6 3049else 3050 ac_save_c_werror_flag=$ac_c_werror_flag 3051 ac_c_werror_flag=yes 3052 ac_cv_prog_cc_g=no 3053 CFLAGS="-g" 3054 cat >conftest.$ac_ext <<_ACEOF 3055/* confdefs.h. */ 3056_ACEOF 3057cat confdefs.h >>conftest.$ac_ext 3058cat >>conftest.$ac_ext <<_ACEOF 3059/* end confdefs.h. */ 3060 3061int 3062main () 3063{ 3064 3065 ; 3066 return 0; 3067} 3068_ACEOF 3069rm -f conftest.$ac_objext 3070if { (ac_try="$ac_compile" 3071case "(($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_compile") 2>conftest.er1 3077 ac_status=$? 3078 grep -v '^ *+' conftest.er1 >conftest.err 3079 rm -f conftest.er1 3080 cat conftest.err >&5 3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3082 (exit $ac_status); } && 3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3084 { (case "(($ac_try" in 3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3086 *) ac_try_echo=$ac_try;; 3087esac 3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3089 (eval "$ac_try") 2>&5 3090 ac_status=$? 3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3092 (exit $ac_status); }; } && 3093 { ac_try='test -s conftest.$ac_objext' 3094 { (case "(($ac_try" in 3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3096 *) ac_try_echo=$ac_try;; 3097esac 3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3099 (eval "$ac_try") 2>&5 3100 ac_status=$? 3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3102 (exit $ac_status); }; }; then 3103 ac_cv_prog_cc_g=yes 3104else 3105 echo "$as_me: failed program was:" >&5 3106sed 's/^/| /' conftest.$ac_ext >&5 3107 3108 CFLAGS="" 3109 cat >conftest.$ac_ext <<_ACEOF 3110/* confdefs.h. */ 3111_ACEOF 3112cat confdefs.h >>conftest.$ac_ext 3113cat >>conftest.$ac_ext <<_ACEOF 3114/* end confdefs.h. */ 3115 3116int 3117main () 3118{ 3119 3120 ; 3121 return 0; 3122} 3123_ACEOF 3124rm -f conftest.$ac_objext 3125if { (ac_try="$ac_compile" 3126case "(($ac_try" in 3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3128 *) ac_try_echo=$ac_try;; 3129esac 3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3131 (eval "$ac_compile") 2>conftest.er1 3132 ac_status=$? 3133 grep -v '^ *+' conftest.er1 >conftest.err 3134 rm -f conftest.er1 3135 cat conftest.err >&5 3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 (exit $ac_status); } && 3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3139 { (case "(($ac_try" in 3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3141 *) ac_try_echo=$ac_try;; 3142esac 3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3144 (eval "$ac_try") 2>&5 3145 ac_status=$? 3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3147 (exit $ac_status); }; } && 3148 { ac_try='test -s conftest.$ac_objext' 3149 { (case "(($ac_try" in 3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3151 *) ac_try_echo=$ac_try;; 3152esac 3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3154 (eval "$ac_try") 2>&5 3155 ac_status=$? 3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3157 (exit $ac_status); }; }; then 3158 : 3159else 3160 echo "$as_me: failed program was:" >&5 3161sed 's/^/| /' conftest.$ac_ext >&5 3162 3163 ac_c_werror_flag=$ac_save_c_werror_flag 3164 CFLAGS="-g" 3165 cat >conftest.$ac_ext <<_ACEOF 3166/* confdefs.h. */ 3167_ACEOF 3168cat confdefs.h >>conftest.$ac_ext 3169cat >>conftest.$ac_ext <<_ACEOF 3170/* end confdefs.h. */ 3171 3172int 3173main () 3174{ 3175 3176 ; 3177 return 0; 3178} 3179_ACEOF 3180rm -f conftest.$ac_objext 3181if { (ac_try="$ac_compile" 3182case "(($ac_try" in 3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3184 *) ac_try_echo=$ac_try;; 3185esac 3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3187 (eval "$ac_compile") 2>conftest.er1 3188 ac_status=$? 3189 grep -v '^ *+' conftest.er1 >conftest.err 3190 rm -f conftest.er1 3191 cat conftest.err >&5 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 (exit $ac_status); } && 3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3195 { (case "(($ac_try" in 3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3197 *) ac_try_echo=$ac_try;; 3198esac 3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3200 (eval "$ac_try") 2>&5 3201 ac_status=$? 3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3203 (exit $ac_status); }; } && 3204 { ac_try='test -s conftest.$ac_objext' 3205 { (case "(($ac_try" in 3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3207 *) ac_try_echo=$ac_try;; 3208esac 3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3210 (eval "$ac_try") 2>&5 3211 ac_status=$? 3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3213 (exit $ac_status); }; }; then 3214 ac_cv_prog_cc_g=yes 3215else 3216 echo "$as_me: failed program was:" >&5 3217sed 's/^/| /' conftest.$ac_ext >&5 3218 3219 3220fi 3221 3222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3223fi 3224 3225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3226fi 3227 3228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3229 ac_c_werror_flag=$ac_save_c_werror_flag 3230fi 3231{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3232echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3233if test "$ac_test_CFLAGS" = set; then 3234 CFLAGS=$ac_save_CFLAGS 3235elif test $ac_cv_prog_cc_g = yes; then 3236 if test "$GCC" = yes; then 3237 CFLAGS="-g -O2" 3238 else 3239 CFLAGS="-g" 3240 fi 3241else 3242 if test "$GCC" = yes; then 3243 CFLAGS="-O2" 3244 else 3245 CFLAGS= 3246 fi 3247fi 3248{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3249echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3250if test "${ac_cv_prog_cc_c89+set}" = set; then 3251 echo $ECHO_N "(cached) $ECHO_C" >&6 3252else 3253 ac_cv_prog_cc_c89=no 3254ac_save_CC=$CC 3255cat >conftest.$ac_ext <<_ACEOF 3256/* confdefs.h. */ 3257_ACEOF 3258cat confdefs.h >>conftest.$ac_ext 3259cat >>conftest.$ac_ext <<_ACEOF 3260/* end confdefs.h. */ 3261#include <stdarg.h> 3262#include <stdio.h> 3263#include <sys/types.h> 3264#include <sys/stat.h> 3265/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3266struct buf { int x; }; 3267FILE * (*rcsopen) (struct buf *, struct stat *, int); 3268static char *e (p, i) 3269 char **p; 3270 int i; 3271{ 3272 return p[i]; 3273} 3274static char *f (char * (*g) (char **, int), char **p, ...) 3275{ 3276 char *s; 3277 va_list v; 3278 va_start (v,p); 3279 s = g (p, va_arg (v,int)); 3280 va_end (v); 3281 return s; 3282} 3283 3284/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3285 function prototypes and stuff, but not '\xHH' hex character constants. 3286 These don't provoke an error unfortunately, instead are silently treated 3287 as 'x'. The following induces an error, until -std is added to get 3288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3289 array size at least. It's necessary to write '\x00'==0 to get something 3290 that's true only with -std. */ 3291int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3292 3293/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3294 inside strings and character constants. */ 3295#define FOO(x) 'x' 3296int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3297 3298int test (int i, double x); 3299struct s1 {int (*f) (int a);}; 3300struct s2 {int (*f) (double a);}; 3301int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3302int argc; 3303char **argv; 3304int 3305main () 3306{ 3307return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3308 ; 3309 return 0; 3310} 3311_ACEOF 3312for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3314do 3315 CC="$ac_save_CC $ac_arg" 3316 rm -f conftest.$ac_objext 3317if { (ac_try="$ac_compile" 3318case "(($ac_try" in 3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3320 *) ac_try_echo=$ac_try;; 3321esac 3322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3323 (eval "$ac_compile") 2>conftest.er1 3324 ac_status=$? 3325 grep -v '^ *+' conftest.er1 >conftest.err 3326 rm -f conftest.er1 3327 cat conftest.err >&5 3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3329 (exit $ac_status); } && 3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3331 { (case "(($ac_try" in 3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3333 *) ac_try_echo=$ac_try;; 3334esac 3335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3336 (eval "$ac_try") 2>&5 3337 ac_status=$? 3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); }; } && 3340 { ac_try='test -s conftest.$ac_objext' 3341 { (case "(($ac_try" in 3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3343 *) ac_try_echo=$ac_try;; 3344esac 3345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3346 (eval "$ac_try") 2>&5 3347 ac_status=$? 3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3349 (exit $ac_status); }; }; then 3350 ac_cv_prog_cc_c89=$ac_arg 3351else 3352 echo "$as_me: failed program was:" >&5 3353sed 's/^/| /' conftest.$ac_ext >&5 3354 3355 3356fi 3357 3358rm -f core conftest.err conftest.$ac_objext 3359 test "x$ac_cv_prog_cc_c89" != "xno" && break 3360done 3361rm -f conftest.$ac_ext 3362CC=$ac_save_CC 3363 3364fi 3365# AC_CACHE_VAL 3366case "x$ac_cv_prog_cc_c89" in 3367 x) 3368 { echo "$as_me:$LINENO: result: none needed" >&5 3369echo "${ECHO_T}none needed" >&6; } ;; 3370 xno) 3371 { echo "$as_me:$LINENO: result: unsupported" >&5 3372echo "${ECHO_T}unsupported" >&6; } ;; 3373 *) 3374 CC="$CC $ac_cv_prog_cc_c89" 3375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3376echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3377esac 3378 3379 3380ac_ext=c 3381ac_cpp='$CPP $CPPFLAGS' 3382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3384ac_compiler_gnu=$ac_cv_c_compiler_gnu 3385 3386 3387ac_ext=c 3388ac_cpp='$CPP $CPPFLAGS' 3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3391ac_compiler_gnu=$ac_cv_c_compiler_gnu 3392{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3393echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3394# On Suns, sometimes $CPP names a directory. 3395if test -n "$CPP" && test -d "$CPP"; then 3396 CPP= 3397fi 3398if test -z "$CPP"; then 3399 if test "${ac_cv_prog_CPP+set}" = set; then 3400 echo $ECHO_N "(cached) $ECHO_C" >&6 3401else 3402 # Double quotes because CPP needs to be expanded 3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3404 do 3405 ac_preproc_ok=false 3406for ac_c_preproc_warn_flag in '' yes 3407do 3408 # Use a header file that comes with gcc, so configuring glibc 3409 # with a fresh cross-compiler works. 3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3411 # <limits.h> exists even on freestanding compilers. 3412 # On the NeXT, cc -E runs the code through the compiler's parser, 3413 # not just through cpp. "Syntax error" is here to catch this case. 3414 cat >conftest.$ac_ext <<_ACEOF 3415/* confdefs.h. */ 3416_ACEOF 3417cat confdefs.h >>conftest.$ac_ext 3418cat >>conftest.$ac_ext <<_ACEOF 3419/* end confdefs.h. */ 3420#ifdef __STDC__ 3421# include <limits.h> 3422#else 3423# include <assert.h> 3424#endif 3425 Syntax error 3426_ACEOF 3427if { (ac_try="$ac_cpp conftest.$ac_ext" 3428case "(($ac_try" in 3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3430 *) ac_try_echo=$ac_try;; 3431esac 3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3434 ac_status=$? 3435 grep -v '^ *+' conftest.er1 >conftest.err 3436 rm -f conftest.er1 3437 cat conftest.err >&5 3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3439 (exit $ac_status); } >/dev/null; then 3440 if test -s conftest.err; then 3441 ac_cpp_err=$ac_c_preproc_warn_flag 3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3443 else 3444 ac_cpp_err= 3445 fi 3446else 3447 ac_cpp_err=yes 3448fi 3449if test -z "$ac_cpp_err"; then 3450 : 3451else 3452 echo "$as_me: failed program was:" >&5 3453sed 's/^/| /' conftest.$ac_ext >&5 3454 3455 # Broken: fails on valid input. 3456continue 3457fi 3458 3459rm -f conftest.err conftest.$ac_ext 3460 3461 # OK, works on sane cases. Now check whether nonexistent headers 3462 # can be detected and how. 3463 cat >conftest.$ac_ext <<_ACEOF 3464/* confdefs.h. */ 3465_ACEOF 3466cat confdefs.h >>conftest.$ac_ext 3467cat >>conftest.$ac_ext <<_ACEOF 3468/* end confdefs.h. */ 3469#include <ac_nonexistent.h> 3470_ACEOF 3471if { (ac_try="$ac_cpp conftest.$ac_ext" 3472case "(($ac_try" in 3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3474 *) ac_try_echo=$ac_try;; 3475esac 3476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3478 ac_status=$? 3479 grep -v '^ *+' conftest.er1 >conftest.err 3480 rm -f conftest.er1 3481 cat conftest.err >&5 3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3483 (exit $ac_status); } >/dev/null; then 3484 if test -s conftest.err; then 3485 ac_cpp_err=$ac_c_preproc_warn_flag 3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3487 else 3488 ac_cpp_err= 3489 fi 3490else 3491 ac_cpp_err=yes 3492fi 3493if test -z "$ac_cpp_err"; then 3494 # Broken: success on invalid input. 3495continue 3496else 3497 echo "$as_me: failed program was:" >&5 3498sed 's/^/| /' conftest.$ac_ext >&5 3499 3500 # Passes both tests. 3501ac_preproc_ok=: 3502break 3503fi 3504 3505rm -f conftest.err conftest.$ac_ext 3506 3507done 3508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3509rm -f conftest.err conftest.$ac_ext 3510if $ac_preproc_ok; then 3511 break 3512fi 3513 3514 done 3515 ac_cv_prog_CPP=$CPP 3516 3517fi 3518 CPP=$ac_cv_prog_CPP 3519else 3520 ac_cv_prog_CPP=$CPP 3521fi 3522{ echo "$as_me:$LINENO: result: $CPP" >&5 3523echo "${ECHO_T}$CPP" >&6; } 3524ac_preproc_ok=false 3525for ac_c_preproc_warn_flag in '' yes 3526do 3527 # Use a header file that comes with gcc, so configuring glibc 3528 # with a fresh cross-compiler works. 3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3530 # <limits.h> exists even on freestanding compilers. 3531 # On the NeXT, cc -E runs the code through the compiler's parser, 3532 # not just through cpp. "Syntax error" is here to catch this case. 3533 cat >conftest.$ac_ext <<_ACEOF 3534/* confdefs.h. */ 3535_ACEOF 3536cat confdefs.h >>conftest.$ac_ext 3537cat >>conftest.$ac_ext <<_ACEOF 3538/* end confdefs.h. */ 3539#ifdef __STDC__ 3540# include <limits.h> 3541#else 3542# include <assert.h> 3543#endif 3544 Syntax error 3545_ACEOF 3546if { (ac_try="$ac_cpp conftest.$ac_ext" 3547case "(($ac_try" in 3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3549 *) ac_try_echo=$ac_try;; 3550esac 3551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3553 ac_status=$? 3554 grep -v '^ *+' conftest.er1 >conftest.err 3555 rm -f conftest.er1 3556 cat conftest.err >&5 3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3558 (exit $ac_status); } >/dev/null; then 3559 if test -s conftest.err; then 3560 ac_cpp_err=$ac_c_preproc_warn_flag 3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3562 else 3563 ac_cpp_err= 3564 fi 3565else 3566 ac_cpp_err=yes 3567fi 3568if test -z "$ac_cpp_err"; then 3569 : 3570else 3571 echo "$as_me: failed program was:" >&5 3572sed 's/^/| /' conftest.$ac_ext >&5 3573 3574 # Broken: fails on valid input. 3575continue 3576fi 3577 3578rm -f conftest.err conftest.$ac_ext 3579 3580 # OK, works on sane cases. Now check whether nonexistent headers 3581 # can be detected and how. 3582 cat >conftest.$ac_ext <<_ACEOF 3583/* confdefs.h. */ 3584_ACEOF 3585cat confdefs.h >>conftest.$ac_ext 3586cat >>conftest.$ac_ext <<_ACEOF 3587/* end confdefs.h. */ 3588#include <ac_nonexistent.h> 3589_ACEOF 3590if { (ac_try="$ac_cpp conftest.$ac_ext" 3591case "(($ac_try" in 3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3593 *) ac_try_echo=$ac_try;; 3594esac 3595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3597 ac_status=$? 3598 grep -v '^ *+' conftest.er1 >conftest.err 3599 rm -f conftest.er1 3600 cat conftest.err >&5 3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3602 (exit $ac_status); } >/dev/null; then 3603 if test -s conftest.err; then 3604 ac_cpp_err=$ac_c_preproc_warn_flag 3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3606 else 3607 ac_cpp_err= 3608 fi 3609else 3610 ac_cpp_err=yes 3611fi 3612if test -z "$ac_cpp_err"; then 3613 # Broken: success on invalid input. 3614continue 3615else 3616 echo "$as_me: failed program was:" >&5 3617sed 's/^/| /' conftest.$ac_ext >&5 3618 3619 # Passes both tests. 3620ac_preproc_ok=: 3621break 3622fi 3623 3624rm -f conftest.err conftest.$ac_ext 3625 3626done 3627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3628rm -f conftest.err conftest.$ac_ext 3629if $ac_preproc_ok; then 3630 : 3631else 3632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3633See \`config.log' for more details." >&5 3634echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3635See \`config.log' for more details." >&2;} 3636 { (exit 1); exit 1; }; } 3637fi 3638 3639ac_ext=c 3640ac_cpp='$CPP $CPPFLAGS' 3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3643ac_compiler_gnu=$ac_cv_c_compiler_gnu 3644 3645 3646{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3647echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3648if test "${ac_cv_path_GREP+set}" = set; then 3649 echo $ECHO_N "(cached) $ECHO_C" >&6 3650else 3651 # Extract the first word of "grep ggrep" to use in msg output 3652if test -z "$GREP"; then 3653set dummy grep ggrep; ac_prog_name=$2 3654if test "${ac_cv_path_GREP+set}" = set; then 3655 echo $ECHO_N "(cached) $ECHO_C" >&6 3656else 3657 ac_path_GREP_found=false 3658# Loop through the user's path and test for each of PROGNAME-LIST 3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3660for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3661do 3662 IFS=$as_save_IFS 3663 test -z "$as_dir" && as_dir=. 3664 for ac_prog in grep ggrep; do 3665 for ac_exec_ext in '' $ac_executable_extensions; do 3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3667 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3668 # Check for GNU ac_path_GREP and select it if it is found. 3669 # Check for GNU $ac_path_GREP 3670case `"$ac_path_GREP" --version 2>&1` in 3671*GNU*) 3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3673*) 3674 ac_count=0 3675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3676 while : 3677 do 3678 cat "conftest.in" "conftest.in" >"conftest.tmp" 3679 mv "conftest.tmp" "conftest.in" 3680 cp "conftest.in" "conftest.nl" 3681 echo 'GREP' >> "conftest.nl" 3682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3684 ac_count=`expr $ac_count + 1` 3685 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3686 # Best one so far, save it but keep looking for a better one 3687 ac_cv_path_GREP="$ac_path_GREP" 3688 ac_path_GREP_max=$ac_count 3689 fi 3690 # 10*(2^10) chars as input seems more than enough 3691 test $ac_count -gt 10 && break 3692 done 3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3694esac 3695 3696 3697 $ac_path_GREP_found && break 3 3698 done 3699done 3700 3701done 3702IFS=$as_save_IFS 3703 3704 3705fi 3706 3707GREP="$ac_cv_path_GREP" 3708if test -z "$GREP"; then 3709 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3710echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3711 { (exit 1); exit 1; }; } 3712fi 3713 3714else 3715 ac_cv_path_GREP=$GREP 3716fi 3717 3718 3719fi 3720{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3721echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3722 GREP="$ac_cv_path_GREP" 3723 3724 3725{ echo "$as_me:$LINENO: checking for egrep" >&5 3726echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3727if test "${ac_cv_path_EGREP+set}" = set; then 3728 echo $ECHO_N "(cached) $ECHO_C" >&6 3729else 3730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3731 then ac_cv_path_EGREP="$GREP -E" 3732 else 3733 # Extract the first word of "egrep" to use in msg output 3734if test -z "$EGREP"; then 3735set dummy egrep; ac_prog_name=$2 3736if test "${ac_cv_path_EGREP+set}" = set; then 3737 echo $ECHO_N "(cached) $ECHO_C" >&6 3738else 3739 ac_path_EGREP_found=false 3740# Loop through the user's path and test for each of PROGNAME-LIST 3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3743do 3744 IFS=$as_save_IFS 3745 test -z "$as_dir" && as_dir=. 3746 for ac_prog in egrep; do 3747 for ac_exec_ext in '' $ac_executable_extensions; do 3748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3749 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3750 # Check for GNU ac_path_EGREP and select it if it is found. 3751 # Check for GNU $ac_path_EGREP 3752case `"$ac_path_EGREP" --version 2>&1` in 3753*GNU*) 3754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3755*) 3756 ac_count=0 3757 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3758 while : 3759 do 3760 cat "conftest.in" "conftest.in" >"conftest.tmp" 3761 mv "conftest.tmp" "conftest.in" 3762 cp "conftest.in" "conftest.nl" 3763 echo 'EGREP' >> "conftest.nl" 3764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3766 ac_count=`expr $ac_count + 1` 3767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3768 # Best one so far, save it but keep looking for a better one 3769 ac_cv_path_EGREP="$ac_path_EGREP" 3770 ac_path_EGREP_max=$ac_count 3771 fi 3772 # 10*(2^10) chars as input seems more than enough 3773 test $ac_count -gt 10 && break 3774 done 3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3776esac 3777 3778 3779 $ac_path_EGREP_found && break 3 3780 done 3781done 3782 3783done 3784IFS=$as_save_IFS 3785 3786 3787fi 3788 3789EGREP="$ac_cv_path_EGREP" 3790if test -z "$EGREP"; then 3791 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3792echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3793 { (exit 1); exit 1; }; } 3794fi 3795 3796else 3797 ac_cv_path_EGREP=$EGREP 3798fi 3799 3800 3801 fi 3802fi 3803{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3804echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3805 EGREP="$ac_cv_path_EGREP" 3806 3807 3808{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3809echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3810if test "${ac_cv_header_stdc+set}" = set; then 3811 echo $ECHO_N "(cached) $ECHO_C" >&6 3812else 3813 cat >conftest.$ac_ext <<_ACEOF 3814/* confdefs.h. */ 3815_ACEOF 3816cat confdefs.h >>conftest.$ac_ext 3817cat >>conftest.$ac_ext <<_ACEOF 3818/* end confdefs.h. */ 3819#include <stdlib.h> 3820#include <stdarg.h> 3821#include <string.h> 3822#include <float.h> 3823 3824int 3825main () 3826{ 3827 3828 ; 3829 return 0; 3830} 3831_ACEOF 3832rm -f conftest.$ac_objext 3833if { (ac_try="$ac_compile" 3834case "(($ac_try" in 3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3836 *) ac_try_echo=$ac_try;; 3837esac 3838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3839 (eval "$ac_compile") 2>conftest.er1 3840 ac_status=$? 3841 grep -v '^ *+' conftest.er1 >conftest.err 3842 rm -f conftest.er1 3843 cat conftest.err >&5 3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3845 (exit $ac_status); } && 3846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3847 { (case "(($ac_try" in 3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3849 *) ac_try_echo=$ac_try;; 3850esac 3851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3852 (eval "$ac_try") 2>&5 3853 ac_status=$? 3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3855 (exit $ac_status); }; } && 3856 { ac_try='test -s conftest.$ac_objext' 3857 { (case "(($ac_try" in 3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3859 *) ac_try_echo=$ac_try;; 3860esac 3861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3862 (eval "$ac_try") 2>&5 3863 ac_status=$? 3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3865 (exit $ac_status); }; }; then 3866 ac_cv_header_stdc=yes 3867else 3868 echo "$as_me: failed program was:" >&5 3869sed 's/^/| /' conftest.$ac_ext >&5 3870 3871 ac_cv_header_stdc=no 3872fi 3873 3874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3875 3876if test $ac_cv_header_stdc = yes; then 3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3878 cat >conftest.$ac_ext <<_ACEOF 3879/* confdefs.h. */ 3880_ACEOF 3881cat confdefs.h >>conftest.$ac_ext 3882cat >>conftest.$ac_ext <<_ACEOF 3883/* end confdefs.h. */ 3884#include <string.h> 3885 3886_ACEOF 3887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3888 $EGREP "memchr" >/dev/null 2>&1; then 3889 : 3890else 3891 ac_cv_header_stdc=no 3892fi 3893rm -f conftest* 3894 3895fi 3896 3897if test $ac_cv_header_stdc = yes; then 3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3899 cat >conftest.$ac_ext <<_ACEOF 3900/* confdefs.h. */ 3901_ACEOF 3902cat confdefs.h >>conftest.$ac_ext 3903cat >>conftest.$ac_ext <<_ACEOF 3904/* end confdefs.h. */ 3905#include <stdlib.h> 3906 3907_ACEOF 3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3909 $EGREP "free" >/dev/null 2>&1; then 3910 : 3911else 3912 ac_cv_header_stdc=no 3913fi 3914rm -f conftest* 3915 3916fi 3917 3918if test $ac_cv_header_stdc = yes; then 3919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3920 if test "$cross_compiling" = yes; then 3921 : 3922else 3923 cat >conftest.$ac_ext <<_ACEOF 3924/* confdefs.h. */ 3925_ACEOF 3926cat confdefs.h >>conftest.$ac_ext 3927cat >>conftest.$ac_ext <<_ACEOF 3928/* end confdefs.h. */ 3929#include <ctype.h> 3930#include <stdlib.h> 3931#if ((' ' & 0x0FF) == 0x020) 3932# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3933# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3934#else 3935# define ISLOWER(c) \ 3936 (('a' <= (c) && (c) <= 'i') \ 3937 || ('j' <= (c) && (c) <= 'r') \ 3938 || ('s' <= (c) && (c) <= 'z')) 3939# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3940#endif 3941 3942#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3943int 3944main () 3945{ 3946 int i; 3947 for (i = 0; i < 256; i++) 3948 if (XOR (islower (i), ISLOWER (i)) 3949 || toupper (i) != TOUPPER (i)) 3950 return 2; 3951 return 0; 3952} 3953_ACEOF 3954rm -f conftest$ac_exeext 3955if { (ac_try="$ac_link" 3956case "(($ac_try" in 3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3958 *) ac_try_echo=$ac_try;; 3959esac 3960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3961 (eval "$ac_link") 2>&5 3962 ac_status=$? 3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3965 { (case "(($ac_try" in 3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3967 *) ac_try_echo=$ac_try;; 3968esac 3969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3970 (eval "$ac_try") 2>&5 3971 ac_status=$? 3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3973 (exit $ac_status); }; }; then 3974 : 3975else 3976 echo "$as_me: program exited with status $ac_status" >&5 3977echo "$as_me: failed program was:" >&5 3978sed 's/^/| /' conftest.$ac_ext >&5 3979 3980( exit $ac_status ) 3981ac_cv_header_stdc=no 3982fi 3983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3984fi 3985 3986 3987fi 3988fi 3989{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3990echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3991if test $ac_cv_header_stdc = yes; then 3992 3993cat >>confdefs.h <<\_ACEOF 3994#define STDC_HEADERS 1 3995_ACEOF 3996 3997fi 3998 3999# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4010 inttypes.h stdint.h unistd.h 4011do 4012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4013{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4016 echo $ECHO_N "(cached) $ECHO_C" >&6 4017else 4018 cat >conftest.$ac_ext <<_ACEOF 4019/* confdefs.h. */ 4020_ACEOF 4021cat confdefs.h >>conftest.$ac_ext 4022cat >>conftest.$ac_ext <<_ACEOF 4023/* end confdefs.h. */ 4024$ac_includes_default 4025 4026#include <$ac_header> 4027_ACEOF 4028rm -f conftest.$ac_objext 4029if { (ac_try="$ac_compile" 4030case "(($ac_try" in 4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4032 *) ac_try_echo=$ac_try;; 4033esac 4034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4035 (eval "$ac_compile") 2>conftest.er1 4036 ac_status=$? 4037 grep -v '^ *+' conftest.er1 >conftest.err 4038 rm -f conftest.er1 4039 cat conftest.err >&5 4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4041 (exit $ac_status); } && 4042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4043 { (case "(($ac_try" in 4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4045 *) ac_try_echo=$ac_try;; 4046esac 4047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4048 (eval "$ac_try") 2>&5 4049 ac_status=$? 4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4051 (exit $ac_status); }; } && 4052 { ac_try='test -s conftest.$ac_objext' 4053 { (case "(($ac_try" in 4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4055 *) ac_try_echo=$ac_try;; 4056esac 4057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4058 (eval "$ac_try") 2>&5 4059 ac_status=$? 4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4061 (exit $ac_status); }; }; then 4062 eval "$as_ac_Header=yes" 4063else 4064 echo "$as_me: failed program was:" >&5 4065sed 's/^/| /' conftest.$ac_ext >&5 4066 4067 eval "$as_ac_Header=no" 4068fi 4069 4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4071fi 4072ac_res=`eval echo '${'$as_ac_Header'}'` 4073 { echo "$as_me:$LINENO: result: $ac_res" >&5 4074echo "${ECHO_T}$ac_res" >&6; } 4075if test `eval echo '${'$as_ac_Header'}'` = yes; then 4076 cat >>confdefs.h <<_ACEOF 4077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4078_ACEOF 4079 4080fi 4081 4082done 4083 4084 4085{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4086echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4087if test "${ac_cv_c_bigendian+set}" = set; then 4088 echo $ECHO_N "(cached) $ECHO_C" >&6 4089else 4090 # See if sys/param.h defines the BYTE_ORDER macro. 4091cat >conftest.$ac_ext <<_ACEOF 4092/* confdefs.h. */ 4093_ACEOF 4094cat confdefs.h >>conftest.$ac_ext 4095cat >>conftest.$ac_ext <<_ACEOF 4096/* end confdefs.h. */ 4097#include <sys/types.h> 4098#include <sys/param.h> 4099 4100int 4101main () 4102{ 4103#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4104 bogus endian macros 4105#endif 4106 4107 ; 4108 return 0; 4109} 4110_ACEOF 4111rm -f conftest.$ac_objext 4112if { (ac_try="$ac_compile" 4113case "(($ac_try" in 4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4115 *) ac_try_echo=$ac_try;; 4116esac 4117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4118 (eval "$ac_compile") 2>conftest.er1 4119 ac_status=$? 4120 grep -v '^ *+' conftest.er1 >conftest.err 4121 rm -f conftest.er1 4122 cat conftest.err >&5 4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4124 (exit $ac_status); } && 4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4126 { (case "(($ac_try" in 4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4128 *) ac_try_echo=$ac_try;; 4129esac 4130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4131 (eval "$ac_try") 2>&5 4132 ac_status=$? 4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4134 (exit $ac_status); }; } && 4135 { ac_try='test -s conftest.$ac_objext' 4136 { (case "(($ac_try" in 4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4138 *) ac_try_echo=$ac_try;; 4139esac 4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4141 (eval "$ac_try") 2>&5 4142 ac_status=$? 4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4144 (exit $ac_status); }; }; then 4145 # It does; now see whether it defined to BIG_ENDIAN or not. 4146cat >conftest.$ac_ext <<_ACEOF 4147/* confdefs.h. */ 4148_ACEOF 4149cat confdefs.h >>conftest.$ac_ext 4150cat >>conftest.$ac_ext <<_ACEOF 4151/* end confdefs.h. */ 4152#include <sys/types.h> 4153#include <sys/param.h> 4154 4155int 4156main () 4157{ 4158#if BYTE_ORDER != BIG_ENDIAN 4159 not big endian 4160#endif 4161 4162 ; 4163 return 0; 4164} 4165_ACEOF 4166rm -f conftest.$ac_objext 4167if { (ac_try="$ac_compile" 4168case "(($ac_try" in 4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4170 *) ac_try_echo=$ac_try;; 4171esac 4172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4173 (eval "$ac_compile") 2>conftest.er1 4174 ac_status=$? 4175 grep -v '^ *+' conftest.er1 >conftest.err 4176 rm -f conftest.er1 4177 cat conftest.err >&5 4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4179 (exit $ac_status); } && 4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4181 { (case "(($ac_try" in 4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4183 *) ac_try_echo=$ac_try;; 4184esac 4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4186 (eval "$ac_try") 2>&5 4187 ac_status=$? 4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4189 (exit $ac_status); }; } && 4190 { ac_try='test -s conftest.$ac_objext' 4191 { (case "(($ac_try" in 4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4193 *) ac_try_echo=$ac_try;; 4194esac 4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4196 (eval "$ac_try") 2>&5 4197 ac_status=$? 4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4199 (exit $ac_status); }; }; then 4200 ac_cv_c_bigendian=yes 4201else 4202 echo "$as_me: failed program was:" >&5 4203sed 's/^/| /' conftest.$ac_ext >&5 4204 4205 ac_cv_c_bigendian=no 4206fi 4207 4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4209else 4210 echo "$as_me: failed program was:" >&5 4211sed 's/^/| /' conftest.$ac_ext >&5 4212 4213 # It does not; compile a test program. 4214if test "$cross_compiling" = yes; then 4215 # try to guess the endianness by grepping values into an object file 4216 ac_cv_c_bigendian=unknown 4217 cat >conftest.$ac_ext <<_ACEOF 4218/* confdefs.h. */ 4219_ACEOF 4220cat confdefs.h >>conftest.$ac_ext 4221cat >>conftest.$ac_ext <<_ACEOF 4222/* end confdefs.h. */ 4223short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4224short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4225void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4226short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4227short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4228void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4229int 4230main () 4231{ 4232 _ascii (); _ebcdic (); 4233 ; 4234 return 0; 4235} 4236_ACEOF 4237rm -f conftest.$ac_objext 4238if { (ac_try="$ac_compile" 4239case "(($ac_try" in 4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4241 *) ac_try_echo=$ac_try;; 4242esac 4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4244 (eval "$ac_compile") 2>conftest.er1 4245 ac_status=$? 4246 grep -v '^ *+' conftest.er1 >conftest.err 4247 rm -f conftest.er1 4248 cat conftest.err >&5 4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4250 (exit $ac_status); } && 4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4252 { (case "(($ac_try" in 4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4254 *) ac_try_echo=$ac_try;; 4255esac 4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4257 (eval "$ac_try") 2>&5 4258 ac_status=$? 4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4260 (exit $ac_status); }; } && 4261 { ac_try='test -s conftest.$ac_objext' 4262 { (case "(($ac_try" in 4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4264 *) ac_try_echo=$ac_try;; 4265esac 4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4267 (eval "$ac_try") 2>&5 4268 ac_status=$? 4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4270 (exit $ac_status); }; }; then 4271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4272 ac_cv_c_bigendian=yes 4273fi 4274if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4275 if test "$ac_cv_c_bigendian" = unknown; then 4276 ac_cv_c_bigendian=no 4277 else 4278 # finding both strings is unlikely to happen, but who knows? 4279 ac_cv_c_bigendian=unknown 4280 fi 4281fi 4282else 4283 echo "$as_me: failed program was:" >&5 4284sed 's/^/| /' conftest.$ac_ext >&5 4285 4286 4287fi 4288 4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4290else 4291 cat >conftest.$ac_ext <<_ACEOF 4292/* confdefs.h. */ 4293_ACEOF 4294cat confdefs.h >>conftest.$ac_ext 4295cat >>conftest.$ac_ext <<_ACEOF 4296/* end confdefs.h. */ 4297$ac_includes_default 4298int 4299main () 4300{ 4301 4302 /* Are we little or big endian? From Harbison&Steele. */ 4303 union 4304 { 4305 long int l; 4306 char c[sizeof (long int)]; 4307 } u; 4308 u.l = 1; 4309 return u.c[sizeof (long int) - 1] == 1; 4310 4311 ; 4312 return 0; 4313} 4314_ACEOF 4315rm -f conftest$ac_exeext 4316if { (ac_try="$ac_link" 4317case "(($ac_try" in 4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4319 *) ac_try_echo=$ac_try;; 4320esac 4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4322 (eval "$ac_link") 2>&5 4323 ac_status=$? 4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4326 { (case "(($ac_try" in 4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4328 *) ac_try_echo=$ac_try;; 4329esac 4330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4331 (eval "$ac_try") 2>&5 4332 ac_status=$? 4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4334 (exit $ac_status); }; }; then 4335 ac_cv_c_bigendian=no 4336else 4337 echo "$as_me: program exited with status $ac_status" >&5 4338echo "$as_me: failed program was:" >&5 4339sed 's/^/| /' conftest.$ac_ext >&5 4340 4341( exit $ac_status ) 4342ac_cv_c_bigendian=yes 4343fi 4344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4345fi 4346 4347 4348fi 4349 4350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4351fi 4352{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4353echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4354case $ac_cv_c_bigendian in 4355 yes) 4356 ENDIAN=big 4357 ;; 4358 no) 4359 ENDIAN=little 4360 ;; 4361 *) 4362 { { echo "$as_me:$LINENO: error: unknown endianness 4363presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4364echo "$as_me: error: unknown endianness 4365presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4366 { (exit 1); exit 1; }; } ;; 4367esac 4368 4369 4370if test "$cross_compiling" = yes; then 4371 LLVM_CROSS_COMPILING=1 4372 4373 4374{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4375echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4376if test "${ac_cv_build_exeext+set}" = set; then 4377 echo $ECHO_N "(cached) $ECHO_C" >&6 4378else 4379 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4380 ac_cv_build_exeext=.exe 4381else 4382 ac_build_prefix=${build_alias}- 4383 4384 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4385set dummy ${ac_build_prefix}gcc; ac_word=$2 4386{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4388if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4389 echo $ECHO_N "(cached) $ECHO_C" >&6 4390else 4391 if test -n "$BUILD_CC"; then 4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4393else 4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4395for as_dir in $PATH 4396do 4397 IFS=$as_save_IFS 4398 test -z "$as_dir" && as_dir=. 4399 for ac_exec_ext in '' $ac_executable_extensions; do 4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4401 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4403 break 2 4404 fi 4405done 4406done 4407IFS=$as_save_IFS 4408 4409fi 4410fi 4411BUILD_CC=$ac_cv_prog_BUILD_CC 4412if test -n "$BUILD_CC"; then 4413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4414echo "${ECHO_T}$BUILD_CC" >&6; } 4415else 4416 { echo "$as_me:$LINENO: result: no" >&5 4417echo "${ECHO_T}no" >&6; } 4418fi 4419 4420 4421 if test -z "$BUILD_CC"; then 4422 # Extract the first word of "gcc", so it can be a program name with args. 4423set dummy gcc; ac_word=$2 4424{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4426if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4427 echo $ECHO_N "(cached) $ECHO_C" >&6 4428else 4429 if test -n "$BUILD_CC"; then 4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4431else 4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4433for as_dir in $PATH 4434do 4435 IFS=$as_save_IFS 4436 test -z "$as_dir" && as_dir=. 4437 for ac_exec_ext in '' $ac_executable_extensions; do 4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4439 ac_cv_prog_BUILD_CC="gcc" 4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4441 break 2 4442 fi 4443done 4444done 4445IFS=$as_save_IFS 4446 4447fi 4448fi 4449BUILD_CC=$ac_cv_prog_BUILD_CC 4450if test -n "$BUILD_CC"; then 4451 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4452echo "${ECHO_T}$BUILD_CC" >&6; } 4453else 4454 { echo "$as_me:$LINENO: result: no" >&5 4455echo "${ECHO_T}no" >&6; } 4456fi 4457 4458 4459 if test -z "$BUILD_CC"; then 4460 # Extract the first word of "cc", so it can be a program name with args. 4461set dummy cc; ac_word=$2 4462{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4464if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4465 echo $ECHO_N "(cached) $ECHO_C" >&6 4466else 4467 if test -n "$BUILD_CC"; then 4468 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4469else 4470 ac_prog_rejected=no 4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4472for as_dir in $PATH 4473do 4474 IFS=$as_save_IFS 4475 test -z "$as_dir" && as_dir=. 4476 for ac_exec_ext in '' $ac_executable_extensions; do 4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4479 ac_prog_rejected=yes 4480 continue 4481 fi 4482 ac_cv_prog_BUILD_CC="cc" 4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4484 break 2 4485 fi 4486done 4487done 4488IFS=$as_save_IFS 4489 4490if test $ac_prog_rejected = yes; then 4491 # We found a bogon in the path, so make sure we never use it. 4492 set dummy $ac_cv_prog_BUILD_CC 4493 shift 4494 if test $# != 0; then 4495 # We chose a different compiler from the bogus one. 4496 # However, it has the same basename, so the bogon will be chosen 4497 # first if we set BUILD_CC to just the basename; use the full file name. 4498 shift 4499 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4500 fi 4501fi 4502fi 4503fi 4504BUILD_CC=$ac_cv_prog_BUILD_CC 4505if test -n "$BUILD_CC"; then 4506 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4507echo "${ECHO_T}$BUILD_CC" >&6; } 4508else 4509 { echo "$as_me:$LINENO: result: no" >&5 4510echo "${ECHO_T}no" >&6; } 4511fi 4512 4513 4514 fi 4515 fi 4516 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4517echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4518 { (exit 1); exit 1; }; } 4519 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4520 rm -f conftest* 4521 echo 'int main () { return 0; }' > conftest.$ac_ext 4522 ac_cv_build_exeext= 4523 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4524 (eval $ac_build_link) 2>&5 4525 ac_status=$? 4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4527 (exit $ac_status); }; then 4528 for file in conftest.*; do 4529 case $file in 4530 *.c | *.o | *.obj | *.dSYM) ;; 4531 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4532 esac 4533 done 4534 else 4535 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4536echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4537 { (exit 1); exit 1; }; } 4538 fi 4539 rm -f conftest* 4540 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4541fi 4542fi 4543 4544BUILD_EXEEXT="" 4545test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4546{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4547echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4548ac_build_exeext=$BUILD_EXEEXT 4549 4550 ac_build_prefix=${build_alias}- 4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4552set dummy ${ac_build_prefix}g++; ac_word=$2 4553{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4555if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4556 echo $ECHO_N "(cached) $ECHO_C" >&6 4557else 4558 if test -n "$BUILD_CXX"; then 4559 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4560else 4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4562for as_dir in $PATH 4563do 4564 IFS=$as_save_IFS 4565 test -z "$as_dir" && as_dir=. 4566 for ac_exec_ext in '' $ac_executable_extensions; do 4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4568 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4570 break 2 4571 fi 4572done 4573done 4574IFS=$as_save_IFS 4575 4576fi 4577fi 4578BUILD_CXX=$ac_cv_prog_BUILD_CXX 4579if test -n "$BUILD_CXX"; then 4580 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4581echo "${ECHO_T}$BUILD_CXX" >&6; } 4582else 4583 { echo "$as_me:$LINENO: result: no" >&5 4584echo "${ECHO_T}no" >&6; } 4585fi 4586 4587 4588 if test -z "$BUILD_CXX"; then 4589 # Extract the first word of "g++", so it can be a program name with args. 4590set dummy g++; ac_word=$2 4591{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4593if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4594 echo $ECHO_N "(cached) $ECHO_C" >&6 4595else 4596 if test -n "$BUILD_CXX"; then 4597 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4598else 4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_exec_ext in '' $ac_executable_extensions; do 4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4606 ac_cv_prog_BUILD_CXX="g++" 4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4608 break 2 4609 fi 4610done 4611done 4612IFS=$as_save_IFS 4613 4614fi 4615fi 4616BUILD_CXX=$ac_cv_prog_BUILD_CXX 4617if test -n "$BUILD_CXX"; then 4618 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4619echo "${ECHO_T}$BUILD_CXX" >&6; } 4620else 4621 { echo "$as_me:$LINENO: result: no" >&5 4622echo "${ECHO_T}no" >&6; } 4623fi 4624 4625 4626 if test -z "$BUILD_CXX"; then 4627 # Extract the first word of "c++", so it can be a program name with args. 4628set dummy c++; ac_word=$2 4629{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4631if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4632 echo $ECHO_N "(cached) $ECHO_C" >&6 4633else 4634 if test -n "$BUILD_CXX"; then 4635 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4636else 4637 ac_prog_rejected=no 4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4639for as_dir in $PATH 4640do 4641 IFS=$as_save_IFS 4642 test -z "$as_dir" && as_dir=. 4643 for ac_exec_ext in '' $ac_executable_extensions; do 4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4646 ac_prog_rejected=yes 4647 continue 4648 fi 4649 ac_cv_prog_BUILD_CXX="c++" 4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4651 break 2 4652 fi 4653done 4654done 4655IFS=$as_save_IFS 4656 4657if test $ac_prog_rejected = yes; then 4658 # We found a bogon in the path, so make sure we never use it. 4659 set dummy $ac_cv_prog_BUILD_CXX 4660 shift 4661 if test $# != 0; then 4662 # We chose a different compiler from the bogus one. 4663 # However, it has the same basename, so the bogon will be chosen 4664 # first if we set BUILD_CXX to just the basename; use the full file name. 4665 shift 4666 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4667 fi 4668fi 4669fi 4670fi 4671BUILD_CXX=$ac_cv_prog_BUILD_CXX 4672if test -n "$BUILD_CXX"; then 4673 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4674echo "${ECHO_T}$BUILD_CXX" >&6; } 4675else 4676 { echo "$as_me:$LINENO: result: no" >&5 4677echo "${ECHO_T}no" >&6; } 4678fi 4679 4680 4681 fi 4682 fi 4683else 4684 LLVM_CROSS_COMPILING=0 4685 4686fi 4687 4688if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4689 cvsbuild="yes" 4690 optimize="no" 4691 CVSBUILD=CVSBUILD=1 4692 4693else 4694 cvsbuild="no" 4695 optimize="yes" 4696fi 4697 4698 4699# Check whether --enable-optimized was given. 4700if test "${enable_optimized+set}" = set; then 4701 enableval=$enable_optimized; 4702else 4703 enableval=$optimize 4704fi 4705 4706if test ${enableval} = "no" ; then 4707 ENABLE_OPTIMIZED= 4708 4709else 4710 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4711 4712fi 4713 4714# Check whether --enable-profiling was given. 4715if test "${enable_profiling+set}" = set; then 4716 enableval=$enable_profiling; 4717else 4718 enableval="no" 4719fi 4720 4721if test ${enableval} = "no" ; then 4722 ENABLE_PROFILING= 4723 4724else 4725 ENABLE_PROFILING=ENABLE_PROFILING=1 4726 4727fi 4728 4729# Check whether --enable-assertions was given. 4730if test "${enable_assertions+set}" = set; then 4731 enableval=$enable_assertions; 4732else 4733 enableval="yes" 4734fi 4735 4736if test ${enableval} = "yes" ; then 4737 DISABLE_ASSERTIONS= 4738 4739else 4740 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 4741 4742fi 4743 4744# Check whether --enable-expensive-checks was given. 4745if test "${enable_expensive_checks+set}" = set; then 4746 enableval=$enable_expensive_checks; 4747else 4748 enableval="no" 4749fi 4750 4751if test ${enableval} = "yes" ; then 4752 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 4753 4754 EXPENSIVE_CHECKS=yes 4755 4756else 4757 ENABLE_EXPENSIVE_CHECKS= 4758 4759 EXPENSIVE_CHECKS=no 4760 4761fi 4762 4763# Check whether --enable-debug-runtime was given. 4764if test "${enable_debug_runtime+set}" = set; then 4765 enableval=$enable_debug_runtime; 4766else 4767 enableval=no 4768fi 4769 4770if test ${enableval} = "no" ; then 4771 DEBUG_RUNTIME= 4772 4773else 4774 DEBUG_RUNTIME=DEBUG_RUNTIME=1 4775 4776fi 4777 4778# Check whether --enable-debug-symbols was given. 4779if test "${enable_debug_symbols+set}" = set; then 4780 enableval=$enable_debug_symbols; 4781else 4782 enableval=no 4783fi 4784 4785if test ${enableval} = "no" ; then 4786 DEBUG_SYMBOLS= 4787 4788else 4789 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 4790 4791fi 4792 4793# Check whether --enable-jit was given. 4794if test "${enable_jit+set}" = set; then 4795 enableval=$enable_jit; 4796else 4797 enableval=default 4798fi 4799 4800if test ${enableval} = "no" 4801then 4802 JIT= 4803 4804else 4805 case "$llvm_cv_target_arch" in 4806 x86) TARGET_HAS_JIT=1 4807 ;; 4808 Sparc) TARGET_HAS_JIT=0 4809 ;; 4810 PowerPC) TARGET_HAS_JIT=1 4811 ;; 4812 x86_64) TARGET_HAS_JIT=1 4813 ;; 4814 Alpha) TARGET_HAS_JIT=1 4815 ;; 4816 ARM) TARGET_HAS_JIT=1 4817 ;; 4818 Mips) TARGET_HAS_JIT=0 4819 ;; 4820 XCore) TARGET_HAS_JIT=0 4821 ;; 4822 MSP430) TARGET_HAS_JIT=0 4823 ;; 4824 SystemZ) TARGET_HAS_JIT=0 4825 ;; 4826 Blackfin) TARGET_HAS_JIT=0 4827 ;; 4828 MBlaze) TARGET_HAS_JIT=0 4829 ;; 4830 PTX) TARGET_HAS_JIT=0 4831 ;; 4832 *) TARGET_HAS_JIT=0 4833 ;; 4834 esac 4835fi 4836 4837# Check whether --enable-doxygen was given. 4838if test "${enable_doxygen+set}" = set; then 4839 enableval=$enable_doxygen; 4840else 4841 enableval=default 4842fi 4843 4844case "$enableval" in 4845 yes) ENABLE_DOXYGEN=1 4846 ;; 4847 no) ENABLE_DOXYGEN=0 4848 ;; 4849 default) ENABLE_DOXYGEN=0 4850 ;; 4851 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 4852echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 4853 { (exit 1); exit 1; }; } ;; 4854esac 4855 4856# Check whether --enable-threads was given. 4857if test "${enable_threads+set}" = set; then 4858 enableval=$enable_threads; 4859else 4860 enableval=default 4861fi 4862 4863case "$enableval" in 4864 yes) ENABLE_THREADS=1 4865 ;; 4866 no) ENABLE_THREADS=0 4867 ;; 4868 default) ENABLE_THREADS=1 4869 ;; 4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 4871echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 4872 { (exit 1); exit 1; }; } ;; 4873esac 4874 4875cat >>confdefs.h <<_ACEOF 4876#define ENABLE_THREADS $ENABLE_THREADS 4877_ACEOF 4878 4879 4880# Check whether --enable-pic was given. 4881if test "${enable_pic+set}" = set; then 4882 enableval=$enable_pic; 4883else 4884 enableval=default 4885fi 4886 4887case "$enableval" in 4888 yes) ENABLE_PIC=1 4889 ;; 4890 no) ENABLE_PIC=0 4891 ;; 4892 default) ENABLE_PIC=1 4893 ;; 4894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 4895echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 4896 { (exit 1); exit 1; }; } ;; 4897esac 4898 4899cat >>confdefs.h <<_ACEOF 4900#define ENABLE_PIC $ENABLE_PIC 4901_ACEOF 4902 4903 4904# Check whether --enable-shared was given. 4905if test "${enable_shared+set}" = set; then 4906 enableval=$enable_shared; 4907else 4908 enableval=default 4909fi 4910 4911case "$enableval" in 4912 yes) ENABLE_SHARED=1 4913 ;; 4914 no) ENABLE_SHARED=0 4915 ;; 4916 default) ENABLE_SHARED=0 4917 ;; 4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 4919echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 4920 { (exit 1); exit 1; }; } ;; 4921esac 4922 4923# Check whether --enable-timestamps was given. 4924if test "${enable_timestamps+set}" = set; then 4925 enableval=$enable_timestamps; 4926else 4927 enableval=default 4928fi 4929 4930case "$enableval" in 4931 yes) ENABLE_TIMESTAMPS=1 4932 ;; 4933 no) ENABLE_TIMESTAMPS=0 4934 ;; 4935 default) ENABLE_TIMESTAMPS=1 4936 ;; 4937 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 4938echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 4939 { (exit 1); exit 1; }; } ;; 4940esac 4941 4942cat >>confdefs.h <<_ACEOF 4943#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 4944_ACEOF 4945 4946 4947TARGETS_TO_BUILD="" 4948# Check whether --enable-targets was given. 4949if test "${enable_targets+set}" = set; then 4950 enableval=$enable_targets; 4951else 4952 enableval=all 4953fi 4954 4955if test "$enableval" = host-only ; then 4956 enableval=host 4957fi 4958case "$enableval" in 4959 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;; 4960 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 4961 case "$a_target" in 4962 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 4963 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 4964 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 4965 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 4966 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 4967 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 4968 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 4969 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 4970 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 4971 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 4972 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 4973 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 4974 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; 4975 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 4976 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 4977 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 4978 host) case "$llvm_cv_target_arch" in 4979 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 4980 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 4981 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 4982 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 4983 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 4984 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 4985 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 4986 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 4987 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 4988 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 4989 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 4990 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 4991 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 4992 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 4993 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 4994echo "$as_me: error: Can not set target to build" >&2;} 4995 { (exit 1); exit 1; }; } ;; 4996 esac ;; 4997 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 4998echo "$as_me: error: Unrecognized target $a_target" >&2;} 4999 { (exit 1); exit 1; }; } ;; 5000 esac 5001 done 5002 ;; 5003esac 5004TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5005 5006 5007# Determine whether we are building LLVM support for the native architecture. 5008# If so, define LLVM_NATIVE_ARCH to that LLVM target. 5009for a_target in $TARGETS_TO_BUILD; do 5010 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5011 5012cat >>confdefs.h <<_ACEOF 5013#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5014_ACEOF 5015 5016 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5017 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5018 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5019 5020cat >>confdefs.h <<_ACEOF 5021#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5022_ACEOF 5023 5024 5025cat >>confdefs.h <<_ACEOF 5026#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5027_ACEOF 5028 5029 5030cat >>confdefs.h <<_ACEOF 5031#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5032_ACEOF 5033 5034 fi 5035done 5036 5037# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual 5038# target feature def files. 5039LLVM_ENUM_TARGETS="" 5040LLVM_ENUM_ASM_PRINTERS="" 5041LLVM_ENUM_ASM_PARSERS="" 5042LLVM_ENUM_DISASSEMBLERS="" 5043for target_to_build in $TARGETS_TO_BUILD; do 5044 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5045 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then 5046 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5047 fi 5048 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter 5049 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then 5050 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5051 fi 5052 5053 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5054 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5055 fi 5056 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5057 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5058 fi 5059done 5060 5061 5062 5063 5064 5065# Check whether --enable-cbe-printf-a was given. 5066if test "${enable_cbe_printf_a+set}" = set; then 5067 enableval=$enable_cbe_printf_a; 5068else 5069 enableval=default 5070fi 5071 5072case "$enableval" in 5073 yes) ENABLE_CBE_PRINTF_A=1 5074 ;; 5075 no) ENABLE_CBE_PRINTF_A=0 5076 ;; 5077 default) ENABLE_CBE_PRINTF_A=1 5078 ;; 5079 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 5080echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} 5081 { (exit 1); exit 1; }; } ;; 5082esac 5083 5084cat >>confdefs.h <<_ACEOF 5085#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A 5086_ACEOF 5087 5088 5089 5090# Check whether --with-llvmgccdir was given. 5091if test "${with_llvmgccdir+set}" = set; then 5092 withval=$with_llvmgccdir; 5093else 5094 withval=default 5095fi 5096 5097case "$withval" in 5098 default) WITH_LLVMGCCDIR=default ;; 5099 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; 5100 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 5101echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} 5102 { (exit 1); exit 1; }; } ;; 5103esac 5104 5105 5106# Check whether --with-llvmgcc was given. 5107if test "${with_llvmgcc+set}" = set; then 5108 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc 5109 WITH_LLVMGCCDIR="" 5110fi 5111 5112 5113 5114# Check whether --with-llvmgxx was given. 5115if test "${with_llvmgxx+set}" = set; then 5116 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx 5117 WITH_LLVMGCCDIR="" 5118fi 5119 5120 5121if test -n "$LLVMGCC"; then 5122 LLVMGCCCOMMAND="$LLVMGCC" 5123fi 5124 5125if test -n "$LLVMGXX"; then 5126 LLVMGXXCOMMAND="$LLVMGXX" 5127fi 5128 5129if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then 5130 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 5131echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} 5132 { (exit 1); exit 1; }; }; 5133fi 5134 5135if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then 5136 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 5137echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} 5138 { (exit 1); exit 1; }; }; 5139fi 5140 5141 5142# Check whether --with-clang was given. 5143if test "${with_clang+set}" = set; then 5144 withval=$with_clang; 5145else 5146 with_clang=default 5147fi 5148 5149 5150 5151# Check whether --with-built-clang was given. 5152if test "${with_built_clang+set}" = set; then 5153 withval=$with_built_clang; 5154else 5155 with_built_clang=check 5156fi 5157 5158 5159{ echo "$as_me:$LINENO: checking clang compiler" >&5 5160echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; } 5161WITH_CLANGPATH="" 5162WITH_BUILT_CLANG=0 5163if test "$with_clang" != "default"; then 5164 WITH_CLANGPATH="$with_clang" 5165 if ! test -x "$WITH_CLANGPATH"; then 5166 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5 5167echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;} 5168 { (exit 1); exit 1; }; } 5169 fi 5170elif test "$with_built_clang" = "yes"; then 5171 WITH_BUILT_CLANG=1 5172elif test "$with_built_clang" = "no"; then 5173 WITH_BUILT_CLANG=0 5174else 5175 if test "$with_built_clang" != "check"; then 5176 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5 5177echo "$as_me: error: invalid value for --with-built-clang." >&2;} 5178 { (exit 1); exit 1; }; } 5179 fi 5180 5181 if test -f ${srcdir}/tools/clang/README.txt; then 5182 WITH_BUILT_CLANG=1 5183 fi 5184fi 5185 5186if ! test -z "$WITH_CLANGPATH"; then 5187 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5 5188echo "${ECHO_T}$WITH_CLANGPATH" >&6; } 5189 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++` 5190elif test "$WITH_BUILT_CLANG" = "1"; then 5191 { echo "$as_me:$LINENO: result: built" >&5 5192echo "${ECHO_T}built" >&6; } 5193else 5194 { echo "$as_me:$LINENO: result: none" >&5 5195echo "${ECHO_T}none" >&6; } 5196fi 5197CLANGPATH=$WITH_CLANGPATH 5198 5199CLANGXXPATH=$WITH_CLANGXXPATH 5200 5201ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG 5202 5203 5204 5205# Check whether --with-optimize-option was given. 5206if test "${with_optimize_option+set}" = set; then 5207 withval=$with_optimize_option; 5208else 5209 withval=default 5210fi 5211 5212{ echo "$as_me:$LINENO: checking optimization flags" >&5 5213echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5214case "$withval" in 5215 default) 5216 case "$llvm_cv_os_type" in 5217 FreeBSD) optimize_option=-O2 ;; 5218 MingW) optimize_option=-O2 ;; 5219 *) optimize_option=-O3 ;; 5220 esac ;; 5221 *) optimize_option="$withval" ;; 5222esac 5223OPTIMIZE_OPTION=$optimize_option 5224 5225{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5226echo "${ECHO_T}$optimize_option" >&6; } 5227 5228 5229# Check whether --with-extra-options was given. 5230if test "${with_extra_options+set}" = set; then 5231 withval=$with_extra_options; 5232else 5233 withval=default 5234fi 5235 5236case "$withval" in 5237 default) EXTRA_OPTIONS= ;; 5238 *) EXTRA_OPTIONS=$withval ;; 5239esac 5240EXTRA_OPTIONS=$EXTRA_OPTIONS 5241 5242 5243# Check whether --enable-bindings was given. 5244if test "${enable_bindings+set}" = set; then 5245 enableval=$enable_bindings; 5246else 5247 enableval=default 5248fi 5249 5250BINDINGS_TO_BUILD="" 5251case "$enableval" in 5252 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5253 all ) BINDINGS_TO_BUILD="ocaml" ;; 5254 none | no) BINDINGS_TO_BUILD="" ;; 5255 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5256 case "$a_binding" in 5257 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5258 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5259echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5260 { (exit 1); exit 1; }; } ;; 5261 esac 5262 done 5263 ;; 5264esac 5265 5266 5267# Check whether --with-ocaml-libdir was given. 5268if test "${with_ocaml_libdir+set}" = set; then 5269 withval=$with_ocaml_libdir; 5270else 5271 withval=auto 5272fi 5273 5274case "$withval" in 5275 auto) with_ocaml_libdir="$withval" ;; 5276 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5277 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5278echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5279 { (exit 1); exit 1; }; } ;; 5280esac 5281 5282 5283# Check whether --with-c-include-dirs was given. 5284if test "${with_c_include_dirs+set}" = set; then 5285 withval=$with_c_include_dirs; 5286else 5287 withval="" 5288fi 5289 5290 5291cat >>confdefs.h <<_ACEOF 5292#define C_INCLUDE_DIRS "$withval" 5293_ACEOF 5294 5295 5296 5297# Check whether --with-cxx-include-root was given. 5298if test "${with_cxx_include_root+set}" = set; then 5299 withval=$with_cxx_include_root; 5300else 5301 withval="" 5302fi 5303 5304 5305cat >>confdefs.h <<_ACEOF 5306#define CXX_INCLUDE_ROOT "$withval" 5307_ACEOF 5308 5309 5310 5311# Check whether --with-cxx-include-arch was given. 5312if test "${with_cxx_include_arch+set}" = set; then 5313 withval=$with_cxx_include_arch; 5314else 5315 withval="" 5316fi 5317 5318 5319cat >>confdefs.h <<_ACEOF 5320#define CXX_INCLUDE_ARCH "$withval" 5321_ACEOF 5322 5323 5324 5325# Check whether --with-cxx-include-32bit-dir was given. 5326if test "${with_cxx_include_32bit_dir+set}" = set; then 5327 withval=$with_cxx_include_32bit_dir; 5328else 5329 withval="" 5330fi 5331 5332 5333cat >>confdefs.h <<_ACEOF 5334#define CXX_INCLUDE_32BIT_DIR "$withval" 5335_ACEOF 5336 5337 5338 5339# Check whether --with-cxx-include-64bit-dir was given. 5340if test "${with_cxx_include_64bit_dir+set}" = set; then 5341 withval=$with_cxx_include_64bit_dir; 5342else 5343 withval="" 5344fi 5345 5346 5347cat >>confdefs.h <<_ACEOF 5348#define CXX_INCLUDE_64BIT_DIR "$withval" 5349_ACEOF 5350 5351 5352 5353# Check whether --with-binutils-include was given. 5354if test "${with_binutils_include+set}" = set; then 5355 withval=$with_binutils_include; 5356else 5357 withval=default 5358fi 5359 5360case "$withval" in 5361 default) WITH_BINUTILS_INCDIR=default ;; 5362 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5363 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5364echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5365 { (exit 1); exit 1; }; } ;; 5366esac 5367if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5368 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5369 5370 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5371 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5372 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5373echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5374 { (exit 1); exit 1; }; }; 5375 fi 5376fi 5377 5378# Check whether --enable-libffi was given. 5379if test "${enable_libffi+set}" = set; then 5380 enableval=$enable_libffi; case "$enableval" in 5381 yes) llvm_cv_enable_libffi="yes" ;; 5382 no) llvm_cv_enable_libffi="no" ;; 5383 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5384echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5385 { (exit 1); exit 1; }; } ;; 5386 esac 5387else 5388 llvm_cv_enable_libffi=no 5389fi 5390 5391 5392 5393ac_ext=c 5394ac_cpp='$CPP $CPPFLAGS' 5395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5397ac_compiler_gnu=$ac_cv_c_compiler_gnu 5398{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5399echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5400# On Suns, sometimes $CPP names a directory. 5401if test -n "$CPP" && test -d "$CPP"; then 5402 CPP= 5403fi 5404if test -z "$CPP"; then 5405 if test "${ac_cv_prog_CPP+set}" = set; then 5406 echo $ECHO_N "(cached) $ECHO_C" >&6 5407else 5408 # Double quotes because CPP needs to be expanded 5409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5410 do 5411 ac_preproc_ok=false 5412for ac_c_preproc_warn_flag in '' yes 5413do 5414 # Use a header file that comes with gcc, so configuring glibc 5415 # with a fresh cross-compiler works. 5416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5417 # <limits.h> exists even on freestanding compilers. 5418 # On the NeXT, cc -E runs the code through the compiler's parser, 5419 # not just through cpp. "Syntax error" is here to catch this case. 5420 cat >conftest.$ac_ext <<_ACEOF 5421/* confdefs.h. */ 5422_ACEOF 5423cat confdefs.h >>conftest.$ac_ext 5424cat >>conftest.$ac_ext <<_ACEOF 5425/* end confdefs.h. */ 5426#ifdef __STDC__ 5427# include <limits.h> 5428#else 5429# include <assert.h> 5430#endif 5431 Syntax error 5432_ACEOF 5433if { (ac_try="$ac_cpp conftest.$ac_ext" 5434case "(($ac_try" in 5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5436 *) ac_try_echo=$ac_try;; 5437esac 5438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5440 ac_status=$? 5441 grep -v '^ *+' conftest.er1 >conftest.err 5442 rm -f conftest.er1 5443 cat conftest.err >&5 5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5445 (exit $ac_status); } >/dev/null; then 5446 if test -s conftest.err; then 5447 ac_cpp_err=$ac_c_preproc_warn_flag 5448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5449 else 5450 ac_cpp_err= 5451 fi 5452else 5453 ac_cpp_err=yes 5454fi 5455if test -z "$ac_cpp_err"; then 5456 : 5457else 5458 echo "$as_me: failed program was:" >&5 5459sed 's/^/| /' conftest.$ac_ext >&5 5460 5461 # Broken: fails on valid input. 5462continue 5463fi 5464 5465rm -f conftest.err conftest.$ac_ext 5466 5467 # OK, works on sane cases. Now check whether nonexistent headers 5468 # can be detected and how. 5469 cat >conftest.$ac_ext <<_ACEOF 5470/* confdefs.h. */ 5471_ACEOF 5472cat confdefs.h >>conftest.$ac_ext 5473cat >>conftest.$ac_ext <<_ACEOF 5474/* end confdefs.h. */ 5475#include <ac_nonexistent.h> 5476_ACEOF 5477if { (ac_try="$ac_cpp conftest.$ac_ext" 5478case "(($ac_try" in 5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5480 *) ac_try_echo=$ac_try;; 5481esac 5482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5484 ac_status=$? 5485 grep -v '^ *+' conftest.er1 >conftest.err 5486 rm -f conftest.er1 5487 cat conftest.err >&5 5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5489 (exit $ac_status); } >/dev/null; then 5490 if test -s conftest.err; then 5491 ac_cpp_err=$ac_c_preproc_warn_flag 5492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5493 else 5494 ac_cpp_err= 5495 fi 5496else 5497 ac_cpp_err=yes 5498fi 5499if test -z "$ac_cpp_err"; then 5500 # Broken: success on invalid input. 5501continue 5502else 5503 echo "$as_me: failed program was:" >&5 5504sed 's/^/| /' conftest.$ac_ext >&5 5505 5506 # Passes both tests. 5507ac_preproc_ok=: 5508break 5509fi 5510 5511rm -f conftest.err conftest.$ac_ext 5512 5513done 5514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5515rm -f conftest.err conftest.$ac_ext 5516if $ac_preproc_ok; then 5517 break 5518fi 5519 5520 done 5521 ac_cv_prog_CPP=$CPP 5522 5523fi 5524 CPP=$ac_cv_prog_CPP 5525else 5526 ac_cv_prog_CPP=$CPP 5527fi 5528{ echo "$as_me:$LINENO: result: $CPP" >&5 5529echo "${ECHO_T}$CPP" >&6; } 5530ac_preproc_ok=false 5531for ac_c_preproc_warn_flag in '' yes 5532do 5533 # Use a header file that comes with gcc, so configuring glibc 5534 # with a fresh cross-compiler works. 5535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5536 # <limits.h> exists even on freestanding compilers. 5537 # On the NeXT, cc -E runs the code through the compiler's parser, 5538 # not just through cpp. "Syntax error" is here to catch this case. 5539 cat >conftest.$ac_ext <<_ACEOF 5540/* confdefs.h. */ 5541_ACEOF 5542cat confdefs.h >>conftest.$ac_ext 5543cat >>conftest.$ac_ext <<_ACEOF 5544/* end confdefs.h. */ 5545#ifdef __STDC__ 5546# include <limits.h> 5547#else 5548# include <assert.h> 5549#endif 5550 Syntax error 5551_ACEOF 5552if { (ac_try="$ac_cpp conftest.$ac_ext" 5553case "(($ac_try" in 5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5555 *) ac_try_echo=$ac_try;; 5556esac 5557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5559 ac_status=$? 5560 grep -v '^ *+' conftest.er1 >conftest.err 5561 rm -f conftest.er1 5562 cat conftest.err >&5 5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5564 (exit $ac_status); } >/dev/null; then 5565 if test -s conftest.err; then 5566 ac_cpp_err=$ac_c_preproc_warn_flag 5567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5568 else 5569 ac_cpp_err= 5570 fi 5571else 5572 ac_cpp_err=yes 5573fi 5574if test -z "$ac_cpp_err"; then 5575 : 5576else 5577 echo "$as_me: failed program was:" >&5 5578sed 's/^/| /' conftest.$ac_ext >&5 5579 5580 # Broken: fails on valid input. 5581continue 5582fi 5583 5584rm -f conftest.err conftest.$ac_ext 5585 5586 # OK, works on sane cases. Now check whether nonexistent headers 5587 # can be detected and how. 5588 cat >conftest.$ac_ext <<_ACEOF 5589/* confdefs.h. */ 5590_ACEOF 5591cat confdefs.h >>conftest.$ac_ext 5592cat >>conftest.$ac_ext <<_ACEOF 5593/* end confdefs.h. */ 5594#include <ac_nonexistent.h> 5595_ACEOF 5596if { (ac_try="$ac_cpp conftest.$ac_ext" 5597case "(($ac_try" in 5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5599 *) ac_try_echo=$ac_try;; 5600esac 5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5603 ac_status=$? 5604 grep -v '^ *+' conftest.er1 >conftest.err 5605 rm -f conftest.er1 5606 cat conftest.err >&5 5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5608 (exit $ac_status); } >/dev/null; then 5609 if test -s conftest.err; then 5610 ac_cpp_err=$ac_c_preproc_warn_flag 5611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5612 else 5613 ac_cpp_err= 5614 fi 5615else 5616 ac_cpp_err=yes 5617fi 5618if test -z "$ac_cpp_err"; then 5619 # Broken: success on invalid input. 5620continue 5621else 5622 echo "$as_me: failed program was:" >&5 5623sed 's/^/| /' conftest.$ac_ext >&5 5624 5625 # Passes both tests. 5626ac_preproc_ok=: 5627break 5628fi 5629 5630rm -f conftest.err conftest.$ac_ext 5631 5632done 5633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5634rm -f conftest.err conftest.$ac_ext 5635if $ac_preproc_ok; then 5636 : 5637else 5638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5639See \`config.log' for more details." >&5 5640echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5641See \`config.log' for more details." >&2;} 5642 { (exit 1); exit 1; }; } 5643fi 5644 5645ac_ext=c 5646ac_cpp='$CPP $CPPFLAGS' 5647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5649ac_compiler_gnu=$ac_cv_c_compiler_gnu 5650 5651ac_ext=c 5652ac_cpp='$CPP $CPPFLAGS' 5653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5655ac_compiler_gnu=$ac_cv_c_compiler_gnu 5656if test -n "$ac_tool_prefix"; then 5657 for ac_prog in gcc 5658 do 5659 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5660set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5661{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5663if test "${ac_cv_prog_CC+set}" = set; then 5664 echo $ECHO_N "(cached) $ECHO_C" >&6 5665else 5666 if test -n "$CC"; then 5667 ac_cv_prog_CC="$CC" # Let the user override the test. 5668else 5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5670for as_dir in $PATH 5671do 5672 IFS=$as_save_IFS 5673 test -z "$as_dir" && as_dir=. 5674 for ac_exec_ext in '' $ac_executable_extensions; do 5675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5676 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5678 break 2 5679 fi 5680done 5681done 5682IFS=$as_save_IFS 5683 5684fi 5685fi 5686CC=$ac_cv_prog_CC 5687if test -n "$CC"; then 5688 { echo "$as_me:$LINENO: result: $CC" >&5 5689echo "${ECHO_T}$CC" >&6; } 5690else 5691 { echo "$as_me:$LINENO: result: no" >&5 5692echo "${ECHO_T}no" >&6; } 5693fi 5694 5695 5696 test -n "$CC" && break 5697 done 5698fi 5699if test -z "$CC"; then 5700 ac_ct_CC=$CC 5701 for ac_prog in gcc 5702do 5703 # Extract the first word of "$ac_prog", so it can be a program name with args. 5704set dummy $ac_prog; ac_word=$2 5705{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5707if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5708 echo $ECHO_N "(cached) $ECHO_C" >&6 5709else 5710 if test -n "$ac_ct_CC"; then 5711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5712else 5713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5714for as_dir in $PATH 5715do 5716 IFS=$as_save_IFS 5717 test -z "$as_dir" && as_dir=. 5718 for ac_exec_ext in '' $ac_executable_extensions; do 5719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5720 ac_cv_prog_ac_ct_CC="$ac_prog" 5721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5722 break 2 5723 fi 5724done 5725done 5726IFS=$as_save_IFS 5727 5728fi 5729fi 5730ac_ct_CC=$ac_cv_prog_ac_ct_CC 5731if test -n "$ac_ct_CC"; then 5732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5733echo "${ECHO_T}$ac_ct_CC" >&6; } 5734else 5735 { echo "$as_me:$LINENO: result: no" >&5 5736echo "${ECHO_T}no" >&6; } 5737fi 5738 5739 5740 test -n "$ac_ct_CC" && break 5741done 5742 5743 if test "x$ac_ct_CC" = x; then 5744 CC="" 5745 else 5746 case $cross_compiling:$ac_tool_warned in 5747yes:) 5748{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5749whose name does not start with the host triplet. If you think this 5750configuration is useful to you, please write to autoconf@gnu.org." >&5 5751echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5752whose name does not start with the host triplet. If you think this 5753configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5754ac_tool_warned=yes ;; 5755esac 5756 CC=$ac_ct_CC 5757 fi 5758fi 5759 5760 5761test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 5762See \`config.log' for more details." >&5 5763echo "$as_me: error: no acceptable C compiler found in \$PATH 5764See \`config.log' for more details." >&2;} 5765 { (exit 1); exit 1; }; } 5766 5767# Provide some information about the compiler. 5768echo "$as_me:$LINENO: checking for C compiler version" >&5 5769ac_compiler=`set X $ac_compile; echo $2` 5770{ (ac_try="$ac_compiler --version >&5" 5771case "(($ac_try" in 5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5773 *) ac_try_echo=$ac_try;; 5774esac 5775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5776 (eval "$ac_compiler --version >&5") 2>&5 5777 ac_status=$? 5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5779 (exit $ac_status); } 5780{ (ac_try="$ac_compiler -v >&5" 5781case "(($ac_try" in 5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5783 *) ac_try_echo=$ac_try;; 5784esac 5785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5786 (eval "$ac_compiler -v >&5") 2>&5 5787 ac_status=$? 5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5789 (exit $ac_status); } 5790{ (ac_try="$ac_compiler -V >&5" 5791case "(($ac_try" in 5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5793 *) ac_try_echo=$ac_try;; 5794esac 5795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5796 (eval "$ac_compiler -V >&5") 2>&5 5797 ac_status=$? 5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5799 (exit $ac_status); } 5800 5801{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 5802echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 5803if test "${ac_cv_c_compiler_gnu+set}" = set; then 5804 echo $ECHO_N "(cached) $ECHO_C" >&6 5805else 5806 cat >conftest.$ac_ext <<_ACEOF 5807/* confdefs.h. */ 5808_ACEOF 5809cat confdefs.h >>conftest.$ac_ext 5810cat >>conftest.$ac_ext <<_ACEOF 5811/* end confdefs.h. */ 5812 5813int 5814main () 5815{ 5816#ifndef __GNUC__ 5817 choke me 5818#endif 5819 5820 ; 5821 return 0; 5822} 5823_ACEOF 5824rm -f conftest.$ac_objext 5825if { (ac_try="$ac_compile" 5826case "(($ac_try" in 5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5828 *) ac_try_echo=$ac_try;; 5829esac 5830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5831 (eval "$ac_compile") 2>conftest.er1 5832 ac_status=$? 5833 grep -v '^ *+' conftest.er1 >conftest.err 5834 rm -f conftest.er1 5835 cat conftest.err >&5 5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5837 (exit $ac_status); } && 5838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5839 { (case "(($ac_try" in 5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5841 *) ac_try_echo=$ac_try;; 5842esac 5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5844 (eval "$ac_try") 2>&5 5845 ac_status=$? 5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5847 (exit $ac_status); }; } && 5848 { ac_try='test -s conftest.$ac_objext' 5849 { (case "(($ac_try" in 5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5851 *) ac_try_echo=$ac_try;; 5852esac 5853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5854 (eval "$ac_try") 2>&5 5855 ac_status=$? 5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5857 (exit $ac_status); }; }; then 5858 ac_compiler_gnu=yes 5859else 5860 echo "$as_me: failed program was:" >&5 5861sed 's/^/| /' conftest.$ac_ext >&5 5862 5863 ac_compiler_gnu=no 5864fi 5865 5866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5867ac_cv_c_compiler_gnu=$ac_compiler_gnu 5868 5869fi 5870{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 5871echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 5872GCC=`test $ac_compiler_gnu = yes && echo yes` 5873ac_test_CFLAGS=${CFLAGS+set} 5874ac_save_CFLAGS=$CFLAGS 5875{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 5876echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 5877if test "${ac_cv_prog_cc_g+set}" = set; then 5878 echo $ECHO_N "(cached) $ECHO_C" >&6 5879else 5880 ac_save_c_werror_flag=$ac_c_werror_flag 5881 ac_c_werror_flag=yes 5882 ac_cv_prog_cc_g=no 5883 CFLAGS="-g" 5884 cat >conftest.$ac_ext <<_ACEOF 5885/* confdefs.h. */ 5886_ACEOF 5887cat confdefs.h >>conftest.$ac_ext 5888cat >>conftest.$ac_ext <<_ACEOF 5889/* end confdefs.h. */ 5890 5891int 5892main () 5893{ 5894 5895 ; 5896 return 0; 5897} 5898_ACEOF 5899rm -f conftest.$ac_objext 5900if { (ac_try="$ac_compile" 5901case "(($ac_try" in 5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5903 *) ac_try_echo=$ac_try;; 5904esac 5905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5906 (eval "$ac_compile") 2>conftest.er1 5907 ac_status=$? 5908 grep -v '^ *+' conftest.er1 >conftest.err 5909 rm -f conftest.er1 5910 cat conftest.err >&5 5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5912 (exit $ac_status); } && 5913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5914 { (case "(($ac_try" in 5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5916 *) ac_try_echo=$ac_try;; 5917esac 5918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5919 (eval "$ac_try") 2>&5 5920 ac_status=$? 5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5922 (exit $ac_status); }; } && 5923 { ac_try='test -s conftest.$ac_objext' 5924 { (case "(($ac_try" in 5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5926 *) ac_try_echo=$ac_try;; 5927esac 5928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5929 (eval "$ac_try") 2>&5 5930 ac_status=$? 5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5932 (exit $ac_status); }; }; then 5933 ac_cv_prog_cc_g=yes 5934else 5935 echo "$as_me: failed program was:" >&5 5936sed 's/^/| /' conftest.$ac_ext >&5 5937 5938 CFLAGS="" 5939 cat >conftest.$ac_ext <<_ACEOF 5940/* confdefs.h. */ 5941_ACEOF 5942cat confdefs.h >>conftest.$ac_ext 5943cat >>conftest.$ac_ext <<_ACEOF 5944/* end confdefs.h. */ 5945 5946int 5947main () 5948{ 5949 5950 ; 5951 return 0; 5952} 5953_ACEOF 5954rm -f conftest.$ac_objext 5955if { (ac_try="$ac_compile" 5956case "(($ac_try" in 5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5958 *) ac_try_echo=$ac_try;; 5959esac 5960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5961 (eval "$ac_compile") 2>conftest.er1 5962 ac_status=$? 5963 grep -v '^ *+' conftest.er1 >conftest.err 5964 rm -f conftest.er1 5965 cat conftest.err >&5 5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5967 (exit $ac_status); } && 5968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5969 { (case "(($ac_try" in 5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5971 *) ac_try_echo=$ac_try;; 5972esac 5973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5974 (eval "$ac_try") 2>&5 5975 ac_status=$? 5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5977 (exit $ac_status); }; } && 5978 { ac_try='test -s conftest.$ac_objext' 5979 { (case "(($ac_try" in 5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5981 *) ac_try_echo=$ac_try;; 5982esac 5983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5984 (eval "$ac_try") 2>&5 5985 ac_status=$? 5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5987 (exit $ac_status); }; }; then 5988 : 5989else 5990 echo "$as_me: failed program was:" >&5 5991sed 's/^/| /' conftest.$ac_ext >&5 5992 5993 ac_c_werror_flag=$ac_save_c_werror_flag 5994 CFLAGS="-g" 5995 cat >conftest.$ac_ext <<_ACEOF 5996/* confdefs.h. */ 5997_ACEOF 5998cat confdefs.h >>conftest.$ac_ext 5999cat >>conftest.$ac_ext <<_ACEOF 6000/* end confdefs.h. */ 6001 6002int 6003main () 6004{ 6005 6006 ; 6007 return 0; 6008} 6009_ACEOF 6010rm -f conftest.$ac_objext 6011if { (ac_try="$ac_compile" 6012case "(($ac_try" in 6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6014 *) ac_try_echo=$ac_try;; 6015esac 6016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6017 (eval "$ac_compile") 2>conftest.er1 6018 ac_status=$? 6019 grep -v '^ *+' conftest.er1 >conftest.err 6020 rm -f conftest.er1 6021 cat conftest.err >&5 6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6023 (exit $ac_status); } && 6024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6025 { (case "(($ac_try" in 6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6027 *) ac_try_echo=$ac_try;; 6028esac 6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6030 (eval "$ac_try") 2>&5 6031 ac_status=$? 6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6033 (exit $ac_status); }; } && 6034 { ac_try='test -s conftest.$ac_objext' 6035 { (case "(($ac_try" in 6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6037 *) ac_try_echo=$ac_try;; 6038esac 6039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6040 (eval "$ac_try") 2>&5 6041 ac_status=$? 6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6043 (exit $ac_status); }; }; then 6044 ac_cv_prog_cc_g=yes 6045else 6046 echo "$as_me: failed program was:" >&5 6047sed 's/^/| /' conftest.$ac_ext >&5 6048 6049 6050fi 6051 6052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6053fi 6054 6055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6056fi 6057 6058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6059 ac_c_werror_flag=$ac_save_c_werror_flag 6060fi 6061{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 6062echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 6063if test "$ac_test_CFLAGS" = set; then 6064 CFLAGS=$ac_save_CFLAGS 6065elif test $ac_cv_prog_cc_g = yes; then 6066 if test "$GCC" = yes; then 6067 CFLAGS="-g -O2" 6068 else 6069 CFLAGS="-g" 6070 fi 6071else 6072 if test "$GCC" = yes; then 6073 CFLAGS="-O2" 6074 else 6075 CFLAGS= 6076 fi 6077fi 6078{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 6079echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 6080if test "${ac_cv_prog_cc_c89+set}" = set; then 6081 echo $ECHO_N "(cached) $ECHO_C" >&6 6082else 6083 ac_cv_prog_cc_c89=no 6084ac_save_CC=$CC 6085cat >conftest.$ac_ext <<_ACEOF 6086/* confdefs.h. */ 6087_ACEOF 6088cat confdefs.h >>conftest.$ac_ext 6089cat >>conftest.$ac_ext <<_ACEOF 6090/* end confdefs.h. */ 6091#include <stdarg.h> 6092#include <stdio.h> 6093#include <sys/types.h> 6094#include <sys/stat.h> 6095/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6096struct buf { int x; }; 6097FILE * (*rcsopen) (struct buf *, struct stat *, int); 6098static char *e (p, i) 6099 char **p; 6100 int i; 6101{ 6102 return p[i]; 6103} 6104static char *f (char * (*g) (char **, int), char **p, ...) 6105{ 6106 char *s; 6107 va_list v; 6108 va_start (v,p); 6109 s = g (p, va_arg (v,int)); 6110 va_end (v); 6111 return s; 6112} 6113 6114/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6115 function prototypes and stuff, but not '\xHH' hex character constants. 6116 These don't provoke an error unfortunately, instead are silently treated 6117 as 'x'. The following induces an error, until -std is added to get 6118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6119 array size at least. It's necessary to write '\x00'==0 to get something 6120 that's true only with -std. */ 6121int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6122 6123/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6124 inside strings and character constants. */ 6125#define FOO(x) 'x' 6126int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6127 6128int test (int i, double x); 6129struct s1 {int (*f) (int a);}; 6130struct s2 {int (*f) (double a);}; 6131int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6132int argc; 6133char **argv; 6134int 6135main () 6136{ 6137return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6138 ; 6139 return 0; 6140} 6141_ACEOF 6142for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6144do 6145 CC="$ac_save_CC $ac_arg" 6146 rm -f conftest.$ac_objext 6147if { (ac_try="$ac_compile" 6148case "(($ac_try" in 6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6150 *) ac_try_echo=$ac_try;; 6151esac 6152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6153 (eval "$ac_compile") 2>conftest.er1 6154 ac_status=$? 6155 grep -v '^ *+' conftest.er1 >conftest.err 6156 rm -f conftest.er1 6157 cat conftest.err >&5 6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6159 (exit $ac_status); } && 6160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6161 { (case "(($ac_try" in 6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6163 *) ac_try_echo=$ac_try;; 6164esac 6165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6166 (eval "$ac_try") 2>&5 6167 ac_status=$? 6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6169 (exit $ac_status); }; } && 6170 { ac_try='test -s conftest.$ac_objext' 6171 { (case "(($ac_try" in 6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6173 *) ac_try_echo=$ac_try;; 6174esac 6175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6176 (eval "$ac_try") 2>&5 6177 ac_status=$? 6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6179 (exit $ac_status); }; }; then 6180 ac_cv_prog_cc_c89=$ac_arg 6181else 6182 echo "$as_me: failed program was:" >&5 6183sed 's/^/| /' conftest.$ac_ext >&5 6184 6185 6186fi 6187 6188rm -f core conftest.err conftest.$ac_objext 6189 test "x$ac_cv_prog_cc_c89" != "xno" && break 6190done 6191rm -f conftest.$ac_ext 6192CC=$ac_save_CC 6193 6194fi 6195# AC_CACHE_VAL 6196case "x$ac_cv_prog_cc_c89" in 6197 x) 6198 { echo "$as_me:$LINENO: result: none needed" >&5 6199echo "${ECHO_T}none needed" >&6; } ;; 6200 xno) 6201 { echo "$as_me:$LINENO: result: unsupported" >&5 6202echo "${ECHO_T}unsupported" >&6; } ;; 6203 *) 6204 CC="$CC $ac_cv_prog_cc_c89" 6205 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 6206echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 6207esac 6208 6209 6210ac_ext=c 6211ac_cpp='$CPP $CPPFLAGS' 6212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6214ac_compiler_gnu=$ac_cv_c_compiler_gnu 6215 6216ac_ext=cpp 6217ac_cpp='$CXXCPP $CPPFLAGS' 6218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6221if test -z "$CXX"; then 6222 if test -n "$CCC"; then 6223 CXX=$CCC 6224 else 6225 if test -n "$ac_tool_prefix"; then 6226 for ac_prog in g++ 6227 do 6228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6229set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6230{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6232if test "${ac_cv_prog_CXX+set}" = set; then 6233 echo $ECHO_N "(cached) $ECHO_C" >&6 6234else 6235 if test -n "$CXX"; then 6236 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6237else 6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6239for as_dir in $PATH 6240do 6241 IFS=$as_save_IFS 6242 test -z "$as_dir" && as_dir=. 6243 for ac_exec_ext in '' $ac_executable_extensions; do 6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6245 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6247 break 2 6248 fi 6249done 6250done 6251IFS=$as_save_IFS 6252 6253fi 6254fi 6255CXX=$ac_cv_prog_CXX 6256if test -n "$CXX"; then 6257 { echo "$as_me:$LINENO: result: $CXX" >&5 6258echo "${ECHO_T}$CXX" >&6; } 6259else 6260 { echo "$as_me:$LINENO: result: no" >&5 6261echo "${ECHO_T}no" >&6; } 6262fi 6263 6264 6265 test -n "$CXX" && break 6266 done 6267fi 6268if test -z "$CXX"; then 6269 ac_ct_CXX=$CXX 6270 for ac_prog in g++ 6271do 6272 # Extract the first word of "$ac_prog", so it can be a program name with args. 6273set dummy $ac_prog; ac_word=$2 6274{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6276if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6277 echo $ECHO_N "(cached) $ECHO_C" >&6 6278else 6279 if test -n "$ac_ct_CXX"; then 6280 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6281else 6282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6283for as_dir in $PATH 6284do 6285 IFS=$as_save_IFS 6286 test -z "$as_dir" && as_dir=. 6287 for ac_exec_ext in '' $ac_executable_extensions; do 6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6289 ac_cv_prog_ac_ct_CXX="$ac_prog" 6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6291 break 2 6292 fi 6293done 6294done 6295IFS=$as_save_IFS 6296 6297fi 6298fi 6299ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6300if test -n "$ac_ct_CXX"; then 6301 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6302echo "${ECHO_T}$ac_ct_CXX" >&6; } 6303else 6304 { echo "$as_me:$LINENO: result: no" >&5 6305echo "${ECHO_T}no" >&6; } 6306fi 6307 6308 6309 test -n "$ac_ct_CXX" && break 6310done 6311 6312 if test "x$ac_ct_CXX" = x; then 6313 CXX="g++" 6314 else 6315 case $cross_compiling:$ac_tool_warned in 6316yes:) 6317{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6318whose name does not start with the host triplet. If you think this 6319configuration is useful to you, please write to autoconf@gnu.org." >&5 6320echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6321whose name does not start with the host triplet. If you think this 6322configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6323ac_tool_warned=yes ;; 6324esac 6325 CXX=$ac_ct_CXX 6326 fi 6327fi 6328 6329 fi 6330fi 6331# Provide some information about the compiler. 6332echo "$as_me:$LINENO: checking for C++ compiler version" >&5 6333ac_compiler=`set X $ac_compile; echo $2` 6334{ (ac_try="$ac_compiler --version >&5" 6335case "(($ac_try" in 6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6337 *) ac_try_echo=$ac_try;; 6338esac 6339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6340 (eval "$ac_compiler --version >&5") 2>&5 6341 ac_status=$? 6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6343 (exit $ac_status); } 6344{ (ac_try="$ac_compiler -v >&5" 6345case "(($ac_try" in 6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6347 *) ac_try_echo=$ac_try;; 6348esac 6349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6350 (eval "$ac_compiler -v >&5") 2>&5 6351 ac_status=$? 6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6353 (exit $ac_status); } 6354{ (ac_try="$ac_compiler -V >&5" 6355case "(($ac_try" in 6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6357 *) ac_try_echo=$ac_try;; 6358esac 6359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6360 (eval "$ac_compiler -V >&5") 2>&5 6361 ac_status=$? 6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6363 (exit $ac_status); } 6364 6365{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6366echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 6367if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6368 echo $ECHO_N "(cached) $ECHO_C" >&6 6369else 6370 cat >conftest.$ac_ext <<_ACEOF 6371/* confdefs.h. */ 6372_ACEOF 6373cat confdefs.h >>conftest.$ac_ext 6374cat >>conftest.$ac_ext <<_ACEOF 6375/* end confdefs.h. */ 6376 6377int 6378main () 6379{ 6380#ifndef __GNUC__ 6381 choke me 6382#endif 6383 6384 ; 6385 return 0; 6386} 6387_ACEOF 6388rm -f conftest.$ac_objext 6389if { (ac_try="$ac_compile" 6390case "(($ac_try" in 6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6392 *) ac_try_echo=$ac_try;; 6393esac 6394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6395 (eval "$ac_compile") 2>conftest.er1 6396 ac_status=$? 6397 grep -v '^ *+' conftest.er1 >conftest.err 6398 rm -f conftest.er1 6399 cat conftest.err >&5 6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6401 (exit $ac_status); } && 6402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6403 { (case "(($ac_try" in 6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6405 *) ac_try_echo=$ac_try;; 6406esac 6407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6408 (eval "$ac_try") 2>&5 6409 ac_status=$? 6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6411 (exit $ac_status); }; } && 6412 { ac_try='test -s conftest.$ac_objext' 6413 { (case "(($ac_try" in 6414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6415 *) ac_try_echo=$ac_try;; 6416esac 6417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6418 (eval "$ac_try") 2>&5 6419 ac_status=$? 6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6421 (exit $ac_status); }; }; then 6422 ac_compiler_gnu=yes 6423else 6424 echo "$as_me: failed program was:" >&5 6425sed 's/^/| /' conftest.$ac_ext >&5 6426 6427 ac_compiler_gnu=no 6428fi 6429 6430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6431ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6432 6433fi 6434{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6435echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 6436GXX=`test $ac_compiler_gnu = yes && echo yes` 6437ac_test_CXXFLAGS=${CXXFLAGS+set} 6438ac_save_CXXFLAGS=$CXXFLAGS 6439{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6440echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 6441if test "${ac_cv_prog_cxx_g+set}" = set; then 6442 echo $ECHO_N "(cached) $ECHO_C" >&6 6443else 6444 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6445 ac_cxx_werror_flag=yes 6446 ac_cv_prog_cxx_g=no 6447 CXXFLAGS="-g" 6448 cat >conftest.$ac_ext <<_ACEOF 6449/* confdefs.h. */ 6450_ACEOF 6451cat confdefs.h >>conftest.$ac_ext 6452cat >>conftest.$ac_ext <<_ACEOF 6453/* end confdefs.h. */ 6454 6455int 6456main () 6457{ 6458 6459 ; 6460 return 0; 6461} 6462_ACEOF 6463rm -f conftest.$ac_objext 6464if { (ac_try="$ac_compile" 6465case "(($ac_try" in 6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6467 *) ac_try_echo=$ac_try;; 6468esac 6469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6470 (eval "$ac_compile") 2>conftest.er1 6471 ac_status=$? 6472 grep -v '^ *+' conftest.er1 >conftest.err 6473 rm -f conftest.er1 6474 cat conftest.err >&5 6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6476 (exit $ac_status); } && 6477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6478 { (case "(($ac_try" in 6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6480 *) ac_try_echo=$ac_try;; 6481esac 6482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6483 (eval "$ac_try") 2>&5 6484 ac_status=$? 6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6486 (exit $ac_status); }; } && 6487 { ac_try='test -s conftest.$ac_objext' 6488 { (case "(($ac_try" in 6489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6490 *) ac_try_echo=$ac_try;; 6491esac 6492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6493 (eval "$ac_try") 2>&5 6494 ac_status=$? 6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6496 (exit $ac_status); }; }; then 6497 ac_cv_prog_cxx_g=yes 6498else 6499 echo "$as_me: failed program was:" >&5 6500sed 's/^/| /' conftest.$ac_ext >&5 6501 6502 CXXFLAGS="" 6503 cat >conftest.$ac_ext <<_ACEOF 6504/* confdefs.h. */ 6505_ACEOF 6506cat confdefs.h >>conftest.$ac_ext 6507cat >>conftest.$ac_ext <<_ACEOF 6508/* end confdefs.h. */ 6509 6510int 6511main () 6512{ 6513 6514 ; 6515 return 0; 6516} 6517_ACEOF 6518rm -f conftest.$ac_objext 6519if { (ac_try="$ac_compile" 6520case "(($ac_try" in 6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6522 *) ac_try_echo=$ac_try;; 6523esac 6524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6525 (eval "$ac_compile") 2>conftest.er1 6526 ac_status=$? 6527 grep -v '^ *+' conftest.er1 >conftest.err 6528 rm -f conftest.er1 6529 cat conftest.err >&5 6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6531 (exit $ac_status); } && 6532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6533 { (case "(($ac_try" in 6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6535 *) ac_try_echo=$ac_try;; 6536esac 6537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6538 (eval "$ac_try") 2>&5 6539 ac_status=$? 6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6541 (exit $ac_status); }; } && 6542 { ac_try='test -s conftest.$ac_objext' 6543 { (case "(($ac_try" in 6544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6545 *) ac_try_echo=$ac_try;; 6546esac 6547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6548 (eval "$ac_try") 2>&5 6549 ac_status=$? 6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6551 (exit $ac_status); }; }; then 6552 : 6553else 6554 echo "$as_me: failed program was:" >&5 6555sed 's/^/| /' conftest.$ac_ext >&5 6556 6557 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6558 CXXFLAGS="-g" 6559 cat >conftest.$ac_ext <<_ACEOF 6560/* confdefs.h. */ 6561_ACEOF 6562cat confdefs.h >>conftest.$ac_ext 6563cat >>conftest.$ac_ext <<_ACEOF 6564/* end confdefs.h. */ 6565 6566int 6567main () 6568{ 6569 6570 ; 6571 return 0; 6572} 6573_ACEOF 6574rm -f conftest.$ac_objext 6575if { (ac_try="$ac_compile" 6576case "(($ac_try" in 6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6578 *) ac_try_echo=$ac_try;; 6579esac 6580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6581 (eval "$ac_compile") 2>conftest.er1 6582 ac_status=$? 6583 grep -v '^ *+' conftest.er1 >conftest.err 6584 rm -f conftest.er1 6585 cat conftest.err >&5 6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6587 (exit $ac_status); } && 6588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6589 { (case "(($ac_try" in 6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6591 *) ac_try_echo=$ac_try;; 6592esac 6593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6594 (eval "$ac_try") 2>&5 6595 ac_status=$? 6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6597 (exit $ac_status); }; } && 6598 { ac_try='test -s conftest.$ac_objext' 6599 { (case "(($ac_try" in 6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6601 *) ac_try_echo=$ac_try;; 6602esac 6603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6604 (eval "$ac_try") 2>&5 6605 ac_status=$? 6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6607 (exit $ac_status); }; }; then 6608 ac_cv_prog_cxx_g=yes 6609else 6610 echo "$as_me: failed program was:" >&5 6611sed 's/^/| /' conftest.$ac_ext >&5 6612 6613 6614fi 6615 6616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6617fi 6618 6619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6620fi 6621 6622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6623 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6624fi 6625{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6626echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 6627if test "$ac_test_CXXFLAGS" = set; then 6628 CXXFLAGS=$ac_save_CXXFLAGS 6629elif test $ac_cv_prog_cxx_g = yes; then 6630 if test "$GXX" = yes; then 6631 CXXFLAGS="-g -O2" 6632 else 6633 CXXFLAGS="-g" 6634 fi 6635else 6636 if test "$GXX" = yes; then 6637 CXXFLAGS="-O2" 6638 else 6639 CXXFLAGS= 6640 fi 6641fi 6642ac_ext=c 6643ac_cpp='$CPP $CPPFLAGS' 6644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6646ac_compiler_gnu=$ac_cv_c_compiler_gnu 6647 6648 6649{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6650echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 6651if test "${lt_cv_path_NM+set}" = set; then 6652 echo $ECHO_N "(cached) $ECHO_C" >&6 6653else 6654 if test -n "$NM"; then 6655 # Let the user override the test. 6656 lt_cv_path_NM="$NM" 6657else 6658 lt_nm_to_check="${ac_tool_prefix}nm" 6659 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6660 lt_nm_to_check="$lt_nm_to_check nm" 6661 fi 6662 for lt_tmp_nm in $lt_nm_to_check; do 6663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6664 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6665 IFS="$lt_save_ifs" 6666 test -z "$ac_dir" && ac_dir=. 6667 tmp_nm="$ac_dir/$lt_tmp_nm" 6668 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6669 # Check to see if the nm accepts a BSD-compat flag. 6670 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6671 # nm: unknown option "B" ignored 6672 # Tru64's nm complains that /dev/null is an invalid object file 6673 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6674 */dev/null* | *'Invalid file or object type'*) 6675 lt_cv_path_NM="$tmp_nm -B" 6676 break 6677 ;; 6678 *) 6679 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6680 */dev/null*) 6681 lt_cv_path_NM="$tmp_nm -p" 6682 break 6683 ;; 6684 *) 6685 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6686 continue # so that we can try to find one that supports BSD flags 6687 ;; 6688 esac 6689 ;; 6690 esac 6691 fi 6692 done 6693 IFS="$lt_save_ifs" 6694 done 6695 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6696fi 6697fi 6698{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6699echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6700NM="$lt_cv_path_NM" 6701 6702 6703 6704{ echo "$as_me:$LINENO: checking for GNU make" >&5 6705echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6706if test "${llvm_cv_gnu_make_command+set}" = set; then 6707 echo $ECHO_N "(cached) $ECHO_C" >&6 6708else 6709 llvm_cv_gnu_make_command='' 6710 for a in "$MAKE" make gmake gnumake ; do 6711 if test -z "$a" ; then continue ; fi ; 6712 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6713 then 6714 llvm_cv_gnu_make_command=$a ; 6715 break; 6716 fi 6717 done 6718fi 6719{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6720echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6721 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6722 ifGNUmake='' ; 6723 else 6724 ifGNUmake='#' ; 6725 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6726echo "${ECHO_T}\"Not found\"" >&6; }; 6727 fi 6728 6729 6730{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6731echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6732LN_S=$as_ln_s 6733if test "$LN_S" = "ln -s"; then 6734 { echo "$as_me:$LINENO: result: yes" >&5 6735echo "${ECHO_T}yes" >&6; } 6736else 6737 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6738echo "${ECHO_T}no, using $LN_S" >&6; } 6739fi 6740 6741# Extract the first word of "cmp", so it can be a program name with args. 6742set dummy cmp; ac_word=$2 6743{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6745if test "${ac_cv_path_CMP+set}" = set; then 6746 echo $ECHO_N "(cached) $ECHO_C" >&6 6747else 6748 case $CMP in 6749 [\\/]* | ?:[\\/]*) 6750 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6751 ;; 6752 *) 6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6754for as_dir in $PATH 6755do 6756 IFS=$as_save_IFS 6757 test -z "$as_dir" && as_dir=. 6758 for ac_exec_ext in '' $ac_executable_extensions; do 6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6760 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6762 break 2 6763 fi 6764done 6765done 6766IFS=$as_save_IFS 6767 6768 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6769 ;; 6770esac 6771fi 6772CMP=$ac_cv_path_CMP 6773if test -n "$CMP"; then 6774 { echo "$as_me:$LINENO: result: $CMP" >&5 6775echo "${ECHO_T}$CMP" >&6; } 6776else 6777 { echo "$as_me:$LINENO: result: no" >&5 6778echo "${ECHO_T}no" >&6; } 6779fi 6780 6781 6782# Extract the first word of "cp", so it can be a program name with args. 6783set dummy cp; ac_word=$2 6784{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6786if test "${ac_cv_path_CP+set}" = set; then 6787 echo $ECHO_N "(cached) $ECHO_C" >&6 6788else 6789 case $CP in 6790 [\\/]* | ?:[\\/]*) 6791 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6792 ;; 6793 *) 6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6795for as_dir in $PATH 6796do 6797 IFS=$as_save_IFS 6798 test -z "$as_dir" && as_dir=. 6799 for ac_exec_ext in '' $ac_executable_extensions; do 6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6801 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6803 break 2 6804 fi 6805done 6806done 6807IFS=$as_save_IFS 6808 6809 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6810 ;; 6811esac 6812fi 6813CP=$ac_cv_path_CP 6814if test -n "$CP"; then 6815 { echo "$as_me:$LINENO: result: $CP" >&5 6816echo "${ECHO_T}$CP" >&6; } 6817else 6818 { echo "$as_me:$LINENO: result: no" >&5 6819echo "${ECHO_T}no" >&6; } 6820fi 6821 6822 6823# Extract the first word of "date", so it can be a program name with args. 6824set dummy date; ac_word=$2 6825{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6827if test "${ac_cv_path_DATE+set}" = set; then 6828 echo $ECHO_N "(cached) $ECHO_C" >&6 6829else 6830 case $DATE in 6831 [\\/]* | ?:[\\/]*) 6832 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6833 ;; 6834 *) 6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6836for as_dir in $PATH 6837do 6838 IFS=$as_save_IFS 6839 test -z "$as_dir" && as_dir=. 6840 for ac_exec_ext in '' $ac_executable_extensions; do 6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6842 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6844 break 2 6845 fi 6846done 6847done 6848IFS=$as_save_IFS 6849 6850 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6851 ;; 6852esac 6853fi 6854DATE=$ac_cv_path_DATE 6855if test -n "$DATE"; then 6856 { echo "$as_me:$LINENO: result: $DATE" >&5 6857echo "${ECHO_T}$DATE" >&6; } 6858else 6859 { echo "$as_me:$LINENO: result: no" >&5 6860echo "${ECHO_T}no" >&6; } 6861fi 6862 6863 6864# Extract the first word of "find", so it can be a program name with args. 6865set dummy find; ac_word=$2 6866{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6868if test "${ac_cv_path_FIND+set}" = set; then 6869 echo $ECHO_N "(cached) $ECHO_C" >&6 6870else 6871 case $FIND in 6872 [\\/]* | ?:[\\/]*) 6873 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6874 ;; 6875 *) 6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6877for as_dir in $PATH 6878do 6879 IFS=$as_save_IFS 6880 test -z "$as_dir" && as_dir=. 6881 for ac_exec_ext in '' $ac_executable_extensions; do 6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6883 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6885 break 2 6886 fi 6887done 6888done 6889IFS=$as_save_IFS 6890 6891 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6892 ;; 6893esac 6894fi 6895FIND=$ac_cv_path_FIND 6896if test -n "$FIND"; then 6897 { echo "$as_me:$LINENO: result: $FIND" >&5 6898echo "${ECHO_T}$FIND" >&6; } 6899else 6900 { echo "$as_me:$LINENO: result: no" >&5 6901echo "${ECHO_T}no" >&6; } 6902fi 6903 6904 6905# Extract the first word of "grep", so it can be a program name with args. 6906set dummy grep; ac_word=$2 6907{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6909if test "${ac_cv_path_GREP+set}" = set; then 6910 echo $ECHO_N "(cached) $ECHO_C" >&6 6911else 6912 case $GREP in 6913 [\\/]* | ?:[\\/]*) 6914 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6915 ;; 6916 *) 6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6918for as_dir in $PATH 6919do 6920 IFS=$as_save_IFS 6921 test -z "$as_dir" && as_dir=. 6922 for ac_exec_ext in '' $ac_executable_extensions; do 6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6924 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6926 break 2 6927 fi 6928done 6929done 6930IFS=$as_save_IFS 6931 6932 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6933 ;; 6934esac 6935fi 6936GREP=$ac_cv_path_GREP 6937if test -n "$GREP"; then 6938 { echo "$as_me:$LINENO: result: $GREP" >&5 6939echo "${ECHO_T}$GREP" >&6; } 6940else 6941 { echo "$as_me:$LINENO: result: no" >&5 6942echo "${ECHO_T}no" >&6; } 6943fi 6944 6945 6946# Extract the first word of "mkdir", so it can be a program name with args. 6947set dummy mkdir; ac_word=$2 6948{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6950if test "${ac_cv_path_MKDIR+set}" = set; then 6951 echo $ECHO_N "(cached) $ECHO_C" >&6 6952else 6953 case $MKDIR in 6954 [\\/]* | ?:[\\/]*) 6955 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6956 ;; 6957 *) 6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6959for as_dir in $PATH 6960do 6961 IFS=$as_save_IFS 6962 test -z "$as_dir" && as_dir=. 6963 for ac_exec_ext in '' $ac_executable_extensions; do 6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6965 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6967 break 2 6968 fi 6969done 6970done 6971IFS=$as_save_IFS 6972 6973 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6974 ;; 6975esac 6976fi 6977MKDIR=$ac_cv_path_MKDIR 6978if test -n "$MKDIR"; then 6979 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6980echo "${ECHO_T}$MKDIR" >&6; } 6981else 6982 { echo "$as_me:$LINENO: result: no" >&5 6983echo "${ECHO_T}no" >&6; } 6984fi 6985 6986 6987# Extract the first word of "mv", so it can be a program name with args. 6988set dummy mv; ac_word=$2 6989{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6991if test "${ac_cv_path_MV+set}" = set; then 6992 echo $ECHO_N "(cached) $ECHO_C" >&6 6993else 6994 case $MV in 6995 [\\/]* | ?:[\\/]*) 6996 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6997 ;; 6998 *) 6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7000for as_dir in $PATH 7001do 7002 IFS=$as_save_IFS 7003 test -z "$as_dir" && as_dir=. 7004 for ac_exec_ext in '' $ac_executable_extensions; do 7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7006 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7008 break 2 7009 fi 7010done 7011done 7012IFS=$as_save_IFS 7013 7014 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 7015 ;; 7016esac 7017fi 7018MV=$ac_cv_path_MV 7019if test -n "$MV"; then 7020 { echo "$as_me:$LINENO: result: $MV" >&5 7021echo "${ECHO_T}$MV" >&6; } 7022else 7023 { echo "$as_me:$LINENO: result: no" >&5 7024echo "${ECHO_T}no" >&6; } 7025fi 7026 7027 7028if test -n "$ac_tool_prefix"; then 7029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7030set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7031{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7033if test "${ac_cv_prog_RANLIB+set}" = set; then 7034 echo $ECHO_N "(cached) $ECHO_C" >&6 7035else 7036 if test -n "$RANLIB"; then 7037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7038else 7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7040for as_dir in $PATH 7041do 7042 IFS=$as_save_IFS 7043 test -z "$as_dir" && as_dir=. 7044 for ac_exec_ext in '' $ac_executable_extensions; do 7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7048 break 2 7049 fi 7050done 7051done 7052IFS=$as_save_IFS 7053 7054fi 7055fi 7056RANLIB=$ac_cv_prog_RANLIB 7057if test -n "$RANLIB"; then 7058 { echo "$as_me:$LINENO: result: $RANLIB" >&5 7059echo "${ECHO_T}$RANLIB" >&6; } 7060else 7061 { echo "$as_me:$LINENO: result: no" >&5 7062echo "${ECHO_T}no" >&6; } 7063fi 7064 7065 7066fi 7067if test -z "$ac_cv_prog_RANLIB"; then 7068 ac_ct_RANLIB=$RANLIB 7069 # Extract the first word of "ranlib", so it can be a program name with args. 7070set dummy ranlib; ac_word=$2 7071{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7073if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 7074 echo $ECHO_N "(cached) $ECHO_C" >&6 7075else 7076 if test -n "$ac_ct_RANLIB"; then 7077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7078else 7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7080for as_dir in $PATH 7081do 7082 IFS=$as_save_IFS 7083 test -z "$as_dir" && as_dir=. 7084 for ac_exec_ext in '' $ac_executable_extensions; do 7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7086 ac_cv_prog_ac_ct_RANLIB="ranlib" 7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7088 break 2 7089 fi 7090done 7091done 7092IFS=$as_save_IFS 7093 7094fi 7095fi 7096ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7097if test -n "$ac_ct_RANLIB"; then 7098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7099echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7100else 7101 { echo "$as_me:$LINENO: result: no" >&5 7102echo "${ECHO_T}no" >&6; } 7103fi 7104 7105 if test "x$ac_ct_RANLIB" = x; then 7106 RANLIB=":" 7107 else 7108 case $cross_compiling:$ac_tool_warned in 7109yes:) 7110{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7111whose name does not start with the host triplet. If you think this 7112configuration is useful to you, please write to autoconf@gnu.org." >&5 7113echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7114whose name does not start with the host triplet. If you think this 7115configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7116ac_tool_warned=yes ;; 7117esac 7118 RANLIB=$ac_ct_RANLIB 7119 fi 7120else 7121 RANLIB="$ac_cv_prog_RANLIB" 7122fi 7123 7124if test -n "$ac_tool_prefix"; then 7125 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7126set dummy ${ac_tool_prefix}ar; ac_word=$2 7127{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7129if test "${ac_cv_prog_AR+set}" = set; then 7130 echo $ECHO_N "(cached) $ECHO_C" >&6 7131else 7132 if test -n "$AR"; then 7133 ac_cv_prog_AR="$AR" # Let the user override the test. 7134else 7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7136for as_dir in $PATH 7137do 7138 IFS=$as_save_IFS 7139 test -z "$as_dir" && as_dir=. 7140 for ac_exec_ext in '' $ac_executable_extensions; do 7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7142 ac_cv_prog_AR="${ac_tool_prefix}ar" 7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7144 break 2 7145 fi 7146done 7147done 7148IFS=$as_save_IFS 7149 7150fi 7151fi 7152AR=$ac_cv_prog_AR 7153if test -n "$AR"; then 7154 { echo "$as_me:$LINENO: result: $AR" >&5 7155echo "${ECHO_T}$AR" >&6; } 7156else 7157 { echo "$as_me:$LINENO: result: no" >&5 7158echo "${ECHO_T}no" >&6; } 7159fi 7160 7161 7162fi 7163if test -z "$ac_cv_prog_AR"; then 7164 ac_ct_AR=$AR 7165 # Extract the first word of "ar", so it can be a program name with args. 7166set dummy ar; ac_word=$2 7167{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7169if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7170 echo $ECHO_N "(cached) $ECHO_C" >&6 7171else 7172 if test -n "$ac_ct_AR"; then 7173 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7174else 7175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7176for as_dir in $PATH 7177do 7178 IFS=$as_save_IFS 7179 test -z "$as_dir" && as_dir=. 7180 for ac_exec_ext in '' $ac_executable_extensions; do 7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7182 ac_cv_prog_ac_ct_AR="ar" 7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7184 break 2 7185 fi 7186done 7187done 7188IFS=$as_save_IFS 7189 7190fi 7191fi 7192ac_ct_AR=$ac_cv_prog_ac_ct_AR 7193if test -n "$ac_ct_AR"; then 7194 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7195echo "${ECHO_T}$ac_ct_AR" >&6; } 7196else 7197 { echo "$as_me:$LINENO: result: no" >&5 7198echo "${ECHO_T}no" >&6; } 7199fi 7200 7201 if test "x$ac_ct_AR" = x; then 7202 AR="false" 7203 else 7204 case $cross_compiling:$ac_tool_warned in 7205yes:) 7206{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7207whose name does not start with the host triplet. If you think this 7208configuration is useful to you, please write to autoconf@gnu.org." >&5 7209echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7210whose name does not start with the host triplet. If you think this 7211configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7212ac_tool_warned=yes ;; 7213esac 7214 AR=$ac_ct_AR 7215 fi 7216else 7217 AR="$ac_cv_prog_AR" 7218fi 7219 7220# Extract the first word of "rm", so it can be a program name with args. 7221set dummy rm; ac_word=$2 7222{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7224if test "${ac_cv_path_RM+set}" = set; then 7225 echo $ECHO_N "(cached) $ECHO_C" >&6 7226else 7227 case $RM in 7228 [\\/]* | ?:[\\/]*) 7229 ac_cv_path_RM="$RM" # Let the user override the test with a path. 7230 ;; 7231 *) 7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7233for as_dir in $PATH 7234do 7235 IFS=$as_save_IFS 7236 test -z "$as_dir" && as_dir=. 7237 for ac_exec_ext in '' $ac_executable_extensions; do 7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7239 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7241 break 2 7242 fi 7243done 7244done 7245IFS=$as_save_IFS 7246 7247 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 7248 ;; 7249esac 7250fi 7251RM=$ac_cv_path_RM 7252if test -n "$RM"; then 7253 { echo "$as_me:$LINENO: result: $RM" >&5 7254echo "${ECHO_T}$RM" >&6; } 7255else 7256 { echo "$as_me:$LINENO: result: no" >&5 7257echo "${ECHO_T}no" >&6; } 7258fi 7259 7260 7261# Extract the first word of "sed", so it can be a program name with args. 7262set dummy sed; ac_word=$2 7263{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7265if test "${ac_cv_path_SED+set}" = set; then 7266 echo $ECHO_N "(cached) $ECHO_C" >&6 7267else 7268 case $SED in 7269 [\\/]* | ?:[\\/]*) 7270 ac_cv_path_SED="$SED" # Let the user override the test with a path. 7271 ;; 7272 *) 7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7274for as_dir in $PATH 7275do 7276 IFS=$as_save_IFS 7277 test -z "$as_dir" && as_dir=. 7278 for ac_exec_ext in '' $ac_executable_extensions; do 7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7280 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7282 break 2 7283 fi 7284done 7285done 7286IFS=$as_save_IFS 7287 7288 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 7289 ;; 7290esac 7291fi 7292SED=$ac_cv_path_SED 7293if test -n "$SED"; then 7294 { echo "$as_me:$LINENO: result: $SED" >&5 7295echo "${ECHO_T}$SED" >&6; } 7296else 7297 { echo "$as_me:$LINENO: result: no" >&5 7298echo "${ECHO_T}no" >&6; } 7299fi 7300 7301 7302# Extract the first word of "tar", so it can be a program name with args. 7303set dummy tar; ac_word=$2 7304{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7306if test "${ac_cv_path_TAR+set}" = set; then 7307 echo $ECHO_N "(cached) $ECHO_C" >&6 7308else 7309 case $TAR in 7310 [\\/]* | ?:[\\/]*) 7311 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 7312 ;; 7313 *) 7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7315for as_dir in $PATH 7316do 7317 IFS=$as_save_IFS 7318 test -z "$as_dir" && as_dir=. 7319 for ac_exec_ext in '' $ac_executable_extensions; do 7320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7321 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 7322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7323 break 2 7324 fi 7325done 7326done 7327IFS=$as_save_IFS 7328 7329 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 7330 ;; 7331esac 7332fi 7333TAR=$ac_cv_path_TAR 7334if test -n "$TAR"; then 7335 { echo "$as_me:$LINENO: result: $TAR" >&5 7336echo "${ECHO_T}$TAR" >&6; } 7337else 7338 { echo "$as_me:$LINENO: result: no" >&5 7339echo "${ECHO_T}no" >&6; } 7340fi 7341 7342 7343# Extract the first word of "pwd", so it can be a program name with args. 7344set dummy pwd; ac_word=$2 7345{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7347if test "${ac_cv_path_BINPWD+set}" = set; then 7348 echo $ECHO_N "(cached) $ECHO_C" >&6 7349else 7350 case $BINPWD in 7351 [\\/]* | ?:[\\/]*) 7352 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 7353 ;; 7354 *) 7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7356for as_dir in $PATH 7357do 7358 IFS=$as_save_IFS 7359 test -z "$as_dir" && as_dir=. 7360 for ac_exec_ext in '' $ac_executable_extensions; do 7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7362 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7364 break 2 7365 fi 7366done 7367done 7368IFS=$as_save_IFS 7369 7370 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 7371 ;; 7372esac 7373fi 7374BINPWD=$ac_cv_path_BINPWD 7375if test -n "$BINPWD"; then 7376 { echo "$as_me:$LINENO: result: $BINPWD" >&5 7377echo "${ECHO_T}$BINPWD" >&6; } 7378else 7379 { echo "$as_me:$LINENO: result: no" >&5 7380echo "${ECHO_T}no" >&6; } 7381fi 7382 7383 7384 7385# Extract the first word of "Graphviz", so it can be a program name with args. 7386set dummy Graphviz; ac_word=$2 7387{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7389if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 7390 echo $ECHO_N "(cached) $ECHO_C" >&6 7391else 7392 case $GRAPHVIZ in 7393 [\\/]* | ?:[\\/]*) 7394 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 7395 ;; 7396 *) 7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7398for as_dir in $PATH 7399do 7400 IFS=$as_save_IFS 7401 test -z "$as_dir" && as_dir=. 7402 for ac_exec_ext in '' $ac_executable_extensions; do 7403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7404 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7406 break 2 7407 fi 7408done 7409done 7410IFS=$as_save_IFS 7411 7412 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 7413 ;; 7414esac 7415fi 7416GRAPHVIZ=$ac_cv_path_GRAPHVIZ 7417if test -n "$GRAPHVIZ"; then 7418 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 7419echo "${ECHO_T}$GRAPHVIZ" >&6; } 7420else 7421 { echo "$as_me:$LINENO: result: no" >&5 7422echo "${ECHO_T}no" >&6; } 7423fi 7424 7425 7426if test "$GRAPHVIZ" != "echo Graphviz" ; then 7427 7428cat >>confdefs.h <<\_ACEOF 7429#define HAVE_GRAPHVIZ 1 7430_ACEOF 7431 7432 if test "$llvm_cv_os_type" = "MingW" ; then 7433 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7434 fi 7435 7436cat >>confdefs.h <<_ACEOF 7437#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 7438_ACEOF 7439 7440fi 7441# Extract the first word of "dot", so it can be a program name with args. 7442set dummy dot; ac_word=$2 7443{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7445if test "${ac_cv_path_DOT+set}" = set; then 7446 echo $ECHO_N "(cached) $ECHO_C" >&6 7447else 7448 case $DOT in 7449 [\\/]* | ?:[\\/]*) 7450 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 7451 ;; 7452 *) 7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7454for as_dir in $PATH 7455do 7456 IFS=$as_save_IFS 7457 test -z "$as_dir" && as_dir=. 7458 for ac_exec_ext in '' $ac_executable_extensions; do 7459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7460 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 7461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7462 break 2 7463 fi 7464done 7465done 7466IFS=$as_save_IFS 7467 7468 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 7469 ;; 7470esac 7471fi 7472DOT=$ac_cv_path_DOT 7473if test -n "$DOT"; then 7474 { echo "$as_me:$LINENO: result: $DOT" >&5 7475echo "${ECHO_T}$DOT" >&6; } 7476else 7477 { echo "$as_me:$LINENO: result: no" >&5 7478echo "${ECHO_T}no" >&6; } 7479fi 7480 7481 7482if test "$DOT" != "echo dot" ; then 7483 7484cat >>confdefs.h <<\_ACEOF 7485#define HAVE_DOT 1 7486_ACEOF 7487 7488 if test "$llvm_cv_os_type" = "MingW" ; then 7489 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7490 fi 7491 7492cat >>confdefs.h <<_ACEOF 7493#define LLVM_PATH_DOT "$DOT${EXEEXT}" 7494_ACEOF 7495 7496fi 7497# Extract the first word of "fdp", so it can be a program name with args. 7498set dummy fdp; ac_word=$2 7499{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7501if test "${ac_cv_path_FDP+set}" = set; then 7502 echo $ECHO_N "(cached) $ECHO_C" >&6 7503else 7504 case $FDP in 7505 [\\/]* | ?:[\\/]*) 7506 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 7507 ;; 7508 *) 7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7510for as_dir in $PATH 7511do 7512 IFS=$as_save_IFS 7513 test -z "$as_dir" && as_dir=. 7514 for ac_exec_ext in '' $ac_executable_extensions; do 7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7516 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7518 break 2 7519 fi 7520done 7521done 7522IFS=$as_save_IFS 7523 7524 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 7525 ;; 7526esac 7527fi 7528FDP=$ac_cv_path_FDP 7529if test -n "$FDP"; then 7530 { echo "$as_me:$LINENO: result: $FDP" >&5 7531echo "${ECHO_T}$FDP" >&6; } 7532else 7533 { echo "$as_me:$LINENO: result: no" >&5 7534echo "${ECHO_T}no" >&6; } 7535fi 7536 7537 7538if test "$FDP" != "echo fdp" ; then 7539 7540cat >>confdefs.h <<\_ACEOF 7541#define HAVE_FDP 1 7542_ACEOF 7543 7544 if test "$llvm_cv_os_type" = "MingW" ; then 7545 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7546 fi 7547 7548cat >>confdefs.h <<_ACEOF 7549#define LLVM_PATH_FDP "$FDP${EXEEXT}" 7550_ACEOF 7551 7552fi 7553# Extract the first word of "neato", so it can be a program name with args. 7554set dummy neato; ac_word=$2 7555{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7557if test "${ac_cv_path_NEATO+set}" = set; then 7558 echo $ECHO_N "(cached) $ECHO_C" >&6 7559else 7560 case $NEATO in 7561 [\\/]* | ?:[\\/]*) 7562 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 7563 ;; 7564 *) 7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7566for as_dir in $PATH 7567do 7568 IFS=$as_save_IFS 7569 test -z "$as_dir" && as_dir=. 7570 for ac_exec_ext in '' $ac_executable_extensions; do 7571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7572 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 7573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7574 break 2 7575 fi 7576done 7577done 7578IFS=$as_save_IFS 7579 7580 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 7581 ;; 7582esac 7583fi 7584NEATO=$ac_cv_path_NEATO 7585if test -n "$NEATO"; then 7586 { echo "$as_me:$LINENO: result: $NEATO" >&5 7587echo "${ECHO_T}$NEATO" >&6; } 7588else 7589 { echo "$as_me:$LINENO: result: no" >&5 7590echo "${ECHO_T}no" >&6; } 7591fi 7592 7593 7594if test "$NEATO" != "echo neato" ; then 7595 7596cat >>confdefs.h <<\_ACEOF 7597#define HAVE_NEATO 1 7598_ACEOF 7599 7600 if test "$llvm_cv_os_type" = "MingW" ; then 7601 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7602 fi 7603 7604cat >>confdefs.h <<_ACEOF 7605#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 7606_ACEOF 7607 7608fi 7609# Extract the first word of "twopi", so it can be a program name with args. 7610set dummy twopi; ac_word=$2 7611{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7613if test "${ac_cv_path_TWOPI+set}" = set; then 7614 echo $ECHO_N "(cached) $ECHO_C" >&6 7615else 7616 case $TWOPI in 7617 [\\/]* | ?:[\\/]*) 7618 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 7619 ;; 7620 *) 7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7622for as_dir in $PATH 7623do 7624 IFS=$as_save_IFS 7625 test -z "$as_dir" && as_dir=. 7626 for ac_exec_ext in '' $ac_executable_extensions; do 7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7628 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7630 break 2 7631 fi 7632done 7633done 7634IFS=$as_save_IFS 7635 7636 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 7637 ;; 7638esac 7639fi 7640TWOPI=$ac_cv_path_TWOPI 7641if test -n "$TWOPI"; then 7642 { echo "$as_me:$LINENO: result: $TWOPI" >&5 7643echo "${ECHO_T}$TWOPI" >&6; } 7644else 7645 { echo "$as_me:$LINENO: result: no" >&5 7646echo "${ECHO_T}no" >&6; } 7647fi 7648 7649 7650if test "$TWOPI" != "echo twopi" ; then 7651 7652cat >>confdefs.h <<\_ACEOF 7653#define HAVE_TWOPI 1 7654_ACEOF 7655 7656 if test "$llvm_cv_os_type" = "MingW" ; then 7657 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7658 fi 7659 7660cat >>confdefs.h <<_ACEOF 7661#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 7662_ACEOF 7663 7664fi 7665# Extract the first word of "circo", so it can be a program name with args. 7666set dummy circo; ac_word=$2 7667{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7669if test "${ac_cv_path_CIRCO+set}" = set; then 7670 echo $ECHO_N "(cached) $ECHO_C" >&6 7671else 7672 case $CIRCO in 7673 [\\/]* | ?:[\\/]*) 7674 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 7675 ;; 7676 *) 7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7678for as_dir in $PATH 7679do 7680 IFS=$as_save_IFS 7681 test -z "$as_dir" && as_dir=. 7682 for ac_exec_ext in '' $ac_executable_extensions; do 7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7684 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 7685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7686 break 2 7687 fi 7688done 7689done 7690IFS=$as_save_IFS 7691 7692 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 7693 ;; 7694esac 7695fi 7696CIRCO=$ac_cv_path_CIRCO 7697if test -n "$CIRCO"; then 7698 { echo "$as_me:$LINENO: result: $CIRCO" >&5 7699echo "${ECHO_T}$CIRCO" >&6; } 7700else 7701 { echo "$as_me:$LINENO: result: no" >&5 7702echo "${ECHO_T}no" >&6; } 7703fi 7704 7705 7706if test "$CIRCO" != "echo circo" ; then 7707 7708cat >>confdefs.h <<\_ACEOF 7709#define HAVE_CIRCO 1 7710_ACEOF 7711 7712 if test "$llvm_cv_os_type" = "MingW" ; then 7713 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7714 fi 7715 7716cat >>confdefs.h <<_ACEOF 7717#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 7718_ACEOF 7719 7720fi 7721for ac_prog in gv gsview32 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_GV+set}" = set; then 7728 echo $ECHO_N "(cached) $ECHO_C" >&6 7729else 7730 case $GV in 7731 [\\/]* | ?:[\\/]*) 7732 ac_cv_path_GV="$GV" # 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_GV="$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 7753GV=$ac_cv_path_GV 7754if test -n "$GV"; then 7755 { echo "$as_me:$LINENO: result: $GV" >&5 7756echo "${ECHO_T}$GV" >&6; } 7757else 7758 { echo "$as_me:$LINENO: result: no" >&5 7759echo "${ECHO_T}no" >&6; } 7760fi 7761 7762 7763 test -n "$GV" && break 7764done 7765test -n "$GV" || GV="echo gv" 7766 7767if test "$GV" != "echo gv" ; then 7768 7769cat >>confdefs.h <<\_ACEOF 7770#define HAVE_GV 1 7771_ACEOF 7772 7773 if test "$llvm_cv_os_type" = "MingW" ; then 7774 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7775 fi 7776 7777cat >>confdefs.h <<_ACEOF 7778#define LLVM_PATH_GV "$GV${EXEEXT}" 7779_ACEOF 7780 7781fi 7782# Extract the first word of "dotty", so it can be a program name with args. 7783set dummy dotty; ac_word=$2 7784{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7786if test "${ac_cv_path_DOTTY+set}" = set; then 7787 echo $ECHO_N "(cached) $ECHO_C" >&6 7788else 7789 case $DOTTY in 7790 [\\/]* | ?:[\\/]*) 7791 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 7792 ;; 7793 *) 7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7795for as_dir in $PATH 7796do 7797 IFS=$as_save_IFS 7798 test -z "$as_dir" && as_dir=. 7799 for ac_exec_ext in '' $ac_executable_extensions; do 7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7801 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 7802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7803 break 2 7804 fi 7805done 7806done 7807IFS=$as_save_IFS 7808 7809 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 7810 ;; 7811esac 7812fi 7813DOTTY=$ac_cv_path_DOTTY 7814if test -n "$DOTTY"; then 7815 { echo "$as_me:$LINENO: result: $DOTTY" >&5 7816echo "${ECHO_T}$DOTTY" >&6; } 7817else 7818 { echo "$as_me:$LINENO: result: no" >&5 7819echo "${ECHO_T}no" >&6; } 7820fi 7821 7822 7823if test "$DOTTY" != "echo dotty" ; then 7824 7825cat >>confdefs.h <<\_ACEOF 7826#define HAVE_DOTTY 1 7827_ACEOF 7828 7829 if test "$llvm_cv_os_type" = "MingW" ; then 7830 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7831 fi 7832 7833cat >>confdefs.h <<_ACEOF 7834#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 7835_ACEOF 7836 7837fi 7838# Extract the first word of "xdot.py", so it can be a program name with args. 7839set dummy xdot.py; ac_word=$2 7840{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7842if test "${ac_cv_path_XDOT_PY+set}" = set; then 7843 echo $ECHO_N "(cached) $ECHO_C" >&6 7844else 7845 case $XDOT_PY in 7846 [\\/]* | ?:[\\/]*) 7847 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 7848 ;; 7849 *) 7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7851for as_dir in $PATH 7852do 7853 IFS=$as_save_IFS 7854 test -z "$as_dir" && as_dir=. 7855 for ac_exec_ext in '' $ac_executable_extensions; do 7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7857 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 7858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7859 break 2 7860 fi 7861done 7862done 7863IFS=$as_save_IFS 7864 7865 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 7866 ;; 7867esac 7868fi 7869XDOT_PY=$ac_cv_path_XDOT_PY 7870if test -n "$XDOT_PY"; then 7871 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 7872echo "${ECHO_T}$XDOT_PY" >&6; } 7873else 7874 { echo "$as_me:$LINENO: result: no" >&5 7875echo "${ECHO_T}no" >&6; } 7876fi 7877 7878 7879if test "$XDOT_PY" != "echo xdot.py" ; then 7880 7881cat >>confdefs.h <<\_ACEOF 7882#define HAVE_XDOT_PY 1 7883_ACEOF 7884 7885 if test "$llvm_cv_os_type" = "MingW" ; then 7886 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7887 fi 7888 7889cat >>confdefs.h <<_ACEOF 7890#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 7891_ACEOF 7892 7893fi 7894 7895 7896# Extract the first word of "perl", so it can be a program name with args. 7897set dummy perl; ac_word=$2 7898{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7900if test "${ac_cv_path_PERL+set}" = set; then 7901 echo $ECHO_N "(cached) $ECHO_C" >&6 7902else 7903 case $PERL in 7904 [\\/]* | ?:[\\/]*) 7905 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7906 ;; 7907 *) 7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7909for as_dir in $PATH 7910do 7911 IFS=$as_save_IFS 7912 test -z "$as_dir" && as_dir=. 7913 for ac_exec_ext in '' $ac_executable_extensions; do 7914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7915 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 7916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7917 break 2 7918 fi 7919done 7920done 7921IFS=$as_save_IFS 7922 7923 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" 7924 ;; 7925esac 7926fi 7927PERL=$ac_cv_path_PERL 7928if test -n "$PERL"; then 7929 { echo "$as_me:$LINENO: result: $PERL" >&5 7930echo "${ECHO_T}$PERL" >&6; } 7931else 7932 { echo "$as_me:$LINENO: result: no" >&5 7933echo "${ECHO_T}no" >&6; } 7934fi 7935 7936 7937if test "$PERL" != "none"; then 7938 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 7939echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } 7940 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then 7941 { echo "$as_me:$LINENO: result: yes" >&5 7942echo "${ECHO_T}yes" >&6; } 7943 else 7944 PERL=none 7945 { echo "$as_me:$LINENO: result: not found" >&5 7946echo "${ECHO_T}not found" >&6; } 7947 fi 7948fi 7949 7950 7951if test x"$PERL" = xnone; then 7952 HAVE_PERL=0 7953 7954 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 7955echo "$as_me: error: perl is required but was not found, please install it" >&2;} 7956 { (exit 1); exit 1; }; } 7957else 7958 HAVE_PERL=1 7959 7960fi 7961 7962# Find a good install program. We prefer a C program (faster), 7963# so one script is as good as another. But avoid the broken or 7964# incompatible versions: 7965# SysV /etc/install, /usr/sbin/install 7966# SunOS /usr/etc/install 7967# IRIX /sbin/install 7968# AIX /bin/install 7969# AmigaOS /C/install, which installs bootblocks on floppy discs 7970# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7971# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7972# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7973# OS/2's system install, which has a completely different semantic 7974# ./install, which can be erroneously created by make from ./install.sh. 7975{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 7976echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 7977if test -z "$INSTALL"; then 7978if test "${ac_cv_path_install+set}" = set; then 7979 echo $ECHO_N "(cached) $ECHO_C" >&6 7980else 7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7982for as_dir in $PATH 7983do 7984 IFS=$as_save_IFS 7985 test -z "$as_dir" && as_dir=. 7986 # Account for people who put trailing slashes in PATH elements. 7987case $as_dir/ in 7988 ./ | .// | /cC/* | \ 7989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 7991 /usr/ucb/* ) ;; 7992 *) 7993 # OSF1 and SCO ODT 3.0 have their own names for install. 7994 # Don't use installbsd from OSF since it installs stuff as root 7995 # by default. 7996 for ac_prog in ginstall scoinst install; do 7997 for ac_exec_ext in '' $ac_executable_extensions; do 7998 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 7999 if test $ac_prog = install && 8000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8001 # AIX install. It has an incompatible calling convention. 8002 : 8003 elif test $ac_prog = install && 8004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8005 # program-specific install script used by HP pwplus--don't use. 8006 : 8007 else 8008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 8009 break 3 8010 fi 8011 fi 8012 done 8013 done 8014 ;; 8015esac 8016done 8017IFS=$as_save_IFS 8018 8019 8020fi 8021 if test "${ac_cv_path_install+set}" = set; then 8022 INSTALL=$ac_cv_path_install 8023 else 8024 # As a last resort, use the slow shell script. Don't cache a 8025 # value for INSTALL within a source directory, because that will 8026 # break other packages using the cache if that directory is 8027 # removed, or if the value is a relative name. 8028 INSTALL=$ac_install_sh 8029 fi 8030fi 8031{ echo "$as_me:$LINENO: result: $INSTALL" >&5 8032echo "${ECHO_T}$INSTALL" >&6; } 8033 8034# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8035# It thinks the first close brace ends the variable substitution. 8036test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8037 8038test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 8039 8040test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8041 8042case "$INSTALL" in 8043 [\\/$]* | ?:[\\/]* ) ;; 8044 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 8045esac 8046 8047# Extract the first word of "bzip2", so it can be a program name with args. 8048set dummy bzip2; ac_word=$2 8049{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8051if test "${ac_cv_path_BZIP2+set}" = set; then 8052 echo $ECHO_N "(cached) $ECHO_C" >&6 8053else 8054 case $BZIP2 in 8055 [\\/]* | ?:[\\/]*) 8056 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 8057 ;; 8058 *) 8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8060for as_dir in $PATH 8061do 8062 IFS=$as_save_IFS 8063 test -z "$as_dir" && as_dir=. 8064 for ac_exec_ext in '' $ac_executable_extensions; do 8065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8066 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 8067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8068 break 2 8069 fi 8070done 8071done 8072IFS=$as_save_IFS 8073 8074 ;; 8075esac 8076fi 8077BZIP2=$ac_cv_path_BZIP2 8078if test -n "$BZIP2"; then 8079 { echo "$as_me:$LINENO: result: $BZIP2" >&5 8080echo "${ECHO_T}$BZIP2" >&6; } 8081else 8082 { echo "$as_me:$LINENO: result: no" >&5 8083echo "${ECHO_T}no" >&6; } 8084fi 8085 8086 8087# Extract the first word of "cat", so it can be a program name with args. 8088set dummy cat; ac_word=$2 8089{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8091if test "${ac_cv_path_CAT+set}" = set; then 8092 echo $ECHO_N "(cached) $ECHO_C" >&6 8093else 8094 case $CAT in 8095 [\\/]* | ?:[\\/]*) 8096 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 8097 ;; 8098 *) 8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8100for as_dir in $PATH 8101do 8102 IFS=$as_save_IFS 8103 test -z "$as_dir" && as_dir=. 8104 for ac_exec_ext in '' $ac_executable_extensions; do 8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8106 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 8107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8108 break 2 8109 fi 8110done 8111done 8112IFS=$as_save_IFS 8113 8114 ;; 8115esac 8116fi 8117CAT=$ac_cv_path_CAT 8118if test -n "$CAT"; then 8119 { echo "$as_me:$LINENO: result: $CAT" >&5 8120echo "${ECHO_T}$CAT" >&6; } 8121else 8122 { echo "$as_me:$LINENO: result: no" >&5 8123echo "${ECHO_T}no" >&6; } 8124fi 8125 8126 8127# Extract the first word of "doxygen", so it can be a program name with args. 8128set dummy doxygen; ac_word=$2 8129{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8131if test "${ac_cv_path_DOXYGEN+set}" = set; then 8132 echo $ECHO_N "(cached) $ECHO_C" >&6 8133else 8134 case $DOXYGEN in 8135 [\\/]* | ?:[\\/]*) 8136 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 8137 ;; 8138 *) 8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8140for as_dir in $PATH 8141do 8142 IFS=$as_save_IFS 8143 test -z "$as_dir" && as_dir=. 8144 for ac_exec_ext in '' $ac_executable_extensions; do 8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8146 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 8147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8148 break 2 8149 fi 8150done 8151done 8152IFS=$as_save_IFS 8153 8154 ;; 8155esac 8156fi 8157DOXYGEN=$ac_cv_path_DOXYGEN 8158if test -n "$DOXYGEN"; then 8159 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 8160echo "${ECHO_T}$DOXYGEN" >&6; } 8161else 8162 { echo "$as_me:$LINENO: result: no" >&5 8163echo "${ECHO_T}no" >&6; } 8164fi 8165 8166 8167# Extract the first word of "groff", so it can be a program name with args. 8168set dummy groff; ac_word=$2 8169{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8171if test "${ac_cv_path_GROFF+set}" = set; then 8172 echo $ECHO_N "(cached) $ECHO_C" >&6 8173else 8174 case $GROFF in 8175 [\\/]* | ?:[\\/]*) 8176 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 8177 ;; 8178 *) 8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8180for as_dir in $PATH 8181do 8182 IFS=$as_save_IFS 8183 test -z "$as_dir" && as_dir=. 8184 for ac_exec_ext in '' $ac_executable_extensions; do 8185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8186 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 8187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8188 break 2 8189 fi 8190done 8191done 8192IFS=$as_save_IFS 8193 8194 ;; 8195esac 8196fi 8197GROFF=$ac_cv_path_GROFF 8198if test -n "$GROFF"; then 8199 { echo "$as_me:$LINENO: result: $GROFF" >&5 8200echo "${ECHO_T}$GROFF" >&6; } 8201else 8202 { echo "$as_me:$LINENO: result: no" >&5 8203echo "${ECHO_T}no" >&6; } 8204fi 8205 8206 8207# Extract the first word of "gzip", so it can be a program name with args. 8208set dummy gzip; ac_word=$2 8209{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8210echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8211if test "${ac_cv_path_GZIP+set}" = set; then 8212 echo $ECHO_N "(cached) $ECHO_C" >&6 8213else 8214 case $GZIP in 8215 [\\/]* | ?:[\\/]*) 8216 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8217 ;; 8218 *) 8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8220for as_dir in $PATH 8221do 8222 IFS=$as_save_IFS 8223 test -z "$as_dir" && as_dir=. 8224 for ac_exec_ext in '' $ac_executable_extensions; do 8225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8226 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8228 break 2 8229 fi 8230done 8231done 8232IFS=$as_save_IFS 8233 8234 ;; 8235esac 8236fi 8237GZIP=$ac_cv_path_GZIP 8238if test -n "$GZIP"; then 8239 { echo "$as_me:$LINENO: result: $GZIP" >&5 8240echo "${ECHO_T}$GZIP" >&6; } 8241else 8242 { echo "$as_me:$LINENO: result: no" >&5 8243echo "${ECHO_T}no" >&6; } 8244fi 8245 8246 8247# Extract the first word of "pod2html", so it can be a program name with args. 8248set dummy pod2html; ac_word=$2 8249{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8251if test "${ac_cv_path_POD2HTML+set}" = set; then 8252 echo $ECHO_N "(cached) $ECHO_C" >&6 8253else 8254 case $POD2HTML in 8255 [\\/]* | ?:[\\/]*) 8256 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. 8257 ;; 8258 *) 8259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8260for as_dir in $PATH 8261do 8262 IFS=$as_save_IFS 8263 test -z "$as_dir" && as_dir=. 8264 for ac_exec_ext in '' $ac_executable_extensions; do 8265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8266 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" 8267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8268 break 2 8269 fi 8270done 8271done 8272IFS=$as_save_IFS 8273 8274 ;; 8275esac 8276fi 8277POD2HTML=$ac_cv_path_POD2HTML 8278if test -n "$POD2HTML"; then 8279 { echo "$as_me:$LINENO: result: $POD2HTML" >&5 8280echo "${ECHO_T}$POD2HTML" >&6; } 8281else 8282 { echo "$as_me:$LINENO: result: no" >&5 8283echo "${ECHO_T}no" >&6; } 8284fi 8285 8286 8287# Extract the first word of "pod2man", so it can be a program name with args. 8288set dummy pod2man; ac_word=$2 8289{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8291if test "${ac_cv_path_POD2MAN+set}" = set; then 8292 echo $ECHO_N "(cached) $ECHO_C" >&6 8293else 8294 case $POD2MAN in 8295 [\\/]* | ?:[\\/]*) 8296 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. 8297 ;; 8298 *) 8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8300for as_dir in $PATH 8301do 8302 IFS=$as_save_IFS 8303 test -z "$as_dir" && as_dir=. 8304 for ac_exec_ext in '' $ac_executable_extensions; do 8305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8306 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" 8307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8308 break 2 8309 fi 8310done 8311done 8312IFS=$as_save_IFS 8313 8314 ;; 8315esac 8316fi 8317POD2MAN=$ac_cv_path_POD2MAN 8318if test -n "$POD2MAN"; then 8319 { echo "$as_me:$LINENO: result: $POD2MAN" >&5 8320echo "${ECHO_T}$POD2MAN" >&6; } 8321else 8322 { echo "$as_me:$LINENO: result: no" >&5 8323echo "${ECHO_T}no" >&6; } 8324fi 8325 8326 8327# Extract the first word of "pdfroff", so it can be a program name with args. 8328set dummy pdfroff; ac_word=$2 8329{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8331if test "${ac_cv_path_PDFROFF+set}" = set; then 8332 echo $ECHO_N "(cached) $ECHO_C" >&6 8333else 8334 case $PDFROFF in 8335 [\\/]* | ?:[\\/]*) 8336 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 8337 ;; 8338 *) 8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8340for as_dir in $PATH 8341do 8342 IFS=$as_save_IFS 8343 test -z "$as_dir" && as_dir=. 8344 for ac_exec_ext in '' $ac_executable_extensions; do 8345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8346 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 8347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8348 break 2 8349 fi 8350done 8351done 8352IFS=$as_save_IFS 8353 8354 ;; 8355esac 8356fi 8357PDFROFF=$ac_cv_path_PDFROFF 8358if test -n "$PDFROFF"; then 8359 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 8360echo "${ECHO_T}$PDFROFF" >&6; } 8361else 8362 { echo "$as_me:$LINENO: result: no" >&5 8363echo "${ECHO_T}no" >&6; } 8364fi 8365 8366 8367# Extract the first word of "runtest", so it can be a program name with args. 8368set dummy runtest; ac_word=$2 8369{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8371if test "${ac_cv_path_RUNTEST+set}" = set; then 8372 echo $ECHO_N "(cached) $ECHO_C" >&6 8373else 8374 case $RUNTEST in 8375 [\\/]* | ?:[\\/]*) 8376 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. 8377 ;; 8378 *) 8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8380for as_dir in $PATH 8381do 8382 IFS=$as_save_IFS 8383 test -z "$as_dir" && as_dir=. 8384 for ac_exec_ext in '' $ac_executable_extensions; do 8385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8386 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" 8387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8388 break 2 8389 fi 8390done 8391done 8392IFS=$as_save_IFS 8393 8394 ;; 8395esac 8396fi 8397RUNTEST=$ac_cv_path_RUNTEST 8398if test -n "$RUNTEST"; then 8399 { echo "$as_me:$LINENO: result: $RUNTEST" >&5 8400echo "${ECHO_T}$RUNTEST" >&6; } 8401else 8402 { echo "$as_me:$LINENO: result: no" >&5 8403echo "${ECHO_T}no" >&6; } 8404fi 8405 8406 8407 8408no_itcl=true 8409{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 8410echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } 8411 8412# Check whether --with-tclinclude was given. 8413if test "${with_tclinclude+set}" = set; then 8414 withval=$with_tclinclude; with_tclinclude=${withval} 8415else 8416 with_tclinclude='' 8417fi 8418 8419if test "${ac_cv_path_tclsh+set}" = set; then 8420 echo $ECHO_N "(cached) $ECHO_C" >&6 8421else 8422 8423if test x"${with_tclinclude}" != x ; then 8424 if test -f ${with_tclinclude}/tclsh ; then 8425 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` 8426 elif test -f ${with_tclinclude}/src/tclsh ; then 8427 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` 8428 else 8429 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 8430echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} 8431 { (exit 1); exit 1; }; } 8432 fi 8433fi 8434fi 8435 8436 8437if test x"${ac_cv_path_tclsh}" = x ; then 8438 { echo "$as_me:$LINENO: result: none" >&5 8439echo "${ECHO_T}none" >&6; } 8440 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 8441do 8442 # Extract the first word of "$ac_prog", so it can be a program name with args. 8443set dummy $ac_prog; ac_word=$2 8444{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8446if test "${ac_cv_path_TCLSH+set}" = set; then 8447 echo $ECHO_N "(cached) $ECHO_C" >&6 8448else 8449 case $TCLSH in 8450 [\\/]* | ?:[\\/]*) 8451 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. 8452 ;; 8453 *) 8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8455for as_dir in $PATH 8456do 8457 IFS=$as_save_IFS 8458 test -z "$as_dir" && as_dir=. 8459 for ac_exec_ext in '' $ac_executable_extensions; do 8460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8461 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" 8462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8463 break 2 8464 fi 8465done 8466done 8467IFS=$as_save_IFS 8468 8469 ;; 8470esac 8471fi 8472TCLSH=$ac_cv_path_TCLSH 8473if test -n "$TCLSH"; then 8474 { echo "$as_me:$LINENO: result: $TCLSH" >&5 8475echo "${ECHO_T}$TCLSH" >&6; } 8476else 8477 { echo "$as_me:$LINENO: result: no" >&5 8478echo "${ECHO_T}no" >&6; } 8479fi 8480 8481 8482 test -n "$TCLSH" && break 8483done 8484 8485 if test x"${TCLSH}" = x ; then 8486 ac_cv_path_tclsh=''; 8487 else 8488 ac_cv_path_tclsh="${TCLSH}"; 8489 fi 8490else 8491 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 8492echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } 8493 TCLSH="${ac_cv_path_tclsh}" 8494 8495fi 8496 8497# Extract the first word of "zip", so it can be a program name with args. 8498set dummy zip; ac_word=$2 8499{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8501if test "${ac_cv_path_ZIP+set}" = set; then 8502 echo $ECHO_N "(cached) $ECHO_C" >&6 8503else 8504 case $ZIP in 8505 [\\/]* | ?:[\\/]*) 8506 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 8507 ;; 8508 *) 8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8510for as_dir in $PATH 8511do 8512 IFS=$as_save_IFS 8513 test -z "$as_dir" && as_dir=. 8514 for ac_exec_ext in '' $ac_executable_extensions; do 8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8516 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 8517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8518 break 2 8519 fi 8520done 8521done 8522IFS=$as_save_IFS 8523 8524 ;; 8525esac 8526fi 8527ZIP=$ac_cv_path_ZIP 8528if test -n "$ZIP"; then 8529 { echo "$as_me:$LINENO: result: $ZIP" >&5 8530echo "${ECHO_T}$ZIP" >&6; } 8531else 8532 { echo "$as_me:$LINENO: result: no" >&5 8533echo "${ECHO_T}no" >&6; } 8534fi 8535 8536 8537for ac_prog in ocamlc 8538do 8539 # Extract the first word of "$ac_prog", so it can be a program name with args. 8540set dummy $ac_prog; ac_word=$2 8541{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8543if test "${ac_cv_path_OCAMLC+set}" = set; then 8544 echo $ECHO_N "(cached) $ECHO_C" >&6 8545else 8546 case $OCAMLC in 8547 [\\/]* | ?:[\\/]*) 8548 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 8549 ;; 8550 *) 8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8552for as_dir in $PATH 8553do 8554 IFS=$as_save_IFS 8555 test -z "$as_dir" && as_dir=. 8556 for ac_exec_ext in '' $ac_executable_extensions; do 8557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8558 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 8559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8560 break 2 8561 fi 8562done 8563done 8564IFS=$as_save_IFS 8565 8566 ;; 8567esac 8568fi 8569OCAMLC=$ac_cv_path_OCAMLC 8570if test -n "$OCAMLC"; then 8571 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 8572echo "${ECHO_T}$OCAMLC" >&6; } 8573else 8574 { echo "$as_me:$LINENO: result: no" >&5 8575echo "${ECHO_T}no" >&6; } 8576fi 8577 8578 8579 test -n "$OCAMLC" && break 8580done 8581 8582for ac_prog in ocamlopt 8583do 8584 # Extract the first word of "$ac_prog", so it can be a program name with args. 8585set dummy $ac_prog; ac_word=$2 8586{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8588if test "${ac_cv_path_OCAMLOPT+set}" = set; then 8589 echo $ECHO_N "(cached) $ECHO_C" >&6 8590else 8591 case $OCAMLOPT in 8592 [\\/]* | ?:[\\/]*) 8593 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 8594 ;; 8595 *) 8596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8597for as_dir in $PATH 8598do 8599 IFS=$as_save_IFS 8600 test -z "$as_dir" && as_dir=. 8601 for ac_exec_ext in '' $ac_executable_extensions; do 8602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8603 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 8604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8605 break 2 8606 fi 8607done 8608done 8609IFS=$as_save_IFS 8610 8611 ;; 8612esac 8613fi 8614OCAMLOPT=$ac_cv_path_OCAMLOPT 8615if test -n "$OCAMLOPT"; then 8616 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 8617echo "${ECHO_T}$OCAMLOPT" >&6; } 8618else 8619 { echo "$as_me:$LINENO: result: no" >&5 8620echo "${ECHO_T}no" >&6; } 8621fi 8622 8623 8624 test -n "$OCAMLOPT" && break 8625done 8626 8627for ac_prog in ocamldep 8628do 8629 # Extract the first word of "$ac_prog", so it can be a program name with args. 8630set dummy $ac_prog; ac_word=$2 8631{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8633if test "${ac_cv_path_OCAMLDEP+set}" = set; then 8634 echo $ECHO_N "(cached) $ECHO_C" >&6 8635else 8636 case $OCAMLDEP in 8637 [\\/]* | ?:[\\/]*) 8638 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 8639 ;; 8640 *) 8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8642for as_dir in $PATH 8643do 8644 IFS=$as_save_IFS 8645 test -z "$as_dir" && as_dir=. 8646 for ac_exec_ext in '' $ac_executable_extensions; do 8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8648 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 8649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8650 break 2 8651 fi 8652done 8653done 8654IFS=$as_save_IFS 8655 8656 ;; 8657esac 8658fi 8659OCAMLDEP=$ac_cv_path_OCAMLDEP 8660if test -n "$OCAMLDEP"; then 8661 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 8662echo "${ECHO_T}$OCAMLDEP" >&6; } 8663else 8664 { echo "$as_me:$LINENO: result: no" >&5 8665echo "${ECHO_T}no" >&6; } 8666fi 8667 8668 8669 test -n "$OCAMLDEP" && break 8670done 8671 8672for ac_prog in ocamldoc 8673do 8674 # Extract the first word of "$ac_prog", so it can be a program name with args. 8675set dummy $ac_prog; ac_word=$2 8676{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8678if test "${ac_cv_path_OCAMLDOC+set}" = set; then 8679 echo $ECHO_N "(cached) $ECHO_C" >&6 8680else 8681 case $OCAMLDOC in 8682 [\\/]* | ?:[\\/]*) 8683 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 8684 ;; 8685 *) 8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8687for as_dir in $PATH 8688do 8689 IFS=$as_save_IFS 8690 test -z "$as_dir" && as_dir=. 8691 for ac_exec_ext in '' $ac_executable_extensions; do 8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8693 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 8694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8695 break 2 8696 fi 8697done 8698done 8699IFS=$as_save_IFS 8700 8701 ;; 8702esac 8703fi 8704OCAMLDOC=$ac_cv_path_OCAMLDOC 8705if test -n "$OCAMLDOC"; then 8706 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 8707echo "${ECHO_T}$OCAMLDOC" >&6; } 8708else 8709 { echo "$as_me:$LINENO: result: no" >&5 8710echo "${ECHO_T}no" >&6; } 8711fi 8712 8713 8714 test -n "$OCAMLDOC" && break 8715done 8716 8717for ac_prog in gas as 8718do 8719 # Extract the first word of "$ac_prog", so it can be a program name with args. 8720set dummy $ac_prog; ac_word=$2 8721{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8723if test "${ac_cv_path_GAS+set}" = set; then 8724 echo $ECHO_N "(cached) $ECHO_C" >&6 8725else 8726 case $GAS in 8727 [\\/]* | ?:[\\/]*) 8728 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 8729 ;; 8730 *) 8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8732for as_dir in $PATH 8733do 8734 IFS=$as_save_IFS 8735 test -z "$as_dir" && as_dir=. 8736 for ac_exec_ext in '' $ac_executable_extensions; do 8737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8738 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 8739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8740 break 2 8741 fi 8742done 8743done 8744IFS=$as_save_IFS 8745 8746 ;; 8747esac 8748fi 8749GAS=$ac_cv_path_GAS 8750if test -n "$GAS"; then 8751 { echo "$as_me:$LINENO: result: $GAS" >&5 8752echo "${ECHO_T}$GAS" >&6; } 8753else 8754 { echo "$as_me:$LINENO: result: no" >&5 8755echo "${ECHO_T}no" >&6; } 8756fi 8757 8758 8759 test -n "$GAS" && break 8760done 8761 8762 8763{ echo "$as_me:$LINENO: checking for linker version" >&5 8764echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 8765if test "${llvm_cv_link_version+set}" = set; then 8766 echo $ECHO_N "(cached) $ECHO_C" >&6 8767else 8768 8769 version_string="$(ld -v 2>&1 | head -1)" 8770 8771 # Check for ld64. 8772 if (echo "$version_string" | grep -q "ld64"); then 8773 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") 8774 else 8775 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 8776 fi 8777 8778fi 8779{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 8780echo "${ECHO_T}$llvm_cv_link_version" >&6; } 8781 8782cat >>confdefs.h <<_ACEOF 8783#define HOST_LINK_VERSION "$llvm_cv_link_version" 8784_ACEOF 8785 8786 8787 8788{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 8789echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 8790if test "${llvm_cv_link_use_r+set}" = set; then 8791 echo $ECHO_N "(cached) $ECHO_C" >&6 8792else 8793 ac_ext=c 8794ac_cpp='$CPP $CPPFLAGS' 8795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8797ac_compiler_gnu=$ac_cv_c_compiler_gnu 8798 8799 oldcflags="$CFLAGS" 8800 CFLAGS="$CFLAGS -Wl,-R." 8801 cat >conftest.$ac_ext <<_ACEOF 8802/* confdefs.h. */ 8803_ACEOF 8804cat confdefs.h >>conftest.$ac_ext 8805cat >>conftest.$ac_ext <<_ACEOF 8806/* end confdefs.h. */ 8807 8808int 8809main () 8810{ 8811 8812 ; 8813 return 0; 8814} 8815_ACEOF 8816rm -f conftest.$ac_objext conftest$ac_exeext 8817if { (ac_try="$ac_link" 8818case "(($ac_try" in 8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8820 *) ac_try_echo=$ac_try;; 8821esac 8822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8823 (eval "$ac_link") 2>conftest.er1 8824 ac_status=$? 8825 grep -v '^ *+' conftest.er1 >conftest.err 8826 rm -f conftest.er1 8827 cat conftest.err >&5 8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8829 (exit $ac_status); } && 8830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8831 { (case "(($ac_try" in 8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8833 *) ac_try_echo=$ac_try;; 8834esac 8835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8836 (eval "$ac_try") 2>&5 8837 ac_status=$? 8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8839 (exit $ac_status); }; } && 8840 { ac_try='test -s conftest$ac_exeext' 8841 { (case "(($ac_try" in 8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8843 *) ac_try_echo=$ac_try;; 8844esac 8845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8846 (eval "$ac_try") 2>&5 8847 ac_status=$? 8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8849 (exit $ac_status); }; }; then 8850 llvm_cv_link_use_r=yes 8851else 8852 echo "$as_me: failed program was:" >&5 8853sed 's/^/| /' conftest.$ac_ext >&5 8854 8855 llvm_cv_link_use_r=no 8856fi 8857 8858rm -f core conftest.err conftest.$ac_objext \ 8859 conftest$ac_exeext conftest.$ac_ext 8860 CFLAGS="$oldcflags" 8861 ac_ext=c 8862ac_cpp='$CPP $CPPFLAGS' 8863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8865ac_compiler_gnu=$ac_cv_c_compiler_gnu 8866 8867 8868fi 8869{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 8870echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 8871if test "$llvm_cv_link_use_r" = yes ; then 8872 8873cat >>confdefs.h <<\_ACEOF 8874#define HAVE_LINK_R 1 8875_ACEOF 8876 8877 fi 8878 8879 8880{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 8881echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 8882if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 8883 echo $ECHO_N "(cached) $ECHO_C" >&6 8884else 8885 ac_ext=c 8886ac_cpp='$CPP $CPPFLAGS' 8887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8889ac_compiler_gnu=$ac_cv_c_compiler_gnu 8890 8891 oldcflags="$CFLAGS" 8892 CFLAGS="$CFLAGS -Wl,-export-dynamic" 8893 cat >conftest.$ac_ext <<_ACEOF 8894/* confdefs.h. */ 8895_ACEOF 8896cat confdefs.h >>conftest.$ac_ext 8897cat >>conftest.$ac_ext <<_ACEOF 8898/* end confdefs.h. */ 8899 8900int 8901main () 8902{ 8903 8904 ; 8905 return 0; 8906} 8907_ACEOF 8908rm -f conftest.$ac_objext conftest$ac_exeext 8909if { (ac_try="$ac_link" 8910case "(($ac_try" in 8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8912 *) ac_try_echo=$ac_try;; 8913esac 8914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8915 (eval "$ac_link") 2>conftest.er1 8916 ac_status=$? 8917 grep -v '^ *+' conftest.er1 >conftest.err 8918 rm -f conftest.er1 8919 cat conftest.err >&5 8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8921 (exit $ac_status); } && 8922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8923 { (case "(($ac_try" in 8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8925 *) ac_try_echo=$ac_try;; 8926esac 8927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8928 (eval "$ac_try") 2>&5 8929 ac_status=$? 8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8931 (exit $ac_status); }; } && 8932 { ac_try='test -s conftest$ac_exeext' 8933 { (case "(($ac_try" in 8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8935 *) ac_try_echo=$ac_try;; 8936esac 8937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8938 (eval "$ac_try") 2>&5 8939 ac_status=$? 8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8941 (exit $ac_status); }; }; then 8942 llvm_cv_link_use_export_dynamic=yes 8943else 8944 echo "$as_me: failed program was:" >&5 8945sed 's/^/| /' conftest.$ac_ext >&5 8946 8947 llvm_cv_link_use_export_dynamic=no 8948fi 8949 8950rm -f core conftest.err conftest.$ac_objext \ 8951 conftest$ac_exeext conftest.$ac_ext 8952 CFLAGS="$oldcflags" 8953 ac_ext=c 8954ac_cpp='$CPP $CPPFLAGS' 8955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8957ac_compiler_gnu=$ac_cv_c_compiler_gnu 8958 8959 8960fi 8961{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 8962echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 8963if test "$llvm_cv_link_use_export_dynamic" = yes ; then 8964 8965cat >>confdefs.h <<\_ACEOF 8966#define HAVE_LINK_EXPORT_DYNAMIC 1 8967_ACEOF 8968 8969 fi 8970 8971 8972{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 8973echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 8974if test "${llvm_cv_link_use_version_script+set}" = set; then 8975 echo $ECHO_N "(cached) $ECHO_C" >&6 8976else 8977 ac_ext=c 8978ac_cpp='$CPP $CPPFLAGS' 8979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8981ac_compiler_gnu=$ac_cv_c_compiler_gnu 8982 8983 oldcflags="$CFLAGS" 8984 8985 # The following code is from the autoconf manual, 8986 # "11.13: Limitations of Usual Tools". 8987 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 8988 # Use mktemp if possible; otherwise fall back on mkdir, 8989 # with $RANDOM to make collisions less likely. 8990 : ${TMPDIR=/tmp} 8991 { 8992 tmp=` 8993 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 8994 ` && 8995 test -n "$tmp" && test -d "$tmp" 8996 } || { 8997 tmp=$TMPDIR/foo$$-$RANDOM 8998 (umask 077 && mkdir "$tmp") 8999 } || exit $? 9000 9001 echo "{" > "$tmp/export.map" 9002 echo " global: main;" >> "$tmp/export.map" 9003 echo " local: *;" >> "$tmp/export.map" 9004 echo "};" >> "$tmp/export.map" 9005 9006 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 9007 cat >conftest.$ac_ext <<_ACEOF 9008/* confdefs.h. */ 9009_ACEOF 9010cat confdefs.h >>conftest.$ac_ext 9011cat >>conftest.$ac_ext <<_ACEOF 9012/* end confdefs.h. */ 9013 9014int 9015main () 9016{ 9017 9018 ; 9019 return 0; 9020} 9021_ACEOF 9022rm -f conftest.$ac_objext conftest$ac_exeext 9023if { (ac_try="$ac_link" 9024case "(($ac_try" in 9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9026 *) ac_try_echo=$ac_try;; 9027esac 9028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9029 (eval "$ac_link") 2>conftest.er1 9030 ac_status=$? 9031 grep -v '^ *+' conftest.er1 >conftest.err 9032 rm -f conftest.er1 9033 cat conftest.err >&5 9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9035 (exit $ac_status); } && 9036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9037 { (case "(($ac_try" in 9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9039 *) ac_try_echo=$ac_try;; 9040esac 9041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9042 (eval "$ac_try") 2>&5 9043 ac_status=$? 9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9045 (exit $ac_status); }; } && 9046 { ac_try='test -s conftest$ac_exeext' 9047 { (case "(($ac_try" in 9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9049 *) ac_try_echo=$ac_try;; 9050esac 9051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9052 (eval "$ac_try") 2>&5 9053 ac_status=$? 9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9055 (exit $ac_status); }; }; then 9056 llvm_cv_link_use_version_script=yes 9057else 9058 echo "$as_me: failed program was:" >&5 9059sed 's/^/| /' conftest.$ac_ext >&5 9060 9061 llvm_cv_link_use_version_script=no 9062fi 9063 9064rm -f core conftest.err conftest.$ac_objext \ 9065 conftest$ac_exeext conftest.$ac_ext 9066 rm "$tmp/export.map" 9067 rmdir "$tmp" 9068 CFLAGS="$oldcflags" 9069 ac_ext=c 9070ac_cpp='$CPP $CPPFLAGS' 9071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9073ac_compiler_gnu=$ac_cv_c_compiler_gnu 9074 9075 9076fi 9077{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 9078echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 9079if test "$llvm_cv_link_use_version_script" = yes ; then 9080 HAVE_LINK_VERSION_SCRIPT=1 9081 9082 fi 9083 9084 9085 9086 9087{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 9088echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 9089if test "${ac_cv_c_const+set}" = set; then 9090 echo $ECHO_N "(cached) $ECHO_C" >&6 9091else 9092 cat >conftest.$ac_ext <<_ACEOF 9093/* confdefs.h. */ 9094_ACEOF 9095cat confdefs.h >>conftest.$ac_ext 9096cat >>conftest.$ac_ext <<_ACEOF 9097/* end confdefs.h. */ 9098 9099int 9100main () 9101{ 9102/* FIXME: Include the comments suggested by Paul. */ 9103#ifndef __cplusplus 9104 /* Ultrix mips cc rejects this. */ 9105 typedef int charset[2]; 9106 const charset x; 9107 /* SunOS 4.1.1 cc rejects this. */ 9108 char const *const *ccp; 9109 char **p; 9110 /* NEC SVR4.0.2 mips cc rejects this. */ 9111 struct point {int x, y;}; 9112 static struct point const zero = {0,0}; 9113 /* AIX XL C 1.02.0.0 rejects this. 9114 It does not let you subtract one const X* pointer from another in 9115 an arm of an if-expression whose if-part is not a constant 9116 expression */ 9117 const char *g = "string"; 9118 ccp = &g + (g ? g-g : 0); 9119 /* HPUX 7.0 cc rejects these. */ 9120 ++ccp; 9121 p = (char**) ccp; 9122 ccp = (char const *const *) p; 9123 { /* SCO 3.2v4 cc rejects this. */ 9124 char *t; 9125 char const *s = 0 ? (char *) 0 : (char const *) 0; 9126 9127 *t++ = 0; 9128 if (s) return 0; 9129 } 9130 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 9131 int x[] = {25, 17}; 9132 const int *foo = &x[0]; 9133 ++foo; 9134 } 9135 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 9136 typedef const int *iptr; 9137 iptr p = 0; 9138 ++p; 9139 } 9140 { /* AIX XL C 1.02.0.0 rejects this saying 9141 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 9142 struct s { int j; const int *ap[3]; }; 9143 struct s *b; b->j = 5; 9144 } 9145 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 9146 const int foo = 10; 9147 if (!foo) return 0; 9148 } 9149 return !x[0] && !zero.x; 9150#endif 9151 9152 ; 9153 return 0; 9154} 9155_ACEOF 9156rm -f conftest.$ac_objext 9157if { (ac_try="$ac_compile" 9158case "(($ac_try" in 9159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9160 *) ac_try_echo=$ac_try;; 9161esac 9162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9163 (eval "$ac_compile") 2>conftest.er1 9164 ac_status=$? 9165 grep -v '^ *+' conftest.er1 >conftest.err 9166 rm -f conftest.er1 9167 cat conftest.err >&5 9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9169 (exit $ac_status); } && 9170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9171 { (case "(($ac_try" in 9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9173 *) ac_try_echo=$ac_try;; 9174esac 9175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9176 (eval "$ac_try") 2>&5 9177 ac_status=$? 9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9179 (exit $ac_status); }; } && 9180 { ac_try='test -s conftest.$ac_objext' 9181 { (case "(($ac_try" in 9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9183 *) ac_try_echo=$ac_try;; 9184esac 9185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9186 (eval "$ac_try") 2>&5 9187 ac_status=$? 9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9189 (exit $ac_status); }; }; then 9190 ac_cv_c_const=yes 9191else 9192 echo "$as_me: failed program was:" >&5 9193sed 's/^/| /' conftest.$ac_ext >&5 9194 9195 ac_cv_c_const=no 9196fi 9197 9198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9199fi 9200{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 9201echo "${ECHO_T}$ac_cv_c_const" >&6; } 9202if test $ac_cv_c_const = no; then 9203 9204cat >>confdefs.h <<\_ACEOF 9205#define const 9206_ACEOF 9207 9208fi 9209 9210 9211 9212 9213 9214 9215ac_header_dirent=no 9216for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 9217 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 9218{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 9219echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 9220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9221 echo $ECHO_N "(cached) $ECHO_C" >&6 9222else 9223 cat >conftest.$ac_ext <<_ACEOF 9224/* confdefs.h. */ 9225_ACEOF 9226cat confdefs.h >>conftest.$ac_ext 9227cat >>conftest.$ac_ext <<_ACEOF 9228/* end confdefs.h. */ 9229#include <sys/types.h> 9230#include <$ac_hdr> 9231 9232int 9233main () 9234{ 9235if ((DIR *) 0) 9236return 0; 9237 ; 9238 return 0; 9239} 9240_ACEOF 9241rm -f conftest.$ac_objext 9242if { (ac_try="$ac_compile" 9243case "(($ac_try" in 9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9245 *) ac_try_echo=$ac_try;; 9246esac 9247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9248 (eval "$ac_compile") 2>conftest.er1 9249 ac_status=$? 9250 grep -v '^ *+' conftest.er1 >conftest.err 9251 rm -f conftest.er1 9252 cat conftest.err >&5 9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9254 (exit $ac_status); } && 9255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9256 { (case "(($ac_try" in 9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9258 *) ac_try_echo=$ac_try;; 9259esac 9260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9261 (eval "$ac_try") 2>&5 9262 ac_status=$? 9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9264 (exit $ac_status); }; } && 9265 { ac_try='test -s conftest.$ac_objext' 9266 { (case "(($ac_try" in 9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9268 *) ac_try_echo=$ac_try;; 9269esac 9270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9271 (eval "$ac_try") 2>&5 9272 ac_status=$? 9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9274 (exit $ac_status); }; }; then 9275 eval "$as_ac_Header=yes" 9276else 9277 echo "$as_me: failed program was:" >&5 9278sed 's/^/| /' conftest.$ac_ext >&5 9279 9280 eval "$as_ac_Header=no" 9281fi 9282 9283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9284fi 9285ac_res=`eval echo '${'$as_ac_Header'}'` 9286 { echo "$as_me:$LINENO: result: $ac_res" >&5 9287echo "${ECHO_T}$ac_res" >&6; } 9288if test `eval echo '${'$as_ac_Header'}'` = yes; then 9289 cat >>confdefs.h <<_ACEOF 9290#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 9291_ACEOF 9292 9293ac_header_dirent=$ac_hdr; break 9294fi 9295 9296done 9297# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 9298if test $ac_header_dirent = dirent.h; then 9299 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 9300echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 9301if test "${ac_cv_search_opendir+set}" = set; then 9302 echo $ECHO_N "(cached) $ECHO_C" >&6 9303else 9304 ac_func_search_save_LIBS=$LIBS 9305cat >conftest.$ac_ext <<_ACEOF 9306/* confdefs.h. */ 9307_ACEOF 9308cat confdefs.h >>conftest.$ac_ext 9309cat >>conftest.$ac_ext <<_ACEOF 9310/* end confdefs.h. */ 9311 9312/* Override any GCC internal prototype to avoid an error. 9313 Use char because int might match the return type of a GCC 9314 builtin and then its argument prototype would still apply. */ 9315#ifdef __cplusplus 9316extern "C" 9317#endif 9318char opendir (); 9319int 9320main () 9321{ 9322return opendir (); 9323 ; 9324 return 0; 9325} 9326_ACEOF 9327for ac_lib in '' dir; do 9328 if test -z "$ac_lib"; then 9329 ac_res="none required" 9330 else 9331 ac_res=-l$ac_lib 9332 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9333 fi 9334 rm -f conftest.$ac_objext conftest$ac_exeext 9335if { (ac_try="$ac_link" 9336case "(($ac_try" in 9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9338 *) ac_try_echo=$ac_try;; 9339esac 9340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9341 (eval "$ac_link") 2>conftest.er1 9342 ac_status=$? 9343 grep -v '^ *+' conftest.er1 >conftest.err 9344 rm -f conftest.er1 9345 cat conftest.err >&5 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9347 (exit $ac_status); } && 9348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9349 { (case "(($ac_try" in 9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9351 *) ac_try_echo=$ac_try;; 9352esac 9353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9354 (eval "$ac_try") 2>&5 9355 ac_status=$? 9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9357 (exit $ac_status); }; } && 9358 { ac_try='test -s conftest$ac_exeext' 9359 { (case "(($ac_try" in 9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9361 *) ac_try_echo=$ac_try;; 9362esac 9363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9364 (eval "$ac_try") 2>&5 9365 ac_status=$? 9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9367 (exit $ac_status); }; }; then 9368 ac_cv_search_opendir=$ac_res 9369else 9370 echo "$as_me: failed program was:" >&5 9371sed 's/^/| /' conftest.$ac_ext >&5 9372 9373 9374fi 9375 9376rm -f core conftest.err conftest.$ac_objext \ 9377 conftest$ac_exeext 9378 if test "${ac_cv_search_opendir+set}" = set; then 9379 break 9380fi 9381done 9382if test "${ac_cv_search_opendir+set}" = set; then 9383 : 9384else 9385 ac_cv_search_opendir=no 9386fi 9387rm conftest.$ac_ext 9388LIBS=$ac_func_search_save_LIBS 9389fi 9390{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 9391echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 9392ac_res=$ac_cv_search_opendir 9393if test "$ac_res" != no; then 9394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9395 9396fi 9397 9398else 9399 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 9400echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 9401if test "${ac_cv_search_opendir+set}" = set; then 9402 echo $ECHO_N "(cached) $ECHO_C" >&6 9403else 9404 ac_func_search_save_LIBS=$LIBS 9405cat >conftest.$ac_ext <<_ACEOF 9406/* confdefs.h. */ 9407_ACEOF 9408cat confdefs.h >>conftest.$ac_ext 9409cat >>conftest.$ac_ext <<_ACEOF 9410/* end confdefs.h. */ 9411 9412/* Override any GCC internal prototype to avoid an error. 9413 Use char because int might match the return type of a GCC 9414 builtin and then its argument prototype would still apply. */ 9415#ifdef __cplusplus 9416extern "C" 9417#endif 9418char opendir (); 9419int 9420main () 9421{ 9422return opendir (); 9423 ; 9424 return 0; 9425} 9426_ACEOF 9427for ac_lib in '' x; do 9428 if test -z "$ac_lib"; then 9429 ac_res="none required" 9430 else 9431 ac_res=-l$ac_lib 9432 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9433 fi 9434 rm -f conftest.$ac_objext conftest$ac_exeext 9435if { (ac_try="$ac_link" 9436case "(($ac_try" in 9437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9438 *) ac_try_echo=$ac_try;; 9439esac 9440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9441 (eval "$ac_link") 2>conftest.er1 9442 ac_status=$? 9443 grep -v '^ *+' conftest.er1 >conftest.err 9444 rm -f conftest.er1 9445 cat conftest.err >&5 9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9447 (exit $ac_status); } && 9448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9449 { (case "(($ac_try" in 9450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9451 *) ac_try_echo=$ac_try;; 9452esac 9453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9454 (eval "$ac_try") 2>&5 9455 ac_status=$? 9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9457 (exit $ac_status); }; } && 9458 { ac_try='test -s conftest$ac_exeext' 9459 { (case "(($ac_try" in 9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9461 *) ac_try_echo=$ac_try;; 9462esac 9463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9464 (eval "$ac_try") 2>&5 9465 ac_status=$? 9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9467 (exit $ac_status); }; }; then 9468 ac_cv_search_opendir=$ac_res 9469else 9470 echo "$as_me: failed program was:" >&5 9471sed 's/^/| /' conftest.$ac_ext >&5 9472 9473 9474fi 9475 9476rm -f core conftest.err conftest.$ac_objext \ 9477 conftest$ac_exeext 9478 if test "${ac_cv_search_opendir+set}" = set; then 9479 break 9480fi 9481done 9482if test "${ac_cv_search_opendir+set}" = set; then 9483 : 9484else 9485 ac_cv_search_opendir=no 9486fi 9487rm conftest.$ac_ext 9488LIBS=$ac_func_search_save_LIBS 9489fi 9490{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 9491echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 9492ac_res=$ac_cv_search_opendir 9493if test "$ac_res" != no; then 9494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9495 9496fi 9497 9498fi 9499 9500 9501for ac_header in dlfcn.h 9502do 9503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9505 { echo "$as_me:$LINENO: checking for $ac_header" >&5 9506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9508 echo $ECHO_N "(cached) $ECHO_C" >&6 9509fi 9510ac_res=`eval echo '${'$as_ac_Header'}'` 9511 { echo "$as_me:$LINENO: result: $ac_res" >&5 9512echo "${ECHO_T}$ac_res" >&6; } 9513else 9514 # Is the header compilable? 9515{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 9516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 9517cat >conftest.$ac_ext <<_ACEOF 9518/* confdefs.h. */ 9519_ACEOF 9520cat confdefs.h >>conftest.$ac_ext 9521cat >>conftest.$ac_ext <<_ACEOF 9522/* end confdefs.h. */ 9523$ac_includes_default 9524#include <$ac_header> 9525_ACEOF 9526rm -f conftest.$ac_objext 9527if { (ac_try="$ac_compile" 9528case "(($ac_try" in 9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9530 *) ac_try_echo=$ac_try;; 9531esac 9532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9533 (eval "$ac_compile") 2>conftest.er1 9534 ac_status=$? 9535 grep -v '^ *+' conftest.er1 >conftest.err 9536 rm -f conftest.er1 9537 cat conftest.err >&5 9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9539 (exit $ac_status); } && 9540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9541 { (case "(($ac_try" in 9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9543 *) ac_try_echo=$ac_try;; 9544esac 9545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9546 (eval "$ac_try") 2>&5 9547 ac_status=$? 9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9549 (exit $ac_status); }; } && 9550 { ac_try='test -s conftest.$ac_objext' 9551 { (case "(($ac_try" in 9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9553 *) ac_try_echo=$ac_try;; 9554esac 9555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9556 (eval "$ac_try") 2>&5 9557 ac_status=$? 9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9559 (exit $ac_status); }; }; then 9560 ac_header_compiler=yes 9561else 9562 echo "$as_me: failed program was:" >&5 9563sed 's/^/| /' conftest.$ac_ext >&5 9564 9565 ac_header_compiler=no 9566fi 9567 9568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9570echo "${ECHO_T}$ac_header_compiler" >&6; } 9571 9572# Is the header present? 9573{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 9574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 9575cat >conftest.$ac_ext <<_ACEOF 9576/* confdefs.h. */ 9577_ACEOF 9578cat confdefs.h >>conftest.$ac_ext 9579cat >>conftest.$ac_ext <<_ACEOF 9580/* end confdefs.h. */ 9581#include <$ac_header> 9582_ACEOF 9583if { (ac_try="$ac_cpp conftest.$ac_ext" 9584case "(($ac_try" in 9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9586 *) ac_try_echo=$ac_try;; 9587esac 9588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9590 ac_status=$? 9591 grep -v '^ *+' conftest.er1 >conftest.err 9592 rm -f conftest.er1 9593 cat conftest.err >&5 9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9595 (exit $ac_status); } >/dev/null; then 9596 if test -s conftest.err; then 9597 ac_cpp_err=$ac_c_preproc_warn_flag 9598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9599 else 9600 ac_cpp_err= 9601 fi 9602else 9603 ac_cpp_err=yes 9604fi 9605if test -z "$ac_cpp_err"; then 9606 ac_header_preproc=yes 9607else 9608 echo "$as_me: failed program was:" >&5 9609sed 's/^/| /' conftest.$ac_ext >&5 9610 9611 ac_header_preproc=no 9612fi 9613 9614rm -f conftest.err conftest.$ac_ext 9615{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9616echo "${ECHO_T}$ac_header_preproc" >&6; } 9617 9618# So? What about this header? 9619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9620 yes:no: ) 9621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9625 ac_header_preproc=yes 9626 ;; 9627 no:yes:* ) 9628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9631echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9635echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9640 ( cat <<\_ASBOX 9641## ----------------------------------- ## 9642## Report this to llvmbugs@cs.uiuc.edu ## 9643## ----------------------------------- ## 9644_ASBOX 9645 ) | sed "s/^/$as_me: WARNING: /" >&2 9646 ;; 9647esac 9648{ echo "$as_me:$LINENO: checking for $ac_header" >&5 9649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9651 echo $ECHO_N "(cached) $ECHO_C" >&6 9652else 9653 eval "$as_ac_Header=\$ac_header_preproc" 9654fi 9655ac_res=`eval echo '${'$as_ac_Header'}'` 9656 { echo "$as_me:$LINENO: result: $ac_res" >&5 9657echo "${ECHO_T}$ac_res" >&6; } 9658 9659fi 9660if test `eval echo '${'$as_ac_Header'}'` = yes; then 9661 cat >>confdefs.h <<_ACEOF 9662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9663_ACEOF 9664 9665fi 9666 9667done 9668 9669# Check whether --enable-ltdl-install was given. 9670if test "${enable_ltdl_install+set}" = set; then 9671 enableval=$enable_ltdl_install; 9672fi 9673 9674 9675 9676 9677if test x"${enable_ltdl_install-no}" != xno; then 9678 INSTALL_LTDL_TRUE= 9679 INSTALL_LTDL_FALSE='#' 9680else 9681 INSTALL_LTDL_TRUE='#' 9682 INSTALL_LTDL_FALSE= 9683fi 9684 9685 9686 9687if test x"${enable_ltdl_convenience-no}" != xno; then 9688 CONVENIENCE_LTDL_TRUE= 9689 CONVENIENCE_LTDL_FALSE='#' 9690else 9691 CONVENIENCE_LTDL_TRUE='#' 9692 CONVENIENCE_LTDL_FALSE= 9693fi 9694 9695 9696{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9697echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9698library_names_spec= 9699libname_spec='lib$name' 9700soname_spec= 9701shrext_cmds=".so" 9702postinstall_cmds= 9703postuninstall_cmds= 9704finish_cmds= 9705finish_eval= 9706shlibpath_var= 9707shlibpath_overrides_runpath=unknown 9708version_type=none 9709dynamic_linker="$host_os ld.so" 9710sys_lib_dlsearch_path_spec="/lib /usr/lib" 9711if test "$GCC" = yes; then 9712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9713 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9714 # if the path contains ";" then we assume it to be the separator 9715 # otherwise default to the standard path separator (i.e. ":") - it is 9716 # assumed that no part of a normal pathname contains ";" but that should 9717 # okay in the real world where ";" in dirpaths is itself problematic. 9718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9719 else 9720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9721 fi 9722else 9723 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9724fi 9725need_lib_prefix=unknown 9726hardcode_into_libs=no 9727 9728# when you set need_version to no, make sure it does not cause -set_version 9729# flags to be left without arguments 9730need_version=unknown 9731 9732case $host_os in 9733aix3*) 9734 version_type=linux 9735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9736 shlibpath_var=LIBPATH 9737 9738 # AIX 3 has no versioning support, so we append a major version to the name. 9739 soname_spec='${libname}${release}${shared_ext}$major' 9740 ;; 9741 9742aix4* | aix5*) 9743 version_type=linux 9744 need_lib_prefix=no 9745 need_version=no 9746 hardcode_into_libs=yes 9747 if test "$host_cpu" = ia64; then 9748 # AIX 5 supports IA64 9749 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9750 shlibpath_var=LD_LIBRARY_PATH 9751 else 9752 # With GCC up to 2.95.x, collect2 would create an import file 9753 # for dependence libraries. The import file would start with 9754 # the line `#! .'. This would cause the generated library to 9755 # depend on `.', always an invalid library. This was fixed in 9756 # development snapshots of GCC prior to 3.0. 9757 case $host_os in 9758 aix4 | aix4.[01] | aix4.[01].*) 9759 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9760 echo ' yes ' 9761 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9762 : 9763 else 9764 can_build_shared=no 9765 fi 9766 ;; 9767 esac 9768 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9769 # soname into executable. Probably we can add versioning support to 9770 # collect2, so additional links can be useful in future. 9771 if test "$aix_use_runtimelinking" = yes; then 9772 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9773 # instead of lib<name>.a to let people know that these are not 9774 # typical AIX shared libraries. 9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9776 else 9777 # We preserve .a as extension for shared libraries through AIX4.2 9778 # and later when we are not doing run time linking. 9779 library_names_spec='${libname}${release}.a $libname.a' 9780 soname_spec='${libname}${release}${shared_ext}$major' 9781 fi 9782 shlibpath_var=LIBPATH 9783 fi 9784 ;; 9785 9786amigaos*) 9787 library_names_spec='$libname.ixlibrary $libname.a' 9788 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9789 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' 9790 ;; 9791 9792beos*) 9793 library_names_spec='${libname}${shared_ext}' 9794 dynamic_linker="$host_os ld.so" 9795 shlibpath_var=LIBRARY_PATH 9796 ;; 9797 9798bsdi[45]*) 9799 version_type=linux 9800 need_version=no 9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9802 soname_spec='${libname}${release}${shared_ext}$major' 9803 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9804 shlibpath_var=LD_LIBRARY_PATH 9805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9807 # the default ld.so.conf also contains /usr/contrib/lib and 9808 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9809 # libtool to hard-code these into programs 9810 ;; 9811 9812cygwin* | mingw* | pw32*) 9813 version_type=windows 9814 shrext_cmds=".dll" 9815 need_version=no 9816 need_lib_prefix=no 9817 9818 case $GCC,$host_os in 9819 yes,cygwin* | yes,mingw* | yes,pw32*) 9820 library_names_spec='$libname.dll.a' 9821 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9822 postinstall_cmds='base_file=`basename \${file}`~ 9823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9824 dldir=$destdir/`dirname \$dlpath`~ 9825 test -d \$dldir || mkdir -p \$dldir~ 9826 $install_prog $dir/$dlname \$dldir/$dlname~ 9827 chmod a+x \$dldir/$dlname' 9828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9829 dlpath=$dir/\$dldll~ 9830 $rm \$dlpath' 9831 shlibpath_overrides_runpath=yes 9832 9833 case $host_os in 9834 cygwin*) 9835 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9836 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9837 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9838 ;; 9839 mingw*) 9840 # MinGW DLLs use traditional 'lib' prefix 9841 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9842 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9843 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9844 # It is most probably a Windows format PATH printed by 9845 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9846 # path with ; separators, and with drive letters. We can handle the 9847 # drive letters (cygwin fileutils understands them), so leave them, 9848 # especially as we might pass files found there to a mingw objdump, 9849 # which wouldn't understand a cygwinified path. Ahh. 9850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9851 else 9852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9853 fi 9854 ;; 9855 pw32*) 9856 # pw32 DLLs use 'pw' prefix rather than 'lib' 9857 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9858 ;; 9859 esac 9860 ;; 9861 9862 *) 9863 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9864 ;; 9865 esac 9866 dynamic_linker='Win32 ld.exe' 9867 # FIXME: first we should search . and the directory the executable is in 9868 shlibpath_var=PATH 9869 ;; 9870 9871darwin* | rhapsody*) 9872 dynamic_linker="$host_os dyld" 9873 version_type=darwin 9874 need_lib_prefix=no 9875 need_version=no 9876 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9877 soname_spec='${libname}${release}${major}$shared_ext' 9878 shlibpath_overrides_runpath=yes 9879 shlibpath_var=DYLD_LIBRARY_PATH 9880 shrext_cmds='.dylib' 9881 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9882 if test "$GCC" = yes; then 9883 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"` 9884 else 9885 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9886 fi 9887 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9888 ;; 9889 9890dgux*) 9891 version_type=linux 9892 need_lib_prefix=no 9893 need_version=no 9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9895 soname_spec='${libname}${release}${shared_ext}$major' 9896 shlibpath_var=LD_LIBRARY_PATH 9897 ;; 9898 9899freebsd1*) 9900 dynamic_linker=no 9901 ;; 9902 9903kfreebsd*-gnu) 9904 version_type=linux 9905 need_lib_prefix=no 9906 need_version=no 9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9908 soname_spec='${libname}${release}${shared_ext}$major' 9909 shlibpath_var=LD_LIBRARY_PATH 9910 shlibpath_overrides_runpath=no 9911 hardcode_into_libs=yes 9912 dynamic_linker='GNU ld.so' 9913 ;; 9914 9915freebsd* | dragonfly*) 9916 # DragonFly does not have aout. When/if they implement a new 9917 # versioning mechanism, adjust this. 9918 if test -x /usr/bin/objformat; then 9919 objformat=`/usr/bin/objformat` 9920 else 9921 case $host_os in 9922 freebsd[123]*) objformat=aout ;; 9923 *) objformat=elf ;; 9924 esac 9925 fi 9926 version_type=freebsd-$objformat 9927 case $version_type in 9928 freebsd-elf*) 9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9930 need_version=no 9931 need_lib_prefix=no 9932 ;; 9933 freebsd-*) 9934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9935 need_version=yes 9936 ;; 9937 esac 9938 shlibpath_var=LD_LIBRARY_PATH 9939 case $host_os in 9940 freebsd2*) 9941 shlibpath_overrides_runpath=yes 9942 ;; 9943 freebsd3.[01]* | freebsdelf3.[01]*) 9944 shlibpath_overrides_runpath=yes 9945 hardcode_into_libs=yes 9946 ;; 9947 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9948 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9949 shlibpath_overrides_runpath=no 9950 hardcode_into_libs=yes 9951 ;; 9952 freebsd*) # from 4.6 on 9953 shlibpath_overrides_runpath=yes 9954 hardcode_into_libs=yes 9955 ;; 9956 esac 9957 ;; 9958 9959gnu*) 9960 version_type=linux 9961 need_lib_prefix=no 9962 need_version=no 9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9964 soname_spec='${libname}${release}${shared_ext}$major' 9965 shlibpath_var=LD_LIBRARY_PATH 9966 hardcode_into_libs=yes 9967 ;; 9968 9969hpux9* | hpux10* | hpux11*) 9970 # Give a soname corresponding to the major version so that dld.sl refuses to 9971 # link against other versions. 9972 version_type=sunos 9973 need_lib_prefix=no 9974 need_version=no 9975 case $host_cpu in 9976 ia64*) 9977 shrext_cmds='.so' 9978 hardcode_into_libs=yes 9979 dynamic_linker="$host_os dld.so" 9980 shlibpath_var=LD_LIBRARY_PATH 9981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9983 soname_spec='${libname}${release}${shared_ext}$major' 9984 if test "X$HPUX_IA64_MODE" = X32; then 9985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9986 else 9987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9988 fi 9989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9990 ;; 9991 hppa*64*) 9992 shrext_cmds='.sl' 9993 hardcode_into_libs=yes 9994 dynamic_linker="$host_os dld.sl" 9995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9998 soname_spec='${libname}${release}${shared_ext}$major' 9999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10001 ;; 10002 *) 10003 shrext_cmds='.sl' 10004 dynamic_linker="$host_os dld.sl" 10005 shlibpath_var=SHLIB_PATH 10006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10008 soname_spec='${libname}${release}${shared_ext}$major' 10009 ;; 10010 esac 10011 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10012 postinstall_cmds='chmod 555 $lib' 10013 ;; 10014 10015interix3*) 10016 version_type=linux 10017 need_lib_prefix=no 10018 need_version=no 10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10020 soname_spec='${libname}${release}${shared_ext}$major' 10021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10022 shlibpath_var=LD_LIBRARY_PATH 10023 shlibpath_overrides_runpath=no 10024 hardcode_into_libs=yes 10025 ;; 10026 10027irix5* | irix6* | nonstopux*) 10028 case $host_os in 10029 nonstopux*) version_type=nonstopux ;; 10030 *) 10031 if test "$lt_cv_prog_gnu_ld" = yes; then 10032 version_type=linux 10033 else 10034 version_type=irix 10035 fi ;; 10036 esac 10037 need_lib_prefix=no 10038 need_version=no 10039 soname_spec='${libname}${release}${shared_ext}$major' 10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10041 case $host_os in 10042 irix5* | nonstopux*) 10043 libsuff= shlibsuff= 10044 ;; 10045 *) 10046 case $LD in # libtool.m4 will add one of these switches to LD 10047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10048 libsuff= shlibsuff= libmagic=32-bit;; 10049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10050 libsuff=32 shlibsuff=N32 libmagic=N32;; 10051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10052 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10053 *) libsuff= shlibsuff= libmagic=never-match;; 10054 esac 10055 ;; 10056 esac 10057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10058 shlibpath_overrides_runpath=no 10059 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10060 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10061 hardcode_into_libs=yes 10062 ;; 10063 10064# No shared lib support for Linux oldld, aout, or coff. 10065linux*oldld* | linux*aout* | linux*coff*) 10066 dynamic_linker=no 10067 ;; 10068 10069# This must be Linux ELF. 10070linux*) 10071 version_type=linux 10072 need_lib_prefix=no 10073 need_version=no 10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10075 soname_spec='${libname}${release}${shared_ext}$major' 10076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10077 shlibpath_var=LD_LIBRARY_PATH 10078 shlibpath_overrides_runpath=no 10079 # This implies no fast_install, which is unacceptable. 10080 # Some rework will be needed to allow for fast_install 10081 # before this can be enabled. 10082 hardcode_into_libs=yes 10083 10084 # Append ld.so.conf contents to the search path 10085 if test -f /etc/ld.so.conf; then 10086 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' ' '` 10087 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10088 fi 10089 10090 # We used to test for /lib/ld.so.1 and disable shared libraries on 10091 # powerpc, because MkLinux only supported shared libraries with the 10092 # GNU dynamic linker. Since this was broken with cross compilers, 10093 # most powerpc-linux boxes support dynamic linking these days and 10094 # people can always --disable-shared, the test was removed, and we 10095 # assume the GNU/Linux dynamic linker is in use. 10096 dynamic_linker='GNU/Linux ld.so' 10097 ;; 10098 10099knetbsd*-gnu) 10100 version_type=linux 10101 need_lib_prefix=no 10102 need_version=no 10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10104 soname_spec='${libname}${release}${shared_ext}$major' 10105 shlibpath_var=LD_LIBRARY_PATH 10106 shlibpath_overrides_runpath=no 10107 hardcode_into_libs=yes 10108 dynamic_linker='GNU ld.so' 10109 ;; 10110 10111netbsd*) 10112 version_type=sunos 10113 need_lib_prefix=no 10114 need_version=no 10115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10118 dynamic_linker='NetBSD (a.out) ld.so' 10119 else 10120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10121 soname_spec='${libname}${release}${shared_ext}$major' 10122 dynamic_linker='NetBSD ld.elf_so' 10123 fi 10124 shlibpath_var=LD_LIBRARY_PATH 10125 shlibpath_overrides_runpath=yes 10126 hardcode_into_libs=yes 10127 ;; 10128 10129newsos6) 10130 version_type=linux 10131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10132 shlibpath_var=LD_LIBRARY_PATH 10133 shlibpath_overrides_runpath=yes 10134 ;; 10135 10136nto-qnx*) 10137 version_type=linux 10138 need_lib_prefix=no 10139 need_version=no 10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10141 soname_spec='${libname}${release}${shared_ext}$major' 10142 shlibpath_var=LD_LIBRARY_PATH 10143 shlibpath_overrides_runpath=yes 10144 ;; 10145 10146openbsd*) 10147 version_type=sunos 10148 sys_lib_dlsearch_path_spec="/usr/lib" 10149 need_lib_prefix=no 10150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10151 case $host_os in 10152 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10153 *) need_version=no ;; 10154 esac 10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10157 shlibpath_var=LD_LIBRARY_PATH 10158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10159 case $host_os in 10160 openbsd2.[89] | openbsd2.[89].*) 10161 shlibpath_overrides_runpath=no 10162 ;; 10163 *) 10164 shlibpath_overrides_runpath=yes 10165 ;; 10166 esac 10167 else 10168 shlibpath_overrides_runpath=yes 10169 fi 10170 ;; 10171 10172os2*) 10173 libname_spec='$name' 10174 shrext_cmds=".dll" 10175 need_lib_prefix=no 10176 library_names_spec='$libname${shared_ext} $libname.a' 10177 dynamic_linker='OS/2 ld.exe' 10178 shlibpath_var=LIBPATH 10179 ;; 10180 10181osf3* | osf4* | osf5*) 10182 version_type=osf 10183 need_lib_prefix=no 10184 need_version=no 10185 soname_spec='${libname}${release}${shared_ext}$major' 10186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10187 shlibpath_var=LD_LIBRARY_PATH 10188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10190 ;; 10191 10192solaris*) 10193 version_type=linux 10194 need_lib_prefix=no 10195 need_version=no 10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10197 soname_spec='${libname}${release}${shared_ext}$major' 10198 shlibpath_var=LD_LIBRARY_PATH 10199 shlibpath_overrides_runpath=yes 10200 hardcode_into_libs=yes 10201 # ldd complains unless libraries are executable 10202 postinstall_cmds='chmod +x $lib' 10203 ;; 10204 10205sunos4*) 10206 version_type=sunos 10207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10208 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10209 shlibpath_var=LD_LIBRARY_PATH 10210 shlibpath_overrides_runpath=yes 10211 if test "$with_gnu_ld" = yes; then 10212 need_lib_prefix=no 10213 fi 10214 need_version=yes 10215 ;; 10216 10217sysv4 | sysv4.3*) 10218 version_type=linux 10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10220 soname_spec='${libname}${release}${shared_ext}$major' 10221 shlibpath_var=LD_LIBRARY_PATH 10222 case $host_vendor in 10223 sni) 10224 shlibpath_overrides_runpath=no 10225 need_lib_prefix=no 10226 export_dynamic_flag_spec='${wl}-Blargedynsym' 10227 runpath_var=LD_RUN_PATH 10228 ;; 10229 siemens) 10230 need_lib_prefix=no 10231 ;; 10232 motorola) 10233 need_lib_prefix=no 10234 need_version=no 10235 shlibpath_overrides_runpath=no 10236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10237 ;; 10238 esac 10239 ;; 10240 10241sysv4*MP*) 10242 if test -d /usr/nec ;then 10243 version_type=linux 10244 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10245 soname_spec='$libname${shared_ext}.$major' 10246 shlibpath_var=LD_LIBRARY_PATH 10247 fi 10248 ;; 10249 10250sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10251 version_type=freebsd-elf 10252 need_lib_prefix=no 10253 need_version=no 10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10255 soname_spec='${libname}${release}${shared_ext}$major' 10256 shlibpath_var=LD_LIBRARY_PATH 10257 hardcode_into_libs=yes 10258 if test "$with_gnu_ld" = yes; then 10259 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10260 shlibpath_overrides_runpath=no 10261 else 10262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10263 shlibpath_overrides_runpath=yes 10264 case $host_os in 10265 sco3.2v5*) 10266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10267 ;; 10268 esac 10269 fi 10270 sys_lib_dlsearch_path_spec='/usr/lib' 10271 ;; 10272 10273uts4*) 10274 version_type=linux 10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10276 soname_spec='${libname}${release}${shared_ext}$major' 10277 shlibpath_var=LD_LIBRARY_PATH 10278 ;; 10279 10280*) 10281 dynamic_linker=no 10282 ;; 10283esac 10284{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 10285echo "${ECHO_T}$dynamic_linker" >&6; } 10286test "$dynamic_linker" = no && can_build_shared=no 10287 10288variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10289if test "$GCC" = yes; then 10290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10291fi 10292 10293 10294{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 10295echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 10296if test "${libltdl_cv_shlibext+set}" = set; then 10297 echo $ECHO_N "(cached) $ECHO_C" >&6 10298else 10299 10300module=yes 10301eval libltdl_cv_shlibext=$shrext_cmds 10302 10303fi 10304{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 10305echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 10306if test -n "$libltdl_cv_shlibext"; then 10307 10308cat >>confdefs.h <<_ACEOF 10309#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 10310_ACEOF 10311 10312fi 10313 10314 10315{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 10316echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 10317if test "${libltdl_cv_shlibpath_var+set}" = set; then 10318 echo $ECHO_N "(cached) $ECHO_C" >&6 10319else 10320 libltdl_cv_shlibpath_var="$shlibpath_var" 10321fi 10322{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 10323echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 10324if test -n "$libltdl_cv_shlibpath_var"; then 10325 10326cat >>confdefs.h <<_ACEOF 10327#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 10328_ACEOF 10329 10330fi 10331 10332 10333{ echo "$as_me:$LINENO: checking for the default library search path" >&5 10334echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 10335if test "${libltdl_cv_sys_search_path+set}" = set; then 10336 echo $ECHO_N "(cached) $ECHO_C" >&6 10337else 10338 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 10339fi 10340{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 10341echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 10342if test -n "$libltdl_cv_sys_search_path"; then 10343 sys_search_path= 10344 for dir in $libltdl_cv_sys_search_path; do 10345 if test -z "$sys_search_path"; then 10346 sys_search_path="$dir" 10347 else 10348 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 10349 fi 10350 done 10351 10352cat >>confdefs.h <<_ACEOF 10353#define LTDL_SYSSEARCHPATH "$sys_search_path" 10354_ACEOF 10355 10356fi 10357 10358{ echo "$as_me:$LINENO: checking for objdir" >&5 10359echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 10360if test "${libltdl_cv_objdir+set}" = set; then 10361 echo $ECHO_N "(cached) $ECHO_C" >&6 10362else 10363 libltdl_cv_objdir="$objdir" 10364 if test -n "$objdir"; then 10365 : 10366 else 10367 rm -f .libs 2>/dev/null 10368 mkdir .libs 2>/dev/null 10369 if test -d .libs; then 10370 libltdl_cv_objdir=.libs 10371 else 10372 # MS-DOS does not allow filenames that begin with a dot. 10373 libltdl_cv_objdir=_libs 10374 fi 10375 rmdir .libs 2>/dev/null 10376 fi 10377 10378fi 10379{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 10380echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 10381 10382cat >>confdefs.h <<_ACEOF 10383#define LTDL_OBJDIR "$libltdl_cv_objdir/" 10384_ACEOF 10385 10386 10387 10388 10389 10390 10391# Check for command to grab the raw symbol name followed by C symbol from nm. 10392{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 10393echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 10394if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 10395 echo $ECHO_N "(cached) $ECHO_C" >&6 10396else 10397 10398# These are sane defaults that work on at least a few old systems. 10399# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10400 10401# Character class describing NM global symbol codes. 10402symcode='[BCDEGRST]' 10403 10404# Regexp to match symbols that can be accessed directly from C. 10405sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10406 10407# Transform an extracted symbol line into a proper C declaration 10408lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 10409 10410# Transform an extracted symbol line into symbol name and symbol address 10411lt_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'" 10412 10413# Define system-specific variables. 10414case $host_os in 10415aix*) 10416 symcode='[BCDT]' 10417 ;; 10418cygwin* | mingw* | pw32*) 10419 symcode='[ABCDGISTW]' 10420 ;; 10421hpux*) # Its linker distinguishes data from code symbols 10422 if test "$host_cpu" = ia64; then 10423 symcode='[ABCDEGRST]' 10424 fi 10425 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10426 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'" 10427 ;; 10428linux*) 10429 if test "$host_cpu" = ia64; then 10430 symcode='[ABCDGIRSTW]' 10431 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10432 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'" 10433 fi 10434 ;; 10435irix* | nonstopux*) 10436 symcode='[BCDEGRST]' 10437 ;; 10438osf*) 10439 symcode='[BCDEGQRST]' 10440 ;; 10441solaris*) 10442 symcode='[BDRT]' 10443 ;; 10444sco3.2v5*) 10445 symcode='[DT]' 10446 ;; 10447sysv4.2uw2*) 10448 symcode='[DT]' 10449 ;; 10450sysv5* | sco5v6* | unixware* | OpenUNIX*) 10451 symcode='[ABDT]' 10452 ;; 10453sysv4) 10454 symcode='[DFNSTU]' 10455 ;; 10456esac 10457 10458# Handle CRLF in mingw tool chain 10459opt_cr= 10460case $build_os in 10461mingw*) 10462 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10463 ;; 10464esac 10465 10466# If we're using GNU nm, then use its standard symbol codes. 10467case `$NM -V 2>&1` in 10468*GNU* | *'with BFD'*) 10469 symcode='[ABCDGIRSTW]' ;; 10470esac 10471 10472# Try without a prefix undercore, then with it. 10473for ac_symprfx in "" "_"; do 10474 10475 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10476 symxfrm="\\1 $ac_symprfx\\2 \\2" 10477 10478 # Write the raw and C identifiers. 10479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10480 10481 # Check to see that the pipe works correctly. 10482 pipe_works=no 10483 10484 rm -f conftest* 10485 cat > conftest.$ac_ext <<EOF 10486#ifdef __cplusplus 10487extern "C" { 10488#endif 10489char nm_test_var; 10490void nm_test_func(){} 10491#ifdef __cplusplus 10492} 10493#endif 10494int main(){nm_test_var='a';nm_test_func();return(0);} 10495EOF 10496 10497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10498 (eval $ac_compile) 2>&5 10499 ac_status=$? 10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10501 (exit $ac_status); }; then 10502 # Now try to grab the symbols. 10503 nlist=conftest.nm 10504 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 10505 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 10506 ac_status=$? 10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10508 (exit $ac_status); } && test -s "$nlist"; then 10509 # Try sorting and uniquifying the output. 10510 if sort "$nlist" | uniq > "$nlist"T; then 10511 mv -f "$nlist"T "$nlist" 10512 else 10513 rm -f "$nlist"T 10514 fi 10515 10516 # Make sure that we snagged all the symbols we need. 10517 if grep ' nm_test_var$' "$nlist" >/dev/null; then 10518 if grep ' nm_test_func$' "$nlist" >/dev/null; then 10519 cat <<EOF > conftest.$ac_ext 10520#ifdef __cplusplus 10521extern "C" { 10522#endif 10523 10524EOF 10525 # Now generate the symbol file. 10526 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 10527 10528 cat <<EOF >> conftest.$ac_ext 10529#if defined (__STDC__) && __STDC__ 10530# define lt_ptr_t void * 10531#else 10532# define lt_ptr_t char * 10533# define const 10534#endif 10535 10536/* The mapping between symbol names and symbols. */ 10537const struct { 10538 const char *name; 10539 lt_ptr_t address; 10540} 10541lt_preloaded_symbols[] = 10542{ 10543EOF 10544 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 10545 cat <<\EOF >> conftest.$ac_ext 10546 {0, (lt_ptr_t) 0} 10547}; 10548 10549#ifdef __cplusplus 10550} 10551#endif 10552EOF 10553 # Now try linking the two files. 10554 mv conftest.$ac_objext conftstm.$ac_objext 10555 lt_save_LIBS="$LIBS" 10556 lt_save_CFLAGS="$CFLAGS" 10557 LIBS="conftstm.$ac_objext" 10558 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10560 (eval $ac_link) 2>&5 10561 ac_status=$? 10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10563 (exit $ac_status); } && test -s conftest${ac_exeext}; then 10564 pipe_works=yes 10565 fi 10566 LIBS="$lt_save_LIBS" 10567 CFLAGS="$lt_save_CFLAGS" 10568 else 10569 echo "cannot find nm_test_func in $nlist" >&5 10570 fi 10571 else 10572 echo "cannot find nm_test_var in $nlist" >&5 10573 fi 10574 else 10575 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10576 fi 10577 else 10578 echo "$progname: failed program was:" >&5 10579 cat conftest.$ac_ext >&5 10580 fi 10581 rm -f conftest* conftst* 10582 10583 # Do not use the global_symbol_pipe unless it works. 10584 if test "$pipe_works" = yes; then 10585 break 10586 else 10587 lt_cv_sys_global_symbol_pipe= 10588 fi 10589done 10590 10591fi 10592 10593if test -z "$lt_cv_sys_global_symbol_pipe"; then 10594 lt_cv_sys_global_symbol_to_cdecl= 10595fi 10596if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10597 { echo "$as_me:$LINENO: result: failed" >&5 10598echo "${ECHO_T}failed" >&6; } 10599else 10600 { echo "$as_me:$LINENO: result: ok" >&5 10601echo "${ECHO_T}ok" >&6; } 10602fi 10603 10604 10605{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 10606echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 10607if test "${libltdl_cv_preloaded_symbols+set}" = set; then 10608 echo $ECHO_N "(cached) $ECHO_C" >&6 10609else 10610 if test -n "$lt_cv_sys_global_symbol_pipe"; then 10611 libltdl_cv_preloaded_symbols=yes 10612 else 10613 libltdl_cv_preloaded_symbols=no 10614 fi 10615 10616fi 10617{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 10618echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 10619if test x"$libltdl_cv_preloaded_symbols" = xyes; then 10620 10621cat >>confdefs.h <<\_ACEOF 10622#define HAVE_PRELOADED_SYMBOLS 1 10623_ACEOF 10624 10625fi 10626 10627LIBADD_DL= 10628 10629ac_ext=c 10630ac_cpp='$CPP $CPPFLAGS' 10631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10633ac_compiler_gnu=$ac_cv_c_compiler_gnu 10634 10635 10636{ echo "$as_me:$LINENO: checking for shl_load" >&5 10637echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10638if test "${ac_cv_func_shl_load+set}" = set; then 10639 echo $ECHO_N "(cached) $ECHO_C" >&6 10640else 10641 cat >conftest.$ac_ext <<_ACEOF 10642/* confdefs.h. */ 10643_ACEOF 10644cat confdefs.h >>conftest.$ac_ext 10645cat >>conftest.$ac_ext <<_ACEOF 10646/* end confdefs.h. */ 10647/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10648 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10649#define shl_load innocuous_shl_load 10650 10651/* System header to define __stub macros and hopefully few prototypes, 10652 which can conflict with char shl_load (); below. 10653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10654 <limits.h> exists even on freestanding compilers. */ 10655 10656#ifdef __STDC__ 10657# include <limits.h> 10658#else 10659# include <assert.h> 10660#endif 10661 10662#undef shl_load 10663 10664/* Override any GCC internal prototype to avoid an error. 10665 Use char because int might match the return type of a GCC 10666 builtin and then its argument prototype would still apply. */ 10667#ifdef __cplusplus 10668extern "C" 10669#endif 10670char shl_load (); 10671/* The GNU C library defines this for functions which it implements 10672 to always fail with ENOSYS. Some functions are actually named 10673 something starting with __ and the normal name is an alias. */ 10674#if defined __stub_shl_load || defined __stub___shl_load 10675choke me 10676#endif 10677 10678int 10679main () 10680{ 10681return shl_load (); 10682 ; 10683 return 0; 10684} 10685_ACEOF 10686rm -f conftest.$ac_objext conftest$ac_exeext 10687if { (ac_try="$ac_link" 10688case "(($ac_try" in 10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10690 *) ac_try_echo=$ac_try;; 10691esac 10692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10693 (eval "$ac_link") 2>conftest.er1 10694 ac_status=$? 10695 grep -v '^ *+' conftest.er1 >conftest.err 10696 rm -f conftest.er1 10697 cat conftest.err >&5 10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10699 (exit $ac_status); } && 10700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10701 { (case "(($ac_try" in 10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10703 *) ac_try_echo=$ac_try;; 10704esac 10705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10706 (eval "$ac_try") 2>&5 10707 ac_status=$? 10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10709 (exit $ac_status); }; } && 10710 { ac_try='test -s conftest$ac_exeext' 10711 { (case "(($ac_try" in 10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10713 *) ac_try_echo=$ac_try;; 10714esac 10715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10716 (eval "$ac_try") 2>&5 10717 ac_status=$? 10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10719 (exit $ac_status); }; }; then 10720 ac_cv_func_shl_load=yes 10721else 10722 echo "$as_me: failed program was:" >&5 10723sed 's/^/| /' conftest.$ac_ext >&5 10724 10725 ac_cv_func_shl_load=no 10726fi 10727 10728rm -f core conftest.err conftest.$ac_objext \ 10729 conftest$ac_exeext conftest.$ac_ext 10730fi 10731{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10732echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10733if test $ac_cv_func_shl_load = yes; then 10734 10735cat >>confdefs.h <<\_ACEOF 10736#define HAVE_SHL_LOAD 1 10737_ACEOF 10738 10739else 10740 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10741echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10742if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10743 echo $ECHO_N "(cached) $ECHO_C" >&6 10744else 10745 ac_check_lib_save_LIBS=$LIBS 10746LIBS="-ldld $LIBS" 10747cat >conftest.$ac_ext <<_ACEOF 10748/* confdefs.h. */ 10749_ACEOF 10750cat confdefs.h >>conftest.$ac_ext 10751cat >>conftest.$ac_ext <<_ACEOF 10752/* end confdefs.h. */ 10753 10754/* Override any GCC internal prototype to avoid an error. 10755 Use char because int might match the return type of a GCC 10756 builtin and then its argument prototype would still apply. */ 10757#ifdef __cplusplus 10758extern "C" 10759#endif 10760char shl_load (); 10761int 10762main () 10763{ 10764return shl_load (); 10765 ; 10766 return 0; 10767} 10768_ACEOF 10769rm -f conftest.$ac_objext conftest$ac_exeext 10770if { (ac_try="$ac_link" 10771case "(($ac_try" in 10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10773 *) ac_try_echo=$ac_try;; 10774esac 10775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10776 (eval "$ac_link") 2>conftest.er1 10777 ac_status=$? 10778 grep -v '^ *+' conftest.er1 >conftest.err 10779 rm -f conftest.er1 10780 cat conftest.err >&5 10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10782 (exit $ac_status); } && 10783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10784 { (case "(($ac_try" in 10785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10786 *) ac_try_echo=$ac_try;; 10787esac 10788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10789 (eval "$ac_try") 2>&5 10790 ac_status=$? 10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10792 (exit $ac_status); }; } && 10793 { ac_try='test -s conftest$ac_exeext' 10794 { (case "(($ac_try" in 10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10796 *) ac_try_echo=$ac_try;; 10797esac 10798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10799 (eval "$ac_try") 2>&5 10800 ac_status=$? 10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10802 (exit $ac_status); }; }; then 10803 ac_cv_lib_dld_shl_load=yes 10804else 10805 echo "$as_me: failed program was:" >&5 10806sed 's/^/| /' conftest.$ac_ext >&5 10807 10808 ac_cv_lib_dld_shl_load=no 10809fi 10810 10811rm -f core conftest.err conftest.$ac_objext \ 10812 conftest$ac_exeext conftest.$ac_ext 10813LIBS=$ac_check_lib_save_LIBS 10814fi 10815{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10816echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10817if test $ac_cv_lib_dld_shl_load = yes; then 10818 10819cat >>confdefs.h <<\_ACEOF 10820#define HAVE_SHL_LOAD 1 10821_ACEOF 10822 10823 LIBADD_DL="$LIBADD_DL -ldld" 10824else 10825 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10826echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10827if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10828 echo $ECHO_N "(cached) $ECHO_C" >&6 10829else 10830 ac_check_lib_save_LIBS=$LIBS 10831LIBS="-ldl $LIBS" 10832cat >conftest.$ac_ext <<_ACEOF 10833/* confdefs.h. */ 10834_ACEOF 10835cat confdefs.h >>conftest.$ac_ext 10836cat >>conftest.$ac_ext <<_ACEOF 10837/* end confdefs.h. */ 10838 10839/* Override any GCC internal prototype to avoid an error. 10840 Use char because int might match the return type of a GCC 10841 builtin and then its argument prototype would still apply. */ 10842#ifdef __cplusplus 10843extern "C" 10844#endif 10845char dlopen (); 10846int 10847main () 10848{ 10849return dlopen (); 10850 ; 10851 return 0; 10852} 10853_ACEOF 10854rm -f conftest.$ac_objext conftest$ac_exeext 10855if { (ac_try="$ac_link" 10856case "(($ac_try" in 10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10858 *) ac_try_echo=$ac_try;; 10859esac 10860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10861 (eval "$ac_link") 2>conftest.er1 10862 ac_status=$? 10863 grep -v '^ *+' conftest.er1 >conftest.err 10864 rm -f conftest.er1 10865 cat conftest.err >&5 10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10867 (exit $ac_status); } && 10868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10869 { (case "(($ac_try" in 10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10871 *) ac_try_echo=$ac_try;; 10872esac 10873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10874 (eval "$ac_try") 2>&5 10875 ac_status=$? 10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10877 (exit $ac_status); }; } && 10878 { ac_try='test -s conftest$ac_exeext' 10879 { (case "(($ac_try" in 10880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10881 *) ac_try_echo=$ac_try;; 10882esac 10883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10884 (eval "$ac_try") 2>&5 10885 ac_status=$? 10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10887 (exit $ac_status); }; }; then 10888 ac_cv_lib_dl_dlopen=yes 10889else 10890 echo "$as_me: failed program was:" >&5 10891sed 's/^/| /' conftest.$ac_ext >&5 10892 10893 ac_cv_lib_dl_dlopen=no 10894fi 10895 10896rm -f core conftest.err conftest.$ac_objext \ 10897 conftest$ac_exeext conftest.$ac_ext 10898LIBS=$ac_check_lib_save_LIBS 10899fi 10900{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10901echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10902if test $ac_cv_lib_dl_dlopen = yes; then 10903 10904cat >>confdefs.h <<\_ACEOF 10905#define HAVE_LIBDL 1 10906_ACEOF 10907 10908 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 10909else 10910 cat >conftest.$ac_ext <<_ACEOF 10911/* confdefs.h. */ 10912_ACEOF 10913cat confdefs.h >>conftest.$ac_ext 10914cat >>conftest.$ac_ext <<_ACEOF 10915/* end confdefs.h. */ 10916#if HAVE_DLFCN_H 10917# include <dlfcn.h> 10918#endif 10919 10920int 10921main () 10922{ 10923dlopen(0, 0); 10924 ; 10925 return 0; 10926} 10927_ACEOF 10928rm -f conftest.$ac_objext conftest$ac_exeext 10929if { (ac_try="$ac_link" 10930case "(($ac_try" in 10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10932 *) ac_try_echo=$ac_try;; 10933esac 10934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10935 (eval "$ac_link") 2>conftest.er1 10936 ac_status=$? 10937 grep -v '^ *+' conftest.er1 >conftest.err 10938 rm -f conftest.er1 10939 cat conftest.err >&5 10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10941 (exit $ac_status); } && 10942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10943 { (case "(($ac_try" in 10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10945 *) ac_try_echo=$ac_try;; 10946esac 10947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10948 (eval "$ac_try") 2>&5 10949 ac_status=$? 10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10951 (exit $ac_status); }; } && 10952 { ac_try='test -s conftest$ac_exeext' 10953 { (case "(($ac_try" in 10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10955 *) ac_try_echo=$ac_try;; 10956esac 10957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10958 (eval "$ac_try") 2>&5 10959 ac_status=$? 10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10961 (exit $ac_status); }; }; then 10962 10963cat >>confdefs.h <<\_ACEOF 10964#define HAVE_LIBDL 1 10965_ACEOF 10966 libltdl_cv_func_dlopen="yes" 10967else 10968 echo "$as_me: failed program was:" >&5 10969sed 's/^/| /' conftest.$ac_ext >&5 10970 10971 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10972echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10973if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10974 echo $ECHO_N "(cached) $ECHO_C" >&6 10975else 10976 ac_check_lib_save_LIBS=$LIBS 10977LIBS="-lsvld $LIBS" 10978cat >conftest.$ac_ext <<_ACEOF 10979/* confdefs.h. */ 10980_ACEOF 10981cat confdefs.h >>conftest.$ac_ext 10982cat >>conftest.$ac_ext <<_ACEOF 10983/* end confdefs.h. */ 10984 10985/* Override any GCC internal prototype to avoid an error. 10986 Use char because int might match the return type of a GCC 10987 builtin and then its argument prototype would still apply. */ 10988#ifdef __cplusplus 10989extern "C" 10990#endif 10991char dlopen (); 10992int 10993main () 10994{ 10995return dlopen (); 10996 ; 10997 return 0; 10998} 10999_ACEOF 11000rm -f conftest.$ac_objext conftest$ac_exeext 11001if { (ac_try="$ac_link" 11002case "(($ac_try" in 11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11004 *) ac_try_echo=$ac_try;; 11005esac 11006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11007 (eval "$ac_link") 2>conftest.er1 11008 ac_status=$? 11009 grep -v '^ *+' conftest.er1 >conftest.err 11010 rm -f conftest.er1 11011 cat conftest.err >&5 11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11013 (exit $ac_status); } && 11014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11015 { (case "(($ac_try" in 11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11017 *) ac_try_echo=$ac_try;; 11018esac 11019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11020 (eval "$ac_try") 2>&5 11021 ac_status=$? 11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11023 (exit $ac_status); }; } && 11024 { ac_try='test -s conftest$ac_exeext' 11025 { (case "(($ac_try" in 11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11027 *) ac_try_echo=$ac_try;; 11028esac 11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11030 (eval "$ac_try") 2>&5 11031 ac_status=$? 11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11033 (exit $ac_status); }; }; then 11034 ac_cv_lib_svld_dlopen=yes 11035else 11036 echo "$as_me: failed program was:" >&5 11037sed 's/^/| /' conftest.$ac_ext >&5 11038 11039 ac_cv_lib_svld_dlopen=no 11040fi 11041 11042rm -f core conftest.err conftest.$ac_objext \ 11043 conftest$ac_exeext conftest.$ac_ext 11044LIBS=$ac_check_lib_save_LIBS 11045fi 11046{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11047echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 11048if test $ac_cv_lib_svld_dlopen = yes; then 11049 11050cat >>confdefs.h <<\_ACEOF 11051#define HAVE_LIBDL 1 11052_ACEOF 11053 11054 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 11055else 11056 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11057echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 11058if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11059 echo $ECHO_N "(cached) $ECHO_C" >&6 11060else 11061 ac_check_lib_save_LIBS=$LIBS 11062LIBS="-ldld $LIBS" 11063cat >conftest.$ac_ext <<_ACEOF 11064/* confdefs.h. */ 11065_ACEOF 11066cat confdefs.h >>conftest.$ac_ext 11067cat >>conftest.$ac_ext <<_ACEOF 11068/* end confdefs.h. */ 11069 11070/* Override any GCC internal prototype to avoid an error. 11071 Use char because int might match the return type of a GCC 11072 builtin and then its argument prototype would still apply. */ 11073#ifdef __cplusplus 11074extern "C" 11075#endif 11076char dld_link (); 11077int 11078main () 11079{ 11080return dld_link (); 11081 ; 11082 return 0; 11083} 11084_ACEOF 11085rm -f conftest.$ac_objext conftest$ac_exeext 11086if { (ac_try="$ac_link" 11087case "(($ac_try" in 11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11089 *) ac_try_echo=$ac_try;; 11090esac 11091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11092 (eval "$ac_link") 2>conftest.er1 11093 ac_status=$? 11094 grep -v '^ *+' conftest.er1 >conftest.err 11095 rm -f conftest.er1 11096 cat conftest.err >&5 11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11098 (exit $ac_status); } && 11099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11100 { (case "(($ac_try" in 11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11102 *) ac_try_echo=$ac_try;; 11103esac 11104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11105 (eval "$ac_try") 2>&5 11106 ac_status=$? 11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11108 (exit $ac_status); }; } && 11109 { ac_try='test -s conftest$ac_exeext' 11110 { (case "(($ac_try" in 11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11112 *) ac_try_echo=$ac_try;; 11113esac 11114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11115 (eval "$ac_try") 2>&5 11116 ac_status=$? 11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11118 (exit $ac_status); }; }; then 11119 ac_cv_lib_dld_dld_link=yes 11120else 11121 echo "$as_me: failed program was:" >&5 11122sed 's/^/| /' conftest.$ac_ext >&5 11123 11124 ac_cv_lib_dld_dld_link=no 11125fi 11126 11127rm -f core conftest.err conftest.$ac_objext \ 11128 conftest$ac_exeext conftest.$ac_ext 11129LIBS=$ac_check_lib_save_LIBS 11130fi 11131{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11132echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 11133if test $ac_cv_lib_dld_dld_link = yes; then 11134 11135cat >>confdefs.h <<\_ACEOF 11136#define HAVE_DLD 1 11137_ACEOF 11138 11139 LIBADD_DL="$LIBADD_DL -ldld" 11140else 11141 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 11142echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 11143if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 11144 echo $ECHO_N "(cached) $ECHO_C" >&6 11145else 11146 cat >conftest.$ac_ext <<_ACEOF 11147/* confdefs.h. */ 11148_ACEOF 11149cat confdefs.h >>conftest.$ac_ext 11150cat >>conftest.$ac_ext <<_ACEOF 11151/* end confdefs.h. */ 11152/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 11153 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11154#define _dyld_func_lookup innocuous__dyld_func_lookup 11155 11156/* System header to define __stub macros and hopefully few prototypes, 11157 which can conflict with char _dyld_func_lookup (); below. 11158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11159 <limits.h> exists even on freestanding compilers. */ 11160 11161#ifdef __STDC__ 11162# include <limits.h> 11163#else 11164# include <assert.h> 11165#endif 11166 11167#undef _dyld_func_lookup 11168 11169/* Override any GCC internal prototype to avoid an error. 11170 Use char because int might match the return type of a GCC 11171 builtin and then its argument prototype would still apply. */ 11172#ifdef __cplusplus 11173extern "C" 11174#endif 11175char _dyld_func_lookup (); 11176/* The GNU C library defines this for functions which it implements 11177 to always fail with ENOSYS. Some functions are actually named 11178 something starting with __ and the normal name is an alias. */ 11179#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 11180choke me 11181#endif 11182 11183int 11184main () 11185{ 11186return _dyld_func_lookup (); 11187 ; 11188 return 0; 11189} 11190_ACEOF 11191rm -f conftest.$ac_objext conftest$ac_exeext 11192if { (ac_try="$ac_link" 11193case "(($ac_try" in 11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11195 *) ac_try_echo=$ac_try;; 11196esac 11197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11198 (eval "$ac_link") 2>conftest.er1 11199 ac_status=$? 11200 grep -v '^ *+' conftest.er1 >conftest.err 11201 rm -f conftest.er1 11202 cat conftest.err >&5 11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11204 (exit $ac_status); } && 11205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11206 { (case "(($ac_try" in 11207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11208 *) ac_try_echo=$ac_try;; 11209esac 11210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11211 (eval "$ac_try") 2>&5 11212 ac_status=$? 11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11214 (exit $ac_status); }; } && 11215 { ac_try='test -s conftest$ac_exeext' 11216 { (case "(($ac_try" in 11217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11218 *) ac_try_echo=$ac_try;; 11219esac 11220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11221 (eval "$ac_try") 2>&5 11222 ac_status=$? 11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11224 (exit $ac_status); }; }; then 11225 ac_cv_func__dyld_func_lookup=yes 11226else 11227 echo "$as_me: failed program was:" >&5 11228sed 's/^/| /' conftest.$ac_ext >&5 11229 11230 ac_cv_func__dyld_func_lookup=no 11231fi 11232 11233rm -f core conftest.err conftest.$ac_objext \ 11234 conftest$ac_exeext conftest.$ac_ext 11235fi 11236{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 11237echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 11238if test $ac_cv_func__dyld_func_lookup = yes; then 11239 11240cat >>confdefs.h <<\_ACEOF 11241#define HAVE_DYLD 1 11242_ACEOF 11243 11244fi 11245 11246 11247fi 11248 11249 11250fi 11251 11252 11253fi 11254 11255rm -f core conftest.err conftest.$ac_objext \ 11256 conftest$ac_exeext conftest.$ac_ext 11257 11258fi 11259 11260 11261fi 11262 11263 11264fi 11265 11266 11267if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 11268then 11269 lt_save_LIBS="$LIBS" 11270 LIBS="$LIBS $LIBADD_DL" 11271 11272for ac_func in dlerror 11273do 11274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11275{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11277if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11278 echo $ECHO_N "(cached) $ECHO_C" >&6 11279else 11280 cat >conftest.$ac_ext <<_ACEOF 11281/* confdefs.h. */ 11282_ACEOF 11283cat confdefs.h >>conftest.$ac_ext 11284cat >>conftest.$ac_ext <<_ACEOF 11285/* end confdefs.h. */ 11286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11287 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11288#define $ac_func innocuous_$ac_func 11289 11290/* System header to define __stub macros and hopefully few prototypes, 11291 which can conflict with char $ac_func (); below. 11292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11293 <limits.h> exists even on freestanding compilers. */ 11294 11295#ifdef __STDC__ 11296# include <limits.h> 11297#else 11298# include <assert.h> 11299#endif 11300 11301#undef $ac_func 11302 11303/* Override any GCC internal prototype to avoid an error. 11304 Use char because int might match the return type of a GCC 11305 builtin and then its argument prototype would still apply. */ 11306#ifdef __cplusplus 11307extern "C" 11308#endif 11309char $ac_func (); 11310/* The GNU C library defines this for functions which it implements 11311 to always fail with ENOSYS. Some functions are actually named 11312 something starting with __ and the normal name is an alias. */ 11313#if defined __stub_$ac_func || defined __stub___$ac_func 11314choke me 11315#endif 11316 11317int 11318main () 11319{ 11320return $ac_func (); 11321 ; 11322 return 0; 11323} 11324_ACEOF 11325rm -f conftest.$ac_objext conftest$ac_exeext 11326if { (ac_try="$ac_link" 11327case "(($ac_try" in 11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11329 *) ac_try_echo=$ac_try;; 11330esac 11331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11332 (eval "$ac_link") 2>conftest.er1 11333 ac_status=$? 11334 grep -v '^ *+' conftest.er1 >conftest.err 11335 rm -f conftest.er1 11336 cat conftest.err >&5 11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11338 (exit $ac_status); } && 11339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11340 { (case "(($ac_try" in 11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11342 *) ac_try_echo=$ac_try;; 11343esac 11344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11345 (eval "$ac_try") 2>&5 11346 ac_status=$? 11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11348 (exit $ac_status); }; } && 11349 { ac_try='test -s conftest$ac_exeext' 11350 { (case "(($ac_try" in 11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11352 *) ac_try_echo=$ac_try;; 11353esac 11354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11355 (eval "$ac_try") 2>&5 11356 ac_status=$? 11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11358 (exit $ac_status); }; }; then 11359 eval "$as_ac_var=yes" 11360else 11361 echo "$as_me: failed program was:" >&5 11362sed 's/^/| /' conftest.$ac_ext >&5 11363 11364 eval "$as_ac_var=no" 11365fi 11366 11367rm -f core conftest.err conftest.$ac_objext \ 11368 conftest$ac_exeext conftest.$ac_ext 11369fi 11370ac_res=`eval echo '${'$as_ac_var'}'` 11371 { echo "$as_me:$LINENO: result: $ac_res" >&5 11372echo "${ECHO_T}$ac_res" >&6; } 11373if test `eval echo '${'$as_ac_var'}'` = yes; then 11374 cat >>confdefs.h <<_ACEOF 11375#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11376_ACEOF 11377 11378fi 11379done 11380 11381 LIBS="$lt_save_LIBS" 11382fi 11383ac_ext=c 11384ac_cpp='$CPP $CPPFLAGS' 11385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11387ac_compiler_gnu=$ac_cv_c_compiler_gnu 11388 11389 11390 11391{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 11392echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 11393if test "${ac_cv_sys_symbol_underscore+set}" = set; then 11394 echo $ECHO_N "(cached) $ECHO_C" >&6 11395else 11396 ac_cv_sys_symbol_underscore=no 11397 cat > conftest.$ac_ext <<EOF 11398void nm_test_func(){} 11399int main(){nm_test_func;return 0;} 11400EOF 11401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11402 (eval $ac_compile) 2>&5 11403 ac_status=$? 11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11405 (exit $ac_status); }; then 11406 # Now try to grab the symbols. 11407 ac_nlist=conftest.nm 11408 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 11409 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 11410 ac_status=$? 11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11412 (exit $ac_status); } && test -s "$ac_nlist"; then 11413 # See whether the symbols have a leading underscore. 11414 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 11415 ac_cv_sys_symbol_underscore=yes 11416 else 11417 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 11418 : 11419 else 11420 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 11421 fi 11422 fi 11423 else 11424 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 11425 fi 11426 else 11427 echo "configure: failed program was:" >&5 11428 cat conftest.c >&5 11429 fi 11430 rm -rf conftest* 11431 11432fi 11433{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 11434echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 11435 11436 11437if test x"$ac_cv_sys_symbol_underscore" = xyes; then 11438 if test x"$libltdl_cv_func_dlopen" = xyes || 11439 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 11440 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 11441echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 11442if test "${libltdl_cv_need_uscore+set}" = set; then 11443 echo $ECHO_N "(cached) $ECHO_C" >&6 11444else 11445 libltdl_cv_need_uscore=unknown 11446 save_LIBS="$LIBS" 11447 LIBS="$LIBS $LIBADD_DL" 11448 if test "$cross_compiling" = yes; then : 11449 libltdl_cv_need_uscore=cross 11450else 11451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11452 lt_status=$lt_dlunknown 11453 cat > conftest.$ac_ext <<EOF 11454#line 11454 "configure" 11455#include "confdefs.h" 11456 11457#if HAVE_DLFCN_H 11458#include <dlfcn.h> 11459#endif 11460 11461#include <stdio.h> 11462 11463#ifdef RTLD_GLOBAL 11464# define LT_DLGLOBAL RTLD_GLOBAL 11465#else 11466# ifdef DL_GLOBAL 11467# define LT_DLGLOBAL DL_GLOBAL 11468# else 11469# define LT_DLGLOBAL 0 11470# endif 11471#endif 11472 11473/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11474 find out it does not work in some platform. */ 11475#ifndef LT_DLLAZY_OR_NOW 11476# ifdef RTLD_LAZY 11477# define LT_DLLAZY_OR_NOW RTLD_LAZY 11478# else 11479# ifdef DL_LAZY 11480# define LT_DLLAZY_OR_NOW DL_LAZY 11481# else 11482# ifdef RTLD_NOW 11483# define LT_DLLAZY_OR_NOW RTLD_NOW 11484# else 11485# ifdef DL_NOW 11486# define LT_DLLAZY_OR_NOW DL_NOW 11487# else 11488# define LT_DLLAZY_OR_NOW 0 11489# endif 11490# endif 11491# endif 11492# endif 11493#endif 11494 11495#ifdef __cplusplus 11496extern "C" void exit (int); 11497#endif 11498 11499void fnord() { int i=42;} 11500int main () 11501{ 11502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11503 int status = $lt_dlunknown; 11504 11505 if (self) 11506 { 11507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11509 /* dlclose (self); */ 11510 } 11511 else 11512 puts (dlerror ()); 11513 11514 exit (status); 11515} 11516EOF 11517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11518 (eval $ac_link) 2>&5 11519 ac_status=$? 11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11522 (./conftest; exit; ) >&5 2>/dev/null 11523 lt_status=$? 11524 case x$lt_status in 11525 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 11526 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 11527 x$lt_dlunknown|x*) ;; 11528 esac 11529 else : 11530 # compilation failed 11531 11532 fi 11533fi 11534rm -fr conftest* 11535 11536 LIBS="$save_LIBS" 11537 11538fi 11539{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 11540echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 11541 fi 11542fi 11543 11544if test x"$libltdl_cv_need_uscore" = xyes; then 11545 11546cat >>confdefs.h <<\_ACEOF 11547#define NEED_USCORE 1 11548_ACEOF 11549 11550fi 11551 11552 11553{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 11554echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 11555if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 11556 echo $ECHO_N "(cached) $ECHO_C" >&6 11557else 11558 # PORTME does your system automatically load deplibs for dlopen? 11559 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 11560 # For now, we just catch OSes we know something about -- in the 11561 # future, we'll try test this programmatically. 11562 libltdl_cv_sys_dlopen_deplibs=unknown 11563 case "$host_os" in 11564 aix3*|aix4.1.*|aix4.2.*) 11565 # Unknown whether this is true for these versions of AIX, but 11566 # we want this `case' here to explicitly catch those versions. 11567 libltdl_cv_sys_dlopen_deplibs=unknown 11568 ;; 11569 aix[45]*) 11570 libltdl_cv_sys_dlopen_deplibs=yes 11571 ;; 11572 darwin*) 11573 # Assuming the user has installed a libdl from somewhere, this is true 11574 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 11575 libltdl_cv_sys_dlopen_deplibs=yes 11576 ;; 11577 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 11578 # GNU and its variants, using gnu ld.so (Glibc) 11579 libltdl_cv_sys_dlopen_deplibs=yes 11580 ;; 11581 hpux10*|hpux11*) 11582 libltdl_cv_sys_dlopen_deplibs=yes 11583 ;; 11584 interix*) 11585 libltdl_cv_sys_dlopen_deplibs=yes 11586 ;; 11587 irix[12345]*|irix6.[01]*) 11588 # Catch all versions of IRIX before 6.2, and indicate that we don't 11589 # know how it worked for any of those versions. 11590 libltdl_cv_sys_dlopen_deplibs=unknown 11591 ;; 11592 irix*) 11593 # The case above catches anything before 6.2, and it's known that 11594 # at 6.2 and later dlopen does load deplibs. 11595 libltdl_cv_sys_dlopen_deplibs=yes 11596 ;; 11597 netbsd*) 11598 libltdl_cv_sys_dlopen_deplibs=yes 11599 ;; 11600 openbsd*) 11601 libltdl_cv_sys_dlopen_deplibs=yes 11602 ;; 11603 osf[1234]*) 11604 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 11605 # it did *not* use an RPATH in a shared library to find objects the 11606 # library depends on, so we explictly say `no'. 11607 libltdl_cv_sys_dlopen_deplibs=no 11608 ;; 11609 osf5.0|osf5.0a|osf5.1) 11610 # dlopen *does* load deplibs and with the right loader patch applied 11611 # it even uses RPATH in a shared library to search for shared objects 11612 # that the library depends on, but there's no easy way to know if that 11613 # patch is installed. Since this is the case, all we can really 11614 # say is unknown -- it depends on the patch being installed. If 11615 # it is, this changes to `yes'. Without it, it would be `no'. 11616 libltdl_cv_sys_dlopen_deplibs=unknown 11617 ;; 11618 osf*) 11619 # the two cases above should catch all versions of osf <= 5.1. Read 11620 # the comments above for what we know about them. 11621 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 11622 # is used to find them so we can finally say `yes'. 11623 libltdl_cv_sys_dlopen_deplibs=yes 11624 ;; 11625 solaris*) 11626 libltdl_cv_sys_dlopen_deplibs=yes 11627 ;; 11628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11629 libltdl_cv_sys_dlopen_deplibs=yes 11630 ;; 11631 esac 11632 11633fi 11634{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 11635echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 11636if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 11637 11638cat >>confdefs.h <<\_ACEOF 11639#define LTDL_DLOPEN_DEPLIBS 1 11640_ACEOF 11641 11642fi 11643 11644 11645for ac_header in argz.h 11646do 11647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11649 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11652 echo $ECHO_N "(cached) $ECHO_C" >&6 11653fi 11654ac_res=`eval echo '${'$as_ac_Header'}'` 11655 { echo "$as_me:$LINENO: result: $ac_res" >&5 11656echo "${ECHO_T}$ac_res" >&6; } 11657else 11658 # Is the header compilable? 11659{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11661cat >conftest.$ac_ext <<_ACEOF 11662/* confdefs.h. */ 11663_ACEOF 11664cat confdefs.h >>conftest.$ac_ext 11665cat >>conftest.$ac_ext <<_ACEOF 11666/* end confdefs.h. */ 11667$ac_includes_default 11668#include <$ac_header> 11669_ACEOF 11670rm -f conftest.$ac_objext 11671if { (ac_try="$ac_compile" 11672case "(($ac_try" in 11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11674 *) ac_try_echo=$ac_try;; 11675esac 11676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11677 (eval "$ac_compile") 2>conftest.er1 11678 ac_status=$? 11679 grep -v '^ *+' conftest.er1 >conftest.err 11680 rm -f conftest.er1 11681 cat conftest.err >&5 11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11683 (exit $ac_status); } && 11684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11685 { (case "(($ac_try" in 11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11687 *) ac_try_echo=$ac_try;; 11688esac 11689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11690 (eval "$ac_try") 2>&5 11691 ac_status=$? 11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11693 (exit $ac_status); }; } && 11694 { ac_try='test -s conftest.$ac_objext' 11695 { (case "(($ac_try" in 11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11697 *) ac_try_echo=$ac_try;; 11698esac 11699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11700 (eval "$ac_try") 2>&5 11701 ac_status=$? 11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11703 (exit $ac_status); }; }; then 11704 ac_header_compiler=yes 11705else 11706 echo "$as_me: failed program was:" >&5 11707sed 's/^/| /' conftest.$ac_ext >&5 11708 11709 ac_header_compiler=no 11710fi 11711 11712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11713{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11714echo "${ECHO_T}$ac_header_compiler" >&6; } 11715 11716# Is the header present? 11717{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11719cat >conftest.$ac_ext <<_ACEOF 11720/* confdefs.h. */ 11721_ACEOF 11722cat confdefs.h >>conftest.$ac_ext 11723cat >>conftest.$ac_ext <<_ACEOF 11724/* end confdefs.h. */ 11725#include <$ac_header> 11726_ACEOF 11727if { (ac_try="$ac_cpp conftest.$ac_ext" 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_cpp conftest.$ac_ext") 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); } >/dev/null; then 11740 if test -s conftest.err; then 11741 ac_cpp_err=$ac_c_preproc_warn_flag 11742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11743 else 11744 ac_cpp_err= 11745 fi 11746else 11747 ac_cpp_err=yes 11748fi 11749if test -z "$ac_cpp_err"; then 11750 ac_header_preproc=yes 11751else 11752 echo "$as_me: failed program was:" >&5 11753sed 's/^/| /' conftest.$ac_ext >&5 11754 11755 ac_header_preproc=no 11756fi 11757 11758rm -f conftest.err conftest.$ac_ext 11759{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11760echo "${ECHO_T}$ac_header_preproc" >&6; } 11761 11762# So? What about this header? 11763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11764 yes:no: ) 11765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11769 ac_header_preproc=yes 11770 ;; 11771 no:yes:* ) 11772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11775echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11779echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11784 ( cat <<\_ASBOX 11785## ----------------------------------- ## 11786## Report this to llvmbugs@cs.uiuc.edu ## 11787## ----------------------------------- ## 11788_ASBOX 11789 ) | sed "s/^/$as_me: WARNING: /" >&2 11790 ;; 11791esac 11792{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11795 echo $ECHO_N "(cached) $ECHO_C" >&6 11796else 11797 eval "$as_ac_Header=\$ac_header_preproc" 11798fi 11799ac_res=`eval echo '${'$as_ac_Header'}'` 11800 { echo "$as_me:$LINENO: result: $ac_res" >&5 11801echo "${ECHO_T}$ac_res" >&6; } 11802 11803fi 11804if test `eval echo '${'$as_ac_Header'}'` = yes; then 11805 cat >>confdefs.h <<_ACEOF 11806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11807_ACEOF 11808 11809fi 11810 11811done 11812 11813 11814{ echo "$as_me:$LINENO: checking for error_t" >&5 11815echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 11816if test "${ac_cv_type_error_t+set}" = set; then 11817 echo $ECHO_N "(cached) $ECHO_C" >&6 11818else 11819 cat >conftest.$ac_ext <<_ACEOF 11820/* confdefs.h. */ 11821_ACEOF 11822cat confdefs.h >>conftest.$ac_ext 11823cat >>conftest.$ac_ext <<_ACEOF 11824/* end confdefs.h. */ 11825#if HAVE_ARGZ_H 11826# include <argz.h> 11827#endif 11828 11829typedef error_t ac__type_new_; 11830int 11831main () 11832{ 11833if ((ac__type_new_ *) 0) 11834 return 0; 11835if (sizeof (ac__type_new_)) 11836 return 0; 11837 ; 11838 return 0; 11839} 11840_ACEOF 11841rm -f conftest.$ac_objext 11842if { (ac_try="$ac_compile" 11843case "(($ac_try" in 11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11845 *) ac_try_echo=$ac_try;; 11846esac 11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11848 (eval "$ac_compile") 2>conftest.er1 11849 ac_status=$? 11850 grep -v '^ *+' conftest.er1 >conftest.err 11851 rm -f conftest.er1 11852 cat conftest.err >&5 11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11854 (exit $ac_status); } && 11855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11856 { (case "(($ac_try" in 11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11858 *) ac_try_echo=$ac_try;; 11859esac 11860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11861 (eval "$ac_try") 2>&5 11862 ac_status=$? 11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11864 (exit $ac_status); }; } && 11865 { ac_try='test -s conftest.$ac_objext' 11866 { (case "(($ac_try" in 11867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11868 *) ac_try_echo=$ac_try;; 11869esac 11870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11871 (eval "$ac_try") 2>&5 11872 ac_status=$? 11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11874 (exit $ac_status); }; }; then 11875 ac_cv_type_error_t=yes 11876else 11877 echo "$as_me: failed program was:" >&5 11878sed 's/^/| /' conftest.$ac_ext >&5 11879 11880 ac_cv_type_error_t=no 11881fi 11882 11883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11884fi 11885{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 11886echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 11887if test $ac_cv_type_error_t = yes; then 11888 11889cat >>confdefs.h <<_ACEOF 11890#define HAVE_ERROR_T 1 11891_ACEOF 11892 11893 11894else 11895 11896cat >>confdefs.h <<\_ACEOF 11897#define error_t int 11898_ACEOF 11899 11900fi 11901 11902 11903 11904 11905 11906 11907 11908for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 11909do 11910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11911{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11913if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11914 echo $ECHO_N "(cached) $ECHO_C" >&6 11915else 11916 cat >conftest.$ac_ext <<_ACEOF 11917/* confdefs.h. */ 11918_ACEOF 11919cat confdefs.h >>conftest.$ac_ext 11920cat >>conftest.$ac_ext <<_ACEOF 11921/* end confdefs.h. */ 11922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11923 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11924#define $ac_func innocuous_$ac_func 11925 11926/* System header to define __stub macros and hopefully few prototypes, 11927 which can conflict with char $ac_func (); below. 11928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11929 <limits.h> exists even on freestanding compilers. */ 11930 11931#ifdef __STDC__ 11932# include <limits.h> 11933#else 11934# include <assert.h> 11935#endif 11936 11937#undef $ac_func 11938 11939/* Override any GCC internal prototype to avoid an error. 11940 Use char because int might match the return type of a GCC 11941 builtin and then its argument prototype would still apply. */ 11942#ifdef __cplusplus 11943extern "C" 11944#endif 11945char $ac_func (); 11946/* The GNU C library defines this for functions which it implements 11947 to always fail with ENOSYS. Some functions are actually named 11948 something starting with __ and the normal name is an alias. */ 11949#if defined __stub_$ac_func || defined __stub___$ac_func 11950choke me 11951#endif 11952 11953int 11954main () 11955{ 11956return $ac_func (); 11957 ; 11958 return 0; 11959} 11960_ACEOF 11961rm -f conftest.$ac_objext conftest$ac_exeext 11962if { (ac_try="$ac_link" 11963case "(($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_link") 2>conftest.er1 11969 ac_status=$? 11970 grep -v '^ *+' conftest.er1 >conftest.err 11971 rm -f conftest.er1 11972 cat conftest.err >&5 11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11974 (exit $ac_status); } && 11975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11976 { (case "(($ac_try" in 11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11978 *) ac_try_echo=$ac_try;; 11979esac 11980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11981 (eval "$ac_try") 2>&5 11982 ac_status=$? 11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11984 (exit $ac_status); }; } && 11985 { ac_try='test -s conftest$ac_exeext' 11986 { (case "(($ac_try" in 11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11988 *) ac_try_echo=$ac_try;; 11989esac 11990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11991 (eval "$ac_try") 2>&5 11992 ac_status=$? 11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11994 (exit $ac_status); }; }; then 11995 eval "$as_ac_var=yes" 11996else 11997 echo "$as_me: failed program was:" >&5 11998sed 's/^/| /' conftest.$ac_ext >&5 11999 12000 eval "$as_ac_var=no" 12001fi 12002 12003rm -f core conftest.err conftest.$ac_objext \ 12004 conftest$ac_exeext conftest.$ac_ext 12005fi 12006ac_res=`eval echo '${'$as_ac_var'}'` 12007 { echo "$as_me:$LINENO: result: $ac_res" >&5 12008echo "${ECHO_T}$ac_res" >&6; } 12009if test `eval echo '${'$as_ac_var'}'` = yes; then 12010 cat >>confdefs.h <<_ACEOF 12011#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12012_ACEOF 12013 12014fi 12015done 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 12045 stdio.h unistd.h 12046do 12047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12049 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12052 echo $ECHO_N "(cached) $ECHO_C" >&6 12053fi 12054ac_res=`eval echo '${'$as_ac_Header'}'` 12055 { echo "$as_me:$LINENO: result: $ac_res" >&5 12056echo "${ECHO_T}$ac_res" >&6; } 12057else 12058 # Is the header compilable? 12059{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12061cat >conftest.$ac_ext <<_ACEOF 12062/* confdefs.h. */ 12063_ACEOF 12064cat confdefs.h >>conftest.$ac_ext 12065cat >>conftest.$ac_ext <<_ACEOF 12066/* end confdefs.h. */ 12067$ac_includes_default 12068#include <$ac_header> 12069_ACEOF 12070rm -f conftest.$ac_objext 12071if { (ac_try="$ac_compile" 12072case "(($ac_try" in 12073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12074 *) ac_try_echo=$ac_try;; 12075esac 12076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12077 (eval "$ac_compile") 2>conftest.er1 12078 ac_status=$? 12079 grep -v '^ *+' conftest.er1 >conftest.err 12080 rm -f conftest.er1 12081 cat conftest.err >&5 12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12083 (exit $ac_status); } && 12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 12094 { ac_try='test -s conftest.$ac_objext' 12095 { (case "(($ac_try" in 12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12097 *) ac_try_echo=$ac_try;; 12098esac 12099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12100 (eval "$ac_try") 2>&5 12101 ac_status=$? 12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12103 (exit $ac_status); }; }; then 12104 ac_header_compiler=yes 12105else 12106 echo "$as_me: failed program was:" >&5 12107sed 's/^/| /' conftest.$ac_ext >&5 12108 12109 ac_header_compiler=no 12110fi 12111 12112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12113{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12114echo "${ECHO_T}$ac_header_compiler" >&6; } 12115 12116# Is the header present? 12117{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12119cat >conftest.$ac_ext <<_ACEOF 12120/* confdefs.h. */ 12121_ACEOF 12122cat confdefs.h >>conftest.$ac_ext 12123cat >>conftest.$ac_ext <<_ACEOF 12124/* end confdefs.h. */ 12125#include <$ac_header> 12126_ACEOF 12127if { (ac_try="$ac_cpp conftest.$ac_ext" 12128case "(($ac_try" in 12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12130 *) ac_try_echo=$ac_try;; 12131esac 12132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12134 ac_status=$? 12135 grep -v '^ *+' conftest.er1 >conftest.err 12136 rm -f conftest.er1 12137 cat conftest.err >&5 12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12139 (exit $ac_status); } >/dev/null; then 12140 if test -s conftest.err; then 12141 ac_cpp_err=$ac_c_preproc_warn_flag 12142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12143 else 12144 ac_cpp_err= 12145 fi 12146else 12147 ac_cpp_err=yes 12148fi 12149if test -z "$ac_cpp_err"; then 12150 ac_header_preproc=yes 12151else 12152 echo "$as_me: failed program was:" >&5 12153sed 's/^/| /' conftest.$ac_ext >&5 12154 12155 ac_header_preproc=no 12156fi 12157 12158rm -f conftest.err conftest.$ac_ext 12159{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12160echo "${ECHO_T}$ac_header_preproc" >&6; } 12161 12162# So? What about this header? 12163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12164 yes:no: ) 12165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12169 ac_header_preproc=yes 12170 ;; 12171 no:yes:* ) 12172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12175echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12179echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12184 ( cat <<\_ASBOX 12185## ----------------------------------- ## 12186## Report this to llvmbugs@cs.uiuc.edu ## 12187## ----------------------------------- ## 12188_ASBOX 12189 ) | sed "s/^/$as_me: WARNING: /" >&2 12190 ;; 12191esac 12192{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12195 echo $ECHO_N "(cached) $ECHO_C" >&6 12196else 12197 eval "$as_ac_Header=\$ac_header_preproc" 12198fi 12199ac_res=`eval echo '${'$as_ac_Header'}'` 12200 { echo "$as_me:$LINENO: result: $ac_res" >&5 12201echo "${ECHO_T}$ac_res" >&6; } 12202 12203fi 12204if test `eval echo '${'$as_ac_Header'}'` = yes; then 12205 cat >>confdefs.h <<_ACEOF 12206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12207_ACEOF 12208 12209fi 12210 12211done 12212 12213 12214 12215 12216 12217for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 12218do 12219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12221 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12224 echo $ECHO_N "(cached) $ECHO_C" >&6 12225fi 12226ac_res=`eval echo '${'$as_ac_Header'}'` 12227 { echo "$as_me:$LINENO: result: $ac_res" >&5 12228echo "${ECHO_T}$ac_res" >&6; } 12229else 12230 # Is the header compilable? 12231{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12233cat >conftest.$ac_ext <<_ACEOF 12234/* confdefs.h. */ 12235_ACEOF 12236cat confdefs.h >>conftest.$ac_ext 12237cat >>conftest.$ac_ext <<_ACEOF 12238/* end confdefs.h. */ 12239$ac_includes_default 12240#include <$ac_header> 12241_ACEOF 12242rm -f conftest.$ac_objext 12243if { (ac_try="$ac_compile" 12244case "(($ac_try" in 12245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12246 *) ac_try_echo=$ac_try;; 12247esac 12248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12249 (eval "$ac_compile") 2>conftest.er1 12250 ac_status=$? 12251 grep -v '^ *+' conftest.er1 >conftest.err 12252 rm -f conftest.er1 12253 cat conftest.err >&5 12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12255 (exit $ac_status); } && 12256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12257 { (case "(($ac_try" in 12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12259 *) ac_try_echo=$ac_try;; 12260esac 12261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12262 (eval "$ac_try") 2>&5 12263 ac_status=$? 12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12265 (exit $ac_status); }; } && 12266 { ac_try='test -s conftest.$ac_objext' 12267 { (case "(($ac_try" in 12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12269 *) ac_try_echo=$ac_try;; 12270esac 12271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12272 (eval "$ac_try") 2>&5 12273 ac_status=$? 12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12275 (exit $ac_status); }; }; then 12276 ac_header_compiler=yes 12277else 12278 echo "$as_me: failed program was:" >&5 12279sed 's/^/| /' conftest.$ac_ext >&5 12280 12281 ac_header_compiler=no 12282fi 12283 12284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12286echo "${ECHO_T}$ac_header_compiler" >&6; } 12287 12288# Is the header present? 12289{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12291cat >conftest.$ac_ext <<_ACEOF 12292/* confdefs.h. */ 12293_ACEOF 12294cat confdefs.h >>conftest.$ac_ext 12295cat >>conftest.$ac_ext <<_ACEOF 12296/* end confdefs.h. */ 12297#include <$ac_header> 12298_ACEOF 12299if { (ac_try="$ac_cpp conftest.$ac_ext" 12300case "(($ac_try" in 12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12302 *) ac_try_echo=$ac_try;; 12303esac 12304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12306 ac_status=$? 12307 grep -v '^ *+' conftest.er1 >conftest.err 12308 rm -f conftest.er1 12309 cat conftest.err >&5 12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12311 (exit $ac_status); } >/dev/null; then 12312 if test -s conftest.err; then 12313 ac_cpp_err=$ac_c_preproc_warn_flag 12314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12315 else 12316 ac_cpp_err= 12317 fi 12318else 12319 ac_cpp_err=yes 12320fi 12321if test -z "$ac_cpp_err"; then 12322 ac_header_preproc=yes 12323else 12324 echo "$as_me: failed program was:" >&5 12325sed 's/^/| /' conftest.$ac_ext >&5 12326 12327 ac_header_preproc=no 12328fi 12329 12330rm -f conftest.err conftest.$ac_ext 12331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12332echo "${ECHO_T}$ac_header_preproc" >&6; } 12333 12334# So? What about this header? 12335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12336 yes:no: ) 12337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12341 ac_header_preproc=yes 12342 ;; 12343 no:yes:* ) 12344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12351echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12356 ( cat <<\_ASBOX 12357## ----------------------------------- ## 12358## Report this to llvmbugs@cs.uiuc.edu ## 12359## ----------------------------------- ## 12360_ASBOX 12361 ) | sed "s/^/$as_me: WARNING: /" >&2 12362 ;; 12363esac 12364{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12367 echo $ECHO_N "(cached) $ECHO_C" >&6 12368else 12369 eval "$as_ac_Header=\$ac_header_preproc" 12370fi 12371ac_res=`eval echo '${'$as_ac_Header'}'` 12372 { echo "$as_me:$LINENO: result: $ac_res" >&5 12373echo "${ECHO_T}$ac_res" >&6; } 12374 12375fi 12376if test `eval echo '${'$as_ac_Header'}'` = yes; then 12377 cat >>confdefs.h <<_ACEOF 12378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12379_ACEOF 12380 12381fi 12382 12383done 12384 12385 12386 12387for ac_header in string.h strings.h 12388do 12389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12391 { echo "$as_me:$LINENO: checking for $ac_header" >&5 12392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12394 echo $ECHO_N "(cached) $ECHO_C" >&6 12395fi 12396ac_res=`eval echo '${'$as_ac_Header'}'` 12397 { echo "$as_me:$LINENO: result: $ac_res" >&5 12398echo "${ECHO_T}$ac_res" >&6; } 12399else 12400 # Is the header compilable? 12401{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 12402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 12403cat >conftest.$ac_ext <<_ACEOF 12404/* confdefs.h. */ 12405_ACEOF 12406cat confdefs.h >>conftest.$ac_ext 12407cat >>conftest.$ac_ext <<_ACEOF 12408/* end confdefs.h. */ 12409$ac_includes_default 12410#include <$ac_header> 12411_ACEOF 12412rm -f conftest.$ac_objext 12413if { (ac_try="$ac_compile" 12414case "(($ac_try" in 12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12416 *) ac_try_echo=$ac_try;; 12417esac 12418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12419 (eval "$ac_compile") 2>conftest.er1 12420 ac_status=$? 12421 grep -v '^ *+' conftest.er1 >conftest.err 12422 rm -f conftest.er1 12423 cat conftest.err >&5 12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12425 (exit $ac_status); } && 12426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12427 { (case "(($ac_try" in 12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12429 *) ac_try_echo=$ac_try;; 12430esac 12431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12432 (eval "$ac_try") 2>&5 12433 ac_status=$? 12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12435 (exit $ac_status); }; } && 12436 { ac_try='test -s conftest.$ac_objext' 12437 { (case "(($ac_try" in 12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12439 *) ac_try_echo=$ac_try;; 12440esac 12441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12442 (eval "$ac_try") 2>&5 12443 ac_status=$? 12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12445 (exit $ac_status); }; }; then 12446 ac_header_compiler=yes 12447else 12448 echo "$as_me: failed program was:" >&5 12449sed 's/^/| /' conftest.$ac_ext >&5 12450 12451 ac_header_compiler=no 12452fi 12453 12454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12456echo "${ECHO_T}$ac_header_compiler" >&6; } 12457 12458# Is the header present? 12459{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12461cat >conftest.$ac_ext <<_ACEOF 12462/* confdefs.h. */ 12463_ACEOF 12464cat confdefs.h >>conftest.$ac_ext 12465cat >>conftest.$ac_ext <<_ACEOF 12466/* end confdefs.h. */ 12467#include <$ac_header> 12468_ACEOF 12469if { (ac_try="$ac_cpp conftest.$ac_ext" 12470case "(($ac_try" in 12471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12472 *) ac_try_echo=$ac_try;; 12473esac 12474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12476 ac_status=$? 12477 grep -v '^ *+' conftest.er1 >conftest.err 12478 rm -f conftest.er1 12479 cat conftest.err >&5 12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12481 (exit $ac_status); } >/dev/null; then 12482 if test -s conftest.err; then 12483 ac_cpp_err=$ac_c_preproc_warn_flag 12484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12485 else 12486 ac_cpp_err= 12487 fi 12488else 12489 ac_cpp_err=yes 12490fi 12491if test -z "$ac_cpp_err"; then 12492 ac_header_preproc=yes 12493else 12494 echo "$as_me: failed program was:" >&5 12495sed 's/^/| /' conftest.$ac_ext >&5 12496 12497 ac_header_preproc=no 12498fi 12499 12500rm -f conftest.err conftest.$ac_ext 12501{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12502echo "${ECHO_T}$ac_header_preproc" >&6; } 12503 12504# So? What about this header? 12505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12506 yes:no: ) 12507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12510echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12511 ac_header_preproc=yes 12512 ;; 12513 no:yes:* ) 12514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12515echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12517echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12519echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12521echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12525echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12526 ( cat <<\_ASBOX 12527## ----------------------------------- ## 12528## Report this to llvmbugs@cs.uiuc.edu ## 12529## ----------------------------------- ## 12530_ASBOX 12531 ) | sed "s/^/$as_me: WARNING: /" >&2 12532 ;; 12533esac 12534{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12537 echo $ECHO_N "(cached) $ECHO_C" >&6 12538else 12539 eval "$as_ac_Header=\$ac_header_preproc" 12540fi 12541ac_res=`eval echo '${'$as_ac_Header'}'` 12542 { echo "$as_me:$LINENO: result: $ac_res" >&5 12543echo "${ECHO_T}$ac_res" >&6; } 12544 12545fi 12546if test `eval echo '${'$as_ac_Header'}'` = yes; then 12547 cat >>confdefs.h <<_ACEOF 12548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12549_ACEOF 12550 break 12551fi 12552 12553done 12554 12555 12556 12557 12558for ac_func in strchr index 12559do 12560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12561{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12563if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12564 echo $ECHO_N "(cached) $ECHO_C" >&6 12565else 12566 cat >conftest.$ac_ext <<_ACEOF 12567/* confdefs.h. */ 12568_ACEOF 12569cat confdefs.h >>conftest.$ac_ext 12570cat >>conftest.$ac_ext <<_ACEOF 12571/* end confdefs.h. */ 12572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12573 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12574#define $ac_func innocuous_$ac_func 12575 12576/* System header to define __stub macros and hopefully few prototypes, 12577 which can conflict with char $ac_func (); below. 12578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12579 <limits.h> exists even on freestanding compilers. */ 12580 12581#ifdef __STDC__ 12582# include <limits.h> 12583#else 12584# include <assert.h> 12585#endif 12586 12587#undef $ac_func 12588 12589/* Override any GCC internal prototype to avoid an error. 12590 Use char because int might match the return type of a GCC 12591 builtin and then its argument prototype would still apply. */ 12592#ifdef __cplusplus 12593extern "C" 12594#endif 12595char $ac_func (); 12596/* The GNU C library defines this for functions which it implements 12597 to always fail with ENOSYS. Some functions are actually named 12598 something starting with __ and the normal name is an alias. */ 12599#if defined __stub_$ac_func || defined __stub___$ac_func 12600choke me 12601#endif 12602 12603int 12604main () 12605{ 12606return $ac_func (); 12607 ; 12608 return 0; 12609} 12610_ACEOF 12611rm -f conftest.$ac_objext conftest$ac_exeext 12612if { (ac_try="$ac_link" 12613case "(($ac_try" in 12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12615 *) ac_try_echo=$ac_try;; 12616esac 12617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12618 (eval "$ac_link") 2>conftest.er1 12619 ac_status=$? 12620 grep -v '^ *+' conftest.er1 >conftest.err 12621 rm -f conftest.er1 12622 cat conftest.err >&5 12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12624 (exit $ac_status); } && 12625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12626 { (case "(($ac_try" in 12627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12628 *) ac_try_echo=$ac_try;; 12629esac 12630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12631 (eval "$ac_try") 2>&5 12632 ac_status=$? 12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12634 (exit $ac_status); }; } && 12635 { ac_try='test -s conftest$ac_exeext' 12636 { (case "(($ac_try" in 12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12638 *) ac_try_echo=$ac_try;; 12639esac 12640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12641 (eval "$ac_try") 2>&5 12642 ac_status=$? 12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12644 (exit $ac_status); }; }; then 12645 eval "$as_ac_var=yes" 12646else 12647 echo "$as_me: failed program was:" >&5 12648sed 's/^/| /' conftest.$ac_ext >&5 12649 12650 eval "$as_ac_var=no" 12651fi 12652 12653rm -f core conftest.err conftest.$ac_objext \ 12654 conftest$ac_exeext conftest.$ac_ext 12655fi 12656ac_res=`eval echo '${'$as_ac_var'}'` 12657 { echo "$as_me:$LINENO: result: $ac_res" >&5 12658echo "${ECHO_T}$ac_res" >&6; } 12659if test `eval echo '${'$as_ac_var'}'` = yes; then 12660 cat >>confdefs.h <<_ACEOF 12661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12662_ACEOF 12663 break 12664fi 12665done 12666 12667 12668 12669for ac_func in strrchr rindex 12670do 12671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12672{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12674if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12675 echo $ECHO_N "(cached) $ECHO_C" >&6 12676else 12677 cat >conftest.$ac_ext <<_ACEOF 12678/* confdefs.h. */ 12679_ACEOF 12680cat confdefs.h >>conftest.$ac_ext 12681cat >>conftest.$ac_ext <<_ACEOF 12682/* end confdefs.h. */ 12683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12684 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12685#define $ac_func innocuous_$ac_func 12686 12687/* System header to define __stub macros and hopefully few prototypes, 12688 which can conflict with char $ac_func (); below. 12689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12690 <limits.h> exists even on freestanding compilers. */ 12691 12692#ifdef __STDC__ 12693# include <limits.h> 12694#else 12695# include <assert.h> 12696#endif 12697 12698#undef $ac_func 12699 12700/* Override any GCC internal prototype to avoid an error. 12701 Use char because int might match the return type of a GCC 12702 builtin and then its argument prototype would still apply. */ 12703#ifdef __cplusplus 12704extern "C" 12705#endif 12706char $ac_func (); 12707/* The GNU C library defines this for functions which it implements 12708 to always fail with ENOSYS. Some functions are actually named 12709 something starting with __ and the normal name is an alias. */ 12710#if defined __stub_$ac_func || defined __stub___$ac_func 12711choke me 12712#endif 12713 12714int 12715main () 12716{ 12717return $ac_func (); 12718 ; 12719 return 0; 12720} 12721_ACEOF 12722rm -f conftest.$ac_objext conftest$ac_exeext 12723if { (ac_try="$ac_link" 12724case "(($ac_try" in 12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12726 *) ac_try_echo=$ac_try;; 12727esac 12728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12729 (eval "$ac_link") 2>conftest.er1 12730 ac_status=$? 12731 grep -v '^ *+' conftest.er1 >conftest.err 12732 rm -f conftest.er1 12733 cat conftest.err >&5 12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12735 (exit $ac_status); } && 12736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12737 { (case "(($ac_try" in 12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12739 *) ac_try_echo=$ac_try;; 12740esac 12741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12742 (eval "$ac_try") 2>&5 12743 ac_status=$? 12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12745 (exit $ac_status); }; } && 12746 { ac_try='test -s conftest$ac_exeext' 12747 { (case "(($ac_try" in 12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12749 *) ac_try_echo=$ac_try;; 12750esac 12751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12752 (eval "$ac_try") 2>&5 12753 ac_status=$? 12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12755 (exit $ac_status); }; }; then 12756 eval "$as_ac_var=yes" 12757else 12758 echo "$as_me: failed program was:" >&5 12759sed 's/^/| /' conftest.$ac_ext >&5 12760 12761 eval "$as_ac_var=no" 12762fi 12763 12764rm -f core conftest.err conftest.$ac_objext \ 12765 conftest$ac_exeext conftest.$ac_ext 12766fi 12767ac_res=`eval echo '${'$as_ac_var'}'` 12768 { echo "$as_me:$LINENO: result: $ac_res" >&5 12769echo "${ECHO_T}$ac_res" >&6; } 12770if test `eval echo '${'$as_ac_var'}'` = yes; then 12771 cat >>confdefs.h <<_ACEOF 12772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12773_ACEOF 12774 break 12775fi 12776done 12777 12778 12779 12780for ac_func in memcpy bcopy 12781do 12782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12783{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12786 echo $ECHO_N "(cached) $ECHO_C" >&6 12787else 12788 cat >conftest.$ac_ext <<_ACEOF 12789/* confdefs.h. */ 12790_ACEOF 12791cat confdefs.h >>conftest.$ac_ext 12792cat >>conftest.$ac_ext <<_ACEOF 12793/* end confdefs.h. */ 12794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12795 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12796#define $ac_func innocuous_$ac_func 12797 12798/* System header to define __stub macros and hopefully few prototypes, 12799 which can conflict with char $ac_func (); below. 12800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12801 <limits.h> exists even on freestanding compilers. */ 12802 12803#ifdef __STDC__ 12804# include <limits.h> 12805#else 12806# include <assert.h> 12807#endif 12808 12809#undef $ac_func 12810 12811/* Override any GCC internal prototype to avoid an error. 12812 Use char because int might match the return type of a GCC 12813 builtin and then its argument prototype would still apply. */ 12814#ifdef __cplusplus 12815extern "C" 12816#endif 12817char $ac_func (); 12818/* The GNU C library defines this for functions which it implements 12819 to always fail with ENOSYS. Some functions are actually named 12820 something starting with __ and the normal name is an alias. */ 12821#if defined __stub_$ac_func || defined __stub___$ac_func 12822choke me 12823#endif 12824 12825int 12826main () 12827{ 12828return $ac_func (); 12829 ; 12830 return 0; 12831} 12832_ACEOF 12833rm -f conftest.$ac_objext conftest$ac_exeext 12834if { (ac_try="$ac_link" 12835case "(($ac_try" in 12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12837 *) ac_try_echo=$ac_try;; 12838esac 12839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12840 (eval "$ac_link") 2>conftest.er1 12841 ac_status=$? 12842 grep -v '^ *+' conftest.er1 >conftest.err 12843 rm -f conftest.er1 12844 cat conftest.err >&5 12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12846 (exit $ac_status); } && 12847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12848 { (case "(($ac_try" in 12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12850 *) ac_try_echo=$ac_try;; 12851esac 12852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12853 (eval "$ac_try") 2>&5 12854 ac_status=$? 12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12856 (exit $ac_status); }; } && 12857 { ac_try='test -s conftest$ac_exeext' 12858 { (case "(($ac_try" in 12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12860 *) ac_try_echo=$ac_try;; 12861esac 12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12863 (eval "$ac_try") 2>&5 12864 ac_status=$? 12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12866 (exit $ac_status); }; }; then 12867 eval "$as_ac_var=yes" 12868else 12869 echo "$as_me: failed program was:" >&5 12870sed 's/^/| /' conftest.$ac_ext >&5 12871 12872 eval "$as_ac_var=no" 12873fi 12874 12875rm -f core conftest.err conftest.$ac_objext \ 12876 conftest$ac_exeext conftest.$ac_ext 12877fi 12878ac_res=`eval echo '${'$as_ac_var'}'` 12879 { echo "$as_me:$LINENO: result: $ac_res" >&5 12880echo "${ECHO_T}$ac_res" >&6; } 12881if test `eval echo '${'$as_ac_var'}'` = yes; then 12882 cat >>confdefs.h <<_ACEOF 12883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12884_ACEOF 12885 break 12886fi 12887done 12888 12889 12890 12891for ac_func in memmove strcmp 12892do 12893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12894{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12896if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12897 echo $ECHO_N "(cached) $ECHO_C" >&6 12898else 12899 cat >conftest.$ac_ext <<_ACEOF 12900/* confdefs.h. */ 12901_ACEOF 12902cat confdefs.h >>conftest.$ac_ext 12903cat >>conftest.$ac_ext <<_ACEOF 12904/* end confdefs.h. */ 12905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12906 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12907#define $ac_func innocuous_$ac_func 12908 12909/* System header to define __stub macros and hopefully few prototypes, 12910 which can conflict with char $ac_func (); below. 12911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12912 <limits.h> exists even on freestanding compilers. */ 12913 12914#ifdef __STDC__ 12915# include <limits.h> 12916#else 12917# include <assert.h> 12918#endif 12919 12920#undef $ac_func 12921 12922/* Override any GCC internal prototype to avoid an error. 12923 Use char because int might match the return type of a GCC 12924 builtin and then its argument prototype would still apply. */ 12925#ifdef __cplusplus 12926extern "C" 12927#endif 12928char $ac_func (); 12929/* The GNU C library defines this for functions which it implements 12930 to always fail with ENOSYS. Some functions are actually named 12931 something starting with __ and the normal name is an alias. */ 12932#if defined __stub_$ac_func || defined __stub___$ac_func 12933choke me 12934#endif 12935 12936int 12937main () 12938{ 12939return $ac_func (); 12940 ; 12941 return 0; 12942} 12943_ACEOF 12944rm -f conftest.$ac_objext conftest$ac_exeext 12945if { (ac_try="$ac_link" 12946case "(($ac_try" in 12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12948 *) ac_try_echo=$ac_try;; 12949esac 12950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12951 (eval "$ac_link") 2>conftest.er1 12952 ac_status=$? 12953 grep -v '^ *+' conftest.er1 >conftest.err 12954 rm -f conftest.er1 12955 cat conftest.err >&5 12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12957 (exit $ac_status); } && 12958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12959 { (case "(($ac_try" in 12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12961 *) ac_try_echo=$ac_try;; 12962esac 12963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12964 (eval "$ac_try") 2>&5 12965 ac_status=$? 12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12967 (exit $ac_status); }; } && 12968 { ac_try='test -s conftest$ac_exeext' 12969 { (case "(($ac_try" in 12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12971 *) ac_try_echo=$ac_try;; 12972esac 12973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12974 (eval "$ac_try") 2>&5 12975 ac_status=$? 12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12977 (exit $ac_status); }; }; then 12978 eval "$as_ac_var=yes" 12979else 12980 echo "$as_me: failed program was:" >&5 12981sed 's/^/| /' conftest.$ac_ext >&5 12982 12983 eval "$as_ac_var=no" 12984fi 12985 12986rm -f core conftest.err conftest.$ac_objext \ 12987 conftest$ac_exeext conftest.$ac_ext 12988fi 12989ac_res=`eval echo '${'$as_ac_var'}'` 12990 { echo "$as_me:$LINENO: result: $ac_res" >&5 12991echo "${ECHO_T}$ac_res" >&6; } 12992if test `eval echo '${'$as_ac_var'}'` = yes; then 12993 cat >>confdefs.h <<_ACEOF 12994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12995_ACEOF 12996 12997fi 12998done 12999 13000 13001 13002 13003for ac_func in closedir opendir readdir 13004do 13005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13006{ echo "$as_me:$LINENO: checking for $ac_func" >&5 13007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 13008if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 13009 echo $ECHO_N "(cached) $ECHO_C" >&6 13010else 13011 cat >conftest.$ac_ext <<_ACEOF 13012/* confdefs.h. */ 13013_ACEOF 13014cat confdefs.h >>conftest.$ac_ext 13015cat >>conftest.$ac_ext <<_ACEOF 13016/* end confdefs.h. */ 13017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13018 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13019#define $ac_func innocuous_$ac_func 13020 13021/* System header to define __stub macros and hopefully few prototypes, 13022 which can conflict with char $ac_func (); below. 13023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13024 <limits.h> exists even on freestanding compilers. */ 13025 13026#ifdef __STDC__ 13027# include <limits.h> 13028#else 13029# include <assert.h> 13030#endif 13031 13032#undef $ac_func 13033 13034/* Override any GCC internal prototype to avoid an error. 13035 Use char because int might match the return type of a GCC 13036 builtin and then its argument prototype would still apply. */ 13037#ifdef __cplusplus 13038extern "C" 13039#endif 13040char $ac_func (); 13041/* The GNU C library defines this for functions which it implements 13042 to always fail with ENOSYS. Some functions are actually named 13043 something starting with __ and the normal name is an alias. */ 13044#if defined __stub_$ac_func || defined __stub___$ac_func 13045choke me 13046#endif 13047 13048int 13049main () 13050{ 13051return $ac_func (); 13052 ; 13053 return 0; 13054} 13055_ACEOF 13056rm -f conftest.$ac_objext conftest$ac_exeext 13057if { (ac_try="$ac_link" 13058case "(($ac_try" in 13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13060 *) ac_try_echo=$ac_try;; 13061esac 13062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13063 (eval "$ac_link") 2>conftest.er1 13064 ac_status=$? 13065 grep -v '^ *+' conftest.er1 >conftest.err 13066 rm -f conftest.er1 13067 cat conftest.err >&5 13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13069 (exit $ac_status); } && 13070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13071 { (case "(($ac_try" in 13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13073 *) ac_try_echo=$ac_try;; 13074esac 13075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13076 (eval "$ac_try") 2>&5 13077 ac_status=$? 13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13079 (exit $ac_status); }; } && 13080 { ac_try='test -s conftest$ac_exeext' 13081 { (case "(($ac_try" in 13082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13083 *) ac_try_echo=$ac_try;; 13084esac 13085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13086 (eval "$ac_try") 2>&5 13087 ac_status=$? 13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13089 (exit $ac_status); }; }; then 13090 eval "$as_ac_var=yes" 13091else 13092 echo "$as_me: failed program was:" >&5 13093sed 's/^/| /' conftest.$ac_ext >&5 13094 13095 eval "$as_ac_var=no" 13096fi 13097 13098rm -f core conftest.err conftest.$ac_objext \ 13099 conftest$ac_exeext conftest.$ac_ext 13100fi 13101ac_res=`eval echo '${'$as_ac_var'}'` 13102 { echo "$as_me:$LINENO: result: $ac_res" >&5 13103echo "${ECHO_T}$ac_res" >&6; } 13104if test `eval echo '${'$as_ac_var'}'` = yes; then 13105 cat >>confdefs.h <<_ACEOF 13106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13107_ACEOF 13108 13109fi 13110done 13111 13112 13113 13114if test "$WITH_LLVMGCCDIR" = "default" ; then 13115 LLVMGCC="llvm-gcc${EXEEXT}" 13116 LLVMGXX="llvm-g++${EXEEXT}" 13117 LLVMGCCCOMMAND="$LLVMGCC" 13118 LLVMGXXCOMMAND="$LLVMGXX" 13119 LLVMGCCCOMMAND=$LLVMGCCCOMMAND 13120 13121 LLVMGXXCOMMAND=$LLVMGXXCOMMAND 13122 13123 # Extract the first word of "$LLVMGCC", so it can be a program name with args. 13124set dummy $LLVMGCC; ac_word=$2 13125{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13127if test "${ac_cv_path_LLVMGCC+set}" = set; then 13128 echo $ECHO_N "(cached) $ECHO_C" >&6 13129else 13130 case $LLVMGCC in 13131 [\\/]* | ?:[\\/]*) 13132 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. 13133 ;; 13134 *) 13135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13136for as_dir in $PATH 13137do 13138 IFS=$as_save_IFS 13139 test -z "$as_dir" && as_dir=. 13140 for ac_exec_ext in '' $ac_executable_extensions; do 13141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 13142 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" 13143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13144 break 2 13145 fi 13146done 13147done 13148IFS=$as_save_IFS 13149 13150 ;; 13151esac 13152fi 13153LLVMGCC=$ac_cv_path_LLVMGCC 13154if test -n "$LLVMGCC"; then 13155 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 13156echo "${ECHO_T}$LLVMGCC" >&6; } 13157else 13158 { echo "$as_me:$LINENO: result: no" >&5 13159echo "${ECHO_T}no" >&6; } 13160fi 13161 13162 13163 # Extract the first word of "$LLVMGXX", so it can be a program name with args. 13164set dummy $LLVMGXX; ac_word=$2 13165{ echo "$as_me:$LINENO: checking for $ac_word" >&5 13166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 13167if test "${ac_cv_path_LLVMGXX+set}" = set; then 13168 echo $ECHO_N "(cached) $ECHO_C" >&6 13169else 13170 case $LLVMGXX in 13171 [\\/]* | ?:[\\/]*) 13172 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. 13173 ;; 13174 *) 13175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13176for as_dir in $PATH 13177do 13178 IFS=$as_save_IFS 13179 test -z "$as_dir" && as_dir=. 13180 for ac_exec_ext in '' $ac_executable_extensions; do 13181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 13182 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" 13183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 13184 break 2 13185 fi 13186done 13187done 13188IFS=$as_save_IFS 13189 13190 ;; 13191esac 13192fi 13193LLVMGXX=$ac_cv_path_LLVMGXX 13194if test -n "$LLVMGXX"; then 13195 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 13196echo "${ECHO_T}$LLVMGXX" >&6; } 13197else 13198 { echo "$as_me:$LINENO: result: no" >&5 13199echo "${ECHO_T}no" >&6; } 13200fi 13201 13202 13203else 13204 if test -z "$LLVMGCC"; then 13205 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" 13206 LLVMGCCCOMMAND="$LLVMGCC" 13207 fi 13208 if test -z "$LLVMGXX"; then 13209 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" 13210 LLVMGXXCOMMAND="$LLVMGXX" 13211 fi 13212 13213 LLVMGCC=$LLVMGCC 13214 13215 LLVMGXX=$LLVMGXX 13216 13217 LLVMGCCCOMMAND=$LLVMGCCCOMMAND 13218 13219 LLVMGXXCOMMAND=$LLVMGXXCOMMAND 13220 13221fi 13222 13223 13224# Check whether --with-llvmcc was given. 13225if test "${with_llvmcc+set}" = set; then 13226 withval=$with_llvmcc; 13227else 13228 with_llvmcc=check 13229fi 13230 13231{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5 13232echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; } 13233if test "$with_llvmcc" != "check"; then 13234 if (test "$with_llvmcc" != "llvm-gcc" && 13235 test "$with_llvmcc" != "clang" && 13236 test "$with_llvmcc" != "none"); then 13237 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5 13238echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;} 13239 { (exit 1); exit 1; }; } 13240 fi 13241 WITH_LLVMCC="$with_llvmcc" 13242elif test -n "$LLVMGCC"; then 13243 WITH_LLVMCC=llvm-gcc 13244elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then 13245 WITH_LLVMCC=clang 13246else 13247 WITH_LLVMCC=none 13248fi 13249{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5 13250echo "${ECHO_T}$WITH_LLVMCC" >&6; } 13251LLVMCC_OPTION=$WITH_LLVMCC 13252 13253 13254{ echo "$as_me:$LINENO: checking tool compatibility" >&5 13255echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 13256 13257ICC=no 13258IXX=no 13259case $CC in 13260 icc*|icpc*) 13261 ICC=yes 13262 IXX=yes 13263 ;; 13264 *) 13265 ;; 13266esac 13267 13268if test "$GCC" != "yes" && test "$ICC" != "yes" 13269then 13270 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 13271echo "$as_me: error: gcc|icc required but not found" >&2;} 13272 { (exit 1); exit 1; }; } 13273fi 13274 13275if test "$GXX" != "yes" && test "$IXX" != "yes" 13276then 13277 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 13278echo "$as_me: error: g++|icc required but not found" >&2;} 13279 { (exit 1); exit 1; }; } 13280fi 13281 13282if test "$GCC" = "yes" 13283then 13284 cat >conftest.$ac_ext <<_ACEOF 13285#if !defined(__GNUC__) || __GNUC__ < 3 13286#error Unsupported GCC version 13287#endif 13288 13289_ACEOF 13290rm -f conftest.$ac_objext 13291if { (ac_try="$ac_compile" 13292case "(($ac_try" in 13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13294 *) ac_try_echo=$ac_try;; 13295esac 13296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13297 (eval "$ac_compile") 2>conftest.er1 13298 ac_status=$? 13299 grep -v '^ *+' conftest.er1 >conftest.err 13300 rm -f conftest.er1 13301 cat conftest.err >&5 13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13303 (exit $ac_status); } && 13304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13305 { (case "(($ac_try" in 13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13307 *) ac_try_echo=$ac_try;; 13308esac 13309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13310 (eval "$ac_try") 2>&5 13311 ac_status=$? 13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13313 (exit $ac_status); }; } && 13314 { ac_try='test -s conftest.$ac_objext' 13315 { (case "(($ac_try" in 13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13317 *) ac_try_echo=$ac_try;; 13318esac 13319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13320 (eval "$ac_try") 2>&5 13321 ac_status=$? 13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13323 (exit $ac_status); }; }; then 13324 : 13325else 13326 echo "$as_me: failed program was:" >&5 13327sed 's/^/| /' conftest.$ac_ext >&5 13328 13329 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 13330echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 13331 { (exit 1); exit 1; }; } 13332fi 13333 13334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13335fi 13336 13337if test -z "$llvm_cv_gnu_make_command" 13338then 13339 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 13340echo "$as_me: error: GNU Make required but not found" >&2;} 13341 { (exit 1); exit 1; }; } 13342fi 13343 13344{ echo "$as_me:$LINENO: result: ok" >&5 13345echo "${ECHO_T}ok" >&6; } 13346 13347{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 13348echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 13349NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 13350 13351NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 13352 13353{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 13354echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } 13355 13356 13357 13358{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 13359echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 13360if test "${ac_cv_lib_m_sin+set}" = set; then 13361 echo $ECHO_N "(cached) $ECHO_C" >&6 13362else 13363 ac_check_lib_save_LIBS=$LIBS 13364LIBS="-lm $LIBS" 13365cat >conftest.$ac_ext <<_ACEOF 13366/* confdefs.h. */ 13367_ACEOF 13368cat confdefs.h >>conftest.$ac_ext 13369cat >>conftest.$ac_ext <<_ACEOF 13370/* end confdefs.h. */ 13371 13372/* Override any GCC internal prototype to avoid an error. 13373 Use char because int might match the return type of a GCC 13374 builtin and then its argument prototype would still apply. */ 13375#ifdef __cplusplus 13376extern "C" 13377#endif 13378char sin (); 13379int 13380main () 13381{ 13382return sin (); 13383 ; 13384 return 0; 13385} 13386_ACEOF 13387rm -f conftest.$ac_objext conftest$ac_exeext 13388if { (ac_try="$ac_link" 13389case "(($ac_try" in 13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13391 *) ac_try_echo=$ac_try;; 13392esac 13393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13394 (eval "$ac_link") 2>conftest.er1 13395 ac_status=$? 13396 grep -v '^ *+' conftest.er1 >conftest.err 13397 rm -f conftest.er1 13398 cat conftest.err >&5 13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13400 (exit $ac_status); } && 13401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13402 { (case "(($ac_try" in 13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13404 *) ac_try_echo=$ac_try;; 13405esac 13406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13407 (eval "$ac_try") 2>&5 13408 ac_status=$? 13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13410 (exit $ac_status); }; } && 13411 { ac_try='test -s conftest$ac_exeext' 13412 { (case "(($ac_try" in 13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13414 *) ac_try_echo=$ac_try;; 13415esac 13416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13417 (eval "$ac_try") 2>&5 13418 ac_status=$? 13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13420 (exit $ac_status); }; }; then 13421 ac_cv_lib_m_sin=yes 13422else 13423 echo "$as_me: failed program was:" >&5 13424sed 's/^/| /' conftest.$ac_ext >&5 13425 13426 ac_cv_lib_m_sin=no 13427fi 13428 13429rm -f core conftest.err conftest.$ac_objext \ 13430 conftest$ac_exeext conftest.$ac_ext 13431LIBS=$ac_check_lib_save_LIBS 13432fi 13433{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 13434echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 13435if test $ac_cv_lib_m_sin = yes; then 13436 cat >>confdefs.h <<_ACEOF 13437#define HAVE_LIBM 1 13438_ACEOF 13439 13440 LIBS="-lm $LIBS" 13441 13442fi 13443 13444if test "$llvm_cv_os_type" = "MingW" ; then 13445 13446{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 13447echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 13448if test "${ac_cv_lib_imagehlp_main+set}" = set; then 13449 echo $ECHO_N "(cached) $ECHO_C" >&6 13450else 13451 ac_check_lib_save_LIBS=$LIBS 13452LIBS="-limagehlp $LIBS" 13453cat >conftest.$ac_ext <<_ACEOF 13454/* confdefs.h. */ 13455_ACEOF 13456cat confdefs.h >>conftest.$ac_ext 13457cat >>conftest.$ac_ext <<_ACEOF 13458/* end confdefs.h. */ 13459 13460 13461int 13462main () 13463{ 13464return main (); 13465 ; 13466 return 0; 13467} 13468_ACEOF 13469rm -f conftest.$ac_objext conftest$ac_exeext 13470if { (ac_try="$ac_link" 13471case "(($ac_try" in 13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13473 *) ac_try_echo=$ac_try;; 13474esac 13475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13476 (eval "$ac_link") 2>conftest.er1 13477 ac_status=$? 13478 grep -v '^ *+' conftest.er1 >conftest.err 13479 rm -f conftest.er1 13480 cat conftest.err >&5 13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13482 (exit $ac_status); } && 13483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13484 { (case "(($ac_try" in 13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13486 *) ac_try_echo=$ac_try;; 13487esac 13488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13489 (eval "$ac_try") 2>&5 13490 ac_status=$? 13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13492 (exit $ac_status); }; } && 13493 { ac_try='test -s conftest$ac_exeext' 13494 { (case "(($ac_try" in 13495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13496 *) ac_try_echo=$ac_try;; 13497esac 13498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13499 (eval "$ac_try") 2>&5 13500 ac_status=$? 13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13502 (exit $ac_status); }; }; then 13503 ac_cv_lib_imagehlp_main=yes 13504else 13505 echo "$as_me: failed program was:" >&5 13506sed 's/^/| /' conftest.$ac_ext >&5 13507 13508 ac_cv_lib_imagehlp_main=no 13509fi 13510 13511rm -f core conftest.err conftest.$ac_objext \ 13512 conftest$ac_exeext conftest.$ac_ext 13513LIBS=$ac_check_lib_save_LIBS 13514fi 13515{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 13516echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 13517if test $ac_cv_lib_imagehlp_main = yes; then 13518 cat >>confdefs.h <<_ACEOF 13519#define HAVE_LIBIMAGEHLP 1 13520_ACEOF 13521 13522 LIBS="-limagehlp $LIBS" 13523 13524fi 13525 13526 13527{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 13528echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 13529if test "${ac_cv_lib_psapi_main+set}" = set; then 13530 echo $ECHO_N "(cached) $ECHO_C" >&6 13531else 13532 ac_check_lib_save_LIBS=$LIBS 13533LIBS="-lpsapi $LIBS" 13534cat >conftest.$ac_ext <<_ACEOF 13535/* confdefs.h. */ 13536_ACEOF 13537cat confdefs.h >>conftest.$ac_ext 13538cat >>conftest.$ac_ext <<_ACEOF 13539/* end confdefs.h. */ 13540 13541 13542int 13543main () 13544{ 13545return main (); 13546 ; 13547 return 0; 13548} 13549_ACEOF 13550rm -f conftest.$ac_objext conftest$ac_exeext 13551if { (ac_try="$ac_link" 13552case "(($ac_try" in 13553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13554 *) ac_try_echo=$ac_try;; 13555esac 13556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13557 (eval "$ac_link") 2>conftest.er1 13558 ac_status=$? 13559 grep -v '^ *+' conftest.er1 >conftest.err 13560 rm -f conftest.er1 13561 cat conftest.err >&5 13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13563 (exit $ac_status); } && 13564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13565 { (case "(($ac_try" in 13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13567 *) ac_try_echo=$ac_try;; 13568esac 13569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13570 (eval "$ac_try") 2>&5 13571 ac_status=$? 13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13573 (exit $ac_status); }; } && 13574 { ac_try='test -s conftest$ac_exeext' 13575 { (case "(($ac_try" in 13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13577 *) ac_try_echo=$ac_try;; 13578esac 13579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13580 (eval "$ac_try") 2>&5 13581 ac_status=$? 13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13583 (exit $ac_status); }; }; then 13584 ac_cv_lib_psapi_main=yes 13585else 13586 echo "$as_me: failed program was:" >&5 13587sed 's/^/| /' conftest.$ac_ext >&5 13588 13589 ac_cv_lib_psapi_main=no 13590fi 13591 13592rm -f core conftest.err conftest.$ac_objext \ 13593 conftest$ac_exeext conftest.$ac_ext 13594LIBS=$ac_check_lib_save_LIBS 13595fi 13596{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 13597echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 13598if test $ac_cv_lib_psapi_main = yes; then 13599 cat >>confdefs.h <<_ACEOF 13600#define HAVE_LIBPSAPI 1 13601_ACEOF 13602 13603 LIBS="-lpsapi $LIBS" 13604 13605fi 13606 13607fi 13608 13609{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 13610echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 13611if test "${ac_cv_search_dlopen+set}" = set; then 13612 echo $ECHO_N "(cached) $ECHO_C" >&6 13613else 13614 ac_func_search_save_LIBS=$LIBS 13615cat >conftest.$ac_ext <<_ACEOF 13616/* confdefs.h. */ 13617_ACEOF 13618cat confdefs.h >>conftest.$ac_ext 13619cat >>conftest.$ac_ext <<_ACEOF 13620/* end confdefs.h. */ 13621 13622/* Override any GCC internal prototype to avoid an error. 13623 Use char because int might match the return type of a GCC 13624 builtin and then its argument prototype would still apply. */ 13625#ifdef __cplusplus 13626extern "C" 13627#endif 13628char dlopen (); 13629int 13630main () 13631{ 13632return dlopen (); 13633 ; 13634 return 0; 13635} 13636_ACEOF 13637for ac_lib in '' dl; do 13638 if test -z "$ac_lib"; then 13639 ac_res="none required" 13640 else 13641 ac_res=-l$ac_lib 13642 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13643 fi 13644 rm -f conftest.$ac_objext conftest$ac_exeext 13645if { (ac_try="$ac_link" 13646case "(($ac_try" in 13647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13648 *) ac_try_echo=$ac_try;; 13649esac 13650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13651 (eval "$ac_link") 2>conftest.er1 13652 ac_status=$? 13653 grep -v '^ *+' conftest.er1 >conftest.err 13654 rm -f conftest.er1 13655 cat conftest.err >&5 13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13657 (exit $ac_status); } && 13658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13659 { (case "(($ac_try" in 13660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13661 *) ac_try_echo=$ac_try;; 13662esac 13663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13664 (eval "$ac_try") 2>&5 13665 ac_status=$? 13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13667 (exit $ac_status); }; } && 13668 { ac_try='test -s conftest$ac_exeext' 13669 { (case "(($ac_try" in 13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13671 *) ac_try_echo=$ac_try;; 13672esac 13673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13674 (eval "$ac_try") 2>&5 13675 ac_status=$? 13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13677 (exit $ac_status); }; }; then 13678 ac_cv_search_dlopen=$ac_res 13679else 13680 echo "$as_me: failed program was:" >&5 13681sed 's/^/| /' conftest.$ac_ext >&5 13682 13683 13684fi 13685 13686rm -f core conftest.err conftest.$ac_objext \ 13687 conftest$ac_exeext 13688 if test "${ac_cv_search_dlopen+set}" = set; then 13689 break 13690fi 13691done 13692if test "${ac_cv_search_dlopen+set}" = set; then 13693 : 13694else 13695 ac_cv_search_dlopen=no 13696fi 13697rm conftest.$ac_ext 13698LIBS=$ac_func_search_save_LIBS 13699fi 13700{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 13701echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 13702ac_res=$ac_cv_search_dlopen 13703if test "$ac_res" != no; then 13704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13705 13706cat >>confdefs.h <<\_ACEOF 13707#define HAVE_DLOPEN 1 13708_ACEOF 13709 13710else 13711 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 13712echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 13713fi 13714 13715 13716if test "$llvm_cv_enable_libffi" = "yes" ; then 13717 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 13718echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 13719if test "${ac_cv_search_ffi_call+set}" = set; then 13720 echo $ECHO_N "(cached) $ECHO_C" >&6 13721else 13722 ac_func_search_save_LIBS=$LIBS 13723cat >conftest.$ac_ext <<_ACEOF 13724/* confdefs.h. */ 13725_ACEOF 13726cat confdefs.h >>conftest.$ac_ext 13727cat >>conftest.$ac_ext <<_ACEOF 13728/* end confdefs.h. */ 13729 13730/* Override any GCC internal prototype to avoid an error. 13731 Use char because int might match the return type of a GCC 13732 builtin and then its argument prototype would still apply. */ 13733#ifdef __cplusplus 13734extern "C" 13735#endif 13736char ffi_call (); 13737int 13738main () 13739{ 13740return ffi_call (); 13741 ; 13742 return 0; 13743} 13744_ACEOF 13745for ac_lib in '' ffi; do 13746 if test -z "$ac_lib"; then 13747 ac_res="none required" 13748 else 13749 ac_res=-l$ac_lib 13750 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13751 fi 13752 rm -f conftest.$ac_objext conftest$ac_exeext 13753if { (ac_try="$ac_link" 13754case "(($ac_try" in 13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13756 *) ac_try_echo=$ac_try;; 13757esac 13758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13759 (eval "$ac_link") 2>conftest.er1 13760 ac_status=$? 13761 grep -v '^ *+' conftest.er1 >conftest.err 13762 rm -f conftest.er1 13763 cat conftest.err >&5 13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13765 (exit $ac_status); } && 13766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13767 { (case "(($ac_try" in 13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13769 *) ac_try_echo=$ac_try;; 13770esac 13771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13772 (eval "$ac_try") 2>&5 13773 ac_status=$? 13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13775 (exit $ac_status); }; } && 13776 { ac_try='test -s conftest$ac_exeext' 13777 { (case "(($ac_try" in 13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13779 *) ac_try_echo=$ac_try;; 13780esac 13781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13782 (eval "$ac_try") 2>&5 13783 ac_status=$? 13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13785 (exit $ac_status); }; }; then 13786 ac_cv_search_ffi_call=$ac_res 13787else 13788 echo "$as_me: failed program was:" >&5 13789sed 's/^/| /' conftest.$ac_ext >&5 13790 13791 13792fi 13793 13794rm -f core conftest.err conftest.$ac_objext \ 13795 conftest$ac_exeext 13796 if test "${ac_cv_search_ffi_call+set}" = set; then 13797 break 13798fi 13799done 13800if test "${ac_cv_search_ffi_call+set}" = set; then 13801 : 13802else 13803 ac_cv_search_ffi_call=no 13804fi 13805rm conftest.$ac_ext 13806LIBS=$ac_func_search_save_LIBS 13807fi 13808{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 13809echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 13810ac_res=$ac_cv_search_ffi_call 13811if test "$ac_res" != no; then 13812 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13813 13814cat >>confdefs.h <<\_ACEOF 13815#define HAVE_FFI_CALL 1 13816_ACEOF 13817 13818else 13819 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 13820echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 13821 { (exit 1); exit 1; }; } 13822fi 13823 13824fi 13825 13826{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 13827echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 13828if test "${ac_cv_search_mallinfo+set}" = set; then 13829 echo $ECHO_N "(cached) $ECHO_C" >&6 13830else 13831 ac_func_search_save_LIBS=$LIBS 13832cat >conftest.$ac_ext <<_ACEOF 13833/* confdefs.h. */ 13834_ACEOF 13835cat confdefs.h >>conftest.$ac_ext 13836cat >>conftest.$ac_ext <<_ACEOF 13837/* end confdefs.h. */ 13838 13839/* Override any GCC internal prototype to avoid an error. 13840 Use char because int might match the return type of a GCC 13841 builtin and then its argument prototype would still apply. */ 13842#ifdef __cplusplus 13843extern "C" 13844#endif 13845char mallinfo (); 13846int 13847main () 13848{ 13849return mallinfo (); 13850 ; 13851 return 0; 13852} 13853_ACEOF 13854for ac_lib in '' malloc; do 13855 if test -z "$ac_lib"; then 13856 ac_res="none required" 13857 else 13858 ac_res=-l$ac_lib 13859 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13860 fi 13861 rm -f conftest.$ac_objext conftest$ac_exeext 13862if { (ac_try="$ac_link" 13863case "(($ac_try" in 13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13865 *) ac_try_echo=$ac_try;; 13866esac 13867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13868 (eval "$ac_link") 2>conftest.er1 13869 ac_status=$? 13870 grep -v '^ *+' conftest.er1 >conftest.err 13871 rm -f conftest.er1 13872 cat conftest.err >&5 13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13874 (exit $ac_status); } && 13875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13876 { (case "(($ac_try" in 13877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13878 *) ac_try_echo=$ac_try;; 13879esac 13880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13881 (eval "$ac_try") 2>&5 13882 ac_status=$? 13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13884 (exit $ac_status); }; } && 13885 { ac_try='test -s conftest$ac_exeext' 13886 { (case "(($ac_try" in 13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13888 *) ac_try_echo=$ac_try;; 13889esac 13890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13891 (eval "$ac_try") 2>&5 13892 ac_status=$? 13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13894 (exit $ac_status); }; }; then 13895 ac_cv_search_mallinfo=$ac_res 13896else 13897 echo "$as_me: failed program was:" >&5 13898sed 's/^/| /' conftest.$ac_ext >&5 13899 13900 13901fi 13902 13903rm -f core conftest.err conftest.$ac_objext \ 13904 conftest$ac_exeext 13905 if test "${ac_cv_search_mallinfo+set}" = set; then 13906 break 13907fi 13908done 13909if test "${ac_cv_search_mallinfo+set}" = set; then 13910 : 13911else 13912 ac_cv_search_mallinfo=no 13913fi 13914rm conftest.$ac_ext 13915LIBS=$ac_func_search_save_LIBS 13916fi 13917{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 13918echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 13919ac_res=$ac_cv_search_mallinfo 13920if test "$ac_res" != no; then 13921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13922 13923cat >>confdefs.h <<\_ACEOF 13924#define HAVE_MALLINFO 1 13925_ACEOF 13926 13927fi 13928 13929 13930if test "$ENABLE_THREADS" -eq 1 ; then 13931 13932{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 13933echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 13934if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 13935 echo $ECHO_N "(cached) $ECHO_C" >&6 13936else 13937 ac_check_lib_save_LIBS=$LIBS 13938LIBS="-lpthread $LIBS" 13939cat >conftest.$ac_ext <<_ACEOF 13940/* confdefs.h. */ 13941_ACEOF 13942cat confdefs.h >>conftest.$ac_ext 13943cat >>conftest.$ac_ext <<_ACEOF 13944/* end confdefs.h. */ 13945 13946/* Override any GCC internal prototype to avoid an error. 13947 Use char because int might match the return type of a GCC 13948 builtin and then its argument prototype would still apply. */ 13949#ifdef __cplusplus 13950extern "C" 13951#endif 13952char pthread_mutex_init (); 13953int 13954main () 13955{ 13956return pthread_mutex_init (); 13957 ; 13958 return 0; 13959} 13960_ACEOF 13961rm -f conftest.$ac_objext conftest$ac_exeext 13962if { (ac_try="$ac_link" 13963case "(($ac_try" in 13964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13965 *) ac_try_echo=$ac_try;; 13966esac 13967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13968 (eval "$ac_link") 2>conftest.er1 13969 ac_status=$? 13970 grep -v '^ *+' conftest.er1 >conftest.err 13971 rm -f conftest.er1 13972 cat conftest.err >&5 13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13974 (exit $ac_status); } && 13975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13976 { (case "(($ac_try" in 13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13978 *) ac_try_echo=$ac_try;; 13979esac 13980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13981 (eval "$ac_try") 2>&5 13982 ac_status=$? 13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13984 (exit $ac_status); }; } && 13985 { ac_try='test -s conftest$ac_exeext' 13986 { (case "(($ac_try" in 13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13988 *) ac_try_echo=$ac_try;; 13989esac 13990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13991 (eval "$ac_try") 2>&5 13992 ac_status=$? 13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13994 (exit $ac_status); }; }; then 13995 ac_cv_lib_pthread_pthread_mutex_init=yes 13996else 13997 echo "$as_me: failed program was:" >&5 13998sed 's/^/| /' conftest.$ac_ext >&5 13999 14000 ac_cv_lib_pthread_pthread_mutex_init=no 14001fi 14002 14003rm -f core conftest.err conftest.$ac_objext \ 14004 conftest$ac_exeext conftest.$ac_ext 14005LIBS=$ac_check_lib_save_LIBS 14006fi 14007{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 14008echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 14009if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 14010 cat >>confdefs.h <<_ACEOF 14011#define HAVE_LIBPTHREAD 1 14012_ACEOF 14013 14014 LIBS="-lpthread $LIBS" 14015 14016fi 14017 14018 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 14019echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 14020if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 14021 echo $ECHO_N "(cached) $ECHO_C" >&6 14022else 14023 ac_func_search_save_LIBS=$LIBS 14024cat >conftest.$ac_ext <<_ACEOF 14025/* confdefs.h. */ 14026_ACEOF 14027cat confdefs.h >>conftest.$ac_ext 14028cat >>conftest.$ac_ext <<_ACEOF 14029/* end confdefs.h. */ 14030 14031/* Override any GCC internal prototype to avoid an error. 14032 Use char because int might match the return type of a GCC 14033 builtin and then its argument prototype would still apply. */ 14034#ifdef __cplusplus 14035extern "C" 14036#endif 14037char pthread_mutex_lock (); 14038int 14039main () 14040{ 14041return pthread_mutex_lock (); 14042 ; 14043 return 0; 14044} 14045_ACEOF 14046for ac_lib in '' pthread; do 14047 if test -z "$ac_lib"; then 14048 ac_res="none required" 14049 else 14050 ac_res=-l$ac_lib 14051 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14052 fi 14053 rm -f conftest.$ac_objext conftest$ac_exeext 14054if { (ac_try="$ac_link" 14055case "(($ac_try" in 14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14057 *) ac_try_echo=$ac_try;; 14058esac 14059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14060 (eval "$ac_link") 2>conftest.er1 14061 ac_status=$? 14062 grep -v '^ *+' conftest.er1 >conftest.err 14063 rm -f conftest.er1 14064 cat conftest.err >&5 14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14066 (exit $ac_status); } && 14067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14068 { (case "(($ac_try" in 14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14070 *) ac_try_echo=$ac_try;; 14071esac 14072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14073 (eval "$ac_try") 2>&5 14074 ac_status=$? 14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14076 (exit $ac_status); }; } && 14077 { ac_try='test -s conftest$ac_exeext' 14078 { (case "(($ac_try" in 14079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14080 *) ac_try_echo=$ac_try;; 14081esac 14082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14083 (eval "$ac_try") 2>&5 14084 ac_status=$? 14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14086 (exit $ac_status); }; }; then 14087 ac_cv_search_pthread_mutex_lock=$ac_res 14088else 14089 echo "$as_me: failed program was:" >&5 14090sed 's/^/| /' conftest.$ac_ext >&5 14091 14092 14093fi 14094 14095rm -f core conftest.err conftest.$ac_objext \ 14096 conftest$ac_exeext 14097 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 14098 break 14099fi 14100done 14101if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 14102 : 14103else 14104 ac_cv_search_pthread_mutex_lock=no 14105fi 14106rm conftest.$ac_ext 14107LIBS=$ac_func_search_save_LIBS 14108fi 14109{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 14110echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 14111ac_res=$ac_cv_search_pthread_mutex_lock 14112if test "$ac_res" != no; then 14113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14114 14115cat >>confdefs.h <<\_ACEOF 14116#define HAVE_PTHREAD_MUTEX_LOCK 1 14117_ACEOF 14118 14119fi 14120 14121 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 14122echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 14123if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 14124 echo $ECHO_N "(cached) $ECHO_C" >&6 14125else 14126 ac_func_search_save_LIBS=$LIBS 14127cat >conftest.$ac_ext <<_ACEOF 14128/* confdefs.h. */ 14129_ACEOF 14130cat confdefs.h >>conftest.$ac_ext 14131cat >>conftest.$ac_ext <<_ACEOF 14132/* end confdefs.h. */ 14133 14134/* Override any GCC internal prototype to avoid an error. 14135 Use char because int might match the return type of a GCC 14136 builtin and then its argument prototype would still apply. */ 14137#ifdef __cplusplus 14138extern "C" 14139#endif 14140char pthread_rwlock_init (); 14141int 14142main () 14143{ 14144return pthread_rwlock_init (); 14145 ; 14146 return 0; 14147} 14148_ACEOF 14149for ac_lib in '' pthread; do 14150 if test -z "$ac_lib"; then 14151 ac_res="none required" 14152 else 14153 ac_res=-l$ac_lib 14154 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14155 fi 14156 rm -f conftest.$ac_objext conftest$ac_exeext 14157if { (ac_try="$ac_link" 14158case "(($ac_try" in 14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14160 *) ac_try_echo=$ac_try;; 14161esac 14162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14163 (eval "$ac_link") 2>conftest.er1 14164 ac_status=$? 14165 grep -v '^ *+' conftest.er1 >conftest.err 14166 rm -f conftest.er1 14167 cat conftest.err >&5 14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14169 (exit $ac_status); } && 14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14171 { (case "(($ac_try" in 14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14173 *) ac_try_echo=$ac_try;; 14174esac 14175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14176 (eval "$ac_try") 2>&5 14177 ac_status=$? 14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14179 (exit $ac_status); }; } && 14180 { ac_try='test -s conftest$ac_exeext' 14181 { (case "(($ac_try" in 14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14183 *) ac_try_echo=$ac_try;; 14184esac 14185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14186 (eval "$ac_try") 2>&5 14187 ac_status=$? 14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14189 (exit $ac_status); }; }; then 14190 ac_cv_search_pthread_rwlock_init=$ac_res 14191else 14192 echo "$as_me: failed program was:" >&5 14193sed 's/^/| /' conftest.$ac_ext >&5 14194 14195 14196fi 14197 14198rm -f core conftest.err conftest.$ac_objext \ 14199 conftest$ac_exeext 14200 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 14201 break 14202fi 14203done 14204if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 14205 : 14206else 14207 ac_cv_search_pthread_rwlock_init=no 14208fi 14209rm conftest.$ac_ext 14210LIBS=$ac_func_search_save_LIBS 14211fi 14212{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 14213echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 14214ac_res=$ac_cv_search_pthread_rwlock_init 14215if test "$ac_res" != no; then 14216 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14217 14218cat >>confdefs.h <<\_ACEOF 14219#define HAVE_PTHREAD_RWLOCK_INIT 1 14220_ACEOF 14221 14222fi 14223 14224 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 14225echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 14226if test "${ac_cv_search_pthread_getspecific+set}" = set; then 14227 echo $ECHO_N "(cached) $ECHO_C" >&6 14228else 14229 ac_func_search_save_LIBS=$LIBS 14230cat >conftest.$ac_ext <<_ACEOF 14231/* confdefs.h. */ 14232_ACEOF 14233cat confdefs.h >>conftest.$ac_ext 14234cat >>conftest.$ac_ext <<_ACEOF 14235/* end confdefs.h. */ 14236 14237/* Override any GCC internal prototype to avoid an error. 14238 Use char because int might match the return type of a GCC 14239 builtin and then its argument prototype would still apply. */ 14240#ifdef __cplusplus 14241extern "C" 14242#endif 14243char pthread_getspecific (); 14244int 14245main () 14246{ 14247return pthread_getspecific (); 14248 ; 14249 return 0; 14250} 14251_ACEOF 14252for ac_lib in '' pthread; do 14253 if test -z "$ac_lib"; then 14254 ac_res="none required" 14255 else 14256 ac_res=-l$ac_lib 14257 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14258 fi 14259 rm -f conftest.$ac_objext conftest$ac_exeext 14260if { (ac_try="$ac_link" 14261case "(($ac_try" in 14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14263 *) ac_try_echo=$ac_try;; 14264esac 14265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14266 (eval "$ac_link") 2>conftest.er1 14267 ac_status=$? 14268 grep -v '^ *+' conftest.er1 >conftest.err 14269 rm -f conftest.er1 14270 cat conftest.err >&5 14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14272 (exit $ac_status); } && 14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14274 { (case "(($ac_try" in 14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14276 *) ac_try_echo=$ac_try;; 14277esac 14278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14279 (eval "$ac_try") 2>&5 14280 ac_status=$? 14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14282 (exit $ac_status); }; } && 14283 { ac_try='test -s conftest$ac_exeext' 14284 { (case "(($ac_try" in 14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14286 *) ac_try_echo=$ac_try;; 14287esac 14288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14289 (eval "$ac_try") 2>&5 14290 ac_status=$? 14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14292 (exit $ac_status); }; }; then 14293 ac_cv_search_pthread_getspecific=$ac_res 14294else 14295 echo "$as_me: failed program was:" >&5 14296sed 's/^/| /' conftest.$ac_ext >&5 14297 14298 14299fi 14300 14301rm -f core conftest.err conftest.$ac_objext \ 14302 conftest$ac_exeext 14303 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 14304 break 14305fi 14306done 14307if test "${ac_cv_search_pthread_getspecific+set}" = set; then 14308 : 14309else 14310 ac_cv_search_pthread_getspecific=no 14311fi 14312rm conftest.$ac_ext 14313LIBS=$ac_func_search_save_LIBS 14314fi 14315{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 14316echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 14317ac_res=$ac_cv_search_pthread_getspecific 14318if test "$ac_res" != no; then 14319 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14320 14321cat >>confdefs.h <<\_ACEOF 14322#define HAVE_PTHREAD_GETSPECIFIC 1 14323_ACEOF 14324 14325fi 14326 14327fi 14328 14329 14330# Check whether --with-udis86 was given. 14331if test "${with_udis86+set}" = set; then 14332 withval=$with_udis86; 14333 USE_UDIS86=1 14334 14335 case "$withval" in 14336 /usr/lib|yes) ;; 14337 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 14338 esac 14339 14340{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 14341echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 14342if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 14343 echo $ECHO_N "(cached) $ECHO_C" >&6 14344else 14345 ac_check_lib_save_LIBS=$LIBS 14346LIBS="-ludis86 $LIBS" 14347cat >conftest.$ac_ext <<_ACEOF 14348/* confdefs.h. */ 14349_ACEOF 14350cat confdefs.h >>conftest.$ac_ext 14351cat >>conftest.$ac_ext <<_ACEOF 14352/* end confdefs.h. */ 14353 14354/* Override any GCC internal prototype to avoid an error. 14355 Use char because int might match the return type of a GCC 14356 builtin and then its argument prototype would still apply. */ 14357#ifdef __cplusplus 14358extern "C" 14359#endif 14360char ud_init (); 14361int 14362main () 14363{ 14364return ud_init (); 14365 ; 14366 return 0; 14367} 14368_ACEOF 14369rm -f conftest.$ac_objext conftest$ac_exeext 14370if { (ac_try="$ac_link" 14371case "(($ac_try" in 14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14373 *) ac_try_echo=$ac_try;; 14374esac 14375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14376 (eval "$ac_link") 2>conftest.er1 14377 ac_status=$? 14378 grep -v '^ *+' conftest.er1 >conftest.err 14379 rm -f conftest.er1 14380 cat conftest.err >&5 14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14382 (exit $ac_status); } && 14383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14384 { (case "(($ac_try" in 14385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14386 *) ac_try_echo=$ac_try;; 14387esac 14388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14389 (eval "$ac_try") 2>&5 14390 ac_status=$? 14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14392 (exit $ac_status); }; } && 14393 { ac_try='test -s conftest$ac_exeext' 14394 { (case "(($ac_try" in 14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14396 *) ac_try_echo=$ac_try;; 14397esac 14398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14399 (eval "$ac_try") 2>&5 14400 ac_status=$? 14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14402 (exit $ac_status); }; }; then 14403 ac_cv_lib_udis86_ud_init=yes 14404else 14405 echo "$as_me: failed program was:" >&5 14406sed 's/^/| /' conftest.$ac_ext >&5 14407 14408 ac_cv_lib_udis86_ud_init=no 14409fi 14410 14411rm -f core conftest.err conftest.$ac_objext \ 14412 conftest$ac_exeext conftest.$ac_ext 14413LIBS=$ac_check_lib_save_LIBS 14414fi 14415{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 14416echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 14417if test $ac_cv_lib_udis86_ud_init = yes; then 14418 cat >>confdefs.h <<_ACEOF 14419#define HAVE_LIBUDIS86 1 14420_ACEOF 14421 14422 LIBS="-ludis86 $LIBS" 14423 14424else 14425 14426 echo "Error! You need to have libudis86 around." 14427 exit -1 14428 14429fi 14430 14431 14432else 14433 USE_UDIS86=0 14434 14435fi 14436 14437 14438cat >>confdefs.h <<_ACEOF 14439#define USE_UDIS86 $USE_UDIS86 14440_ACEOF 14441 14442 14443 14444# Check whether --with-oprofile was given. 14445if test "${with_oprofile+set}" = set; then 14446 withval=$with_oprofile; 14447 USE_OPROFILE=1 14448 14449 case "$withval" in 14450 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 14451 no) llvm_cv_oppath= 14452 USE_OPROFILE=0 14453 ;; 14454 *) llvm_cv_oppath="${withval}/lib/oprofile" 14455 CPPFLAGS="-I${withval}/include";; 14456 esac 14457 if test -n "$llvm_cv_oppath" ; then 14458 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 14459 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 14460echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 14461if test "${ac_cv_search_bfd_init+set}" = set; then 14462 echo $ECHO_N "(cached) $ECHO_C" >&6 14463else 14464 ac_func_search_save_LIBS=$LIBS 14465cat >conftest.$ac_ext <<_ACEOF 14466/* confdefs.h. */ 14467_ACEOF 14468cat confdefs.h >>conftest.$ac_ext 14469cat >>conftest.$ac_ext <<_ACEOF 14470/* end confdefs.h. */ 14471 14472/* Override any GCC internal prototype to avoid an error. 14473 Use char because int might match the return type of a GCC 14474 builtin and then its argument prototype would still apply. */ 14475#ifdef __cplusplus 14476extern "C" 14477#endif 14478char bfd_init (); 14479int 14480main () 14481{ 14482return bfd_init (); 14483 ; 14484 return 0; 14485} 14486_ACEOF 14487for ac_lib in '' bfd; do 14488 if test -z "$ac_lib"; then 14489 ac_res="none required" 14490 else 14491 ac_res=-l$ac_lib 14492 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14493 fi 14494 rm -f conftest.$ac_objext conftest$ac_exeext 14495if { (ac_try="$ac_link" 14496case "(($ac_try" in 14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14498 *) ac_try_echo=$ac_try;; 14499esac 14500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14501 (eval "$ac_link") 2>conftest.er1 14502 ac_status=$? 14503 grep -v '^ *+' conftest.er1 >conftest.err 14504 rm -f conftest.er1 14505 cat conftest.err >&5 14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14507 (exit $ac_status); } && 14508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14509 { (case "(($ac_try" in 14510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14511 *) ac_try_echo=$ac_try;; 14512esac 14513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14514 (eval "$ac_try") 2>&5 14515 ac_status=$? 14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14517 (exit $ac_status); }; } && 14518 { ac_try='test -s conftest$ac_exeext' 14519 { (case "(($ac_try" in 14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14521 *) ac_try_echo=$ac_try;; 14522esac 14523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14524 (eval "$ac_try") 2>&5 14525 ac_status=$? 14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14527 (exit $ac_status); }; }; then 14528 ac_cv_search_bfd_init=$ac_res 14529else 14530 echo "$as_me: failed program was:" >&5 14531sed 's/^/| /' conftest.$ac_ext >&5 14532 14533 14534fi 14535 14536rm -f core conftest.err conftest.$ac_objext \ 14537 conftest$ac_exeext 14538 if test "${ac_cv_search_bfd_init+set}" = set; then 14539 break 14540fi 14541done 14542if test "${ac_cv_search_bfd_init+set}" = set; then 14543 : 14544else 14545 ac_cv_search_bfd_init=no 14546fi 14547rm conftest.$ac_ext 14548LIBS=$ac_func_search_save_LIBS 14549fi 14550{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 14551echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 14552ac_res=$ac_cv_search_bfd_init 14553if test "$ac_res" != no; then 14554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14555 14556fi 14557 14558 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 14559echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 14560if test "${ac_cv_search_op_open_agent+set}" = set; then 14561 echo $ECHO_N "(cached) $ECHO_C" >&6 14562else 14563 ac_func_search_save_LIBS=$LIBS 14564cat >conftest.$ac_ext <<_ACEOF 14565/* confdefs.h. */ 14566_ACEOF 14567cat confdefs.h >>conftest.$ac_ext 14568cat >>conftest.$ac_ext <<_ACEOF 14569/* end confdefs.h. */ 14570 14571/* Override any GCC internal prototype to avoid an error. 14572 Use char because int might match the return type of a GCC 14573 builtin and then its argument prototype would still apply. */ 14574#ifdef __cplusplus 14575extern "C" 14576#endif 14577char op_open_agent (); 14578int 14579main () 14580{ 14581return op_open_agent (); 14582 ; 14583 return 0; 14584} 14585_ACEOF 14586for ac_lib in '' opagent; do 14587 if test -z "$ac_lib"; then 14588 ac_res="none required" 14589 else 14590 ac_res=-l$ac_lib 14591 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14592 fi 14593 rm -f conftest.$ac_objext conftest$ac_exeext 14594if { (ac_try="$ac_link" 14595case "(($ac_try" in 14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14597 *) ac_try_echo=$ac_try;; 14598esac 14599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14600 (eval "$ac_link") 2>conftest.er1 14601 ac_status=$? 14602 grep -v '^ *+' conftest.er1 >conftest.err 14603 rm -f conftest.er1 14604 cat conftest.err >&5 14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14606 (exit $ac_status); } && 14607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14608 { (case "(($ac_try" in 14609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14610 *) ac_try_echo=$ac_try;; 14611esac 14612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14613 (eval "$ac_try") 2>&5 14614 ac_status=$? 14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14616 (exit $ac_status); }; } && 14617 { ac_try='test -s conftest$ac_exeext' 14618 { (case "(($ac_try" in 14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14620 *) ac_try_echo=$ac_try;; 14621esac 14622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14623 (eval "$ac_try") 2>&5 14624 ac_status=$? 14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14626 (exit $ac_status); }; }; then 14627 ac_cv_search_op_open_agent=$ac_res 14628else 14629 echo "$as_me: failed program was:" >&5 14630sed 's/^/| /' conftest.$ac_ext >&5 14631 14632 14633fi 14634 14635rm -f core conftest.err conftest.$ac_objext \ 14636 conftest$ac_exeext 14637 if test "${ac_cv_search_op_open_agent+set}" = set; then 14638 break 14639fi 14640done 14641if test "${ac_cv_search_op_open_agent+set}" = set; then 14642 : 14643else 14644 ac_cv_search_op_open_agent=no 14645fi 14646rm conftest.$ac_ext 14647LIBS=$ac_func_search_save_LIBS 14648fi 14649{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 14650echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 14651ac_res=$ac_cv_search_op_open_agent 14652if test "$ac_res" != no; then 14653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14654 14655else 14656 14657 echo "Error! You need to have libopagent around." 14658 exit -1 14659 14660fi 14661 14662 if test "${ac_cv_header_opagent_h+set}" = set; then 14663 { echo "$as_me:$LINENO: checking for opagent.h" >&5 14664echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 14665if test "${ac_cv_header_opagent_h+set}" = set; then 14666 echo $ECHO_N "(cached) $ECHO_C" >&6 14667fi 14668{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 14669echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 14670else 14671 # Is the header compilable? 14672{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 14673echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 14674cat >conftest.$ac_ext <<_ACEOF 14675/* confdefs.h. */ 14676_ACEOF 14677cat confdefs.h >>conftest.$ac_ext 14678cat >>conftest.$ac_ext <<_ACEOF 14679/* end confdefs.h. */ 14680$ac_includes_default 14681#include <opagent.h> 14682_ACEOF 14683rm -f conftest.$ac_objext 14684if { (ac_try="$ac_compile" 14685case "(($ac_try" in 14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14687 *) ac_try_echo=$ac_try;; 14688esac 14689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14690 (eval "$ac_compile") 2>conftest.er1 14691 ac_status=$? 14692 grep -v '^ *+' conftest.er1 >conftest.err 14693 rm -f conftest.er1 14694 cat conftest.err >&5 14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14696 (exit $ac_status); } && 14697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14698 { (case "(($ac_try" in 14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14700 *) ac_try_echo=$ac_try;; 14701esac 14702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14703 (eval "$ac_try") 2>&5 14704 ac_status=$? 14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14706 (exit $ac_status); }; } && 14707 { ac_try='test -s conftest.$ac_objext' 14708 { (case "(($ac_try" in 14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14710 *) ac_try_echo=$ac_try;; 14711esac 14712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14713 (eval "$ac_try") 2>&5 14714 ac_status=$? 14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14716 (exit $ac_status); }; }; then 14717 ac_header_compiler=yes 14718else 14719 echo "$as_me: failed program was:" >&5 14720sed 's/^/| /' conftest.$ac_ext >&5 14721 14722 ac_header_compiler=no 14723fi 14724 14725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14726{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14727echo "${ECHO_T}$ac_header_compiler" >&6; } 14728 14729# Is the header present? 14730{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 14731echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 14732cat >conftest.$ac_ext <<_ACEOF 14733/* confdefs.h. */ 14734_ACEOF 14735cat confdefs.h >>conftest.$ac_ext 14736cat >>conftest.$ac_ext <<_ACEOF 14737/* end confdefs.h. */ 14738#include <opagent.h> 14739_ACEOF 14740if { (ac_try="$ac_cpp conftest.$ac_ext" 14741case "(($ac_try" in 14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14743 *) ac_try_echo=$ac_try;; 14744esac 14745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14747 ac_status=$? 14748 grep -v '^ *+' conftest.er1 >conftest.err 14749 rm -f conftest.er1 14750 cat conftest.err >&5 14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14752 (exit $ac_status); } >/dev/null; then 14753 if test -s conftest.err; then 14754 ac_cpp_err=$ac_c_preproc_warn_flag 14755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14756 else 14757 ac_cpp_err= 14758 fi 14759else 14760 ac_cpp_err=yes 14761fi 14762if test -z "$ac_cpp_err"; then 14763 ac_header_preproc=yes 14764else 14765 echo "$as_me: failed program was:" >&5 14766sed 's/^/| /' conftest.$ac_ext >&5 14767 14768 ac_header_preproc=no 14769fi 14770 14771rm -f conftest.err conftest.$ac_ext 14772{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14773echo "${ECHO_T}$ac_header_preproc" >&6; } 14774 14775# So? What about this header? 14776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14777 yes:no: ) 14778 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 14779echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14780 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 14781echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 14782 ac_header_preproc=yes 14783 ;; 14784 no:yes:* ) 14785 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 14786echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 14787 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 14788echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 14789 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 14790echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 14791 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 14792echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 14793 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 14794echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 14795 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 14796echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 14797 ( cat <<\_ASBOX 14798## ----------------------------------- ## 14799## Report this to llvmbugs@cs.uiuc.edu ## 14800## ----------------------------------- ## 14801_ASBOX 14802 ) | sed "s/^/$as_me: WARNING: /" >&2 14803 ;; 14804esac 14805{ echo "$as_me:$LINENO: checking for opagent.h" >&5 14806echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 14807if test "${ac_cv_header_opagent_h+set}" = set; then 14808 echo $ECHO_N "(cached) $ECHO_C" >&6 14809else 14810 ac_cv_header_opagent_h=$ac_header_preproc 14811fi 14812{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 14813echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 14814 14815fi 14816if test $ac_cv_header_opagent_h = yes; then 14817 : 14818else 14819 14820 echo "Error! You need to have opagent.h around." 14821 exit -1 14822 14823fi 14824 14825 14826 fi 14827 14828else 14829 14830 USE_OPROFILE=0 14831 14832 14833fi 14834 14835 14836cat >>confdefs.h <<_ACEOF 14837#define USE_OPROFILE $USE_OPROFILE 14838_ACEOF 14839 14840 14841 14842 14843 14844 14845 14846 14847ac_header_dirent=no 14848for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14849 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14850{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 14851echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 14852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14853 echo $ECHO_N "(cached) $ECHO_C" >&6 14854else 14855 cat >conftest.$ac_ext <<_ACEOF 14856/* confdefs.h. */ 14857_ACEOF 14858cat confdefs.h >>conftest.$ac_ext 14859cat >>conftest.$ac_ext <<_ACEOF 14860/* end confdefs.h. */ 14861#include <sys/types.h> 14862#include <$ac_hdr> 14863 14864int 14865main () 14866{ 14867if ((DIR *) 0) 14868return 0; 14869 ; 14870 return 0; 14871} 14872_ACEOF 14873rm -f conftest.$ac_objext 14874if { (ac_try="$ac_compile" 14875case "(($ac_try" in 14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14877 *) ac_try_echo=$ac_try;; 14878esac 14879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14880 (eval "$ac_compile") 2>conftest.er1 14881 ac_status=$? 14882 grep -v '^ *+' conftest.er1 >conftest.err 14883 rm -f conftest.er1 14884 cat conftest.err >&5 14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14886 (exit $ac_status); } && 14887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14888 { (case "(($ac_try" in 14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14890 *) ac_try_echo=$ac_try;; 14891esac 14892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14893 (eval "$ac_try") 2>&5 14894 ac_status=$? 14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14896 (exit $ac_status); }; } && 14897 { ac_try='test -s conftest.$ac_objext' 14898 { (case "(($ac_try" in 14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14900 *) ac_try_echo=$ac_try;; 14901esac 14902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14903 (eval "$ac_try") 2>&5 14904 ac_status=$? 14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14906 (exit $ac_status); }; }; then 14907 eval "$as_ac_Header=yes" 14908else 14909 echo "$as_me: failed program was:" >&5 14910sed 's/^/| /' conftest.$ac_ext >&5 14911 14912 eval "$as_ac_Header=no" 14913fi 14914 14915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14916fi 14917ac_res=`eval echo '${'$as_ac_Header'}'` 14918 { echo "$as_me:$LINENO: result: $ac_res" >&5 14919echo "${ECHO_T}$ac_res" >&6; } 14920if test `eval echo '${'$as_ac_Header'}'` = yes; then 14921 cat >>confdefs.h <<_ACEOF 14922#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14923_ACEOF 14924 14925ac_header_dirent=$ac_hdr; break 14926fi 14927 14928done 14929# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14930if test $ac_header_dirent = dirent.h; then 14931 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14932echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14933if test "${ac_cv_search_opendir+set}" = set; then 14934 echo $ECHO_N "(cached) $ECHO_C" >&6 14935else 14936 ac_func_search_save_LIBS=$LIBS 14937cat >conftest.$ac_ext <<_ACEOF 14938/* confdefs.h. */ 14939_ACEOF 14940cat confdefs.h >>conftest.$ac_ext 14941cat >>conftest.$ac_ext <<_ACEOF 14942/* end confdefs.h. */ 14943 14944/* Override any GCC internal prototype to avoid an error. 14945 Use char because int might match the return type of a GCC 14946 builtin and then its argument prototype would still apply. */ 14947#ifdef __cplusplus 14948extern "C" 14949#endif 14950char opendir (); 14951int 14952main () 14953{ 14954return opendir (); 14955 ; 14956 return 0; 14957} 14958_ACEOF 14959for ac_lib in '' dir; do 14960 if test -z "$ac_lib"; then 14961 ac_res="none required" 14962 else 14963 ac_res=-l$ac_lib 14964 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14965 fi 14966 rm -f conftest.$ac_objext conftest$ac_exeext 14967if { (ac_try="$ac_link" 14968case "(($ac_try" in 14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14970 *) ac_try_echo=$ac_try;; 14971esac 14972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14973 (eval "$ac_link") 2>conftest.er1 14974 ac_status=$? 14975 grep -v '^ *+' conftest.er1 >conftest.err 14976 rm -f conftest.er1 14977 cat conftest.err >&5 14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14979 (exit $ac_status); } && 14980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14981 { (case "(($ac_try" in 14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14983 *) ac_try_echo=$ac_try;; 14984esac 14985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14986 (eval "$ac_try") 2>&5 14987 ac_status=$? 14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14989 (exit $ac_status); }; } && 14990 { ac_try='test -s conftest$ac_exeext' 14991 { (case "(($ac_try" in 14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14993 *) ac_try_echo=$ac_try;; 14994esac 14995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14996 (eval "$ac_try") 2>&5 14997 ac_status=$? 14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14999 (exit $ac_status); }; }; then 15000 ac_cv_search_opendir=$ac_res 15001else 15002 echo "$as_me: failed program was:" >&5 15003sed 's/^/| /' conftest.$ac_ext >&5 15004 15005 15006fi 15007 15008rm -f core conftest.err conftest.$ac_objext \ 15009 conftest$ac_exeext 15010 if test "${ac_cv_search_opendir+set}" = set; then 15011 break 15012fi 15013done 15014if test "${ac_cv_search_opendir+set}" = set; then 15015 : 15016else 15017 ac_cv_search_opendir=no 15018fi 15019rm conftest.$ac_ext 15020LIBS=$ac_func_search_save_LIBS 15021fi 15022{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 15023echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 15024ac_res=$ac_cv_search_opendir 15025if test "$ac_res" != no; then 15026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15027 15028fi 15029 15030else 15031 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 15032echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 15033if test "${ac_cv_search_opendir+set}" = set; then 15034 echo $ECHO_N "(cached) $ECHO_C" >&6 15035else 15036 ac_func_search_save_LIBS=$LIBS 15037cat >conftest.$ac_ext <<_ACEOF 15038/* confdefs.h. */ 15039_ACEOF 15040cat confdefs.h >>conftest.$ac_ext 15041cat >>conftest.$ac_ext <<_ACEOF 15042/* end confdefs.h. */ 15043 15044/* Override any GCC internal prototype to avoid an error. 15045 Use char because int might match the return type of a GCC 15046 builtin and then its argument prototype would still apply. */ 15047#ifdef __cplusplus 15048extern "C" 15049#endif 15050char opendir (); 15051int 15052main () 15053{ 15054return opendir (); 15055 ; 15056 return 0; 15057} 15058_ACEOF 15059for ac_lib in '' x; do 15060 if test -z "$ac_lib"; then 15061 ac_res="none required" 15062 else 15063 ac_res=-l$ac_lib 15064 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15065 fi 15066 rm -f conftest.$ac_objext conftest$ac_exeext 15067if { (ac_try="$ac_link" 15068case "(($ac_try" in 15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15070 *) ac_try_echo=$ac_try;; 15071esac 15072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15073 (eval "$ac_link") 2>conftest.er1 15074 ac_status=$? 15075 grep -v '^ *+' conftest.er1 >conftest.err 15076 rm -f conftest.er1 15077 cat conftest.err >&5 15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15079 (exit $ac_status); } && 15080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15081 { (case "(($ac_try" in 15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15083 *) ac_try_echo=$ac_try;; 15084esac 15085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15086 (eval "$ac_try") 2>&5 15087 ac_status=$? 15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15089 (exit $ac_status); }; } && 15090 { ac_try='test -s conftest$ac_exeext' 15091 { (case "(($ac_try" in 15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15093 *) ac_try_echo=$ac_try;; 15094esac 15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15096 (eval "$ac_try") 2>&5 15097 ac_status=$? 15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15099 (exit $ac_status); }; }; then 15100 ac_cv_search_opendir=$ac_res 15101else 15102 echo "$as_me: failed program was:" >&5 15103sed 's/^/| /' conftest.$ac_ext >&5 15104 15105 15106fi 15107 15108rm -f core conftest.err conftest.$ac_objext \ 15109 conftest$ac_exeext 15110 if test "${ac_cv_search_opendir+set}" = set; then 15111 break 15112fi 15113done 15114if test "${ac_cv_search_opendir+set}" = set; then 15115 : 15116else 15117 ac_cv_search_opendir=no 15118fi 15119rm conftest.$ac_ext 15120LIBS=$ac_func_search_save_LIBS 15121fi 15122{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 15123echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 15124ac_res=$ac_cv_search_opendir 15125if test "$ac_res" != no; then 15126 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15127 15128fi 15129 15130fi 15131 15132{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 15133echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 15134if test "${ac_cv_header_mmap_anon+set}" = set; then 15135 echo $ECHO_N "(cached) $ECHO_C" >&6 15136else 15137 ac_ext=c 15138ac_cpp='$CPP $CPPFLAGS' 15139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15141ac_compiler_gnu=$ac_cv_c_compiler_gnu 15142 15143 cat >conftest.$ac_ext <<_ACEOF 15144/* confdefs.h. */ 15145_ACEOF 15146cat confdefs.h >>conftest.$ac_ext 15147cat >>conftest.$ac_ext <<_ACEOF 15148/* end confdefs.h. */ 15149#include <sys/mman.h> 15150#include <unistd.h> 15151#include <fcntl.h> 15152int 15153main () 15154{ 15155mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 15156 ; 15157 return 0; 15158} 15159_ACEOF 15160rm -f conftest.$ac_objext 15161if { (ac_try="$ac_compile" 15162case "(($ac_try" in 15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15164 *) ac_try_echo=$ac_try;; 15165esac 15166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15167 (eval "$ac_compile") 2>conftest.er1 15168 ac_status=$? 15169 grep -v '^ *+' conftest.er1 >conftest.err 15170 rm -f conftest.er1 15171 cat conftest.err >&5 15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15173 (exit $ac_status); } && 15174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15175 { (case "(($ac_try" in 15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15177 *) ac_try_echo=$ac_try;; 15178esac 15179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15180 (eval "$ac_try") 2>&5 15181 ac_status=$? 15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15183 (exit $ac_status); }; } && 15184 { ac_try='test -s conftest.$ac_objext' 15185 { (case "(($ac_try" in 15186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15187 *) ac_try_echo=$ac_try;; 15188esac 15189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15190 (eval "$ac_try") 2>&5 15191 ac_status=$? 15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15193 (exit $ac_status); }; }; then 15194 ac_cv_header_mmap_anon=yes 15195else 15196 echo "$as_me: failed program was:" >&5 15197sed 's/^/| /' conftest.$ac_ext >&5 15198 15199 ac_cv_header_mmap_anon=no 15200fi 15201 15202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15203 ac_ext=c 15204ac_cpp='$CPP $CPPFLAGS' 15205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15207ac_compiler_gnu=$ac_cv_c_compiler_gnu 15208 15209 15210fi 15211{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 15212echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 15213if test "$ac_cv_header_mmap_anon" = yes; then 15214 15215cat >>confdefs.h <<\_ACEOF 15216#define HAVE_MMAP_ANONYMOUS 1 15217_ACEOF 15218 15219fi 15220 15221{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 15222echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 15223if test "${ac_cv_header_stat_broken+set}" = set; then 15224 echo $ECHO_N "(cached) $ECHO_C" >&6 15225else 15226 cat >conftest.$ac_ext <<_ACEOF 15227/* confdefs.h. */ 15228_ACEOF 15229cat confdefs.h >>conftest.$ac_ext 15230cat >>conftest.$ac_ext <<_ACEOF 15231/* end confdefs.h. */ 15232#include <sys/types.h> 15233#include <sys/stat.h> 15234 15235#if defined S_ISBLK && defined S_IFDIR 15236# if S_ISBLK (S_IFDIR) 15237You lose. 15238# endif 15239#endif 15240 15241#if defined S_ISBLK && defined S_IFCHR 15242# if S_ISBLK (S_IFCHR) 15243You lose. 15244# endif 15245#endif 15246 15247#if defined S_ISLNK && defined S_IFREG 15248# if S_ISLNK (S_IFREG) 15249You lose. 15250# endif 15251#endif 15252 15253#if defined S_ISSOCK && defined S_IFREG 15254# if S_ISSOCK (S_IFREG) 15255You lose. 15256# endif 15257#endif 15258 15259_ACEOF 15260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15261 $EGREP "You lose" >/dev/null 2>&1; then 15262 ac_cv_header_stat_broken=yes 15263else 15264 ac_cv_header_stat_broken=no 15265fi 15266rm -f conftest* 15267 15268fi 15269{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 15270echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 15271if test $ac_cv_header_stat_broken = yes; then 15272 15273cat >>confdefs.h <<\_ACEOF 15274#define STAT_MACROS_BROKEN 1 15275_ACEOF 15276 15277fi 15278 15279{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 15280echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 15281if test "${ac_cv_header_stdc+set}" = set; then 15282 echo $ECHO_N "(cached) $ECHO_C" >&6 15283else 15284 cat >conftest.$ac_ext <<_ACEOF 15285/* confdefs.h. */ 15286_ACEOF 15287cat confdefs.h >>conftest.$ac_ext 15288cat >>conftest.$ac_ext <<_ACEOF 15289/* end confdefs.h. */ 15290#include <stdlib.h> 15291#include <stdarg.h> 15292#include <string.h> 15293#include <float.h> 15294 15295int 15296main () 15297{ 15298 15299 ; 15300 return 0; 15301} 15302_ACEOF 15303rm -f conftest.$ac_objext 15304if { (ac_try="$ac_compile" 15305case "(($ac_try" in 15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15307 *) ac_try_echo=$ac_try;; 15308esac 15309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15310 (eval "$ac_compile") 2>conftest.er1 15311 ac_status=$? 15312 grep -v '^ *+' conftest.er1 >conftest.err 15313 rm -f conftest.er1 15314 cat conftest.err >&5 15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15316 (exit $ac_status); } && 15317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15318 { (case "(($ac_try" in 15319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15320 *) ac_try_echo=$ac_try;; 15321esac 15322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15323 (eval "$ac_try") 2>&5 15324 ac_status=$? 15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15326 (exit $ac_status); }; } && 15327 { ac_try='test -s conftest.$ac_objext' 15328 { (case "(($ac_try" in 15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15330 *) ac_try_echo=$ac_try;; 15331esac 15332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15333 (eval "$ac_try") 2>&5 15334 ac_status=$? 15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15336 (exit $ac_status); }; }; then 15337 ac_cv_header_stdc=yes 15338else 15339 echo "$as_me: failed program was:" >&5 15340sed 's/^/| /' conftest.$ac_ext >&5 15341 15342 ac_cv_header_stdc=no 15343fi 15344 15345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15346 15347if test $ac_cv_header_stdc = yes; then 15348 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15349 cat >conftest.$ac_ext <<_ACEOF 15350/* confdefs.h. */ 15351_ACEOF 15352cat confdefs.h >>conftest.$ac_ext 15353cat >>conftest.$ac_ext <<_ACEOF 15354/* end confdefs.h. */ 15355#include <string.h> 15356 15357_ACEOF 15358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15359 $EGREP "memchr" >/dev/null 2>&1; then 15360 : 15361else 15362 ac_cv_header_stdc=no 15363fi 15364rm -f conftest* 15365 15366fi 15367 15368if test $ac_cv_header_stdc = yes; then 15369 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15370 cat >conftest.$ac_ext <<_ACEOF 15371/* confdefs.h. */ 15372_ACEOF 15373cat confdefs.h >>conftest.$ac_ext 15374cat >>conftest.$ac_ext <<_ACEOF 15375/* end confdefs.h. */ 15376#include <stdlib.h> 15377 15378_ACEOF 15379if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15380 $EGREP "free" >/dev/null 2>&1; then 15381 : 15382else 15383 ac_cv_header_stdc=no 15384fi 15385rm -f conftest* 15386 15387fi 15388 15389if test $ac_cv_header_stdc = yes; then 15390 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15391 if test "$cross_compiling" = yes; then 15392 : 15393else 15394 cat >conftest.$ac_ext <<_ACEOF 15395/* confdefs.h. */ 15396_ACEOF 15397cat confdefs.h >>conftest.$ac_ext 15398cat >>conftest.$ac_ext <<_ACEOF 15399/* end confdefs.h. */ 15400#include <ctype.h> 15401#include <stdlib.h> 15402#if ((' ' & 0x0FF) == 0x020) 15403# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15404# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15405#else 15406# define ISLOWER(c) \ 15407 (('a' <= (c) && (c) <= 'i') \ 15408 || ('j' <= (c) && (c) <= 'r') \ 15409 || ('s' <= (c) && (c) <= 'z')) 15410# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15411#endif 15412 15413#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15414int 15415main () 15416{ 15417 int i; 15418 for (i = 0; i < 256; i++) 15419 if (XOR (islower (i), ISLOWER (i)) 15420 || toupper (i) != TOUPPER (i)) 15421 return 2; 15422 return 0; 15423} 15424_ACEOF 15425rm -f conftest$ac_exeext 15426if { (ac_try="$ac_link" 15427case "(($ac_try" in 15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15429 *) ac_try_echo=$ac_try;; 15430esac 15431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15432 (eval "$ac_link") 2>&5 15433 ac_status=$? 15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15436 { (case "(($ac_try" in 15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15438 *) ac_try_echo=$ac_try;; 15439esac 15440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15441 (eval "$ac_try") 2>&5 15442 ac_status=$? 15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15444 (exit $ac_status); }; }; then 15445 : 15446else 15447 echo "$as_me: program exited with status $ac_status" >&5 15448echo "$as_me: failed program was:" >&5 15449sed 's/^/| /' conftest.$ac_ext >&5 15450 15451( exit $ac_status ) 15452ac_cv_header_stdc=no 15453fi 15454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15455fi 15456 15457 15458fi 15459fi 15460{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 15461echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 15462if test $ac_cv_header_stdc = yes; then 15463 15464cat >>confdefs.h <<\_ACEOF 15465#define STDC_HEADERS 1 15466_ACEOF 15467 15468fi 15469 15470{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 15471echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 15472if test "${ac_cv_header_sys_wait_h+set}" = set; then 15473 echo $ECHO_N "(cached) $ECHO_C" >&6 15474else 15475 cat >conftest.$ac_ext <<_ACEOF 15476/* confdefs.h. */ 15477_ACEOF 15478cat confdefs.h >>conftest.$ac_ext 15479cat >>conftest.$ac_ext <<_ACEOF 15480/* end confdefs.h. */ 15481#include <sys/types.h> 15482#include <sys/wait.h> 15483#ifndef WEXITSTATUS 15484# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 15485#endif 15486#ifndef WIFEXITED 15487# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 15488#endif 15489 15490int 15491main () 15492{ 15493 int s; 15494 wait (&s); 15495 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 15496 ; 15497 return 0; 15498} 15499_ACEOF 15500rm -f conftest.$ac_objext 15501if { (ac_try="$ac_compile" 15502case "(($ac_try" in 15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15504 *) ac_try_echo=$ac_try;; 15505esac 15506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15507 (eval "$ac_compile") 2>conftest.er1 15508 ac_status=$? 15509 grep -v '^ *+' conftest.er1 >conftest.err 15510 rm -f conftest.er1 15511 cat conftest.err >&5 15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15513 (exit $ac_status); } && 15514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15515 { (case "(($ac_try" in 15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15517 *) ac_try_echo=$ac_try;; 15518esac 15519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15520 (eval "$ac_try") 2>&5 15521 ac_status=$? 15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15523 (exit $ac_status); }; } && 15524 { ac_try='test -s conftest.$ac_objext' 15525 { (case "(($ac_try" in 15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15527 *) ac_try_echo=$ac_try;; 15528esac 15529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15530 (eval "$ac_try") 2>&5 15531 ac_status=$? 15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15533 (exit $ac_status); }; }; then 15534 ac_cv_header_sys_wait_h=yes 15535else 15536 echo "$as_me: failed program was:" >&5 15537sed 's/^/| /' conftest.$ac_ext >&5 15538 15539 ac_cv_header_sys_wait_h=no 15540fi 15541 15542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15543fi 15544{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 15545echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 15546if test $ac_cv_header_sys_wait_h = yes; then 15547 15548cat >>confdefs.h <<\_ACEOF 15549#define HAVE_SYS_WAIT_H 1 15550_ACEOF 15551 15552fi 15553 15554{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 15555echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 15556if test "${ac_cv_header_time+set}" = set; then 15557 echo $ECHO_N "(cached) $ECHO_C" >&6 15558else 15559 cat >conftest.$ac_ext <<_ACEOF 15560/* confdefs.h. */ 15561_ACEOF 15562cat confdefs.h >>conftest.$ac_ext 15563cat >>conftest.$ac_ext <<_ACEOF 15564/* end confdefs.h. */ 15565#include <sys/types.h> 15566#include <sys/time.h> 15567#include <time.h> 15568 15569int 15570main () 15571{ 15572if ((struct tm *) 0) 15573return 0; 15574 ; 15575 return 0; 15576} 15577_ACEOF 15578rm -f conftest.$ac_objext 15579if { (ac_try="$ac_compile" 15580case "(($ac_try" in 15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15582 *) ac_try_echo=$ac_try;; 15583esac 15584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15585 (eval "$ac_compile") 2>conftest.er1 15586 ac_status=$? 15587 grep -v '^ *+' conftest.er1 >conftest.err 15588 rm -f conftest.er1 15589 cat conftest.err >&5 15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15591 (exit $ac_status); } && 15592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15593 { (case "(($ac_try" in 15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15595 *) ac_try_echo=$ac_try;; 15596esac 15597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15598 (eval "$ac_try") 2>&5 15599 ac_status=$? 15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15601 (exit $ac_status); }; } && 15602 { ac_try='test -s conftest.$ac_objext' 15603 { (case "(($ac_try" in 15604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15605 *) ac_try_echo=$ac_try;; 15606esac 15607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15608 (eval "$ac_try") 2>&5 15609 ac_status=$? 15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15611 (exit $ac_status); }; }; then 15612 ac_cv_header_time=yes 15613else 15614 echo "$as_me: failed program was:" >&5 15615sed 's/^/| /' conftest.$ac_ext >&5 15616 15617 ac_cv_header_time=no 15618fi 15619 15620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15621fi 15622{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 15623echo "${ECHO_T}$ac_cv_header_time" >&6; } 15624if test $ac_cv_header_time = yes; then 15625 15626cat >>confdefs.h <<\_ACEOF 15627#define TIME_WITH_SYS_TIME 1 15628_ACEOF 15629 15630fi 15631 15632 15633 15634 15635 15636 15637 15638 15639for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 15640do 15641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15643 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15646 echo $ECHO_N "(cached) $ECHO_C" >&6 15647fi 15648ac_res=`eval echo '${'$as_ac_Header'}'` 15649 { echo "$as_me:$LINENO: result: $ac_res" >&5 15650echo "${ECHO_T}$ac_res" >&6; } 15651else 15652 # Is the header compilable? 15653{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15655cat >conftest.$ac_ext <<_ACEOF 15656/* confdefs.h. */ 15657_ACEOF 15658cat confdefs.h >>conftest.$ac_ext 15659cat >>conftest.$ac_ext <<_ACEOF 15660/* end confdefs.h. */ 15661$ac_includes_default 15662#include <$ac_header> 15663_ACEOF 15664rm -f conftest.$ac_objext 15665if { (ac_try="$ac_compile" 15666case "(($ac_try" in 15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15668 *) ac_try_echo=$ac_try;; 15669esac 15670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15671 (eval "$ac_compile") 2>conftest.er1 15672 ac_status=$? 15673 grep -v '^ *+' conftest.er1 >conftest.err 15674 rm -f conftest.er1 15675 cat conftest.err >&5 15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15677 (exit $ac_status); } && 15678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15679 { (case "(($ac_try" in 15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15681 *) ac_try_echo=$ac_try;; 15682esac 15683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15684 (eval "$ac_try") 2>&5 15685 ac_status=$? 15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15687 (exit $ac_status); }; } && 15688 { ac_try='test -s conftest.$ac_objext' 15689 { (case "(($ac_try" in 15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15691 *) ac_try_echo=$ac_try;; 15692esac 15693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15694 (eval "$ac_try") 2>&5 15695 ac_status=$? 15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15697 (exit $ac_status); }; }; then 15698 ac_header_compiler=yes 15699else 15700 echo "$as_me: failed program was:" >&5 15701sed 's/^/| /' conftest.$ac_ext >&5 15702 15703 ac_header_compiler=no 15704fi 15705 15706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15707{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15708echo "${ECHO_T}$ac_header_compiler" >&6; } 15709 15710# Is the header present? 15711{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15712echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15713cat >conftest.$ac_ext <<_ACEOF 15714/* confdefs.h. */ 15715_ACEOF 15716cat confdefs.h >>conftest.$ac_ext 15717cat >>conftest.$ac_ext <<_ACEOF 15718/* end confdefs.h. */ 15719#include <$ac_header> 15720_ACEOF 15721if { (ac_try="$ac_cpp conftest.$ac_ext" 15722case "(($ac_try" in 15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15724 *) ac_try_echo=$ac_try;; 15725esac 15726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15728 ac_status=$? 15729 grep -v '^ *+' conftest.er1 >conftest.err 15730 rm -f conftest.er1 15731 cat conftest.err >&5 15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15733 (exit $ac_status); } >/dev/null; then 15734 if test -s conftest.err; then 15735 ac_cpp_err=$ac_c_preproc_warn_flag 15736 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15737 else 15738 ac_cpp_err= 15739 fi 15740else 15741 ac_cpp_err=yes 15742fi 15743if test -z "$ac_cpp_err"; then 15744 ac_header_preproc=yes 15745else 15746 echo "$as_me: failed program was:" >&5 15747sed 's/^/| /' conftest.$ac_ext >&5 15748 15749 ac_header_preproc=no 15750fi 15751 15752rm -f conftest.err conftest.$ac_ext 15753{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15754echo "${ECHO_T}$ac_header_preproc" >&6; } 15755 15756# So? What about this header? 15757case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15758 yes:no: ) 15759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15760echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15762echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15763 ac_header_preproc=yes 15764 ;; 15765 no:yes:* ) 15766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15767echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15769echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15771echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15773echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15777echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15778 ( cat <<\_ASBOX 15779## ----------------------------------- ## 15780## Report this to llvmbugs@cs.uiuc.edu ## 15781## ----------------------------------- ## 15782_ASBOX 15783 ) | sed "s/^/$as_me: WARNING: /" >&2 15784 ;; 15785esac 15786{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15789 echo $ECHO_N "(cached) $ECHO_C" >&6 15790else 15791 eval "$as_ac_Header=\$ac_header_preproc" 15792fi 15793ac_res=`eval echo '${'$as_ac_Header'}'` 15794 { echo "$as_me:$LINENO: result: $ac_res" >&5 15795echo "${ECHO_T}$ac_res" >&6; } 15796 15797fi 15798if test `eval echo '${'$as_ac_Header'}'` = yes; then 15799 cat >>confdefs.h <<_ACEOF 15800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15801_ACEOF 15802 15803fi 15804 15805done 15806 15807 15808 15809 15810 15811 15812 15813for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 15814do 15815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15817 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15820 echo $ECHO_N "(cached) $ECHO_C" >&6 15821fi 15822ac_res=`eval echo '${'$as_ac_Header'}'` 15823 { echo "$as_me:$LINENO: result: $ac_res" >&5 15824echo "${ECHO_T}$ac_res" >&6; } 15825else 15826 # Is the header compilable? 15827{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15829cat >conftest.$ac_ext <<_ACEOF 15830/* confdefs.h. */ 15831_ACEOF 15832cat confdefs.h >>conftest.$ac_ext 15833cat >>conftest.$ac_ext <<_ACEOF 15834/* end confdefs.h. */ 15835$ac_includes_default 15836#include <$ac_header> 15837_ACEOF 15838rm -f conftest.$ac_objext 15839if { (ac_try="$ac_compile" 15840case "(($ac_try" in 15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15842 *) ac_try_echo=$ac_try;; 15843esac 15844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15845 (eval "$ac_compile") 2>conftest.er1 15846 ac_status=$? 15847 grep -v '^ *+' conftest.er1 >conftest.err 15848 rm -f conftest.er1 15849 cat conftest.err >&5 15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15851 (exit $ac_status); } && 15852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15853 { (case "(($ac_try" in 15854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15855 *) ac_try_echo=$ac_try;; 15856esac 15857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15858 (eval "$ac_try") 2>&5 15859 ac_status=$? 15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15861 (exit $ac_status); }; } && 15862 { ac_try='test -s conftest.$ac_objext' 15863 { (case "(($ac_try" in 15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15865 *) ac_try_echo=$ac_try;; 15866esac 15867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15868 (eval "$ac_try") 2>&5 15869 ac_status=$? 15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15871 (exit $ac_status); }; }; then 15872 ac_header_compiler=yes 15873else 15874 echo "$as_me: failed program was:" >&5 15875sed 's/^/| /' conftest.$ac_ext >&5 15876 15877 ac_header_compiler=no 15878fi 15879 15880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15881{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15882echo "${ECHO_T}$ac_header_compiler" >&6; } 15883 15884# Is the header present? 15885{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15887cat >conftest.$ac_ext <<_ACEOF 15888/* confdefs.h. */ 15889_ACEOF 15890cat confdefs.h >>conftest.$ac_ext 15891cat >>conftest.$ac_ext <<_ACEOF 15892/* end confdefs.h. */ 15893#include <$ac_header> 15894_ACEOF 15895if { (ac_try="$ac_cpp conftest.$ac_ext" 15896case "(($ac_try" in 15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15898 *) ac_try_echo=$ac_try;; 15899esac 15900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15902 ac_status=$? 15903 grep -v '^ *+' conftest.er1 >conftest.err 15904 rm -f conftest.er1 15905 cat conftest.err >&5 15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15907 (exit $ac_status); } >/dev/null; then 15908 if test -s conftest.err; then 15909 ac_cpp_err=$ac_c_preproc_warn_flag 15910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15911 else 15912 ac_cpp_err= 15913 fi 15914else 15915 ac_cpp_err=yes 15916fi 15917if test -z "$ac_cpp_err"; then 15918 ac_header_preproc=yes 15919else 15920 echo "$as_me: failed program was:" >&5 15921sed 's/^/| /' conftest.$ac_ext >&5 15922 15923 ac_header_preproc=no 15924fi 15925 15926rm -f conftest.err conftest.$ac_ext 15927{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15928echo "${ECHO_T}$ac_header_preproc" >&6; } 15929 15930# So? What about this header? 15931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15932 yes:no: ) 15933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15937 ac_header_preproc=yes 15938 ;; 15939 no:yes:* ) 15940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15952 ( cat <<\_ASBOX 15953## ----------------------------------- ## 15954## Report this to llvmbugs@cs.uiuc.edu ## 15955## ----------------------------------- ## 15956_ASBOX 15957 ) | sed "s/^/$as_me: WARNING: /" >&2 15958 ;; 15959esac 15960{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15963 echo $ECHO_N "(cached) $ECHO_C" >&6 15964else 15965 eval "$as_ac_Header=\$ac_header_preproc" 15966fi 15967ac_res=`eval echo '${'$as_ac_Header'}'` 15968 { echo "$as_me:$LINENO: result: $ac_res" >&5 15969echo "${ECHO_T}$ac_res" >&6; } 15970 15971fi 15972if test `eval echo '${'$as_ac_Header'}'` = yes; then 15973 cat >>confdefs.h <<_ACEOF 15974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15975_ACEOF 15976 15977fi 15978 15979done 15980 15981 15982 15983for ac_header in utime.h windows.h 15984do 15985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15987 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15990 echo $ECHO_N "(cached) $ECHO_C" >&6 15991fi 15992ac_res=`eval echo '${'$as_ac_Header'}'` 15993 { echo "$as_me:$LINENO: result: $ac_res" >&5 15994echo "${ECHO_T}$ac_res" >&6; } 15995else 15996 # Is the header compilable? 15997{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15998echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15999cat >conftest.$ac_ext <<_ACEOF 16000/* confdefs.h. */ 16001_ACEOF 16002cat confdefs.h >>conftest.$ac_ext 16003cat >>conftest.$ac_ext <<_ACEOF 16004/* end confdefs.h. */ 16005$ac_includes_default 16006#include <$ac_header> 16007_ACEOF 16008rm -f conftest.$ac_objext 16009if { (ac_try="$ac_compile" 16010case "(($ac_try" in 16011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16012 *) ac_try_echo=$ac_try;; 16013esac 16014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16015 (eval "$ac_compile") 2>conftest.er1 16016 ac_status=$? 16017 grep -v '^ *+' conftest.er1 >conftest.err 16018 rm -f conftest.er1 16019 cat conftest.err >&5 16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16021 (exit $ac_status); } && 16022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16023 { (case "(($ac_try" in 16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16025 *) ac_try_echo=$ac_try;; 16026esac 16027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16028 (eval "$ac_try") 2>&5 16029 ac_status=$? 16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16031 (exit $ac_status); }; } && 16032 { ac_try='test -s conftest.$ac_objext' 16033 { (case "(($ac_try" in 16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16035 *) ac_try_echo=$ac_try;; 16036esac 16037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16038 (eval "$ac_try") 2>&5 16039 ac_status=$? 16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16041 (exit $ac_status); }; }; then 16042 ac_header_compiler=yes 16043else 16044 echo "$as_me: failed program was:" >&5 16045sed 's/^/| /' conftest.$ac_ext >&5 16046 16047 ac_header_compiler=no 16048fi 16049 16050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16051{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16052echo "${ECHO_T}$ac_header_compiler" >&6; } 16053 16054# Is the header present? 16055{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16056echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16057cat >conftest.$ac_ext <<_ACEOF 16058/* confdefs.h. */ 16059_ACEOF 16060cat confdefs.h >>conftest.$ac_ext 16061cat >>conftest.$ac_ext <<_ACEOF 16062/* end confdefs.h. */ 16063#include <$ac_header> 16064_ACEOF 16065if { (ac_try="$ac_cpp conftest.$ac_ext" 16066case "(($ac_try" in 16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16068 *) ac_try_echo=$ac_try;; 16069esac 16070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16072 ac_status=$? 16073 grep -v '^ *+' conftest.er1 >conftest.err 16074 rm -f conftest.er1 16075 cat conftest.err >&5 16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16077 (exit $ac_status); } >/dev/null; then 16078 if test -s conftest.err; then 16079 ac_cpp_err=$ac_c_preproc_warn_flag 16080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16081 else 16082 ac_cpp_err= 16083 fi 16084else 16085 ac_cpp_err=yes 16086fi 16087if test -z "$ac_cpp_err"; then 16088 ac_header_preproc=yes 16089else 16090 echo "$as_me: failed program was:" >&5 16091sed 's/^/| /' conftest.$ac_ext >&5 16092 16093 ac_header_preproc=no 16094fi 16095 16096rm -f conftest.err conftest.$ac_ext 16097{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16098echo "${ECHO_T}$ac_header_preproc" >&6; } 16099 16100# So? What about this header? 16101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16102 yes:no: ) 16103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16104echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16106echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16107 ac_header_preproc=yes 16108 ;; 16109 no:yes:* ) 16110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16111echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16113echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16115echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16117echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16119echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16121echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16122 ( cat <<\_ASBOX 16123## ----------------------------------- ## 16124## Report this to llvmbugs@cs.uiuc.edu ## 16125## ----------------------------------- ## 16126_ASBOX 16127 ) | sed "s/^/$as_me: WARNING: /" >&2 16128 ;; 16129esac 16130{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16132if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16133 echo $ECHO_N "(cached) $ECHO_C" >&6 16134else 16135 eval "$as_ac_Header=\$ac_header_preproc" 16136fi 16137ac_res=`eval echo '${'$as_ac_Header'}'` 16138 { echo "$as_me:$LINENO: result: $ac_res" >&5 16139echo "${ECHO_T}$ac_res" >&6; } 16140 16141fi 16142if test `eval echo '${'$as_ac_Header'}'` = yes; then 16143 cat >>confdefs.h <<_ACEOF 16144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16145_ACEOF 16146 16147fi 16148 16149done 16150 16151 16152 16153 16154 16155for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h 16156do 16157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16159 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16162 echo $ECHO_N "(cached) $ECHO_C" >&6 16163fi 16164ac_res=`eval echo '${'$as_ac_Header'}'` 16165 { echo "$as_me:$LINENO: result: $ac_res" >&5 16166echo "${ECHO_T}$ac_res" >&6; } 16167else 16168 # Is the header compilable? 16169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16171cat >conftest.$ac_ext <<_ACEOF 16172/* confdefs.h. */ 16173_ACEOF 16174cat confdefs.h >>conftest.$ac_ext 16175cat >>conftest.$ac_ext <<_ACEOF 16176/* end confdefs.h. */ 16177$ac_includes_default 16178#include <$ac_header> 16179_ACEOF 16180rm -f conftest.$ac_objext 16181if { (ac_try="$ac_compile" 16182case "(($ac_try" in 16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16184 *) ac_try_echo=$ac_try;; 16185esac 16186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16187 (eval "$ac_compile") 2>conftest.er1 16188 ac_status=$? 16189 grep -v '^ *+' conftest.er1 >conftest.err 16190 rm -f conftest.er1 16191 cat conftest.err >&5 16192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16193 (exit $ac_status); } && 16194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16195 { (case "(($ac_try" in 16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16197 *) ac_try_echo=$ac_try;; 16198esac 16199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16200 (eval "$ac_try") 2>&5 16201 ac_status=$? 16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16203 (exit $ac_status); }; } && 16204 { ac_try='test -s conftest.$ac_objext' 16205 { (case "(($ac_try" in 16206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16207 *) ac_try_echo=$ac_try;; 16208esac 16209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16210 (eval "$ac_try") 2>&5 16211 ac_status=$? 16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16213 (exit $ac_status); }; }; then 16214 ac_header_compiler=yes 16215else 16216 echo "$as_me: failed program was:" >&5 16217sed 's/^/| /' conftest.$ac_ext >&5 16218 16219 ac_header_compiler=no 16220fi 16221 16222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16224echo "${ECHO_T}$ac_header_compiler" >&6; } 16225 16226# Is the header present? 16227{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16229cat >conftest.$ac_ext <<_ACEOF 16230/* confdefs.h. */ 16231_ACEOF 16232cat confdefs.h >>conftest.$ac_ext 16233cat >>conftest.$ac_ext <<_ACEOF 16234/* end confdefs.h. */ 16235#include <$ac_header> 16236_ACEOF 16237if { (ac_try="$ac_cpp conftest.$ac_ext" 16238case "(($ac_try" in 16239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16240 *) ac_try_echo=$ac_try;; 16241esac 16242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16244 ac_status=$? 16245 grep -v '^ *+' conftest.er1 >conftest.err 16246 rm -f conftest.er1 16247 cat conftest.err >&5 16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16249 (exit $ac_status); } >/dev/null; then 16250 if test -s conftest.err; then 16251 ac_cpp_err=$ac_c_preproc_warn_flag 16252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16253 else 16254 ac_cpp_err= 16255 fi 16256else 16257 ac_cpp_err=yes 16258fi 16259if test -z "$ac_cpp_err"; then 16260 ac_header_preproc=yes 16261else 16262 echo "$as_me: failed program was:" >&5 16263sed 's/^/| /' conftest.$ac_ext >&5 16264 16265 ac_header_preproc=no 16266fi 16267 16268rm -f conftest.err conftest.$ac_ext 16269{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16270echo "${ECHO_T}$ac_header_preproc" >&6; } 16271 16272# So? What about this header? 16273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16274 yes:no: ) 16275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16279 ac_header_preproc=yes 16280 ;; 16281 no:yes:* ) 16282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16294 ( cat <<\_ASBOX 16295## ----------------------------------- ## 16296## Report this to llvmbugs@cs.uiuc.edu ## 16297## ----------------------------------- ## 16298_ASBOX 16299 ) | sed "s/^/$as_me: WARNING: /" >&2 16300 ;; 16301esac 16302{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16305 echo $ECHO_N "(cached) $ECHO_C" >&6 16306else 16307 eval "$as_ac_Header=\$ac_header_preproc" 16308fi 16309ac_res=`eval echo '${'$as_ac_Header'}'` 16310 { echo "$as_me:$LINENO: result: $ac_res" >&5 16311echo "${ECHO_T}$ac_res" >&6; } 16312 16313fi 16314if test `eval echo '${'$as_ac_Header'}'` = yes; then 16315 cat >>confdefs.h <<_ACEOF 16316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16317_ACEOF 16318 16319fi 16320 16321done 16322 16323 16324 16325 16326 16327for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 16328do 16329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16331 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16334 echo $ECHO_N "(cached) $ECHO_C" >&6 16335fi 16336ac_res=`eval echo '${'$as_ac_Header'}'` 16337 { echo "$as_me:$LINENO: result: $ac_res" >&5 16338echo "${ECHO_T}$ac_res" >&6; } 16339else 16340 # Is the header compilable? 16341{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16342echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16343cat >conftest.$ac_ext <<_ACEOF 16344/* confdefs.h. */ 16345_ACEOF 16346cat confdefs.h >>conftest.$ac_ext 16347cat >>conftest.$ac_ext <<_ACEOF 16348/* end confdefs.h. */ 16349$ac_includes_default 16350#include <$ac_header> 16351_ACEOF 16352rm -f conftest.$ac_objext 16353if { (ac_try="$ac_compile" 16354case "(($ac_try" in 16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16356 *) ac_try_echo=$ac_try;; 16357esac 16358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16359 (eval "$ac_compile") 2>conftest.er1 16360 ac_status=$? 16361 grep -v '^ *+' conftest.er1 >conftest.err 16362 rm -f conftest.er1 16363 cat conftest.err >&5 16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16365 (exit $ac_status); } && 16366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16367 { (case "(($ac_try" in 16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16369 *) ac_try_echo=$ac_try;; 16370esac 16371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16372 (eval "$ac_try") 2>&5 16373 ac_status=$? 16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16375 (exit $ac_status); }; } && 16376 { ac_try='test -s conftest.$ac_objext' 16377 { (case "(($ac_try" in 16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16379 *) ac_try_echo=$ac_try;; 16380esac 16381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16382 (eval "$ac_try") 2>&5 16383 ac_status=$? 16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16385 (exit $ac_status); }; }; then 16386 ac_header_compiler=yes 16387else 16388 echo "$as_me: failed program was:" >&5 16389sed 's/^/| /' conftest.$ac_ext >&5 16390 16391 ac_header_compiler=no 16392fi 16393 16394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16395{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16396echo "${ECHO_T}$ac_header_compiler" >&6; } 16397 16398# Is the header present? 16399{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16401cat >conftest.$ac_ext <<_ACEOF 16402/* confdefs.h. */ 16403_ACEOF 16404cat confdefs.h >>conftest.$ac_ext 16405cat >>conftest.$ac_ext <<_ACEOF 16406/* end confdefs.h. */ 16407#include <$ac_header> 16408_ACEOF 16409if { (ac_try="$ac_cpp conftest.$ac_ext" 16410case "(($ac_try" in 16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16412 *) ac_try_echo=$ac_try;; 16413esac 16414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16416 ac_status=$? 16417 grep -v '^ *+' conftest.er1 >conftest.err 16418 rm -f conftest.er1 16419 cat conftest.err >&5 16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16421 (exit $ac_status); } >/dev/null; then 16422 if test -s conftest.err; then 16423 ac_cpp_err=$ac_c_preproc_warn_flag 16424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16425 else 16426 ac_cpp_err= 16427 fi 16428else 16429 ac_cpp_err=yes 16430fi 16431if test -z "$ac_cpp_err"; then 16432 ac_header_preproc=yes 16433else 16434 echo "$as_me: failed program was:" >&5 16435sed 's/^/| /' conftest.$ac_ext >&5 16436 16437 ac_header_preproc=no 16438fi 16439 16440rm -f conftest.err conftest.$ac_ext 16441{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16442echo "${ECHO_T}$ac_header_preproc" >&6; } 16443 16444# So? What about this header? 16445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16446 yes:no: ) 16447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16451 ac_header_preproc=yes 16452 ;; 16453 no:yes:* ) 16454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16466 ( cat <<\_ASBOX 16467## ----------------------------------- ## 16468## Report this to llvmbugs@cs.uiuc.edu ## 16469## ----------------------------------- ## 16470_ASBOX 16471 ) | sed "s/^/$as_me: WARNING: /" >&2 16472 ;; 16473esac 16474{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16477 echo $ECHO_N "(cached) $ECHO_C" >&6 16478else 16479 eval "$as_ac_Header=\$ac_header_preproc" 16480fi 16481ac_res=`eval echo '${'$as_ac_Header'}'` 16482 { echo "$as_me:$LINENO: result: $ac_res" >&5 16483echo "${ECHO_T}$ac_res" >&6; } 16484 16485fi 16486if test `eval echo '${'$as_ac_Header'}'` = yes; then 16487 cat >>confdefs.h <<_ACEOF 16488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16489_ACEOF 16490 16491fi 16492 16493done 16494 16495 16496for ac_header in valgrind/valgrind.h 16497do 16498as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16500 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16503 echo $ECHO_N "(cached) $ECHO_C" >&6 16504fi 16505ac_res=`eval echo '${'$as_ac_Header'}'` 16506 { echo "$as_me:$LINENO: result: $ac_res" >&5 16507echo "${ECHO_T}$ac_res" >&6; } 16508else 16509 # Is the header compilable? 16510{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16512cat >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 16519#include <$ac_header> 16520_ACEOF 16521rm -f conftest.$ac_objext 16522if { (ac_try="$ac_compile" 16523case "(($ac_try" in 16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16525 *) ac_try_echo=$ac_try;; 16526esac 16527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16528 (eval "$ac_compile") 2>conftest.er1 16529 ac_status=$? 16530 grep -v '^ *+' conftest.er1 >conftest.err 16531 rm -f conftest.er1 16532 cat conftest.err >&5 16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16534 (exit $ac_status); } && 16535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16536 { (case "(($ac_try" in 16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16538 *) ac_try_echo=$ac_try;; 16539esac 16540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16541 (eval "$ac_try") 2>&5 16542 ac_status=$? 16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16544 (exit $ac_status); }; } && 16545 { ac_try='test -s conftest.$ac_objext' 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); }; }; then 16555 ac_header_compiler=yes 16556else 16557 echo "$as_me: failed program was:" >&5 16558sed 's/^/| /' conftest.$ac_ext >&5 16559 16560 ac_header_compiler=no 16561fi 16562 16563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16564{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16565echo "${ECHO_T}$ac_header_compiler" >&6; } 16566 16567# Is the header present? 16568{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16570cat >conftest.$ac_ext <<_ACEOF 16571/* confdefs.h. */ 16572_ACEOF 16573cat confdefs.h >>conftest.$ac_ext 16574cat >>conftest.$ac_ext <<_ACEOF 16575/* end confdefs.h. */ 16576#include <$ac_header> 16577_ACEOF 16578if { (ac_try="$ac_cpp conftest.$ac_ext" 16579case "(($ac_try" in 16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16581 *) ac_try_echo=$ac_try;; 16582esac 16583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16585 ac_status=$? 16586 grep -v '^ *+' conftest.er1 >conftest.err 16587 rm -f conftest.er1 16588 cat conftest.err >&5 16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16590 (exit $ac_status); } >/dev/null; then 16591 if test -s conftest.err; then 16592 ac_cpp_err=$ac_c_preproc_warn_flag 16593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16594 else 16595 ac_cpp_err= 16596 fi 16597else 16598 ac_cpp_err=yes 16599fi 16600if test -z "$ac_cpp_err"; then 16601 ac_header_preproc=yes 16602else 16603 echo "$as_me: failed program was:" >&5 16604sed 's/^/| /' conftest.$ac_ext >&5 16605 16606 ac_header_preproc=no 16607fi 16608 16609rm -f conftest.err conftest.$ac_ext 16610{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16611echo "${ECHO_T}$ac_header_preproc" >&6; } 16612 16613# So? What about this header? 16614case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16615 yes:no: ) 16616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16617echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16619echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16620 ac_header_preproc=yes 16621 ;; 16622 no:yes:* ) 16623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16624echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16626echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16628echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16630echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16634echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16635 ( cat <<\_ASBOX 16636## ----------------------------------- ## 16637## Report this to llvmbugs@cs.uiuc.edu ## 16638## ----------------------------------- ## 16639_ASBOX 16640 ) | sed "s/^/$as_me: WARNING: /" >&2 16641 ;; 16642esac 16643{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16644echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16646 echo $ECHO_N "(cached) $ECHO_C" >&6 16647else 16648 eval "$as_ac_Header=\$ac_header_preproc" 16649fi 16650ac_res=`eval echo '${'$as_ac_Header'}'` 16651 { echo "$as_me:$LINENO: result: $ac_res" >&5 16652echo "${ECHO_T}$ac_res" >&6; } 16653 16654fi 16655if test `eval echo '${'$as_ac_Header'}'` = yes; then 16656 cat >>confdefs.h <<_ACEOF 16657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16658_ACEOF 16659 16660fi 16661 16662done 16663 16664 16665for ac_header in fenv.h 16666do 16667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16669 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16672 echo $ECHO_N "(cached) $ECHO_C" >&6 16673fi 16674ac_res=`eval echo '${'$as_ac_Header'}'` 16675 { echo "$as_me:$LINENO: result: $ac_res" >&5 16676echo "${ECHO_T}$ac_res" >&6; } 16677else 16678 # Is the header compilable? 16679{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16681cat >conftest.$ac_ext <<_ACEOF 16682/* confdefs.h. */ 16683_ACEOF 16684cat confdefs.h >>conftest.$ac_ext 16685cat >>conftest.$ac_ext <<_ACEOF 16686/* end confdefs.h. */ 16687$ac_includes_default 16688#include <$ac_header> 16689_ACEOF 16690rm -f conftest.$ac_objext 16691if { (ac_try="$ac_compile" 16692case "(($ac_try" in 16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16694 *) ac_try_echo=$ac_try;; 16695esac 16696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16697 (eval "$ac_compile") 2>conftest.er1 16698 ac_status=$? 16699 grep -v '^ *+' conftest.er1 >conftest.err 16700 rm -f conftest.er1 16701 cat conftest.err >&5 16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16703 (exit $ac_status); } && 16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16705 { (case "(($ac_try" in 16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16707 *) ac_try_echo=$ac_try;; 16708esac 16709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16710 (eval "$ac_try") 2>&5 16711 ac_status=$? 16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16713 (exit $ac_status); }; } && 16714 { ac_try='test -s conftest.$ac_objext' 16715 { (case "(($ac_try" in 16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16717 *) ac_try_echo=$ac_try;; 16718esac 16719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16720 (eval "$ac_try") 2>&5 16721 ac_status=$? 16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16723 (exit $ac_status); }; }; then 16724 ac_header_compiler=yes 16725else 16726 echo "$as_me: failed program was:" >&5 16727sed 's/^/| /' conftest.$ac_ext >&5 16728 16729 ac_header_compiler=no 16730fi 16731 16732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16733{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16734echo "${ECHO_T}$ac_header_compiler" >&6; } 16735 16736# Is the header present? 16737{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16739cat >conftest.$ac_ext <<_ACEOF 16740/* confdefs.h. */ 16741_ACEOF 16742cat confdefs.h >>conftest.$ac_ext 16743cat >>conftest.$ac_ext <<_ACEOF 16744/* end confdefs.h. */ 16745#include <$ac_header> 16746_ACEOF 16747if { (ac_try="$ac_cpp conftest.$ac_ext" 16748case "(($ac_try" in 16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16750 *) ac_try_echo=$ac_try;; 16751esac 16752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16754 ac_status=$? 16755 grep -v '^ *+' conftest.er1 >conftest.err 16756 rm -f conftest.er1 16757 cat conftest.err >&5 16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16759 (exit $ac_status); } >/dev/null; then 16760 if test -s conftest.err; then 16761 ac_cpp_err=$ac_c_preproc_warn_flag 16762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16763 else 16764 ac_cpp_err= 16765 fi 16766else 16767 ac_cpp_err=yes 16768fi 16769if test -z "$ac_cpp_err"; then 16770 ac_header_preproc=yes 16771else 16772 echo "$as_me: failed program was:" >&5 16773sed 's/^/| /' conftest.$ac_ext >&5 16774 16775 ac_header_preproc=no 16776fi 16777 16778rm -f conftest.err conftest.$ac_ext 16779{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16780echo "${ECHO_T}$ac_header_preproc" >&6; } 16781 16782# So? What about this header? 16783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16784 yes:no: ) 16785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16788echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16789 ac_header_preproc=yes 16790 ;; 16791 no:yes:* ) 16792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16793echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16795echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16797echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16799echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16803echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16804 ( cat <<\_ASBOX 16805## ----------------------------------- ## 16806## Report this to llvmbugs@cs.uiuc.edu ## 16807## ----------------------------------- ## 16808_ASBOX 16809 ) | sed "s/^/$as_me: WARNING: /" >&2 16810 ;; 16811esac 16812{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16815 echo $ECHO_N "(cached) $ECHO_C" >&6 16816else 16817 eval "$as_ac_Header=\$ac_header_preproc" 16818fi 16819ac_res=`eval echo '${'$as_ac_Header'}'` 16820 { echo "$as_me:$LINENO: result: $ac_res" >&5 16821echo "${ECHO_T}$ac_res" >&6; } 16822 16823fi 16824if test `eval echo '${'$as_ac_Header'}'` = yes; then 16825 cat >>confdefs.h <<_ACEOF 16826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16827_ACEOF 16828 16829fi 16830 16831done 16832 16833if test "$ENABLE_THREADS" -eq 1 ; then 16834 16835for ac_header in pthread.h 16836do 16837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16839 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16842 echo $ECHO_N "(cached) $ECHO_C" >&6 16843fi 16844ac_res=`eval echo '${'$as_ac_Header'}'` 16845 { echo "$as_me:$LINENO: result: $ac_res" >&5 16846echo "${ECHO_T}$ac_res" >&6; } 16847else 16848 # Is the header compilable? 16849{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16851cat >conftest.$ac_ext <<_ACEOF 16852/* confdefs.h. */ 16853_ACEOF 16854cat confdefs.h >>conftest.$ac_ext 16855cat >>conftest.$ac_ext <<_ACEOF 16856/* end confdefs.h. */ 16857$ac_includes_default 16858#include <$ac_header> 16859_ACEOF 16860rm -f conftest.$ac_objext 16861if { (ac_try="$ac_compile" 16862case "(($ac_try" in 16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16864 *) ac_try_echo=$ac_try;; 16865esac 16866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16867 (eval "$ac_compile") 2>conftest.er1 16868 ac_status=$? 16869 grep -v '^ *+' conftest.er1 >conftest.err 16870 rm -f conftest.er1 16871 cat conftest.err >&5 16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16873 (exit $ac_status); } && 16874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16875 { (case "(($ac_try" in 16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16877 *) ac_try_echo=$ac_try;; 16878esac 16879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16880 (eval "$ac_try") 2>&5 16881 ac_status=$? 16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16883 (exit $ac_status); }; } && 16884 { ac_try='test -s conftest.$ac_objext' 16885 { (case "(($ac_try" in 16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16887 *) ac_try_echo=$ac_try;; 16888esac 16889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16890 (eval "$ac_try") 2>&5 16891 ac_status=$? 16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16893 (exit $ac_status); }; }; then 16894 ac_header_compiler=yes 16895else 16896 echo "$as_me: failed program was:" >&5 16897sed 's/^/| /' conftest.$ac_ext >&5 16898 16899 ac_header_compiler=no 16900fi 16901 16902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16904echo "${ECHO_T}$ac_header_compiler" >&6; } 16905 16906# Is the header present? 16907{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16909cat >conftest.$ac_ext <<_ACEOF 16910/* confdefs.h. */ 16911_ACEOF 16912cat confdefs.h >>conftest.$ac_ext 16913cat >>conftest.$ac_ext <<_ACEOF 16914/* end confdefs.h. */ 16915#include <$ac_header> 16916_ACEOF 16917if { (ac_try="$ac_cpp conftest.$ac_ext" 16918case "(($ac_try" in 16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16920 *) ac_try_echo=$ac_try;; 16921esac 16922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16924 ac_status=$? 16925 grep -v '^ *+' conftest.er1 >conftest.err 16926 rm -f conftest.er1 16927 cat conftest.err >&5 16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16929 (exit $ac_status); } >/dev/null; then 16930 if test -s conftest.err; then 16931 ac_cpp_err=$ac_c_preproc_warn_flag 16932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16933 else 16934 ac_cpp_err= 16935 fi 16936else 16937 ac_cpp_err=yes 16938fi 16939if test -z "$ac_cpp_err"; then 16940 ac_header_preproc=yes 16941else 16942 echo "$as_me: failed program was:" >&5 16943sed 's/^/| /' conftest.$ac_ext >&5 16944 16945 ac_header_preproc=no 16946fi 16947 16948rm -f conftest.err conftest.$ac_ext 16949{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16950echo "${ECHO_T}$ac_header_preproc" >&6; } 16951 16952# So? What about this header? 16953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16954 yes:no: ) 16955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16959 ac_header_preproc=yes 16960 ;; 16961 no:yes:* ) 16962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16974 ( cat <<\_ASBOX 16975## ----------------------------------- ## 16976## Report this to llvmbugs@cs.uiuc.edu ## 16977## ----------------------------------- ## 16978_ASBOX 16979 ) | sed "s/^/$as_me: WARNING: /" >&2 16980 ;; 16981esac 16982{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16985 echo $ECHO_N "(cached) $ECHO_C" >&6 16986else 16987 eval "$as_ac_Header=\$ac_header_preproc" 16988fi 16989ac_res=`eval echo '${'$as_ac_Header'}'` 16990 { echo "$as_me:$LINENO: result: $ac_res" >&5 16991echo "${ECHO_T}$ac_res" >&6; } 16992 16993fi 16994if test `eval echo '${'$as_ac_Header'}'` = yes; then 16995 cat >>confdefs.h <<_ACEOF 16996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16997_ACEOF 16998 HAVE_PTHREAD=1 16999 17000else 17001 HAVE_PTHREAD=0 17002 17003fi 17004 17005done 17006 17007else 17008 HAVE_PTHREAD=0 17009 17010fi 17011 17012if test "$llvm_cv_enable_libffi" = "yes" ; then 17013 17014 17015for ac_header in ffi.h ffi/ffi.h 17016do 17017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17019 { echo "$as_me:$LINENO: checking for $ac_header" >&5 17020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17022 echo $ECHO_N "(cached) $ECHO_C" >&6 17023fi 17024ac_res=`eval echo '${'$as_ac_Header'}'` 17025 { echo "$as_me:$LINENO: result: $ac_res" >&5 17026echo "${ECHO_T}$ac_res" >&6; } 17027else 17028 # Is the header compilable? 17029{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 17030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 17031cat >conftest.$ac_ext <<_ACEOF 17032/* confdefs.h. */ 17033_ACEOF 17034cat confdefs.h >>conftest.$ac_ext 17035cat >>conftest.$ac_ext <<_ACEOF 17036/* end confdefs.h. */ 17037$ac_includes_default 17038#include <$ac_header> 17039_ACEOF 17040rm -f conftest.$ac_objext 17041if { (ac_try="$ac_compile" 17042case "(($ac_try" in 17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17044 *) ac_try_echo=$ac_try;; 17045esac 17046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17047 (eval "$ac_compile") 2>conftest.er1 17048 ac_status=$? 17049 grep -v '^ *+' conftest.er1 >conftest.err 17050 rm -f conftest.er1 17051 cat conftest.err >&5 17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17053 (exit $ac_status); } && 17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17055 { (case "(($ac_try" in 17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17057 *) ac_try_echo=$ac_try;; 17058esac 17059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17060 (eval "$ac_try") 2>&5 17061 ac_status=$? 17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17063 (exit $ac_status); }; } && 17064 { ac_try='test -s conftest.$ac_objext' 17065 { (case "(($ac_try" in 17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17067 *) ac_try_echo=$ac_try;; 17068esac 17069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17070 (eval "$ac_try") 2>&5 17071 ac_status=$? 17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17073 (exit $ac_status); }; }; then 17074 ac_header_compiler=yes 17075else 17076 echo "$as_me: failed program was:" >&5 17077sed 's/^/| /' conftest.$ac_ext >&5 17078 17079 ac_header_compiler=no 17080fi 17081 17082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17083{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17084echo "${ECHO_T}$ac_header_compiler" >&6; } 17085 17086# Is the header present? 17087{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 17088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 17089cat >conftest.$ac_ext <<_ACEOF 17090/* confdefs.h. */ 17091_ACEOF 17092cat confdefs.h >>conftest.$ac_ext 17093cat >>conftest.$ac_ext <<_ACEOF 17094/* end confdefs.h. */ 17095#include <$ac_header> 17096_ACEOF 17097if { (ac_try="$ac_cpp conftest.$ac_ext" 17098case "(($ac_try" in 17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17100 *) ac_try_echo=$ac_try;; 17101esac 17102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17104 ac_status=$? 17105 grep -v '^ *+' conftest.er1 >conftest.err 17106 rm -f conftest.er1 17107 cat conftest.err >&5 17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17109 (exit $ac_status); } >/dev/null; then 17110 if test -s conftest.err; then 17111 ac_cpp_err=$ac_c_preproc_warn_flag 17112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17113 else 17114 ac_cpp_err= 17115 fi 17116else 17117 ac_cpp_err=yes 17118fi 17119if test -z "$ac_cpp_err"; then 17120 ac_header_preproc=yes 17121else 17122 echo "$as_me: failed program was:" >&5 17123sed 's/^/| /' conftest.$ac_ext >&5 17124 17125 ac_header_preproc=no 17126fi 17127 17128rm -f conftest.err conftest.$ac_ext 17129{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17130echo "${ECHO_T}$ac_header_preproc" >&6; } 17131 17132# So? What about this header? 17133case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17134 yes:no: ) 17135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17136echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17138echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17139 ac_header_preproc=yes 17140 ;; 17141 no:yes:* ) 17142 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17143echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17144 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17145echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17146 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17147echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17148 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17149echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17151echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17152 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17153echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17154 ( cat <<\_ASBOX 17155## ----------------------------------- ## 17156## Report this to llvmbugs@cs.uiuc.edu ## 17157## ----------------------------------- ## 17158_ASBOX 17159 ) | sed "s/^/$as_me: WARNING: /" >&2 17160 ;; 17161esac 17162{ echo "$as_me:$LINENO: checking for $ac_header" >&5 17163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17165 echo $ECHO_N "(cached) $ECHO_C" >&6 17166else 17167 eval "$as_ac_Header=\$ac_header_preproc" 17168fi 17169ac_res=`eval echo '${'$as_ac_Header'}'` 17170 { echo "$as_me:$LINENO: result: $ac_res" >&5 17171echo "${ECHO_T}$ac_res" >&6; } 17172 17173fi 17174if test `eval echo '${'$as_ac_Header'}'` = yes; then 17175 cat >>confdefs.h <<_ACEOF 17176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17177_ACEOF 17178 17179fi 17180 17181done 17182 17183fi 17184 17185 17186for ac_header in CrashReporterClient.h 17187do 17188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 17189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17190 { echo "$as_me:$LINENO: checking for $ac_header" >&5 17191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17193 echo $ECHO_N "(cached) $ECHO_C" >&6 17194fi 17195ac_res=`eval echo '${'$as_ac_Header'}'` 17196 { echo "$as_me:$LINENO: result: $ac_res" >&5 17197echo "${ECHO_T}$ac_res" >&6; } 17198else 17199 # Is the header compilable? 17200{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 17201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 17202cat >conftest.$ac_ext <<_ACEOF 17203/* confdefs.h. */ 17204_ACEOF 17205cat confdefs.h >>conftest.$ac_ext 17206cat >>conftest.$ac_ext <<_ACEOF 17207/* end confdefs.h. */ 17208$ac_includes_default 17209#include <$ac_header> 17210_ACEOF 17211rm -f conftest.$ac_objext 17212if { (ac_try="$ac_compile" 17213case "(($ac_try" in 17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17215 *) ac_try_echo=$ac_try;; 17216esac 17217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17218 (eval "$ac_compile") 2>conftest.er1 17219 ac_status=$? 17220 grep -v '^ *+' conftest.er1 >conftest.err 17221 rm -f conftest.er1 17222 cat conftest.err >&5 17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17224 (exit $ac_status); } && 17225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17226 { (case "(($ac_try" in 17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17228 *) ac_try_echo=$ac_try;; 17229esac 17230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17231 (eval "$ac_try") 2>&5 17232 ac_status=$? 17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17234 (exit $ac_status); }; } && 17235 { ac_try='test -s conftest.$ac_objext' 17236 { (case "(($ac_try" in 17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17238 *) ac_try_echo=$ac_try;; 17239esac 17240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17241 (eval "$ac_try") 2>&5 17242 ac_status=$? 17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17244 (exit $ac_status); }; }; then 17245 ac_header_compiler=yes 17246else 17247 echo "$as_me: failed program was:" >&5 17248sed 's/^/| /' conftest.$ac_ext >&5 17249 17250 ac_header_compiler=no 17251fi 17252 17253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17254{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 17255echo "${ECHO_T}$ac_header_compiler" >&6; } 17256 17257# Is the header present? 17258{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 17259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 17260cat >conftest.$ac_ext <<_ACEOF 17261/* confdefs.h. */ 17262_ACEOF 17263cat confdefs.h >>conftest.$ac_ext 17264cat >>conftest.$ac_ext <<_ACEOF 17265/* end confdefs.h. */ 17266#include <$ac_header> 17267_ACEOF 17268if { (ac_try="$ac_cpp conftest.$ac_ext" 17269case "(($ac_try" in 17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17271 *) ac_try_echo=$ac_try;; 17272esac 17273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 17275 ac_status=$? 17276 grep -v '^ *+' conftest.er1 >conftest.err 17277 rm -f conftest.er1 17278 cat conftest.err >&5 17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17280 (exit $ac_status); } >/dev/null; then 17281 if test -s conftest.err; then 17282 ac_cpp_err=$ac_c_preproc_warn_flag 17283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 17284 else 17285 ac_cpp_err= 17286 fi 17287else 17288 ac_cpp_err=yes 17289fi 17290if test -z "$ac_cpp_err"; then 17291 ac_header_preproc=yes 17292else 17293 echo "$as_me: failed program was:" >&5 17294sed 's/^/| /' conftest.$ac_ext >&5 17295 17296 ac_header_preproc=no 17297fi 17298 17299rm -f conftest.err conftest.$ac_ext 17300{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 17301echo "${ECHO_T}$ac_header_preproc" >&6; } 17302 17303# So? What about this header? 17304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 17305 yes:no: ) 17306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 17307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 17308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 17309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 17310 ac_header_preproc=yes 17311 ;; 17312 no:yes:* ) 17313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 17314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 17315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 17316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 17317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 17318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 17319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 17320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 17321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 17322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 17323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 17324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 17325 ( cat <<\_ASBOX 17326## ----------------------------------- ## 17327## Report this to llvmbugs@cs.uiuc.edu ## 17328## ----------------------------------- ## 17329_ASBOX 17330 ) | sed "s/^/$as_me: WARNING: /" >&2 17331 ;; 17332esac 17333{ echo "$as_me:$LINENO: checking for $ac_header" >&5 17334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 17335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 17336 echo $ECHO_N "(cached) $ECHO_C" >&6 17337else 17338 eval "$as_ac_Header=\$ac_header_preproc" 17339fi 17340ac_res=`eval echo '${'$as_ac_Header'}'` 17341 { echo "$as_me:$LINENO: result: $ac_res" >&5 17342echo "${ECHO_T}$ac_res" >&6; } 17343 17344fi 17345if test `eval echo '${'$as_ac_Header'}'` = yes; then 17346 cat >>confdefs.h <<_ACEOF 17347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 17348_ACEOF 17349 17350fi 17351 17352done 17353 17354 17355 17356 17357 17358 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 17359echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 17360if test "${ac_cv_huge_val_sanity+set}" = set; then 17361 echo $ECHO_N "(cached) $ECHO_C" >&6 17362else 17363 17364 ac_ext=cpp 17365ac_cpp='$CXXCPP $CPPFLAGS' 17366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17369 17370 ac_save_CXXFLAGS=$CXXFLAGS 17371 CXXFLAGS=-pedantic 17372 if test "$cross_compiling" = yes; then 17373 ac_cv_huge_val_sanity=yes 17374else 17375 cat >conftest.$ac_ext <<_ACEOF 17376/* confdefs.h. */ 17377_ACEOF 17378cat confdefs.h >>conftest.$ac_ext 17379cat >>conftest.$ac_ext <<_ACEOF 17380/* end confdefs.h. */ 17381#include <math.h> 17382int 17383main () 17384{ 17385double x = HUGE_VAL; return x != x; 17386 ; 17387 return 0; 17388} 17389_ACEOF 17390rm -f conftest$ac_exeext 17391if { (ac_try="$ac_link" 17392case "(($ac_try" in 17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17394 *) ac_try_echo=$ac_try;; 17395esac 17396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17397 (eval "$ac_link") 2>&5 17398 ac_status=$? 17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17401 { (case "(($ac_try" in 17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17403 *) ac_try_echo=$ac_try;; 17404esac 17405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17406 (eval "$ac_try") 2>&5 17407 ac_status=$? 17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17409 (exit $ac_status); }; }; then 17410 ac_cv_huge_val_sanity=yes 17411else 17412 echo "$as_me: program exited with status $ac_status" >&5 17413echo "$as_me: failed program was:" >&5 17414sed 's/^/| /' conftest.$ac_ext >&5 17415 17416( exit $ac_status ) 17417ac_cv_huge_val_sanity=no 17418fi 17419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17420fi 17421 17422 17423 CXXFLAGS=$ac_save_CXXFLAGS 17424 ac_ext=c 17425ac_cpp='$CPP $CPPFLAGS' 17426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17428ac_compiler_gnu=$ac_cv_c_compiler_gnu 17429 17430 17431fi 17432{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 17433echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 17434 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 17435 17436 17437{ echo "$as_me:$LINENO: checking for pid_t" >&5 17438echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 17439if test "${ac_cv_type_pid_t+set}" = set; then 17440 echo $ECHO_N "(cached) $ECHO_C" >&6 17441else 17442 cat >conftest.$ac_ext <<_ACEOF 17443/* confdefs.h. */ 17444_ACEOF 17445cat confdefs.h >>conftest.$ac_ext 17446cat >>conftest.$ac_ext <<_ACEOF 17447/* end confdefs.h. */ 17448$ac_includes_default 17449typedef pid_t ac__type_new_; 17450int 17451main () 17452{ 17453if ((ac__type_new_ *) 0) 17454 return 0; 17455if (sizeof (ac__type_new_)) 17456 return 0; 17457 ; 17458 return 0; 17459} 17460_ACEOF 17461rm -f conftest.$ac_objext 17462if { (ac_try="$ac_compile" 17463case "(($ac_try" in 17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17465 *) ac_try_echo=$ac_try;; 17466esac 17467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17468 (eval "$ac_compile") 2>conftest.er1 17469 ac_status=$? 17470 grep -v '^ *+' conftest.er1 >conftest.err 17471 rm -f conftest.er1 17472 cat conftest.err >&5 17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17474 (exit $ac_status); } && 17475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17476 { (case "(($ac_try" in 17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17478 *) ac_try_echo=$ac_try;; 17479esac 17480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17481 (eval "$ac_try") 2>&5 17482 ac_status=$? 17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17484 (exit $ac_status); }; } && 17485 { ac_try='test -s conftest.$ac_objext' 17486 { (case "(($ac_try" in 17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17488 *) ac_try_echo=$ac_try;; 17489esac 17490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17491 (eval "$ac_try") 2>&5 17492 ac_status=$? 17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17494 (exit $ac_status); }; }; then 17495 ac_cv_type_pid_t=yes 17496else 17497 echo "$as_me: failed program was:" >&5 17498sed 's/^/| /' conftest.$ac_ext >&5 17499 17500 ac_cv_type_pid_t=no 17501fi 17502 17503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17504fi 17505{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 17506echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 17507if test $ac_cv_type_pid_t = yes; then 17508 : 17509else 17510 17511cat >>confdefs.h <<_ACEOF 17512#define pid_t int 17513_ACEOF 17514 17515fi 17516 17517{ echo "$as_me:$LINENO: checking for size_t" >&5 17518echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 17519if test "${ac_cv_type_size_t+set}" = set; then 17520 echo $ECHO_N "(cached) $ECHO_C" >&6 17521else 17522 cat >conftest.$ac_ext <<_ACEOF 17523/* confdefs.h. */ 17524_ACEOF 17525cat confdefs.h >>conftest.$ac_ext 17526cat >>conftest.$ac_ext <<_ACEOF 17527/* end confdefs.h. */ 17528$ac_includes_default 17529typedef size_t ac__type_new_; 17530int 17531main () 17532{ 17533if ((ac__type_new_ *) 0) 17534 return 0; 17535if (sizeof (ac__type_new_)) 17536 return 0; 17537 ; 17538 return 0; 17539} 17540_ACEOF 17541rm -f conftest.$ac_objext 17542if { (ac_try="$ac_compile" 17543case "(($ac_try" in 17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17545 *) ac_try_echo=$ac_try;; 17546esac 17547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17548 (eval "$ac_compile") 2>conftest.er1 17549 ac_status=$? 17550 grep -v '^ *+' conftest.er1 >conftest.err 17551 rm -f conftest.er1 17552 cat conftest.err >&5 17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17554 (exit $ac_status); } && 17555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17556 { (case "(($ac_try" in 17557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17558 *) ac_try_echo=$ac_try;; 17559esac 17560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17561 (eval "$ac_try") 2>&5 17562 ac_status=$? 17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17564 (exit $ac_status); }; } && 17565 { ac_try='test -s conftest.$ac_objext' 17566 { (case "(($ac_try" in 17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17568 *) ac_try_echo=$ac_try;; 17569esac 17570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17571 (eval "$ac_try") 2>&5 17572 ac_status=$? 17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17574 (exit $ac_status); }; }; then 17575 ac_cv_type_size_t=yes 17576else 17577 echo "$as_me: failed program was:" >&5 17578sed 's/^/| /' conftest.$ac_ext >&5 17579 17580 ac_cv_type_size_t=no 17581fi 17582 17583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17584fi 17585{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 17586echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 17587if test $ac_cv_type_size_t = yes; then 17588 : 17589else 17590 17591cat >>confdefs.h <<_ACEOF 17592#define size_t unsigned int 17593_ACEOF 17594 17595fi 17596 17597 17598cat >>confdefs.h <<_ACEOF 17599#define RETSIGTYPE void 17600_ACEOF 17601 17602{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 17603echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 17604if test "${ac_cv_struct_tm+set}" = set; then 17605 echo $ECHO_N "(cached) $ECHO_C" >&6 17606else 17607 cat >conftest.$ac_ext <<_ACEOF 17608/* confdefs.h. */ 17609_ACEOF 17610cat confdefs.h >>conftest.$ac_ext 17611cat >>conftest.$ac_ext <<_ACEOF 17612/* end confdefs.h. */ 17613#include <sys/types.h> 17614#include <time.h> 17615 17616int 17617main () 17618{ 17619struct tm *tp; tp->tm_sec; 17620 ; 17621 return 0; 17622} 17623_ACEOF 17624rm -f conftest.$ac_objext 17625if { (ac_try="$ac_compile" 17626case "(($ac_try" in 17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17628 *) ac_try_echo=$ac_try;; 17629esac 17630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17631 (eval "$ac_compile") 2>conftest.er1 17632 ac_status=$? 17633 grep -v '^ *+' conftest.er1 >conftest.err 17634 rm -f conftest.er1 17635 cat conftest.err >&5 17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17637 (exit $ac_status); } && 17638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17639 { (case "(($ac_try" in 17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17641 *) ac_try_echo=$ac_try;; 17642esac 17643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17644 (eval "$ac_try") 2>&5 17645 ac_status=$? 17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17647 (exit $ac_status); }; } && 17648 { ac_try='test -s conftest.$ac_objext' 17649 { (case "(($ac_try" in 17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17651 *) ac_try_echo=$ac_try;; 17652esac 17653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17654 (eval "$ac_try") 2>&5 17655 ac_status=$? 17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17657 (exit $ac_status); }; }; then 17658 ac_cv_struct_tm=time.h 17659else 17660 echo "$as_me: failed program was:" >&5 17661sed 's/^/| /' conftest.$ac_ext >&5 17662 17663 ac_cv_struct_tm=sys/time.h 17664fi 17665 17666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17667fi 17668{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 17669echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 17670if test $ac_cv_struct_tm = sys/time.h; then 17671 17672cat >>confdefs.h <<\_ACEOF 17673#define TM_IN_SYS_TIME 1 17674_ACEOF 17675 17676fi 17677 17678{ echo "$as_me:$LINENO: checking for int64_t" >&5 17679echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 17680if test "${ac_cv_type_int64_t+set}" = set; then 17681 echo $ECHO_N "(cached) $ECHO_C" >&6 17682else 17683 cat >conftest.$ac_ext <<_ACEOF 17684/* confdefs.h. */ 17685_ACEOF 17686cat confdefs.h >>conftest.$ac_ext 17687cat >>conftest.$ac_ext <<_ACEOF 17688/* end confdefs.h. */ 17689$ac_includes_default 17690typedef int64_t ac__type_new_; 17691int 17692main () 17693{ 17694if ((ac__type_new_ *) 0) 17695 return 0; 17696if (sizeof (ac__type_new_)) 17697 return 0; 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_c_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_type_int64_t=yes 17737else 17738 echo "$as_me: failed program was:" >&5 17739sed 's/^/| /' conftest.$ac_ext >&5 17740 17741 ac_cv_type_int64_t=no 17742fi 17743 17744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17745fi 17746{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 17747echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 17748if test $ac_cv_type_int64_t = yes; then 17749 17750cat >>confdefs.h <<_ACEOF 17751#define HAVE_INT64_T 1 17752_ACEOF 17753 17754 17755else 17756 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 17757echo "$as_me: error: Type int64_t required but not found" >&2;} 17758 { (exit 1); exit 1; }; } 17759fi 17760 17761{ echo "$as_me:$LINENO: checking for uint64_t" >&5 17762echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 17763if test "${ac_cv_type_uint64_t+set}" = set; then 17764 echo $ECHO_N "(cached) $ECHO_C" >&6 17765else 17766 cat >conftest.$ac_ext <<_ACEOF 17767/* confdefs.h. */ 17768_ACEOF 17769cat confdefs.h >>conftest.$ac_ext 17770cat >>conftest.$ac_ext <<_ACEOF 17771/* end confdefs.h. */ 17772$ac_includes_default 17773typedef uint64_t ac__type_new_; 17774int 17775main () 17776{ 17777if ((ac__type_new_ *) 0) 17778 return 0; 17779if (sizeof (ac__type_new_)) 17780 return 0; 17781 ; 17782 return 0; 17783} 17784_ACEOF 17785rm -f conftest.$ac_objext 17786if { (ac_try="$ac_compile" 17787case "(($ac_try" in 17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17789 *) ac_try_echo=$ac_try;; 17790esac 17791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17792 (eval "$ac_compile") 2>conftest.er1 17793 ac_status=$? 17794 grep -v '^ *+' conftest.er1 >conftest.err 17795 rm -f conftest.er1 17796 cat conftest.err >&5 17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17798 (exit $ac_status); } && 17799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17800 { (case "(($ac_try" in 17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17802 *) ac_try_echo=$ac_try;; 17803esac 17804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17805 (eval "$ac_try") 2>&5 17806 ac_status=$? 17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17808 (exit $ac_status); }; } && 17809 { ac_try='test -s conftest.$ac_objext' 17810 { (case "(($ac_try" in 17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17812 *) ac_try_echo=$ac_try;; 17813esac 17814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17815 (eval "$ac_try") 2>&5 17816 ac_status=$? 17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17818 (exit $ac_status); }; }; then 17819 ac_cv_type_uint64_t=yes 17820else 17821 echo "$as_me: failed program was:" >&5 17822sed 's/^/| /' conftest.$ac_ext >&5 17823 17824 ac_cv_type_uint64_t=no 17825fi 17826 17827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17828fi 17829{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 17830echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 17831if test $ac_cv_type_uint64_t = yes; then 17832 17833cat >>confdefs.h <<_ACEOF 17834#define HAVE_UINT64_T 1 17835_ACEOF 17836 17837 17838else 17839 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 17840echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 17841if test "${ac_cv_type_u_int64_t+set}" = set; then 17842 echo $ECHO_N "(cached) $ECHO_C" >&6 17843else 17844 cat >conftest.$ac_ext <<_ACEOF 17845/* confdefs.h. */ 17846_ACEOF 17847cat confdefs.h >>conftest.$ac_ext 17848cat >>conftest.$ac_ext <<_ACEOF 17849/* end confdefs.h. */ 17850$ac_includes_default 17851typedef u_int64_t ac__type_new_; 17852int 17853main () 17854{ 17855if ((ac__type_new_ *) 0) 17856 return 0; 17857if (sizeof (ac__type_new_)) 17858 return 0; 17859 ; 17860 return 0; 17861} 17862_ACEOF 17863rm -f conftest.$ac_objext 17864if { (ac_try="$ac_compile" 17865case "(($ac_try" in 17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17867 *) ac_try_echo=$ac_try;; 17868esac 17869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17870 (eval "$ac_compile") 2>conftest.er1 17871 ac_status=$? 17872 grep -v '^ *+' conftest.er1 >conftest.err 17873 rm -f conftest.er1 17874 cat conftest.err >&5 17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17876 (exit $ac_status); } && 17877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17878 { (case "(($ac_try" in 17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17880 *) ac_try_echo=$ac_try;; 17881esac 17882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17883 (eval "$ac_try") 2>&5 17884 ac_status=$? 17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17886 (exit $ac_status); }; } && 17887 { ac_try='test -s conftest.$ac_objext' 17888 { (case "(($ac_try" in 17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17890 *) ac_try_echo=$ac_try;; 17891esac 17892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17893 (eval "$ac_try") 2>&5 17894 ac_status=$? 17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17896 (exit $ac_status); }; }; then 17897 ac_cv_type_u_int64_t=yes 17898else 17899 echo "$as_me: failed program was:" >&5 17900sed 's/^/| /' conftest.$ac_ext >&5 17901 17902 ac_cv_type_u_int64_t=no 17903fi 17904 17905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17906fi 17907{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 17908echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 17909if test $ac_cv_type_u_int64_t = yes; then 17910 17911cat >>confdefs.h <<_ACEOF 17912#define HAVE_U_INT64_T 1 17913_ACEOF 17914 17915 17916else 17917 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 17918echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 17919 { (exit 1); exit 1; }; } 17920fi 17921 17922fi 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 17934do 17935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17936{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17938if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17939 echo $ECHO_N "(cached) $ECHO_C" >&6 17940else 17941 cat >conftest.$ac_ext <<_ACEOF 17942/* confdefs.h. */ 17943_ACEOF 17944cat confdefs.h >>conftest.$ac_ext 17945cat >>conftest.$ac_ext <<_ACEOF 17946/* end confdefs.h. */ 17947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17948 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17949#define $ac_func innocuous_$ac_func 17950 17951/* System header to define __stub macros and hopefully few prototypes, 17952 which can conflict with char $ac_func (); below. 17953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17954 <limits.h> exists even on freestanding compilers. */ 17955 17956#ifdef __STDC__ 17957# include <limits.h> 17958#else 17959# include <assert.h> 17960#endif 17961 17962#undef $ac_func 17963 17964/* Override any GCC internal prototype to avoid an error. 17965 Use char because int might match the return type of a GCC 17966 builtin and then its argument prototype would still apply. */ 17967#ifdef __cplusplus 17968extern "C" 17969#endif 17970char $ac_func (); 17971/* The GNU C library defines this for functions which it implements 17972 to always fail with ENOSYS. Some functions are actually named 17973 something starting with __ and the normal name is an alias. */ 17974#if defined __stub_$ac_func || defined __stub___$ac_func 17975choke me 17976#endif 17977 17978int 17979main () 17980{ 17981return $ac_func (); 17982 ; 17983 return 0; 17984} 17985_ACEOF 17986rm -f conftest.$ac_objext conftest$ac_exeext 17987if { (ac_try="$ac_link" 17988case "(($ac_try" in 17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17990 *) ac_try_echo=$ac_try;; 17991esac 17992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17993 (eval "$ac_link") 2>conftest.er1 17994 ac_status=$? 17995 grep -v '^ *+' conftest.er1 >conftest.err 17996 rm -f conftest.er1 17997 cat conftest.err >&5 17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17999 (exit $ac_status); } && 18000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18001 { (case "(($ac_try" in 18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18003 *) ac_try_echo=$ac_try;; 18004esac 18005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18006 (eval "$ac_try") 2>&5 18007 ac_status=$? 18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18009 (exit $ac_status); }; } && 18010 { ac_try='test -s conftest$ac_exeext' 18011 { (case "(($ac_try" in 18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18013 *) ac_try_echo=$ac_try;; 18014esac 18015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18016 (eval "$ac_try") 2>&5 18017 ac_status=$? 18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18019 (exit $ac_status); }; }; then 18020 eval "$as_ac_var=yes" 18021else 18022 echo "$as_me: failed program was:" >&5 18023sed 's/^/| /' conftest.$ac_ext >&5 18024 18025 eval "$as_ac_var=no" 18026fi 18027 18028rm -f core conftest.err conftest.$ac_objext \ 18029 conftest$ac_exeext conftest.$ac_ext 18030fi 18031ac_res=`eval echo '${'$as_ac_var'}'` 18032 { echo "$as_me:$LINENO: result: $ac_res" >&5 18033echo "${ECHO_T}$ac_res" >&6; } 18034if test `eval echo '${'$as_ac_var'}'` = yes; then 18035 cat >>confdefs.h <<_ACEOF 18036#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18037_ACEOF 18038 18039fi 18040done 18041 18042 18043 18044 18045 18046for ac_func in powf fmodf strtof round 18047do 18048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18049{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18051if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18052 echo $ECHO_N "(cached) $ECHO_C" >&6 18053else 18054 cat >conftest.$ac_ext <<_ACEOF 18055/* confdefs.h. */ 18056_ACEOF 18057cat confdefs.h >>conftest.$ac_ext 18058cat >>conftest.$ac_ext <<_ACEOF 18059/* end confdefs.h. */ 18060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18061 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18062#define $ac_func innocuous_$ac_func 18063 18064/* System header to define __stub macros and hopefully few prototypes, 18065 which can conflict with char $ac_func (); below. 18066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18067 <limits.h> exists even on freestanding compilers. */ 18068 18069#ifdef __STDC__ 18070# include <limits.h> 18071#else 18072# include <assert.h> 18073#endif 18074 18075#undef $ac_func 18076 18077/* Override any GCC internal prototype to avoid an error. 18078 Use char because int might match the return type of a GCC 18079 builtin and then its argument prototype would still apply. */ 18080#ifdef __cplusplus 18081extern "C" 18082#endif 18083char $ac_func (); 18084/* The GNU C library defines this for functions which it implements 18085 to always fail with ENOSYS. Some functions are actually named 18086 something starting with __ and the normal name is an alias. */ 18087#if defined __stub_$ac_func || defined __stub___$ac_func 18088choke me 18089#endif 18090 18091int 18092main () 18093{ 18094return $ac_func (); 18095 ; 18096 return 0; 18097} 18098_ACEOF 18099rm -f conftest.$ac_objext conftest$ac_exeext 18100if { (ac_try="$ac_link" 18101case "(($ac_try" in 18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18103 *) ac_try_echo=$ac_try;; 18104esac 18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18106 (eval "$ac_link") 2>conftest.er1 18107 ac_status=$? 18108 grep -v '^ *+' conftest.er1 >conftest.err 18109 rm -f conftest.er1 18110 cat conftest.err >&5 18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18112 (exit $ac_status); } && 18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18114 { (case "(($ac_try" in 18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18116 *) ac_try_echo=$ac_try;; 18117esac 18118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18119 (eval "$ac_try") 2>&5 18120 ac_status=$? 18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18122 (exit $ac_status); }; } && 18123 { ac_try='test -s conftest$ac_exeext' 18124 { (case "(($ac_try" in 18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18126 *) ac_try_echo=$ac_try;; 18127esac 18128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18129 (eval "$ac_try") 2>&5 18130 ac_status=$? 18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18132 (exit $ac_status); }; }; then 18133 eval "$as_ac_var=yes" 18134else 18135 echo "$as_me: failed program was:" >&5 18136sed 's/^/| /' conftest.$ac_ext >&5 18137 18138 eval "$as_ac_var=no" 18139fi 18140 18141rm -f core conftest.err conftest.$ac_objext \ 18142 conftest$ac_exeext conftest.$ac_ext 18143fi 18144ac_res=`eval echo '${'$as_ac_var'}'` 18145 { echo "$as_me:$LINENO: result: $ac_res" >&5 18146echo "${ECHO_T}$ac_res" >&6; } 18147if test `eval echo '${'$as_ac_var'}'` = yes; then 18148 cat >>confdefs.h <<_ACEOF 18149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18150_ACEOF 18151 18152fi 18153done 18154 18155 18156 18157 18158 18159 18160for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 18161do 18162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18163{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18165if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18166 echo $ECHO_N "(cached) $ECHO_C" >&6 18167else 18168 cat >conftest.$ac_ext <<_ACEOF 18169/* confdefs.h. */ 18170_ACEOF 18171cat confdefs.h >>conftest.$ac_ext 18172cat >>conftest.$ac_ext <<_ACEOF 18173/* end confdefs.h. */ 18174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18175 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18176#define $ac_func innocuous_$ac_func 18177 18178/* System header to define __stub macros and hopefully few prototypes, 18179 which can conflict with char $ac_func (); below. 18180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18181 <limits.h> exists even on freestanding compilers. */ 18182 18183#ifdef __STDC__ 18184# include <limits.h> 18185#else 18186# include <assert.h> 18187#endif 18188 18189#undef $ac_func 18190 18191/* Override any GCC internal prototype to avoid an error. 18192 Use char because int might match the return type of a GCC 18193 builtin and then its argument prototype would still apply. */ 18194#ifdef __cplusplus 18195extern "C" 18196#endif 18197char $ac_func (); 18198/* The GNU C library defines this for functions which it implements 18199 to always fail with ENOSYS. Some functions are actually named 18200 something starting with __ and the normal name is an alias. */ 18201#if defined __stub_$ac_func || defined __stub___$ac_func 18202choke me 18203#endif 18204 18205int 18206main () 18207{ 18208return $ac_func (); 18209 ; 18210 return 0; 18211} 18212_ACEOF 18213rm -f conftest.$ac_objext conftest$ac_exeext 18214if { (ac_try="$ac_link" 18215case "(($ac_try" in 18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18217 *) ac_try_echo=$ac_try;; 18218esac 18219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18220 (eval "$ac_link") 2>conftest.er1 18221 ac_status=$? 18222 grep -v '^ *+' conftest.er1 >conftest.err 18223 rm -f conftest.er1 18224 cat conftest.err >&5 18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18226 (exit $ac_status); } && 18227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18228 { (case "(($ac_try" in 18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18230 *) ac_try_echo=$ac_try;; 18231esac 18232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18233 (eval "$ac_try") 2>&5 18234 ac_status=$? 18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18236 (exit $ac_status); }; } && 18237 { ac_try='test -s conftest$ac_exeext' 18238 { (case "(($ac_try" in 18239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18240 *) ac_try_echo=$ac_try;; 18241esac 18242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18243 (eval "$ac_try") 2>&5 18244 ac_status=$? 18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18246 (exit $ac_status); }; }; then 18247 eval "$as_ac_var=yes" 18248else 18249 echo "$as_me: failed program was:" >&5 18250sed 's/^/| /' conftest.$ac_ext >&5 18251 18252 eval "$as_ac_var=no" 18253fi 18254 18255rm -f core conftest.err conftest.$ac_objext \ 18256 conftest$ac_exeext conftest.$ac_ext 18257fi 18258ac_res=`eval echo '${'$as_ac_var'}'` 18259 { echo "$as_me:$LINENO: result: $ac_res" >&5 18260echo "${ECHO_T}$ac_res" >&6; } 18261if test `eval echo '${'$as_ac_var'}'` = yes; then 18262 cat >>confdefs.h <<_ACEOF 18263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18264_ACEOF 18265 18266fi 18267done 18268 18269 18270 18271 18272for ac_func in isatty mkdtemp mkstemp 18273do 18274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18275{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18277if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18278 echo $ECHO_N "(cached) $ECHO_C" >&6 18279else 18280 cat >conftest.$ac_ext <<_ACEOF 18281/* confdefs.h. */ 18282_ACEOF 18283cat confdefs.h >>conftest.$ac_ext 18284cat >>conftest.$ac_ext <<_ACEOF 18285/* end confdefs.h. */ 18286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18287 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18288#define $ac_func innocuous_$ac_func 18289 18290/* System header to define __stub macros and hopefully few prototypes, 18291 which can conflict with char $ac_func (); below. 18292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18293 <limits.h> exists even on freestanding compilers. */ 18294 18295#ifdef __STDC__ 18296# include <limits.h> 18297#else 18298# include <assert.h> 18299#endif 18300 18301#undef $ac_func 18302 18303/* Override any GCC internal prototype to avoid an error. 18304 Use char because int might match the return type of a GCC 18305 builtin and then its argument prototype would still apply. */ 18306#ifdef __cplusplus 18307extern "C" 18308#endif 18309char $ac_func (); 18310/* The GNU C library defines this for functions which it implements 18311 to always fail with ENOSYS. Some functions are actually named 18312 something starting with __ and the normal name is an alias. */ 18313#if defined __stub_$ac_func || defined __stub___$ac_func 18314choke me 18315#endif 18316 18317int 18318main () 18319{ 18320return $ac_func (); 18321 ; 18322 return 0; 18323} 18324_ACEOF 18325rm -f conftest.$ac_objext conftest$ac_exeext 18326if { (ac_try="$ac_link" 18327case "(($ac_try" in 18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18329 *) ac_try_echo=$ac_try;; 18330esac 18331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18332 (eval "$ac_link") 2>conftest.er1 18333 ac_status=$? 18334 grep -v '^ *+' conftest.er1 >conftest.err 18335 rm -f conftest.er1 18336 cat conftest.err >&5 18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18338 (exit $ac_status); } && 18339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18340 { (case "(($ac_try" in 18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18342 *) ac_try_echo=$ac_try;; 18343esac 18344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18345 (eval "$ac_try") 2>&5 18346 ac_status=$? 18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18348 (exit $ac_status); }; } && 18349 { ac_try='test -s conftest$ac_exeext' 18350 { (case "(($ac_try" in 18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18352 *) ac_try_echo=$ac_try;; 18353esac 18354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18355 (eval "$ac_try") 2>&5 18356 ac_status=$? 18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18358 (exit $ac_status); }; }; then 18359 eval "$as_ac_var=yes" 18360else 18361 echo "$as_me: failed program was:" >&5 18362sed 's/^/| /' conftest.$ac_ext >&5 18363 18364 eval "$as_ac_var=no" 18365fi 18366 18367rm -f core conftest.err conftest.$ac_objext \ 18368 conftest$ac_exeext conftest.$ac_ext 18369fi 18370ac_res=`eval echo '${'$as_ac_var'}'` 18371 { echo "$as_me:$LINENO: result: $ac_res" >&5 18372echo "${ECHO_T}$ac_res" >&6; } 18373if test `eval echo '${'$as_ac_var'}'` = yes; then 18374 cat >>confdefs.h <<_ACEOF 18375#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18376_ACEOF 18377 18378fi 18379done 18380 18381 18382 18383 18384 18385 18386 18387for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup 18388do 18389as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18390{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18391echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18392if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18393 echo $ECHO_N "(cached) $ECHO_C" >&6 18394else 18395 cat >conftest.$ac_ext <<_ACEOF 18396/* confdefs.h. */ 18397_ACEOF 18398cat confdefs.h >>conftest.$ac_ext 18399cat >>conftest.$ac_ext <<_ACEOF 18400/* end confdefs.h. */ 18401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18402 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18403#define $ac_func innocuous_$ac_func 18404 18405/* System header to define __stub macros and hopefully few prototypes, 18406 which can conflict with char $ac_func (); below. 18407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18408 <limits.h> exists even on freestanding compilers. */ 18409 18410#ifdef __STDC__ 18411# include <limits.h> 18412#else 18413# include <assert.h> 18414#endif 18415 18416#undef $ac_func 18417 18418/* Override any GCC internal prototype to avoid an error. 18419 Use char because int might match the return type of a GCC 18420 builtin and then its argument prototype would still apply. */ 18421#ifdef __cplusplus 18422extern "C" 18423#endif 18424char $ac_func (); 18425/* The GNU C library defines this for functions which it implements 18426 to always fail with ENOSYS. Some functions are actually named 18427 something starting with __ and the normal name is an alias. */ 18428#if defined __stub_$ac_func || defined __stub___$ac_func 18429choke me 18430#endif 18431 18432int 18433main () 18434{ 18435return $ac_func (); 18436 ; 18437 return 0; 18438} 18439_ACEOF 18440rm -f conftest.$ac_objext conftest$ac_exeext 18441if { (ac_try="$ac_link" 18442case "(($ac_try" in 18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18444 *) ac_try_echo=$ac_try;; 18445esac 18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18447 (eval "$ac_link") 2>conftest.er1 18448 ac_status=$? 18449 grep -v '^ *+' conftest.er1 >conftest.err 18450 rm -f conftest.er1 18451 cat conftest.err >&5 18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18453 (exit $ac_status); } && 18454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18455 { (case "(($ac_try" in 18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18457 *) ac_try_echo=$ac_try;; 18458esac 18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18460 (eval "$ac_try") 2>&5 18461 ac_status=$? 18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18463 (exit $ac_status); }; } && 18464 { ac_try='test -s conftest$ac_exeext' 18465 { (case "(($ac_try" in 18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18467 *) ac_try_echo=$ac_try;; 18468esac 18469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18470 (eval "$ac_try") 2>&5 18471 ac_status=$? 18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18473 (exit $ac_status); }; }; then 18474 eval "$as_ac_var=yes" 18475else 18476 echo "$as_me: failed program was:" >&5 18477sed 's/^/| /' conftest.$ac_ext >&5 18478 18479 eval "$as_ac_var=no" 18480fi 18481 18482rm -f core conftest.err conftest.$ac_objext \ 18483 conftest$ac_exeext conftest.$ac_ext 18484fi 18485ac_res=`eval echo '${'$as_ac_var'}'` 18486 { echo "$as_me:$LINENO: result: $ac_res" >&5 18487echo "${ECHO_T}$ac_res" >&6; } 18488if test `eval echo '${'$as_ac_var'}'` = yes; then 18489 cat >>confdefs.h <<_ACEOF 18490#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18491_ACEOF 18492 18493fi 18494done 18495 18496 18497 18498 18499 18500for ac_func in strerror strerror_r strerror_s setenv 18501do 18502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18503{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18505if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18506 echo $ECHO_N "(cached) $ECHO_C" >&6 18507else 18508 cat >conftest.$ac_ext <<_ACEOF 18509/* confdefs.h. */ 18510_ACEOF 18511cat confdefs.h >>conftest.$ac_ext 18512cat >>conftest.$ac_ext <<_ACEOF 18513/* end confdefs.h. */ 18514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18515 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18516#define $ac_func innocuous_$ac_func 18517 18518/* System header to define __stub macros and hopefully few prototypes, 18519 which can conflict with char $ac_func (); below. 18520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18521 <limits.h> exists even on freestanding compilers. */ 18522 18523#ifdef __STDC__ 18524# include <limits.h> 18525#else 18526# include <assert.h> 18527#endif 18528 18529#undef $ac_func 18530 18531/* Override any GCC internal prototype to avoid an error. 18532 Use char because int might match the return type of a GCC 18533 builtin and then its argument prototype would still apply. */ 18534#ifdef __cplusplus 18535extern "C" 18536#endif 18537char $ac_func (); 18538/* The GNU C library defines this for functions which it implements 18539 to always fail with ENOSYS. Some functions are actually named 18540 something starting with __ and the normal name is an alias. */ 18541#if defined __stub_$ac_func || defined __stub___$ac_func 18542choke me 18543#endif 18544 18545int 18546main () 18547{ 18548return $ac_func (); 18549 ; 18550 return 0; 18551} 18552_ACEOF 18553rm -f conftest.$ac_objext conftest$ac_exeext 18554if { (ac_try="$ac_link" 18555case "(($ac_try" in 18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18557 *) ac_try_echo=$ac_try;; 18558esac 18559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18560 (eval "$ac_link") 2>conftest.er1 18561 ac_status=$? 18562 grep -v '^ *+' conftest.er1 >conftest.err 18563 rm -f conftest.er1 18564 cat conftest.err >&5 18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18566 (exit $ac_status); } && 18567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18568 { (case "(($ac_try" in 18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18570 *) ac_try_echo=$ac_try;; 18571esac 18572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18573 (eval "$ac_try") 2>&5 18574 ac_status=$? 18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18576 (exit $ac_status); }; } && 18577 { ac_try='test -s conftest$ac_exeext' 18578 { (case "(($ac_try" in 18579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18580 *) ac_try_echo=$ac_try;; 18581esac 18582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18583 (eval "$ac_try") 2>&5 18584 ac_status=$? 18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18586 (exit $ac_status); }; }; then 18587 eval "$as_ac_var=yes" 18588else 18589 echo "$as_me: failed program was:" >&5 18590sed 's/^/| /' conftest.$ac_ext >&5 18591 18592 eval "$as_ac_var=no" 18593fi 18594 18595rm -f core conftest.err conftest.$ac_objext \ 18596 conftest$ac_exeext conftest.$ac_ext 18597fi 18598ac_res=`eval echo '${'$as_ac_var'}'` 18599 { echo "$as_me:$LINENO: result: $ac_res" >&5 18600echo "${ECHO_T}$ac_res" >&6; } 18601if test `eval echo '${'$as_ac_var'}'` = yes; then 18602 cat >>confdefs.h <<_ACEOF 18603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18604_ACEOF 18605 18606fi 18607done 18608 18609 18610 18611 18612 18613for ac_func in strtoll strtoq sysconf malloc_zone_statistics 18614do 18615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18616{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18618if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18619 echo $ECHO_N "(cached) $ECHO_C" >&6 18620else 18621 cat >conftest.$ac_ext <<_ACEOF 18622/* confdefs.h. */ 18623_ACEOF 18624cat confdefs.h >>conftest.$ac_ext 18625cat >>conftest.$ac_ext <<_ACEOF 18626/* end confdefs.h. */ 18627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18628 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18629#define $ac_func innocuous_$ac_func 18630 18631/* System header to define __stub macros and hopefully few prototypes, 18632 which can conflict with char $ac_func (); below. 18633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18634 <limits.h> exists even on freestanding compilers. */ 18635 18636#ifdef __STDC__ 18637# include <limits.h> 18638#else 18639# include <assert.h> 18640#endif 18641 18642#undef $ac_func 18643 18644/* Override any GCC internal prototype to avoid an error. 18645 Use char because int might match the return type of a GCC 18646 builtin and then its argument prototype would still apply. */ 18647#ifdef __cplusplus 18648extern "C" 18649#endif 18650char $ac_func (); 18651/* The GNU C library defines this for functions which it implements 18652 to always fail with ENOSYS. Some functions are actually named 18653 something starting with __ and the normal name is an alias. */ 18654#if defined __stub_$ac_func || defined __stub___$ac_func 18655choke me 18656#endif 18657 18658int 18659main () 18660{ 18661return $ac_func (); 18662 ; 18663 return 0; 18664} 18665_ACEOF 18666rm -f conftest.$ac_objext conftest$ac_exeext 18667if { (ac_try="$ac_link" 18668case "(($ac_try" in 18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18670 *) ac_try_echo=$ac_try;; 18671esac 18672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18673 (eval "$ac_link") 2>conftest.er1 18674 ac_status=$? 18675 grep -v '^ *+' conftest.er1 >conftest.err 18676 rm -f conftest.er1 18677 cat conftest.err >&5 18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18679 (exit $ac_status); } && 18680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18681 { (case "(($ac_try" in 18682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18683 *) ac_try_echo=$ac_try;; 18684esac 18685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18686 (eval "$ac_try") 2>&5 18687 ac_status=$? 18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18689 (exit $ac_status); }; } && 18690 { ac_try='test -s conftest$ac_exeext' 18691 { (case "(($ac_try" in 18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18693 *) ac_try_echo=$ac_try;; 18694esac 18695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18696 (eval "$ac_try") 2>&5 18697 ac_status=$? 18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18699 (exit $ac_status); }; }; then 18700 eval "$as_ac_var=yes" 18701else 18702 echo "$as_me: failed program was:" >&5 18703sed 's/^/| /' conftest.$ac_ext >&5 18704 18705 eval "$as_ac_var=no" 18706fi 18707 18708rm -f core conftest.err conftest.$ac_objext \ 18709 conftest$ac_exeext conftest.$ac_ext 18710fi 18711ac_res=`eval echo '${'$as_ac_var'}'` 18712 { echo "$as_me:$LINENO: result: $ac_res" >&5 18713echo "${ECHO_T}$ac_res" >&6; } 18714if test `eval echo '${'$as_ac_var'}'` = yes; then 18715 cat >>confdefs.h <<_ACEOF 18716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18717_ACEOF 18718 18719fi 18720done 18721 18722 18723 18724 18725 18726for ac_func in setjmp longjmp sigsetjmp siglongjmp 18727do 18728as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18729{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18730echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18731if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18732 echo $ECHO_N "(cached) $ECHO_C" >&6 18733else 18734 cat >conftest.$ac_ext <<_ACEOF 18735/* confdefs.h. */ 18736_ACEOF 18737cat confdefs.h >>conftest.$ac_ext 18738cat >>conftest.$ac_ext <<_ACEOF 18739/* end confdefs.h. */ 18740/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18741 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18742#define $ac_func innocuous_$ac_func 18743 18744/* System header to define __stub macros and hopefully few prototypes, 18745 which can conflict with char $ac_func (); below. 18746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18747 <limits.h> exists even on freestanding compilers. */ 18748 18749#ifdef __STDC__ 18750# include <limits.h> 18751#else 18752# include <assert.h> 18753#endif 18754 18755#undef $ac_func 18756 18757/* Override any GCC internal prototype to avoid an error. 18758 Use char because int might match the return type of a GCC 18759 builtin and then its argument prototype would still apply. */ 18760#ifdef __cplusplus 18761extern "C" 18762#endif 18763char $ac_func (); 18764/* The GNU C library defines this for functions which it implements 18765 to always fail with ENOSYS. Some functions are actually named 18766 something starting with __ and the normal name is an alias. */ 18767#if defined __stub_$ac_func || defined __stub___$ac_func 18768choke me 18769#endif 18770 18771int 18772main () 18773{ 18774return $ac_func (); 18775 ; 18776 return 0; 18777} 18778_ACEOF 18779rm -f conftest.$ac_objext conftest$ac_exeext 18780if { (ac_try="$ac_link" 18781case "(($ac_try" in 18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18783 *) ac_try_echo=$ac_try;; 18784esac 18785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18786 (eval "$ac_link") 2>conftest.er1 18787 ac_status=$? 18788 grep -v '^ *+' conftest.er1 >conftest.err 18789 rm -f conftest.er1 18790 cat conftest.err >&5 18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18792 (exit $ac_status); } && 18793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18794 { (case "(($ac_try" in 18795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18796 *) ac_try_echo=$ac_try;; 18797esac 18798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18799 (eval "$ac_try") 2>&5 18800 ac_status=$? 18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18802 (exit $ac_status); }; } && 18803 { ac_try='test -s conftest$ac_exeext' 18804 { (case "(($ac_try" in 18805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18806 *) ac_try_echo=$ac_try;; 18807esac 18808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18809 (eval "$ac_try") 2>&5 18810 ac_status=$? 18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18812 (exit $ac_status); }; }; then 18813 eval "$as_ac_var=yes" 18814else 18815 echo "$as_me: failed program was:" >&5 18816sed 's/^/| /' conftest.$ac_ext >&5 18817 18818 eval "$as_ac_var=no" 18819fi 18820 18821rm -f core conftest.err conftest.$ac_objext \ 18822 conftest$ac_exeext conftest.$ac_ext 18823fi 18824ac_res=`eval echo '${'$as_ac_var'}'` 18825 { echo "$as_me:$LINENO: result: $ac_res" >&5 18826echo "${ECHO_T}$ac_res" >&6; } 18827if test `eval echo '${'$as_ac_var'}'` = yes; then 18828 cat >>confdefs.h <<_ACEOF 18829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18830_ACEOF 18831 18832fi 18833done 18834 18835{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 18836echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 18837if test "${llvm_cv_c_printf_a+set}" = set; then 18838 echo $ECHO_N "(cached) $ECHO_C" >&6 18839else 18840 ac_ext=c 18841ac_cpp='$CPP $CPPFLAGS' 18842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18844ac_compiler_gnu=$ac_cv_c_compiler_gnu 18845 18846 if test "$cross_compiling" = yes; then 18847 llvmac_cv_c_printf_a=no 18848else 18849 cat >conftest.$ac_ext <<_ACEOF 18850 18851 /* confdefs.h. */ 18852_ACEOF 18853cat confdefs.h >>conftest.$ac_ext 18854cat >>conftest.$ac_ext <<_ACEOF 18855/* end confdefs.h. */ 18856 18857#include <stdio.h> 18858#include <stdlib.h> 18859 18860int 18861main () 18862{ 18863 18864volatile double A, B; 18865char Buffer[100]; 18866A = 1; 18867A /= 10.0; 18868sprintf(Buffer, "%a", A); 18869B = atof(Buffer); 18870if (A != B) 18871 return (1); 18872if (A != 0x1.999999999999ap-4) 18873 return (1); 18874return (0); 18875 ; 18876 return 0; 18877} 18878_ACEOF 18879rm -f conftest$ac_exeext 18880if { (ac_try="$ac_link" 18881case "(($ac_try" in 18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18883 *) ac_try_echo=$ac_try;; 18884esac 18885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18886 (eval "$ac_link") 2>&5 18887 ac_status=$? 18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18890 { (case "(($ac_try" in 18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18892 *) ac_try_echo=$ac_try;; 18893esac 18894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18895 (eval "$ac_try") 2>&5 18896 ac_status=$? 18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18898 (exit $ac_status); }; }; then 18899 llvm_cv_c_printf_a=yes 18900else 18901 echo "$as_me: program exited with status $ac_status" >&5 18902echo "$as_me: failed program was:" >&5 18903sed 's/^/| /' conftest.$ac_ext >&5 18904 18905( exit $ac_status ) 18906llvmac_cv_c_printf_a=no 18907fi 18908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18909fi 18910 18911 18912 ac_ext=c 18913ac_cpp='$CPP $CPPFLAGS' 18914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18916ac_compiler_gnu=$ac_cv_c_compiler_gnu 18917 18918fi 18919{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 18920echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 18921 if test "$llvm_cv_c_printf_a" = "yes"; then 18922 18923cat >>confdefs.h <<\_ACEOF 18924#define HAVE_PRINTF_A 1 18925_ACEOF 18926 18927 fi 18928 18929 18930{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 18931echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 18932if test "${ac_cv_func_rand48+set}" = set; then 18933 echo $ECHO_N "(cached) $ECHO_C" >&6 18934else 18935 ac_ext=cpp 18936ac_cpp='$CXXCPP $CPPFLAGS' 18937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18940 18941 cat >conftest.$ac_ext <<_ACEOF 18942/* confdefs.h. */ 18943_ACEOF 18944cat confdefs.h >>conftest.$ac_ext 18945cat >>conftest.$ac_ext <<_ACEOF 18946/* end confdefs.h. */ 18947#include <stdlib.h> 18948int 18949main () 18950{ 18951srand48(0);lrand48();drand48(); 18952 ; 18953 return 0; 18954} 18955_ACEOF 18956rm -f conftest.$ac_objext 18957if { (ac_try="$ac_compile" 18958case "(($ac_try" in 18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18960 *) ac_try_echo=$ac_try;; 18961esac 18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18963 (eval "$ac_compile") 2>conftest.er1 18964 ac_status=$? 18965 grep -v '^ *+' conftest.er1 >conftest.err 18966 rm -f conftest.er1 18967 cat conftest.err >&5 18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18969 (exit $ac_status); } && 18970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18971 { (case "(($ac_try" in 18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18973 *) ac_try_echo=$ac_try;; 18974esac 18975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18976 (eval "$ac_try") 2>&5 18977 ac_status=$? 18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18979 (exit $ac_status); }; } && 18980 { ac_try='test -s conftest.$ac_objext' 18981 { (case "(($ac_try" in 18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18983 *) ac_try_echo=$ac_try;; 18984esac 18985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18986 (eval "$ac_try") 2>&5 18987 ac_status=$? 18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18989 (exit $ac_status); }; }; then 18990 ac_cv_func_rand48=yes 18991else 18992 echo "$as_me: failed program was:" >&5 18993sed 's/^/| /' conftest.$ac_ext >&5 18994 18995 ac_cv_func_rand48=no 18996fi 18997 18998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18999 ac_ext=c 19000ac_cpp='$CPP $CPPFLAGS' 19001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19003ac_compiler_gnu=$ac_cv_c_compiler_gnu 19004 19005fi 19006{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 19007echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 19008 19009if test "$ac_cv_func_rand48" = "yes" ; then 19010 19011cat >>confdefs.h <<\_ACEOF 19012#define HAVE_RAND48 1 19013_ACEOF 19014 19015fi 19016 19017 19018 19019{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 19020echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 19021if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 19022 echo $ECHO_N "(cached) $ECHO_C" >&6 19023else 19024 ac_ext=cpp 19025ac_cpp='$CXXCPP $CPPFLAGS' 19026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19029 19030 cat >conftest.$ac_ext <<_ACEOF 19031/* confdefs.h. */ 19032_ACEOF 19033cat confdefs.h >>conftest.$ac_ext 19034cat >>conftest.$ac_ext <<_ACEOF 19035/* end confdefs.h. */ 19036#include <math.h> 19037int 19038main () 19039{ 19040float f; isnan(f); 19041 ; 19042 return 0; 19043} 19044_ACEOF 19045rm -f conftest.$ac_objext 19046if { (ac_try="$ac_compile" 19047case "(($ac_try" in 19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19049 *) ac_try_echo=$ac_try;; 19050esac 19051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19052 (eval "$ac_compile") 2>conftest.er1 19053 ac_status=$? 19054 grep -v '^ *+' conftest.er1 >conftest.err 19055 rm -f conftest.er1 19056 cat conftest.err >&5 19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19058 (exit $ac_status); } && 19059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19060 { (case "(($ac_try" in 19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19062 *) ac_try_echo=$ac_try;; 19063esac 19064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19065 (eval "$ac_try") 2>&5 19066 ac_status=$? 19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19068 (exit $ac_status); }; } && 19069 { ac_try='test -s conftest.$ac_objext' 19070 { (case "(($ac_try" in 19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19072 *) ac_try_echo=$ac_try;; 19073esac 19074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19075 (eval "$ac_try") 2>&5 19076 ac_status=$? 19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19078 (exit $ac_status); }; }; then 19079 ac_cv_func_isnan_in_math_h=yes 19080else 19081 echo "$as_me: failed program was:" >&5 19082sed 's/^/| /' conftest.$ac_ext >&5 19083 19084 ac_cv_func_isnan_in_math_h=no 19085fi 19086 19087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19088 ac_ext=c 19089ac_cpp='$CPP $CPPFLAGS' 19090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19092ac_compiler_gnu=$ac_cv_c_compiler_gnu 19093 19094fi 19095{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 19096echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 19097 19098 19099if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 19100 19101cat >>confdefs.h <<\_ACEOF 19102#define HAVE_ISNAN_IN_MATH_H 1 19103_ACEOF 19104 19105fi 19106 19107{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 19108echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 19109if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 19110 echo $ECHO_N "(cached) $ECHO_C" >&6 19111else 19112 ac_ext=cpp 19113ac_cpp='$CXXCPP $CPPFLAGS' 19114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19117 19118 cat >conftest.$ac_ext <<_ACEOF 19119/* confdefs.h. */ 19120_ACEOF 19121cat confdefs.h >>conftest.$ac_ext 19122cat >>conftest.$ac_ext <<_ACEOF 19123/* end confdefs.h. */ 19124#include <cmath> 19125int 19126main () 19127{ 19128float f; isnan(f); 19129 ; 19130 return 0; 19131} 19132_ACEOF 19133rm -f conftest.$ac_objext 19134if { (ac_try="$ac_compile" 19135case "(($ac_try" in 19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19137 *) ac_try_echo=$ac_try;; 19138esac 19139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19140 (eval "$ac_compile") 2>conftest.er1 19141 ac_status=$? 19142 grep -v '^ *+' conftest.er1 >conftest.err 19143 rm -f conftest.er1 19144 cat conftest.err >&5 19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19146 (exit $ac_status); } && 19147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19148 { (case "(($ac_try" in 19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19150 *) ac_try_echo=$ac_try;; 19151esac 19152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19153 (eval "$ac_try") 2>&5 19154 ac_status=$? 19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19156 (exit $ac_status); }; } && 19157 { ac_try='test -s conftest.$ac_objext' 19158 { (case "(($ac_try" in 19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19160 *) ac_try_echo=$ac_try;; 19161esac 19162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19163 (eval "$ac_try") 2>&5 19164 ac_status=$? 19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19166 (exit $ac_status); }; }; then 19167 ac_cv_func_isnan_in_cmath=yes 19168else 19169 echo "$as_me: failed program was:" >&5 19170sed 's/^/| /' conftest.$ac_ext >&5 19171 19172 ac_cv_func_isnan_in_cmath=no 19173fi 19174 19175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19176 ac_ext=c 19177ac_cpp='$CPP $CPPFLAGS' 19178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19180ac_compiler_gnu=$ac_cv_c_compiler_gnu 19181 19182fi 19183{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 19184echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 19185 19186if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 19187 19188cat >>confdefs.h <<\_ACEOF 19189#define HAVE_ISNAN_IN_CMATH 1 19190_ACEOF 19191 19192fi 19193 19194{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 19195echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 19196if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 19197 echo $ECHO_N "(cached) $ECHO_C" >&6 19198else 19199 ac_ext=cpp 19200ac_cpp='$CXXCPP $CPPFLAGS' 19201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19204 19205 cat >conftest.$ac_ext <<_ACEOF 19206/* confdefs.h. */ 19207_ACEOF 19208cat confdefs.h >>conftest.$ac_ext 19209cat >>conftest.$ac_ext <<_ACEOF 19210/* end confdefs.h. */ 19211#include <cmath> 19212int 19213main () 19214{ 19215float f; std::isnan(f); 19216 ; 19217 return 0; 19218} 19219_ACEOF 19220rm -f conftest.$ac_objext 19221if { (ac_try="$ac_compile" 19222case "(($ac_try" in 19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19224 *) ac_try_echo=$ac_try;; 19225esac 19226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19227 (eval "$ac_compile") 2>conftest.er1 19228 ac_status=$? 19229 grep -v '^ *+' conftest.er1 >conftest.err 19230 rm -f conftest.er1 19231 cat conftest.err >&5 19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19233 (exit $ac_status); } && 19234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19235 { (case "(($ac_try" in 19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19237 *) ac_try_echo=$ac_try;; 19238esac 19239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19240 (eval "$ac_try") 2>&5 19241 ac_status=$? 19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19243 (exit $ac_status); }; } && 19244 { ac_try='test -s conftest.$ac_objext' 19245 { (case "(($ac_try" in 19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19247 *) ac_try_echo=$ac_try;; 19248esac 19249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19250 (eval "$ac_try") 2>&5 19251 ac_status=$? 19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19253 (exit $ac_status); }; }; then 19254 ac_cv_func_std_isnan_in_cmath=yes 19255else 19256 echo "$as_me: failed program was:" >&5 19257sed 's/^/| /' conftest.$ac_ext >&5 19258 19259 ac_cv_func_std_isnan_in_cmath=no 19260fi 19261 19262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19263 ac_ext=c 19264ac_cpp='$CPP $CPPFLAGS' 19265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19267ac_compiler_gnu=$ac_cv_c_compiler_gnu 19268 19269fi 19270{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 19271echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 19272 19273if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 19274 19275cat >>confdefs.h <<\_ACEOF 19276#define HAVE_STD_ISNAN_IN_CMATH 1 19277_ACEOF 19278 19279fi 19280 19281 19282{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 19283echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 19284if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 19285 echo $ECHO_N "(cached) $ECHO_C" >&6 19286else 19287 ac_ext=cpp 19288ac_cpp='$CXXCPP $CPPFLAGS' 19289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19292 19293 cat >conftest.$ac_ext <<_ACEOF 19294/* confdefs.h. */ 19295_ACEOF 19296cat confdefs.h >>conftest.$ac_ext 19297cat >>conftest.$ac_ext <<_ACEOF 19298/* end confdefs.h. */ 19299#include <math.h> 19300int 19301main () 19302{ 19303float f; isinf(f); 19304 ; 19305 return 0; 19306} 19307_ACEOF 19308rm -f conftest.$ac_objext 19309if { (ac_try="$ac_compile" 19310case "(($ac_try" in 19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19312 *) ac_try_echo=$ac_try;; 19313esac 19314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19315 (eval "$ac_compile") 2>conftest.er1 19316 ac_status=$? 19317 grep -v '^ *+' conftest.er1 >conftest.err 19318 rm -f conftest.er1 19319 cat conftest.err >&5 19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19321 (exit $ac_status); } && 19322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19323 { (case "(($ac_try" in 19324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19325 *) ac_try_echo=$ac_try;; 19326esac 19327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19328 (eval "$ac_try") 2>&5 19329 ac_status=$? 19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19331 (exit $ac_status); }; } && 19332 { ac_try='test -s conftest.$ac_objext' 19333 { (case "(($ac_try" in 19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19335 *) ac_try_echo=$ac_try;; 19336esac 19337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19338 (eval "$ac_try") 2>&5 19339 ac_status=$? 19340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19341 (exit $ac_status); }; }; then 19342 ac_cv_func_isinf_in_math_h=yes 19343else 19344 echo "$as_me: failed program was:" >&5 19345sed 's/^/| /' conftest.$ac_ext >&5 19346 19347 ac_cv_func_isinf_in_math_h=no 19348fi 19349 19350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19351 ac_ext=c 19352ac_cpp='$CPP $CPPFLAGS' 19353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19355ac_compiler_gnu=$ac_cv_c_compiler_gnu 19356 19357fi 19358{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 19359echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 19360 19361if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 19362 19363cat >>confdefs.h <<\_ACEOF 19364#define HAVE_ISINF_IN_MATH_H 1 19365_ACEOF 19366 19367fi 19368 19369{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 19370echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 19371if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 19372 echo $ECHO_N "(cached) $ECHO_C" >&6 19373else 19374 ac_ext=cpp 19375ac_cpp='$CXXCPP $CPPFLAGS' 19376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19379 19380 cat >conftest.$ac_ext <<_ACEOF 19381/* confdefs.h. */ 19382_ACEOF 19383cat confdefs.h >>conftest.$ac_ext 19384cat >>conftest.$ac_ext <<_ACEOF 19385/* end confdefs.h. */ 19386#include <cmath> 19387int 19388main () 19389{ 19390float f; isinf(f); 19391 ; 19392 return 0; 19393} 19394_ACEOF 19395rm -f conftest.$ac_objext 19396if { (ac_try="$ac_compile" 19397case "(($ac_try" in 19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19399 *) ac_try_echo=$ac_try;; 19400esac 19401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19402 (eval "$ac_compile") 2>conftest.er1 19403 ac_status=$? 19404 grep -v '^ *+' conftest.er1 >conftest.err 19405 rm -f conftest.er1 19406 cat conftest.err >&5 19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19408 (exit $ac_status); } && 19409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19410 { (case "(($ac_try" in 19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19412 *) ac_try_echo=$ac_try;; 19413esac 19414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19415 (eval "$ac_try") 2>&5 19416 ac_status=$? 19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19418 (exit $ac_status); }; } && 19419 { ac_try='test -s conftest.$ac_objext' 19420 { (case "(($ac_try" in 19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19422 *) ac_try_echo=$ac_try;; 19423esac 19424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19425 (eval "$ac_try") 2>&5 19426 ac_status=$? 19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19428 (exit $ac_status); }; }; then 19429 ac_cv_func_isinf_in_cmath=yes 19430else 19431 echo "$as_me: failed program was:" >&5 19432sed 's/^/| /' conftest.$ac_ext >&5 19433 19434 ac_cv_func_isinf_in_cmath=no 19435fi 19436 19437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19438 ac_ext=c 19439ac_cpp='$CPP $CPPFLAGS' 19440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19442ac_compiler_gnu=$ac_cv_c_compiler_gnu 19443 19444fi 19445{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 19446echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 19447 19448if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 19449 19450cat >>confdefs.h <<\_ACEOF 19451#define HAVE_ISINF_IN_CMATH 1 19452_ACEOF 19453 19454fi 19455 19456{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 19457echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 19458if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 19459 echo $ECHO_N "(cached) $ECHO_C" >&6 19460else 19461 ac_ext=cpp 19462ac_cpp='$CXXCPP $CPPFLAGS' 19463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19466 19467 cat >conftest.$ac_ext <<_ACEOF 19468/* confdefs.h. */ 19469_ACEOF 19470cat confdefs.h >>conftest.$ac_ext 19471cat >>conftest.$ac_ext <<_ACEOF 19472/* end confdefs.h. */ 19473#include <cmath> 19474int 19475main () 19476{ 19477float f; std::isinf(f)} 19478 ; 19479 return 0; 19480} 19481_ACEOF 19482rm -f conftest.$ac_objext 19483if { (ac_try="$ac_compile" 19484case "(($ac_try" in 19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19486 *) ac_try_echo=$ac_try;; 19487esac 19488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19489 (eval "$ac_compile") 2>conftest.er1 19490 ac_status=$? 19491 grep -v '^ *+' conftest.er1 >conftest.err 19492 rm -f conftest.er1 19493 cat conftest.err >&5 19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19495 (exit $ac_status); } && 19496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19497 { (case "(($ac_try" in 19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19499 *) ac_try_echo=$ac_try;; 19500esac 19501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19502 (eval "$ac_try") 2>&5 19503 ac_status=$? 19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19505 (exit $ac_status); }; } && 19506 { ac_try='test -s conftest.$ac_objext' 19507 { (case "(($ac_try" in 19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19509 *) ac_try_echo=$ac_try;; 19510esac 19511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19512 (eval "$ac_try") 2>&5 19513 ac_status=$? 19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19515 (exit $ac_status); }; }; then 19516 ac_cv_func_std_isinf_in_cmath=yes 19517else 19518 echo "$as_me: failed program was:" >&5 19519sed 's/^/| /' conftest.$ac_ext >&5 19520 19521 ac_cv_func_std_isinf_in_cmath=no 19522fi 19523 19524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19525 ac_ext=c 19526ac_cpp='$CPP $CPPFLAGS' 19527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19529ac_compiler_gnu=$ac_cv_c_compiler_gnu 19530 19531fi 19532{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 19533echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 19534 19535if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 19536 19537cat >>confdefs.h <<\_ACEOF 19538#define HAVE_STD_ISINF_IN_CMATH 1 19539_ACEOF 19540 19541fi 19542 19543{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 19544echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 19545if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 19546 echo $ECHO_N "(cached) $ECHO_C" >&6 19547else 19548 ac_ext=cpp 19549ac_cpp='$CXXCPP $CPPFLAGS' 19550ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19551ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19552ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19553 19554 cat >conftest.$ac_ext <<_ACEOF 19555/* confdefs.h. */ 19556_ACEOF 19557cat confdefs.h >>conftest.$ac_ext 19558cat >>conftest.$ac_ext <<_ACEOF 19559/* end confdefs.h. */ 19560#include <ieeefp.h> 19561int 19562main () 19563{ 19564float f; finite(f); 19565 ; 19566 return 0; 19567} 19568_ACEOF 19569rm -f conftest.$ac_objext 19570if { (ac_try="$ac_compile" 19571case "(($ac_try" in 19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19573 *) ac_try_echo=$ac_try;; 19574esac 19575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19576 (eval "$ac_compile") 2>conftest.er1 19577 ac_status=$? 19578 grep -v '^ *+' conftest.er1 >conftest.err 19579 rm -f conftest.er1 19580 cat conftest.err >&5 19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19582 (exit $ac_status); } && 19583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19584 { (case "(($ac_try" in 19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19586 *) ac_try_echo=$ac_try;; 19587esac 19588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19589 (eval "$ac_try") 2>&5 19590 ac_status=$? 19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19592 (exit $ac_status); }; } && 19593 { ac_try='test -s conftest.$ac_objext' 19594 { (case "(($ac_try" in 19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19596 *) ac_try_echo=$ac_try;; 19597esac 19598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19599 (eval "$ac_try") 2>&5 19600 ac_status=$? 19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19602 (exit $ac_status); }; }; then 19603 ac_cv_func_finite_in_ieeefp_h=yes 19604else 19605 echo "$as_me: failed program was:" >&5 19606sed 's/^/| /' conftest.$ac_ext >&5 19607 19608 ac_cv_func_finite_in_ieeefp_h=no 19609fi 19610 19611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19612 ac_ext=c 19613ac_cpp='$CPP $CPPFLAGS' 19614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19616ac_compiler_gnu=$ac_cv_c_compiler_gnu 19617 19618fi 19619{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 19620echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 19621 19622if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 19623 19624cat >>confdefs.h <<\_ACEOF 19625#define HAVE_FINITE_IN_IEEEFP_H 1 19626_ACEOF 19627 19628fi 19629 19630 19631 19632if test "$llvm_cv_platform_type" = "Unix" ; then 19633 19634 19635for ac_header in stdlib.h unistd.h 19636do 19637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19639 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19642 echo $ECHO_N "(cached) $ECHO_C" >&6 19643fi 19644ac_res=`eval echo '${'$as_ac_Header'}'` 19645 { echo "$as_me:$LINENO: result: $ac_res" >&5 19646echo "${ECHO_T}$ac_res" >&6; } 19647else 19648 # Is the header compilable? 19649{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 19650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 19651cat >conftest.$ac_ext <<_ACEOF 19652/* confdefs.h. */ 19653_ACEOF 19654cat confdefs.h >>conftest.$ac_ext 19655cat >>conftest.$ac_ext <<_ACEOF 19656/* end confdefs.h. */ 19657$ac_includes_default 19658#include <$ac_header> 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_c_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_header_compiler=yes 19695else 19696 echo "$as_me: failed program was:" >&5 19697sed 's/^/| /' conftest.$ac_ext >&5 19698 19699 ac_header_compiler=no 19700fi 19701 19702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19703{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19704echo "${ECHO_T}$ac_header_compiler" >&6; } 19705 19706# Is the header present? 19707{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 19708echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 19709cat >conftest.$ac_ext <<_ACEOF 19710/* confdefs.h. */ 19711_ACEOF 19712cat confdefs.h >>conftest.$ac_ext 19713cat >>conftest.$ac_ext <<_ACEOF 19714/* end confdefs.h. */ 19715#include <$ac_header> 19716_ACEOF 19717if { (ac_try="$ac_cpp conftest.$ac_ext" 19718case "(($ac_try" in 19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19720 *) ac_try_echo=$ac_try;; 19721esac 19722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19724 ac_status=$? 19725 grep -v '^ *+' conftest.er1 >conftest.err 19726 rm -f conftest.er1 19727 cat conftest.err >&5 19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19729 (exit $ac_status); } >/dev/null; then 19730 if test -s conftest.err; then 19731 ac_cpp_err=$ac_c_preproc_warn_flag 19732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19733 else 19734 ac_cpp_err= 19735 fi 19736else 19737 ac_cpp_err=yes 19738fi 19739if test -z "$ac_cpp_err"; then 19740 ac_header_preproc=yes 19741else 19742 echo "$as_me: failed program was:" >&5 19743sed 's/^/| /' conftest.$ac_ext >&5 19744 19745 ac_header_preproc=no 19746fi 19747 19748rm -f conftest.err conftest.$ac_ext 19749{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19750echo "${ECHO_T}$ac_header_preproc" >&6; } 19751 19752# So? What about this header? 19753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19754 yes:no: ) 19755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19756echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19758echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19759 ac_header_preproc=yes 19760 ;; 19761 no:yes:* ) 19762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19763echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19765echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19767echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19769echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19771echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19773echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19774 ( cat <<\_ASBOX 19775## ----------------------------------- ## 19776## Report this to llvmbugs@cs.uiuc.edu ## 19777## ----------------------------------- ## 19778_ASBOX 19779 ) | sed "s/^/$as_me: WARNING: /" >&2 19780 ;; 19781esac 19782{ echo "$as_me:$LINENO: checking for $ac_header" >&5 19783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19785 echo $ECHO_N "(cached) $ECHO_C" >&6 19786else 19787 eval "$as_ac_Header=\$ac_header_preproc" 19788fi 19789ac_res=`eval echo '${'$as_ac_Header'}'` 19790 { echo "$as_me:$LINENO: result: $ac_res" >&5 19791echo "${ECHO_T}$ac_res" >&6; } 19792 19793fi 19794if test `eval echo '${'$as_ac_Header'}'` = yes; then 19795 cat >>confdefs.h <<_ACEOF 19796#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19797_ACEOF 19798 19799fi 19800 19801done 19802 19803 19804for ac_func in getpagesize 19805do 19806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19807{ echo "$as_me:$LINENO: checking for $ac_func" >&5 19808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 19809if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 19810 echo $ECHO_N "(cached) $ECHO_C" >&6 19811else 19812 cat >conftest.$ac_ext <<_ACEOF 19813/* confdefs.h. */ 19814_ACEOF 19815cat confdefs.h >>conftest.$ac_ext 19816cat >>conftest.$ac_ext <<_ACEOF 19817/* end confdefs.h. */ 19818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19819 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19820#define $ac_func innocuous_$ac_func 19821 19822/* System header to define __stub macros and hopefully few prototypes, 19823 which can conflict with char $ac_func (); below. 19824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19825 <limits.h> exists even on freestanding compilers. */ 19826 19827#ifdef __STDC__ 19828# include <limits.h> 19829#else 19830# include <assert.h> 19831#endif 19832 19833#undef $ac_func 19834 19835/* Override any GCC internal prototype to avoid an error. 19836 Use char because int might match the return type of a GCC 19837 builtin and then its argument prototype would still apply. */ 19838#ifdef __cplusplus 19839extern "C" 19840#endif 19841char $ac_func (); 19842/* The GNU C library defines this for functions which it implements 19843 to always fail with ENOSYS. Some functions are actually named 19844 something starting with __ and the normal name is an alias. */ 19845#if defined __stub_$ac_func || defined __stub___$ac_func 19846choke me 19847#endif 19848 19849int 19850main () 19851{ 19852return $ac_func (); 19853 ; 19854 return 0; 19855} 19856_ACEOF 19857rm -f conftest.$ac_objext conftest$ac_exeext 19858if { (ac_try="$ac_link" 19859case "(($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_link") 2>conftest.er1 19865 ac_status=$? 19866 grep -v '^ *+' conftest.er1 >conftest.err 19867 rm -f conftest.er1 19868 cat conftest.err >&5 19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19870 (exit $ac_status); } && 19871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19872 { (case "(($ac_try" in 19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19874 *) ac_try_echo=$ac_try;; 19875esac 19876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19877 (eval "$ac_try") 2>&5 19878 ac_status=$? 19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19880 (exit $ac_status); }; } && 19881 { ac_try='test -s conftest$ac_exeext' 19882 { (case "(($ac_try" in 19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19884 *) ac_try_echo=$ac_try;; 19885esac 19886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19887 (eval "$ac_try") 2>&5 19888 ac_status=$? 19889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19890 (exit $ac_status); }; }; then 19891 eval "$as_ac_var=yes" 19892else 19893 echo "$as_me: failed program was:" >&5 19894sed 's/^/| /' conftest.$ac_ext >&5 19895 19896 eval "$as_ac_var=no" 19897fi 19898 19899rm -f core conftest.err conftest.$ac_objext \ 19900 conftest$ac_exeext conftest.$ac_ext 19901fi 19902ac_res=`eval echo '${'$as_ac_var'}'` 19903 { echo "$as_me:$LINENO: result: $ac_res" >&5 19904echo "${ECHO_T}$ac_res" >&6; } 19905if test `eval echo '${'$as_ac_var'}'` = yes; then 19906 cat >>confdefs.h <<_ACEOF 19907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19908_ACEOF 19909 19910fi 19911done 19912 19913{ echo "$as_me:$LINENO: checking for working mmap" >&5 19914echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 19915if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 19916 echo $ECHO_N "(cached) $ECHO_C" >&6 19917else 19918 if test "$cross_compiling" = yes; then 19919 ac_cv_func_mmap_fixed_mapped=no 19920else 19921 cat >conftest.$ac_ext <<_ACEOF 19922/* confdefs.h. */ 19923_ACEOF 19924cat confdefs.h >>conftest.$ac_ext 19925cat >>conftest.$ac_ext <<_ACEOF 19926/* end confdefs.h. */ 19927$ac_includes_default 19928/* malloc might have been renamed as rpl_malloc. */ 19929#undef malloc 19930 19931/* Thanks to Mike Haertel and Jim Avera for this test. 19932 Here is a matrix of mmap possibilities: 19933 mmap private not fixed 19934 mmap private fixed at somewhere currently unmapped 19935 mmap private fixed at somewhere already mapped 19936 mmap shared not fixed 19937 mmap shared fixed at somewhere currently unmapped 19938 mmap shared fixed at somewhere already mapped 19939 For private mappings, we should verify that changes cannot be read() 19940 back from the file, nor mmap's back from the file at a different 19941 address. (There have been systems where private was not correctly 19942 implemented like the infamous i386 svr4.0, and systems where the 19943 VM page cache was not coherent with the file system buffer cache 19944 like early versions of FreeBSD and possibly contemporary NetBSD.) 19945 For shared mappings, we should conversely verify that changes get 19946 propagated back to all the places they're supposed to be. 19947 19948 Grep wants private fixed already mapped. 19949 The main things grep needs to know about mmap are: 19950 * does it exist and is it safe to write into the mmap'd area 19951 * how to use it (BSD variants) */ 19952 19953#include <fcntl.h> 19954#include <sys/mman.h> 19955 19956#if !STDC_HEADERS && !HAVE_STDLIB_H 19957char *malloc (); 19958#endif 19959 19960/* This mess was copied from the GNU getpagesize.h. */ 19961#if !HAVE_GETPAGESIZE 19962/* Assume that all systems that can run configure have sys/param.h. */ 19963# if !HAVE_SYS_PARAM_H 19964# define HAVE_SYS_PARAM_H 1 19965# endif 19966 19967# ifdef _SC_PAGESIZE 19968# define getpagesize() sysconf(_SC_PAGESIZE) 19969# else /* no _SC_PAGESIZE */ 19970# if HAVE_SYS_PARAM_H 19971# include <sys/param.h> 19972# ifdef EXEC_PAGESIZE 19973# define getpagesize() EXEC_PAGESIZE 19974# else /* no EXEC_PAGESIZE */ 19975# ifdef NBPG 19976# define getpagesize() NBPG * CLSIZE 19977# ifndef CLSIZE 19978# define CLSIZE 1 19979# endif /* no CLSIZE */ 19980# else /* no NBPG */ 19981# ifdef NBPC 19982# define getpagesize() NBPC 19983# else /* no NBPC */ 19984# ifdef PAGESIZE 19985# define getpagesize() PAGESIZE 19986# endif /* PAGESIZE */ 19987# endif /* no NBPC */ 19988# endif /* no NBPG */ 19989# endif /* no EXEC_PAGESIZE */ 19990# else /* no HAVE_SYS_PARAM_H */ 19991# define getpagesize() 8192 /* punt totally */ 19992# endif /* no HAVE_SYS_PARAM_H */ 19993# endif /* no _SC_PAGESIZE */ 19994 19995#endif /* no HAVE_GETPAGESIZE */ 19996 19997int 19998main () 19999{ 20000 char *data, *data2, *data3; 20001 int i, pagesize; 20002 int fd; 20003 20004 pagesize = getpagesize (); 20005 20006 /* First, make a file with some known garbage in it. */ 20007 data = (char *) malloc (pagesize); 20008 if (!data) 20009 return 1; 20010 for (i = 0; i < pagesize; ++i) 20011 *(data + i) = rand (); 20012 umask (0); 20013 fd = creat ("conftest.mmap", 0600); 20014 if (fd < 0) 20015 return 1; 20016 if (write (fd, data, pagesize) != pagesize) 20017 return 1; 20018 close (fd); 20019 20020 /* Next, try to mmap the file at a fixed address which already has 20021 something else allocated at it. If we can, also make sure that 20022 we see the same garbage. */ 20023 fd = open ("conftest.mmap", O_RDWR); 20024 if (fd < 0) 20025 return 1; 20026 data2 = (char *) malloc (2 * pagesize); 20027 if (!data2) 20028 return 1; 20029 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 20030 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20031 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20032 return 1; 20033 for (i = 0; i < pagesize; ++i) 20034 if (*(data + i) != *(data2 + i)) 20035 return 1; 20036 20037 /* Finally, make sure that changes to the mapped area do not 20038 percolate back to the file as seen by read(). (This is a bug on 20039 some variants of i386 svr4.0.) */ 20040 for (i = 0; i < pagesize; ++i) 20041 *(data2 + i) = *(data2 + i) + 1; 20042 data3 = (char *) malloc (pagesize); 20043 if (!data3) 20044 return 1; 20045 if (read (fd, data3, pagesize) != pagesize) 20046 return 1; 20047 for (i = 0; i < pagesize; ++i) 20048 if (*(data + i) != *(data3 + i)) 20049 return 1; 20050 close (fd); 20051 return 0; 20052} 20053_ACEOF 20054rm -f conftest$ac_exeext 20055if { (ac_try="$ac_link" 20056case "(($ac_try" in 20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20058 *) ac_try_echo=$ac_try;; 20059esac 20060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20061 (eval "$ac_link") 2>&5 20062 ac_status=$? 20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20065 { (case "(($ac_try" in 20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20067 *) ac_try_echo=$ac_try;; 20068esac 20069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20070 (eval "$ac_try") 2>&5 20071 ac_status=$? 20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20073 (exit $ac_status); }; }; then 20074 ac_cv_func_mmap_fixed_mapped=yes 20075else 20076 echo "$as_me: program exited with status $ac_status" >&5 20077echo "$as_me: failed program was:" >&5 20078sed 's/^/| /' conftest.$ac_ext >&5 20079 20080( exit $ac_status ) 20081ac_cv_func_mmap_fixed_mapped=no 20082fi 20083rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20084fi 20085 20086 20087fi 20088{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 20089echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 20090if test $ac_cv_func_mmap_fixed_mapped = yes; then 20091 20092cat >>confdefs.h <<\_ACEOF 20093#define HAVE_MMAP 1 20094_ACEOF 20095 20096fi 20097rm -f conftest.mmap 20098 20099 { echo "$as_me:$LINENO: checking for mmap of files" >&5 20100echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 20101if test "${ac_cv_func_mmap_file+set}" = set; then 20102 echo $ECHO_N "(cached) $ECHO_C" >&6 20103else 20104 ac_ext=c 20105ac_cpp='$CPP $CPPFLAGS' 20106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20108ac_compiler_gnu=$ac_cv_c_compiler_gnu 20109 20110 if test "$cross_compiling" = yes; then 20111 ac_cv_func_mmap_file=no 20112else 20113 cat >conftest.$ac_ext <<_ACEOF 20114 20115 /* confdefs.h. */ 20116_ACEOF 20117cat confdefs.h >>conftest.$ac_ext 20118cat >>conftest.$ac_ext <<_ACEOF 20119/* end confdefs.h. */ 20120 20121#include <sys/types.h> 20122#include <sys/mman.h> 20123#include <fcntl.h> 20124 20125int 20126main () 20127{ 20128 20129 int fd; 20130 fd = creat ("foo",0777); 20131 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 20132 unlink ("foo"); 20133 return (fd != (int) MAP_FAILED); 20134 ; 20135 return 0; 20136} 20137_ACEOF 20138rm -f conftest$ac_exeext 20139if { (ac_try="$ac_link" 20140case "(($ac_try" in 20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20142 *) ac_try_echo=$ac_try;; 20143esac 20144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20145 (eval "$ac_link") 2>&5 20146 ac_status=$? 20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20149 { (case "(($ac_try" in 20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20151 *) ac_try_echo=$ac_try;; 20152esac 20153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20154 (eval "$ac_try") 2>&5 20155 ac_status=$? 20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20157 (exit $ac_status); }; }; then 20158 ac_cv_func_mmap_file=yes 20159else 20160 echo "$as_me: program exited with status $ac_status" >&5 20161echo "$as_me: failed program was:" >&5 20162sed 's/^/| /' conftest.$ac_ext >&5 20163 20164( exit $ac_status ) 20165ac_cv_func_mmap_file=no 20166fi 20167rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20168fi 20169 20170 20171 ac_ext=c 20172ac_cpp='$CPP $CPPFLAGS' 20173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20175ac_compiler_gnu=$ac_cv_c_compiler_gnu 20176 20177 20178fi 20179{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 20180echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 20181if test "$ac_cv_func_mmap_file" = yes; then 20182 20183cat >>confdefs.h <<\_ACEOF 20184#define HAVE_MMAP_FILE 20185_ACEOF 20186 20187 MMAP_FILE=yes 20188 20189fi 20190 20191 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 20192echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 20193if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 20194 echo $ECHO_N "(cached) $ECHO_C" >&6 20195else 20196 if test "$llvm_cv_os_type" = "Interix" ; then 20197 ac_cv_need_dev_zero_for_mmap=yes 20198 else 20199 ac_cv_need_dev_zero_for_mmap=no 20200 fi 20201 20202fi 20203{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 20204echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 20205if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 20206 20207cat >>confdefs.h <<\_ACEOF 20208#define NEED_DEV_ZERO_FOR_MMAP 1 20209_ACEOF 20210 20211fi 20212 20213 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 20214 then 20215 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 20216echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 20217 fi 20218 if test "$ac_cv_func_mmap_file" = "no" 20219 then 20220 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 20221echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 20222 fi 20223fi 20224 20225{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 20226echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 20227ac_ext=cpp 20228ac_cpp='$CXXCPP $CPPFLAGS' 20229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20232 20233cat >conftest.$ac_ext <<_ACEOF 20234/* confdefs.h. */ 20235_ACEOF 20236cat confdefs.h >>conftest.$ac_ext 20237cat >>conftest.$ac_ext <<_ACEOF 20238/* end confdefs.h. */ 20239int main() { 20240 volatile unsigned long val = 1; 20241 __sync_synchronize(); 20242 __sync_val_compare_and_swap(&val, 1, 0); 20243 __sync_add_and_fetch(&val, 1); 20244 __sync_sub_and_fetch(&val, 1); 20245 return 0; 20246 } 20247 20248_ACEOF 20249rm -f conftest.$ac_objext conftest$ac_exeext 20250if { (ac_try="$ac_link" 20251case "(($ac_try" in 20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20253 *) ac_try_echo=$ac_try;; 20254esac 20255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20256 (eval "$ac_link") 2>conftest.er1 20257 ac_status=$? 20258 grep -v '^ *+' conftest.er1 >conftest.err 20259 rm -f conftest.er1 20260 cat conftest.err >&5 20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20262 (exit $ac_status); } && 20263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20264 { (case "(($ac_try" in 20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20266 *) ac_try_echo=$ac_try;; 20267esac 20268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20269 (eval "$ac_try") 2>&5 20270 ac_status=$? 20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20272 (exit $ac_status); }; } && 20273 { ac_try='test -s conftest$ac_exeext' 20274 { (case "(($ac_try" in 20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20276 *) ac_try_echo=$ac_try;; 20277esac 20278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20279 (eval "$ac_try") 2>&5 20280 ac_status=$? 20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20282 (exit $ac_status); }; }; then 20283 ac_ext=c 20284ac_cpp='$CPP $CPPFLAGS' 20285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20287ac_compiler_gnu=$ac_cv_c_compiler_gnu 20288 20289 { echo "$as_me:$LINENO: result: yes" >&5 20290echo "${ECHO_T}yes" >&6; } 20291 20292cat >>confdefs.h <<\_ACEOF 20293#define LLVM_MULTITHREADED 1 20294_ACEOF 20295 20296else 20297 echo "$as_me: failed program was:" >&5 20298sed 's/^/| /' conftest.$ac_ext >&5 20299 20300 { echo "$as_me:$LINENO: result: no" >&5 20301echo "${ECHO_T}no" >&6; } 20302 20303cat >>confdefs.h <<\_ACEOF 20304#define LLVM_MULTITHREADED 0 20305_ACEOF 20306 20307 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 20308echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 20309fi 20310 20311rm -f core conftest.err conftest.$ac_objext \ 20312 conftest$ac_exeext conftest.$ac_ext 20313 20314 20315if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 20316 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 20317echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 20318if test "${llvm_cv_linux_mixed+set}" = set; then 20319 echo $ECHO_N "(cached) $ECHO_C" >&6 20320else 20321 ac_ext=c 20322ac_cpp='$CPP $CPPFLAGS' 20323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20325ac_compiler_gnu=$ac_cv_c_compiler_gnu 20326 20327 cat >conftest.$ac_ext <<_ACEOF 20328/* confdefs.h. */ 20329_ACEOF 20330cat confdefs.h >>conftest.$ac_ext 20331cat >>conftest.$ac_ext <<_ACEOF 20332/* end confdefs.h. */ 20333#ifndef __x86_64__ 20334 error: Not x86-64 even if uname says so! 20335 #endif 20336 20337int 20338main () 20339{ 20340 20341 ; 20342 return 0; 20343} 20344_ACEOF 20345rm -f conftest.$ac_objext 20346if { (ac_try="$ac_compile" 20347case "(($ac_try" in 20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20349 *) ac_try_echo=$ac_try;; 20350esac 20351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20352 (eval "$ac_compile") 2>conftest.er1 20353 ac_status=$? 20354 grep -v '^ *+' conftest.er1 >conftest.err 20355 rm -f conftest.er1 20356 cat conftest.err >&5 20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20358 (exit $ac_status); } && 20359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20360 { (case "(($ac_try" in 20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20362 *) ac_try_echo=$ac_try;; 20363esac 20364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20365 (eval "$ac_try") 2>&5 20366 ac_status=$? 20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20368 (exit $ac_status); }; } && 20369 { ac_try='test -s conftest.$ac_objext' 20370 { (case "(($ac_try" in 20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20372 *) ac_try_echo=$ac_try;; 20373esac 20374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20375 (eval "$ac_try") 2>&5 20376 ac_status=$? 20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20378 (exit $ac_status); }; }; then 20379 llvm_cv_linux_mixed=no 20380else 20381 echo "$as_me: failed program was:" >&5 20382sed 's/^/| /' conftest.$ac_ext >&5 20383 20384 llvm_cv_linux_mixed=yes 20385fi 20386 20387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20388 ac_ext=c 20389ac_cpp='$CPP $CPPFLAGS' 20390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20392ac_compiler_gnu=$ac_cv_c_compiler_gnu 20393 20394 20395fi 20396{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 20397echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 20398 20399 if test "$llvm_cv_linux_mixed" = "yes"; then 20400 llvm_cv_target_arch="x86" 20401 ARCH="x86" 20402 fi 20403fi 20404 20405 20406for ac_func in __dso_handle 20407do 20408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20409{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20411if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20412 echo $ECHO_N "(cached) $ECHO_C" >&6 20413else 20414 cat >conftest.$ac_ext <<_ACEOF 20415/* confdefs.h. */ 20416_ACEOF 20417cat confdefs.h >>conftest.$ac_ext 20418cat >>conftest.$ac_ext <<_ACEOF 20419/* end confdefs.h. */ 20420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20421 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20422#define $ac_func innocuous_$ac_func 20423 20424/* System header to define __stub macros and hopefully few prototypes, 20425 which can conflict with char $ac_func (); below. 20426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20427 <limits.h> exists even on freestanding compilers. */ 20428 20429#ifdef __STDC__ 20430# include <limits.h> 20431#else 20432# include <assert.h> 20433#endif 20434 20435#undef $ac_func 20436 20437/* Override any GCC internal prototype to avoid an error. 20438 Use char because int might match the return type of a GCC 20439 builtin and then its argument prototype would still apply. */ 20440#ifdef __cplusplus 20441extern "C" 20442#endif 20443char $ac_func (); 20444/* The GNU C library defines this for functions which it implements 20445 to always fail with ENOSYS. Some functions are actually named 20446 something starting with __ and the normal name is an alias. */ 20447#if defined __stub_$ac_func || defined __stub___$ac_func 20448choke me 20449#endif 20450 20451int 20452main () 20453{ 20454return $ac_func (); 20455 ; 20456 return 0; 20457} 20458_ACEOF 20459rm -f conftest.$ac_objext conftest$ac_exeext 20460if { (ac_try="$ac_link" 20461case "(($ac_try" in 20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20463 *) ac_try_echo=$ac_try;; 20464esac 20465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20466 (eval "$ac_link") 2>conftest.er1 20467 ac_status=$? 20468 grep -v '^ *+' conftest.er1 >conftest.err 20469 rm -f conftest.er1 20470 cat conftest.err >&5 20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20472 (exit $ac_status); } && 20473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20474 { (case "(($ac_try" in 20475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20476 *) ac_try_echo=$ac_try;; 20477esac 20478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20479 (eval "$ac_try") 2>&5 20480 ac_status=$? 20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20482 (exit $ac_status); }; } && 20483 { ac_try='test -s conftest$ac_exeext' 20484 { (case "(($ac_try" in 20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20486 *) ac_try_echo=$ac_try;; 20487esac 20488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20489 (eval "$ac_try") 2>&5 20490 ac_status=$? 20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20492 (exit $ac_status); }; }; then 20493 eval "$as_ac_var=yes" 20494else 20495 echo "$as_me: failed program was:" >&5 20496sed 's/^/| /' conftest.$ac_ext >&5 20497 20498 eval "$as_ac_var=no" 20499fi 20500 20501rm -f core conftest.err conftest.$ac_objext \ 20502 conftest$ac_exeext conftest.$ac_ext 20503fi 20504ac_res=`eval echo '${'$as_ac_var'}'` 20505 { echo "$as_me:$LINENO: result: $ac_res" >&5 20506echo "${ECHO_T}$ac_res" >&6; } 20507if test `eval echo '${'$as_ac_var'}'` = yes; then 20508 cat >>confdefs.h <<_ACEOF 20509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20510_ACEOF 20511 20512fi 20513done 20514 20515 20516{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 20517echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } 20518if test "${llvm_cv_llvmgcc_sanity+set}" = set; then 20519 echo $ECHO_N "(cached) $ECHO_C" >&6 20520else 20521 llvm_cv_llvmgcc_sanity="no" 20522if test -x "$LLVMGCC" ; then 20523 cp /dev/null conftest.c 20524 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ 20525 grep 'target datalayout =' > /dev/null 2>&1 20526 if test $? -eq 0 ; then 20527 llvm_cv_llvmgcc_sanity="yes" 20528 fi 20529 rm conftest.c 20530fi 20531fi 20532{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 20533echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } 20534 20535if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then 20536 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 20537echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } 20538 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` 20539 LLVMCC1=$llvmcc1path 20540 20541 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` 20542 LLVMCC1PLUS=$llvmcc1pluspath 20543 20544 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` 20545 LLVMGCCDIR=$llvmgccdir 20546 20547 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'` 20548 LLVMGCC_LANGS=$llvmgcclangs 20549 20550 { echo "$as_me:$LINENO: result: ok" >&5 20551echo "${ECHO_T}ok" >&6; } 20552fi 20553 20554SHLIBEXT=$libltdl_cv_shlibext 20555 20556 20557SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 20558 20559 20560# Translate the various configuration directories and other basic 20561# information into substitutions that will end up in Makefile.config.in 20562# that these configured values can be used by the makefiles 20563if test "${prefix}" = "NONE" ; then 20564 prefix="/usr/local" 20565fi 20566eval LLVM_PREFIX="${prefix}"; 20567eval LLVM_BINDIR="${prefix}/bin"; 20568eval LLVM_LIBDIR="${prefix}/lib"; 20569eval LLVM_DATADIR="${prefix}/share/llvm"; 20570eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 20571eval LLVM_ETCDIR="${prefix}/etc/llvm"; 20572eval LLVM_INCLUDEDIR="${prefix}/include"; 20573eval LLVM_INFODIR="${prefix}/info"; 20574eval LLVM_MANDIR="${prefix}/man"; 20575LLVM_CONFIGTIME=`date` 20576 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587# Place the various directores into the config.h file as #defines so that we 20588# can know about the installation paths within LLVM. 20589 20590cat >>confdefs.h <<_ACEOF 20591#define LLVM_PREFIX "$LLVM_PREFIX" 20592_ACEOF 20593 20594 20595cat >>confdefs.h <<_ACEOF 20596#define LLVM_BINDIR "$LLVM_BINDIR" 20597_ACEOF 20598 20599 20600cat >>confdefs.h <<_ACEOF 20601#define LLVM_LIBDIR "$LLVM_LIBDIR" 20602_ACEOF 20603 20604 20605cat >>confdefs.h <<_ACEOF 20606#define LLVM_DATADIR "$LLVM_DATADIR" 20607_ACEOF 20608 20609 20610cat >>confdefs.h <<_ACEOF 20611#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 20612_ACEOF 20613 20614 20615cat >>confdefs.h <<_ACEOF 20616#define LLVM_ETCDIR "$LLVM_ETCDIR" 20617_ACEOF 20618 20619 20620cat >>confdefs.h <<_ACEOF 20621#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 20622_ACEOF 20623 20624 20625cat >>confdefs.h <<_ACEOF 20626#define LLVM_INFODIR "$LLVM_INFODIR" 20627_ACEOF 20628 20629 20630cat >>confdefs.h <<_ACEOF 20631#define LLVM_MANDIR "$LLVM_MANDIR" 20632_ACEOF 20633 20634 20635cat >>confdefs.h <<_ACEOF 20636#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 20637_ACEOF 20638 20639 20640cat >>confdefs.h <<_ACEOF 20641#define LLVM_HOSTTRIPLE "$host" 20642_ACEOF 20643 20644 20645# Determine which bindings to build. 20646if test "$BINDINGS_TO_BUILD" = auto ; then 20647 BINDINGS_TO_BUILD="" 20648 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 20649 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 20650 fi 20651fi 20652BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 20653 20654 20655# This isn't really configurey, but it avoids having to repeat the list in 20656# other files. 20657ALL_BINDINGS=ocaml 20658 20659 20660# Do any work necessary to ensure that bindings have what they need. 20661binding_prereqs_failed=0 20662for a_binding in $BINDINGS_TO_BUILD ; do 20663 case "$a_binding" in 20664 ocaml) 20665 if test "x$OCAMLC" = x ; then 20666 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 20667echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 20668 binding_prereqs_failed=1 20669 fi 20670 if test "x$OCAMLDEP" = x ; then 20671 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 20672echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 20673 binding_prereqs_failed=1 20674 fi 20675 if test "x$OCAMLOPT" = x ; then 20676 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 20677echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 20678 fi 20679 if test "x$with_ocaml_libdir" != xauto ; then 20680 OCAML_LIBDIR=$with_ocaml_libdir 20681 20682 else 20683 ocaml_stdlib="`"$OCAMLC" -where`" 20684 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 20685 then 20686 # ocaml stdlib is beneath our prefix; use stdlib 20687 OCAML_LIBDIR=$ocaml_stdlib 20688 20689 else 20690 # ocaml stdlib is outside our prefix; use libdir/ocaml 20691 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 20692 20693 fi 20694 fi 20695 ;; 20696 esac 20697done 20698if test "$binding_prereqs_failed" = 1 ; then 20699 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 20700echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 20701 { (exit 1); exit 1; }; } 20702fi 20703 20704{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 20705echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 20706if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 20707 echo $ECHO_N "(cached) $ECHO_C" >&6 20708else 20709 ac_ext=cpp 20710ac_cpp='$CXXCPP $CPPFLAGS' 20711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20714 20715 oldcxxflags="$CXXFLAGS" 20716 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" 20717 cat >conftest.$ac_ext <<_ACEOF 20718/* confdefs.h. */ 20719_ACEOF 20720cat confdefs.h >>conftest.$ac_ext 20721cat >>conftest.$ac_ext <<_ACEOF 20722/* end confdefs.h. */ 20723 20724int 20725main () 20726{ 20727 20728 ; 20729 return 0; 20730} 20731_ACEOF 20732rm -f conftest.$ac_objext 20733if { (ac_try="$ac_compile" 20734case "(($ac_try" in 20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20736 *) ac_try_echo=$ac_try;; 20737esac 20738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20739 (eval "$ac_compile") 2>conftest.er1 20740 ac_status=$? 20741 grep -v '^ *+' conftest.er1 >conftest.err 20742 rm -f conftest.er1 20743 cat conftest.err >&5 20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20745 (exit $ac_status); } && 20746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20747 { (case "(($ac_try" in 20748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20749 *) ac_try_echo=$ac_try;; 20750esac 20751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20752 (eval "$ac_try") 2>&5 20753 ac_status=$? 20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20755 (exit $ac_status); }; } && 20756 { ac_try='test -s conftest.$ac_objext' 20757 { (case "(($ac_try" in 20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20759 *) ac_try_echo=$ac_try;; 20760esac 20761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20762 (eval "$ac_try") 2>&5 20763 ac_status=$? 20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20765 (exit $ac_status); }; }; then 20766 llvm_cv_cxx_visibility_inlines_hidden=yes 20767else 20768 echo "$as_me: failed program was:" >&5 20769sed 's/^/| /' conftest.$ac_ext >&5 20770 20771 llvm_cv_cxx_visibility_inlines_hidden=no 20772fi 20773 20774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20775 CXXFLAGS="$oldcxxflags" 20776 ac_ext=c 20777ac_cpp='$CPP $CPPFLAGS' 20778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20780ac_compiler_gnu=$ac_cv_c_compiler_gnu 20781 20782 20783fi 20784{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 20785echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 20786if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 20787 ENABLE_VISIBILITY_INLINES_HIDDEN=1 20788 20789else 20790 ENABLE_VISIBILITY_INLINES_HIDDEN=0 20791 20792fi 20793 20794 20795if test "$llvm_cv_link_use_r" = "yes" ; then 20796 RPATH="-Wl,-R" 20797else 20798 RPATH="-Wl,-rpath" 20799fi 20800 20801 20802if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 20803 RDYNAMIC="-Wl,-export-dynamic" 20804else 20805 RDYNAMIC="" 20806fi 20807 20808 20809 20810ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h" 20811 20812 20813 20814 20815 20816 20817ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 20818 20819ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 20820 20821ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 20822 20823ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 20824 20825ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" 20826 20827 20828ac_config_files="$ac_config_files Makefile.config" 20829 20830 20831ac_config_files="$ac_config_files llvm.spec" 20832 20833 20834ac_config_files="$ac_config_files tools/llvmc/src/Base.td" 20835 20836 20837ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" 20838 20839 20840ac_config_commands="$ac_config_commands setup" 20841 20842ac_config_commands="$ac_config_commands Makefile" 20843 20844 20845ac_config_commands="$ac_config_commands Makefile.common" 20846 20847 20848ac_config_commands="$ac_config_commands examples/Makefile" 20849 20850 20851ac_config_commands="$ac_config_commands lib/Makefile" 20852 20853 20854ac_config_commands="$ac_config_commands runtime/Makefile" 20855 20856 20857ac_config_commands="$ac_config_commands test/Makefile" 20858 20859 20860ac_config_commands="$ac_config_commands test/Makefile.tests" 20861 20862 20863ac_config_commands="$ac_config_commands unittests/Makefile" 20864 20865 20866ac_config_commands="$ac_config_commands tools/Makefile" 20867 20868 20869ac_config_commands="$ac_config_commands utils/Makefile" 20870 20871 20872ac_config_commands="$ac_config_commands projects/Makefile" 20873 20874 20875ac_config_commands="$ac_config_commands bindings/Makefile" 20876 20877 20878ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 20879 20880 20881 20882cat >confcache <<\_ACEOF 20883# This file is a shell script that caches the results of configure 20884# tests run on this system so they can be shared between configure 20885# scripts and configure runs, see configure's option --config-cache. 20886# It is not useful on other systems. If it contains results you don't 20887# want to keep, you may remove or edit it. 20888# 20889# config.status only pays attention to the cache file if you give it 20890# the --recheck option to rerun configure. 20891# 20892# `ac_cv_env_foo' variables (set or unset) will be overridden when 20893# loading this file, other *unset* `ac_cv_foo' will be assigned the 20894# following values. 20895 20896_ACEOF 20897 20898# The following way of writing the cache mishandles newlines in values, 20899# but we know of no workaround that is simple, portable, and efficient. 20900# So, we kill variables containing newlines. 20901# Ultrix sh set writes to stderr and can't be redirected directly, 20902# and sets the high bit in the cache file unless we assign to the vars. 20903( 20904 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20905 eval ac_val=\$$ac_var 20906 case $ac_val in #( 20907 *${as_nl}*) 20908 case $ac_var in #( 20909 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20910echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20911 esac 20912 case $ac_var in #( 20913 _ | IFS | as_nl) ;; #( 20914 *) $as_unset $ac_var ;; 20915 esac ;; 20916 esac 20917 done 20918 20919 (set) 2>&1 | 20920 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20921 *${as_nl}ac_space=\ *) 20922 # `set' does not quote correctly, so add quotes (double-quote 20923 # substitution turns \\\\ into \\, and sed turns \\ into \). 20924 sed -n \ 20925 "s/'/'\\\\''/g; 20926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20927 ;; #( 20928 *) 20929 # `set' quotes correctly as required by POSIX, so do not add quotes. 20930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20931 ;; 20932 esac | 20933 sort 20934) | 20935 sed ' 20936 /^ac_cv_env_/b end 20937 t clear 20938 :clear 20939 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20940 t end 20941 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20942 :end' >>confcache 20943if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20944 if test -w "$cache_file"; then 20945 test "x$cache_file" != "x/dev/null" && 20946 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20947echo "$as_me: updating cache $cache_file" >&6;} 20948 cat confcache >$cache_file 20949 else 20950 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20951echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20952 fi 20953fi 20954rm -f confcache 20955 20956test "x$prefix" = xNONE && prefix=$ac_default_prefix 20957# Let make expand exec_prefix. 20958test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20959 20960DEFS=-DHAVE_CONFIG_H 20961 20962ac_libobjs= 20963ac_ltlibobjs= 20964for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20965 # 1. Remove the extension, and $U if already installed. 20966 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20967 ac_i=`echo "$ac_i" | sed "$ac_script"` 20968 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20969 # will be set to the directory where LIBOBJS objects are built. 20970 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20971 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20972done 20973LIBOBJS=$ac_libobjs 20974 20975LTLIBOBJS=$ac_ltlibobjs 20976 20977 20978if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 20979 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 20980Usually this means the macro was only invoked conditionally." >&5 20981echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 20982Usually this means the macro was only invoked conditionally." >&2;} 20983 { (exit 1); exit 1; }; } 20984fi 20985if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 20986 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 20987Usually this means the macro was only invoked conditionally." >&5 20988echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 20989Usually this means the macro was only invoked conditionally." >&2;} 20990 { (exit 1); exit 1; }; } 20991fi 20992 20993: ${CONFIG_STATUS=./config.status} 20994ac_clean_files_save=$ac_clean_files 20995ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20996{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20997echo "$as_me: creating $CONFIG_STATUS" >&6;} 20998cat >$CONFIG_STATUS <<_ACEOF 20999#! $SHELL 21000# Generated by $as_me. 21001# Run this file to recreate the current configuration. 21002# Compiler output produced by configure, useful for debugging 21003# configure, is in config.log if it exists. 21004 21005debug=false 21006ac_cs_recheck=false 21007ac_cs_silent=false 21008SHELL=\${CONFIG_SHELL-$SHELL} 21009_ACEOF 21010 21011cat >>$CONFIG_STATUS <<\_ACEOF 21012## --------------------- ## 21013## M4sh Initialization. ## 21014## --------------------- ## 21015 21016# Be Bourne compatible 21017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21018 emulate sh 21019 NULLCMD=: 21020 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21021 # is contrary to our usage. Disable this feature. 21022 alias -g '${1+"$@"}'='"$@"' 21023 setopt NO_GLOB_SUBST 21024else 21025 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21026fi 21027BIN_SH=xpg4; export BIN_SH # for Tru64 21028DUALCASE=1; export DUALCASE # for MKS sh 21029 21030 21031# PATH needs CR 21032# Avoid depending upon Character Ranges. 21033as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21034as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21035as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21036as_cr_digits='0123456789' 21037as_cr_alnum=$as_cr_Letters$as_cr_digits 21038 21039# The user is always right. 21040if test "${PATH_SEPARATOR+set}" != set; then 21041 echo "#! /bin/sh" >conf$$.sh 21042 echo "exit 0" >>conf$$.sh 21043 chmod +x conf$$.sh 21044 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21045 PATH_SEPARATOR=';' 21046 else 21047 PATH_SEPARATOR=: 21048 fi 21049 rm -f conf$$.sh 21050fi 21051 21052# Support unset when possible. 21053if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21054 as_unset=unset 21055else 21056 as_unset=false 21057fi 21058 21059 21060# IFS 21061# We need space, tab and new line, in precisely that order. Quoting is 21062# there to prevent editors from complaining about space-tab. 21063# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21064# splitting by setting IFS to empty value.) 21065as_nl=' 21066' 21067IFS=" "" $as_nl" 21068 21069# Find who we are. Look in the path if we contain no directory separator. 21070case $0 in 21071 *[\\/]* ) as_myself=$0 ;; 21072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21073for as_dir in $PATH 21074do 21075 IFS=$as_save_IFS 21076 test -z "$as_dir" && as_dir=. 21077 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21078done 21079IFS=$as_save_IFS 21080 21081 ;; 21082esac 21083# We did not find ourselves, most probably we were run as `sh COMMAND' 21084# in which case we are not to be found in the path. 21085if test "x$as_myself" = x; then 21086 as_myself=$0 21087fi 21088if test ! -f "$as_myself"; then 21089 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21090 { (exit 1); exit 1; } 21091fi 21092 21093# Work around bugs in pre-3.0 UWIN ksh. 21094for as_var in ENV MAIL MAILPATH 21095do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21096done 21097PS1='$ ' 21098PS2='> ' 21099PS4='+ ' 21100 21101# NLS nuisances. 21102for as_var in \ 21103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21105 LC_TELEPHONE LC_TIME 21106do 21107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21108 eval $as_var=C; export $as_var 21109 else 21110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21111 fi 21112done 21113 21114# Required to use basename. 21115if expr a : '\(a\)' >/dev/null 2>&1 && 21116 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21117 as_expr=expr 21118else 21119 as_expr=false 21120fi 21121 21122if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21123 as_basename=basename 21124else 21125 as_basename=false 21126fi 21127 21128 21129# Name of the executable. 21130as_me=`$as_basename -- "$0" || 21131$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21132 X"$0" : 'X\(//\)$' \| \ 21133 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21134echo X/"$0" | 21135 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21136 s//\1/ 21137 q 21138 } 21139 /^X\/\(\/\/\)$/{ 21140 s//\1/ 21141 q 21142 } 21143 /^X\/\(\/\).*/{ 21144 s//\1/ 21145 q 21146 } 21147 s/.*/./; q'` 21148 21149# CDPATH. 21150$as_unset CDPATH 21151 21152 21153 21154 as_lineno_1=$LINENO 21155 as_lineno_2=$LINENO 21156 test "x$as_lineno_1" != "x$as_lineno_2" && 21157 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21158 21159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21160 # uniformly replaced by the line number. The first 'sed' inserts a 21161 # line-number line after each line using $LINENO; the second 'sed' 21162 # does the real work. The second script uses 'N' to pair each 21163 # line-number line with the line containing $LINENO, and appends 21164 # trailing '-' during substitution so that $LINENO is not a special 21165 # case at line end. 21166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21167 # scripts with optimization help from Paolo Bonzini. Blame Lee 21168 # E. McMahon (1931-1989) for sed's syntax. :-) 21169 sed -n ' 21170 p 21171 /[$]LINENO/= 21172 ' <$as_myself | 21173 sed ' 21174 s/[$]LINENO.*/&-/ 21175 t lineno 21176 b 21177 :lineno 21178 N 21179 :loop 21180 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21181 t loop 21182 s/-\n.*// 21183 ' >$as_me.lineno && 21184 chmod +x "$as_me.lineno" || 21185 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21186 { (exit 1); exit 1; }; } 21187 21188 # Don't try to exec as it changes $[0], causing all sort of problems 21189 # (the dirname of $[0] is not the place where we might find the 21190 # original and so on. Autoconf is especially sensitive to this). 21191 . "./$as_me.lineno" 21192 # Exit status is that of the last command. 21193 exit 21194} 21195 21196 21197if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21198 as_dirname=dirname 21199else 21200 as_dirname=false 21201fi 21202 21203ECHO_C= ECHO_N= ECHO_T= 21204case `echo -n x` in 21205-n*) 21206 case `echo 'x\c'` in 21207 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21208 *) ECHO_C='\c';; 21209 esac;; 21210*) 21211 ECHO_N='-n';; 21212esac 21213 21214if expr a : '\(a\)' >/dev/null 2>&1 && 21215 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21216 as_expr=expr 21217else 21218 as_expr=false 21219fi 21220 21221rm -f conf$$ conf$$.exe conf$$.file 21222if test -d conf$$.dir; then 21223 rm -f conf$$.dir/conf$$.file 21224else 21225 rm -f conf$$.dir 21226 mkdir conf$$.dir 21227fi 21228echo >conf$$.file 21229if ln -s conf$$.file conf$$ 2>/dev/null; then 21230 as_ln_s='ln -s' 21231 # ... but there are two gotchas: 21232 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21233 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21234 # In both cases, we have to default to `cp -p'. 21235 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21236 as_ln_s='cp -p' 21237elif ln conf$$.file conf$$ 2>/dev/null; then 21238 as_ln_s=ln 21239else 21240 as_ln_s='cp -p' 21241fi 21242rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21243rmdir conf$$.dir 2>/dev/null 21244 21245if mkdir -p . 2>/dev/null; then 21246 as_mkdir_p=: 21247else 21248 test -d ./-p && rmdir ./-p 21249 as_mkdir_p=false 21250fi 21251 21252# Find out whether ``test -x'' works. Don't use a zero-byte file, as 21253# systems may use methods other than mode bits to determine executability. 21254cat >conf$$.file <<_ASEOF 21255#! /bin/sh 21256exit 0 21257_ASEOF 21258chmod +x conf$$.file 21259if test -x conf$$.file >/dev/null 2>&1; then 21260 as_executable_p="test -x" 21261else 21262 as_executable_p=: 21263fi 21264rm -f conf$$.file 21265 21266# Sed expression to map a string onto a valid CPP name. 21267as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21268 21269# Sed expression to map a string onto a valid variable name. 21270as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21271 21272 21273exec 6>&1 21274 21275# Save the log message, to keep $[0] and so on meaningful, and to 21276# report actual input values of CONFIG_FILES etc. instead of their 21277# values after options handling. 21278ac_log=" 21279This file was extended by llvm $as_me 2.9svn, which was 21280generated by GNU Autoconf 2.60. Invocation command line was 21281 21282 CONFIG_FILES = $CONFIG_FILES 21283 CONFIG_HEADERS = $CONFIG_HEADERS 21284 CONFIG_LINKS = $CONFIG_LINKS 21285 CONFIG_COMMANDS = $CONFIG_COMMANDS 21286 $ $0 $@ 21287 21288on `(hostname || uname -n) 2>/dev/null | sed 1q` 21289" 21290 21291_ACEOF 21292 21293cat >>$CONFIG_STATUS <<_ACEOF 21294# Files that config.status was made for. 21295config_files="$ac_config_files" 21296config_headers="$ac_config_headers" 21297config_commands="$ac_config_commands" 21298 21299_ACEOF 21300 21301cat >>$CONFIG_STATUS <<\_ACEOF 21302ac_cs_usage="\ 21303\`$as_me' instantiates files from templates according to the 21304current configuration. 21305 21306Usage: $0 [OPTIONS] [FILE]... 21307 21308 -h, --help print this help, then exit 21309 -V, --version print version number, then exit 21310 -q, --quiet do not print progress messages 21311 -d, --debug don't remove temporary files 21312 --recheck update $as_me by reconfiguring in the same conditions 21313 --file=FILE[:TEMPLATE] 21314 instantiate the configuration file FILE 21315 --header=FILE[:TEMPLATE] 21316 instantiate the configuration header FILE 21317 21318Configuration files: 21319$config_files 21320 21321Configuration headers: 21322$config_headers 21323 21324Configuration commands: 21325$config_commands 21326 21327Report bugs to <bug-autoconf@gnu.org>." 21328 21329_ACEOF 21330cat >>$CONFIG_STATUS <<_ACEOF 21331ac_cs_version="\\ 21332llvm config.status 2.9svn 21333configured by $0, generated by GNU Autoconf 2.60, 21334 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21335 21336Copyright (C) 2006 Free Software Foundation, Inc. 21337This config.status script is free software; the Free Software Foundation 21338gives unlimited permission to copy, distribute and modify it." 21339 21340ac_pwd='$ac_pwd' 21341srcdir='$srcdir' 21342INSTALL='$INSTALL' 21343_ACEOF 21344 21345cat >>$CONFIG_STATUS <<\_ACEOF 21346# If no file are specified by the user, then we need to provide default 21347# value. By we need to know if files were specified by the user. 21348ac_need_defaults=: 21349while test $# != 0 21350do 21351 case $1 in 21352 --*=*) 21353 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21354 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21355 ac_shift=: 21356 ;; 21357 *) 21358 ac_option=$1 21359 ac_optarg=$2 21360 ac_shift=shift 21361 ;; 21362 esac 21363 21364 case $ac_option in 21365 # Handling of the options. 21366 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21367 ac_cs_recheck=: ;; 21368 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21369 echo "$ac_cs_version"; exit ;; 21370 --debug | --debu | --deb | --de | --d | -d ) 21371 debug=: ;; 21372 --file | --fil | --fi | --f ) 21373 $ac_shift 21374 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21375 ac_need_defaults=false;; 21376 --header | --heade | --head | --hea ) 21377 $ac_shift 21378 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21379 ac_need_defaults=false;; 21380 --he | --h) 21381 # Conflict between --help and --header 21382 { echo "$as_me: error: ambiguous option: $1 21383Try \`$0 --help' for more information." >&2 21384 { (exit 1); exit 1; }; };; 21385 --help | --hel | -h ) 21386 echo "$ac_cs_usage"; exit ;; 21387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21388 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21389 ac_cs_silent=: ;; 21390 21391 # This is an error. 21392 -*) { echo "$as_me: error: unrecognized option: $1 21393Try \`$0 --help' for more information." >&2 21394 { (exit 1); exit 1; }; } ;; 21395 21396 *) ac_config_targets="$ac_config_targets $1" 21397 ac_need_defaults=false ;; 21398 21399 esac 21400 shift 21401done 21402 21403ac_configure_extra_args= 21404 21405if $ac_cs_silent; then 21406 exec 6>/dev/null 21407 ac_configure_extra_args="$ac_configure_extra_args --silent" 21408fi 21409 21410_ACEOF 21411cat >>$CONFIG_STATUS <<_ACEOF 21412if \$ac_cs_recheck; then 21413 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21414 CONFIG_SHELL=$SHELL 21415 export CONFIG_SHELL 21416 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21417fi 21418 21419_ACEOF 21420cat >>$CONFIG_STATUS <<\_ACEOF 21421exec 5>>config.log 21422{ 21423 echo 21424 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21425## Running $as_me. ## 21426_ASBOX 21427 echo "$ac_log" 21428} >&5 21429 21430_ACEOF 21431cat >>$CONFIG_STATUS <<_ACEOF 21432# 21433# INIT-COMMANDS 21434# 21435llvm_src="${srcdir}" 21436 21437_ACEOF 21438 21439cat >>$CONFIG_STATUS <<\_ACEOF 21440 21441# Handling of arguments. 21442for ac_config_target in $ac_config_targets 21443do 21444 case $ac_config_target in 21445 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 21446 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;; 21447 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 21448 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 21449 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 21450 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 21451 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;; 21452 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 21453 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 21454 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;; 21455 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; 21456 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 21457 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 21458 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 21459 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 21460 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 21461 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 21462 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 21463 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 21464 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 21465 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 21466 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 21467 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 21468 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 21469 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 21470 21471 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21472echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21473 { (exit 1); exit 1; }; };; 21474 esac 21475done 21476 21477 21478# If the user did not use the arguments to specify the items to instantiate, 21479# then the envvar interface is used. Set only those that are not. 21480# We use the long form for the default assignment because of an extremely 21481# bizarre bug on SunOS 4.1.3. 21482if $ac_need_defaults; then 21483 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21484 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21485 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21486fi 21487 21488# Have a temporary directory for convenience. Make it in the build tree 21489# simply because there is no reason against having it here, and in addition, 21490# creating and moving files from /tmp can sometimes cause problems. 21491# Hook for its removal unless debugging. 21492# Note that there is a small window in which the directory will not be cleaned: 21493# after its creation but before its name has been assigned to `$tmp'. 21494$debug || 21495{ 21496 tmp= 21497 trap 'exit_status=$? 21498 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21499' 0 21500 trap '{ (exit 1); exit 1; }' 1 2 13 15 21501} 21502# Create a (secure) tmp directory for tmp files. 21503 21504{ 21505 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21506 test -n "$tmp" && test -d "$tmp" 21507} || 21508{ 21509 tmp=./conf$$-$RANDOM 21510 (umask 077 && mkdir "$tmp") 21511} || 21512{ 21513 echo "$me: cannot create a temporary directory in ." >&2 21514 { (exit 1); exit 1; } 21515} 21516 21517# 21518# Set up the sed scripts for CONFIG_FILES section. 21519# 21520 21521# No need to generate the scripts if there are no CONFIG_FILES. 21522# This happens for instance when ./config.status config.h 21523if test -n "$CONFIG_FILES"; then 21524 21525_ACEOF 21526 21527 21528 21529ac_delim='%!_!# ' 21530for ac_last_try in false false false false false :; do 21531 cat >conf$$subs.sed <<_ACEOF 21532SHELL!$SHELL$ac_delim 21533PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21534PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21535PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21536PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21537PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21538PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21539exec_prefix!$exec_prefix$ac_delim 21540prefix!$prefix$ac_delim 21541program_transform_name!$program_transform_name$ac_delim 21542bindir!$bindir$ac_delim 21543sbindir!$sbindir$ac_delim 21544libexecdir!$libexecdir$ac_delim 21545datarootdir!$datarootdir$ac_delim 21546datadir!$datadir$ac_delim 21547sysconfdir!$sysconfdir$ac_delim 21548sharedstatedir!$sharedstatedir$ac_delim 21549localstatedir!$localstatedir$ac_delim 21550includedir!$includedir$ac_delim 21551oldincludedir!$oldincludedir$ac_delim 21552docdir!$docdir$ac_delim 21553infodir!$infodir$ac_delim 21554htmldir!$htmldir$ac_delim 21555dvidir!$dvidir$ac_delim 21556pdfdir!$pdfdir$ac_delim 21557psdir!$psdir$ac_delim 21558libdir!$libdir$ac_delim 21559localedir!$localedir$ac_delim 21560mandir!$mandir$ac_delim 21561DEFS!$DEFS$ac_delim 21562ECHO_C!$ECHO_C$ac_delim 21563ECHO_N!$ECHO_N$ac_delim 21564ECHO_T!$ECHO_T$ac_delim 21565LIBS!$LIBS$ac_delim 21566build_alias!$build_alias$ac_delim 21567host_alias!$host_alias$ac_delim 21568target_alias!$target_alias$ac_delim 21569LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 21570subdirs!$subdirs$ac_delim 21571build!$build$ac_delim 21572build_cpu!$build_cpu$ac_delim 21573build_vendor!$build_vendor$ac_delim 21574build_os!$build_os$ac_delim 21575host!$host$ac_delim 21576host_cpu!$host_cpu$ac_delim 21577host_vendor!$host_vendor$ac_delim 21578host_os!$host_os$ac_delim 21579target!$target$ac_delim 21580target_cpu!$target_cpu$ac_delim 21581target_vendor!$target_vendor$ac_delim 21582target_os!$target_os$ac_delim 21583OS!$OS$ac_delim 21584HOST_OS!$HOST_OS$ac_delim 21585TARGET_OS!$TARGET_OS$ac_delim 21586LINKALL!$LINKALL$ac_delim 21587NOLINKALL!$NOLINKALL$ac_delim 21588LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 21589LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 21590ARCH!$ARCH$ac_delim 21591ENDIAN!$ENDIAN$ac_delim 21592CC!$CC$ac_delim 21593CFLAGS!$CFLAGS$ac_delim 21594LDFLAGS!$LDFLAGS$ac_delim 21595CPPFLAGS!$CPPFLAGS$ac_delim 21596ac_ct_CC!$ac_ct_CC$ac_delim 21597EXEEXT!$EXEEXT$ac_delim 21598OBJEXT!$OBJEXT$ac_delim 21599CPP!$CPP$ac_delim 21600GREP!$GREP$ac_delim 21601EGREP!$EGREP$ac_delim 21602LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 21603BUILD_CC!$BUILD_CC$ac_delim 21604BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 21605BUILD_CXX!$BUILD_CXX$ac_delim 21606CVSBUILD!$CVSBUILD$ac_delim 21607ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 21608ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 21609DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 21610ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 21611EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 21612DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 21613DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 21614JIT!$JIT$ac_delim 21615TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 21616ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 21617ENABLE_THREADS!$ENABLE_THREADS$ac_delim 21618ENABLE_PIC!$ENABLE_PIC$ac_delim 21619ENABLE_SHARED!$ENABLE_SHARED$ac_delim 21620ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 21621TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 21622LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 21623LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 21624LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 21625LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 21626ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim 21627CLANGPATH!$CLANGPATH$ac_delim 21628CLANGXXPATH!$CLANGXXPATH$ac_delim 21629_ACEOF 21630 21631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21632 break 21633 elif $ac_last_try; then 21634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21635echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21636 { (exit 1); exit 1; }; } 21637 else 21638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21639 fi 21640done 21641 21642ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21643if test -n "$ac_eof"; then 21644 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21645 ac_eof=`expr $ac_eof + 1` 21646fi 21647 21648cat >>$CONFIG_STATUS <<_ACEOF 21649cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21650/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21651_ACEOF 21652sed ' 21653s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21654s/^/s,@/; s/!/@,|#_!!_#|/ 21655:n 21656t n 21657s/'"$ac_delim"'$/,g/; t 21658s/$/\\/; p 21659N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21660' >>$CONFIG_STATUS <conf$$subs.sed 21661rm -f conf$$subs.sed 21662cat >>$CONFIG_STATUS <<_ACEOF 21663CEOF$ac_eof 21664_ACEOF 21665 21666 21667ac_delim='%!_!# ' 21668for ac_last_try in false false false false false :; do 21669 cat >conf$$subs.sed <<_ACEOF 21670ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim 21671OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 21672EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 21673BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 21674CXX!$CXX$ac_delim 21675CXXFLAGS!$CXXFLAGS$ac_delim 21676ac_ct_CXX!$ac_ct_CXX$ac_delim 21677NM!$NM$ac_delim 21678ifGNUmake!$ifGNUmake$ac_delim 21679LN_S!$LN_S$ac_delim 21680CMP!$CMP$ac_delim 21681CP!$CP$ac_delim 21682DATE!$DATE$ac_delim 21683FIND!$FIND$ac_delim 21684MKDIR!$MKDIR$ac_delim 21685MV!$MV$ac_delim 21686RANLIB!$RANLIB$ac_delim 21687AR!$AR$ac_delim 21688RM!$RM$ac_delim 21689SED!$SED$ac_delim 21690TAR!$TAR$ac_delim 21691BINPWD!$BINPWD$ac_delim 21692GRAPHVIZ!$GRAPHVIZ$ac_delim 21693DOT!$DOT$ac_delim 21694FDP!$FDP$ac_delim 21695NEATO!$NEATO$ac_delim 21696TWOPI!$TWOPI$ac_delim 21697CIRCO!$CIRCO$ac_delim 21698GV!$GV$ac_delim 21699DOTTY!$DOTTY$ac_delim 21700XDOT_PY!$XDOT_PY$ac_delim 21701PERL!$PERL$ac_delim 21702HAVE_PERL!$HAVE_PERL$ac_delim 21703INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21704INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21705INSTALL_DATA!$INSTALL_DATA$ac_delim 21706BZIP2!$BZIP2$ac_delim 21707CAT!$CAT$ac_delim 21708DOXYGEN!$DOXYGEN$ac_delim 21709GROFF!$GROFF$ac_delim 21710GZIP!$GZIP$ac_delim 21711POD2HTML!$POD2HTML$ac_delim 21712POD2MAN!$POD2MAN$ac_delim 21713PDFROFF!$PDFROFF$ac_delim 21714RUNTEST!$RUNTEST$ac_delim 21715TCLSH!$TCLSH$ac_delim 21716ZIP!$ZIP$ac_delim 21717OCAMLC!$OCAMLC$ac_delim 21718OCAMLOPT!$OCAMLOPT$ac_delim 21719OCAMLDEP!$OCAMLDEP$ac_delim 21720OCAMLDOC!$OCAMLDOC$ac_delim 21721GAS!$GAS$ac_delim 21722HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 21723INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 21724INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 21725CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 21726CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 21727LIBADD_DL!$LIBADD_DL$ac_delim 21728LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim 21729LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim 21730LLVMGCC!$LLVMGCC$ac_delim 21731LLVMGXX!$LLVMGXX$ac_delim 21732LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim 21733NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 21734NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 21735USE_UDIS86!$USE_UDIS86$ac_delim 21736USE_OPROFILE!$USE_OPROFILE$ac_delim 21737HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 21738HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 21739MMAP_FILE!$MMAP_FILE$ac_delim 21740LLVMCC1!$LLVMCC1$ac_delim 21741LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim 21742LLVMGCCDIR!$LLVMGCCDIR$ac_delim 21743LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim 21744SHLIBEXT!$SHLIBEXT$ac_delim 21745SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 21746LLVM_PREFIX!$LLVM_PREFIX$ac_delim 21747LLVM_BINDIR!$LLVM_BINDIR$ac_delim 21748LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 21749LLVM_DATADIR!$LLVM_DATADIR$ac_delim 21750LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 21751LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 21752LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 21753LLVM_INFODIR!$LLVM_INFODIR$ac_delim 21754LLVM_MANDIR!$LLVM_MANDIR$ac_delim 21755LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 21756BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 21757ALL_BINDINGS!$ALL_BINDINGS$ac_delim 21758OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 21759ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 21760RPATH!$RPATH$ac_delim 21761RDYNAMIC!$RDYNAMIC$ac_delim 21762LIBOBJS!$LIBOBJS$ac_delim 21763LTLIBOBJS!$LTLIBOBJS$ac_delim 21764_ACEOF 21765 21766 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then 21767 break 21768 elif $ac_last_try; then 21769 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21770echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21771 { (exit 1); exit 1; }; } 21772 else 21773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21774 fi 21775done 21776 21777ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21778if test -n "$ac_eof"; then 21779 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21780 ac_eof=`expr $ac_eof + 1` 21781fi 21782 21783cat >>$CONFIG_STATUS <<_ACEOF 21784cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21785/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21786_ACEOF 21787sed ' 21788s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21789s/^/s,@/; s/!/@,|#_!!_#|/ 21790:n 21791t n 21792s/'"$ac_delim"'$/,g/; t 21793s/$/\\/; p 21794N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21795' >>$CONFIG_STATUS <conf$$subs.sed 21796rm -f conf$$subs.sed 21797cat >>$CONFIG_STATUS <<_ACEOF 21798:end 21799s/|#_!!_#|//g 21800CEOF$ac_eof 21801_ACEOF 21802 21803 21804# VPATH may cause trouble with some makes, so we remove $(srcdir), 21805# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21806# trailing colons and then remove the whole line if VPATH becomes empty 21807# (actually we leave an empty line to preserve line numbers). 21808if test "x$srcdir" = x.; then 21809 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21810s/:*\$(srcdir):*/:/ 21811s/:*\${srcdir}:*/:/ 21812s/:*@srcdir@:*/:/ 21813s/^\([^=]*=[ ]*\):*/\1/ 21814s/:*$// 21815s/^[^=]*=[ ]*$// 21816}' 21817fi 21818 21819cat >>$CONFIG_STATUS <<\_ACEOF 21820fi # test -n "$CONFIG_FILES" 21821 21822 21823for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21824do 21825 case $ac_tag in 21826 :[FHLC]) ac_mode=$ac_tag; continue;; 21827 esac 21828 case $ac_mode$ac_tag in 21829 :[FHL]*:*);; 21830 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21831echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21832 { (exit 1); exit 1; }; };; 21833 :[FH]-) ac_tag=-:-;; 21834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21835 esac 21836 ac_save_IFS=$IFS 21837 IFS=: 21838 set x $ac_tag 21839 IFS=$ac_save_IFS 21840 shift 21841 ac_file=$1 21842 shift 21843 21844 case $ac_mode in 21845 :L) ac_source=$1;; 21846 :[FH]) 21847 ac_file_inputs= 21848 for ac_f 21849 do 21850 case $ac_f in 21851 -) ac_f="$tmp/stdin";; 21852 *) # Look for the file first in the build tree, then in the source tree 21853 # (if the path is not absolute). The absolute path cannot be DOS-style, 21854 # because $ac_f cannot contain `:'. 21855 test -f "$ac_f" || 21856 case $ac_f in 21857 [\\/$]*) false;; 21858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21859 esac || 21860 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21861echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21862 { (exit 1); exit 1; }; };; 21863 esac 21864 ac_file_inputs="$ac_file_inputs $ac_f" 21865 done 21866 21867 # Let's still pretend it is `configure' which instantiates (i.e., don't 21868 # use $as_me), people would be surprised to read: 21869 # /* config.h. Generated by config.status. */ 21870 configure_input="Generated from "`IFS=: 21871 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21872 if test x"$ac_file" != x-; then 21873 configure_input="$ac_file. $configure_input" 21874 { echo "$as_me:$LINENO: creating $ac_file" >&5 21875echo "$as_me: creating $ac_file" >&6;} 21876 fi 21877 21878 case $ac_tag in 21879 *:-:* | *:-) cat >"$tmp/stdin";; 21880 esac 21881 ;; 21882 esac 21883 21884 ac_dir=`$as_dirname -- "$ac_file" || 21885$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21886 X"$ac_file" : 'X\(//\)[^/]' \| \ 21887 X"$ac_file" : 'X\(//\)$' \| \ 21888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21889echo X"$ac_file" | 21890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21891 s//\1/ 21892 q 21893 } 21894 /^X\(\/\/\)[^/].*/{ 21895 s//\1/ 21896 q 21897 } 21898 /^X\(\/\/\)$/{ 21899 s//\1/ 21900 q 21901 } 21902 /^X\(\/\).*/{ 21903 s//\1/ 21904 q 21905 } 21906 s/.*/./; q'` 21907 { as_dir="$ac_dir" 21908 case $as_dir in #( 21909 -*) as_dir=./$as_dir;; 21910 esac 21911 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21912 as_dirs= 21913 while :; do 21914 case $as_dir in #( 21915 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21916 *) as_qdir=$as_dir;; 21917 esac 21918 as_dirs="'$as_qdir' $as_dirs" 21919 as_dir=`$as_dirname -- "$as_dir" || 21920$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21921 X"$as_dir" : 'X\(//\)[^/]' \| \ 21922 X"$as_dir" : 'X\(//\)$' \| \ 21923 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21924echo X"$as_dir" | 21925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21926 s//\1/ 21927 q 21928 } 21929 /^X\(\/\/\)[^/].*/{ 21930 s//\1/ 21931 q 21932 } 21933 /^X\(\/\/\)$/{ 21934 s//\1/ 21935 q 21936 } 21937 /^X\(\/\).*/{ 21938 s//\1/ 21939 q 21940 } 21941 s/.*/./; q'` 21942 test -d "$as_dir" && break 21943 done 21944 test -z "$as_dirs" || eval "mkdir $as_dirs" 21945 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21946echo "$as_me: error: cannot create directory $as_dir" >&2;} 21947 { (exit 1); exit 1; }; }; } 21948 ac_builddir=. 21949 21950case "$ac_dir" in 21951.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21952*) 21953 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21954 # A ".." for each directory in $ac_dir_suffix. 21955 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21956 case $ac_top_builddir_sub in 21957 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21958 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21959 esac ;; 21960esac 21961ac_abs_top_builddir=$ac_pwd 21962ac_abs_builddir=$ac_pwd$ac_dir_suffix 21963# for backward compatibility: 21964ac_top_builddir=$ac_top_build_prefix 21965 21966case $srcdir in 21967 .) # We are building in place. 21968 ac_srcdir=. 21969 ac_top_srcdir=$ac_top_builddir_sub 21970 ac_abs_top_srcdir=$ac_pwd ;; 21971 [\\/]* | ?:[\\/]* ) # Absolute name. 21972 ac_srcdir=$srcdir$ac_dir_suffix; 21973 ac_top_srcdir=$srcdir 21974 ac_abs_top_srcdir=$srcdir ;; 21975 *) # Relative name. 21976 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21977 ac_top_srcdir=$ac_top_build_prefix$srcdir 21978 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21979esac 21980ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21981 21982 21983 case $ac_mode in 21984 :F) 21985 # 21986 # CONFIG_FILE 21987 # 21988 21989 case $INSTALL in 21990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21991 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21992 esac 21993_ACEOF 21994 21995cat >>$CONFIG_STATUS <<\_ACEOF 21996# If the template does not know about datarootdir, expand it. 21997# FIXME: This hack should be removed a few years after 2.60. 21998ac_datarootdir_hack=; ac_datarootdir_seen= 21999 22000case `sed -n '/datarootdir/ { 22001 p 22002 q 22003} 22004/@datadir@/p 22005/@docdir@/p 22006/@infodir@/p 22007/@localedir@/p 22008/@mandir@/p 22009' $ac_file_inputs` in 22010*datarootdir*) ac_datarootdir_seen=yes;; 22011*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22012 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22013echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22014_ACEOF 22015cat >>$CONFIG_STATUS <<_ACEOF 22016 ac_datarootdir_hack=' 22017 s&@datadir@&$datadir&g 22018 s&@docdir@&$docdir&g 22019 s&@infodir@&$infodir&g 22020 s&@localedir@&$localedir&g 22021 s&@mandir@&$mandir&g 22022 s&\\\${datarootdir}&$datarootdir&g' ;; 22023esac 22024_ACEOF 22025 22026# Neutralize VPATH when `$srcdir' = `.'. 22027# Shell code in configure.ac might set extrasub. 22028# FIXME: do we really want to maintain this feature? 22029cat >>$CONFIG_STATUS <<_ACEOF 22030 sed "$ac_vpsub 22031$extrasub 22032_ACEOF 22033cat >>$CONFIG_STATUS <<\_ACEOF 22034:t 22035/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22036s&@configure_input@&$configure_input&;t t 22037s&@top_builddir@&$ac_top_builddir_sub&;t t 22038s&@srcdir@&$ac_srcdir&;t t 22039s&@abs_srcdir@&$ac_abs_srcdir&;t t 22040s&@top_srcdir@&$ac_top_srcdir&;t t 22041s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22042s&@builddir@&$ac_builddir&;t t 22043s&@abs_builddir@&$ac_abs_builddir&;t t 22044s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22045s&@INSTALL@&$ac_INSTALL&;t t 22046$ac_datarootdir_hack 22047" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22048 22049test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22050 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22051 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22052 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22053which seems to be undefined. Please make sure it is defined." >&5 22054echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22055which seems to be undefined. Please make sure it is defined." >&2;} 22056 22057 rm -f "$tmp/stdin" 22058 case $ac_file in 22059 -) cat "$tmp/out"; rm -f "$tmp/out";; 22060 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22061 esac 22062 ;; 22063 :H) 22064 # 22065 # CONFIG_HEADER 22066 # 22067_ACEOF 22068 22069# Transform confdefs.h into a sed script `conftest.defines', that 22070# substitutes the proper values into config.h.in to produce config.h. 22071rm -f conftest.defines conftest.tail 22072# First, append a space to every undef/define line, to ease matching. 22073echo 's/$/ /' >conftest.defines 22074# Then, protect against being on the right side of a sed subst, or in 22075# an unquoted here document, in config.status. If some macros were 22076# called several times there might be several #defines for the same 22077# symbol, which is useless. But do not sort them, since the last 22078# AC_DEFINE must be honored. 22079ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22080# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22081# NAME is the cpp macro being defined, VALUE is the value it is being given. 22082# PARAMS is the parameter list in the macro definition--in most cases, it's 22083# just an empty string. 22084ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22085ac_dB='\\)[ (].*,\\1define\\2' 22086ac_dC=' ' 22087ac_dD=' ,' 22088 22089uniq confdefs.h | 22090 sed -n ' 22091 t rset 22092 :rset 22093 s/^[ ]*#[ ]*define[ ][ ]*// 22094 t ok 22095 d 22096 :ok 22097 s/[\\&,]/\\&/g 22098 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22099 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22100 ' >>conftest.defines 22101 22102# Remove the space that was appended to ease matching. 22103# Then replace #undef with comments. This is necessary, for 22104# example, in the case of _POSIX_SOURCE, which is predefined and required 22105# on some systems where configure will not decide to define it. 22106# (The regexp can be short, since the line contains either #define or #undef.) 22107echo 's/ $// 22108s,^[ #]*u.*,/* & */,' >>conftest.defines 22109 22110# Break up conftest.defines: 22111ac_max_sed_lines=50 22112 22113# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22114# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22115# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22116# et cetera. 22117ac_in='$ac_file_inputs' 22118ac_out='"$tmp/out1"' 22119ac_nxt='"$tmp/out2"' 22120 22121while : 22122do 22123 # Write a here document: 22124 cat >>$CONFIG_STATUS <<_ACEOF 22125 # First, check the format of the line: 22126 cat >"\$tmp/defines.sed" <<\\CEOF 22127/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22128/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22129b 22130:def 22131_ACEOF 22132 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22133 echo 'CEOF 22134 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22135 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22136 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22137 grep . conftest.tail >/dev/null || break 22138 rm -f conftest.defines 22139 mv conftest.tail conftest.defines 22140done 22141rm -f conftest.defines conftest.tail 22142 22143echo "ac_result=$ac_in" >>$CONFIG_STATUS 22144cat >>$CONFIG_STATUS <<\_ACEOF 22145 if test x"$ac_file" != x-; then 22146 echo "/* $configure_input */" >"$tmp/config.h" 22147 cat "$ac_result" >>"$tmp/config.h" 22148 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22149 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22150echo "$as_me: $ac_file is unchanged" >&6;} 22151 else 22152 rm -f $ac_file 22153 mv "$tmp/config.h" $ac_file 22154 fi 22155 else 22156 echo "/* $configure_input */" 22157 cat "$ac_result" 22158 fi 22159 rm -f "$tmp/out12" 22160 ;; 22161 22162 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22163echo "$as_me: executing $ac_file commands" >&6;} 22164 ;; 22165 esac 22166 22167 22168 case $ac_file$ac_mode in 22169 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 22170 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 22171 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 22172 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 22173 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 22174 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 22175 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 22176 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 22177 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 22178 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 22179 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 22180 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 22181 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 22182 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 22183 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 22184 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 22185 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 22186 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 22187 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 22188 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 22189 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 22190 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 22191 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 22192 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 22193 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 22194 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 22195 22196 esac 22197done # for ac_tag 22198 22199 22200{ (exit 0); exit 0; } 22201_ACEOF 22202chmod +x $CONFIG_STATUS 22203ac_clean_files=$ac_clean_files_save 22204 22205 22206# configure is writing to config.log, and then calls config.status. 22207# config.status does its own redirection, appending to config.log. 22208# Unfortunately, on DOS this fails, as config.log is still kept open 22209# by configure, so config.status won't be able to write to it; its 22210# output is simply discarded. So we exec the FD to /dev/null, 22211# effectively closing config.log, so it can be properly (re)opened and 22212# appended to by config.status. When coming back to configure, we 22213# need to make the FD available again. 22214if test "$no_create" != yes; then 22215 ac_cs_success=: 22216 ac_config_status_args= 22217 test "$silent" = yes && 22218 ac_config_status_args="$ac_config_status_args --quiet" 22219 exec 5>/dev/null 22220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22221 exec 5>>config.log 22222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22223 # would make configure fail if this is the last instruction. 22224 $ac_cs_success || { (exit 1); exit 1; } 22225fi 22226 22227# 22228# CONFIG_SUBDIRS section. 22229# 22230if test "$no_recursion" != yes; then 22231 22232 # Remove --cache-file and --srcdir arguments so they do not pile up. 22233 ac_sub_configure_args= 22234 ac_prev= 22235 eval "set x $ac_configure_args" 22236 shift 22237 for ac_arg 22238 do 22239 if test -n "$ac_prev"; then 22240 ac_prev= 22241 continue 22242 fi 22243 case $ac_arg in 22244 -cache-file | --cache-file | --cache-fil | --cache-fi \ 22245 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 22246 ac_prev=cache_file ;; 22247 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 22248 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 22249 | --c=*) 22250 ;; 22251 --config-cache | -C) 22252 ;; 22253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 22254 ac_prev=srcdir ;; 22255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 22256 ;; 22257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 22258 ac_prev=prefix ;; 22259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 22260 ;; 22261 *) 22262 case $ac_arg in 22263 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22264 esac 22265 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 22266 esac 22267 done 22268 22269 # Always prepend --prefix to ensure using the same prefix 22270 # in subdir configurations. 22271 ac_arg="--prefix=$prefix" 22272 case $ac_arg in 22273 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22274 esac 22275 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 22276 22277 ac_popdir=`pwd` 22278 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 22279 22280 # Do not complain, so a configure script can configure whichever 22281 # parts of a large source tree are present. 22282 test -d "$srcdir/$ac_dir" || continue 22283 22284 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 22285 echo "$as_me:$LINENO: $ac_msg" >&5 22286 echo "$ac_msg" >&6 22287 { as_dir="$ac_dir" 22288 case $as_dir in #( 22289 -*) as_dir=./$as_dir;; 22290 esac 22291 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22292 as_dirs= 22293 while :; do 22294 case $as_dir in #( 22295 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22296 *) as_qdir=$as_dir;; 22297 esac 22298 as_dirs="'$as_qdir' $as_dirs" 22299 as_dir=`$as_dirname -- "$as_dir" || 22300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22301 X"$as_dir" : 'X\(//\)[^/]' \| \ 22302 X"$as_dir" : 'X\(//\)$' \| \ 22303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22304echo X"$as_dir" | 22305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22306 s//\1/ 22307 q 22308 } 22309 /^X\(\/\/\)[^/].*/{ 22310 s//\1/ 22311 q 22312 } 22313 /^X\(\/\/\)$/{ 22314 s//\1/ 22315 q 22316 } 22317 /^X\(\/\).*/{ 22318 s//\1/ 22319 q 22320 } 22321 s/.*/./; q'` 22322 test -d "$as_dir" && break 22323 done 22324 test -z "$as_dirs" || eval "mkdir $as_dirs" 22325 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22326echo "$as_me: error: cannot create directory $as_dir" >&2;} 22327 { (exit 1); exit 1; }; }; } 22328 ac_builddir=. 22329 22330case "$ac_dir" in 22331.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22332*) 22333 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22334 # A ".." for each directory in $ac_dir_suffix. 22335 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22336 case $ac_top_builddir_sub in 22337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22339 esac ;; 22340esac 22341ac_abs_top_builddir=$ac_pwd 22342ac_abs_builddir=$ac_pwd$ac_dir_suffix 22343# for backward compatibility: 22344ac_top_builddir=$ac_top_build_prefix 22345 22346case $srcdir in 22347 .) # We are building in place. 22348 ac_srcdir=. 22349 ac_top_srcdir=$ac_top_builddir_sub 22350 ac_abs_top_srcdir=$ac_pwd ;; 22351 [\\/]* | ?:[\\/]* ) # Absolute name. 22352 ac_srcdir=$srcdir$ac_dir_suffix; 22353 ac_top_srcdir=$srcdir 22354 ac_abs_top_srcdir=$srcdir ;; 22355 *) # Relative name. 22356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22357 ac_top_srcdir=$ac_top_build_prefix$srcdir 22358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22359esac 22360ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22361 22362 22363 cd "$ac_dir" 22364 22365 # Check for guested configure; otherwise get Cygnus style configure. 22366 if test -f "$ac_srcdir/configure.gnu"; then 22367 ac_sub_configure=$ac_srcdir/configure.gnu 22368 elif test -f "$ac_srcdir/configure"; then 22369 ac_sub_configure=$ac_srcdir/configure 22370 elif test -f "$ac_srcdir/configure.in"; then 22371 # This should be Cygnus configure. 22372 ac_sub_configure=$ac_aux_dir/configure 22373 else 22374 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 22375echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 22376 ac_sub_configure= 22377 fi 22378 22379 # The recursion is here. 22380 if test -n "$ac_sub_configure"; then 22381 # Make the cache file name correct relative to the subdirectory. 22382 case $cache_file in 22383 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 22384 *) # Relative name. 22385 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 22386 esac 22387 22388 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 22389echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 22390 # The eval makes quoting arguments work. 22391 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 22392 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 22393 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 22394echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 22395 { (exit 1); exit 1; }; } 22396 fi 22397 22398 cd "$ac_popdir" 22399 done 22400fi 22401 22402