configure revision e209c383038f9e58c52c8b168879874818c63b11
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for llvm 2.7svn. 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-2009 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.7svn' 565PACKAGE_STRING='llvm 2.7svn' 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 692TARGETS_TO_BUILD 693LLVM_ENUM_TARGETS 694LLVM_ENUM_ASM_PRINTERS 695LLVM_ENUM_ASM_PARSERS 696LLVM_ENUM_DISASSEMBLERS 697ENABLE_CBE_PRINTF_A 698OPTIMIZE_OPTION 699EXTRA_OPTIONS 700BINUTILS_INCDIR 701ENABLE_LLVMC_DYNAMIC 702ENABLE_LLVMC_DYNAMIC_PLUGINS 703CXX 704CXXFLAGS 705ac_ct_CXX 706NM 707ifGNUmake 708LN_S 709CMP 710CP 711DATE 712FIND 713MKDIR 714MV 715RANLIB 716AR 717RM 718SED 719TAR 720BINPWD 721GRAPHVIZ 722DOT 723FDP 724NEATO 725TWOPI 726CIRCO 727GV 728DOTTY 729PERL 730HAVE_PERL 731INSTALL_PROGRAM 732INSTALL_SCRIPT 733INSTALL_DATA 734BZIP2 735DOXYGEN 736GROFF 737GZIP 738POD2HTML 739POD2MAN 740RUNTEST 741TCLSH 742ZIP 743OCAMLC 744OCAMLOPT 745OCAMLDEP 746OCAMLDOC 747GAS 748INSTALL_LTDL_TRUE 749INSTALL_LTDL_FALSE 750CONVENIENCE_LTDL_TRUE 751CONVENIENCE_LTDL_FALSE 752LIBADD_DL 753LLVMGCCCOMMAND 754LLVMGXXCOMMAND 755LLVMGCC 756LLVMGXX 757NO_VARIADIC_MACROS 758NO_MISSING_FIELD_INITIALIZERS 759USE_UDIS86 760USE_OPROFILE 761HAVE_PTHREAD 762HUGE_VAL_SANITY 763MMAP_FILE 764LLVMCC1 765LLVMCC1PLUS 766LLVMGCCDIR 767LLVMGCC_LANGS 768SHLIBEXT 769LLVM_PREFIX 770LLVM_BINDIR 771LLVM_LIBDIR 772LLVM_DATADIR 773LLVM_DOCSDIR 774LLVM_ETCDIR 775LLVM_INCLUDEDIR 776LLVM_INFODIR 777LLVM_MANDIR 778LLVM_CONFIGTIME 779BINDINGS_TO_BUILD 780ALL_BINDINGS 781OCAML_LIBDIR 782ENABLE_VISIBILITY_INLINES_HIDDEN 783RPATH 784RDYNAMIC 785LIBOBJS 786LTLIBOBJS' 787ac_subst_files='' 788 ac_precious_vars='build_alias 789host_alias 790target_alias 791CC 792CFLAGS 793LDFLAGS 794CPPFLAGS 795CPP 796CXX 797CXXFLAGS 798CCC' 799ac_subdirs_all='projects/sample 800projects/privbracket 801projects/llvm-stacker 802projects/llvm-test 803projects/test-suite 804projects/llvm-reopt 805projects/llvm-gcc 806projects/llvm-java 807projects/llvm-tv 808projects/llvm-poolalloc 809projects/poolalloc 810projects/llvm-kernel' 811 812# Initialize some variables set by options. 813ac_init_help= 814ac_init_version=false 815# The variables have the same names as the options, with 816# dashes changed to underlines. 817cache_file=/dev/null 818exec_prefix=NONE 819no_create= 820no_recursion= 821prefix=NONE 822program_prefix=NONE 823program_suffix=NONE 824program_transform_name=s,x,x, 825silent= 826site= 827srcdir= 828verbose= 829x_includes=NONE 830x_libraries=NONE 831 832# Installation directory options. 833# These are left unexpanded so users can "make install exec_prefix=/foo" 834# and all the variables that are supposed to be based on exec_prefix 835# by default will actually change. 836# Use braces instead of parens because sh, perl, etc. also accept them. 837# (The list follows the same order as the GNU Coding Standards.) 838bindir='${exec_prefix}/bin' 839sbindir='${exec_prefix}/sbin' 840libexecdir='${exec_prefix}/libexec' 841datarootdir='${prefix}/share' 842datadir='${datarootdir}' 843sysconfdir='${prefix}/etc' 844sharedstatedir='${prefix}/com' 845localstatedir='${prefix}/var' 846includedir='${prefix}/include' 847oldincludedir='/usr/include' 848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 849infodir='${datarootdir}/info' 850htmldir='${docdir}' 851dvidir='${docdir}' 852pdfdir='${docdir}' 853psdir='${docdir}' 854libdir='${exec_prefix}/lib' 855localedir='${datarootdir}/locale' 856mandir='${datarootdir}/man' 857 858ac_prev= 859ac_dashdash= 860for ac_option 861do 862 # If the previous option needs an argument, assign it. 863 if test -n "$ac_prev"; then 864 eval $ac_prev=\$ac_option 865 ac_prev= 866 continue 867 fi 868 869 case $ac_option in 870 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 871 *) ac_optarg=yes ;; 872 esac 873 874 # Accept the important Cygnus configure options, so we can diagnose typos. 875 876 case $ac_dashdash$ac_option in 877 --) 878 ac_dashdash=yes ;; 879 880 -bindir | --bindir | --bindi | --bind | --bin | --bi) 881 ac_prev=bindir ;; 882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 883 bindir=$ac_optarg ;; 884 885 -build | --build | --buil | --bui | --bu) 886 ac_prev=build_alias ;; 887 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 888 build_alias=$ac_optarg ;; 889 890 -cache-file | --cache-file | --cache-fil | --cache-fi \ 891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 892 ac_prev=cache_file ;; 893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 895 cache_file=$ac_optarg ;; 896 897 --config-cache | -C) 898 cache_file=config.cache ;; 899 900 -datadir | --datadir | --datadi | --datad) 901 ac_prev=datadir ;; 902 -datadir=* | --datadir=* | --datadi=* | --datad=*) 903 datadir=$ac_optarg ;; 904 905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 906 | --dataroo | --dataro | --datar) 907 ac_prev=datarootdir ;; 908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 910 datarootdir=$ac_optarg ;; 911 912 -disable-* | --disable-*) 913 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 914 # Reject names that are not valid shell variable names. 915 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 916 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 917 { (exit 1); exit 1; }; } 918 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 919 eval enable_$ac_feature=no ;; 920 921 -docdir | --docdir | --docdi | --doc | --do) 922 ac_prev=docdir ;; 923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 924 docdir=$ac_optarg ;; 925 926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 927 ac_prev=dvidir ;; 928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 929 dvidir=$ac_optarg ;; 930 931 -enable-* | --enable-*) 932 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 933 # Reject names that are not valid shell variable names. 934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 936 { (exit 1); exit 1; }; } 937 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 938 eval enable_$ac_feature=\$ac_optarg ;; 939 940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 942 | --exec | --exe | --ex) 943 ac_prev=exec_prefix ;; 944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 946 | --exec=* | --exe=* | --ex=*) 947 exec_prefix=$ac_optarg ;; 948 949 -gas | --gas | --ga | --g) 950 # Obsolete; use --with-gas. 951 with_gas=yes ;; 952 953 -help | --help | --hel | --he | -h) 954 ac_init_help=long ;; 955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 956 ac_init_help=recursive ;; 957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 958 ac_init_help=short ;; 959 960 -host | --host | --hos | --ho) 961 ac_prev=host_alias ;; 962 -host=* | --host=* | --hos=* | --ho=*) 963 host_alias=$ac_optarg ;; 964 965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 966 ac_prev=htmldir ;; 967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 968 | --ht=*) 969 htmldir=$ac_optarg ;; 970 971 -includedir | --includedir | --includedi | --included | --include \ 972 | --includ | --inclu | --incl | --inc) 973 ac_prev=includedir ;; 974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 975 | --includ=* | --inclu=* | --incl=* | --inc=*) 976 includedir=$ac_optarg ;; 977 978 -infodir | --infodir | --infodi | --infod | --info | --inf) 979 ac_prev=infodir ;; 980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 981 infodir=$ac_optarg ;; 982 983 -libdir | --libdir | --libdi | --libd) 984 ac_prev=libdir ;; 985 -libdir=* | --libdir=* | --libdi=* | --libd=*) 986 libdir=$ac_optarg ;; 987 988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 989 | --libexe | --libex | --libe) 990 ac_prev=libexecdir ;; 991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 992 | --libexe=* | --libex=* | --libe=*) 993 libexecdir=$ac_optarg ;; 994 995 -localedir | --localedir | --localedi | --localed | --locale) 996 ac_prev=localedir ;; 997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 998 localedir=$ac_optarg ;; 999 1000 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1001 | --localstate | --localstat | --localsta | --localst | --locals) 1002 ac_prev=localstatedir ;; 1003 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1004 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1005 localstatedir=$ac_optarg ;; 1006 1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1008 ac_prev=mandir ;; 1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1010 mandir=$ac_optarg ;; 1011 1012 -nfp | --nfp | --nf) 1013 # Obsolete; use --without-fp. 1014 with_fp=no ;; 1015 1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1017 | --no-cr | --no-c | -n) 1018 no_create=yes ;; 1019 1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1022 no_recursion=yes ;; 1023 1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1026 | --oldin | --oldi | --old | --ol | --o) 1027 ac_prev=oldincludedir ;; 1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1031 oldincludedir=$ac_optarg ;; 1032 1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1034 ac_prev=prefix ;; 1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1036 prefix=$ac_optarg ;; 1037 1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1039 | --program-pre | --program-pr | --program-p) 1040 ac_prev=program_prefix ;; 1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1043 program_prefix=$ac_optarg ;; 1044 1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1046 | --program-suf | --program-su | --program-s) 1047 ac_prev=program_suffix ;; 1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1050 program_suffix=$ac_optarg ;; 1051 1052 -program-transform-name | --program-transform-name \ 1053 | --program-transform-nam | --program-transform-na \ 1054 | --program-transform-n | --program-transform- \ 1055 | --program-transform | --program-transfor \ 1056 | --program-transfo | --program-transf \ 1057 | --program-trans | --program-tran \ 1058 | --progr-tra | --program-tr | --program-t) 1059 ac_prev=program_transform_name ;; 1060 -program-transform-name=* | --program-transform-name=* \ 1061 | --program-transform-nam=* | --program-transform-na=* \ 1062 | --program-transform-n=* | --program-transform-=* \ 1063 | --program-transform=* | --program-transfor=* \ 1064 | --program-transfo=* | --program-transf=* \ 1065 | --program-trans=* | --program-tran=* \ 1066 | --progr-tra=* | --program-tr=* | --program-t=*) 1067 program_transform_name=$ac_optarg ;; 1068 1069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1070 ac_prev=pdfdir ;; 1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1072 pdfdir=$ac_optarg ;; 1073 1074 -psdir | --psdir | --psdi | --psd | --ps) 1075 ac_prev=psdir ;; 1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1077 psdir=$ac_optarg ;; 1078 1079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1080 | -silent | --silent | --silen | --sile | --sil) 1081 silent=yes ;; 1082 1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1084 ac_prev=sbindir ;; 1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1086 | --sbi=* | --sb=*) 1087 sbindir=$ac_optarg ;; 1088 1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1091 | --sharedst | --shareds | --shared | --share | --shar \ 1092 | --sha | --sh) 1093 ac_prev=sharedstatedir ;; 1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1097 | --sha=* | --sh=*) 1098 sharedstatedir=$ac_optarg ;; 1099 1100 -site | --site | --sit) 1101 ac_prev=site ;; 1102 -site=* | --site=* | --sit=*) 1103 site=$ac_optarg ;; 1104 1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1106 ac_prev=srcdir ;; 1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1108 srcdir=$ac_optarg ;; 1109 1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1111 | --syscon | --sysco | --sysc | --sys | --sy) 1112 ac_prev=sysconfdir ;; 1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1115 sysconfdir=$ac_optarg ;; 1116 1117 -target | --target | --targe | --targ | --tar | --ta | --t) 1118 ac_prev=target_alias ;; 1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1120 target_alias=$ac_optarg ;; 1121 1122 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1123 verbose=yes ;; 1124 1125 -version | --version | --versio | --versi | --vers | -V) 1126 ac_init_version=: ;; 1127 1128 -with-* | --with-*) 1129 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1130 # Reject names that are not valid shell variable names. 1131 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1132 { echo "$as_me: error: invalid package name: $ac_package" >&2 1133 { (exit 1); exit 1; }; } 1134 ac_package=`echo $ac_package| sed 's/-/_/g'` 1135 eval with_$ac_package=\$ac_optarg ;; 1136 1137 -without-* | --without-*) 1138 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1139 # Reject names that are not valid shell variable names. 1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1141 { echo "$as_me: error: invalid package name: $ac_package" >&2 1142 { (exit 1); exit 1; }; } 1143 ac_package=`echo $ac_package | sed 's/-/_/g'` 1144 eval with_$ac_package=no ;; 1145 1146 --x) 1147 # Obsolete; use --with-x. 1148 with_x=yes ;; 1149 1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1151 | --x-incl | --x-inc | --x-in | --x-i) 1152 ac_prev=x_includes ;; 1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1155 x_includes=$ac_optarg ;; 1156 1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1159 ac_prev=x_libraries ;; 1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1162 x_libraries=$ac_optarg ;; 1163 1164 -*) { echo "$as_me: error: unrecognized option: $ac_option 1165Try \`$0 --help' for more information." >&2 1166 { (exit 1); exit 1; }; } 1167 ;; 1168 1169 *=*) 1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1173 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1174 { (exit 1); exit 1; }; } 1175 eval $ac_envvar=\$ac_optarg 1176 export $ac_envvar ;; 1177 1178 *) 1179 # FIXME: should be removed in autoconf 3.0. 1180 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1182 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1184 ;; 1185 1186 esac 1187done 1188 1189if test -n "$ac_prev"; then 1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1191 { echo "$as_me: error: missing argument to $ac_option" >&2 1192 { (exit 1); exit 1; }; } 1193fi 1194 1195# Be sure to have absolute directory names. 1196for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1197 datadir sysconfdir sharedstatedir localstatedir includedir \ 1198 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1199 libdir localedir mandir 1200do 1201 eval ac_val=\$$ac_var 1202 case $ac_val in 1203 [\\/$]* | ?:[\\/]* ) continue;; 1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1205 esac 1206 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1207 { (exit 1); exit 1; }; } 1208done 1209 1210# There might be people who depend on the old broken behavior: `$host' 1211# used to hold the argument of --host etc. 1212# FIXME: To remove some day. 1213build=$build_alias 1214host=$host_alias 1215target=$target_alias 1216 1217# FIXME: To remove some day. 1218if test "x$host_alias" != x; then 1219 if test "x$build_alias" = x; then 1220 cross_compiling=maybe 1221 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1222 If a cross compiler is detected then cross compile mode will be used." >&2 1223 elif test "x$build_alias" != "x$host_alias"; then 1224 cross_compiling=yes 1225 fi 1226fi 1227 1228ac_tool_prefix= 1229test -n "$host_alias" && ac_tool_prefix=$host_alias- 1230 1231test "$silent" = yes && exec 6>/dev/null 1232 1233 1234ac_pwd=`pwd` && test -n "$ac_pwd" && 1235ac_ls_di=`ls -di .` && 1236ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1237 { echo "$as_me: error: Working directory cannot be determined" >&2 1238 { (exit 1); exit 1; }; } 1239test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1240 { echo "$as_me: error: pwd does not report name of working directory" >&2 1241 { (exit 1); exit 1; }; } 1242 1243 1244# Find the source files, if location was not specified. 1245if test -z "$srcdir"; then 1246 ac_srcdir_defaulted=yes 1247 # Try the directory containing this script, then the parent directory. 1248 ac_confdir=`$as_dirname -- "$0" || 1249$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1250 X"$0" : 'X\(//\)[^/]' \| \ 1251 X"$0" : 'X\(//\)$' \| \ 1252 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1253echo X"$0" | 1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)[^/].*/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\/\)$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\).*/{ 1267 s//\1/ 1268 q 1269 } 1270 s/.*/./; q'` 1271 srcdir=$ac_confdir 1272 if test ! -r "$srcdir/$ac_unique_file"; then 1273 srcdir=.. 1274 fi 1275else 1276 ac_srcdir_defaulted=no 1277fi 1278if test ! -r "$srcdir/$ac_unique_file"; then 1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1280 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1281 { (exit 1); exit 1; }; } 1282fi 1283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1284ac_abs_confdir=`( 1285 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1286 { (exit 1); exit 1; }; } 1287 pwd)` 1288# When building in place, set srcdir=. 1289if test "$ac_abs_confdir" = "$ac_pwd"; then 1290 srcdir=. 1291fi 1292# Remove unnecessary trailing slashes from srcdir. 1293# Double slashes in file names in object file debugging info 1294# mess up M-x gdb in Emacs. 1295case $srcdir in 1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1297esac 1298for ac_var in $ac_precious_vars; do 1299 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1300 eval ac_env_${ac_var}_value=\$${ac_var} 1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1302 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1303done 1304 1305# 1306# Report the --help message. 1307# 1308if test "$ac_init_help" = "long"; then 1309 # Omit some internal or obsolete options to make the list less imposing. 1310 # This message is too long to be a string in the A/UX 3.1 sh. 1311 cat <<_ACEOF 1312\`configure' configures llvm 2.7svn to adapt to many kinds of systems. 1313 1314Usage: $0 [OPTION]... [VAR=VALUE]... 1315 1316To assign environment variables (e.g., CC, CFLAGS...), specify them as 1317VAR=VALUE. See below for descriptions of some of the useful variables. 1318 1319Defaults for the options are specified in brackets. 1320 1321Configuration: 1322 -h, --help display this help and exit 1323 --help=short display options specific to this package 1324 --help=recursive display the short help of all the included packages 1325 -V, --version display version information and exit 1326 -q, --quiet, --silent do not print \`checking...' messages 1327 --cache-file=FILE cache test results in FILE [disabled] 1328 -C, --config-cache alias for \`--cache-file=config.cache' 1329 -n, --no-create do not create output files 1330 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1331 1332Installation directories: 1333 --prefix=PREFIX install architecture-independent files in PREFIX 1334 [$ac_default_prefix] 1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1336 [PREFIX] 1337 1338By default, \`make install' will install all the files in 1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1340an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1341for instance \`--prefix=\$HOME'. 1342 1343For better control, use the options below. 1344 1345Fine tuning of the installation directories: 1346 --bindir=DIR user executables [EPREFIX/bin] 1347 --sbindir=DIR system admin executables [EPREFIX/sbin] 1348 --libexecdir=DIR program executables [EPREFIX/libexec] 1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1352 --libdir=DIR object code libraries [EPREFIX/lib] 1353 --includedir=DIR C header files [PREFIX/include] 1354 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1357 --infodir=DIR info documentation [DATAROOTDIR/info] 1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1359 --mandir=DIR man documentation [DATAROOTDIR/man] 1360 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-] 1361 --htmldir=DIR html documentation [DOCDIR] 1362 --dvidir=DIR dvi documentation [DOCDIR] 1363 --pdfdir=DIR pdf documentation [DOCDIR] 1364 --psdir=DIR ps documentation [DOCDIR] 1365_ACEOF 1366 1367 cat <<\_ACEOF 1368 1369System types: 1370 --build=BUILD configure for building on BUILD [guessed] 1371 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1372 --target=TARGET configure for building compilers for TARGET [HOST] 1373_ACEOF 1374fi 1375 1376if test -n "$ac_init_help"; then 1377 case $ac_init_help in 1378 short | recursive ) echo "Configuration of llvm 2.7svn:";; 1379 esac 1380 cat <<\_ACEOF 1381 1382Optional Features: 1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1385 --enable-optimized Compile with optimizations enabled (default is NO) 1386 --enable-profiling Compile with profiling enabled (default is NO) 1387 --enable-assertions Compile with assertion checks enabled (default is 1388 YES) 1389 --enable-expensive-checks 1390 Compile with expensive debug checks enabled (default 1391 is NO) 1392 --enable-debug-runtime Build runtime libs with debug symbols (default is 1393 NO) 1394 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1395 optimization is on and YES if it's off) 1396 --enable-jit Enable Just In Time Compiling (default is YES) 1397 --enable-doxygen Build doxygen documentation (default is NO) 1398 --enable-threads Use threads if available (default is YES) 1399 --enable-pic Build LLVM with Position Independent Code (default 1400 is YES) 1401 --enable-targets Build specific host targets: all or 1402 target1,target2,... Valid targets are: host, x86, 1403 x86_64, sparc, powerpc, alpha, arm, mips, spu, 1404 pic16, xcore, msp430, systemz, blackfin, cbe, msil, 1405 and cpp (default=all) 1406 --enable-cbe-printf-a Enable C Backend output with hex floating point via 1407 %a (default is YES) 1408 --enable-bindings Build specific language bindings: 1409 all,auto,none,{binding-name} (default=auto) 1410 --enable-libffi Check for the presence of libffi (default is NO) 1411 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on 1412 Win32) 1413 --enable-llvmc-dynamic-plugins 1414 Enable dynamic LLVMC plugins (default is YES) 1415 --enable-ltdl-install install libltdl 1416 1417Optional Packages: 1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1420 --with-llvmgccdir Specify location of llvm-gcc install dir (default 1421 searches PATH) 1422 --with-llvmgcc Specify location of llvm-gcc driver (default 1423 searches PATH) 1424 --with-llvmgxx Specify location of llvm-g++ driver (default 1425 searches PATH) 1426 --with-optimize-option Select the compiler options to use for optimized 1427 builds 1428 --with-extra-options Specify additional options to compile LLVM with 1429 --with-ocaml-libdir Specify install location for ocaml bindings (default 1430 is stdlib) 1431 --with-c-include-dirs Colon separated list of directories clang will 1432 search for headers 1433 --with-cxx-include-root Directory with the libstdc++ headers. 1434 --with-cxx-include-arch Architecture of the libstdc++ headers. 1435 --with-cxx-include-32bit-dir 1436 32 bit multilib dir. 1437 --with-cxx-include-64bit-dir 1438 64 bit multilib directory. 1439 --with-binutils-include Specify path to binutils/include/ containing 1440 plugin-api.h file for gold plugin. 1441 --with-tclinclude directory where tcl headers are 1442 --with-udis86=<path> Use udis86 external x86 disassembler library 1443 --with-oprofile=<prefix> 1444 Tell OProfile >= 0.9.4 how to symbolize JIT output 1445 1446Some influential environment variables: 1447 CC C compiler command 1448 CFLAGS C compiler flags 1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1450 nonstandard directory <lib dir> 1451 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1452 you have headers in a nonstandard directory <include dir> 1453 CPP C preprocessor 1454 CXX C++ compiler command 1455 CXXFLAGS C++ compiler flags 1456 1457Use these variables to override the choices made by `configure' or to help 1458it to find libraries and programs with nonstandard names/locations. 1459 1460Report bugs to <llvmbugs@cs.uiuc.edu>. 1461_ACEOF 1462ac_status=$? 1463fi 1464 1465if test "$ac_init_help" = "recursive"; then 1466 # If there are subdirs, report their specific --help. 1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1468 test -d "$ac_dir" || continue 1469 ac_builddir=. 1470 1471case "$ac_dir" in 1472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1473*) 1474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1475 # A ".." for each directory in $ac_dir_suffix. 1476 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1477 case $ac_top_builddir_sub in 1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1480 esac ;; 1481esac 1482ac_abs_top_builddir=$ac_pwd 1483ac_abs_builddir=$ac_pwd$ac_dir_suffix 1484# for backward compatibility: 1485ac_top_builddir=$ac_top_build_prefix 1486 1487case $srcdir in 1488 .) # We are building in place. 1489 ac_srcdir=. 1490 ac_top_srcdir=$ac_top_builddir_sub 1491 ac_abs_top_srcdir=$ac_pwd ;; 1492 [\\/]* | ?:[\\/]* ) # Absolute name. 1493 ac_srcdir=$srcdir$ac_dir_suffix; 1494 ac_top_srcdir=$srcdir 1495 ac_abs_top_srcdir=$srcdir ;; 1496 *) # Relative name. 1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1498 ac_top_srcdir=$ac_top_build_prefix$srcdir 1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1500esac 1501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1502 1503 cd "$ac_dir" || { ac_status=$?; continue; } 1504 # Check for guested configure. 1505 if test -f "$ac_srcdir/configure.gnu"; then 1506 echo && 1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1508 elif test -f "$ac_srcdir/configure"; then 1509 echo && 1510 $SHELL "$ac_srcdir/configure" --help=recursive 1511 else 1512 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1513 fi || ac_status=$? 1514 cd "$ac_pwd" || { ac_status=$?; break; } 1515 done 1516fi 1517 1518test -n "$ac_init_help" && exit $ac_status 1519if $ac_init_version; then 1520 cat <<\_ACEOF 1521llvm configure 2.7svn 1522generated by GNU Autoconf 2.60 1523 1524Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15252002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1526This configure script is free software; the Free Software Foundation 1527gives unlimited permission to copy, distribute and modify it. 1528 1529Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign. 1530_ACEOF 1531 exit 1532fi 1533cat >config.log <<_ACEOF 1534This file contains any messages produced by compilers while 1535running configure, to aid debugging if configure makes a mistake. 1536 1537It was created by llvm $as_me 2.7svn, which was 1538generated by GNU Autoconf 2.60. Invocation command line was 1539 1540 $ $0 $@ 1541 1542_ACEOF 1543exec 5>>config.log 1544{ 1545cat <<_ASUNAME 1546## --------- ## 1547## Platform. ## 1548## --------- ## 1549 1550hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1551uname -m = `(uname -m) 2>/dev/null || echo unknown` 1552uname -r = `(uname -r) 2>/dev/null || echo unknown` 1553uname -s = `(uname -s) 2>/dev/null || echo unknown` 1554uname -v = `(uname -v) 2>/dev/null || echo unknown` 1555 1556/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1557/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1558 1559/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1560/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1561/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1562/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1563/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1564/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1565/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1566 1567_ASUNAME 1568 1569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1570for as_dir in $PATH 1571do 1572 IFS=$as_save_IFS 1573 test -z "$as_dir" && as_dir=. 1574 echo "PATH: $as_dir" 1575done 1576IFS=$as_save_IFS 1577 1578} >&5 1579 1580cat >&5 <<_ACEOF 1581 1582 1583## ----------- ## 1584## Core tests. ## 1585## ----------- ## 1586 1587_ACEOF 1588 1589 1590# Keep a trace of the command line. 1591# Strip out --no-create and --no-recursion so they do not pile up. 1592# Strip out --silent because we don't want to record it for future runs. 1593# Also quote any args containing shell meta-characters. 1594# Make two passes to allow for proper duplicate-argument suppression. 1595ac_configure_args= 1596ac_configure_args0= 1597ac_configure_args1= 1598ac_must_keep_next=false 1599for ac_pass in 1 2 1600do 1601 for ac_arg 1602 do 1603 case $ac_arg in 1604 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1606 | -silent | --silent | --silen | --sile | --sil) 1607 continue ;; 1608 *\'*) 1609 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1610 esac 1611 case $ac_pass in 1612 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1613 2) 1614 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1615 if test $ac_must_keep_next = true; then 1616 ac_must_keep_next=false # Got value, back to normal. 1617 else 1618 case $ac_arg in 1619 *=* | --config-cache | -C | -disable-* | --disable-* \ 1620 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1621 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1622 | -with-* | --with-* | -without-* | --without-* | --x) 1623 case "$ac_configure_args0 " in 1624 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1625 esac 1626 ;; 1627 -* ) ac_must_keep_next=true ;; 1628 esac 1629 fi 1630 ac_configure_args="$ac_configure_args '$ac_arg'" 1631 ;; 1632 esac 1633 done 1634done 1635$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1636$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1637 1638# When interrupted or exit'd, cleanup temporary files, and complete 1639# config.log. We remove comments because anyway the quotes in there 1640# would cause problems or look ugly. 1641# WARNING: Use '\'' to represent an apostrophe within the trap. 1642# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1643trap 'exit_status=$? 1644 # Save into config.log some information that might help in debugging. 1645 { 1646 echo 1647 1648 cat <<\_ASBOX 1649## ---------------- ## 1650## Cache variables. ## 1651## ---------------- ## 1652_ASBOX 1653 echo 1654 # The following way of writing the cache mishandles newlines in values, 1655( 1656 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1657 eval ac_val=\$$ac_var 1658 case $ac_val in #( 1659 *${as_nl}*) 1660 case $ac_var in #( 1661 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1662echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1663 esac 1664 case $ac_var in #( 1665 _ | IFS | as_nl) ;; #( 1666 *) $as_unset $ac_var ;; 1667 esac ;; 1668 esac 1669 done 1670 (set) 2>&1 | 1671 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1672 *${as_nl}ac_space=\ *) 1673 sed -n \ 1674 "s/'\''/'\''\\\\'\'''\''/g; 1675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1676 ;; #( 1677 *) 1678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1679 ;; 1680 esac | 1681 sort 1682) 1683 echo 1684 1685 cat <<\_ASBOX 1686## ----------------- ## 1687## Output variables. ## 1688## ----------------- ## 1689_ASBOX 1690 echo 1691 for ac_var in $ac_subst_vars 1692 do 1693 eval ac_val=\$$ac_var 1694 case $ac_val in 1695 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1696 esac 1697 echo "$ac_var='\''$ac_val'\''" 1698 done | sort 1699 echo 1700 1701 if test -n "$ac_subst_files"; then 1702 cat <<\_ASBOX 1703## ------------------- ## 1704## File substitutions. ## 1705## ------------------- ## 1706_ASBOX 1707 echo 1708 for ac_var in $ac_subst_files 1709 do 1710 eval ac_val=\$$ac_var 1711 case $ac_val in 1712 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1713 esac 1714 echo "$ac_var='\''$ac_val'\''" 1715 done | sort 1716 echo 1717 fi 1718 1719 if test -s confdefs.h; then 1720 cat <<\_ASBOX 1721## ----------- ## 1722## confdefs.h. ## 1723## ----------- ## 1724_ASBOX 1725 echo 1726 cat confdefs.h 1727 echo 1728 fi 1729 test "$ac_signal" != 0 && 1730 echo "$as_me: caught signal $ac_signal" 1731 echo "$as_me: exit $exit_status" 1732 } >&5 1733 rm -f core *.core core.conftest.* && 1734 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1735 exit $exit_status 1736' 0 1737for ac_signal in 1 2 13 15; do 1738 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1739done 1740ac_signal=0 1741 1742# confdefs.h avoids OS command line length limits that DEFS can exceed. 1743rm -f -r conftest* confdefs.h 1744 1745# Predefined preprocessor variables. 1746 1747cat >>confdefs.h <<_ACEOF 1748#define PACKAGE_NAME "$PACKAGE_NAME" 1749_ACEOF 1750 1751 1752cat >>confdefs.h <<_ACEOF 1753#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1754_ACEOF 1755 1756 1757cat >>confdefs.h <<_ACEOF 1758#define PACKAGE_VERSION "$PACKAGE_VERSION" 1759_ACEOF 1760 1761 1762cat >>confdefs.h <<_ACEOF 1763#define PACKAGE_STRING "$PACKAGE_STRING" 1764_ACEOF 1765 1766 1767cat >>confdefs.h <<_ACEOF 1768#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1769_ACEOF 1770 1771 1772# Let the site file select an alternate cache file if it wants to. 1773# Prefer explicitly selected file to automatically selected ones. 1774if test -n "$CONFIG_SITE"; then 1775 set x "$CONFIG_SITE" 1776elif test "x$prefix" != xNONE; then 1777 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1778else 1779 set x "$ac_default_prefix/share/config.site" \ 1780 "$ac_default_prefix/etc/config.site" 1781fi 1782shift 1783for ac_site_file 1784do 1785 if test -r "$ac_site_file"; then 1786 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1787echo "$as_me: loading site script $ac_site_file" >&6;} 1788 sed 's/^/| /' "$ac_site_file" >&5 1789 . "$ac_site_file" 1790 fi 1791done 1792 1793if test -r "$cache_file"; then 1794 # Some versions of bash will fail to source /dev/null (special 1795 # files actually), so we avoid doing that. 1796 if test -f "$cache_file"; then 1797 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1798echo "$as_me: loading cache $cache_file" >&6;} 1799 case $cache_file in 1800 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1801 *) . "./$cache_file";; 1802 esac 1803 fi 1804else 1805 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1806echo "$as_me: creating cache $cache_file" >&6;} 1807 >$cache_file 1808fi 1809 1810# Check that the precious variables saved in the cache have kept the same 1811# value. 1812ac_cache_corrupted=false 1813for ac_var in $ac_precious_vars; do 1814 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1815 eval ac_new_set=\$ac_env_${ac_var}_set 1816 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1817 eval ac_new_val=\$ac_env_${ac_var}_value 1818 case $ac_old_set,$ac_new_set in 1819 set,) 1820 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1821echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1822 ac_cache_corrupted=: ;; 1823 ,set) 1824 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1825echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1826 ac_cache_corrupted=: ;; 1827 ,);; 1828 *) 1829 if test "x$ac_old_val" != "x$ac_new_val"; then 1830 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1831echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1832 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1833echo "$as_me: former value: $ac_old_val" >&2;} 1834 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1835echo "$as_me: current value: $ac_new_val" >&2;} 1836 ac_cache_corrupted=: 1837 fi;; 1838 esac 1839 # Pass precious variables to config.status. 1840 if test "$ac_new_set" = set; then 1841 case $ac_new_val in 1842 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1843 *) ac_arg=$ac_var=$ac_new_val ;; 1844 esac 1845 case " $ac_configure_args " in 1846 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1847 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1848 esac 1849 fi 1850done 1851if $ac_cache_corrupted; then 1852 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1853echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1854 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1855echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1856 { (exit 1); exit 1; }; } 1857fi 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883ac_ext=c 1884ac_cpp='$CPP $CPPFLAGS' 1885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1887ac_compiler_gnu=$ac_cv_c_compiler_gnu 1888 1889 1890 1891LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign." 1892 1893 1894 1895 1896 1897 1898 1899ac_aux_dir= 1900for ac_dir in autoconf "$srcdir"/autoconf; do 1901 if test -f "$ac_dir/install-sh"; then 1902 ac_aux_dir=$ac_dir 1903 ac_install_sh="$ac_aux_dir/install-sh -c" 1904 break 1905 elif test -f "$ac_dir/install.sh"; then 1906 ac_aux_dir=$ac_dir 1907 ac_install_sh="$ac_aux_dir/install.sh -c" 1908 break 1909 elif test -f "$ac_dir/shtool"; then 1910 ac_aux_dir=$ac_dir 1911 ac_install_sh="$ac_aux_dir/shtool install -c" 1912 break 1913 fi 1914done 1915if test -z "$ac_aux_dir"; then 1916 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1917echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1918 { (exit 1); exit 1; }; } 1919fi 1920 1921# These three variables are undocumented and unsupported, 1922# and are intended to be withdrawn in a future Autoconf release. 1923# They can cause serious problems if a builder's source tree is in a directory 1924# whose full name contains unusual characters. 1925ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1926ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1927ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1928 1929 1930 1931if test ${srcdir} != "." ; then 1932 if test -f ${srcdir}/include/llvm/Config/config.h ; then 1933 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5 1934echo "$as_me: error: Already configured in ${srcdir}" >&2;} 1935 { (exit 1); exit 1; }; } 1936 fi 1937fi 1938 1939for i in `ls ${srcdir}/projects` 1940do 1941 if test -d ${srcdir}/projects/${i} ; then 1942 case ${i} in 1943 CVS) ;; 1944 sample) subdirs="$subdirs projects/sample" 1945 ;; 1946 privbracket) subdirs="$subdirs projects/privbracket" 1947 ;; 1948 llvm-stacker) subdirs="$subdirs projects/llvm-stacker" 1949 ;; 1950 # llvm-test is the old name of the test-suite, kept here for backwards 1951 # compatibility 1952 llvm-test) subdirs="$subdirs projects/llvm-test" 1953 ;; 1954 test-suite) subdirs="$subdirs projects/test-suite" 1955 ;; 1956 llvm-reopt) subdirs="$subdirs projects/llvm-reopt" 1957;; 1958 llvm-gcc) subdirs="$subdirs projects/llvm-gcc" 1959 ;; 1960 llvm-java) subdirs="$subdirs projects/llvm-java" 1961 ;; 1962 llvm-tv) subdirs="$subdirs projects/llvm-tv" 1963 ;; 1964 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc" 1965 ;; 1966 poolalloc) subdirs="$subdirs projects/poolalloc" 1967 ;; 1968 llvm-kernel) subdirs="$subdirs projects/llvm-kernel" 1969 ;; 1970 *) 1971 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5 1972echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;} 1973 ;; 1974 esac 1975 fi 1976done 1977 1978 1979# Make sure we can run config.sub. 1980$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1981 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1982echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1983 { (exit 1); exit 1; }; } 1984 1985{ echo "$as_me:$LINENO: checking build system type" >&5 1986echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1987if test "${ac_cv_build+set}" = set; then 1988 echo $ECHO_N "(cached) $ECHO_C" >&6 1989else 1990 ac_build_alias=$build_alias 1991test "x$ac_build_alias" = x && 1992 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1993test "x$ac_build_alias" = x && 1994 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1995echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1996 { (exit 1); exit 1; }; } 1997ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1998 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1999echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2000 { (exit 1); exit 1; }; } 2001 2002fi 2003{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2004echo "${ECHO_T}$ac_cv_build" >&6; } 2005case $ac_cv_build in 2006*-*-*) ;; 2007*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2008echo "$as_me: error: invalid value of canonical build" >&2;} 2009 { (exit 1); exit 1; }; };; 2010esac 2011build=$ac_cv_build 2012ac_save_IFS=$IFS; IFS='-' 2013set x $ac_cv_build 2014shift 2015build_cpu=$1 2016build_vendor=$2 2017shift; shift 2018# Remember, the first character of IFS is used to create $*, 2019# except with old shells: 2020build_os=$* 2021IFS=$ac_save_IFS 2022case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2023 2024 2025{ echo "$as_me:$LINENO: checking host system type" >&5 2026echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2027if test "${ac_cv_host+set}" = set; then 2028 echo $ECHO_N "(cached) $ECHO_C" >&6 2029else 2030 if test "x$host_alias" = x; then 2031 ac_cv_host=$ac_cv_build 2032else 2033 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2035echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2036 { (exit 1); exit 1; }; } 2037fi 2038 2039fi 2040{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2041echo "${ECHO_T}$ac_cv_host" >&6; } 2042case $ac_cv_host in 2043*-*-*) ;; 2044*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2045echo "$as_me: error: invalid value of canonical host" >&2;} 2046 { (exit 1); exit 1; }; };; 2047esac 2048host=$ac_cv_host 2049ac_save_IFS=$IFS; IFS='-' 2050set x $ac_cv_host 2051shift 2052host_cpu=$1 2053host_vendor=$2 2054shift; shift 2055# Remember, the first character of IFS is used to create $*, 2056# except with old shells: 2057host_os=$* 2058IFS=$ac_save_IFS 2059case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2060 2061 2062{ echo "$as_me:$LINENO: checking target system type" >&5 2063echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2064if test "${ac_cv_target+set}" = set; then 2065 echo $ECHO_N "(cached) $ECHO_C" >&6 2066else 2067 if test "x$target_alias" = x; then 2068 ac_cv_target=$ac_cv_host 2069else 2070 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2072echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2073 { (exit 1); exit 1; }; } 2074fi 2075 2076fi 2077{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2078echo "${ECHO_T}$ac_cv_target" >&6; } 2079case $ac_cv_target in 2080*-*-*) ;; 2081*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2082echo "$as_me: error: invalid value of canonical target" >&2;} 2083 { (exit 1); exit 1; }; };; 2084esac 2085target=$ac_cv_target 2086ac_save_IFS=$IFS; IFS='-' 2087set x $ac_cv_target 2088shift 2089target_cpu=$1 2090target_vendor=$2 2091shift; shift 2092# Remember, the first character of IFS is used to create $*, 2093# except with old shells: 2094target_os=$* 2095IFS=$ac_save_IFS 2096case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2097 2098 2099# The aliases save the names the user supplied, while $host etc. 2100# will get canonicalized. 2101test -n "$target_alias" && 2102 test "$program_prefix$program_suffix$program_transform_name" = \ 2103 NONENONEs,x,x, && 2104 program_prefix=${target_alias}- 2105 2106{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 2107echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 2108if test "${llvm_cv_os_type+set}" = set; then 2109 echo $ECHO_N "(cached) $ECHO_C" >&6 2110else 2111 case $host in 2112 *-*-aix*) 2113 llvm_cv_link_all_option="-Wl,--whole-archive" 2114 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2115 llvm_cv_os_type="AIX" 2116 llvm_cv_platform_type="Unix" ;; 2117 *-*-irix*) 2118 llvm_cv_link_all_option="-Wl,--whole-archive" 2119 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2120 llvm_cv_os_type="IRIX" 2121 llvm_cv_platform_type="Unix" ;; 2122 *-*-cygwin*) 2123 llvm_cv_link_all_option="-Wl,--whole-archive" 2124 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2125 llvm_cv_os_type="Cygwin" 2126 llvm_cv_platform_type="Unix" ;; 2127 *-*-darwin*) 2128 llvm_cv_link_all_option="-Wl,-all_load" 2129 llvm_cv_no_link_all_option="-Wl,-noall_load" 2130 llvm_cv_os_type="Darwin" 2131 llvm_cv_platform_type="Unix" ;; 2132 *-*-freebsd*) 2133 llvm_cv_link_all_option="-Wl,--whole-archive" 2134 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2135 llvm_cv_os_type="FreeBSD" 2136 llvm_cv_platform_type="Unix" ;; 2137 *-*-openbsd*) 2138 llvm_cv_link_all_option="-Wl,--whole-archive" 2139 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2140 llvm_cv_os_type="OpenBSD" 2141 llvm_cv_platform_type="Unix" ;; 2142 *-*-netbsd*) 2143 llvm_cv_link_all_option="-Wl,--whole-archive" 2144 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2145 llvm_cv_os_type="NetBSD" 2146 llvm_cv_platform_type="Unix" ;; 2147 *-*-dragonfly*) 2148 llvm_cv_link_all_option="-Wl,--whole-archive" 2149 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2150 llvm_cv_os_type="DragonFly" 2151 llvm_cv_platform_type="Unix" ;; 2152 *-*-hpux*) 2153 llvm_cv_link_all_option="-Wl,--whole-archive" 2154 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2155 llvm_cv_os_type="HP-UX" 2156 llvm_cv_platform_type="Unix" ;; 2157 *-*-interix*) 2158 llvm_cv_link_all_option="-Wl,--whole-archive" 2159 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2160 llvm_cv_os_type="Interix" 2161 llvm_cv_platform_type="Unix" ;; 2162 *-*-linux*) 2163 llvm_cv_link_all_option="-Wl,--whole-archive" 2164 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2165 llvm_cv_os_type="Linux" 2166 llvm_cv_platform_type="Unix" ;; 2167 *-*-solaris*) 2168 llvm_cv_link_all_option="-Wl,-z,allextract" 2169 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 2170 llvm_cv_os_type="SunOS" 2171 llvm_cv_platform_type="Unix" ;; 2172 *-*-auroraux*) 2173 llvm_cv_link_all_option="-Wl,-z,allextract" 2174 llvm_cv_link_all_option="-Wl,-z,defaultextract" 2175 llvm_cv_os_type="AuroraUX" 2176 llvm_cv_platform_type="Unix" ;; 2177 *-*-win32*) 2178 llvm_cv_link_all_option="-Wl,--whole-archive" 2179 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2180 llvm_cv_os_type="Win32" 2181 llvm_cv_platform_type="Win32" ;; 2182 *-*-mingw*) 2183 llvm_cv_link_all_option="-Wl,--whole-archive" 2184 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2185 llvm_cv_os_type="MingW" 2186 llvm_cv_platform_type="Win32" ;; 2187 *-*-haiku*) 2188 llvm_cv_link_all_option="-Wl,--whole-archive" 2189 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2190 llvm_cv_os_type="Haiku" 2191 llvm_cv_platform_type="Unix" ;; 2192 *-unknown-eabi*) 2193 llvm_cv_link_all_option="-Wl,--whole-archive" 2194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2195 llvm_cv_os_type="Freestanding" 2196 llvm_cv_platform_type="Unix" ;; 2197 *-unknown-elf*) 2198 llvm_cv_link_all_option="-Wl,--whole-archive" 2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 2200 llvm_cv_os_type="Freestanding" 2201 llvm_cv_platform_type="Unix" ;; 2202 *) 2203 llvm_cv_link_all_option="" 2204 llvm_cv_no_link_all_option="" 2205 llvm_cv_os_type="Unknown" 2206 llvm_cv_platform_type="Unknown" ;; 2207esac 2208fi 2209{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 2210echo "${ECHO_T}$llvm_cv_os_type" >&6; } 2211 2212{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 2213echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 2214if test "${llvm_cv_target_os_type+set}" = set; then 2215 echo $ECHO_N "(cached) $ECHO_C" >&6 2216else 2217 case $target in 2218 *-*-aix*) 2219 llvm_cv_target_os_type="AIX" ;; 2220 *-*-irix*) 2221 llvm_cv_target_os_type="IRIX" ;; 2222 *-*-cygwin*) 2223 llvm_cv_target_os_type="Cygwin" ;; 2224 *-*-darwin*) 2225 llvm_cv_target_os_type="Darwin" ;; 2226 *-*-freebsd*) 2227 llvm_cv_target_os_type="FreeBSD" ;; 2228 *-*-openbsd*) 2229 llvm_cv_target_os_type="OpenBSD" ;; 2230 *-*-netbsd*) 2231 llvm_cv_target_os_type="NetBSD" ;; 2232 *-*-dragonfly*) 2233 llvm_cv_target_os_type="DragonFly" ;; 2234 *-*-hpux*) 2235 llvm_cv_target_os_type="HP-UX" ;; 2236 *-*-interix*) 2237 llvm_cv_target_os_type="Interix" ;; 2238 *-*-linux*) 2239 llvm_cv_target_os_type="Linux" ;; 2240 *-*-solaris*) 2241 llvm_cv_target_os_type="SunOS" ;; 2242 *-*-auroraux*) 2243 llvm_cv_target_os_type="AuroraUX" ;; 2244 *-*-win32*) 2245 llvm_cv_target_os_type="Win32" ;; 2246 *-*-mingw*) 2247 llvm_cv_target_os_type="MingW" ;; 2248 *-*-haiku*) 2249 llvm_cv_target_os_type="Haiku" ;; 2250 *-unknown-eabi*) 2251 llvm_cv_target_os_type="Freestanding" ;; 2252 *) 2253 llvm_cv_target_os_type="Unknown" ;; 2254esac 2255fi 2256{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 2257echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 2258 2259if test "$llvm_cv_os_type" = "Unknown" ; then 2260 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 2261echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 2262 { (exit 1); exit 1; }; } 2263fi 2264 2265OS=$llvm_cv_os_type 2266 2267HOST_OS=$llvm_cv_os_type 2268 2269TARGET_OS=$llvm_cv_target_os_type 2270 2271 2272LINKALL=$llvm_cv_link_all_option 2273 2274NOLINKALL=$llvm_cv_no_link_all_option 2275 2276 2277case $llvm_cv_platform_type in 2278 Unix) 2279 2280cat >>confdefs.h <<\_ACEOF 2281#define LLVM_ON_UNIX 1 2282_ACEOF 2283 2284 LLVM_ON_UNIX=1 2285 2286 LLVM_ON_WIN32=0 2287 2288 ;; 2289 Win32) 2290 2291cat >>confdefs.h <<\_ACEOF 2292#define LLVM_ON_WIN32 1 2293_ACEOF 2294 2295 LLVM_ON_UNIX=0 2296 2297 LLVM_ON_WIN32=1 2298 2299 ;; 2300esac 2301 2302{ echo "$as_me:$LINENO: checking target architecture" >&5 2303echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 2304if test "${llvm_cv_target_arch+set}" = set; then 2305 echo $ECHO_N "(cached) $ECHO_C" >&6 2306else 2307 case $target in 2308 i?86-*) llvm_cv_target_arch="x86" ;; 2309 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 2310 sparc*-*) llvm_cv_target_arch="Sparc" ;; 2311 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 2312 alpha*-*) llvm_cv_target_arch="Alpha" ;; 2313 arm*-*) llvm_cv_target_arch="ARM" ;; 2314 mips-*) llvm_cv_target_arch="Mips" ;; 2315 pic16-*) llvm_cv_target_arch="PIC16" ;; 2316 xcore-*) llvm_cv_target_arch="XCore" ;; 2317 msp430-*) llvm_cv_target_arch="MSP430" ;; 2318 s390x-*) llvm_cv_target_arch="SystemZ" ;; 2319 bfin-*) llvm_cv_target_arch="Blackfin" ;; 2320 *) llvm_cv_target_arch="Unknown" ;; 2321esac 2322fi 2323{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 2324echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 2325 2326if test "$llvm_cv_target_arch" = "Unknown" ; then 2327 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 2328echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 2329fi 2330 2331# Determine the LLVM native architecture for the target 2332case "$llvm_cv_target_arch" in 2333 x86) LLVM_NATIVE_ARCH="X86" ;; 2334 x86_64) LLVM_NATIVE_ARCH="X86" ;; 2335 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 2336esac 2337 2338ARCH=$llvm_cv_target_arch 2339 2340 2341ac_ext=c 2342ac_cpp='$CPP $CPPFLAGS' 2343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2345ac_compiler_gnu=$ac_cv_c_compiler_gnu 2346if test -n "$ac_tool_prefix"; then 2347 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2348set dummy ${ac_tool_prefix}gcc; ac_word=$2 2349{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2351if test "${ac_cv_prog_CC+set}" = set; then 2352 echo $ECHO_N "(cached) $ECHO_C" >&6 2353else 2354 if test -n "$CC"; then 2355 ac_cv_prog_CC="$CC" # Let the user override the test. 2356else 2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2358for as_dir in $PATH 2359do 2360 IFS=$as_save_IFS 2361 test -z "$as_dir" && as_dir=. 2362 for ac_exec_ext in '' $ac_executable_extensions; do 2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2364 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2366 break 2 2367 fi 2368done 2369done 2370IFS=$as_save_IFS 2371 2372fi 2373fi 2374CC=$ac_cv_prog_CC 2375if test -n "$CC"; then 2376 { echo "$as_me:$LINENO: result: $CC" >&5 2377echo "${ECHO_T}$CC" >&6; } 2378else 2379 { echo "$as_me:$LINENO: result: no" >&5 2380echo "${ECHO_T}no" >&6; } 2381fi 2382 2383 2384fi 2385if test -z "$ac_cv_prog_CC"; then 2386 ac_ct_CC=$CC 2387 # Extract the first word of "gcc", so it can be a program name with args. 2388set dummy gcc; ac_word=$2 2389{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2391if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2392 echo $ECHO_N "(cached) $ECHO_C" >&6 2393else 2394 if test -n "$ac_ct_CC"; then 2395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2396else 2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2398for as_dir in $PATH 2399do 2400 IFS=$as_save_IFS 2401 test -z "$as_dir" && as_dir=. 2402 for ac_exec_ext in '' $ac_executable_extensions; do 2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2404 ac_cv_prog_ac_ct_CC="gcc" 2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2406 break 2 2407 fi 2408done 2409done 2410IFS=$as_save_IFS 2411 2412fi 2413fi 2414ac_ct_CC=$ac_cv_prog_ac_ct_CC 2415if test -n "$ac_ct_CC"; then 2416 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2417echo "${ECHO_T}$ac_ct_CC" >&6; } 2418else 2419 { echo "$as_me:$LINENO: result: no" >&5 2420echo "${ECHO_T}no" >&6; } 2421fi 2422 2423 if test "x$ac_ct_CC" = x; then 2424 CC="" 2425 else 2426 case $cross_compiling:$ac_tool_warned in 2427yes:) 2428{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2429whose name does not start with the host triplet. If you think this 2430configuration is useful to you, please write to autoconf@gnu.org." >&5 2431echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2432whose name does not start with the host triplet. If you think this 2433configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2434ac_tool_warned=yes ;; 2435esac 2436 CC=$ac_ct_CC 2437 fi 2438else 2439 CC="$ac_cv_prog_CC" 2440fi 2441 2442if test -z "$CC"; then 2443 if test -n "$ac_tool_prefix"; then 2444 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2445set dummy ${ac_tool_prefix}cc; ac_word=$2 2446{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2448if test "${ac_cv_prog_CC+set}" = set; then 2449 echo $ECHO_N "(cached) $ECHO_C" >&6 2450else 2451 if test -n "$CC"; then 2452 ac_cv_prog_CC="$CC" # Let the user override the test. 2453else 2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2455for as_dir in $PATH 2456do 2457 IFS=$as_save_IFS 2458 test -z "$as_dir" && as_dir=. 2459 for ac_exec_ext in '' $ac_executable_extensions; do 2460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2461 ac_cv_prog_CC="${ac_tool_prefix}cc" 2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2463 break 2 2464 fi 2465done 2466done 2467IFS=$as_save_IFS 2468 2469fi 2470fi 2471CC=$ac_cv_prog_CC 2472if test -n "$CC"; then 2473 { echo "$as_me:$LINENO: result: $CC" >&5 2474echo "${ECHO_T}$CC" >&6; } 2475else 2476 { echo "$as_me:$LINENO: result: no" >&5 2477echo "${ECHO_T}no" >&6; } 2478fi 2479 2480 2481 fi 2482fi 2483if test -z "$CC"; then 2484 # Extract the first word of "cc", so it can be a program name with args. 2485set dummy cc; ac_word=$2 2486{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2488if test "${ac_cv_prog_CC+set}" = set; then 2489 echo $ECHO_N "(cached) $ECHO_C" >&6 2490else 2491 if test -n "$CC"; then 2492 ac_cv_prog_CC="$CC" # Let the user override the test. 2493else 2494 ac_prog_rejected=no 2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2496for as_dir in $PATH 2497do 2498 IFS=$as_save_IFS 2499 test -z "$as_dir" && as_dir=. 2500 for ac_exec_ext in '' $ac_executable_extensions; do 2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2503 ac_prog_rejected=yes 2504 continue 2505 fi 2506 ac_cv_prog_CC="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 2514if test $ac_prog_rejected = yes; then 2515 # We found a bogon in the path, so make sure we never use it. 2516 set dummy $ac_cv_prog_CC 2517 shift 2518 if test $# != 0; then 2519 # We chose a different compiler from the bogus one. 2520 # However, it has the same basename, so the bogon will be chosen 2521 # first if we set CC to just the basename; use the full file name. 2522 shift 2523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2524 fi 2525fi 2526fi 2527fi 2528CC=$ac_cv_prog_CC 2529if test -n "$CC"; then 2530 { echo "$as_me:$LINENO: result: $CC" >&5 2531echo "${ECHO_T}$CC" >&6; } 2532else 2533 { echo "$as_me:$LINENO: result: no" >&5 2534echo "${ECHO_T}no" >&6; } 2535fi 2536 2537 2538fi 2539if test -z "$CC"; then 2540 if test -n "$ac_tool_prefix"; then 2541 for ac_prog in cl.exe 2542 do 2543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2544set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2545{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2547if test "${ac_cv_prog_CC+set}" = set; then 2548 echo $ECHO_N "(cached) $ECHO_C" >&6 2549else 2550 if test -n "$CC"; then 2551 ac_cv_prog_CC="$CC" # Let the user override the test. 2552else 2553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2554for as_dir in $PATH 2555do 2556 IFS=$as_save_IFS 2557 test -z "$as_dir" && as_dir=. 2558 for ac_exec_ext in '' $ac_executable_extensions; do 2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2560 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2562 break 2 2563 fi 2564done 2565done 2566IFS=$as_save_IFS 2567 2568fi 2569fi 2570CC=$ac_cv_prog_CC 2571if test -n "$CC"; then 2572 { echo "$as_me:$LINENO: result: $CC" >&5 2573echo "${ECHO_T}$CC" >&6; } 2574else 2575 { echo "$as_me:$LINENO: result: no" >&5 2576echo "${ECHO_T}no" >&6; } 2577fi 2578 2579 2580 test -n "$CC" && break 2581 done 2582fi 2583if test -z "$CC"; then 2584 ac_ct_CC=$CC 2585 for ac_prog in cl.exe 2586do 2587 # Extract the first word of "$ac_prog", so it can be a program name with args. 2588set dummy $ac_prog; ac_word=$2 2589{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2591if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2592 echo $ECHO_N "(cached) $ECHO_C" >&6 2593else 2594 if test -n "$ac_ct_CC"; then 2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2596else 2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2598for as_dir in $PATH 2599do 2600 IFS=$as_save_IFS 2601 test -z "$as_dir" && as_dir=. 2602 for ac_exec_ext in '' $ac_executable_extensions; do 2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2604 ac_cv_prog_ac_ct_CC="$ac_prog" 2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2606 break 2 2607 fi 2608done 2609done 2610IFS=$as_save_IFS 2611 2612fi 2613fi 2614ac_ct_CC=$ac_cv_prog_ac_ct_CC 2615if test -n "$ac_ct_CC"; then 2616 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2617echo "${ECHO_T}$ac_ct_CC" >&6; } 2618else 2619 { echo "$as_me:$LINENO: result: no" >&5 2620echo "${ECHO_T}no" >&6; } 2621fi 2622 2623 2624 test -n "$ac_ct_CC" && break 2625done 2626 2627 if test "x$ac_ct_CC" = x; then 2628 CC="" 2629 else 2630 case $cross_compiling:$ac_tool_warned in 2631yes:) 2632{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2633whose name does not start with the host triplet. If you think this 2634configuration is useful to you, please write to autoconf@gnu.org." >&5 2635echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2636whose name does not start with the host triplet. If you think this 2637configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2638ac_tool_warned=yes ;; 2639esac 2640 CC=$ac_ct_CC 2641 fi 2642fi 2643 2644fi 2645 2646 2647test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2648See \`config.log' for more details." >&5 2649echo "$as_me: error: no acceptable C compiler found in \$PATH 2650See \`config.log' for more details." >&2;} 2651 { (exit 1); exit 1; }; } 2652 2653# Provide some information about the compiler. 2654echo "$as_me:$LINENO: checking for C compiler version" >&5 2655ac_compiler=`set X $ac_compile; echo $2` 2656{ (ac_try="$ac_compiler --version >&5" 2657case "(($ac_try" in 2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2659 *) ac_try_echo=$ac_try;; 2660esac 2661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2662 (eval "$ac_compiler --version >&5") 2>&5 2663 ac_status=$? 2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2665 (exit $ac_status); } 2666{ (ac_try="$ac_compiler -v >&5" 2667case "(($ac_try" in 2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2669 *) ac_try_echo=$ac_try;; 2670esac 2671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2672 (eval "$ac_compiler -v >&5") 2>&5 2673 ac_status=$? 2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2675 (exit $ac_status); } 2676{ (ac_try="$ac_compiler -V >&5" 2677case "(($ac_try" in 2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2679 *) ac_try_echo=$ac_try;; 2680esac 2681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2682 (eval "$ac_compiler -V >&5") 2>&5 2683 ac_status=$? 2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2685 (exit $ac_status); } 2686 2687cat >conftest.$ac_ext <<_ACEOF 2688/* confdefs.h. */ 2689_ACEOF 2690cat confdefs.h >>conftest.$ac_ext 2691cat >>conftest.$ac_ext <<_ACEOF 2692/* end confdefs.h. */ 2693 2694int 2695main () 2696{ 2697 2698 ; 2699 return 0; 2700} 2701_ACEOF 2702ac_clean_files_save=$ac_clean_files 2703ac_clean_files="$ac_clean_files a.out a.exe b.out" 2704# Try to create an executable without -o first, disregard a.out. 2705# It will help us diagnose broken compilers, and finding out an intuition 2706# of exeext. 2707{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2708echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2709ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2710# 2711# List of possible output files, starting from the most likely. 2712# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2713# only as a last resort. b.out is created by i960 compilers. 2714ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2715# 2716# The IRIX 6 linker writes into existing files which may not be 2717# executable, retaining their permissions. Remove them first so a 2718# subsequent execution test works. 2719ac_rmfiles= 2720for ac_file in $ac_files 2721do 2722 case $ac_file in 2723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2724 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2725 esac 2726done 2727rm -f $ac_rmfiles 2728 2729if { (ac_try="$ac_link_default" 2730case "(($ac_try" in 2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2732 *) ac_try_echo=$ac_try;; 2733esac 2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2735 (eval "$ac_link_default") 2>&5 2736 ac_status=$? 2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2738 (exit $ac_status); }; then 2739 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2740# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2741# in a Makefile. We should not override ac_cv_exeext if it was cached, 2742# so that the user can short-circuit this test for compilers unknown to 2743# Autoconf. 2744for ac_file in $ac_files 2745do 2746 test -f "$ac_file" || continue 2747 case $ac_file in 2748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2749 ;; 2750 [ab].out ) 2751 # We found the default executable, but exeext='' is most 2752 # certainly right. 2753 break;; 2754 *.* ) 2755 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2756 then :; else 2757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2758 fi 2759 # We set ac_cv_exeext here because the later test for it is not 2760 # safe: cross compilers may not add the suffix if given an `-o' 2761 # argument, so we may need to know it at that point already. 2762 # Even if this section looks crufty: it has the advantage of 2763 # actually working. 2764 break;; 2765 * ) 2766 break;; 2767 esac 2768done 2769test "$ac_cv_exeext" = no && ac_cv_exeext= 2770 2771else 2772 echo "$as_me: failed program was:" >&5 2773sed 's/^/| /' conftest.$ac_ext >&5 2774 2775{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2776See \`config.log' for more details." >&5 2777echo "$as_me: error: C compiler cannot create executables 2778See \`config.log' for more details." >&2;} 2779 { (exit 77); exit 77; }; } 2780fi 2781 2782ac_exeext=$ac_cv_exeext 2783{ echo "$as_me:$LINENO: result: $ac_file" >&5 2784echo "${ECHO_T}$ac_file" >&6; } 2785 2786# Check that the compiler produces executables we can run. If not, either 2787# the compiler is broken, or we cross compile. 2788{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2789echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2790# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2791# If not cross compiling, check that we can run a simple program. 2792if test "$cross_compiling" != yes; then 2793 if { ac_try='./$ac_file' 2794 { (case "(($ac_try" in 2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2796 *) ac_try_echo=$ac_try;; 2797esac 2798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2799 (eval "$ac_try") 2>&5 2800 ac_status=$? 2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2802 (exit $ac_status); }; }; then 2803 cross_compiling=no 2804 else 2805 if test "$cross_compiling" = maybe; then 2806 cross_compiling=yes 2807 else 2808 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2809If you meant to cross compile, use \`--host'. 2810See \`config.log' for more details." >&5 2811echo "$as_me: error: cannot run C compiled programs. 2812If you meant to cross compile, use \`--host'. 2813See \`config.log' for more details." >&2;} 2814 { (exit 1); exit 1; }; } 2815 fi 2816 fi 2817fi 2818{ echo "$as_me:$LINENO: result: yes" >&5 2819echo "${ECHO_T}yes" >&6; } 2820 2821rm -f a.out a.exe conftest$ac_cv_exeext b.out 2822ac_clean_files=$ac_clean_files_save 2823# Check that the compiler produces executables we can run. If not, either 2824# the compiler is broken, or we cross compile. 2825{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2826echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2827{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2828echo "${ECHO_T}$cross_compiling" >&6; } 2829 2830{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2831echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2832if { (ac_try="$ac_link" 2833case "(($ac_try" in 2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2835 *) ac_try_echo=$ac_try;; 2836esac 2837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2838 (eval "$ac_link") 2>&5 2839 ac_status=$? 2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2841 (exit $ac_status); }; then 2842 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2843# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2844# work properly (i.e., refer to `conftest.exe'), while it won't with 2845# `rm'. 2846for ac_file in conftest.exe conftest conftest.*; do 2847 test -f "$ac_file" || continue 2848 case $ac_file in 2849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2850 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2851 break;; 2852 * ) break;; 2853 esac 2854done 2855else 2856 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2857See \`config.log' for more details." >&5 2858echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2859See \`config.log' for more details." >&2;} 2860 { (exit 1); exit 1; }; } 2861fi 2862 2863rm -f conftest$ac_cv_exeext 2864{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2865echo "${ECHO_T}$ac_cv_exeext" >&6; } 2866 2867rm -f conftest.$ac_ext 2868EXEEXT=$ac_cv_exeext 2869ac_exeext=$EXEEXT 2870{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2871echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2872if test "${ac_cv_objext+set}" = set; then 2873 echo $ECHO_N "(cached) $ECHO_C" >&6 2874else 2875 cat >conftest.$ac_ext <<_ACEOF 2876/* confdefs.h. */ 2877_ACEOF 2878cat confdefs.h >>conftest.$ac_ext 2879cat >>conftest.$ac_ext <<_ACEOF 2880/* end confdefs.h. */ 2881 2882int 2883main () 2884{ 2885 2886 ; 2887 return 0; 2888} 2889_ACEOF 2890rm -f conftest.o conftest.obj 2891if { (ac_try="$ac_compile" 2892case "(($ac_try" in 2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2894 *) ac_try_echo=$ac_try;; 2895esac 2896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2897 (eval "$ac_compile") 2>&5 2898 ac_status=$? 2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2900 (exit $ac_status); }; then 2901 for ac_file in conftest.o conftest.obj conftest.*; do 2902 test -f "$ac_file" || continue; 2903 case $ac_file in 2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2905 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2906 break;; 2907 esac 2908done 2909else 2910 echo "$as_me: failed program was:" >&5 2911sed 's/^/| /' conftest.$ac_ext >&5 2912 2913{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2914See \`config.log' for more details." >&5 2915echo "$as_me: error: cannot compute suffix of object files: cannot compile 2916See \`config.log' for more details." >&2;} 2917 { (exit 1); exit 1; }; } 2918fi 2919 2920rm -f conftest.$ac_cv_objext conftest.$ac_ext 2921fi 2922{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2923echo "${ECHO_T}$ac_cv_objext" >&6; } 2924OBJEXT=$ac_cv_objext 2925ac_objext=$OBJEXT 2926{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2927echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2928if test "${ac_cv_c_compiler_gnu+set}" = set; then 2929 echo $ECHO_N "(cached) $ECHO_C" >&6 2930else 2931 cat >conftest.$ac_ext <<_ACEOF 2932/* confdefs.h. */ 2933_ACEOF 2934cat confdefs.h >>conftest.$ac_ext 2935cat >>conftest.$ac_ext <<_ACEOF 2936/* end confdefs.h. */ 2937 2938int 2939main () 2940{ 2941#ifndef __GNUC__ 2942 choke me 2943#endif 2944 2945 ; 2946 return 0; 2947} 2948_ACEOF 2949rm -f conftest.$ac_objext 2950if { (ac_try="$ac_compile" 2951case "(($ac_try" in 2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2953 *) ac_try_echo=$ac_try;; 2954esac 2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2956 (eval "$ac_compile") 2>conftest.er1 2957 ac_status=$? 2958 grep -v '^ *+' conftest.er1 >conftest.err 2959 rm -f conftest.er1 2960 cat conftest.err >&5 2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2962 (exit $ac_status); } && 2963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2964 { (case "(($ac_try" in 2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2966 *) ac_try_echo=$ac_try;; 2967esac 2968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2969 (eval "$ac_try") 2>&5 2970 ac_status=$? 2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2972 (exit $ac_status); }; } && 2973 { ac_try='test -s conftest.$ac_objext' 2974 { (case "(($ac_try" in 2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2976 *) ac_try_echo=$ac_try;; 2977esac 2978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2979 (eval "$ac_try") 2>&5 2980 ac_status=$? 2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2982 (exit $ac_status); }; }; then 2983 ac_compiler_gnu=yes 2984else 2985 echo "$as_me: failed program was:" >&5 2986sed 's/^/| /' conftest.$ac_ext >&5 2987 2988 ac_compiler_gnu=no 2989fi 2990 2991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2992ac_cv_c_compiler_gnu=$ac_compiler_gnu 2993 2994fi 2995{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2996echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2997GCC=`test $ac_compiler_gnu = yes && echo yes` 2998ac_test_CFLAGS=${CFLAGS+set} 2999ac_save_CFLAGS=$CFLAGS 3000{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3001echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3002if test "${ac_cv_prog_cc_g+set}" = set; then 3003 echo $ECHO_N "(cached) $ECHO_C" >&6 3004else 3005 ac_save_c_werror_flag=$ac_c_werror_flag 3006 ac_c_werror_flag=yes 3007 ac_cv_prog_cc_g=no 3008 CFLAGS="-g" 3009 cat >conftest.$ac_ext <<_ACEOF 3010/* confdefs.h. */ 3011_ACEOF 3012cat confdefs.h >>conftest.$ac_ext 3013cat >>conftest.$ac_ext <<_ACEOF 3014/* end confdefs.h. */ 3015 3016int 3017main () 3018{ 3019 3020 ; 3021 return 0; 3022} 3023_ACEOF 3024rm -f conftest.$ac_objext 3025if { (ac_try="$ac_compile" 3026case "(($ac_try" in 3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3028 *) ac_try_echo=$ac_try;; 3029esac 3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3031 (eval "$ac_compile") 2>conftest.er1 3032 ac_status=$? 3033 grep -v '^ *+' conftest.er1 >conftest.err 3034 rm -f conftest.er1 3035 cat conftest.err >&5 3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3037 (exit $ac_status); } && 3038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3039 { (case "(($ac_try" in 3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3041 *) ac_try_echo=$ac_try;; 3042esac 3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3044 (eval "$ac_try") 2>&5 3045 ac_status=$? 3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3047 (exit $ac_status); }; } && 3048 { ac_try='test -s conftest.$ac_objext' 3049 { (case "(($ac_try" in 3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3051 *) ac_try_echo=$ac_try;; 3052esac 3053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3054 (eval "$ac_try") 2>&5 3055 ac_status=$? 3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3057 (exit $ac_status); }; }; then 3058 ac_cv_prog_cc_g=yes 3059else 3060 echo "$as_me: failed program was:" >&5 3061sed 's/^/| /' conftest.$ac_ext >&5 3062 3063 CFLAGS="" 3064 cat >conftest.$ac_ext <<_ACEOF 3065/* confdefs.h. */ 3066_ACEOF 3067cat confdefs.h >>conftest.$ac_ext 3068cat >>conftest.$ac_ext <<_ACEOF 3069/* end confdefs.h. */ 3070 3071int 3072main () 3073{ 3074 3075 ; 3076 return 0; 3077} 3078_ACEOF 3079rm -f conftest.$ac_objext 3080if { (ac_try="$ac_compile" 3081case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084esac 3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3086 (eval "$ac_compile") 2>conftest.er1 3087 ac_status=$? 3088 grep -v '^ *+' conftest.er1 >conftest.err 3089 rm -f conftest.er1 3090 cat conftest.err >&5 3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3092 (exit $ac_status); } && 3093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 3103 { ac_try='test -s conftest.$ac_objext' 3104 { (case "(($ac_try" in 3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3106 *) ac_try_echo=$ac_try;; 3107esac 3108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3109 (eval "$ac_try") 2>&5 3110 ac_status=$? 3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3112 (exit $ac_status); }; }; then 3113 : 3114else 3115 echo "$as_me: failed program was:" >&5 3116sed 's/^/| /' conftest.$ac_ext >&5 3117 3118 ac_c_werror_flag=$ac_save_c_werror_flag 3119 CFLAGS="-g" 3120 cat >conftest.$ac_ext <<_ACEOF 3121/* confdefs.h. */ 3122_ACEOF 3123cat confdefs.h >>conftest.$ac_ext 3124cat >>conftest.$ac_ext <<_ACEOF 3125/* end confdefs.h. */ 3126 3127int 3128main () 3129{ 3130 3131 ; 3132 return 0; 3133} 3134_ACEOF 3135rm -f conftest.$ac_objext 3136if { (ac_try="$ac_compile" 3137case "(($ac_try" in 3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3139 *) ac_try_echo=$ac_try;; 3140esac 3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3142 (eval "$ac_compile") 2>conftest.er1 3143 ac_status=$? 3144 grep -v '^ *+' conftest.er1 >conftest.err 3145 rm -f conftest.er1 3146 cat conftest.err >&5 3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3148 (exit $ac_status); } && 3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3150 { (case "(($ac_try" in 3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3152 *) ac_try_echo=$ac_try;; 3153esac 3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3155 (eval "$ac_try") 2>&5 3156 ac_status=$? 3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3158 (exit $ac_status); }; } && 3159 { ac_try='test -s conftest.$ac_objext' 3160 { (case "(($ac_try" in 3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3162 *) ac_try_echo=$ac_try;; 3163esac 3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3165 (eval "$ac_try") 2>&5 3166 ac_status=$? 3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3168 (exit $ac_status); }; }; then 3169 ac_cv_prog_cc_g=yes 3170else 3171 echo "$as_me: failed program was:" >&5 3172sed 's/^/| /' conftest.$ac_ext >&5 3173 3174 3175fi 3176 3177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3178fi 3179 3180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3181fi 3182 3183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3184 ac_c_werror_flag=$ac_save_c_werror_flag 3185fi 3186{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3187echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3188if test "$ac_test_CFLAGS" = set; then 3189 CFLAGS=$ac_save_CFLAGS 3190elif test $ac_cv_prog_cc_g = yes; then 3191 if test "$GCC" = yes; then 3192 CFLAGS="-g -O2" 3193 else 3194 CFLAGS="-g" 3195 fi 3196else 3197 if test "$GCC" = yes; then 3198 CFLAGS="-O2" 3199 else 3200 CFLAGS= 3201 fi 3202fi 3203{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3204echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3205if test "${ac_cv_prog_cc_c89+set}" = set; then 3206 echo $ECHO_N "(cached) $ECHO_C" >&6 3207else 3208 ac_cv_prog_cc_c89=no 3209ac_save_CC=$CC 3210cat >conftest.$ac_ext <<_ACEOF 3211/* confdefs.h. */ 3212_ACEOF 3213cat confdefs.h >>conftest.$ac_ext 3214cat >>conftest.$ac_ext <<_ACEOF 3215/* end confdefs.h. */ 3216#include <stdarg.h> 3217#include <stdio.h> 3218#include <sys/types.h> 3219#include <sys/stat.h> 3220/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3221struct buf { int x; }; 3222FILE * (*rcsopen) (struct buf *, struct stat *, int); 3223static char *e (p, i) 3224 char **p; 3225 int i; 3226{ 3227 return p[i]; 3228} 3229static char *f (char * (*g) (char **, int), char **p, ...) 3230{ 3231 char *s; 3232 va_list v; 3233 va_start (v,p); 3234 s = g (p, va_arg (v,int)); 3235 va_end (v); 3236 return s; 3237} 3238 3239/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3240 function prototypes and stuff, but not '\xHH' hex character constants. 3241 These don't provoke an error unfortunately, instead are silently treated 3242 as 'x'. The following induces an error, until -std is added to get 3243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3244 array size at least. It's necessary to write '\x00'==0 to get something 3245 that's true only with -std. */ 3246int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3247 3248/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3249 inside strings and character constants. */ 3250#define FOO(x) 'x' 3251int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3252 3253int test (int i, double x); 3254struct s1 {int (*f) (int a);}; 3255struct s2 {int (*f) (double a);}; 3256int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3257int argc; 3258char **argv; 3259int 3260main () 3261{ 3262return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3263 ; 3264 return 0; 3265} 3266_ACEOF 3267for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3268 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3269do 3270 CC="$ac_save_CC $ac_arg" 3271 rm -f conftest.$ac_objext 3272if { (ac_try="$ac_compile" 3273case "(($ac_try" in 3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3275 *) ac_try_echo=$ac_try;; 3276esac 3277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3278 (eval "$ac_compile") 2>conftest.er1 3279 ac_status=$? 3280 grep -v '^ *+' conftest.er1 >conftest.err 3281 rm -f conftest.er1 3282 cat conftest.err >&5 3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3284 (exit $ac_status); } && 3285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3286 { (case "(($ac_try" in 3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3288 *) ac_try_echo=$ac_try;; 3289esac 3290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3291 (eval "$ac_try") 2>&5 3292 ac_status=$? 3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3294 (exit $ac_status); }; } && 3295 { ac_try='test -s conftest.$ac_objext' 3296 { (case "(($ac_try" in 3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3298 *) ac_try_echo=$ac_try;; 3299esac 3300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3301 (eval "$ac_try") 2>&5 3302 ac_status=$? 3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3304 (exit $ac_status); }; }; then 3305 ac_cv_prog_cc_c89=$ac_arg 3306else 3307 echo "$as_me: failed program was:" >&5 3308sed 's/^/| /' conftest.$ac_ext >&5 3309 3310 3311fi 3312 3313rm -f core conftest.err conftest.$ac_objext 3314 test "x$ac_cv_prog_cc_c89" != "xno" && break 3315done 3316rm -f conftest.$ac_ext 3317CC=$ac_save_CC 3318 3319fi 3320# AC_CACHE_VAL 3321case "x$ac_cv_prog_cc_c89" in 3322 x) 3323 { echo "$as_me:$LINENO: result: none needed" >&5 3324echo "${ECHO_T}none needed" >&6; } ;; 3325 xno) 3326 { echo "$as_me:$LINENO: result: unsupported" >&5 3327echo "${ECHO_T}unsupported" >&6; } ;; 3328 *) 3329 CC="$CC $ac_cv_prog_cc_c89" 3330 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3331echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3332esac 3333 3334 3335ac_ext=c 3336ac_cpp='$CPP $CPPFLAGS' 3337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3339ac_compiler_gnu=$ac_cv_c_compiler_gnu 3340 3341 3342ac_ext=c 3343ac_cpp='$CPP $CPPFLAGS' 3344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3346ac_compiler_gnu=$ac_cv_c_compiler_gnu 3347{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3348echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3349# On Suns, sometimes $CPP names a directory. 3350if test -n "$CPP" && test -d "$CPP"; then 3351 CPP= 3352fi 3353if test -z "$CPP"; then 3354 if test "${ac_cv_prog_CPP+set}" = set; then 3355 echo $ECHO_N "(cached) $ECHO_C" >&6 3356else 3357 # Double quotes because CPP needs to be expanded 3358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3359 do 3360 ac_preproc_ok=false 3361for ac_c_preproc_warn_flag in '' yes 3362do 3363 # Use a header file that comes with gcc, so configuring glibc 3364 # with a fresh cross-compiler works. 3365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3366 # <limits.h> exists even on freestanding compilers. 3367 # On the NeXT, cc -E runs the code through the compiler's parser, 3368 # not just through cpp. "Syntax error" is here to catch this case. 3369 cat >conftest.$ac_ext <<_ACEOF 3370/* confdefs.h. */ 3371_ACEOF 3372cat confdefs.h >>conftest.$ac_ext 3373cat >>conftest.$ac_ext <<_ACEOF 3374/* end confdefs.h. */ 3375#ifdef __STDC__ 3376# include <limits.h> 3377#else 3378# include <assert.h> 3379#endif 3380 Syntax error 3381_ACEOF 3382if { (ac_try="$ac_cpp conftest.$ac_ext" 3383case "(($ac_try" in 3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3385 *) ac_try_echo=$ac_try;; 3386esac 3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3389 ac_status=$? 3390 grep -v '^ *+' conftest.er1 >conftest.err 3391 rm -f conftest.er1 3392 cat conftest.err >&5 3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3394 (exit $ac_status); } >/dev/null; then 3395 if test -s conftest.err; then 3396 ac_cpp_err=$ac_c_preproc_warn_flag 3397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3398 else 3399 ac_cpp_err= 3400 fi 3401else 3402 ac_cpp_err=yes 3403fi 3404if test -z "$ac_cpp_err"; then 3405 : 3406else 3407 echo "$as_me: failed program was:" >&5 3408sed 's/^/| /' conftest.$ac_ext >&5 3409 3410 # Broken: fails on valid input. 3411continue 3412fi 3413 3414rm -f conftest.err conftest.$ac_ext 3415 3416 # OK, works on sane cases. Now check whether nonexistent headers 3417 # can be detected and how. 3418 cat >conftest.$ac_ext <<_ACEOF 3419/* confdefs.h. */ 3420_ACEOF 3421cat confdefs.h >>conftest.$ac_ext 3422cat >>conftest.$ac_ext <<_ACEOF 3423/* end confdefs.h. */ 3424#include <ac_nonexistent.h> 3425_ACEOF 3426if { (ac_try="$ac_cpp conftest.$ac_ext" 3427case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3433 ac_status=$? 3434 grep -v '^ *+' conftest.er1 >conftest.err 3435 rm -f conftest.er1 3436 cat conftest.err >&5 3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3438 (exit $ac_status); } >/dev/null; then 3439 if test -s conftest.err; then 3440 ac_cpp_err=$ac_c_preproc_warn_flag 3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3442 else 3443 ac_cpp_err= 3444 fi 3445else 3446 ac_cpp_err=yes 3447fi 3448if test -z "$ac_cpp_err"; then 3449 # Broken: success on invalid input. 3450continue 3451else 3452 echo "$as_me: failed program was:" >&5 3453sed 's/^/| /' conftest.$ac_ext >&5 3454 3455 # Passes both tests. 3456ac_preproc_ok=: 3457break 3458fi 3459 3460rm -f conftest.err conftest.$ac_ext 3461 3462done 3463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3464rm -f conftest.err conftest.$ac_ext 3465if $ac_preproc_ok; then 3466 break 3467fi 3468 3469 done 3470 ac_cv_prog_CPP=$CPP 3471 3472fi 3473 CPP=$ac_cv_prog_CPP 3474else 3475 ac_cv_prog_CPP=$CPP 3476fi 3477{ echo "$as_me:$LINENO: result: $CPP" >&5 3478echo "${ECHO_T}$CPP" >&6; } 3479ac_preproc_ok=false 3480for ac_c_preproc_warn_flag in '' yes 3481do 3482 # Use a header file that comes with gcc, so configuring glibc 3483 # with a fresh cross-compiler works. 3484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3485 # <limits.h> exists even on freestanding compilers. 3486 # On the NeXT, cc -E runs the code through the compiler's parser, 3487 # not just through cpp. "Syntax error" is here to catch this case. 3488 cat >conftest.$ac_ext <<_ACEOF 3489/* confdefs.h. */ 3490_ACEOF 3491cat confdefs.h >>conftest.$ac_ext 3492cat >>conftest.$ac_ext <<_ACEOF 3493/* end confdefs.h. */ 3494#ifdef __STDC__ 3495# include <limits.h> 3496#else 3497# include <assert.h> 3498#endif 3499 Syntax error 3500_ACEOF 3501if { (ac_try="$ac_cpp conftest.$ac_ext" 3502case "(($ac_try" in 3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3504 *) ac_try_echo=$ac_try;; 3505esac 3506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3508 ac_status=$? 3509 grep -v '^ *+' conftest.er1 >conftest.err 3510 rm -f conftest.er1 3511 cat conftest.err >&5 3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3513 (exit $ac_status); } >/dev/null; then 3514 if test -s conftest.err; then 3515 ac_cpp_err=$ac_c_preproc_warn_flag 3516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3517 else 3518 ac_cpp_err= 3519 fi 3520else 3521 ac_cpp_err=yes 3522fi 3523if test -z "$ac_cpp_err"; then 3524 : 3525else 3526 echo "$as_me: failed program was:" >&5 3527sed 's/^/| /' conftest.$ac_ext >&5 3528 3529 # Broken: fails on valid input. 3530continue 3531fi 3532 3533rm -f conftest.err conftest.$ac_ext 3534 3535 # OK, works on sane cases. Now check whether nonexistent headers 3536 # can be detected and how. 3537 cat >conftest.$ac_ext <<_ACEOF 3538/* confdefs.h. */ 3539_ACEOF 3540cat confdefs.h >>conftest.$ac_ext 3541cat >>conftest.$ac_ext <<_ACEOF 3542/* end confdefs.h. */ 3543#include <ac_nonexistent.h> 3544_ACEOF 3545if { (ac_try="$ac_cpp conftest.$ac_ext" 3546case "(($ac_try" in 3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3548 *) ac_try_echo=$ac_try;; 3549esac 3550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3552 ac_status=$? 3553 grep -v '^ *+' conftest.er1 >conftest.err 3554 rm -f conftest.er1 3555 cat conftest.err >&5 3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3557 (exit $ac_status); } >/dev/null; then 3558 if test -s conftest.err; then 3559 ac_cpp_err=$ac_c_preproc_warn_flag 3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3561 else 3562 ac_cpp_err= 3563 fi 3564else 3565 ac_cpp_err=yes 3566fi 3567if test -z "$ac_cpp_err"; then 3568 # Broken: success on invalid input. 3569continue 3570else 3571 echo "$as_me: failed program was:" >&5 3572sed 's/^/| /' conftest.$ac_ext >&5 3573 3574 # Passes both tests. 3575ac_preproc_ok=: 3576break 3577fi 3578 3579rm -f conftest.err conftest.$ac_ext 3580 3581done 3582# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3583rm -f conftest.err conftest.$ac_ext 3584if $ac_preproc_ok; then 3585 : 3586else 3587 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3588See \`config.log' for more details." >&5 3589echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3590See \`config.log' for more details." >&2;} 3591 { (exit 1); exit 1; }; } 3592fi 3593 3594ac_ext=c 3595ac_cpp='$CPP $CPPFLAGS' 3596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3598ac_compiler_gnu=$ac_cv_c_compiler_gnu 3599 3600 3601{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3602echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3603if test "${ac_cv_path_GREP+set}" = set; then 3604 echo $ECHO_N "(cached) $ECHO_C" >&6 3605else 3606 # Extract the first word of "grep ggrep" to use in msg output 3607if test -z "$GREP"; then 3608set dummy grep ggrep; ac_prog_name=$2 3609if test "${ac_cv_path_GREP+set}" = set; then 3610 echo $ECHO_N "(cached) $ECHO_C" >&6 3611else 3612 ac_path_GREP_found=false 3613# Loop through the user's path and test for each of PROGNAME-LIST 3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3615for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3616do 3617 IFS=$as_save_IFS 3618 test -z "$as_dir" && as_dir=. 3619 for ac_prog in grep ggrep; do 3620 for ac_exec_ext in '' $ac_executable_extensions; do 3621 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3622 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3623 # Check for GNU ac_path_GREP and select it if it is found. 3624 # Check for GNU $ac_path_GREP 3625case `"$ac_path_GREP" --version 2>&1` in 3626*GNU*) 3627 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3628*) 3629 ac_count=0 3630 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3631 while : 3632 do 3633 cat "conftest.in" "conftest.in" >"conftest.tmp" 3634 mv "conftest.tmp" "conftest.in" 3635 cp "conftest.in" "conftest.nl" 3636 echo 'GREP' >> "conftest.nl" 3637 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3639 ac_count=`expr $ac_count + 1` 3640 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3641 # Best one so far, save it but keep looking for a better one 3642 ac_cv_path_GREP="$ac_path_GREP" 3643 ac_path_GREP_max=$ac_count 3644 fi 3645 # 10*(2^10) chars as input seems more than enough 3646 test $ac_count -gt 10 && break 3647 done 3648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3649esac 3650 3651 3652 $ac_path_GREP_found && break 3 3653 done 3654done 3655 3656done 3657IFS=$as_save_IFS 3658 3659 3660fi 3661 3662GREP="$ac_cv_path_GREP" 3663if test -z "$GREP"; then 3664 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3665echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3666 { (exit 1); exit 1; }; } 3667fi 3668 3669else 3670 ac_cv_path_GREP=$GREP 3671fi 3672 3673 3674fi 3675{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3676echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3677 GREP="$ac_cv_path_GREP" 3678 3679 3680{ echo "$as_me:$LINENO: checking for egrep" >&5 3681echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3682if test "${ac_cv_path_EGREP+set}" = set; then 3683 echo $ECHO_N "(cached) $ECHO_C" >&6 3684else 3685 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3686 then ac_cv_path_EGREP="$GREP -E" 3687 else 3688 # Extract the first word of "egrep" to use in msg output 3689if test -z "$EGREP"; then 3690set dummy egrep; ac_prog_name=$2 3691if test "${ac_cv_path_EGREP+set}" = set; then 3692 echo $ECHO_N "(cached) $ECHO_C" >&6 3693else 3694 ac_path_EGREP_found=false 3695# Loop through the user's path and test for each of PROGNAME-LIST 3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3697for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3698do 3699 IFS=$as_save_IFS 3700 test -z "$as_dir" && as_dir=. 3701 for ac_prog in egrep; do 3702 for ac_exec_ext in '' $ac_executable_extensions; do 3703 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3704 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3705 # Check for GNU ac_path_EGREP and select it if it is found. 3706 # Check for GNU $ac_path_EGREP 3707case `"$ac_path_EGREP" --version 2>&1` in 3708*GNU*) 3709 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3710*) 3711 ac_count=0 3712 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3713 while : 3714 do 3715 cat "conftest.in" "conftest.in" >"conftest.tmp" 3716 mv "conftest.tmp" "conftest.in" 3717 cp "conftest.in" "conftest.nl" 3718 echo 'EGREP' >> "conftest.nl" 3719 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3721 ac_count=`expr $ac_count + 1` 3722 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3723 # Best one so far, save it but keep looking for a better one 3724 ac_cv_path_EGREP="$ac_path_EGREP" 3725 ac_path_EGREP_max=$ac_count 3726 fi 3727 # 10*(2^10) chars as input seems more than enough 3728 test $ac_count -gt 10 && break 3729 done 3730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3731esac 3732 3733 3734 $ac_path_EGREP_found && break 3 3735 done 3736done 3737 3738done 3739IFS=$as_save_IFS 3740 3741 3742fi 3743 3744EGREP="$ac_cv_path_EGREP" 3745if test -z "$EGREP"; then 3746 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3747echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3748 { (exit 1); exit 1; }; } 3749fi 3750 3751else 3752 ac_cv_path_EGREP=$EGREP 3753fi 3754 3755 3756 fi 3757fi 3758{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3759echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3760 EGREP="$ac_cv_path_EGREP" 3761 3762 3763{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3764echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3765if test "${ac_cv_header_stdc+set}" = set; then 3766 echo $ECHO_N "(cached) $ECHO_C" >&6 3767else 3768 cat >conftest.$ac_ext <<_ACEOF 3769/* confdefs.h. */ 3770_ACEOF 3771cat confdefs.h >>conftest.$ac_ext 3772cat >>conftest.$ac_ext <<_ACEOF 3773/* end confdefs.h. */ 3774#include <stdlib.h> 3775#include <stdarg.h> 3776#include <string.h> 3777#include <float.h> 3778 3779int 3780main () 3781{ 3782 3783 ; 3784 return 0; 3785} 3786_ACEOF 3787rm -f conftest.$ac_objext 3788if { (ac_try="$ac_compile" 3789case "(($ac_try" in 3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3791 *) ac_try_echo=$ac_try;; 3792esac 3793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3794 (eval "$ac_compile") 2>conftest.er1 3795 ac_status=$? 3796 grep -v '^ *+' conftest.er1 >conftest.err 3797 rm -f conftest.er1 3798 cat conftest.err >&5 3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3800 (exit $ac_status); } && 3801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3802 { (case "(($ac_try" in 3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3804 *) ac_try_echo=$ac_try;; 3805esac 3806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3807 (eval "$ac_try") 2>&5 3808 ac_status=$? 3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3810 (exit $ac_status); }; } && 3811 { ac_try='test -s conftest.$ac_objext' 3812 { (case "(($ac_try" in 3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3814 *) ac_try_echo=$ac_try;; 3815esac 3816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3817 (eval "$ac_try") 2>&5 3818 ac_status=$? 3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3820 (exit $ac_status); }; }; then 3821 ac_cv_header_stdc=yes 3822else 3823 echo "$as_me: failed program was:" >&5 3824sed 's/^/| /' conftest.$ac_ext >&5 3825 3826 ac_cv_header_stdc=no 3827fi 3828 3829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3830 3831if test $ac_cv_header_stdc = yes; then 3832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3833 cat >conftest.$ac_ext <<_ACEOF 3834/* confdefs.h. */ 3835_ACEOF 3836cat confdefs.h >>conftest.$ac_ext 3837cat >>conftest.$ac_ext <<_ACEOF 3838/* end confdefs.h. */ 3839#include <string.h> 3840 3841_ACEOF 3842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3843 $EGREP "memchr" >/dev/null 2>&1; then 3844 : 3845else 3846 ac_cv_header_stdc=no 3847fi 3848rm -f conftest* 3849 3850fi 3851 3852if test $ac_cv_header_stdc = yes; then 3853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3854 cat >conftest.$ac_ext <<_ACEOF 3855/* confdefs.h. */ 3856_ACEOF 3857cat confdefs.h >>conftest.$ac_ext 3858cat >>conftest.$ac_ext <<_ACEOF 3859/* end confdefs.h. */ 3860#include <stdlib.h> 3861 3862_ACEOF 3863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3864 $EGREP "free" >/dev/null 2>&1; then 3865 : 3866else 3867 ac_cv_header_stdc=no 3868fi 3869rm -f conftest* 3870 3871fi 3872 3873if test $ac_cv_header_stdc = yes; then 3874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3875 if test "$cross_compiling" = yes; then 3876 : 3877else 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 <ctype.h> 3885#include <stdlib.h> 3886#if ((' ' & 0x0FF) == 0x020) 3887# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3888# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3889#else 3890# define ISLOWER(c) \ 3891 (('a' <= (c) && (c) <= 'i') \ 3892 || ('j' <= (c) && (c) <= 'r') \ 3893 || ('s' <= (c) && (c) <= 'z')) 3894# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3895#endif 3896 3897#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3898int 3899main () 3900{ 3901 int i; 3902 for (i = 0; i < 256; i++) 3903 if (XOR (islower (i), ISLOWER (i)) 3904 || toupper (i) != TOUPPER (i)) 3905 return 2; 3906 return 0; 3907} 3908_ACEOF 3909rm -f conftest$ac_exeext 3910if { (ac_try="$ac_link" 3911case "(($ac_try" in 3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3913 *) ac_try_echo=$ac_try;; 3914esac 3915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3916 (eval "$ac_link") 2>&5 3917 ac_status=$? 3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3920 { (case "(($ac_try" in 3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3922 *) ac_try_echo=$ac_try;; 3923esac 3924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3925 (eval "$ac_try") 2>&5 3926 ac_status=$? 3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3928 (exit $ac_status); }; }; then 3929 : 3930else 3931 echo "$as_me: program exited with status $ac_status" >&5 3932echo "$as_me: failed program was:" >&5 3933sed 's/^/| /' conftest.$ac_ext >&5 3934 3935( exit $ac_status ) 3936ac_cv_header_stdc=no 3937fi 3938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3939fi 3940 3941 3942fi 3943fi 3944{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3945echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3946if test $ac_cv_header_stdc = yes; then 3947 3948cat >>confdefs.h <<\_ACEOF 3949#define STDC_HEADERS 1 3950_ACEOF 3951 3952fi 3953 3954# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3965 inttypes.h stdint.h unistd.h 3966do 3967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3968{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3971 echo $ECHO_N "(cached) $ECHO_C" >&6 3972else 3973 cat >conftest.$ac_ext <<_ACEOF 3974/* confdefs.h. */ 3975_ACEOF 3976cat confdefs.h >>conftest.$ac_ext 3977cat >>conftest.$ac_ext <<_ACEOF 3978/* end confdefs.h. */ 3979$ac_includes_default 3980 3981#include <$ac_header> 3982_ACEOF 3983rm -f conftest.$ac_objext 3984if { (ac_try="$ac_compile" 3985case "(($ac_try" in 3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3987 *) ac_try_echo=$ac_try;; 3988esac 3989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3990 (eval "$ac_compile") 2>conftest.er1 3991 ac_status=$? 3992 grep -v '^ *+' conftest.er1 >conftest.err 3993 rm -f conftest.er1 3994 cat conftest.err >&5 3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3996 (exit $ac_status); } && 3997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3998 { (case "(($ac_try" in 3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4000 *) ac_try_echo=$ac_try;; 4001esac 4002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4003 (eval "$ac_try") 2>&5 4004 ac_status=$? 4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4006 (exit $ac_status); }; } && 4007 { ac_try='test -s conftest.$ac_objext' 4008 { (case "(($ac_try" in 4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4010 *) ac_try_echo=$ac_try;; 4011esac 4012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4013 (eval "$ac_try") 2>&5 4014 ac_status=$? 4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4016 (exit $ac_status); }; }; then 4017 eval "$as_ac_Header=yes" 4018else 4019 echo "$as_me: failed program was:" >&5 4020sed 's/^/| /' conftest.$ac_ext >&5 4021 4022 eval "$as_ac_Header=no" 4023fi 4024 4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4026fi 4027ac_res=`eval echo '${'$as_ac_Header'}'` 4028 { echo "$as_me:$LINENO: result: $ac_res" >&5 4029echo "${ECHO_T}$ac_res" >&6; } 4030if test `eval echo '${'$as_ac_Header'}'` = yes; then 4031 cat >>confdefs.h <<_ACEOF 4032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4033_ACEOF 4034 4035fi 4036 4037done 4038 4039 4040{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4041echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4042if test "${ac_cv_c_bigendian+set}" = set; then 4043 echo $ECHO_N "(cached) $ECHO_C" >&6 4044else 4045 # See if sys/param.h defines the BYTE_ORDER macro. 4046cat >conftest.$ac_ext <<_ACEOF 4047/* confdefs.h. */ 4048_ACEOF 4049cat confdefs.h >>conftest.$ac_ext 4050cat >>conftest.$ac_ext <<_ACEOF 4051/* end confdefs.h. */ 4052#include <sys/types.h> 4053#include <sys/param.h> 4054 4055int 4056main () 4057{ 4058#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4059 bogus endian macros 4060#endif 4061 4062 ; 4063 return 0; 4064} 4065_ACEOF 4066rm -f conftest.$ac_objext 4067if { (ac_try="$ac_compile" 4068case "(($ac_try" in 4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4070 *) ac_try_echo=$ac_try;; 4071esac 4072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4073 (eval "$ac_compile") 2>conftest.er1 4074 ac_status=$? 4075 grep -v '^ *+' conftest.er1 >conftest.err 4076 rm -f conftest.er1 4077 cat conftest.err >&5 4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4079 (exit $ac_status); } && 4080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4081 { (case "(($ac_try" in 4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4083 *) ac_try_echo=$ac_try;; 4084esac 4085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4086 (eval "$ac_try") 2>&5 4087 ac_status=$? 4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4089 (exit $ac_status); }; } && 4090 { ac_try='test -s conftest.$ac_objext' 4091 { (case "(($ac_try" in 4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4093 *) ac_try_echo=$ac_try;; 4094esac 4095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4096 (eval "$ac_try") 2>&5 4097 ac_status=$? 4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4099 (exit $ac_status); }; }; then 4100 # It does; now see whether it defined to BIG_ENDIAN or not. 4101cat >conftest.$ac_ext <<_ACEOF 4102/* confdefs.h. */ 4103_ACEOF 4104cat confdefs.h >>conftest.$ac_ext 4105cat >>conftest.$ac_ext <<_ACEOF 4106/* end confdefs.h. */ 4107#include <sys/types.h> 4108#include <sys/param.h> 4109 4110int 4111main () 4112{ 4113#if BYTE_ORDER != BIG_ENDIAN 4114 not big endian 4115#endif 4116 4117 ; 4118 return 0; 4119} 4120_ACEOF 4121rm -f conftest.$ac_objext 4122if { (ac_try="$ac_compile" 4123case "(($ac_try" in 4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4125 *) ac_try_echo=$ac_try;; 4126esac 4127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4128 (eval "$ac_compile") 2>conftest.er1 4129 ac_status=$? 4130 grep -v '^ *+' conftest.er1 >conftest.err 4131 rm -f conftest.er1 4132 cat conftest.err >&5 4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4134 (exit $ac_status); } && 4135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 4145 { ac_try='test -s conftest.$ac_objext' 4146 { (case "(($ac_try" in 4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4148 *) ac_try_echo=$ac_try;; 4149esac 4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4151 (eval "$ac_try") 2>&5 4152 ac_status=$? 4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4154 (exit $ac_status); }; }; then 4155 ac_cv_c_bigendian=yes 4156else 4157 echo "$as_me: failed program was:" >&5 4158sed 's/^/| /' conftest.$ac_ext >&5 4159 4160 ac_cv_c_bigendian=no 4161fi 4162 4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4164else 4165 echo "$as_me: failed program was:" >&5 4166sed 's/^/| /' conftest.$ac_ext >&5 4167 4168 # It does not; compile a test program. 4169if test "$cross_compiling" = yes; then 4170 # try to guess the endianness by grepping values into an object file 4171 ac_cv_c_bigendian=unknown 4172 cat >conftest.$ac_ext <<_ACEOF 4173/* confdefs.h. */ 4174_ACEOF 4175cat confdefs.h >>conftest.$ac_ext 4176cat >>conftest.$ac_ext <<_ACEOF 4177/* end confdefs.h. */ 4178short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4179short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4180void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4181short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4182short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4183void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4184int 4185main () 4186{ 4187 _ascii (); _ebcdic (); 4188 ; 4189 return 0; 4190} 4191_ACEOF 4192rm -f conftest.$ac_objext 4193if { (ac_try="$ac_compile" 4194case "(($ac_try" in 4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4196 *) ac_try_echo=$ac_try;; 4197esac 4198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4199 (eval "$ac_compile") 2>conftest.er1 4200 ac_status=$? 4201 grep -v '^ *+' conftest.er1 >conftest.err 4202 rm -f conftest.er1 4203 cat conftest.err >&5 4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4205 (exit $ac_status); } && 4206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4207 { (case "(($ac_try" in 4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4209 *) ac_try_echo=$ac_try;; 4210esac 4211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4212 (eval "$ac_try") 2>&5 4213 ac_status=$? 4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4215 (exit $ac_status); }; } && 4216 { ac_try='test -s conftest.$ac_objext' 4217 { (case "(($ac_try" in 4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4219 *) ac_try_echo=$ac_try;; 4220esac 4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4222 (eval "$ac_try") 2>&5 4223 ac_status=$? 4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4225 (exit $ac_status); }; }; then 4226 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4227 ac_cv_c_bigendian=yes 4228fi 4229if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4230 if test "$ac_cv_c_bigendian" = unknown; then 4231 ac_cv_c_bigendian=no 4232 else 4233 # finding both strings is unlikely to happen, but who knows? 4234 ac_cv_c_bigendian=unknown 4235 fi 4236fi 4237else 4238 echo "$as_me: failed program was:" >&5 4239sed 's/^/| /' conftest.$ac_ext >&5 4240 4241 4242fi 4243 4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4245else 4246 cat >conftest.$ac_ext <<_ACEOF 4247/* confdefs.h. */ 4248_ACEOF 4249cat confdefs.h >>conftest.$ac_ext 4250cat >>conftest.$ac_ext <<_ACEOF 4251/* end confdefs.h. */ 4252$ac_includes_default 4253int 4254main () 4255{ 4256 4257 /* Are we little or big endian? From Harbison&Steele. */ 4258 union 4259 { 4260 long int l; 4261 char c[sizeof (long int)]; 4262 } u; 4263 u.l = 1; 4264 return u.c[sizeof (long int) - 1] == 1; 4265 4266 ; 4267 return 0; 4268} 4269_ACEOF 4270rm -f conftest$ac_exeext 4271if { (ac_try="$ac_link" 4272case "(($ac_try" in 4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4274 *) ac_try_echo=$ac_try;; 4275esac 4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4277 (eval "$ac_link") 2>&5 4278 ac_status=$? 4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4281 { (case "(($ac_try" in 4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4283 *) ac_try_echo=$ac_try;; 4284esac 4285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4286 (eval "$ac_try") 2>&5 4287 ac_status=$? 4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4289 (exit $ac_status); }; }; then 4290 ac_cv_c_bigendian=no 4291else 4292 echo "$as_me: program exited with status $ac_status" >&5 4293echo "$as_me: failed program was:" >&5 4294sed 's/^/| /' conftest.$ac_ext >&5 4295 4296( exit $ac_status ) 4297ac_cv_c_bigendian=yes 4298fi 4299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4300fi 4301 4302 4303fi 4304 4305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4306fi 4307{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4308echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4309case $ac_cv_c_bigendian in 4310 yes) 4311 ENDIAN=big 4312 ;; 4313 no) 4314 ENDIAN=little 4315 ;; 4316 *) 4317 { { echo "$as_me:$LINENO: error: unknown endianness 4318presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4319echo "$as_me: error: unknown endianness 4320presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4321 { (exit 1); exit 1; }; } ;; 4322esac 4323 4324 4325if test "$cross_compiling" = yes; then 4326 LLVM_CROSS_COMPILING=1 4327 4328 4329{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4330echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4331if test "${ac_cv_build_exeext+set}" = set; then 4332 echo $ECHO_N "(cached) $ECHO_C" >&6 4333else 4334 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4335 ac_cv_build_exeext=.exe 4336else 4337 ac_build_prefix=${build_alias}- 4338 4339 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4340set dummy ${ac_build_prefix}gcc; ac_word=$2 4341{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4343if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4344 echo $ECHO_N "(cached) $ECHO_C" >&6 4345else 4346 if test -n "$BUILD_CC"; then 4347 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4348else 4349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4350for as_dir in $PATH 4351do 4352 IFS=$as_save_IFS 4353 test -z "$as_dir" && as_dir=. 4354 for ac_exec_ext in '' $ac_executable_extensions; do 4355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4356 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4358 break 2 4359 fi 4360done 4361done 4362IFS=$as_save_IFS 4363 4364fi 4365fi 4366BUILD_CC=$ac_cv_prog_BUILD_CC 4367if test -n "$BUILD_CC"; then 4368 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4369echo "${ECHO_T}$BUILD_CC" >&6; } 4370else 4371 { echo "$as_me:$LINENO: result: no" >&5 4372echo "${ECHO_T}no" >&6; } 4373fi 4374 4375 4376 if test -z "$BUILD_CC"; then 4377 # Extract the first word of "gcc", so it can be a program name with args. 4378set dummy gcc; ac_word=$2 4379{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4381if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4382 echo $ECHO_N "(cached) $ECHO_C" >&6 4383else 4384 if test -n "$BUILD_CC"; then 4385 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4386else 4387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4388for as_dir in $PATH 4389do 4390 IFS=$as_save_IFS 4391 test -z "$as_dir" && as_dir=. 4392 for ac_exec_ext in '' $ac_executable_extensions; do 4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4394 ac_cv_prog_BUILD_CC="gcc" 4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4396 break 2 4397 fi 4398done 4399done 4400IFS=$as_save_IFS 4401 4402fi 4403fi 4404BUILD_CC=$ac_cv_prog_BUILD_CC 4405if test -n "$BUILD_CC"; then 4406 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4407echo "${ECHO_T}$BUILD_CC" >&6; } 4408else 4409 { echo "$as_me:$LINENO: result: no" >&5 4410echo "${ECHO_T}no" >&6; } 4411fi 4412 4413 4414 if test -z "$BUILD_CC"; then 4415 # Extract the first word of "cc", so it can be a program name with args. 4416set dummy cc; ac_word=$2 4417{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4419if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4420 echo $ECHO_N "(cached) $ECHO_C" >&6 4421else 4422 if test -n "$BUILD_CC"; then 4423 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4424else 4425 ac_prog_rejected=no 4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4427for as_dir in $PATH 4428do 4429 IFS=$as_save_IFS 4430 test -z "$as_dir" && as_dir=. 4431 for ac_exec_ext in '' $ac_executable_extensions; do 4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4434 ac_prog_rejected=yes 4435 continue 4436 fi 4437 ac_cv_prog_BUILD_CC="cc" 4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4439 break 2 4440 fi 4441done 4442done 4443IFS=$as_save_IFS 4444 4445if test $ac_prog_rejected = yes; then 4446 # We found a bogon in the path, so make sure we never use it. 4447 set dummy $ac_cv_prog_BUILD_CC 4448 shift 4449 if test $# != 0; then 4450 # We chose a different compiler from the bogus one. 4451 # However, it has the same basename, so the bogon will be chosen 4452 # first if we set BUILD_CC to just the basename; use the full file name. 4453 shift 4454 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4455 fi 4456fi 4457fi 4458fi 4459BUILD_CC=$ac_cv_prog_BUILD_CC 4460if test -n "$BUILD_CC"; then 4461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4462echo "${ECHO_T}$BUILD_CC" >&6; } 4463else 4464 { echo "$as_me:$LINENO: result: no" >&5 4465echo "${ECHO_T}no" >&6; } 4466fi 4467 4468 4469 fi 4470 fi 4471 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4472echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4473 { (exit 1); exit 1; }; } 4474 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4475 rm -f conftest* 4476 echo 'int main () { return 0; }' > conftest.$ac_ext 4477 ac_cv_build_exeext= 4478 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4479 (eval $ac_build_link) 2>&5 4480 ac_status=$? 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); }; then 4483 for file in conftest.*; do 4484 case $file in 4485 *.c | *.o | *.obj | *.dSYM) ;; 4486 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4487 esac 4488 done 4489 else 4490 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4491echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4492 { (exit 1); exit 1; }; } 4493 fi 4494 rm -f conftest* 4495 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4496fi 4497fi 4498 4499BUILD_EXEEXT="" 4500test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4501{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4502echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4503ac_build_exeext=$BUILD_EXEEXT 4504 4505 ac_build_prefix=${build_alias}- 4506 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4507set dummy ${ac_build_prefix}g++; ac_word=$2 4508{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4510if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4511 echo $ECHO_N "(cached) $ECHO_C" >&6 4512else 4513 if test -n "$BUILD_CXX"; then 4514 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4515else 4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4517for as_dir in $PATH 4518do 4519 IFS=$as_save_IFS 4520 test -z "$as_dir" && as_dir=. 4521 for ac_exec_ext in '' $ac_executable_extensions; do 4522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4523 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4525 break 2 4526 fi 4527done 4528done 4529IFS=$as_save_IFS 4530 4531fi 4532fi 4533BUILD_CXX=$ac_cv_prog_BUILD_CXX 4534if test -n "$BUILD_CXX"; then 4535 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4536echo "${ECHO_T}$BUILD_CXX" >&6; } 4537else 4538 { echo "$as_me:$LINENO: result: no" >&5 4539echo "${ECHO_T}no" >&6; } 4540fi 4541 4542 4543 if test -z "$BUILD_CXX"; then 4544 # Extract the first word of "g++", so it can be a program name with args. 4545set dummy g++; ac_word=$2 4546{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4548if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4549 echo $ECHO_N "(cached) $ECHO_C" >&6 4550else 4551 if test -n "$BUILD_CXX"; then 4552 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4553else 4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4555for as_dir in $PATH 4556do 4557 IFS=$as_save_IFS 4558 test -z "$as_dir" && as_dir=. 4559 for ac_exec_ext in '' $ac_executable_extensions; do 4560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4561 ac_cv_prog_BUILD_CXX="g++" 4562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4563 break 2 4564 fi 4565done 4566done 4567IFS=$as_save_IFS 4568 4569fi 4570fi 4571BUILD_CXX=$ac_cv_prog_BUILD_CXX 4572if test -n "$BUILD_CXX"; then 4573 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4574echo "${ECHO_T}$BUILD_CXX" >&6; } 4575else 4576 { echo "$as_me:$LINENO: result: no" >&5 4577echo "${ECHO_T}no" >&6; } 4578fi 4579 4580 4581 if test -z "$BUILD_CXX"; then 4582 # Extract the first word of "c++", so it can be a program name with args. 4583set dummy c++; ac_word=$2 4584{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4586if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4587 echo $ECHO_N "(cached) $ECHO_C" >&6 4588else 4589 if test -n "$BUILD_CXX"; then 4590 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4591else 4592 ac_prog_rejected=no 4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4594for as_dir in $PATH 4595do 4596 IFS=$as_save_IFS 4597 test -z "$as_dir" && as_dir=. 4598 for ac_exec_ext in '' $ac_executable_extensions; do 4599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4600 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4601 ac_prog_rejected=yes 4602 continue 4603 fi 4604 ac_cv_prog_BUILD_CXX="c++" 4605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4606 break 2 4607 fi 4608done 4609done 4610IFS=$as_save_IFS 4611 4612if test $ac_prog_rejected = yes; then 4613 # We found a bogon in the path, so make sure we never use it. 4614 set dummy $ac_cv_prog_BUILD_CXX 4615 shift 4616 if test $# != 0; then 4617 # We chose a different compiler from the bogus one. 4618 # However, it has the same basename, so the bogon will be chosen 4619 # first if we set BUILD_CXX to just the basename; use the full file name. 4620 shift 4621 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4622 fi 4623fi 4624fi 4625fi 4626BUILD_CXX=$ac_cv_prog_BUILD_CXX 4627if test -n "$BUILD_CXX"; then 4628 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4629echo "${ECHO_T}$BUILD_CXX" >&6; } 4630else 4631 { echo "$as_me:$LINENO: result: no" >&5 4632echo "${ECHO_T}no" >&6; } 4633fi 4634 4635 4636 fi 4637 fi 4638else 4639 LLVM_CROSS_COMPILING=0 4640 4641fi 4642 4643if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4644 cvsbuild="yes" 4645 optimize="no" 4646 CVSBUILD=CVSBUILD=1 4647 4648else 4649 cvsbuild="no" 4650 optimize="yes" 4651fi 4652 4653 4654# Check whether --enable-optimized was given. 4655if test "${enable_optimized+set}" = set; then 4656 enableval=$enable_optimized; 4657else 4658 enableval=$optimize 4659fi 4660 4661if test ${enableval} = "no" ; then 4662 ENABLE_OPTIMIZED= 4663 4664else 4665 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4666 4667fi 4668 4669# Check whether --enable-profiling was given. 4670if test "${enable_profiling+set}" = set; then 4671 enableval=$enable_profiling; 4672else 4673 enableval="no" 4674fi 4675 4676if test ${enableval} = "no" ; then 4677 ENABLE_PROFILING= 4678 4679else 4680 ENABLE_PROFILING=ENABLE_PROFILING=1 4681 4682fi 4683 4684# Check whether --enable-assertions was given. 4685if test "${enable_assertions+set}" = set; then 4686 enableval=$enable_assertions; 4687else 4688 enableval="yes" 4689fi 4690 4691if test ${enableval} = "yes" ; then 4692 DISABLE_ASSERTIONS= 4693 4694else 4695 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 4696 4697fi 4698 4699# Check whether --enable-expensive-checks was given. 4700if test "${enable_expensive_checks+set}" = set; then 4701 enableval=$enable_expensive_checks; 4702else 4703 enableval="no" 4704fi 4705 4706if test ${enableval} = "yes" ; then 4707 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 4708 4709 EXPENSIVE_CHECKS=yes 4710 4711else 4712 ENABLE_EXPENSIVE_CHECKS= 4713 4714 EXPENSIVE_CHECKS=no 4715 4716fi 4717 4718# Check whether --enable-debug-runtime was given. 4719if test "${enable_debug_runtime+set}" = set; then 4720 enableval=$enable_debug_runtime; 4721else 4722 enableval=no 4723fi 4724 4725if test ${enableval} = "no" ; then 4726 DEBUG_RUNTIME= 4727 4728else 4729 DEBUG_RUNTIME=DEBUG_RUNTIME=1 4730 4731fi 4732 4733# Check whether --enable-debug-symbols was given. 4734if test "${enable_debug_symbols+set}" = set; then 4735 enableval=$enable_debug_symbols; 4736else 4737 enableval=no 4738fi 4739 4740if test ${enableval} = "no" ; then 4741 DEBUG_SYMBOLS= 4742 4743else 4744 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 4745 4746fi 4747 4748# Check whether --enable-jit was given. 4749if test "${enable_jit+set}" = set; then 4750 enableval=$enable_jit; 4751else 4752 enableval=default 4753fi 4754 4755if test ${enableval} = "no" 4756then 4757 JIT= 4758 4759else 4760 case "$llvm_cv_target_arch" in 4761 x86) TARGET_HAS_JIT=1 4762 ;; 4763 Sparc) TARGET_HAS_JIT=0 4764 ;; 4765 PowerPC) TARGET_HAS_JIT=1 4766 ;; 4767 x86_64) TARGET_HAS_JIT=1 4768 ;; 4769 Alpha) TARGET_HAS_JIT=1 4770 ;; 4771 ARM) TARGET_HAS_JIT=1 4772 ;; 4773 Mips) TARGET_HAS_JIT=0 4774 ;; 4775 PIC16) TARGET_HAS_JIT=0 4776 ;; 4777 XCore) TARGET_HAS_JIT=0 4778 ;; 4779 MSP430) TARGET_HAS_JIT=0 4780 ;; 4781 SystemZ) TARGET_HAS_JIT=0 4782 ;; 4783 Blackfin) TARGET_HAS_JIT=0 4784 ;; 4785 *) TARGET_HAS_JIT=0 4786 ;; 4787 esac 4788fi 4789 4790# Check whether --enable-doxygen was given. 4791if test "${enable_doxygen+set}" = set; then 4792 enableval=$enable_doxygen; 4793else 4794 enableval=default 4795fi 4796 4797case "$enableval" in 4798 yes) ENABLE_DOXYGEN=1 4799 ;; 4800 no) ENABLE_DOXYGEN=0 4801 ;; 4802 default) ENABLE_DOXYGEN=0 4803 ;; 4804 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 4805echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 4806 { (exit 1); exit 1; }; } ;; 4807esac 4808 4809# Check whether --enable-threads was given. 4810if test "${enable_threads+set}" = set; then 4811 enableval=$enable_threads; 4812else 4813 enableval=default 4814fi 4815 4816case "$enableval" in 4817 yes) ENABLE_THREADS=1 4818 ;; 4819 no) ENABLE_THREADS=0 4820 ;; 4821 default) ENABLE_THREADS=1 4822 ;; 4823 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 4824echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 4825 { (exit 1); exit 1; }; } ;; 4826esac 4827 4828cat >>confdefs.h <<_ACEOF 4829#define ENABLE_THREADS $ENABLE_THREADS 4830_ACEOF 4831 4832 4833# Check whether --enable-pic was given. 4834if test "${enable_pic+set}" = set; then 4835 enableval=$enable_pic; 4836else 4837 enableval=default 4838fi 4839 4840case "$enableval" in 4841 yes) ENABLE_PIC=1 4842 ;; 4843 no) ENABLE_PIC=0 4844 ;; 4845 default) ENABLE_PIC=1 4846 ;; 4847 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 4848echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 4849 { (exit 1); exit 1; }; } ;; 4850esac 4851 4852cat >>confdefs.h <<_ACEOF 4853#define ENABLE_PIC $ENABLE_PIC 4854_ACEOF 4855 4856 4857TARGETS_TO_BUILD="" 4858# Check whether --enable-targets was given. 4859if test "${enable_targets+set}" = set; then 4860 enableval=$enable_targets; 4861else 4862 enableval=all 4863fi 4864 4865if test "$enableval" = host-only ; then 4866 enableval=host 4867fi 4868case "$enableval" in 4869 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;; 4870 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 4871 case "$a_target" in 4872 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 4873 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 4874 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 4875 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 4876 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 4877 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 4878 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 4879 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 4880 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; 4881 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 4882 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 4883 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 4884 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 4885 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; 4886 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;; 4887 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 4888 host) case "$llvm_cv_target_arch" in 4889 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 4890 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 4891 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 4892 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 4893 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 4894 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 4895 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 4896 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 4897 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;; 4898 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 4899 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 4900 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 4901 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 4902 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 4903echo "$as_me: error: Can not set target to build" >&2;} 4904 { (exit 1); exit 1; }; } ;; 4905 esac ;; 4906 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 4907echo "$as_me: error: Unrecognized target $a_target" >&2;} 4908 { (exit 1); exit 1; }; } ;; 4909 esac 4910 done 4911 ;; 4912esac 4913TARGETS_TO_BUILD=$TARGETS_TO_BUILD 4914 4915 4916# Determine whether we are building LLVM support for the native architecture. 4917# If so, define LLVM_NATIVE_ARCH to that LLVM target. 4918for a_target in $TARGETS_TO_BUILD; do 4919 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 4920 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" 4921 4922cat >>confdefs.h <<_ACEOF 4923#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET 4924_ACEOF 4925 4926 fi 4927done 4928 4929# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual 4930# target feature def files. 4931LLVM_ENUM_TARGETS="" 4932LLVM_ENUM_ASM_PRINTERS="" 4933LLVM_ENUM_ASM_PARSERS="" 4934LLVM_ENUM_DISASSEMBLERS="" 4935for target_to_build in $TARGETS_TO_BUILD; do 4936 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 4937 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then 4938 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 4939 fi 4940 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 4941 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 4942 fi 4943 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 4944 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 4945 fi 4946done 4947 4948 4949 4950 4951 4952# Check whether --enable-cbe-printf-a was given. 4953if test "${enable_cbe_printf_a+set}" = set; then 4954 enableval=$enable_cbe_printf_a; 4955else 4956 enableval=default 4957fi 4958 4959case "$enableval" in 4960 yes) ENABLE_CBE_PRINTF_A=1 4961 ;; 4962 no) ENABLE_CBE_PRINTF_A=0 4963 ;; 4964 default) ENABLE_CBE_PRINTF_A=1 4965 ;; 4966 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5 4967echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;} 4968 { (exit 1); exit 1; }; } ;; 4969esac 4970 4971cat >>confdefs.h <<_ACEOF 4972#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A 4973_ACEOF 4974 4975 4976 4977# Check whether --with-llvmgccdir was given. 4978if test "${with_llvmgccdir+set}" = set; then 4979 withval=$with_llvmgccdir; 4980else 4981 withval=default 4982fi 4983 4984case "$withval" in 4985 default) WITH_LLVMGCCDIR=default ;; 4986 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;; 4987 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5 4988echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;} 4989 { (exit 1); exit 1; }; } ;; 4990esac 4991 4992 4993# Check whether --with-llvmgcc was given. 4994if test "${with_llvmgcc+set}" = set; then 4995 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc 4996 WITH_LLVMGCCDIR="" 4997fi 4998 4999 5000 5001# Check whether --with-llvmgxx was given. 5002if test "${with_llvmgxx+set}" = set; then 5003 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx 5004 WITH_LLVMGCCDIR="" 5005fi 5006 5007 5008if test -n "$LLVMGCC"; then 5009 LLVMGCCCOMMAND="$LLVMGCC" 5010fi 5011 5012if test -n "$LLVMGXX"; then 5013 LLVMGXXCOMMAND="$LLVMGXX" 5014fi 5015 5016if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then 5017 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5 5018echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;} 5019 { (exit 1); exit 1; }; }; 5020fi 5021 5022if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then 5023 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5 5024echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;} 5025 { (exit 1); exit 1; }; }; 5026fi 5027 5028 5029# Check whether --with-optimize-option was given. 5030if test "${with_optimize_option+set}" = set; then 5031 withval=$with_optimize_option; 5032else 5033 withval=default 5034fi 5035 5036{ echo "$as_me:$LINENO: checking optimization flags" >&5 5037echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5038case "$withval" in 5039 default) 5040 case "$llvm_cv_os_type" in 5041 MingW) optimize_option=-O3 ;; 5042 *) optimize_option=-O2 ;; 5043 esac ;; 5044 *) optimize_option="$withval" ;; 5045esac 5046OPTIMIZE_OPTION=$optimize_option 5047 5048{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5049echo "${ECHO_T}$optimize_option" >&6; } 5050 5051 5052# Check whether --with-extra-options was given. 5053if test "${with_extra_options+set}" = set; then 5054 withval=$with_extra_options; 5055else 5056 withval=default 5057fi 5058 5059case "$withval" in 5060 default) EXTRA_OPTIONS= ;; 5061 *) EXTRA_OPTIONS=$withval ;; 5062esac 5063EXTRA_OPTIONS=$EXTRA_OPTIONS 5064 5065 5066# Check whether --enable-bindings was given. 5067if test "${enable_bindings+set}" = set; then 5068 enableval=$enable_bindings; 5069else 5070 enableval=default 5071fi 5072 5073BINDINGS_TO_BUILD="" 5074case "$enableval" in 5075 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5076 all ) BINDINGS_TO_BUILD="ocaml" ;; 5077 none | no) BINDINGS_TO_BUILD="" ;; 5078 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5079 case "$a_binding" in 5080 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5081 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5082echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5083 { (exit 1); exit 1; }; } ;; 5084 esac 5085 done 5086 ;; 5087esac 5088 5089 5090# Check whether --with-ocaml-libdir was given. 5091if test "${with_ocaml_libdir+set}" = set; then 5092 withval=$with_ocaml_libdir; 5093else 5094 withval=auto 5095fi 5096 5097case "$withval" in 5098 auto) with_ocaml_libdir="$withval" ;; 5099 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5100 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5101echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5102 { (exit 1); exit 1; }; } ;; 5103esac 5104 5105 5106# Check whether --with-c-include-dirs was given. 5107if test "${with_c_include_dirs+set}" = set; then 5108 withval=$with_c_include_dirs; 5109else 5110 withval="" 5111fi 5112 5113 5114cat >>confdefs.h <<_ACEOF 5115#define C_INCLUDE_DIRS "$withval" 5116_ACEOF 5117 5118 5119 5120# Check whether --with-cxx-include-root was given. 5121if test "${with_cxx_include_root+set}" = set; then 5122 withval=$with_cxx_include_root; 5123else 5124 withval="" 5125fi 5126 5127 5128cat >>confdefs.h <<_ACEOF 5129#define CXX_INCLUDE_ROOT "$withval" 5130_ACEOF 5131 5132 5133 5134# Check whether --with-cxx-include-arch was given. 5135if test "${with_cxx_include_arch+set}" = set; then 5136 withval=$with_cxx_include_arch; 5137else 5138 withval="" 5139fi 5140 5141 5142cat >>confdefs.h <<_ACEOF 5143#define CXX_INCLUDE_ARCH "$withval" 5144_ACEOF 5145 5146 5147 5148# Check whether --with-cxx-include-32bit-dir was given. 5149if test "${with_cxx_include_32bit_dir+set}" = set; then 5150 withval=$with_cxx_include_32bit_dir; 5151else 5152 withval="" 5153fi 5154 5155 5156cat >>confdefs.h <<_ACEOF 5157#define CXX_INCLUDE_32BIT_DIR "$withval" 5158_ACEOF 5159 5160 5161 5162# Check whether --with-cxx-include-64bit-dir was given. 5163if test "${with_cxx_include_64bit_dir+set}" = set; then 5164 withval=$with_cxx_include_64bit_dir; 5165else 5166 withval="" 5167fi 5168 5169 5170cat >>confdefs.h <<_ACEOF 5171#define CXX_INCLUDE_64BIT_DIR "$withval" 5172_ACEOF 5173 5174 5175 5176# Check whether --with-binutils-include was given. 5177if test "${with_binutils_include+set}" = set; then 5178 withval=$with_binutils_include; 5179else 5180 withval=default 5181fi 5182 5183case "$withval" in 5184 default) WITH_BINUTILS_INCDIR=default ;; 5185 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5186 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5187echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5188 { (exit 1); exit 1; }; } ;; 5189esac 5190if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5191 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5192 5193 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5194 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5195 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5196echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5197 { (exit 1); exit 1; }; }; 5198 fi 5199fi 5200 5201# Check whether --enable-libffi was given. 5202if test "${enable_libffi+set}" = set; then 5203 enableval=$enable_libffi; case "$enableval" in 5204 yes) llvm_cv_enable_libffi="yes" ;; 5205 no) llvm_cv_enable_libffi="no" ;; 5206 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5207echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5208 { (exit 1); exit 1; }; } ;; 5209 esac 5210else 5211 llvm_cv_enable_libffi=no 5212fi 5213 5214 5215if test "$llvm_cv_os_type" = "Win32" ; then 5216 llvmc_dynamic="yes" 5217else 5218 llvmc_dynamic="no" 5219fi 5220 5221# Check whether --enable-llvmc-dynamic was given. 5222if test "${enable_llvmc_dynamic+set}" = set; then 5223 enableval=$enable_llvmc_dynamic; 5224else 5225 enableval=$llvmc_dynamic 5226fi 5227 5228if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then 5229 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1 5230 5231else 5232 ENABLE_LLVMC_DYNAMIC= 5233 5234fi 5235 5236# Check whether --enable-llvmc-dynamic-plugins was given. 5237if test "${enable_llvmc_dynamic_plugins+set}" = set; then 5238 enableval=$enable_llvmc_dynamic_plugins; 5239else 5240 enableval=yes 5241fi 5242 5243if test ${enableval} = "yes" ; then 5244 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1 5245 5246else 5247 ENABLE_LLVMC_DYNAMIC_PLUGINS= 5248 5249fi 5250 5251 5252ac_ext=c 5253ac_cpp='$CPP $CPPFLAGS' 5254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5256ac_compiler_gnu=$ac_cv_c_compiler_gnu 5257{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5258echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5259# On Suns, sometimes $CPP names a directory. 5260if test -n "$CPP" && test -d "$CPP"; then 5261 CPP= 5262fi 5263if test -z "$CPP"; then 5264 if test "${ac_cv_prog_CPP+set}" = set; then 5265 echo $ECHO_N "(cached) $ECHO_C" >&6 5266else 5267 # Double quotes because CPP needs to be expanded 5268 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5269 do 5270 ac_preproc_ok=false 5271for ac_c_preproc_warn_flag in '' yes 5272do 5273 # Use a header file that comes with gcc, so configuring glibc 5274 # with a fresh cross-compiler works. 5275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5276 # <limits.h> exists even on freestanding compilers. 5277 # On the NeXT, cc -E runs the code through the compiler's parser, 5278 # not just through cpp. "Syntax error" is here to catch this case. 5279 cat >conftest.$ac_ext <<_ACEOF 5280/* confdefs.h. */ 5281_ACEOF 5282cat confdefs.h >>conftest.$ac_ext 5283cat >>conftest.$ac_ext <<_ACEOF 5284/* end confdefs.h. */ 5285#ifdef __STDC__ 5286# include <limits.h> 5287#else 5288# include <assert.h> 5289#endif 5290 Syntax error 5291_ACEOF 5292if { (ac_try="$ac_cpp conftest.$ac_ext" 5293case "(($ac_try" in 5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5295 *) ac_try_echo=$ac_try;; 5296esac 5297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5299 ac_status=$? 5300 grep -v '^ *+' conftest.er1 >conftest.err 5301 rm -f conftest.er1 5302 cat conftest.err >&5 5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5304 (exit $ac_status); } >/dev/null; then 5305 if test -s conftest.err; then 5306 ac_cpp_err=$ac_c_preproc_warn_flag 5307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5308 else 5309 ac_cpp_err= 5310 fi 5311else 5312 ac_cpp_err=yes 5313fi 5314if test -z "$ac_cpp_err"; then 5315 : 5316else 5317 echo "$as_me: failed program was:" >&5 5318sed 's/^/| /' conftest.$ac_ext >&5 5319 5320 # Broken: fails on valid input. 5321continue 5322fi 5323 5324rm -f conftest.err conftest.$ac_ext 5325 5326 # OK, works on sane cases. Now check whether nonexistent headers 5327 # can be detected and how. 5328 cat >conftest.$ac_ext <<_ACEOF 5329/* confdefs.h. */ 5330_ACEOF 5331cat confdefs.h >>conftest.$ac_ext 5332cat >>conftest.$ac_ext <<_ACEOF 5333/* end confdefs.h. */ 5334#include <ac_nonexistent.h> 5335_ACEOF 5336if { (ac_try="$ac_cpp conftest.$ac_ext" 5337case "(($ac_try" in 5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5339 *) ac_try_echo=$ac_try;; 5340esac 5341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5343 ac_status=$? 5344 grep -v '^ *+' conftest.er1 >conftest.err 5345 rm -f conftest.er1 5346 cat conftest.err >&5 5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5348 (exit $ac_status); } >/dev/null; then 5349 if test -s conftest.err; then 5350 ac_cpp_err=$ac_c_preproc_warn_flag 5351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5352 else 5353 ac_cpp_err= 5354 fi 5355else 5356 ac_cpp_err=yes 5357fi 5358if test -z "$ac_cpp_err"; then 5359 # Broken: success on invalid input. 5360continue 5361else 5362 echo "$as_me: failed program was:" >&5 5363sed 's/^/| /' conftest.$ac_ext >&5 5364 5365 # Passes both tests. 5366ac_preproc_ok=: 5367break 5368fi 5369 5370rm -f conftest.err conftest.$ac_ext 5371 5372done 5373# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5374rm -f conftest.err conftest.$ac_ext 5375if $ac_preproc_ok; then 5376 break 5377fi 5378 5379 done 5380 ac_cv_prog_CPP=$CPP 5381 5382fi 5383 CPP=$ac_cv_prog_CPP 5384else 5385 ac_cv_prog_CPP=$CPP 5386fi 5387{ echo "$as_me:$LINENO: result: $CPP" >&5 5388echo "${ECHO_T}$CPP" >&6; } 5389ac_preproc_ok=false 5390for ac_c_preproc_warn_flag in '' yes 5391do 5392 # Use a header file that comes with gcc, so configuring glibc 5393 # with a fresh cross-compiler works. 5394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5395 # <limits.h> exists even on freestanding compilers. 5396 # On the NeXT, cc -E runs the code through the compiler's parser, 5397 # not just through cpp. "Syntax error" is here to catch this case. 5398 cat >conftest.$ac_ext <<_ACEOF 5399/* confdefs.h. */ 5400_ACEOF 5401cat confdefs.h >>conftest.$ac_ext 5402cat >>conftest.$ac_ext <<_ACEOF 5403/* end confdefs.h. */ 5404#ifdef __STDC__ 5405# include <limits.h> 5406#else 5407# include <assert.h> 5408#endif 5409 Syntax error 5410_ACEOF 5411if { (ac_try="$ac_cpp conftest.$ac_ext" 5412case "(($ac_try" in 5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5414 *) ac_try_echo=$ac_try;; 5415esac 5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5418 ac_status=$? 5419 grep -v '^ *+' conftest.er1 >conftest.err 5420 rm -f conftest.er1 5421 cat conftest.err >&5 5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5423 (exit $ac_status); } >/dev/null; then 5424 if test -s conftest.err; then 5425 ac_cpp_err=$ac_c_preproc_warn_flag 5426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5427 else 5428 ac_cpp_err= 5429 fi 5430else 5431 ac_cpp_err=yes 5432fi 5433if test -z "$ac_cpp_err"; then 5434 : 5435else 5436 echo "$as_me: failed program was:" >&5 5437sed 's/^/| /' conftest.$ac_ext >&5 5438 5439 # Broken: fails on valid input. 5440continue 5441fi 5442 5443rm -f conftest.err conftest.$ac_ext 5444 5445 # OK, works on sane cases. Now check whether nonexistent headers 5446 # can be detected and how. 5447 cat >conftest.$ac_ext <<_ACEOF 5448/* confdefs.h. */ 5449_ACEOF 5450cat confdefs.h >>conftest.$ac_ext 5451cat >>conftest.$ac_ext <<_ACEOF 5452/* end confdefs.h. */ 5453#include <ac_nonexistent.h> 5454_ACEOF 5455if { (ac_try="$ac_cpp conftest.$ac_ext" 5456case "(($ac_try" in 5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5458 *) ac_try_echo=$ac_try;; 5459esac 5460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5462 ac_status=$? 5463 grep -v '^ *+' conftest.er1 >conftest.err 5464 rm -f conftest.er1 5465 cat conftest.err >&5 5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5467 (exit $ac_status); } >/dev/null; then 5468 if test -s conftest.err; then 5469 ac_cpp_err=$ac_c_preproc_warn_flag 5470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5471 else 5472 ac_cpp_err= 5473 fi 5474else 5475 ac_cpp_err=yes 5476fi 5477if test -z "$ac_cpp_err"; then 5478 # Broken: success on invalid input. 5479continue 5480else 5481 echo "$as_me: failed program was:" >&5 5482sed 's/^/| /' conftest.$ac_ext >&5 5483 5484 # Passes both tests. 5485ac_preproc_ok=: 5486break 5487fi 5488 5489rm -f conftest.err conftest.$ac_ext 5490 5491done 5492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5493rm -f conftest.err conftest.$ac_ext 5494if $ac_preproc_ok; then 5495 : 5496else 5497 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5498See \`config.log' for more details." >&5 5499echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5500See \`config.log' for more details." >&2;} 5501 { (exit 1); exit 1; }; } 5502fi 5503 5504ac_ext=c 5505ac_cpp='$CPP $CPPFLAGS' 5506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5508ac_compiler_gnu=$ac_cv_c_compiler_gnu 5509 5510ac_ext=c 5511ac_cpp='$CPP $CPPFLAGS' 5512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5514ac_compiler_gnu=$ac_cv_c_compiler_gnu 5515if test -n "$ac_tool_prefix"; then 5516 for ac_prog in gcc 5517 do 5518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5519set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5520{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5522if test "${ac_cv_prog_CC+set}" = set; then 5523 echo $ECHO_N "(cached) $ECHO_C" >&6 5524else 5525 if test -n "$CC"; then 5526 ac_cv_prog_CC="$CC" # Let the user override the test. 5527else 5528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5529for as_dir in $PATH 5530do 5531 IFS=$as_save_IFS 5532 test -z "$as_dir" && as_dir=. 5533 for ac_exec_ext in '' $ac_executable_extensions; do 5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5537 break 2 5538 fi 5539done 5540done 5541IFS=$as_save_IFS 5542 5543fi 5544fi 5545CC=$ac_cv_prog_CC 5546if test -n "$CC"; then 5547 { echo "$as_me:$LINENO: result: $CC" >&5 5548echo "${ECHO_T}$CC" >&6; } 5549else 5550 { echo "$as_me:$LINENO: result: no" >&5 5551echo "${ECHO_T}no" >&6; } 5552fi 5553 5554 5555 test -n "$CC" && break 5556 done 5557fi 5558if test -z "$CC"; then 5559 ac_ct_CC=$CC 5560 for ac_prog in gcc 5561do 5562 # Extract the first word of "$ac_prog", so it can be a program name with args. 5563set dummy $ac_prog; ac_word=$2 5564{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5566if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 5567 echo $ECHO_N "(cached) $ECHO_C" >&6 5568else 5569 if test -n "$ac_ct_CC"; then 5570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5571else 5572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5573for as_dir in $PATH 5574do 5575 IFS=$as_save_IFS 5576 test -z "$as_dir" && as_dir=. 5577 for ac_exec_ext in '' $ac_executable_extensions; do 5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5579 ac_cv_prog_ac_ct_CC="$ac_prog" 5580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5581 break 2 5582 fi 5583done 5584done 5585IFS=$as_save_IFS 5586 5587fi 5588fi 5589ac_ct_CC=$ac_cv_prog_ac_ct_CC 5590if test -n "$ac_ct_CC"; then 5591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 5592echo "${ECHO_T}$ac_ct_CC" >&6; } 5593else 5594 { echo "$as_me:$LINENO: result: no" >&5 5595echo "${ECHO_T}no" >&6; } 5596fi 5597 5598 5599 test -n "$ac_ct_CC" && break 5600done 5601 5602 if test "x$ac_ct_CC" = x; then 5603 CC="" 5604 else 5605 case $cross_compiling:$ac_tool_warned in 5606yes:) 5607{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5608whose name does not start with the host triplet. If you think this 5609configuration is useful to you, please write to autoconf@gnu.org." >&5 5610echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5611whose name does not start with the host triplet. If you think this 5612configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5613ac_tool_warned=yes ;; 5614esac 5615 CC=$ac_ct_CC 5616 fi 5617fi 5618 5619 5620test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 5621See \`config.log' for more details." >&5 5622echo "$as_me: error: no acceptable C compiler found in \$PATH 5623See \`config.log' for more details." >&2;} 5624 { (exit 1); exit 1; }; } 5625 5626# Provide some information about the compiler. 5627echo "$as_me:$LINENO: checking for C compiler version" >&5 5628ac_compiler=`set X $ac_compile; echo $2` 5629{ (ac_try="$ac_compiler --version >&5" 5630case "(($ac_try" in 5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5632 *) ac_try_echo=$ac_try;; 5633esac 5634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5635 (eval "$ac_compiler --version >&5") 2>&5 5636 ac_status=$? 5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5638 (exit $ac_status); } 5639{ (ac_try="$ac_compiler -v >&5" 5640case "(($ac_try" in 5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5642 *) ac_try_echo=$ac_try;; 5643esac 5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5645 (eval "$ac_compiler -v >&5") 2>&5 5646 ac_status=$? 5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5648 (exit $ac_status); } 5649{ (ac_try="$ac_compiler -V >&5" 5650case "(($ac_try" in 5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5652 *) ac_try_echo=$ac_try;; 5653esac 5654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5655 (eval "$ac_compiler -V >&5") 2>&5 5656 ac_status=$? 5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5658 (exit $ac_status); } 5659 5660{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 5661echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 5662if test "${ac_cv_c_compiler_gnu+set}" = set; then 5663 echo $ECHO_N "(cached) $ECHO_C" >&6 5664else 5665 cat >conftest.$ac_ext <<_ACEOF 5666/* confdefs.h. */ 5667_ACEOF 5668cat confdefs.h >>conftest.$ac_ext 5669cat >>conftest.$ac_ext <<_ACEOF 5670/* end confdefs.h. */ 5671 5672int 5673main () 5674{ 5675#ifndef __GNUC__ 5676 choke me 5677#endif 5678 5679 ; 5680 return 0; 5681} 5682_ACEOF 5683rm -f conftest.$ac_objext 5684if { (ac_try="$ac_compile" 5685case "(($ac_try" in 5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5687 *) ac_try_echo=$ac_try;; 5688esac 5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5690 (eval "$ac_compile") 2>conftest.er1 5691 ac_status=$? 5692 grep -v '^ *+' conftest.er1 >conftest.err 5693 rm -f conftest.er1 5694 cat conftest.err >&5 5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5696 (exit $ac_status); } && 5697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5698 { (case "(($ac_try" in 5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5700 *) ac_try_echo=$ac_try;; 5701esac 5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5703 (eval "$ac_try") 2>&5 5704 ac_status=$? 5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5706 (exit $ac_status); }; } && 5707 { ac_try='test -s conftest.$ac_objext' 5708 { (case "(($ac_try" in 5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5710 *) ac_try_echo=$ac_try;; 5711esac 5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5713 (eval "$ac_try") 2>&5 5714 ac_status=$? 5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5716 (exit $ac_status); }; }; then 5717 ac_compiler_gnu=yes 5718else 5719 echo "$as_me: failed program was:" >&5 5720sed 's/^/| /' conftest.$ac_ext >&5 5721 5722 ac_compiler_gnu=no 5723fi 5724 5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5726ac_cv_c_compiler_gnu=$ac_compiler_gnu 5727 5728fi 5729{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 5730echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 5731GCC=`test $ac_compiler_gnu = yes && echo yes` 5732ac_test_CFLAGS=${CFLAGS+set} 5733ac_save_CFLAGS=$CFLAGS 5734{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 5735echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 5736if test "${ac_cv_prog_cc_g+set}" = set; then 5737 echo $ECHO_N "(cached) $ECHO_C" >&6 5738else 5739 ac_save_c_werror_flag=$ac_c_werror_flag 5740 ac_c_werror_flag=yes 5741 ac_cv_prog_cc_g=no 5742 CFLAGS="-g" 5743 cat >conftest.$ac_ext <<_ACEOF 5744/* confdefs.h. */ 5745_ACEOF 5746cat confdefs.h >>conftest.$ac_ext 5747cat >>conftest.$ac_ext <<_ACEOF 5748/* end confdefs.h. */ 5749 5750int 5751main () 5752{ 5753 5754 ; 5755 return 0; 5756} 5757_ACEOF 5758rm -f conftest.$ac_objext 5759if { (ac_try="$ac_compile" 5760case "(($ac_try" in 5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5762 *) ac_try_echo=$ac_try;; 5763esac 5764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5765 (eval "$ac_compile") 2>conftest.er1 5766 ac_status=$? 5767 grep -v '^ *+' conftest.er1 >conftest.err 5768 rm -f conftest.er1 5769 cat conftest.err >&5 5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5771 (exit $ac_status); } && 5772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5773 { (case "(($ac_try" in 5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5775 *) ac_try_echo=$ac_try;; 5776esac 5777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5778 (eval "$ac_try") 2>&5 5779 ac_status=$? 5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5781 (exit $ac_status); }; } && 5782 { ac_try='test -s conftest.$ac_objext' 5783 { (case "(($ac_try" in 5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5785 *) ac_try_echo=$ac_try;; 5786esac 5787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5788 (eval "$ac_try") 2>&5 5789 ac_status=$? 5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5791 (exit $ac_status); }; }; then 5792 ac_cv_prog_cc_g=yes 5793else 5794 echo "$as_me: failed program was:" >&5 5795sed 's/^/| /' conftest.$ac_ext >&5 5796 5797 CFLAGS="" 5798 cat >conftest.$ac_ext <<_ACEOF 5799/* confdefs.h. */ 5800_ACEOF 5801cat confdefs.h >>conftest.$ac_ext 5802cat >>conftest.$ac_ext <<_ACEOF 5803/* end confdefs.h. */ 5804 5805int 5806main () 5807{ 5808 5809 ; 5810 return 0; 5811} 5812_ACEOF 5813rm -f conftest.$ac_objext 5814if { (ac_try="$ac_compile" 5815case "(($ac_try" in 5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5817 *) ac_try_echo=$ac_try;; 5818esac 5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5820 (eval "$ac_compile") 2>conftest.er1 5821 ac_status=$? 5822 grep -v '^ *+' conftest.er1 >conftest.err 5823 rm -f conftest.er1 5824 cat conftest.err >&5 5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5826 (exit $ac_status); } && 5827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5828 { (case "(($ac_try" in 5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5830 *) ac_try_echo=$ac_try;; 5831esac 5832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5833 (eval "$ac_try") 2>&5 5834 ac_status=$? 5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5836 (exit $ac_status); }; } && 5837 { ac_try='test -s conftest.$ac_objext' 5838 { (case "(($ac_try" in 5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5840 *) ac_try_echo=$ac_try;; 5841esac 5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5843 (eval "$ac_try") 2>&5 5844 ac_status=$? 5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5846 (exit $ac_status); }; }; then 5847 : 5848else 5849 echo "$as_me: failed program was:" >&5 5850sed 's/^/| /' conftest.$ac_ext >&5 5851 5852 ac_c_werror_flag=$ac_save_c_werror_flag 5853 CFLAGS="-g" 5854 cat >conftest.$ac_ext <<_ACEOF 5855/* confdefs.h. */ 5856_ACEOF 5857cat confdefs.h >>conftest.$ac_ext 5858cat >>conftest.$ac_ext <<_ACEOF 5859/* end confdefs.h. */ 5860 5861int 5862main () 5863{ 5864 5865 ; 5866 return 0; 5867} 5868_ACEOF 5869rm -f conftest.$ac_objext 5870if { (ac_try="$ac_compile" 5871case "(($ac_try" in 5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5873 *) ac_try_echo=$ac_try;; 5874esac 5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5876 (eval "$ac_compile") 2>conftest.er1 5877 ac_status=$? 5878 grep -v '^ *+' conftest.er1 >conftest.err 5879 rm -f conftest.er1 5880 cat conftest.err >&5 5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5882 (exit $ac_status); } && 5883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5884 { (case "(($ac_try" in 5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5886 *) ac_try_echo=$ac_try;; 5887esac 5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5889 (eval "$ac_try") 2>&5 5890 ac_status=$? 5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5892 (exit $ac_status); }; } && 5893 { ac_try='test -s conftest.$ac_objext' 5894 { (case "(($ac_try" in 5895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5896 *) ac_try_echo=$ac_try;; 5897esac 5898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5899 (eval "$ac_try") 2>&5 5900 ac_status=$? 5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5902 (exit $ac_status); }; }; then 5903 ac_cv_prog_cc_g=yes 5904else 5905 echo "$as_me: failed program was:" >&5 5906sed 's/^/| /' conftest.$ac_ext >&5 5907 5908 5909fi 5910 5911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5912fi 5913 5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5915fi 5916 5917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5918 ac_c_werror_flag=$ac_save_c_werror_flag 5919fi 5920{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 5921echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 5922if test "$ac_test_CFLAGS" = set; then 5923 CFLAGS=$ac_save_CFLAGS 5924elif test $ac_cv_prog_cc_g = yes; then 5925 if test "$GCC" = yes; then 5926 CFLAGS="-g -O2" 5927 else 5928 CFLAGS="-g" 5929 fi 5930else 5931 if test "$GCC" = yes; then 5932 CFLAGS="-O2" 5933 else 5934 CFLAGS= 5935 fi 5936fi 5937{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 5938echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 5939if test "${ac_cv_prog_cc_c89+set}" = set; then 5940 echo $ECHO_N "(cached) $ECHO_C" >&6 5941else 5942 ac_cv_prog_cc_c89=no 5943ac_save_CC=$CC 5944cat >conftest.$ac_ext <<_ACEOF 5945/* confdefs.h. */ 5946_ACEOF 5947cat confdefs.h >>conftest.$ac_ext 5948cat >>conftest.$ac_ext <<_ACEOF 5949/* end confdefs.h. */ 5950#include <stdarg.h> 5951#include <stdio.h> 5952#include <sys/types.h> 5953#include <sys/stat.h> 5954/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5955struct buf { int x; }; 5956FILE * (*rcsopen) (struct buf *, struct stat *, int); 5957static char *e (p, i) 5958 char **p; 5959 int i; 5960{ 5961 return p[i]; 5962} 5963static char *f (char * (*g) (char **, int), char **p, ...) 5964{ 5965 char *s; 5966 va_list v; 5967 va_start (v,p); 5968 s = g (p, va_arg (v,int)); 5969 va_end (v); 5970 return s; 5971} 5972 5973/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5974 function prototypes and stuff, but not '\xHH' hex character constants. 5975 These don't provoke an error unfortunately, instead are silently treated 5976 as 'x'. The following induces an error, until -std is added to get 5977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5978 array size at least. It's necessary to write '\x00'==0 to get something 5979 that's true only with -std. */ 5980int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5981 5982/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5983 inside strings and character constants. */ 5984#define FOO(x) 'x' 5985int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5986 5987int test (int i, double x); 5988struct s1 {int (*f) (int a);}; 5989struct s2 {int (*f) (double a);}; 5990int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5991int argc; 5992char **argv; 5993int 5994main () 5995{ 5996return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5997 ; 5998 return 0; 5999} 6000_ACEOF 6001for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6003do 6004 CC="$ac_save_CC $ac_arg" 6005 rm -f conftest.$ac_objext 6006if { (ac_try="$ac_compile" 6007case "(($ac_try" in 6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6009 *) ac_try_echo=$ac_try;; 6010esac 6011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6012 (eval "$ac_compile") 2>conftest.er1 6013 ac_status=$? 6014 grep -v '^ *+' conftest.er1 >conftest.err 6015 rm -f conftest.er1 6016 cat conftest.err >&5 6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6018 (exit $ac_status); } && 6019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6020 { (case "(($ac_try" in 6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6022 *) ac_try_echo=$ac_try;; 6023esac 6024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6025 (eval "$ac_try") 2>&5 6026 ac_status=$? 6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6028 (exit $ac_status); }; } && 6029 { ac_try='test -s conftest.$ac_objext' 6030 { (case "(($ac_try" in 6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6032 *) ac_try_echo=$ac_try;; 6033esac 6034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6035 (eval "$ac_try") 2>&5 6036 ac_status=$? 6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6038 (exit $ac_status); }; }; then 6039 ac_cv_prog_cc_c89=$ac_arg 6040else 6041 echo "$as_me: failed program was:" >&5 6042sed 's/^/| /' conftest.$ac_ext >&5 6043 6044 6045fi 6046 6047rm -f core conftest.err conftest.$ac_objext 6048 test "x$ac_cv_prog_cc_c89" != "xno" && break 6049done 6050rm -f conftest.$ac_ext 6051CC=$ac_save_CC 6052 6053fi 6054# AC_CACHE_VAL 6055case "x$ac_cv_prog_cc_c89" in 6056 x) 6057 { echo "$as_me:$LINENO: result: none needed" >&5 6058echo "${ECHO_T}none needed" >&6; } ;; 6059 xno) 6060 { echo "$as_me:$LINENO: result: unsupported" >&5 6061echo "${ECHO_T}unsupported" >&6; } ;; 6062 *) 6063 CC="$CC $ac_cv_prog_cc_c89" 6064 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 6065echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 6066esac 6067 6068 6069ac_ext=c 6070ac_cpp='$CPP $CPPFLAGS' 6071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6073ac_compiler_gnu=$ac_cv_c_compiler_gnu 6074 6075ac_ext=cpp 6076ac_cpp='$CXXCPP $CPPFLAGS' 6077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6080if test -z "$CXX"; then 6081 if test -n "$CCC"; then 6082 CXX=$CCC 6083 else 6084 if test -n "$ac_tool_prefix"; then 6085 for ac_prog in g++ 6086 do 6087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6088set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6089{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6091if test "${ac_cv_prog_CXX+set}" = set; then 6092 echo $ECHO_N "(cached) $ECHO_C" >&6 6093else 6094 if test -n "$CXX"; then 6095 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6096else 6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6098for as_dir in $PATH 6099do 6100 IFS=$as_save_IFS 6101 test -z "$as_dir" && as_dir=. 6102 for ac_exec_ext in '' $ac_executable_extensions; do 6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6104 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6106 break 2 6107 fi 6108done 6109done 6110IFS=$as_save_IFS 6111 6112fi 6113fi 6114CXX=$ac_cv_prog_CXX 6115if test -n "$CXX"; then 6116 { echo "$as_me:$LINENO: result: $CXX" >&5 6117echo "${ECHO_T}$CXX" >&6; } 6118else 6119 { echo "$as_me:$LINENO: result: no" >&5 6120echo "${ECHO_T}no" >&6; } 6121fi 6122 6123 6124 test -n "$CXX" && break 6125 done 6126fi 6127if test -z "$CXX"; then 6128 ac_ct_CXX=$CXX 6129 for ac_prog in g++ 6130do 6131 # Extract the first word of "$ac_prog", so it can be a program name with args. 6132set dummy $ac_prog; ac_word=$2 6133{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6135if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 6136 echo $ECHO_N "(cached) $ECHO_C" >&6 6137else 6138 if test -n "$ac_ct_CXX"; then 6139 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6140else 6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6142for as_dir in $PATH 6143do 6144 IFS=$as_save_IFS 6145 test -z "$as_dir" && as_dir=. 6146 for ac_exec_ext in '' $ac_executable_extensions; do 6147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6148 ac_cv_prog_ac_ct_CXX="$ac_prog" 6149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6150 break 2 6151 fi 6152done 6153done 6154IFS=$as_save_IFS 6155 6156fi 6157fi 6158ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6159if test -n "$ac_ct_CXX"; then 6160 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 6161echo "${ECHO_T}$ac_ct_CXX" >&6; } 6162else 6163 { echo "$as_me:$LINENO: result: no" >&5 6164echo "${ECHO_T}no" >&6; } 6165fi 6166 6167 6168 test -n "$ac_ct_CXX" && break 6169done 6170 6171 if test "x$ac_ct_CXX" = x; then 6172 CXX="g++" 6173 else 6174 case $cross_compiling:$ac_tool_warned in 6175yes:) 6176{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6177whose name does not start with the host triplet. If you think this 6178configuration is useful to you, please write to autoconf@gnu.org." >&5 6179echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6180whose name does not start with the host triplet. If you think this 6181configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6182ac_tool_warned=yes ;; 6183esac 6184 CXX=$ac_ct_CXX 6185 fi 6186fi 6187 6188 fi 6189fi 6190# Provide some information about the compiler. 6191echo "$as_me:$LINENO: checking for C++ compiler version" >&5 6192ac_compiler=`set X $ac_compile; echo $2` 6193{ (ac_try="$ac_compiler --version >&5" 6194case "(($ac_try" in 6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6196 *) ac_try_echo=$ac_try;; 6197esac 6198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6199 (eval "$ac_compiler --version >&5") 2>&5 6200 ac_status=$? 6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6202 (exit $ac_status); } 6203{ (ac_try="$ac_compiler -v >&5" 6204case "(($ac_try" in 6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6206 *) ac_try_echo=$ac_try;; 6207esac 6208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6209 (eval "$ac_compiler -v >&5") 2>&5 6210 ac_status=$? 6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6212 (exit $ac_status); } 6213{ (ac_try="$ac_compiler -V >&5" 6214case "(($ac_try" in 6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6216 *) ac_try_echo=$ac_try;; 6217esac 6218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6219 (eval "$ac_compiler -V >&5") 2>&5 6220 ac_status=$? 6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6222 (exit $ac_status); } 6223 6224{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 6225echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 6226if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 6227 echo $ECHO_N "(cached) $ECHO_C" >&6 6228else 6229 cat >conftest.$ac_ext <<_ACEOF 6230/* confdefs.h. */ 6231_ACEOF 6232cat confdefs.h >>conftest.$ac_ext 6233cat >>conftest.$ac_ext <<_ACEOF 6234/* end confdefs.h. */ 6235 6236int 6237main () 6238{ 6239#ifndef __GNUC__ 6240 choke me 6241#endif 6242 6243 ; 6244 return 0; 6245} 6246_ACEOF 6247rm -f conftest.$ac_objext 6248if { (ac_try="$ac_compile" 6249case "(($ac_try" in 6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6251 *) ac_try_echo=$ac_try;; 6252esac 6253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6254 (eval "$ac_compile") 2>conftest.er1 6255 ac_status=$? 6256 grep -v '^ *+' conftest.er1 >conftest.err 6257 rm -f conftest.er1 6258 cat conftest.err >&5 6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6260 (exit $ac_status); } && 6261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6262 { (case "(($ac_try" in 6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6264 *) ac_try_echo=$ac_try;; 6265esac 6266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6267 (eval "$ac_try") 2>&5 6268 ac_status=$? 6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6270 (exit $ac_status); }; } && 6271 { ac_try='test -s conftest.$ac_objext' 6272 { (case "(($ac_try" in 6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6274 *) ac_try_echo=$ac_try;; 6275esac 6276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6277 (eval "$ac_try") 2>&5 6278 ac_status=$? 6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6280 (exit $ac_status); }; }; then 6281 ac_compiler_gnu=yes 6282else 6283 echo "$as_me: failed program was:" >&5 6284sed 's/^/| /' conftest.$ac_ext >&5 6285 6286 ac_compiler_gnu=no 6287fi 6288 6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6290ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6291 6292fi 6293{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 6294echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 6295GXX=`test $ac_compiler_gnu = yes && echo yes` 6296ac_test_CXXFLAGS=${CXXFLAGS+set} 6297ac_save_CXXFLAGS=$CXXFLAGS 6298{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 6299echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 6300if test "${ac_cv_prog_cxx_g+set}" = set; then 6301 echo $ECHO_N "(cached) $ECHO_C" >&6 6302else 6303 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6304 ac_cxx_werror_flag=yes 6305 ac_cv_prog_cxx_g=no 6306 CXXFLAGS="-g" 6307 cat >conftest.$ac_ext <<_ACEOF 6308/* confdefs.h. */ 6309_ACEOF 6310cat confdefs.h >>conftest.$ac_ext 6311cat >>conftest.$ac_ext <<_ACEOF 6312/* end confdefs.h. */ 6313 6314int 6315main () 6316{ 6317 6318 ; 6319 return 0; 6320} 6321_ACEOF 6322rm -f conftest.$ac_objext 6323if { (ac_try="$ac_compile" 6324case "(($ac_try" in 6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6326 *) ac_try_echo=$ac_try;; 6327esac 6328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6329 (eval "$ac_compile") 2>conftest.er1 6330 ac_status=$? 6331 grep -v '^ *+' conftest.er1 >conftest.err 6332 rm -f conftest.er1 6333 cat conftest.err >&5 6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6335 (exit $ac_status); } && 6336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6337 { (case "(($ac_try" in 6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6339 *) ac_try_echo=$ac_try;; 6340esac 6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6342 (eval "$ac_try") 2>&5 6343 ac_status=$? 6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6345 (exit $ac_status); }; } && 6346 { ac_try='test -s conftest.$ac_objext' 6347 { (case "(($ac_try" in 6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6349 *) ac_try_echo=$ac_try;; 6350esac 6351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6352 (eval "$ac_try") 2>&5 6353 ac_status=$? 6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6355 (exit $ac_status); }; }; then 6356 ac_cv_prog_cxx_g=yes 6357else 6358 echo "$as_me: failed program was:" >&5 6359sed 's/^/| /' conftest.$ac_ext >&5 6360 6361 CXXFLAGS="" 6362 cat >conftest.$ac_ext <<_ACEOF 6363/* confdefs.h. */ 6364_ACEOF 6365cat confdefs.h >>conftest.$ac_ext 6366cat >>conftest.$ac_ext <<_ACEOF 6367/* end confdefs.h. */ 6368 6369int 6370main () 6371{ 6372 6373 ; 6374 return 0; 6375} 6376_ACEOF 6377rm -f conftest.$ac_objext 6378if { (ac_try="$ac_compile" 6379case "(($ac_try" in 6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6381 *) ac_try_echo=$ac_try;; 6382esac 6383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6384 (eval "$ac_compile") 2>conftest.er1 6385 ac_status=$? 6386 grep -v '^ *+' conftest.er1 >conftest.err 6387 rm -f conftest.er1 6388 cat conftest.err >&5 6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6390 (exit $ac_status); } && 6391 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6392 { (case "(($ac_try" in 6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6394 *) ac_try_echo=$ac_try;; 6395esac 6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6397 (eval "$ac_try") 2>&5 6398 ac_status=$? 6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6400 (exit $ac_status); }; } && 6401 { ac_try='test -s conftest.$ac_objext' 6402 { (case "(($ac_try" in 6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6404 *) ac_try_echo=$ac_try;; 6405esac 6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6407 (eval "$ac_try") 2>&5 6408 ac_status=$? 6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6410 (exit $ac_status); }; }; then 6411 : 6412else 6413 echo "$as_me: failed program was:" >&5 6414sed 's/^/| /' conftest.$ac_ext >&5 6415 6416 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6417 CXXFLAGS="-g" 6418 cat >conftest.$ac_ext <<_ACEOF 6419/* confdefs.h. */ 6420_ACEOF 6421cat confdefs.h >>conftest.$ac_ext 6422cat >>conftest.$ac_ext <<_ACEOF 6423/* end confdefs.h. */ 6424 6425int 6426main () 6427{ 6428 6429 ; 6430 return 0; 6431} 6432_ACEOF 6433rm -f conftest.$ac_objext 6434if { (ac_try="$ac_compile" 6435case "(($ac_try" in 6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6437 *) ac_try_echo=$ac_try;; 6438esac 6439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6440 (eval "$ac_compile") 2>conftest.er1 6441 ac_status=$? 6442 grep -v '^ *+' conftest.er1 >conftest.err 6443 rm -f conftest.er1 6444 cat conftest.err >&5 6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6446 (exit $ac_status); } && 6447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6448 { (case "(($ac_try" in 6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6450 *) ac_try_echo=$ac_try;; 6451esac 6452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6453 (eval "$ac_try") 2>&5 6454 ac_status=$? 6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6456 (exit $ac_status); }; } && 6457 { ac_try='test -s conftest.$ac_objext' 6458 { (case "(($ac_try" in 6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6460 *) ac_try_echo=$ac_try;; 6461esac 6462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6463 (eval "$ac_try") 2>&5 6464 ac_status=$? 6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6466 (exit $ac_status); }; }; then 6467 ac_cv_prog_cxx_g=yes 6468else 6469 echo "$as_me: failed program was:" >&5 6470sed 's/^/| /' conftest.$ac_ext >&5 6471 6472 6473fi 6474 6475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6476fi 6477 6478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6479fi 6480 6481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6482 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6483fi 6484{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 6485echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 6486if test "$ac_test_CXXFLAGS" = set; then 6487 CXXFLAGS=$ac_save_CXXFLAGS 6488elif test $ac_cv_prog_cxx_g = yes; then 6489 if test "$GXX" = yes; then 6490 CXXFLAGS="-g -O2" 6491 else 6492 CXXFLAGS="-g" 6493 fi 6494else 6495 if test "$GXX" = yes; then 6496 CXXFLAGS="-O2" 6497 else 6498 CXXFLAGS= 6499 fi 6500fi 6501ac_ext=c 6502ac_cpp='$CPP $CPPFLAGS' 6503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6505ac_compiler_gnu=$ac_cv_c_compiler_gnu 6506 6507 6508{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 6509echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 6510if test "${lt_cv_path_NM+set}" = set; then 6511 echo $ECHO_N "(cached) $ECHO_C" >&6 6512else 6513 if test -n "$NM"; then 6514 # Let the user override the test. 6515 lt_cv_path_NM="$NM" 6516else 6517 lt_nm_to_check="${ac_tool_prefix}nm" 6518 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6519 lt_nm_to_check="$lt_nm_to_check nm" 6520 fi 6521 for lt_tmp_nm in $lt_nm_to_check; do 6522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6523 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6524 IFS="$lt_save_ifs" 6525 test -z "$ac_dir" && ac_dir=. 6526 tmp_nm="$ac_dir/$lt_tmp_nm" 6527 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6528 # Check to see if the nm accepts a BSD-compat flag. 6529 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6530 # nm: unknown option "B" ignored 6531 # Tru64's nm complains that /dev/null is an invalid object file 6532 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6533 */dev/null* | *'Invalid file or object type'*) 6534 lt_cv_path_NM="$tmp_nm -B" 6535 break 6536 ;; 6537 *) 6538 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6539 */dev/null*) 6540 lt_cv_path_NM="$tmp_nm -p" 6541 break 6542 ;; 6543 *) 6544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6545 continue # so that we can try to find one that supports BSD flags 6546 ;; 6547 esac 6548 ;; 6549 esac 6550 fi 6551 done 6552 IFS="$lt_save_ifs" 6553 done 6554 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6555fi 6556fi 6557{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 6558echo "${ECHO_T}$lt_cv_path_NM" >&6; } 6559NM="$lt_cv_path_NM" 6560 6561 6562 6563{ echo "$as_me:$LINENO: checking for GNU make" >&5 6564echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 6565if test "${llvm_cv_gnu_make_command+set}" = set; then 6566 echo $ECHO_N "(cached) $ECHO_C" >&6 6567else 6568 llvm_cv_gnu_make_command='' 6569 for a in "$MAKE" make gmake gnumake ; do 6570 if test -z "$a" ; then continue ; fi ; 6571 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 6572 then 6573 llvm_cv_gnu_make_command=$a ; 6574 break; 6575 fi 6576 done 6577fi 6578{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 6579echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 6580 if test "x$llvm_cv_gnu_make_command" != "x" ; then 6581 ifGNUmake='' ; 6582 else 6583 ifGNUmake='#' ; 6584 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 6585echo "${ECHO_T}\"Not found\"" >&6; }; 6586 fi 6587 6588 6589{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 6590echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 6591LN_S=$as_ln_s 6592if test "$LN_S" = "ln -s"; then 6593 { echo "$as_me:$LINENO: result: yes" >&5 6594echo "${ECHO_T}yes" >&6; } 6595else 6596 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 6597echo "${ECHO_T}no, using $LN_S" >&6; } 6598fi 6599 6600# Extract the first word of "cmp", so it can be a program name with args. 6601set dummy cmp; ac_word=$2 6602{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6604if test "${ac_cv_path_CMP+set}" = set; then 6605 echo $ECHO_N "(cached) $ECHO_C" >&6 6606else 6607 case $CMP in 6608 [\\/]* | ?:[\\/]*) 6609 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6610 ;; 6611 *) 6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6613for as_dir in $PATH 6614do 6615 IFS=$as_save_IFS 6616 test -z "$as_dir" && as_dir=. 6617 for ac_exec_ext in '' $ac_executable_extensions; do 6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6619 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6621 break 2 6622 fi 6623done 6624done 6625IFS=$as_save_IFS 6626 6627 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6628 ;; 6629esac 6630fi 6631CMP=$ac_cv_path_CMP 6632if test -n "$CMP"; then 6633 { echo "$as_me:$LINENO: result: $CMP" >&5 6634echo "${ECHO_T}$CMP" >&6; } 6635else 6636 { echo "$as_me:$LINENO: result: no" >&5 6637echo "${ECHO_T}no" >&6; } 6638fi 6639 6640 6641# Extract the first word of "cp", so it can be a program name with args. 6642set dummy cp; ac_word=$2 6643{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6645if test "${ac_cv_path_CP+set}" = set; then 6646 echo $ECHO_N "(cached) $ECHO_C" >&6 6647else 6648 case $CP in 6649 [\\/]* | ?:[\\/]*) 6650 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6651 ;; 6652 *) 6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6654for as_dir in $PATH 6655do 6656 IFS=$as_save_IFS 6657 test -z "$as_dir" && as_dir=. 6658 for ac_exec_ext in '' $ac_executable_extensions; do 6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6660 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6662 break 2 6663 fi 6664done 6665done 6666IFS=$as_save_IFS 6667 6668 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 6669 ;; 6670esac 6671fi 6672CP=$ac_cv_path_CP 6673if test -n "$CP"; then 6674 { echo "$as_me:$LINENO: result: $CP" >&5 6675echo "${ECHO_T}$CP" >&6; } 6676else 6677 { echo "$as_me:$LINENO: result: no" >&5 6678echo "${ECHO_T}no" >&6; } 6679fi 6680 6681 6682# Extract the first word of "date", so it can be a program name with args. 6683set dummy date; ac_word=$2 6684{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6686if test "${ac_cv_path_DATE+set}" = set; then 6687 echo $ECHO_N "(cached) $ECHO_C" >&6 6688else 6689 case $DATE in 6690 [\\/]* | ?:[\\/]*) 6691 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6692 ;; 6693 *) 6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6695for as_dir in $PATH 6696do 6697 IFS=$as_save_IFS 6698 test -z "$as_dir" && as_dir=. 6699 for ac_exec_ext in '' $ac_executable_extensions; do 6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6701 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6703 break 2 6704 fi 6705done 6706done 6707IFS=$as_save_IFS 6708 6709 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 6710 ;; 6711esac 6712fi 6713DATE=$ac_cv_path_DATE 6714if test -n "$DATE"; then 6715 { echo "$as_me:$LINENO: result: $DATE" >&5 6716echo "${ECHO_T}$DATE" >&6; } 6717else 6718 { echo "$as_me:$LINENO: result: no" >&5 6719echo "${ECHO_T}no" >&6; } 6720fi 6721 6722 6723# Extract the first word of "find", so it can be a program name with args. 6724set dummy find; ac_word=$2 6725{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6727if test "${ac_cv_path_FIND+set}" = set; then 6728 echo $ECHO_N "(cached) $ECHO_C" >&6 6729else 6730 case $FIND in 6731 [\\/]* | ?:[\\/]*) 6732 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 6733 ;; 6734 *) 6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6736for as_dir in $PATH 6737do 6738 IFS=$as_save_IFS 6739 test -z "$as_dir" && as_dir=. 6740 for ac_exec_ext in '' $ac_executable_extensions; do 6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6742 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 6743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6744 break 2 6745 fi 6746done 6747done 6748IFS=$as_save_IFS 6749 6750 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 6751 ;; 6752esac 6753fi 6754FIND=$ac_cv_path_FIND 6755if test -n "$FIND"; then 6756 { echo "$as_me:$LINENO: result: $FIND" >&5 6757echo "${ECHO_T}$FIND" >&6; } 6758else 6759 { echo "$as_me:$LINENO: result: no" >&5 6760echo "${ECHO_T}no" >&6; } 6761fi 6762 6763 6764# Extract the first word of "grep", so it can be a program name with args. 6765set dummy grep; ac_word=$2 6766{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6768if test "${ac_cv_path_GREP+set}" = set; then 6769 echo $ECHO_N "(cached) $ECHO_C" >&6 6770else 6771 case $GREP in 6772 [\\/]* | ?:[\\/]*) 6773 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 6774 ;; 6775 *) 6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6777for as_dir in $PATH 6778do 6779 IFS=$as_save_IFS 6780 test -z "$as_dir" && as_dir=. 6781 for ac_exec_ext in '' $ac_executable_extensions; do 6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6783 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6785 break 2 6786 fi 6787done 6788done 6789IFS=$as_save_IFS 6790 6791 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 6792 ;; 6793esac 6794fi 6795GREP=$ac_cv_path_GREP 6796if test -n "$GREP"; then 6797 { echo "$as_me:$LINENO: result: $GREP" >&5 6798echo "${ECHO_T}$GREP" >&6; } 6799else 6800 { echo "$as_me:$LINENO: result: no" >&5 6801echo "${ECHO_T}no" >&6; } 6802fi 6803 6804 6805# Extract the first word of "mkdir", so it can be a program name with args. 6806set dummy mkdir; ac_word=$2 6807{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6809if test "${ac_cv_path_MKDIR+set}" = set; then 6810 echo $ECHO_N "(cached) $ECHO_C" >&6 6811else 6812 case $MKDIR in 6813 [\\/]* | ?:[\\/]*) 6814 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 6815 ;; 6816 *) 6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6818for as_dir in $PATH 6819do 6820 IFS=$as_save_IFS 6821 test -z "$as_dir" && as_dir=. 6822 for ac_exec_ext in '' $ac_executable_extensions; do 6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6824 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 6825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6826 break 2 6827 fi 6828done 6829done 6830IFS=$as_save_IFS 6831 6832 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 6833 ;; 6834esac 6835fi 6836MKDIR=$ac_cv_path_MKDIR 6837if test -n "$MKDIR"; then 6838 { echo "$as_me:$LINENO: result: $MKDIR" >&5 6839echo "${ECHO_T}$MKDIR" >&6; } 6840else 6841 { echo "$as_me:$LINENO: result: no" >&5 6842echo "${ECHO_T}no" >&6; } 6843fi 6844 6845 6846# Extract the first word of "mv", so it can be a program name with args. 6847set dummy mv; ac_word=$2 6848{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6850if test "${ac_cv_path_MV+set}" = set; then 6851 echo $ECHO_N "(cached) $ECHO_C" >&6 6852else 6853 case $MV in 6854 [\\/]* | ?:[\\/]*) 6855 ac_cv_path_MV="$MV" # Let the user override the test with a path. 6856 ;; 6857 *) 6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6859for as_dir in $PATH 6860do 6861 IFS=$as_save_IFS 6862 test -z "$as_dir" && as_dir=. 6863 for ac_exec_ext in '' $ac_executable_extensions; do 6864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6865 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 6866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6867 break 2 6868 fi 6869done 6870done 6871IFS=$as_save_IFS 6872 6873 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 6874 ;; 6875esac 6876fi 6877MV=$ac_cv_path_MV 6878if test -n "$MV"; then 6879 { echo "$as_me:$LINENO: result: $MV" >&5 6880echo "${ECHO_T}$MV" >&6; } 6881else 6882 { echo "$as_me:$LINENO: result: no" >&5 6883echo "${ECHO_T}no" >&6; } 6884fi 6885 6886 6887if test -n "$ac_tool_prefix"; then 6888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6889set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6890{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6892if test "${ac_cv_prog_RANLIB+set}" = set; then 6893 echo $ECHO_N "(cached) $ECHO_C" >&6 6894else 6895 if test -n "$RANLIB"; then 6896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6897else 6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6899for as_dir in $PATH 6900do 6901 IFS=$as_save_IFS 6902 test -z "$as_dir" && as_dir=. 6903 for ac_exec_ext in '' $ac_executable_extensions; do 6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6907 break 2 6908 fi 6909done 6910done 6911IFS=$as_save_IFS 6912 6913fi 6914fi 6915RANLIB=$ac_cv_prog_RANLIB 6916if test -n "$RANLIB"; then 6917 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6918echo "${ECHO_T}$RANLIB" >&6; } 6919else 6920 { echo "$as_me:$LINENO: result: no" >&5 6921echo "${ECHO_T}no" >&6; } 6922fi 6923 6924 6925fi 6926if test -z "$ac_cv_prog_RANLIB"; then 6927 ac_ct_RANLIB=$RANLIB 6928 # Extract the first word of "ranlib", so it can be a program name with args. 6929set dummy ranlib; ac_word=$2 6930{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6932if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6933 echo $ECHO_N "(cached) $ECHO_C" >&6 6934else 6935 if test -n "$ac_ct_RANLIB"; then 6936 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6937else 6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6939for as_dir in $PATH 6940do 6941 IFS=$as_save_IFS 6942 test -z "$as_dir" && as_dir=. 6943 for ac_exec_ext in '' $ac_executable_extensions; do 6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6945 ac_cv_prog_ac_ct_RANLIB="ranlib" 6946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6947 break 2 6948 fi 6949done 6950done 6951IFS=$as_save_IFS 6952 6953fi 6954fi 6955ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6956if test -n "$ac_ct_RANLIB"; then 6957 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6958echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6959else 6960 { echo "$as_me:$LINENO: result: no" >&5 6961echo "${ECHO_T}no" >&6; } 6962fi 6963 6964 if test "x$ac_ct_RANLIB" = x; then 6965 RANLIB=":" 6966 else 6967 case $cross_compiling:$ac_tool_warned in 6968yes:) 6969{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6970whose name does not start with the host triplet. If you think this 6971configuration is useful to you, please write to autoconf@gnu.org." >&5 6972echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6973whose name does not start with the host triplet. If you think this 6974configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6975ac_tool_warned=yes ;; 6976esac 6977 RANLIB=$ac_ct_RANLIB 6978 fi 6979else 6980 RANLIB="$ac_cv_prog_RANLIB" 6981fi 6982 6983if test -n "$ac_tool_prefix"; then 6984 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6985set dummy ${ac_tool_prefix}ar; ac_word=$2 6986{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6988if test "${ac_cv_prog_AR+set}" = set; then 6989 echo $ECHO_N "(cached) $ECHO_C" >&6 6990else 6991 if test -n "$AR"; then 6992 ac_cv_prog_AR="$AR" # Let the user override the test. 6993else 6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6995for as_dir in $PATH 6996do 6997 IFS=$as_save_IFS 6998 test -z "$as_dir" && as_dir=. 6999 for ac_exec_ext in '' $ac_executable_extensions; do 7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7001 ac_cv_prog_AR="${ac_tool_prefix}ar" 7002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7003 break 2 7004 fi 7005done 7006done 7007IFS=$as_save_IFS 7008 7009fi 7010fi 7011AR=$ac_cv_prog_AR 7012if test -n "$AR"; then 7013 { echo "$as_me:$LINENO: result: $AR" >&5 7014echo "${ECHO_T}$AR" >&6; } 7015else 7016 { echo "$as_me:$LINENO: result: no" >&5 7017echo "${ECHO_T}no" >&6; } 7018fi 7019 7020 7021fi 7022if test -z "$ac_cv_prog_AR"; then 7023 ac_ct_AR=$AR 7024 # Extract the first word of "ar", so it can be a program name with args. 7025set dummy ar; ac_word=$2 7026{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7028if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 7029 echo $ECHO_N "(cached) $ECHO_C" >&6 7030else 7031 if test -n "$ac_ct_AR"; then 7032 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7033else 7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7035for as_dir in $PATH 7036do 7037 IFS=$as_save_IFS 7038 test -z "$as_dir" && as_dir=. 7039 for ac_exec_ext in '' $ac_executable_extensions; do 7040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7041 ac_cv_prog_ac_ct_AR="ar" 7042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7043 break 2 7044 fi 7045done 7046done 7047IFS=$as_save_IFS 7048 7049fi 7050fi 7051ac_ct_AR=$ac_cv_prog_ac_ct_AR 7052if test -n "$ac_ct_AR"; then 7053 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 7054echo "${ECHO_T}$ac_ct_AR" >&6; } 7055else 7056 { echo "$as_me:$LINENO: result: no" >&5 7057echo "${ECHO_T}no" >&6; } 7058fi 7059 7060 if test "x$ac_ct_AR" = x; then 7061 AR="false" 7062 else 7063 case $cross_compiling:$ac_tool_warned in 7064yes:) 7065{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7066whose name does not start with the host triplet. If you think this 7067configuration is useful to you, please write to autoconf@gnu.org." >&5 7068echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7069whose name does not start with the host triplet. If you think this 7070configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7071ac_tool_warned=yes ;; 7072esac 7073 AR=$ac_ct_AR 7074 fi 7075else 7076 AR="$ac_cv_prog_AR" 7077fi 7078 7079# Extract the first word of "rm", so it can be a program name with args. 7080set dummy rm; ac_word=$2 7081{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7083if test "${ac_cv_path_RM+set}" = set; then 7084 echo $ECHO_N "(cached) $ECHO_C" >&6 7085else 7086 case $RM in 7087 [\\/]* | ?:[\\/]*) 7088 ac_cv_path_RM="$RM" # Let the user override the test with a path. 7089 ;; 7090 *) 7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7092for as_dir in $PATH 7093do 7094 IFS=$as_save_IFS 7095 test -z "$as_dir" && as_dir=. 7096 for ac_exec_ext in '' $ac_executable_extensions; do 7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7098 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 7099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7100 break 2 7101 fi 7102done 7103done 7104IFS=$as_save_IFS 7105 7106 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 7107 ;; 7108esac 7109fi 7110RM=$ac_cv_path_RM 7111if test -n "$RM"; then 7112 { echo "$as_me:$LINENO: result: $RM" >&5 7113echo "${ECHO_T}$RM" >&6; } 7114else 7115 { echo "$as_me:$LINENO: result: no" >&5 7116echo "${ECHO_T}no" >&6; } 7117fi 7118 7119 7120# Extract the first word of "sed", so it can be a program name with args. 7121set dummy sed; ac_word=$2 7122{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7124if test "${ac_cv_path_SED+set}" = set; then 7125 echo $ECHO_N "(cached) $ECHO_C" >&6 7126else 7127 case $SED in 7128 [\\/]* | ?:[\\/]*) 7129 ac_cv_path_SED="$SED" # Let the user override the test with a path. 7130 ;; 7131 *) 7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7133for as_dir in $PATH 7134do 7135 IFS=$as_save_IFS 7136 test -z "$as_dir" && as_dir=. 7137 for ac_exec_ext in '' $ac_executable_extensions; do 7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7139 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7141 break 2 7142 fi 7143done 7144done 7145IFS=$as_save_IFS 7146 7147 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 7148 ;; 7149esac 7150fi 7151SED=$ac_cv_path_SED 7152if test -n "$SED"; then 7153 { echo "$as_me:$LINENO: result: $SED" >&5 7154echo "${ECHO_T}$SED" >&6; } 7155else 7156 { echo "$as_me:$LINENO: result: no" >&5 7157echo "${ECHO_T}no" >&6; } 7158fi 7159 7160 7161# Extract the first word of "tar", so it can be a program name with args. 7162set dummy tar; ac_word=$2 7163{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7165if test "${ac_cv_path_TAR+set}" = set; then 7166 echo $ECHO_N "(cached) $ECHO_C" >&6 7167else 7168 case $TAR in 7169 [\\/]* | ?:[\\/]*) 7170 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 7171 ;; 7172 *) 7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7174for as_dir in $PATH 7175do 7176 IFS=$as_save_IFS 7177 test -z "$as_dir" && as_dir=. 7178 for ac_exec_ext in '' $ac_executable_extensions; do 7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7180 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7182 break 2 7183 fi 7184done 7185done 7186IFS=$as_save_IFS 7187 7188 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 7189 ;; 7190esac 7191fi 7192TAR=$ac_cv_path_TAR 7193if test -n "$TAR"; then 7194 { echo "$as_me:$LINENO: result: $TAR" >&5 7195echo "${ECHO_T}$TAR" >&6; } 7196else 7197 { echo "$as_me:$LINENO: result: no" >&5 7198echo "${ECHO_T}no" >&6; } 7199fi 7200 7201 7202# Extract the first word of "pwd", so it can be a program name with args. 7203set dummy pwd; ac_word=$2 7204{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7206if test "${ac_cv_path_BINPWD+set}" = set; then 7207 echo $ECHO_N "(cached) $ECHO_C" >&6 7208else 7209 case $BINPWD in 7210 [\\/]* | ?:[\\/]*) 7211 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 7212 ;; 7213 *) 7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7215for as_dir in $PATH 7216do 7217 IFS=$as_save_IFS 7218 test -z "$as_dir" && as_dir=. 7219 for ac_exec_ext in '' $ac_executable_extensions; do 7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7221 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7223 break 2 7224 fi 7225done 7226done 7227IFS=$as_save_IFS 7228 7229 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 7230 ;; 7231esac 7232fi 7233BINPWD=$ac_cv_path_BINPWD 7234if test -n "$BINPWD"; then 7235 { echo "$as_me:$LINENO: result: $BINPWD" >&5 7236echo "${ECHO_T}$BINPWD" >&6; } 7237else 7238 { echo "$as_me:$LINENO: result: no" >&5 7239echo "${ECHO_T}no" >&6; } 7240fi 7241 7242 7243 7244# Extract the first word of "Graphviz", so it can be a program name with args. 7245set dummy Graphviz; ac_word=$2 7246{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7248if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 7249 echo $ECHO_N "(cached) $ECHO_C" >&6 7250else 7251 case $GRAPHVIZ in 7252 [\\/]* | ?:[\\/]*) 7253 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 7254 ;; 7255 *) 7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7257for as_dir in $PATH 7258do 7259 IFS=$as_save_IFS 7260 test -z "$as_dir" && as_dir=. 7261 for ac_exec_ext in '' $ac_executable_extensions; do 7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7263 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7265 break 2 7266 fi 7267done 7268done 7269IFS=$as_save_IFS 7270 7271 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 7272 ;; 7273esac 7274fi 7275GRAPHVIZ=$ac_cv_path_GRAPHVIZ 7276if test -n "$GRAPHVIZ"; then 7277 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 7278echo "${ECHO_T}$GRAPHVIZ" >&6; } 7279else 7280 { echo "$as_me:$LINENO: result: no" >&5 7281echo "${ECHO_T}no" >&6; } 7282fi 7283 7284 7285if test "$GRAPHVIZ" != "echo Graphviz" ; then 7286 7287cat >>confdefs.h <<\_ACEOF 7288#define HAVE_GRAPHVIZ 1 7289_ACEOF 7290 7291 if test "$llvm_cv_os_type" = "MingW" ; then 7292 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7293 fi 7294 7295cat >>confdefs.h <<_ACEOF 7296#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 7297_ACEOF 7298 7299fi 7300# Extract the first word of "dot", so it can be a program name with args. 7301set dummy dot; ac_word=$2 7302{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7304if test "${ac_cv_path_DOT+set}" = set; then 7305 echo $ECHO_N "(cached) $ECHO_C" >&6 7306else 7307 case $DOT in 7308 [\\/]* | ?:[\\/]*) 7309 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 7310 ;; 7311 *) 7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7313for as_dir in $PATH 7314do 7315 IFS=$as_save_IFS 7316 test -z "$as_dir" && as_dir=. 7317 for ac_exec_ext in '' $ac_executable_extensions; do 7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7319 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7321 break 2 7322 fi 7323done 7324done 7325IFS=$as_save_IFS 7326 7327 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 7328 ;; 7329esac 7330fi 7331DOT=$ac_cv_path_DOT 7332if test -n "$DOT"; then 7333 { echo "$as_me:$LINENO: result: $DOT" >&5 7334echo "${ECHO_T}$DOT" >&6; } 7335else 7336 { echo "$as_me:$LINENO: result: no" >&5 7337echo "${ECHO_T}no" >&6; } 7338fi 7339 7340 7341if test "$DOT" != "echo dot" ; then 7342 7343cat >>confdefs.h <<\_ACEOF 7344#define HAVE_DOT 1 7345_ACEOF 7346 7347 if test "$llvm_cv_os_type" = "MingW" ; then 7348 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7349 fi 7350 7351cat >>confdefs.h <<_ACEOF 7352#define LLVM_PATH_DOT "$DOT${EXEEXT}" 7353_ACEOF 7354 7355fi 7356# Extract the first word of "fdp", so it can be a program name with args. 7357set dummy fdp; ac_word=$2 7358{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7360if test "${ac_cv_path_FDP+set}" = set; then 7361 echo $ECHO_N "(cached) $ECHO_C" >&6 7362else 7363 case $FDP in 7364 [\\/]* | ?:[\\/]*) 7365 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 7366 ;; 7367 *) 7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7369for as_dir in $PATH 7370do 7371 IFS=$as_save_IFS 7372 test -z "$as_dir" && as_dir=. 7373 for ac_exec_ext in '' $ac_executable_extensions; do 7374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7375 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7377 break 2 7378 fi 7379done 7380done 7381IFS=$as_save_IFS 7382 7383 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 7384 ;; 7385esac 7386fi 7387FDP=$ac_cv_path_FDP 7388if test -n "$FDP"; then 7389 { echo "$as_me:$LINENO: result: $FDP" >&5 7390echo "${ECHO_T}$FDP" >&6; } 7391else 7392 { echo "$as_me:$LINENO: result: no" >&5 7393echo "${ECHO_T}no" >&6; } 7394fi 7395 7396 7397if test "$FDP" != "echo fdp" ; then 7398 7399cat >>confdefs.h <<\_ACEOF 7400#define HAVE_FDP 1 7401_ACEOF 7402 7403 if test "$llvm_cv_os_type" = "MingW" ; then 7404 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7405 fi 7406 7407cat >>confdefs.h <<_ACEOF 7408#define LLVM_PATH_FDP "$FDP${EXEEXT}" 7409_ACEOF 7410 7411fi 7412# Extract the first word of "neato", so it can be a program name with args. 7413set dummy neato; ac_word=$2 7414{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7416if test "${ac_cv_path_NEATO+set}" = set; then 7417 echo $ECHO_N "(cached) $ECHO_C" >&6 7418else 7419 case $NEATO in 7420 [\\/]* | ?:[\\/]*) 7421 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 7422 ;; 7423 *) 7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7425for as_dir in $PATH 7426do 7427 IFS=$as_save_IFS 7428 test -z "$as_dir" && as_dir=. 7429 for ac_exec_ext in '' $ac_executable_extensions; do 7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7431 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7433 break 2 7434 fi 7435done 7436done 7437IFS=$as_save_IFS 7438 7439 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 7440 ;; 7441esac 7442fi 7443NEATO=$ac_cv_path_NEATO 7444if test -n "$NEATO"; then 7445 { echo "$as_me:$LINENO: result: $NEATO" >&5 7446echo "${ECHO_T}$NEATO" >&6; } 7447else 7448 { echo "$as_me:$LINENO: result: no" >&5 7449echo "${ECHO_T}no" >&6; } 7450fi 7451 7452 7453if test "$NEATO" != "echo neato" ; then 7454 7455cat >>confdefs.h <<\_ACEOF 7456#define HAVE_NEATO 1 7457_ACEOF 7458 7459 if test "$llvm_cv_os_type" = "MingW" ; then 7460 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7461 fi 7462 7463cat >>confdefs.h <<_ACEOF 7464#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 7465_ACEOF 7466 7467fi 7468# Extract the first word of "twopi", so it can be a program name with args. 7469set dummy twopi; ac_word=$2 7470{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7472if test "${ac_cv_path_TWOPI+set}" = set; then 7473 echo $ECHO_N "(cached) $ECHO_C" >&6 7474else 7475 case $TWOPI in 7476 [\\/]* | ?:[\\/]*) 7477 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 7478 ;; 7479 *) 7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7481for as_dir in $PATH 7482do 7483 IFS=$as_save_IFS 7484 test -z "$as_dir" && as_dir=. 7485 for ac_exec_ext in '' $ac_executable_extensions; do 7486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7487 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 7488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7489 break 2 7490 fi 7491done 7492done 7493IFS=$as_save_IFS 7494 7495 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 7496 ;; 7497esac 7498fi 7499TWOPI=$ac_cv_path_TWOPI 7500if test -n "$TWOPI"; then 7501 { echo "$as_me:$LINENO: result: $TWOPI" >&5 7502echo "${ECHO_T}$TWOPI" >&6; } 7503else 7504 { echo "$as_me:$LINENO: result: no" >&5 7505echo "${ECHO_T}no" >&6; } 7506fi 7507 7508 7509if test "$TWOPI" != "echo twopi" ; then 7510 7511cat >>confdefs.h <<\_ACEOF 7512#define HAVE_TWOPI 1 7513_ACEOF 7514 7515 if test "$llvm_cv_os_type" = "MingW" ; then 7516 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7517 fi 7518 7519cat >>confdefs.h <<_ACEOF 7520#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 7521_ACEOF 7522 7523fi 7524# Extract the first word of "circo", so it can be a program name with args. 7525set dummy circo; ac_word=$2 7526{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7528if test "${ac_cv_path_CIRCO+set}" = set; then 7529 echo $ECHO_N "(cached) $ECHO_C" >&6 7530else 7531 case $CIRCO in 7532 [\\/]* | ?:[\\/]*) 7533 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 7534 ;; 7535 *) 7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7537for as_dir in $PATH 7538do 7539 IFS=$as_save_IFS 7540 test -z "$as_dir" && as_dir=. 7541 for ac_exec_ext in '' $ac_executable_extensions; do 7542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7543 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 7544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7545 break 2 7546 fi 7547done 7548done 7549IFS=$as_save_IFS 7550 7551 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 7552 ;; 7553esac 7554fi 7555CIRCO=$ac_cv_path_CIRCO 7556if test -n "$CIRCO"; then 7557 { echo "$as_me:$LINENO: result: $CIRCO" >&5 7558echo "${ECHO_T}$CIRCO" >&6; } 7559else 7560 { echo "$as_me:$LINENO: result: no" >&5 7561echo "${ECHO_T}no" >&6; } 7562fi 7563 7564 7565if test "$CIRCO" != "echo circo" ; then 7566 7567cat >>confdefs.h <<\_ACEOF 7568#define HAVE_CIRCO 1 7569_ACEOF 7570 7571 if test "$llvm_cv_os_type" = "MingW" ; then 7572 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7573 fi 7574 7575cat >>confdefs.h <<_ACEOF 7576#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 7577_ACEOF 7578 7579fi 7580for ac_prog in gv gsview32 7581do 7582 # Extract the first word of "$ac_prog", so it can be a program name with args. 7583set dummy $ac_prog; ac_word=$2 7584{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7586if test "${ac_cv_path_GV+set}" = set; then 7587 echo $ECHO_N "(cached) $ECHO_C" >&6 7588else 7589 case $GV in 7590 [\\/]* | ?:[\\/]*) 7591 ac_cv_path_GV="$GV" # Let the user override the test with a path. 7592 ;; 7593 *) 7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7595for as_dir in $PATH 7596do 7597 IFS=$as_save_IFS 7598 test -z "$as_dir" && as_dir=. 7599 for ac_exec_ext in '' $ac_executable_extensions; do 7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7601 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 7602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7603 break 2 7604 fi 7605done 7606done 7607IFS=$as_save_IFS 7608 7609 ;; 7610esac 7611fi 7612GV=$ac_cv_path_GV 7613if test -n "$GV"; then 7614 { echo "$as_me:$LINENO: result: $GV" >&5 7615echo "${ECHO_T}$GV" >&6; } 7616else 7617 { echo "$as_me:$LINENO: result: no" >&5 7618echo "${ECHO_T}no" >&6; } 7619fi 7620 7621 7622 test -n "$GV" && break 7623done 7624test -n "$GV" || GV="echo gv" 7625 7626if test "$GV" != "echo gv" ; then 7627 7628cat >>confdefs.h <<\_ACEOF 7629#define HAVE_GV 1 7630_ACEOF 7631 7632 if test "$llvm_cv_os_type" = "MingW" ; then 7633 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7634 fi 7635 7636cat >>confdefs.h <<_ACEOF 7637#define LLVM_PATH_GV "$GV${EXEEXT}" 7638_ACEOF 7639 7640fi 7641# Extract the first word of "dotty", so it can be a program name with args. 7642set dummy dotty; ac_word=$2 7643{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7645if test "${ac_cv_path_DOTTY+set}" = set; then 7646 echo $ECHO_N "(cached) $ECHO_C" >&6 7647else 7648 case $DOTTY in 7649 [\\/]* | ?:[\\/]*) 7650 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 7651 ;; 7652 *) 7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7654for as_dir in $PATH 7655do 7656 IFS=$as_save_IFS 7657 test -z "$as_dir" && as_dir=. 7658 for ac_exec_ext in '' $ac_executable_extensions; do 7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7660 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 7661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7662 break 2 7663 fi 7664done 7665done 7666IFS=$as_save_IFS 7667 7668 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 7669 ;; 7670esac 7671fi 7672DOTTY=$ac_cv_path_DOTTY 7673if test -n "$DOTTY"; then 7674 { echo "$as_me:$LINENO: result: $DOTTY" >&5 7675echo "${ECHO_T}$DOTTY" >&6; } 7676else 7677 { echo "$as_me:$LINENO: result: no" >&5 7678echo "${ECHO_T}no" >&6; } 7679fi 7680 7681 7682if test "$DOTTY" != "echo dotty" ; then 7683 7684cat >>confdefs.h <<\_ACEOF 7685#define HAVE_DOTTY 1 7686_ACEOF 7687 7688 if test "$llvm_cv_os_type" = "MingW" ; then 7689 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 7690 fi 7691 7692cat >>confdefs.h <<_ACEOF 7693#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 7694_ACEOF 7695 7696fi 7697 7698 7699# Extract the first word of "perl", so it can be a program name with args. 7700set dummy perl; ac_word=$2 7701{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7703if test "${ac_cv_path_PERL+set}" = set; then 7704 echo $ECHO_N "(cached) $ECHO_C" >&6 7705else 7706 case $PERL in 7707 [\\/]* | ?:[\\/]*) 7708 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7709 ;; 7710 *) 7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7712for as_dir in $PATH 7713do 7714 IFS=$as_save_IFS 7715 test -z "$as_dir" && as_dir=. 7716 for ac_exec_ext in '' $ac_executable_extensions; do 7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7718 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 7719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7720 break 2 7721 fi 7722done 7723done 7724IFS=$as_save_IFS 7725 7726 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" 7727 ;; 7728esac 7729fi 7730PERL=$ac_cv_path_PERL 7731if test -n "$PERL"; then 7732 { echo "$as_me:$LINENO: result: $PERL" >&5 7733echo "${ECHO_T}$PERL" >&6; } 7734else 7735 { echo "$as_me:$LINENO: result: no" >&5 7736echo "${ECHO_T}no" >&6; } 7737fi 7738 7739 7740if test "$PERL" != "none"; then 7741 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5 7742echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; } 7743 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then 7744 { echo "$as_me:$LINENO: result: yes" >&5 7745echo "${ECHO_T}yes" >&6; } 7746 else 7747 PERL=none 7748 { echo "$as_me:$LINENO: result: not found" >&5 7749echo "${ECHO_T}not found" >&6; } 7750 fi 7751fi 7752 7753 7754if test x"$PERL" = xnone; then 7755 HAVE_PERL=0 7756 7757 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5 7758echo "$as_me: error: perl is required but was not found, please install it" >&2;} 7759 { (exit 1); exit 1; }; } 7760else 7761 HAVE_PERL=1 7762 7763fi 7764 7765# Find a good install program. We prefer a C program (faster), 7766# so one script is as good as another. But avoid the broken or 7767# incompatible versions: 7768# SysV /etc/install, /usr/sbin/install 7769# SunOS /usr/etc/install 7770# IRIX /sbin/install 7771# AIX /bin/install 7772# AmigaOS /C/install, which installs bootblocks on floppy discs 7773# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 7774# AFS /usr/afsws/bin/install, which mishandles nonexistent args 7775# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 7776# OS/2's system install, which has a completely different semantic 7777# ./install, which can be erroneously created by make from ./install.sh. 7778{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 7779echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 7780if test -z "$INSTALL"; then 7781if test "${ac_cv_path_install+set}" = set; then 7782 echo $ECHO_N "(cached) $ECHO_C" >&6 7783else 7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7785for as_dir in $PATH 7786do 7787 IFS=$as_save_IFS 7788 test -z "$as_dir" && as_dir=. 7789 # Account for people who put trailing slashes in PATH elements. 7790case $as_dir/ in 7791 ./ | .// | /cC/* | \ 7792 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 7793 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 7794 /usr/ucb/* ) ;; 7795 *) 7796 # OSF1 and SCO ODT 3.0 have their own names for install. 7797 # Don't use installbsd from OSF since it installs stuff as root 7798 # by default. 7799 for ac_prog in ginstall scoinst install; do 7800 for ac_exec_ext in '' $ac_executable_extensions; do 7801 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 7802 if test $ac_prog = install && 7803 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7804 # AIX install. It has an incompatible calling convention. 7805 : 7806 elif test $ac_prog = install && 7807 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 7808 # program-specific install script used by HP pwplus--don't use. 7809 : 7810 else 7811 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 7812 break 3 7813 fi 7814 fi 7815 done 7816 done 7817 ;; 7818esac 7819done 7820IFS=$as_save_IFS 7821 7822 7823fi 7824 if test "${ac_cv_path_install+set}" = set; then 7825 INSTALL=$ac_cv_path_install 7826 else 7827 # As a last resort, use the slow shell script. Don't cache a 7828 # value for INSTALL within a source directory, because that will 7829 # break other packages using the cache if that directory is 7830 # removed, or if the value is a relative name. 7831 INSTALL=$ac_install_sh 7832 fi 7833fi 7834{ echo "$as_me:$LINENO: result: $INSTALL" >&5 7835echo "${ECHO_T}$INSTALL" >&6; } 7836 7837# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 7838# It thinks the first close brace ends the variable substitution. 7839test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 7840 7841test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 7842 7843test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 7844 7845 7846# Extract the first word of "bzip2", so it can be a program name with args. 7847set dummy bzip2; ac_word=$2 7848{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7850if test "${ac_cv_path_BZIP2+set}" = set; then 7851 echo $ECHO_N "(cached) $ECHO_C" >&6 7852else 7853 case $BZIP2 in 7854 [\\/]* | ?:[\\/]*) 7855 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 7856 ;; 7857 *) 7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7859for as_dir in $PATH 7860do 7861 IFS=$as_save_IFS 7862 test -z "$as_dir" && as_dir=. 7863 for ac_exec_ext in '' $ac_executable_extensions; do 7864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7865 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 7866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7867 break 2 7868 fi 7869done 7870done 7871IFS=$as_save_IFS 7872 7873 ;; 7874esac 7875fi 7876BZIP2=$ac_cv_path_BZIP2 7877if test -n "$BZIP2"; then 7878 { echo "$as_me:$LINENO: result: $BZIP2" >&5 7879echo "${ECHO_T}$BZIP2" >&6; } 7880else 7881 { echo "$as_me:$LINENO: result: no" >&5 7882echo "${ECHO_T}no" >&6; } 7883fi 7884 7885 7886# Extract the first word of "doxygen", so it can be a program name with args. 7887set dummy doxygen; ac_word=$2 7888{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7890if test "${ac_cv_path_DOXYGEN+set}" = set; then 7891 echo $ECHO_N "(cached) $ECHO_C" >&6 7892else 7893 case $DOXYGEN in 7894 [\\/]* | ?:[\\/]*) 7895 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7896 ;; 7897 *) 7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7899for as_dir in $PATH 7900do 7901 IFS=$as_save_IFS 7902 test -z "$as_dir" && as_dir=. 7903 for ac_exec_ext in '' $ac_executable_extensions; do 7904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7905 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7907 break 2 7908 fi 7909done 7910done 7911IFS=$as_save_IFS 7912 7913 ;; 7914esac 7915fi 7916DOXYGEN=$ac_cv_path_DOXYGEN 7917if test -n "$DOXYGEN"; then 7918 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7919echo "${ECHO_T}$DOXYGEN" >&6; } 7920else 7921 { echo "$as_me:$LINENO: result: no" >&5 7922echo "${ECHO_T}no" >&6; } 7923fi 7924 7925 7926# Extract the first word of "groff", so it can be a program name with args. 7927set dummy groff; ac_word=$2 7928{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7930if test "${ac_cv_path_GROFF+set}" = set; then 7931 echo $ECHO_N "(cached) $ECHO_C" >&6 7932else 7933 case $GROFF in 7934 [\\/]* | ?:[\\/]*) 7935 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7936 ;; 7937 *) 7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7939for as_dir in $PATH 7940do 7941 IFS=$as_save_IFS 7942 test -z "$as_dir" && as_dir=. 7943 for ac_exec_ext in '' $ac_executable_extensions; do 7944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7945 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7947 break 2 7948 fi 7949done 7950done 7951IFS=$as_save_IFS 7952 7953 ;; 7954esac 7955fi 7956GROFF=$ac_cv_path_GROFF 7957if test -n "$GROFF"; then 7958 { echo "$as_me:$LINENO: result: $GROFF" >&5 7959echo "${ECHO_T}$GROFF" >&6; } 7960else 7961 { echo "$as_me:$LINENO: result: no" >&5 7962echo "${ECHO_T}no" >&6; } 7963fi 7964 7965 7966# Extract the first word of "gzip", so it can be a program name with args. 7967set dummy gzip; ac_word=$2 7968{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7970if test "${ac_cv_path_GZIP+set}" = set; then 7971 echo $ECHO_N "(cached) $ECHO_C" >&6 7972else 7973 case $GZIP in 7974 [\\/]* | ?:[\\/]*) 7975 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 7976 ;; 7977 *) 7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7979for as_dir in $PATH 7980do 7981 IFS=$as_save_IFS 7982 test -z "$as_dir" && as_dir=. 7983 for ac_exec_ext in '' $ac_executable_extensions; do 7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7985 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 7986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7987 break 2 7988 fi 7989done 7990done 7991IFS=$as_save_IFS 7992 7993 ;; 7994esac 7995fi 7996GZIP=$ac_cv_path_GZIP 7997if test -n "$GZIP"; then 7998 { echo "$as_me:$LINENO: result: $GZIP" >&5 7999echo "${ECHO_T}$GZIP" >&6; } 8000else 8001 { echo "$as_me:$LINENO: result: no" >&5 8002echo "${ECHO_T}no" >&6; } 8003fi 8004 8005 8006# Extract the first word of "pod2html", so it can be a program name with args. 8007set dummy pod2html; ac_word=$2 8008{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8010if test "${ac_cv_path_POD2HTML+set}" = set; then 8011 echo $ECHO_N "(cached) $ECHO_C" >&6 8012else 8013 case $POD2HTML in 8014 [\\/]* | ?:[\\/]*) 8015 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. 8016 ;; 8017 *) 8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8019for as_dir in $PATH 8020do 8021 IFS=$as_save_IFS 8022 test -z "$as_dir" && as_dir=. 8023 for ac_exec_ext in '' $ac_executable_extensions; do 8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8025 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" 8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8027 break 2 8028 fi 8029done 8030done 8031IFS=$as_save_IFS 8032 8033 ;; 8034esac 8035fi 8036POD2HTML=$ac_cv_path_POD2HTML 8037if test -n "$POD2HTML"; then 8038 { echo "$as_me:$LINENO: result: $POD2HTML" >&5 8039echo "${ECHO_T}$POD2HTML" >&6; } 8040else 8041 { echo "$as_me:$LINENO: result: no" >&5 8042echo "${ECHO_T}no" >&6; } 8043fi 8044 8045 8046# Extract the first word of "pod2man", so it can be a program name with args. 8047set dummy pod2man; ac_word=$2 8048{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8050if test "${ac_cv_path_POD2MAN+set}" = set; then 8051 echo $ECHO_N "(cached) $ECHO_C" >&6 8052else 8053 case $POD2MAN in 8054 [\\/]* | ?:[\\/]*) 8055 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. 8056 ;; 8057 *) 8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8059for as_dir in $PATH 8060do 8061 IFS=$as_save_IFS 8062 test -z "$as_dir" && as_dir=. 8063 for ac_exec_ext in '' $ac_executable_extensions; do 8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8065 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" 8066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8067 break 2 8068 fi 8069done 8070done 8071IFS=$as_save_IFS 8072 8073 ;; 8074esac 8075fi 8076POD2MAN=$ac_cv_path_POD2MAN 8077if test -n "$POD2MAN"; then 8078 { echo "$as_me:$LINENO: result: $POD2MAN" >&5 8079echo "${ECHO_T}$POD2MAN" >&6; } 8080else 8081 { echo "$as_me:$LINENO: result: no" >&5 8082echo "${ECHO_T}no" >&6; } 8083fi 8084 8085 8086# Extract the first word of "runtest", so it can be a program name with args. 8087set dummy runtest; ac_word=$2 8088{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8090if test "${ac_cv_path_RUNTEST+set}" = set; then 8091 echo $ECHO_N "(cached) $ECHO_C" >&6 8092else 8093 case $RUNTEST in 8094 [\\/]* | ?:[\\/]*) 8095 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. 8096 ;; 8097 *) 8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8099for as_dir in $PATH 8100do 8101 IFS=$as_save_IFS 8102 test -z "$as_dir" && as_dir=. 8103 for ac_exec_ext in '' $ac_executable_extensions; do 8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8105 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" 8106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8107 break 2 8108 fi 8109done 8110done 8111IFS=$as_save_IFS 8112 8113 ;; 8114esac 8115fi 8116RUNTEST=$ac_cv_path_RUNTEST 8117if test -n "$RUNTEST"; then 8118 { echo "$as_me:$LINENO: result: $RUNTEST" >&5 8119echo "${ECHO_T}$RUNTEST" >&6; } 8120else 8121 { echo "$as_me:$LINENO: result: no" >&5 8122echo "${ECHO_T}no" >&6; } 8123fi 8124 8125 8126 8127no_itcl=true 8128{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 8129echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } 8130 8131# Check whether --with-tclinclude was given. 8132if test "${with_tclinclude+set}" = set; then 8133 withval=$with_tclinclude; with_tclinclude=${withval} 8134else 8135 with_tclinclude='' 8136fi 8137 8138if test "${ac_cv_path_tclsh+set}" = set; then 8139 echo $ECHO_N "(cached) $ECHO_C" >&6 8140else 8141 8142if test x"${with_tclinclude}" != x ; then 8143 if test -f ${with_tclinclude}/tclsh ; then 8144 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` 8145 elif test -f ${with_tclinclude}/src/tclsh ; then 8146 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` 8147 else 8148 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 8149echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} 8150 { (exit 1); exit 1; }; } 8151 fi 8152fi 8153fi 8154 8155 8156if test x"${ac_cv_path_tclsh}" = x ; then 8157 { echo "$as_me:$LINENO: result: none" >&5 8158echo "${ECHO_T}none" >&6; } 8159 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 8160do 8161 # Extract the first word of "$ac_prog", so it can be a program name with args. 8162set dummy $ac_prog; ac_word=$2 8163{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8165if test "${ac_cv_path_TCLSH+set}" = set; then 8166 echo $ECHO_N "(cached) $ECHO_C" >&6 8167else 8168 case $TCLSH in 8169 [\\/]* | ?:[\\/]*) 8170 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. 8171 ;; 8172 *) 8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8174for as_dir in $PATH 8175do 8176 IFS=$as_save_IFS 8177 test -z "$as_dir" && as_dir=. 8178 for ac_exec_ext in '' $ac_executable_extensions; do 8179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8180 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" 8181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8182 break 2 8183 fi 8184done 8185done 8186IFS=$as_save_IFS 8187 8188 ;; 8189esac 8190fi 8191TCLSH=$ac_cv_path_TCLSH 8192if test -n "$TCLSH"; then 8193 { echo "$as_me:$LINENO: result: $TCLSH" >&5 8194echo "${ECHO_T}$TCLSH" >&6; } 8195else 8196 { echo "$as_me:$LINENO: result: no" >&5 8197echo "${ECHO_T}no" >&6; } 8198fi 8199 8200 8201 test -n "$TCLSH" && break 8202done 8203 8204 if test x"${TCLSH}" = x ; then 8205 ac_cv_path_tclsh=''; 8206 else 8207 ac_cv_path_tclsh="${TCLSH}"; 8208 fi 8209else 8210 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 8211echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } 8212 TCLSH="${ac_cv_path_tclsh}" 8213 8214fi 8215 8216# Extract the first word of "zip", so it can be a program name with args. 8217set dummy zip; ac_word=$2 8218{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8220if test "${ac_cv_path_ZIP+set}" = set; then 8221 echo $ECHO_N "(cached) $ECHO_C" >&6 8222else 8223 case $ZIP in 8224 [\\/]* | ?:[\\/]*) 8225 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 8226 ;; 8227 *) 8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8229for as_dir in $PATH 8230do 8231 IFS=$as_save_IFS 8232 test -z "$as_dir" && as_dir=. 8233 for ac_exec_ext in '' $ac_executable_extensions; do 8234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8235 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 8236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8237 break 2 8238 fi 8239done 8240done 8241IFS=$as_save_IFS 8242 8243 ;; 8244esac 8245fi 8246ZIP=$ac_cv_path_ZIP 8247if test -n "$ZIP"; then 8248 { echo "$as_me:$LINENO: result: $ZIP" >&5 8249echo "${ECHO_T}$ZIP" >&6; } 8250else 8251 { echo "$as_me:$LINENO: result: no" >&5 8252echo "${ECHO_T}no" >&6; } 8253fi 8254 8255 8256for ac_prog in ocamlc 8257do 8258 # Extract the first word of "$ac_prog", so it can be a program name with args. 8259set dummy $ac_prog; ac_word=$2 8260{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8262if test "${ac_cv_path_OCAMLC+set}" = set; then 8263 echo $ECHO_N "(cached) $ECHO_C" >&6 8264else 8265 case $OCAMLC in 8266 [\\/]* | ?:[\\/]*) 8267 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 8268 ;; 8269 *) 8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8271for as_dir in $PATH 8272do 8273 IFS=$as_save_IFS 8274 test -z "$as_dir" && as_dir=. 8275 for ac_exec_ext in '' $ac_executable_extensions; do 8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8277 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 8278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8279 break 2 8280 fi 8281done 8282done 8283IFS=$as_save_IFS 8284 8285 ;; 8286esac 8287fi 8288OCAMLC=$ac_cv_path_OCAMLC 8289if test -n "$OCAMLC"; then 8290 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 8291echo "${ECHO_T}$OCAMLC" >&6; } 8292else 8293 { echo "$as_me:$LINENO: result: no" >&5 8294echo "${ECHO_T}no" >&6; } 8295fi 8296 8297 8298 test -n "$OCAMLC" && break 8299done 8300 8301for ac_prog in ocamlopt 8302do 8303 # Extract the first word of "$ac_prog", so it can be a program name with args. 8304set dummy $ac_prog; ac_word=$2 8305{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8307if test "${ac_cv_path_OCAMLOPT+set}" = set; then 8308 echo $ECHO_N "(cached) $ECHO_C" >&6 8309else 8310 case $OCAMLOPT in 8311 [\\/]* | ?:[\\/]*) 8312 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 8313 ;; 8314 *) 8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8316for as_dir in $PATH 8317do 8318 IFS=$as_save_IFS 8319 test -z "$as_dir" && as_dir=. 8320 for ac_exec_ext in '' $ac_executable_extensions; do 8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8322 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 8323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8324 break 2 8325 fi 8326done 8327done 8328IFS=$as_save_IFS 8329 8330 ;; 8331esac 8332fi 8333OCAMLOPT=$ac_cv_path_OCAMLOPT 8334if test -n "$OCAMLOPT"; then 8335 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 8336echo "${ECHO_T}$OCAMLOPT" >&6; } 8337else 8338 { echo "$as_me:$LINENO: result: no" >&5 8339echo "${ECHO_T}no" >&6; } 8340fi 8341 8342 8343 test -n "$OCAMLOPT" && break 8344done 8345 8346for ac_prog in ocamldep 8347do 8348 # Extract the first word of "$ac_prog", so it can be a program name with args. 8349set dummy $ac_prog; ac_word=$2 8350{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8352if test "${ac_cv_path_OCAMLDEP+set}" = set; then 8353 echo $ECHO_N "(cached) $ECHO_C" >&6 8354else 8355 case $OCAMLDEP in 8356 [\\/]* | ?:[\\/]*) 8357 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 8358 ;; 8359 *) 8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8361for as_dir in $PATH 8362do 8363 IFS=$as_save_IFS 8364 test -z "$as_dir" && as_dir=. 8365 for ac_exec_ext in '' $ac_executable_extensions; do 8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8367 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 8368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8369 break 2 8370 fi 8371done 8372done 8373IFS=$as_save_IFS 8374 8375 ;; 8376esac 8377fi 8378OCAMLDEP=$ac_cv_path_OCAMLDEP 8379if test -n "$OCAMLDEP"; then 8380 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 8381echo "${ECHO_T}$OCAMLDEP" >&6; } 8382else 8383 { echo "$as_me:$LINENO: result: no" >&5 8384echo "${ECHO_T}no" >&6; } 8385fi 8386 8387 8388 test -n "$OCAMLDEP" && break 8389done 8390 8391for ac_prog in ocamldoc 8392do 8393 # Extract the first word of "$ac_prog", so it can be a program name with args. 8394set dummy $ac_prog; ac_word=$2 8395{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8397if test "${ac_cv_path_OCAMLDOC+set}" = set; then 8398 echo $ECHO_N "(cached) $ECHO_C" >&6 8399else 8400 case $OCAMLDOC in 8401 [\\/]* | ?:[\\/]*) 8402 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 8403 ;; 8404 *) 8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8406for as_dir in $PATH 8407do 8408 IFS=$as_save_IFS 8409 test -z "$as_dir" && as_dir=. 8410 for ac_exec_ext in '' $ac_executable_extensions; do 8411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8412 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 8413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8414 break 2 8415 fi 8416done 8417done 8418IFS=$as_save_IFS 8419 8420 ;; 8421esac 8422fi 8423OCAMLDOC=$ac_cv_path_OCAMLDOC 8424if test -n "$OCAMLDOC"; then 8425 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 8426echo "${ECHO_T}$OCAMLDOC" >&6; } 8427else 8428 { echo "$as_me:$LINENO: result: no" >&5 8429echo "${ECHO_T}no" >&6; } 8430fi 8431 8432 8433 test -n "$OCAMLDOC" && break 8434done 8435 8436for ac_prog in gas as 8437do 8438 # Extract the first word of "$ac_prog", so it can be a program name with args. 8439set dummy $ac_prog; ac_word=$2 8440{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8442if test "${ac_cv_path_GAS+set}" = set; then 8443 echo $ECHO_N "(cached) $ECHO_C" >&6 8444else 8445 case $GAS in 8446 [\\/]* | ?:[\\/]*) 8447 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 8448 ;; 8449 *) 8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8451for as_dir in $PATH 8452do 8453 IFS=$as_save_IFS 8454 test -z "$as_dir" && as_dir=. 8455 for ac_exec_ext in '' $ac_executable_extensions; do 8456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 8457 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 8458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8459 break 2 8460 fi 8461done 8462done 8463IFS=$as_save_IFS 8464 8465 ;; 8466esac 8467fi 8468GAS=$ac_cv_path_GAS 8469if test -n "$GAS"; then 8470 { echo "$as_me:$LINENO: result: $GAS" >&5 8471echo "${ECHO_T}$GAS" >&6; } 8472else 8473 { echo "$as_me:$LINENO: result: no" >&5 8474echo "${ECHO_T}no" >&6; } 8475fi 8476 8477 8478 test -n "$GAS" && break 8479done 8480 8481 8482{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 8483echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 8484if test "${llvm_cv_link_use_r+set}" = set; then 8485 echo $ECHO_N "(cached) $ECHO_C" >&6 8486else 8487 ac_ext=c 8488ac_cpp='$CPP $CPPFLAGS' 8489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8491ac_compiler_gnu=$ac_cv_c_compiler_gnu 8492 8493 oldcflags="$CFLAGS" 8494 CFLAGS="$CFLAGS -Wl,-R." 8495 cat >conftest.$ac_ext <<_ACEOF 8496/* confdefs.h. */ 8497_ACEOF 8498cat confdefs.h >>conftest.$ac_ext 8499cat >>conftest.$ac_ext <<_ACEOF 8500/* end confdefs.h. */ 8501 8502int 8503main () 8504{ 8505int main() { return 0; } 8506 ; 8507 return 0; 8508} 8509_ACEOF 8510rm -f conftest.$ac_objext conftest$ac_exeext 8511if { (ac_try="$ac_link" 8512case "(($ac_try" in 8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8514 *) ac_try_echo=$ac_try;; 8515esac 8516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8517 (eval "$ac_link") 2>conftest.er1 8518 ac_status=$? 8519 grep -v '^ *+' conftest.er1 >conftest.err 8520 rm -f conftest.er1 8521 cat conftest.err >&5 8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8523 (exit $ac_status); } && 8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8525 { (case "(($ac_try" in 8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8527 *) ac_try_echo=$ac_try;; 8528esac 8529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8530 (eval "$ac_try") 2>&5 8531 ac_status=$? 8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8533 (exit $ac_status); }; } && 8534 { ac_try='test -s conftest$ac_exeext' 8535 { (case "(($ac_try" in 8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8537 *) ac_try_echo=$ac_try;; 8538esac 8539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8540 (eval "$ac_try") 2>&5 8541 ac_status=$? 8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8543 (exit $ac_status); }; }; then 8544 llvm_cv_link_use_r=yes 8545else 8546 echo "$as_me: failed program was:" >&5 8547sed 's/^/| /' conftest.$ac_ext >&5 8548 8549 llvm_cv_link_use_r=no 8550fi 8551 8552rm -f core conftest.err conftest.$ac_objext \ 8553 conftest$ac_exeext conftest.$ac_ext 8554 CFLAGS="$oldcflags" 8555 ac_ext=c 8556ac_cpp='$CPP $CPPFLAGS' 8557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8559ac_compiler_gnu=$ac_cv_c_compiler_gnu 8560 8561 8562fi 8563{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 8564echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 8565if test "$llvm_cv_link_use_r" = yes ; then 8566 8567cat >>confdefs.h <<\_ACEOF 8568#define HAVE_LINK_R 1 8569_ACEOF 8570 8571 fi 8572 8573 8574{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5 8575echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; } 8576if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 8577 echo $ECHO_N "(cached) $ECHO_C" >&6 8578else 8579 ac_ext=c 8580ac_cpp='$CPP $CPPFLAGS' 8581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8583ac_compiler_gnu=$ac_cv_c_compiler_gnu 8584 8585 oldcflags="$CFLAGS" 8586 CFLAGS="$CFLAGS -Wl,-export-dynamic" 8587 cat >conftest.$ac_ext <<_ACEOF 8588/* confdefs.h. */ 8589_ACEOF 8590cat confdefs.h >>conftest.$ac_ext 8591cat >>conftest.$ac_ext <<_ACEOF 8592/* end confdefs.h. */ 8593 8594int 8595main () 8596{ 8597int main() { return 0; } 8598 ; 8599 return 0; 8600} 8601_ACEOF 8602rm -f conftest.$ac_objext conftest$ac_exeext 8603if { (ac_try="$ac_link" 8604case "(($ac_try" in 8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8606 *) ac_try_echo=$ac_try;; 8607esac 8608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8609 (eval "$ac_link") 2>conftest.er1 8610 ac_status=$? 8611 grep -v '^ *+' conftest.er1 >conftest.err 8612 rm -f conftest.er1 8613 cat conftest.err >&5 8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8615 (exit $ac_status); } && 8616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8617 { (case "(($ac_try" in 8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8619 *) ac_try_echo=$ac_try;; 8620esac 8621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8622 (eval "$ac_try") 2>&5 8623 ac_status=$? 8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8625 (exit $ac_status); }; } && 8626 { ac_try='test -s conftest$ac_exeext' 8627 { (case "(($ac_try" in 8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8629 *) ac_try_echo=$ac_try;; 8630esac 8631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8632 (eval "$ac_try") 2>&5 8633 ac_status=$? 8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8635 (exit $ac_status); }; }; then 8636 llvm_cv_link_use_export_dynamic=yes 8637else 8638 echo "$as_me: failed program was:" >&5 8639sed 's/^/| /' conftest.$ac_ext >&5 8640 8641 llvm_cv_link_use_export_dynamic=no 8642fi 8643 8644rm -f core conftest.err conftest.$ac_objext \ 8645 conftest$ac_exeext conftest.$ac_ext 8646 CFLAGS="$oldcflags" 8647 ac_ext=c 8648ac_cpp='$CPP $CPPFLAGS' 8649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8651ac_compiler_gnu=$ac_cv_c_compiler_gnu 8652 8653 8654fi 8655{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 8656echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 8657if test "$llvm_cv_link_use_export_dynamic" = yes ; then 8658 8659cat >>confdefs.h <<\_ACEOF 8660#define HAVE_LINK_EXPORT_DYNAMIC 1 8661_ACEOF 8662 8663 fi 8664 8665 8666 8667 8668{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8669echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 8670if test "${ac_cv_c_const+set}" = set; then 8671 echo $ECHO_N "(cached) $ECHO_C" >&6 8672else 8673 cat >conftest.$ac_ext <<_ACEOF 8674/* confdefs.h. */ 8675_ACEOF 8676cat confdefs.h >>conftest.$ac_ext 8677cat >>conftest.$ac_ext <<_ACEOF 8678/* end confdefs.h. */ 8679 8680int 8681main () 8682{ 8683/* FIXME: Include the comments suggested by Paul. */ 8684#ifndef __cplusplus 8685 /* Ultrix mips cc rejects this. */ 8686 typedef int charset[2]; 8687 const charset x; 8688 /* SunOS 4.1.1 cc rejects this. */ 8689 char const *const *ccp; 8690 char **p; 8691 /* NEC SVR4.0.2 mips cc rejects this. */ 8692 struct point {int x, y;}; 8693 static struct point const zero = {0,0}; 8694 /* AIX XL C 1.02.0.0 rejects this. 8695 It does not let you subtract one const X* pointer from another in 8696 an arm of an if-expression whose if-part is not a constant 8697 expression */ 8698 const char *g = "string"; 8699 ccp = &g + (g ? g-g : 0); 8700 /* HPUX 7.0 cc rejects these. */ 8701 ++ccp; 8702 p = (char**) ccp; 8703 ccp = (char const *const *) p; 8704 { /* SCO 3.2v4 cc rejects this. */ 8705 char *t; 8706 char const *s = 0 ? (char *) 0 : (char const *) 0; 8707 8708 *t++ = 0; 8709 if (s) return 0; 8710 } 8711 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8712 int x[] = {25, 17}; 8713 const int *foo = &x[0]; 8714 ++foo; 8715 } 8716 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8717 typedef const int *iptr; 8718 iptr p = 0; 8719 ++p; 8720 } 8721 { /* AIX XL C 1.02.0.0 rejects this saying 8722 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8723 struct s { int j; const int *ap[3]; }; 8724 struct s *b; b->j = 5; 8725 } 8726 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8727 const int foo = 10; 8728 if (!foo) return 0; 8729 } 8730 return !x[0] && !zero.x; 8731#endif 8732 8733 ; 8734 return 0; 8735} 8736_ACEOF 8737rm -f conftest.$ac_objext 8738if { (ac_try="$ac_compile" 8739case "(($ac_try" in 8740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8741 *) ac_try_echo=$ac_try;; 8742esac 8743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8744 (eval "$ac_compile") 2>conftest.er1 8745 ac_status=$? 8746 grep -v '^ *+' conftest.er1 >conftest.err 8747 rm -f conftest.er1 8748 cat conftest.err >&5 8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8750 (exit $ac_status); } && 8751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8752 { (case "(($ac_try" in 8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8754 *) ac_try_echo=$ac_try;; 8755esac 8756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8757 (eval "$ac_try") 2>&5 8758 ac_status=$? 8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8760 (exit $ac_status); }; } && 8761 { ac_try='test -s conftest.$ac_objext' 8762 { (case "(($ac_try" in 8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8764 *) ac_try_echo=$ac_try;; 8765esac 8766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8767 (eval "$ac_try") 2>&5 8768 ac_status=$? 8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8770 (exit $ac_status); }; }; then 8771 ac_cv_c_const=yes 8772else 8773 echo "$as_me: failed program was:" >&5 8774sed 's/^/| /' conftest.$ac_ext >&5 8775 8776 ac_cv_c_const=no 8777fi 8778 8779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8780fi 8781{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8782echo "${ECHO_T}$ac_cv_c_const" >&6; } 8783if test $ac_cv_c_const = no; then 8784 8785cat >>confdefs.h <<\_ACEOF 8786#define const 8787_ACEOF 8788 8789fi 8790 8791 8792 8793 8794 8795 8796ac_header_dirent=no 8797for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8798 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8799{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8800echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8802 echo $ECHO_N "(cached) $ECHO_C" >&6 8803else 8804 cat >conftest.$ac_ext <<_ACEOF 8805/* confdefs.h. */ 8806_ACEOF 8807cat confdefs.h >>conftest.$ac_ext 8808cat >>conftest.$ac_ext <<_ACEOF 8809/* end confdefs.h. */ 8810#include <sys/types.h> 8811#include <$ac_hdr> 8812 8813int 8814main () 8815{ 8816if ((DIR *) 0) 8817return 0; 8818 ; 8819 return 0; 8820} 8821_ACEOF 8822rm -f conftest.$ac_objext 8823if { (ac_try="$ac_compile" 8824case "(($ac_try" in 8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8826 *) ac_try_echo=$ac_try;; 8827esac 8828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8829 (eval "$ac_compile") 2>conftest.er1 8830 ac_status=$? 8831 grep -v '^ *+' conftest.er1 >conftest.err 8832 rm -f conftest.er1 8833 cat conftest.err >&5 8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8835 (exit $ac_status); } && 8836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8837 { (case "(($ac_try" in 8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8839 *) ac_try_echo=$ac_try;; 8840esac 8841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8842 (eval "$ac_try") 2>&5 8843 ac_status=$? 8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8845 (exit $ac_status); }; } && 8846 { ac_try='test -s conftest.$ac_objext' 8847 { (case "(($ac_try" in 8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8849 *) ac_try_echo=$ac_try;; 8850esac 8851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8852 (eval "$ac_try") 2>&5 8853 ac_status=$? 8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8855 (exit $ac_status); }; }; then 8856 eval "$as_ac_Header=yes" 8857else 8858 echo "$as_me: failed program was:" >&5 8859sed 's/^/| /' conftest.$ac_ext >&5 8860 8861 eval "$as_ac_Header=no" 8862fi 8863 8864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8865fi 8866ac_res=`eval echo '${'$as_ac_Header'}'` 8867 { echo "$as_me:$LINENO: result: $ac_res" >&5 8868echo "${ECHO_T}$ac_res" >&6; } 8869if test `eval echo '${'$as_ac_Header'}'` = yes; then 8870 cat >>confdefs.h <<_ACEOF 8871#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8872_ACEOF 8873 8874ac_header_dirent=$ac_hdr; break 8875fi 8876 8877done 8878# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8879if test $ac_header_dirent = dirent.h; then 8880 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8881echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8882if test "${ac_cv_search_opendir+set}" = set; then 8883 echo $ECHO_N "(cached) $ECHO_C" >&6 8884else 8885 ac_func_search_save_LIBS=$LIBS 8886cat >conftest.$ac_ext <<_ACEOF 8887/* confdefs.h. */ 8888_ACEOF 8889cat confdefs.h >>conftest.$ac_ext 8890cat >>conftest.$ac_ext <<_ACEOF 8891/* end confdefs.h. */ 8892 8893/* Override any GCC internal prototype to avoid an error. 8894 Use char because int might match the return type of a GCC 8895 builtin and then its argument prototype would still apply. */ 8896#ifdef __cplusplus 8897extern "C" 8898#endif 8899char opendir (); 8900int 8901main () 8902{ 8903return opendir (); 8904 ; 8905 return 0; 8906} 8907_ACEOF 8908for ac_lib in '' dir; do 8909 if test -z "$ac_lib"; then 8910 ac_res="none required" 8911 else 8912 ac_res=-l$ac_lib 8913 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8914 fi 8915 rm -f conftest.$ac_objext conftest$ac_exeext 8916if { (ac_try="$ac_link" 8917case "(($ac_try" in 8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8919 *) ac_try_echo=$ac_try;; 8920esac 8921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8922 (eval "$ac_link") 2>conftest.er1 8923 ac_status=$? 8924 grep -v '^ *+' conftest.er1 >conftest.err 8925 rm -f conftest.er1 8926 cat conftest.err >&5 8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8928 (exit $ac_status); } && 8929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8930 { (case "(($ac_try" in 8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8932 *) ac_try_echo=$ac_try;; 8933esac 8934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8935 (eval "$ac_try") 2>&5 8936 ac_status=$? 8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8938 (exit $ac_status); }; } && 8939 { ac_try='test -s conftest$ac_exeext' 8940 { (case "(($ac_try" in 8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8942 *) ac_try_echo=$ac_try;; 8943esac 8944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8945 (eval "$ac_try") 2>&5 8946 ac_status=$? 8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8948 (exit $ac_status); }; }; then 8949 ac_cv_search_opendir=$ac_res 8950else 8951 echo "$as_me: failed program was:" >&5 8952sed 's/^/| /' conftest.$ac_ext >&5 8953 8954 8955fi 8956 8957rm -f core conftest.err conftest.$ac_objext \ 8958 conftest$ac_exeext 8959 if test "${ac_cv_search_opendir+set}" = set; then 8960 break 8961fi 8962done 8963if test "${ac_cv_search_opendir+set}" = set; then 8964 : 8965else 8966 ac_cv_search_opendir=no 8967fi 8968rm conftest.$ac_ext 8969LIBS=$ac_func_search_save_LIBS 8970fi 8971{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8972echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8973ac_res=$ac_cv_search_opendir 8974if test "$ac_res" != no; then 8975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8976 8977fi 8978 8979else 8980 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8981echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8982if test "${ac_cv_search_opendir+set}" = set; then 8983 echo $ECHO_N "(cached) $ECHO_C" >&6 8984else 8985 ac_func_search_save_LIBS=$LIBS 8986cat >conftest.$ac_ext <<_ACEOF 8987/* confdefs.h. */ 8988_ACEOF 8989cat confdefs.h >>conftest.$ac_ext 8990cat >>conftest.$ac_ext <<_ACEOF 8991/* end confdefs.h. */ 8992 8993/* Override any GCC internal prototype to avoid an error. 8994 Use char because int might match the return type of a GCC 8995 builtin and then its argument prototype would still apply. */ 8996#ifdef __cplusplus 8997extern "C" 8998#endif 8999char opendir (); 9000int 9001main () 9002{ 9003return opendir (); 9004 ; 9005 return 0; 9006} 9007_ACEOF 9008for ac_lib in '' x; do 9009 if test -z "$ac_lib"; then 9010 ac_res="none required" 9011 else 9012 ac_res=-l$ac_lib 9013 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9014 fi 9015 rm -f conftest.$ac_objext conftest$ac_exeext 9016if { (ac_try="$ac_link" 9017case "(($ac_try" in 9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9019 *) ac_try_echo=$ac_try;; 9020esac 9021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9022 (eval "$ac_link") 2>conftest.er1 9023 ac_status=$? 9024 grep -v '^ *+' conftest.er1 >conftest.err 9025 rm -f conftest.er1 9026 cat conftest.err >&5 9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9028 (exit $ac_status); } && 9029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9030 { (case "(($ac_try" in 9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9032 *) ac_try_echo=$ac_try;; 9033esac 9034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9035 (eval "$ac_try") 2>&5 9036 ac_status=$? 9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9038 (exit $ac_status); }; } && 9039 { ac_try='test -s conftest$ac_exeext' 9040 { (case "(($ac_try" in 9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9042 *) ac_try_echo=$ac_try;; 9043esac 9044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9045 (eval "$ac_try") 2>&5 9046 ac_status=$? 9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9048 (exit $ac_status); }; }; then 9049 ac_cv_search_opendir=$ac_res 9050else 9051 echo "$as_me: failed program was:" >&5 9052sed 's/^/| /' conftest.$ac_ext >&5 9053 9054 9055fi 9056 9057rm -f core conftest.err conftest.$ac_objext \ 9058 conftest$ac_exeext 9059 if test "${ac_cv_search_opendir+set}" = set; then 9060 break 9061fi 9062done 9063if test "${ac_cv_search_opendir+set}" = set; then 9064 : 9065else 9066 ac_cv_search_opendir=no 9067fi 9068rm conftest.$ac_ext 9069LIBS=$ac_func_search_save_LIBS 9070fi 9071{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 9072echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 9073ac_res=$ac_cv_search_opendir 9074if test "$ac_res" != no; then 9075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9076 9077fi 9078 9079fi 9080 9081 9082for ac_header in dlfcn.h 9083do 9084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9086 { echo "$as_me:$LINENO: checking for $ac_header" >&5 9087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9089 echo $ECHO_N "(cached) $ECHO_C" >&6 9090fi 9091ac_res=`eval echo '${'$as_ac_Header'}'` 9092 { echo "$as_me:$LINENO: result: $ac_res" >&5 9093echo "${ECHO_T}$ac_res" >&6; } 9094else 9095 # Is the header compilable? 9096{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 9097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 9098cat >conftest.$ac_ext <<_ACEOF 9099/* confdefs.h. */ 9100_ACEOF 9101cat confdefs.h >>conftest.$ac_ext 9102cat >>conftest.$ac_ext <<_ACEOF 9103/* end confdefs.h. */ 9104$ac_includes_default 9105#include <$ac_header> 9106_ACEOF 9107rm -f conftest.$ac_objext 9108if { (ac_try="$ac_compile" 9109case "(($ac_try" in 9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9111 *) ac_try_echo=$ac_try;; 9112esac 9113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9114 (eval "$ac_compile") 2>conftest.er1 9115 ac_status=$? 9116 grep -v '^ *+' conftest.er1 >conftest.err 9117 rm -f conftest.er1 9118 cat conftest.err >&5 9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9120 (exit $ac_status); } && 9121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9122 { (case "(($ac_try" in 9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9124 *) ac_try_echo=$ac_try;; 9125esac 9126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9127 (eval "$ac_try") 2>&5 9128 ac_status=$? 9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9130 (exit $ac_status); }; } && 9131 { ac_try='test -s conftest.$ac_objext' 9132 { (case "(($ac_try" in 9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9134 *) ac_try_echo=$ac_try;; 9135esac 9136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9137 (eval "$ac_try") 2>&5 9138 ac_status=$? 9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9140 (exit $ac_status); }; }; then 9141 ac_header_compiler=yes 9142else 9143 echo "$as_me: failed program was:" >&5 9144sed 's/^/| /' conftest.$ac_ext >&5 9145 9146 ac_header_compiler=no 9147fi 9148 9149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9151echo "${ECHO_T}$ac_header_compiler" >&6; } 9152 9153# Is the header present? 9154{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 9155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 9156cat >conftest.$ac_ext <<_ACEOF 9157/* confdefs.h. */ 9158_ACEOF 9159cat confdefs.h >>conftest.$ac_ext 9160cat >>conftest.$ac_ext <<_ACEOF 9161/* end confdefs.h. */ 9162#include <$ac_header> 9163_ACEOF 9164if { (ac_try="$ac_cpp conftest.$ac_ext" 9165case "(($ac_try" in 9166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9167 *) ac_try_echo=$ac_try;; 9168esac 9169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9171 ac_status=$? 9172 grep -v '^ *+' conftest.er1 >conftest.err 9173 rm -f conftest.er1 9174 cat conftest.err >&5 9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9176 (exit $ac_status); } >/dev/null; then 9177 if test -s conftest.err; then 9178 ac_cpp_err=$ac_c_preproc_warn_flag 9179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9180 else 9181 ac_cpp_err= 9182 fi 9183else 9184 ac_cpp_err=yes 9185fi 9186if test -z "$ac_cpp_err"; then 9187 ac_header_preproc=yes 9188else 9189 echo "$as_me: failed program was:" >&5 9190sed 's/^/| /' conftest.$ac_ext >&5 9191 9192 ac_header_preproc=no 9193fi 9194 9195rm -f conftest.err conftest.$ac_ext 9196{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9197echo "${ECHO_T}$ac_header_preproc" >&6; } 9198 9199# So? What about this header? 9200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9201 yes:no: ) 9202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9206 ac_header_preproc=yes 9207 ;; 9208 no:yes:* ) 9209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9221 ( cat <<\_ASBOX 9222## ----------------------------------- ## 9223## Report this to llvmbugs@cs.uiuc.edu ## 9224## ----------------------------------- ## 9225_ASBOX 9226 ) | sed "s/^/$as_me: WARNING: /" >&2 9227 ;; 9228esac 9229{ echo "$as_me:$LINENO: checking for $ac_header" >&5 9230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9232 echo $ECHO_N "(cached) $ECHO_C" >&6 9233else 9234 eval "$as_ac_Header=\$ac_header_preproc" 9235fi 9236ac_res=`eval echo '${'$as_ac_Header'}'` 9237 { echo "$as_me:$LINENO: result: $ac_res" >&5 9238echo "${ECHO_T}$ac_res" >&6; } 9239 9240fi 9241if test `eval echo '${'$as_ac_Header'}'` = yes; then 9242 cat >>confdefs.h <<_ACEOF 9243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9244_ACEOF 9245 9246fi 9247 9248done 9249 9250# Check whether --enable-ltdl-install was given. 9251if test "${enable_ltdl_install+set}" = set; then 9252 enableval=$enable_ltdl_install; 9253fi 9254 9255 9256 9257 9258if test x"${enable_ltdl_install-no}" != xno; then 9259 INSTALL_LTDL_TRUE= 9260 INSTALL_LTDL_FALSE='#' 9261else 9262 INSTALL_LTDL_TRUE='#' 9263 INSTALL_LTDL_FALSE= 9264fi 9265 9266 9267 9268if test x"${enable_ltdl_convenience-no}" != xno; then 9269 CONVENIENCE_LTDL_TRUE= 9270 CONVENIENCE_LTDL_FALSE='#' 9271else 9272 CONVENIENCE_LTDL_TRUE='#' 9273 CONVENIENCE_LTDL_FALSE= 9274fi 9275 9276 9277{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9278echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 9279library_names_spec= 9280libname_spec='lib$name' 9281soname_spec= 9282shrext_cmds=".so" 9283postinstall_cmds= 9284postuninstall_cmds= 9285finish_cmds= 9286finish_eval= 9287shlibpath_var= 9288shlibpath_overrides_runpath=unknown 9289version_type=none 9290dynamic_linker="$host_os ld.so" 9291sys_lib_dlsearch_path_spec="/lib /usr/lib" 9292if test "$GCC" = yes; then 9293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9294 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 9295 # if the path contains ";" then we assume it to be the separator 9296 # otherwise default to the standard path separator (i.e. ":") - it is 9297 # assumed that no part of a normal pathname contains ";" but that should 9298 # okay in the real world where ";" in dirpaths is itself problematic. 9299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9300 else 9301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9302 fi 9303else 9304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9305fi 9306need_lib_prefix=unknown 9307hardcode_into_libs=no 9308 9309# when you set need_version to no, make sure it does not cause -set_version 9310# flags to be left without arguments 9311need_version=unknown 9312 9313case $host_os in 9314aix3*) 9315 version_type=linux 9316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9317 shlibpath_var=LIBPATH 9318 9319 # AIX 3 has no versioning support, so we append a major version to the name. 9320 soname_spec='${libname}${release}${shared_ext}$major' 9321 ;; 9322 9323aix4* | aix5*) 9324 version_type=linux 9325 need_lib_prefix=no 9326 need_version=no 9327 hardcode_into_libs=yes 9328 if test "$host_cpu" = ia64; then 9329 # AIX 5 supports IA64 9330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9331 shlibpath_var=LD_LIBRARY_PATH 9332 else 9333 # With GCC up to 2.95.x, collect2 would create an import file 9334 # for dependence libraries. The import file would start with 9335 # the line `#! .'. This would cause the generated library to 9336 # depend on `.', always an invalid library. This was fixed in 9337 # development snapshots of GCC prior to 3.0. 9338 case $host_os in 9339 aix4 | aix4.[01] | aix4.[01].*) 9340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9341 echo ' yes ' 9342 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9343 : 9344 else 9345 can_build_shared=no 9346 fi 9347 ;; 9348 esac 9349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9350 # soname into executable. Probably we can add versioning support to 9351 # collect2, so additional links can be useful in future. 9352 if test "$aix_use_runtimelinking" = yes; then 9353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9354 # instead of lib<name>.a to let people know that these are not 9355 # typical AIX shared libraries. 9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9357 else 9358 # We preserve .a as extension for shared libraries through AIX4.2 9359 # and later when we are not doing run time linking. 9360 library_names_spec='${libname}${release}.a $libname.a' 9361 soname_spec='${libname}${release}${shared_ext}$major' 9362 fi 9363 shlibpath_var=LIBPATH 9364 fi 9365 ;; 9366 9367amigaos*) 9368 library_names_spec='$libname.ixlibrary $libname.a' 9369 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9370 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' 9371 ;; 9372 9373beos*) 9374 library_names_spec='${libname}${shared_ext}' 9375 dynamic_linker="$host_os ld.so" 9376 shlibpath_var=LIBRARY_PATH 9377 ;; 9378 9379bsdi[45]*) 9380 version_type=linux 9381 need_version=no 9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9383 soname_spec='${libname}${release}${shared_ext}$major' 9384 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9385 shlibpath_var=LD_LIBRARY_PATH 9386 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9387 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9388 # the default ld.so.conf also contains /usr/contrib/lib and 9389 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9390 # libtool to hard-code these into programs 9391 ;; 9392 9393cygwin* | mingw* | pw32*) 9394 version_type=windows 9395 shrext_cmds=".dll" 9396 need_version=no 9397 need_lib_prefix=no 9398 9399 case $GCC,$host_os in 9400 yes,cygwin* | yes,mingw* | yes,pw32*) 9401 library_names_spec='$libname.dll.a' 9402 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9403 postinstall_cmds='base_file=`basename \${file}`~ 9404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9405 dldir=$destdir/`dirname \$dlpath`~ 9406 test -d \$dldir || mkdir -p \$dldir~ 9407 $install_prog $dir/$dlname \$dldir/$dlname~ 9408 chmod a+x \$dldir/$dlname' 9409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9410 dlpath=$dir/\$dldll~ 9411 $rm \$dlpath' 9412 shlibpath_overrides_runpath=yes 9413 9414 case $host_os in 9415 cygwin*) 9416 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9417 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9418 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9419 ;; 9420 mingw*) 9421 # MinGW DLLs use traditional 'lib' prefix 9422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9424 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9425 # It is most probably a Windows format PATH printed by 9426 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9427 # path with ; separators, and with drive letters. We can handle the 9428 # drive letters (cygwin fileutils understands them), so leave them, 9429 # especially as we might pass files found there to a mingw objdump, 9430 # which wouldn't understand a cygwinified path. Ahh. 9431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9432 else 9433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9434 fi 9435 ;; 9436 pw32*) 9437 # pw32 DLLs use 'pw' prefix rather than 'lib' 9438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9439 ;; 9440 esac 9441 ;; 9442 9443 *) 9444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9445 ;; 9446 esac 9447 dynamic_linker='Win32 ld.exe' 9448 # FIXME: first we should search . and the directory the executable is in 9449 shlibpath_var=PATH 9450 ;; 9451 9452darwin* | rhapsody*) 9453 dynamic_linker="$host_os dyld" 9454 version_type=darwin 9455 need_lib_prefix=no 9456 need_version=no 9457 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9458 soname_spec='${libname}${release}${major}$shared_ext' 9459 shlibpath_overrides_runpath=yes 9460 shlibpath_var=DYLD_LIBRARY_PATH 9461 shrext_cmds='.dylib' 9462 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9463 if test "$GCC" = yes; then 9464 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"` 9465 else 9466 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9467 fi 9468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9469 ;; 9470 9471dgux*) 9472 version_type=linux 9473 need_lib_prefix=no 9474 need_version=no 9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9476 soname_spec='${libname}${release}${shared_ext}$major' 9477 shlibpath_var=LD_LIBRARY_PATH 9478 ;; 9479 9480freebsd1*) 9481 dynamic_linker=no 9482 ;; 9483 9484kfreebsd*-gnu) 9485 version_type=linux 9486 need_lib_prefix=no 9487 need_version=no 9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9489 soname_spec='${libname}${release}${shared_ext}$major' 9490 shlibpath_var=LD_LIBRARY_PATH 9491 shlibpath_overrides_runpath=no 9492 hardcode_into_libs=yes 9493 dynamic_linker='GNU ld.so' 9494 ;; 9495 9496freebsd* | dragonfly*) 9497 # DragonFly does not have aout. When/if they implement a new 9498 # versioning mechanism, adjust this. 9499 if test -x /usr/bin/objformat; then 9500 objformat=`/usr/bin/objformat` 9501 else 9502 case $host_os in 9503 freebsd[123]*) objformat=aout ;; 9504 *) objformat=elf ;; 9505 esac 9506 fi 9507 version_type=freebsd-$objformat 9508 case $version_type in 9509 freebsd-elf*) 9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9511 need_version=no 9512 need_lib_prefix=no 9513 ;; 9514 freebsd-*) 9515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9516 need_version=yes 9517 ;; 9518 esac 9519 shlibpath_var=LD_LIBRARY_PATH 9520 case $host_os in 9521 freebsd2*) 9522 shlibpath_overrides_runpath=yes 9523 ;; 9524 freebsd3.[01]* | freebsdelf3.[01]*) 9525 shlibpath_overrides_runpath=yes 9526 hardcode_into_libs=yes 9527 ;; 9528 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9529 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9530 shlibpath_overrides_runpath=no 9531 hardcode_into_libs=yes 9532 ;; 9533 freebsd*) # from 4.6 on 9534 shlibpath_overrides_runpath=yes 9535 hardcode_into_libs=yes 9536 ;; 9537 esac 9538 ;; 9539 9540gnu*) 9541 version_type=linux 9542 need_lib_prefix=no 9543 need_version=no 9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9545 soname_spec='${libname}${release}${shared_ext}$major' 9546 shlibpath_var=LD_LIBRARY_PATH 9547 hardcode_into_libs=yes 9548 ;; 9549 9550hpux9* | hpux10* | hpux11*) 9551 # Give a soname corresponding to the major version so that dld.sl refuses to 9552 # link against other versions. 9553 version_type=sunos 9554 need_lib_prefix=no 9555 need_version=no 9556 case $host_cpu in 9557 ia64*) 9558 shrext_cmds='.so' 9559 hardcode_into_libs=yes 9560 dynamic_linker="$host_os dld.so" 9561 shlibpath_var=LD_LIBRARY_PATH 9562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9564 soname_spec='${libname}${release}${shared_ext}$major' 9565 if test "X$HPUX_IA64_MODE" = X32; then 9566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9567 else 9568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9569 fi 9570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9571 ;; 9572 hppa*64*) 9573 shrext_cmds='.sl' 9574 hardcode_into_libs=yes 9575 dynamic_linker="$host_os dld.sl" 9576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9579 soname_spec='${libname}${release}${shared_ext}$major' 9580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9582 ;; 9583 *) 9584 shrext_cmds='.sl' 9585 dynamic_linker="$host_os dld.sl" 9586 shlibpath_var=SHLIB_PATH 9587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9589 soname_spec='${libname}${release}${shared_ext}$major' 9590 ;; 9591 esac 9592 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9593 postinstall_cmds='chmod 555 $lib' 9594 ;; 9595 9596interix3*) 9597 version_type=linux 9598 need_lib_prefix=no 9599 need_version=no 9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9601 soname_spec='${libname}${release}${shared_ext}$major' 9602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9603 shlibpath_var=LD_LIBRARY_PATH 9604 shlibpath_overrides_runpath=no 9605 hardcode_into_libs=yes 9606 ;; 9607 9608irix5* | irix6* | nonstopux*) 9609 case $host_os in 9610 nonstopux*) version_type=nonstopux ;; 9611 *) 9612 if test "$lt_cv_prog_gnu_ld" = yes; then 9613 version_type=linux 9614 else 9615 version_type=irix 9616 fi ;; 9617 esac 9618 need_lib_prefix=no 9619 need_version=no 9620 soname_spec='${libname}${release}${shared_ext}$major' 9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9622 case $host_os in 9623 irix5* | nonstopux*) 9624 libsuff= shlibsuff= 9625 ;; 9626 *) 9627 case $LD in # libtool.m4 will add one of these switches to LD 9628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9629 libsuff= shlibsuff= libmagic=32-bit;; 9630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9631 libsuff=32 shlibsuff=N32 libmagic=N32;; 9632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9633 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9634 *) libsuff= shlibsuff= libmagic=never-match;; 9635 esac 9636 ;; 9637 esac 9638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9639 shlibpath_overrides_runpath=no 9640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9642 hardcode_into_libs=yes 9643 ;; 9644 9645# No shared lib support for Linux oldld, aout, or coff. 9646linux*oldld* | linux*aout* | linux*coff*) 9647 dynamic_linker=no 9648 ;; 9649 9650# This must be Linux ELF. 9651linux*) 9652 version_type=linux 9653 need_lib_prefix=no 9654 need_version=no 9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9656 soname_spec='${libname}${release}${shared_ext}$major' 9657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9658 shlibpath_var=LD_LIBRARY_PATH 9659 shlibpath_overrides_runpath=no 9660 # This implies no fast_install, which is unacceptable. 9661 # Some rework will be needed to allow for fast_install 9662 # before this can be enabled. 9663 hardcode_into_libs=yes 9664 9665 # Append ld.so.conf contents to the search path 9666 if test -f /etc/ld.so.conf; then 9667 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' ' '` 9668 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9669 fi 9670 9671 # We used to test for /lib/ld.so.1 and disable shared libraries on 9672 # powerpc, because MkLinux only supported shared libraries with the 9673 # GNU dynamic linker. Since this was broken with cross compilers, 9674 # most powerpc-linux boxes support dynamic linking these days and 9675 # people can always --disable-shared, the test was removed, and we 9676 # assume the GNU/Linux dynamic linker is in use. 9677 dynamic_linker='GNU/Linux ld.so' 9678 ;; 9679 9680knetbsd*-gnu) 9681 version_type=linux 9682 need_lib_prefix=no 9683 need_version=no 9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9685 soname_spec='${libname}${release}${shared_ext}$major' 9686 shlibpath_var=LD_LIBRARY_PATH 9687 shlibpath_overrides_runpath=no 9688 hardcode_into_libs=yes 9689 dynamic_linker='GNU ld.so' 9690 ;; 9691 9692netbsd*) 9693 version_type=sunos 9694 need_lib_prefix=no 9695 need_version=no 9696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9699 dynamic_linker='NetBSD (a.out) ld.so' 9700 else 9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9702 soname_spec='${libname}${release}${shared_ext}$major' 9703 dynamic_linker='NetBSD ld.elf_so' 9704 fi 9705 shlibpath_var=LD_LIBRARY_PATH 9706 shlibpath_overrides_runpath=yes 9707 hardcode_into_libs=yes 9708 ;; 9709 9710newsos6) 9711 version_type=linux 9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9713 shlibpath_var=LD_LIBRARY_PATH 9714 shlibpath_overrides_runpath=yes 9715 ;; 9716 9717nto-qnx*) 9718 version_type=linux 9719 need_lib_prefix=no 9720 need_version=no 9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9722 soname_spec='${libname}${release}${shared_ext}$major' 9723 shlibpath_var=LD_LIBRARY_PATH 9724 shlibpath_overrides_runpath=yes 9725 ;; 9726 9727openbsd*) 9728 version_type=sunos 9729 sys_lib_dlsearch_path_spec="/usr/lib" 9730 need_lib_prefix=no 9731 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9732 case $host_os in 9733 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9734 *) need_version=no ;; 9735 esac 9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9738 shlibpath_var=LD_LIBRARY_PATH 9739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9740 case $host_os in 9741 openbsd2.[89] | openbsd2.[89].*) 9742 shlibpath_overrides_runpath=no 9743 ;; 9744 *) 9745 shlibpath_overrides_runpath=yes 9746 ;; 9747 esac 9748 else 9749 shlibpath_overrides_runpath=yes 9750 fi 9751 ;; 9752 9753os2*) 9754 libname_spec='$name' 9755 shrext_cmds=".dll" 9756 need_lib_prefix=no 9757 library_names_spec='$libname${shared_ext} $libname.a' 9758 dynamic_linker='OS/2 ld.exe' 9759 shlibpath_var=LIBPATH 9760 ;; 9761 9762osf3* | osf4* | osf5*) 9763 version_type=osf 9764 need_lib_prefix=no 9765 need_version=no 9766 soname_spec='${libname}${release}${shared_ext}$major' 9767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9768 shlibpath_var=LD_LIBRARY_PATH 9769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9771 ;; 9772 9773solaris*) 9774 version_type=linux 9775 need_lib_prefix=no 9776 need_version=no 9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9778 soname_spec='${libname}${release}${shared_ext}$major' 9779 shlibpath_var=LD_LIBRARY_PATH 9780 shlibpath_overrides_runpath=yes 9781 hardcode_into_libs=yes 9782 # ldd complains unless libraries are executable 9783 postinstall_cmds='chmod +x $lib' 9784 ;; 9785 9786sunos4*) 9787 version_type=sunos 9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9790 shlibpath_var=LD_LIBRARY_PATH 9791 shlibpath_overrides_runpath=yes 9792 if test "$with_gnu_ld" = yes; then 9793 need_lib_prefix=no 9794 fi 9795 need_version=yes 9796 ;; 9797 9798sysv4 | sysv4.3*) 9799 version_type=linux 9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9801 soname_spec='${libname}${release}${shared_ext}$major' 9802 shlibpath_var=LD_LIBRARY_PATH 9803 case $host_vendor in 9804 sni) 9805 shlibpath_overrides_runpath=no 9806 need_lib_prefix=no 9807 export_dynamic_flag_spec='${wl}-Blargedynsym' 9808 runpath_var=LD_RUN_PATH 9809 ;; 9810 siemens) 9811 need_lib_prefix=no 9812 ;; 9813 motorola) 9814 need_lib_prefix=no 9815 need_version=no 9816 shlibpath_overrides_runpath=no 9817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9818 ;; 9819 esac 9820 ;; 9821 9822sysv4*MP*) 9823 if test -d /usr/nec ;then 9824 version_type=linux 9825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9826 soname_spec='$libname${shared_ext}.$major' 9827 shlibpath_var=LD_LIBRARY_PATH 9828 fi 9829 ;; 9830 9831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9832 version_type=freebsd-elf 9833 need_lib_prefix=no 9834 need_version=no 9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9836 soname_spec='${libname}${release}${shared_ext}$major' 9837 shlibpath_var=LD_LIBRARY_PATH 9838 hardcode_into_libs=yes 9839 if test "$with_gnu_ld" = yes; then 9840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9841 shlibpath_overrides_runpath=no 9842 else 9843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9844 shlibpath_overrides_runpath=yes 9845 case $host_os in 9846 sco3.2v5*) 9847 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9848 ;; 9849 esac 9850 fi 9851 sys_lib_dlsearch_path_spec='/usr/lib' 9852 ;; 9853 9854uts4*) 9855 version_type=linux 9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9857 soname_spec='${libname}${release}${shared_ext}$major' 9858 shlibpath_var=LD_LIBRARY_PATH 9859 ;; 9860 9861*) 9862 dynamic_linker=no 9863 ;; 9864esac 9865{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9866echo "${ECHO_T}$dynamic_linker" >&6; } 9867test "$dynamic_linker" = no && can_build_shared=no 9868 9869variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9870if test "$GCC" = yes; then 9871 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9872fi 9873 9874 9875{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9876echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9877if test "${libltdl_cv_shlibext+set}" = set; then 9878 echo $ECHO_N "(cached) $ECHO_C" >&6 9879else 9880 9881module=yes 9882eval libltdl_cv_shlibext=$shrext_cmds 9883 9884fi 9885{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9886echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9887if test -n "$libltdl_cv_shlibext"; then 9888 9889cat >>confdefs.h <<_ACEOF 9890#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9891_ACEOF 9892 9893fi 9894 9895 9896{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 9897echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; } 9898if test "${libltdl_cv_shlibpath_var+set}" = set; then 9899 echo $ECHO_N "(cached) $ECHO_C" >&6 9900else 9901 libltdl_cv_shlibpath_var="$shlibpath_var" 9902fi 9903{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 9904echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; } 9905if test -n "$libltdl_cv_shlibpath_var"; then 9906 9907cat >>confdefs.h <<_ACEOF 9908#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" 9909_ACEOF 9910 9911fi 9912 9913 9914{ echo "$as_me:$LINENO: checking for the default library search path" >&5 9915echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9916if test "${libltdl_cv_sys_search_path+set}" = set; then 9917 echo $ECHO_N "(cached) $ECHO_C" >&6 9918else 9919 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9920fi 9921{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9922echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9923if test -n "$libltdl_cv_sys_search_path"; then 9924 sys_search_path= 9925 for dir in $libltdl_cv_sys_search_path; do 9926 if test -z "$sys_search_path"; then 9927 sys_search_path="$dir" 9928 else 9929 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9930 fi 9931 done 9932 9933cat >>confdefs.h <<_ACEOF 9934#define LTDL_SYSSEARCHPATH "$sys_search_path" 9935_ACEOF 9936 9937fi 9938 9939{ echo "$as_me:$LINENO: checking for objdir" >&5 9940echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9941if test "${libltdl_cv_objdir+set}" = set; then 9942 echo $ECHO_N "(cached) $ECHO_C" >&6 9943else 9944 libltdl_cv_objdir="$objdir" 9945 if test -n "$objdir"; then 9946 : 9947 else 9948 rm -f .libs 2>/dev/null 9949 mkdir .libs 2>/dev/null 9950 if test -d .libs; then 9951 libltdl_cv_objdir=.libs 9952 else 9953 # MS-DOS does not allow filenames that begin with a dot. 9954 libltdl_cv_objdir=_libs 9955 fi 9956 rmdir .libs 2>/dev/null 9957 fi 9958 9959fi 9960{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9961echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9962 9963cat >>confdefs.h <<_ACEOF 9964#define LTDL_OBJDIR "$libltdl_cv_objdir/" 9965_ACEOF 9966 9967 9968 9969 9970 9971 9972# Check for command to grab the raw symbol name followed by C symbol from nm. 9973{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9974echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9975if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9976 echo $ECHO_N "(cached) $ECHO_C" >&6 9977else 9978 9979# These are sane defaults that work on at least a few old systems. 9980# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9981 9982# Character class describing NM global symbol codes. 9983symcode='[BCDEGRST]' 9984 9985# Regexp to match symbols that can be accessed directly from C. 9986sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9987 9988# Transform an extracted symbol line into a proper C declaration 9989lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9990 9991# Transform an extracted symbol line into symbol name and symbol address 9992lt_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'" 9993 9994# Define system-specific variables. 9995case $host_os in 9996aix*) 9997 symcode='[BCDT]' 9998 ;; 9999cygwin* | mingw* | pw32*) 10000 symcode='[ABCDGISTW]' 10001 ;; 10002hpux*) # Its linker distinguishes data from code symbols 10003 if test "$host_cpu" = ia64; then 10004 symcode='[ABCDEGRST]' 10005 fi 10006 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10007 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'" 10008 ;; 10009linux*) 10010 if test "$host_cpu" = ia64; then 10011 symcode='[ABCDGIRSTW]' 10012 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10013 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'" 10014 fi 10015 ;; 10016irix* | nonstopux*) 10017 symcode='[BCDEGRST]' 10018 ;; 10019osf*) 10020 symcode='[BCDEGQRST]' 10021 ;; 10022solaris*) 10023 symcode='[BDRT]' 10024 ;; 10025sco3.2v5*) 10026 symcode='[DT]' 10027 ;; 10028sysv4.2uw2*) 10029 symcode='[DT]' 10030 ;; 10031sysv5* | sco5v6* | unixware* | OpenUNIX*) 10032 symcode='[ABDT]' 10033 ;; 10034sysv4) 10035 symcode='[DFNSTU]' 10036 ;; 10037esac 10038 10039# Handle CRLF in mingw tool chain 10040opt_cr= 10041case $build_os in 10042mingw*) 10043 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10044 ;; 10045esac 10046 10047# If we're using GNU nm, then use its standard symbol codes. 10048case `$NM -V 2>&1` in 10049*GNU* | *'with BFD'*) 10050 symcode='[ABCDGIRSTW]' ;; 10051esac 10052 10053# Try without a prefix undercore, then with it. 10054for ac_symprfx in "" "_"; do 10055 10056 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10057 symxfrm="\\1 $ac_symprfx\\2 \\2" 10058 10059 # Write the raw and C identifiers. 10060 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10061 10062 # Check to see that the pipe works correctly. 10063 pipe_works=no 10064 10065 rm -f conftest* 10066 cat > conftest.$ac_ext <<EOF 10067#ifdef __cplusplus 10068extern "C" { 10069#endif 10070char nm_test_var; 10071void nm_test_func(){} 10072#ifdef __cplusplus 10073} 10074#endif 10075int main(){nm_test_var='a';nm_test_func();return(0);} 10076EOF 10077 10078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10079 (eval $ac_compile) 2>&5 10080 ac_status=$? 10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10082 (exit $ac_status); }; then 10083 # Now try to grab the symbols. 10084 nlist=conftest.nm 10085 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 10086 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 10087 ac_status=$? 10088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10089 (exit $ac_status); } && test -s "$nlist"; then 10090 # Try sorting and uniquifying the output. 10091 if sort "$nlist" | uniq > "$nlist"T; then 10092 mv -f "$nlist"T "$nlist" 10093 else 10094 rm -f "$nlist"T 10095 fi 10096 10097 # Make sure that we snagged all the symbols we need. 10098 if grep ' nm_test_var$' "$nlist" >/dev/null; then 10099 if grep ' nm_test_func$' "$nlist" >/dev/null; then 10100 cat <<EOF > conftest.$ac_ext 10101#ifdef __cplusplus 10102extern "C" { 10103#endif 10104 10105EOF 10106 # Now generate the symbol file. 10107 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 10108 10109 cat <<EOF >> conftest.$ac_ext 10110#if defined (__STDC__) && __STDC__ 10111# define lt_ptr_t void * 10112#else 10113# define lt_ptr_t char * 10114# define const 10115#endif 10116 10117/* The mapping between symbol names and symbols. */ 10118const struct { 10119 const char *name; 10120 lt_ptr_t address; 10121} 10122lt_preloaded_symbols[] = 10123{ 10124EOF 10125 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 10126 cat <<\EOF >> conftest.$ac_ext 10127 {0, (lt_ptr_t) 0} 10128}; 10129 10130#ifdef __cplusplus 10131} 10132#endif 10133EOF 10134 # Now try linking the two files. 10135 mv conftest.$ac_objext conftstm.$ac_objext 10136 lt_save_LIBS="$LIBS" 10137 lt_save_CFLAGS="$CFLAGS" 10138 LIBS="conftstm.$ac_objext" 10139 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10141 (eval $ac_link) 2>&5 10142 ac_status=$? 10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10144 (exit $ac_status); } && test -s conftest${ac_exeext}; then 10145 pipe_works=yes 10146 fi 10147 LIBS="$lt_save_LIBS" 10148 CFLAGS="$lt_save_CFLAGS" 10149 else 10150 echo "cannot find nm_test_func in $nlist" >&5 10151 fi 10152 else 10153 echo "cannot find nm_test_var in $nlist" >&5 10154 fi 10155 else 10156 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10157 fi 10158 else 10159 echo "$progname: failed program was:" >&5 10160 cat conftest.$ac_ext >&5 10161 fi 10162 rm -f conftest* conftst* 10163 10164 # Do not use the global_symbol_pipe unless it works. 10165 if test "$pipe_works" = yes; then 10166 break 10167 else 10168 lt_cv_sys_global_symbol_pipe= 10169 fi 10170done 10171 10172fi 10173 10174if test -z "$lt_cv_sys_global_symbol_pipe"; then 10175 lt_cv_sys_global_symbol_to_cdecl= 10176fi 10177if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10178 { echo "$as_me:$LINENO: result: failed" >&5 10179echo "${ECHO_T}failed" >&6; } 10180else 10181 { echo "$as_me:$LINENO: result: ok" >&5 10182echo "${ECHO_T}ok" >&6; } 10183fi 10184 10185 10186{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 10187echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 10188if test "${libltdl_cv_preloaded_symbols+set}" = set; then 10189 echo $ECHO_N "(cached) $ECHO_C" >&6 10190else 10191 if test -n "$lt_cv_sys_global_symbol_pipe"; then 10192 libltdl_cv_preloaded_symbols=yes 10193 else 10194 libltdl_cv_preloaded_symbols=no 10195 fi 10196 10197fi 10198{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 10199echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 10200if test x"$libltdl_cv_preloaded_symbols" = xyes; then 10201 10202cat >>confdefs.h <<\_ACEOF 10203#define HAVE_PRELOADED_SYMBOLS 1 10204_ACEOF 10205 10206fi 10207 10208LIBADD_DL= 10209 10210ac_ext=c 10211ac_cpp='$CPP $CPPFLAGS' 10212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10214ac_compiler_gnu=$ac_cv_c_compiler_gnu 10215 10216 10217{ echo "$as_me:$LINENO: checking for shl_load" >&5 10218echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 10219if test "${ac_cv_func_shl_load+set}" = set; then 10220 echo $ECHO_N "(cached) $ECHO_C" >&6 10221else 10222 cat >conftest.$ac_ext <<_ACEOF 10223/* confdefs.h. */ 10224_ACEOF 10225cat confdefs.h >>conftest.$ac_ext 10226cat >>conftest.$ac_ext <<_ACEOF 10227/* end confdefs.h. */ 10228/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 10229 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10230#define shl_load innocuous_shl_load 10231 10232/* System header to define __stub macros and hopefully few prototypes, 10233 which can conflict with char shl_load (); below. 10234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10235 <limits.h> exists even on freestanding compilers. */ 10236 10237#ifdef __STDC__ 10238# include <limits.h> 10239#else 10240# include <assert.h> 10241#endif 10242 10243#undef shl_load 10244 10245/* Override any GCC internal prototype to avoid an error. 10246 Use char because int might match the return type of a GCC 10247 builtin and then its argument prototype would still apply. */ 10248#ifdef __cplusplus 10249extern "C" 10250#endif 10251char shl_load (); 10252/* The GNU C library defines this for functions which it implements 10253 to always fail with ENOSYS. Some functions are actually named 10254 something starting with __ and the normal name is an alias. */ 10255#if defined __stub_shl_load || defined __stub___shl_load 10256choke me 10257#endif 10258 10259int 10260main () 10261{ 10262return shl_load (); 10263 ; 10264 return 0; 10265} 10266_ACEOF 10267rm -f conftest.$ac_objext conftest$ac_exeext 10268if { (ac_try="$ac_link" 10269case "(($ac_try" in 10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10271 *) ac_try_echo=$ac_try;; 10272esac 10273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10274 (eval "$ac_link") 2>conftest.er1 10275 ac_status=$? 10276 grep -v '^ *+' conftest.er1 >conftest.err 10277 rm -f conftest.er1 10278 cat conftest.err >&5 10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10280 (exit $ac_status); } && 10281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10282 { (case "(($ac_try" in 10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10284 *) ac_try_echo=$ac_try;; 10285esac 10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10287 (eval "$ac_try") 2>&5 10288 ac_status=$? 10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10290 (exit $ac_status); }; } && 10291 { ac_try='test -s conftest$ac_exeext' 10292 { (case "(($ac_try" in 10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10294 *) ac_try_echo=$ac_try;; 10295esac 10296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10297 (eval "$ac_try") 2>&5 10298 ac_status=$? 10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10300 (exit $ac_status); }; }; then 10301 ac_cv_func_shl_load=yes 10302else 10303 echo "$as_me: failed program was:" >&5 10304sed 's/^/| /' conftest.$ac_ext >&5 10305 10306 ac_cv_func_shl_load=no 10307fi 10308 10309rm -f core conftest.err conftest.$ac_objext \ 10310 conftest$ac_exeext conftest.$ac_ext 10311fi 10312{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10313echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 10314if test $ac_cv_func_shl_load = yes; then 10315 10316cat >>confdefs.h <<\_ACEOF 10317#define HAVE_SHL_LOAD 1 10318_ACEOF 10319 10320else 10321 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 10322echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 10323if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10324 echo $ECHO_N "(cached) $ECHO_C" >&6 10325else 10326 ac_check_lib_save_LIBS=$LIBS 10327LIBS="-ldld $LIBS" 10328cat >conftest.$ac_ext <<_ACEOF 10329/* confdefs.h. */ 10330_ACEOF 10331cat confdefs.h >>conftest.$ac_ext 10332cat >>conftest.$ac_ext <<_ACEOF 10333/* end confdefs.h. */ 10334 10335/* Override any GCC internal prototype to avoid an error. 10336 Use char because int might match the return type of a GCC 10337 builtin and then its argument prototype would still apply. */ 10338#ifdef __cplusplus 10339extern "C" 10340#endif 10341char shl_load (); 10342int 10343main () 10344{ 10345return shl_load (); 10346 ; 10347 return 0; 10348} 10349_ACEOF 10350rm -f conftest.$ac_objext conftest$ac_exeext 10351if { (ac_try="$ac_link" 10352case "(($ac_try" in 10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10354 *) ac_try_echo=$ac_try;; 10355esac 10356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10357 (eval "$ac_link") 2>conftest.er1 10358 ac_status=$? 10359 grep -v '^ *+' conftest.er1 >conftest.err 10360 rm -f conftest.er1 10361 cat conftest.err >&5 10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10363 (exit $ac_status); } && 10364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10365 { (case "(($ac_try" in 10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10367 *) ac_try_echo=$ac_try;; 10368esac 10369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10370 (eval "$ac_try") 2>&5 10371 ac_status=$? 10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10373 (exit $ac_status); }; } && 10374 { ac_try='test -s conftest$ac_exeext' 10375 { (case "(($ac_try" in 10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10377 *) ac_try_echo=$ac_try;; 10378esac 10379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10380 (eval "$ac_try") 2>&5 10381 ac_status=$? 10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10383 (exit $ac_status); }; }; then 10384 ac_cv_lib_dld_shl_load=yes 10385else 10386 echo "$as_me: failed program was:" >&5 10387sed 's/^/| /' conftest.$ac_ext >&5 10388 10389 ac_cv_lib_dld_shl_load=no 10390fi 10391 10392rm -f core conftest.err conftest.$ac_objext \ 10393 conftest$ac_exeext conftest.$ac_ext 10394LIBS=$ac_check_lib_save_LIBS 10395fi 10396{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 10397echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 10398if test $ac_cv_lib_dld_shl_load = yes; then 10399 10400cat >>confdefs.h <<\_ACEOF 10401#define HAVE_SHL_LOAD 1 10402_ACEOF 10403 10404 LIBADD_DL="$LIBADD_DL -ldld" 10405else 10406 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10407echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10408if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10409 echo $ECHO_N "(cached) $ECHO_C" >&6 10410else 10411 ac_check_lib_save_LIBS=$LIBS 10412LIBS="-ldl $LIBS" 10413cat >conftest.$ac_ext <<_ACEOF 10414/* confdefs.h. */ 10415_ACEOF 10416cat confdefs.h >>conftest.$ac_ext 10417cat >>conftest.$ac_ext <<_ACEOF 10418/* end confdefs.h. */ 10419 10420/* Override any GCC internal prototype to avoid an error. 10421 Use char because int might match the return type of a GCC 10422 builtin and then its argument prototype would still apply. */ 10423#ifdef __cplusplus 10424extern "C" 10425#endif 10426char dlopen (); 10427int 10428main () 10429{ 10430return dlopen (); 10431 ; 10432 return 0; 10433} 10434_ACEOF 10435rm -f conftest.$ac_objext conftest$ac_exeext 10436if { (ac_try="$ac_link" 10437case "(($ac_try" in 10438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10439 *) ac_try_echo=$ac_try;; 10440esac 10441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10442 (eval "$ac_link") 2>conftest.er1 10443 ac_status=$? 10444 grep -v '^ *+' conftest.er1 >conftest.err 10445 rm -f conftest.er1 10446 cat conftest.err >&5 10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10448 (exit $ac_status); } && 10449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10450 { (case "(($ac_try" in 10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10452 *) ac_try_echo=$ac_try;; 10453esac 10454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10455 (eval "$ac_try") 2>&5 10456 ac_status=$? 10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10458 (exit $ac_status); }; } && 10459 { ac_try='test -s conftest$ac_exeext' 10460 { (case "(($ac_try" in 10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10462 *) ac_try_echo=$ac_try;; 10463esac 10464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10465 (eval "$ac_try") 2>&5 10466 ac_status=$? 10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10468 (exit $ac_status); }; }; then 10469 ac_cv_lib_dl_dlopen=yes 10470else 10471 echo "$as_me: failed program was:" >&5 10472sed 's/^/| /' conftest.$ac_ext >&5 10473 10474 ac_cv_lib_dl_dlopen=no 10475fi 10476 10477rm -f core conftest.err conftest.$ac_objext \ 10478 conftest$ac_exeext conftest.$ac_ext 10479LIBS=$ac_check_lib_save_LIBS 10480fi 10481{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10482echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10483if test $ac_cv_lib_dl_dlopen = yes; then 10484 10485cat >>confdefs.h <<\_ACEOF 10486#define HAVE_LIBDL 1 10487_ACEOF 10488 10489 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 10490else 10491 cat >conftest.$ac_ext <<_ACEOF 10492/* confdefs.h. */ 10493_ACEOF 10494cat confdefs.h >>conftest.$ac_ext 10495cat >>conftest.$ac_ext <<_ACEOF 10496/* end confdefs.h. */ 10497#if HAVE_DLFCN_H 10498# include <dlfcn.h> 10499#endif 10500 10501int 10502main () 10503{ 10504dlopen(0, 0); 10505 ; 10506 return 0; 10507} 10508_ACEOF 10509rm -f conftest.$ac_objext conftest$ac_exeext 10510if { (ac_try="$ac_link" 10511case "(($ac_try" in 10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10513 *) ac_try_echo=$ac_try;; 10514esac 10515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10516 (eval "$ac_link") 2>conftest.er1 10517 ac_status=$? 10518 grep -v '^ *+' conftest.er1 >conftest.err 10519 rm -f conftest.er1 10520 cat conftest.err >&5 10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10522 (exit $ac_status); } && 10523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10524 { (case "(($ac_try" in 10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10526 *) ac_try_echo=$ac_try;; 10527esac 10528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10529 (eval "$ac_try") 2>&5 10530 ac_status=$? 10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10532 (exit $ac_status); }; } && 10533 { ac_try='test -s conftest$ac_exeext' 10534 { (case "(($ac_try" in 10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10536 *) ac_try_echo=$ac_try;; 10537esac 10538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10539 (eval "$ac_try") 2>&5 10540 ac_status=$? 10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10542 (exit $ac_status); }; }; then 10543 10544cat >>confdefs.h <<\_ACEOF 10545#define HAVE_LIBDL 1 10546_ACEOF 10547 libltdl_cv_func_dlopen="yes" 10548else 10549 echo "$as_me: failed program was:" >&5 10550sed 's/^/| /' conftest.$ac_ext >&5 10551 10552 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10553echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10554if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10555 echo $ECHO_N "(cached) $ECHO_C" >&6 10556else 10557 ac_check_lib_save_LIBS=$LIBS 10558LIBS="-lsvld $LIBS" 10559cat >conftest.$ac_ext <<_ACEOF 10560/* confdefs.h. */ 10561_ACEOF 10562cat confdefs.h >>conftest.$ac_ext 10563cat >>conftest.$ac_ext <<_ACEOF 10564/* end confdefs.h. */ 10565 10566/* Override any GCC internal prototype to avoid an error. 10567 Use char because int might match the return type of a GCC 10568 builtin and then its argument prototype would still apply. */ 10569#ifdef __cplusplus 10570extern "C" 10571#endif 10572char dlopen (); 10573int 10574main () 10575{ 10576return dlopen (); 10577 ; 10578 return 0; 10579} 10580_ACEOF 10581rm -f conftest.$ac_objext conftest$ac_exeext 10582if { (ac_try="$ac_link" 10583case "(($ac_try" in 10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10585 *) ac_try_echo=$ac_try;; 10586esac 10587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10588 (eval "$ac_link") 2>conftest.er1 10589 ac_status=$? 10590 grep -v '^ *+' conftest.er1 >conftest.err 10591 rm -f conftest.er1 10592 cat conftest.err >&5 10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10594 (exit $ac_status); } && 10595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10596 { (case "(($ac_try" in 10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10598 *) ac_try_echo=$ac_try;; 10599esac 10600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10601 (eval "$ac_try") 2>&5 10602 ac_status=$? 10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10604 (exit $ac_status); }; } && 10605 { ac_try='test -s conftest$ac_exeext' 10606 { (case "(($ac_try" in 10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10608 *) ac_try_echo=$ac_try;; 10609esac 10610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10611 (eval "$ac_try") 2>&5 10612 ac_status=$? 10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10614 (exit $ac_status); }; }; then 10615 ac_cv_lib_svld_dlopen=yes 10616else 10617 echo "$as_me: failed program was:" >&5 10618sed 's/^/| /' conftest.$ac_ext >&5 10619 10620 ac_cv_lib_svld_dlopen=no 10621fi 10622 10623rm -f core conftest.err conftest.$ac_objext \ 10624 conftest$ac_exeext conftest.$ac_ext 10625LIBS=$ac_check_lib_save_LIBS 10626fi 10627{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10628echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10629if test $ac_cv_lib_svld_dlopen = yes; then 10630 10631cat >>confdefs.h <<\_ACEOF 10632#define HAVE_LIBDL 1 10633_ACEOF 10634 10635 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 10636else 10637 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10638echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10639if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10640 echo $ECHO_N "(cached) $ECHO_C" >&6 10641else 10642 ac_check_lib_save_LIBS=$LIBS 10643LIBS="-ldld $LIBS" 10644cat >conftest.$ac_ext <<_ACEOF 10645/* confdefs.h. */ 10646_ACEOF 10647cat confdefs.h >>conftest.$ac_ext 10648cat >>conftest.$ac_ext <<_ACEOF 10649/* end confdefs.h. */ 10650 10651/* Override any GCC internal prototype to avoid an error. 10652 Use char because int might match the return type of a GCC 10653 builtin and then its argument prototype would still apply. */ 10654#ifdef __cplusplus 10655extern "C" 10656#endif 10657char dld_link (); 10658int 10659main () 10660{ 10661return dld_link (); 10662 ; 10663 return 0; 10664} 10665_ACEOF 10666rm -f conftest.$ac_objext conftest$ac_exeext 10667if { (ac_try="$ac_link" 10668case "(($ac_try" in 10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10670 *) ac_try_echo=$ac_try;; 10671esac 10672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10673 (eval "$ac_link") 2>conftest.er1 10674 ac_status=$? 10675 grep -v '^ *+' conftest.er1 >conftest.err 10676 rm -f conftest.er1 10677 cat conftest.err >&5 10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10679 (exit $ac_status); } && 10680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10681 { (case "(($ac_try" in 10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10683 *) ac_try_echo=$ac_try;; 10684esac 10685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10686 (eval "$ac_try") 2>&5 10687 ac_status=$? 10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10689 (exit $ac_status); }; } && 10690 { ac_try='test -s conftest$ac_exeext' 10691 { (case "(($ac_try" in 10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10693 *) ac_try_echo=$ac_try;; 10694esac 10695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10696 (eval "$ac_try") 2>&5 10697 ac_status=$? 10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10699 (exit $ac_status); }; }; then 10700 ac_cv_lib_dld_dld_link=yes 10701else 10702 echo "$as_me: failed program was:" >&5 10703sed 's/^/| /' conftest.$ac_ext >&5 10704 10705 ac_cv_lib_dld_dld_link=no 10706fi 10707 10708rm -f core conftest.err conftest.$ac_objext \ 10709 conftest$ac_exeext conftest.$ac_ext 10710LIBS=$ac_check_lib_save_LIBS 10711fi 10712{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10713echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10714if test $ac_cv_lib_dld_dld_link = yes; then 10715 10716cat >>confdefs.h <<\_ACEOF 10717#define HAVE_DLD 1 10718_ACEOF 10719 10720 LIBADD_DL="$LIBADD_DL -ldld" 10721else 10722 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 10723echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10724if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10725 echo $ECHO_N "(cached) $ECHO_C" >&6 10726else 10727 cat >conftest.$ac_ext <<_ACEOF 10728/* confdefs.h. */ 10729_ACEOF 10730cat confdefs.h >>conftest.$ac_ext 10731cat >>conftest.$ac_ext <<_ACEOF 10732/* end confdefs.h. */ 10733/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10734 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10735#define _dyld_func_lookup innocuous__dyld_func_lookup 10736 10737/* System header to define __stub macros and hopefully few prototypes, 10738 which can conflict with char _dyld_func_lookup (); below. 10739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10740 <limits.h> exists even on freestanding compilers. */ 10741 10742#ifdef __STDC__ 10743# include <limits.h> 10744#else 10745# include <assert.h> 10746#endif 10747 10748#undef _dyld_func_lookup 10749 10750/* Override any GCC internal prototype to avoid an error. 10751 Use char because int might match the return type of a GCC 10752 builtin and then its argument prototype would still apply. */ 10753#ifdef __cplusplus 10754extern "C" 10755#endif 10756char _dyld_func_lookup (); 10757/* The GNU C library defines this for functions which it implements 10758 to always fail with ENOSYS. Some functions are actually named 10759 something starting with __ and the normal name is an alias. */ 10760#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10761choke me 10762#endif 10763 10764int 10765main () 10766{ 10767return _dyld_func_lookup (); 10768 ; 10769 return 0; 10770} 10771_ACEOF 10772rm -f conftest.$ac_objext conftest$ac_exeext 10773if { (ac_try="$ac_link" 10774case "(($ac_try" in 10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10776 *) ac_try_echo=$ac_try;; 10777esac 10778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10779 (eval "$ac_link") 2>conftest.er1 10780 ac_status=$? 10781 grep -v '^ *+' conftest.er1 >conftest.err 10782 rm -f conftest.er1 10783 cat conftest.err >&5 10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10785 (exit $ac_status); } && 10786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10787 { (case "(($ac_try" in 10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10789 *) ac_try_echo=$ac_try;; 10790esac 10791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10792 (eval "$ac_try") 2>&5 10793 ac_status=$? 10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10795 (exit $ac_status); }; } && 10796 { ac_try='test -s conftest$ac_exeext' 10797 { (case "(($ac_try" in 10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10799 *) ac_try_echo=$ac_try;; 10800esac 10801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10802 (eval "$ac_try") 2>&5 10803 ac_status=$? 10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10805 (exit $ac_status); }; }; then 10806 ac_cv_func__dyld_func_lookup=yes 10807else 10808 echo "$as_me: failed program was:" >&5 10809sed 's/^/| /' conftest.$ac_ext >&5 10810 10811 ac_cv_func__dyld_func_lookup=no 10812fi 10813 10814rm -f core conftest.err conftest.$ac_objext \ 10815 conftest$ac_exeext conftest.$ac_ext 10816fi 10817{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10818echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10819if test $ac_cv_func__dyld_func_lookup = yes; then 10820 10821cat >>confdefs.h <<\_ACEOF 10822#define HAVE_DYLD 1 10823_ACEOF 10824 10825fi 10826 10827 10828fi 10829 10830 10831fi 10832 10833 10834fi 10835 10836rm -f core conftest.err conftest.$ac_objext \ 10837 conftest$ac_exeext conftest.$ac_ext 10838 10839fi 10840 10841 10842fi 10843 10844 10845fi 10846 10847 10848if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10849then 10850 lt_save_LIBS="$LIBS" 10851 LIBS="$LIBS $LIBADD_DL" 10852 10853for ac_func in dlerror 10854do 10855as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10856{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10858if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10859 echo $ECHO_N "(cached) $ECHO_C" >&6 10860else 10861 cat >conftest.$ac_ext <<_ACEOF 10862/* confdefs.h. */ 10863_ACEOF 10864cat confdefs.h >>conftest.$ac_ext 10865cat >>conftest.$ac_ext <<_ACEOF 10866/* end confdefs.h. */ 10867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10868 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10869#define $ac_func innocuous_$ac_func 10870 10871/* System header to define __stub macros and hopefully few prototypes, 10872 which can conflict with char $ac_func (); below. 10873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10874 <limits.h> exists even on freestanding compilers. */ 10875 10876#ifdef __STDC__ 10877# include <limits.h> 10878#else 10879# include <assert.h> 10880#endif 10881 10882#undef $ac_func 10883 10884/* Override any GCC internal prototype to avoid an error. 10885 Use char because int might match the return type of a GCC 10886 builtin and then its argument prototype would still apply. */ 10887#ifdef __cplusplus 10888extern "C" 10889#endif 10890char $ac_func (); 10891/* The GNU C library defines this for functions which it implements 10892 to always fail with ENOSYS. Some functions are actually named 10893 something starting with __ and the normal name is an alias. */ 10894#if defined __stub_$ac_func || defined __stub___$ac_func 10895choke me 10896#endif 10897 10898int 10899main () 10900{ 10901return $ac_func (); 10902 ; 10903 return 0; 10904} 10905_ACEOF 10906rm -f conftest.$ac_objext conftest$ac_exeext 10907if { (ac_try="$ac_link" 10908case "(($ac_try" in 10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10910 *) ac_try_echo=$ac_try;; 10911esac 10912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10913 (eval "$ac_link") 2>conftest.er1 10914 ac_status=$? 10915 grep -v '^ *+' conftest.er1 >conftest.err 10916 rm -f conftest.er1 10917 cat conftest.err >&5 10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10919 (exit $ac_status); } && 10920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10921 { (case "(($ac_try" in 10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10923 *) ac_try_echo=$ac_try;; 10924esac 10925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10926 (eval "$ac_try") 2>&5 10927 ac_status=$? 10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10929 (exit $ac_status); }; } && 10930 { ac_try='test -s conftest$ac_exeext' 10931 { (case "(($ac_try" in 10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10933 *) ac_try_echo=$ac_try;; 10934esac 10935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10936 (eval "$ac_try") 2>&5 10937 ac_status=$? 10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10939 (exit $ac_status); }; }; then 10940 eval "$as_ac_var=yes" 10941else 10942 echo "$as_me: failed program was:" >&5 10943sed 's/^/| /' conftest.$ac_ext >&5 10944 10945 eval "$as_ac_var=no" 10946fi 10947 10948rm -f core conftest.err conftest.$ac_objext \ 10949 conftest$ac_exeext conftest.$ac_ext 10950fi 10951ac_res=`eval echo '${'$as_ac_var'}'` 10952 { echo "$as_me:$LINENO: result: $ac_res" >&5 10953echo "${ECHO_T}$ac_res" >&6; } 10954if test `eval echo '${'$as_ac_var'}'` = yes; then 10955 cat >>confdefs.h <<_ACEOF 10956#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10957_ACEOF 10958 10959fi 10960done 10961 10962 LIBS="$lt_save_LIBS" 10963fi 10964ac_ext=c 10965ac_cpp='$CPP $CPPFLAGS' 10966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10968ac_compiler_gnu=$ac_cv_c_compiler_gnu 10969 10970 10971 10972{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10973echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10974if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10975 echo $ECHO_N "(cached) $ECHO_C" >&6 10976else 10977 ac_cv_sys_symbol_underscore=no 10978 cat > conftest.$ac_ext <<EOF 10979void nm_test_func(){} 10980int main(){nm_test_func;return 0;} 10981EOF 10982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10983 (eval $ac_compile) 2>&5 10984 ac_status=$? 10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10986 (exit $ac_status); }; then 10987 # Now try to grab the symbols. 10988 ac_nlist=conftest.nm 10989 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10990 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10991 ac_status=$? 10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10993 (exit $ac_status); } && test -s "$ac_nlist"; then 10994 # See whether the symbols have a leading underscore. 10995 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10996 ac_cv_sys_symbol_underscore=yes 10997 else 10998 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10999 : 11000 else 11001 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 11002 fi 11003 fi 11004 else 11005 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 11006 fi 11007 else 11008 echo "configure: failed program was:" >&5 11009 cat conftest.c >&5 11010 fi 11011 rm -rf conftest* 11012 11013fi 11014{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 11015echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 11016 11017 11018if test x"$ac_cv_sys_symbol_underscore" = xyes; then 11019 if test x"$libltdl_cv_func_dlopen" = xyes || 11020 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 11021 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 11022echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 11023if test "${libltdl_cv_need_uscore+set}" = set; then 11024 echo $ECHO_N "(cached) $ECHO_C" >&6 11025else 11026 libltdl_cv_need_uscore=unknown 11027 save_LIBS="$LIBS" 11028 LIBS="$LIBS $LIBADD_DL" 11029 if test "$cross_compiling" = yes; then : 11030 libltdl_cv_need_uscore=cross 11031else 11032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11033 lt_status=$lt_dlunknown 11034 cat > conftest.$ac_ext <<EOF 11035#line 11035 "configure" 11036#include "confdefs.h" 11037 11038#if HAVE_DLFCN_H 11039#include <dlfcn.h> 11040#endif 11041 11042#include <stdio.h> 11043 11044#ifdef RTLD_GLOBAL 11045# define LT_DLGLOBAL RTLD_GLOBAL 11046#else 11047# ifdef DL_GLOBAL 11048# define LT_DLGLOBAL DL_GLOBAL 11049# else 11050# define LT_DLGLOBAL 0 11051# endif 11052#endif 11053 11054/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11055 find out it does not work in some platform. */ 11056#ifndef LT_DLLAZY_OR_NOW 11057# ifdef RTLD_LAZY 11058# define LT_DLLAZY_OR_NOW RTLD_LAZY 11059# else 11060# ifdef DL_LAZY 11061# define LT_DLLAZY_OR_NOW DL_LAZY 11062# else 11063# ifdef RTLD_NOW 11064# define LT_DLLAZY_OR_NOW RTLD_NOW 11065# else 11066# ifdef DL_NOW 11067# define LT_DLLAZY_OR_NOW DL_NOW 11068# else 11069# define LT_DLLAZY_OR_NOW 0 11070# endif 11071# endif 11072# endif 11073# endif 11074#endif 11075 11076#ifdef __cplusplus 11077extern "C" void exit (int); 11078#endif 11079 11080void fnord() { int i=42;} 11081int main () 11082{ 11083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11084 int status = $lt_dlunknown; 11085 11086 if (self) 11087 { 11088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11089 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11090 /* dlclose (self); */ 11091 } 11092 else 11093 puts (dlerror ()); 11094 11095 exit (status); 11096} 11097EOF 11098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11099 (eval $ac_link) 2>&5 11100 ac_status=$? 11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11102 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 11103 (./conftest; exit; ) >&5 2>/dev/null 11104 lt_status=$? 11105 case x$lt_status in 11106 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 11107 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 11108 x$lt_dlunknown|x*) ;; 11109 esac 11110 else : 11111 # compilation failed 11112 11113 fi 11114fi 11115rm -fr conftest* 11116 11117 LIBS="$save_LIBS" 11118 11119fi 11120{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 11121echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 11122 fi 11123fi 11124 11125if test x"$libltdl_cv_need_uscore" = xyes; then 11126 11127cat >>confdefs.h <<\_ACEOF 11128#define NEED_USCORE 1 11129_ACEOF 11130 11131fi 11132 11133 11134{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 11135echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 11136if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 11137 echo $ECHO_N "(cached) $ECHO_C" >&6 11138else 11139 # PORTME does your system automatically load deplibs for dlopen? 11140 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 11141 # For now, we just catch OSes we know something about -- in the 11142 # future, we'll try test this programmatically. 11143 libltdl_cv_sys_dlopen_deplibs=unknown 11144 case "$host_os" in 11145 aix3*|aix4.1.*|aix4.2.*) 11146 # Unknown whether this is true for these versions of AIX, but 11147 # we want this `case' here to explicitly catch those versions. 11148 libltdl_cv_sys_dlopen_deplibs=unknown 11149 ;; 11150 aix[45]*) 11151 libltdl_cv_sys_dlopen_deplibs=yes 11152 ;; 11153 darwin*) 11154 # Assuming the user has installed a libdl from somewhere, this is true 11155 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 11156 libltdl_cv_sys_dlopen_deplibs=yes 11157 ;; 11158 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 11159 # GNU and its variants, using gnu ld.so (Glibc) 11160 libltdl_cv_sys_dlopen_deplibs=yes 11161 ;; 11162 hpux10*|hpux11*) 11163 libltdl_cv_sys_dlopen_deplibs=yes 11164 ;; 11165 interix*) 11166 libltdl_cv_sys_dlopen_deplibs=yes 11167 ;; 11168 irix[12345]*|irix6.[01]*) 11169 # Catch all versions of IRIX before 6.2, and indicate that we don't 11170 # know how it worked for any of those versions. 11171 libltdl_cv_sys_dlopen_deplibs=unknown 11172 ;; 11173 irix*) 11174 # The case above catches anything before 6.2, and it's known that 11175 # at 6.2 and later dlopen does load deplibs. 11176 libltdl_cv_sys_dlopen_deplibs=yes 11177 ;; 11178 netbsd*) 11179 libltdl_cv_sys_dlopen_deplibs=yes 11180 ;; 11181 openbsd*) 11182 libltdl_cv_sys_dlopen_deplibs=yes 11183 ;; 11184 osf[1234]*) 11185 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 11186 # it did *not* use an RPATH in a shared library to find objects the 11187 # library depends on, so we explictly say `no'. 11188 libltdl_cv_sys_dlopen_deplibs=no 11189 ;; 11190 osf5.0|osf5.0a|osf5.1) 11191 # dlopen *does* load deplibs and with the right loader patch applied 11192 # it even uses RPATH in a shared library to search for shared objects 11193 # that the library depends on, but there's no easy way to know if that 11194 # patch is installed. Since this is the case, all we can really 11195 # say is unknown -- it depends on the patch being installed. If 11196 # it is, this changes to `yes'. Without it, it would be `no'. 11197 libltdl_cv_sys_dlopen_deplibs=unknown 11198 ;; 11199 osf*) 11200 # the two cases above should catch all versions of osf <= 5.1. Read 11201 # the comments above for what we know about them. 11202 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 11203 # is used to find them so we can finally say `yes'. 11204 libltdl_cv_sys_dlopen_deplibs=yes 11205 ;; 11206 solaris*) 11207 libltdl_cv_sys_dlopen_deplibs=yes 11208 ;; 11209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11210 libltdl_cv_sys_dlopen_deplibs=yes 11211 ;; 11212 esac 11213 11214fi 11215{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 11216echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 11217if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 11218 11219cat >>confdefs.h <<\_ACEOF 11220#define LTDL_DLOPEN_DEPLIBS 1 11221_ACEOF 11222 11223fi 11224 11225 11226for ac_header in argz.h 11227do 11228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11230 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11233 echo $ECHO_N "(cached) $ECHO_C" >&6 11234fi 11235ac_res=`eval echo '${'$as_ac_Header'}'` 11236 { echo "$as_me:$LINENO: result: $ac_res" >&5 11237echo "${ECHO_T}$ac_res" >&6; } 11238else 11239 # Is the header compilable? 11240{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11242cat >conftest.$ac_ext <<_ACEOF 11243/* confdefs.h. */ 11244_ACEOF 11245cat confdefs.h >>conftest.$ac_ext 11246cat >>conftest.$ac_ext <<_ACEOF 11247/* end confdefs.h. */ 11248$ac_includes_default 11249#include <$ac_header> 11250_ACEOF 11251rm -f conftest.$ac_objext 11252if { (ac_try="$ac_compile" 11253case "(($ac_try" in 11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11255 *) ac_try_echo=$ac_try;; 11256esac 11257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11258 (eval "$ac_compile") 2>conftest.er1 11259 ac_status=$? 11260 grep -v '^ *+' conftest.er1 >conftest.err 11261 rm -f conftest.er1 11262 cat conftest.err >&5 11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11264 (exit $ac_status); } && 11265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11266 { (case "(($ac_try" in 11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11268 *) ac_try_echo=$ac_try;; 11269esac 11270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11271 (eval "$ac_try") 2>&5 11272 ac_status=$? 11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11274 (exit $ac_status); }; } && 11275 { ac_try='test -s conftest.$ac_objext' 11276 { (case "(($ac_try" in 11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11278 *) ac_try_echo=$ac_try;; 11279esac 11280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11281 (eval "$ac_try") 2>&5 11282 ac_status=$? 11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11284 (exit $ac_status); }; }; then 11285 ac_header_compiler=yes 11286else 11287 echo "$as_me: failed program was:" >&5 11288sed 's/^/| /' conftest.$ac_ext >&5 11289 11290 ac_header_compiler=no 11291fi 11292 11293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11294{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11295echo "${ECHO_T}$ac_header_compiler" >&6; } 11296 11297# Is the header present? 11298{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11299echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11300cat >conftest.$ac_ext <<_ACEOF 11301/* confdefs.h. */ 11302_ACEOF 11303cat confdefs.h >>conftest.$ac_ext 11304cat >>conftest.$ac_ext <<_ACEOF 11305/* end confdefs.h. */ 11306#include <$ac_header> 11307_ACEOF 11308if { (ac_try="$ac_cpp conftest.$ac_ext" 11309case "(($ac_try" in 11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11311 *) ac_try_echo=$ac_try;; 11312esac 11313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11315 ac_status=$? 11316 grep -v '^ *+' conftest.er1 >conftest.err 11317 rm -f conftest.er1 11318 cat conftest.err >&5 11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11320 (exit $ac_status); } >/dev/null; then 11321 if test -s conftest.err; then 11322 ac_cpp_err=$ac_c_preproc_warn_flag 11323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11324 else 11325 ac_cpp_err= 11326 fi 11327else 11328 ac_cpp_err=yes 11329fi 11330if test -z "$ac_cpp_err"; then 11331 ac_header_preproc=yes 11332else 11333 echo "$as_me: failed program was:" >&5 11334sed 's/^/| /' conftest.$ac_ext >&5 11335 11336 ac_header_preproc=no 11337fi 11338 11339rm -f conftest.err conftest.$ac_ext 11340{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11341echo "${ECHO_T}$ac_header_preproc" >&6; } 11342 11343# So? What about this header? 11344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11345 yes:no: ) 11346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11349echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11350 ac_header_preproc=yes 11351 ;; 11352 no:yes:* ) 11353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11358echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11360echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11364echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11365 ( cat <<\_ASBOX 11366## ----------------------------------- ## 11367## Report this to llvmbugs@cs.uiuc.edu ## 11368## ----------------------------------- ## 11369_ASBOX 11370 ) | sed "s/^/$as_me: WARNING: /" >&2 11371 ;; 11372esac 11373{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11376 echo $ECHO_N "(cached) $ECHO_C" >&6 11377else 11378 eval "$as_ac_Header=\$ac_header_preproc" 11379fi 11380ac_res=`eval echo '${'$as_ac_Header'}'` 11381 { echo "$as_me:$LINENO: result: $ac_res" >&5 11382echo "${ECHO_T}$ac_res" >&6; } 11383 11384fi 11385if test `eval echo '${'$as_ac_Header'}'` = yes; then 11386 cat >>confdefs.h <<_ACEOF 11387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11388_ACEOF 11389 11390fi 11391 11392done 11393 11394 11395{ echo "$as_me:$LINENO: checking for error_t" >&5 11396echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 11397if test "${ac_cv_type_error_t+set}" = set; then 11398 echo $ECHO_N "(cached) $ECHO_C" >&6 11399else 11400 cat >conftest.$ac_ext <<_ACEOF 11401/* confdefs.h. */ 11402_ACEOF 11403cat confdefs.h >>conftest.$ac_ext 11404cat >>conftest.$ac_ext <<_ACEOF 11405/* end confdefs.h. */ 11406#if HAVE_ARGZ_H 11407# include <argz.h> 11408#endif 11409 11410typedef error_t ac__type_new_; 11411int 11412main () 11413{ 11414if ((ac__type_new_ *) 0) 11415 return 0; 11416if (sizeof (ac__type_new_)) 11417 return 0; 11418 ; 11419 return 0; 11420} 11421_ACEOF 11422rm -f conftest.$ac_objext 11423if { (ac_try="$ac_compile" 11424case "(($ac_try" in 11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11426 *) ac_try_echo=$ac_try;; 11427esac 11428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11429 (eval "$ac_compile") 2>conftest.er1 11430 ac_status=$? 11431 grep -v '^ *+' conftest.er1 >conftest.err 11432 rm -f conftest.er1 11433 cat conftest.err >&5 11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11435 (exit $ac_status); } && 11436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11437 { (case "(($ac_try" in 11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11439 *) ac_try_echo=$ac_try;; 11440esac 11441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11442 (eval "$ac_try") 2>&5 11443 ac_status=$? 11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11445 (exit $ac_status); }; } && 11446 { ac_try='test -s conftest.$ac_objext' 11447 { (case "(($ac_try" in 11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11449 *) ac_try_echo=$ac_try;; 11450esac 11451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11452 (eval "$ac_try") 2>&5 11453 ac_status=$? 11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11455 (exit $ac_status); }; }; then 11456 ac_cv_type_error_t=yes 11457else 11458 echo "$as_me: failed program was:" >&5 11459sed 's/^/| /' conftest.$ac_ext >&5 11460 11461 ac_cv_type_error_t=no 11462fi 11463 11464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11465fi 11466{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 11467echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 11468if test $ac_cv_type_error_t = yes; then 11469 11470cat >>confdefs.h <<_ACEOF 11471#define HAVE_ERROR_T 1 11472_ACEOF 11473 11474 11475else 11476 11477cat >>confdefs.h <<\_ACEOF 11478#define error_t int 11479_ACEOF 11480 11481fi 11482 11483 11484 11485 11486 11487 11488 11489for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 11490do 11491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11492{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11494if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11495 echo $ECHO_N "(cached) $ECHO_C" >&6 11496else 11497 cat >conftest.$ac_ext <<_ACEOF 11498/* confdefs.h. */ 11499_ACEOF 11500cat confdefs.h >>conftest.$ac_ext 11501cat >>conftest.$ac_ext <<_ACEOF 11502/* end confdefs.h. */ 11503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11504 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11505#define $ac_func innocuous_$ac_func 11506 11507/* System header to define __stub macros and hopefully few prototypes, 11508 which can conflict with char $ac_func (); below. 11509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11510 <limits.h> exists even on freestanding compilers. */ 11511 11512#ifdef __STDC__ 11513# include <limits.h> 11514#else 11515# include <assert.h> 11516#endif 11517 11518#undef $ac_func 11519 11520/* Override any GCC internal prototype to avoid an error. 11521 Use char because int might match the return type of a GCC 11522 builtin and then its argument prototype would still apply. */ 11523#ifdef __cplusplus 11524extern "C" 11525#endif 11526char $ac_func (); 11527/* The GNU C library defines this for functions which it implements 11528 to always fail with ENOSYS. Some functions are actually named 11529 something starting with __ and the normal name is an alias. */ 11530#if defined __stub_$ac_func || defined __stub___$ac_func 11531choke me 11532#endif 11533 11534int 11535main () 11536{ 11537return $ac_func (); 11538 ; 11539 return 0; 11540} 11541_ACEOF 11542rm -f conftest.$ac_objext conftest$ac_exeext 11543if { (ac_try="$ac_link" 11544case "(($ac_try" in 11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11546 *) ac_try_echo=$ac_try;; 11547esac 11548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11549 (eval "$ac_link") 2>conftest.er1 11550 ac_status=$? 11551 grep -v '^ *+' conftest.er1 >conftest.err 11552 rm -f conftest.er1 11553 cat conftest.err >&5 11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11555 (exit $ac_status); } && 11556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11557 { (case "(($ac_try" in 11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11559 *) ac_try_echo=$ac_try;; 11560esac 11561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11562 (eval "$ac_try") 2>&5 11563 ac_status=$? 11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11565 (exit $ac_status); }; } && 11566 { ac_try='test -s conftest$ac_exeext' 11567 { (case "(($ac_try" in 11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11569 *) ac_try_echo=$ac_try;; 11570esac 11571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11572 (eval "$ac_try") 2>&5 11573 ac_status=$? 11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11575 (exit $ac_status); }; }; then 11576 eval "$as_ac_var=yes" 11577else 11578 echo "$as_me: failed program was:" >&5 11579sed 's/^/| /' conftest.$ac_ext >&5 11580 11581 eval "$as_ac_var=no" 11582fi 11583 11584rm -f core conftest.err conftest.$ac_objext \ 11585 conftest$ac_exeext conftest.$ac_ext 11586fi 11587ac_res=`eval echo '${'$as_ac_var'}'` 11588 { echo "$as_me:$LINENO: result: $ac_res" >&5 11589echo "${ECHO_T}$ac_res" >&6; } 11590if test `eval echo '${'$as_ac_var'}'` = yes; then 11591 cat >>confdefs.h <<_ACEOF 11592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11593_ACEOF 11594 11595fi 11596done 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 11626 stdio.h unistd.h 11627do 11628as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11630 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11633 echo $ECHO_N "(cached) $ECHO_C" >&6 11634fi 11635ac_res=`eval echo '${'$as_ac_Header'}'` 11636 { echo "$as_me:$LINENO: result: $ac_res" >&5 11637echo "${ECHO_T}$ac_res" >&6; } 11638else 11639 # Is the header compilable? 11640{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11641echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11642cat >conftest.$ac_ext <<_ACEOF 11643/* confdefs.h. */ 11644_ACEOF 11645cat confdefs.h >>conftest.$ac_ext 11646cat >>conftest.$ac_ext <<_ACEOF 11647/* end confdefs.h. */ 11648$ac_includes_default 11649#include <$ac_header> 11650_ACEOF 11651rm -f conftest.$ac_objext 11652if { (ac_try="$ac_compile" 11653case "(($ac_try" in 11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11655 *) ac_try_echo=$ac_try;; 11656esac 11657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11658 (eval "$ac_compile") 2>conftest.er1 11659 ac_status=$? 11660 grep -v '^ *+' conftest.er1 >conftest.err 11661 rm -f conftest.er1 11662 cat conftest.err >&5 11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11664 (exit $ac_status); } && 11665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11666 { (case "(($ac_try" in 11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11668 *) ac_try_echo=$ac_try;; 11669esac 11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11671 (eval "$ac_try") 2>&5 11672 ac_status=$? 11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11674 (exit $ac_status); }; } && 11675 { ac_try='test -s conftest.$ac_objext' 11676 { (case "(($ac_try" in 11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11678 *) ac_try_echo=$ac_try;; 11679esac 11680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11681 (eval "$ac_try") 2>&5 11682 ac_status=$? 11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11684 (exit $ac_status); }; }; then 11685 ac_header_compiler=yes 11686else 11687 echo "$as_me: failed program was:" >&5 11688sed 's/^/| /' conftest.$ac_ext >&5 11689 11690 ac_header_compiler=no 11691fi 11692 11693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11694{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11695echo "${ECHO_T}$ac_header_compiler" >&6; } 11696 11697# Is the header present? 11698{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11699echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11700cat >conftest.$ac_ext <<_ACEOF 11701/* confdefs.h. */ 11702_ACEOF 11703cat confdefs.h >>conftest.$ac_ext 11704cat >>conftest.$ac_ext <<_ACEOF 11705/* end confdefs.h. */ 11706#include <$ac_header> 11707_ACEOF 11708if { (ac_try="$ac_cpp conftest.$ac_ext" 11709case "(($ac_try" in 11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11711 *) ac_try_echo=$ac_try;; 11712esac 11713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11715 ac_status=$? 11716 grep -v '^ *+' conftest.er1 >conftest.err 11717 rm -f conftest.er1 11718 cat conftest.err >&5 11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11720 (exit $ac_status); } >/dev/null; then 11721 if test -s conftest.err; then 11722 ac_cpp_err=$ac_c_preproc_warn_flag 11723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11724 else 11725 ac_cpp_err= 11726 fi 11727else 11728 ac_cpp_err=yes 11729fi 11730if test -z "$ac_cpp_err"; then 11731 ac_header_preproc=yes 11732else 11733 echo "$as_me: failed program was:" >&5 11734sed 's/^/| /' conftest.$ac_ext >&5 11735 11736 ac_header_preproc=no 11737fi 11738 11739rm -f conftest.err conftest.$ac_ext 11740{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11741echo "${ECHO_T}$ac_header_preproc" >&6; } 11742 11743# So? What about this header? 11744case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11745 yes:no: ) 11746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11747echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11749echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11750 ac_header_preproc=yes 11751 ;; 11752 no:yes:* ) 11753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11754echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11756echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11758echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11760echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11762echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11764echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11765 ( cat <<\_ASBOX 11766## ----------------------------------- ## 11767## Report this to llvmbugs@cs.uiuc.edu ## 11768## ----------------------------------- ## 11769_ASBOX 11770 ) | sed "s/^/$as_me: WARNING: /" >&2 11771 ;; 11772esac 11773{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11776 echo $ECHO_N "(cached) $ECHO_C" >&6 11777else 11778 eval "$as_ac_Header=\$ac_header_preproc" 11779fi 11780ac_res=`eval echo '${'$as_ac_Header'}'` 11781 { echo "$as_me:$LINENO: result: $ac_res" >&5 11782echo "${ECHO_T}$ac_res" >&6; } 11783 11784fi 11785if test `eval echo '${'$as_ac_Header'}'` = yes; then 11786 cat >>confdefs.h <<_ACEOF 11787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11788_ACEOF 11789 11790fi 11791 11792done 11793 11794 11795 11796 11797 11798for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 11799do 11800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11802 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11805 echo $ECHO_N "(cached) $ECHO_C" >&6 11806fi 11807ac_res=`eval echo '${'$as_ac_Header'}'` 11808 { echo "$as_me:$LINENO: result: $ac_res" >&5 11809echo "${ECHO_T}$ac_res" >&6; } 11810else 11811 # Is the header compilable? 11812{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11814cat >conftest.$ac_ext <<_ACEOF 11815/* confdefs.h. */ 11816_ACEOF 11817cat confdefs.h >>conftest.$ac_ext 11818cat >>conftest.$ac_ext <<_ACEOF 11819/* end confdefs.h. */ 11820$ac_includes_default 11821#include <$ac_header> 11822_ACEOF 11823rm -f conftest.$ac_objext 11824if { (ac_try="$ac_compile" 11825case "(($ac_try" in 11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11827 *) ac_try_echo=$ac_try;; 11828esac 11829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11830 (eval "$ac_compile") 2>conftest.er1 11831 ac_status=$? 11832 grep -v '^ *+' conftest.er1 >conftest.err 11833 rm -f conftest.er1 11834 cat conftest.err >&5 11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11836 (exit $ac_status); } && 11837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11838 { (case "(($ac_try" in 11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11840 *) ac_try_echo=$ac_try;; 11841esac 11842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11843 (eval "$ac_try") 2>&5 11844 ac_status=$? 11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11846 (exit $ac_status); }; } && 11847 { ac_try='test -s conftest.$ac_objext' 11848 { (case "(($ac_try" in 11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11850 *) ac_try_echo=$ac_try;; 11851esac 11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11853 (eval "$ac_try") 2>&5 11854 ac_status=$? 11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11856 (exit $ac_status); }; }; then 11857 ac_header_compiler=yes 11858else 11859 echo "$as_me: failed program was:" >&5 11860sed 's/^/| /' conftest.$ac_ext >&5 11861 11862 ac_header_compiler=no 11863fi 11864 11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11866{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11867echo "${ECHO_T}$ac_header_compiler" >&6; } 11868 11869# Is the header present? 11870{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11872cat >conftest.$ac_ext <<_ACEOF 11873/* confdefs.h. */ 11874_ACEOF 11875cat confdefs.h >>conftest.$ac_ext 11876cat >>conftest.$ac_ext <<_ACEOF 11877/* end confdefs.h. */ 11878#include <$ac_header> 11879_ACEOF 11880if { (ac_try="$ac_cpp conftest.$ac_ext" 11881case "(($ac_try" in 11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11883 *) ac_try_echo=$ac_try;; 11884esac 11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11887 ac_status=$? 11888 grep -v '^ *+' conftest.er1 >conftest.err 11889 rm -f conftest.er1 11890 cat conftest.err >&5 11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11892 (exit $ac_status); } >/dev/null; then 11893 if test -s conftest.err; then 11894 ac_cpp_err=$ac_c_preproc_warn_flag 11895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11896 else 11897 ac_cpp_err= 11898 fi 11899else 11900 ac_cpp_err=yes 11901fi 11902if test -z "$ac_cpp_err"; then 11903 ac_header_preproc=yes 11904else 11905 echo "$as_me: failed program was:" >&5 11906sed 's/^/| /' conftest.$ac_ext >&5 11907 11908 ac_header_preproc=no 11909fi 11910 11911rm -f conftest.err conftest.$ac_ext 11912{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11913echo "${ECHO_T}$ac_header_preproc" >&6; } 11914 11915# So? What about this header? 11916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11917 yes:no: ) 11918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11922 ac_header_preproc=yes 11923 ;; 11924 no:yes:* ) 11925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11937 ( cat <<\_ASBOX 11938## ----------------------------------- ## 11939## Report this to llvmbugs@cs.uiuc.edu ## 11940## ----------------------------------- ## 11941_ASBOX 11942 ) | sed "s/^/$as_me: WARNING: /" >&2 11943 ;; 11944esac 11945{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11948 echo $ECHO_N "(cached) $ECHO_C" >&6 11949else 11950 eval "$as_ac_Header=\$ac_header_preproc" 11951fi 11952ac_res=`eval echo '${'$as_ac_Header'}'` 11953 { echo "$as_me:$LINENO: result: $ac_res" >&5 11954echo "${ECHO_T}$ac_res" >&6; } 11955 11956fi 11957if test `eval echo '${'$as_ac_Header'}'` = yes; then 11958 cat >>confdefs.h <<_ACEOF 11959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11960_ACEOF 11961 11962fi 11963 11964done 11965 11966 11967 11968for ac_header in string.h strings.h 11969do 11970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11972 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11975 echo $ECHO_N "(cached) $ECHO_C" >&6 11976fi 11977ac_res=`eval echo '${'$as_ac_Header'}'` 11978 { echo "$as_me:$LINENO: result: $ac_res" >&5 11979echo "${ECHO_T}$ac_res" >&6; } 11980else 11981 # Is the header compilable? 11982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11984cat >conftest.$ac_ext <<_ACEOF 11985/* confdefs.h. */ 11986_ACEOF 11987cat confdefs.h >>conftest.$ac_ext 11988cat >>conftest.$ac_ext <<_ACEOF 11989/* end confdefs.h. */ 11990$ac_includes_default 11991#include <$ac_header> 11992_ACEOF 11993rm -f conftest.$ac_objext 11994if { (ac_try="$ac_compile" 11995case "(($ac_try" in 11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11997 *) ac_try_echo=$ac_try;; 11998esac 11999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12000 (eval "$ac_compile") 2>conftest.er1 12001 ac_status=$? 12002 grep -v '^ *+' conftest.er1 >conftest.err 12003 rm -f conftest.er1 12004 cat conftest.err >&5 12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12006 (exit $ac_status); } && 12007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12008 { (case "(($ac_try" in 12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12010 *) ac_try_echo=$ac_try;; 12011esac 12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12013 (eval "$ac_try") 2>&5 12014 ac_status=$? 12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12016 (exit $ac_status); }; } && 12017 { ac_try='test -s conftest.$ac_objext' 12018 { (case "(($ac_try" in 12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12020 *) ac_try_echo=$ac_try;; 12021esac 12022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12023 (eval "$ac_try") 2>&5 12024 ac_status=$? 12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12026 (exit $ac_status); }; }; then 12027 ac_header_compiler=yes 12028else 12029 echo "$as_me: failed program was:" >&5 12030sed 's/^/| /' conftest.$ac_ext >&5 12031 12032 ac_header_compiler=no 12033fi 12034 12035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12036{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12037echo "${ECHO_T}$ac_header_compiler" >&6; } 12038 12039# Is the header present? 12040{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 12041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 12042cat >conftest.$ac_ext <<_ACEOF 12043/* confdefs.h. */ 12044_ACEOF 12045cat confdefs.h >>conftest.$ac_ext 12046cat >>conftest.$ac_ext <<_ACEOF 12047/* end confdefs.h. */ 12048#include <$ac_header> 12049_ACEOF 12050if { (ac_try="$ac_cpp conftest.$ac_ext" 12051case "(($ac_try" in 12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12053 *) ac_try_echo=$ac_try;; 12054esac 12055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 12057 ac_status=$? 12058 grep -v '^ *+' conftest.er1 >conftest.err 12059 rm -f conftest.er1 12060 cat conftest.err >&5 12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12062 (exit $ac_status); } >/dev/null; then 12063 if test -s conftest.err; then 12064 ac_cpp_err=$ac_c_preproc_warn_flag 12065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 12066 else 12067 ac_cpp_err= 12068 fi 12069else 12070 ac_cpp_err=yes 12071fi 12072if test -z "$ac_cpp_err"; then 12073 ac_header_preproc=yes 12074else 12075 echo "$as_me: failed program was:" >&5 12076sed 's/^/| /' conftest.$ac_ext >&5 12077 12078 ac_header_preproc=no 12079fi 12080 12081rm -f conftest.err conftest.$ac_ext 12082{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12083echo "${ECHO_T}$ac_header_preproc" >&6; } 12084 12085# So? What about this header? 12086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12087 yes:no: ) 12088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12089echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12091echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12092 ac_header_preproc=yes 12093 ;; 12094 no:yes:* ) 12095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12096echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12098echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12100echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12102echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12106echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12107 ( cat <<\_ASBOX 12108## ----------------------------------- ## 12109## Report this to llvmbugs@cs.uiuc.edu ## 12110## ----------------------------------- ## 12111_ASBOX 12112 ) | sed "s/^/$as_me: WARNING: /" >&2 12113 ;; 12114esac 12115{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12118 echo $ECHO_N "(cached) $ECHO_C" >&6 12119else 12120 eval "$as_ac_Header=\$ac_header_preproc" 12121fi 12122ac_res=`eval echo '${'$as_ac_Header'}'` 12123 { echo "$as_me:$LINENO: result: $ac_res" >&5 12124echo "${ECHO_T}$ac_res" >&6; } 12125 12126fi 12127if test `eval echo '${'$as_ac_Header'}'` = yes; then 12128 cat >>confdefs.h <<_ACEOF 12129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12130_ACEOF 12131 break 12132fi 12133 12134done 12135 12136 12137 12138 12139for ac_func in strchr index 12140do 12141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12142{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12144if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12145 echo $ECHO_N "(cached) $ECHO_C" >&6 12146else 12147 cat >conftest.$ac_ext <<_ACEOF 12148/* confdefs.h. */ 12149_ACEOF 12150cat confdefs.h >>conftest.$ac_ext 12151cat >>conftest.$ac_ext <<_ACEOF 12152/* end confdefs.h. */ 12153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12154 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12155#define $ac_func innocuous_$ac_func 12156 12157/* System header to define __stub macros and hopefully few prototypes, 12158 which can conflict with char $ac_func (); below. 12159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12160 <limits.h> exists even on freestanding compilers. */ 12161 12162#ifdef __STDC__ 12163# include <limits.h> 12164#else 12165# include <assert.h> 12166#endif 12167 12168#undef $ac_func 12169 12170/* Override any GCC internal prototype to avoid an error. 12171 Use char because int might match the return type of a GCC 12172 builtin and then its argument prototype would still apply. */ 12173#ifdef __cplusplus 12174extern "C" 12175#endif 12176char $ac_func (); 12177/* The GNU C library defines this for functions which it implements 12178 to always fail with ENOSYS. Some functions are actually named 12179 something starting with __ and the normal name is an alias. */ 12180#if defined __stub_$ac_func || defined __stub___$ac_func 12181choke me 12182#endif 12183 12184int 12185main () 12186{ 12187return $ac_func (); 12188 ; 12189 return 0; 12190} 12191_ACEOF 12192rm -f conftest.$ac_objext conftest$ac_exeext 12193if { (ac_try="$ac_link" 12194case "(($ac_try" in 12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12196 *) ac_try_echo=$ac_try;; 12197esac 12198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12199 (eval "$ac_link") 2>conftest.er1 12200 ac_status=$? 12201 grep -v '^ *+' conftest.er1 >conftest.err 12202 rm -f conftest.er1 12203 cat conftest.err >&5 12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12205 (exit $ac_status); } && 12206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12207 { (case "(($ac_try" in 12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12209 *) ac_try_echo=$ac_try;; 12210esac 12211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12212 (eval "$ac_try") 2>&5 12213 ac_status=$? 12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12215 (exit $ac_status); }; } && 12216 { ac_try='test -s conftest$ac_exeext' 12217 { (case "(($ac_try" in 12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12219 *) ac_try_echo=$ac_try;; 12220esac 12221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12222 (eval "$ac_try") 2>&5 12223 ac_status=$? 12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12225 (exit $ac_status); }; }; then 12226 eval "$as_ac_var=yes" 12227else 12228 echo "$as_me: failed program was:" >&5 12229sed 's/^/| /' conftest.$ac_ext >&5 12230 12231 eval "$as_ac_var=no" 12232fi 12233 12234rm -f core conftest.err conftest.$ac_objext \ 12235 conftest$ac_exeext conftest.$ac_ext 12236fi 12237ac_res=`eval echo '${'$as_ac_var'}'` 12238 { echo "$as_me:$LINENO: result: $ac_res" >&5 12239echo "${ECHO_T}$ac_res" >&6; } 12240if test `eval echo '${'$as_ac_var'}'` = yes; then 12241 cat >>confdefs.h <<_ACEOF 12242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12243_ACEOF 12244 break 12245fi 12246done 12247 12248 12249 12250for ac_func in strrchr rindex 12251do 12252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12253{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12255if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12256 echo $ECHO_N "(cached) $ECHO_C" >&6 12257else 12258 cat >conftest.$ac_ext <<_ACEOF 12259/* confdefs.h. */ 12260_ACEOF 12261cat confdefs.h >>conftest.$ac_ext 12262cat >>conftest.$ac_ext <<_ACEOF 12263/* end confdefs.h. */ 12264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12265 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12266#define $ac_func innocuous_$ac_func 12267 12268/* System header to define __stub macros and hopefully few prototypes, 12269 which can conflict with char $ac_func (); below. 12270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12271 <limits.h> exists even on freestanding compilers. */ 12272 12273#ifdef __STDC__ 12274# include <limits.h> 12275#else 12276# include <assert.h> 12277#endif 12278 12279#undef $ac_func 12280 12281/* Override any GCC internal prototype to avoid an error. 12282 Use char because int might match the return type of a GCC 12283 builtin and then its argument prototype would still apply. */ 12284#ifdef __cplusplus 12285extern "C" 12286#endif 12287char $ac_func (); 12288/* The GNU C library defines this for functions which it implements 12289 to always fail with ENOSYS. Some functions are actually named 12290 something starting with __ and the normal name is an alias. */ 12291#if defined __stub_$ac_func || defined __stub___$ac_func 12292choke me 12293#endif 12294 12295int 12296main () 12297{ 12298return $ac_func (); 12299 ; 12300 return 0; 12301} 12302_ACEOF 12303rm -f conftest.$ac_objext conftest$ac_exeext 12304if { (ac_try="$ac_link" 12305case "(($ac_try" in 12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12307 *) ac_try_echo=$ac_try;; 12308esac 12309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12310 (eval "$ac_link") 2>conftest.er1 12311 ac_status=$? 12312 grep -v '^ *+' conftest.er1 >conftest.err 12313 rm -f conftest.er1 12314 cat conftest.err >&5 12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12316 (exit $ac_status); } && 12317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12318 { (case "(($ac_try" in 12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12320 *) ac_try_echo=$ac_try;; 12321esac 12322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12323 (eval "$ac_try") 2>&5 12324 ac_status=$? 12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12326 (exit $ac_status); }; } && 12327 { ac_try='test -s conftest$ac_exeext' 12328 { (case "(($ac_try" in 12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12330 *) ac_try_echo=$ac_try;; 12331esac 12332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12333 (eval "$ac_try") 2>&5 12334 ac_status=$? 12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12336 (exit $ac_status); }; }; then 12337 eval "$as_ac_var=yes" 12338else 12339 echo "$as_me: failed program was:" >&5 12340sed 's/^/| /' conftest.$ac_ext >&5 12341 12342 eval "$as_ac_var=no" 12343fi 12344 12345rm -f core conftest.err conftest.$ac_objext \ 12346 conftest$ac_exeext conftest.$ac_ext 12347fi 12348ac_res=`eval echo '${'$as_ac_var'}'` 12349 { echo "$as_me:$LINENO: result: $ac_res" >&5 12350echo "${ECHO_T}$ac_res" >&6; } 12351if test `eval echo '${'$as_ac_var'}'` = yes; then 12352 cat >>confdefs.h <<_ACEOF 12353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12354_ACEOF 12355 break 12356fi 12357done 12358 12359 12360 12361for ac_func in memcpy bcopy 12362do 12363as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12364{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12365echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12366if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12367 echo $ECHO_N "(cached) $ECHO_C" >&6 12368else 12369 cat >conftest.$ac_ext <<_ACEOF 12370/* confdefs.h. */ 12371_ACEOF 12372cat confdefs.h >>conftest.$ac_ext 12373cat >>conftest.$ac_ext <<_ACEOF 12374/* end confdefs.h. */ 12375/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12376 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12377#define $ac_func innocuous_$ac_func 12378 12379/* System header to define __stub macros and hopefully few prototypes, 12380 which can conflict with char $ac_func (); below. 12381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12382 <limits.h> exists even on freestanding compilers. */ 12383 12384#ifdef __STDC__ 12385# include <limits.h> 12386#else 12387# include <assert.h> 12388#endif 12389 12390#undef $ac_func 12391 12392/* Override any GCC internal prototype to avoid an error. 12393 Use char because int might match the return type of a GCC 12394 builtin and then its argument prototype would still apply. */ 12395#ifdef __cplusplus 12396extern "C" 12397#endif 12398char $ac_func (); 12399/* The GNU C library defines this for functions which it implements 12400 to always fail with ENOSYS. Some functions are actually named 12401 something starting with __ and the normal name is an alias. */ 12402#if defined __stub_$ac_func || defined __stub___$ac_func 12403choke me 12404#endif 12405 12406int 12407main () 12408{ 12409return $ac_func (); 12410 ; 12411 return 0; 12412} 12413_ACEOF 12414rm -f conftest.$ac_objext conftest$ac_exeext 12415if { (ac_try="$ac_link" 12416case "(($ac_try" in 12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12418 *) ac_try_echo=$ac_try;; 12419esac 12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12421 (eval "$ac_link") 2>conftest.er1 12422 ac_status=$? 12423 grep -v '^ *+' conftest.er1 >conftest.err 12424 rm -f conftest.er1 12425 cat conftest.err >&5 12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12427 (exit $ac_status); } && 12428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12429 { (case "(($ac_try" in 12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12431 *) ac_try_echo=$ac_try;; 12432esac 12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12434 (eval "$ac_try") 2>&5 12435 ac_status=$? 12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12437 (exit $ac_status); }; } && 12438 { ac_try='test -s conftest$ac_exeext' 12439 { (case "(($ac_try" in 12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12441 *) ac_try_echo=$ac_try;; 12442esac 12443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12444 (eval "$ac_try") 2>&5 12445 ac_status=$? 12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12447 (exit $ac_status); }; }; then 12448 eval "$as_ac_var=yes" 12449else 12450 echo "$as_me: failed program was:" >&5 12451sed 's/^/| /' conftest.$ac_ext >&5 12452 12453 eval "$as_ac_var=no" 12454fi 12455 12456rm -f core conftest.err conftest.$ac_objext \ 12457 conftest$ac_exeext conftest.$ac_ext 12458fi 12459ac_res=`eval echo '${'$as_ac_var'}'` 12460 { echo "$as_me:$LINENO: result: $ac_res" >&5 12461echo "${ECHO_T}$ac_res" >&6; } 12462if test `eval echo '${'$as_ac_var'}'` = yes; then 12463 cat >>confdefs.h <<_ACEOF 12464#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12465_ACEOF 12466 break 12467fi 12468done 12469 12470 12471 12472for ac_func in memmove strcmp 12473do 12474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12475{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12477if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12478 echo $ECHO_N "(cached) $ECHO_C" >&6 12479else 12480 cat >conftest.$ac_ext <<_ACEOF 12481/* confdefs.h. */ 12482_ACEOF 12483cat confdefs.h >>conftest.$ac_ext 12484cat >>conftest.$ac_ext <<_ACEOF 12485/* end confdefs.h. */ 12486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12487 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12488#define $ac_func innocuous_$ac_func 12489 12490/* System header to define __stub macros and hopefully few prototypes, 12491 which can conflict with char $ac_func (); below. 12492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12493 <limits.h> exists even on freestanding compilers. */ 12494 12495#ifdef __STDC__ 12496# include <limits.h> 12497#else 12498# include <assert.h> 12499#endif 12500 12501#undef $ac_func 12502 12503/* Override any GCC internal prototype to avoid an error. 12504 Use char because int might match the return type of a GCC 12505 builtin and then its argument prototype would still apply. */ 12506#ifdef __cplusplus 12507extern "C" 12508#endif 12509char $ac_func (); 12510/* The GNU C library defines this for functions which it implements 12511 to always fail with ENOSYS. Some functions are actually named 12512 something starting with __ and the normal name is an alias. */ 12513#if defined __stub_$ac_func || defined __stub___$ac_func 12514choke me 12515#endif 12516 12517int 12518main () 12519{ 12520return $ac_func (); 12521 ; 12522 return 0; 12523} 12524_ACEOF 12525rm -f conftest.$ac_objext conftest$ac_exeext 12526if { (ac_try="$ac_link" 12527case "(($ac_try" in 12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12529 *) ac_try_echo=$ac_try;; 12530esac 12531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12532 (eval "$ac_link") 2>conftest.er1 12533 ac_status=$? 12534 grep -v '^ *+' conftest.er1 >conftest.err 12535 rm -f conftest.er1 12536 cat conftest.err >&5 12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12538 (exit $ac_status); } && 12539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12540 { (case "(($ac_try" in 12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12542 *) ac_try_echo=$ac_try;; 12543esac 12544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12545 (eval "$ac_try") 2>&5 12546 ac_status=$? 12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12548 (exit $ac_status); }; } && 12549 { ac_try='test -s conftest$ac_exeext' 12550 { (case "(($ac_try" in 12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12552 *) ac_try_echo=$ac_try;; 12553esac 12554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12555 (eval "$ac_try") 2>&5 12556 ac_status=$? 12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12558 (exit $ac_status); }; }; then 12559 eval "$as_ac_var=yes" 12560else 12561 echo "$as_me: failed program was:" >&5 12562sed 's/^/| /' conftest.$ac_ext >&5 12563 12564 eval "$as_ac_var=no" 12565fi 12566 12567rm -f core conftest.err conftest.$ac_objext \ 12568 conftest$ac_exeext conftest.$ac_ext 12569fi 12570ac_res=`eval echo '${'$as_ac_var'}'` 12571 { echo "$as_me:$LINENO: result: $ac_res" >&5 12572echo "${ECHO_T}$ac_res" >&6; } 12573if test `eval echo '${'$as_ac_var'}'` = yes; then 12574 cat >>confdefs.h <<_ACEOF 12575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12576_ACEOF 12577 12578fi 12579done 12580 12581 12582 12583 12584for ac_func in closedir opendir readdir 12585do 12586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12587{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12590 echo $ECHO_N "(cached) $ECHO_C" >&6 12591else 12592 cat >conftest.$ac_ext <<_ACEOF 12593/* confdefs.h. */ 12594_ACEOF 12595cat confdefs.h >>conftest.$ac_ext 12596cat >>conftest.$ac_ext <<_ACEOF 12597/* end confdefs.h. */ 12598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12599 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12600#define $ac_func innocuous_$ac_func 12601 12602/* System header to define __stub macros and hopefully few prototypes, 12603 which can conflict with char $ac_func (); below. 12604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12605 <limits.h> exists even on freestanding compilers. */ 12606 12607#ifdef __STDC__ 12608# include <limits.h> 12609#else 12610# include <assert.h> 12611#endif 12612 12613#undef $ac_func 12614 12615/* Override any GCC internal prototype to avoid an error. 12616 Use char because int might match the return type of a GCC 12617 builtin and then its argument prototype would still apply. */ 12618#ifdef __cplusplus 12619extern "C" 12620#endif 12621char $ac_func (); 12622/* The GNU C library defines this for functions which it implements 12623 to always fail with ENOSYS. Some functions are actually named 12624 something starting with __ and the normal name is an alias. */ 12625#if defined __stub_$ac_func || defined __stub___$ac_func 12626choke me 12627#endif 12628 12629int 12630main () 12631{ 12632return $ac_func (); 12633 ; 12634 return 0; 12635} 12636_ACEOF 12637rm -f conftest.$ac_objext conftest$ac_exeext 12638if { (ac_try="$ac_link" 12639case "(($ac_try" in 12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12641 *) ac_try_echo=$ac_try;; 12642esac 12643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12644 (eval "$ac_link") 2>conftest.er1 12645 ac_status=$? 12646 grep -v '^ *+' conftest.er1 >conftest.err 12647 rm -f conftest.er1 12648 cat conftest.err >&5 12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12650 (exit $ac_status); } && 12651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12652 { (case "(($ac_try" in 12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12654 *) ac_try_echo=$ac_try;; 12655esac 12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12657 (eval "$ac_try") 2>&5 12658 ac_status=$? 12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12660 (exit $ac_status); }; } && 12661 { ac_try='test -s conftest$ac_exeext' 12662 { (case "(($ac_try" in 12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12664 *) ac_try_echo=$ac_try;; 12665esac 12666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12667 (eval "$ac_try") 2>&5 12668 ac_status=$? 12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12670 (exit $ac_status); }; }; then 12671 eval "$as_ac_var=yes" 12672else 12673 echo "$as_me: failed program was:" >&5 12674sed 's/^/| /' conftest.$ac_ext >&5 12675 12676 eval "$as_ac_var=no" 12677fi 12678 12679rm -f core conftest.err conftest.$ac_objext \ 12680 conftest$ac_exeext conftest.$ac_ext 12681fi 12682ac_res=`eval echo '${'$as_ac_var'}'` 12683 { echo "$as_me:$LINENO: result: $ac_res" >&5 12684echo "${ECHO_T}$ac_res" >&6; } 12685if test `eval echo '${'$as_ac_var'}'` = yes; then 12686 cat >>confdefs.h <<_ACEOF 12687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12688_ACEOF 12689 12690fi 12691done 12692 12693 12694 12695if test "$WITH_LLVMGCCDIR" = "default" ; then 12696 LLVMGCC="llvm-gcc${EXEEXT}" 12697 LLVMGXX="llvm-g++${EXEEXT}" 12698 LLVMGCCCOMMAND="$LLVMGCC" 12699 LLVMGXXCOMMAND="$LLVMGXX" 12700 LLVMGCCCOMMAND=$LLVMGCCCOMMAND 12701 12702 LLVMGXXCOMMAND=$LLVMGXXCOMMAND 12703 12704 # Extract the first word of "$LLVMGCC", so it can be a program name with args. 12705set dummy $LLVMGCC; ac_word=$2 12706{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12708if test "${ac_cv_path_LLVMGCC+set}" = set; then 12709 echo $ECHO_N "(cached) $ECHO_C" >&6 12710else 12711 case $LLVMGCC in 12712 [\\/]* | ?:[\\/]*) 12713 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path. 12714 ;; 12715 *) 12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12717for as_dir in $PATH 12718do 12719 IFS=$as_save_IFS 12720 test -z "$as_dir" && as_dir=. 12721 for ac_exec_ext in '' $ac_executable_extensions; do 12722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 12723 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext" 12724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12725 break 2 12726 fi 12727done 12728done 12729IFS=$as_save_IFS 12730 12731 ;; 12732esac 12733fi 12734LLVMGCC=$ac_cv_path_LLVMGCC 12735if test -n "$LLVMGCC"; then 12736 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5 12737echo "${ECHO_T}$LLVMGCC" >&6; } 12738else 12739 { echo "$as_me:$LINENO: result: no" >&5 12740echo "${ECHO_T}no" >&6; } 12741fi 12742 12743 12744 # Extract the first word of "$LLVMGXX", so it can be a program name with args. 12745set dummy $LLVMGXX; ac_word=$2 12746{ echo "$as_me:$LINENO: checking for $ac_word" >&5 12747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 12748if test "${ac_cv_path_LLVMGXX+set}" = set; then 12749 echo $ECHO_N "(cached) $ECHO_C" >&6 12750else 12751 case $LLVMGXX in 12752 [\\/]* | ?:[\\/]*) 12753 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path. 12754 ;; 12755 *) 12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12757for as_dir in $PATH 12758do 12759 IFS=$as_save_IFS 12760 test -z "$as_dir" && as_dir=. 12761 for ac_exec_ext in '' $ac_executable_extensions; do 12762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 12763 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext" 12764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12765 break 2 12766 fi 12767done 12768done 12769IFS=$as_save_IFS 12770 12771 ;; 12772esac 12773fi 12774LLVMGXX=$ac_cv_path_LLVMGXX 12775if test -n "$LLVMGXX"; then 12776 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5 12777echo "${ECHO_T}$LLVMGXX" >&6; } 12778else 12779 { echo "$as_me:$LINENO: result: no" >&5 12780echo "${ECHO_T}no" >&6; } 12781fi 12782 12783 12784else 12785 if test -z "$LLVMGCC"; then 12786 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}" 12787 LLVMGCCCOMMAND="$LLVMGCC" 12788 fi 12789 if test -z "$LLVMGXX"; then 12790 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}" 12791 LLVMGXXCOMMAND="$LLVMGXX" 12792 fi 12793 12794 LLVMGCC=$LLVMGCC 12795 12796 LLVMGXX=$LLVMGXX 12797 12798 LLVMGCCCOMMAND=$LLVMGCCCOMMAND 12799 12800 LLVMGXXCOMMAND=$LLVMGXXCOMMAND 12801 12802fi 12803 12804 12805{ echo "$as_me:$LINENO: checking tool compatibility" >&5 12806echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 12807 12808ICC=no 12809IXX=no 12810case $CC in 12811 icc*|icpc*) 12812 ICC=yes 12813 IXX=yes 12814 ;; 12815 *) 12816 ;; 12817esac 12818 12819if test "$GCC" != "yes" && test "$ICC" != "yes" 12820then 12821 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 12822echo "$as_me: error: gcc|icc required but not found" >&2;} 12823 { (exit 1); exit 1; }; } 12824fi 12825 12826if test "$GXX" != "yes" && test "$IXX" != "yes" 12827then 12828 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5 12829echo "$as_me: error: g++|icc required but not found" >&2;} 12830 { (exit 1); exit 1; }; } 12831fi 12832 12833if test "$GCC" = "yes" 12834then 12835 cat >conftest.$ac_ext <<_ACEOF 12836#if !defined(__GNUC__) || __GNUC__ < 3 12837#error Unsupported GCC version 12838#endif 12839 12840_ACEOF 12841rm -f conftest.$ac_objext 12842if { (ac_try="$ac_compile" 12843case "(($ac_try" in 12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12845 *) ac_try_echo=$ac_try;; 12846esac 12847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12848 (eval "$ac_compile") 2>conftest.er1 12849 ac_status=$? 12850 grep -v '^ *+' conftest.er1 >conftest.err 12851 rm -f conftest.er1 12852 cat conftest.err >&5 12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12854 (exit $ac_status); } && 12855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12856 { (case "(($ac_try" in 12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12858 *) ac_try_echo=$ac_try;; 12859esac 12860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12861 (eval "$ac_try") 2>&5 12862 ac_status=$? 12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12864 (exit $ac_status); }; } && 12865 { ac_try='test -s conftest.$ac_objext' 12866 { (case "(($ac_try" in 12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12868 *) ac_try_echo=$ac_try;; 12869esac 12870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12871 (eval "$ac_try") 2>&5 12872 ac_status=$? 12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12874 (exit $ac_status); }; }; then 12875 : 12876else 12877 echo "$as_me: failed program was:" >&5 12878sed 's/^/| /' conftest.$ac_ext >&5 12879 12880 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 12881echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 12882 { (exit 1); exit 1; }; } 12883fi 12884 12885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12886fi 12887 12888if test -z "$llvm_cv_gnu_make_command" 12889then 12890 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 12891echo "$as_me: error: GNU Make required but not found" >&2;} 12892 { (exit 1); exit 1; }; } 12893fi 12894 12895{ echo "$as_me:$LINENO: result: ok" >&5 12896echo "${ECHO_T}ok" >&6; } 12897 12898{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 12899echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 12900NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 12901 12902NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 12903 12904{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5 12905echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; } 12906 12907 12908 12909{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 12910echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 12911if test "${ac_cv_lib_m_sin+set}" = set; then 12912 echo $ECHO_N "(cached) $ECHO_C" >&6 12913else 12914 ac_check_lib_save_LIBS=$LIBS 12915LIBS="-lm $LIBS" 12916cat >conftest.$ac_ext <<_ACEOF 12917/* confdefs.h. */ 12918_ACEOF 12919cat confdefs.h >>conftest.$ac_ext 12920cat >>conftest.$ac_ext <<_ACEOF 12921/* end confdefs.h. */ 12922 12923/* Override any GCC internal prototype to avoid an error. 12924 Use char because int might match the return type of a GCC 12925 builtin and then its argument prototype would still apply. */ 12926#ifdef __cplusplus 12927extern "C" 12928#endif 12929char sin (); 12930int 12931main () 12932{ 12933return sin (); 12934 ; 12935 return 0; 12936} 12937_ACEOF 12938rm -f conftest.$ac_objext conftest$ac_exeext 12939if { (ac_try="$ac_link" 12940case "(($ac_try" in 12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12942 *) ac_try_echo=$ac_try;; 12943esac 12944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12945 (eval "$ac_link") 2>conftest.er1 12946 ac_status=$? 12947 grep -v '^ *+' conftest.er1 >conftest.err 12948 rm -f conftest.er1 12949 cat conftest.err >&5 12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12951 (exit $ac_status); } && 12952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12953 { (case "(($ac_try" in 12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12955 *) ac_try_echo=$ac_try;; 12956esac 12957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12958 (eval "$ac_try") 2>&5 12959 ac_status=$? 12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12961 (exit $ac_status); }; } && 12962 { ac_try='test -s conftest$ac_exeext' 12963 { (case "(($ac_try" in 12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12965 *) ac_try_echo=$ac_try;; 12966esac 12967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12968 (eval "$ac_try") 2>&5 12969 ac_status=$? 12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12971 (exit $ac_status); }; }; then 12972 ac_cv_lib_m_sin=yes 12973else 12974 echo "$as_me: failed program was:" >&5 12975sed 's/^/| /' conftest.$ac_ext >&5 12976 12977 ac_cv_lib_m_sin=no 12978fi 12979 12980rm -f core conftest.err conftest.$ac_objext \ 12981 conftest$ac_exeext conftest.$ac_ext 12982LIBS=$ac_check_lib_save_LIBS 12983fi 12984{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 12985echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 12986if test $ac_cv_lib_m_sin = yes; then 12987 cat >>confdefs.h <<_ACEOF 12988#define HAVE_LIBM 1 12989_ACEOF 12990 12991 LIBS="-lm $LIBS" 12992 12993fi 12994 12995if test "$llvm_cv_os_type" = "MingW" ; then 12996 12997{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 12998echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 12999if test "${ac_cv_lib_imagehlp_main+set}" = set; then 13000 echo $ECHO_N "(cached) $ECHO_C" >&6 13001else 13002 ac_check_lib_save_LIBS=$LIBS 13003LIBS="-limagehlp $LIBS" 13004cat >conftest.$ac_ext <<_ACEOF 13005/* confdefs.h. */ 13006_ACEOF 13007cat confdefs.h >>conftest.$ac_ext 13008cat >>conftest.$ac_ext <<_ACEOF 13009/* end confdefs.h. */ 13010 13011 13012int 13013main () 13014{ 13015return main (); 13016 ; 13017 return 0; 13018} 13019_ACEOF 13020rm -f conftest.$ac_objext conftest$ac_exeext 13021if { (ac_try="$ac_link" 13022case "(($ac_try" in 13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13024 *) ac_try_echo=$ac_try;; 13025esac 13026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13027 (eval "$ac_link") 2>conftest.er1 13028 ac_status=$? 13029 grep -v '^ *+' conftest.er1 >conftest.err 13030 rm -f conftest.er1 13031 cat conftest.err >&5 13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13033 (exit $ac_status); } && 13034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13035 { (case "(($ac_try" in 13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13037 *) ac_try_echo=$ac_try;; 13038esac 13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13040 (eval "$ac_try") 2>&5 13041 ac_status=$? 13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13043 (exit $ac_status); }; } && 13044 { ac_try='test -s conftest$ac_exeext' 13045 { (case "(($ac_try" in 13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13047 *) ac_try_echo=$ac_try;; 13048esac 13049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13050 (eval "$ac_try") 2>&5 13051 ac_status=$? 13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13053 (exit $ac_status); }; }; then 13054 ac_cv_lib_imagehlp_main=yes 13055else 13056 echo "$as_me: failed program was:" >&5 13057sed 's/^/| /' conftest.$ac_ext >&5 13058 13059 ac_cv_lib_imagehlp_main=no 13060fi 13061 13062rm -f core conftest.err conftest.$ac_objext \ 13063 conftest$ac_exeext conftest.$ac_ext 13064LIBS=$ac_check_lib_save_LIBS 13065fi 13066{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 13067echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 13068if test $ac_cv_lib_imagehlp_main = yes; then 13069 cat >>confdefs.h <<_ACEOF 13070#define HAVE_LIBIMAGEHLP 1 13071_ACEOF 13072 13073 LIBS="-limagehlp $LIBS" 13074 13075fi 13076 13077 13078{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 13079echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 13080if test "${ac_cv_lib_psapi_main+set}" = set; then 13081 echo $ECHO_N "(cached) $ECHO_C" >&6 13082else 13083 ac_check_lib_save_LIBS=$LIBS 13084LIBS="-lpsapi $LIBS" 13085cat >conftest.$ac_ext <<_ACEOF 13086/* confdefs.h. */ 13087_ACEOF 13088cat confdefs.h >>conftest.$ac_ext 13089cat >>conftest.$ac_ext <<_ACEOF 13090/* end confdefs.h. */ 13091 13092 13093int 13094main () 13095{ 13096return main (); 13097 ; 13098 return 0; 13099} 13100_ACEOF 13101rm -f conftest.$ac_objext conftest$ac_exeext 13102if { (ac_try="$ac_link" 13103case "(($ac_try" in 13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13105 *) ac_try_echo=$ac_try;; 13106esac 13107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13108 (eval "$ac_link") 2>conftest.er1 13109 ac_status=$? 13110 grep -v '^ *+' conftest.er1 >conftest.err 13111 rm -f conftest.er1 13112 cat conftest.err >&5 13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13114 (exit $ac_status); } && 13115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13116 { (case "(($ac_try" in 13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13118 *) ac_try_echo=$ac_try;; 13119esac 13120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13121 (eval "$ac_try") 2>&5 13122 ac_status=$? 13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13124 (exit $ac_status); }; } && 13125 { ac_try='test -s conftest$ac_exeext' 13126 { (case "(($ac_try" in 13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13128 *) ac_try_echo=$ac_try;; 13129esac 13130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13131 (eval "$ac_try") 2>&5 13132 ac_status=$? 13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13134 (exit $ac_status); }; }; then 13135 ac_cv_lib_psapi_main=yes 13136else 13137 echo "$as_me: failed program was:" >&5 13138sed 's/^/| /' conftest.$ac_ext >&5 13139 13140 ac_cv_lib_psapi_main=no 13141fi 13142 13143rm -f core conftest.err conftest.$ac_objext \ 13144 conftest$ac_exeext conftest.$ac_ext 13145LIBS=$ac_check_lib_save_LIBS 13146fi 13147{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 13148echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 13149if test $ac_cv_lib_psapi_main = yes; then 13150 cat >>confdefs.h <<_ACEOF 13151#define HAVE_LIBPSAPI 1 13152_ACEOF 13153 13154 LIBS="-lpsapi $LIBS" 13155 13156fi 13157 13158fi 13159 13160{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 13161echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 13162if test "${ac_cv_search_dlopen+set}" = set; then 13163 echo $ECHO_N "(cached) $ECHO_C" >&6 13164else 13165 ac_func_search_save_LIBS=$LIBS 13166cat >conftest.$ac_ext <<_ACEOF 13167/* confdefs.h. */ 13168_ACEOF 13169cat confdefs.h >>conftest.$ac_ext 13170cat >>conftest.$ac_ext <<_ACEOF 13171/* end confdefs.h. */ 13172 13173/* Override any GCC internal prototype to avoid an error. 13174 Use char because int might match the return type of a GCC 13175 builtin and then its argument prototype would still apply. */ 13176#ifdef __cplusplus 13177extern "C" 13178#endif 13179char dlopen (); 13180int 13181main () 13182{ 13183return dlopen (); 13184 ; 13185 return 0; 13186} 13187_ACEOF 13188for ac_lib in '' dl; do 13189 if test -z "$ac_lib"; then 13190 ac_res="none required" 13191 else 13192 ac_res=-l$ac_lib 13193 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13194 fi 13195 rm -f conftest.$ac_objext conftest$ac_exeext 13196if { (ac_try="$ac_link" 13197case "(($ac_try" in 13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13199 *) ac_try_echo=$ac_try;; 13200esac 13201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13202 (eval "$ac_link") 2>conftest.er1 13203 ac_status=$? 13204 grep -v '^ *+' conftest.er1 >conftest.err 13205 rm -f conftest.er1 13206 cat conftest.err >&5 13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13208 (exit $ac_status); } && 13209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13210 { (case "(($ac_try" in 13211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13212 *) ac_try_echo=$ac_try;; 13213esac 13214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13215 (eval "$ac_try") 2>&5 13216 ac_status=$? 13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13218 (exit $ac_status); }; } && 13219 { ac_try='test -s conftest$ac_exeext' 13220 { (case "(($ac_try" in 13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13222 *) ac_try_echo=$ac_try;; 13223esac 13224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13225 (eval "$ac_try") 2>&5 13226 ac_status=$? 13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13228 (exit $ac_status); }; }; then 13229 ac_cv_search_dlopen=$ac_res 13230else 13231 echo "$as_me: failed program was:" >&5 13232sed 's/^/| /' conftest.$ac_ext >&5 13233 13234 13235fi 13236 13237rm -f core conftest.err conftest.$ac_objext \ 13238 conftest$ac_exeext 13239 if test "${ac_cv_search_dlopen+set}" = set; then 13240 break 13241fi 13242done 13243if test "${ac_cv_search_dlopen+set}" = set; then 13244 : 13245else 13246 ac_cv_search_dlopen=no 13247fi 13248rm conftest.$ac_ext 13249LIBS=$ac_func_search_save_LIBS 13250fi 13251{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 13252echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 13253ac_res=$ac_cv_search_dlopen 13254if test "$ac_res" != no; then 13255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13256 13257cat >>confdefs.h <<\_ACEOF 13258#define HAVE_DLOPEN 1 13259_ACEOF 13260 13261else 13262 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 13263echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 13264fi 13265 13266 13267if test "$llvm_cv_enable_libffi" = "yes" ; then 13268 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 13269echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 13270if test "${ac_cv_search_ffi_call+set}" = set; then 13271 echo $ECHO_N "(cached) $ECHO_C" >&6 13272else 13273 ac_func_search_save_LIBS=$LIBS 13274cat >conftest.$ac_ext <<_ACEOF 13275/* confdefs.h. */ 13276_ACEOF 13277cat confdefs.h >>conftest.$ac_ext 13278cat >>conftest.$ac_ext <<_ACEOF 13279/* end confdefs.h. */ 13280 13281/* Override any GCC internal prototype to avoid an error. 13282 Use char because int might match the return type of a GCC 13283 builtin and then its argument prototype would still apply. */ 13284#ifdef __cplusplus 13285extern "C" 13286#endif 13287char ffi_call (); 13288int 13289main () 13290{ 13291return ffi_call (); 13292 ; 13293 return 0; 13294} 13295_ACEOF 13296for ac_lib in '' ffi; do 13297 if test -z "$ac_lib"; then 13298 ac_res="none required" 13299 else 13300 ac_res=-l$ac_lib 13301 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13302 fi 13303 rm -f conftest.$ac_objext conftest$ac_exeext 13304if { (ac_try="$ac_link" 13305case "(($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_link") 2>conftest.er1 13311 ac_status=$? 13312 grep -v '^ *+' conftest.er1 >conftest.err 13313 rm -f conftest.er1 13314 cat conftest.err >&5 13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13316 (exit $ac_status); } && 13317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13318 { (case "(($ac_try" in 13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13320 *) ac_try_echo=$ac_try;; 13321esac 13322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13323 (eval "$ac_try") 2>&5 13324 ac_status=$? 13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13326 (exit $ac_status); }; } && 13327 { ac_try='test -s conftest$ac_exeext' 13328 { (case "(($ac_try" in 13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13330 *) ac_try_echo=$ac_try;; 13331esac 13332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13333 (eval "$ac_try") 2>&5 13334 ac_status=$? 13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13336 (exit $ac_status); }; }; then 13337 ac_cv_search_ffi_call=$ac_res 13338else 13339 echo "$as_me: failed program was:" >&5 13340sed 's/^/| /' conftest.$ac_ext >&5 13341 13342 13343fi 13344 13345rm -f core conftest.err conftest.$ac_objext \ 13346 conftest$ac_exeext 13347 if test "${ac_cv_search_ffi_call+set}" = set; then 13348 break 13349fi 13350done 13351if test "${ac_cv_search_ffi_call+set}" = set; then 13352 : 13353else 13354 ac_cv_search_ffi_call=no 13355fi 13356rm conftest.$ac_ext 13357LIBS=$ac_func_search_save_LIBS 13358fi 13359{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 13360echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 13361ac_res=$ac_cv_search_ffi_call 13362if test "$ac_res" != no; then 13363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13364 13365cat >>confdefs.h <<\_ACEOF 13366#define HAVE_FFI_CALL 1 13367_ACEOF 13368 13369else 13370 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 13371echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 13372 { (exit 1); exit 1; }; } 13373fi 13374 13375fi 13376 13377{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 13378echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 13379if test "${ac_cv_search_mallinfo+set}" = set; then 13380 echo $ECHO_N "(cached) $ECHO_C" >&6 13381else 13382 ac_func_search_save_LIBS=$LIBS 13383cat >conftest.$ac_ext <<_ACEOF 13384/* confdefs.h. */ 13385_ACEOF 13386cat confdefs.h >>conftest.$ac_ext 13387cat >>conftest.$ac_ext <<_ACEOF 13388/* end confdefs.h. */ 13389 13390/* Override any GCC internal prototype to avoid an error. 13391 Use char because int might match the return type of a GCC 13392 builtin and then its argument prototype would still apply. */ 13393#ifdef __cplusplus 13394extern "C" 13395#endif 13396char mallinfo (); 13397int 13398main () 13399{ 13400return mallinfo (); 13401 ; 13402 return 0; 13403} 13404_ACEOF 13405for ac_lib in '' malloc; do 13406 if test -z "$ac_lib"; then 13407 ac_res="none required" 13408 else 13409 ac_res=-l$ac_lib 13410 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13411 fi 13412 rm -f conftest.$ac_objext conftest$ac_exeext 13413if { (ac_try="$ac_link" 13414case "(($ac_try" in 13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13416 *) ac_try_echo=$ac_try;; 13417esac 13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13419 (eval "$ac_link") 2>conftest.er1 13420 ac_status=$? 13421 grep -v '^ *+' conftest.er1 >conftest.err 13422 rm -f conftest.er1 13423 cat conftest.err >&5 13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13425 (exit $ac_status); } && 13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13427 { (case "(($ac_try" in 13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13429 *) ac_try_echo=$ac_try;; 13430esac 13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13432 (eval "$ac_try") 2>&5 13433 ac_status=$? 13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13435 (exit $ac_status); }; } && 13436 { ac_try='test -s conftest$ac_exeext' 13437 { (case "(($ac_try" in 13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13439 *) ac_try_echo=$ac_try;; 13440esac 13441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13442 (eval "$ac_try") 2>&5 13443 ac_status=$? 13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13445 (exit $ac_status); }; }; then 13446 ac_cv_search_mallinfo=$ac_res 13447else 13448 echo "$as_me: failed program was:" >&5 13449sed 's/^/| /' conftest.$ac_ext >&5 13450 13451 13452fi 13453 13454rm -f core conftest.err conftest.$ac_objext \ 13455 conftest$ac_exeext 13456 if test "${ac_cv_search_mallinfo+set}" = set; then 13457 break 13458fi 13459done 13460if test "${ac_cv_search_mallinfo+set}" = set; then 13461 : 13462else 13463 ac_cv_search_mallinfo=no 13464fi 13465rm conftest.$ac_ext 13466LIBS=$ac_func_search_save_LIBS 13467fi 13468{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 13469echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 13470ac_res=$ac_cv_search_mallinfo 13471if test "$ac_res" != no; then 13472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13473 13474cat >>confdefs.h <<\_ACEOF 13475#define HAVE_MALLINFO 1 13476_ACEOF 13477 13478fi 13479 13480 13481if test "$ENABLE_THREADS" -eq 1 ; then 13482 13483{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 13484echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 13485if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 13486 echo $ECHO_N "(cached) $ECHO_C" >&6 13487else 13488 ac_check_lib_save_LIBS=$LIBS 13489LIBS="-lpthread $LIBS" 13490cat >conftest.$ac_ext <<_ACEOF 13491/* confdefs.h. */ 13492_ACEOF 13493cat confdefs.h >>conftest.$ac_ext 13494cat >>conftest.$ac_ext <<_ACEOF 13495/* end confdefs.h. */ 13496 13497/* Override any GCC internal prototype to avoid an error. 13498 Use char because int might match the return type of a GCC 13499 builtin and then its argument prototype would still apply. */ 13500#ifdef __cplusplus 13501extern "C" 13502#endif 13503char pthread_mutex_init (); 13504int 13505main () 13506{ 13507return pthread_mutex_init (); 13508 ; 13509 return 0; 13510} 13511_ACEOF 13512rm -f conftest.$ac_objext conftest$ac_exeext 13513if { (ac_try="$ac_link" 13514case "(($ac_try" in 13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13516 *) ac_try_echo=$ac_try;; 13517esac 13518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13519 (eval "$ac_link") 2>conftest.er1 13520 ac_status=$? 13521 grep -v '^ *+' conftest.er1 >conftest.err 13522 rm -f conftest.er1 13523 cat conftest.err >&5 13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13525 (exit $ac_status); } && 13526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13527 { (case "(($ac_try" in 13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13529 *) ac_try_echo=$ac_try;; 13530esac 13531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13532 (eval "$ac_try") 2>&5 13533 ac_status=$? 13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13535 (exit $ac_status); }; } && 13536 { ac_try='test -s conftest$ac_exeext' 13537 { (case "(($ac_try" in 13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13539 *) ac_try_echo=$ac_try;; 13540esac 13541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13542 (eval "$ac_try") 2>&5 13543 ac_status=$? 13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13545 (exit $ac_status); }; }; then 13546 ac_cv_lib_pthread_pthread_mutex_init=yes 13547else 13548 echo "$as_me: failed program was:" >&5 13549sed 's/^/| /' conftest.$ac_ext >&5 13550 13551 ac_cv_lib_pthread_pthread_mutex_init=no 13552fi 13553 13554rm -f core conftest.err conftest.$ac_objext \ 13555 conftest$ac_exeext conftest.$ac_ext 13556LIBS=$ac_check_lib_save_LIBS 13557fi 13558{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 13559echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 13560if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 13561 cat >>confdefs.h <<_ACEOF 13562#define HAVE_LIBPTHREAD 1 13563_ACEOF 13564 13565 LIBS="-lpthread $LIBS" 13566 13567fi 13568 13569 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 13570echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 13571if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13572 echo $ECHO_N "(cached) $ECHO_C" >&6 13573else 13574 ac_func_search_save_LIBS=$LIBS 13575cat >conftest.$ac_ext <<_ACEOF 13576/* confdefs.h. */ 13577_ACEOF 13578cat confdefs.h >>conftest.$ac_ext 13579cat >>conftest.$ac_ext <<_ACEOF 13580/* end confdefs.h. */ 13581 13582/* Override any GCC internal prototype to avoid an error. 13583 Use char because int might match the return type of a GCC 13584 builtin and then its argument prototype would still apply. */ 13585#ifdef __cplusplus 13586extern "C" 13587#endif 13588char pthread_mutex_lock (); 13589int 13590main () 13591{ 13592return pthread_mutex_lock (); 13593 ; 13594 return 0; 13595} 13596_ACEOF 13597for ac_lib in '' pthread; do 13598 if test -z "$ac_lib"; then 13599 ac_res="none required" 13600 else 13601 ac_res=-l$ac_lib 13602 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13603 fi 13604 rm -f conftest.$ac_objext conftest$ac_exeext 13605if { (ac_try="$ac_link" 13606case "(($ac_try" in 13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13608 *) ac_try_echo=$ac_try;; 13609esac 13610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13611 (eval "$ac_link") 2>conftest.er1 13612 ac_status=$? 13613 grep -v '^ *+' conftest.er1 >conftest.err 13614 rm -f conftest.er1 13615 cat conftest.err >&5 13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13617 (exit $ac_status); } && 13618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13619 { (case "(($ac_try" in 13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13621 *) ac_try_echo=$ac_try;; 13622esac 13623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13624 (eval "$ac_try") 2>&5 13625 ac_status=$? 13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13627 (exit $ac_status); }; } && 13628 { ac_try='test -s conftest$ac_exeext' 13629 { (case "(($ac_try" in 13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13631 *) ac_try_echo=$ac_try;; 13632esac 13633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13634 (eval "$ac_try") 2>&5 13635 ac_status=$? 13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13637 (exit $ac_status); }; }; then 13638 ac_cv_search_pthread_mutex_lock=$ac_res 13639else 13640 echo "$as_me: failed program was:" >&5 13641sed 's/^/| /' conftest.$ac_ext >&5 13642 13643 13644fi 13645 13646rm -f core conftest.err conftest.$ac_objext \ 13647 conftest$ac_exeext 13648 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13649 break 13650fi 13651done 13652if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 13653 : 13654else 13655 ac_cv_search_pthread_mutex_lock=no 13656fi 13657rm conftest.$ac_ext 13658LIBS=$ac_func_search_save_LIBS 13659fi 13660{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 13661echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 13662ac_res=$ac_cv_search_pthread_mutex_lock 13663if test "$ac_res" != no; then 13664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13665 13666cat >>confdefs.h <<\_ACEOF 13667#define HAVE_PTHREAD_MUTEX_LOCK 1 13668_ACEOF 13669 13670fi 13671 13672 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 13673echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 13674if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13675 echo $ECHO_N "(cached) $ECHO_C" >&6 13676else 13677 ac_func_search_save_LIBS=$LIBS 13678cat >conftest.$ac_ext <<_ACEOF 13679/* confdefs.h. */ 13680_ACEOF 13681cat confdefs.h >>conftest.$ac_ext 13682cat >>conftest.$ac_ext <<_ACEOF 13683/* end confdefs.h. */ 13684 13685/* Override any GCC internal prototype to avoid an error. 13686 Use char because int might match the return type of a GCC 13687 builtin and then its argument prototype would still apply. */ 13688#ifdef __cplusplus 13689extern "C" 13690#endif 13691char pthread_rwlock_init (); 13692int 13693main () 13694{ 13695return pthread_rwlock_init (); 13696 ; 13697 return 0; 13698} 13699_ACEOF 13700for ac_lib in '' pthread; do 13701 if test -z "$ac_lib"; then 13702 ac_res="none required" 13703 else 13704 ac_res=-l$ac_lib 13705 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13706 fi 13707 rm -f conftest.$ac_objext conftest$ac_exeext 13708if { (ac_try="$ac_link" 13709case "(($ac_try" in 13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13711 *) ac_try_echo=$ac_try;; 13712esac 13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13714 (eval "$ac_link") 2>conftest.er1 13715 ac_status=$? 13716 grep -v '^ *+' conftest.er1 >conftest.err 13717 rm -f conftest.er1 13718 cat conftest.err >&5 13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13720 (exit $ac_status); } && 13721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13722 { (case "(($ac_try" in 13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13724 *) ac_try_echo=$ac_try;; 13725esac 13726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13727 (eval "$ac_try") 2>&5 13728 ac_status=$? 13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13730 (exit $ac_status); }; } && 13731 { ac_try='test -s conftest$ac_exeext' 13732 { (case "(($ac_try" in 13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13734 *) ac_try_echo=$ac_try;; 13735esac 13736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13737 (eval "$ac_try") 2>&5 13738 ac_status=$? 13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13740 (exit $ac_status); }; }; then 13741 ac_cv_search_pthread_rwlock_init=$ac_res 13742else 13743 echo "$as_me: failed program was:" >&5 13744sed 's/^/| /' conftest.$ac_ext >&5 13745 13746 13747fi 13748 13749rm -f core conftest.err conftest.$ac_objext \ 13750 conftest$ac_exeext 13751 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13752 break 13753fi 13754done 13755if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 13756 : 13757else 13758 ac_cv_search_pthread_rwlock_init=no 13759fi 13760rm conftest.$ac_ext 13761LIBS=$ac_func_search_save_LIBS 13762fi 13763{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 13764echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 13765ac_res=$ac_cv_search_pthread_rwlock_init 13766if test "$ac_res" != no; then 13767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13768 13769cat >>confdefs.h <<\_ACEOF 13770#define HAVE_PTHREAD_RWLOCK_INIT 1 13771_ACEOF 13772 13773fi 13774 13775 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 13776echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 13777if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13778 echo $ECHO_N "(cached) $ECHO_C" >&6 13779else 13780 ac_func_search_save_LIBS=$LIBS 13781cat >conftest.$ac_ext <<_ACEOF 13782/* confdefs.h. */ 13783_ACEOF 13784cat confdefs.h >>conftest.$ac_ext 13785cat >>conftest.$ac_ext <<_ACEOF 13786/* end confdefs.h. */ 13787 13788/* Override any GCC internal prototype to avoid an error. 13789 Use char because int might match the return type of a GCC 13790 builtin and then its argument prototype would still apply. */ 13791#ifdef __cplusplus 13792extern "C" 13793#endif 13794char pthread_getspecific (); 13795int 13796main () 13797{ 13798return pthread_getspecific (); 13799 ; 13800 return 0; 13801} 13802_ACEOF 13803for ac_lib in '' pthread; do 13804 if test -z "$ac_lib"; then 13805 ac_res="none required" 13806 else 13807 ac_res=-l$ac_lib 13808 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13809 fi 13810 rm -f conftest.$ac_objext conftest$ac_exeext 13811if { (ac_try="$ac_link" 13812case "(($ac_try" in 13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13814 *) ac_try_echo=$ac_try;; 13815esac 13816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13817 (eval "$ac_link") 2>conftest.er1 13818 ac_status=$? 13819 grep -v '^ *+' conftest.er1 >conftest.err 13820 rm -f conftest.er1 13821 cat conftest.err >&5 13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13823 (exit $ac_status); } && 13824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13825 { (case "(($ac_try" in 13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13827 *) ac_try_echo=$ac_try;; 13828esac 13829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13830 (eval "$ac_try") 2>&5 13831 ac_status=$? 13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13833 (exit $ac_status); }; } && 13834 { ac_try='test -s conftest$ac_exeext' 13835 { (case "(($ac_try" in 13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13837 *) ac_try_echo=$ac_try;; 13838esac 13839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13840 (eval "$ac_try") 2>&5 13841 ac_status=$? 13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13843 (exit $ac_status); }; }; then 13844 ac_cv_search_pthread_getspecific=$ac_res 13845else 13846 echo "$as_me: failed program was:" >&5 13847sed 's/^/| /' conftest.$ac_ext >&5 13848 13849 13850fi 13851 13852rm -f core conftest.err conftest.$ac_objext \ 13853 conftest$ac_exeext 13854 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13855 break 13856fi 13857done 13858if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13859 : 13860else 13861 ac_cv_search_pthread_getspecific=no 13862fi 13863rm conftest.$ac_ext 13864LIBS=$ac_func_search_save_LIBS 13865fi 13866{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 13867echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 13868ac_res=$ac_cv_search_pthread_getspecific 13869if test "$ac_res" != no; then 13870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13871 13872cat >>confdefs.h <<\_ACEOF 13873#define HAVE_PTHREAD_GETSPECIFIC 1 13874_ACEOF 13875 13876fi 13877 13878fi 13879 13880 13881# Check whether --with-udis86 was given. 13882if test "${with_udis86+set}" = set; then 13883 withval=$with_udis86; 13884 USE_UDIS86=1 13885 13886 case "$withval" in 13887 /usr/lib|yes) ;; 13888 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13889 esac 13890 13891{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 13892echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 13893if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 13894 echo $ECHO_N "(cached) $ECHO_C" >&6 13895else 13896 ac_check_lib_save_LIBS=$LIBS 13897LIBS="-ludis86 $LIBS" 13898cat >conftest.$ac_ext <<_ACEOF 13899/* confdefs.h. */ 13900_ACEOF 13901cat confdefs.h >>conftest.$ac_ext 13902cat >>conftest.$ac_ext <<_ACEOF 13903/* end confdefs.h. */ 13904 13905/* Override any GCC internal prototype to avoid an error. 13906 Use char because int might match the return type of a GCC 13907 builtin and then its argument prototype would still apply. */ 13908#ifdef __cplusplus 13909extern "C" 13910#endif 13911char ud_init (); 13912int 13913main () 13914{ 13915return ud_init (); 13916 ; 13917 return 0; 13918} 13919_ACEOF 13920rm -f conftest.$ac_objext conftest$ac_exeext 13921if { (ac_try="$ac_link" 13922case "(($ac_try" in 13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13924 *) ac_try_echo=$ac_try;; 13925esac 13926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13927 (eval "$ac_link") 2>conftest.er1 13928 ac_status=$? 13929 grep -v '^ *+' conftest.er1 >conftest.err 13930 rm -f conftest.er1 13931 cat conftest.err >&5 13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13933 (exit $ac_status); } && 13934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13935 { (case "(($ac_try" in 13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13937 *) ac_try_echo=$ac_try;; 13938esac 13939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13940 (eval "$ac_try") 2>&5 13941 ac_status=$? 13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13943 (exit $ac_status); }; } && 13944 { ac_try='test -s conftest$ac_exeext' 13945 { (case "(($ac_try" in 13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13947 *) ac_try_echo=$ac_try;; 13948esac 13949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13950 (eval "$ac_try") 2>&5 13951 ac_status=$? 13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13953 (exit $ac_status); }; }; then 13954 ac_cv_lib_udis86_ud_init=yes 13955else 13956 echo "$as_me: failed program was:" >&5 13957sed 's/^/| /' conftest.$ac_ext >&5 13958 13959 ac_cv_lib_udis86_ud_init=no 13960fi 13961 13962rm -f core conftest.err conftest.$ac_objext \ 13963 conftest$ac_exeext conftest.$ac_ext 13964LIBS=$ac_check_lib_save_LIBS 13965fi 13966{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13967echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13968if test $ac_cv_lib_udis86_ud_init = yes; then 13969 cat >>confdefs.h <<_ACEOF 13970#define HAVE_LIBUDIS86 1 13971_ACEOF 13972 13973 LIBS="-ludis86 $LIBS" 13974 13975else 13976 13977 echo "Error! You need to have libudis86 around." 13978 exit -1 13979 13980fi 13981 13982 13983else 13984 USE_UDIS86=0 13985 13986fi 13987 13988 13989cat >>confdefs.h <<_ACEOF 13990#define USE_UDIS86 $USE_UDIS86 13991_ACEOF 13992 13993 13994 13995# Check whether --with-oprofile was given. 13996if test "${with_oprofile+set}" = set; then 13997 withval=$with_oprofile; 13998 USE_OPROFILE=1 13999 14000 case "$withval" in 14001 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 14002 no) llvm_cv_oppath= 14003 USE_OPROFILE=0 14004 ;; 14005 *) llvm_cv_oppath="${withval}/lib/oprofile" 14006 CPPFLAGS="-I${withval}/include";; 14007 esac 14008 if test -n "$llvm_cv_oppath" ; then 14009 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 14010 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 14011echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 14012if test "${ac_cv_search_bfd_init+set}" = set; then 14013 echo $ECHO_N "(cached) $ECHO_C" >&6 14014else 14015 ac_func_search_save_LIBS=$LIBS 14016cat >conftest.$ac_ext <<_ACEOF 14017/* confdefs.h. */ 14018_ACEOF 14019cat confdefs.h >>conftest.$ac_ext 14020cat >>conftest.$ac_ext <<_ACEOF 14021/* end confdefs.h. */ 14022 14023/* Override any GCC internal prototype to avoid an error. 14024 Use char because int might match the return type of a GCC 14025 builtin and then its argument prototype would still apply. */ 14026#ifdef __cplusplus 14027extern "C" 14028#endif 14029char bfd_init (); 14030int 14031main () 14032{ 14033return bfd_init (); 14034 ; 14035 return 0; 14036} 14037_ACEOF 14038for ac_lib in '' bfd; do 14039 if test -z "$ac_lib"; then 14040 ac_res="none required" 14041 else 14042 ac_res=-l$ac_lib 14043 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14044 fi 14045 rm -f conftest.$ac_objext conftest$ac_exeext 14046if { (ac_try="$ac_link" 14047case "(($ac_try" in 14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14049 *) ac_try_echo=$ac_try;; 14050esac 14051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14052 (eval "$ac_link") 2>conftest.er1 14053 ac_status=$? 14054 grep -v '^ *+' conftest.er1 >conftest.err 14055 rm -f conftest.er1 14056 cat conftest.err >&5 14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14058 (exit $ac_status); } && 14059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14060 { (case "(($ac_try" in 14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14062 *) ac_try_echo=$ac_try;; 14063esac 14064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14065 (eval "$ac_try") 2>&5 14066 ac_status=$? 14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14068 (exit $ac_status); }; } && 14069 { ac_try='test -s conftest$ac_exeext' 14070 { (case "(($ac_try" in 14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14072 *) ac_try_echo=$ac_try;; 14073esac 14074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14075 (eval "$ac_try") 2>&5 14076 ac_status=$? 14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14078 (exit $ac_status); }; }; then 14079 ac_cv_search_bfd_init=$ac_res 14080else 14081 echo "$as_me: failed program was:" >&5 14082sed 's/^/| /' conftest.$ac_ext >&5 14083 14084 14085fi 14086 14087rm -f core conftest.err conftest.$ac_objext \ 14088 conftest$ac_exeext 14089 if test "${ac_cv_search_bfd_init+set}" = set; then 14090 break 14091fi 14092done 14093if test "${ac_cv_search_bfd_init+set}" = set; then 14094 : 14095else 14096 ac_cv_search_bfd_init=no 14097fi 14098rm conftest.$ac_ext 14099LIBS=$ac_func_search_save_LIBS 14100fi 14101{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 14102echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 14103ac_res=$ac_cv_search_bfd_init 14104if test "$ac_res" != no; then 14105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14106 14107fi 14108 14109 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 14110echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 14111if test "${ac_cv_search_op_open_agent+set}" = set; then 14112 echo $ECHO_N "(cached) $ECHO_C" >&6 14113else 14114 ac_func_search_save_LIBS=$LIBS 14115cat >conftest.$ac_ext <<_ACEOF 14116/* confdefs.h. */ 14117_ACEOF 14118cat confdefs.h >>conftest.$ac_ext 14119cat >>conftest.$ac_ext <<_ACEOF 14120/* end confdefs.h. */ 14121 14122/* Override any GCC internal prototype to avoid an error. 14123 Use char because int might match the return type of a GCC 14124 builtin and then its argument prototype would still apply. */ 14125#ifdef __cplusplus 14126extern "C" 14127#endif 14128char op_open_agent (); 14129int 14130main () 14131{ 14132return op_open_agent (); 14133 ; 14134 return 0; 14135} 14136_ACEOF 14137for ac_lib in '' opagent; do 14138 if test -z "$ac_lib"; then 14139 ac_res="none required" 14140 else 14141 ac_res=-l$ac_lib 14142 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14143 fi 14144 rm -f conftest.$ac_objext conftest$ac_exeext 14145if { (ac_try="$ac_link" 14146case "(($ac_try" in 14147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14148 *) ac_try_echo=$ac_try;; 14149esac 14150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14151 (eval "$ac_link") 2>conftest.er1 14152 ac_status=$? 14153 grep -v '^ *+' conftest.er1 >conftest.err 14154 rm -f conftest.er1 14155 cat conftest.err >&5 14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14157 (exit $ac_status); } && 14158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14159 { (case "(($ac_try" in 14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14161 *) ac_try_echo=$ac_try;; 14162esac 14163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14164 (eval "$ac_try") 2>&5 14165 ac_status=$? 14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14167 (exit $ac_status); }; } && 14168 { ac_try='test -s conftest$ac_exeext' 14169 { (case "(($ac_try" in 14170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14171 *) ac_try_echo=$ac_try;; 14172esac 14173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14174 (eval "$ac_try") 2>&5 14175 ac_status=$? 14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14177 (exit $ac_status); }; }; then 14178 ac_cv_search_op_open_agent=$ac_res 14179else 14180 echo "$as_me: failed program was:" >&5 14181sed 's/^/| /' conftest.$ac_ext >&5 14182 14183 14184fi 14185 14186rm -f core conftest.err conftest.$ac_objext \ 14187 conftest$ac_exeext 14188 if test "${ac_cv_search_op_open_agent+set}" = set; then 14189 break 14190fi 14191done 14192if test "${ac_cv_search_op_open_agent+set}" = set; then 14193 : 14194else 14195 ac_cv_search_op_open_agent=no 14196fi 14197rm conftest.$ac_ext 14198LIBS=$ac_func_search_save_LIBS 14199fi 14200{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 14201echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 14202ac_res=$ac_cv_search_op_open_agent 14203if test "$ac_res" != no; then 14204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14205 14206else 14207 14208 echo "Error! You need to have libopagent around." 14209 exit -1 14210 14211fi 14212 14213 if test "${ac_cv_header_opagent_h+set}" = set; then 14214 { echo "$as_me:$LINENO: checking for opagent.h" >&5 14215echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 14216if test "${ac_cv_header_opagent_h+set}" = set; then 14217 echo $ECHO_N "(cached) $ECHO_C" >&6 14218fi 14219{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 14220echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 14221else 14222 # Is the header compilable? 14223{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 14224echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 14225cat >conftest.$ac_ext <<_ACEOF 14226/* confdefs.h. */ 14227_ACEOF 14228cat confdefs.h >>conftest.$ac_ext 14229cat >>conftest.$ac_ext <<_ACEOF 14230/* end confdefs.h. */ 14231$ac_includes_default 14232#include <opagent.h> 14233_ACEOF 14234rm -f conftest.$ac_objext 14235if { (ac_try="$ac_compile" 14236case "(($ac_try" in 14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14238 *) ac_try_echo=$ac_try;; 14239esac 14240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14241 (eval "$ac_compile") 2>conftest.er1 14242 ac_status=$? 14243 grep -v '^ *+' conftest.er1 >conftest.err 14244 rm -f conftest.er1 14245 cat conftest.err >&5 14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14247 (exit $ac_status); } && 14248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14249 { (case "(($ac_try" in 14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14251 *) ac_try_echo=$ac_try;; 14252esac 14253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14254 (eval "$ac_try") 2>&5 14255 ac_status=$? 14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14257 (exit $ac_status); }; } && 14258 { ac_try='test -s conftest.$ac_objext' 14259 { (case "(($ac_try" in 14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14261 *) ac_try_echo=$ac_try;; 14262esac 14263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14264 (eval "$ac_try") 2>&5 14265 ac_status=$? 14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14267 (exit $ac_status); }; }; then 14268 ac_header_compiler=yes 14269else 14270 echo "$as_me: failed program was:" >&5 14271sed 's/^/| /' conftest.$ac_ext >&5 14272 14273 ac_header_compiler=no 14274fi 14275 14276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14277{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14278echo "${ECHO_T}$ac_header_compiler" >&6; } 14279 14280# Is the header present? 14281{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 14282echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 14283cat >conftest.$ac_ext <<_ACEOF 14284/* confdefs.h. */ 14285_ACEOF 14286cat confdefs.h >>conftest.$ac_ext 14287cat >>conftest.$ac_ext <<_ACEOF 14288/* end confdefs.h. */ 14289#include <opagent.h> 14290_ACEOF 14291if { (ac_try="$ac_cpp conftest.$ac_ext" 14292case "(($ac_try" in 14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14294 *) ac_try_echo=$ac_try;; 14295esac 14296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14298 ac_status=$? 14299 grep -v '^ *+' conftest.er1 >conftest.err 14300 rm -f conftest.er1 14301 cat conftest.err >&5 14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14303 (exit $ac_status); } >/dev/null; then 14304 if test -s conftest.err; then 14305 ac_cpp_err=$ac_c_preproc_warn_flag 14306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14307 else 14308 ac_cpp_err= 14309 fi 14310else 14311 ac_cpp_err=yes 14312fi 14313if test -z "$ac_cpp_err"; then 14314 ac_header_preproc=yes 14315else 14316 echo "$as_me: failed program was:" >&5 14317sed 's/^/| /' conftest.$ac_ext >&5 14318 14319 ac_header_preproc=no 14320fi 14321 14322rm -f conftest.err conftest.$ac_ext 14323{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14324echo "${ECHO_T}$ac_header_preproc" >&6; } 14325 14326# So? What about this header? 14327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14328 yes:no: ) 14329 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 14330echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 14331 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 14332echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 14333 ac_header_preproc=yes 14334 ;; 14335 no:yes:* ) 14336 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 14337echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 14338 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 14339echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 14340 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 14341echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 14342 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 14343echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 14344 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 14345echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 14346 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 14347echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 14348 ( cat <<\_ASBOX 14349## ----------------------------------- ## 14350## Report this to llvmbugs@cs.uiuc.edu ## 14351## ----------------------------------- ## 14352_ASBOX 14353 ) | sed "s/^/$as_me: WARNING: /" >&2 14354 ;; 14355esac 14356{ echo "$as_me:$LINENO: checking for opagent.h" >&5 14357echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 14358if test "${ac_cv_header_opagent_h+set}" = set; then 14359 echo $ECHO_N "(cached) $ECHO_C" >&6 14360else 14361 ac_cv_header_opagent_h=$ac_header_preproc 14362fi 14363{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 14364echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 14365 14366fi 14367if test $ac_cv_header_opagent_h = yes; then 14368 : 14369else 14370 14371 echo "Error! You need to have opagent.h around." 14372 exit -1 14373 14374fi 14375 14376 14377 fi 14378 14379else 14380 14381 USE_OPROFILE=0 14382 14383 14384fi 14385 14386 14387cat >>confdefs.h <<_ACEOF 14388#define USE_OPROFILE $USE_OPROFILE 14389_ACEOF 14390 14391 14392 14393 14394 14395 14396 14397 14398ac_header_dirent=no 14399for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14400 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14401{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 14402echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 14403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14404 echo $ECHO_N "(cached) $ECHO_C" >&6 14405else 14406 cat >conftest.$ac_ext <<_ACEOF 14407/* confdefs.h. */ 14408_ACEOF 14409cat confdefs.h >>conftest.$ac_ext 14410cat >>conftest.$ac_ext <<_ACEOF 14411/* end confdefs.h. */ 14412#include <sys/types.h> 14413#include <$ac_hdr> 14414 14415int 14416main () 14417{ 14418if ((DIR *) 0) 14419return 0; 14420 ; 14421 return 0; 14422} 14423_ACEOF 14424rm -f conftest.$ac_objext 14425if { (ac_try="$ac_compile" 14426case "(($ac_try" in 14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14428 *) ac_try_echo=$ac_try;; 14429esac 14430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14431 (eval "$ac_compile") 2>conftest.er1 14432 ac_status=$? 14433 grep -v '^ *+' conftest.er1 >conftest.err 14434 rm -f conftest.er1 14435 cat conftest.err >&5 14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14437 (exit $ac_status); } && 14438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14439 { (case "(($ac_try" in 14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14441 *) ac_try_echo=$ac_try;; 14442esac 14443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14444 (eval "$ac_try") 2>&5 14445 ac_status=$? 14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14447 (exit $ac_status); }; } && 14448 { ac_try='test -s conftest.$ac_objext' 14449 { (case "(($ac_try" in 14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14451 *) ac_try_echo=$ac_try;; 14452esac 14453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14454 (eval "$ac_try") 2>&5 14455 ac_status=$? 14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14457 (exit $ac_status); }; }; then 14458 eval "$as_ac_Header=yes" 14459else 14460 echo "$as_me: failed program was:" >&5 14461sed 's/^/| /' conftest.$ac_ext >&5 14462 14463 eval "$as_ac_Header=no" 14464fi 14465 14466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14467fi 14468ac_res=`eval echo '${'$as_ac_Header'}'` 14469 { echo "$as_me:$LINENO: result: $ac_res" >&5 14470echo "${ECHO_T}$ac_res" >&6; } 14471if test `eval echo '${'$as_ac_Header'}'` = yes; then 14472 cat >>confdefs.h <<_ACEOF 14473#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14474_ACEOF 14475 14476ac_header_dirent=$ac_hdr; break 14477fi 14478 14479done 14480# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 14481if test $ac_header_dirent = dirent.h; then 14482 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14483echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14484if test "${ac_cv_search_opendir+set}" = set; then 14485 echo $ECHO_N "(cached) $ECHO_C" >&6 14486else 14487 ac_func_search_save_LIBS=$LIBS 14488cat >conftest.$ac_ext <<_ACEOF 14489/* confdefs.h. */ 14490_ACEOF 14491cat confdefs.h >>conftest.$ac_ext 14492cat >>conftest.$ac_ext <<_ACEOF 14493/* end confdefs.h. */ 14494 14495/* Override any GCC internal prototype to avoid an error. 14496 Use char because int might match the return type of a GCC 14497 builtin and then its argument prototype would still apply. */ 14498#ifdef __cplusplus 14499extern "C" 14500#endif 14501char opendir (); 14502int 14503main () 14504{ 14505return opendir (); 14506 ; 14507 return 0; 14508} 14509_ACEOF 14510for ac_lib in '' dir; do 14511 if test -z "$ac_lib"; then 14512 ac_res="none required" 14513 else 14514 ac_res=-l$ac_lib 14515 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14516 fi 14517 rm -f conftest.$ac_objext conftest$ac_exeext 14518if { (ac_try="$ac_link" 14519case "(($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_link") 2>conftest.er1 14525 ac_status=$? 14526 grep -v '^ *+' conftest.er1 >conftest.err 14527 rm -f conftest.er1 14528 cat conftest.err >&5 14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14530 (exit $ac_status); } && 14531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14532 { (case "(($ac_try" in 14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14534 *) ac_try_echo=$ac_try;; 14535esac 14536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14537 (eval "$ac_try") 2>&5 14538 ac_status=$? 14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14540 (exit $ac_status); }; } && 14541 { ac_try='test -s conftest$ac_exeext' 14542 { (case "(($ac_try" in 14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14544 *) ac_try_echo=$ac_try;; 14545esac 14546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14547 (eval "$ac_try") 2>&5 14548 ac_status=$? 14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14550 (exit $ac_status); }; }; then 14551 ac_cv_search_opendir=$ac_res 14552else 14553 echo "$as_me: failed program was:" >&5 14554sed 's/^/| /' conftest.$ac_ext >&5 14555 14556 14557fi 14558 14559rm -f core conftest.err conftest.$ac_objext \ 14560 conftest$ac_exeext 14561 if test "${ac_cv_search_opendir+set}" = set; then 14562 break 14563fi 14564done 14565if test "${ac_cv_search_opendir+set}" = set; then 14566 : 14567else 14568 ac_cv_search_opendir=no 14569fi 14570rm conftest.$ac_ext 14571LIBS=$ac_func_search_save_LIBS 14572fi 14573{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14574echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14575ac_res=$ac_cv_search_opendir 14576if test "$ac_res" != no; then 14577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14578 14579fi 14580 14581else 14582 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 14583echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 14584if test "${ac_cv_search_opendir+set}" = set; then 14585 echo $ECHO_N "(cached) $ECHO_C" >&6 14586else 14587 ac_func_search_save_LIBS=$LIBS 14588cat >conftest.$ac_ext <<_ACEOF 14589/* confdefs.h. */ 14590_ACEOF 14591cat confdefs.h >>conftest.$ac_ext 14592cat >>conftest.$ac_ext <<_ACEOF 14593/* end confdefs.h. */ 14594 14595/* Override any GCC internal prototype to avoid an error. 14596 Use char because int might match the return type of a GCC 14597 builtin and then its argument prototype would still apply. */ 14598#ifdef __cplusplus 14599extern "C" 14600#endif 14601char opendir (); 14602int 14603main () 14604{ 14605return opendir (); 14606 ; 14607 return 0; 14608} 14609_ACEOF 14610for ac_lib in '' x; do 14611 if test -z "$ac_lib"; then 14612 ac_res="none required" 14613 else 14614 ac_res=-l$ac_lib 14615 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14616 fi 14617 rm -f conftest.$ac_objext conftest$ac_exeext 14618if { (ac_try="$ac_link" 14619case "(($ac_try" in 14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14621 *) ac_try_echo=$ac_try;; 14622esac 14623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14624 (eval "$ac_link") 2>conftest.er1 14625 ac_status=$? 14626 grep -v '^ *+' conftest.er1 >conftest.err 14627 rm -f conftest.er1 14628 cat conftest.err >&5 14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14630 (exit $ac_status); } && 14631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14632 { (case "(($ac_try" in 14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14634 *) ac_try_echo=$ac_try;; 14635esac 14636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14637 (eval "$ac_try") 2>&5 14638 ac_status=$? 14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14640 (exit $ac_status); }; } && 14641 { ac_try='test -s conftest$ac_exeext' 14642 { (case "(($ac_try" in 14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14644 *) ac_try_echo=$ac_try;; 14645esac 14646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14647 (eval "$ac_try") 2>&5 14648 ac_status=$? 14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14650 (exit $ac_status); }; }; then 14651 ac_cv_search_opendir=$ac_res 14652else 14653 echo "$as_me: failed program was:" >&5 14654sed 's/^/| /' conftest.$ac_ext >&5 14655 14656 14657fi 14658 14659rm -f core conftest.err conftest.$ac_objext \ 14660 conftest$ac_exeext 14661 if test "${ac_cv_search_opendir+set}" = set; then 14662 break 14663fi 14664done 14665if test "${ac_cv_search_opendir+set}" = set; then 14666 : 14667else 14668 ac_cv_search_opendir=no 14669fi 14670rm conftest.$ac_ext 14671LIBS=$ac_func_search_save_LIBS 14672fi 14673{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 14674echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 14675ac_res=$ac_cv_search_opendir 14676if test "$ac_res" != no; then 14677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14678 14679fi 14680 14681fi 14682 14683{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 14684echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 14685if test "${ac_cv_header_mmap_anon+set}" = set; then 14686 echo $ECHO_N "(cached) $ECHO_C" >&6 14687else 14688 ac_ext=c 14689ac_cpp='$CPP $CPPFLAGS' 14690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14692ac_compiler_gnu=$ac_cv_c_compiler_gnu 14693 14694 cat >conftest.$ac_ext <<_ACEOF 14695/* confdefs.h. */ 14696_ACEOF 14697cat confdefs.h >>conftest.$ac_ext 14698cat >>conftest.$ac_ext <<_ACEOF 14699/* end confdefs.h. */ 14700#include <sys/mman.h> 14701#include <unistd.h> 14702#include <fcntl.h> 14703int 14704main () 14705{ 14706mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 14707 ; 14708 return 0; 14709} 14710_ACEOF 14711rm -f conftest.$ac_objext 14712if { (ac_try="$ac_compile" 14713case "(($ac_try" in 14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14715 *) ac_try_echo=$ac_try;; 14716esac 14717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14718 (eval "$ac_compile") 2>conftest.er1 14719 ac_status=$? 14720 grep -v '^ *+' conftest.er1 >conftest.err 14721 rm -f conftest.er1 14722 cat conftest.err >&5 14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14724 (exit $ac_status); } && 14725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14726 { (case "(($ac_try" in 14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14728 *) ac_try_echo=$ac_try;; 14729esac 14730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14731 (eval "$ac_try") 2>&5 14732 ac_status=$? 14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14734 (exit $ac_status); }; } && 14735 { ac_try='test -s conftest.$ac_objext' 14736 { (case "(($ac_try" in 14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14738 *) ac_try_echo=$ac_try;; 14739esac 14740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14741 (eval "$ac_try") 2>&5 14742 ac_status=$? 14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14744 (exit $ac_status); }; }; then 14745 ac_cv_header_mmap_anon=yes 14746else 14747 echo "$as_me: failed program was:" >&5 14748sed 's/^/| /' conftest.$ac_ext >&5 14749 14750 ac_cv_header_mmap_anon=no 14751fi 14752 14753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14754 ac_ext=c 14755ac_cpp='$CPP $CPPFLAGS' 14756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14758ac_compiler_gnu=$ac_cv_c_compiler_gnu 14759 14760 14761fi 14762{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 14763echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 14764if test "$ac_cv_header_mmap_anon" = yes; then 14765 14766cat >>confdefs.h <<\_ACEOF 14767#define HAVE_MMAP_ANONYMOUS 1 14768_ACEOF 14769 14770fi 14771 14772{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 14773echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 14774if test "${ac_cv_header_stat_broken+set}" = set; then 14775 echo $ECHO_N "(cached) $ECHO_C" >&6 14776else 14777 cat >conftest.$ac_ext <<_ACEOF 14778/* confdefs.h. */ 14779_ACEOF 14780cat confdefs.h >>conftest.$ac_ext 14781cat >>conftest.$ac_ext <<_ACEOF 14782/* end confdefs.h. */ 14783#include <sys/types.h> 14784#include <sys/stat.h> 14785 14786#if defined S_ISBLK && defined S_IFDIR 14787# if S_ISBLK (S_IFDIR) 14788You lose. 14789# endif 14790#endif 14791 14792#if defined S_ISBLK && defined S_IFCHR 14793# if S_ISBLK (S_IFCHR) 14794You lose. 14795# endif 14796#endif 14797 14798#if defined S_ISLNK && defined S_IFREG 14799# if S_ISLNK (S_IFREG) 14800You lose. 14801# endif 14802#endif 14803 14804#if defined S_ISSOCK && defined S_IFREG 14805# if S_ISSOCK (S_IFREG) 14806You lose. 14807# endif 14808#endif 14809 14810_ACEOF 14811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14812 $EGREP "You lose" >/dev/null 2>&1; then 14813 ac_cv_header_stat_broken=yes 14814else 14815 ac_cv_header_stat_broken=no 14816fi 14817rm -f conftest* 14818 14819fi 14820{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14821echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14822if test $ac_cv_header_stat_broken = yes; then 14823 14824cat >>confdefs.h <<\_ACEOF 14825#define STAT_MACROS_BROKEN 1 14826_ACEOF 14827 14828fi 14829 14830{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 14831echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 14832if test "${ac_cv_header_stdc+set}" = set; then 14833 echo $ECHO_N "(cached) $ECHO_C" >&6 14834else 14835 cat >conftest.$ac_ext <<_ACEOF 14836/* confdefs.h. */ 14837_ACEOF 14838cat confdefs.h >>conftest.$ac_ext 14839cat >>conftest.$ac_ext <<_ACEOF 14840/* end confdefs.h. */ 14841#include <stdlib.h> 14842#include <stdarg.h> 14843#include <string.h> 14844#include <float.h> 14845 14846int 14847main () 14848{ 14849 14850 ; 14851 return 0; 14852} 14853_ACEOF 14854rm -f conftest.$ac_objext 14855if { (ac_try="$ac_compile" 14856case "(($ac_try" in 14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14858 *) ac_try_echo=$ac_try;; 14859esac 14860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14861 (eval "$ac_compile") 2>conftest.er1 14862 ac_status=$? 14863 grep -v '^ *+' conftest.er1 >conftest.err 14864 rm -f conftest.er1 14865 cat conftest.err >&5 14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14867 (exit $ac_status); } && 14868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14869 { (case "(($ac_try" in 14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14871 *) ac_try_echo=$ac_try;; 14872esac 14873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14874 (eval "$ac_try") 2>&5 14875 ac_status=$? 14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14877 (exit $ac_status); }; } && 14878 { ac_try='test -s conftest.$ac_objext' 14879 { (case "(($ac_try" in 14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14881 *) ac_try_echo=$ac_try;; 14882esac 14883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14884 (eval "$ac_try") 2>&5 14885 ac_status=$? 14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14887 (exit $ac_status); }; }; then 14888 ac_cv_header_stdc=yes 14889else 14890 echo "$as_me: failed program was:" >&5 14891sed 's/^/| /' conftest.$ac_ext >&5 14892 14893 ac_cv_header_stdc=no 14894fi 14895 14896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14897 14898if test $ac_cv_header_stdc = yes; then 14899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14900 cat >conftest.$ac_ext <<_ACEOF 14901/* confdefs.h. */ 14902_ACEOF 14903cat confdefs.h >>conftest.$ac_ext 14904cat >>conftest.$ac_ext <<_ACEOF 14905/* end confdefs.h. */ 14906#include <string.h> 14907 14908_ACEOF 14909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14910 $EGREP "memchr" >/dev/null 2>&1; then 14911 : 14912else 14913 ac_cv_header_stdc=no 14914fi 14915rm -f conftest* 14916 14917fi 14918 14919if test $ac_cv_header_stdc = yes; then 14920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14921 cat >conftest.$ac_ext <<_ACEOF 14922/* confdefs.h. */ 14923_ACEOF 14924cat confdefs.h >>conftest.$ac_ext 14925cat >>conftest.$ac_ext <<_ACEOF 14926/* end confdefs.h. */ 14927#include <stdlib.h> 14928 14929_ACEOF 14930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14931 $EGREP "free" >/dev/null 2>&1; then 14932 : 14933else 14934 ac_cv_header_stdc=no 14935fi 14936rm -f conftest* 14937 14938fi 14939 14940if test $ac_cv_header_stdc = yes; then 14941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14942 if test "$cross_compiling" = yes; then 14943 : 14944else 14945 cat >conftest.$ac_ext <<_ACEOF 14946/* confdefs.h. */ 14947_ACEOF 14948cat confdefs.h >>conftest.$ac_ext 14949cat >>conftest.$ac_ext <<_ACEOF 14950/* end confdefs.h. */ 14951#include <ctype.h> 14952#include <stdlib.h> 14953#if ((' ' & 0x0FF) == 0x020) 14954# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14955# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14956#else 14957# define ISLOWER(c) \ 14958 (('a' <= (c) && (c) <= 'i') \ 14959 || ('j' <= (c) && (c) <= 'r') \ 14960 || ('s' <= (c) && (c) <= 'z')) 14961# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14962#endif 14963 14964#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14965int 14966main () 14967{ 14968 int i; 14969 for (i = 0; i < 256; i++) 14970 if (XOR (islower (i), ISLOWER (i)) 14971 || toupper (i) != TOUPPER (i)) 14972 return 2; 14973 return 0; 14974} 14975_ACEOF 14976rm -f conftest$ac_exeext 14977if { (ac_try="$ac_link" 14978case "(($ac_try" in 14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14980 *) ac_try_echo=$ac_try;; 14981esac 14982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14983 (eval "$ac_link") 2>&5 14984 ac_status=$? 14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14987 { (case "(($ac_try" in 14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14989 *) ac_try_echo=$ac_try;; 14990esac 14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14992 (eval "$ac_try") 2>&5 14993 ac_status=$? 14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14995 (exit $ac_status); }; }; then 14996 : 14997else 14998 echo "$as_me: program exited with status $ac_status" >&5 14999echo "$as_me: failed program was:" >&5 15000sed 's/^/| /' conftest.$ac_ext >&5 15001 15002( exit $ac_status ) 15003ac_cv_header_stdc=no 15004fi 15005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15006fi 15007 15008 15009fi 15010fi 15011{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 15012echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 15013if test $ac_cv_header_stdc = yes; then 15014 15015cat >>confdefs.h <<\_ACEOF 15016#define STDC_HEADERS 1 15017_ACEOF 15018 15019fi 15020 15021{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 15022echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 15023if test "${ac_cv_header_sys_wait_h+set}" = set; then 15024 echo $ECHO_N "(cached) $ECHO_C" >&6 15025else 15026 cat >conftest.$ac_ext <<_ACEOF 15027/* confdefs.h. */ 15028_ACEOF 15029cat confdefs.h >>conftest.$ac_ext 15030cat >>conftest.$ac_ext <<_ACEOF 15031/* end confdefs.h. */ 15032#include <sys/types.h> 15033#include <sys/wait.h> 15034#ifndef WEXITSTATUS 15035# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 15036#endif 15037#ifndef WIFEXITED 15038# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 15039#endif 15040 15041int 15042main () 15043{ 15044 int s; 15045 wait (&s); 15046 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 15047 ; 15048 return 0; 15049} 15050_ACEOF 15051rm -f conftest.$ac_objext 15052if { (ac_try="$ac_compile" 15053case "(($ac_try" in 15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15055 *) ac_try_echo=$ac_try;; 15056esac 15057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15058 (eval "$ac_compile") 2>conftest.er1 15059 ac_status=$? 15060 grep -v '^ *+' conftest.er1 >conftest.err 15061 rm -f conftest.er1 15062 cat conftest.err >&5 15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15064 (exit $ac_status); } && 15065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15066 { (case "(($ac_try" in 15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15068 *) ac_try_echo=$ac_try;; 15069esac 15070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15071 (eval "$ac_try") 2>&5 15072 ac_status=$? 15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15074 (exit $ac_status); }; } && 15075 { ac_try='test -s conftest.$ac_objext' 15076 { (case "(($ac_try" in 15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15078 *) ac_try_echo=$ac_try;; 15079esac 15080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15081 (eval "$ac_try") 2>&5 15082 ac_status=$? 15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15084 (exit $ac_status); }; }; then 15085 ac_cv_header_sys_wait_h=yes 15086else 15087 echo "$as_me: failed program was:" >&5 15088sed 's/^/| /' conftest.$ac_ext >&5 15089 15090 ac_cv_header_sys_wait_h=no 15091fi 15092 15093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15094fi 15095{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 15096echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 15097if test $ac_cv_header_sys_wait_h = yes; then 15098 15099cat >>confdefs.h <<\_ACEOF 15100#define HAVE_SYS_WAIT_H 1 15101_ACEOF 15102 15103fi 15104 15105{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 15106echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 15107if test "${ac_cv_header_time+set}" = set; then 15108 echo $ECHO_N "(cached) $ECHO_C" >&6 15109else 15110 cat >conftest.$ac_ext <<_ACEOF 15111/* confdefs.h. */ 15112_ACEOF 15113cat confdefs.h >>conftest.$ac_ext 15114cat >>conftest.$ac_ext <<_ACEOF 15115/* end confdefs.h. */ 15116#include <sys/types.h> 15117#include <sys/time.h> 15118#include <time.h> 15119 15120int 15121main () 15122{ 15123if ((struct tm *) 0) 15124return 0; 15125 ; 15126 return 0; 15127} 15128_ACEOF 15129rm -f conftest.$ac_objext 15130if { (ac_try="$ac_compile" 15131case "(($ac_try" in 15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15133 *) ac_try_echo=$ac_try;; 15134esac 15135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15136 (eval "$ac_compile") 2>conftest.er1 15137 ac_status=$? 15138 grep -v '^ *+' conftest.er1 >conftest.err 15139 rm -f conftest.er1 15140 cat conftest.err >&5 15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15142 (exit $ac_status); } && 15143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15144 { (case "(($ac_try" in 15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15146 *) ac_try_echo=$ac_try;; 15147esac 15148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15149 (eval "$ac_try") 2>&5 15150 ac_status=$? 15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15152 (exit $ac_status); }; } && 15153 { ac_try='test -s conftest.$ac_objext' 15154 { (case "(($ac_try" in 15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15156 *) ac_try_echo=$ac_try;; 15157esac 15158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15159 (eval "$ac_try") 2>&5 15160 ac_status=$? 15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15162 (exit $ac_status); }; }; then 15163 ac_cv_header_time=yes 15164else 15165 echo "$as_me: failed program was:" >&5 15166sed 's/^/| /' conftest.$ac_ext >&5 15167 15168 ac_cv_header_time=no 15169fi 15170 15171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15172fi 15173{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 15174echo "${ECHO_T}$ac_cv_header_time" >&6; } 15175if test $ac_cv_header_time = yes; then 15176 15177cat >>confdefs.h <<\_ACEOF 15178#define TIME_WITH_SYS_TIME 1 15179_ACEOF 15180 15181fi 15182 15183 15184 15185 15186 15187 15188 15189 15190for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 15191do 15192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15194 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15197 echo $ECHO_N "(cached) $ECHO_C" >&6 15198fi 15199ac_res=`eval echo '${'$as_ac_Header'}'` 15200 { echo "$as_me:$LINENO: result: $ac_res" >&5 15201echo "${ECHO_T}$ac_res" >&6; } 15202else 15203 # Is the header compilable? 15204{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15205echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15206cat >conftest.$ac_ext <<_ACEOF 15207/* confdefs.h. */ 15208_ACEOF 15209cat confdefs.h >>conftest.$ac_ext 15210cat >>conftest.$ac_ext <<_ACEOF 15211/* end confdefs.h. */ 15212$ac_includes_default 15213#include <$ac_header> 15214_ACEOF 15215rm -f conftest.$ac_objext 15216if { (ac_try="$ac_compile" 15217case "(($ac_try" in 15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15219 *) ac_try_echo=$ac_try;; 15220esac 15221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15222 (eval "$ac_compile") 2>conftest.er1 15223 ac_status=$? 15224 grep -v '^ *+' conftest.er1 >conftest.err 15225 rm -f conftest.er1 15226 cat conftest.err >&5 15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15228 (exit $ac_status); } && 15229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15230 { (case "(($ac_try" in 15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15232 *) ac_try_echo=$ac_try;; 15233esac 15234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15235 (eval "$ac_try") 2>&5 15236 ac_status=$? 15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15238 (exit $ac_status); }; } && 15239 { ac_try='test -s conftest.$ac_objext' 15240 { (case "(($ac_try" in 15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15242 *) ac_try_echo=$ac_try;; 15243esac 15244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15245 (eval "$ac_try") 2>&5 15246 ac_status=$? 15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15248 (exit $ac_status); }; }; then 15249 ac_header_compiler=yes 15250else 15251 echo "$as_me: failed program was:" >&5 15252sed 's/^/| /' conftest.$ac_ext >&5 15253 15254 ac_header_compiler=no 15255fi 15256 15257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15258{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15259echo "${ECHO_T}$ac_header_compiler" >&6; } 15260 15261# Is the header present? 15262{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15263echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15264cat >conftest.$ac_ext <<_ACEOF 15265/* confdefs.h. */ 15266_ACEOF 15267cat confdefs.h >>conftest.$ac_ext 15268cat >>conftest.$ac_ext <<_ACEOF 15269/* end confdefs.h. */ 15270#include <$ac_header> 15271_ACEOF 15272if { (ac_try="$ac_cpp conftest.$ac_ext" 15273case "(($ac_try" in 15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15275 *) ac_try_echo=$ac_try;; 15276esac 15277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15279 ac_status=$? 15280 grep -v '^ *+' conftest.er1 >conftest.err 15281 rm -f conftest.er1 15282 cat conftest.err >&5 15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15284 (exit $ac_status); } >/dev/null; then 15285 if test -s conftest.err; then 15286 ac_cpp_err=$ac_c_preproc_warn_flag 15287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15288 else 15289 ac_cpp_err= 15290 fi 15291else 15292 ac_cpp_err=yes 15293fi 15294if test -z "$ac_cpp_err"; then 15295 ac_header_preproc=yes 15296else 15297 echo "$as_me: failed program was:" >&5 15298sed 's/^/| /' conftest.$ac_ext >&5 15299 15300 ac_header_preproc=no 15301fi 15302 15303rm -f conftest.err conftest.$ac_ext 15304{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15305echo "${ECHO_T}$ac_header_preproc" >&6; } 15306 15307# So? What about this header? 15308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15309 yes:no: ) 15310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15314 ac_header_preproc=yes 15315 ;; 15316 no:yes:* ) 15317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15329 ( cat <<\_ASBOX 15330## ----------------------------------- ## 15331## Report this to llvmbugs@cs.uiuc.edu ## 15332## ----------------------------------- ## 15333_ASBOX 15334 ) | sed "s/^/$as_me: WARNING: /" >&2 15335 ;; 15336esac 15337{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15340 echo $ECHO_N "(cached) $ECHO_C" >&6 15341else 15342 eval "$as_ac_Header=\$ac_header_preproc" 15343fi 15344ac_res=`eval echo '${'$as_ac_Header'}'` 15345 { echo "$as_me:$LINENO: result: $ac_res" >&5 15346echo "${ECHO_T}$ac_res" >&6; } 15347 15348fi 15349if test `eval echo '${'$as_ac_Header'}'` = yes; then 15350 cat >>confdefs.h <<_ACEOF 15351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15352_ACEOF 15353 15354fi 15355 15356done 15357 15358 15359 15360 15361 15362 15363 15364for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 15365do 15366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15368 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15371 echo $ECHO_N "(cached) $ECHO_C" >&6 15372fi 15373ac_res=`eval echo '${'$as_ac_Header'}'` 15374 { echo "$as_me:$LINENO: result: $ac_res" >&5 15375echo "${ECHO_T}$ac_res" >&6; } 15376else 15377 # Is the header compilable? 15378{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15380cat >conftest.$ac_ext <<_ACEOF 15381/* confdefs.h. */ 15382_ACEOF 15383cat confdefs.h >>conftest.$ac_ext 15384cat >>conftest.$ac_ext <<_ACEOF 15385/* end confdefs.h. */ 15386$ac_includes_default 15387#include <$ac_header> 15388_ACEOF 15389rm -f conftest.$ac_objext 15390if { (ac_try="$ac_compile" 15391case "(($ac_try" in 15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15393 *) ac_try_echo=$ac_try;; 15394esac 15395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15396 (eval "$ac_compile") 2>conftest.er1 15397 ac_status=$? 15398 grep -v '^ *+' conftest.er1 >conftest.err 15399 rm -f conftest.er1 15400 cat conftest.err >&5 15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15402 (exit $ac_status); } && 15403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15404 { (case "(($ac_try" in 15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15406 *) ac_try_echo=$ac_try;; 15407esac 15408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15409 (eval "$ac_try") 2>&5 15410 ac_status=$? 15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15412 (exit $ac_status); }; } && 15413 { ac_try='test -s conftest.$ac_objext' 15414 { (case "(($ac_try" in 15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15416 *) ac_try_echo=$ac_try;; 15417esac 15418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15419 (eval "$ac_try") 2>&5 15420 ac_status=$? 15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15422 (exit $ac_status); }; }; then 15423 ac_header_compiler=yes 15424else 15425 echo "$as_me: failed program was:" >&5 15426sed 's/^/| /' conftest.$ac_ext >&5 15427 15428 ac_header_compiler=no 15429fi 15430 15431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15432{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15433echo "${ECHO_T}$ac_header_compiler" >&6; } 15434 15435# Is the header present? 15436{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15438cat >conftest.$ac_ext <<_ACEOF 15439/* confdefs.h. */ 15440_ACEOF 15441cat confdefs.h >>conftest.$ac_ext 15442cat >>conftest.$ac_ext <<_ACEOF 15443/* end confdefs.h. */ 15444#include <$ac_header> 15445_ACEOF 15446if { (ac_try="$ac_cpp conftest.$ac_ext" 15447case "(($ac_try" in 15448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15449 *) ac_try_echo=$ac_try;; 15450esac 15451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15453 ac_status=$? 15454 grep -v '^ *+' conftest.er1 >conftest.err 15455 rm -f conftest.er1 15456 cat conftest.err >&5 15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15458 (exit $ac_status); } >/dev/null; then 15459 if test -s conftest.err; then 15460 ac_cpp_err=$ac_c_preproc_warn_flag 15461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15462 else 15463 ac_cpp_err= 15464 fi 15465else 15466 ac_cpp_err=yes 15467fi 15468if test -z "$ac_cpp_err"; then 15469 ac_header_preproc=yes 15470else 15471 echo "$as_me: failed program was:" >&5 15472sed 's/^/| /' conftest.$ac_ext >&5 15473 15474 ac_header_preproc=no 15475fi 15476 15477rm -f conftest.err conftest.$ac_ext 15478{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15479echo "${ECHO_T}$ac_header_preproc" >&6; } 15480 15481# So? What about this header? 15482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15483 yes:no: ) 15484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15488 ac_header_preproc=yes 15489 ;; 15490 no:yes:* ) 15491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15503 ( cat <<\_ASBOX 15504## ----------------------------------- ## 15505## Report this to llvmbugs@cs.uiuc.edu ## 15506## ----------------------------------- ## 15507_ASBOX 15508 ) | sed "s/^/$as_me: WARNING: /" >&2 15509 ;; 15510esac 15511{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15514 echo $ECHO_N "(cached) $ECHO_C" >&6 15515else 15516 eval "$as_ac_Header=\$ac_header_preproc" 15517fi 15518ac_res=`eval echo '${'$as_ac_Header'}'` 15519 { echo "$as_me:$LINENO: result: $ac_res" >&5 15520echo "${ECHO_T}$ac_res" >&6; } 15521 15522fi 15523if test `eval echo '${'$as_ac_Header'}'` = yes; then 15524 cat >>confdefs.h <<_ACEOF 15525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15526_ACEOF 15527 15528fi 15529 15530done 15531 15532 15533 15534for ac_header in utime.h windows.h 15535do 15536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15538 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15541 echo $ECHO_N "(cached) $ECHO_C" >&6 15542fi 15543ac_res=`eval echo '${'$as_ac_Header'}'` 15544 { echo "$as_me:$LINENO: result: $ac_res" >&5 15545echo "${ECHO_T}$ac_res" >&6; } 15546else 15547 # Is the header compilable? 15548{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15549echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15550cat >conftest.$ac_ext <<_ACEOF 15551/* confdefs.h. */ 15552_ACEOF 15553cat confdefs.h >>conftest.$ac_ext 15554cat >>conftest.$ac_ext <<_ACEOF 15555/* end confdefs.h. */ 15556$ac_includes_default 15557#include <$ac_header> 15558_ACEOF 15559rm -f conftest.$ac_objext 15560if { (ac_try="$ac_compile" 15561case "(($ac_try" in 15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15563 *) ac_try_echo=$ac_try;; 15564esac 15565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15566 (eval "$ac_compile") 2>conftest.er1 15567 ac_status=$? 15568 grep -v '^ *+' conftest.er1 >conftest.err 15569 rm -f conftest.er1 15570 cat conftest.err >&5 15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15572 (exit $ac_status); } && 15573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15574 { (case "(($ac_try" in 15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15576 *) ac_try_echo=$ac_try;; 15577esac 15578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15579 (eval "$ac_try") 2>&5 15580 ac_status=$? 15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15582 (exit $ac_status); }; } && 15583 { ac_try='test -s conftest.$ac_objext' 15584 { (case "(($ac_try" in 15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15586 *) ac_try_echo=$ac_try;; 15587esac 15588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15589 (eval "$ac_try") 2>&5 15590 ac_status=$? 15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15592 (exit $ac_status); }; }; then 15593 ac_header_compiler=yes 15594else 15595 echo "$as_me: failed program was:" >&5 15596sed 's/^/| /' conftest.$ac_ext >&5 15597 15598 ac_header_compiler=no 15599fi 15600 15601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15602{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15603echo "${ECHO_T}$ac_header_compiler" >&6; } 15604 15605# Is the header present? 15606{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15608cat >conftest.$ac_ext <<_ACEOF 15609/* confdefs.h. */ 15610_ACEOF 15611cat confdefs.h >>conftest.$ac_ext 15612cat >>conftest.$ac_ext <<_ACEOF 15613/* end confdefs.h. */ 15614#include <$ac_header> 15615_ACEOF 15616if { (ac_try="$ac_cpp conftest.$ac_ext" 15617case "(($ac_try" in 15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15619 *) ac_try_echo=$ac_try;; 15620esac 15621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15623 ac_status=$? 15624 grep -v '^ *+' conftest.er1 >conftest.err 15625 rm -f conftest.er1 15626 cat conftest.err >&5 15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15628 (exit $ac_status); } >/dev/null; then 15629 if test -s conftest.err; then 15630 ac_cpp_err=$ac_c_preproc_warn_flag 15631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15632 else 15633 ac_cpp_err= 15634 fi 15635else 15636 ac_cpp_err=yes 15637fi 15638if test -z "$ac_cpp_err"; then 15639 ac_header_preproc=yes 15640else 15641 echo "$as_me: failed program was:" >&5 15642sed 's/^/| /' conftest.$ac_ext >&5 15643 15644 ac_header_preproc=no 15645fi 15646 15647rm -f conftest.err conftest.$ac_ext 15648{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15649echo "${ECHO_T}$ac_header_preproc" >&6; } 15650 15651# So? What about this header? 15652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15653 yes:no: ) 15654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15658 ac_header_preproc=yes 15659 ;; 15660 no:yes:* ) 15661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15673 ( cat <<\_ASBOX 15674## ----------------------------------- ## 15675## Report this to llvmbugs@cs.uiuc.edu ## 15676## ----------------------------------- ## 15677_ASBOX 15678 ) | sed "s/^/$as_me: WARNING: /" >&2 15679 ;; 15680esac 15681{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15684 echo $ECHO_N "(cached) $ECHO_C" >&6 15685else 15686 eval "$as_ac_Header=\$ac_header_preproc" 15687fi 15688ac_res=`eval echo '${'$as_ac_Header'}'` 15689 { echo "$as_me:$LINENO: result: $ac_res" >&5 15690echo "${ECHO_T}$ac_res" >&6; } 15691 15692fi 15693if test `eval echo '${'$as_ac_Header'}'` = yes; then 15694 cat >>confdefs.h <<_ACEOF 15695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15696_ACEOF 15697 15698fi 15699 15700done 15701 15702 15703 15704 15705 15706for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h 15707do 15708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15710 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15713 echo $ECHO_N "(cached) $ECHO_C" >&6 15714fi 15715ac_res=`eval echo '${'$as_ac_Header'}'` 15716 { echo "$as_me:$LINENO: result: $ac_res" >&5 15717echo "${ECHO_T}$ac_res" >&6; } 15718else 15719 # Is the header compilable? 15720{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15721echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15722cat >conftest.$ac_ext <<_ACEOF 15723/* confdefs.h. */ 15724_ACEOF 15725cat confdefs.h >>conftest.$ac_ext 15726cat >>conftest.$ac_ext <<_ACEOF 15727/* end confdefs.h. */ 15728$ac_includes_default 15729#include <$ac_header> 15730_ACEOF 15731rm -f conftest.$ac_objext 15732if { (ac_try="$ac_compile" 15733case "(($ac_try" in 15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15735 *) ac_try_echo=$ac_try;; 15736esac 15737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15738 (eval "$ac_compile") 2>conftest.er1 15739 ac_status=$? 15740 grep -v '^ *+' conftest.er1 >conftest.err 15741 rm -f conftest.er1 15742 cat conftest.err >&5 15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15744 (exit $ac_status); } && 15745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15746 { (case "(($ac_try" in 15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15748 *) ac_try_echo=$ac_try;; 15749esac 15750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15751 (eval "$ac_try") 2>&5 15752 ac_status=$? 15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15754 (exit $ac_status); }; } && 15755 { ac_try='test -s conftest.$ac_objext' 15756 { (case "(($ac_try" in 15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15758 *) ac_try_echo=$ac_try;; 15759esac 15760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15761 (eval "$ac_try") 2>&5 15762 ac_status=$? 15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15764 (exit $ac_status); }; }; then 15765 ac_header_compiler=yes 15766else 15767 echo "$as_me: failed program was:" >&5 15768sed 's/^/| /' conftest.$ac_ext >&5 15769 15770 ac_header_compiler=no 15771fi 15772 15773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15774{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15775echo "${ECHO_T}$ac_header_compiler" >&6; } 15776 15777# Is the header present? 15778{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15780cat >conftest.$ac_ext <<_ACEOF 15781/* confdefs.h. */ 15782_ACEOF 15783cat confdefs.h >>conftest.$ac_ext 15784cat >>conftest.$ac_ext <<_ACEOF 15785/* end confdefs.h. */ 15786#include <$ac_header> 15787_ACEOF 15788if { (ac_try="$ac_cpp conftest.$ac_ext" 15789case "(($ac_try" in 15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15791 *) ac_try_echo=$ac_try;; 15792esac 15793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15795 ac_status=$? 15796 grep -v '^ *+' conftest.er1 >conftest.err 15797 rm -f conftest.er1 15798 cat conftest.err >&5 15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15800 (exit $ac_status); } >/dev/null; then 15801 if test -s conftest.err; then 15802 ac_cpp_err=$ac_c_preproc_warn_flag 15803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15804 else 15805 ac_cpp_err= 15806 fi 15807else 15808 ac_cpp_err=yes 15809fi 15810if test -z "$ac_cpp_err"; then 15811 ac_header_preproc=yes 15812else 15813 echo "$as_me: failed program was:" >&5 15814sed 's/^/| /' conftest.$ac_ext >&5 15815 15816 ac_header_preproc=no 15817fi 15818 15819rm -f conftest.err conftest.$ac_ext 15820{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15821echo "${ECHO_T}$ac_header_preproc" >&6; } 15822 15823# So? What about this header? 15824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15825 yes:no: ) 15826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15830 ac_header_preproc=yes 15831 ;; 15832 no:yes:* ) 15833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15836echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15840echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15845 ( cat <<\_ASBOX 15846## ----------------------------------- ## 15847## Report this to llvmbugs@cs.uiuc.edu ## 15848## ----------------------------------- ## 15849_ASBOX 15850 ) | sed "s/^/$as_me: WARNING: /" >&2 15851 ;; 15852esac 15853{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15856 echo $ECHO_N "(cached) $ECHO_C" >&6 15857else 15858 eval "$as_ac_Header=\$ac_header_preproc" 15859fi 15860ac_res=`eval echo '${'$as_ac_Header'}'` 15861 { echo "$as_me:$LINENO: result: $ac_res" >&5 15862echo "${ECHO_T}$ac_res" >&6; } 15863 15864fi 15865if test `eval echo '${'$as_ac_Header'}'` = yes; then 15866 cat >>confdefs.h <<_ACEOF 15867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15868_ACEOF 15869 15870fi 15871 15872done 15873 15874 15875 15876 15877 15878for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 15879do 15880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15882 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15885 echo $ECHO_N "(cached) $ECHO_C" >&6 15886fi 15887ac_res=`eval echo '${'$as_ac_Header'}'` 15888 { echo "$as_me:$LINENO: result: $ac_res" >&5 15889echo "${ECHO_T}$ac_res" >&6; } 15890else 15891 # Is the header compilable? 15892{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15894cat >conftest.$ac_ext <<_ACEOF 15895/* confdefs.h. */ 15896_ACEOF 15897cat confdefs.h >>conftest.$ac_ext 15898cat >>conftest.$ac_ext <<_ACEOF 15899/* end confdefs.h. */ 15900$ac_includes_default 15901#include <$ac_header> 15902_ACEOF 15903rm -f conftest.$ac_objext 15904if { (ac_try="$ac_compile" 15905case "(($ac_try" in 15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15907 *) ac_try_echo=$ac_try;; 15908esac 15909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15910 (eval "$ac_compile") 2>conftest.er1 15911 ac_status=$? 15912 grep -v '^ *+' conftest.er1 >conftest.err 15913 rm -f conftest.er1 15914 cat conftest.err >&5 15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15916 (exit $ac_status); } && 15917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15918 { (case "(($ac_try" in 15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15920 *) ac_try_echo=$ac_try;; 15921esac 15922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15923 (eval "$ac_try") 2>&5 15924 ac_status=$? 15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15926 (exit $ac_status); }; } && 15927 { ac_try='test -s conftest.$ac_objext' 15928 { (case "(($ac_try" in 15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15930 *) ac_try_echo=$ac_try;; 15931esac 15932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15933 (eval "$ac_try") 2>&5 15934 ac_status=$? 15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15936 (exit $ac_status); }; }; then 15937 ac_header_compiler=yes 15938else 15939 echo "$as_me: failed program was:" >&5 15940sed 's/^/| /' conftest.$ac_ext >&5 15941 15942 ac_header_compiler=no 15943fi 15944 15945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15946{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15947echo "${ECHO_T}$ac_header_compiler" >&6; } 15948 15949# Is the header present? 15950{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15952cat >conftest.$ac_ext <<_ACEOF 15953/* confdefs.h. */ 15954_ACEOF 15955cat confdefs.h >>conftest.$ac_ext 15956cat >>conftest.$ac_ext <<_ACEOF 15957/* end confdefs.h. */ 15958#include <$ac_header> 15959_ACEOF 15960if { (ac_try="$ac_cpp conftest.$ac_ext" 15961case "(($ac_try" in 15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15963 *) ac_try_echo=$ac_try;; 15964esac 15965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15967 ac_status=$? 15968 grep -v '^ *+' conftest.er1 >conftest.err 15969 rm -f conftest.er1 15970 cat conftest.err >&5 15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15972 (exit $ac_status); } >/dev/null; then 15973 if test -s conftest.err; then 15974 ac_cpp_err=$ac_c_preproc_warn_flag 15975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15976 else 15977 ac_cpp_err= 15978 fi 15979else 15980 ac_cpp_err=yes 15981fi 15982if test -z "$ac_cpp_err"; then 15983 ac_header_preproc=yes 15984else 15985 echo "$as_me: failed program was:" >&5 15986sed 's/^/| /' conftest.$ac_ext >&5 15987 15988 ac_header_preproc=no 15989fi 15990 15991rm -f conftest.err conftest.$ac_ext 15992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15993echo "${ECHO_T}$ac_header_preproc" >&6; } 15994 15995# So? What about this header? 15996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15997 yes:no: ) 15998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16002 ac_header_preproc=yes 16003 ;; 16004 no:yes:* ) 16005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16017 ( cat <<\_ASBOX 16018## ----------------------------------- ## 16019## Report this to llvmbugs@cs.uiuc.edu ## 16020## ----------------------------------- ## 16021_ASBOX 16022 ) | sed "s/^/$as_me: WARNING: /" >&2 16023 ;; 16024esac 16025{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16028 echo $ECHO_N "(cached) $ECHO_C" >&6 16029else 16030 eval "$as_ac_Header=\$ac_header_preproc" 16031fi 16032ac_res=`eval echo '${'$as_ac_Header'}'` 16033 { echo "$as_me:$LINENO: result: $ac_res" >&5 16034echo "${ECHO_T}$ac_res" >&6; } 16035 16036fi 16037if test `eval echo '${'$as_ac_Header'}'` = yes; then 16038 cat >>confdefs.h <<_ACEOF 16039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16040_ACEOF 16041 16042fi 16043 16044done 16045 16046if test "$ENABLE_THREADS" -eq 1 ; then 16047 16048for ac_header in pthread.h 16049do 16050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16052 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16055 echo $ECHO_N "(cached) $ECHO_C" >&6 16056fi 16057ac_res=`eval echo '${'$as_ac_Header'}'` 16058 { echo "$as_me:$LINENO: result: $ac_res" >&5 16059echo "${ECHO_T}$ac_res" >&6; } 16060else 16061 # Is the header compilable? 16062{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16064cat >conftest.$ac_ext <<_ACEOF 16065/* confdefs.h. */ 16066_ACEOF 16067cat confdefs.h >>conftest.$ac_ext 16068cat >>conftest.$ac_ext <<_ACEOF 16069/* end confdefs.h. */ 16070$ac_includes_default 16071#include <$ac_header> 16072_ACEOF 16073rm -f conftest.$ac_objext 16074if { (ac_try="$ac_compile" 16075case "(($ac_try" in 16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16077 *) ac_try_echo=$ac_try;; 16078esac 16079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16080 (eval "$ac_compile") 2>conftest.er1 16081 ac_status=$? 16082 grep -v '^ *+' conftest.er1 >conftest.err 16083 rm -f conftest.er1 16084 cat conftest.err >&5 16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16086 (exit $ac_status); } && 16087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16088 { (case "(($ac_try" in 16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16090 *) ac_try_echo=$ac_try;; 16091esac 16092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16093 (eval "$ac_try") 2>&5 16094 ac_status=$? 16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16096 (exit $ac_status); }; } && 16097 { ac_try='test -s conftest.$ac_objext' 16098 { (case "(($ac_try" in 16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16100 *) ac_try_echo=$ac_try;; 16101esac 16102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16103 (eval "$ac_try") 2>&5 16104 ac_status=$? 16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16106 (exit $ac_status); }; }; then 16107 ac_header_compiler=yes 16108else 16109 echo "$as_me: failed program was:" >&5 16110sed 's/^/| /' conftest.$ac_ext >&5 16111 16112 ac_header_compiler=no 16113fi 16114 16115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16116{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16117echo "${ECHO_T}$ac_header_compiler" >&6; } 16118 16119# Is the header present? 16120{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16121echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16122cat >conftest.$ac_ext <<_ACEOF 16123/* confdefs.h. */ 16124_ACEOF 16125cat confdefs.h >>conftest.$ac_ext 16126cat >>conftest.$ac_ext <<_ACEOF 16127/* end confdefs.h. */ 16128#include <$ac_header> 16129_ACEOF 16130if { (ac_try="$ac_cpp conftest.$ac_ext" 16131case "(($ac_try" in 16132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16133 *) ac_try_echo=$ac_try;; 16134esac 16135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16137 ac_status=$? 16138 grep -v '^ *+' conftest.er1 >conftest.err 16139 rm -f conftest.er1 16140 cat conftest.err >&5 16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16142 (exit $ac_status); } >/dev/null; then 16143 if test -s conftest.err; then 16144 ac_cpp_err=$ac_c_preproc_warn_flag 16145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16146 else 16147 ac_cpp_err= 16148 fi 16149else 16150 ac_cpp_err=yes 16151fi 16152if test -z "$ac_cpp_err"; then 16153 ac_header_preproc=yes 16154else 16155 echo "$as_me: failed program was:" >&5 16156sed 's/^/| /' conftest.$ac_ext >&5 16157 16158 ac_header_preproc=no 16159fi 16160 16161rm -f conftest.err conftest.$ac_ext 16162{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16163echo "${ECHO_T}$ac_header_preproc" >&6; } 16164 16165# So? What about this header? 16166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16167 yes:no: ) 16168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16169echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16171echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16172 ac_header_preproc=yes 16173 ;; 16174 no:yes:* ) 16175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16176echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16178echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16180echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16182echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16186echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16187 ( cat <<\_ASBOX 16188## ----------------------------------- ## 16189## Report this to llvmbugs@cs.uiuc.edu ## 16190## ----------------------------------- ## 16191_ASBOX 16192 ) | sed "s/^/$as_me: WARNING: /" >&2 16193 ;; 16194esac 16195{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16198 echo $ECHO_N "(cached) $ECHO_C" >&6 16199else 16200 eval "$as_ac_Header=\$ac_header_preproc" 16201fi 16202ac_res=`eval echo '${'$as_ac_Header'}'` 16203 { echo "$as_me:$LINENO: result: $ac_res" >&5 16204echo "${ECHO_T}$ac_res" >&6; } 16205 16206fi 16207if test `eval echo '${'$as_ac_Header'}'` = yes; then 16208 cat >>confdefs.h <<_ACEOF 16209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16210_ACEOF 16211 HAVE_PTHREAD=1 16212 16213else 16214 HAVE_PTHREAD=0 16215 16216fi 16217 16218done 16219 16220else 16221 HAVE_PTHREAD=0 16222 16223fi 16224 16225if test "$llvm_cv_enable_libffi" = "yes" ; then 16226 16227 16228for ac_header in ffi.h ffi/ffi.h 16229do 16230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 16231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16232 { echo "$as_me:$LINENO: checking for $ac_header" >&5 16233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16235 echo $ECHO_N "(cached) $ECHO_C" >&6 16236fi 16237ac_res=`eval echo '${'$as_ac_Header'}'` 16238 { echo "$as_me:$LINENO: result: $ac_res" >&5 16239echo "${ECHO_T}$ac_res" >&6; } 16240else 16241 # Is the header compilable? 16242{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 16243echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 16244cat >conftest.$ac_ext <<_ACEOF 16245/* confdefs.h. */ 16246_ACEOF 16247cat confdefs.h >>conftest.$ac_ext 16248cat >>conftest.$ac_ext <<_ACEOF 16249/* end confdefs.h. */ 16250$ac_includes_default 16251#include <$ac_header> 16252_ACEOF 16253rm -f conftest.$ac_objext 16254if { (ac_try="$ac_compile" 16255case "(($ac_try" in 16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16257 *) ac_try_echo=$ac_try;; 16258esac 16259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16260 (eval "$ac_compile") 2>conftest.er1 16261 ac_status=$? 16262 grep -v '^ *+' conftest.er1 >conftest.err 16263 rm -f conftest.er1 16264 cat conftest.err >&5 16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16266 (exit $ac_status); } && 16267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16268 { (case "(($ac_try" in 16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16270 *) ac_try_echo=$ac_try;; 16271esac 16272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16273 (eval "$ac_try") 2>&5 16274 ac_status=$? 16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16276 (exit $ac_status); }; } && 16277 { ac_try='test -s conftest.$ac_objext' 16278 { (case "(($ac_try" in 16279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16280 *) ac_try_echo=$ac_try;; 16281esac 16282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16283 (eval "$ac_try") 2>&5 16284 ac_status=$? 16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16286 (exit $ac_status); }; }; then 16287 ac_header_compiler=yes 16288else 16289 echo "$as_me: failed program was:" >&5 16290sed 's/^/| /' conftest.$ac_ext >&5 16291 16292 ac_header_compiler=no 16293fi 16294 16295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16296{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 16297echo "${ECHO_T}$ac_header_compiler" >&6; } 16298 16299# Is the header present? 16300{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 16301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 16302cat >conftest.$ac_ext <<_ACEOF 16303/* confdefs.h. */ 16304_ACEOF 16305cat confdefs.h >>conftest.$ac_ext 16306cat >>conftest.$ac_ext <<_ACEOF 16307/* end confdefs.h. */ 16308#include <$ac_header> 16309_ACEOF 16310if { (ac_try="$ac_cpp conftest.$ac_ext" 16311case "(($ac_try" in 16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16313 *) ac_try_echo=$ac_try;; 16314esac 16315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 16317 ac_status=$? 16318 grep -v '^ *+' conftest.er1 >conftest.err 16319 rm -f conftest.er1 16320 cat conftest.err >&5 16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16322 (exit $ac_status); } >/dev/null; then 16323 if test -s conftest.err; then 16324 ac_cpp_err=$ac_c_preproc_warn_flag 16325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 16326 else 16327 ac_cpp_err= 16328 fi 16329else 16330 ac_cpp_err=yes 16331fi 16332if test -z "$ac_cpp_err"; then 16333 ac_header_preproc=yes 16334else 16335 echo "$as_me: failed program was:" >&5 16336sed 's/^/| /' conftest.$ac_ext >&5 16337 16338 ac_header_preproc=no 16339fi 16340 16341rm -f conftest.err conftest.$ac_ext 16342{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 16343echo "${ECHO_T}$ac_header_preproc" >&6; } 16344 16345# So? What about this header? 16346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 16347 yes:no: ) 16348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 16349echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 16350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 16351echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 16352 ac_header_preproc=yes 16353 ;; 16354 no:yes:* ) 16355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 16356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 16357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 16358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 16359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 16360echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 16361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 16362echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 16363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 16364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 16365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 16366echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 16367 ( cat <<\_ASBOX 16368## ----------------------------------- ## 16369## Report this to llvmbugs@cs.uiuc.edu ## 16370## ----------------------------------- ## 16371_ASBOX 16372 ) | sed "s/^/$as_me: WARNING: /" >&2 16373 ;; 16374esac 16375{ echo "$as_me:$LINENO: checking for $ac_header" >&5 16376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 16377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 16378 echo $ECHO_N "(cached) $ECHO_C" >&6 16379else 16380 eval "$as_ac_Header=\$ac_header_preproc" 16381fi 16382ac_res=`eval echo '${'$as_ac_Header'}'` 16383 { echo "$as_me:$LINENO: result: $ac_res" >&5 16384echo "${ECHO_T}$ac_res" >&6; } 16385 16386fi 16387if test `eval echo '${'$as_ac_Header'}'` = yes; then 16388 cat >>confdefs.h <<_ACEOF 16389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16390_ACEOF 16391 16392fi 16393 16394done 16395 16396fi 16397 16398 16399 16400 16401 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 16402echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 16403if test "${ac_cv_huge_val_sanity+set}" = set; then 16404 echo $ECHO_N "(cached) $ECHO_C" >&6 16405else 16406 16407 ac_ext=cpp 16408ac_cpp='$CXXCPP $CPPFLAGS' 16409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16412 16413 CXXFLAGS=-pedantic 16414 if test "$cross_compiling" = yes; then 16415 ac_cv_huge_val_sanity=yes 16416else 16417 cat >conftest.$ac_ext <<_ACEOF 16418/* confdefs.h. */ 16419_ACEOF 16420cat confdefs.h >>conftest.$ac_ext 16421cat >>conftest.$ac_ext <<_ACEOF 16422/* end confdefs.h. */ 16423#include <math.h> 16424int 16425main () 16426{ 16427double x = HUGE_VAL; return x != x; 16428 ; 16429 return 0; 16430} 16431_ACEOF 16432rm -f conftest$ac_exeext 16433if { (ac_try="$ac_link" 16434case "(($ac_try" in 16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16436 *) ac_try_echo=$ac_try;; 16437esac 16438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16439 (eval "$ac_link") 2>&5 16440 ac_status=$? 16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16443 { (case "(($ac_try" in 16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16445 *) ac_try_echo=$ac_try;; 16446esac 16447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16448 (eval "$ac_try") 2>&5 16449 ac_status=$? 16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16451 (exit $ac_status); }; }; then 16452 ac_cv_huge_val_sanity=yes 16453else 16454 echo "$as_me: program exited with status $ac_status" >&5 16455echo "$as_me: failed program was:" >&5 16456sed 's/^/| /' conftest.$ac_ext >&5 16457 16458( exit $ac_status ) 16459ac_cv_huge_val_sanity=no 16460fi 16461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16462fi 16463 16464 16465 ac_ext=c 16466ac_cpp='$CPP $CPPFLAGS' 16467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16469ac_compiler_gnu=$ac_cv_c_compiler_gnu 16470 16471 16472fi 16473{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16474echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16475 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16476 16477 16478{ echo "$as_me:$LINENO: checking for pid_t" >&5 16479echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16480if test "${ac_cv_type_pid_t+set}" = set; then 16481 echo $ECHO_N "(cached) $ECHO_C" >&6 16482else 16483 cat >conftest.$ac_ext <<_ACEOF 16484/* confdefs.h. */ 16485_ACEOF 16486cat confdefs.h >>conftest.$ac_ext 16487cat >>conftest.$ac_ext <<_ACEOF 16488/* end confdefs.h. */ 16489$ac_includes_default 16490typedef pid_t ac__type_new_; 16491int 16492main () 16493{ 16494if ((ac__type_new_ *) 0) 16495 return 0; 16496if (sizeof (ac__type_new_)) 16497 return 0; 16498 ; 16499 return 0; 16500} 16501_ACEOF 16502rm -f conftest.$ac_objext 16503if { (ac_try="$ac_compile" 16504case "(($ac_try" in 16505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16506 *) ac_try_echo=$ac_try;; 16507esac 16508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16509 (eval "$ac_compile") 2>conftest.er1 16510 ac_status=$? 16511 grep -v '^ *+' conftest.er1 >conftest.err 16512 rm -f conftest.er1 16513 cat conftest.err >&5 16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16515 (exit $ac_status); } && 16516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16517 { (case "(($ac_try" in 16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16519 *) ac_try_echo=$ac_try;; 16520esac 16521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16522 (eval "$ac_try") 2>&5 16523 ac_status=$? 16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16525 (exit $ac_status); }; } && 16526 { ac_try='test -s conftest.$ac_objext' 16527 { (case "(($ac_try" in 16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16529 *) ac_try_echo=$ac_try;; 16530esac 16531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16532 (eval "$ac_try") 2>&5 16533 ac_status=$? 16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16535 (exit $ac_status); }; }; then 16536 ac_cv_type_pid_t=yes 16537else 16538 echo "$as_me: failed program was:" >&5 16539sed 's/^/| /' conftest.$ac_ext >&5 16540 16541 ac_cv_type_pid_t=no 16542fi 16543 16544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16545fi 16546{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16547echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16548if test $ac_cv_type_pid_t = yes; then 16549 : 16550else 16551 16552cat >>confdefs.h <<_ACEOF 16553#define pid_t int 16554_ACEOF 16555 16556fi 16557 16558{ echo "$as_me:$LINENO: checking for size_t" >&5 16559echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 16560if test "${ac_cv_type_size_t+set}" = set; then 16561 echo $ECHO_N "(cached) $ECHO_C" >&6 16562else 16563 cat >conftest.$ac_ext <<_ACEOF 16564/* confdefs.h. */ 16565_ACEOF 16566cat confdefs.h >>conftest.$ac_ext 16567cat >>conftest.$ac_ext <<_ACEOF 16568/* end confdefs.h. */ 16569$ac_includes_default 16570typedef size_t ac__type_new_; 16571int 16572main () 16573{ 16574if ((ac__type_new_ *) 0) 16575 return 0; 16576if (sizeof (ac__type_new_)) 16577 return 0; 16578 ; 16579 return 0; 16580} 16581_ACEOF 16582rm -f conftest.$ac_objext 16583if { (ac_try="$ac_compile" 16584case "(($ac_try" in 16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16586 *) ac_try_echo=$ac_try;; 16587esac 16588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16589 (eval "$ac_compile") 2>conftest.er1 16590 ac_status=$? 16591 grep -v '^ *+' conftest.er1 >conftest.err 16592 rm -f conftest.er1 16593 cat conftest.err >&5 16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16595 (exit $ac_status); } && 16596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16597 { (case "(($ac_try" in 16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16599 *) ac_try_echo=$ac_try;; 16600esac 16601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16602 (eval "$ac_try") 2>&5 16603 ac_status=$? 16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16605 (exit $ac_status); }; } && 16606 { ac_try='test -s conftest.$ac_objext' 16607 { (case "(($ac_try" in 16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16609 *) ac_try_echo=$ac_try;; 16610esac 16611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16612 (eval "$ac_try") 2>&5 16613 ac_status=$? 16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16615 (exit $ac_status); }; }; then 16616 ac_cv_type_size_t=yes 16617else 16618 echo "$as_me: failed program was:" >&5 16619sed 's/^/| /' conftest.$ac_ext >&5 16620 16621 ac_cv_type_size_t=no 16622fi 16623 16624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16625fi 16626{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16627echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 16628if test $ac_cv_type_size_t = yes; then 16629 : 16630else 16631 16632cat >>confdefs.h <<_ACEOF 16633#define size_t unsigned int 16634_ACEOF 16635 16636fi 16637 16638 16639cat >>confdefs.h <<_ACEOF 16640#define RETSIGTYPE void 16641_ACEOF 16642 16643{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 16644echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 16645if test "${ac_cv_struct_tm+set}" = set; then 16646 echo $ECHO_N "(cached) $ECHO_C" >&6 16647else 16648 cat >conftest.$ac_ext <<_ACEOF 16649/* confdefs.h. */ 16650_ACEOF 16651cat confdefs.h >>conftest.$ac_ext 16652cat >>conftest.$ac_ext <<_ACEOF 16653/* end confdefs.h. */ 16654#include <sys/types.h> 16655#include <time.h> 16656 16657int 16658main () 16659{ 16660struct tm *tp; tp->tm_sec; 16661 ; 16662 return 0; 16663} 16664_ACEOF 16665rm -f conftest.$ac_objext 16666if { (ac_try="$ac_compile" 16667case "(($ac_try" in 16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16669 *) ac_try_echo=$ac_try;; 16670esac 16671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16672 (eval "$ac_compile") 2>conftest.er1 16673 ac_status=$? 16674 grep -v '^ *+' conftest.er1 >conftest.err 16675 rm -f conftest.er1 16676 cat conftest.err >&5 16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16678 (exit $ac_status); } && 16679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16680 { (case "(($ac_try" in 16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16682 *) ac_try_echo=$ac_try;; 16683esac 16684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16685 (eval "$ac_try") 2>&5 16686 ac_status=$? 16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16688 (exit $ac_status); }; } && 16689 { ac_try='test -s conftest.$ac_objext' 16690 { (case "(($ac_try" in 16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16692 *) ac_try_echo=$ac_try;; 16693esac 16694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16695 (eval "$ac_try") 2>&5 16696 ac_status=$? 16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16698 (exit $ac_status); }; }; then 16699 ac_cv_struct_tm=time.h 16700else 16701 echo "$as_me: failed program was:" >&5 16702sed 's/^/| /' conftest.$ac_ext >&5 16703 16704 ac_cv_struct_tm=sys/time.h 16705fi 16706 16707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16708fi 16709{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 16710echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 16711if test $ac_cv_struct_tm = sys/time.h; then 16712 16713cat >>confdefs.h <<\_ACEOF 16714#define TM_IN_SYS_TIME 1 16715_ACEOF 16716 16717fi 16718 16719{ echo "$as_me:$LINENO: checking for int64_t" >&5 16720echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 16721if test "${ac_cv_type_int64_t+set}" = set; then 16722 echo $ECHO_N "(cached) $ECHO_C" >&6 16723else 16724 cat >conftest.$ac_ext <<_ACEOF 16725/* confdefs.h. */ 16726_ACEOF 16727cat confdefs.h >>conftest.$ac_ext 16728cat >>conftest.$ac_ext <<_ACEOF 16729/* end confdefs.h. */ 16730$ac_includes_default 16731typedef int64_t ac__type_new_; 16732int 16733main () 16734{ 16735if ((ac__type_new_ *) 0) 16736 return 0; 16737if (sizeof (ac__type_new_)) 16738 return 0; 16739 ; 16740 return 0; 16741} 16742_ACEOF 16743rm -f conftest.$ac_objext 16744if { (ac_try="$ac_compile" 16745case "(($ac_try" in 16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16747 *) ac_try_echo=$ac_try;; 16748esac 16749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16750 (eval "$ac_compile") 2>conftest.er1 16751 ac_status=$? 16752 grep -v '^ *+' conftest.er1 >conftest.err 16753 rm -f conftest.er1 16754 cat conftest.err >&5 16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16756 (exit $ac_status); } && 16757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16758 { (case "(($ac_try" in 16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16760 *) ac_try_echo=$ac_try;; 16761esac 16762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16763 (eval "$ac_try") 2>&5 16764 ac_status=$? 16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16766 (exit $ac_status); }; } && 16767 { ac_try='test -s conftest.$ac_objext' 16768 { (case "(($ac_try" in 16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16770 *) ac_try_echo=$ac_try;; 16771esac 16772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16773 (eval "$ac_try") 2>&5 16774 ac_status=$? 16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16776 (exit $ac_status); }; }; then 16777 ac_cv_type_int64_t=yes 16778else 16779 echo "$as_me: failed program was:" >&5 16780sed 's/^/| /' conftest.$ac_ext >&5 16781 16782 ac_cv_type_int64_t=no 16783fi 16784 16785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16786fi 16787{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 16788echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 16789if test $ac_cv_type_int64_t = yes; then 16790 16791cat >>confdefs.h <<_ACEOF 16792#define HAVE_INT64_T 1 16793_ACEOF 16794 16795 16796else 16797 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 16798echo "$as_me: error: Type int64_t required but not found" >&2;} 16799 { (exit 1); exit 1; }; } 16800fi 16801 16802{ echo "$as_me:$LINENO: checking for uint64_t" >&5 16803echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 16804if test "${ac_cv_type_uint64_t+set}" = set; then 16805 echo $ECHO_N "(cached) $ECHO_C" >&6 16806else 16807 cat >conftest.$ac_ext <<_ACEOF 16808/* confdefs.h. */ 16809_ACEOF 16810cat confdefs.h >>conftest.$ac_ext 16811cat >>conftest.$ac_ext <<_ACEOF 16812/* end confdefs.h. */ 16813$ac_includes_default 16814typedef uint64_t ac__type_new_; 16815int 16816main () 16817{ 16818if ((ac__type_new_ *) 0) 16819 return 0; 16820if (sizeof (ac__type_new_)) 16821 return 0; 16822 ; 16823 return 0; 16824} 16825_ACEOF 16826rm -f conftest.$ac_objext 16827if { (ac_try="$ac_compile" 16828case "(($ac_try" in 16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16830 *) ac_try_echo=$ac_try;; 16831esac 16832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16833 (eval "$ac_compile") 2>conftest.er1 16834 ac_status=$? 16835 grep -v '^ *+' conftest.er1 >conftest.err 16836 rm -f conftest.er1 16837 cat conftest.err >&5 16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16839 (exit $ac_status); } && 16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16841 { (case "(($ac_try" in 16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16843 *) ac_try_echo=$ac_try;; 16844esac 16845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16846 (eval "$ac_try") 2>&5 16847 ac_status=$? 16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16849 (exit $ac_status); }; } && 16850 { ac_try='test -s conftest.$ac_objext' 16851 { (case "(($ac_try" in 16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16853 *) ac_try_echo=$ac_try;; 16854esac 16855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16856 (eval "$ac_try") 2>&5 16857 ac_status=$? 16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16859 (exit $ac_status); }; }; then 16860 ac_cv_type_uint64_t=yes 16861else 16862 echo "$as_me: failed program was:" >&5 16863sed 's/^/| /' conftest.$ac_ext >&5 16864 16865 ac_cv_type_uint64_t=no 16866fi 16867 16868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16869fi 16870{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 16871echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 16872if test $ac_cv_type_uint64_t = yes; then 16873 16874cat >>confdefs.h <<_ACEOF 16875#define HAVE_UINT64_T 1 16876_ACEOF 16877 16878 16879else 16880 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 16881echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 16882if test "${ac_cv_type_u_int64_t+set}" = set; then 16883 echo $ECHO_N "(cached) $ECHO_C" >&6 16884else 16885 cat >conftest.$ac_ext <<_ACEOF 16886/* confdefs.h. */ 16887_ACEOF 16888cat confdefs.h >>conftest.$ac_ext 16889cat >>conftest.$ac_ext <<_ACEOF 16890/* end confdefs.h. */ 16891$ac_includes_default 16892typedef u_int64_t ac__type_new_; 16893int 16894main () 16895{ 16896if ((ac__type_new_ *) 0) 16897 return 0; 16898if (sizeof (ac__type_new_)) 16899 return 0; 16900 ; 16901 return 0; 16902} 16903_ACEOF 16904rm -f conftest.$ac_objext 16905if { (ac_try="$ac_compile" 16906case "(($ac_try" in 16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16908 *) ac_try_echo=$ac_try;; 16909esac 16910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16911 (eval "$ac_compile") 2>conftest.er1 16912 ac_status=$? 16913 grep -v '^ *+' conftest.er1 >conftest.err 16914 rm -f conftest.er1 16915 cat conftest.err >&5 16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16917 (exit $ac_status); } && 16918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16919 { (case "(($ac_try" in 16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16921 *) ac_try_echo=$ac_try;; 16922esac 16923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16924 (eval "$ac_try") 2>&5 16925 ac_status=$? 16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16927 (exit $ac_status); }; } && 16928 { ac_try='test -s conftest.$ac_objext' 16929 { (case "(($ac_try" in 16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16931 *) ac_try_echo=$ac_try;; 16932esac 16933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16934 (eval "$ac_try") 2>&5 16935 ac_status=$? 16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16937 (exit $ac_status); }; }; then 16938 ac_cv_type_u_int64_t=yes 16939else 16940 echo "$as_me: failed program was:" >&5 16941sed 's/^/| /' conftest.$ac_ext >&5 16942 16943 ac_cv_type_u_int64_t=no 16944fi 16945 16946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16947fi 16948{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 16949echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 16950if test $ac_cv_type_u_int64_t = yes; then 16951 16952cat >>confdefs.h <<_ACEOF 16953#define HAVE_U_INT64_T 1 16954_ACEOF 16955 16956 16957else 16958 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 16959echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 16960 { (exit 1); exit 1; }; } 16961fi 16962 16963fi 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 16975do 16976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16977{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16979if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16980 echo $ECHO_N "(cached) $ECHO_C" >&6 16981else 16982 cat >conftest.$ac_ext <<_ACEOF 16983/* confdefs.h. */ 16984_ACEOF 16985cat confdefs.h >>conftest.$ac_ext 16986cat >>conftest.$ac_ext <<_ACEOF 16987/* end confdefs.h. */ 16988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16989 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16990#define $ac_func innocuous_$ac_func 16991 16992/* System header to define __stub macros and hopefully few prototypes, 16993 which can conflict with char $ac_func (); below. 16994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16995 <limits.h> exists even on freestanding compilers. */ 16996 16997#ifdef __STDC__ 16998# include <limits.h> 16999#else 17000# include <assert.h> 17001#endif 17002 17003#undef $ac_func 17004 17005/* Override any GCC internal prototype to avoid an error. 17006 Use char because int might match the return type of a GCC 17007 builtin and then its argument prototype would still apply. */ 17008#ifdef __cplusplus 17009extern "C" 17010#endif 17011char $ac_func (); 17012/* The GNU C library defines this for functions which it implements 17013 to always fail with ENOSYS. Some functions are actually named 17014 something starting with __ and the normal name is an alias. */ 17015#if defined __stub_$ac_func || defined __stub___$ac_func 17016choke me 17017#endif 17018 17019int 17020main () 17021{ 17022return $ac_func (); 17023 ; 17024 return 0; 17025} 17026_ACEOF 17027rm -f conftest.$ac_objext conftest$ac_exeext 17028if { (ac_try="$ac_link" 17029case "(($ac_try" in 17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17031 *) ac_try_echo=$ac_try;; 17032esac 17033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17034 (eval "$ac_link") 2>conftest.er1 17035 ac_status=$? 17036 grep -v '^ *+' conftest.er1 >conftest.err 17037 rm -f conftest.er1 17038 cat conftest.err >&5 17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17040 (exit $ac_status); } && 17041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17042 { (case "(($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_try") 2>&5 17048 ac_status=$? 17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17050 (exit $ac_status); }; } && 17051 { ac_try='test -s conftest$ac_exeext' 17052 { (case "(($ac_try" in 17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17054 *) ac_try_echo=$ac_try;; 17055esac 17056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17057 (eval "$ac_try") 2>&5 17058 ac_status=$? 17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17060 (exit $ac_status); }; }; then 17061 eval "$as_ac_var=yes" 17062else 17063 echo "$as_me: failed program was:" >&5 17064sed 's/^/| /' conftest.$ac_ext >&5 17065 17066 eval "$as_ac_var=no" 17067fi 17068 17069rm -f core conftest.err conftest.$ac_objext \ 17070 conftest$ac_exeext conftest.$ac_ext 17071fi 17072ac_res=`eval echo '${'$as_ac_var'}'` 17073 { echo "$as_me:$LINENO: result: $ac_res" >&5 17074echo "${ECHO_T}$ac_res" >&6; } 17075if test `eval echo '${'$as_ac_var'}'` = yes; then 17076 cat >>confdefs.h <<_ACEOF 17077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17078_ACEOF 17079 17080fi 17081done 17082 17083 17084 17085 17086 17087for ac_func in powf fmodf strtof round 17088do 17089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17090{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17092if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17093 echo $ECHO_N "(cached) $ECHO_C" >&6 17094else 17095 cat >conftest.$ac_ext <<_ACEOF 17096/* confdefs.h. */ 17097_ACEOF 17098cat confdefs.h >>conftest.$ac_ext 17099cat >>conftest.$ac_ext <<_ACEOF 17100/* end confdefs.h. */ 17101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17102 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17103#define $ac_func innocuous_$ac_func 17104 17105/* System header to define __stub macros and hopefully few prototypes, 17106 which can conflict with char $ac_func (); below. 17107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17108 <limits.h> exists even on freestanding compilers. */ 17109 17110#ifdef __STDC__ 17111# include <limits.h> 17112#else 17113# include <assert.h> 17114#endif 17115 17116#undef $ac_func 17117 17118/* Override any GCC internal prototype to avoid an error. 17119 Use char because int might match the return type of a GCC 17120 builtin and then its argument prototype would still apply. */ 17121#ifdef __cplusplus 17122extern "C" 17123#endif 17124char $ac_func (); 17125/* The GNU C library defines this for functions which it implements 17126 to always fail with ENOSYS. Some functions are actually named 17127 something starting with __ and the normal name is an alias. */ 17128#if defined __stub_$ac_func || defined __stub___$ac_func 17129choke me 17130#endif 17131 17132int 17133main () 17134{ 17135return $ac_func (); 17136 ; 17137 return 0; 17138} 17139_ACEOF 17140rm -f conftest.$ac_objext conftest$ac_exeext 17141if { (ac_try="$ac_link" 17142case "(($ac_try" in 17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17144 *) ac_try_echo=$ac_try;; 17145esac 17146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17147 (eval "$ac_link") 2>conftest.er1 17148 ac_status=$? 17149 grep -v '^ *+' conftest.er1 >conftest.err 17150 rm -f conftest.er1 17151 cat conftest.err >&5 17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17153 (exit $ac_status); } && 17154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17155 { (case "(($ac_try" in 17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17157 *) ac_try_echo=$ac_try;; 17158esac 17159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17160 (eval "$ac_try") 2>&5 17161 ac_status=$? 17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17163 (exit $ac_status); }; } && 17164 { ac_try='test -s conftest$ac_exeext' 17165 { (case "(($ac_try" in 17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17167 *) ac_try_echo=$ac_try;; 17168esac 17169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17170 (eval "$ac_try") 2>&5 17171 ac_status=$? 17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17173 (exit $ac_status); }; }; then 17174 eval "$as_ac_var=yes" 17175else 17176 echo "$as_me: failed program was:" >&5 17177sed 's/^/| /' conftest.$ac_ext >&5 17178 17179 eval "$as_ac_var=no" 17180fi 17181 17182rm -f core conftest.err conftest.$ac_objext \ 17183 conftest$ac_exeext conftest.$ac_ext 17184fi 17185ac_res=`eval echo '${'$as_ac_var'}'` 17186 { echo "$as_me:$LINENO: result: $ac_res" >&5 17187echo "${ECHO_T}$ac_res" >&6; } 17188if test `eval echo '${'$as_ac_var'}'` = yes; then 17189 cat >>confdefs.h <<_ACEOF 17190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17191_ACEOF 17192 17193fi 17194done 17195 17196 17197 17198 17199 17200 17201for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 17202do 17203as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17204{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17205echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17206if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17207 echo $ECHO_N "(cached) $ECHO_C" >&6 17208else 17209 cat >conftest.$ac_ext <<_ACEOF 17210/* confdefs.h. */ 17211_ACEOF 17212cat confdefs.h >>conftest.$ac_ext 17213cat >>conftest.$ac_ext <<_ACEOF 17214/* end confdefs.h. */ 17215/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17216 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17217#define $ac_func innocuous_$ac_func 17218 17219/* System header to define __stub macros and hopefully few prototypes, 17220 which can conflict with char $ac_func (); below. 17221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17222 <limits.h> exists even on freestanding compilers. */ 17223 17224#ifdef __STDC__ 17225# include <limits.h> 17226#else 17227# include <assert.h> 17228#endif 17229 17230#undef $ac_func 17231 17232/* Override any GCC internal prototype to avoid an error. 17233 Use char because int might match the return type of a GCC 17234 builtin and then its argument prototype would still apply. */ 17235#ifdef __cplusplus 17236extern "C" 17237#endif 17238char $ac_func (); 17239/* The GNU C library defines this for functions which it implements 17240 to always fail with ENOSYS. Some functions are actually named 17241 something starting with __ and the normal name is an alias. */ 17242#if defined __stub_$ac_func || defined __stub___$ac_func 17243choke me 17244#endif 17245 17246int 17247main () 17248{ 17249return $ac_func (); 17250 ; 17251 return 0; 17252} 17253_ACEOF 17254rm -f conftest.$ac_objext conftest$ac_exeext 17255if { (ac_try="$ac_link" 17256case "(($ac_try" in 17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17258 *) ac_try_echo=$ac_try;; 17259esac 17260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17261 (eval "$ac_link") 2>conftest.er1 17262 ac_status=$? 17263 grep -v '^ *+' conftest.er1 >conftest.err 17264 rm -f conftest.er1 17265 cat conftest.err >&5 17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17267 (exit $ac_status); } && 17268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17269 { (case "(($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_try") 2>&5 17275 ac_status=$? 17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17277 (exit $ac_status); }; } && 17278 { ac_try='test -s conftest$ac_exeext' 17279 { (case "(($ac_try" in 17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17281 *) ac_try_echo=$ac_try;; 17282esac 17283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17284 (eval "$ac_try") 2>&5 17285 ac_status=$? 17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17287 (exit $ac_status); }; }; then 17288 eval "$as_ac_var=yes" 17289else 17290 echo "$as_me: failed program was:" >&5 17291sed 's/^/| /' conftest.$ac_ext >&5 17292 17293 eval "$as_ac_var=no" 17294fi 17295 17296rm -f core conftest.err conftest.$ac_objext \ 17297 conftest$ac_exeext conftest.$ac_ext 17298fi 17299ac_res=`eval echo '${'$as_ac_var'}'` 17300 { echo "$as_me:$LINENO: result: $ac_res" >&5 17301echo "${ECHO_T}$ac_res" >&6; } 17302if test `eval echo '${'$as_ac_var'}'` = yes; then 17303 cat >>confdefs.h <<_ACEOF 17304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17305_ACEOF 17306 17307fi 17308done 17309 17310 17311 17312 17313for ac_func in isatty mkdtemp mkstemp 17314do 17315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17316{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17318if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17319 echo $ECHO_N "(cached) $ECHO_C" >&6 17320else 17321 cat >conftest.$ac_ext <<_ACEOF 17322/* confdefs.h. */ 17323_ACEOF 17324cat confdefs.h >>conftest.$ac_ext 17325cat >>conftest.$ac_ext <<_ACEOF 17326/* end confdefs.h. */ 17327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17328 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17329#define $ac_func innocuous_$ac_func 17330 17331/* System header to define __stub macros and hopefully few prototypes, 17332 which can conflict with char $ac_func (); below. 17333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17334 <limits.h> exists even on freestanding compilers. */ 17335 17336#ifdef __STDC__ 17337# include <limits.h> 17338#else 17339# include <assert.h> 17340#endif 17341 17342#undef $ac_func 17343 17344/* Override any GCC internal prototype to avoid an error. 17345 Use char because int might match the return type of a GCC 17346 builtin and then its argument prototype would still apply. */ 17347#ifdef __cplusplus 17348extern "C" 17349#endif 17350char $ac_func (); 17351/* The GNU C library defines this for functions which it implements 17352 to always fail with ENOSYS. Some functions are actually named 17353 something starting with __ and the normal name is an alias. */ 17354#if defined __stub_$ac_func || defined __stub___$ac_func 17355choke me 17356#endif 17357 17358int 17359main () 17360{ 17361return $ac_func (); 17362 ; 17363 return 0; 17364} 17365_ACEOF 17366rm -f conftest.$ac_objext conftest$ac_exeext 17367if { (ac_try="$ac_link" 17368case "(($ac_try" in 17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17370 *) ac_try_echo=$ac_try;; 17371esac 17372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17373 (eval "$ac_link") 2>conftest.er1 17374 ac_status=$? 17375 grep -v '^ *+' conftest.er1 >conftest.err 17376 rm -f conftest.er1 17377 cat conftest.err >&5 17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17379 (exit $ac_status); } && 17380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17381 { (case "(($ac_try" in 17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17383 *) ac_try_echo=$ac_try;; 17384esac 17385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17386 (eval "$ac_try") 2>&5 17387 ac_status=$? 17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17389 (exit $ac_status); }; } && 17390 { ac_try='test -s conftest$ac_exeext' 17391 { (case "(($ac_try" in 17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17393 *) ac_try_echo=$ac_try;; 17394esac 17395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17396 (eval "$ac_try") 2>&5 17397 ac_status=$? 17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17399 (exit $ac_status); }; }; then 17400 eval "$as_ac_var=yes" 17401else 17402 echo "$as_me: failed program was:" >&5 17403sed 's/^/| /' conftest.$ac_ext >&5 17404 17405 eval "$as_ac_var=no" 17406fi 17407 17408rm -f core conftest.err conftest.$ac_objext \ 17409 conftest$ac_exeext conftest.$ac_ext 17410fi 17411ac_res=`eval echo '${'$as_ac_var'}'` 17412 { echo "$as_me:$LINENO: result: $ac_res" >&5 17413echo "${ECHO_T}$ac_res" >&6; } 17414if test `eval echo '${'$as_ac_var'}'` = yes; then 17415 cat >>confdefs.h <<_ACEOF 17416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17417_ACEOF 17418 17419fi 17420done 17421 17422 17423 17424 17425 17426 17427for ac_func in mktemp realpath sbrk setrlimit strdup 17428do 17429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17430{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17432if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17433 echo $ECHO_N "(cached) $ECHO_C" >&6 17434else 17435 cat >conftest.$ac_ext <<_ACEOF 17436/* confdefs.h. */ 17437_ACEOF 17438cat confdefs.h >>conftest.$ac_ext 17439cat >>conftest.$ac_ext <<_ACEOF 17440/* end confdefs.h. */ 17441/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17442 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17443#define $ac_func innocuous_$ac_func 17444 17445/* System header to define __stub macros and hopefully few prototypes, 17446 which can conflict with char $ac_func (); below. 17447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17448 <limits.h> exists even on freestanding compilers. */ 17449 17450#ifdef __STDC__ 17451# include <limits.h> 17452#else 17453# include <assert.h> 17454#endif 17455 17456#undef $ac_func 17457 17458/* Override any GCC internal prototype to avoid an error. 17459 Use char because int might match the return type of a GCC 17460 builtin and then its argument prototype would still apply. */ 17461#ifdef __cplusplus 17462extern "C" 17463#endif 17464char $ac_func (); 17465/* The GNU C library defines this for functions which it implements 17466 to always fail with ENOSYS. Some functions are actually named 17467 something starting with __ and the normal name is an alias. */ 17468#if defined __stub_$ac_func || defined __stub___$ac_func 17469choke me 17470#endif 17471 17472int 17473main () 17474{ 17475return $ac_func (); 17476 ; 17477 return 0; 17478} 17479_ACEOF 17480rm -f conftest.$ac_objext conftest$ac_exeext 17481if { (ac_try="$ac_link" 17482case "(($ac_try" in 17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17484 *) ac_try_echo=$ac_try;; 17485esac 17486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17487 (eval "$ac_link") 2>conftest.er1 17488 ac_status=$? 17489 grep -v '^ *+' conftest.er1 >conftest.err 17490 rm -f conftest.er1 17491 cat conftest.err >&5 17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17493 (exit $ac_status); } && 17494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17495 { (case "(($ac_try" in 17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17497 *) ac_try_echo=$ac_try;; 17498esac 17499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17500 (eval "$ac_try") 2>&5 17501 ac_status=$? 17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17503 (exit $ac_status); }; } && 17504 { ac_try='test -s conftest$ac_exeext' 17505 { (case "(($ac_try" in 17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17507 *) ac_try_echo=$ac_try;; 17508esac 17509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17510 (eval "$ac_try") 2>&5 17511 ac_status=$? 17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17513 (exit $ac_status); }; }; then 17514 eval "$as_ac_var=yes" 17515else 17516 echo "$as_me: failed program was:" >&5 17517sed 's/^/| /' conftest.$ac_ext >&5 17518 17519 eval "$as_ac_var=no" 17520fi 17521 17522rm -f core conftest.err conftest.$ac_objext \ 17523 conftest$ac_exeext conftest.$ac_ext 17524fi 17525ac_res=`eval echo '${'$as_ac_var'}'` 17526 { echo "$as_me:$LINENO: result: $ac_res" >&5 17527echo "${ECHO_T}$ac_res" >&6; } 17528if test `eval echo '${'$as_ac_var'}'` = yes; then 17529 cat >>confdefs.h <<_ACEOF 17530#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17531_ACEOF 17532 17533fi 17534done 17535 17536 17537 17538 17539 17540for ac_func in strerror strerror_r strerror_s setenv 17541do 17542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17543{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17545if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17546 echo $ECHO_N "(cached) $ECHO_C" >&6 17547else 17548 cat >conftest.$ac_ext <<_ACEOF 17549/* confdefs.h. */ 17550_ACEOF 17551cat confdefs.h >>conftest.$ac_ext 17552cat >>conftest.$ac_ext <<_ACEOF 17553/* end confdefs.h. */ 17554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17555 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17556#define $ac_func innocuous_$ac_func 17557 17558/* System header to define __stub macros and hopefully few prototypes, 17559 which can conflict with char $ac_func (); below. 17560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17561 <limits.h> exists even on freestanding compilers. */ 17562 17563#ifdef __STDC__ 17564# include <limits.h> 17565#else 17566# include <assert.h> 17567#endif 17568 17569#undef $ac_func 17570 17571/* Override any GCC internal prototype to avoid an error. 17572 Use char because int might match the return type of a GCC 17573 builtin and then its argument prototype would still apply. */ 17574#ifdef __cplusplus 17575extern "C" 17576#endif 17577char $ac_func (); 17578/* The GNU C library defines this for functions which it implements 17579 to always fail with ENOSYS. Some functions are actually named 17580 something starting with __ and the normal name is an alias. */ 17581#if defined __stub_$ac_func || defined __stub___$ac_func 17582choke me 17583#endif 17584 17585int 17586main () 17587{ 17588return $ac_func (); 17589 ; 17590 return 0; 17591} 17592_ACEOF 17593rm -f conftest.$ac_objext conftest$ac_exeext 17594if { (ac_try="$ac_link" 17595case "(($ac_try" in 17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17597 *) ac_try_echo=$ac_try;; 17598esac 17599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17600 (eval "$ac_link") 2>conftest.er1 17601 ac_status=$? 17602 grep -v '^ *+' conftest.er1 >conftest.err 17603 rm -f conftest.er1 17604 cat conftest.err >&5 17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17606 (exit $ac_status); } && 17607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17608 { (case "(($ac_try" in 17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17610 *) ac_try_echo=$ac_try;; 17611esac 17612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17613 (eval "$ac_try") 2>&5 17614 ac_status=$? 17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17616 (exit $ac_status); }; } && 17617 { ac_try='test -s conftest$ac_exeext' 17618 { (case "(($ac_try" in 17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17620 *) ac_try_echo=$ac_try;; 17621esac 17622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17623 (eval "$ac_try") 2>&5 17624 ac_status=$? 17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17626 (exit $ac_status); }; }; then 17627 eval "$as_ac_var=yes" 17628else 17629 echo "$as_me: failed program was:" >&5 17630sed 's/^/| /' conftest.$ac_ext >&5 17631 17632 eval "$as_ac_var=no" 17633fi 17634 17635rm -f core conftest.err conftest.$ac_objext \ 17636 conftest$ac_exeext conftest.$ac_ext 17637fi 17638ac_res=`eval echo '${'$as_ac_var'}'` 17639 { echo "$as_me:$LINENO: result: $ac_res" >&5 17640echo "${ECHO_T}$ac_res" >&6; } 17641if test `eval echo '${'$as_ac_var'}'` = yes; then 17642 cat >>confdefs.h <<_ACEOF 17643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17644_ACEOF 17645 17646fi 17647done 17648 17649 17650 17651 17652 17653for ac_func in strtoll strtoq sysconf malloc_zone_statistics 17654do 17655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17656{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17658if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17659 echo $ECHO_N "(cached) $ECHO_C" >&6 17660else 17661 cat >conftest.$ac_ext <<_ACEOF 17662/* confdefs.h. */ 17663_ACEOF 17664cat confdefs.h >>conftest.$ac_ext 17665cat >>conftest.$ac_ext <<_ACEOF 17666/* end confdefs.h. */ 17667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17668 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17669#define $ac_func innocuous_$ac_func 17670 17671/* System header to define __stub macros and hopefully few prototypes, 17672 which can conflict with char $ac_func (); below. 17673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17674 <limits.h> exists even on freestanding compilers. */ 17675 17676#ifdef __STDC__ 17677# include <limits.h> 17678#else 17679# include <assert.h> 17680#endif 17681 17682#undef $ac_func 17683 17684/* Override any GCC internal prototype to avoid an error. 17685 Use char because int might match the return type of a GCC 17686 builtin and then its argument prototype would still apply. */ 17687#ifdef __cplusplus 17688extern "C" 17689#endif 17690char $ac_func (); 17691/* The GNU C library defines this for functions which it implements 17692 to always fail with ENOSYS. Some functions are actually named 17693 something starting with __ and the normal name is an alias. */ 17694#if defined __stub_$ac_func || defined __stub___$ac_func 17695choke me 17696#endif 17697 17698int 17699main () 17700{ 17701return $ac_func (); 17702 ; 17703 return 0; 17704} 17705_ACEOF 17706rm -f conftest.$ac_objext conftest$ac_exeext 17707if { (ac_try="$ac_link" 17708case "(($ac_try" in 17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17710 *) ac_try_echo=$ac_try;; 17711esac 17712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17713 (eval "$ac_link") 2>conftest.er1 17714 ac_status=$? 17715 grep -v '^ *+' conftest.er1 >conftest.err 17716 rm -f conftest.er1 17717 cat conftest.err >&5 17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17719 (exit $ac_status); } && 17720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17721 { (case "(($ac_try" in 17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17723 *) ac_try_echo=$ac_try;; 17724esac 17725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17726 (eval "$ac_try") 2>&5 17727 ac_status=$? 17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17729 (exit $ac_status); }; } && 17730 { ac_try='test -s conftest$ac_exeext' 17731 { (case "(($ac_try" in 17732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17733 *) ac_try_echo=$ac_try;; 17734esac 17735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17736 (eval "$ac_try") 2>&5 17737 ac_status=$? 17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17739 (exit $ac_status); }; }; then 17740 eval "$as_ac_var=yes" 17741else 17742 echo "$as_me: failed program was:" >&5 17743sed 's/^/| /' conftest.$ac_ext >&5 17744 17745 eval "$as_ac_var=no" 17746fi 17747 17748rm -f core conftest.err conftest.$ac_objext \ 17749 conftest$ac_exeext conftest.$ac_ext 17750fi 17751ac_res=`eval echo '${'$as_ac_var'}'` 17752 { echo "$as_me:$LINENO: result: $ac_res" >&5 17753echo "${ECHO_T}$ac_res" >&6; } 17754if test `eval echo '${'$as_ac_var'}'` = yes; then 17755 cat >>confdefs.h <<_ACEOF 17756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17757_ACEOF 17758 17759fi 17760done 17761 17762 17763 17764 17765 17766for ac_func in setjmp longjmp sigsetjmp siglongjmp 17767do 17768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17769{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17771if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17772 echo $ECHO_N "(cached) $ECHO_C" >&6 17773else 17774 cat >conftest.$ac_ext <<_ACEOF 17775/* confdefs.h. */ 17776_ACEOF 17777cat confdefs.h >>conftest.$ac_ext 17778cat >>conftest.$ac_ext <<_ACEOF 17779/* end confdefs.h. */ 17780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17781 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17782#define $ac_func innocuous_$ac_func 17783 17784/* System header to define __stub macros and hopefully few prototypes, 17785 which can conflict with char $ac_func (); below. 17786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17787 <limits.h> exists even on freestanding compilers. */ 17788 17789#ifdef __STDC__ 17790# include <limits.h> 17791#else 17792# include <assert.h> 17793#endif 17794 17795#undef $ac_func 17796 17797/* Override any GCC internal prototype to avoid an error. 17798 Use char because int might match the return type of a GCC 17799 builtin and then its argument prototype would still apply. */ 17800#ifdef __cplusplus 17801extern "C" 17802#endif 17803char $ac_func (); 17804/* The GNU C library defines this for functions which it implements 17805 to always fail with ENOSYS. Some functions are actually named 17806 something starting with __ and the normal name is an alias. */ 17807#if defined __stub_$ac_func || defined __stub___$ac_func 17808choke me 17809#endif 17810 17811int 17812main () 17813{ 17814return $ac_func (); 17815 ; 17816 return 0; 17817} 17818_ACEOF 17819rm -f conftest.$ac_objext conftest$ac_exeext 17820if { (ac_try="$ac_link" 17821case "(($ac_try" in 17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17823 *) ac_try_echo=$ac_try;; 17824esac 17825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17826 (eval "$ac_link") 2>conftest.er1 17827 ac_status=$? 17828 grep -v '^ *+' conftest.er1 >conftest.err 17829 rm -f conftest.er1 17830 cat conftest.err >&5 17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17832 (exit $ac_status); } && 17833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17834 { (case "(($ac_try" in 17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17836 *) ac_try_echo=$ac_try;; 17837esac 17838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17839 (eval "$ac_try") 2>&5 17840 ac_status=$? 17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17842 (exit $ac_status); }; } && 17843 { ac_try='test -s conftest$ac_exeext' 17844 { (case "(($ac_try" in 17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17846 *) ac_try_echo=$ac_try;; 17847esac 17848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17849 (eval "$ac_try") 2>&5 17850 ac_status=$? 17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17852 (exit $ac_status); }; }; then 17853 eval "$as_ac_var=yes" 17854else 17855 echo "$as_me: failed program was:" >&5 17856sed 's/^/| /' conftest.$ac_ext >&5 17857 17858 eval "$as_ac_var=no" 17859fi 17860 17861rm -f core conftest.err conftest.$ac_objext \ 17862 conftest$ac_exeext conftest.$ac_ext 17863fi 17864ac_res=`eval echo '${'$as_ac_var'}'` 17865 { echo "$as_me:$LINENO: result: $ac_res" >&5 17866echo "${ECHO_T}$ac_res" >&6; } 17867if test `eval echo '${'$as_ac_var'}'` = yes; then 17868 cat >>confdefs.h <<_ACEOF 17869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17870_ACEOF 17871 17872fi 17873done 17874 17875{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 17876echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 17877if test "${llvm_cv_c_printf_a+set}" = set; then 17878 echo $ECHO_N "(cached) $ECHO_C" >&6 17879else 17880 ac_ext=c 17881ac_cpp='$CPP $CPPFLAGS' 17882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17884ac_compiler_gnu=$ac_cv_c_compiler_gnu 17885 17886 if test "$cross_compiling" = yes; then 17887 llvmac_cv_c_printf_a=no 17888else 17889 cat >conftest.$ac_ext <<_ACEOF 17890 17891 /* confdefs.h. */ 17892_ACEOF 17893cat confdefs.h >>conftest.$ac_ext 17894cat >>conftest.$ac_ext <<_ACEOF 17895/* end confdefs.h. */ 17896 17897#include <stdio.h> 17898#include <stdlib.h> 17899 17900int 17901main () 17902{ 17903 17904volatile double A, B; 17905char Buffer[100]; 17906A = 1; 17907A /= 10.0; 17908sprintf(Buffer, "%a", A); 17909B = atof(Buffer); 17910if (A != B) 17911 return (1); 17912if (A != 0x1.999999999999ap-4) 17913 return (1); 17914return (0); 17915 ; 17916 return 0; 17917} 17918_ACEOF 17919rm -f conftest$ac_exeext 17920if { (ac_try="$ac_link" 17921case "(($ac_try" in 17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17923 *) ac_try_echo=$ac_try;; 17924esac 17925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17926 (eval "$ac_link") 2>&5 17927 ac_status=$? 17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17930 { (case "(($ac_try" in 17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17932 *) ac_try_echo=$ac_try;; 17933esac 17934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17935 (eval "$ac_try") 2>&5 17936 ac_status=$? 17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17938 (exit $ac_status); }; }; then 17939 llvm_cv_c_printf_a=yes 17940else 17941 echo "$as_me: program exited with status $ac_status" >&5 17942echo "$as_me: failed program was:" >&5 17943sed 's/^/| /' conftest.$ac_ext >&5 17944 17945( exit $ac_status ) 17946llvmac_cv_c_printf_a=no 17947fi 17948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17949fi 17950 17951 17952 ac_ext=c 17953ac_cpp='$CPP $CPPFLAGS' 17954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17956ac_compiler_gnu=$ac_cv_c_compiler_gnu 17957 17958fi 17959{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 17960echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 17961 if test "$llvm_cv_c_printf_a" = "yes"; then 17962 17963cat >>confdefs.h <<\_ACEOF 17964#define HAVE_PRINTF_A 1 17965_ACEOF 17966 17967 fi 17968 17969 17970{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 17971echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 17972if test "${ac_cv_func_rand48+set}" = set; then 17973 echo $ECHO_N "(cached) $ECHO_C" >&6 17974else 17975 ac_ext=cpp 17976ac_cpp='$CXXCPP $CPPFLAGS' 17977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17980 17981 cat >conftest.$ac_ext <<_ACEOF 17982/* confdefs.h. */ 17983_ACEOF 17984cat confdefs.h >>conftest.$ac_ext 17985cat >>conftest.$ac_ext <<_ACEOF 17986/* end confdefs.h. */ 17987#include <stdlib.h> 17988int 17989main () 17990{ 17991srand48(0);lrand48();drand48(); 17992 ; 17993 return 0; 17994} 17995_ACEOF 17996rm -f conftest.$ac_objext 17997if { (ac_try="$ac_compile" 17998case "(($ac_try" in 17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18000 *) ac_try_echo=$ac_try;; 18001esac 18002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18003 (eval "$ac_compile") 2>conftest.er1 18004 ac_status=$? 18005 grep -v '^ *+' conftest.er1 >conftest.err 18006 rm -f conftest.er1 18007 cat conftest.err >&5 18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18009 (exit $ac_status); } && 18010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 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); }; } && 18020 { ac_try='test -s conftest.$ac_objext' 18021 { (case "(($ac_try" in 18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18023 *) ac_try_echo=$ac_try;; 18024esac 18025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18026 (eval "$ac_try") 2>&5 18027 ac_status=$? 18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18029 (exit $ac_status); }; }; then 18030 ac_cv_func_rand48=yes 18031else 18032 echo "$as_me: failed program was:" >&5 18033sed 's/^/| /' conftest.$ac_ext >&5 18034 18035 ac_cv_func_rand48=no 18036fi 18037 18038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18039 ac_ext=c 18040ac_cpp='$CPP $CPPFLAGS' 18041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18043ac_compiler_gnu=$ac_cv_c_compiler_gnu 18044 18045fi 18046{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 18047echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 18048 18049if test "$ac_cv_func_rand48" = "yes" ; then 18050 18051cat >>confdefs.h <<\_ACEOF 18052#define HAVE_RAND48 1 18053_ACEOF 18054 18055fi 18056 18057 18058 18059{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 18060echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 18061if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 18062 echo $ECHO_N "(cached) $ECHO_C" >&6 18063else 18064 ac_ext=cpp 18065ac_cpp='$CXXCPP $CPPFLAGS' 18066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18069 18070 cat >conftest.$ac_ext <<_ACEOF 18071/* confdefs.h. */ 18072_ACEOF 18073cat confdefs.h >>conftest.$ac_ext 18074cat >>conftest.$ac_ext <<_ACEOF 18075/* end confdefs.h. */ 18076#include <math.h> 18077int 18078main () 18079{ 18080float f; isnan(f); 18081 ; 18082 return 0; 18083} 18084_ACEOF 18085rm -f conftest.$ac_objext 18086if { (ac_try="$ac_compile" 18087case "(($ac_try" in 18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18089 *) ac_try_echo=$ac_try;; 18090esac 18091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18092 (eval "$ac_compile") 2>conftest.er1 18093 ac_status=$? 18094 grep -v '^ *+' conftest.er1 >conftest.err 18095 rm -f conftest.er1 18096 cat conftest.err >&5 18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18098 (exit $ac_status); } && 18099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18100 { (case "(($ac_try" in 18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18102 *) ac_try_echo=$ac_try;; 18103esac 18104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18105 (eval "$ac_try") 2>&5 18106 ac_status=$? 18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18108 (exit $ac_status); }; } && 18109 { ac_try='test -s conftest.$ac_objext' 18110 { (case "(($ac_try" in 18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18112 *) ac_try_echo=$ac_try;; 18113esac 18114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18115 (eval "$ac_try") 2>&5 18116 ac_status=$? 18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18118 (exit $ac_status); }; }; then 18119 ac_cv_func_isnan_in_math_h=yes 18120else 18121 echo "$as_me: failed program was:" >&5 18122sed 's/^/| /' conftest.$ac_ext >&5 18123 18124 ac_cv_func_isnan_in_math_h=no 18125fi 18126 18127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18128 ac_ext=c 18129ac_cpp='$CPP $CPPFLAGS' 18130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18132ac_compiler_gnu=$ac_cv_c_compiler_gnu 18133 18134fi 18135{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 18136echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 18137 18138 18139if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 18140 18141cat >>confdefs.h <<\_ACEOF 18142#define HAVE_ISNAN_IN_MATH_H 1 18143_ACEOF 18144 18145fi 18146 18147{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 18148echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 18149if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 18150 echo $ECHO_N "(cached) $ECHO_C" >&6 18151else 18152 ac_ext=cpp 18153ac_cpp='$CXXCPP $CPPFLAGS' 18154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18157 18158 cat >conftest.$ac_ext <<_ACEOF 18159/* confdefs.h. */ 18160_ACEOF 18161cat confdefs.h >>conftest.$ac_ext 18162cat >>conftest.$ac_ext <<_ACEOF 18163/* end confdefs.h. */ 18164#include <cmath> 18165int 18166main () 18167{ 18168float f; isnan(f); 18169 ; 18170 return 0; 18171} 18172_ACEOF 18173rm -f conftest.$ac_objext 18174if { (ac_try="$ac_compile" 18175case "(($ac_try" in 18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18177 *) ac_try_echo=$ac_try;; 18178esac 18179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18180 (eval "$ac_compile") 2>conftest.er1 18181 ac_status=$? 18182 grep -v '^ *+' conftest.er1 >conftest.err 18183 rm -f conftest.er1 18184 cat conftest.err >&5 18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18186 (exit $ac_status); } && 18187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18188 { (case "(($ac_try" in 18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18190 *) ac_try_echo=$ac_try;; 18191esac 18192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18193 (eval "$ac_try") 2>&5 18194 ac_status=$? 18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18196 (exit $ac_status); }; } && 18197 { ac_try='test -s conftest.$ac_objext' 18198 { (case "(($ac_try" in 18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18200 *) ac_try_echo=$ac_try;; 18201esac 18202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18203 (eval "$ac_try") 2>&5 18204 ac_status=$? 18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18206 (exit $ac_status); }; }; then 18207 ac_cv_func_isnan_in_cmath=yes 18208else 18209 echo "$as_me: failed program was:" >&5 18210sed 's/^/| /' conftest.$ac_ext >&5 18211 18212 ac_cv_func_isnan_in_cmath=no 18213fi 18214 18215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18216 ac_ext=c 18217ac_cpp='$CPP $CPPFLAGS' 18218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18220ac_compiler_gnu=$ac_cv_c_compiler_gnu 18221 18222fi 18223{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 18224echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 18225 18226if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 18227 18228cat >>confdefs.h <<\_ACEOF 18229#define HAVE_ISNAN_IN_CMATH 1 18230_ACEOF 18231 18232fi 18233 18234{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 18235echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 18236if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 18237 echo $ECHO_N "(cached) $ECHO_C" >&6 18238else 18239 ac_ext=cpp 18240ac_cpp='$CXXCPP $CPPFLAGS' 18241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18244 18245 cat >conftest.$ac_ext <<_ACEOF 18246/* confdefs.h. */ 18247_ACEOF 18248cat confdefs.h >>conftest.$ac_ext 18249cat >>conftest.$ac_ext <<_ACEOF 18250/* end confdefs.h. */ 18251#include <cmath> 18252int 18253main () 18254{ 18255float f; std::isnan(f); 18256 ; 18257 return 0; 18258} 18259_ACEOF 18260rm -f conftest.$ac_objext 18261if { (ac_try="$ac_compile" 18262case "(($ac_try" in 18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18264 *) ac_try_echo=$ac_try;; 18265esac 18266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18267 (eval "$ac_compile") 2>conftest.er1 18268 ac_status=$? 18269 grep -v '^ *+' conftest.er1 >conftest.err 18270 rm -f conftest.er1 18271 cat conftest.err >&5 18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18273 (exit $ac_status); } && 18274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18275 { (case "(($ac_try" in 18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18277 *) ac_try_echo=$ac_try;; 18278esac 18279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18280 (eval "$ac_try") 2>&5 18281 ac_status=$? 18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18283 (exit $ac_status); }; } && 18284 { ac_try='test -s conftest.$ac_objext' 18285 { (case "(($ac_try" in 18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18287 *) ac_try_echo=$ac_try;; 18288esac 18289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18290 (eval "$ac_try") 2>&5 18291 ac_status=$? 18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18293 (exit $ac_status); }; }; then 18294 ac_cv_func_std_isnan_in_cmath=yes 18295else 18296 echo "$as_me: failed program was:" >&5 18297sed 's/^/| /' conftest.$ac_ext >&5 18298 18299 ac_cv_func_std_isnan_in_cmath=no 18300fi 18301 18302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18303 ac_ext=c 18304ac_cpp='$CPP $CPPFLAGS' 18305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18307ac_compiler_gnu=$ac_cv_c_compiler_gnu 18308 18309fi 18310{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 18311echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 18312 18313if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 18314 18315cat >>confdefs.h <<\_ACEOF 18316#define HAVE_STD_ISNAN_IN_CMATH 1 18317_ACEOF 18318 18319fi 18320 18321 18322{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 18323echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 18324if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 18325 echo $ECHO_N "(cached) $ECHO_C" >&6 18326else 18327 ac_ext=cpp 18328ac_cpp='$CXXCPP $CPPFLAGS' 18329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18332 18333 cat >conftest.$ac_ext <<_ACEOF 18334/* confdefs.h. */ 18335_ACEOF 18336cat confdefs.h >>conftest.$ac_ext 18337cat >>conftest.$ac_ext <<_ACEOF 18338/* end confdefs.h. */ 18339#include <math.h> 18340int 18341main () 18342{ 18343float f; isinf(f); 18344 ; 18345 return 0; 18346} 18347_ACEOF 18348rm -f conftest.$ac_objext 18349if { (ac_try="$ac_compile" 18350case "(($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_compile") 2>conftest.er1 18356 ac_status=$? 18357 grep -v '^ *+' conftest.er1 >conftest.err 18358 rm -f conftest.er1 18359 cat conftest.err >&5 18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18361 (exit $ac_status); } && 18362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18363 { (case "(($ac_try" in 18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18365 *) ac_try_echo=$ac_try;; 18366esac 18367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18368 (eval "$ac_try") 2>&5 18369 ac_status=$? 18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18371 (exit $ac_status); }; } && 18372 { ac_try='test -s conftest.$ac_objext' 18373 { (case "(($ac_try" in 18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18375 *) ac_try_echo=$ac_try;; 18376esac 18377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18378 (eval "$ac_try") 2>&5 18379 ac_status=$? 18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18381 (exit $ac_status); }; }; then 18382 ac_cv_func_isinf_in_math_h=yes 18383else 18384 echo "$as_me: failed program was:" >&5 18385sed 's/^/| /' conftest.$ac_ext >&5 18386 18387 ac_cv_func_isinf_in_math_h=no 18388fi 18389 18390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18391 ac_ext=c 18392ac_cpp='$CPP $CPPFLAGS' 18393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18395ac_compiler_gnu=$ac_cv_c_compiler_gnu 18396 18397fi 18398{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 18399echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 18400 18401if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 18402 18403cat >>confdefs.h <<\_ACEOF 18404#define HAVE_ISINF_IN_MATH_H 1 18405_ACEOF 18406 18407fi 18408 18409{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 18410echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 18411if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 18412 echo $ECHO_N "(cached) $ECHO_C" >&6 18413else 18414 ac_ext=cpp 18415ac_cpp='$CXXCPP $CPPFLAGS' 18416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18419 18420 cat >conftest.$ac_ext <<_ACEOF 18421/* confdefs.h. */ 18422_ACEOF 18423cat confdefs.h >>conftest.$ac_ext 18424cat >>conftest.$ac_ext <<_ACEOF 18425/* end confdefs.h. */ 18426#include <cmath> 18427int 18428main () 18429{ 18430float f; isinf(f); 18431 ; 18432 return 0; 18433} 18434_ACEOF 18435rm -f conftest.$ac_objext 18436if { (ac_try="$ac_compile" 18437case "(($ac_try" in 18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18439 *) ac_try_echo=$ac_try;; 18440esac 18441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18442 (eval "$ac_compile") 2>conftest.er1 18443 ac_status=$? 18444 grep -v '^ *+' conftest.er1 >conftest.err 18445 rm -f conftest.er1 18446 cat conftest.err >&5 18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18448 (exit $ac_status); } && 18449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18450 { (case "(($ac_try" in 18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18452 *) ac_try_echo=$ac_try;; 18453esac 18454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18455 (eval "$ac_try") 2>&5 18456 ac_status=$? 18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18458 (exit $ac_status); }; } && 18459 { ac_try='test -s conftest.$ac_objext' 18460 { (case "(($ac_try" in 18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18462 *) ac_try_echo=$ac_try;; 18463esac 18464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18465 (eval "$ac_try") 2>&5 18466 ac_status=$? 18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18468 (exit $ac_status); }; }; then 18469 ac_cv_func_isinf_in_cmath=yes 18470else 18471 echo "$as_me: failed program was:" >&5 18472sed 's/^/| /' conftest.$ac_ext >&5 18473 18474 ac_cv_func_isinf_in_cmath=no 18475fi 18476 18477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18478 ac_ext=c 18479ac_cpp='$CPP $CPPFLAGS' 18480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18482ac_compiler_gnu=$ac_cv_c_compiler_gnu 18483 18484fi 18485{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 18486echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 18487 18488if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 18489 18490cat >>confdefs.h <<\_ACEOF 18491#define HAVE_ISINF_IN_CMATH 1 18492_ACEOF 18493 18494fi 18495 18496{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 18497echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 18498if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 18499 echo $ECHO_N "(cached) $ECHO_C" >&6 18500else 18501 ac_ext=cpp 18502ac_cpp='$CXXCPP $CPPFLAGS' 18503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18506 18507 cat >conftest.$ac_ext <<_ACEOF 18508/* confdefs.h. */ 18509_ACEOF 18510cat confdefs.h >>conftest.$ac_ext 18511cat >>conftest.$ac_ext <<_ACEOF 18512/* end confdefs.h. */ 18513#include <cmath> 18514int 18515main () 18516{ 18517float f; std::isinf(f)} 18518 ; 18519 return 0; 18520} 18521_ACEOF 18522rm -f conftest.$ac_objext 18523if { (ac_try="$ac_compile" 18524case "(($ac_try" in 18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18526 *) ac_try_echo=$ac_try;; 18527esac 18528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18529 (eval "$ac_compile") 2>conftest.er1 18530 ac_status=$? 18531 grep -v '^ *+' conftest.er1 >conftest.err 18532 rm -f conftest.er1 18533 cat conftest.err >&5 18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18535 (exit $ac_status); } && 18536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18537 { (case "(($ac_try" in 18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18539 *) ac_try_echo=$ac_try;; 18540esac 18541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18542 (eval "$ac_try") 2>&5 18543 ac_status=$? 18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18545 (exit $ac_status); }; } && 18546 { ac_try='test -s conftest.$ac_objext' 18547 { (case "(($ac_try" in 18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18549 *) ac_try_echo=$ac_try;; 18550esac 18551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18552 (eval "$ac_try") 2>&5 18553 ac_status=$? 18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18555 (exit $ac_status); }; }; then 18556 ac_cv_func_std_isinf_in_cmath=yes 18557else 18558 echo "$as_me: failed program was:" >&5 18559sed 's/^/| /' conftest.$ac_ext >&5 18560 18561 ac_cv_func_std_isinf_in_cmath=no 18562fi 18563 18564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18565 ac_ext=c 18566ac_cpp='$CPP $CPPFLAGS' 18567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18569ac_compiler_gnu=$ac_cv_c_compiler_gnu 18570 18571fi 18572{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 18573echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 18574 18575if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 18576 18577cat >>confdefs.h <<\_ACEOF 18578#define HAVE_STD_ISINF_IN_CMATH 1 18579_ACEOF 18580 18581fi 18582 18583{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 18584echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 18585if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 18586 echo $ECHO_N "(cached) $ECHO_C" >&6 18587else 18588 ac_ext=cpp 18589ac_cpp='$CXXCPP $CPPFLAGS' 18590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18593 18594 cat >conftest.$ac_ext <<_ACEOF 18595/* confdefs.h. */ 18596_ACEOF 18597cat confdefs.h >>conftest.$ac_ext 18598cat >>conftest.$ac_ext <<_ACEOF 18599/* end confdefs.h. */ 18600#include <ieeefp.h> 18601int 18602main () 18603{ 18604float f; finite(f); 18605 ; 18606 return 0; 18607} 18608_ACEOF 18609rm -f conftest.$ac_objext 18610if { (ac_try="$ac_compile" 18611case "(($ac_try" in 18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18613 *) ac_try_echo=$ac_try;; 18614esac 18615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18616 (eval "$ac_compile") 2>conftest.er1 18617 ac_status=$? 18618 grep -v '^ *+' conftest.er1 >conftest.err 18619 rm -f conftest.er1 18620 cat conftest.err >&5 18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18622 (exit $ac_status); } && 18623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 18624 { (case "(($ac_try" in 18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18626 *) ac_try_echo=$ac_try;; 18627esac 18628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18629 (eval "$ac_try") 2>&5 18630 ac_status=$? 18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18632 (exit $ac_status); }; } && 18633 { ac_try='test -s conftest.$ac_objext' 18634 { (case "(($ac_try" in 18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18636 *) ac_try_echo=$ac_try;; 18637esac 18638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18639 (eval "$ac_try") 2>&5 18640 ac_status=$? 18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18642 (exit $ac_status); }; }; then 18643 ac_cv_func_finite_in_ieeefp_h=yes 18644else 18645 echo "$as_me: failed program was:" >&5 18646sed 's/^/| /' conftest.$ac_ext >&5 18647 18648 ac_cv_func_finite_in_ieeefp_h=no 18649fi 18650 18651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18652 ac_ext=c 18653ac_cpp='$CPP $CPPFLAGS' 18654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18656ac_compiler_gnu=$ac_cv_c_compiler_gnu 18657 18658fi 18659{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 18660echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 18661 18662if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 18663 18664cat >>confdefs.h <<\_ACEOF 18665#define HAVE_FINITE_IN_IEEEFP_H 1 18666_ACEOF 18667 18668fi 18669 18670 18671 18672if test "$llvm_cv_platform_type" = "Unix" ; then 18673 18674 18675for ac_header in stdlib.h unistd.h 18676do 18677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 18678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 18679 { echo "$as_me:$LINENO: checking for $ac_header" >&5 18680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 18681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 18682 echo $ECHO_N "(cached) $ECHO_C" >&6 18683fi 18684ac_res=`eval echo '${'$as_ac_Header'}'` 18685 { echo "$as_me:$LINENO: result: $ac_res" >&5 18686echo "${ECHO_T}$ac_res" >&6; } 18687else 18688 # Is the header compilable? 18689{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 18690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 18691cat >conftest.$ac_ext <<_ACEOF 18692/* confdefs.h. */ 18693_ACEOF 18694cat confdefs.h >>conftest.$ac_ext 18695cat >>conftest.$ac_ext <<_ACEOF 18696/* end confdefs.h. */ 18697$ac_includes_default 18698#include <$ac_header> 18699_ACEOF 18700rm -f conftest.$ac_objext 18701if { (ac_try="$ac_compile" 18702case "(($ac_try" in 18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18704 *) ac_try_echo=$ac_try;; 18705esac 18706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18707 (eval "$ac_compile") 2>conftest.er1 18708 ac_status=$? 18709 grep -v '^ *+' conftest.er1 >conftest.err 18710 rm -f conftest.er1 18711 cat conftest.err >&5 18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18713 (exit $ac_status); } && 18714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18715 { (case "(($ac_try" in 18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18717 *) ac_try_echo=$ac_try;; 18718esac 18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18720 (eval "$ac_try") 2>&5 18721 ac_status=$? 18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18723 (exit $ac_status); }; } && 18724 { ac_try='test -s conftest.$ac_objext' 18725 { (case "(($ac_try" in 18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18727 *) ac_try_echo=$ac_try;; 18728esac 18729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18730 (eval "$ac_try") 2>&5 18731 ac_status=$? 18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18733 (exit $ac_status); }; }; then 18734 ac_header_compiler=yes 18735else 18736 echo "$as_me: failed program was:" >&5 18737sed 's/^/| /' conftest.$ac_ext >&5 18738 18739 ac_header_compiler=no 18740fi 18741 18742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18743{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 18744echo "${ECHO_T}$ac_header_compiler" >&6; } 18745 18746# Is the header present? 18747{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 18748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 18749cat >conftest.$ac_ext <<_ACEOF 18750/* confdefs.h. */ 18751_ACEOF 18752cat confdefs.h >>conftest.$ac_ext 18753cat >>conftest.$ac_ext <<_ACEOF 18754/* end confdefs.h. */ 18755#include <$ac_header> 18756_ACEOF 18757if { (ac_try="$ac_cpp conftest.$ac_ext" 18758case "(($ac_try" in 18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18760 *) ac_try_echo=$ac_try;; 18761esac 18762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 18764 ac_status=$? 18765 grep -v '^ *+' conftest.er1 >conftest.err 18766 rm -f conftest.er1 18767 cat conftest.err >&5 18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18769 (exit $ac_status); } >/dev/null; then 18770 if test -s conftest.err; then 18771 ac_cpp_err=$ac_c_preproc_warn_flag 18772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 18773 else 18774 ac_cpp_err= 18775 fi 18776else 18777 ac_cpp_err=yes 18778fi 18779if test -z "$ac_cpp_err"; then 18780 ac_header_preproc=yes 18781else 18782 echo "$as_me: failed program was:" >&5 18783sed 's/^/| /' conftest.$ac_ext >&5 18784 18785 ac_header_preproc=no 18786fi 18787 18788rm -f conftest.err conftest.$ac_ext 18789{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 18790echo "${ECHO_T}$ac_header_preproc" >&6; } 18791 18792# So? What about this header? 18793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 18794 yes:no: ) 18795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 18796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 18797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 18798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 18799 ac_header_preproc=yes 18800 ;; 18801 no:yes:* ) 18802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 18803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 18804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 18805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 18806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 18807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 18808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 18809echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 18810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 18811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 18812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 18813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 18814 ( cat <<\_ASBOX 18815## ----------------------------------- ## 18816## Report this to llvmbugs@cs.uiuc.edu ## 18817## ----------------------------------- ## 18818_ASBOX 18819 ) | sed "s/^/$as_me: WARNING: /" >&2 18820 ;; 18821esac 18822{ echo "$as_me:$LINENO: checking for $ac_header" >&5 18823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 18824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 18825 echo $ECHO_N "(cached) $ECHO_C" >&6 18826else 18827 eval "$as_ac_Header=\$ac_header_preproc" 18828fi 18829ac_res=`eval echo '${'$as_ac_Header'}'` 18830 { echo "$as_me:$LINENO: result: $ac_res" >&5 18831echo "${ECHO_T}$ac_res" >&6; } 18832 18833fi 18834if test `eval echo '${'$as_ac_Header'}'` = yes; then 18835 cat >>confdefs.h <<_ACEOF 18836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 18837_ACEOF 18838 18839fi 18840 18841done 18842 18843 18844for ac_func in getpagesize 18845do 18846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18847{ echo "$as_me:$LINENO: checking for $ac_func" >&5 18848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 18849if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 18850 echo $ECHO_N "(cached) $ECHO_C" >&6 18851else 18852 cat >conftest.$ac_ext <<_ACEOF 18853/* confdefs.h. */ 18854_ACEOF 18855cat confdefs.h >>conftest.$ac_ext 18856cat >>conftest.$ac_ext <<_ACEOF 18857/* end confdefs.h. */ 18858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 18859 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18860#define $ac_func innocuous_$ac_func 18861 18862/* System header to define __stub macros and hopefully few prototypes, 18863 which can conflict with char $ac_func (); below. 18864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18865 <limits.h> exists even on freestanding compilers. */ 18866 18867#ifdef __STDC__ 18868# include <limits.h> 18869#else 18870# include <assert.h> 18871#endif 18872 18873#undef $ac_func 18874 18875/* Override any GCC internal prototype to avoid an error. 18876 Use char because int might match the return type of a GCC 18877 builtin and then its argument prototype would still apply. */ 18878#ifdef __cplusplus 18879extern "C" 18880#endif 18881char $ac_func (); 18882/* The GNU C library defines this for functions which it implements 18883 to always fail with ENOSYS. Some functions are actually named 18884 something starting with __ and the normal name is an alias. */ 18885#if defined __stub_$ac_func || defined __stub___$ac_func 18886choke me 18887#endif 18888 18889int 18890main () 18891{ 18892return $ac_func (); 18893 ; 18894 return 0; 18895} 18896_ACEOF 18897rm -f conftest.$ac_objext conftest$ac_exeext 18898if { (ac_try="$ac_link" 18899case "(($ac_try" in 18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18901 *) ac_try_echo=$ac_try;; 18902esac 18903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18904 (eval "$ac_link") 2>conftest.er1 18905 ac_status=$? 18906 grep -v '^ *+' conftest.er1 >conftest.err 18907 rm -f conftest.er1 18908 cat conftest.err >&5 18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18910 (exit $ac_status); } && 18911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18912 { (case "(($ac_try" in 18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18914 *) ac_try_echo=$ac_try;; 18915esac 18916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18917 (eval "$ac_try") 2>&5 18918 ac_status=$? 18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18920 (exit $ac_status); }; } && 18921 { ac_try='test -s conftest$ac_exeext' 18922 { (case "(($ac_try" in 18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18924 *) ac_try_echo=$ac_try;; 18925esac 18926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18927 (eval "$ac_try") 2>&5 18928 ac_status=$? 18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18930 (exit $ac_status); }; }; then 18931 eval "$as_ac_var=yes" 18932else 18933 echo "$as_me: failed program was:" >&5 18934sed 's/^/| /' conftest.$ac_ext >&5 18935 18936 eval "$as_ac_var=no" 18937fi 18938 18939rm -f core conftest.err conftest.$ac_objext \ 18940 conftest$ac_exeext conftest.$ac_ext 18941fi 18942ac_res=`eval echo '${'$as_ac_var'}'` 18943 { echo "$as_me:$LINENO: result: $ac_res" >&5 18944echo "${ECHO_T}$ac_res" >&6; } 18945if test `eval echo '${'$as_ac_var'}'` = yes; then 18946 cat >>confdefs.h <<_ACEOF 18947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18948_ACEOF 18949 18950fi 18951done 18952 18953{ echo "$as_me:$LINENO: checking for working mmap" >&5 18954echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 18955if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 18956 echo $ECHO_N "(cached) $ECHO_C" >&6 18957else 18958 if test "$cross_compiling" = yes; then 18959 ac_cv_func_mmap_fixed_mapped=no 18960else 18961 cat >conftest.$ac_ext <<_ACEOF 18962/* confdefs.h. */ 18963_ACEOF 18964cat confdefs.h >>conftest.$ac_ext 18965cat >>conftest.$ac_ext <<_ACEOF 18966/* end confdefs.h. */ 18967$ac_includes_default 18968/* malloc might have been renamed as rpl_malloc. */ 18969#undef malloc 18970 18971/* Thanks to Mike Haertel and Jim Avera for this test. 18972 Here is a matrix of mmap possibilities: 18973 mmap private not fixed 18974 mmap private fixed at somewhere currently unmapped 18975 mmap private fixed at somewhere already mapped 18976 mmap shared not fixed 18977 mmap shared fixed at somewhere currently unmapped 18978 mmap shared fixed at somewhere already mapped 18979 For private mappings, we should verify that changes cannot be read() 18980 back from the file, nor mmap's back from the file at a different 18981 address. (There have been systems where private was not correctly 18982 implemented like the infamous i386 svr4.0, and systems where the 18983 VM page cache was not coherent with the file system buffer cache 18984 like early versions of FreeBSD and possibly contemporary NetBSD.) 18985 For shared mappings, we should conversely verify that changes get 18986 propagated back to all the places they're supposed to be. 18987 18988 Grep wants private fixed already mapped. 18989 The main things grep needs to know about mmap are: 18990 * does it exist and is it safe to write into the mmap'd area 18991 * how to use it (BSD variants) */ 18992 18993#include <fcntl.h> 18994#include <sys/mman.h> 18995 18996#if !STDC_HEADERS && !HAVE_STDLIB_H 18997char *malloc (); 18998#endif 18999 19000/* This mess was copied from the GNU getpagesize.h. */ 19001#if !HAVE_GETPAGESIZE 19002/* Assume that all systems that can run configure have sys/param.h. */ 19003# if !HAVE_SYS_PARAM_H 19004# define HAVE_SYS_PARAM_H 1 19005# endif 19006 19007# ifdef _SC_PAGESIZE 19008# define getpagesize() sysconf(_SC_PAGESIZE) 19009# else /* no _SC_PAGESIZE */ 19010# if HAVE_SYS_PARAM_H 19011# include <sys/param.h> 19012# ifdef EXEC_PAGESIZE 19013# define getpagesize() EXEC_PAGESIZE 19014# else /* no EXEC_PAGESIZE */ 19015# ifdef NBPG 19016# define getpagesize() NBPG * CLSIZE 19017# ifndef CLSIZE 19018# define CLSIZE 1 19019# endif /* no CLSIZE */ 19020# else /* no NBPG */ 19021# ifdef NBPC 19022# define getpagesize() NBPC 19023# else /* no NBPC */ 19024# ifdef PAGESIZE 19025# define getpagesize() PAGESIZE 19026# endif /* PAGESIZE */ 19027# endif /* no NBPC */ 19028# endif /* no NBPG */ 19029# endif /* no EXEC_PAGESIZE */ 19030# else /* no HAVE_SYS_PARAM_H */ 19031# define getpagesize() 8192 /* punt totally */ 19032# endif /* no HAVE_SYS_PARAM_H */ 19033# endif /* no _SC_PAGESIZE */ 19034 19035#endif /* no HAVE_GETPAGESIZE */ 19036 19037int 19038main () 19039{ 19040 char *data, *data2, *data3; 19041 int i, pagesize; 19042 int fd; 19043 19044 pagesize = getpagesize (); 19045 19046 /* First, make a file with some known garbage in it. */ 19047 data = (char *) malloc (pagesize); 19048 if (!data) 19049 return 1; 19050 for (i = 0; i < pagesize; ++i) 19051 *(data + i) = rand (); 19052 umask (0); 19053 fd = creat ("conftest.mmap", 0600); 19054 if (fd < 0) 19055 return 1; 19056 if (write (fd, data, pagesize) != pagesize) 19057 return 1; 19058 close (fd); 19059 19060 /* Next, try to mmap the file at a fixed address which already has 19061 something else allocated at it. If we can, also make sure that 19062 we see the same garbage. */ 19063 fd = open ("conftest.mmap", O_RDWR); 19064 if (fd < 0) 19065 return 1; 19066 data2 = (char *) malloc (2 * pagesize); 19067 if (!data2) 19068 return 1; 19069 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 19070 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 19071 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 19072 return 1; 19073 for (i = 0; i < pagesize; ++i) 19074 if (*(data + i) != *(data2 + i)) 19075 return 1; 19076 19077 /* Finally, make sure that changes to the mapped area do not 19078 percolate back to the file as seen by read(). (This is a bug on 19079 some variants of i386 svr4.0.) */ 19080 for (i = 0; i < pagesize; ++i) 19081 *(data2 + i) = *(data2 + i) + 1; 19082 data3 = (char *) malloc (pagesize); 19083 if (!data3) 19084 return 1; 19085 if (read (fd, data3, pagesize) != pagesize) 19086 return 1; 19087 for (i = 0; i < pagesize; ++i) 19088 if (*(data + i) != *(data3 + i)) 19089 return 1; 19090 close (fd); 19091 return 0; 19092} 19093_ACEOF 19094rm -f conftest$ac_exeext 19095if { (ac_try="$ac_link" 19096case "(($ac_try" in 19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19098 *) ac_try_echo=$ac_try;; 19099esac 19100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19101 (eval "$ac_link") 2>&5 19102 ac_status=$? 19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19105 { (case "(($ac_try" in 19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19107 *) ac_try_echo=$ac_try;; 19108esac 19109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19110 (eval "$ac_try") 2>&5 19111 ac_status=$? 19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19113 (exit $ac_status); }; }; then 19114 ac_cv_func_mmap_fixed_mapped=yes 19115else 19116 echo "$as_me: program exited with status $ac_status" >&5 19117echo "$as_me: failed program was:" >&5 19118sed 's/^/| /' conftest.$ac_ext >&5 19119 19120( exit $ac_status ) 19121ac_cv_func_mmap_fixed_mapped=no 19122fi 19123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19124fi 19125 19126 19127fi 19128{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 19129echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 19130if test $ac_cv_func_mmap_fixed_mapped = yes; then 19131 19132cat >>confdefs.h <<\_ACEOF 19133#define HAVE_MMAP 1 19134_ACEOF 19135 19136fi 19137rm -f conftest.mmap 19138 19139 { echo "$as_me:$LINENO: checking for mmap of files" >&5 19140echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 19141if test "${ac_cv_func_mmap_file+set}" = set; then 19142 echo $ECHO_N "(cached) $ECHO_C" >&6 19143else 19144 ac_ext=c 19145ac_cpp='$CPP $CPPFLAGS' 19146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19148ac_compiler_gnu=$ac_cv_c_compiler_gnu 19149 19150 if test "$cross_compiling" = yes; then 19151 ac_cv_func_mmap_file=no 19152else 19153 cat >conftest.$ac_ext <<_ACEOF 19154 19155 /* confdefs.h. */ 19156_ACEOF 19157cat confdefs.h >>conftest.$ac_ext 19158cat >>conftest.$ac_ext <<_ACEOF 19159/* end confdefs.h. */ 19160 19161#include <sys/types.h> 19162#include <sys/mman.h> 19163#include <fcntl.h> 19164 19165int 19166main () 19167{ 19168 19169 int fd; 19170 fd = creat ("foo",0777); 19171 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 19172 unlink ("foo"); 19173 return (fd != (int) MAP_FAILED); 19174 ; 19175 return 0; 19176} 19177_ACEOF 19178rm -f conftest$ac_exeext 19179if { (ac_try="$ac_link" 19180case "(($ac_try" in 19181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19182 *) ac_try_echo=$ac_try;; 19183esac 19184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19185 (eval "$ac_link") 2>&5 19186 ac_status=$? 19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19189 { (case "(($ac_try" in 19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19191 *) ac_try_echo=$ac_try;; 19192esac 19193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19194 (eval "$ac_try") 2>&5 19195 ac_status=$? 19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19197 (exit $ac_status); }; }; then 19198 ac_cv_func_mmap_file=yes 19199else 19200 echo "$as_me: program exited with status $ac_status" >&5 19201echo "$as_me: failed program was:" >&5 19202sed 's/^/| /' conftest.$ac_ext >&5 19203 19204( exit $ac_status ) 19205ac_cv_func_mmap_file=no 19206fi 19207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19208fi 19209 19210 19211 ac_ext=c 19212ac_cpp='$CPP $CPPFLAGS' 19213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19215ac_compiler_gnu=$ac_cv_c_compiler_gnu 19216 19217 19218fi 19219{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 19220echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 19221if test "$ac_cv_func_mmap_file" = yes; then 19222 19223cat >>confdefs.h <<\_ACEOF 19224#define HAVE_MMAP_FILE 19225_ACEOF 19226 19227 MMAP_FILE=yes 19228 19229fi 19230 19231 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 19232echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 19233if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 19234 echo $ECHO_N "(cached) $ECHO_C" >&6 19235else 19236 if test "$llvm_cv_os_type" = "Interix" ; then 19237 ac_cv_need_dev_zero_for_mmap=yes 19238 else 19239 ac_cv_need_dev_zero_for_mmap=no 19240 fi 19241 19242fi 19243{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 19244echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 19245if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 19246 19247cat >>confdefs.h <<\_ACEOF 19248#define NEED_DEV_ZERO_FOR_MMAP 1 19249_ACEOF 19250 19251fi 19252 19253 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 19254 then 19255 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 19256echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 19257 fi 19258 if test "$ac_cv_func_mmap_file" = "no" 19259 then 19260 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 19261echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 19262 fi 19263fi 19264 19265{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 19266echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 19267cat >conftest.$ac_ext <<_ACEOF 19268/* confdefs.h. */ 19269_ACEOF 19270cat confdefs.h >>conftest.$ac_ext 19271cat >>conftest.$ac_ext <<_ACEOF 19272/* end confdefs.h. */ 19273int main() { 19274 volatile unsigned long val = 1; 19275 __sync_synchronize(); 19276 __sync_val_compare_and_swap(&val, 1, 0); 19277 __sync_add_and_fetch(&val, 1); 19278 __sync_sub_and_fetch(&val, 1); 19279 return 0; 19280 } 19281 19282_ACEOF 19283rm -f conftest.$ac_objext conftest$ac_exeext 19284if { (ac_try="$ac_link" 19285case "(($ac_try" in 19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19287 *) ac_try_echo=$ac_try;; 19288esac 19289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19290 (eval "$ac_link") 2>conftest.er1 19291 ac_status=$? 19292 grep -v '^ *+' conftest.er1 >conftest.err 19293 rm -f conftest.er1 19294 cat conftest.err >&5 19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19296 (exit $ac_status); } && 19297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19298 { (case "(($ac_try" in 19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19300 *) ac_try_echo=$ac_try;; 19301esac 19302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19303 (eval "$ac_try") 2>&5 19304 ac_status=$? 19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19306 (exit $ac_status); }; } && 19307 { ac_try='test -s conftest$ac_exeext' 19308 { (case "(($ac_try" in 19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19310 *) ac_try_echo=$ac_try;; 19311esac 19312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19313 (eval "$ac_try") 2>&5 19314 ac_status=$? 19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19316 (exit $ac_status); }; }; then 19317 { echo "$as_me:$LINENO: result: yes" >&5 19318echo "${ECHO_T}yes" >&6; } 19319 19320cat >>confdefs.h <<\_ACEOF 19321#define LLVM_MULTITHREADED 1 19322_ACEOF 19323 19324else 19325 echo "$as_me: failed program was:" >&5 19326sed 's/^/| /' conftest.$ac_ext >&5 19327 19328 { echo "$as_me:$LINENO: result: no" >&5 19329echo "${ECHO_T}no" >&6; } 19330 19331cat >>confdefs.h <<\_ACEOF 19332#define LLVM_MULTITHREADED 0 19333_ACEOF 19334 19335 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 19336echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 19337fi 19338 19339rm -f core conftest.err conftest.$ac_objext \ 19340 conftest$ac_exeext conftest.$ac_ext 19341 19342 19343 19344if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 19345 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 19346echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 19347if test "${llvm_cv_linux_mixed+set}" = set; then 19348 echo $ECHO_N "(cached) $ECHO_C" >&6 19349else 19350 ac_ext=c 19351ac_cpp='$CPP $CPPFLAGS' 19352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19354ac_compiler_gnu=$ac_cv_c_compiler_gnu 19355 19356 cat >conftest.$ac_ext <<_ACEOF 19357/* confdefs.h. */ 19358_ACEOF 19359cat confdefs.h >>conftest.$ac_ext 19360cat >>conftest.$ac_ext <<_ACEOF 19361/* end confdefs.h. */ 19362#ifndef __x86_64__ 19363 error: Not x86-64 even if uname says so! 19364 #endif 19365 19366int 19367main () 19368{ 19369 19370 ; 19371 return 0; 19372} 19373_ACEOF 19374rm -f conftest.$ac_objext 19375if { (ac_try="$ac_compile" 19376case "(($ac_try" in 19377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19378 *) ac_try_echo=$ac_try;; 19379esac 19380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19381 (eval "$ac_compile") 2>conftest.er1 19382 ac_status=$? 19383 grep -v '^ *+' conftest.er1 >conftest.err 19384 rm -f conftest.er1 19385 cat conftest.err >&5 19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19387 (exit $ac_status); } && 19388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19389 { (case "(($ac_try" in 19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19391 *) ac_try_echo=$ac_try;; 19392esac 19393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19394 (eval "$ac_try") 2>&5 19395 ac_status=$? 19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19397 (exit $ac_status); }; } && 19398 { ac_try='test -s conftest.$ac_objext' 19399 { (case "(($ac_try" in 19400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19401 *) ac_try_echo=$ac_try;; 19402esac 19403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19404 (eval "$ac_try") 2>&5 19405 ac_status=$? 19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19407 (exit $ac_status); }; }; then 19408 llvm_cv_linux_mixed=no 19409else 19410 echo "$as_me: failed program was:" >&5 19411sed 's/^/| /' conftest.$ac_ext >&5 19412 19413 llvm_cv_linux_mixed=yes 19414fi 19415 19416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19417 ac_ext=c 19418ac_cpp='$CPP $CPPFLAGS' 19419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19421ac_compiler_gnu=$ac_cv_c_compiler_gnu 19422 19423 19424fi 19425{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 19426echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 19427 19428 if test "$llvm_cv_linux_mixed" = "yes"; then 19429 llvm_cv_target_arch="x86" 19430 ARCH="x86" 19431 fi 19432fi 19433 19434 19435for ac_func in __dso_handle 19436do 19437as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19438{ echo "$as_me:$LINENO: checking for $ac_func" >&5 19439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 19440if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 19441 echo $ECHO_N "(cached) $ECHO_C" >&6 19442else 19443 cat >conftest.$ac_ext <<_ACEOF 19444/* confdefs.h. */ 19445_ACEOF 19446cat confdefs.h >>conftest.$ac_ext 19447cat >>conftest.$ac_ext <<_ACEOF 19448/* end confdefs.h. */ 19449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19450 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19451#define $ac_func innocuous_$ac_func 19452 19453/* System header to define __stub macros and hopefully few prototypes, 19454 which can conflict with char $ac_func (); below. 19455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19456 <limits.h> exists even on freestanding compilers. */ 19457 19458#ifdef __STDC__ 19459# include <limits.h> 19460#else 19461# include <assert.h> 19462#endif 19463 19464#undef $ac_func 19465 19466/* Override any GCC internal prototype to avoid an error. 19467 Use char because int might match the return type of a GCC 19468 builtin and then its argument prototype would still apply. */ 19469#ifdef __cplusplus 19470extern "C" 19471#endif 19472char $ac_func (); 19473/* The GNU C library defines this for functions which it implements 19474 to always fail with ENOSYS. Some functions are actually named 19475 something starting with __ and the normal name is an alias. */ 19476#if defined __stub_$ac_func || defined __stub___$ac_func 19477choke me 19478#endif 19479 19480int 19481main () 19482{ 19483return $ac_func (); 19484 ; 19485 return 0; 19486} 19487_ACEOF 19488rm -f conftest.$ac_objext conftest$ac_exeext 19489if { (ac_try="$ac_link" 19490case "(($ac_try" in 19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19492 *) ac_try_echo=$ac_try;; 19493esac 19494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19495 (eval "$ac_link") 2>conftest.er1 19496 ac_status=$? 19497 grep -v '^ *+' conftest.er1 >conftest.err 19498 rm -f conftest.er1 19499 cat conftest.err >&5 19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19501 (exit $ac_status); } && 19502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19503 { (case "(($ac_try" in 19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19505 *) ac_try_echo=$ac_try;; 19506esac 19507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19508 (eval "$ac_try") 2>&5 19509 ac_status=$? 19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19511 (exit $ac_status); }; } && 19512 { ac_try='test -s conftest$ac_exeext' 19513 { (case "(($ac_try" in 19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19515 *) ac_try_echo=$ac_try;; 19516esac 19517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19518 (eval "$ac_try") 2>&5 19519 ac_status=$? 19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19521 (exit $ac_status); }; }; then 19522 eval "$as_ac_var=yes" 19523else 19524 echo "$as_me: failed program was:" >&5 19525sed 's/^/| /' conftest.$ac_ext >&5 19526 19527 eval "$as_ac_var=no" 19528fi 19529 19530rm -f core conftest.err conftest.$ac_objext \ 19531 conftest$ac_exeext conftest.$ac_ext 19532fi 19533ac_res=`eval echo '${'$as_ac_var'}'` 19534 { echo "$as_me:$LINENO: result: $ac_res" >&5 19535echo "${ECHO_T}$ac_res" >&6; } 19536if test `eval echo '${'$as_ac_var'}'` = yes; then 19537 cat >>confdefs.h <<_ACEOF 19538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 19539_ACEOF 19540 19541fi 19542done 19543 19544 19545{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5 19546echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; } 19547if test "${llvm_cv_llvmgcc_sanity+set}" = set; then 19548 echo $ECHO_N "(cached) $ECHO_C" >&6 19549else 19550 llvm_cv_llvmgcc_sanity="no" 19551if test -x "$LLVMGCC" ; then 19552 cp /dev/null conftest.c 19553 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \ 19554 grep 'target datalayout =' > /dev/null 2>&1 19555 if test $? -eq 0 ; then 19556 llvm_cv_llvmgcc_sanity="yes" 19557 fi 19558 rm conftest.c 19559fi 19560fi 19561{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5 19562echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; } 19563 19564if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then 19565 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5 19566echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; } 19567 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1` 19568 LLVMCC1=$llvmcc1path 19569 19570 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus` 19571 LLVMCC1PLUS=$llvmcc1pluspath 19572 19573 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'` 19574 LLVMGCCDIR=$llvmgccdir 19575 19576 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'` 19577 LLVMGCC_LANGS=$llvmgcclangs 19578 19579 { echo "$as_me:$LINENO: result: ok" >&5 19580echo "${ECHO_T}ok" >&6; } 19581fi 19582 19583SHLIBEXT=$libltdl_cv_shlibext 19584 19585 19586# Translate the various configuration directories and other basic 19587# information into substitutions that will end up in Makefile.config.in 19588# that these configured values can be used by the makefiles 19589if test "${prefix}" = "NONE" ; then 19590 prefix="/usr/local" 19591fi 19592eval LLVM_PREFIX="${prefix}"; 19593eval LLVM_BINDIR="${prefix}/bin"; 19594eval LLVM_LIBDIR="${prefix}/lib"; 19595eval LLVM_DATADIR="${prefix}/share/llvm"; 19596eval LLVM_DOCSDIR="${prefix}/docs/llvm"; 19597eval LLVM_ETCDIR="${prefix}/etc/llvm"; 19598eval LLVM_INCLUDEDIR="${prefix}/include"; 19599eval LLVM_INFODIR="${prefix}/info"; 19600eval LLVM_MANDIR="${prefix}/man"; 19601LLVM_CONFIGTIME=`date` 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613# Place the various directores into the config.h file as #defines so that we 19614# can know about the installation paths within LLVM. 19615 19616cat >>confdefs.h <<_ACEOF 19617#define LLVM_PREFIX "$LLVM_PREFIX" 19618_ACEOF 19619 19620 19621cat >>confdefs.h <<_ACEOF 19622#define LLVM_BINDIR "$LLVM_BINDIR" 19623_ACEOF 19624 19625 19626cat >>confdefs.h <<_ACEOF 19627#define LLVM_LIBDIR "$LLVM_LIBDIR" 19628_ACEOF 19629 19630 19631cat >>confdefs.h <<_ACEOF 19632#define LLVM_DATADIR "$LLVM_DATADIR" 19633_ACEOF 19634 19635 19636cat >>confdefs.h <<_ACEOF 19637#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 19638_ACEOF 19639 19640 19641cat >>confdefs.h <<_ACEOF 19642#define LLVM_ETCDIR "$LLVM_ETCDIR" 19643_ACEOF 19644 19645 19646cat >>confdefs.h <<_ACEOF 19647#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 19648_ACEOF 19649 19650 19651cat >>confdefs.h <<_ACEOF 19652#define LLVM_INFODIR "$LLVM_INFODIR" 19653_ACEOF 19654 19655 19656cat >>confdefs.h <<_ACEOF 19657#define LLVM_MANDIR "$LLVM_MANDIR" 19658_ACEOF 19659 19660 19661cat >>confdefs.h <<_ACEOF 19662#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 19663_ACEOF 19664 19665 19666cat >>confdefs.h <<_ACEOF 19667#define LLVM_HOSTTRIPLE "$host" 19668_ACEOF 19669 19670 19671# Determine which bindings to build. 19672if test "$BINDINGS_TO_BUILD" = auto ; then 19673 BINDINGS_TO_BUILD="" 19674 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 19675 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 19676 fi 19677fi 19678BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 19679 19680 19681# This isn't really configurey, but it avoids having to repeat the list in 19682# other files. 19683ALL_BINDINGS=ocaml 19684 19685 19686# Do any work necessary to ensure that bindings have what they need. 19687binding_prereqs_failed=0 19688for a_binding in $BINDINGS_TO_BUILD ; do 19689 case "$a_binding" in 19690 ocaml) 19691 if test "x$OCAMLC" = x ; then 19692 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 19693echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 19694 binding_prereqs_failed=1 19695 fi 19696 if test "x$OCAMLDEP" = x ; then 19697 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 19698echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 19699 binding_prereqs_failed=1 19700 fi 19701 if test "x$OCAMLOPT" = x ; then 19702 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 19703echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 19704 fi 19705 if test "x$with_ocaml_libdir" != xauto ; then 19706 OCAML_LIBDIR=$with_ocaml_libdir 19707 19708 else 19709 ocaml_stdlib="`"$OCAMLC" -where`" 19710 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 19711 then 19712 # ocaml stdlib is beneath our prefix; use stdlib 19713 OCAML_LIBDIR=$ocaml_stdlib 19714 19715 else 19716 # ocaml stdlib is outside our prefix; use libdir/ocaml 19717 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml 19718 19719 fi 19720 fi 19721 ;; 19722 esac 19723done 19724if test "$binding_prereqs_failed" = 1 ; then 19725 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 19726echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 19727 { (exit 1); exit 1; }; } 19728fi 19729 19730{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 19731echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 19732if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 19733 echo $ECHO_N "(cached) $ECHO_C" >&6 19734else 19735 ac_ext=cpp 19736ac_cpp='$CXXCPP $CPPFLAGS' 19737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19740 19741 oldcxxflags="$CXXFLAGS" 19742 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" 19743 cat >conftest.$ac_ext <<_ACEOF 19744/* confdefs.h. */ 19745_ACEOF 19746cat confdefs.h >>conftest.$ac_ext 19747cat >>conftest.$ac_ext <<_ACEOF 19748/* end confdefs.h. */ 19749 19750int 19751main () 19752{ 19753 19754 ; 19755 return 0; 19756} 19757_ACEOF 19758rm -f conftest.$ac_objext 19759if { (ac_try="$ac_compile" 19760case "(($ac_try" in 19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19762 *) ac_try_echo=$ac_try;; 19763esac 19764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19765 (eval "$ac_compile") 2>conftest.er1 19766 ac_status=$? 19767 grep -v '^ *+' conftest.er1 >conftest.err 19768 rm -f conftest.er1 19769 cat conftest.err >&5 19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19771 (exit $ac_status); } && 19772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19773 { (case "(($ac_try" in 19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19775 *) ac_try_echo=$ac_try;; 19776esac 19777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19778 (eval "$ac_try") 2>&5 19779 ac_status=$? 19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19781 (exit $ac_status); }; } && 19782 { ac_try='test -s conftest.$ac_objext' 19783 { (case "(($ac_try" in 19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19785 *) ac_try_echo=$ac_try;; 19786esac 19787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19788 (eval "$ac_try") 2>&5 19789 ac_status=$? 19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19791 (exit $ac_status); }; }; then 19792 llvm_cv_cxx_visibility_inlines_hidden=yes 19793else 19794 echo "$as_me: failed program was:" >&5 19795sed 's/^/| /' conftest.$ac_ext >&5 19796 19797 llvm_cv_cxx_visibility_inlines_hidden=no 19798fi 19799 19800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19801 CXXFLAGS="$oldcxxflags" 19802 ac_ext=c 19803ac_cpp='$CPP $CPPFLAGS' 19804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19806ac_compiler_gnu=$ac_cv_c_compiler_gnu 19807 19808 19809fi 19810{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 19811echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 19812if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 19813 ENABLE_VISIBILITY_INLINES_HIDDEN=1 19814 19815else 19816 ENABLE_VISIBILITY_INLINES_HIDDEN=0 19817 19818fi 19819 19820 19821if test "$llvm_cv_link_use_r" = "yes" ; then 19822 RPATH="-Wl,-R" 19823else 19824 RPATH="-Wl,-rpath" 19825fi 19826 19827 19828if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 19829 RDYNAMIC="-Wl,-export-dynamic" 19830else 19831 RDYNAMIC="" 19832fi 19833 19834 19835 19836ac_config_headers="$ac_config_headers include/llvm/Config/config.h" 19837 19838ac_config_files="$ac_config_files include/llvm/Config/Targets.def" 19839 19840ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def" 19841 19842ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def" 19843 19844ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def" 19845 19846ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h" 19847 19848 19849ac_config_files="$ac_config_files Makefile.config" 19850 19851 19852ac_config_files="$ac_config_files llvm.spec" 19853 19854 19855ac_config_files="$ac_config_files docs/doxygen.cfg" 19856 19857 19858ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td" 19859 19860 19861ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in" 19862 19863 19864ac_config_commands="$ac_config_commands setup" 19865 19866ac_config_commands="$ac_config_commands Makefile" 19867 19868 19869ac_config_commands="$ac_config_commands Makefile.common" 19870 19871 19872ac_config_commands="$ac_config_commands examples/Makefile" 19873 19874 19875ac_config_commands="$ac_config_commands lib/Makefile" 19876 19877 19878ac_config_commands="$ac_config_commands runtime/Makefile" 19879 19880 19881ac_config_commands="$ac_config_commands test/Makefile" 19882 19883 19884ac_config_commands="$ac_config_commands test/Makefile.tests" 19885 19886 19887ac_config_commands="$ac_config_commands unittests/Makefile" 19888 19889 19890ac_config_commands="$ac_config_commands tools/Makefile" 19891 19892 19893ac_config_commands="$ac_config_commands utils/Makefile" 19894 19895 19896ac_config_commands="$ac_config_commands projects/Makefile" 19897 19898 19899ac_config_commands="$ac_config_commands bindings/Makefile" 19900 19901 19902ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml" 19903 19904 19905 19906cat >confcache <<\_ACEOF 19907# This file is a shell script that caches the results of configure 19908# tests run on this system so they can be shared between configure 19909# scripts and configure runs, see configure's option --config-cache. 19910# It is not useful on other systems. If it contains results you don't 19911# want to keep, you may remove or edit it. 19912# 19913# config.status only pays attention to the cache file if you give it 19914# the --recheck option to rerun configure. 19915# 19916# `ac_cv_env_foo' variables (set or unset) will be overridden when 19917# loading this file, other *unset* `ac_cv_foo' will be assigned the 19918# following values. 19919 19920_ACEOF 19921 19922# The following way of writing the cache mishandles newlines in values, 19923# but we know of no workaround that is simple, portable, and efficient. 19924# So, we kill variables containing newlines. 19925# Ultrix sh set writes to stderr and can't be redirected directly, 19926# and sets the high bit in the cache file unless we assign to the vars. 19927( 19928 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19929 eval ac_val=\$$ac_var 19930 case $ac_val in #( 19931 *${as_nl}*) 19932 case $ac_var in #( 19933 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 19934echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 19935 esac 19936 case $ac_var in #( 19937 _ | IFS | as_nl) ;; #( 19938 *) $as_unset $ac_var ;; 19939 esac ;; 19940 esac 19941 done 19942 19943 (set) 2>&1 | 19944 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19945 *${as_nl}ac_space=\ *) 19946 # `set' does not quote correctly, so add quotes (double-quote 19947 # substitution turns \\\\ into \\, and sed turns \\ into \). 19948 sed -n \ 19949 "s/'/'\\\\''/g; 19950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19951 ;; #( 19952 *) 19953 # `set' quotes correctly as required by POSIX, so do not add quotes. 19954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19955 ;; 19956 esac | 19957 sort 19958) | 19959 sed ' 19960 /^ac_cv_env_/b end 19961 t clear 19962 :clear 19963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19964 t end 19965 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19966 :end' >>confcache 19967if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19968 if test -w "$cache_file"; then 19969 test "x$cache_file" != "x/dev/null" && 19970 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 19971echo "$as_me: updating cache $cache_file" >&6;} 19972 cat confcache >$cache_file 19973 else 19974 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 19975echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19976 fi 19977fi 19978rm -f confcache 19979 19980test "x$prefix" = xNONE && prefix=$ac_default_prefix 19981# Let make expand exec_prefix. 19982test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19983 19984DEFS=-DHAVE_CONFIG_H 19985 19986ac_libobjs= 19987ac_ltlibobjs= 19988for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19989 # 1. Remove the extension, and $U if already installed. 19990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19991 ac_i=`echo "$ac_i" | sed "$ac_script"` 19992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19993 # will be set to the directory where LIBOBJS objects are built. 19994 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19995 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 19996done 19997LIBOBJS=$ac_libobjs 19998 19999LTLIBOBJS=$ac_ltlibobjs 20000 20001 20002if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 20003 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 20004Usually this means the macro was only invoked conditionally." >&5 20005echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 20006Usually this means the macro was only invoked conditionally." >&2;} 20007 { (exit 1); exit 1; }; } 20008fi 20009if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 20010 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 20011Usually this means the macro was only invoked conditionally." >&5 20012echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 20013Usually this means the macro was only invoked conditionally." >&2;} 20014 { (exit 1); exit 1; }; } 20015fi 20016 20017: ${CONFIG_STATUS=./config.status} 20018ac_clean_files_save=$ac_clean_files 20019ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20020{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20021echo "$as_me: creating $CONFIG_STATUS" >&6;} 20022cat >$CONFIG_STATUS <<_ACEOF 20023#! $SHELL 20024# Generated by $as_me. 20025# Run this file to recreate the current configuration. 20026# Compiler output produced by configure, useful for debugging 20027# configure, is in config.log if it exists. 20028 20029debug=false 20030ac_cs_recheck=false 20031ac_cs_silent=false 20032SHELL=\${CONFIG_SHELL-$SHELL} 20033_ACEOF 20034 20035cat >>$CONFIG_STATUS <<\_ACEOF 20036## --------------------- ## 20037## M4sh Initialization. ## 20038## --------------------- ## 20039 20040# Be Bourne compatible 20041if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20042 emulate sh 20043 NULLCMD=: 20044 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20045 # is contrary to our usage. Disable this feature. 20046 alias -g '${1+"$@"}'='"$@"' 20047 setopt NO_GLOB_SUBST 20048else 20049 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 20050fi 20051BIN_SH=xpg4; export BIN_SH # for Tru64 20052DUALCASE=1; export DUALCASE # for MKS sh 20053 20054 20055# PATH needs CR 20056# Avoid depending upon Character Ranges. 20057as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20058as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20059as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20060as_cr_digits='0123456789' 20061as_cr_alnum=$as_cr_Letters$as_cr_digits 20062 20063# The user is always right. 20064if test "${PATH_SEPARATOR+set}" != set; then 20065 echo "#! /bin/sh" >conf$$.sh 20066 echo "exit 0" >>conf$$.sh 20067 chmod +x conf$$.sh 20068 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20069 PATH_SEPARATOR=';' 20070 else 20071 PATH_SEPARATOR=: 20072 fi 20073 rm -f conf$$.sh 20074fi 20075 20076# Support unset when possible. 20077if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20078 as_unset=unset 20079else 20080 as_unset=false 20081fi 20082 20083 20084# IFS 20085# We need space, tab and new line, in precisely that order. Quoting is 20086# there to prevent editors from complaining about space-tab. 20087# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20088# splitting by setting IFS to empty value.) 20089as_nl=' 20090' 20091IFS=" "" $as_nl" 20092 20093# Find who we are. Look in the path if we contain no directory separator. 20094case $0 in 20095 *[\\/]* ) as_myself=$0 ;; 20096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20097for as_dir in $PATH 20098do 20099 IFS=$as_save_IFS 20100 test -z "$as_dir" && as_dir=. 20101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20102done 20103IFS=$as_save_IFS 20104 20105 ;; 20106esac 20107# We did not find ourselves, most probably we were run as `sh COMMAND' 20108# in which case we are not to be found in the path. 20109if test "x$as_myself" = x; then 20110 as_myself=$0 20111fi 20112if test ! -f "$as_myself"; then 20113 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20114 { (exit 1); exit 1; } 20115fi 20116 20117# Work around bugs in pre-3.0 UWIN ksh. 20118for as_var in ENV MAIL MAILPATH 20119do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20120done 20121PS1='$ ' 20122PS2='> ' 20123PS4='+ ' 20124 20125# NLS nuisances. 20126for as_var in \ 20127 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20128 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20129 LC_TELEPHONE LC_TIME 20130do 20131 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20132 eval $as_var=C; export $as_var 20133 else 20134 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20135 fi 20136done 20137 20138# Required to use basename. 20139if expr a : '\(a\)' >/dev/null 2>&1 && 20140 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20141 as_expr=expr 20142else 20143 as_expr=false 20144fi 20145 20146if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20147 as_basename=basename 20148else 20149 as_basename=false 20150fi 20151 20152 20153# Name of the executable. 20154as_me=`$as_basename -- "$0" || 20155$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20156 X"$0" : 'X\(//\)$' \| \ 20157 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20158echo X/"$0" | 20159 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20160 s//\1/ 20161 q 20162 } 20163 /^X\/\(\/\/\)$/{ 20164 s//\1/ 20165 q 20166 } 20167 /^X\/\(\/\).*/{ 20168 s//\1/ 20169 q 20170 } 20171 s/.*/./; q'` 20172 20173# CDPATH. 20174$as_unset CDPATH 20175 20176 20177 20178 as_lineno_1=$LINENO 20179 as_lineno_2=$LINENO 20180 test "x$as_lineno_1" != "x$as_lineno_2" && 20181 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 20182 20183 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20184 # uniformly replaced by the line number. The first 'sed' inserts a 20185 # line-number line after each line using $LINENO; the second 'sed' 20186 # does the real work. The second script uses 'N' to pair each 20187 # line-number line with the line containing $LINENO, and appends 20188 # trailing '-' during substitution so that $LINENO is not a special 20189 # case at line end. 20190 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20191 # scripts with optimization help from Paolo Bonzini. Blame Lee 20192 # E. McMahon (1931-1989) for sed's syntax. :-) 20193 sed -n ' 20194 p 20195 /[$]LINENO/= 20196 ' <$as_myself | 20197 sed ' 20198 s/[$]LINENO.*/&-/ 20199 t lineno 20200 b 20201 :lineno 20202 N 20203 :loop 20204 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 20205 t loop 20206 s/-\n.*// 20207 ' >$as_me.lineno && 20208 chmod +x "$as_me.lineno" || 20209 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20210 { (exit 1); exit 1; }; } 20211 20212 # Don't try to exec as it changes $[0], causing all sort of problems 20213 # (the dirname of $[0] is not the place where we might find the 20214 # original and so on. Autoconf is especially sensitive to this). 20215 . "./$as_me.lineno" 20216 # Exit status is that of the last command. 20217 exit 20218} 20219 20220 20221if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20222 as_dirname=dirname 20223else 20224 as_dirname=false 20225fi 20226 20227ECHO_C= ECHO_N= ECHO_T= 20228case `echo -n x` in 20229-n*) 20230 case `echo 'x\c'` in 20231 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20232 *) ECHO_C='\c';; 20233 esac;; 20234*) 20235 ECHO_N='-n';; 20236esac 20237 20238if expr a : '\(a\)' >/dev/null 2>&1 && 20239 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20240 as_expr=expr 20241else 20242 as_expr=false 20243fi 20244 20245rm -f conf$$ conf$$.exe conf$$.file 20246if test -d conf$$.dir; then 20247 rm -f conf$$.dir/conf$$.file 20248else 20249 rm -f conf$$.dir 20250 mkdir conf$$.dir 20251fi 20252echo >conf$$.file 20253if ln -s conf$$.file conf$$ 2>/dev/null; then 20254 as_ln_s='ln -s' 20255 # ... but there are two gotchas: 20256 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20257 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20258 # In both cases, we have to default to `cp -p'. 20259 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20260 as_ln_s='cp -p' 20261elif ln conf$$.file conf$$ 2>/dev/null; then 20262 as_ln_s=ln 20263else 20264 as_ln_s='cp -p' 20265fi 20266rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20267rmdir conf$$.dir 2>/dev/null 20268 20269if mkdir -p . 2>/dev/null; then 20270 as_mkdir_p=: 20271else 20272 test -d ./-p && rmdir ./-p 20273 as_mkdir_p=false 20274fi 20275 20276# Find out whether ``test -x'' works. Don't use a zero-byte file, as 20277# systems may use methods other than mode bits to determine executability. 20278cat >conf$$.file <<_ASEOF 20279#! /bin/sh 20280exit 0 20281_ASEOF 20282chmod +x conf$$.file 20283if test -x conf$$.file >/dev/null 2>&1; then 20284 as_executable_p="test -x" 20285else 20286 as_executable_p=: 20287fi 20288rm -f conf$$.file 20289 20290# Sed expression to map a string onto a valid CPP name. 20291as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20292 20293# Sed expression to map a string onto a valid variable name. 20294as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20295 20296 20297exec 6>&1 20298 20299# Save the log message, to keep $[0] and so on meaningful, and to 20300# report actual input values of CONFIG_FILES etc. instead of their 20301# values after options handling. 20302ac_log=" 20303This file was extended by llvm $as_me 2.7svn, which was 20304generated by GNU Autoconf 2.60. Invocation command line was 20305 20306 CONFIG_FILES = $CONFIG_FILES 20307 CONFIG_HEADERS = $CONFIG_HEADERS 20308 CONFIG_LINKS = $CONFIG_LINKS 20309 CONFIG_COMMANDS = $CONFIG_COMMANDS 20310 $ $0 $@ 20311 20312on `(hostname || uname -n) 2>/dev/null | sed 1q` 20313" 20314 20315_ACEOF 20316 20317cat >>$CONFIG_STATUS <<_ACEOF 20318# Files that config.status was made for. 20319config_files="$ac_config_files" 20320config_headers="$ac_config_headers" 20321config_commands="$ac_config_commands" 20322 20323_ACEOF 20324 20325cat >>$CONFIG_STATUS <<\_ACEOF 20326ac_cs_usage="\ 20327\`$as_me' instantiates files from templates according to the 20328current configuration. 20329 20330Usage: $0 [OPTIONS] [FILE]... 20331 20332 -h, --help print this help, then exit 20333 -V, --version print version number, then exit 20334 -q, --quiet do not print progress messages 20335 -d, --debug don't remove temporary files 20336 --recheck update $as_me by reconfiguring in the same conditions 20337 --file=FILE[:TEMPLATE] 20338 instantiate the configuration file FILE 20339 --header=FILE[:TEMPLATE] 20340 instantiate the configuration header FILE 20341 20342Configuration files: 20343$config_files 20344 20345Configuration headers: 20346$config_headers 20347 20348Configuration commands: 20349$config_commands 20350 20351Report bugs to <bug-autoconf@gnu.org>." 20352 20353_ACEOF 20354cat >>$CONFIG_STATUS <<_ACEOF 20355ac_cs_version="\\ 20356llvm config.status 2.7svn 20357configured by $0, generated by GNU Autoconf 2.60, 20358 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20359 20360Copyright (C) 2006 Free Software Foundation, Inc. 20361This config.status script is free software; the Free Software Foundation 20362gives unlimited permission to copy, distribute and modify it." 20363 20364ac_pwd='$ac_pwd' 20365srcdir='$srcdir' 20366INSTALL='$INSTALL' 20367_ACEOF 20368 20369cat >>$CONFIG_STATUS <<\_ACEOF 20370# If no file are specified by the user, then we need to provide default 20371# value. By we need to know if files were specified by the user. 20372ac_need_defaults=: 20373while test $# != 0 20374do 20375 case $1 in 20376 --*=*) 20377 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20379 ac_shift=: 20380 ;; 20381 *) 20382 ac_option=$1 20383 ac_optarg=$2 20384 ac_shift=shift 20385 ;; 20386 esac 20387 20388 case $ac_option in 20389 # Handling of the options. 20390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20391 ac_cs_recheck=: ;; 20392 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20393 echo "$ac_cs_version"; exit ;; 20394 --debug | --debu | --deb | --de | --d | -d ) 20395 debug=: ;; 20396 --file | --fil | --fi | --f ) 20397 $ac_shift 20398 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 20399 ac_need_defaults=false;; 20400 --header | --heade | --head | --hea ) 20401 $ac_shift 20402 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 20403 ac_need_defaults=false;; 20404 --he | --h) 20405 # Conflict between --help and --header 20406 { echo "$as_me: error: ambiguous option: $1 20407Try \`$0 --help' for more information." >&2 20408 { (exit 1); exit 1; }; };; 20409 --help | --hel | -h ) 20410 echo "$ac_cs_usage"; exit ;; 20411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20412 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20413 ac_cs_silent=: ;; 20414 20415 # This is an error. 20416 -*) { echo "$as_me: error: unrecognized option: $1 20417Try \`$0 --help' for more information." >&2 20418 { (exit 1); exit 1; }; } ;; 20419 20420 *) ac_config_targets="$ac_config_targets $1" 20421 ac_need_defaults=false ;; 20422 20423 esac 20424 shift 20425done 20426 20427ac_configure_extra_args= 20428 20429if $ac_cs_silent; then 20430 exec 6>/dev/null 20431 ac_configure_extra_args="$ac_configure_extra_args --silent" 20432fi 20433 20434_ACEOF 20435cat >>$CONFIG_STATUS <<_ACEOF 20436if \$ac_cs_recheck; then 20437 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 20438 CONFIG_SHELL=$SHELL 20439 export CONFIG_SHELL 20440 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20441fi 20442 20443_ACEOF 20444cat >>$CONFIG_STATUS <<\_ACEOF 20445exec 5>>config.log 20446{ 20447 echo 20448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20449## Running $as_me. ## 20450_ASBOX 20451 echo "$ac_log" 20452} >&5 20453 20454_ACEOF 20455cat >>$CONFIG_STATUS <<_ACEOF 20456# 20457# INIT-COMMANDS 20458# 20459llvm_src="${srcdir}" 20460 20461_ACEOF 20462 20463cat >>$CONFIG_STATUS <<\_ACEOF 20464 20465# Handling of arguments. 20466for ac_config_target in $ac_config_targets 20467do 20468 case $ac_config_target in 20469 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;; 20470 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;; 20471 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;; 20472 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;; 20473 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;; 20474 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;; 20475 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;; 20476 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;; 20477 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;; 20478 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;; 20479 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;; 20480 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 20481 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 20482 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;; 20483 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;; 20484 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 20485 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;; 20486 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;; 20487 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;; 20488 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;; 20489 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 20490 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;; 20491 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;; 20492 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;; 20493 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;; 20494 20495 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20496echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20497 { (exit 1); exit 1; }; };; 20498 esac 20499done 20500 20501 20502# If the user did not use the arguments to specify the items to instantiate, 20503# then the envvar interface is used. Set only those that are not. 20504# We use the long form for the default assignment because of an extremely 20505# bizarre bug on SunOS 4.1.3. 20506if $ac_need_defaults; then 20507 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20508 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20509 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20510fi 20511 20512# Have a temporary directory for convenience. Make it in the build tree 20513# simply because there is no reason against having it here, and in addition, 20514# creating and moving files from /tmp can sometimes cause problems. 20515# Hook for its removal unless debugging. 20516# Note that there is a small window in which the directory will not be cleaned: 20517# after its creation but before its name has been assigned to `$tmp'. 20518$debug || 20519{ 20520 tmp= 20521 trap 'exit_status=$? 20522 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 20523' 0 20524 trap '{ (exit 1); exit 1; }' 1 2 13 15 20525} 20526# Create a (secure) tmp directory for tmp files. 20527 20528{ 20529 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20530 test -n "$tmp" && test -d "$tmp" 20531} || 20532{ 20533 tmp=./conf$$-$RANDOM 20534 (umask 077 && mkdir "$tmp") 20535} || 20536{ 20537 echo "$me: cannot create a temporary directory in ." >&2 20538 { (exit 1); exit 1; } 20539} 20540 20541# 20542# Set up the sed scripts for CONFIG_FILES section. 20543# 20544 20545# No need to generate the scripts if there are no CONFIG_FILES. 20546# This happens for instance when ./config.status config.h 20547if test -n "$CONFIG_FILES"; then 20548 20549_ACEOF 20550 20551 20552 20553ac_delim='%!_!# ' 20554for ac_last_try in false false false false false :; do 20555 cat >conf$$subs.sed <<_ACEOF 20556SHELL!$SHELL$ac_delim 20557PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 20558PACKAGE_NAME!$PACKAGE_NAME$ac_delim 20559PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 20560PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 20561PACKAGE_STRING!$PACKAGE_STRING$ac_delim 20562PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 20563exec_prefix!$exec_prefix$ac_delim 20564prefix!$prefix$ac_delim 20565program_transform_name!$program_transform_name$ac_delim 20566bindir!$bindir$ac_delim 20567sbindir!$sbindir$ac_delim 20568libexecdir!$libexecdir$ac_delim 20569datarootdir!$datarootdir$ac_delim 20570datadir!$datadir$ac_delim 20571sysconfdir!$sysconfdir$ac_delim 20572sharedstatedir!$sharedstatedir$ac_delim 20573localstatedir!$localstatedir$ac_delim 20574includedir!$includedir$ac_delim 20575oldincludedir!$oldincludedir$ac_delim 20576docdir!$docdir$ac_delim 20577infodir!$infodir$ac_delim 20578htmldir!$htmldir$ac_delim 20579dvidir!$dvidir$ac_delim 20580pdfdir!$pdfdir$ac_delim 20581psdir!$psdir$ac_delim 20582libdir!$libdir$ac_delim 20583localedir!$localedir$ac_delim 20584mandir!$mandir$ac_delim 20585DEFS!$DEFS$ac_delim 20586ECHO_C!$ECHO_C$ac_delim 20587ECHO_N!$ECHO_N$ac_delim 20588ECHO_T!$ECHO_T$ac_delim 20589LIBS!$LIBS$ac_delim 20590build_alias!$build_alias$ac_delim 20591host_alias!$host_alias$ac_delim 20592target_alias!$target_alias$ac_delim 20593LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim 20594subdirs!$subdirs$ac_delim 20595build!$build$ac_delim 20596build_cpu!$build_cpu$ac_delim 20597build_vendor!$build_vendor$ac_delim 20598build_os!$build_os$ac_delim 20599host!$host$ac_delim 20600host_cpu!$host_cpu$ac_delim 20601host_vendor!$host_vendor$ac_delim 20602host_os!$host_os$ac_delim 20603target!$target$ac_delim 20604target_cpu!$target_cpu$ac_delim 20605target_vendor!$target_vendor$ac_delim 20606target_os!$target_os$ac_delim 20607OS!$OS$ac_delim 20608HOST_OS!$HOST_OS$ac_delim 20609TARGET_OS!$TARGET_OS$ac_delim 20610LINKALL!$LINKALL$ac_delim 20611NOLINKALL!$NOLINKALL$ac_delim 20612LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 20613LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 20614ARCH!$ARCH$ac_delim 20615ENDIAN!$ENDIAN$ac_delim 20616CC!$CC$ac_delim 20617CFLAGS!$CFLAGS$ac_delim 20618LDFLAGS!$LDFLAGS$ac_delim 20619CPPFLAGS!$CPPFLAGS$ac_delim 20620ac_ct_CC!$ac_ct_CC$ac_delim 20621EXEEXT!$EXEEXT$ac_delim 20622OBJEXT!$OBJEXT$ac_delim 20623CPP!$CPP$ac_delim 20624GREP!$GREP$ac_delim 20625EGREP!$EGREP$ac_delim 20626LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 20627BUILD_CC!$BUILD_CC$ac_delim 20628BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 20629BUILD_CXX!$BUILD_CXX$ac_delim 20630CVSBUILD!$CVSBUILD$ac_delim 20631ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 20632ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 20633DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 20634ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 20635EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 20636DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 20637DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 20638JIT!$JIT$ac_delim 20639TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 20640ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 20641ENABLE_THREADS!$ENABLE_THREADS$ac_delim 20642ENABLE_PIC!$ENABLE_PIC$ac_delim 20643TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 20644LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 20645LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 20646LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 20647LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 20648ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim 20649OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 20650EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 20651BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 20652ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim 20653_ACEOF 20654 20655 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 20656 break 20657 elif $ac_last_try; then 20658 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20659echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20660 { (exit 1); exit 1; }; } 20661 else 20662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20663 fi 20664done 20665 20666ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20667if test -n "$ac_eof"; then 20668 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20669 ac_eof=`expr $ac_eof + 1` 20670fi 20671 20672cat >>$CONFIG_STATUS <<_ACEOF 20673cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 20674/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20675_ACEOF 20676sed ' 20677s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20678s/^/s,@/; s/!/@,|#_!!_#|/ 20679:n 20680t n 20681s/'"$ac_delim"'$/,g/; t 20682s/$/\\/; p 20683N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20684' >>$CONFIG_STATUS <conf$$subs.sed 20685rm -f conf$$subs.sed 20686cat >>$CONFIG_STATUS <<_ACEOF 20687CEOF$ac_eof 20688_ACEOF 20689 20690 20691ac_delim='%!_!# ' 20692for ac_last_try in false false false false false :; do 20693 cat >conf$$subs.sed <<_ACEOF 20694ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim 20695CXX!$CXX$ac_delim 20696CXXFLAGS!$CXXFLAGS$ac_delim 20697ac_ct_CXX!$ac_ct_CXX$ac_delim 20698NM!$NM$ac_delim 20699ifGNUmake!$ifGNUmake$ac_delim 20700LN_S!$LN_S$ac_delim 20701CMP!$CMP$ac_delim 20702CP!$CP$ac_delim 20703DATE!$DATE$ac_delim 20704FIND!$FIND$ac_delim 20705MKDIR!$MKDIR$ac_delim 20706MV!$MV$ac_delim 20707RANLIB!$RANLIB$ac_delim 20708AR!$AR$ac_delim 20709RM!$RM$ac_delim 20710SED!$SED$ac_delim 20711TAR!$TAR$ac_delim 20712BINPWD!$BINPWD$ac_delim 20713GRAPHVIZ!$GRAPHVIZ$ac_delim 20714DOT!$DOT$ac_delim 20715FDP!$FDP$ac_delim 20716NEATO!$NEATO$ac_delim 20717TWOPI!$TWOPI$ac_delim 20718CIRCO!$CIRCO$ac_delim 20719GV!$GV$ac_delim 20720DOTTY!$DOTTY$ac_delim 20721PERL!$PERL$ac_delim 20722HAVE_PERL!$HAVE_PERL$ac_delim 20723INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 20724INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 20725INSTALL_DATA!$INSTALL_DATA$ac_delim 20726BZIP2!$BZIP2$ac_delim 20727DOXYGEN!$DOXYGEN$ac_delim 20728GROFF!$GROFF$ac_delim 20729GZIP!$GZIP$ac_delim 20730POD2HTML!$POD2HTML$ac_delim 20731POD2MAN!$POD2MAN$ac_delim 20732RUNTEST!$RUNTEST$ac_delim 20733TCLSH!$TCLSH$ac_delim 20734ZIP!$ZIP$ac_delim 20735OCAMLC!$OCAMLC$ac_delim 20736OCAMLOPT!$OCAMLOPT$ac_delim 20737OCAMLDEP!$OCAMLDEP$ac_delim 20738OCAMLDOC!$OCAMLDOC$ac_delim 20739GAS!$GAS$ac_delim 20740INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 20741INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 20742CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 20743CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 20744LIBADD_DL!$LIBADD_DL$ac_delim 20745LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim 20746LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim 20747LLVMGCC!$LLVMGCC$ac_delim 20748LLVMGXX!$LLVMGXX$ac_delim 20749NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 20750NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 20751USE_UDIS86!$USE_UDIS86$ac_delim 20752USE_OPROFILE!$USE_OPROFILE$ac_delim 20753HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 20754HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 20755MMAP_FILE!$MMAP_FILE$ac_delim 20756LLVMCC1!$LLVMCC1$ac_delim 20757LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim 20758LLVMGCCDIR!$LLVMGCCDIR$ac_delim 20759LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim 20760SHLIBEXT!$SHLIBEXT$ac_delim 20761LLVM_PREFIX!$LLVM_PREFIX$ac_delim 20762LLVM_BINDIR!$LLVM_BINDIR$ac_delim 20763LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim 20764LLVM_DATADIR!$LLVM_DATADIR$ac_delim 20765LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 20766LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 20767LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 20768LLVM_INFODIR!$LLVM_INFODIR$ac_delim 20769LLVM_MANDIR!$LLVM_MANDIR$ac_delim 20770LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 20771BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 20772ALL_BINDINGS!$ALL_BINDINGS$ac_delim 20773OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 20774ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 20775RPATH!$RPATH$ac_delim 20776RDYNAMIC!$RDYNAMIC$ac_delim 20777LIBOBJS!$LIBOBJS$ac_delim 20778LTLIBOBJS!$LTLIBOBJS$ac_delim 20779_ACEOF 20780 20781 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then 20782 break 20783 elif $ac_last_try; then 20784 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 20785echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 20786 { (exit 1); exit 1; }; } 20787 else 20788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20789 fi 20790done 20791 20792ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 20793if test -n "$ac_eof"; then 20794 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 20795 ac_eof=`expr $ac_eof + 1` 20796fi 20797 20798cat >>$CONFIG_STATUS <<_ACEOF 20799cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 20800/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 20801_ACEOF 20802sed ' 20803s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 20804s/^/s,@/; s/!/@,|#_!!_#|/ 20805:n 20806t n 20807s/'"$ac_delim"'$/,g/; t 20808s/$/\\/; p 20809N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 20810' >>$CONFIG_STATUS <conf$$subs.sed 20811rm -f conf$$subs.sed 20812cat >>$CONFIG_STATUS <<_ACEOF 20813:end 20814s/|#_!!_#|//g 20815CEOF$ac_eof 20816_ACEOF 20817 20818 20819# VPATH may cause trouble with some makes, so we remove $(srcdir), 20820# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 20821# trailing colons and then remove the whole line if VPATH becomes empty 20822# (actually we leave an empty line to preserve line numbers). 20823if test "x$srcdir" = x.; then 20824 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 20825s/:*\$(srcdir):*/:/ 20826s/:*\${srcdir}:*/:/ 20827s/:*@srcdir@:*/:/ 20828s/^\([^=]*=[ ]*\):*/\1/ 20829s/:*$// 20830s/^[^=]*=[ ]*$// 20831}' 20832fi 20833 20834cat >>$CONFIG_STATUS <<\_ACEOF 20835fi # test -n "$CONFIG_FILES" 20836 20837 20838for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 20839do 20840 case $ac_tag in 20841 :[FHLC]) ac_mode=$ac_tag; continue;; 20842 esac 20843 case $ac_mode$ac_tag in 20844 :[FHL]*:*);; 20845 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 20846echo "$as_me: error: Invalid tag $ac_tag." >&2;} 20847 { (exit 1); exit 1; }; };; 20848 :[FH]-) ac_tag=-:-;; 20849 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20850 esac 20851 ac_save_IFS=$IFS 20852 IFS=: 20853 set x $ac_tag 20854 IFS=$ac_save_IFS 20855 shift 20856 ac_file=$1 20857 shift 20858 20859 case $ac_mode in 20860 :L) ac_source=$1;; 20861 :[FH]) 20862 ac_file_inputs= 20863 for ac_f 20864 do 20865 case $ac_f in 20866 -) ac_f="$tmp/stdin";; 20867 *) # Look for the file first in the build tree, then in the source tree 20868 # (if the path is not absolute). The absolute path cannot be DOS-style, 20869 # because $ac_f cannot contain `:'. 20870 test -f "$ac_f" || 20871 case $ac_f in 20872 [\\/$]*) false;; 20873 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20874 esac || 20875 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 20876echo "$as_me: error: cannot find input file: $ac_f" >&2;} 20877 { (exit 1); exit 1; }; };; 20878 esac 20879 ac_file_inputs="$ac_file_inputs $ac_f" 20880 done 20881 20882 # Let's still pretend it is `configure' which instantiates (i.e., don't 20883 # use $as_me), people would be surprised to read: 20884 # /* config.h. Generated by config.status. */ 20885 configure_input="Generated from "`IFS=: 20886 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 20887 if test x"$ac_file" != x-; then 20888 configure_input="$ac_file. $configure_input" 20889 { echo "$as_me:$LINENO: creating $ac_file" >&5 20890echo "$as_me: creating $ac_file" >&6;} 20891 fi 20892 20893 case $ac_tag in 20894 *:-:* | *:-) cat >"$tmp/stdin";; 20895 esac 20896 ;; 20897 esac 20898 20899 ac_dir=`$as_dirname -- "$ac_file" || 20900$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20901 X"$ac_file" : 'X\(//\)[^/]' \| \ 20902 X"$ac_file" : 'X\(//\)$' \| \ 20903 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20904echo X"$ac_file" | 20905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20906 s//\1/ 20907 q 20908 } 20909 /^X\(\/\/\)[^/].*/{ 20910 s//\1/ 20911 q 20912 } 20913 /^X\(\/\/\)$/{ 20914 s//\1/ 20915 q 20916 } 20917 /^X\(\/\).*/{ 20918 s//\1/ 20919 q 20920 } 20921 s/.*/./; q'` 20922 { as_dir="$ac_dir" 20923 case $as_dir in #( 20924 -*) as_dir=./$as_dir;; 20925 esac 20926 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 20927 as_dirs= 20928 while :; do 20929 case $as_dir in #( 20930 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 20931 *) as_qdir=$as_dir;; 20932 esac 20933 as_dirs="'$as_qdir' $as_dirs" 20934 as_dir=`$as_dirname -- "$as_dir" || 20935$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20936 X"$as_dir" : 'X\(//\)[^/]' \| \ 20937 X"$as_dir" : 'X\(//\)$' \| \ 20938 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20939echo X"$as_dir" | 20940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20941 s//\1/ 20942 q 20943 } 20944 /^X\(\/\/\)[^/].*/{ 20945 s//\1/ 20946 q 20947 } 20948 /^X\(\/\/\)$/{ 20949 s//\1/ 20950 q 20951 } 20952 /^X\(\/\).*/{ 20953 s//\1/ 20954 q 20955 } 20956 s/.*/./; q'` 20957 test -d "$as_dir" && break 20958 done 20959 test -z "$as_dirs" || eval "mkdir $as_dirs" 20960 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 20961echo "$as_me: error: cannot create directory $as_dir" >&2;} 20962 { (exit 1); exit 1; }; }; } 20963 ac_builddir=. 20964 20965case "$ac_dir" in 20966.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20967*) 20968 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20969 # A ".." for each directory in $ac_dir_suffix. 20970 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 20971 case $ac_top_builddir_sub in 20972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20974 esac ;; 20975esac 20976ac_abs_top_builddir=$ac_pwd 20977ac_abs_builddir=$ac_pwd$ac_dir_suffix 20978# for backward compatibility: 20979ac_top_builddir=$ac_top_build_prefix 20980 20981case $srcdir in 20982 .) # We are building in place. 20983 ac_srcdir=. 20984 ac_top_srcdir=$ac_top_builddir_sub 20985 ac_abs_top_srcdir=$ac_pwd ;; 20986 [\\/]* | ?:[\\/]* ) # Absolute name. 20987 ac_srcdir=$srcdir$ac_dir_suffix; 20988 ac_top_srcdir=$srcdir 20989 ac_abs_top_srcdir=$srcdir ;; 20990 *) # Relative name. 20991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20992 ac_top_srcdir=$ac_top_build_prefix$srcdir 20993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20994esac 20995ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20996 20997 20998 case $ac_mode in 20999 :F) 21000 # 21001 # CONFIG_FILE 21002 # 21003 21004 case $INSTALL in 21005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21006 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21007 esac 21008_ACEOF 21009 21010cat >>$CONFIG_STATUS <<\_ACEOF 21011# If the template does not know about datarootdir, expand it. 21012# FIXME: This hack should be removed a few years after 2.60. 21013ac_datarootdir_hack=; ac_datarootdir_seen= 21014 21015case `sed -n '/datarootdir/ { 21016 p 21017 q 21018} 21019/@datadir@/p 21020/@docdir@/p 21021/@infodir@/p 21022/@localedir@/p 21023/@mandir@/p 21024' $ac_file_inputs` in 21025*datarootdir*) ac_datarootdir_seen=yes;; 21026*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21027 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21028echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21029_ACEOF 21030cat >>$CONFIG_STATUS <<_ACEOF 21031 ac_datarootdir_hack=' 21032 s&@datadir@&$datadir&g 21033 s&@docdir@&$docdir&g 21034 s&@infodir@&$infodir&g 21035 s&@localedir@&$localedir&g 21036 s&@mandir@&$mandir&g 21037 s&\\\${datarootdir}&$datarootdir&g' ;; 21038esac 21039_ACEOF 21040 21041# Neutralize VPATH when `$srcdir' = `.'. 21042# Shell code in configure.ac might set extrasub. 21043# FIXME: do we really want to maintain this feature? 21044cat >>$CONFIG_STATUS <<_ACEOF 21045 sed "$ac_vpsub 21046$extrasub 21047_ACEOF 21048cat >>$CONFIG_STATUS <<\_ACEOF 21049:t 21050/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21051s&@configure_input@&$configure_input&;t t 21052s&@top_builddir@&$ac_top_builddir_sub&;t t 21053s&@srcdir@&$ac_srcdir&;t t 21054s&@abs_srcdir@&$ac_abs_srcdir&;t t 21055s&@top_srcdir@&$ac_top_srcdir&;t t 21056s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21057s&@builddir@&$ac_builddir&;t t 21058s&@abs_builddir@&$ac_abs_builddir&;t t 21059s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21060s&@INSTALL@&$ac_INSTALL&;t t 21061$ac_datarootdir_hack 21062" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21063 21064test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21065 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21067 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21068which seems to be undefined. Please make sure it is defined." >&5 21069echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21070which seems to be undefined. Please make sure it is defined." >&2;} 21071 21072 rm -f "$tmp/stdin" 21073 case $ac_file in 21074 -) cat "$tmp/out"; rm -f "$tmp/out";; 21075 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21076 esac 21077 ;; 21078 :H) 21079 # 21080 # CONFIG_HEADER 21081 # 21082_ACEOF 21083 21084# Transform confdefs.h into a sed script `conftest.defines', that 21085# substitutes the proper values into config.h.in to produce config.h. 21086rm -f conftest.defines conftest.tail 21087# First, append a space to every undef/define line, to ease matching. 21088echo 's/$/ /' >conftest.defines 21089# Then, protect against being on the right side of a sed subst, or in 21090# an unquoted here document, in config.status. If some macros were 21091# called several times there might be several #defines for the same 21092# symbol, which is useless. But do not sort them, since the last 21093# AC_DEFINE must be honored. 21094ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21095# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 21096# NAME is the cpp macro being defined, VALUE is the value it is being given. 21097# PARAMS is the parameter list in the macro definition--in most cases, it's 21098# just an empty string. 21099ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 21100ac_dB='\\)[ (].*,\\1define\\2' 21101ac_dC=' ' 21102ac_dD=' ,' 21103 21104uniq confdefs.h | 21105 sed -n ' 21106 t rset 21107 :rset 21108 s/^[ ]*#[ ]*define[ ][ ]*// 21109 t ok 21110 d 21111 :ok 21112 s/[\\&,]/\\&/g 21113 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 21114 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 21115 ' >>conftest.defines 21116 21117# Remove the space that was appended to ease matching. 21118# Then replace #undef with comments. This is necessary, for 21119# example, in the case of _POSIX_SOURCE, which is predefined and required 21120# on some systems where configure will not decide to define it. 21121# (The regexp can be short, since the line contains either #define or #undef.) 21122echo 's/ $// 21123s,^[ #]*u.*,/* & */,' >>conftest.defines 21124 21125# Break up conftest.defines: 21126ac_max_sed_lines=50 21127 21128# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 21129# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 21130# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 21131# et cetera. 21132ac_in='$ac_file_inputs' 21133ac_out='"$tmp/out1"' 21134ac_nxt='"$tmp/out2"' 21135 21136while : 21137do 21138 # Write a here document: 21139 cat >>$CONFIG_STATUS <<_ACEOF 21140 # First, check the format of the line: 21141 cat >"\$tmp/defines.sed" <<\\CEOF 21142/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 21143/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 21144b 21145:def 21146_ACEOF 21147 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 21148 echo 'CEOF 21149 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 21150 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 21151 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 21152 grep . conftest.tail >/dev/null || break 21153 rm -f conftest.defines 21154 mv conftest.tail conftest.defines 21155done 21156rm -f conftest.defines conftest.tail 21157 21158echo "ac_result=$ac_in" >>$CONFIG_STATUS 21159cat >>$CONFIG_STATUS <<\_ACEOF 21160 if test x"$ac_file" != x-; then 21161 echo "/* $configure_input */" >"$tmp/config.h" 21162 cat "$ac_result" >>"$tmp/config.h" 21163 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 21164 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21165echo "$as_me: $ac_file is unchanged" >&6;} 21166 else 21167 rm -f $ac_file 21168 mv "$tmp/config.h" $ac_file 21169 fi 21170 else 21171 echo "/* $configure_input */" 21172 cat "$ac_result" 21173 fi 21174 rm -f "$tmp/out12" 21175 ;; 21176 21177 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 21178echo "$as_me: executing $ac_file commands" >&6;} 21179 ;; 21180 esac 21181 21182 21183 case $ac_file$ac_mode in 21184 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 21185 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 21186 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common` 21187 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;; 21188 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile` 21189 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;; 21190 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 21191 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 21192 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile` 21193 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;; 21194 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile` 21195 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;; 21196 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests` 21197 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;; 21198 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile` 21199 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;; 21200 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 21201 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 21202 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile` 21203 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;; 21204 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile` 21205 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;; 21206 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile` 21207 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;; 21208 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml` 21209 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;; 21210 21211 esac 21212done # for ac_tag 21213 21214 21215{ (exit 0); exit 0; } 21216_ACEOF 21217chmod +x $CONFIG_STATUS 21218ac_clean_files=$ac_clean_files_save 21219 21220 21221# configure is writing to config.log, and then calls config.status. 21222# config.status does its own redirection, appending to config.log. 21223# Unfortunately, on DOS this fails, as config.log is still kept open 21224# by configure, so config.status won't be able to write to it; its 21225# output is simply discarded. So we exec the FD to /dev/null, 21226# effectively closing config.log, so it can be properly (re)opened and 21227# appended to by config.status. When coming back to configure, we 21228# need to make the FD available again. 21229if test "$no_create" != yes; then 21230 ac_cs_success=: 21231 ac_config_status_args= 21232 test "$silent" = yes && 21233 ac_config_status_args="$ac_config_status_args --quiet" 21234 exec 5>/dev/null 21235 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21236 exec 5>>config.log 21237 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21238 # would make configure fail if this is the last instruction. 21239 $ac_cs_success || { (exit 1); exit 1; } 21240fi 21241 21242# 21243# CONFIG_SUBDIRS section. 21244# 21245if test "$no_recursion" != yes; then 21246 21247 # Remove --cache-file and --srcdir arguments so they do not pile up. 21248 ac_sub_configure_args= 21249 ac_prev= 21250 eval "set x $ac_configure_args" 21251 shift 21252 for ac_arg 21253 do 21254 if test -n "$ac_prev"; then 21255 ac_prev= 21256 continue 21257 fi 21258 case $ac_arg in 21259 -cache-file | --cache-file | --cache-fil | --cache-fi \ 21260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 21261 ac_prev=cache_file ;; 21262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 21263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 21264 | --c=*) 21265 ;; 21266 --config-cache | -C) 21267 ;; 21268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 21269 ac_prev=srcdir ;; 21270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 21271 ;; 21272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 21273 ac_prev=prefix ;; 21274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 21275 ;; 21276 *) 21277 case $ac_arg in 21278 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 21279 esac 21280 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 21281 esac 21282 done 21283 21284 # Always prepend --prefix to ensure using the same prefix 21285 # in subdir configurations. 21286 ac_arg="--prefix=$prefix" 21287 case $ac_arg in 21288 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 21289 esac 21290 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 21291 21292 ac_popdir=`pwd` 21293 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 21294 21295 # Do not complain, so a configure script can configure whichever 21296 # parts of a large source tree are present. 21297 test -d "$srcdir/$ac_dir" || continue 21298 21299 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 21300 echo "$as_me:$LINENO: $ac_msg" >&5 21301 echo "$ac_msg" >&6 21302 { as_dir="$ac_dir" 21303 case $as_dir in #( 21304 -*) as_dir=./$as_dir;; 21305 esac 21306 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21307 as_dirs= 21308 while :; do 21309 case $as_dir in #( 21310 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21311 *) as_qdir=$as_dir;; 21312 esac 21313 as_dirs="'$as_qdir' $as_dirs" 21314 as_dir=`$as_dirname -- "$as_dir" || 21315$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21316 X"$as_dir" : 'X\(//\)[^/]' \| \ 21317 X"$as_dir" : 'X\(//\)$' \| \ 21318 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21319echo X"$as_dir" | 21320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21321 s//\1/ 21322 q 21323 } 21324 /^X\(\/\/\)[^/].*/{ 21325 s//\1/ 21326 q 21327 } 21328 /^X\(\/\/\)$/{ 21329 s//\1/ 21330 q 21331 } 21332 /^X\(\/\).*/{ 21333 s//\1/ 21334 q 21335 } 21336 s/.*/./; q'` 21337 test -d "$as_dir" && break 21338 done 21339 test -z "$as_dirs" || eval "mkdir $as_dirs" 21340 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21341echo "$as_me: error: cannot create directory $as_dir" >&2;} 21342 { (exit 1); exit 1; }; }; } 21343 ac_builddir=. 21344 21345case "$ac_dir" in 21346.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21347*) 21348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21349 # A ".." for each directory in $ac_dir_suffix. 21350 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21351 case $ac_top_builddir_sub in 21352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21354 esac ;; 21355esac 21356ac_abs_top_builddir=$ac_pwd 21357ac_abs_builddir=$ac_pwd$ac_dir_suffix 21358# for backward compatibility: 21359ac_top_builddir=$ac_top_build_prefix 21360 21361case $srcdir in 21362 .) # We are building in place. 21363 ac_srcdir=. 21364 ac_top_srcdir=$ac_top_builddir_sub 21365 ac_abs_top_srcdir=$ac_pwd ;; 21366 [\\/]* | ?:[\\/]* ) # Absolute name. 21367 ac_srcdir=$srcdir$ac_dir_suffix; 21368 ac_top_srcdir=$srcdir 21369 ac_abs_top_srcdir=$srcdir ;; 21370 *) # Relative name. 21371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21372 ac_top_srcdir=$ac_top_build_prefix$srcdir 21373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21374esac 21375ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21376 21377 21378 cd "$ac_dir" 21379 21380 # Check for guested configure; otherwise get Cygnus style configure. 21381 if test -f "$ac_srcdir/configure.gnu"; then 21382 ac_sub_configure=$ac_srcdir/configure.gnu 21383 elif test -f "$ac_srcdir/configure"; then 21384 ac_sub_configure=$ac_srcdir/configure 21385 elif test -f "$ac_srcdir/configure.in"; then 21386 # This should be Cygnus configure. 21387 ac_sub_configure=$ac_aux_dir/configure 21388 else 21389 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 21390echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 21391 ac_sub_configure= 21392 fi 21393 21394 # The recursion is here. 21395 if test -n "$ac_sub_configure"; then 21396 # Make the cache file name correct relative to the subdirectory. 21397 case $cache_file in 21398 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 21399 *) # Relative name. 21400 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 21401 esac 21402 21403 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 21404echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 21405 # The eval makes quoting arguments work. 21406 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 21407 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 21408 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 21409echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 21410 { (exit 1); exit 1; }; } 21411 fi 21412 21413 cd "$ac_popdir" 21414 done 21415fi 21416 21417