1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for [SAMPLE] [x.xx]. 4# 5# Report bugs to <bugs@yourdomain>. 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## M4sh Initialization. ## 13## --------------------- ## 14 15# Be Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 25fi 26BIN_SH=xpg4; export BIN_SH # for Tru64 27DUALCASE=1; export DUALCASE # for MKS sh 28 29 30# PATH needs CR 31# Avoid depending upon Character Ranges. 32as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35as_cr_digits='0123456789' 36as_cr_alnum=$as_cr_Letters$as_cr_digits 37 38# The user is always right. 39if test "${PATH_SEPARATOR+set}" != set; then 40 echo "#! /bin/sh" >conf$$.sh 41 echo "exit 0" >>conf$$.sh 42 chmod +x conf$$.sh 43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 44 PATH_SEPARATOR=';' 45 else 46 PATH_SEPARATOR=: 47 fi 48 rm -f conf$$.sh 49fi 50 51# Support unset when possible. 52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 53 as_unset=unset 54else 55 as_unset=false 56fi 57 58 59# IFS 60# We need space, tab and new line, in precisely that order. Quoting is 61# there to prevent editors from complaining about space-tab. 62# (If _AS_PATH_WALK were called with IFS unset, it would disable word 63# splitting by setting IFS to empty value.) 64as_nl=' 65' 66IFS=" "" $as_nl" 67 68# Find who we are. Look in the path if we contain no directory separator. 69case $0 in 70 *[\\/]* ) as_myself=$0 ;; 71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 72for as_dir in $PATH 73do 74 IFS=$as_save_IFS 75 test -z "$as_dir" && as_dir=. 76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 77done 78IFS=$as_save_IFS 79 80 ;; 81esac 82# We did not find ourselves, most probably we were run as `sh COMMAND' 83# in which case we are not to be found in the path. 84if test "x$as_myself" = x; then 85 as_myself=$0 86fi 87if test ! -f "$as_myself"; then 88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 89 { (exit 1); exit 1; } 90fi 91 92# Work around bugs in pre-3.0 UWIN ksh. 93for as_var in ENV MAIL MAILPATH 94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 95done 96PS1='$ ' 97PS2='> ' 98PS4='+ ' 99 100# NLS nuisances. 101for as_var in \ 102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 104 LC_TELEPHONE LC_TIME 105do 106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 107 eval $as_var=C; export $as_var 108 else 109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 110 fi 111done 112 113# Required to use basename. 114if expr a : '\(a\)' >/dev/null 2>&1 && 115 test "X`expr 00001 : '.*\(...\)'`" = X001; then 116 as_expr=expr 117else 118 as_expr=false 119fi 120 121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 122 as_basename=basename 123else 124 as_basename=false 125fi 126 127 128# Name of the executable. 129as_me=`$as_basename -- "$0" || 130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 131 X"$0" : 'X\(//\)$' \| \ 132 X"$0" : 'X\(/\)' \| . 2>/dev/null || 133echo X/"$0" | 134 sed '/^.*\/\([^/][^/]*\)\/*$/{ 135 s//\1/ 136 q 137 } 138 /^X\/\(\/\/\)$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\).*/{ 143 s//\1/ 144 q 145 } 146 s/.*/./; q'` 147 148# CDPATH. 149$as_unset CDPATH 150 151 152if test "x$CONFIG_SHELL" = x; then 153 if (eval ":") 2>/dev/null; then 154 as_have_required=yes 155else 156 as_have_required=no 157fi 158 159 if test $as_have_required = yes && (eval ": 160(as_func_return () { 161 (exit \$1) 162} 163as_func_success () { 164 as_func_return 0 165} 166as_func_failure () { 167 as_func_return 1 168} 169as_func_ret_success () { 170 return 0 171} 172as_func_ret_failure () { 173 return 1 174} 175 176exitcode=0 177if as_func_success; then 178 : 179else 180 exitcode=1 181 echo as_func_success failed. 182fi 183 184if as_func_failure; then 185 exitcode=1 186 echo as_func_failure succeeded. 187fi 188 189if as_func_ret_success; then 190 : 191else 192 exitcode=1 193 echo as_func_ret_success failed. 194fi 195 196if as_func_ret_failure; then 197 exitcode=1 198 echo as_func_ret_failure succeeded. 199fi 200 201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 202 : 203else 204 exitcode=1 205 echo positional parameters were not saved. 206fi 207 208test \$exitcode = 0) || { (exit 1); exit 1; } 209 210( 211 as_lineno_1=\$LINENO 212 as_lineno_2=\$LINENO 213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 215") 2> /dev/null; then 216 : 217else 218 as_candidate_shells= 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 case $as_dir in 225 /*) 226 for as_base in sh bash ksh sh5; do 227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 228 done;; 229 esac 230done 231IFS=$as_save_IFS 232 233 234 for as_shell in $as_candidate_shells $SHELL; do 235 # Try only shells that exist, to save several forks. 236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 237 { ("$as_shell") 2> /dev/null <<\_ASEOF 238# Be Bourne compatible 239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 240 emulate sh 241 NULLCMD=: 242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 243 # is contrary to our usage. Disable this feature. 244 alias -g '${1+"$@"}'='"$@"' 245 setopt NO_GLOB_SUBST 246else 247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 248fi 249BIN_SH=xpg4; export BIN_SH # for Tru64 250DUALCASE=1; export DUALCASE # for MKS sh 251 252: 253_ASEOF 254}; then 255 CONFIG_SHELL=$as_shell 256 as_have_required=yes 257 if { "$as_shell" 2> /dev/null <<\_ASEOF 258# Be Bourne compatible 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 268fi 269BIN_SH=xpg4; export BIN_SH # for Tru64 270DUALCASE=1; export DUALCASE # for MKS sh 271 272: 273(as_func_return () { 274 (exit $1) 275} 276as_func_success () { 277 as_func_return 0 278} 279as_func_failure () { 280 as_func_return 1 281} 282as_func_ret_success () { 283 return 0 284} 285as_func_ret_failure () { 286 return 1 287} 288 289exitcode=0 290if as_func_success; then 291 : 292else 293 exitcode=1 294 echo as_func_success failed. 295fi 296 297if as_func_failure; then 298 exitcode=1 299 echo as_func_failure succeeded. 300fi 301 302if as_func_ret_success; then 303 : 304else 305 exitcode=1 306 echo as_func_ret_success failed. 307fi 308 309if as_func_ret_failure; then 310 exitcode=1 311 echo as_func_ret_failure succeeded. 312fi 313 314if ( set x; as_func_ret_success y && test x = "$1" ); then 315 : 316else 317 exitcode=1 318 echo positional parameters were not saved. 319fi 320 321test $exitcode = 0) || { (exit 1); exit 1; } 322 323( 324 as_lineno_1=$LINENO 325 as_lineno_2=$LINENO 326 test "x$as_lineno_1" != "x$as_lineno_2" && 327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 328 329_ASEOF 330}; then 331 break 332fi 333 334fi 335 336 done 337 338 if test "x$CONFIG_SHELL" != x; then 339 for as_var in BASH_ENV ENV 340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 341 done 342 export CONFIG_SHELL 343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 344fi 345 346 347 if test $as_have_required = no; then 348 echo This script requires a shell more modern than all the 349 echo shells that I found on your system. Please install a 350 echo modern shell, or manually run the script under such a 351 echo shell if you do have one. 352 { (exit 1); exit 1; } 353fi 354 355 356fi 357 358fi 359 360 361 362(eval "as_func_return () { 363 (exit \$1) 364} 365as_func_success () { 366 as_func_return 0 367} 368as_func_failure () { 369 as_func_return 1 370} 371as_func_ret_success () { 372 return 0 373} 374as_func_ret_failure () { 375 return 1 376} 377 378exitcode=0 379if as_func_success; then 380 : 381else 382 exitcode=1 383 echo as_func_success failed. 384fi 385 386if as_func_failure; then 387 exitcode=1 388 echo as_func_failure succeeded. 389fi 390 391if as_func_ret_success; then 392 : 393else 394 exitcode=1 395 echo as_func_ret_success failed. 396fi 397 398if as_func_ret_failure; then 399 exitcode=1 400 echo as_func_ret_failure succeeded. 401fi 402 403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 404 : 405else 406 exitcode=1 407 echo positional parameters were not saved. 408fi 409 410test \$exitcode = 0") || { 411 echo No shell found that supports shell functions. 412 echo Please tell autoconf@gnu.org about your system, 413 echo including any error possibly output before this 414 echo message 415} 416 417 418 419 as_lineno_1=$LINENO 420 as_lineno_2=$LINENO 421 test "x$as_lineno_1" != "x$as_lineno_2" && 422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 423 424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 425 # uniformly replaced by the line number. The first 'sed' inserts a 426 # line-number line after each line using $LINENO; the second 'sed' 427 # does the real work. The second script uses 'N' to pair each 428 # line-number line with the line containing $LINENO, and appends 429 # trailing '-' during substitution so that $LINENO is not a special 430 # case at line end. 431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 432 # scripts with optimization help from Paolo Bonzini. Blame Lee 433 # E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 451 { (exit 1); exit 1; }; } 452 453 # Don't try to exec as it changes $[0], causing all sort of problems 454 # (the dirname of $[0] is not the place where we might find the 455 # original and so on. Autoconf is especially sensitive to this). 456 . "./$as_me.lineno" 457 # Exit status is that of the last command. 458 exit 459} 460 461 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464else 465 as_dirname=false 466fi 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in 470-n*) 471 case `echo 'x\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 *) ECHO_C='\c';; 474 esac;; 475*) 476 ECHO_N='-n';; 477esac 478 479if expr a : '\(a\)' >/dev/null 2>&1 && 480 test "X`expr 00001 : '.*\(...\)'`" = X001; then 481 as_expr=expr 482else 483 as_expr=false 484fi 485 486rm -f conf$$ conf$$.exe conf$$.file 487if test -d conf$$.dir; then 488 rm -f conf$$.dir/conf$$.file 489else 490 rm -f conf$$.dir 491 mkdir conf$$.dir 492fi 493echo >conf$$.file 494if ln -s conf$$.file conf$$ 2>/dev/null; then 495 as_ln_s='ln -s' 496 # ... but there are two gotchas: 497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 499 # In both cases, we have to default to `cp -p'. 500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 501 as_ln_s='cp -p' 502elif ln conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s=ln 504else 505 as_ln_s='cp -p' 506fi 507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 508rmdir conf$$.dir 2>/dev/null 509 510if mkdir -p . 2>/dev/null; then 511 as_mkdir_p=: 512else 513 test -d ./-p && rmdir ./-p 514 as_mkdir_p=false 515fi 516 517# Find out whether ``test -x'' works. Don't use a zero-byte file, as 518# systems may use methods other than mode bits to determine executability. 519cat >conf$$.file <<_ASEOF 520#! /bin/sh 521exit 0 522_ASEOF 523chmod +x conf$$.file 524if test -x conf$$.file >/dev/null 2>&1; then 525 as_executable_p="test -x" 526else 527 as_executable_p=: 528fi 529rm -f conf$$.file 530 531# Sed expression to map a string onto a valid CPP name. 532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 533 534# Sed expression to map a string onto a valid variable name. 535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 536 537 538 539exec 7<&0 </dev/null 6>&1 540 541# Name of the host. 542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 543# so uname gets run too. 544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 545 546# 547# Initializations. 548# 549ac_default_prefix=/usr/local 550ac_clean_files= 551ac_config_libobj_dir=. 552LIBOBJS= 553cross_compiling=no 554subdirs= 555MFLAGS= 556MAKEFLAGS= 557SHELL=${CONFIG_SHELL-/bin/sh} 558 559# Identity of this package. 560PACKAGE_NAME='[SAMPLE]' 561PACKAGE_TARNAME='--sample--' 562PACKAGE_VERSION='[x.xx]' 563PACKAGE_STRING='[SAMPLE] [x.xx]' 564PACKAGE_BUGREPORT='bugs@yourdomain' 565 566ac_unique_file=""Makefile.common.in"" 567# Factoring default headers for most tests. 568ac_includes_default="\ 569#include <stdio.h> 570#if HAVE_SYS_TYPES_H 571# include <sys/types.h> 572#endif 573#if HAVE_SYS_STAT_H 574# include <sys/stat.h> 575#endif 576#if STDC_HEADERS 577# include <stdlib.h> 578# include <stddef.h> 579#else 580# if HAVE_STDLIB_H 581# include <stdlib.h> 582# endif 583#endif 584#if HAVE_STRING_H 585# if !STDC_HEADERS && HAVE_MEMORY_H 586# include <memory.h> 587# endif 588# include <string.h> 589#endif 590#if HAVE_STRINGS_H 591# include <strings.h> 592#endif 593#if HAVE_INTTYPES_H 594# include <inttypes.h> 595#endif 596#if HAVE_STDINT_H 597# include <stdint.h> 598#endif 599#if HAVE_UNISTD_H 600# include <unistd.h> 601#endif" 602 603ac_subst_vars='SHELL 604PATH_SEPARATOR 605PACKAGE_NAME 606PACKAGE_TARNAME 607PACKAGE_VERSION 608PACKAGE_STRING 609PACKAGE_BUGREPORT 610exec_prefix 611prefix 612program_transform_name 613bindir 614sbindir 615libexecdir 616datarootdir 617datadir 618sysconfdir 619sharedstatedir 620localstatedir 621includedir 622oldincludedir 623docdir 624infodir 625htmldir 626dvidir 627pdfdir 628psdir 629libdir 630localedir 631mandir 632DEFS 633ECHO_C 634ECHO_N 635ECHO_T 636LIBS 637build_alias 638host_alias 639target_alias 640LLVM_SRC 641LLVM_OBJ 642LLVM_VERSION 643CC 644CFLAGS 645LDFLAGS 646CPPFLAGS 647ac_ct_CC 648EXEEXT 649OBJEXT 650CXX 651CXXFLAGS 652ac_ct_CXX 653CPP 654ENABLE_POLLY 655LLVM_HAS_POLLY 656subdirs 657build 658build_cpu 659build_vendor 660build_os 661host 662host_cpu 663host_vendor 664host_os 665target 666target_cpu 667target_vendor 668target_os 669OS 670HOST_OS 671TARGET_OS 672LINKALL 673NOLINKALL 674LLVM_ON_UNIX 675LLVM_ON_WIN32 676ARCH 677ENDIAN 678GREP 679EGREP 680LLVM_CROSS_COMPILING 681BUILD_CC 682BUILD_EXEEXT 683BUILD_CXX 684CVSBUILD 685ENABLE_LIBCPP 686ENABLE_CXX11 687ENABLE_OPTIMIZED 688ENABLE_PROFILING 689DISABLE_ASSERTIONS 690ENABLE_WERROR 691ENABLE_EXPENSIVE_CHECKS 692EXPENSIVE_CHECKS 693DEBUG_RUNTIME 694DEBUG_SYMBOLS 695JIT 696TARGET_HAS_JIT 697ENABLE_DOCS 698ENABLE_DOXYGEN 699ENABLE_THREADS 700ENABLE_PTHREADS 701ENABLE_PIC 702ENABLE_SHARED 703ENABLE_EMBED_STDCXX 704ENABLE_TIMESTAMPS 705TARGETS_TO_BUILD 706LLVM_ENUM_TARGETS 707LLVM_ENUM_ASM_PRINTERS 708LLVM_ENUM_ASM_PARSERS 709LLVM_ENUM_DISASSEMBLERS 710OPTIMIZE_OPTION 711EXTRA_OPTIONS 712EXTRA_LD_OPTIONS 713BINUTILS_INCDIR 714NM 715ifGNUmake 716LN_S 717CMP 718CP 719DATE 720FIND 721MKDIR 722MV 723RANLIB 724AR 725RM 726SED 727TAR 728BINPWD 729GRAPHVIZ 730DOT 731FDP 732NEATO 733TWOPI 734CIRCO 735GV 736DOTTY 737XDOT_PY 738INSTALL_PROGRAM 739INSTALL_SCRIPT 740INSTALL_DATA 741BZIP2 742CAT 743DOXYGEN 744GROFF 745GZIPBIN 746POD2HTML 747POD2MAN 748PDFROFF 749RUNTEST 750TCLSH 751ZIP 752OCAMLC 753OCAMLOPT 754OCAMLDEP 755OCAMLDOC 756GAS 757HAVE_LINK_VERSION_SCRIPT 758INSTALL_LTDL_TRUE 759INSTALL_LTDL_FALSE 760CONVENIENCE_LTDL_TRUE 761CONVENIENCE_LTDL_FALSE 762LIBADD_DL 763NO_VARIADIC_MACROS 764NO_MISSING_FIELD_INITIALIZERS 765COVERED_SWITCH_DEFAULT 766USE_UDIS86 767USE_OPROFILE 768HAVE_PTHREAD 769HUGE_VAL_SANITY 770MMAP_FILE 771SHLIBEXT 772SHLIBPATH_VAR 773LLVM_PREFIX 774LLVM_BINDIR 775LLVM_DATADIR 776LLVM_DOCSDIR 777LLVM_ETCDIR 778LLVM_INCLUDEDIR 779LLVM_INFODIR 780LLVM_MANDIR 781LLVM_CONFIGTIME 782BINDINGS_TO_BUILD 783ALL_BINDINGS 784OCAML_LIBDIR 785ENABLE_VISIBILITY_INLINES_HIDDEN 786RPATH 787RDYNAMIC 788LIBOBJS 789LTLIBOBJS' 790ac_subst_files='' 791 ac_precious_vars='build_alias 792host_alias 793target_alias 794CC 795CFLAGS 796LDFLAGS 797CPPFLAGS 798CXX 799CXXFLAGS 800CCC 801CPP' 802ac_subdirs_all='tools/polly' 803 804# Initialize some variables set by options. 805ac_init_help= 806ac_init_version=false 807# The variables have the same names as the options, with 808# dashes changed to underlines. 809cache_file=/dev/null 810exec_prefix=NONE 811no_create= 812no_recursion= 813prefix=NONE 814program_prefix=NONE 815program_suffix=NONE 816program_transform_name=s,x,x, 817silent= 818site= 819srcdir= 820verbose= 821x_includes=NONE 822x_libraries=NONE 823 824# Installation directory options. 825# These are left unexpanded so users can "make install exec_prefix=/foo" 826# and all the variables that are supposed to be based on exec_prefix 827# by default will actually change. 828# Use braces instead of parens because sh, perl, etc. also accept them. 829# (The list follows the same order as the GNU Coding Standards.) 830bindir='${exec_prefix}/bin' 831sbindir='${exec_prefix}/sbin' 832libexecdir='${exec_prefix}/libexec' 833datarootdir='${prefix}/share' 834datadir='${datarootdir}' 835sysconfdir='${prefix}/etc' 836sharedstatedir='${prefix}/com' 837localstatedir='${prefix}/var' 838includedir='${prefix}/include' 839oldincludedir='/usr/include' 840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841infodir='${datarootdir}/info' 842htmldir='${docdir}' 843dvidir='${docdir}' 844pdfdir='${docdir}' 845psdir='${docdir}' 846libdir='${exec_prefix}/lib' 847localedir='${datarootdir}/locale' 848mandir='${datarootdir}/man' 849 850ac_prev= 851ac_dashdash= 852for ac_option 853do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *) ac_optarg=yes ;; 864 esac 865 866 # Accept the important Cygnus configure options, so we can diagnose typos. 867 868 case $ac_dashdash$ac_option in 869 --) 870 ac_dashdash=yes ;; 871 872 -bindir | --bindir | --bindi | --bind | --bin | --bi) 873 ac_prev=bindir ;; 874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 875 bindir=$ac_optarg ;; 876 877 -build | --build | --buil | --bui | --bu) 878 ac_prev=build_alias ;; 879 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 880 build_alias=$ac_optarg ;; 881 882 -cache-file | --cache-file | --cache-fil | --cache-fi \ 883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 884 ac_prev=cache_file ;; 885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 887 cache_file=$ac_optarg ;; 888 889 --config-cache | -C) 890 cache_file=config.cache ;; 891 892 -datadir | --datadir | --datadi | --datad) 893 ac_prev=datadir ;; 894 -datadir=* | --datadir=* | --datadi=* | --datad=*) 895 datadir=$ac_optarg ;; 896 897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 898 | --dataroo | --dataro | --datar) 899 ac_prev=datarootdir ;; 900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 902 datarootdir=$ac_optarg ;; 903 904 -disable-* | --disable-*) 905 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 906 # Reject names that are not valid shell variable names. 907 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 908 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 909 { (exit 1); exit 1; }; } 910 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 911 eval enable_$ac_feature=no ;; 912 913 -docdir | --docdir | --docdi | --doc | --do) 914 ac_prev=docdir ;; 915 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 916 docdir=$ac_optarg ;; 917 918 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 919 ac_prev=dvidir ;; 920 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 921 dvidir=$ac_optarg ;; 922 923 -enable-* | --enable-*) 924 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 928 { (exit 1); exit 1; }; } 929 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 930 eval enable_$ac_feature=\$ac_optarg ;; 931 932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 934 | --exec | --exe | --ex) 935 ac_prev=exec_prefix ;; 936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 938 | --exec=* | --exe=* | --ex=*) 939 exec_prefix=$ac_optarg ;; 940 941 -gas | --gas | --ga | --g) 942 # Obsolete; use --with-gas. 943 with_gas=yes ;; 944 945 -help | --help | --hel | --he | -h) 946 ac_init_help=long ;; 947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 948 ac_init_help=recursive ;; 949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 950 ac_init_help=short ;; 951 952 -host | --host | --hos | --ho) 953 ac_prev=host_alias ;; 954 -host=* | --host=* | --hos=* | --ho=*) 955 host_alias=$ac_optarg ;; 956 957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 958 ac_prev=htmldir ;; 959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 960 | --ht=*) 961 htmldir=$ac_optarg ;; 962 963 -includedir | --includedir | --includedi | --included | --include \ 964 | --includ | --inclu | --incl | --inc) 965 ac_prev=includedir ;; 966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 967 | --includ=* | --inclu=* | --incl=* | --inc=*) 968 includedir=$ac_optarg ;; 969 970 -infodir | --infodir | --infodi | --infod | --info | --inf) 971 ac_prev=infodir ;; 972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 973 infodir=$ac_optarg ;; 974 975 -libdir | --libdir | --libdi | --libd) 976 ac_prev=libdir ;; 977 -libdir=* | --libdir=* | --libdi=* | --libd=*) 978 libdir=$ac_optarg ;; 979 980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 981 | --libexe | --libex | --libe) 982 ac_prev=libexecdir ;; 983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 984 | --libexe=* | --libex=* | --libe=*) 985 libexecdir=$ac_optarg ;; 986 987 -localedir | --localedir | --localedi | --localed | --locale) 988 ac_prev=localedir ;; 989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 990 localedir=$ac_optarg ;; 991 992 -localstatedir | --localstatedir | --localstatedi | --localstated \ 993 | --localstate | --localstat | --localsta | --localst | --locals) 994 ac_prev=localstatedir ;; 995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 997 localstatedir=$ac_optarg ;; 998 999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1000 ac_prev=mandir ;; 1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1002 mandir=$ac_optarg ;; 1003 1004 -nfp | --nfp | --nf) 1005 # Obsolete; use --without-fp. 1006 with_fp=no ;; 1007 1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1009 | --no-cr | --no-c | -n) 1010 no_create=yes ;; 1011 1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1014 no_recursion=yes ;; 1015 1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1018 | --oldin | --oldi | --old | --ol | --o) 1019 ac_prev=oldincludedir ;; 1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1023 oldincludedir=$ac_optarg ;; 1024 1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1026 ac_prev=prefix ;; 1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1028 prefix=$ac_optarg ;; 1029 1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1031 | --program-pre | --program-pr | --program-p) 1032 ac_prev=program_prefix ;; 1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1035 program_prefix=$ac_optarg ;; 1036 1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1038 | --program-suf | --program-su | --program-s) 1039 ac_prev=program_suffix ;; 1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1042 program_suffix=$ac_optarg ;; 1043 1044 -program-transform-name | --program-transform-name \ 1045 | --program-transform-nam | --program-transform-na \ 1046 | --program-transform-n | --program-transform- \ 1047 | --program-transform | --program-transfor \ 1048 | --program-transfo | --program-transf \ 1049 | --program-trans | --program-tran \ 1050 | --progr-tra | --program-tr | --program-t) 1051 ac_prev=program_transform_name ;; 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 program_transform_name=$ac_optarg ;; 1060 1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1062 ac_prev=pdfdir ;; 1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1064 pdfdir=$ac_optarg ;; 1065 1066 -psdir | --psdir | --psdi | --psd | --ps) 1067 ac_prev=psdir ;; 1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1069 psdir=$ac_optarg ;; 1070 1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1072 | -silent | --silent | --silen | --sile | --sil) 1073 silent=yes ;; 1074 1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1076 ac_prev=sbindir ;; 1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1078 | --sbi=* | --sb=*) 1079 sbindir=$ac_optarg ;; 1080 1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1083 | --sharedst | --shareds | --shared | --share | --shar \ 1084 | --sha | --sh) 1085 ac_prev=sharedstatedir ;; 1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1089 | --sha=* | --sh=*) 1090 sharedstatedir=$ac_optarg ;; 1091 1092 -site | --site | --sit) 1093 ac_prev=site ;; 1094 -site=* | --site=* | --sit=*) 1095 site=$ac_optarg ;; 1096 1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1098 ac_prev=srcdir ;; 1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1100 srcdir=$ac_optarg ;; 1101 1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1103 | --syscon | --sysco | --sysc | --sys | --sy) 1104 ac_prev=sysconfdir ;; 1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1107 sysconfdir=$ac_optarg ;; 1108 1109 -target | --target | --targe | --targ | --tar | --ta | --t) 1110 ac_prev=target_alias ;; 1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1112 target_alias=$ac_optarg ;; 1113 1114 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1115 verbose=yes ;; 1116 1117 -version | --version | --versio | --versi | --vers | -V) 1118 ac_init_version=: ;; 1119 1120 -with-* | --with-*) 1121 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1122 # Reject names that are not valid shell variable names. 1123 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1124 { echo "$as_me: error: invalid package name: $ac_package" >&2 1125 { (exit 1); exit 1; }; } 1126 ac_package=`echo $ac_package| sed 's/-/_/g'` 1127 eval with_$ac_package=\$ac_optarg ;; 1128 1129 -without-* | --without-*) 1130 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1133 { echo "$as_me: error: invalid package name: $ac_package" >&2 1134 { (exit 1); exit 1; }; } 1135 ac_package=`echo $ac_package | sed 's/-/_/g'` 1136 eval with_$ac_package=no ;; 1137 1138 --x) 1139 # Obsolete; use --with-x. 1140 with_x=yes ;; 1141 1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1143 | --x-incl | --x-inc | --x-in | --x-i) 1144 ac_prev=x_includes ;; 1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1147 x_includes=$ac_optarg ;; 1148 1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1151 ac_prev=x_libraries ;; 1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1154 x_libraries=$ac_optarg ;; 1155 1156 -*) { echo "$as_me: error: unrecognized option: $ac_option 1157Try \`$0 --help' for more information." >&2 1158 { (exit 1); exit 1; }; } 1159 ;; 1160 1161 *=*) 1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1165 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1166 { (exit 1); exit 1; }; } 1167 eval $ac_envvar=\$ac_optarg 1168 export $ac_envvar ;; 1169 1170 *) 1171 # FIXME: should be removed in autoconf 3.0. 1172 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1174 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1176 ;; 1177 1178 esac 1179done 1180 1181if test -n "$ac_prev"; then 1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1183 { echo "$as_me: error: missing argument to $ac_option" >&2 1184 { (exit 1); exit 1; }; } 1185fi 1186 1187# Be sure to have absolute directory names. 1188for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1189 datadir sysconfdir sharedstatedir localstatedir includedir \ 1190 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1191 libdir localedir mandir 1192do 1193 eval ac_val=\$$ac_var 1194 case $ac_val in 1195 [\\/$]* | ?:[\\/]* ) continue;; 1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1197 esac 1198 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1199 { (exit 1); exit 1; }; } 1200done 1201 1202# There might be people who depend on the old broken behavior: `$host' 1203# used to hold the argument of --host etc. 1204# FIXME: To remove some day. 1205build=$build_alias 1206host=$host_alias 1207target=$target_alias 1208 1209# FIXME: To remove some day. 1210if test "x$host_alias" != x; then 1211 if test "x$build_alias" = x; then 1212 cross_compiling=maybe 1213 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1214 If a cross compiler is detected then cross compile mode will be used." >&2 1215 elif test "x$build_alias" != "x$host_alias"; then 1216 cross_compiling=yes 1217 fi 1218fi 1219 1220ac_tool_prefix= 1221test -n "$host_alias" && ac_tool_prefix=$host_alias- 1222 1223test "$silent" = yes && exec 6>/dev/null 1224 1225 1226ac_pwd=`pwd` && test -n "$ac_pwd" && 1227ac_ls_di=`ls -di .` && 1228ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1229 { echo "$as_me: error: Working directory cannot be determined" >&2 1230 { (exit 1); exit 1; }; } 1231test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1232 { echo "$as_me: error: pwd does not report name of working directory" >&2 1233 { (exit 1); exit 1; }; } 1234 1235 1236# Find the source files, if location was not specified. 1237if test -z "$srcdir"; then 1238 ac_srcdir_defaulted=yes 1239 # Try the directory containing this script, then the parent directory. 1240 ac_confdir=`$as_dirname -- "$0" || 1241$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1242 X"$0" : 'X\(//\)[^/]' \| \ 1243 X"$0" : 'X\(//\)$' \| \ 1244 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1245echo X"$0" | 1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1247 s//\1/ 1248 q 1249 } 1250 /^X\(\/\/\)[^/].*/{ 1251 s//\1/ 1252 q 1253 } 1254 /^X\(\/\/\)$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\).*/{ 1259 s//\1/ 1260 q 1261 } 1262 s/.*/./; q'` 1263 srcdir=$ac_confdir 1264 if test ! -r "$srcdir/$ac_unique_file"; then 1265 srcdir=.. 1266 fi 1267else 1268 ac_srcdir_defaulted=no 1269fi 1270if test ! -r "$srcdir/$ac_unique_file"; then 1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1272 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1273 { (exit 1); exit 1; }; } 1274fi 1275ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1276ac_abs_confdir=`( 1277 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1278 { (exit 1); exit 1; }; } 1279 pwd)` 1280# When building in place, set srcdir=. 1281if test "$ac_abs_confdir" = "$ac_pwd"; then 1282 srcdir=. 1283fi 1284# Remove unnecessary trailing slashes from srcdir. 1285# Double slashes in file names in object file debugging info 1286# mess up M-x gdb in Emacs. 1287case $srcdir in 1288*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1289esac 1290for ac_var in $ac_precious_vars; do 1291 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1292 eval ac_env_${ac_var}_value=\$${ac_var} 1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1294 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1295done 1296 1297# 1298# Report the --help message. 1299# 1300if test "$ac_init_help" = "long"; then 1301 # Omit some internal or obsolete options to make the list less imposing. 1302 # This message is too long to be a string in the A/UX 3.1 sh. 1303 cat <<_ACEOF 1304\`configure' configures [SAMPLE] [x.xx] to adapt to many kinds of systems. 1305 1306Usage: $0 [OPTION]... [VAR=VALUE]... 1307 1308To assign environment variables (e.g., CC, CFLAGS...), specify them as 1309VAR=VALUE. See below for descriptions of some of the useful variables. 1310 1311Defaults for the options are specified in brackets. 1312 1313Configuration: 1314 -h, --help display this help and exit 1315 --help=short display options specific to this package 1316 --help=recursive display the short help of all the included packages 1317 -V, --version display version information and exit 1318 -q, --quiet, --silent do not print \`checking...' messages 1319 --cache-file=FILE cache test results in FILE [disabled] 1320 -C, --config-cache alias for \`--cache-file=config.cache' 1321 -n, --no-create do not create output files 1322 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1323 1324Installation directories: 1325 --prefix=PREFIX install architecture-independent files in PREFIX 1326 [$ac_default_prefix] 1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1328 [PREFIX] 1329 1330By default, \`make install' will install all the files in 1331\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1332an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1333for instance \`--prefix=\$HOME'. 1334 1335For better control, use the options below. 1336 1337Fine tuning of the installation directories: 1338 --bindir=DIR user executables [EPREFIX/bin] 1339 --sbindir=DIR system admin executables [EPREFIX/sbin] 1340 --libexecdir=DIR program executables [EPREFIX/libexec] 1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1344 --libdir=DIR object code libraries [EPREFIX/lib] 1345 --includedir=DIR C header files [PREFIX/include] 1346 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1349 --infodir=DIR info documentation [DATAROOTDIR/info] 1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1351 --mandir=DIR man documentation [DATAROOTDIR/man] 1352 --docdir=DIR documentation root [DATAROOTDIR/doc/--sample--] 1353 --htmldir=DIR html documentation [DOCDIR] 1354 --dvidir=DIR dvi documentation [DOCDIR] 1355 --pdfdir=DIR pdf documentation [DOCDIR] 1356 --psdir=DIR ps documentation [DOCDIR] 1357_ACEOF 1358 1359 cat <<\_ACEOF 1360 1361System types: 1362 --build=BUILD configure for building on BUILD [guessed] 1363 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1364 --target=TARGET configure for building compilers for TARGET [HOST] 1365_ACEOF 1366fi 1367 1368if test -n "$ac_init_help"; then 1369 case $ac_init_help in 1370 short | recursive ) echo "Configuration of [SAMPLE] [x.xx]:";; 1371 esac 1372 cat <<\_ACEOF 1373 1374Optional Features: 1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1377 --enable-polly Use polly if available (default is YES) 1378 --enable-libcpp Use libc++ if available (default is NO) 1379 --enable-cxx11 Use c++11 if available (default is NO) 1380 --enable-optimized Compile with optimizations enabled (default is NO) 1381 --enable-profiling Compile with profiling enabled (default is NO) 1382 --enable-assertions Compile with assertion checks enabled (default is 1383 YES) 1384 --enable-werror Compile with -Werror enabled (default is NO) 1385 --enable-expensive-checks 1386 Compile with expensive debug checks enabled (default 1387 is NO) 1388 --enable-debug-runtime Build runtime libs with debug symbols (default is 1389 NO) 1390 --enable-debug-symbols Build compiler with debug symbols (default is NO if 1391 optimization is on and YES if it's off) 1392 --enable-jit Enable Just In Time Compiling (default is YES) 1393 --enable-docs Build documents (default is YES) 1394 --enable-doxygen Build doxygen documentation (default is NO) 1395 --enable-threads Use threads if available (default is YES) 1396 --enable-pthreads Use pthreads if available (default is YES) 1397 --enable-pic Build LLVM with Position Independent Code (default 1398 is YES) 1399 --enable-shared Build a shared library and link tools against it 1400 (default is NO) 1401 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for 1402 Win32 DLL (default is YES) 1403 --enable-timestamps Enable embedding timestamp information in build 1404 (default is YES) 1405 --enable-targets Build specific host targets: all or 1406 target1,target2,... Valid targets are: host, x86, 1407 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon, 1408 xcore, msp430, nvptx, systemz, r600, and cpp 1409 (default=all) 1410 --enable-bindings Build specific language bindings: 1411 all,auto,none,{binding-name} (default=auto) 1412 --enable-libffi Check for the presence of libffi (default is NO) 1413 --enable-ltdl-install install libltdl 1414 1415Optional Packages: 1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1418 --with-llvmsrc Location of LLVM Source Code 1419 --with-llvmobj Location of LLVM Object Code 1420 --with-optimize-option Select the compiler options to use for optimized 1421 builds 1422 --with-extra-options Specify additional options to compile LLVM with 1423 --with-extra-ld-options Specify additional options to link LLVM with 1424 --with-ocaml-libdir Specify install location for ocaml bindings (default 1425 is stdlib) 1426 --with-clang-resource-dir 1427 Relative directory from the Clang binary for 1428 resource files 1429 --with-c-include-dirs Colon separated list of directories clang will 1430 search for headers 1431 --with-gcc-toolchain Directory where gcc is installed. 1432 --with-binutils-include Specify path to binutils/include/ containing 1433 plugin-api.h file for gold plugin. 1434 --with-bug-report-url Specify the URL where bug reports should be 1435 submitted (default=http://llvm.org/bugs/) 1436 --with-tclinclude directory where tcl headers are 1437 --with-udis86=<path> Use udis86 external x86 disassembler library 1438 --with-oprofile=<prefix> 1439 Tell OProfile >= 0.9.4 how to symbolize JIT output 1440 1441Some influential environment variables: 1442 CC C compiler command 1443 CFLAGS C compiler flags 1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1445 nonstandard directory <lib dir> 1446 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1447 you have headers in a nonstandard directory <include dir> 1448 CXX C++ compiler command 1449 CXXFLAGS C++ compiler flags 1450 CPP C preprocessor 1451 1452Use these variables to override the choices made by `configure' or to help 1453it to find libraries and programs with nonstandard names/locations. 1454 1455Report bugs to <bugs@yourdomain>. 1456_ACEOF 1457ac_status=$? 1458fi 1459 1460if test "$ac_init_help" = "recursive"; then 1461 # If there are subdirs, report their specific --help. 1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1463 test -d "$ac_dir" || continue 1464 ac_builddir=. 1465 1466case "$ac_dir" in 1467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1468*) 1469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1470 # A ".." for each directory in $ac_dir_suffix. 1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1472 case $ac_top_builddir_sub in 1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1475 esac ;; 1476esac 1477ac_abs_top_builddir=$ac_pwd 1478ac_abs_builddir=$ac_pwd$ac_dir_suffix 1479# for backward compatibility: 1480ac_top_builddir=$ac_top_build_prefix 1481 1482case $srcdir in 1483 .) # We are building in place. 1484 ac_srcdir=. 1485 ac_top_srcdir=$ac_top_builddir_sub 1486 ac_abs_top_srcdir=$ac_pwd ;; 1487 [\\/]* | ?:[\\/]* ) # Absolute name. 1488 ac_srcdir=$srcdir$ac_dir_suffix; 1489 ac_top_srcdir=$srcdir 1490 ac_abs_top_srcdir=$srcdir ;; 1491 *) # Relative name. 1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1493 ac_top_srcdir=$ac_top_build_prefix$srcdir 1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1495esac 1496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1497 1498 cd "$ac_dir" || { ac_status=$?; continue; } 1499 # Check for guested configure. 1500 if test -f "$ac_srcdir/configure.gnu"; then 1501 echo && 1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1503 elif test -f "$ac_srcdir/configure"; then 1504 echo && 1505 $SHELL "$ac_srcdir/configure" --help=recursive 1506 else 1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1508 fi || ac_status=$? 1509 cd "$ac_pwd" || { ac_status=$?; break; } 1510 done 1511fi 1512 1513test -n "$ac_init_help" && exit $ac_status 1514if $ac_init_version; then 1515 cat <<\_ACEOF 1516[SAMPLE] configure [x.xx] 1517generated by GNU Autoconf 2.60 1518 1519Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15202002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1521This configure script is free software; the Free Software Foundation 1522gives unlimited permission to copy, distribute and modify it. 1523_ACEOF 1524 exit 1525fi 1526cat >config.log <<_ACEOF 1527This file contains any messages produced by compilers while 1528running configure, to aid debugging if configure makes a mistake. 1529 1530It was created by [SAMPLE] $as_me [x.xx], which was 1531generated by GNU Autoconf 2.60. Invocation command line was 1532 1533 $ $0 $@ 1534 1535_ACEOF 1536exec 5>>config.log 1537{ 1538cat <<_ASUNAME 1539## --------- ## 1540## Platform. ## 1541## --------- ## 1542 1543hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1544uname -m = `(uname -m) 2>/dev/null || echo unknown` 1545uname -r = `(uname -r) 2>/dev/null || echo unknown` 1546uname -s = `(uname -s) 2>/dev/null || echo unknown` 1547uname -v = `(uname -v) 2>/dev/null || echo unknown` 1548 1549/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1550/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1551 1552/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1553/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1554/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1555/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1556/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1557/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1558/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1559 1560_ASUNAME 1561 1562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1563for as_dir in $PATH 1564do 1565 IFS=$as_save_IFS 1566 test -z "$as_dir" && as_dir=. 1567 echo "PATH: $as_dir" 1568done 1569IFS=$as_save_IFS 1570 1571} >&5 1572 1573cat >&5 <<_ACEOF 1574 1575 1576## ----------- ## 1577## Core tests. ## 1578## ----------- ## 1579 1580_ACEOF 1581 1582 1583# Keep a trace of the command line. 1584# Strip out --no-create and --no-recursion so they do not pile up. 1585# Strip out --silent because we don't want to record it for future runs. 1586# Also quote any args containing shell meta-characters. 1587# Make two passes to allow for proper duplicate-argument suppression. 1588ac_configure_args= 1589ac_configure_args0= 1590ac_configure_args1= 1591ac_must_keep_next=false 1592for ac_pass in 1 2 1593do 1594 for ac_arg 1595 do 1596 case $ac_arg in 1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1599 | -silent | --silent | --silen | --sile | --sil) 1600 continue ;; 1601 *\'*) 1602 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1603 esac 1604 case $ac_pass in 1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1606 2) 1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1608 if test $ac_must_keep_next = true; then 1609 ac_must_keep_next=false # Got value, back to normal. 1610 else 1611 case $ac_arg in 1612 *=* | --config-cache | -C | -disable-* | --disable-* \ 1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1615 | -with-* | --with-* | -without-* | --without-* | --x) 1616 case "$ac_configure_args0 " in 1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1618 esac 1619 ;; 1620 -* ) ac_must_keep_next=true ;; 1621 esac 1622 fi 1623 ac_configure_args="$ac_configure_args '$ac_arg'" 1624 ;; 1625 esac 1626 done 1627done 1628$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1629$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1630 1631# When interrupted or exit'd, cleanup temporary files, and complete 1632# config.log. We remove comments because anyway the quotes in there 1633# would cause problems or look ugly. 1634# WARNING: Use '\'' to represent an apostrophe within the trap. 1635# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1636trap 'exit_status=$? 1637 # Save into config.log some information that might help in debugging. 1638 { 1639 echo 1640 1641 cat <<\_ASBOX 1642## ---------------- ## 1643## Cache variables. ## 1644## ---------------- ## 1645_ASBOX 1646 echo 1647 # The following way of writing the cache mishandles newlines in values, 1648( 1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1650 eval ac_val=\$$ac_var 1651 case $ac_val in #( 1652 *${as_nl}*) 1653 case $ac_var in #( 1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1655echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1656 esac 1657 case $ac_var in #( 1658 _ | IFS | as_nl) ;; #( 1659 *) $as_unset $ac_var ;; 1660 esac ;; 1661 esac 1662 done 1663 (set) 2>&1 | 1664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1665 *${as_nl}ac_space=\ *) 1666 sed -n \ 1667 "s/'\''/'\''\\\\'\'''\''/g; 1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1669 ;; #( 1670 *) 1671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1672 ;; 1673 esac | 1674 sort 1675) 1676 echo 1677 1678 cat <<\_ASBOX 1679## ----------------- ## 1680## Output variables. ## 1681## ----------------- ## 1682_ASBOX 1683 echo 1684 for ac_var in $ac_subst_vars 1685 do 1686 eval ac_val=\$$ac_var 1687 case $ac_val in 1688 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1689 esac 1690 echo "$ac_var='\''$ac_val'\''" 1691 done | sort 1692 echo 1693 1694 if test -n "$ac_subst_files"; then 1695 cat <<\_ASBOX 1696## ------------------- ## 1697## File substitutions. ## 1698## ------------------- ## 1699_ASBOX 1700 echo 1701 for ac_var in $ac_subst_files 1702 do 1703 eval ac_val=\$$ac_var 1704 case $ac_val in 1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1706 esac 1707 echo "$ac_var='\''$ac_val'\''" 1708 done | sort 1709 echo 1710 fi 1711 1712 if test -s confdefs.h; then 1713 cat <<\_ASBOX 1714## ----------- ## 1715## confdefs.h. ## 1716## ----------- ## 1717_ASBOX 1718 echo 1719 cat confdefs.h 1720 echo 1721 fi 1722 test "$ac_signal" != 0 && 1723 echo "$as_me: caught signal $ac_signal" 1724 echo "$as_me: exit $exit_status" 1725 } >&5 1726 rm -f core *.core core.conftest.* && 1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1728 exit $exit_status 1729' 0 1730for ac_signal in 1 2 13 15; do 1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1732done 1733ac_signal=0 1734 1735# confdefs.h avoids OS command line length limits that DEFS can exceed. 1736rm -f -r conftest* confdefs.h 1737 1738# Predefined preprocessor variables. 1739 1740cat >>confdefs.h <<_ACEOF 1741#define PACKAGE_NAME "$PACKAGE_NAME" 1742_ACEOF 1743 1744 1745cat >>confdefs.h <<_ACEOF 1746#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1747_ACEOF 1748 1749 1750cat >>confdefs.h <<_ACEOF 1751#define PACKAGE_VERSION "$PACKAGE_VERSION" 1752_ACEOF 1753 1754 1755cat >>confdefs.h <<_ACEOF 1756#define PACKAGE_STRING "$PACKAGE_STRING" 1757_ACEOF 1758 1759 1760cat >>confdefs.h <<_ACEOF 1761#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1762_ACEOF 1763 1764 1765# Let the site file select an alternate cache file if it wants to. 1766# Prefer explicitly selected file to automatically selected ones. 1767if test -n "$CONFIG_SITE"; then 1768 set x "$CONFIG_SITE" 1769elif test "x$prefix" != xNONE; then 1770 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1771else 1772 set x "$ac_default_prefix/share/config.site" \ 1773 "$ac_default_prefix/etc/config.site" 1774fi 1775shift 1776for ac_site_file 1777do 1778 if test -r "$ac_site_file"; then 1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1780echo "$as_me: loading site script $ac_site_file" >&6;} 1781 sed 's/^/| /' "$ac_site_file" >&5 1782 . "$ac_site_file" 1783 fi 1784done 1785 1786if test -r "$cache_file"; then 1787 # Some versions of bash will fail to source /dev/null (special 1788 # files actually), so we avoid doing that. 1789 if test -f "$cache_file"; then 1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1791echo "$as_me: loading cache $cache_file" >&6;} 1792 case $cache_file in 1793 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1794 *) . "./$cache_file";; 1795 esac 1796 fi 1797else 1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1799echo "$as_me: creating cache $cache_file" >&6;} 1800 >$cache_file 1801fi 1802 1803# Check that the precious variables saved in the cache have kept the same 1804# value. 1805ac_cache_corrupted=false 1806for ac_var in $ac_precious_vars; do 1807 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1808 eval ac_new_set=\$ac_env_${ac_var}_set 1809 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1810 eval ac_new_val=\$ac_env_${ac_var}_value 1811 case $ac_old_set,$ac_new_set in 1812 set,) 1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1814echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1815 ac_cache_corrupted=: ;; 1816 ,set) 1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1818echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1819 ac_cache_corrupted=: ;; 1820 ,);; 1821 *) 1822 if test "x$ac_old_val" != "x$ac_new_val"; then 1823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1824echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1826echo "$as_me: former value: $ac_old_val" >&2;} 1827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1828echo "$as_me: current value: $ac_new_val" >&2;} 1829 ac_cache_corrupted=: 1830 fi;; 1831 esac 1832 # Pass precious variables to config.status. 1833 if test "$ac_new_set" = set; then 1834 case $ac_new_val in 1835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1836 *) ac_arg=$ac_var=$ac_new_val ;; 1837 esac 1838 case " $ac_configure_args " in 1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1841 esac 1842 fi 1843done 1844if $ac_cache_corrupted; then 1845 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1846echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1847 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1848echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1849 { (exit 1); exit 1; }; } 1850fi 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876ac_ext=c 1877ac_cpp='$CPP $CPPFLAGS' 1878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1880ac_compiler_gnu=$ac_cv_c_compiler_gnu 1881 1882 1883 1884LLVM_SRC_ROOT="../.." 1885LLVM_OBJ_ROOT="../.." 1886 1887LLVM_ABS_SRC_ROOT="`cd $srcdir ; cd $LLVM_SRC_ROOT ; pwd`" 1888LLVM_ABS_OBJ_ROOT="`cd $LLVM_OBJ_ROOT ; pwd`" 1889 1890 1891# Check whether --with-llvmsrc was given. 1892if test "${with_llvmsrc+set}" = set; then 1893 withval=$with_llvmsrc; llvm_src="$withval" 1894else 1895 llvm_src="$LLVM_ABS_SRC_ROOT" 1896fi 1897 1898 LLVM_SRC=$llvm_src 1899 1900 1901# Check whether --with-llvmobj was given. 1902if test "${with_llvmobj+set}" = set; then 1903 withval=$with_llvmobj; llvm_obj="$withval" 1904else 1905 llvm_obj="$LLVM_ABS_OBJ_ROOT" 1906fi 1907 1908 LLVM_OBJ=$llvm_obj 1909 1910 ac_config_commands="$ac_config_commands setup" 1911 1912 1913 1914{ echo "$as_me:$LINENO: checking llvm-config" >&5 1915echo $ECHO_N "checking llvm-config... $ECHO_C" >&6; } 1916llvm_config_path="`ls -1 $llvm_obj/*/bin/llvm-config 2> /dev/null | head -1`" 1917if ! test -f "$llvm_config_path" ; then 1918 llvm_config_path="no" 1919fi 1920{ echo "$as_me:$LINENO: result: $llvm_config_path" >&5 1921echo "${ECHO_T}$llvm_config_path" >&6; } 1922 1923{ echo "$as_me:$LINENO: checking LLVM package version" >&5 1924echo $ECHO_N "checking LLVM package version... $ECHO_C" >&6; } 1925if test "$llvm_config_path" != no ; then 1926 llvm_package_version=`$llvm_config_path --version` 1927else 1928 llvm_package_version="unknown"; 1929fi 1930{ echo "$as_me:$LINENO: result: $llvm_package_version" >&5 1931echo "${ECHO_T}$llvm_package_version" >&6; } 1932LLVM_VERSION=$llvm_package_version 1933 1934 1935 1936 1937ac_aux_dir= 1938for ac_dir in autoconf "$srcdir"/autoconf; do 1939 if test -f "$ac_dir/install-sh"; then 1940 ac_aux_dir=$ac_dir 1941 ac_install_sh="$ac_aux_dir/install-sh -c" 1942 break 1943 elif test -f "$ac_dir/install.sh"; then 1944 ac_aux_dir=$ac_dir 1945 ac_install_sh="$ac_aux_dir/install.sh -c" 1946 break 1947 elif test -f "$ac_dir/shtool"; then 1948 ac_aux_dir=$ac_dir 1949 ac_install_sh="$ac_aux_dir/shtool install -c" 1950 break 1951 fi 1952done 1953if test -z "$ac_aux_dir"; then 1954 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1955echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1956 { (exit 1); exit 1; }; } 1957fi 1958 1959# These three variables are undocumented and unsupported, 1960# and are intended to be withdrawn in a future Autoconf release. 1961# They can cause serious problems if a builder's source tree is in a directory 1962# whose full name contains unusual characters. 1963ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1964ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1965ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1966 1967 1968 1969 1970ac_ext=c 1971ac_cpp='$CPP $CPPFLAGS' 1972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1974ac_compiler_gnu=$ac_cv_c_compiler_gnu 1975if test -n "$ac_tool_prefix"; then 1976 for ac_prog in clang llvm-gcc gcc 1977 do 1978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1979set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1980{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1982if test "${ac_cv_prog_CC+set}" = set; then 1983 echo $ECHO_N "(cached) $ECHO_C" >&6 1984else 1985 if test -n "$CC"; then 1986 ac_cv_prog_CC="$CC" # Let the user override the test. 1987else 1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1989for as_dir in $PATH 1990do 1991 IFS=$as_save_IFS 1992 test -z "$as_dir" && as_dir=. 1993 for ac_exec_ext in '' $ac_executable_extensions; do 1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 1995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1997 break 2 1998 fi 1999done 2000done 2001IFS=$as_save_IFS 2002 2003fi 2004fi 2005CC=$ac_cv_prog_CC 2006if test -n "$CC"; then 2007 { echo "$as_me:$LINENO: result: $CC" >&5 2008echo "${ECHO_T}$CC" >&6; } 2009else 2010 { echo "$as_me:$LINENO: result: no" >&5 2011echo "${ECHO_T}no" >&6; } 2012fi 2013 2014 2015 test -n "$CC" && break 2016 done 2017fi 2018if test -z "$CC"; then 2019 ac_ct_CC=$CC 2020 for ac_prog in clang llvm-gcc gcc 2021do 2022 # Extract the first word of "$ac_prog", so it can be a program name with args. 2023set dummy $ac_prog; ac_word=$2 2024{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2026if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2027 echo $ECHO_N "(cached) $ECHO_C" >&6 2028else 2029 if test -n "$ac_ct_CC"; then 2030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2031else 2032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2033for as_dir in $PATH 2034do 2035 IFS=$as_save_IFS 2036 test -z "$as_dir" && as_dir=. 2037 for ac_exec_ext in '' $ac_executable_extensions; do 2038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2039 ac_cv_prog_ac_ct_CC="$ac_prog" 2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2041 break 2 2042 fi 2043done 2044done 2045IFS=$as_save_IFS 2046 2047fi 2048fi 2049ac_ct_CC=$ac_cv_prog_ac_ct_CC 2050if test -n "$ac_ct_CC"; then 2051 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2052echo "${ECHO_T}$ac_ct_CC" >&6; } 2053else 2054 { echo "$as_me:$LINENO: result: no" >&5 2055echo "${ECHO_T}no" >&6; } 2056fi 2057 2058 2059 test -n "$ac_ct_CC" && break 2060done 2061 2062 if test "x$ac_ct_CC" = x; then 2063 CC="" 2064 else 2065 case $cross_compiling:$ac_tool_warned in 2066yes:) 2067{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2068whose name does not start with the host triplet. If you think this 2069configuration is useful to you, please write to autoconf@gnu.org." >&5 2070echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2071whose name does not start with the host triplet. If you think this 2072configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2073ac_tool_warned=yes ;; 2074esac 2075 CC=$ac_ct_CC 2076 fi 2077fi 2078 2079 2080test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2081See \`config.log' for more details." >&5 2082echo "$as_me: error: no acceptable C compiler found in \$PATH 2083See \`config.log' for more details." >&2;} 2084 { (exit 1); exit 1; }; } 2085 2086# Provide some information about the compiler. 2087echo "$as_me:$LINENO: checking for C compiler version" >&5 2088ac_compiler=`set X $ac_compile; echo $2` 2089{ (ac_try="$ac_compiler --version >&5" 2090case "(($ac_try" in 2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2092 *) ac_try_echo=$ac_try;; 2093esac 2094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2095 (eval "$ac_compiler --version >&5") 2>&5 2096 ac_status=$? 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2098 (exit $ac_status); } 2099{ (ac_try="$ac_compiler -v >&5" 2100case "(($ac_try" in 2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2102 *) ac_try_echo=$ac_try;; 2103esac 2104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2105 (eval "$ac_compiler -v >&5") 2>&5 2106 ac_status=$? 2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2108 (exit $ac_status); } 2109{ (ac_try="$ac_compiler -V >&5" 2110case "(($ac_try" in 2111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2112 *) ac_try_echo=$ac_try;; 2113esac 2114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2115 (eval "$ac_compiler -V >&5") 2>&5 2116 ac_status=$? 2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2118 (exit $ac_status); } 2119 2120cat >conftest.$ac_ext <<_ACEOF 2121/* confdefs.h. */ 2122_ACEOF 2123cat confdefs.h >>conftest.$ac_ext 2124cat >>conftest.$ac_ext <<_ACEOF 2125/* end confdefs.h. */ 2126 2127int 2128main () 2129{ 2130 2131 ; 2132 return 0; 2133} 2134_ACEOF 2135ac_clean_files_save=$ac_clean_files 2136ac_clean_files="$ac_clean_files a.out a.exe b.out" 2137# Try to create an executable without -o first, disregard a.out. 2138# It will help us diagnose broken compilers, and finding out an intuition 2139# of exeext. 2140{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2141echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2142ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2143# 2144# List of possible output files, starting from the most likely. 2145# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2146# only as a last resort. b.out is created by i960 compilers. 2147ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2148# 2149# The IRIX 6 linker writes into existing files which may not be 2150# executable, retaining their permissions. Remove them first so a 2151# subsequent execution test works. 2152ac_rmfiles= 2153for ac_file in $ac_files 2154do 2155 case $ac_file in 2156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2157 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2158 esac 2159done 2160rm -f $ac_rmfiles 2161 2162if { (ac_try="$ac_link_default" 2163case "(($ac_try" in 2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2165 *) ac_try_echo=$ac_try;; 2166esac 2167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2168 (eval "$ac_link_default") 2>&5 2169 ac_status=$? 2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2171 (exit $ac_status); }; then 2172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2174# in a Makefile. We should not override ac_cv_exeext if it was cached, 2175# so that the user can short-circuit this test for compilers unknown to 2176# Autoconf. 2177for ac_file in $ac_files 2178do 2179 test -f "$ac_file" || continue 2180 case $ac_file in 2181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2182 ;; 2183 [ab].out ) 2184 # We found the default executable, but exeext='' is most 2185 # certainly right. 2186 break;; 2187 *.* ) 2188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2189 then :; else 2190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2191 fi 2192 # We set ac_cv_exeext here because the later test for it is not 2193 # safe: cross compilers may not add the suffix if given an `-o' 2194 # argument, so we may need to know it at that point already. 2195 # Even if this section looks crufty: it has the advantage of 2196 # actually working. 2197 break;; 2198 * ) 2199 break;; 2200 esac 2201done 2202test "$ac_cv_exeext" = no && ac_cv_exeext= 2203 2204else 2205 echo "$as_me: failed program was:" >&5 2206sed 's/^/| /' conftest.$ac_ext >&5 2207 2208{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2209See \`config.log' for more details." >&5 2210echo "$as_me: error: C compiler cannot create executables 2211See \`config.log' for more details." >&2;} 2212 { (exit 77); exit 77; }; } 2213fi 2214 2215ac_exeext=$ac_cv_exeext 2216{ echo "$as_me:$LINENO: result: $ac_file" >&5 2217echo "${ECHO_T}$ac_file" >&6; } 2218 2219# Check that the compiler produces executables we can run. If not, either 2220# the compiler is broken, or we cross compile. 2221{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2222echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2223# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2224# If not cross compiling, check that we can run a simple program. 2225if test "$cross_compiling" != yes; then 2226 if { ac_try='./$ac_file' 2227 { (case "(($ac_try" in 2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2229 *) ac_try_echo=$ac_try;; 2230esac 2231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2232 (eval "$ac_try") 2>&5 2233 ac_status=$? 2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2235 (exit $ac_status); }; }; then 2236 cross_compiling=no 2237 else 2238 if test "$cross_compiling" = maybe; then 2239 cross_compiling=yes 2240 else 2241 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2242If you meant to cross compile, use \`--host'. 2243See \`config.log' for more details." >&5 2244echo "$as_me: error: cannot run C compiled programs. 2245If you meant to cross compile, use \`--host'. 2246See \`config.log' for more details." >&2;} 2247 { (exit 1); exit 1; }; } 2248 fi 2249 fi 2250fi 2251{ echo "$as_me:$LINENO: result: yes" >&5 2252echo "${ECHO_T}yes" >&6; } 2253 2254rm -f a.out a.exe conftest$ac_cv_exeext b.out 2255ac_clean_files=$ac_clean_files_save 2256# Check that the compiler produces executables we can run. If not, either 2257# the compiler is broken, or we cross compile. 2258{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2259echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2260{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2261echo "${ECHO_T}$cross_compiling" >&6; } 2262 2263{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2264echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2265if { (ac_try="$ac_link" 2266case "(($ac_try" in 2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2268 *) ac_try_echo=$ac_try;; 2269esac 2270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2271 (eval "$ac_link") 2>&5 2272 ac_status=$? 2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2274 (exit $ac_status); }; then 2275 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2276# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2277# work properly (i.e., refer to `conftest.exe'), while it won't with 2278# `rm'. 2279for ac_file in conftest.exe conftest conftest.*; do 2280 test -f "$ac_file" || continue 2281 case $ac_file in 2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2284 break;; 2285 * ) break;; 2286 esac 2287done 2288else 2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2290See \`config.log' for more details." >&5 2291echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2292See \`config.log' for more details." >&2;} 2293 { (exit 1); exit 1; }; } 2294fi 2295 2296rm -f conftest$ac_cv_exeext 2297{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2298echo "${ECHO_T}$ac_cv_exeext" >&6; } 2299 2300rm -f conftest.$ac_ext 2301EXEEXT=$ac_cv_exeext 2302ac_exeext=$EXEEXT 2303{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2304echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2305if test "${ac_cv_objext+set}" = set; then 2306 echo $ECHO_N "(cached) $ECHO_C" >&6 2307else 2308 cat >conftest.$ac_ext <<_ACEOF 2309/* confdefs.h. */ 2310_ACEOF 2311cat confdefs.h >>conftest.$ac_ext 2312cat >>conftest.$ac_ext <<_ACEOF 2313/* end confdefs.h. */ 2314 2315int 2316main () 2317{ 2318 2319 ; 2320 return 0; 2321} 2322_ACEOF 2323rm -f conftest.o conftest.obj 2324if { (ac_try="$ac_compile" 2325case "(($ac_try" in 2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2327 *) ac_try_echo=$ac_try;; 2328esac 2329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2330 (eval "$ac_compile") 2>&5 2331 ac_status=$? 2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2333 (exit $ac_status); }; then 2334 for ac_file in conftest.o conftest.obj conftest.*; do 2335 test -f "$ac_file" || continue; 2336 case $ac_file in 2337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2338 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2339 break;; 2340 esac 2341done 2342else 2343 echo "$as_me: failed program was:" >&5 2344sed 's/^/| /' conftest.$ac_ext >&5 2345 2346{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2347See \`config.log' for more details." >&5 2348echo "$as_me: error: cannot compute suffix of object files: cannot compile 2349See \`config.log' for more details." >&2;} 2350 { (exit 1); exit 1; }; } 2351fi 2352 2353rm -f conftest.$ac_cv_objext conftest.$ac_ext 2354fi 2355{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2356echo "${ECHO_T}$ac_cv_objext" >&6; } 2357OBJEXT=$ac_cv_objext 2358ac_objext=$OBJEXT 2359{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2360echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2361if test "${ac_cv_c_compiler_gnu+set}" = set; then 2362 echo $ECHO_N "(cached) $ECHO_C" >&6 2363else 2364 cat >conftest.$ac_ext <<_ACEOF 2365/* confdefs.h. */ 2366_ACEOF 2367cat confdefs.h >>conftest.$ac_ext 2368cat >>conftest.$ac_ext <<_ACEOF 2369/* end confdefs.h. */ 2370 2371int 2372main () 2373{ 2374#ifndef __GNUC__ 2375 choke me 2376#endif 2377 2378 ; 2379 return 0; 2380} 2381_ACEOF 2382rm -f conftest.$ac_objext 2383if { (ac_try="$ac_compile" 2384case "(($ac_try" in 2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2386 *) ac_try_echo=$ac_try;; 2387esac 2388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2389 (eval "$ac_compile") 2>conftest.er1 2390 ac_status=$? 2391 grep -v '^ *+' conftest.er1 >conftest.err 2392 rm -f conftest.er1 2393 cat conftest.err >&5 2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395 (exit $ac_status); } && 2396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2397 { (case "(($ac_try" in 2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2399 *) ac_try_echo=$ac_try;; 2400esac 2401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2402 (eval "$ac_try") 2>&5 2403 ac_status=$? 2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2405 (exit $ac_status); }; } && 2406 { ac_try='test -s conftest.$ac_objext' 2407 { (case "(($ac_try" in 2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2409 *) ac_try_echo=$ac_try;; 2410esac 2411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2412 (eval "$ac_try") 2>&5 2413 ac_status=$? 2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2415 (exit $ac_status); }; }; then 2416 ac_compiler_gnu=yes 2417else 2418 echo "$as_me: failed program was:" >&5 2419sed 's/^/| /' conftest.$ac_ext >&5 2420 2421 ac_compiler_gnu=no 2422fi 2423 2424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2425ac_cv_c_compiler_gnu=$ac_compiler_gnu 2426 2427fi 2428{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2429echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2430GCC=`test $ac_compiler_gnu = yes && echo yes` 2431ac_test_CFLAGS=${CFLAGS+set} 2432ac_save_CFLAGS=$CFLAGS 2433{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2434echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2435if test "${ac_cv_prog_cc_g+set}" = set; then 2436 echo $ECHO_N "(cached) $ECHO_C" >&6 2437else 2438 ac_save_c_werror_flag=$ac_c_werror_flag 2439 ac_c_werror_flag=yes 2440 ac_cv_prog_cc_g=no 2441 CFLAGS="-g" 2442 cat >conftest.$ac_ext <<_ACEOF 2443/* confdefs.h. */ 2444_ACEOF 2445cat confdefs.h >>conftest.$ac_ext 2446cat >>conftest.$ac_ext <<_ACEOF 2447/* end confdefs.h. */ 2448 2449int 2450main () 2451{ 2452 2453 ; 2454 return 0; 2455} 2456_ACEOF 2457rm -f conftest.$ac_objext 2458if { (ac_try="$ac_compile" 2459case "(($ac_try" in 2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2461 *) ac_try_echo=$ac_try;; 2462esac 2463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2464 (eval "$ac_compile") 2>conftest.er1 2465 ac_status=$? 2466 grep -v '^ *+' conftest.er1 >conftest.err 2467 rm -f conftest.er1 2468 cat conftest.err >&5 2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2470 (exit $ac_status); } && 2471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2472 { (case "(($ac_try" in 2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2474 *) ac_try_echo=$ac_try;; 2475esac 2476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2477 (eval "$ac_try") 2>&5 2478 ac_status=$? 2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2480 (exit $ac_status); }; } && 2481 { ac_try='test -s conftest.$ac_objext' 2482 { (case "(($ac_try" in 2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2484 *) ac_try_echo=$ac_try;; 2485esac 2486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2487 (eval "$ac_try") 2>&5 2488 ac_status=$? 2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2490 (exit $ac_status); }; }; then 2491 ac_cv_prog_cc_g=yes 2492else 2493 echo "$as_me: failed program was:" >&5 2494sed 's/^/| /' conftest.$ac_ext >&5 2495 2496 CFLAGS="" 2497 cat >conftest.$ac_ext <<_ACEOF 2498/* confdefs.h. */ 2499_ACEOF 2500cat confdefs.h >>conftest.$ac_ext 2501cat >>conftest.$ac_ext <<_ACEOF 2502/* end confdefs.h. */ 2503 2504int 2505main () 2506{ 2507 2508 ; 2509 return 0; 2510} 2511_ACEOF 2512rm -f conftest.$ac_objext 2513if { (ac_try="$ac_compile" 2514case "(($ac_try" in 2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2516 *) ac_try_echo=$ac_try;; 2517esac 2518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2519 (eval "$ac_compile") 2>conftest.er1 2520 ac_status=$? 2521 grep -v '^ *+' conftest.er1 >conftest.err 2522 rm -f conftest.er1 2523 cat conftest.err >&5 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); } && 2526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2527 { (case "(($ac_try" in 2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2529 *) ac_try_echo=$ac_try;; 2530esac 2531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2532 (eval "$ac_try") 2>&5 2533 ac_status=$? 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2535 (exit $ac_status); }; } && 2536 { ac_try='test -s conftest.$ac_objext' 2537 { (case "(($ac_try" in 2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2539 *) ac_try_echo=$ac_try;; 2540esac 2541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2542 (eval "$ac_try") 2>&5 2543 ac_status=$? 2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2545 (exit $ac_status); }; }; then 2546 : 2547else 2548 echo "$as_me: failed program was:" >&5 2549sed 's/^/| /' conftest.$ac_ext >&5 2550 2551 ac_c_werror_flag=$ac_save_c_werror_flag 2552 CFLAGS="-g" 2553 cat >conftest.$ac_ext <<_ACEOF 2554/* confdefs.h. */ 2555_ACEOF 2556cat confdefs.h >>conftest.$ac_ext 2557cat >>conftest.$ac_ext <<_ACEOF 2558/* end confdefs.h. */ 2559 2560int 2561main () 2562{ 2563 2564 ; 2565 return 0; 2566} 2567_ACEOF 2568rm -f conftest.$ac_objext 2569if { (ac_try="$ac_compile" 2570case "(($ac_try" in 2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2572 *) ac_try_echo=$ac_try;; 2573esac 2574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2575 (eval "$ac_compile") 2>conftest.er1 2576 ac_status=$? 2577 grep -v '^ *+' conftest.er1 >conftest.err 2578 rm -f conftest.er1 2579 cat conftest.err >&5 2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2581 (exit $ac_status); } && 2582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2583 { (case "(($ac_try" in 2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2585 *) ac_try_echo=$ac_try;; 2586esac 2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2588 (eval "$ac_try") 2>&5 2589 ac_status=$? 2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2591 (exit $ac_status); }; } && 2592 { ac_try='test -s conftest.$ac_objext' 2593 { (case "(($ac_try" in 2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2595 *) ac_try_echo=$ac_try;; 2596esac 2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2598 (eval "$ac_try") 2>&5 2599 ac_status=$? 2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2601 (exit $ac_status); }; }; then 2602 ac_cv_prog_cc_g=yes 2603else 2604 echo "$as_me: failed program was:" >&5 2605sed 's/^/| /' conftest.$ac_ext >&5 2606 2607 2608fi 2609 2610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2611fi 2612 2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2614fi 2615 2616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2617 ac_c_werror_flag=$ac_save_c_werror_flag 2618fi 2619{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2620echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2621if test "$ac_test_CFLAGS" = set; then 2622 CFLAGS=$ac_save_CFLAGS 2623elif test $ac_cv_prog_cc_g = yes; then 2624 if test "$GCC" = yes; then 2625 CFLAGS="-g -O2" 2626 else 2627 CFLAGS="-g" 2628 fi 2629else 2630 if test "$GCC" = yes; then 2631 CFLAGS="-O2" 2632 else 2633 CFLAGS= 2634 fi 2635fi 2636{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2637echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2638if test "${ac_cv_prog_cc_c89+set}" = set; then 2639 echo $ECHO_N "(cached) $ECHO_C" >&6 2640else 2641 ac_cv_prog_cc_c89=no 2642ac_save_CC=$CC 2643cat >conftest.$ac_ext <<_ACEOF 2644/* confdefs.h. */ 2645_ACEOF 2646cat confdefs.h >>conftest.$ac_ext 2647cat >>conftest.$ac_ext <<_ACEOF 2648/* end confdefs.h. */ 2649#include <stdarg.h> 2650#include <stdio.h> 2651#include <sys/types.h> 2652#include <sys/stat.h> 2653/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2654struct buf { int x; }; 2655FILE * (*rcsopen) (struct buf *, struct stat *, int); 2656static char *e (p, i) 2657 char **p; 2658 int i; 2659{ 2660 return p[i]; 2661} 2662static char *f (char * (*g) (char **, int), char **p, ...) 2663{ 2664 char *s; 2665 va_list v; 2666 va_start (v,p); 2667 s = g (p, va_arg (v,int)); 2668 va_end (v); 2669 return s; 2670} 2671 2672/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2673 function prototypes and stuff, but not '\xHH' hex character constants. 2674 These don't provoke an error unfortunately, instead are silently treated 2675 as 'x'. The following induces an error, until -std is added to get 2676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2677 array size at least. It's necessary to write '\x00'==0 to get something 2678 that's true only with -std. */ 2679int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2680 2681/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2682 inside strings and character constants. */ 2683#define FOO(x) 'x' 2684int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2685 2686int test (int i, double x); 2687struct s1 {int (*f) (int a);}; 2688struct s2 {int (*f) (double a);}; 2689int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2690int argc; 2691char **argv; 2692int 2693main () 2694{ 2695return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2696 ; 2697 return 0; 2698} 2699_ACEOF 2700for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2702do 2703 CC="$ac_save_CC $ac_arg" 2704 rm -f conftest.$ac_objext 2705if { (ac_try="$ac_compile" 2706case "(($ac_try" in 2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2708 *) ac_try_echo=$ac_try;; 2709esac 2710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2711 (eval "$ac_compile") 2>conftest.er1 2712 ac_status=$? 2713 grep -v '^ *+' conftest.er1 >conftest.err 2714 rm -f conftest.er1 2715 cat conftest.err >&5 2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2717 (exit $ac_status); } && 2718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2719 { (case "(($ac_try" in 2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2721 *) ac_try_echo=$ac_try;; 2722esac 2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2724 (eval "$ac_try") 2>&5 2725 ac_status=$? 2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2727 (exit $ac_status); }; } && 2728 { ac_try='test -s conftest.$ac_objext' 2729 { (case "(($ac_try" in 2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2731 *) ac_try_echo=$ac_try;; 2732esac 2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2734 (eval "$ac_try") 2>&5 2735 ac_status=$? 2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2737 (exit $ac_status); }; }; then 2738 ac_cv_prog_cc_c89=$ac_arg 2739else 2740 echo "$as_me: failed program was:" >&5 2741sed 's/^/| /' conftest.$ac_ext >&5 2742 2743 2744fi 2745 2746rm -f core conftest.err conftest.$ac_objext 2747 test "x$ac_cv_prog_cc_c89" != "xno" && break 2748done 2749rm -f conftest.$ac_ext 2750CC=$ac_save_CC 2751 2752fi 2753# AC_CACHE_VAL 2754case "x$ac_cv_prog_cc_c89" in 2755 x) 2756 { echo "$as_me:$LINENO: result: none needed" >&5 2757echo "${ECHO_T}none needed" >&6; } ;; 2758 xno) 2759 { echo "$as_me:$LINENO: result: unsupported" >&5 2760echo "${ECHO_T}unsupported" >&6; } ;; 2761 *) 2762 CC="$CC $ac_cv_prog_cc_c89" 2763 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2764echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2765esac 2766 2767 2768ac_ext=c 2769ac_cpp='$CPP $CPPFLAGS' 2770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2772ac_compiler_gnu=$ac_cv_c_compiler_gnu 2773 2774ac_ext=cpp 2775ac_cpp='$CXXCPP $CPPFLAGS' 2776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2779if test -z "$CXX"; then 2780 if test -n "$CCC"; then 2781 CXX=$CCC 2782 else 2783 if test -n "$ac_tool_prefix"; then 2784 for ac_prog in clang++ llvm-g++ g++ 2785 do 2786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2787set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2788{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2790if test "${ac_cv_prog_CXX+set}" = set; then 2791 echo $ECHO_N "(cached) $ECHO_C" >&6 2792else 2793 if test -n "$CXX"; then 2794 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2795else 2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2797for as_dir in $PATH 2798do 2799 IFS=$as_save_IFS 2800 test -z "$as_dir" && as_dir=. 2801 for ac_exec_ext in '' $ac_executable_extensions; do 2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2803 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2805 break 2 2806 fi 2807done 2808done 2809IFS=$as_save_IFS 2810 2811fi 2812fi 2813CXX=$ac_cv_prog_CXX 2814if test -n "$CXX"; then 2815 { echo "$as_me:$LINENO: result: $CXX" >&5 2816echo "${ECHO_T}$CXX" >&6; } 2817else 2818 { echo "$as_me:$LINENO: result: no" >&5 2819echo "${ECHO_T}no" >&6; } 2820fi 2821 2822 2823 test -n "$CXX" && break 2824 done 2825fi 2826if test -z "$CXX"; then 2827 ac_ct_CXX=$CXX 2828 for ac_prog in clang++ llvm-g++ g++ 2829do 2830 # Extract the first word of "$ac_prog", so it can be a program name with args. 2831set dummy $ac_prog; ac_word=$2 2832{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2834if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2835 echo $ECHO_N "(cached) $ECHO_C" >&6 2836else 2837 if test -n "$ac_ct_CXX"; then 2838 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2839else 2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2841for as_dir in $PATH 2842do 2843 IFS=$as_save_IFS 2844 test -z "$as_dir" && as_dir=. 2845 for ac_exec_ext in '' $ac_executable_extensions; do 2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2847 ac_cv_prog_ac_ct_CXX="$ac_prog" 2848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2849 break 2 2850 fi 2851done 2852done 2853IFS=$as_save_IFS 2854 2855fi 2856fi 2857ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2858if test -n "$ac_ct_CXX"; then 2859 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2860echo "${ECHO_T}$ac_ct_CXX" >&6; } 2861else 2862 { echo "$as_me:$LINENO: result: no" >&5 2863echo "${ECHO_T}no" >&6; } 2864fi 2865 2866 2867 test -n "$ac_ct_CXX" && break 2868done 2869 2870 if test "x$ac_ct_CXX" = x; then 2871 CXX="g++" 2872 else 2873 case $cross_compiling:$ac_tool_warned in 2874yes:) 2875{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2876whose name does not start with the host triplet. If you think this 2877configuration is useful to you, please write to autoconf@gnu.org." >&5 2878echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2879whose name does not start with the host triplet. If you think this 2880configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2881ac_tool_warned=yes ;; 2882esac 2883 CXX=$ac_ct_CXX 2884 fi 2885fi 2886 2887 fi 2888fi 2889# Provide some information about the compiler. 2890echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2891ac_compiler=`set X $ac_compile; echo $2` 2892{ (ac_try="$ac_compiler --version >&5" 2893case "(($ac_try" in 2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2895 *) ac_try_echo=$ac_try;; 2896esac 2897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2898 (eval "$ac_compiler --version >&5") 2>&5 2899 ac_status=$? 2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2901 (exit $ac_status); } 2902{ (ac_try="$ac_compiler -v >&5" 2903case "(($ac_try" in 2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2905 *) ac_try_echo=$ac_try;; 2906esac 2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2908 (eval "$ac_compiler -v >&5") 2>&5 2909 ac_status=$? 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); } 2912{ (ac_try="$ac_compiler -V >&5" 2913case "(($ac_try" in 2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2915 *) ac_try_echo=$ac_try;; 2916esac 2917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2918 (eval "$ac_compiler -V >&5") 2>&5 2919 ac_status=$? 2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2921 (exit $ac_status); } 2922 2923{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2924echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2925if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2926 echo $ECHO_N "(cached) $ECHO_C" >&6 2927else 2928 cat >conftest.$ac_ext <<_ACEOF 2929/* confdefs.h. */ 2930_ACEOF 2931cat confdefs.h >>conftest.$ac_ext 2932cat >>conftest.$ac_ext <<_ACEOF 2933/* end confdefs.h. */ 2934 2935int 2936main () 2937{ 2938#ifndef __GNUC__ 2939 choke me 2940#endif 2941 2942 ; 2943 return 0; 2944} 2945_ACEOF 2946rm -f conftest.$ac_objext 2947if { (ac_try="$ac_compile" 2948case "(($ac_try" in 2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2950 *) ac_try_echo=$ac_try;; 2951esac 2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2953 (eval "$ac_compile") 2>conftest.er1 2954 ac_status=$? 2955 grep -v '^ *+' conftest.er1 >conftest.err 2956 rm -f conftest.er1 2957 cat conftest.err >&5 2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2959 (exit $ac_status); } && 2960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2961 { (case "(($ac_try" in 2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2963 *) ac_try_echo=$ac_try;; 2964esac 2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2966 (eval "$ac_try") 2>&5 2967 ac_status=$? 2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2969 (exit $ac_status); }; } && 2970 { ac_try='test -s conftest.$ac_objext' 2971 { (case "(($ac_try" in 2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2973 *) ac_try_echo=$ac_try;; 2974esac 2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2976 (eval "$ac_try") 2>&5 2977 ac_status=$? 2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2979 (exit $ac_status); }; }; then 2980 ac_compiler_gnu=yes 2981else 2982 echo "$as_me: failed program was:" >&5 2983sed 's/^/| /' conftest.$ac_ext >&5 2984 2985 ac_compiler_gnu=no 2986fi 2987 2988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2989ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2990 2991fi 2992{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2993echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2994GXX=`test $ac_compiler_gnu = yes && echo yes` 2995ac_test_CXXFLAGS=${CXXFLAGS+set} 2996ac_save_CXXFLAGS=$CXXFLAGS 2997{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2998echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 2999if test "${ac_cv_prog_cxx_g+set}" = set; then 3000 echo $ECHO_N "(cached) $ECHO_C" >&6 3001else 3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3003 ac_cxx_werror_flag=yes 3004 ac_cv_prog_cxx_g=no 3005 CXXFLAGS="-g" 3006 cat >conftest.$ac_ext <<_ACEOF 3007/* confdefs.h. */ 3008_ACEOF 3009cat confdefs.h >>conftest.$ac_ext 3010cat >>conftest.$ac_ext <<_ACEOF 3011/* end confdefs.h. */ 3012 3013int 3014main () 3015{ 3016 3017 ; 3018 return 0; 3019} 3020_ACEOF 3021rm -f conftest.$ac_objext 3022if { (ac_try="$ac_compile" 3023case "(($ac_try" in 3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3025 *) ac_try_echo=$ac_try;; 3026esac 3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3028 (eval "$ac_compile") 2>conftest.er1 3029 ac_status=$? 3030 grep -v '^ *+' conftest.er1 >conftest.err 3031 rm -f conftest.er1 3032 cat conftest.err >&5 3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3034 (exit $ac_status); } && 3035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3036 { (case "(($ac_try" in 3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3038 *) ac_try_echo=$ac_try;; 3039esac 3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3041 (eval "$ac_try") 2>&5 3042 ac_status=$? 3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3044 (exit $ac_status); }; } && 3045 { ac_try='test -s conftest.$ac_objext' 3046 { (case "(($ac_try" in 3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3048 *) ac_try_echo=$ac_try;; 3049esac 3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3051 (eval "$ac_try") 2>&5 3052 ac_status=$? 3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3054 (exit $ac_status); }; }; then 3055 ac_cv_prog_cxx_g=yes 3056else 3057 echo "$as_me: failed program was:" >&5 3058sed 's/^/| /' conftest.$ac_ext >&5 3059 3060 CXXFLAGS="" 3061 cat >conftest.$ac_ext <<_ACEOF 3062/* confdefs.h. */ 3063_ACEOF 3064cat confdefs.h >>conftest.$ac_ext 3065cat >>conftest.$ac_ext <<_ACEOF 3066/* end confdefs.h. */ 3067 3068int 3069main () 3070{ 3071 3072 ; 3073 return 0; 3074} 3075_ACEOF 3076rm -f conftest.$ac_objext 3077if { (ac_try="$ac_compile" 3078case "(($ac_try" in 3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3080 *) ac_try_echo=$ac_try;; 3081esac 3082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3083 (eval "$ac_compile") 2>conftest.er1 3084 ac_status=$? 3085 grep -v '^ *+' conftest.er1 >conftest.err 3086 rm -f conftest.er1 3087 cat conftest.err >&5 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); } && 3090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3091 { (case "(($ac_try" in 3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3093 *) ac_try_echo=$ac_try;; 3094esac 3095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3096 (eval "$ac_try") 2>&5 3097 ac_status=$? 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); }; } && 3100 { ac_try='test -s conftest.$ac_objext' 3101 { (case "(($ac_try" in 3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3103 *) ac_try_echo=$ac_try;; 3104esac 3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3106 (eval "$ac_try") 2>&5 3107 ac_status=$? 3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3109 (exit $ac_status); }; }; then 3110 : 3111else 3112 echo "$as_me: failed program was:" >&5 3113sed 's/^/| /' conftest.$ac_ext >&5 3114 3115 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3116 CXXFLAGS="-g" 3117 cat >conftest.$ac_ext <<_ACEOF 3118/* confdefs.h. */ 3119_ACEOF 3120cat confdefs.h >>conftest.$ac_ext 3121cat >>conftest.$ac_ext <<_ACEOF 3122/* end confdefs.h. */ 3123 3124int 3125main () 3126{ 3127 3128 ; 3129 return 0; 3130} 3131_ACEOF 3132rm -f conftest.$ac_objext 3133if { (ac_try="$ac_compile" 3134case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137esac 3138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3139 (eval "$ac_compile") 2>conftest.er1 3140 ac_status=$? 3141 grep -v '^ *+' conftest.er1 >conftest.err 3142 rm -f conftest.er1 3143 cat conftest.err >&5 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3145 (exit $ac_status); } && 3146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3147 { (case "(($ac_try" in 3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3149 *) ac_try_echo=$ac_try;; 3150esac 3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3152 (eval "$ac_try") 2>&5 3153 ac_status=$? 3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3155 (exit $ac_status); }; } && 3156 { ac_try='test -s conftest.$ac_objext' 3157 { (case "(($ac_try" in 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3159 *) ac_try_echo=$ac_try;; 3160esac 3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3162 (eval "$ac_try") 2>&5 3163 ac_status=$? 3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3165 (exit $ac_status); }; }; then 3166 ac_cv_prog_cxx_g=yes 3167else 3168 echo "$as_me: failed program was:" >&5 3169sed 's/^/| /' conftest.$ac_ext >&5 3170 3171 3172fi 3173 3174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 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 3181 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3182fi 3183{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3184echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3185if test "$ac_test_CXXFLAGS" = set; then 3186 CXXFLAGS=$ac_save_CXXFLAGS 3187elif test $ac_cv_prog_cxx_g = yes; then 3188 if test "$GXX" = yes; then 3189 CXXFLAGS="-g -O2" 3190 else 3191 CXXFLAGS="-g" 3192 fi 3193else 3194 if test "$GXX" = yes; then 3195 CXXFLAGS="-O2" 3196 else 3197 CXXFLAGS= 3198 fi 3199fi 3200ac_ext=c 3201ac_cpp='$CPP $CPPFLAGS' 3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3204ac_compiler_gnu=$ac_cv_c_compiler_gnu 3205 3206ac_ext=c 3207ac_cpp='$CPP $CPPFLAGS' 3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3210ac_compiler_gnu=$ac_cv_c_compiler_gnu 3211{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3212echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3213# On Suns, sometimes $CPP names a directory. 3214if test -n "$CPP" && test -d "$CPP"; then 3215 CPP= 3216fi 3217if test -z "$CPP"; then 3218 if test "${ac_cv_prog_CPP+set}" = set; then 3219 echo $ECHO_N "(cached) $ECHO_C" >&6 3220else 3221 # Double quotes because CPP needs to be expanded 3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3223 do 3224 ac_preproc_ok=false 3225for ac_c_preproc_warn_flag in '' yes 3226do 3227 # Use a header file that comes with gcc, so configuring glibc 3228 # with a fresh cross-compiler works. 3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3230 # <limits.h> exists even on freestanding compilers. 3231 # On the NeXT, cc -E runs the code through the compiler's parser, 3232 # not just through cpp. "Syntax error" is here to catch this case. 3233 cat >conftest.$ac_ext <<_ACEOF 3234/* confdefs.h. */ 3235_ACEOF 3236cat confdefs.h >>conftest.$ac_ext 3237cat >>conftest.$ac_ext <<_ACEOF 3238/* end confdefs.h. */ 3239#ifdef __STDC__ 3240# include <limits.h> 3241#else 3242# include <assert.h> 3243#endif 3244 Syntax error 3245_ACEOF 3246if { (ac_try="$ac_cpp conftest.$ac_ext" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3253 ac_status=$? 3254 grep -v '^ *+' conftest.er1 >conftest.err 3255 rm -f conftest.er1 3256 cat conftest.err >&5 3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3258 (exit $ac_status); } >/dev/null; then 3259 if test -s conftest.err; then 3260 ac_cpp_err=$ac_c_preproc_warn_flag 3261 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3262 else 3263 ac_cpp_err= 3264 fi 3265else 3266 ac_cpp_err=yes 3267fi 3268if test -z "$ac_cpp_err"; then 3269 : 3270else 3271 echo "$as_me: failed program was:" >&5 3272sed 's/^/| /' conftest.$ac_ext >&5 3273 3274 # Broken: fails on valid input. 3275continue 3276fi 3277 3278rm -f conftest.err conftest.$ac_ext 3279 3280 # OK, works on sane cases. Now check whether nonexistent headers 3281 # can be detected and how. 3282 cat >conftest.$ac_ext <<_ACEOF 3283/* confdefs.h. */ 3284_ACEOF 3285cat confdefs.h >>conftest.$ac_ext 3286cat >>conftest.$ac_ext <<_ACEOF 3287/* end confdefs.h. */ 3288#include <ac_nonexistent.h> 3289_ACEOF 3290if { (ac_try="$ac_cpp conftest.$ac_ext" 3291case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294esac 3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3297 ac_status=$? 3298 grep -v '^ *+' conftest.er1 >conftest.err 3299 rm -f conftest.er1 3300 cat conftest.err >&5 3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3302 (exit $ac_status); } >/dev/null; then 3303 if test -s conftest.err; then 3304 ac_cpp_err=$ac_c_preproc_warn_flag 3305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3306 else 3307 ac_cpp_err= 3308 fi 3309else 3310 ac_cpp_err=yes 3311fi 3312if test -z "$ac_cpp_err"; then 3313 # Broken: success on invalid input. 3314continue 3315else 3316 echo "$as_me: failed program was:" >&5 3317sed 's/^/| /' conftest.$ac_ext >&5 3318 3319 # Passes both tests. 3320ac_preproc_ok=: 3321break 3322fi 3323 3324rm -f conftest.err conftest.$ac_ext 3325 3326done 3327# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3328rm -f conftest.err conftest.$ac_ext 3329if $ac_preproc_ok; then 3330 break 3331fi 3332 3333 done 3334 ac_cv_prog_CPP=$CPP 3335 3336fi 3337 CPP=$ac_cv_prog_CPP 3338else 3339 ac_cv_prog_CPP=$CPP 3340fi 3341{ echo "$as_me:$LINENO: result: $CPP" >&5 3342echo "${ECHO_T}$CPP" >&6; } 3343ac_preproc_ok=false 3344for ac_c_preproc_warn_flag in '' yes 3345do 3346 # Use a header file that comes with gcc, so configuring glibc 3347 # with a fresh cross-compiler works. 3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3349 # <limits.h> exists even on freestanding compilers. 3350 # On the NeXT, cc -E runs the code through the compiler's parser, 3351 # not just through cpp. "Syntax error" is here to catch this case. 3352 cat >conftest.$ac_ext <<_ACEOF 3353/* confdefs.h. */ 3354_ACEOF 3355cat confdefs.h >>conftest.$ac_ext 3356cat >>conftest.$ac_ext <<_ACEOF 3357/* end confdefs.h. */ 3358#ifdef __STDC__ 3359# include <limits.h> 3360#else 3361# include <assert.h> 3362#endif 3363 Syntax error 3364_ACEOF 3365if { (ac_try="$ac_cpp conftest.$ac_ext" 3366case "(($ac_try" in 3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3368 *) ac_try_echo=$ac_try;; 3369esac 3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3372 ac_status=$? 3373 grep -v '^ *+' conftest.er1 >conftest.err 3374 rm -f conftest.er1 3375 cat conftest.err >&5 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3377 (exit $ac_status); } >/dev/null; then 3378 if test -s conftest.err; then 3379 ac_cpp_err=$ac_c_preproc_warn_flag 3380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3381 else 3382 ac_cpp_err= 3383 fi 3384else 3385 ac_cpp_err=yes 3386fi 3387if test -z "$ac_cpp_err"; then 3388 : 3389else 3390 echo "$as_me: failed program was:" >&5 3391sed 's/^/| /' conftest.$ac_ext >&5 3392 3393 # Broken: fails on valid input. 3394continue 3395fi 3396 3397rm -f conftest.err conftest.$ac_ext 3398 3399 # OK, works on sane cases. Now check whether nonexistent headers 3400 # can be detected and how. 3401 cat >conftest.$ac_ext <<_ACEOF 3402/* confdefs.h. */ 3403_ACEOF 3404cat confdefs.h >>conftest.$ac_ext 3405cat >>conftest.$ac_ext <<_ACEOF 3406/* end confdefs.h. */ 3407#include <ac_nonexistent.h> 3408_ACEOF 3409if { (ac_try="$ac_cpp conftest.$ac_ext" 3410case "(($ac_try" in 3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3412 *) ac_try_echo=$ac_try;; 3413esac 3414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3416 ac_status=$? 3417 grep -v '^ *+' conftest.er1 >conftest.err 3418 rm -f conftest.er1 3419 cat conftest.err >&5 3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3421 (exit $ac_status); } >/dev/null; then 3422 if test -s conftest.err; then 3423 ac_cpp_err=$ac_c_preproc_warn_flag 3424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3425 else 3426 ac_cpp_err= 3427 fi 3428else 3429 ac_cpp_err=yes 3430fi 3431if test -z "$ac_cpp_err"; then 3432 # Broken: success on invalid input. 3433continue 3434else 3435 echo "$as_me: failed program was:" >&5 3436sed 's/^/| /' conftest.$ac_ext >&5 3437 3438 # Passes both tests. 3439ac_preproc_ok=: 3440break 3441fi 3442 3443rm -f conftest.err conftest.$ac_ext 3444 3445done 3446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3447rm -f conftest.err conftest.$ac_ext 3448if $ac_preproc_ok; then 3449 : 3450else 3451 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3452See \`config.log' for more details." >&5 3453echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3454See \`config.log' for more details." >&2;} 3455 { (exit 1); exit 1; }; } 3456fi 3457 3458ac_ext=c 3459ac_cpp='$CPP $CPPFLAGS' 3460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3462ac_compiler_gnu=$ac_cv_c_compiler_gnu 3463 3464 3465 3466 3467# Check whether --enable-polly was given. 3468if test "${enable_polly+set}" = set; then 3469 enableval=$enable_polly; 3470else 3471 enableval=default 3472fi 3473 3474case "$enableval" in 3475 yes) ENABLE_POLLY=1 3476 ;; 3477 no) ENABLE_POLLY=0 3478 ;; 3479 default) ENABLE_POLLY=1 3480 ;; 3481 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5 3482echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;} 3483 { (exit 1); exit 1; }; } ;; 3484esac 3485 3486 3487if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then 3488 LLVM_HAS_POLLY=1 3489 3490 subdirs="$subdirs tools/polly" 3491 3492fi 3493 3494 3495# Make sure we can run config.sub. 3496$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3497 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3498echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3499 { (exit 1); exit 1; }; } 3500 3501{ echo "$as_me:$LINENO: checking build system type" >&5 3502echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3503if test "${ac_cv_build+set}" = set; then 3504 echo $ECHO_N "(cached) $ECHO_C" >&6 3505else 3506 ac_build_alias=$build_alias 3507test "x$ac_build_alias" = x && 3508 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3509test "x$ac_build_alias" = x && 3510 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3511echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3512 { (exit 1); exit 1; }; } 3513ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3514 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3515echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3516 { (exit 1); exit 1; }; } 3517 3518fi 3519{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3520echo "${ECHO_T}$ac_cv_build" >&6; } 3521case $ac_cv_build in 3522*-*-*) ;; 3523*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3524echo "$as_me: error: invalid value of canonical build" >&2;} 3525 { (exit 1); exit 1; }; };; 3526esac 3527build=$ac_cv_build 3528ac_save_IFS=$IFS; IFS='-' 3529set x $ac_cv_build 3530shift 3531build_cpu=$1 3532build_vendor=$2 3533shift; shift 3534# Remember, the first character of IFS is used to create $*, 3535# except with old shells: 3536build_os=$* 3537IFS=$ac_save_IFS 3538case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3539 3540 3541{ echo "$as_me:$LINENO: checking host system type" >&5 3542echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3543if test "${ac_cv_host+set}" = set; then 3544 echo $ECHO_N "(cached) $ECHO_C" >&6 3545else 3546 if test "x$host_alias" = x; then 3547 ac_cv_host=$ac_cv_build 3548else 3549 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3550 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3551echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3552 { (exit 1); exit 1; }; } 3553fi 3554 3555fi 3556{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3557echo "${ECHO_T}$ac_cv_host" >&6; } 3558case $ac_cv_host in 3559*-*-*) ;; 3560*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3561echo "$as_me: error: invalid value of canonical host" >&2;} 3562 { (exit 1); exit 1; }; };; 3563esac 3564host=$ac_cv_host 3565ac_save_IFS=$IFS; IFS='-' 3566set x $ac_cv_host 3567shift 3568host_cpu=$1 3569host_vendor=$2 3570shift; shift 3571# Remember, the first character of IFS is used to create $*, 3572# except with old shells: 3573host_os=$* 3574IFS=$ac_save_IFS 3575case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3576 3577 3578{ echo "$as_me:$LINENO: checking target system type" >&5 3579echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 3580if test "${ac_cv_target+set}" = set; then 3581 echo $ECHO_N "(cached) $ECHO_C" >&6 3582else 3583 if test "x$target_alias" = x; then 3584 ac_cv_target=$ac_cv_host 3585else 3586 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3587 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 3588echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 3589 { (exit 1); exit 1; }; } 3590fi 3591 3592fi 3593{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 3594echo "${ECHO_T}$ac_cv_target" >&6; } 3595case $ac_cv_target in 3596*-*-*) ;; 3597*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 3598echo "$as_me: error: invalid value of canonical target" >&2;} 3599 { (exit 1); exit 1; }; };; 3600esac 3601target=$ac_cv_target 3602ac_save_IFS=$IFS; IFS='-' 3603set x $ac_cv_target 3604shift 3605target_cpu=$1 3606target_vendor=$2 3607shift; shift 3608# Remember, the first character of IFS is used to create $*, 3609# except with old shells: 3610target_os=$* 3611IFS=$ac_save_IFS 3612case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3613 3614 3615# The aliases save the names the user supplied, while $host etc. 3616# will get canonicalized. 3617test -n "$target_alias" && 3618 test "$program_prefix$program_suffix$program_transform_name" = \ 3619 NONENONEs,x,x, && 3620 program_prefix=${target_alias}- 3621 3622{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5 3623echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; } 3624if test "${llvm_cv_os_type+set}" = set; then 3625 echo $ECHO_N "(cached) $ECHO_C" >&6 3626else 3627 case $host in 3628 *-*-aix*) 3629 llvm_cv_link_all_option="-Wl,--whole-archive" 3630 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3631 llvm_cv_os_type="AIX" 3632 llvm_cv_platform_type="Unix" ;; 3633 *-*-irix*) 3634 llvm_cv_link_all_option="-Wl,--whole-archive" 3635 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3636 llvm_cv_os_type="IRIX" 3637 llvm_cv_platform_type="Unix" ;; 3638 *-*-cygwin*) 3639 llvm_cv_link_all_option="-Wl,--whole-archive" 3640 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3641 llvm_cv_os_type="Cygwin" 3642 llvm_cv_platform_type="Unix" ;; 3643 *-*-darwin*) 3644 llvm_cv_link_all_option="-Wl,-all_load" 3645 llvm_cv_no_link_all_option="-Wl,-noall_load" 3646 llvm_cv_os_type="Darwin" 3647 llvm_cv_platform_type="Unix" ;; 3648 *-*-minix*) 3649 llvm_cv_link_all_option="-Wl,-all_load" 3650 llvm_cv_no_link_all_option="-Wl,-noall_load" 3651 llvm_cv_os_type="Minix" 3652 llvm_cv_platform_type="Unix" ;; 3653 *-*-freebsd* | *-*-kfreebsd-gnu) 3654 llvm_cv_link_all_option="-Wl,--whole-archive" 3655 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3656 llvm_cv_os_type="FreeBSD" 3657 llvm_cv_platform_type="Unix" ;; 3658 *-*-openbsd*) 3659 llvm_cv_link_all_option="-Wl,--whole-archive" 3660 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3661 llvm_cv_os_type="OpenBSD" 3662 llvm_cv_platform_type="Unix" ;; 3663 *-*-netbsd*) 3664 llvm_cv_link_all_option="-Wl,--whole-archive" 3665 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3666 llvm_cv_os_type="NetBSD" 3667 llvm_cv_platform_type="Unix" ;; 3668 *-*-dragonfly*) 3669 llvm_cv_link_all_option="-Wl,--whole-archive" 3670 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3671 llvm_cv_os_type="DragonFly" 3672 llvm_cv_platform_type="Unix" ;; 3673 *-*-hpux*) 3674 llvm_cv_link_all_option="-Wl,--whole-archive" 3675 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3676 llvm_cv_os_type="HP-UX" 3677 llvm_cv_platform_type="Unix" ;; 3678 *-*-interix*) 3679 llvm_cv_link_all_option="-Wl,--whole-archive" 3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3681 llvm_cv_os_type="Interix" 3682 llvm_cv_platform_type="Unix" ;; 3683 *-*-linux*) 3684 llvm_cv_link_all_option="-Wl,--whole-archive" 3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3686 llvm_cv_os_type="Linux" 3687 llvm_cv_platform_type="Unix" ;; 3688 *-*-gnu*) 3689 llvm_cv_link_all_option="-Wl,--whole-archive" 3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3691 llvm_cv_os_type="GNU" 3692 llvm_cv_platform_type="Unix" ;; 3693 *-*-solaris*) 3694 llvm_cv_link_all_option="-Wl,-z,allextract" 3695 llvm_cv_no_link_all_option="-Wl,-z,defaultextract" 3696 llvm_cv_os_type="SunOS" 3697 llvm_cv_platform_type="Unix" ;; 3698 *-*-auroraux*) 3699 llvm_cv_link_all_option="-Wl,-z,allextract" 3700 llvm_cv_link_all_option="-Wl,-z,defaultextract" 3701 llvm_cv_os_type="AuroraUX" 3702 llvm_cv_platform_type="Unix" ;; 3703 *-*-win32*) 3704 llvm_cv_link_all_option="-Wl,--whole-archive" 3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3706 llvm_cv_os_type="Win32" 3707 llvm_cv_platform_type="Win32" ;; 3708 *-*-mingw*) 3709 llvm_cv_link_all_option="-Wl,--whole-archive" 3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3711 llvm_cv_os_type="MingW" 3712 llvm_cv_platform_type="Win32" ;; 3713 *-*-haiku*) 3714 llvm_cv_link_all_option="-Wl,--whole-archive" 3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3716 llvm_cv_os_type="Haiku" 3717 llvm_cv_platform_type="Unix" ;; 3718 *-unknown-eabi*) 3719 llvm_cv_link_all_option="-Wl,--whole-archive" 3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3721 llvm_cv_os_type="Freestanding" 3722 llvm_cv_platform_type="Unix" ;; 3723 *-unknown-elf*) 3724 llvm_cv_link_all_option="-Wl,--whole-archive" 3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive" 3726 llvm_cv_os_type="Freestanding" 3727 llvm_cv_platform_type="Unix" ;; 3728 *) 3729 llvm_cv_link_all_option="" 3730 llvm_cv_no_link_all_option="" 3731 llvm_cv_os_type="Unknown" 3732 llvm_cv_platform_type="Unknown" ;; 3733esac 3734fi 3735{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5 3736echo "${ECHO_T}$llvm_cv_os_type" >&6; } 3737 3738{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5 3739echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; } 3740if test "${llvm_cv_target_os_type+set}" = set; then 3741 echo $ECHO_N "(cached) $ECHO_C" >&6 3742else 3743 case $target in 3744 *-*-aix*) 3745 llvm_cv_target_os_type="AIX" ;; 3746 *-*-irix*) 3747 llvm_cv_target_os_type="IRIX" ;; 3748 *-*-cygwin*) 3749 llvm_cv_target_os_type="Cygwin" ;; 3750 *-*-darwin*) 3751 llvm_cv_target_os_type="Darwin" ;; 3752 *-*-minix*) 3753 llvm_cv_target_os_type="Minix" ;; 3754 *-*-freebsd* | *-*-kfreebsd-gnu) 3755 llvm_cv_target_os_type="FreeBSD" ;; 3756 *-*-openbsd*) 3757 llvm_cv_target_os_type="OpenBSD" ;; 3758 *-*-netbsd*) 3759 llvm_cv_target_os_type="NetBSD" ;; 3760 *-*-dragonfly*) 3761 llvm_cv_target_os_type="DragonFly" ;; 3762 *-*-hpux*) 3763 llvm_cv_target_os_type="HP-UX" ;; 3764 *-*-interix*) 3765 llvm_cv_target_os_type="Interix" ;; 3766 *-*-linux*) 3767 llvm_cv_target_os_type="Linux" ;; 3768 *-*-gnu*) 3769 llvm_cv_target_os_type="GNU" ;; 3770 *-*-solaris*) 3771 llvm_cv_target_os_type="SunOS" ;; 3772 *-*-auroraux*) 3773 llvm_cv_target_os_type="AuroraUX" ;; 3774 *-*-win32*) 3775 llvm_cv_target_os_type="Win32" ;; 3776 *-*-mingw*) 3777 llvm_cv_target_os_type="MingW" ;; 3778 *-*-haiku*) 3779 llvm_cv_target_os_type="Haiku" ;; 3780 *-*-rtems*) 3781 llvm_cv_target_os_type="RTEMS" ;; 3782 *-*-nacl*) 3783 llvm_cv_target_os_type="NativeClient" ;; 3784 *-unknown-eabi*) 3785 llvm_cv_target_os_type="Freestanding" ;; 3786 *) 3787 llvm_cv_target_os_type="Unknown" ;; 3788esac 3789fi 3790{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5 3791echo "${ECHO_T}$llvm_cv_target_os_type" >&6; } 3792 3793if test "$llvm_cv_os_type" = "Unknown" ; then 3794 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5 3795echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;} 3796 { (exit 1); exit 1; }; } 3797fi 3798 3799OS=$llvm_cv_os_type 3800 3801HOST_OS=$llvm_cv_os_type 3802 3803TARGET_OS=$llvm_cv_target_os_type 3804 3805 3806LINKALL=$llvm_cv_link_all_option 3807 3808NOLINKALL=$llvm_cv_no_link_all_option 3809 3810 3811case $llvm_cv_platform_type in 3812 Unix) 3813 3814cat >>confdefs.h <<\_ACEOF 3815#define LLVM_ON_UNIX 1 3816_ACEOF 3817 3818 LLVM_ON_UNIX=1 3819 3820 LLVM_ON_WIN32=0 3821 3822 ;; 3823 Win32) 3824 3825cat >>confdefs.h <<\_ACEOF 3826#define LLVM_ON_WIN32 1 3827_ACEOF 3828 3829 LLVM_ON_UNIX=0 3830 3831 LLVM_ON_WIN32=1 3832 3833 ;; 3834esac 3835 3836{ echo "$as_me:$LINENO: checking target architecture" >&5 3837echo $ECHO_N "checking target architecture... $ECHO_C" >&6; } 3838if test "${llvm_cv_target_arch+set}" = set; then 3839 echo $ECHO_N "(cached) $ECHO_C" >&6 3840else 3841 case $target in 3842 i?86-*) llvm_cv_target_arch="x86" ;; 3843 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;; 3844 sparc*-*) llvm_cv_target_arch="Sparc" ;; 3845 powerpc*-*) llvm_cv_target_arch="PowerPC" ;; 3846 arm*-*) llvm_cv_target_arch="ARM" ;; 3847 aarch64*-*) llvm_cv_target_arch="AArch64" ;; 3848 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;; 3849 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;; 3850 xcore-*) llvm_cv_target_arch="XCore" ;; 3851 msp430-*) llvm_cv_target_arch="MSP430" ;; 3852 hexagon-*) llvm_cv_target_arch="Hexagon" ;; 3853 nvptx-*) llvm_cv_target_arch="NVPTX" ;; 3854 s390x-*) llvm_cv_target_arch="SystemZ" ;; 3855 *) llvm_cv_target_arch="Unknown" ;; 3856esac 3857fi 3858{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5 3859echo "${ECHO_T}$llvm_cv_target_arch" >&6; } 3860 3861if test "$llvm_cv_target_arch" = "Unknown" ; then 3862 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5 3863echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;} 3864fi 3865 3866# Determine the LLVM native architecture for the target 3867case "$llvm_cv_target_arch" in 3868 x86) LLVM_NATIVE_ARCH="X86" ;; 3869 x86_64) LLVM_NATIVE_ARCH="X86" ;; 3870 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;; 3871esac 3872 3873ARCH=$llvm_cv_target_arch 3874 3875 3876 3877 3878{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3879echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3880if test "${ac_cv_path_GREP+set}" = set; then 3881 echo $ECHO_N "(cached) $ECHO_C" >&6 3882else 3883 # Extract the first word of "grep ggrep" to use in msg output 3884if test -z "$GREP"; then 3885set dummy grep ggrep; ac_prog_name=$2 3886if test "${ac_cv_path_GREP+set}" = set; then 3887 echo $ECHO_N "(cached) $ECHO_C" >&6 3888else 3889 ac_path_GREP_found=false 3890# Loop through the user's path and test for each of PROGNAME-LIST 3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3892for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3893do 3894 IFS=$as_save_IFS 3895 test -z "$as_dir" && as_dir=. 3896 for ac_prog in grep ggrep; do 3897 for ac_exec_ext in '' $ac_executable_extensions; do 3898 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3899 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3900 # Check for GNU ac_path_GREP and select it if it is found. 3901 # Check for GNU $ac_path_GREP 3902case `"$ac_path_GREP" --version 2>&1` in 3903*GNU*) 3904 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3905*) 3906 ac_count=0 3907 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3908 while : 3909 do 3910 cat "conftest.in" "conftest.in" >"conftest.tmp" 3911 mv "conftest.tmp" "conftest.in" 3912 cp "conftest.in" "conftest.nl" 3913 echo 'GREP' >> "conftest.nl" 3914 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3916 ac_count=`expr $ac_count + 1` 3917 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3918 # Best one so far, save it but keep looking for a better one 3919 ac_cv_path_GREP="$ac_path_GREP" 3920 ac_path_GREP_max=$ac_count 3921 fi 3922 # 10*(2^10) chars as input seems more than enough 3923 test $ac_count -gt 10 && break 3924 done 3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3926esac 3927 3928 3929 $ac_path_GREP_found && break 3 3930 done 3931done 3932 3933done 3934IFS=$as_save_IFS 3935 3936 3937fi 3938 3939GREP="$ac_cv_path_GREP" 3940if test -z "$GREP"; then 3941 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3942echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3943 { (exit 1); exit 1; }; } 3944fi 3945 3946else 3947 ac_cv_path_GREP=$GREP 3948fi 3949 3950 3951fi 3952{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3953echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3954 GREP="$ac_cv_path_GREP" 3955 3956 3957{ echo "$as_me:$LINENO: checking for egrep" >&5 3958echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3959if test "${ac_cv_path_EGREP+set}" = set; then 3960 echo $ECHO_N "(cached) $ECHO_C" >&6 3961else 3962 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3963 then ac_cv_path_EGREP="$GREP -E" 3964 else 3965 # Extract the first word of "egrep" to use in msg output 3966if test -z "$EGREP"; then 3967set dummy egrep; ac_prog_name=$2 3968if test "${ac_cv_path_EGREP+set}" = set; then 3969 echo $ECHO_N "(cached) $ECHO_C" >&6 3970else 3971 ac_path_EGREP_found=false 3972# Loop through the user's path and test for each of PROGNAME-LIST 3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3974for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3975do 3976 IFS=$as_save_IFS 3977 test -z "$as_dir" && as_dir=. 3978 for ac_prog in egrep; do 3979 for ac_exec_ext in '' $ac_executable_extensions; do 3980 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3981 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3982 # Check for GNU ac_path_EGREP and select it if it is found. 3983 # Check for GNU $ac_path_EGREP 3984case `"$ac_path_EGREP" --version 2>&1` in 3985*GNU*) 3986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3987*) 3988 ac_count=0 3989 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3990 while : 3991 do 3992 cat "conftest.in" "conftest.in" >"conftest.tmp" 3993 mv "conftest.tmp" "conftest.in" 3994 cp "conftest.in" "conftest.nl" 3995 echo 'EGREP' >> "conftest.nl" 3996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3998 ac_count=`expr $ac_count + 1` 3999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4000 # Best one so far, save it but keep looking for a better one 4001 ac_cv_path_EGREP="$ac_path_EGREP" 4002 ac_path_EGREP_max=$ac_count 4003 fi 4004 # 10*(2^10) chars as input seems more than enough 4005 test $ac_count -gt 10 && break 4006 done 4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4008esac 4009 4010 4011 $ac_path_EGREP_found && break 3 4012 done 4013done 4014 4015done 4016IFS=$as_save_IFS 4017 4018 4019fi 4020 4021EGREP="$ac_cv_path_EGREP" 4022if test -z "$EGREP"; then 4023 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4024echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4025 { (exit 1); exit 1; }; } 4026fi 4027 4028else 4029 ac_cv_path_EGREP=$EGREP 4030fi 4031 4032 4033 fi 4034fi 4035{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4036echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4037 EGREP="$ac_cv_path_EGREP" 4038 4039 4040{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4041echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4042if test "${ac_cv_header_stdc+set}" = set; then 4043 echo $ECHO_N "(cached) $ECHO_C" >&6 4044else 4045 cat >conftest.$ac_ext <<_ACEOF 4046/* confdefs.h. */ 4047_ACEOF 4048cat confdefs.h >>conftest.$ac_ext 4049cat >>conftest.$ac_ext <<_ACEOF 4050/* end confdefs.h. */ 4051#include <stdlib.h> 4052#include <stdarg.h> 4053#include <string.h> 4054#include <float.h> 4055 4056int 4057main () 4058{ 4059 4060 ; 4061 return 0; 4062} 4063_ACEOF 4064rm -f conftest.$ac_objext 4065if { (ac_try="$ac_compile" 4066case "(($ac_try" in 4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4068 *) ac_try_echo=$ac_try;; 4069esac 4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4071 (eval "$ac_compile") 2>conftest.er1 4072 ac_status=$? 4073 grep -v '^ *+' conftest.er1 >conftest.err 4074 rm -f conftest.er1 4075 cat conftest.err >&5 4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 (exit $ac_status); } && 4078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4079 { (case "(($ac_try" in 4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4081 *) ac_try_echo=$ac_try;; 4082esac 4083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4084 (eval "$ac_try") 2>&5 4085 ac_status=$? 4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4087 (exit $ac_status); }; } && 4088 { ac_try='test -s conftest.$ac_objext' 4089 { (case "(($ac_try" in 4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4091 *) ac_try_echo=$ac_try;; 4092esac 4093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4094 (eval "$ac_try") 2>&5 4095 ac_status=$? 4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4097 (exit $ac_status); }; }; then 4098 ac_cv_header_stdc=yes 4099else 4100 echo "$as_me: failed program was:" >&5 4101sed 's/^/| /' conftest.$ac_ext >&5 4102 4103 ac_cv_header_stdc=no 4104fi 4105 4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4107 4108if test $ac_cv_header_stdc = yes; then 4109 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4110 cat >conftest.$ac_ext <<_ACEOF 4111/* confdefs.h. */ 4112_ACEOF 4113cat confdefs.h >>conftest.$ac_ext 4114cat >>conftest.$ac_ext <<_ACEOF 4115/* end confdefs.h. */ 4116#include <string.h> 4117 4118_ACEOF 4119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4120 $EGREP "memchr" >/dev/null 2>&1; then 4121 : 4122else 4123 ac_cv_header_stdc=no 4124fi 4125rm -f conftest* 4126 4127fi 4128 4129if test $ac_cv_header_stdc = yes; then 4130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4131 cat >conftest.$ac_ext <<_ACEOF 4132/* confdefs.h. */ 4133_ACEOF 4134cat confdefs.h >>conftest.$ac_ext 4135cat >>conftest.$ac_ext <<_ACEOF 4136/* end confdefs.h. */ 4137#include <stdlib.h> 4138 4139_ACEOF 4140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4141 $EGREP "free" >/dev/null 2>&1; then 4142 : 4143else 4144 ac_cv_header_stdc=no 4145fi 4146rm -f conftest* 4147 4148fi 4149 4150if test $ac_cv_header_stdc = yes; then 4151 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4152 if test "$cross_compiling" = yes; then 4153 : 4154else 4155 cat >conftest.$ac_ext <<_ACEOF 4156/* confdefs.h. */ 4157_ACEOF 4158cat confdefs.h >>conftest.$ac_ext 4159cat >>conftest.$ac_ext <<_ACEOF 4160/* end confdefs.h. */ 4161#include <ctype.h> 4162#include <stdlib.h> 4163#if ((' ' & 0x0FF) == 0x020) 4164# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4165# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4166#else 4167# define ISLOWER(c) \ 4168 (('a' <= (c) && (c) <= 'i') \ 4169 || ('j' <= (c) && (c) <= 'r') \ 4170 || ('s' <= (c) && (c) <= 'z')) 4171# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4172#endif 4173 4174#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4175int 4176main () 4177{ 4178 int i; 4179 for (i = 0; i < 256; i++) 4180 if (XOR (islower (i), ISLOWER (i)) 4181 || toupper (i) != TOUPPER (i)) 4182 return 2; 4183 return 0; 4184} 4185_ACEOF 4186rm -f conftest$ac_exeext 4187if { (ac_try="$ac_link" 4188case "(($ac_try" in 4189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4190 *) ac_try_echo=$ac_try;; 4191esac 4192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4193 (eval "$ac_link") 2>&5 4194 ac_status=$? 4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4197 { (case "(($ac_try" in 4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4199 *) ac_try_echo=$ac_try;; 4200esac 4201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4202 (eval "$ac_try") 2>&5 4203 ac_status=$? 4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4205 (exit $ac_status); }; }; then 4206 : 4207else 4208 echo "$as_me: program exited with status $ac_status" >&5 4209echo "$as_me: failed program was:" >&5 4210sed 's/^/| /' conftest.$ac_ext >&5 4211 4212( exit $ac_status ) 4213ac_cv_header_stdc=no 4214fi 4215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4216fi 4217 4218 4219fi 4220fi 4221{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4222echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4223if test $ac_cv_header_stdc = yes; then 4224 4225cat >>confdefs.h <<\_ACEOF 4226#define STDC_HEADERS 1 4227_ACEOF 4228 4229fi 4230 4231# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4242 inttypes.h stdint.h unistd.h 4243do 4244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4245{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4248 echo $ECHO_N "(cached) $ECHO_C" >&6 4249else 4250 cat >conftest.$ac_ext <<_ACEOF 4251/* confdefs.h. */ 4252_ACEOF 4253cat confdefs.h >>conftest.$ac_ext 4254cat >>conftest.$ac_ext <<_ACEOF 4255/* end confdefs.h. */ 4256$ac_includes_default 4257 4258#include <$ac_header> 4259_ACEOF 4260rm -f conftest.$ac_objext 4261if { (ac_try="$ac_compile" 4262case "(($ac_try" in 4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4264 *) ac_try_echo=$ac_try;; 4265esac 4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4267 (eval "$ac_compile") 2>conftest.er1 4268 ac_status=$? 4269 grep -v '^ *+' conftest.er1 >conftest.err 4270 rm -f conftest.er1 4271 cat conftest.err >&5 4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4273 (exit $ac_status); } && 4274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4275 { (case "(($ac_try" in 4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4277 *) ac_try_echo=$ac_try;; 4278esac 4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4280 (eval "$ac_try") 2>&5 4281 ac_status=$? 4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4283 (exit $ac_status); }; } && 4284 { ac_try='test -s conftest.$ac_objext' 4285 { (case "(($ac_try" in 4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4287 *) ac_try_echo=$ac_try;; 4288esac 4289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4290 (eval "$ac_try") 2>&5 4291 ac_status=$? 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4293 (exit $ac_status); }; }; then 4294 eval "$as_ac_Header=yes" 4295else 4296 echo "$as_me: failed program was:" >&5 4297sed 's/^/| /' conftest.$ac_ext >&5 4298 4299 eval "$as_ac_Header=no" 4300fi 4301 4302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4303fi 4304ac_res=`eval echo '${'$as_ac_Header'}'` 4305 { echo "$as_me:$LINENO: result: $ac_res" >&5 4306echo "${ECHO_T}$ac_res" >&6; } 4307if test `eval echo '${'$as_ac_Header'}'` = yes; then 4308 cat >>confdefs.h <<_ACEOF 4309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4310_ACEOF 4311 4312fi 4313 4314done 4315 4316 4317{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4318echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4319if test "${ac_cv_c_bigendian+set}" = set; then 4320 echo $ECHO_N "(cached) $ECHO_C" >&6 4321else 4322 # See if sys/param.h defines the BYTE_ORDER macro. 4323cat >conftest.$ac_ext <<_ACEOF 4324/* confdefs.h. */ 4325_ACEOF 4326cat confdefs.h >>conftest.$ac_ext 4327cat >>conftest.$ac_ext <<_ACEOF 4328/* end confdefs.h. */ 4329#include <sys/types.h> 4330#include <sys/param.h> 4331 4332int 4333main () 4334{ 4335#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4336 bogus endian macros 4337#endif 4338 4339 ; 4340 return 0; 4341} 4342_ACEOF 4343rm -f conftest.$ac_objext 4344if { (ac_try="$ac_compile" 4345case "(($ac_try" in 4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4347 *) ac_try_echo=$ac_try;; 4348esac 4349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4350 (eval "$ac_compile") 2>conftest.er1 4351 ac_status=$? 4352 grep -v '^ *+' conftest.er1 >conftest.err 4353 rm -f conftest.er1 4354 cat conftest.err >&5 4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4356 (exit $ac_status); } && 4357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4358 { (case "(($ac_try" in 4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4360 *) ac_try_echo=$ac_try;; 4361esac 4362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4363 (eval "$ac_try") 2>&5 4364 ac_status=$? 4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4366 (exit $ac_status); }; } && 4367 { ac_try='test -s conftest.$ac_objext' 4368 { (case "(($ac_try" in 4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4370 *) ac_try_echo=$ac_try;; 4371esac 4372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4373 (eval "$ac_try") 2>&5 4374 ac_status=$? 4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4376 (exit $ac_status); }; }; then 4377 # It does; now see whether it defined to BIG_ENDIAN or not. 4378cat >conftest.$ac_ext <<_ACEOF 4379/* confdefs.h. */ 4380_ACEOF 4381cat confdefs.h >>conftest.$ac_ext 4382cat >>conftest.$ac_ext <<_ACEOF 4383/* end confdefs.h. */ 4384#include <sys/types.h> 4385#include <sys/param.h> 4386 4387int 4388main () 4389{ 4390#if BYTE_ORDER != BIG_ENDIAN 4391 not big endian 4392#endif 4393 4394 ; 4395 return 0; 4396} 4397_ACEOF 4398rm -f conftest.$ac_objext 4399if { (ac_try="$ac_compile" 4400case "(($ac_try" in 4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4402 *) ac_try_echo=$ac_try;; 4403esac 4404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4405 (eval "$ac_compile") 2>conftest.er1 4406 ac_status=$? 4407 grep -v '^ *+' conftest.er1 >conftest.err 4408 rm -f conftest.er1 4409 cat conftest.err >&5 4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4411 (exit $ac_status); } && 4412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4413 { (case "(($ac_try" in 4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4415 *) ac_try_echo=$ac_try;; 4416esac 4417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4418 (eval "$ac_try") 2>&5 4419 ac_status=$? 4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4421 (exit $ac_status); }; } && 4422 { ac_try='test -s conftest.$ac_objext' 4423 { (case "(($ac_try" in 4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4425 *) ac_try_echo=$ac_try;; 4426esac 4427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4428 (eval "$ac_try") 2>&5 4429 ac_status=$? 4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4431 (exit $ac_status); }; }; then 4432 ac_cv_c_bigendian=yes 4433else 4434 echo "$as_me: failed program was:" >&5 4435sed 's/^/| /' conftest.$ac_ext >&5 4436 4437 ac_cv_c_bigendian=no 4438fi 4439 4440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4441else 4442 echo "$as_me: failed program was:" >&5 4443sed 's/^/| /' conftest.$ac_ext >&5 4444 4445 # It does not; compile a test program. 4446if test "$cross_compiling" = yes; then 4447 # try to guess the endianness by grepping values into an object file 4448 ac_cv_c_bigendian=unknown 4449 cat >conftest.$ac_ext <<_ACEOF 4450/* confdefs.h. */ 4451_ACEOF 4452cat confdefs.h >>conftest.$ac_ext 4453cat >>conftest.$ac_ext <<_ACEOF 4454/* end confdefs.h. */ 4455short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4456short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4457void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4458short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4459short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4460void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4461int 4462main () 4463{ 4464 _ascii (); _ebcdic (); 4465 ; 4466 return 0; 4467} 4468_ACEOF 4469rm -f conftest.$ac_objext 4470if { (ac_try="$ac_compile" 4471case "(($ac_try" in 4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4473 *) ac_try_echo=$ac_try;; 4474esac 4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4476 (eval "$ac_compile") 2>conftest.er1 4477 ac_status=$? 4478 grep -v '^ *+' conftest.er1 >conftest.err 4479 rm -f conftest.er1 4480 cat conftest.err >&5 4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4482 (exit $ac_status); } && 4483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4484 { (case "(($ac_try" in 4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4486 *) ac_try_echo=$ac_try;; 4487esac 4488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4489 (eval "$ac_try") 2>&5 4490 ac_status=$? 4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4492 (exit $ac_status); }; } && 4493 { ac_try='test -s conftest.$ac_objext' 4494 { (case "(($ac_try" in 4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4496 *) ac_try_echo=$ac_try;; 4497esac 4498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4499 (eval "$ac_try") 2>&5 4500 ac_status=$? 4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4502 (exit $ac_status); }; }; then 4503 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4504 ac_cv_c_bigendian=yes 4505fi 4506if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4507 if test "$ac_cv_c_bigendian" = unknown; then 4508 ac_cv_c_bigendian=no 4509 else 4510 # finding both strings is unlikely to happen, but who knows? 4511 ac_cv_c_bigendian=unknown 4512 fi 4513fi 4514else 4515 echo "$as_me: failed program was:" >&5 4516sed 's/^/| /' conftest.$ac_ext >&5 4517 4518 4519fi 4520 4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4522else 4523 cat >conftest.$ac_ext <<_ACEOF 4524/* confdefs.h. */ 4525_ACEOF 4526cat confdefs.h >>conftest.$ac_ext 4527cat >>conftest.$ac_ext <<_ACEOF 4528/* end confdefs.h. */ 4529$ac_includes_default 4530int 4531main () 4532{ 4533 4534 /* Are we little or big endian? From Harbison&Steele. */ 4535 union 4536 { 4537 long int l; 4538 char c[sizeof (long int)]; 4539 } u; 4540 u.l = 1; 4541 return u.c[sizeof (long int) - 1] == 1; 4542 4543 ; 4544 return 0; 4545} 4546_ACEOF 4547rm -f conftest$ac_exeext 4548if { (ac_try="$ac_link" 4549case "(($ac_try" in 4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4551 *) ac_try_echo=$ac_try;; 4552esac 4553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4554 (eval "$ac_link") 2>&5 4555 ac_status=$? 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4558 { (case "(($ac_try" in 4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4560 *) ac_try_echo=$ac_try;; 4561esac 4562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4563 (eval "$ac_try") 2>&5 4564 ac_status=$? 4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4566 (exit $ac_status); }; }; then 4567 ac_cv_c_bigendian=no 4568else 4569 echo "$as_me: program exited with status $ac_status" >&5 4570echo "$as_me: failed program was:" >&5 4571sed 's/^/| /' conftest.$ac_ext >&5 4572 4573( exit $ac_status ) 4574ac_cv_c_bigendian=yes 4575fi 4576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4577fi 4578 4579 4580fi 4581 4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4583fi 4584{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4585echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4586case $ac_cv_c_bigendian in 4587 yes) 4588 ENDIAN=big 4589 ;; 4590 no) 4591 ENDIAN=little 4592 ;; 4593 *) 4594 { { echo "$as_me:$LINENO: error: unknown endianness 4595presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4596echo "$as_me: error: unknown endianness 4597presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4598 { (exit 1); exit 1; }; } ;; 4599esac 4600 4601 4602if test "$cross_compiling" = yes; then 4603 LLVM_CROSS_COMPILING=1 4604 4605 4606{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5 4607echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; } 4608if test "${ac_cv_build_exeext+set}" = set; then 4609 echo $ECHO_N "(cached) $ECHO_C" >&6 4610else 4611 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 4612 ac_cv_build_exeext=.exe 4613else 4614 ac_build_prefix=${build_alias}- 4615 4616 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args. 4617set dummy ${ac_build_prefix}gcc; ac_word=$2 4618{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4620if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4621 echo $ECHO_N "(cached) $ECHO_C" >&6 4622else 4623 if test -n "$BUILD_CC"; then 4624 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4625else 4626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4627for as_dir in $PATH 4628do 4629 IFS=$as_save_IFS 4630 test -z "$as_dir" && as_dir=. 4631 for ac_exec_ext in '' $ac_executable_extensions; do 4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4633 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc" 4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4635 break 2 4636 fi 4637done 4638done 4639IFS=$as_save_IFS 4640 4641fi 4642fi 4643BUILD_CC=$ac_cv_prog_BUILD_CC 4644if test -n "$BUILD_CC"; then 4645 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4646echo "${ECHO_T}$BUILD_CC" >&6; } 4647else 4648 { echo "$as_me:$LINENO: result: no" >&5 4649echo "${ECHO_T}no" >&6; } 4650fi 4651 4652 4653 if test -z "$BUILD_CC"; then 4654 # Extract the first word of "gcc", so it can be a program name with args. 4655set dummy gcc; ac_word=$2 4656{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4658if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4659 echo $ECHO_N "(cached) $ECHO_C" >&6 4660else 4661 if test -n "$BUILD_CC"; then 4662 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4663else 4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4665for as_dir in $PATH 4666do 4667 IFS=$as_save_IFS 4668 test -z "$as_dir" && as_dir=. 4669 for ac_exec_ext in '' $ac_executable_extensions; do 4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4671 ac_cv_prog_BUILD_CC="gcc" 4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4673 break 2 4674 fi 4675done 4676done 4677IFS=$as_save_IFS 4678 4679fi 4680fi 4681BUILD_CC=$ac_cv_prog_BUILD_CC 4682if test -n "$BUILD_CC"; then 4683 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4684echo "${ECHO_T}$BUILD_CC" >&6; } 4685else 4686 { echo "$as_me:$LINENO: result: no" >&5 4687echo "${ECHO_T}no" >&6; } 4688fi 4689 4690 4691 if test -z "$BUILD_CC"; then 4692 # Extract the first word of "cc", so it can be a program name with args. 4693set dummy cc; ac_word=$2 4694{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4696if test "${ac_cv_prog_BUILD_CC+set}" = set; then 4697 echo $ECHO_N "(cached) $ECHO_C" >&6 4698else 4699 if test -n "$BUILD_CC"; then 4700 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 4701else 4702 ac_prog_rejected=no 4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4704for as_dir in $PATH 4705do 4706 IFS=$as_save_IFS 4707 test -z "$as_dir" && as_dir=. 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4710 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4711 ac_prog_rejected=yes 4712 continue 4713 fi 4714 ac_cv_prog_BUILD_CC="cc" 4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4716 break 2 4717 fi 4718done 4719done 4720IFS=$as_save_IFS 4721 4722if test $ac_prog_rejected = yes; then 4723 # We found a bogon in the path, so make sure we never use it. 4724 set dummy $ac_cv_prog_BUILD_CC 4725 shift 4726 if test $# != 0; then 4727 # We chose a different compiler from the bogus one. 4728 # However, it has the same basename, so the bogon will be chosen 4729 # first if we set BUILD_CC to just the basename; use the full file name. 4730 shift 4731 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@" 4732 fi 4733fi 4734fi 4735fi 4736BUILD_CC=$ac_cv_prog_BUILD_CC 4737if test -n "$BUILD_CC"; then 4738 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 4739echo "${ECHO_T}$BUILD_CC" >&6; } 4740else 4741 { echo "$as_me:$LINENO: result: no" >&5 4742echo "${ECHO_T}no" >&6; } 4743fi 4744 4745 4746 fi 4747 fi 4748 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5 4749echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 4750 { (exit 1); exit 1; }; } 4751 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4752 rm -f conftest* 4753 echo 'int main () { return 0; }' > conftest.$ac_ext 4754 ac_cv_build_exeext= 4755 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5 4756 (eval $ac_build_link) 2>&5 4757 ac_status=$? 4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4759 (exit $ac_status); }; then 4760 for file in conftest.*; do 4761 case $file in 4762 *.c | *.o | *.obj | *.dSYM) ;; 4763 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 4764 esac 4765 done 4766 else 4767 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5 4768echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;} 4769 { (exit 1); exit 1; }; } 4770 fi 4771 rm -f conftest* 4772 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank 4773fi 4774fi 4775 4776BUILD_EXEEXT="" 4777test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext} 4778{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5 4779echo "${ECHO_T}${ac_cv_build_exeext}" >&6; } 4780ac_build_exeext=$BUILD_EXEEXT 4781 4782 ac_build_prefix=${build_alias}- 4783 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args. 4784set dummy ${ac_build_prefix}g++; ac_word=$2 4785{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4787if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4788 echo $ECHO_N "(cached) $ECHO_C" >&6 4789else 4790 if test -n "$BUILD_CXX"; then 4791 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4792else 4793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4794for as_dir in $PATH 4795do 4796 IFS=$as_save_IFS 4797 test -z "$as_dir" && as_dir=. 4798 for ac_exec_ext in '' $ac_executable_extensions; do 4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4800 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++" 4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4802 break 2 4803 fi 4804done 4805done 4806IFS=$as_save_IFS 4807 4808fi 4809fi 4810BUILD_CXX=$ac_cv_prog_BUILD_CXX 4811if test -n "$BUILD_CXX"; then 4812 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4813echo "${ECHO_T}$BUILD_CXX" >&6; } 4814else 4815 { echo "$as_me:$LINENO: result: no" >&5 4816echo "${ECHO_T}no" >&6; } 4817fi 4818 4819 4820 if test -z "$BUILD_CXX"; then 4821 # Extract the first word of "g++", so it can be a program name with args. 4822set dummy g++; ac_word=$2 4823{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4825if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4826 echo $ECHO_N "(cached) $ECHO_C" >&6 4827else 4828 if test -n "$BUILD_CXX"; then 4829 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4830else 4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4832for as_dir in $PATH 4833do 4834 IFS=$as_save_IFS 4835 test -z "$as_dir" && as_dir=. 4836 for ac_exec_ext in '' $ac_executable_extensions; do 4837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4838 ac_cv_prog_BUILD_CXX="g++" 4839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4840 break 2 4841 fi 4842done 4843done 4844IFS=$as_save_IFS 4845 4846fi 4847fi 4848BUILD_CXX=$ac_cv_prog_BUILD_CXX 4849if test -n "$BUILD_CXX"; then 4850 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4851echo "${ECHO_T}$BUILD_CXX" >&6; } 4852else 4853 { echo "$as_me:$LINENO: result: no" >&5 4854echo "${ECHO_T}no" >&6; } 4855fi 4856 4857 4858 if test -z "$BUILD_CXX"; then 4859 # Extract the first word of "c++", so it can be a program name with args. 4860set dummy c++; ac_word=$2 4861{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4863if test "${ac_cv_prog_BUILD_CXX+set}" = set; then 4864 echo $ECHO_N "(cached) $ECHO_C" >&6 4865else 4866 if test -n "$BUILD_CXX"; then 4867 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test. 4868else 4869 ac_prog_rejected=no 4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4871for as_dir in $PATH 4872do 4873 IFS=$as_save_IFS 4874 test -z "$as_dir" && as_dir=. 4875 for ac_exec_ext in '' $ac_executable_extensions; do 4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4877 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then 4878 ac_prog_rejected=yes 4879 continue 4880 fi 4881 ac_cv_prog_BUILD_CXX="c++" 4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4883 break 2 4884 fi 4885done 4886done 4887IFS=$as_save_IFS 4888 4889if test $ac_prog_rejected = yes; then 4890 # We found a bogon in the path, so make sure we never use it. 4891 set dummy $ac_cv_prog_BUILD_CXX 4892 shift 4893 if test $# != 0; then 4894 # We chose a different compiler from the bogus one. 4895 # However, it has the same basename, so the bogon will be chosen 4896 # first if we set BUILD_CXX to just the basename; use the full file name. 4897 shift 4898 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@" 4899 fi 4900fi 4901fi 4902fi 4903BUILD_CXX=$ac_cv_prog_BUILD_CXX 4904if test -n "$BUILD_CXX"; then 4905 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5 4906echo "${ECHO_T}$BUILD_CXX" >&6; } 4907else 4908 { echo "$as_me:$LINENO: result: no" >&5 4909echo "${ECHO_T}no" >&6; } 4910fi 4911 4912 4913 fi 4914 fi 4915else 4916 LLVM_CROSS_COMPILING=0 4917 4918fi 4919 4920if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then 4921 cvsbuild="yes" 4922 optimize="no" 4923 CVSBUILD=CVSBUILD=1 4924 4925else 4926 cvsbuild="no" 4927 optimize="yes" 4928fi 4929 4930 4931# Check whether --enable-libcpp was given. 4932if test "${enable_libcpp+set}" = set; then 4933 enableval=$enable_libcpp; 4934else 4935 enableval=default 4936fi 4937 4938case "$enableval" in 4939 yes) ENABLE_LIBCPP=1 4940 ;; 4941 no) ENABLE_LIBCPP=0 4942 ;; 4943 default) ENABLE_LIBCPP=0 4944;; 4945 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5 4946echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;} 4947 { (exit 1); exit 1; }; } ;; 4948esac 4949 4950# Check whether --enable-cxx11 was given. 4951if test "${enable_cxx11+set}" = set; then 4952 enableval=$enable_cxx11; 4953else 4954 enableval=default 4955fi 4956 4957case "$enableval" in 4958 yes) ENABLE_CXX11=1 4959 ;; 4960 no) ENABLE_CXX11=0 4961 ;; 4962 default) ENABLE_CXX11=0 4963;; 4964 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5 4965echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;} 4966 { (exit 1); exit 1; }; } ;; 4967esac 4968 4969# Check whether --enable-optimized was given. 4970if test "${enable_optimized+set}" = set; then 4971 enableval=$enable_optimized; 4972else 4973 enableval=$optimize 4974fi 4975 4976if test ${enableval} = "no" ; then 4977 ENABLE_OPTIMIZED= 4978 4979else 4980 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1 4981 4982fi 4983 4984# Check whether --enable-profiling was given. 4985if test "${enable_profiling+set}" = set; then 4986 enableval=$enable_profiling; 4987else 4988 enableval="no" 4989fi 4990 4991if test ${enableval} = "no" ; then 4992 ENABLE_PROFILING= 4993 4994else 4995 ENABLE_PROFILING=ENABLE_PROFILING=1 4996 4997fi 4998 4999# Check whether --enable-assertions was given. 5000if test "${enable_assertions+set}" = set; then 5001 enableval=$enable_assertions; 5002else 5003 enableval="yes" 5004fi 5005 5006if test ${enableval} = "yes" ; then 5007 DISABLE_ASSERTIONS= 5008 5009else 5010 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1 5011 5012fi 5013 5014# Check whether --enable-werror was given. 5015if test "${enable_werror+set}" = set; then 5016 enableval=$enable_werror; 5017else 5018 enableval="no" 5019fi 5020 5021case "$enableval" in 5022 yes) ENABLE_WERROR=1 5023 ;; 5024 no) ENABLE_WERROR=0 5025 ;; 5026 default) ENABLE_WERROR=0 5027;; 5028 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5 5029echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;} 5030 { (exit 1); exit 1; }; } ;; 5031esac 5032 5033# Check whether --enable-expensive-checks was given. 5034if test "${enable_expensive_checks+set}" = set; then 5035 enableval=$enable_expensive_checks; 5036else 5037 enableval="no" 5038fi 5039 5040if test ${enableval} = "yes" ; then 5041 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1 5042 5043 EXPENSIVE_CHECKS=yes 5044 5045else 5046 ENABLE_EXPENSIVE_CHECKS= 5047 5048 EXPENSIVE_CHECKS=no 5049 5050fi 5051 5052# Check whether --enable-debug-runtime was given. 5053if test "${enable_debug_runtime+set}" = set; then 5054 enableval=$enable_debug_runtime; 5055else 5056 enableval=no 5057fi 5058 5059if test ${enableval} = "no" ; then 5060 DEBUG_RUNTIME= 5061 5062else 5063 DEBUG_RUNTIME=DEBUG_RUNTIME=1 5064 5065fi 5066 5067# Check whether --enable-debug-symbols was given. 5068if test "${enable_debug_symbols+set}" = set; then 5069 enableval=$enable_debug_symbols; 5070else 5071 enableval=no 5072fi 5073 5074if test ${enableval} = "no" ; then 5075 DEBUG_SYMBOLS= 5076 5077else 5078 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1 5079 5080fi 5081 5082# Check whether --enable-jit was given. 5083if test "${enable_jit+set}" = set; then 5084 enableval=$enable_jit; 5085else 5086 enableval=default 5087fi 5088 5089if test ${enableval} = "no" 5090then 5091 JIT= 5092 5093else 5094 case "$llvm_cv_target_arch" in 5095 x86) TARGET_HAS_JIT=1 5096 ;; 5097 Sparc) TARGET_HAS_JIT=0 5098 ;; 5099 PowerPC) TARGET_HAS_JIT=1 5100 ;; 5101 x86_64) TARGET_HAS_JIT=1 5102 ;; 5103 ARM) TARGET_HAS_JIT=1 5104 ;; 5105 AArch64) TARGET_HAS_JIT=0 5106 ;; 5107 Mips) TARGET_HAS_JIT=1 5108 ;; 5109 XCore) TARGET_HAS_JIT=0 5110 ;; 5111 MSP430) TARGET_HAS_JIT=0 5112 ;; 5113 Hexagon) TARGET_HAS_JIT=0 5114 ;; 5115 NVPTX) TARGET_HAS_JIT=0 5116 ;; 5117 SystemZ) TARGET_HAS_JIT=1 5118 ;; 5119 *) TARGET_HAS_JIT=0 5120 ;; 5121 esac 5122fi 5123 5124# Check whether --enable-docs was given. 5125if test "${enable_docs+set}" = set; then 5126 enableval=$enable_docs; 5127else 5128 enableval=default 5129fi 5130 5131case "$enableval" in 5132 yes) ENABLE_DOCS=1 5133 ;; 5134 no) ENABLE_DOCS=0 5135 ;; 5136 default) ENABLE_DOCS=1 5137 ;; 5138 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5 5139echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;} 5140 { (exit 1); exit 1; }; } ;; 5141esac 5142 5143# Check whether --enable-doxygen was given. 5144if test "${enable_doxygen+set}" = set; then 5145 enableval=$enable_doxygen; 5146else 5147 enableval=default 5148fi 5149 5150case "$enableval" in 5151 yes) ENABLE_DOXYGEN=1 5152 ;; 5153 no) ENABLE_DOXYGEN=0 5154 ;; 5155 default) ENABLE_DOXYGEN=0 5156 ;; 5157 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5 5158echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;} 5159 { (exit 1); exit 1; }; } ;; 5160esac 5161 5162# Check whether --enable-threads was given. 5163if test "${enable_threads+set}" = set; then 5164 enableval=$enable_threads; 5165else 5166 enableval=default 5167fi 5168 5169case "$enableval" in 5170 yes) ENABLE_THREADS=1 5171 ;; 5172 no) ENABLE_THREADS=0 5173 ;; 5174 default) ENABLE_THREADS=1 5175 ;; 5176 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5 5177echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;} 5178 { (exit 1); exit 1; }; } ;; 5179esac 5180 5181cat >>confdefs.h <<_ACEOF 5182#define ENABLE_THREADS $ENABLE_THREADS 5183_ACEOF 5184 5185 5186# Check whether --enable-pthreads was given. 5187if test "${enable_pthreads+set}" = set; then 5188 enableval=$enable_pthreads; 5189else 5190 enableval=default 5191fi 5192 5193case "$enableval" in 5194 yes) ENABLE_PTHREADS=1 5195 ;; 5196 no) ENABLE_PTHREADS=0 5197 ;; 5198 default) ENABLE_PTHREADS=1 5199 ;; 5200 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5 5201echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;} 5202 { (exit 1); exit 1; }; } ;; 5203esac 5204 5205# Check whether --enable-pic was given. 5206if test "${enable_pic+set}" = set; then 5207 enableval=$enable_pic; 5208else 5209 enableval=default 5210fi 5211 5212case "$enableval" in 5213 yes) ENABLE_PIC=1 5214 ;; 5215 no) ENABLE_PIC=0 5216 ;; 5217 default) ENABLE_PIC=1 5218 ;; 5219 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5 5220echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;} 5221 { (exit 1); exit 1; }; } ;; 5222esac 5223 5224cat >>confdefs.h <<_ACEOF 5225#define ENABLE_PIC $ENABLE_PIC 5226_ACEOF 5227 5228 5229# Check whether --enable-shared was given. 5230if test "${enable_shared+set}" = set; then 5231 enableval=$enable_shared; 5232else 5233 enableval=default 5234fi 5235 5236case "$enableval" in 5237 yes) ENABLE_SHARED=1 5238 ;; 5239 no) ENABLE_SHARED=0 5240 ;; 5241 default) ENABLE_SHARED=0 5242 ;; 5243 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5 5244echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;} 5245 { (exit 1); exit 1; }; } ;; 5246esac 5247 5248# Check whether --enable-embed-stdcxx was given. 5249if test "${enable_embed_stdcxx+set}" = set; then 5250 enableval=$enable_embed_stdcxx; 5251else 5252 enableval=default 5253fi 5254 5255case "$enableval" in 5256 yes) ENABLE_EMBED_STDCXX=1 5257 ;; 5258 no) ENABLE_EMBED_STDCXX=0 5259 ;; 5260 default) ENABLE_EMBED_STDCXX=1 5261 ;; 5262 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5 5263echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;} 5264 { (exit 1); exit 1; }; } ;; 5265esac 5266 5267# Check whether --enable-timestamps was given. 5268if test "${enable_timestamps+set}" = set; then 5269 enableval=$enable_timestamps; 5270else 5271 enableval=default 5272fi 5273 5274case "$enableval" in 5275 yes) ENABLE_TIMESTAMPS=1 5276 ;; 5277 no) ENABLE_TIMESTAMPS=0 5278 ;; 5279 default) ENABLE_TIMESTAMPS=1 5280 ;; 5281 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5 5282echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;} 5283 { (exit 1); exit 1; }; } ;; 5284esac 5285 5286cat >>confdefs.h <<_ACEOF 5287#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS 5288_ACEOF 5289 5290 5291TARGETS_TO_BUILD="" 5292# Check whether --enable-targets was given. 5293if test "${enable_targets+set}" = set; then 5294 enableval=$enable_targets; 5295else 5296 enableval=all 5297fi 5298 5299if test "$enableval" = host-only ; then 5300 enableval=host 5301fi 5302case "$enableval" in 5303 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600" ;; 5304 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 5305 case "$a_target" in 5306 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5307 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5308 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5309 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5310 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5311 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5312 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5313 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5314 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5315 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5316 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5317 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5318 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 5319 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5320 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5321 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5322 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;; 5323 host) case "$llvm_cv_target_arch" in 5324 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5325 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 5326 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 5327 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 5328 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;; 5329 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 5330 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 5331 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 5332 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 5333 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;; 5334 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;; 5335 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 5336 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5 5337echo "$as_me: error: Can not set target to build" >&2;} 5338 { (exit 1); exit 1; }; } ;; 5339 esac ;; 5340 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5 5341echo "$as_me: error: Unrecognized target $a_target" >&2;} 5342 { (exit 1); exit 1; }; } ;; 5343 esac 5344 done 5345 ;; 5346esac 5347TARGETS_TO_BUILD=$TARGETS_TO_BUILD 5348 5349 5350# Determine whether we are building LLVM support for the native architecture. 5351# If so, define LLVM_NATIVE_ARCH to that LLVM target. 5352for a_target in $TARGETS_TO_BUILD; do 5353 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then 5354 5355cat >>confdefs.h <<_ACEOF 5356#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH 5357_ACEOF 5358 5359 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target" 5360 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo" 5361 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC" 5362 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter" 5363 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5364 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser" 5365 fi 5366 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5367 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler" 5368 fi 5369 5370cat >>confdefs.h <<_ACEOF 5371#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET 5372_ACEOF 5373 5374 5375cat >>confdefs.h <<_ACEOF 5376#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO 5377_ACEOF 5378 5379 5380cat >>confdefs.h <<_ACEOF 5381#define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC 5382_ACEOF 5383 5384 5385cat >>confdefs.h <<_ACEOF 5386#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER 5387_ACEOF 5388 5389 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then 5390 5391cat >>confdefs.h <<_ACEOF 5392#define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER 5393_ACEOF 5394 5395 fi 5396 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then 5397 5398cat >>confdefs.h <<_ACEOF 5399#define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER 5400_ACEOF 5401 5402 fi 5403 fi 5404done 5405 5406# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual 5407# target feature def files. 5408LLVM_ENUM_TARGETS="" 5409LLVM_ENUM_ASM_PRINTERS="" 5410LLVM_ENUM_ASM_PARSERS="" 5411LLVM_ENUM_DISASSEMBLERS="" 5412for target_to_build in $TARGETS_TO_BUILD; do 5413 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" 5414 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then 5415 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; 5416 fi 5417 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then 5418 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS"; 5419 fi 5420 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then 5421 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS"; 5422 fi 5423done 5424 5425 5426 5427 5428 5429 5430# Check whether --with-optimize-option was given. 5431if test "${with_optimize_option+set}" = set; then 5432 withval=$with_optimize_option; 5433else 5434 withval=default 5435fi 5436 5437{ echo "$as_me:$LINENO: checking optimization flags" >&5 5438echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; } 5439case "$withval" in 5440 default) 5441 case "$llvm_cv_os_type" in 5442 FreeBSD) optimize_option=-O2 ;; 5443 MingW) optimize_option=-O2 ;; 5444 *) optimize_option=-O3 ;; 5445 esac ;; 5446 *) optimize_option="$withval" ;; 5447esac 5448OPTIMIZE_OPTION=$optimize_option 5449 5450{ echo "$as_me:$LINENO: result: $optimize_option" >&5 5451echo "${ECHO_T}$optimize_option" >&6; } 5452 5453 5454# Check whether --with-extra-options was given. 5455if test "${with_extra_options+set}" = set; then 5456 withval=$with_extra_options; 5457else 5458 withval=default 5459fi 5460 5461case "$withval" in 5462 default) EXTRA_OPTIONS= ;; 5463 *) EXTRA_OPTIONS=$withval ;; 5464esac 5465EXTRA_OPTIONS=$EXTRA_OPTIONS 5466 5467 5468 5469# Check whether --with-extra-ld-options was given. 5470if test "${with_extra_ld_options+set}" = set; then 5471 withval=$with_extra_ld_options; 5472else 5473 withval=default 5474fi 5475 5476case "$withval" in 5477 default) EXTRA_LD_OPTIONS= ;; 5478 *) EXTRA_LD_OPTIONS=$withval ;; 5479esac 5480EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS 5481 5482 5483# Check whether --enable-bindings was given. 5484if test "${enable_bindings+set}" = set; then 5485 enableval=$enable_bindings; 5486else 5487 enableval=default 5488fi 5489 5490BINDINGS_TO_BUILD="" 5491case "$enableval" in 5492 yes | default | auto) BINDINGS_TO_BUILD="auto" ;; 5493 all ) BINDINGS_TO_BUILD="ocaml" ;; 5494 none | no) BINDINGS_TO_BUILD="" ;; 5495 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do 5496 case "$a_binding" in 5497 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;; 5498 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5 5499echo "$as_me: error: Unrecognized binding $a_binding" >&2;} 5500 { (exit 1); exit 1; }; } ;; 5501 esac 5502 done 5503 ;; 5504esac 5505 5506 5507# Check whether --with-ocaml-libdir was given. 5508if test "${with_ocaml_libdir+set}" = set; then 5509 withval=$with_ocaml_libdir; 5510else 5511 withval=auto 5512fi 5513 5514case "$withval" in 5515 auto) with_ocaml_libdir="$withval" ;; 5516 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;; 5517 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5 5518echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;} 5519 { (exit 1); exit 1; }; } ;; 5520esac 5521 5522 5523# Check whether --with-clang-resource-dir was given. 5524if test "${with_clang_resource_dir+set}" = set; then 5525 withval=$with_clang_resource_dir; 5526else 5527 withval="" 5528fi 5529 5530 5531cat >>confdefs.h <<_ACEOF 5532#define CLANG_RESOURCE_DIR "$withval" 5533_ACEOF 5534 5535 5536 5537# Check whether --with-c-include-dirs was given. 5538if test "${with_c_include_dirs+set}" = set; then 5539 withval=$with_c_include_dirs; 5540else 5541 withval="" 5542fi 5543 5544 5545cat >>confdefs.h <<_ACEOF 5546#define C_INCLUDE_DIRS "$withval" 5547_ACEOF 5548 5549 5550# Clang normally uses the system c++ headers and libraries. With this option, 5551# clang will use the ones provided by a gcc installation instead. This option should 5552# be passed the same value that was used with --prefix when configuring gcc. 5553 5554# Check whether --with-gcc-toolchain was given. 5555if test "${with_gcc_toolchain+set}" = set; then 5556 withval=$with_gcc_toolchain; 5557else 5558 withval="" 5559fi 5560 5561 5562cat >>confdefs.h <<_ACEOF 5563#define GCC_INSTALL_PREFIX "$withval" 5564_ACEOF 5565 5566 5567 5568# Check whether --with-binutils-include was given. 5569if test "${with_binutils_include+set}" = set; then 5570 withval=$with_binutils_include; 5571else 5572 withval=default 5573fi 5574 5575case "$withval" in 5576 default) WITH_BINUTILS_INCDIR=default ;; 5577 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;; 5578 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5 5579echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;} 5580 { (exit 1); exit 1; }; } ;; 5581esac 5582if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then 5583 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR 5584 5585 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then 5586 echo "$WITH_BINUTILS_INCDIR/plugin-api.h" 5587 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5 5588echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;} 5589 { (exit 1); exit 1; }; }; 5590 fi 5591fi 5592 5593 5594# Check whether --with-bug-report-url was given. 5595if test "${with_bug_report_url+set}" = set; then 5596 withval=$with_bug_report_url; 5597else 5598 withval="http://llvm.org/bugs/" 5599fi 5600 5601 5602cat >>confdefs.h <<_ACEOF 5603#define BUG_REPORT_URL "$withval" 5604_ACEOF 5605 5606 5607# Check whether --enable-libffi was given. 5608if test "${enable_libffi+set}" = set; then 5609 enableval=$enable_libffi; case "$enableval" in 5610 yes) llvm_cv_enable_libffi="yes" ;; 5611 no) llvm_cv_enable_libffi="no" ;; 5612 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5 5613echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;} 5614 { (exit 1); exit 1; }; } ;; 5615 esac 5616else 5617 llvm_cv_enable_libffi=no 5618fi 5619 5620 5621 5622{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 5623echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 5624if test "${lt_cv_path_NM+set}" = set; then 5625 echo $ECHO_N "(cached) $ECHO_C" >&6 5626else 5627 if test -n "$NM"; then 5628 # Let the user override the test. 5629 lt_cv_path_NM="$NM" 5630else 5631 lt_nm_to_check="${ac_tool_prefix}nm" 5632 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5633 lt_nm_to_check="$lt_nm_to_check nm" 5634 fi 5635 for lt_tmp_nm in $lt_nm_to_check; do 5636 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5637 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5638 IFS="$lt_save_ifs" 5639 test -z "$ac_dir" && ac_dir=. 5640 tmp_nm="$ac_dir/$lt_tmp_nm" 5641 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5642 # Check to see if the nm accepts a BSD-compat flag. 5643 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5644 # nm: unknown option "B" ignored 5645 # Tru64's nm complains that /dev/null is an invalid object file 5646 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5647 */dev/null* | *'Invalid file or object type'*) 5648 lt_cv_path_NM="$tmp_nm -B" 5649 break 5650 ;; 5651 *) 5652 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5653 */dev/null*) 5654 lt_cv_path_NM="$tmp_nm -p" 5655 break 5656 ;; 5657 *) 5658 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5659 continue # so that we can try to find one that supports BSD flags 5660 ;; 5661 esac 5662 ;; 5663 esac 5664 fi 5665 done 5666 IFS="$lt_save_ifs" 5667 done 5668 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5669fi 5670fi 5671{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5672echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5673NM="$lt_cv_path_NM" 5674 5675 5676 5677{ echo "$as_me:$LINENO: checking for GNU make" >&5 5678echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; } 5679if test "${llvm_cv_gnu_make_command+set}" = set; then 5680 echo $ECHO_N "(cached) $ECHO_C" >&6 5681else 5682 llvm_cv_gnu_make_command='' 5683 for a in "$MAKE" make gmake gnumake ; do 5684 if test -z "$a" ; then continue ; fi ; 5685 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) 5686 then 5687 llvm_cv_gnu_make_command=$a ; 5688 break; 5689 fi 5690 done 5691fi 5692{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5 5693echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; } 5694 if test "x$llvm_cv_gnu_make_command" != "x" ; then 5695 ifGNUmake='' ; 5696 else 5697 ifGNUmake='#' ; 5698 { echo "$as_me:$LINENO: result: \"Not found\"" >&5 5699echo "${ECHO_T}\"Not found\"" >&6; }; 5700 fi 5701 5702 5703{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 5704echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5705LN_S=$as_ln_s 5706if test "$LN_S" = "ln -s"; then 5707 { echo "$as_me:$LINENO: result: yes" >&5 5708echo "${ECHO_T}yes" >&6; } 5709else 5710 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5711echo "${ECHO_T}no, using $LN_S" >&6; } 5712fi 5713 5714# Extract the first word of "cmp", so it can be a program name with args. 5715set dummy cmp; ac_word=$2 5716{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5718if test "${ac_cv_path_CMP+set}" = set; then 5719 echo $ECHO_N "(cached) $ECHO_C" >&6 5720else 5721 case $CMP in 5722 [\\/]* | ?:[\\/]*) 5723 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5724 ;; 5725 *) 5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5727for as_dir in $PATH 5728do 5729 IFS=$as_save_IFS 5730 test -z "$as_dir" && as_dir=. 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5733 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5735 break 2 5736 fi 5737done 5738done 5739IFS=$as_save_IFS 5740 5741 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 5742 ;; 5743esac 5744fi 5745CMP=$ac_cv_path_CMP 5746if test -n "$CMP"; then 5747 { echo "$as_me:$LINENO: result: $CMP" >&5 5748echo "${ECHO_T}$CMP" >&6; } 5749else 5750 { echo "$as_me:$LINENO: result: no" >&5 5751echo "${ECHO_T}no" >&6; } 5752fi 5753 5754 5755# Extract the first word of "cp", so it can be a program name with args. 5756set dummy cp; ac_word=$2 5757{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5759if test "${ac_cv_path_CP+set}" = set; then 5760 echo $ECHO_N "(cached) $ECHO_C" >&6 5761else 5762 case $CP in 5763 [\\/]* | ?:[\\/]*) 5764 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5765 ;; 5766 *) 5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5774 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779done 5780IFS=$as_save_IFS 5781 5782 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 5783 ;; 5784esac 5785fi 5786CP=$ac_cv_path_CP 5787if test -n "$CP"; then 5788 { echo "$as_me:$LINENO: result: $CP" >&5 5789echo "${ECHO_T}$CP" >&6; } 5790else 5791 { echo "$as_me:$LINENO: result: no" >&5 5792echo "${ECHO_T}no" >&6; } 5793fi 5794 5795 5796# Extract the first word of "date", so it can be a program name with args. 5797set dummy date; ac_word=$2 5798{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5800if test "${ac_cv_path_DATE+set}" = set; then 5801 echo $ECHO_N "(cached) $ECHO_C" >&6 5802else 5803 case $DATE in 5804 [\\/]* | ?:[\\/]*) 5805 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5806 ;; 5807 *) 5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5809for as_dir in $PATH 5810do 5811 IFS=$as_save_IFS 5812 test -z "$as_dir" && as_dir=. 5813 for ac_exec_ext in '' $ac_executable_extensions; do 5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5815 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5817 break 2 5818 fi 5819done 5820done 5821IFS=$as_save_IFS 5822 5823 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date" 5824 ;; 5825esac 5826fi 5827DATE=$ac_cv_path_DATE 5828if test -n "$DATE"; then 5829 { echo "$as_me:$LINENO: result: $DATE" >&5 5830echo "${ECHO_T}$DATE" >&6; } 5831else 5832 { echo "$as_me:$LINENO: result: no" >&5 5833echo "${ECHO_T}no" >&6; } 5834fi 5835 5836 5837# Extract the first word of "find", so it can be a program name with args. 5838set dummy find; ac_word=$2 5839{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5841if test "${ac_cv_path_FIND+set}" = set; then 5842 echo $ECHO_N "(cached) $ECHO_C" >&6 5843else 5844 case $FIND in 5845 [\\/]* | ?:[\\/]*) 5846 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 5847 ;; 5848 *) 5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5850for as_dir in $PATH 5851do 5852 IFS=$as_save_IFS 5853 test -z "$as_dir" && as_dir=. 5854 for ac_exec_ext in '' $ac_executable_extensions; do 5855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5856 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 5857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5858 break 2 5859 fi 5860done 5861done 5862IFS=$as_save_IFS 5863 5864 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find" 5865 ;; 5866esac 5867fi 5868FIND=$ac_cv_path_FIND 5869if test -n "$FIND"; then 5870 { echo "$as_me:$LINENO: result: $FIND" >&5 5871echo "${ECHO_T}$FIND" >&6; } 5872else 5873 { echo "$as_me:$LINENO: result: no" >&5 5874echo "${ECHO_T}no" >&6; } 5875fi 5876 5877 5878# Extract the first word of "grep", so it can be a program name with args. 5879set dummy grep; ac_word=$2 5880{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5882if test "${ac_cv_path_GREP+set}" = set; then 5883 echo $ECHO_N "(cached) $ECHO_C" >&6 5884else 5885 case $GREP in 5886 [\\/]* | ?:[\\/]*) 5887 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 5888 ;; 5889 *) 5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5891for as_dir in $PATH 5892do 5893 IFS=$as_save_IFS 5894 test -z "$as_dir" && as_dir=. 5895 for ac_exec_ext in '' $ac_executable_extensions; do 5896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5897 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 5898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5899 break 2 5900 fi 5901done 5902done 5903IFS=$as_save_IFS 5904 5905 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep" 5906 ;; 5907esac 5908fi 5909GREP=$ac_cv_path_GREP 5910if test -n "$GREP"; then 5911 { echo "$as_me:$LINENO: result: $GREP" >&5 5912echo "${ECHO_T}$GREP" >&6; } 5913else 5914 { echo "$as_me:$LINENO: result: no" >&5 5915echo "${ECHO_T}no" >&6; } 5916fi 5917 5918 5919# Extract the first word of "mkdir", so it can be a program name with args. 5920set dummy mkdir; ac_word=$2 5921{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5923if test "${ac_cv_path_MKDIR+set}" = set; then 5924 echo $ECHO_N "(cached) $ECHO_C" >&6 5925else 5926 case $MKDIR in 5927 [\\/]* | ?:[\\/]*) 5928 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 5929 ;; 5930 *) 5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5932for as_dir in $PATH 5933do 5934 IFS=$as_save_IFS 5935 test -z "$as_dir" && as_dir=. 5936 for ac_exec_ext in '' $ac_executable_extensions; do 5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5938 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 5939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5940 break 2 5941 fi 5942done 5943done 5944IFS=$as_save_IFS 5945 5946 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" 5947 ;; 5948esac 5949fi 5950MKDIR=$ac_cv_path_MKDIR 5951if test -n "$MKDIR"; then 5952 { echo "$as_me:$LINENO: result: $MKDIR" >&5 5953echo "${ECHO_T}$MKDIR" >&6; } 5954else 5955 { echo "$as_me:$LINENO: result: no" >&5 5956echo "${ECHO_T}no" >&6; } 5957fi 5958 5959 5960# Extract the first word of "mv", so it can be a program name with args. 5961set dummy mv; ac_word=$2 5962{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5964if test "${ac_cv_path_MV+set}" = set; then 5965 echo $ECHO_N "(cached) $ECHO_C" >&6 5966else 5967 case $MV in 5968 [\\/]* | ?:[\\/]*) 5969 ac_cv_path_MV="$MV" # Let the user override the test with a path. 5970 ;; 5971 *) 5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5973for as_dir in $PATH 5974do 5975 IFS=$as_save_IFS 5976 test -z "$as_dir" && as_dir=. 5977 for ac_exec_ext in '' $ac_executable_extensions; do 5978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5979 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5981 break 2 5982 fi 5983done 5984done 5985IFS=$as_save_IFS 5986 5987 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 5988 ;; 5989esac 5990fi 5991MV=$ac_cv_path_MV 5992if test -n "$MV"; then 5993 { echo "$as_me:$LINENO: result: $MV" >&5 5994echo "${ECHO_T}$MV" >&6; } 5995else 5996 { echo "$as_me:$LINENO: result: no" >&5 5997echo "${ECHO_T}no" >&6; } 5998fi 5999 6000 6001if test -n "$ac_tool_prefix"; then 6002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6003set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6004{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6006if test "${ac_cv_prog_RANLIB+set}" = set; then 6007 echo $ECHO_N "(cached) $ECHO_C" >&6 6008else 6009 if test -n "$RANLIB"; then 6010 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6011else 6012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6013for as_dir in $PATH 6014do 6015 IFS=$as_save_IFS 6016 test -z "$as_dir" && as_dir=. 6017 for ac_exec_ext in '' $ac_executable_extensions; do 6018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6019 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6021 break 2 6022 fi 6023done 6024done 6025IFS=$as_save_IFS 6026 6027fi 6028fi 6029RANLIB=$ac_cv_prog_RANLIB 6030if test -n "$RANLIB"; then 6031 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6032echo "${ECHO_T}$RANLIB" >&6; } 6033else 6034 { echo "$as_me:$LINENO: result: no" >&5 6035echo "${ECHO_T}no" >&6; } 6036fi 6037 6038 6039fi 6040if test -z "$ac_cv_prog_RANLIB"; then 6041 ac_ct_RANLIB=$RANLIB 6042 # Extract the first word of "ranlib", so it can be a program name with args. 6043set dummy ranlib; ac_word=$2 6044{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6046if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6047 echo $ECHO_N "(cached) $ECHO_C" >&6 6048else 6049 if test -n "$ac_ct_RANLIB"; then 6050 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6051else 6052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6053for as_dir in $PATH 6054do 6055 IFS=$as_save_IFS 6056 test -z "$as_dir" && as_dir=. 6057 for ac_exec_ext in '' $ac_executable_extensions; do 6058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6059 ac_cv_prog_ac_ct_RANLIB="ranlib" 6060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6061 break 2 6062 fi 6063done 6064done 6065IFS=$as_save_IFS 6066 6067fi 6068fi 6069ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6070if test -n "$ac_ct_RANLIB"; then 6071 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6072echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6073else 6074 { echo "$as_me:$LINENO: result: no" >&5 6075echo "${ECHO_T}no" >&6; } 6076fi 6077 6078 if test "x$ac_ct_RANLIB" = x; then 6079 RANLIB=":" 6080 else 6081 case $cross_compiling:$ac_tool_warned in 6082yes:) 6083{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6084whose name does not start with the host triplet. If you think this 6085configuration is useful to you, please write to autoconf@gnu.org." >&5 6086echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6087whose name does not start with the host triplet. If you think this 6088configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6089ac_tool_warned=yes ;; 6090esac 6091 RANLIB=$ac_ct_RANLIB 6092 fi 6093else 6094 RANLIB="$ac_cv_prog_RANLIB" 6095fi 6096 6097if test -n "$ac_tool_prefix"; then 6098 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6099set dummy ${ac_tool_prefix}ar; ac_word=$2 6100{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6102if test "${ac_cv_prog_AR+set}" = set; then 6103 echo $ECHO_N "(cached) $ECHO_C" >&6 6104else 6105 if test -n "$AR"; then 6106 ac_cv_prog_AR="$AR" # Let the user override the test. 6107else 6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6109for as_dir in $PATH 6110do 6111 IFS=$as_save_IFS 6112 test -z "$as_dir" && as_dir=. 6113 for ac_exec_ext in '' $ac_executable_extensions; do 6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6115 ac_cv_prog_AR="${ac_tool_prefix}ar" 6116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6117 break 2 6118 fi 6119done 6120done 6121IFS=$as_save_IFS 6122 6123fi 6124fi 6125AR=$ac_cv_prog_AR 6126if test -n "$AR"; then 6127 { echo "$as_me:$LINENO: result: $AR" >&5 6128echo "${ECHO_T}$AR" >&6; } 6129else 6130 { echo "$as_me:$LINENO: result: no" >&5 6131echo "${ECHO_T}no" >&6; } 6132fi 6133 6134 6135fi 6136if test -z "$ac_cv_prog_AR"; then 6137 ac_ct_AR=$AR 6138 # Extract the first word of "ar", so it can be a program name with args. 6139set dummy ar; ac_word=$2 6140{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6142if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6143 echo $ECHO_N "(cached) $ECHO_C" >&6 6144else 6145 if test -n "$ac_ct_AR"; then 6146 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6147else 6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6149for as_dir in $PATH 6150do 6151 IFS=$as_save_IFS 6152 test -z "$as_dir" && as_dir=. 6153 for ac_exec_ext in '' $ac_executable_extensions; do 6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6155 ac_cv_prog_ac_ct_AR="ar" 6156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6157 break 2 6158 fi 6159done 6160done 6161IFS=$as_save_IFS 6162 6163fi 6164fi 6165ac_ct_AR=$ac_cv_prog_ac_ct_AR 6166if test -n "$ac_ct_AR"; then 6167 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6168echo "${ECHO_T}$ac_ct_AR" >&6; } 6169else 6170 { echo "$as_me:$LINENO: result: no" >&5 6171echo "${ECHO_T}no" >&6; } 6172fi 6173 6174 if test "x$ac_ct_AR" = x; then 6175 AR="false" 6176 else 6177 case $cross_compiling:$ac_tool_warned in 6178yes:) 6179{ echo "$as_me:$LINENO: 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." >&5 6182echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6183whose name does not start with the host triplet. If you think this 6184configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6185ac_tool_warned=yes ;; 6186esac 6187 AR=$ac_ct_AR 6188 fi 6189else 6190 AR="$ac_cv_prog_AR" 6191fi 6192 6193# Extract the first word of "rm", so it can be a program name with args. 6194set dummy rm; ac_word=$2 6195{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6197if test "${ac_cv_path_RM+set}" = set; then 6198 echo $ECHO_N "(cached) $ECHO_C" >&6 6199else 6200 case $RM in 6201 [\\/]* | ?:[\\/]*) 6202 ac_cv_path_RM="$RM" # Let the user override the test with a path. 6203 ;; 6204 *) 6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6206for as_dir in $PATH 6207do 6208 IFS=$as_save_IFS 6209 test -z "$as_dir" && as_dir=. 6210 for ac_exec_ext in '' $ac_executable_extensions; do 6211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6212 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 6213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6214 break 2 6215 fi 6216done 6217done 6218IFS=$as_save_IFS 6219 6220 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 6221 ;; 6222esac 6223fi 6224RM=$ac_cv_path_RM 6225if test -n "$RM"; then 6226 { echo "$as_me:$LINENO: result: $RM" >&5 6227echo "${ECHO_T}$RM" >&6; } 6228else 6229 { echo "$as_me:$LINENO: result: no" >&5 6230echo "${ECHO_T}no" >&6; } 6231fi 6232 6233 6234# Extract the first word of "sed", so it can be a program name with args. 6235set dummy sed; ac_word=$2 6236{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6238if test "${ac_cv_path_SED+set}" = set; then 6239 echo $ECHO_N "(cached) $ECHO_C" >&6 6240else 6241 case $SED in 6242 [\\/]* | ?:[\\/]*) 6243 ac_cv_path_SED="$SED" # Let the user override the test with a path. 6244 ;; 6245 *) 6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6247for as_dir in $PATH 6248do 6249 IFS=$as_save_IFS 6250 test -z "$as_dir" && as_dir=. 6251 for ac_exec_ext in '' $ac_executable_extensions; do 6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6253 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 6254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6255 break 2 6256 fi 6257done 6258done 6259IFS=$as_save_IFS 6260 6261 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 6262 ;; 6263esac 6264fi 6265SED=$ac_cv_path_SED 6266if test -n "$SED"; then 6267 { echo "$as_me:$LINENO: result: $SED" >&5 6268echo "${ECHO_T}$SED" >&6; } 6269else 6270 { echo "$as_me:$LINENO: result: no" >&5 6271echo "${ECHO_T}no" >&6; } 6272fi 6273 6274 6275# Extract the first word of "tar", so it can be a program name with args. 6276set dummy tar; ac_word=$2 6277{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6279if test "${ac_cv_path_TAR+set}" = set; then 6280 echo $ECHO_N "(cached) $ECHO_C" >&6 6281else 6282 case $TAR in 6283 [\\/]* | ?:[\\/]*) 6284 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 6285 ;; 6286 *) 6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6288for as_dir in $PATH 6289do 6290 IFS=$as_save_IFS 6291 test -z "$as_dir" && as_dir=. 6292 for ac_exec_ext in '' $ac_executable_extensions; do 6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6294 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6296 break 2 6297 fi 6298done 6299done 6300IFS=$as_save_IFS 6301 6302 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar" 6303 ;; 6304esac 6305fi 6306TAR=$ac_cv_path_TAR 6307if test -n "$TAR"; then 6308 { echo "$as_me:$LINENO: result: $TAR" >&5 6309echo "${ECHO_T}$TAR" >&6; } 6310else 6311 { echo "$as_me:$LINENO: result: no" >&5 6312echo "${ECHO_T}no" >&6; } 6313fi 6314 6315 6316# Extract the first word of "pwd", so it can be a program name with args. 6317set dummy pwd; ac_word=$2 6318{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6320if test "${ac_cv_path_BINPWD+set}" = set; then 6321 echo $ECHO_N "(cached) $ECHO_C" >&6 6322else 6323 case $BINPWD in 6324 [\\/]* | ?:[\\/]*) 6325 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path. 6326 ;; 6327 *) 6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6329for as_dir in $PATH 6330do 6331 IFS=$as_save_IFS 6332 test -z "$as_dir" && as_dir=. 6333 for ac_exec_ext in '' $ac_executable_extensions; do 6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6335 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext" 6336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6337 break 2 6338 fi 6339done 6340done 6341IFS=$as_save_IFS 6342 6343 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd" 6344 ;; 6345esac 6346fi 6347BINPWD=$ac_cv_path_BINPWD 6348if test -n "$BINPWD"; then 6349 { echo "$as_me:$LINENO: result: $BINPWD" >&5 6350echo "${ECHO_T}$BINPWD" >&6; } 6351else 6352 { echo "$as_me:$LINENO: result: no" >&5 6353echo "${ECHO_T}no" >&6; } 6354fi 6355 6356 6357 6358# Extract the first word of "Graphviz", so it can be a program name with args. 6359set dummy Graphviz; ac_word=$2 6360{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6362if test "${ac_cv_path_GRAPHVIZ+set}" = set; then 6363 echo $ECHO_N "(cached) $ECHO_C" >&6 6364else 6365 case $GRAPHVIZ in 6366 [\\/]* | ?:[\\/]*) 6367 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path. 6368 ;; 6369 *) 6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6371for as_dir in $PATH 6372do 6373 IFS=$as_save_IFS 6374 test -z "$as_dir" && as_dir=. 6375 for ac_exec_ext in '' $ac_executable_extensions; do 6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6377 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext" 6378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6379 break 2 6380 fi 6381done 6382done 6383IFS=$as_save_IFS 6384 6385 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz" 6386 ;; 6387esac 6388fi 6389GRAPHVIZ=$ac_cv_path_GRAPHVIZ 6390if test -n "$GRAPHVIZ"; then 6391 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5 6392echo "${ECHO_T}$GRAPHVIZ" >&6; } 6393else 6394 { echo "$as_me:$LINENO: result: no" >&5 6395echo "${ECHO_T}no" >&6; } 6396fi 6397 6398 6399if test "$GRAPHVIZ" != "echo Graphviz" ; then 6400 6401cat >>confdefs.h <<\_ACEOF 6402#define HAVE_GRAPHVIZ 1 6403_ACEOF 6404 6405 if test "$llvm_cv_os_type" = "MingW" ; then 6406 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6407 fi 6408 6409cat >>confdefs.h <<_ACEOF 6410#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}" 6411_ACEOF 6412 6413fi 6414# Extract the first word of "dot", so it can be a program name with args. 6415set dummy dot; ac_word=$2 6416{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6418if test "${ac_cv_path_DOT+set}" = set; then 6419 echo $ECHO_N "(cached) $ECHO_C" >&6 6420else 6421 case $DOT in 6422 [\\/]* | ?:[\\/]*) 6423 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 6424 ;; 6425 *) 6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6427for as_dir in $PATH 6428do 6429 IFS=$as_save_IFS 6430 test -z "$as_dir" && as_dir=. 6431 for ac_exec_ext in '' $ac_executable_extensions; do 6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6433 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6435 break 2 6436 fi 6437done 6438done 6439IFS=$as_save_IFS 6440 6441 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot" 6442 ;; 6443esac 6444fi 6445DOT=$ac_cv_path_DOT 6446if test -n "$DOT"; then 6447 { echo "$as_me:$LINENO: result: $DOT" >&5 6448echo "${ECHO_T}$DOT" >&6; } 6449else 6450 { echo "$as_me:$LINENO: result: no" >&5 6451echo "${ECHO_T}no" >&6; } 6452fi 6453 6454 6455if test "$DOT" != "echo dot" ; then 6456 6457cat >>confdefs.h <<\_ACEOF 6458#define HAVE_DOT 1 6459_ACEOF 6460 6461 if test "$llvm_cv_os_type" = "MingW" ; then 6462 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6463 fi 6464 6465cat >>confdefs.h <<_ACEOF 6466#define LLVM_PATH_DOT "$DOT${EXEEXT}" 6467_ACEOF 6468 6469fi 6470# Extract the first word of "fdp", so it can be a program name with args. 6471set dummy fdp; ac_word=$2 6472{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6474if test "${ac_cv_path_FDP+set}" = set; then 6475 echo $ECHO_N "(cached) $ECHO_C" >&6 6476else 6477 case $FDP in 6478 [\\/]* | ?:[\\/]*) 6479 ac_cv_path_FDP="$FDP" # Let the user override the test with a path. 6480 ;; 6481 *) 6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6483for as_dir in $PATH 6484do 6485 IFS=$as_save_IFS 6486 test -z "$as_dir" && as_dir=. 6487 for ac_exec_ext in '' $ac_executable_extensions; do 6488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6489 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext" 6490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6491 break 2 6492 fi 6493done 6494done 6495IFS=$as_save_IFS 6496 6497 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp" 6498 ;; 6499esac 6500fi 6501FDP=$ac_cv_path_FDP 6502if test -n "$FDP"; then 6503 { echo "$as_me:$LINENO: result: $FDP" >&5 6504echo "${ECHO_T}$FDP" >&6; } 6505else 6506 { echo "$as_me:$LINENO: result: no" >&5 6507echo "${ECHO_T}no" >&6; } 6508fi 6509 6510 6511if test "$FDP" != "echo fdp" ; then 6512 6513cat >>confdefs.h <<\_ACEOF 6514#define HAVE_FDP 1 6515_ACEOF 6516 6517 if test "$llvm_cv_os_type" = "MingW" ; then 6518 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6519 fi 6520 6521cat >>confdefs.h <<_ACEOF 6522#define LLVM_PATH_FDP "$FDP${EXEEXT}" 6523_ACEOF 6524 6525fi 6526# Extract the first word of "neato", so it can be a program name with args. 6527set dummy neato; ac_word=$2 6528{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6530if test "${ac_cv_path_NEATO+set}" = set; then 6531 echo $ECHO_N "(cached) $ECHO_C" >&6 6532else 6533 case $NEATO in 6534 [\\/]* | ?:[\\/]*) 6535 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path. 6536 ;; 6537 *) 6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6539for as_dir in $PATH 6540do 6541 IFS=$as_save_IFS 6542 test -z "$as_dir" && as_dir=. 6543 for ac_exec_ext in '' $ac_executable_extensions; do 6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6545 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext" 6546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6547 break 2 6548 fi 6549done 6550done 6551IFS=$as_save_IFS 6552 6553 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato" 6554 ;; 6555esac 6556fi 6557NEATO=$ac_cv_path_NEATO 6558if test -n "$NEATO"; then 6559 { echo "$as_me:$LINENO: result: $NEATO" >&5 6560echo "${ECHO_T}$NEATO" >&6; } 6561else 6562 { echo "$as_me:$LINENO: result: no" >&5 6563echo "${ECHO_T}no" >&6; } 6564fi 6565 6566 6567if test "$NEATO" != "echo neato" ; then 6568 6569cat >>confdefs.h <<\_ACEOF 6570#define HAVE_NEATO 1 6571_ACEOF 6572 6573 if test "$llvm_cv_os_type" = "MingW" ; then 6574 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6575 fi 6576 6577cat >>confdefs.h <<_ACEOF 6578#define LLVM_PATH_NEATO "$NEATO${EXEEXT}" 6579_ACEOF 6580 6581fi 6582# Extract the first word of "twopi", so it can be a program name with args. 6583set dummy twopi; ac_word=$2 6584{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6586if test "${ac_cv_path_TWOPI+set}" = set; then 6587 echo $ECHO_N "(cached) $ECHO_C" >&6 6588else 6589 case $TWOPI in 6590 [\\/]* | ?:[\\/]*) 6591 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path. 6592 ;; 6593 *) 6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6595for as_dir in $PATH 6596do 6597 IFS=$as_save_IFS 6598 test -z "$as_dir" && as_dir=. 6599 for ac_exec_ext in '' $ac_executable_extensions; do 6600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6601 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext" 6602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6603 break 2 6604 fi 6605done 6606done 6607IFS=$as_save_IFS 6608 6609 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi" 6610 ;; 6611esac 6612fi 6613TWOPI=$ac_cv_path_TWOPI 6614if test -n "$TWOPI"; then 6615 { echo "$as_me:$LINENO: result: $TWOPI" >&5 6616echo "${ECHO_T}$TWOPI" >&6; } 6617else 6618 { echo "$as_me:$LINENO: result: no" >&5 6619echo "${ECHO_T}no" >&6; } 6620fi 6621 6622 6623if test "$TWOPI" != "echo twopi" ; then 6624 6625cat >>confdefs.h <<\_ACEOF 6626#define HAVE_TWOPI 1 6627_ACEOF 6628 6629 if test "$llvm_cv_os_type" = "MingW" ; then 6630 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6631 fi 6632 6633cat >>confdefs.h <<_ACEOF 6634#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}" 6635_ACEOF 6636 6637fi 6638# Extract the first word of "circo", so it can be a program name with args. 6639set dummy circo; ac_word=$2 6640{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6642if test "${ac_cv_path_CIRCO+set}" = set; then 6643 echo $ECHO_N "(cached) $ECHO_C" >&6 6644else 6645 case $CIRCO in 6646 [\\/]* | ?:[\\/]*) 6647 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path. 6648 ;; 6649 *) 6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6651for as_dir in $PATH 6652do 6653 IFS=$as_save_IFS 6654 test -z "$as_dir" && as_dir=. 6655 for ac_exec_ext in '' $ac_executable_extensions; do 6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6657 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext" 6658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6659 break 2 6660 fi 6661done 6662done 6663IFS=$as_save_IFS 6664 6665 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo" 6666 ;; 6667esac 6668fi 6669CIRCO=$ac_cv_path_CIRCO 6670if test -n "$CIRCO"; then 6671 { echo "$as_me:$LINENO: result: $CIRCO" >&5 6672echo "${ECHO_T}$CIRCO" >&6; } 6673else 6674 { echo "$as_me:$LINENO: result: no" >&5 6675echo "${ECHO_T}no" >&6; } 6676fi 6677 6678 6679if test "$CIRCO" != "echo circo" ; then 6680 6681cat >>confdefs.h <<\_ACEOF 6682#define HAVE_CIRCO 1 6683_ACEOF 6684 6685 if test "$llvm_cv_os_type" = "MingW" ; then 6686 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6687 fi 6688 6689cat >>confdefs.h <<_ACEOF 6690#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}" 6691_ACEOF 6692 6693fi 6694for ac_prog in gv gsview32 6695do 6696 # Extract the first word of "$ac_prog", so it can be a program name with args. 6697set dummy $ac_prog; ac_word=$2 6698{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6700if test "${ac_cv_path_GV+set}" = set; then 6701 echo $ECHO_N "(cached) $ECHO_C" >&6 6702else 6703 case $GV in 6704 [\\/]* | ?:[\\/]*) 6705 ac_cv_path_GV="$GV" # Let the user override the test with a path. 6706 ;; 6707 *) 6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6709for as_dir in $PATH 6710do 6711 IFS=$as_save_IFS 6712 test -z "$as_dir" && as_dir=. 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6715 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext" 6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6717 break 2 6718 fi 6719done 6720done 6721IFS=$as_save_IFS 6722 6723 ;; 6724esac 6725fi 6726GV=$ac_cv_path_GV 6727if test -n "$GV"; then 6728 { echo "$as_me:$LINENO: result: $GV" >&5 6729echo "${ECHO_T}$GV" >&6; } 6730else 6731 { echo "$as_me:$LINENO: result: no" >&5 6732echo "${ECHO_T}no" >&6; } 6733fi 6734 6735 6736 test -n "$GV" && break 6737done 6738test -n "$GV" || GV="echo gv" 6739 6740if test "$GV" != "echo gv" ; then 6741 6742cat >>confdefs.h <<\_ACEOF 6743#define HAVE_GV 1 6744_ACEOF 6745 6746 if test "$llvm_cv_os_type" = "MingW" ; then 6747 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6748 fi 6749 6750cat >>confdefs.h <<_ACEOF 6751#define LLVM_PATH_GV "$GV${EXEEXT}" 6752_ACEOF 6753 6754fi 6755# Extract the first word of "dotty", so it can be a program name with args. 6756set dummy dotty; ac_word=$2 6757{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6759if test "${ac_cv_path_DOTTY+set}" = set; then 6760 echo $ECHO_N "(cached) $ECHO_C" >&6 6761else 6762 case $DOTTY in 6763 [\\/]* | ?:[\\/]*) 6764 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path. 6765 ;; 6766 *) 6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6768for as_dir in $PATH 6769do 6770 IFS=$as_save_IFS 6771 test -z "$as_dir" && as_dir=. 6772 for ac_exec_ext in '' $ac_executable_extensions; do 6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6774 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext" 6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6776 break 2 6777 fi 6778done 6779done 6780IFS=$as_save_IFS 6781 6782 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty" 6783 ;; 6784esac 6785fi 6786DOTTY=$ac_cv_path_DOTTY 6787if test -n "$DOTTY"; then 6788 { echo "$as_me:$LINENO: result: $DOTTY" >&5 6789echo "${ECHO_T}$DOTTY" >&6; } 6790else 6791 { echo "$as_me:$LINENO: result: no" >&5 6792echo "${ECHO_T}no" >&6; } 6793fi 6794 6795 6796if test "$DOTTY" != "echo dotty" ; then 6797 6798cat >>confdefs.h <<\_ACEOF 6799#define HAVE_DOTTY 1 6800_ACEOF 6801 6802 if test "$llvm_cv_os_type" = "MingW" ; then 6803 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6804 fi 6805 6806cat >>confdefs.h <<_ACEOF 6807#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}" 6808_ACEOF 6809 6810fi 6811# Extract the first word of "xdot.py", so it can be a program name with args. 6812set dummy xdot.py; ac_word=$2 6813{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6815if test "${ac_cv_path_XDOT_PY+set}" = set; then 6816 echo $ECHO_N "(cached) $ECHO_C" >&6 6817else 6818 case $XDOT_PY in 6819 [\\/]* | ?:[\\/]*) 6820 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path. 6821 ;; 6822 *) 6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6824for as_dir in $PATH 6825do 6826 IFS=$as_save_IFS 6827 test -z "$as_dir" && as_dir=. 6828 for ac_exec_ext in '' $ac_executable_extensions; do 6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6830 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext" 6831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6832 break 2 6833 fi 6834done 6835done 6836IFS=$as_save_IFS 6837 6838 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py" 6839 ;; 6840esac 6841fi 6842XDOT_PY=$ac_cv_path_XDOT_PY 6843if test -n "$XDOT_PY"; then 6844 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5 6845echo "${ECHO_T}$XDOT_PY" >&6; } 6846else 6847 { echo "$as_me:$LINENO: result: no" >&5 6848echo "${ECHO_T}no" >&6; } 6849fi 6850 6851 6852if test "$XDOT_PY" != "echo xdot.py" ; then 6853 6854cat >>confdefs.h <<\_ACEOF 6855#define HAVE_XDOT_PY 1 6856_ACEOF 6857 6858 if test "$llvm_cv_os_type" = "MingW" ; then 6859 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' ` 6860 fi 6861 6862cat >>confdefs.h <<_ACEOF 6863#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}" 6864_ACEOF 6865 6866fi 6867 6868# Find a good install program. We prefer a C program (faster), 6869# so one script is as good as another. But avoid the broken or 6870# incompatible versions: 6871# SysV /etc/install, /usr/sbin/install 6872# SunOS /usr/etc/install 6873# IRIX /sbin/install 6874# AIX /bin/install 6875# AmigaOS /C/install, which installs bootblocks on floppy discs 6876# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6877# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6878# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6879# OS/2's system install, which has a completely different semantic 6880# ./install, which can be erroneously created by make from ./install.sh. 6881{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 6882echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 6883if test -z "$INSTALL"; then 6884if test "${ac_cv_path_install+set}" = set; then 6885 echo $ECHO_N "(cached) $ECHO_C" >&6 6886else 6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6888for as_dir in $PATH 6889do 6890 IFS=$as_save_IFS 6891 test -z "$as_dir" && as_dir=. 6892 # Account for people who put trailing slashes in PATH elements. 6893case $as_dir/ in 6894 ./ | .// | /cC/* | \ 6895 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6896 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 6897 /usr/ucb/* ) ;; 6898 *) 6899 # OSF1 and SCO ODT 3.0 have their own names for install. 6900 # Don't use installbsd from OSF since it installs stuff as root 6901 # by default. 6902 for ac_prog in ginstall scoinst install; do 6903 for ac_exec_ext in '' $ac_executable_extensions; do 6904 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 6905 if test $ac_prog = install && 6906 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6907 # AIX install. It has an incompatible calling convention. 6908 : 6909 elif test $ac_prog = install && 6910 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6911 # program-specific install script used by HP pwplus--don't use. 6912 : 6913 else 6914 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6915 break 3 6916 fi 6917 fi 6918 done 6919 done 6920 ;; 6921esac 6922done 6923IFS=$as_save_IFS 6924 6925 6926fi 6927 if test "${ac_cv_path_install+set}" = set; then 6928 INSTALL=$ac_cv_path_install 6929 else 6930 # As a last resort, use the slow shell script. Don't cache a 6931 # value for INSTALL within a source directory, because that will 6932 # break other packages using the cache if that directory is 6933 # removed, or if the value is a relative name. 6934 INSTALL=$ac_install_sh 6935 fi 6936fi 6937{ echo "$as_me:$LINENO: result: $INSTALL" >&5 6938echo "${ECHO_T}$INSTALL" >&6; } 6939 6940# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6941# It thinks the first close brace ends the variable substitution. 6942test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6943 6944test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6945 6946test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6947 6948case "$INSTALL" in 6949 [\\/$]* | ?:[\\/]* ) ;; 6950 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; 6951esac 6952 6953# Extract the first word of "bzip2", so it can be a program name with args. 6954set dummy bzip2; ac_word=$2 6955{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6957if test "${ac_cv_path_BZIP2+set}" = set; then 6958 echo $ECHO_N "(cached) $ECHO_C" >&6 6959else 6960 case $BZIP2 in 6961 [\\/]* | ?:[\\/]*) 6962 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path. 6963 ;; 6964 *) 6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6966for as_dir in $PATH 6967do 6968 IFS=$as_save_IFS 6969 test -z "$as_dir" && as_dir=. 6970 for ac_exec_ext in '' $ac_executable_extensions; do 6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6972 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext" 6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6974 break 2 6975 fi 6976done 6977done 6978IFS=$as_save_IFS 6979 6980 ;; 6981esac 6982fi 6983BZIP2=$ac_cv_path_BZIP2 6984if test -n "$BZIP2"; then 6985 { echo "$as_me:$LINENO: result: $BZIP2" >&5 6986echo "${ECHO_T}$BZIP2" >&6; } 6987else 6988 { echo "$as_me:$LINENO: result: no" >&5 6989echo "${ECHO_T}no" >&6; } 6990fi 6991 6992 6993# Extract the first word of "cat", so it can be a program name with args. 6994set dummy cat; ac_word=$2 6995{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6997if test "${ac_cv_path_CAT+set}" = set; then 6998 echo $ECHO_N "(cached) $ECHO_C" >&6 6999else 7000 case $CAT in 7001 [\\/]* | ?:[\\/]*) 7002 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 7003 ;; 7004 *) 7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7006for as_dir in $PATH 7007do 7008 IFS=$as_save_IFS 7009 test -z "$as_dir" && as_dir=. 7010 for ac_exec_ext in '' $ac_executable_extensions; do 7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7012 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 7013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7014 break 2 7015 fi 7016done 7017done 7018IFS=$as_save_IFS 7019 7020 ;; 7021esac 7022fi 7023CAT=$ac_cv_path_CAT 7024if test -n "$CAT"; then 7025 { echo "$as_me:$LINENO: result: $CAT" >&5 7026echo "${ECHO_T}$CAT" >&6; } 7027else 7028 { echo "$as_me:$LINENO: result: no" >&5 7029echo "${ECHO_T}no" >&6; } 7030fi 7031 7032 7033# Extract the first word of "doxygen", so it can be a program name with args. 7034set dummy doxygen; ac_word=$2 7035{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7037if test "${ac_cv_path_DOXYGEN+set}" = set; then 7038 echo $ECHO_N "(cached) $ECHO_C" >&6 7039else 7040 case $DOXYGEN in 7041 [\\/]* | ?:[\\/]*) 7042 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 7043 ;; 7044 *) 7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7046for as_dir in $PATH 7047do 7048 IFS=$as_save_IFS 7049 test -z "$as_dir" && as_dir=. 7050 for ac_exec_ext in '' $ac_executable_extensions; do 7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7052 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7054 break 2 7055 fi 7056done 7057done 7058IFS=$as_save_IFS 7059 7060 ;; 7061esac 7062fi 7063DOXYGEN=$ac_cv_path_DOXYGEN 7064if test -n "$DOXYGEN"; then 7065 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 7066echo "${ECHO_T}$DOXYGEN" >&6; } 7067else 7068 { echo "$as_me:$LINENO: result: no" >&5 7069echo "${ECHO_T}no" >&6; } 7070fi 7071 7072 7073# Extract the first word of "groff", so it can be a program name with args. 7074set dummy groff; ac_word=$2 7075{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7077if test "${ac_cv_path_GROFF+set}" = set; then 7078 echo $ECHO_N "(cached) $ECHO_C" >&6 7079else 7080 case $GROFF in 7081 [\\/]* | ?:[\\/]*) 7082 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 7083 ;; 7084 *) 7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7086for as_dir in $PATH 7087do 7088 IFS=$as_save_IFS 7089 test -z "$as_dir" && as_dir=. 7090 for ac_exec_ext in '' $ac_executable_extensions; do 7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7092 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 7093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7094 break 2 7095 fi 7096done 7097done 7098IFS=$as_save_IFS 7099 7100 ;; 7101esac 7102fi 7103GROFF=$ac_cv_path_GROFF 7104if test -n "$GROFF"; then 7105 { echo "$as_me:$LINENO: result: $GROFF" >&5 7106echo "${ECHO_T}$GROFF" >&6; } 7107else 7108 { echo "$as_me:$LINENO: result: no" >&5 7109echo "${ECHO_T}no" >&6; } 7110fi 7111 7112 7113# Extract the first word of "gzip", so it can be a program name with args. 7114set dummy gzip; ac_word=$2 7115{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7117if test "${ac_cv_path_GZIPBIN+set}" = set; then 7118 echo $ECHO_N "(cached) $ECHO_C" >&6 7119else 7120 case $GZIPBIN in 7121 [\\/]* | ?:[\\/]*) 7122 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path. 7123 ;; 7124 *) 7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7126for as_dir in $PATH 7127do 7128 IFS=$as_save_IFS 7129 test -z "$as_dir" && as_dir=. 7130 for ac_exec_ext in '' $ac_executable_extensions; do 7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7132 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext" 7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7134 break 2 7135 fi 7136done 7137done 7138IFS=$as_save_IFS 7139 7140 ;; 7141esac 7142fi 7143GZIPBIN=$ac_cv_path_GZIPBIN 7144if test -n "$GZIPBIN"; then 7145 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5 7146echo "${ECHO_T}$GZIPBIN" >&6; } 7147else 7148 { echo "$as_me:$LINENO: result: no" >&5 7149echo "${ECHO_T}no" >&6; } 7150fi 7151 7152 7153# Extract the first word of "pod2html", so it can be a program name with args. 7154set dummy pod2html; ac_word=$2 7155{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7157if test "${ac_cv_path_POD2HTML+set}" = set; then 7158 echo $ECHO_N "(cached) $ECHO_C" >&6 7159else 7160 case $POD2HTML in 7161 [\\/]* | ?:[\\/]*) 7162 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path. 7163 ;; 7164 *) 7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7166for as_dir in $PATH 7167do 7168 IFS=$as_save_IFS 7169 test -z "$as_dir" && as_dir=. 7170 for ac_exec_ext in '' $ac_executable_extensions; do 7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7172 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext" 7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7174 break 2 7175 fi 7176done 7177done 7178IFS=$as_save_IFS 7179 7180 ;; 7181esac 7182fi 7183POD2HTML=$ac_cv_path_POD2HTML 7184if test -n "$POD2HTML"; then 7185 { echo "$as_me:$LINENO: result: $POD2HTML" >&5 7186echo "${ECHO_T}$POD2HTML" >&6; } 7187else 7188 { echo "$as_me:$LINENO: result: no" >&5 7189echo "${ECHO_T}no" >&6; } 7190fi 7191 7192 7193# Extract the first word of "pod2man", so it can be a program name with args. 7194set dummy pod2man; ac_word=$2 7195{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7197if test "${ac_cv_path_POD2MAN+set}" = set; then 7198 echo $ECHO_N "(cached) $ECHO_C" >&6 7199else 7200 case $POD2MAN in 7201 [\\/]* | ?:[\\/]*) 7202 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path. 7203 ;; 7204 *) 7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7206for as_dir in $PATH 7207do 7208 IFS=$as_save_IFS 7209 test -z "$as_dir" && as_dir=. 7210 for ac_exec_ext in '' $ac_executable_extensions; do 7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7212 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext" 7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7214 break 2 7215 fi 7216done 7217done 7218IFS=$as_save_IFS 7219 7220 ;; 7221esac 7222fi 7223POD2MAN=$ac_cv_path_POD2MAN 7224if test -n "$POD2MAN"; then 7225 { echo "$as_me:$LINENO: result: $POD2MAN" >&5 7226echo "${ECHO_T}$POD2MAN" >&6; } 7227else 7228 { echo "$as_me:$LINENO: result: no" >&5 7229echo "${ECHO_T}no" >&6; } 7230fi 7231 7232 7233# Extract the first word of "pdfroff", so it can be a program name with args. 7234set dummy pdfroff; ac_word=$2 7235{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7237if test "${ac_cv_path_PDFROFF+set}" = set; then 7238 echo $ECHO_N "(cached) $ECHO_C" >&6 7239else 7240 case $PDFROFF in 7241 [\\/]* | ?:[\\/]*) 7242 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path. 7243 ;; 7244 *) 7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7246for as_dir in $PATH 7247do 7248 IFS=$as_save_IFS 7249 test -z "$as_dir" && as_dir=. 7250 for ac_exec_ext in '' $ac_executable_extensions; do 7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7252 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext" 7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7254 break 2 7255 fi 7256done 7257done 7258IFS=$as_save_IFS 7259 7260 ;; 7261esac 7262fi 7263PDFROFF=$ac_cv_path_PDFROFF 7264if test -n "$PDFROFF"; then 7265 { echo "$as_me:$LINENO: result: $PDFROFF" >&5 7266echo "${ECHO_T}$PDFROFF" >&6; } 7267else 7268 { echo "$as_me:$LINENO: result: no" >&5 7269echo "${ECHO_T}no" >&6; } 7270fi 7271 7272 7273# Extract the first word of "runtest", so it can be a program name with args. 7274set dummy runtest; ac_word=$2 7275{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7277if test "${ac_cv_path_RUNTEST+set}" = set; then 7278 echo $ECHO_N "(cached) $ECHO_C" >&6 7279else 7280 case $RUNTEST in 7281 [\\/]* | ?:[\\/]*) 7282 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path. 7283 ;; 7284 *) 7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7286for as_dir in $PATH 7287do 7288 IFS=$as_save_IFS 7289 test -z "$as_dir" && as_dir=. 7290 for ac_exec_ext in '' $ac_executable_extensions; do 7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7292 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext" 7293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7294 break 2 7295 fi 7296done 7297done 7298IFS=$as_save_IFS 7299 7300 ;; 7301esac 7302fi 7303RUNTEST=$ac_cv_path_RUNTEST 7304if test -n "$RUNTEST"; then 7305 { echo "$as_me:$LINENO: result: $RUNTEST" >&5 7306echo "${ECHO_T}$RUNTEST" >&6; } 7307else 7308 { echo "$as_me:$LINENO: result: no" >&5 7309echo "${ECHO_T}no" >&6; } 7310fi 7311 7312 7313 7314no_itcl=true 7315{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5 7316echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; } 7317 7318# Check whether --with-tclinclude was given. 7319if test "${with_tclinclude+set}" = set; then 7320 withval=$with_tclinclude; with_tclinclude=${withval} 7321else 7322 with_tclinclude='' 7323fi 7324 7325if test "${ac_cv_path_tclsh+set}" = set; then 7326 echo $ECHO_N "(cached) $ECHO_C" >&6 7327else 7328 7329if test x"${with_tclinclude}" != x ; then 7330 if test -f ${with_tclinclude}/tclsh ; then 7331 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)` 7332 elif test -f ${with_tclinclude}/src/tclsh ; then 7333 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)` 7334 else 7335 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5 7336echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;} 7337 { (exit 1); exit 1; }; } 7338 fi 7339fi 7340fi 7341 7342 7343if test x"${ac_cv_path_tclsh}" = x ; then 7344 { echo "$as_me:$LINENO: result: none" >&5 7345echo "${ECHO_T}none" >&6; } 7346 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 7347do 7348 # Extract the first word of "$ac_prog", so it can be a program name with args. 7349set dummy $ac_prog; ac_word=$2 7350{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7352if test "${ac_cv_path_TCLSH+set}" = set; then 7353 echo $ECHO_N "(cached) $ECHO_C" >&6 7354else 7355 case $TCLSH in 7356 [\\/]* | ?:[\\/]*) 7357 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path. 7358 ;; 7359 *) 7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7361for as_dir in $PATH 7362do 7363 IFS=$as_save_IFS 7364 test -z "$as_dir" && as_dir=. 7365 for ac_exec_ext in '' $ac_executable_extensions; do 7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7367 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext" 7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7369 break 2 7370 fi 7371done 7372done 7373IFS=$as_save_IFS 7374 7375 ;; 7376esac 7377fi 7378TCLSH=$ac_cv_path_TCLSH 7379if test -n "$TCLSH"; then 7380 { echo "$as_me:$LINENO: result: $TCLSH" >&5 7381echo "${ECHO_T}$TCLSH" >&6; } 7382else 7383 { echo "$as_me:$LINENO: result: no" >&5 7384echo "${ECHO_T}no" >&6; } 7385fi 7386 7387 7388 test -n "$TCLSH" && break 7389done 7390 7391 if test x"${TCLSH}" = x ; then 7392 ac_cv_path_tclsh=''; 7393 else 7394 ac_cv_path_tclsh="${TCLSH}"; 7395 fi 7396else 7397 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5 7398echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; } 7399 TCLSH="${ac_cv_path_tclsh}" 7400 7401fi 7402 7403# Extract the first word of "zip", so it can be a program name with args. 7404set dummy zip; ac_word=$2 7405{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7407if test "${ac_cv_path_ZIP+set}" = set; then 7408 echo $ECHO_N "(cached) $ECHO_C" >&6 7409else 7410 case $ZIP in 7411 [\\/]* | ?:[\\/]*) 7412 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 7413 ;; 7414 *) 7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7416for as_dir in $PATH 7417do 7418 IFS=$as_save_IFS 7419 test -z "$as_dir" && as_dir=. 7420 for ac_exec_ext in '' $ac_executable_extensions; do 7421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7422 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 7423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7424 break 2 7425 fi 7426done 7427done 7428IFS=$as_save_IFS 7429 7430 ;; 7431esac 7432fi 7433ZIP=$ac_cv_path_ZIP 7434if test -n "$ZIP"; then 7435 { echo "$as_me:$LINENO: result: $ZIP" >&5 7436echo "${ECHO_T}$ZIP" >&6; } 7437else 7438 { echo "$as_me:$LINENO: result: no" >&5 7439echo "${ECHO_T}no" >&6; } 7440fi 7441 7442 7443for ac_prog in ocamlc 7444do 7445 # Extract the first word of "$ac_prog", so it can be a program name with args. 7446set dummy $ac_prog; ac_word=$2 7447{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7449if test "${ac_cv_path_OCAMLC+set}" = set; then 7450 echo $ECHO_N "(cached) $ECHO_C" >&6 7451else 7452 case $OCAMLC in 7453 [\\/]* | ?:[\\/]*) 7454 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path. 7455 ;; 7456 *) 7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7458for as_dir in $PATH 7459do 7460 IFS=$as_save_IFS 7461 test -z "$as_dir" && as_dir=. 7462 for ac_exec_ext in '' $ac_executable_extensions; do 7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7464 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext" 7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7466 break 2 7467 fi 7468done 7469done 7470IFS=$as_save_IFS 7471 7472 ;; 7473esac 7474fi 7475OCAMLC=$ac_cv_path_OCAMLC 7476if test -n "$OCAMLC"; then 7477 { echo "$as_me:$LINENO: result: $OCAMLC" >&5 7478echo "${ECHO_T}$OCAMLC" >&6; } 7479else 7480 { echo "$as_me:$LINENO: result: no" >&5 7481echo "${ECHO_T}no" >&6; } 7482fi 7483 7484 7485 test -n "$OCAMLC" && break 7486done 7487 7488for ac_prog in ocamlopt 7489do 7490 # Extract the first word of "$ac_prog", so it can be a program name with args. 7491set dummy $ac_prog; ac_word=$2 7492{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7494if test "${ac_cv_path_OCAMLOPT+set}" = set; then 7495 echo $ECHO_N "(cached) $ECHO_C" >&6 7496else 7497 case $OCAMLOPT in 7498 [\\/]* | ?:[\\/]*) 7499 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path. 7500 ;; 7501 *) 7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7503for as_dir in $PATH 7504do 7505 IFS=$as_save_IFS 7506 test -z "$as_dir" && as_dir=. 7507 for ac_exec_ext in '' $ac_executable_extensions; do 7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7509 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext" 7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7511 break 2 7512 fi 7513done 7514done 7515IFS=$as_save_IFS 7516 7517 ;; 7518esac 7519fi 7520OCAMLOPT=$ac_cv_path_OCAMLOPT 7521if test -n "$OCAMLOPT"; then 7522 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5 7523echo "${ECHO_T}$OCAMLOPT" >&6; } 7524else 7525 { echo "$as_me:$LINENO: result: no" >&5 7526echo "${ECHO_T}no" >&6; } 7527fi 7528 7529 7530 test -n "$OCAMLOPT" && break 7531done 7532 7533for ac_prog in ocamldep 7534do 7535 # Extract the first word of "$ac_prog", so it can be a program name with args. 7536set dummy $ac_prog; ac_word=$2 7537{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7539if test "${ac_cv_path_OCAMLDEP+set}" = set; then 7540 echo $ECHO_N "(cached) $ECHO_C" >&6 7541else 7542 case $OCAMLDEP in 7543 [\\/]* | ?:[\\/]*) 7544 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path. 7545 ;; 7546 *) 7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7548for as_dir in $PATH 7549do 7550 IFS=$as_save_IFS 7551 test -z "$as_dir" && as_dir=. 7552 for ac_exec_ext in '' $ac_executable_extensions; do 7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7554 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext" 7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7556 break 2 7557 fi 7558done 7559done 7560IFS=$as_save_IFS 7561 7562 ;; 7563esac 7564fi 7565OCAMLDEP=$ac_cv_path_OCAMLDEP 7566if test -n "$OCAMLDEP"; then 7567 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5 7568echo "${ECHO_T}$OCAMLDEP" >&6; } 7569else 7570 { echo "$as_me:$LINENO: result: no" >&5 7571echo "${ECHO_T}no" >&6; } 7572fi 7573 7574 7575 test -n "$OCAMLDEP" && break 7576done 7577 7578for ac_prog in ocamldoc 7579do 7580 # Extract the first word of "$ac_prog", so it can be a program name with args. 7581set dummy $ac_prog; ac_word=$2 7582{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7584if test "${ac_cv_path_OCAMLDOC+set}" = set; then 7585 echo $ECHO_N "(cached) $ECHO_C" >&6 7586else 7587 case $OCAMLDOC in 7588 [\\/]* | ?:[\\/]*) 7589 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path. 7590 ;; 7591 *) 7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7593for as_dir in $PATH 7594do 7595 IFS=$as_save_IFS 7596 test -z "$as_dir" && as_dir=. 7597 for ac_exec_ext in '' $ac_executable_extensions; do 7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7599 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext" 7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7601 break 2 7602 fi 7603done 7604done 7605IFS=$as_save_IFS 7606 7607 ;; 7608esac 7609fi 7610OCAMLDOC=$ac_cv_path_OCAMLDOC 7611if test -n "$OCAMLDOC"; then 7612 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5 7613echo "${ECHO_T}$OCAMLDOC" >&6; } 7614else 7615 { echo "$as_me:$LINENO: result: no" >&5 7616echo "${ECHO_T}no" >&6; } 7617fi 7618 7619 7620 test -n "$OCAMLDOC" && break 7621done 7622 7623for ac_prog in gas as 7624do 7625 # Extract the first word of "$ac_prog", so it can be a program name with args. 7626set dummy $ac_prog; ac_word=$2 7627{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7629if test "${ac_cv_path_GAS+set}" = set; then 7630 echo $ECHO_N "(cached) $ECHO_C" >&6 7631else 7632 case $GAS in 7633 [\\/]* | ?:[\\/]*) 7634 ac_cv_path_GAS="$GAS" # Let the user override the test with a path. 7635 ;; 7636 *) 7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7638for as_dir in $PATH 7639do 7640 IFS=$as_save_IFS 7641 test -z "$as_dir" && as_dir=. 7642 for ac_exec_ext in '' $ac_executable_extensions; do 7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7644 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext" 7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7646 break 2 7647 fi 7648done 7649done 7650IFS=$as_save_IFS 7651 7652 ;; 7653esac 7654fi 7655GAS=$ac_cv_path_GAS 7656if test -n "$GAS"; then 7657 { echo "$as_me:$LINENO: result: $GAS" >&5 7658echo "${ECHO_T}$GAS" >&6; } 7659else 7660 { echo "$as_me:$LINENO: result: no" >&5 7661echo "${ECHO_T}no" >&6; } 7662fi 7663 7664 7665 test -n "$GAS" && break 7666done 7667 7668 7669{ echo "$as_me:$LINENO: checking for linker version" >&5 7670echo $ECHO_N "checking for linker version... $ECHO_C" >&6; } 7671if test "${llvm_cv_link_version+set}" = set; then 7672 echo $ECHO_N "(cached) $ECHO_C" >&6 7673else 7674 7675 version_string="$(ld -v 2>&1 | head -1)" 7676 7677 # Check for ld64. 7678 if (echo "$version_string" | grep -q "ld64"); then 7679 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#") 7680 else 7681 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") 7682 fi 7683 7684fi 7685{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5 7686echo "${ECHO_T}$llvm_cv_link_version" >&6; } 7687 7688cat >>confdefs.h <<_ACEOF 7689#define HOST_LINK_VERSION "$llvm_cv_link_version" 7690_ACEOF 7691 7692 7693 7694{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5 7695echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; } 7696if test "${llvm_cv_link_use_r+set}" = set; then 7697 echo $ECHO_N "(cached) $ECHO_C" >&6 7698else 7699 ac_ext=c 7700ac_cpp='$CPP $CPPFLAGS' 7701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7703ac_compiler_gnu=$ac_cv_c_compiler_gnu 7704 7705 oldcflags="$CFLAGS" 7706 CFLAGS="$CFLAGS -Wl,-R." 7707 cat >conftest.$ac_ext <<_ACEOF 7708/* confdefs.h. */ 7709_ACEOF 7710cat confdefs.h >>conftest.$ac_ext 7711cat >>conftest.$ac_ext <<_ACEOF 7712/* end confdefs.h. */ 7713 7714int 7715main () 7716{ 7717 7718 ; 7719 return 0; 7720} 7721_ACEOF 7722rm -f conftest.$ac_objext conftest$ac_exeext 7723if { (ac_try="$ac_link" 7724case "(($ac_try" in 7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7726 *) ac_try_echo=$ac_try;; 7727esac 7728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7729 (eval "$ac_link") 2>conftest.er1 7730 ac_status=$? 7731 grep -v '^ *+' conftest.er1 >conftest.err 7732 rm -f conftest.er1 7733 cat conftest.err >&5 7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7735 (exit $ac_status); } && 7736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7737 { (case "(($ac_try" in 7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7739 *) ac_try_echo=$ac_try;; 7740esac 7741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7742 (eval "$ac_try") 2>&5 7743 ac_status=$? 7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7745 (exit $ac_status); }; } && 7746 { ac_try='test -s conftest$ac_exeext' 7747 { (case "(($ac_try" in 7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7749 *) ac_try_echo=$ac_try;; 7750esac 7751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7752 (eval "$ac_try") 2>&5 7753 ac_status=$? 7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7755 (exit $ac_status); }; }; then 7756 llvm_cv_link_use_r=yes 7757else 7758 echo "$as_me: failed program was:" >&5 7759sed 's/^/| /' conftest.$ac_ext >&5 7760 7761 llvm_cv_link_use_r=no 7762fi 7763 7764rm -f core conftest.err conftest.$ac_objext \ 7765 conftest$ac_exeext conftest.$ac_ext 7766 CFLAGS="$oldcflags" 7767 ac_ext=c 7768ac_cpp='$CPP $CPPFLAGS' 7769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7771ac_compiler_gnu=$ac_cv_c_compiler_gnu 7772 7773 7774fi 7775{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5 7776echo "${ECHO_T}$llvm_cv_link_use_r" >&6; } 7777if test "$llvm_cv_link_use_r" = yes ; then 7778 7779cat >>confdefs.h <<\_ACEOF 7780#define HAVE_LINK_R 1 7781_ACEOF 7782 7783 fi 7784 7785 7786{ echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5 7787echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; } 7788if test "${llvm_cv_link_use_export_dynamic+set}" = set; then 7789 echo $ECHO_N "(cached) $ECHO_C" >&6 7790else 7791 ac_ext=c 7792ac_cpp='$CPP $CPPFLAGS' 7793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7795ac_compiler_gnu=$ac_cv_c_compiler_gnu 7796 7797 oldcflags="$CFLAGS" 7798 CFLAGS="$CFLAGS -rdynamic" 7799 cat >conftest.$ac_ext <<_ACEOF 7800/* confdefs.h. */ 7801_ACEOF 7802cat confdefs.h >>conftest.$ac_ext 7803cat >>conftest.$ac_ext <<_ACEOF 7804/* end confdefs.h. */ 7805 7806int 7807main () 7808{ 7809 7810 ; 7811 return 0; 7812} 7813_ACEOF 7814rm -f conftest.$ac_objext conftest$ac_exeext 7815if { (ac_try="$ac_link" 7816case "(($ac_try" in 7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7818 *) ac_try_echo=$ac_try;; 7819esac 7820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7821 (eval "$ac_link") 2>conftest.er1 7822 ac_status=$? 7823 grep -v '^ *+' conftest.er1 >conftest.err 7824 rm -f conftest.er1 7825 cat conftest.err >&5 7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7827 (exit $ac_status); } && 7828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7829 { (case "(($ac_try" in 7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7831 *) ac_try_echo=$ac_try;; 7832esac 7833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7834 (eval "$ac_try") 2>&5 7835 ac_status=$? 7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7837 (exit $ac_status); }; } && 7838 { ac_try='test -s conftest$ac_exeext' 7839 { (case "(($ac_try" in 7840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7841 *) ac_try_echo=$ac_try;; 7842esac 7843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7844 (eval "$ac_try") 2>&5 7845 ac_status=$? 7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7847 (exit $ac_status); }; }; then 7848 llvm_cv_link_use_export_dynamic=yes 7849else 7850 echo "$as_me: failed program was:" >&5 7851sed 's/^/| /' conftest.$ac_ext >&5 7852 7853 llvm_cv_link_use_export_dynamic=no 7854fi 7855 7856rm -f core conftest.err conftest.$ac_objext \ 7857 conftest$ac_exeext conftest.$ac_ext 7858 CFLAGS="$oldcflags" 7859 ac_ext=c 7860ac_cpp='$CPP $CPPFLAGS' 7861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7863ac_compiler_gnu=$ac_cv_c_compiler_gnu 7864 7865 7866fi 7867{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5 7868echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; } 7869if test "$llvm_cv_link_use_export_dynamic" = yes ; then 7870 7871cat >>confdefs.h <<\_ACEOF 7872#define HAVE_LINK_EXPORT_DYNAMIC 1 7873_ACEOF 7874 7875 fi 7876 7877 7878{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5 7879echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; } 7880if test "${llvm_cv_link_use_version_script+set}" = set; then 7881 echo $ECHO_N "(cached) $ECHO_C" >&6 7882else 7883 ac_ext=c 7884ac_cpp='$CPP $CPPFLAGS' 7885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7887ac_compiler_gnu=$ac_cv_c_compiler_gnu 7888 7889 oldcflags="$CFLAGS" 7890 7891 # The following code is from the autoconf manual, 7892 # "11.13: Limitations of Usual Tools". 7893 # Create a temporary directory $tmp in $TMPDIR (default /tmp). 7894 # Use mktemp if possible; otherwise fall back on mkdir, 7895 # with $RANDOM to make collisions less likely. 7896 : ${TMPDIR=/tmp} 7897 { 7898 tmp=` 7899 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null 7900 ` && 7901 test -n "$tmp" && test -d "$tmp" 7902 } || { 7903 tmp=$TMPDIR/foo$$-$RANDOM 7904 (umask 077 && mkdir "$tmp") 7905 } || exit $? 7906 7907 echo "{" > "$tmp/export.map" 7908 echo " global: main;" >> "$tmp/export.map" 7909 echo " local: *;" >> "$tmp/export.map" 7910 echo "};" >> "$tmp/export.map" 7911 7912 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map" 7913 cat >conftest.$ac_ext <<_ACEOF 7914/* confdefs.h. */ 7915_ACEOF 7916cat confdefs.h >>conftest.$ac_ext 7917cat >>conftest.$ac_ext <<_ACEOF 7918/* end confdefs.h. */ 7919 7920int 7921main () 7922{ 7923 7924 ; 7925 return 0; 7926} 7927_ACEOF 7928rm -f conftest.$ac_objext conftest$ac_exeext 7929if { (ac_try="$ac_link" 7930case "(($ac_try" in 7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7932 *) ac_try_echo=$ac_try;; 7933esac 7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7935 (eval "$ac_link") 2>conftest.er1 7936 ac_status=$? 7937 grep -v '^ *+' conftest.er1 >conftest.err 7938 rm -f conftest.er1 7939 cat conftest.err >&5 7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7941 (exit $ac_status); } && 7942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7943 { (case "(($ac_try" in 7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7945 *) ac_try_echo=$ac_try;; 7946esac 7947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7948 (eval "$ac_try") 2>&5 7949 ac_status=$? 7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7951 (exit $ac_status); }; } && 7952 { ac_try='test -s conftest$ac_exeext' 7953 { (case "(($ac_try" in 7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7955 *) ac_try_echo=$ac_try;; 7956esac 7957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7958 (eval "$ac_try") 2>&5 7959 ac_status=$? 7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7961 (exit $ac_status); }; }; then 7962 llvm_cv_link_use_version_script=yes 7963else 7964 echo "$as_me: failed program was:" >&5 7965sed 's/^/| /' conftest.$ac_ext >&5 7966 7967 llvm_cv_link_use_version_script=no 7968fi 7969 7970rm -f core conftest.err conftest.$ac_objext \ 7971 conftest$ac_exeext conftest.$ac_ext 7972 rm "$tmp/export.map" 7973 rmdir "$tmp" 7974 CFLAGS="$oldcflags" 7975 ac_ext=c 7976ac_cpp='$CPP $CPPFLAGS' 7977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7979ac_compiler_gnu=$ac_cv_c_compiler_gnu 7980 7981 7982fi 7983{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5 7984echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; } 7985if test "$llvm_cv_link_use_version_script" = yes ; then 7986 HAVE_LINK_VERSION_SCRIPT=1 7987 7988 fi 7989 7990 7991 7992 7993{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7994echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 7995if test "${ac_cv_c_const+set}" = set; then 7996 echo $ECHO_N "(cached) $ECHO_C" >&6 7997else 7998 cat >conftest.$ac_ext <<_ACEOF 7999/* confdefs.h. */ 8000_ACEOF 8001cat confdefs.h >>conftest.$ac_ext 8002cat >>conftest.$ac_ext <<_ACEOF 8003/* end confdefs.h. */ 8004 8005int 8006main () 8007{ 8008/* FIXME: Include the comments suggested by Paul. */ 8009#ifndef __cplusplus 8010 /* Ultrix mips cc rejects this. */ 8011 typedef int charset[2]; 8012 const charset x; 8013 /* SunOS 4.1.1 cc rejects this. */ 8014 char const *const *ccp; 8015 char **p; 8016 /* NEC SVR4.0.2 mips cc rejects this. */ 8017 struct point {int x, y;}; 8018 static struct point const zero = {0,0}; 8019 /* AIX XL C 1.02.0.0 rejects this. 8020 It does not let you subtract one const X* pointer from another in 8021 an arm of an if-expression whose if-part is not a constant 8022 expression */ 8023 const char *g = "string"; 8024 ccp = &g + (g ? g-g : 0); 8025 /* HPUX 7.0 cc rejects these. */ 8026 ++ccp; 8027 p = (char**) ccp; 8028 ccp = (char const *const *) p; 8029 { /* SCO 3.2v4 cc rejects this. */ 8030 char *t; 8031 char const *s = 0 ? (char *) 0 : (char const *) 0; 8032 8033 *t++ = 0; 8034 if (s) return 0; 8035 } 8036 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8037 int x[] = {25, 17}; 8038 const int *foo = &x[0]; 8039 ++foo; 8040 } 8041 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8042 typedef const int *iptr; 8043 iptr p = 0; 8044 ++p; 8045 } 8046 { /* AIX XL C 1.02.0.0 rejects this saying 8047 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8048 struct s { int j; const int *ap[3]; }; 8049 struct s *b; b->j = 5; 8050 } 8051 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8052 const int foo = 10; 8053 if (!foo) return 0; 8054 } 8055 return !x[0] && !zero.x; 8056#endif 8057 8058 ; 8059 return 0; 8060} 8061_ACEOF 8062rm -f conftest.$ac_objext 8063if { (ac_try="$ac_compile" 8064case "(($ac_try" in 8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8066 *) ac_try_echo=$ac_try;; 8067esac 8068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8069 (eval "$ac_compile") 2>conftest.er1 8070 ac_status=$? 8071 grep -v '^ *+' conftest.er1 >conftest.err 8072 rm -f conftest.er1 8073 cat conftest.err >&5 8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8075 (exit $ac_status); } && 8076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8077 { (case "(($ac_try" in 8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8079 *) ac_try_echo=$ac_try;; 8080esac 8081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8082 (eval "$ac_try") 2>&5 8083 ac_status=$? 8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8085 (exit $ac_status); }; } && 8086 { ac_try='test -s conftest.$ac_objext' 8087 { (case "(($ac_try" in 8088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8089 *) ac_try_echo=$ac_try;; 8090esac 8091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8092 (eval "$ac_try") 2>&5 8093 ac_status=$? 8094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8095 (exit $ac_status); }; }; then 8096 ac_cv_c_const=yes 8097else 8098 echo "$as_me: failed program was:" >&5 8099sed 's/^/| /' conftest.$ac_ext >&5 8100 8101 ac_cv_c_const=no 8102fi 8103 8104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8105fi 8106{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 8107echo "${ECHO_T}$ac_cv_c_const" >&6; } 8108if test $ac_cv_c_const = no; then 8109 8110cat >>confdefs.h <<\_ACEOF 8111#define const 8112_ACEOF 8113 8114fi 8115 8116 8117 8118 8119 8120 8121ac_header_dirent=no 8122for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8123 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8124{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 8125echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 8126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8127 echo $ECHO_N "(cached) $ECHO_C" >&6 8128else 8129 cat >conftest.$ac_ext <<_ACEOF 8130/* confdefs.h. */ 8131_ACEOF 8132cat confdefs.h >>conftest.$ac_ext 8133cat >>conftest.$ac_ext <<_ACEOF 8134/* end confdefs.h. */ 8135#include <sys/types.h> 8136#include <$ac_hdr> 8137 8138int 8139main () 8140{ 8141if ((DIR *) 0) 8142return 0; 8143 ; 8144 return 0; 8145} 8146_ACEOF 8147rm -f conftest.$ac_objext 8148if { (ac_try="$ac_compile" 8149case "(($ac_try" in 8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8151 *) ac_try_echo=$ac_try;; 8152esac 8153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8154 (eval "$ac_compile") 2>conftest.er1 8155 ac_status=$? 8156 grep -v '^ *+' conftest.er1 >conftest.err 8157 rm -f conftest.er1 8158 cat conftest.err >&5 8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8160 (exit $ac_status); } && 8161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8162 { (case "(($ac_try" in 8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8164 *) ac_try_echo=$ac_try;; 8165esac 8166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8167 (eval "$ac_try") 2>&5 8168 ac_status=$? 8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8170 (exit $ac_status); }; } && 8171 { ac_try='test -s conftest.$ac_objext' 8172 { (case "(($ac_try" in 8173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8174 *) ac_try_echo=$ac_try;; 8175esac 8176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8177 (eval "$ac_try") 2>&5 8178 ac_status=$? 8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8180 (exit $ac_status); }; }; then 8181 eval "$as_ac_Header=yes" 8182else 8183 echo "$as_me: failed program was:" >&5 8184sed 's/^/| /' conftest.$ac_ext >&5 8185 8186 eval "$as_ac_Header=no" 8187fi 8188 8189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8190fi 8191ac_res=`eval echo '${'$as_ac_Header'}'` 8192 { echo "$as_me:$LINENO: result: $ac_res" >&5 8193echo "${ECHO_T}$ac_res" >&6; } 8194if test `eval echo '${'$as_ac_Header'}'` = yes; then 8195 cat >>confdefs.h <<_ACEOF 8196#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8197_ACEOF 8198 8199ac_header_dirent=$ac_hdr; break 8200fi 8201 8202done 8203# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8204if test $ac_header_dirent = dirent.h; then 8205 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8206echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8207if test "${ac_cv_search_opendir+set}" = set; then 8208 echo $ECHO_N "(cached) $ECHO_C" >&6 8209else 8210 ac_func_search_save_LIBS=$LIBS 8211cat >conftest.$ac_ext <<_ACEOF 8212/* confdefs.h. */ 8213_ACEOF 8214cat confdefs.h >>conftest.$ac_ext 8215cat >>conftest.$ac_ext <<_ACEOF 8216/* end confdefs.h. */ 8217 8218/* Override any GCC internal prototype to avoid an error. 8219 Use char because int might match the return type of a GCC 8220 builtin and then its argument prototype would still apply. */ 8221#ifdef __cplusplus 8222extern "C" 8223#endif 8224char opendir (); 8225int 8226main () 8227{ 8228return opendir (); 8229 ; 8230 return 0; 8231} 8232_ACEOF 8233for ac_lib in '' dir; do 8234 if test -z "$ac_lib"; then 8235 ac_res="none required" 8236 else 8237 ac_res=-l$ac_lib 8238 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8239 fi 8240 rm -f conftest.$ac_objext conftest$ac_exeext 8241if { (ac_try="$ac_link" 8242case "(($ac_try" in 8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8244 *) ac_try_echo=$ac_try;; 8245esac 8246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8247 (eval "$ac_link") 2>conftest.er1 8248 ac_status=$? 8249 grep -v '^ *+' conftest.er1 >conftest.err 8250 rm -f conftest.er1 8251 cat conftest.err >&5 8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8253 (exit $ac_status); } && 8254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8255 { (case "(($ac_try" in 8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8257 *) ac_try_echo=$ac_try;; 8258esac 8259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8260 (eval "$ac_try") 2>&5 8261 ac_status=$? 8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8263 (exit $ac_status); }; } && 8264 { ac_try='test -s conftest$ac_exeext' 8265 { (case "(($ac_try" in 8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8267 *) ac_try_echo=$ac_try;; 8268esac 8269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8270 (eval "$ac_try") 2>&5 8271 ac_status=$? 8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 (exit $ac_status); }; }; then 8274 ac_cv_search_opendir=$ac_res 8275else 8276 echo "$as_me: failed program was:" >&5 8277sed 's/^/| /' conftest.$ac_ext >&5 8278 8279 8280fi 8281 8282rm -f core conftest.err conftest.$ac_objext \ 8283 conftest$ac_exeext 8284 if test "${ac_cv_search_opendir+set}" = set; then 8285 break 8286fi 8287done 8288if test "${ac_cv_search_opendir+set}" = set; then 8289 : 8290else 8291 ac_cv_search_opendir=no 8292fi 8293rm conftest.$ac_ext 8294LIBS=$ac_func_search_save_LIBS 8295fi 8296{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8297echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8298ac_res=$ac_cv_search_opendir 8299if test "$ac_res" != no; then 8300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8301 8302fi 8303 8304else 8305 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 8306echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 8307if test "${ac_cv_search_opendir+set}" = set; then 8308 echo $ECHO_N "(cached) $ECHO_C" >&6 8309else 8310 ac_func_search_save_LIBS=$LIBS 8311cat >conftest.$ac_ext <<_ACEOF 8312/* confdefs.h. */ 8313_ACEOF 8314cat confdefs.h >>conftest.$ac_ext 8315cat >>conftest.$ac_ext <<_ACEOF 8316/* end confdefs.h. */ 8317 8318/* Override any GCC internal prototype to avoid an error. 8319 Use char because int might match the return type of a GCC 8320 builtin and then its argument prototype would still apply. */ 8321#ifdef __cplusplus 8322extern "C" 8323#endif 8324char opendir (); 8325int 8326main () 8327{ 8328return opendir (); 8329 ; 8330 return 0; 8331} 8332_ACEOF 8333for ac_lib in '' x; do 8334 if test -z "$ac_lib"; then 8335 ac_res="none required" 8336 else 8337 ac_res=-l$ac_lib 8338 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8339 fi 8340 rm -f conftest.$ac_objext conftest$ac_exeext 8341if { (ac_try="$ac_link" 8342case "(($ac_try" in 8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8344 *) ac_try_echo=$ac_try;; 8345esac 8346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8347 (eval "$ac_link") 2>conftest.er1 8348 ac_status=$? 8349 grep -v '^ *+' conftest.er1 >conftest.err 8350 rm -f conftest.er1 8351 cat conftest.err >&5 8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8353 (exit $ac_status); } && 8354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8355 { (case "(($ac_try" in 8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8357 *) ac_try_echo=$ac_try;; 8358esac 8359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8360 (eval "$ac_try") 2>&5 8361 ac_status=$? 8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8363 (exit $ac_status); }; } && 8364 { ac_try='test -s conftest$ac_exeext' 8365 { (case "(($ac_try" in 8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8367 *) ac_try_echo=$ac_try;; 8368esac 8369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8370 (eval "$ac_try") 2>&5 8371 ac_status=$? 8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8373 (exit $ac_status); }; }; then 8374 ac_cv_search_opendir=$ac_res 8375else 8376 echo "$as_me: failed program was:" >&5 8377sed 's/^/| /' conftest.$ac_ext >&5 8378 8379 8380fi 8381 8382rm -f core conftest.err conftest.$ac_objext \ 8383 conftest$ac_exeext 8384 if test "${ac_cv_search_opendir+set}" = set; then 8385 break 8386fi 8387done 8388if test "${ac_cv_search_opendir+set}" = set; then 8389 : 8390else 8391 ac_cv_search_opendir=no 8392fi 8393rm conftest.$ac_ext 8394LIBS=$ac_func_search_save_LIBS 8395fi 8396{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 8397echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 8398ac_res=$ac_cv_search_opendir 8399if test "$ac_res" != no; then 8400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8401 8402fi 8403 8404fi 8405 8406 8407for ac_header in dlfcn.h 8408do 8409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8411 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8414 echo $ECHO_N "(cached) $ECHO_C" >&6 8415fi 8416ac_res=`eval echo '${'$as_ac_Header'}'` 8417 { echo "$as_me:$LINENO: result: $ac_res" >&5 8418echo "${ECHO_T}$ac_res" >&6; } 8419else 8420 # Is the header compilable? 8421{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8423cat >conftest.$ac_ext <<_ACEOF 8424/* confdefs.h. */ 8425_ACEOF 8426cat confdefs.h >>conftest.$ac_ext 8427cat >>conftest.$ac_ext <<_ACEOF 8428/* end confdefs.h. */ 8429$ac_includes_default 8430#include <$ac_header> 8431_ACEOF 8432rm -f conftest.$ac_objext 8433if { (ac_try="$ac_compile" 8434case "(($ac_try" in 8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8436 *) ac_try_echo=$ac_try;; 8437esac 8438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8439 (eval "$ac_compile") 2>conftest.er1 8440 ac_status=$? 8441 grep -v '^ *+' conftest.er1 >conftest.err 8442 rm -f conftest.er1 8443 cat conftest.err >&5 8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8445 (exit $ac_status); } && 8446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8447 { (case "(($ac_try" in 8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8449 *) ac_try_echo=$ac_try;; 8450esac 8451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8452 (eval "$ac_try") 2>&5 8453 ac_status=$? 8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8455 (exit $ac_status); }; } && 8456 { ac_try='test -s conftest.$ac_objext' 8457 { (case "(($ac_try" in 8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8459 *) ac_try_echo=$ac_try;; 8460esac 8461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8462 (eval "$ac_try") 2>&5 8463 ac_status=$? 8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8465 (exit $ac_status); }; }; then 8466 ac_header_compiler=yes 8467else 8468 echo "$as_me: failed program was:" >&5 8469sed 's/^/| /' conftest.$ac_ext >&5 8470 8471 ac_header_compiler=no 8472fi 8473 8474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8475{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8476echo "${ECHO_T}$ac_header_compiler" >&6; } 8477 8478# Is the header present? 8479{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8481cat >conftest.$ac_ext <<_ACEOF 8482/* confdefs.h. */ 8483_ACEOF 8484cat confdefs.h >>conftest.$ac_ext 8485cat >>conftest.$ac_ext <<_ACEOF 8486/* end confdefs.h. */ 8487#include <$ac_header> 8488_ACEOF 8489if { (ac_try="$ac_cpp conftest.$ac_ext" 8490case "(($ac_try" in 8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8492 *) ac_try_echo=$ac_try;; 8493esac 8494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8496 ac_status=$? 8497 grep -v '^ *+' conftest.er1 >conftest.err 8498 rm -f conftest.er1 8499 cat conftest.err >&5 8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8501 (exit $ac_status); } >/dev/null; then 8502 if test -s conftest.err; then 8503 ac_cpp_err=$ac_c_preproc_warn_flag 8504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8505 else 8506 ac_cpp_err= 8507 fi 8508else 8509 ac_cpp_err=yes 8510fi 8511if test -z "$ac_cpp_err"; then 8512 ac_header_preproc=yes 8513else 8514 echo "$as_me: failed program was:" >&5 8515sed 's/^/| /' conftest.$ac_ext >&5 8516 8517 ac_header_preproc=no 8518fi 8519 8520rm -f conftest.err conftest.$ac_ext 8521{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8522echo "${ECHO_T}$ac_header_preproc" >&6; } 8523 8524# So? What about this header? 8525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8526 yes:no: ) 8527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8528echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8530echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8531 ac_header_preproc=yes 8532 ;; 8533 no:yes:* ) 8534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8535echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8537echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8539echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8541echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8545echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8546 ( cat <<\_ASBOX 8547## ------------------------------ ## 8548## Report this to bugs@yourdomain ## 8549## ------------------------------ ## 8550_ASBOX 8551 ) | sed "s/^/$as_me: WARNING: /" >&2 8552 ;; 8553esac 8554{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8556if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8557 echo $ECHO_N "(cached) $ECHO_C" >&6 8558else 8559 eval "$as_ac_Header=\$ac_header_preproc" 8560fi 8561ac_res=`eval echo '${'$as_ac_Header'}'` 8562 { echo "$as_me:$LINENO: result: $ac_res" >&5 8563echo "${ECHO_T}$ac_res" >&6; } 8564 8565fi 8566if test `eval echo '${'$as_ac_Header'}'` = yes; then 8567 cat >>confdefs.h <<_ACEOF 8568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8569_ACEOF 8570 8571fi 8572 8573done 8574 8575# Check whether --enable-ltdl-install was given. 8576if test "${enable_ltdl_install+set}" = set; then 8577 enableval=$enable_ltdl_install; 8578fi 8579 8580 8581 8582 8583if test x"${enable_ltdl_install-no}" != xno; then 8584 INSTALL_LTDL_TRUE= 8585 INSTALL_LTDL_FALSE='#' 8586else 8587 INSTALL_LTDL_TRUE='#' 8588 INSTALL_LTDL_FALSE= 8589fi 8590 8591 8592 8593if test x"${enable_ltdl_convenience-no}" != xno; then 8594 CONVENIENCE_LTDL_TRUE= 8595 CONVENIENCE_LTDL_FALSE='#' 8596else 8597 CONVENIENCE_LTDL_TRUE='#' 8598 CONVENIENCE_LTDL_FALSE= 8599fi 8600 8601 8602{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8603echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8604library_names_spec= 8605libname_spec='lib$name' 8606soname_spec= 8607shrext_cmds=".so" 8608postinstall_cmds= 8609postuninstall_cmds= 8610finish_cmds= 8611finish_eval= 8612shlibpath_var= 8613shlibpath_overrides_runpath=unknown 8614version_type=none 8615dynamic_linker="$host_os ld.so" 8616sys_lib_dlsearch_path_spec="/lib /usr/lib" 8617if test "$GCC" = yes; then 8618 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8619 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8620 # if the path contains ";" then we assume it to be the separator 8621 # otherwise default to the standard path separator (i.e. ":") - it is 8622 # assumed that no part of a normal pathname contains ";" but that should 8623 # okay in the real world where ";" in dirpaths is itself problematic. 8624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8625 else 8626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8627 fi 8628else 8629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8630fi 8631need_lib_prefix=unknown 8632hardcode_into_libs=no 8633 8634# when you set need_version to no, make sure it does not cause -set_version 8635# flags to be left without arguments 8636need_version=unknown 8637 8638case $host_os in 8639aix3*) 8640 version_type=linux 8641 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8642 shlibpath_var=LIBPATH 8643 8644 # AIX 3 has no versioning support, so we append a major version to the name. 8645 soname_spec='${libname}${release}${shared_ext}$major' 8646 ;; 8647 8648aix4* | aix5*) 8649 version_type=linux 8650 need_lib_prefix=no 8651 need_version=no 8652 hardcode_into_libs=yes 8653 if test "$host_cpu" = ia64; then 8654 # AIX 5 supports IA64 8655 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8656 shlibpath_var=LD_LIBRARY_PATH 8657 else 8658 # With GCC up to 2.95.x, collect2 would create an import file 8659 # for dependence libraries. The import file would start with 8660 # the line `#! .'. This would cause the generated library to 8661 # depend on `.', always an invalid library. This was fixed in 8662 # development snapshots of GCC prior to 3.0. 8663 case $host_os in 8664 aix4 | aix4.[01] | aix4.[01].*) 8665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8666 echo ' yes ' 8667 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8668 : 8669 else 8670 can_build_shared=no 8671 fi 8672 ;; 8673 esac 8674 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8675 # soname into executable. Probably we can add versioning support to 8676 # collect2, so additional links can be useful in future. 8677 if test "$aix_use_runtimelinking" = yes; then 8678 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8679 # instead of lib<name>.a to let people know that these are not 8680 # typical AIX shared libraries. 8681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8682 else 8683 # We preserve .a as extension for shared libraries through AIX4.2 8684 # and later when we are not doing run time linking. 8685 library_names_spec='${libname}${release}.a $libname.a' 8686 soname_spec='${libname}${release}${shared_ext}$major' 8687 fi 8688 shlibpath_var=LIBPATH 8689 fi 8690 ;; 8691 8692amigaos*) 8693 library_names_spec='$libname.ixlibrary $libname.a' 8694 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8695 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' 8696 ;; 8697 8698beos*) 8699 library_names_spec='${libname}${shared_ext}' 8700 dynamic_linker="$host_os ld.so" 8701 shlibpath_var=LIBRARY_PATH 8702 ;; 8703 8704bsdi[45]*) 8705 version_type=linux 8706 need_version=no 8707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8708 soname_spec='${libname}${release}${shared_ext}$major' 8709 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8710 shlibpath_var=LD_LIBRARY_PATH 8711 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8712 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8713 # the default ld.so.conf also contains /usr/contrib/lib and 8714 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8715 # libtool to hard-code these into programs 8716 ;; 8717 8718cygwin* | mingw* | pw32*) 8719 version_type=windows 8720 shrext_cmds=".dll" 8721 need_version=no 8722 need_lib_prefix=no 8723 8724 case $GCC,$host_os in 8725 yes,cygwin* | yes,mingw* | yes,pw32*) 8726 library_names_spec='$libname.dll.a' 8727 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8728 postinstall_cmds='base_file=`basename \${file}`~ 8729 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8730 dldir=$destdir/`dirname \$dlpath`~ 8731 test -d \$dldir || mkdir -p \$dldir~ 8732 $install_prog $dir/$dlname \$dldir/$dlname~ 8733 chmod a+x \$dldir/$dlname' 8734 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8735 dlpath=$dir/\$dldll~ 8736 $rm \$dlpath' 8737 shlibpath_overrides_runpath=yes 8738 8739 case $host_os in 8740 cygwin*) 8741 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8742 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8743 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8744 ;; 8745 mingw*) 8746 # MinGW DLLs use traditional 'lib' prefix 8747 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8748 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8749 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8750 # It is most probably a Windows format PATH printed by 8751 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8752 # path with ; separators, and with drive letters. We can handle the 8753 # drive letters (cygwin fileutils understands them), so leave them, 8754 # especially as we might pass files found there to a mingw objdump, 8755 # which wouldn't understand a cygwinified path. Ahh. 8756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8757 else 8758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8759 fi 8760 ;; 8761 pw32*) 8762 # pw32 DLLs use 'pw' prefix rather than 'lib' 8763 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8764 ;; 8765 esac 8766 ;; 8767 8768 *) 8769 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8770 ;; 8771 esac 8772 dynamic_linker='Win32 ld.exe' 8773 # FIXME: first we should search . and the directory the executable is in 8774 shlibpath_var=PATH 8775 ;; 8776 8777darwin* | rhapsody*) 8778 dynamic_linker="$host_os dyld" 8779 version_type=darwin 8780 need_lib_prefix=no 8781 need_version=no 8782 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8783 soname_spec='${libname}${release}${major}$shared_ext' 8784 shlibpath_overrides_runpath=yes 8785 shlibpath_var=DYLD_LIBRARY_PATH 8786 shrext_cmds='.dylib' 8787 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 8788 if test "$GCC" = yes; then 8789 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"` 8790 else 8791 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 8792 fi 8793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8794 ;; 8795 8796dgux*) 8797 version_type=linux 8798 need_lib_prefix=no 8799 need_version=no 8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8801 soname_spec='${libname}${release}${shared_ext}$major' 8802 shlibpath_var=LD_LIBRARY_PATH 8803 ;; 8804 8805freebsd1.*) 8806 dynamic_linker=no 8807 ;; 8808 8809kfreebsd*-gnu) 8810 version_type=linux 8811 need_lib_prefix=no 8812 need_version=no 8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8814 soname_spec='${libname}${release}${shared_ext}$major' 8815 shlibpath_var=LD_LIBRARY_PATH 8816 shlibpath_overrides_runpath=no 8817 hardcode_into_libs=yes 8818 dynamic_linker='GNU ld.so' 8819 ;; 8820 8821freebsd* | dragonfly*) 8822 # DragonFly does not have aout. When/if they implement a new 8823 # versioning mechanism, adjust this. 8824 if test -x /usr/bin/objformat; then 8825 objformat=`/usr/bin/objformat` 8826 else 8827 case $host_os in 8828 freebsd[123].*) objformat=aout ;; 8829 *) objformat=elf ;; 8830 esac 8831 fi 8832 version_type=freebsd-$objformat 8833 case $version_type in 8834 freebsd-elf*) 8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8836 need_version=no 8837 need_lib_prefix=no 8838 ;; 8839 freebsd-*) 8840 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8841 need_version=yes 8842 ;; 8843 esac 8844 shlibpath_var=LD_LIBRARY_PATH 8845 case $host_os in 8846 freebsd2.*) 8847 shlibpath_overrides_runpath=yes 8848 ;; 8849 freebsd3.[01]* | freebsdelf3.[01]*) 8850 shlibpath_overrides_runpath=yes 8851 hardcode_into_libs=yes 8852 ;; 8853 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8854 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8855 shlibpath_overrides_runpath=no 8856 hardcode_into_libs=yes 8857 ;; 8858 freebsd*) # from 4.6 on 8859 shlibpath_overrides_runpath=yes 8860 hardcode_into_libs=yes 8861 ;; 8862 esac 8863 ;; 8864 8865gnu*) 8866 version_type=linux 8867 need_lib_prefix=no 8868 need_version=no 8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8870 soname_spec='${libname}${release}${shared_ext}$major' 8871 shlibpath_var=LD_LIBRARY_PATH 8872 hardcode_into_libs=yes 8873 ;; 8874 8875hpux9* | hpux10* | hpux11*) 8876 # Give a soname corresponding to the major version so that dld.sl refuses to 8877 # link against other versions. 8878 version_type=sunos 8879 need_lib_prefix=no 8880 need_version=no 8881 case $host_cpu in 8882 ia64*) 8883 shrext_cmds='.so' 8884 hardcode_into_libs=yes 8885 dynamic_linker="$host_os dld.so" 8886 shlibpath_var=LD_LIBRARY_PATH 8887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8889 soname_spec='${libname}${release}${shared_ext}$major' 8890 if test "X$HPUX_IA64_MODE" = X32; then 8891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8892 else 8893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8894 fi 8895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8896 ;; 8897 hppa*64*) 8898 shrext_cmds='.sl' 8899 hardcode_into_libs=yes 8900 dynamic_linker="$host_os dld.sl" 8901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8904 soname_spec='${libname}${release}${shared_ext}$major' 8905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8907 ;; 8908 *) 8909 shrext_cmds='.sl' 8910 dynamic_linker="$host_os dld.sl" 8911 shlibpath_var=SHLIB_PATH 8912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8914 soname_spec='${libname}${release}${shared_ext}$major' 8915 ;; 8916 esac 8917 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8918 postinstall_cmds='chmod 555 $lib' 8919 ;; 8920 8921interix3*) 8922 version_type=linux 8923 need_lib_prefix=no 8924 need_version=no 8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8926 soname_spec='${libname}${release}${shared_ext}$major' 8927 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8928 shlibpath_var=LD_LIBRARY_PATH 8929 shlibpath_overrides_runpath=no 8930 hardcode_into_libs=yes 8931 ;; 8932 8933irix5* | irix6* | nonstopux*) 8934 case $host_os in 8935 nonstopux*) version_type=nonstopux ;; 8936 *) 8937 if test "$lt_cv_prog_gnu_ld" = yes; then 8938 version_type=linux 8939 else 8940 version_type=irix 8941 fi ;; 8942 esac 8943 need_lib_prefix=no 8944 need_version=no 8945 soname_spec='${libname}${release}${shared_ext}$major' 8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8947 case $host_os in 8948 irix5* | nonstopux*) 8949 libsuff= shlibsuff= 8950 ;; 8951 *) 8952 case $LD in # libtool.m4 will add one of these switches to LD 8953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8954 libsuff= shlibsuff= libmagic=32-bit;; 8955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8956 libsuff=32 shlibsuff=N32 libmagic=N32;; 8957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8958 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8959 *) libsuff= shlibsuff= libmagic=never-match;; 8960 esac 8961 ;; 8962 esac 8963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8964 shlibpath_overrides_runpath=no 8965 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8966 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8967 hardcode_into_libs=yes 8968 ;; 8969 8970# No shared lib support for Linux oldld, aout, or coff. 8971linux*oldld* | linux*aout* | linux*coff*) 8972 dynamic_linker=no 8973 ;; 8974 8975# This must be Linux ELF. 8976linux*) 8977 version_type=linux 8978 need_lib_prefix=no 8979 need_version=no 8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8981 soname_spec='${libname}${release}${shared_ext}$major' 8982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8983 shlibpath_var=LD_LIBRARY_PATH 8984 shlibpath_overrides_runpath=no 8985 # This implies no fast_install, which is unacceptable. 8986 # Some rework will be needed to allow for fast_install 8987 # before this can be enabled. 8988 hardcode_into_libs=yes 8989 8990 # Append ld.so.conf contents to the search path 8991 if test -f /etc/ld.so.conf; then 8992 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' ' '` 8993 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8994 fi 8995 8996 # We used to test for /lib/ld.so.1 and disable shared libraries on 8997 # powerpc, because MkLinux only supported shared libraries with the 8998 # GNU dynamic linker. Since this was broken with cross compilers, 8999 # most powerpc-linux boxes support dynamic linking these days and 9000 # people can always --disable-shared, the test was removed, and we 9001 # assume the GNU/Linux dynamic linker is in use. 9002 dynamic_linker='GNU/Linux ld.so' 9003 ;; 9004 9005knetbsd*-gnu) 9006 version_type=linux 9007 need_lib_prefix=no 9008 need_version=no 9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9010 soname_spec='${libname}${release}${shared_ext}$major' 9011 shlibpath_var=LD_LIBRARY_PATH 9012 shlibpath_overrides_runpath=no 9013 hardcode_into_libs=yes 9014 dynamic_linker='GNU ld.so' 9015 ;; 9016 9017netbsd*) 9018 version_type=sunos 9019 need_lib_prefix=no 9020 need_version=no 9021 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9024 dynamic_linker='NetBSD (a.out) ld.so' 9025 else 9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9027 soname_spec='${libname}${release}${shared_ext}$major' 9028 dynamic_linker='NetBSD ld.elf_so' 9029 fi 9030 shlibpath_var=LD_LIBRARY_PATH 9031 shlibpath_overrides_runpath=yes 9032 hardcode_into_libs=yes 9033 ;; 9034 9035newsos6) 9036 version_type=linux 9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9038 shlibpath_var=LD_LIBRARY_PATH 9039 shlibpath_overrides_runpath=yes 9040 ;; 9041 9042nto-qnx*) 9043 version_type=linux 9044 need_lib_prefix=no 9045 need_version=no 9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9047 soname_spec='${libname}${release}${shared_ext}$major' 9048 shlibpath_var=LD_LIBRARY_PATH 9049 shlibpath_overrides_runpath=yes 9050 ;; 9051 9052openbsd*) 9053 version_type=sunos 9054 sys_lib_dlsearch_path_spec="/usr/lib" 9055 need_lib_prefix=no 9056 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9057 case $host_os in 9058 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9059 *) need_version=no ;; 9060 esac 9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9063 shlibpath_var=LD_LIBRARY_PATH 9064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9065 case $host_os in 9066 openbsd2.[89] | openbsd2.[89].*) 9067 shlibpath_overrides_runpath=no 9068 ;; 9069 *) 9070 shlibpath_overrides_runpath=yes 9071 ;; 9072 esac 9073 else 9074 shlibpath_overrides_runpath=yes 9075 fi 9076 ;; 9077 9078os2*) 9079 libname_spec='$name' 9080 shrext_cmds=".dll" 9081 need_lib_prefix=no 9082 library_names_spec='$libname${shared_ext} $libname.a' 9083 dynamic_linker='OS/2 ld.exe' 9084 shlibpath_var=LIBPATH 9085 ;; 9086 9087osf3* | osf4* | osf5*) 9088 version_type=osf 9089 need_lib_prefix=no 9090 need_version=no 9091 soname_spec='${libname}${release}${shared_ext}$major' 9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9093 shlibpath_var=LD_LIBRARY_PATH 9094 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9095 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9096 ;; 9097 9098solaris*) 9099 version_type=linux 9100 need_lib_prefix=no 9101 need_version=no 9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9103 soname_spec='${libname}${release}${shared_ext}$major' 9104 shlibpath_var=LD_LIBRARY_PATH 9105 shlibpath_overrides_runpath=yes 9106 hardcode_into_libs=yes 9107 # ldd complains unless libraries are executable 9108 postinstall_cmds='chmod +x $lib' 9109 ;; 9110 9111sunos4*) 9112 version_type=sunos 9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9114 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9115 shlibpath_var=LD_LIBRARY_PATH 9116 shlibpath_overrides_runpath=yes 9117 if test "$with_gnu_ld" = yes; then 9118 need_lib_prefix=no 9119 fi 9120 need_version=yes 9121 ;; 9122 9123sysv4 | sysv4.3*) 9124 version_type=linux 9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9126 soname_spec='${libname}${release}${shared_ext}$major' 9127 shlibpath_var=LD_LIBRARY_PATH 9128 case $host_vendor in 9129 sni) 9130 shlibpath_overrides_runpath=no 9131 need_lib_prefix=no 9132 export_dynamic_flag_spec='${wl}-Blargedynsym' 9133 runpath_var=LD_RUN_PATH 9134 ;; 9135 siemens) 9136 need_lib_prefix=no 9137 ;; 9138 motorola) 9139 need_lib_prefix=no 9140 need_version=no 9141 shlibpath_overrides_runpath=no 9142 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9143 ;; 9144 esac 9145 ;; 9146 9147sysv4*MP*) 9148 if test -d /usr/nec ;then 9149 version_type=linux 9150 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9151 soname_spec='$libname${shared_ext}.$major' 9152 shlibpath_var=LD_LIBRARY_PATH 9153 fi 9154 ;; 9155 9156sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9157 version_type=freebsd-elf 9158 need_lib_prefix=no 9159 need_version=no 9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9161 soname_spec='${libname}${release}${shared_ext}$major' 9162 shlibpath_var=LD_LIBRARY_PATH 9163 hardcode_into_libs=yes 9164 if test "$with_gnu_ld" = yes; then 9165 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9166 shlibpath_overrides_runpath=no 9167 else 9168 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9169 shlibpath_overrides_runpath=yes 9170 case $host_os in 9171 sco3.2v5*) 9172 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9173 ;; 9174 esac 9175 fi 9176 sys_lib_dlsearch_path_spec='/usr/lib' 9177 ;; 9178 9179uts4*) 9180 version_type=linux 9181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9182 soname_spec='${libname}${release}${shared_ext}$major' 9183 shlibpath_var=LD_LIBRARY_PATH 9184 ;; 9185 9186*) 9187 dynamic_linker=no 9188 ;; 9189esac 9190{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9191echo "${ECHO_T}$dynamic_linker" >&6; } 9192test "$dynamic_linker" = no && can_build_shared=no 9193 9194variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9195if test "$GCC" = yes; then 9196 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9197fi 9198 9199 9200{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 9201echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; } 9202if test "${libltdl_cv_shlibext+set}" = set; then 9203 echo $ECHO_N "(cached) $ECHO_C" >&6 9204else 9205 9206module=yes 9207eval libltdl_cv_shlibext=$shrext_cmds 9208 9209fi 9210{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 9211echo "${ECHO_T}$libltdl_cv_shlibext" >&6; } 9212if test -n "$libltdl_cv_shlibext"; then 9213 9214cat >>confdefs.h <<_ACEOF 9215#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" 9216_ACEOF 9217 9218fi 9219 9220 9221{ echo "$as_me:$LINENO: checking for the default library search path" >&5 9222echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; } 9223if test "${libltdl_cv_sys_search_path+set}" = set; then 9224 echo $ECHO_N "(cached) $ECHO_C" >&6 9225else 9226 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" 9227fi 9228{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 9229echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; } 9230if test -n "$libltdl_cv_sys_search_path"; then 9231 sys_search_path= 9232 for dir in $libltdl_cv_sys_search_path; do 9233 if test -z "$sys_search_path"; then 9234 sys_search_path="$dir" 9235 else 9236 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" 9237 fi 9238 done 9239 9240cat >>confdefs.h <<_ACEOF 9241#define LTDL_SYSSEARCHPATH "$sys_search_path" 9242_ACEOF 9243 9244fi 9245 9246{ echo "$as_me:$LINENO: checking for objdir" >&5 9247echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 9248if test "${libltdl_cv_objdir+set}" = set; then 9249 echo $ECHO_N "(cached) $ECHO_C" >&6 9250else 9251 libltdl_cv_objdir="$objdir" 9252 if test -n "$objdir"; then 9253 : 9254 else 9255 rm -f .libs 2>/dev/null 9256 mkdir .libs 2>/dev/null 9257 if test -d .libs; then 9258 libltdl_cv_objdir=.libs 9259 else 9260 # MS-DOS does not allow filenames that begin with a dot. 9261 libltdl_cv_objdir=_libs 9262 fi 9263 rmdir .libs 2>/dev/null 9264 fi 9265 9266fi 9267{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 9268echo "${ECHO_T}$libltdl_cv_objdir" >&6; } 9269 9270cat >>confdefs.h <<_ACEOF 9271#define LTDL_OBJDIR "$libltdl_cv_objdir/" 9272_ACEOF 9273 9274 9275 9276 9277 9278 9279# Check for command to grab the raw symbol name followed by C symbol from nm. 9280{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 9281echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 9282if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 9283 echo $ECHO_N "(cached) $ECHO_C" >&6 9284else 9285 9286# These are sane defaults that work on at least a few old systems. 9287# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9288 9289# Character class describing NM global symbol codes. 9290symcode='[BCDEGRST]' 9291 9292# Regexp to match symbols that can be accessed directly from C. 9293sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9294 9295# Transform an extracted symbol line into a proper C declaration 9296lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 9297 9298# Transform an extracted symbol line into symbol name and symbol address 9299lt_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'" 9300 9301# Define system-specific variables. 9302case $host_os in 9303aix*) 9304 symcode='[BCDT]' 9305 ;; 9306cygwin* | mingw* | pw32*) 9307 symcode='[ABCDGISTW]' 9308 ;; 9309hpux*) # Its linker distinguishes data from code symbols 9310 if test "$host_cpu" = ia64; then 9311 symcode='[ABCDEGRST]' 9312 fi 9313 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9314 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'" 9315 ;; 9316linux*) 9317 if test "$host_cpu" = ia64; then 9318 symcode='[ABCDGIRSTW]' 9319 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9320 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'" 9321 fi 9322 ;; 9323irix* | nonstopux*) 9324 symcode='[BCDEGRST]' 9325 ;; 9326osf*) 9327 symcode='[BCDEGQRST]' 9328 ;; 9329solaris*) 9330 symcode='[BDRT]' 9331 ;; 9332sco3.2v5*) 9333 symcode='[DT]' 9334 ;; 9335sysv4.2uw2*) 9336 symcode='[DT]' 9337 ;; 9338sysv5* | sco5v6* | unixware* | OpenUNIX*) 9339 symcode='[ABDT]' 9340 ;; 9341sysv4) 9342 symcode='[DFNSTU]' 9343 ;; 9344esac 9345 9346# Handle CRLF in mingw tool chain 9347opt_cr= 9348case $build_os in 9349mingw*) 9350 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9351 ;; 9352esac 9353 9354# If we're using GNU nm, then use its standard symbol codes. 9355case `$NM -V 2>&1` in 9356*GNU* | *'with BFD'*) 9357 symcode='[ABCDGIRSTW]' ;; 9358esac 9359 9360# Try without a prefix undercore, then with it. 9361for ac_symprfx in "" "_"; do 9362 9363 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9364 symxfrm="\\1 $ac_symprfx\\2 \\2" 9365 9366 # Write the raw and C identifiers. 9367 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9368 9369 # Check to see that the pipe works correctly. 9370 pipe_works=no 9371 9372 rm -f conftest* 9373 cat > conftest.$ac_ext <<EOF 9374#ifdef __cplusplus 9375extern "C" { 9376#endif 9377char nm_test_var; 9378void nm_test_func(){} 9379#ifdef __cplusplus 9380} 9381#endif 9382int main(){nm_test_var='a';nm_test_func();return(0);} 9383EOF 9384 9385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9386 (eval $ac_compile) 2>&5 9387 ac_status=$? 9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9389 (exit $ac_status); }; then 9390 # Now try to grab the symbols. 9391 nlist=conftest.nm 9392 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 9393 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 9394 ac_status=$? 9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9396 (exit $ac_status); } && test -s "$nlist"; then 9397 # Try sorting and uniquifying the output. 9398 if sort "$nlist" | uniq > "$nlist"T; then 9399 mv -f "$nlist"T "$nlist" 9400 else 9401 rm -f "$nlist"T 9402 fi 9403 9404 # Make sure that we snagged all the symbols we need. 9405 if grep ' nm_test_var$' "$nlist" >/dev/null; then 9406 if grep ' nm_test_func$' "$nlist" >/dev/null; then 9407 cat <<EOF > conftest.$ac_ext 9408#ifdef __cplusplus 9409extern "C" { 9410#endif 9411 9412EOF 9413 # Now generate the symbol file. 9414 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 9415 9416 cat <<EOF >> conftest.$ac_ext 9417#if defined (__STDC__) && __STDC__ 9418# define lt_ptr_t void * 9419#else 9420# define lt_ptr_t char * 9421# define const 9422#endif 9423 9424/* The mapping between symbol names and symbols. */ 9425const struct { 9426 const char *name; 9427 lt_ptr_t address; 9428} 9429lt_preloaded_symbols[] = 9430{ 9431EOF 9432 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 9433 cat <<\EOF >> conftest.$ac_ext 9434 {0, (lt_ptr_t) 0} 9435}; 9436 9437#ifdef __cplusplus 9438} 9439#endif 9440EOF 9441 # Now try linking the two files. 9442 mv conftest.$ac_objext conftstm.$ac_objext 9443 lt_save_LIBS="$LIBS" 9444 lt_save_CFLAGS="$CFLAGS" 9445 LIBS="conftstm.$ac_objext" 9446 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9448 (eval $ac_link) 2>&5 9449 ac_status=$? 9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9451 (exit $ac_status); } && test -s conftest${ac_exeext}; then 9452 pipe_works=yes 9453 fi 9454 LIBS="$lt_save_LIBS" 9455 CFLAGS="$lt_save_CFLAGS" 9456 else 9457 echo "cannot find nm_test_func in $nlist" >&5 9458 fi 9459 else 9460 echo "cannot find nm_test_var in $nlist" >&5 9461 fi 9462 else 9463 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9464 fi 9465 else 9466 echo "$progname: failed program was:" >&5 9467 cat conftest.$ac_ext >&5 9468 fi 9469 rm -f conftest* conftst* 9470 9471 # Do not use the global_symbol_pipe unless it works. 9472 if test "$pipe_works" = yes; then 9473 break 9474 else 9475 lt_cv_sys_global_symbol_pipe= 9476 fi 9477done 9478 9479fi 9480 9481if test -z "$lt_cv_sys_global_symbol_pipe"; then 9482 lt_cv_sys_global_symbol_to_cdecl= 9483fi 9484if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9485 { echo "$as_me:$LINENO: result: failed" >&5 9486echo "${ECHO_T}failed" >&6; } 9487else 9488 { echo "$as_me:$LINENO: result: ok" >&5 9489echo "${ECHO_T}ok" >&6; } 9490fi 9491 9492 9493{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 9494echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; } 9495if test "${libltdl_cv_preloaded_symbols+set}" = set; then 9496 echo $ECHO_N "(cached) $ECHO_C" >&6 9497else 9498 if test -n "$lt_cv_sys_global_symbol_pipe"; then 9499 libltdl_cv_preloaded_symbols=yes 9500 else 9501 libltdl_cv_preloaded_symbols=no 9502 fi 9503 9504fi 9505{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 9506echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; } 9507if test x"$libltdl_cv_preloaded_symbols" = xyes; then 9508 9509cat >>confdefs.h <<\_ACEOF 9510#define HAVE_PRELOADED_SYMBOLS 1 9511_ACEOF 9512 9513fi 9514 9515LIBADD_DL= 9516 9517ac_ext=c 9518ac_cpp='$CPP $CPPFLAGS' 9519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9521ac_compiler_gnu=$ac_cv_c_compiler_gnu 9522 9523 9524{ echo "$as_me:$LINENO: checking for shl_load" >&5 9525echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9526if test "${ac_cv_func_shl_load+set}" = set; then 9527 echo $ECHO_N "(cached) $ECHO_C" >&6 9528else 9529 cat >conftest.$ac_ext <<_ACEOF 9530/* confdefs.h. */ 9531_ACEOF 9532cat confdefs.h >>conftest.$ac_ext 9533cat >>conftest.$ac_ext <<_ACEOF 9534/* end confdefs.h. */ 9535/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9536 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9537#define shl_load innocuous_shl_load 9538 9539/* System header to define __stub macros and hopefully few prototypes, 9540 which can conflict with char shl_load (); below. 9541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9542 <limits.h> exists even on freestanding compilers. */ 9543 9544#ifdef __STDC__ 9545# include <limits.h> 9546#else 9547# include <assert.h> 9548#endif 9549 9550#undef shl_load 9551 9552/* Override any GCC internal prototype to avoid an error. 9553 Use char because int might match the return type of a GCC 9554 builtin and then its argument prototype would still apply. */ 9555#ifdef __cplusplus 9556extern "C" 9557#endif 9558char shl_load (); 9559/* The GNU C library defines this for functions which it implements 9560 to always fail with ENOSYS. Some functions are actually named 9561 something starting with __ and the normal name is an alias. */ 9562#if defined __stub_shl_load || defined __stub___shl_load 9563choke me 9564#endif 9565 9566int 9567main () 9568{ 9569return shl_load (); 9570 ; 9571 return 0; 9572} 9573_ACEOF 9574rm -f conftest.$ac_objext conftest$ac_exeext 9575if { (ac_try="$ac_link" 9576case "(($ac_try" in 9577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9578 *) ac_try_echo=$ac_try;; 9579esac 9580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9581 (eval "$ac_link") 2>conftest.er1 9582 ac_status=$? 9583 grep -v '^ *+' conftest.er1 >conftest.err 9584 rm -f conftest.er1 9585 cat conftest.err >&5 9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9587 (exit $ac_status); } && 9588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9589 { (case "(($ac_try" in 9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9591 *) ac_try_echo=$ac_try;; 9592esac 9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9594 (eval "$ac_try") 2>&5 9595 ac_status=$? 9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9597 (exit $ac_status); }; } && 9598 { ac_try='test -s conftest$ac_exeext' 9599 { (case "(($ac_try" in 9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9601 *) ac_try_echo=$ac_try;; 9602esac 9603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9604 (eval "$ac_try") 2>&5 9605 ac_status=$? 9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9607 (exit $ac_status); }; }; then 9608 ac_cv_func_shl_load=yes 9609else 9610 echo "$as_me: failed program was:" >&5 9611sed 's/^/| /' conftest.$ac_ext >&5 9612 9613 ac_cv_func_shl_load=no 9614fi 9615 9616rm -f core conftest.err conftest.$ac_objext \ 9617 conftest$ac_exeext conftest.$ac_ext 9618fi 9619{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9620echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9621if test $ac_cv_func_shl_load = yes; then 9622 9623cat >>confdefs.h <<\_ACEOF 9624#define HAVE_SHL_LOAD 1 9625_ACEOF 9626 9627else 9628 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9629echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9630if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9631 echo $ECHO_N "(cached) $ECHO_C" >&6 9632else 9633 ac_check_lib_save_LIBS=$LIBS 9634LIBS="-ldld $LIBS" 9635cat >conftest.$ac_ext <<_ACEOF 9636/* confdefs.h. */ 9637_ACEOF 9638cat confdefs.h >>conftest.$ac_ext 9639cat >>conftest.$ac_ext <<_ACEOF 9640/* end confdefs.h. */ 9641 9642/* Override any GCC internal prototype to avoid an error. 9643 Use char because int might match the return type of a GCC 9644 builtin and then its argument prototype would still apply. */ 9645#ifdef __cplusplus 9646extern "C" 9647#endif 9648char shl_load (); 9649int 9650main () 9651{ 9652return shl_load (); 9653 ; 9654 return 0; 9655} 9656_ACEOF 9657rm -f conftest.$ac_objext conftest$ac_exeext 9658if { (ac_try="$ac_link" 9659case "(($ac_try" in 9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9661 *) ac_try_echo=$ac_try;; 9662esac 9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9664 (eval "$ac_link") 2>conftest.er1 9665 ac_status=$? 9666 grep -v '^ *+' conftest.er1 >conftest.err 9667 rm -f conftest.er1 9668 cat conftest.err >&5 9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9670 (exit $ac_status); } && 9671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9672 { (case "(($ac_try" in 9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9674 *) ac_try_echo=$ac_try;; 9675esac 9676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9677 (eval "$ac_try") 2>&5 9678 ac_status=$? 9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9680 (exit $ac_status); }; } && 9681 { ac_try='test -s conftest$ac_exeext' 9682 { (case "(($ac_try" in 9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9684 *) ac_try_echo=$ac_try;; 9685esac 9686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9687 (eval "$ac_try") 2>&5 9688 ac_status=$? 9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9690 (exit $ac_status); }; }; then 9691 ac_cv_lib_dld_shl_load=yes 9692else 9693 echo "$as_me: failed program was:" >&5 9694sed 's/^/| /' conftest.$ac_ext >&5 9695 9696 ac_cv_lib_dld_shl_load=no 9697fi 9698 9699rm -f core conftest.err conftest.$ac_objext \ 9700 conftest$ac_exeext conftest.$ac_ext 9701LIBS=$ac_check_lib_save_LIBS 9702fi 9703{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9704echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9705if test $ac_cv_lib_dld_shl_load = yes; then 9706 9707cat >>confdefs.h <<\_ACEOF 9708#define HAVE_SHL_LOAD 1 9709_ACEOF 9710 9711 LIBADD_DL="$LIBADD_DL -ldld" 9712else 9713 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9714echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9715if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9716 echo $ECHO_N "(cached) $ECHO_C" >&6 9717else 9718 ac_check_lib_save_LIBS=$LIBS 9719LIBS="-ldl $LIBS" 9720cat >conftest.$ac_ext <<_ACEOF 9721/* confdefs.h. */ 9722_ACEOF 9723cat confdefs.h >>conftest.$ac_ext 9724cat >>conftest.$ac_ext <<_ACEOF 9725/* end confdefs.h. */ 9726 9727/* Override any GCC internal prototype to avoid an error. 9728 Use char because int might match the return type of a GCC 9729 builtin and then its argument prototype would still apply. */ 9730#ifdef __cplusplus 9731extern "C" 9732#endif 9733char dlopen (); 9734int 9735main () 9736{ 9737return dlopen (); 9738 ; 9739 return 0; 9740} 9741_ACEOF 9742rm -f conftest.$ac_objext conftest$ac_exeext 9743if { (ac_try="$ac_link" 9744case "(($ac_try" in 9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9746 *) ac_try_echo=$ac_try;; 9747esac 9748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9749 (eval "$ac_link") 2>conftest.er1 9750 ac_status=$? 9751 grep -v '^ *+' conftest.er1 >conftest.err 9752 rm -f conftest.er1 9753 cat conftest.err >&5 9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9755 (exit $ac_status); } && 9756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9757 { (case "(($ac_try" in 9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9759 *) ac_try_echo=$ac_try;; 9760esac 9761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9762 (eval "$ac_try") 2>&5 9763 ac_status=$? 9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9765 (exit $ac_status); }; } && 9766 { ac_try='test -s conftest$ac_exeext' 9767 { (case "(($ac_try" in 9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9769 *) ac_try_echo=$ac_try;; 9770esac 9771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9772 (eval "$ac_try") 2>&5 9773 ac_status=$? 9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9775 (exit $ac_status); }; }; then 9776 ac_cv_lib_dl_dlopen=yes 9777else 9778 echo "$as_me: failed program was:" >&5 9779sed 's/^/| /' conftest.$ac_ext >&5 9780 9781 ac_cv_lib_dl_dlopen=no 9782fi 9783 9784rm -f core conftest.err conftest.$ac_objext \ 9785 conftest$ac_exeext conftest.$ac_ext 9786LIBS=$ac_check_lib_save_LIBS 9787fi 9788{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9789echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9790if test $ac_cv_lib_dl_dlopen = yes; then 9791 9792cat >>confdefs.h <<\_ACEOF 9793#define HAVE_LIBDL 1 9794_ACEOF 9795 9796 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" 9797else 9798 cat >conftest.$ac_ext <<_ACEOF 9799/* confdefs.h. */ 9800_ACEOF 9801cat confdefs.h >>conftest.$ac_ext 9802cat >>conftest.$ac_ext <<_ACEOF 9803/* end confdefs.h. */ 9804#if HAVE_DLFCN_H 9805# include <dlfcn.h> 9806#endif 9807 9808int 9809main () 9810{ 9811dlopen(0, 0); 9812 ; 9813 return 0; 9814} 9815_ACEOF 9816rm -f conftest.$ac_objext conftest$ac_exeext 9817if { (ac_try="$ac_link" 9818case "(($ac_try" in 9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9820 *) ac_try_echo=$ac_try;; 9821esac 9822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9823 (eval "$ac_link") 2>conftest.er1 9824 ac_status=$? 9825 grep -v '^ *+' conftest.er1 >conftest.err 9826 rm -f conftest.er1 9827 cat conftest.err >&5 9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9829 (exit $ac_status); } && 9830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9831 { (case "(($ac_try" in 9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9833 *) ac_try_echo=$ac_try;; 9834esac 9835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9836 (eval "$ac_try") 2>&5 9837 ac_status=$? 9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9839 (exit $ac_status); }; } && 9840 { ac_try='test -s conftest$ac_exeext' 9841 { (case "(($ac_try" in 9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9843 *) ac_try_echo=$ac_try;; 9844esac 9845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9846 (eval "$ac_try") 2>&5 9847 ac_status=$? 9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9849 (exit $ac_status); }; }; then 9850 9851cat >>confdefs.h <<\_ACEOF 9852#define HAVE_LIBDL 1 9853_ACEOF 9854 libltdl_cv_func_dlopen="yes" 9855else 9856 echo "$as_me: failed program was:" >&5 9857sed 's/^/| /' conftest.$ac_ext >&5 9858 9859 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9860echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9861if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9862 echo $ECHO_N "(cached) $ECHO_C" >&6 9863else 9864 ac_check_lib_save_LIBS=$LIBS 9865LIBS="-lsvld $LIBS" 9866cat >conftest.$ac_ext <<_ACEOF 9867/* confdefs.h. */ 9868_ACEOF 9869cat confdefs.h >>conftest.$ac_ext 9870cat >>conftest.$ac_ext <<_ACEOF 9871/* end confdefs.h. */ 9872 9873/* Override any GCC internal prototype to avoid an error. 9874 Use char because int might match the return type of a GCC 9875 builtin and then its argument prototype would still apply. */ 9876#ifdef __cplusplus 9877extern "C" 9878#endif 9879char dlopen (); 9880int 9881main () 9882{ 9883return dlopen (); 9884 ; 9885 return 0; 9886} 9887_ACEOF 9888rm -f conftest.$ac_objext conftest$ac_exeext 9889if { (ac_try="$ac_link" 9890case "(($ac_try" in 9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9892 *) ac_try_echo=$ac_try;; 9893esac 9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9895 (eval "$ac_link") 2>conftest.er1 9896 ac_status=$? 9897 grep -v '^ *+' conftest.er1 >conftest.err 9898 rm -f conftest.er1 9899 cat conftest.err >&5 9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9901 (exit $ac_status); } && 9902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9903 { (case "(($ac_try" in 9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9905 *) ac_try_echo=$ac_try;; 9906esac 9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9908 (eval "$ac_try") 2>&5 9909 ac_status=$? 9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9911 (exit $ac_status); }; } && 9912 { ac_try='test -s conftest$ac_exeext' 9913 { (case "(($ac_try" in 9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9915 *) ac_try_echo=$ac_try;; 9916esac 9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9918 (eval "$ac_try") 2>&5 9919 ac_status=$? 9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9921 (exit $ac_status); }; }; then 9922 ac_cv_lib_svld_dlopen=yes 9923else 9924 echo "$as_me: failed program was:" >&5 9925sed 's/^/| /' conftest.$ac_ext >&5 9926 9927 ac_cv_lib_svld_dlopen=no 9928fi 9929 9930rm -f core conftest.err conftest.$ac_objext \ 9931 conftest$ac_exeext conftest.$ac_ext 9932LIBS=$ac_check_lib_save_LIBS 9933fi 9934{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9935echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9936if test $ac_cv_lib_svld_dlopen = yes; then 9937 9938cat >>confdefs.h <<\_ACEOF 9939#define HAVE_LIBDL 1 9940_ACEOF 9941 9942 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" 9943else 9944 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9945echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9946if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9947 echo $ECHO_N "(cached) $ECHO_C" >&6 9948else 9949 ac_check_lib_save_LIBS=$LIBS 9950LIBS="-ldld $LIBS" 9951cat >conftest.$ac_ext <<_ACEOF 9952/* confdefs.h. */ 9953_ACEOF 9954cat confdefs.h >>conftest.$ac_ext 9955cat >>conftest.$ac_ext <<_ACEOF 9956/* end confdefs.h. */ 9957 9958/* Override any GCC internal prototype to avoid an error. 9959 Use char because int might match the return type of a GCC 9960 builtin and then its argument prototype would still apply. */ 9961#ifdef __cplusplus 9962extern "C" 9963#endif 9964char dld_link (); 9965int 9966main () 9967{ 9968return dld_link (); 9969 ; 9970 return 0; 9971} 9972_ACEOF 9973rm -f conftest.$ac_objext conftest$ac_exeext 9974if { (ac_try="$ac_link" 9975case "(($ac_try" in 9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9977 *) ac_try_echo=$ac_try;; 9978esac 9979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9980 (eval "$ac_link") 2>conftest.er1 9981 ac_status=$? 9982 grep -v '^ *+' conftest.er1 >conftest.err 9983 rm -f conftest.er1 9984 cat conftest.err >&5 9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9986 (exit $ac_status); } && 9987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9988 { (case "(($ac_try" in 9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9990 *) ac_try_echo=$ac_try;; 9991esac 9992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9993 (eval "$ac_try") 2>&5 9994 ac_status=$? 9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9996 (exit $ac_status); }; } && 9997 { ac_try='test -s conftest$ac_exeext' 9998 { (case "(($ac_try" in 9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10000 *) ac_try_echo=$ac_try;; 10001esac 10002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10003 (eval "$ac_try") 2>&5 10004 ac_status=$? 10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10006 (exit $ac_status); }; }; then 10007 ac_cv_lib_dld_dld_link=yes 10008else 10009 echo "$as_me: failed program was:" >&5 10010sed 's/^/| /' conftest.$ac_ext >&5 10011 10012 ac_cv_lib_dld_dld_link=no 10013fi 10014 10015rm -f core conftest.err conftest.$ac_objext \ 10016 conftest$ac_exeext conftest.$ac_ext 10017LIBS=$ac_check_lib_save_LIBS 10018fi 10019{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10020echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10021if test $ac_cv_lib_dld_dld_link = yes; then 10022 10023cat >>confdefs.h <<\_ACEOF 10024#define HAVE_DLD 1 10025_ACEOF 10026 10027 LIBADD_DL="$LIBADD_DL -ldld" 10028else 10029 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 10030echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; } 10031if test "${ac_cv_func__dyld_func_lookup+set}" = set; then 10032 echo $ECHO_N "(cached) $ECHO_C" >&6 10033else 10034 cat >conftest.$ac_ext <<_ACEOF 10035/* confdefs.h. */ 10036_ACEOF 10037cat confdefs.h >>conftest.$ac_ext 10038cat >>conftest.$ac_ext <<_ACEOF 10039/* end confdefs.h. */ 10040/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. 10041 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10042#define _dyld_func_lookup innocuous__dyld_func_lookup 10043 10044/* System header to define __stub macros and hopefully few prototypes, 10045 which can conflict with char _dyld_func_lookup (); below. 10046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10047 <limits.h> exists even on freestanding compilers. */ 10048 10049#ifdef __STDC__ 10050# include <limits.h> 10051#else 10052# include <assert.h> 10053#endif 10054 10055#undef _dyld_func_lookup 10056 10057/* Override any GCC internal prototype to avoid an error. 10058 Use char because int might match the return type of a GCC 10059 builtin and then its argument prototype would still apply. */ 10060#ifdef __cplusplus 10061extern "C" 10062#endif 10063char _dyld_func_lookup (); 10064/* The GNU C library defines this for functions which it implements 10065 to always fail with ENOSYS. Some functions are actually named 10066 something starting with __ and the normal name is an alias. */ 10067#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup 10068choke me 10069#endif 10070 10071int 10072main () 10073{ 10074return _dyld_func_lookup (); 10075 ; 10076 return 0; 10077} 10078_ACEOF 10079rm -f conftest.$ac_objext conftest$ac_exeext 10080if { (ac_try="$ac_link" 10081case "(($ac_try" in 10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10083 *) ac_try_echo=$ac_try;; 10084esac 10085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10086 (eval "$ac_link") 2>conftest.er1 10087 ac_status=$? 10088 grep -v '^ *+' conftest.er1 >conftest.err 10089 rm -f conftest.er1 10090 cat conftest.err >&5 10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10092 (exit $ac_status); } && 10093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10094 { (case "(($ac_try" in 10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10096 *) ac_try_echo=$ac_try;; 10097esac 10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10099 (eval "$ac_try") 2>&5 10100 ac_status=$? 10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10102 (exit $ac_status); }; } && 10103 { ac_try='test -s conftest$ac_exeext' 10104 { (case "(($ac_try" in 10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10106 *) ac_try_echo=$ac_try;; 10107esac 10108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10109 (eval "$ac_try") 2>&5 10110 ac_status=$? 10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10112 (exit $ac_status); }; }; then 10113 ac_cv_func__dyld_func_lookup=yes 10114else 10115 echo "$as_me: failed program was:" >&5 10116sed 's/^/| /' conftest.$ac_ext >&5 10117 10118 ac_cv_func__dyld_func_lookup=no 10119fi 10120 10121rm -f core conftest.err conftest.$ac_objext \ 10122 conftest$ac_exeext conftest.$ac_ext 10123fi 10124{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 10125echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; } 10126if test $ac_cv_func__dyld_func_lookup = yes; then 10127 10128cat >>confdefs.h <<\_ACEOF 10129#define HAVE_DYLD 1 10130_ACEOF 10131 10132fi 10133 10134 10135fi 10136 10137 10138fi 10139 10140 10141fi 10142 10143rm -f core conftest.err conftest.$ac_objext \ 10144 conftest$ac_exeext conftest.$ac_ext 10145 10146fi 10147 10148 10149fi 10150 10151 10152fi 10153 10154 10155if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 10156then 10157 lt_save_LIBS="$LIBS" 10158 LIBS="$LIBS $LIBADD_DL" 10159 10160for ac_func in dlerror 10161do 10162as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10163{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10164echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10165if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10166 echo $ECHO_N "(cached) $ECHO_C" >&6 10167else 10168 cat >conftest.$ac_ext <<_ACEOF 10169/* confdefs.h. */ 10170_ACEOF 10171cat confdefs.h >>conftest.$ac_ext 10172cat >>conftest.$ac_ext <<_ACEOF 10173/* end confdefs.h. */ 10174/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10175 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10176#define $ac_func innocuous_$ac_func 10177 10178/* System header to define __stub macros and hopefully few prototypes, 10179 which can conflict with char $ac_func (); below. 10180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10181 <limits.h> exists even on freestanding compilers. */ 10182 10183#ifdef __STDC__ 10184# include <limits.h> 10185#else 10186# include <assert.h> 10187#endif 10188 10189#undef $ac_func 10190 10191/* Override any GCC internal prototype to avoid an error. 10192 Use char because int might match the return type of a GCC 10193 builtin and then its argument prototype would still apply. */ 10194#ifdef __cplusplus 10195extern "C" 10196#endif 10197char $ac_func (); 10198/* The GNU C library defines this for functions which it implements 10199 to always fail with ENOSYS. Some functions are actually named 10200 something starting with __ and the normal name is an alias. */ 10201#if defined __stub_$ac_func || defined __stub___$ac_func 10202choke me 10203#endif 10204 10205int 10206main () 10207{ 10208return $ac_func (); 10209 ; 10210 return 0; 10211} 10212_ACEOF 10213rm -f conftest.$ac_objext conftest$ac_exeext 10214if { (ac_try="$ac_link" 10215case "(($ac_try" in 10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10217 *) ac_try_echo=$ac_try;; 10218esac 10219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10220 (eval "$ac_link") 2>conftest.er1 10221 ac_status=$? 10222 grep -v '^ *+' conftest.er1 >conftest.err 10223 rm -f conftest.er1 10224 cat conftest.err >&5 10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10226 (exit $ac_status); } && 10227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10228 { (case "(($ac_try" in 10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10230 *) ac_try_echo=$ac_try;; 10231esac 10232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10233 (eval "$ac_try") 2>&5 10234 ac_status=$? 10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10236 (exit $ac_status); }; } && 10237 { ac_try='test -s conftest$ac_exeext' 10238 { (case "(($ac_try" in 10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10240 *) ac_try_echo=$ac_try;; 10241esac 10242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10243 (eval "$ac_try") 2>&5 10244 ac_status=$? 10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10246 (exit $ac_status); }; }; then 10247 eval "$as_ac_var=yes" 10248else 10249 echo "$as_me: failed program was:" >&5 10250sed 's/^/| /' conftest.$ac_ext >&5 10251 10252 eval "$as_ac_var=no" 10253fi 10254 10255rm -f core conftest.err conftest.$ac_objext \ 10256 conftest$ac_exeext conftest.$ac_ext 10257fi 10258ac_res=`eval echo '${'$as_ac_var'}'` 10259 { echo "$as_me:$LINENO: result: $ac_res" >&5 10260echo "${ECHO_T}$ac_res" >&6; } 10261if test `eval echo '${'$as_ac_var'}'` = yes; then 10262 cat >>confdefs.h <<_ACEOF 10263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10264_ACEOF 10265 10266fi 10267done 10268 10269 LIBS="$lt_save_LIBS" 10270fi 10271ac_ext=c 10272ac_cpp='$CPP $CPPFLAGS' 10273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10275ac_compiler_gnu=$ac_cv_c_compiler_gnu 10276 10277 10278 10279{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 10280echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; } 10281if test "${ac_cv_sys_symbol_underscore+set}" = set; then 10282 echo $ECHO_N "(cached) $ECHO_C" >&6 10283else 10284 ac_cv_sys_symbol_underscore=no 10285 cat > conftest.$ac_ext <<EOF 10286void nm_test_func(){} 10287int main(){nm_test_func;return 0;} 10288EOF 10289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10290 (eval $ac_compile) 2>&5 10291 ac_status=$? 10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10293 (exit $ac_status); }; then 10294 # Now try to grab the symbols. 10295 ac_nlist=conftest.nm 10296 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 10297 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 10298 ac_status=$? 10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10300 (exit $ac_status); } && test -s "$ac_nlist"; then 10301 # See whether the symbols have a leading underscore. 10302 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 10303 ac_cv_sys_symbol_underscore=yes 10304 else 10305 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 10306 : 10307 else 10308 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 10309 fi 10310 fi 10311 else 10312 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 10313 fi 10314 else 10315 echo "configure: failed program was:" >&5 10316 cat conftest.c >&5 10317 fi 10318 rm -rf conftest* 10319 10320fi 10321{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 10322echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; } 10323 10324 10325if test x"$ac_cv_sys_symbol_underscore" = xyes; then 10326 if test x"$libltdl_cv_func_dlopen" = xyes || 10327 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 10328 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 10329echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; } 10330if test "${libltdl_cv_need_uscore+set}" = set; then 10331 echo $ECHO_N "(cached) $ECHO_C" >&6 10332else 10333 libltdl_cv_need_uscore=unknown 10334 save_LIBS="$LIBS" 10335 LIBS="$LIBS $LIBADD_DL" 10336 if test "$cross_compiling" = yes; then : 10337 libltdl_cv_need_uscore=cross 10338else 10339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10340 lt_status=$lt_dlunknown 10341 cat > conftest.$ac_ext <<EOF 10342#line 10342 "configure" 10343#include "confdefs.h" 10344 10345#if HAVE_DLFCN_H 10346#include <dlfcn.h> 10347#endif 10348 10349#include <stdio.h> 10350 10351#ifdef RTLD_GLOBAL 10352# define LT_DLGLOBAL RTLD_GLOBAL 10353#else 10354# ifdef DL_GLOBAL 10355# define LT_DLGLOBAL DL_GLOBAL 10356# else 10357# define LT_DLGLOBAL 0 10358# endif 10359#endif 10360 10361/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10362 find out it does not work in some platform. */ 10363#ifndef LT_DLLAZY_OR_NOW 10364# ifdef RTLD_LAZY 10365# define LT_DLLAZY_OR_NOW RTLD_LAZY 10366# else 10367# ifdef DL_LAZY 10368# define LT_DLLAZY_OR_NOW DL_LAZY 10369# else 10370# ifdef RTLD_NOW 10371# define LT_DLLAZY_OR_NOW RTLD_NOW 10372# else 10373# ifdef DL_NOW 10374# define LT_DLLAZY_OR_NOW DL_NOW 10375# else 10376# define LT_DLLAZY_OR_NOW 0 10377# endif 10378# endif 10379# endif 10380# endif 10381#endif 10382 10383#ifdef __cplusplus 10384extern "C" void exit (int); 10385#endif 10386 10387void fnord() { int i=42;} 10388int main () 10389{ 10390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10391 int status = $lt_dlunknown; 10392 10393 if (self) 10394 { 10395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10396 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10397 /* dlclose (self); */ 10398 } 10399 else 10400 puts (dlerror ()); 10401 10402 exit (status); 10403} 10404EOF 10405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10406 (eval $ac_link) 2>&5 10407 ac_status=$? 10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10409 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10410 (./conftest; exit; ) >&5 2>/dev/null 10411 lt_status=$? 10412 case x$lt_status in 10413 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 10414 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 10415 x$lt_dlunknown|x*) ;; 10416 esac 10417 else : 10418 # compilation failed 10419 10420 fi 10421fi 10422rm -fr conftest* 10423 10424 LIBS="$save_LIBS" 10425 10426fi 10427{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 10428echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; } 10429 fi 10430fi 10431 10432if test x"$libltdl_cv_need_uscore" = xyes; then 10433 10434cat >>confdefs.h <<\_ACEOF 10435#define NEED_USCORE 1 10436_ACEOF 10437 10438fi 10439 10440 10441{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 10442echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; } 10443if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then 10444 echo $ECHO_N "(cached) $ECHO_C" >&6 10445else 10446 # PORTME does your system automatically load deplibs for dlopen? 10447 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 10448 # For now, we just catch OSes we know something about -- in the 10449 # future, we'll try test this programmatically. 10450 libltdl_cv_sys_dlopen_deplibs=unknown 10451 case "$host_os" in 10452 aix3*|aix4.1.*|aix4.2.*) 10453 # Unknown whether this is true for these versions of AIX, but 10454 # we want this `case' here to explicitly catch those versions. 10455 libltdl_cv_sys_dlopen_deplibs=unknown 10456 ;; 10457 aix[45]*) 10458 libltdl_cv_sys_dlopen_deplibs=yes 10459 ;; 10460 darwin*) 10461 # Assuming the user has installed a libdl from somewhere, this is true 10462 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 10463 libltdl_cv_sys_dlopen_deplibs=yes 10464 ;; 10465 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) 10466 # GNU and its variants, using gnu ld.so (Glibc) 10467 libltdl_cv_sys_dlopen_deplibs=yes 10468 ;; 10469 hpux10*|hpux11*) 10470 libltdl_cv_sys_dlopen_deplibs=yes 10471 ;; 10472 interix*) 10473 libltdl_cv_sys_dlopen_deplibs=yes 10474 ;; 10475 irix[12345]*|irix6.[01]*) 10476 # Catch all versions of IRIX before 6.2, and indicate that we don't 10477 # know how it worked for any of those versions. 10478 libltdl_cv_sys_dlopen_deplibs=unknown 10479 ;; 10480 irix*) 10481 # The case above catches anything before 6.2, and it's known that 10482 # at 6.2 and later dlopen does load deplibs. 10483 libltdl_cv_sys_dlopen_deplibs=yes 10484 ;; 10485 netbsd*) 10486 libltdl_cv_sys_dlopen_deplibs=yes 10487 ;; 10488 openbsd*) 10489 libltdl_cv_sys_dlopen_deplibs=yes 10490 ;; 10491 osf[1234]*) 10492 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 10493 # it did *not* use an RPATH in a shared library to find objects the 10494 # library depends on, so we explicitly say `no'. 10495 libltdl_cv_sys_dlopen_deplibs=no 10496 ;; 10497 osf5.0|osf5.0a|osf5.1) 10498 # dlopen *does* load deplibs and with the right loader patch applied 10499 # it even uses RPATH in a shared library to search for shared objects 10500 # that the library depends on, but there's no easy way to know if that 10501 # patch is installed. Since this is the case, all we can really 10502 # say is unknown -- it depends on the patch being installed. If 10503 # it is, this changes to `yes'. Without it, it would be `no'. 10504 libltdl_cv_sys_dlopen_deplibs=unknown 10505 ;; 10506 osf*) 10507 # the two cases above should catch all versions of osf <= 5.1. Read 10508 # the comments above for what we know about them. 10509 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 10510 # is used to find them so we can finally say `yes'. 10511 libltdl_cv_sys_dlopen_deplibs=yes 10512 ;; 10513 solaris*) 10514 libltdl_cv_sys_dlopen_deplibs=yes 10515 ;; 10516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10517 libltdl_cv_sys_dlopen_deplibs=yes 10518 ;; 10519 esac 10520 10521fi 10522{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 10523echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; } 10524if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then 10525 10526cat >>confdefs.h <<\_ACEOF 10527#define LTDL_DLOPEN_DEPLIBS 1 10528_ACEOF 10529 10530fi 10531 10532 10533for ac_header in argz.h 10534do 10535as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10537 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10540 echo $ECHO_N "(cached) $ECHO_C" >&6 10541fi 10542ac_res=`eval echo '${'$as_ac_Header'}'` 10543 { echo "$as_me:$LINENO: result: $ac_res" >&5 10544echo "${ECHO_T}$ac_res" >&6; } 10545else 10546 # Is the header compilable? 10547{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10549cat >conftest.$ac_ext <<_ACEOF 10550/* confdefs.h. */ 10551_ACEOF 10552cat confdefs.h >>conftest.$ac_ext 10553cat >>conftest.$ac_ext <<_ACEOF 10554/* end confdefs.h. */ 10555$ac_includes_default 10556#include <$ac_header> 10557_ACEOF 10558rm -f conftest.$ac_objext 10559if { (ac_try="$ac_compile" 10560case "(($ac_try" in 10561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10562 *) ac_try_echo=$ac_try;; 10563esac 10564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10565 (eval "$ac_compile") 2>conftest.er1 10566 ac_status=$? 10567 grep -v '^ *+' conftest.er1 >conftest.err 10568 rm -f conftest.er1 10569 cat conftest.err >&5 10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10571 (exit $ac_status); } && 10572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10573 { (case "(($ac_try" in 10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10575 *) ac_try_echo=$ac_try;; 10576esac 10577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10578 (eval "$ac_try") 2>&5 10579 ac_status=$? 10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10581 (exit $ac_status); }; } && 10582 { ac_try='test -s conftest.$ac_objext' 10583 { (case "(($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_try") 2>&5 10589 ac_status=$? 10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10591 (exit $ac_status); }; }; then 10592 ac_header_compiler=yes 10593else 10594 echo "$as_me: failed program was:" >&5 10595sed 's/^/| /' conftest.$ac_ext >&5 10596 10597 ac_header_compiler=no 10598fi 10599 10600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10601{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10602echo "${ECHO_T}$ac_header_compiler" >&6; } 10603 10604# Is the header present? 10605{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 10606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 10607cat >conftest.$ac_ext <<_ACEOF 10608/* confdefs.h. */ 10609_ACEOF 10610cat confdefs.h >>conftest.$ac_ext 10611cat >>conftest.$ac_ext <<_ACEOF 10612/* end confdefs.h. */ 10613#include <$ac_header> 10614_ACEOF 10615if { (ac_try="$ac_cpp conftest.$ac_ext" 10616case "(($ac_try" in 10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10618 *) ac_try_echo=$ac_try;; 10619esac 10620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 10622 ac_status=$? 10623 grep -v '^ *+' conftest.er1 >conftest.err 10624 rm -f conftest.er1 10625 cat conftest.err >&5 10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10627 (exit $ac_status); } >/dev/null; then 10628 if test -s conftest.err; then 10629 ac_cpp_err=$ac_c_preproc_warn_flag 10630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10631 else 10632 ac_cpp_err= 10633 fi 10634else 10635 ac_cpp_err=yes 10636fi 10637if test -z "$ac_cpp_err"; then 10638 ac_header_preproc=yes 10639else 10640 echo "$as_me: failed program was:" >&5 10641sed 's/^/| /' conftest.$ac_ext >&5 10642 10643 ac_header_preproc=no 10644fi 10645 10646rm -f conftest.err conftest.$ac_ext 10647{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10648echo "${ECHO_T}$ac_header_preproc" >&6; } 10649 10650# So? What about this header? 10651case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10652 yes:no: ) 10653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10654echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10656echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10657 ac_header_preproc=yes 10658 ;; 10659 no:yes:* ) 10660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10661echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10663echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10665echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10667echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10669echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10671echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10672 ( cat <<\_ASBOX 10673## ------------------------------ ## 10674## Report this to bugs@yourdomain ## 10675## ------------------------------ ## 10676_ASBOX 10677 ) | sed "s/^/$as_me: WARNING: /" >&2 10678 ;; 10679esac 10680{ echo "$as_me:$LINENO: checking for $ac_header" >&5 10681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10683 echo $ECHO_N "(cached) $ECHO_C" >&6 10684else 10685 eval "$as_ac_Header=\$ac_header_preproc" 10686fi 10687ac_res=`eval echo '${'$as_ac_Header'}'` 10688 { echo "$as_me:$LINENO: result: $ac_res" >&5 10689echo "${ECHO_T}$ac_res" >&6; } 10690 10691fi 10692if test `eval echo '${'$as_ac_Header'}'` = yes; then 10693 cat >>confdefs.h <<_ACEOF 10694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10695_ACEOF 10696 10697fi 10698 10699done 10700 10701 10702{ echo "$as_me:$LINENO: checking for error_t" >&5 10703echo $ECHO_N "checking for error_t... $ECHO_C" >&6; } 10704if test "${ac_cv_type_error_t+set}" = set; then 10705 echo $ECHO_N "(cached) $ECHO_C" >&6 10706else 10707 cat >conftest.$ac_ext <<_ACEOF 10708/* confdefs.h. */ 10709_ACEOF 10710cat confdefs.h >>conftest.$ac_ext 10711cat >>conftest.$ac_ext <<_ACEOF 10712/* end confdefs.h. */ 10713#if HAVE_ARGZ_H 10714# include <argz.h> 10715#endif 10716 10717typedef error_t ac__type_new_; 10718int 10719main () 10720{ 10721if ((ac__type_new_ *) 0) 10722 return 0; 10723if (sizeof (ac__type_new_)) 10724 return 0; 10725 ; 10726 return 0; 10727} 10728_ACEOF 10729rm -f conftest.$ac_objext 10730if { (ac_try="$ac_compile" 10731case "(($ac_try" in 10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10733 *) ac_try_echo=$ac_try;; 10734esac 10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10736 (eval "$ac_compile") 2>conftest.er1 10737 ac_status=$? 10738 grep -v '^ *+' conftest.er1 >conftest.err 10739 rm -f conftest.er1 10740 cat conftest.err >&5 10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10742 (exit $ac_status); } && 10743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10744 { (case "(($ac_try" in 10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10746 *) ac_try_echo=$ac_try;; 10747esac 10748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10749 (eval "$ac_try") 2>&5 10750 ac_status=$? 10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10752 (exit $ac_status); }; } && 10753 { ac_try='test -s conftest.$ac_objext' 10754 { (case "(($ac_try" in 10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10756 *) ac_try_echo=$ac_try;; 10757esac 10758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10759 (eval "$ac_try") 2>&5 10760 ac_status=$? 10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10762 (exit $ac_status); }; }; then 10763 ac_cv_type_error_t=yes 10764else 10765 echo "$as_me: failed program was:" >&5 10766sed 's/^/| /' conftest.$ac_ext >&5 10767 10768 ac_cv_type_error_t=no 10769fi 10770 10771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10772fi 10773{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 10774echo "${ECHO_T}$ac_cv_type_error_t" >&6; } 10775if test $ac_cv_type_error_t = yes; then 10776 10777cat >>confdefs.h <<_ACEOF 10778#define HAVE_ERROR_T 1 10779_ACEOF 10780 10781 10782else 10783 10784cat >>confdefs.h <<\_ACEOF 10785#define error_t int 10786_ACEOF 10787 10788fi 10789 10790 10791 10792 10793 10794 10795 10796for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify 10797do 10798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10799{ echo "$as_me:$LINENO: checking for $ac_func" >&5 10800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 10801if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10802 echo $ECHO_N "(cached) $ECHO_C" >&6 10803else 10804 cat >conftest.$ac_ext <<_ACEOF 10805/* confdefs.h. */ 10806_ACEOF 10807cat confdefs.h >>conftest.$ac_ext 10808cat >>conftest.$ac_ext <<_ACEOF 10809/* end confdefs.h. */ 10810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10811 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10812#define $ac_func innocuous_$ac_func 10813 10814/* System header to define __stub macros and hopefully few prototypes, 10815 which can conflict with char $ac_func (); below. 10816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10817 <limits.h> exists even on freestanding compilers. */ 10818 10819#ifdef __STDC__ 10820# include <limits.h> 10821#else 10822# include <assert.h> 10823#endif 10824 10825#undef $ac_func 10826 10827/* Override any GCC internal prototype to avoid an error. 10828 Use char because int might match the return type of a GCC 10829 builtin and then its argument prototype would still apply. */ 10830#ifdef __cplusplus 10831extern "C" 10832#endif 10833char $ac_func (); 10834/* The GNU C library defines this for functions which it implements 10835 to always fail with ENOSYS. Some functions are actually named 10836 something starting with __ and the normal name is an alias. */ 10837#if defined __stub_$ac_func || defined __stub___$ac_func 10838choke me 10839#endif 10840 10841int 10842main () 10843{ 10844return $ac_func (); 10845 ; 10846 return 0; 10847} 10848_ACEOF 10849rm -f conftest.$ac_objext conftest$ac_exeext 10850if { (ac_try="$ac_link" 10851case "(($ac_try" in 10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10853 *) ac_try_echo=$ac_try;; 10854esac 10855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10856 (eval "$ac_link") 2>conftest.er1 10857 ac_status=$? 10858 grep -v '^ *+' conftest.er1 >conftest.err 10859 rm -f conftest.er1 10860 cat conftest.err >&5 10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10862 (exit $ac_status); } && 10863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10864 { (case "(($ac_try" in 10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10866 *) ac_try_echo=$ac_try;; 10867esac 10868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10869 (eval "$ac_try") 2>&5 10870 ac_status=$? 10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10872 (exit $ac_status); }; } && 10873 { ac_try='test -s conftest$ac_exeext' 10874 { (case "(($ac_try" in 10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10876 *) ac_try_echo=$ac_try;; 10877esac 10878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10879 (eval "$ac_try") 2>&5 10880 ac_status=$? 10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10882 (exit $ac_status); }; }; then 10883 eval "$as_ac_var=yes" 10884else 10885 echo "$as_me: failed program was:" >&5 10886sed 's/^/| /' conftest.$ac_ext >&5 10887 10888 eval "$as_ac_var=no" 10889fi 10890 10891rm -f core conftest.err conftest.$ac_objext \ 10892 conftest$ac_exeext conftest.$ac_ext 10893fi 10894ac_res=`eval echo '${'$as_ac_var'}'` 10895 { echo "$as_me:$LINENO: result: $ac_res" >&5 10896echo "${ECHO_T}$ac_res" >&6; } 10897if test `eval echo '${'$as_ac_var'}'` = yes; then 10898 cat >>confdefs.h <<_ACEOF 10899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10900_ACEOF 10901 10902fi 10903done 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ 10932 stdio.h unistd.h 10933do 10934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10936 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 10938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10939 echo $ECHO_N "(cached) $ECHO_C" >&6 10940fi 10941ac_res=`eval echo '${'$as_ac_Header'}'` 10942 { echo "$as_me:$LINENO: result: $ac_res" >&5 10943echo "${ECHO_T}$ac_res" >&6; } 10944else 10945 # Is the header compilable? 10946{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 10947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 10948cat >conftest.$ac_ext <<_ACEOF 10949/* confdefs.h. */ 10950_ACEOF 10951cat confdefs.h >>conftest.$ac_ext 10952cat >>conftest.$ac_ext <<_ACEOF 10953/* end confdefs.h. */ 10954$ac_includes_default 10955#include <$ac_header> 10956_ACEOF 10957rm -f conftest.$ac_objext 10958if { (ac_try="$ac_compile" 10959case "(($ac_try" in 10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10961 *) ac_try_echo=$ac_try;; 10962esac 10963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10964 (eval "$ac_compile") 2>conftest.er1 10965 ac_status=$? 10966 grep -v '^ *+' conftest.er1 >conftest.err 10967 rm -f conftest.er1 10968 cat conftest.err >&5 10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10970 (exit $ac_status); } && 10971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10972 { (case "(($ac_try" in 10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10974 *) ac_try_echo=$ac_try;; 10975esac 10976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10977 (eval "$ac_try") 2>&5 10978 ac_status=$? 10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10980 (exit $ac_status); }; } && 10981 { ac_try='test -s conftest.$ac_objext' 10982 { (case "(($ac_try" in 10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10984 *) ac_try_echo=$ac_try;; 10985esac 10986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10987 (eval "$ac_try") 2>&5 10988 ac_status=$? 10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10990 (exit $ac_status); }; }; then 10991 ac_header_compiler=yes 10992else 10993 echo "$as_me: failed program was:" >&5 10994sed 's/^/| /' conftest.$ac_ext >&5 10995 10996 ac_header_compiler=no 10997fi 10998 10999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11000{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11001echo "${ECHO_T}$ac_header_compiler" >&6; } 11002 11003# Is the header present? 11004{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11005echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11006cat >conftest.$ac_ext <<_ACEOF 11007/* confdefs.h. */ 11008_ACEOF 11009cat confdefs.h >>conftest.$ac_ext 11010cat >>conftest.$ac_ext <<_ACEOF 11011/* end confdefs.h. */ 11012#include <$ac_header> 11013_ACEOF 11014if { (ac_try="$ac_cpp conftest.$ac_ext" 11015case "(($ac_try" in 11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11017 *) ac_try_echo=$ac_try;; 11018esac 11019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11021 ac_status=$? 11022 grep -v '^ *+' conftest.er1 >conftest.err 11023 rm -f conftest.er1 11024 cat conftest.err >&5 11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11026 (exit $ac_status); } >/dev/null; then 11027 if test -s conftest.err; then 11028 ac_cpp_err=$ac_c_preproc_warn_flag 11029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11030 else 11031 ac_cpp_err= 11032 fi 11033else 11034 ac_cpp_err=yes 11035fi 11036if test -z "$ac_cpp_err"; then 11037 ac_header_preproc=yes 11038else 11039 echo "$as_me: failed program was:" >&5 11040sed 's/^/| /' conftest.$ac_ext >&5 11041 11042 ac_header_preproc=no 11043fi 11044 11045rm -f conftest.err conftest.$ac_ext 11046{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11047echo "${ECHO_T}$ac_header_preproc" >&6; } 11048 11049# So? What about this header? 11050case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11051 yes:no: ) 11052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11053echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11055echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11056 ac_header_preproc=yes 11057 ;; 11058 no:yes:* ) 11059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11060echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11062echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11064echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11066echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11070echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11071 ( cat <<\_ASBOX 11072## ------------------------------ ## 11073## Report this to bugs@yourdomain ## 11074## ------------------------------ ## 11075_ASBOX 11076 ) | sed "s/^/$as_me: WARNING: /" >&2 11077 ;; 11078esac 11079{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11082 echo $ECHO_N "(cached) $ECHO_C" >&6 11083else 11084 eval "$as_ac_Header=\$ac_header_preproc" 11085fi 11086ac_res=`eval echo '${'$as_ac_Header'}'` 11087 { echo "$as_me:$LINENO: result: $ac_res" >&5 11088echo "${ECHO_T}$ac_res" >&6; } 11089 11090fi 11091if test `eval echo '${'$as_ac_Header'}'` = yes; then 11092 cat >>confdefs.h <<_ACEOF 11093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11094_ACEOF 11095 11096fi 11097 11098done 11099 11100 11101 11102 11103 11104for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h 11105do 11106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11108 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11111 echo $ECHO_N "(cached) $ECHO_C" >&6 11112fi 11113ac_res=`eval echo '${'$as_ac_Header'}'` 11114 { echo "$as_me:$LINENO: result: $ac_res" >&5 11115echo "${ECHO_T}$ac_res" >&6; } 11116else 11117 # Is the header compilable? 11118{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11119echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11120cat >conftest.$ac_ext <<_ACEOF 11121/* confdefs.h. */ 11122_ACEOF 11123cat confdefs.h >>conftest.$ac_ext 11124cat >>conftest.$ac_ext <<_ACEOF 11125/* end confdefs.h. */ 11126$ac_includes_default 11127#include <$ac_header> 11128_ACEOF 11129rm -f conftest.$ac_objext 11130if { (ac_try="$ac_compile" 11131case "(($ac_try" in 11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11133 *) ac_try_echo=$ac_try;; 11134esac 11135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11136 (eval "$ac_compile") 2>conftest.er1 11137 ac_status=$? 11138 grep -v '^ *+' conftest.er1 >conftest.err 11139 rm -f conftest.er1 11140 cat conftest.err >&5 11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11142 (exit $ac_status); } && 11143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11144 { (case "(($ac_try" in 11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11146 *) ac_try_echo=$ac_try;; 11147esac 11148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11149 (eval "$ac_try") 2>&5 11150 ac_status=$? 11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11152 (exit $ac_status); }; } && 11153 { ac_try='test -s conftest.$ac_objext' 11154 { (case "(($ac_try" in 11155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11156 *) ac_try_echo=$ac_try;; 11157esac 11158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11159 (eval "$ac_try") 2>&5 11160 ac_status=$? 11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11162 (exit $ac_status); }; }; then 11163 ac_header_compiler=yes 11164else 11165 echo "$as_me: failed program was:" >&5 11166sed 's/^/| /' conftest.$ac_ext >&5 11167 11168 ac_header_compiler=no 11169fi 11170 11171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11172{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11173echo "${ECHO_T}$ac_header_compiler" >&6; } 11174 11175# Is the header present? 11176{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11177echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11178cat >conftest.$ac_ext <<_ACEOF 11179/* confdefs.h. */ 11180_ACEOF 11181cat confdefs.h >>conftest.$ac_ext 11182cat >>conftest.$ac_ext <<_ACEOF 11183/* end confdefs.h. */ 11184#include <$ac_header> 11185_ACEOF 11186if { (ac_try="$ac_cpp conftest.$ac_ext" 11187case "(($ac_try" in 11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11189 *) ac_try_echo=$ac_try;; 11190esac 11191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11193 ac_status=$? 11194 grep -v '^ *+' conftest.er1 >conftest.err 11195 rm -f conftest.er1 11196 cat conftest.err >&5 11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11198 (exit $ac_status); } >/dev/null; then 11199 if test -s conftest.err; then 11200 ac_cpp_err=$ac_c_preproc_warn_flag 11201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11202 else 11203 ac_cpp_err= 11204 fi 11205else 11206 ac_cpp_err=yes 11207fi 11208if test -z "$ac_cpp_err"; then 11209 ac_header_preproc=yes 11210else 11211 echo "$as_me: failed program was:" >&5 11212sed 's/^/| /' conftest.$ac_ext >&5 11213 11214 ac_header_preproc=no 11215fi 11216 11217rm -f conftest.err conftest.$ac_ext 11218{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11219echo "${ECHO_T}$ac_header_preproc" >&6; } 11220 11221# So? What about this header? 11222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11223 yes:no: ) 11224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11225echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11227echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11228 ac_header_preproc=yes 11229 ;; 11230 no:yes:* ) 11231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11236echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11238echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11242echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11243 ( cat <<\_ASBOX 11244## ------------------------------ ## 11245## Report this to bugs@yourdomain ## 11246## ------------------------------ ## 11247_ASBOX 11248 ) | sed "s/^/$as_me: WARNING: /" >&2 11249 ;; 11250esac 11251{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11253if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11254 echo $ECHO_N "(cached) $ECHO_C" >&6 11255else 11256 eval "$as_ac_Header=\$ac_header_preproc" 11257fi 11258ac_res=`eval echo '${'$as_ac_Header'}'` 11259 { echo "$as_me:$LINENO: result: $ac_res" >&5 11260echo "${ECHO_T}$ac_res" >&6; } 11261 11262fi 11263if test `eval echo '${'$as_ac_Header'}'` = yes; then 11264 cat >>confdefs.h <<_ACEOF 11265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11266_ACEOF 11267 11268fi 11269 11270done 11271 11272 11273 11274for ac_header in string.h strings.h 11275do 11276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11278 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11281 echo $ECHO_N "(cached) $ECHO_C" >&6 11282fi 11283ac_res=`eval echo '${'$as_ac_Header'}'` 11284 { echo "$as_me:$LINENO: result: $ac_res" >&5 11285echo "${ECHO_T}$ac_res" >&6; } 11286else 11287 # Is the header compilable? 11288{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11289echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11290cat >conftest.$ac_ext <<_ACEOF 11291/* confdefs.h. */ 11292_ACEOF 11293cat confdefs.h >>conftest.$ac_ext 11294cat >>conftest.$ac_ext <<_ACEOF 11295/* end confdefs.h. */ 11296$ac_includes_default 11297#include <$ac_header> 11298_ACEOF 11299rm -f conftest.$ac_objext 11300if { (ac_try="$ac_compile" 11301case "(($ac_try" in 11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11303 *) ac_try_echo=$ac_try;; 11304esac 11305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11306 (eval "$ac_compile") 2>conftest.er1 11307 ac_status=$? 11308 grep -v '^ *+' conftest.er1 >conftest.err 11309 rm -f conftest.er1 11310 cat conftest.err >&5 11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11312 (exit $ac_status); } && 11313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11314 { (case "(($ac_try" in 11315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11316 *) ac_try_echo=$ac_try;; 11317esac 11318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11319 (eval "$ac_try") 2>&5 11320 ac_status=$? 11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11322 (exit $ac_status); }; } && 11323 { ac_try='test -s conftest.$ac_objext' 11324 { (case "(($ac_try" in 11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11326 *) ac_try_echo=$ac_try;; 11327esac 11328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11329 (eval "$ac_try") 2>&5 11330 ac_status=$? 11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11332 (exit $ac_status); }; }; then 11333 ac_header_compiler=yes 11334else 11335 echo "$as_me: failed program was:" >&5 11336sed 's/^/| /' conftest.$ac_ext >&5 11337 11338 ac_header_compiler=no 11339fi 11340 11341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11342{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11343echo "${ECHO_T}$ac_header_compiler" >&6; } 11344 11345# Is the header present? 11346{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11348cat >conftest.$ac_ext <<_ACEOF 11349/* confdefs.h. */ 11350_ACEOF 11351cat confdefs.h >>conftest.$ac_ext 11352cat >>conftest.$ac_ext <<_ACEOF 11353/* end confdefs.h. */ 11354#include <$ac_header> 11355_ACEOF 11356if { (ac_try="$ac_cpp conftest.$ac_ext" 11357case "(($ac_try" in 11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11359 *) ac_try_echo=$ac_try;; 11360esac 11361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11363 ac_status=$? 11364 grep -v '^ *+' conftest.er1 >conftest.err 11365 rm -f conftest.er1 11366 cat conftest.err >&5 11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11368 (exit $ac_status); } >/dev/null; then 11369 if test -s conftest.err; then 11370 ac_cpp_err=$ac_c_preproc_warn_flag 11371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11372 else 11373 ac_cpp_err= 11374 fi 11375else 11376 ac_cpp_err=yes 11377fi 11378if test -z "$ac_cpp_err"; then 11379 ac_header_preproc=yes 11380else 11381 echo "$as_me: failed program was:" >&5 11382sed 's/^/| /' conftest.$ac_ext >&5 11383 11384 ac_header_preproc=no 11385fi 11386 11387rm -f conftest.err conftest.$ac_ext 11388{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11389echo "${ECHO_T}$ac_header_preproc" >&6; } 11390 11391# So? What about this header? 11392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11393 yes:no: ) 11394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11398 ac_header_preproc=yes 11399 ;; 11400 no:yes:* ) 11401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11408echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11413 ( cat <<\_ASBOX 11414## ------------------------------ ## 11415## Report this to bugs@yourdomain ## 11416## ------------------------------ ## 11417_ASBOX 11418 ) | sed "s/^/$as_me: WARNING: /" >&2 11419 ;; 11420esac 11421{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11424 echo $ECHO_N "(cached) $ECHO_C" >&6 11425else 11426 eval "$as_ac_Header=\$ac_header_preproc" 11427fi 11428ac_res=`eval echo '${'$as_ac_Header'}'` 11429 { echo "$as_me:$LINENO: result: $ac_res" >&5 11430echo "${ECHO_T}$ac_res" >&6; } 11431 11432fi 11433if test `eval echo '${'$as_ac_Header'}'` = yes; then 11434 cat >>confdefs.h <<_ACEOF 11435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11436_ACEOF 11437 break 11438fi 11439 11440done 11441 11442 11443 11444 11445for ac_func in strchr index 11446do 11447as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11448{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11449echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11450if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11451 echo $ECHO_N "(cached) $ECHO_C" >&6 11452else 11453 cat >conftest.$ac_ext <<_ACEOF 11454/* confdefs.h. */ 11455_ACEOF 11456cat confdefs.h >>conftest.$ac_ext 11457cat >>conftest.$ac_ext <<_ACEOF 11458/* end confdefs.h. */ 11459/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11460 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11461#define $ac_func innocuous_$ac_func 11462 11463/* System header to define __stub macros and hopefully few prototypes, 11464 which can conflict with char $ac_func (); below. 11465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11466 <limits.h> exists even on freestanding compilers. */ 11467 11468#ifdef __STDC__ 11469# include <limits.h> 11470#else 11471# include <assert.h> 11472#endif 11473 11474#undef $ac_func 11475 11476/* Override any GCC internal prototype to avoid an error. 11477 Use char because int might match the return type of a GCC 11478 builtin and then its argument prototype would still apply. */ 11479#ifdef __cplusplus 11480extern "C" 11481#endif 11482char $ac_func (); 11483/* The GNU C library defines this for functions which it implements 11484 to always fail with ENOSYS. Some functions are actually named 11485 something starting with __ and the normal name is an alias. */ 11486#if defined __stub_$ac_func || defined __stub___$ac_func 11487choke me 11488#endif 11489 11490int 11491main () 11492{ 11493return $ac_func (); 11494 ; 11495 return 0; 11496} 11497_ACEOF 11498rm -f conftest.$ac_objext conftest$ac_exeext 11499if { (ac_try="$ac_link" 11500case "(($ac_try" in 11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11502 *) ac_try_echo=$ac_try;; 11503esac 11504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11505 (eval "$ac_link") 2>conftest.er1 11506 ac_status=$? 11507 grep -v '^ *+' conftest.er1 >conftest.err 11508 rm -f conftest.er1 11509 cat conftest.err >&5 11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11511 (exit $ac_status); } && 11512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11513 { (case "(($ac_try" in 11514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11515 *) ac_try_echo=$ac_try;; 11516esac 11517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11518 (eval "$ac_try") 2>&5 11519 ac_status=$? 11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11521 (exit $ac_status); }; } && 11522 { ac_try='test -s conftest$ac_exeext' 11523 { (case "(($ac_try" in 11524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11525 *) ac_try_echo=$ac_try;; 11526esac 11527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11528 (eval "$ac_try") 2>&5 11529 ac_status=$? 11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11531 (exit $ac_status); }; }; then 11532 eval "$as_ac_var=yes" 11533else 11534 echo "$as_me: failed program was:" >&5 11535sed 's/^/| /' conftest.$ac_ext >&5 11536 11537 eval "$as_ac_var=no" 11538fi 11539 11540rm -f core conftest.err conftest.$ac_objext \ 11541 conftest$ac_exeext conftest.$ac_ext 11542fi 11543ac_res=`eval echo '${'$as_ac_var'}'` 11544 { echo "$as_me:$LINENO: result: $ac_res" >&5 11545echo "${ECHO_T}$ac_res" >&6; } 11546if test `eval echo '${'$as_ac_var'}'` = yes; then 11547 cat >>confdefs.h <<_ACEOF 11548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11549_ACEOF 11550 break 11551fi 11552done 11553 11554 11555 11556for ac_func in strrchr rindex 11557do 11558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11559{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11561if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11562 echo $ECHO_N "(cached) $ECHO_C" >&6 11563else 11564 cat >conftest.$ac_ext <<_ACEOF 11565/* confdefs.h. */ 11566_ACEOF 11567cat confdefs.h >>conftest.$ac_ext 11568cat >>conftest.$ac_ext <<_ACEOF 11569/* end confdefs.h. */ 11570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11571 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11572#define $ac_func innocuous_$ac_func 11573 11574/* System header to define __stub macros and hopefully few prototypes, 11575 which can conflict with char $ac_func (); below. 11576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11577 <limits.h> exists even on freestanding compilers. */ 11578 11579#ifdef __STDC__ 11580# include <limits.h> 11581#else 11582# include <assert.h> 11583#endif 11584 11585#undef $ac_func 11586 11587/* Override any GCC internal prototype to avoid an error. 11588 Use char because int might match the return type of a GCC 11589 builtin and then its argument prototype would still apply. */ 11590#ifdef __cplusplus 11591extern "C" 11592#endif 11593char $ac_func (); 11594/* The GNU C library defines this for functions which it implements 11595 to always fail with ENOSYS. Some functions are actually named 11596 something starting with __ and the normal name is an alias. */ 11597#if defined __stub_$ac_func || defined __stub___$ac_func 11598choke me 11599#endif 11600 11601int 11602main () 11603{ 11604return $ac_func (); 11605 ; 11606 return 0; 11607} 11608_ACEOF 11609rm -f conftest.$ac_objext conftest$ac_exeext 11610if { (ac_try="$ac_link" 11611case "(($ac_try" in 11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11613 *) ac_try_echo=$ac_try;; 11614esac 11615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11616 (eval "$ac_link") 2>conftest.er1 11617 ac_status=$? 11618 grep -v '^ *+' conftest.er1 >conftest.err 11619 rm -f conftest.er1 11620 cat conftest.err >&5 11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11622 (exit $ac_status); } && 11623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11624 { (case "(($ac_try" in 11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11626 *) ac_try_echo=$ac_try;; 11627esac 11628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11629 (eval "$ac_try") 2>&5 11630 ac_status=$? 11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11632 (exit $ac_status); }; } && 11633 { ac_try='test -s conftest$ac_exeext' 11634 { (case "(($ac_try" in 11635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11636 *) ac_try_echo=$ac_try;; 11637esac 11638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11639 (eval "$ac_try") 2>&5 11640 ac_status=$? 11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11642 (exit $ac_status); }; }; then 11643 eval "$as_ac_var=yes" 11644else 11645 echo "$as_me: failed program was:" >&5 11646sed 's/^/| /' conftest.$ac_ext >&5 11647 11648 eval "$as_ac_var=no" 11649fi 11650 11651rm -f core conftest.err conftest.$ac_objext \ 11652 conftest$ac_exeext conftest.$ac_ext 11653fi 11654ac_res=`eval echo '${'$as_ac_var'}'` 11655 { echo "$as_me:$LINENO: result: $ac_res" >&5 11656echo "${ECHO_T}$ac_res" >&6; } 11657if test `eval echo '${'$as_ac_var'}'` = yes; then 11658 cat >>confdefs.h <<_ACEOF 11659#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11660_ACEOF 11661 break 11662fi 11663done 11664 11665 11666 11667for ac_func in memcpy bcopy 11668do 11669as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11670{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11671echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11672if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11673 echo $ECHO_N "(cached) $ECHO_C" >&6 11674else 11675 cat >conftest.$ac_ext <<_ACEOF 11676/* confdefs.h. */ 11677_ACEOF 11678cat confdefs.h >>conftest.$ac_ext 11679cat >>conftest.$ac_ext <<_ACEOF 11680/* end confdefs.h. */ 11681/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11682 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11683#define $ac_func innocuous_$ac_func 11684 11685/* System header to define __stub macros and hopefully few prototypes, 11686 which can conflict with char $ac_func (); below. 11687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11688 <limits.h> exists even on freestanding compilers. */ 11689 11690#ifdef __STDC__ 11691# include <limits.h> 11692#else 11693# include <assert.h> 11694#endif 11695 11696#undef $ac_func 11697 11698/* Override any GCC internal prototype to avoid an error. 11699 Use char because int might match the return type of a GCC 11700 builtin and then its argument prototype would still apply. */ 11701#ifdef __cplusplus 11702extern "C" 11703#endif 11704char $ac_func (); 11705/* The GNU C library defines this for functions which it implements 11706 to always fail with ENOSYS. Some functions are actually named 11707 something starting with __ and the normal name is an alias. */ 11708#if defined __stub_$ac_func || defined __stub___$ac_func 11709choke me 11710#endif 11711 11712int 11713main () 11714{ 11715return $ac_func (); 11716 ; 11717 return 0; 11718} 11719_ACEOF 11720rm -f conftest.$ac_objext conftest$ac_exeext 11721if { (ac_try="$ac_link" 11722case "(($ac_try" in 11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11724 *) ac_try_echo=$ac_try;; 11725esac 11726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11727 (eval "$ac_link") 2>conftest.er1 11728 ac_status=$? 11729 grep -v '^ *+' conftest.er1 >conftest.err 11730 rm -f conftest.er1 11731 cat conftest.err >&5 11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11733 (exit $ac_status); } && 11734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11735 { (case "(($ac_try" in 11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11737 *) ac_try_echo=$ac_try;; 11738esac 11739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11740 (eval "$ac_try") 2>&5 11741 ac_status=$? 11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11743 (exit $ac_status); }; } && 11744 { ac_try='test -s conftest$ac_exeext' 11745 { (case "(($ac_try" in 11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11747 *) ac_try_echo=$ac_try;; 11748esac 11749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11750 (eval "$ac_try") 2>&5 11751 ac_status=$? 11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11753 (exit $ac_status); }; }; then 11754 eval "$as_ac_var=yes" 11755else 11756 echo "$as_me: failed program was:" >&5 11757sed 's/^/| /' conftest.$ac_ext >&5 11758 11759 eval "$as_ac_var=no" 11760fi 11761 11762rm -f core conftest.err conftest.$ac_objext \ 11763 conftest$ac_exeext conftest.$ac_ext 11764fi 11765ac_res=`eval echo '${'$as_ac_var'}'` 11766 { echo "$as_me:$LINENO: result: $ac_res" >&5 11767echo "${ECHO_T}$ac_res" >&6; } 11768if test `eval echo '${'$as_ac_var'}'` = yes; then 11769 cat >>confdefs.h <<_ACEOF 11770#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11771_ACEOF 11772 break 11773fi 11774done 11775 11776 11777 11778for ac_func in memmove strcmp 11779do 11780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11781{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11783if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11784 echo $ECHO_N "(cached) $ECHO_C" >&6 11785else 11786 cat >conftest.$ac_ext <<_ACEOF 11787/* confdefs.h. */ 11788_ACEOF 11789cat confdefs.h >>conftest.$ac_ext 11790cat >>conftest.$ac_ext <<_ACEOF 11791/* end confdefs.h. */ 11792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11793 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11794#define $ac_func innocuous_$ac_func 11795 11796/* System header to define __stub macros and hopefully few prototypes, 11797 which can conflict with char $ac_func (); below. 11798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11799 <limits.h> exists even on freestanding compilers. */ 11800 11801#ifdef __STDC__ 11802# include <limits.h> 11803#else 11804# include <assert.h> 11805#endif 11806 11807#undef $ac_func 11808 11809/* Override any GCC internal prototype to avoid an error. 11810 Use char because int might match the return type of a GCC 11811 builtin and then its argument prototype would still apply. */ 11812#ifdef __cplusplus 11813extern "C" 11814#endif 11815char $ac_func (); 11816/* The GNU C library defines this for functions which it implements 11817 to always fail with ENOSYS. Some functions are actually named 11818 something starting with __ and the normal name is an alias. */ 11819#if defined __stub_$ac_func || defined __stub___$ac_func 11820choke me 11821#endif 11822 11823int 11824main () 11825{ 11826return $ac_func (); 11827 ; 11828 return 0; 11829} 11830_ACEOF 11831rm -f conftest.$ac_objext conftest$ac_exeext 11832if { (ac_try="$ac_link" 11833case "(($ac_try" in 11834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11835 *) ac_try_echo=$ac_try;; 11836esac 11837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11838 (eval "$ac_link") 2>conftest.er1 11839 ac_status=$? 11840 grep -v '^ *+' conftest.er1 >conftest.err 11841 rm -f conftest.er1 11842 cat conftest.err >&5 11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11844 (exit $ac_status); } && 11845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11846 { (case "(($ac_try" in 11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11848 *) ac_try_echo=$ac_try;; 11849esac 11850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11851 (eval "$ac_try") 2>&5 11852 ac_status=$? 11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11854 (exit $ac_status); }; } && 11855 { ac_try='test -s conftest$ac_exeext' 11856 { (case "(($ac_try" in 11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11858 *) ac_try_echo=$ac_try;; 11859esac 11860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11861 (eval "$ac_try") 2>&5 11862 ac_status=$? 11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11864 (exit $ac_status); }; }; then 11865 eval "$as_ac_var=yes" 11866else 11867 echo "$as_me: failed program was:" >&5 11868sed 's/^/| /' conftest.$ac_ext >&5 11869 11870 eval "$as_ac_var=no" 11871fi 11872 11873rm -f core conftest.err conftest.$ac_objext \ 11874 conftest$ac_exeext conftest.$ac_ext 11875fi 11876ac_res=`eval echo '${'$as_ac_var'}'` 11877 { echo "$as_me:$LINENO: result: $ac_res" >&5 11878echo "${ECHO_T}$ac_res" >&6; } 11879if test `eval echo '${'$as_ac_var'}'` = yes; then 11880 cat >>confdefs.h <<_ACEOF 11881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11882_ACEOF 11883 11884fi 11885done 11886 11887 11888 11889 11890for ac_func in closedir opendir readdir 11891do 11892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11893{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11895if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11896 echo $ECHO_N "(cached) $ECHO_C" >&6 11897else 11898 cat >conftest.$ac_ext <<_ACEOF 11899/* confdefs.h. */ 11900_ACEOF 11901cat confdefs.h >>conftest.$ac_ext 11902cat >>conftest.$ac_ext <<_ACEOF 11903/* end confdefs.h. */ 11904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11905 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11906#define $ac_func innocuous_$ac_func 11907 11908/* System header to define __stub macros and hopefully few prototypes, 11909 which can conflict with char $ac_func (); below. 11910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11911 <limits.h> exists even on freestanding compilers. */ 11912 11913#ifdef __STDC__ 11914# include <limits.h> 11915#else 11916# include <assert.h> 11917#endif 11918 11919#undef $ac_func 11920 11921/* Override any GCC internal prototype to avoid an error. 11922 Use char because int might match the return type of a GCC 11923 builtin and then its argument prototype would still apply. */ 11924#ifdef __cplusplus 11925extern "C" 11926#endif 11927char $ac_func (); 11928/* The GNU C library defines this for functions which it implements 11929 to always fail with ENOSYS. Some functions are actually named 11930 something starting with __ and the normal name is an alias. */ 11931#if defined __stub_$ac_func || defined __stub___$ac_func 11932choke me 11933#endif 11934 11935int 11936main () 11937{ 11938return $ac_func (); 11939 ; 11940 return 0; 11941} 11942_ACEOF 11943rm -f conftest.$ac_objext conftest$ac_exeext 11944if { (ac_try="$ac_link" 11945case "(($ac_try" in 11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11947 *) ac_try_echo=$ac_try;; 11948esac 11949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11950 (eval "$ac_link") 2>conftest.er1 11951 ac_status=$? 11952 grep -v '^ *+' conftest.er1 >conftest.err 11953 rm -f conftest.er1 11954 cat conftest.err >&5 11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11956 (exit $ac_status); } && 11957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11958 { (case "(($ac_try" in 11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11960 *) ac_try_echo=$ac_try;; 11961esac 11962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11963 (eval "$ac_try") 2>&5 11964 ac_status=$? 11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11966 (exit $ac_status); }; } && 11967 { ac_try='test -s conftest$ac_exeext' 11968 { (case "(($ac_try" in 11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11970 *) ac_try_echo=$ac_try;; 11971esac 11972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11973 (eval "$ac_try") 2>&5 11974 ac_status=$? 11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11976 (exit $ac_status); }; }; then 11977 eval "$as_ac_var=yes" 11978else 11979 echo "$as_me: failed program was:" >&5 11980sed 's/^/| /' conftest.$ac_ext >&5 11981 11982 eval "$as_ac_var=no" 11983fi 11984 11985rm -f core conftest.err conftest.$ac_objext \ 11986 conftest$ac_exeext conftest.$ac_ext 11987fi 11988ac_res=`eval echo '${'$as_ac_var'}'` 11989 { echo "$as_me:$LINENO: result: $ac_res" >&5 11990echo "${ECHO_T}$ac_res" >&6; } 11991if test `eval echo '${'$as_ac_var'}'` = yes; then 11992 cat >>confdefs.h <<_ACEOF 11993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11994_ACEOF 11995 11996fi 11997done 11998 11999 12000 12001{ echo "$as_me:$LINENO: checking tool compatibility" >&5 12002echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; } 12003 12004ICC=no 12005IXX=no 12006case $CC in 12007 icc*|icpc*) 12008 ICC=yes 12009 IXX=yes 12010 ;; 12011 *) 12012 ;; 12013esac 12014 12015if test "$GCC" != "yes" && test "$ICC" != "yes" 12016then 12017 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5 12018echo "$as_me: error: gcc|icc required but not found" >&2;} 12019 { (exit 1); exit 1; }; } 12020fi 12021 12022if test "$GXX" != "yes" && test "$IXX" != "yes" 12023then 12024 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5 12025echo "$as_me: error: g++|clang++|icc required but not found" >&2;} 12026 { (exit 1); exit 1; }; } 12027fi 12028 12029if test "$GCC" = "yes" 12030then 12031 cat >conftest.$ac_ext <<_ACEOF 12032#if !defined(__GNUC__) || __GNUC__ < 3 12033#error Unsupported GCC version 12034#endif 12035 12036_ACEOF 12037rm -f conftest.$ac_objext 12038if { (ac_try="$ac_compile" 12039case "(($ac_try" in 12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12041 *) ac_try_echo=$ac_try;; 12042esac 12043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12044 (eval "$ac_compile") 2>conftest.er1 12045 ac_status=$? 12046 grep -v '^ *+' conftest.er1 >conftest.err 12047 rm -f conftest.er1 12048 cat conftest.err >&5 12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12050 (exit $ac_status); } && 12051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12052 { (case "(($ac_try" in 12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12054 *) ac_try_echo=$ac_try;; 12055esac 12056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12057 (eval "$ac_try") 2>&5 12058 ac_status=$? 12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12060 (exit $ac_status); }; } && 12061 { ac_try='test -s conftest.$ac_objext' 12062 { (case "(($ac_try" in 12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12064 *) ac_try_echo=$ac_try;; 12065esac 12066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12067 (eval "$ac_try") 2>&5 12068 ac_status=$? 12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12070 (exit $ac_status); }; }; then 12071 : 12072else 12073 echo "$as_me: failed program was:" >&5 12074sed 's/^/| /' conftest.$ac_ext >&5 12075 12076 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5 12077echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;} 12078 { (exit 1); exit 1; }; } 12079fi 12080 12081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12082fi 12083 12084if test -z "$llvm_cv_gnu_make_command" 12085then 12086 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5 12087echo "$as_me: error: GNU Make required but not found" >&2;} 12088 { (exit 1); exit 1; }; } 12089fi 12090 12091{ echo "$as_me:$LINENO: result: ok" >&5 12092echo "${ECHO_T}ok" >&6; } 12093 12094{ echo "$as_me:$LINENO: checking optional compiler flags" >&5 12095echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; } 12096NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros` 12097 12098NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers` 12099 12100COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default` 12101 12102{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5 12103echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; } 12104 12105 12106 12107{ echo "$as_me:$LINENO: checking for sin in -lm" >&5 12108echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; } 12109if test "${ac_cv_lib_m_sin+set}" = set; then 12110 echo $ECHO_N "(cached) $ECHO_C" >&6 12111else 12112 ac_check_lib_save_LIBS=$LIBS 12113LIBS="-lm $LIBS" 12114cat >conftest.$ac_ext <<_ACEOF 12115/* confdefs.h. */ 12116_ACEOF 12117cat confdefs.h >>conftest.$ac_ext 12118cat >>conftest.$ac_ext <<_ACEOF 12119/* end confdefs.h. */ 12120 12121/* Override any GCC internal prototype to avoid an error. 12122 Use char because int might match the return type of a GCC 12123 builtin and then its argument prototype would still apply. */ 12124#ifdef __cplusplus 12125extern "C" 12126#endif 12127char sin (); 12128int 12129main () 12130{ 12131return sin (); 12132 ; 12133 return 0; 12134} 12135_ACEOF 12136rm -f conftest.$ac_objext conftest$ac_exeext 12137if { (ac_try="$ac_link" 12138case "(($ac_try" in 12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12140 *) ac_try_echo=$ac_try;; 12141esac 12142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12143 (eval "$ac_link") 2>conftest.er1 12144 ac_status=$? 12145 grep -v '^ *+' conftest.er1 >conftest.err 12146 rm -f conftest.er1 12147 cat conftest.err >&5 12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12149 (exit $ac_status); } && 12150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12151 { (case "(($ac_try" in 12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12153 *) ac_try_echo=$ac_try;; 12154esac 12155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12156 (eval "$ac_try") 2>&5 12157 ac_status=$? 12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12159 (exit $ac_status); }; } && 12160 { ac_try='test -s conftest$ac_exeext' 12161 { (case "(($ac_try" in 12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12163 *) ac_try_echo=$ac_try;; 12164esac 12165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12166 (eval "$ac_try") 2>&5 12167 ac_status=$? 12168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12169 (exit $ac_status); }; }; then 12170 ac_cv_lib_m_sin=yes 12171else 12172 echo "$as_me: failed program was:" >&5 12173sed 's/^/| /' conftest.$ac_ext >&5 12174 12175 ac_cv_lib_m_sin=no 12176fi 12177 12178rm -f core conftest.err conftest.$ac_objext \ 12179 conftest$ac_exeext conftest.$ac_ext 12180LIBS=$ac_check_lib_save_LIBS 12181fi 12182{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 12183echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; } 12184if test $ac_cv_lib_m_sin = yes; then 12185 cat >>confdefs.h <<_ACEOF 12186#define HAVE_LIBM 1 12187_ACEOF 12188 12189 LIBS="-lm $LIBS" 12190 12191fi 12192 12193if test "$llvm_cv_os_type" = "MingW" ; then 12194 12195{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5 12196echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; } 12197if test "${ac_cv_lib_imagehlp_main+set}" = set; then 12198 echo $ECHO_N "(cached) $ECHO_C" >&6 12199else 12200 ac_check_lib_save_LIBS=$LIBS 12201LIBS="-limagehlp $LIBS" 12202cat >conftest.$ac_ext <<_ACEOF 12203/* confdefs.h. */ 12204_ACEOF 12205cat confdefs.h >>conftest.$ac_ext 12206cat >>conftest.$ac_ext <<_ACEOF 12207/* end confdefs.h. */ 12208 12209 12210int 12211main () 12212{ 12213return main (); 12214 ; 12215 return 0; 12216} 12217_ACEOF 12218rm -f conftest.$ac_objext conftest$ac_exeext 12219if { (ac_try="$ac_link" 12220case "(($ac_try" in 12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12222 *) ac_try_echo=$ac_try;; 12223esac 12224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12225 (eval "$ac_link") 2>conftest.er1 12226 ac_status=$? 12227 grep -v '^ *+' conftest.er1 >conftest.err 12228 rm -f conftest.er1 12229 cat conftest.err >&5 12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12231 (exit $ac_status); } && 12232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12233 { (case "(($ac_try" in 12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12235 *) ac_try_echo=$ac_try;; 12236esac 12237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12238 (eval "$ac_try") 2>&5 12239 ac_status=$? 12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12241 (exit $ac_status); }; } && 12242 { ac_try='test -s conftest$ac_exeext' 12243 { (case "(($ac_try" in 12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12245 *) ac_try_echo=$ac_try;; 12246esac 12247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12248 (eval "$ac_try") 2>&5 12249 ac_status=$? 12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12251 (exit $ac_status); }; }; then 12252 ac_cv_lib_imagehlp_main=yes 12253else 12254 echo "$as_me: failed program was:" >&5 12255sed 's/^/| /' conftest.$ac_ext >&5 12256 12257 ac_cv_lib_imagehlp_main=no 12258fi 12259 12260rm -f core conftest.err conftest.$ac_objext \ 12261 conftest$ac_exeext conftest.$ac_ext 12262LIBS=$ac_check_lib_save_LIBS 12263fi 12264{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5 12265echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; } 12266if test $ac_cv_lib_imagehlp_main = yes; then 12267 cat >>confdefs.h <<_ACEOF 12268#define HAVE_LIBIMAGEHLP 1 12269_ACEOF 12270 12271 LIBS="-limagehlp $LIBS" 12272 12273fi 12274 12275 12276{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5 12277echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; } 12278if test "${ac_cv_lib_psapi_main+set}" = set; then 12279 echo $ECHO_N "(cached) $ECHO_C" >&6 12280else 12281 ac_check_lib_save_LIBS=$LIBS 12282LIBS="-lpsapi $LIBS" 12283cat >conftest.$ac_ext <<_ACEOF 12284/* confdefs.h. */ 12285_ACEOF 12286cat confdefs.h >>conftest.$ac_ext 12287cat >>conftest.$ac_ext <<_ACEOF 12288/* end confdefs.h. */ 12289 12290 12291int 12292main () 12293{ 12294return main (); 12295 ; 12296 return 0; 12297} 12298_ACEOF 12299rm -f conftest.$ac_objext conftest$ac_exeext 12300if { (ac_try="$ac_link" 12301case "(($ac_try" in 12302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12303 *) ac_try_echo=$ac_try;; 12304esac 12305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12306 (eval "$ac_link") 2>conftest.er1 12307 ac_status=$? 12308 grep -v '^ *+' conftest.er1 >conftest.err 12309 rm -f conftest.er1 12310 cat conftest.err >&5 12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12312 (exit $ac_status); } && 12313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12314 { (case "(($ac_try" in 12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12316 *) ac_try_echo=$ac_try;; 12317esac 12318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12319 (eval "$ac_try") 2>&5 12320 ac_status=$? 12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12322 (exit $ac_status); }; } && 12323 { ac_try='test -s conftest$ac_exeext' 12324 { (case "(($ac_try" in 12325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12326 *) ac_try_echo=$ac_try;; 12327esac 12328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12329 (eval "$ac_try") 2>&5 12330 ac_status=$? 12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12332 (exit $ac_status); }; }; then 12333 ac_cv_lib_psapi_main=yes 12334else 12335 echo "$as_me: failed program was:" >&5 12336sed 's/^/| /' conftest.$ac_ext >&5 12337 12338 ac_cv_lib_psapi_main=no 12339fi 12340 12341rm -f core conftest.err conftest.$ac_objext \ 12342 conftest$ac_exeext conftest.$ac_ext 12343LIBS=$ac_check_lib_save_LIBS 12344fi 12345{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5 12346echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; } 12347if test $ac_cv_lib_psapi_main = yes; then 12348 cat >>confdefs.h <<_ACEOF 12349#define HAVE_LIBPSAPI 1 12350_ACEOF 12351 12352 LIBS="-lpsapi $LIBS" 12353 12354fi 12355 12356fi 12357 12358{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5 12359echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; } 12360if test "${ac_cv_search_dlopen+set}" = set; then 12361 echo $ECHO_N "(cached) $ECHO_C" >&6 12362else 12363 ac_func_search_save_LIBS=$LIBS 12364cat >conftest.$ac_ext <<_ACEOF 12365/* confdefs.h. */ 12366_ACEOF 12367cat confdefs.h >>conftest.$ac_ext 12368cat >>conftest.$ac_ext <<_ACEOF 12369/* end confdefs.h. */ 12370 12371/* Override any GCC internal prototype to avoid an error. 12372 Use char because int might match the return type of a GCC 12373 builtin and then its argument prototype would still apply. */ 12374#ifdef __cplusplus 12375extern "C" 12376#endif 12377char dlopen (); 12378int 12379main () 12380{ 12381return dlopen (); 12382 ; 12383 return 0; 12384} 12385_ACEOF 12386for ac_lib in '' dl; do 12387 if test -z "$ac_lib"; then 12388 ac_res="none required" 12389 else 12390 ac_res=-l$ac_lib 12391 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12392 fi 12393 rm -f conftest.$ac_objext conftest$ac_exeext 12394if { (ac_try="$ac_link" 12395case "(($ac_try" in 12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12397 *) ac_try_echo=$ac_try;; 12398esac 12399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12400 (eval "$ac_link") 2>conftest.er1 12401 ac_status=$? 12402 grep -v '^ *+' conftest.er1 >conftest.err 12403 rm -f conftest.er1 12404 cat conftest.err >&5 12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12406 (exit $ac_status); } && 12407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12408 { (case "(($ac_try" in 12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12410 *) ac_try_echo=$ac_try;; 12411esac 12412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12413 (eval "$ac_try") 2>&5 12414 ac_status=$? 12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12416 (exit $ac_status); }; } && 12417 { ac_try='test -s conftest$ac_exeext' 12418 { (case "(($ac_try" in 12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12420 *) ac_try_echo=$ac_try;; 12421esac 12422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12423 (eval "$ac_try") 2>&5 12424 ac_status=$? 12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12426 (exit $ac_status); }; }; then 12427 ac_cv_search_dlopen=$ac_res 12428else 12429 echo "$as_me: failed program was:" >&5 12430sed 's/^/| /' conftest.$ac_ext >&5 12431 12432 12433fi 12434 12435rm -f core conftest.err conftest.$ac_objext \ 12436 conftest$ac_exeext 12437 if test "${ac_cv_search_dlopen+set}" = set; then 12438 break 12439fi 12440done 12441if test "${ac_cv_search_dlopen+set}" = set; then 12442 : 12443else 12444 ac_cv_search_dlopen=no 12445fi 12446rm conftest.$ac_ext 12447LIBS=$ac_func_search_save_LIBS 12448fi 12449{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5 12450echo "${ECHO_T}$ac_cv_search_dlopen" >&6; } 12451ac_res=$ac_cv_search_dlopen 12452if test "$ac_res" != no; then 12453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12454 12455cat >>confdefs.h <<\_ACEOF 12456#define HAVE_DLOPEN 1 12457_ACEOF 12458 12459else 12460 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5 12461echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;} 12462fi 12463 12464 12465if test "$llvm_cv_enable_libffi" = "yes" ; then 12466 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5 12467echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; } 12468if test "${ac_cv_search_ffi_call+set}" = set; then 12469 echo $ECHO_N "(cached) $ECHO_C" >&6 12470else 12471 ac_func_search_save_LIBS=$LIBS 12472cat >conftest.$ac_ext <<_ACEOF 12473/* confdefs.h. */ 12474_ACEOF 12475cat confdefs.h >>conftest.$ac_ext 12476cat >>conftest.$ac_ext <<_ACEOF 12477/* end confdefs.h. */ 12478 12479/* Override any GCC internal prototype to avoid an error. 12480 Use char because int might match the return type of a GCC 12481 builtin and then its argument prototype would still apply. */ 12482#ifdef __cplusplus 12483extern "C" 12484#endif 12485char ffi_call (); 12486int 12487main () 12488{ 12489return ffi_call (); 12490 ; 12491 return 0; 12492} 12493_ACEOF 12494for ac_lib in '' ffi; do 12495 if test -z "$ac_lib"; then 12496 ac_res="none required" 12497 else 12498 ac_res=-l$ac_lib 12499 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12500 fi 12501 rm -f conftest.$ac_objext conftest$ac_exeext 12502if { (ac_try="$ac_link" 12503case "(($ac_try" in 12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12505 *) ac_try_echo=$ac_try;; 12506esac 12507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12508 (eval "$ac_link") 2>conftest.er1 12509 ac_status=$? 12510 grep -v '^ *+' conftest.er1 >conftest.err 12511 rm -f conftest.er1 12512 cat conftest.err >&5 12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12514 (exit $ac_status); } && 12515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12516 { (case "(($ac_try" in 12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12518 *) ac_try_echo=$ac_try;; 12519esac 12520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12521 (eval "$ac_try") 2>&5 12522 ac_status=$? 12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12524 (exit $ac_status); }; } && 12525 { ac_try='test -s conftest$ac_exeext' 12526 { (case "(($ac_try" in 12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12528 *) ac_try_echo=$ac_try;; 12529esac 12530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12531 (eval "$ac_try") 2>&5 12532 ac_status=$? 12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12534 (exit $ac_status); }; }; then 12535 ac_cv_search_ffi_call=$ac_res 12536else 12537 echo "$as_me: failed program was:" >&5 12538sed 's/^/| /' conftest.$ac_ext >&5 12539 12540 12541fi 12542 12543rm -f core conftest.err conftest.$ac_objext \ 12544 conftest$ac_exeext 12545 if test "${ac_cv_search_ffi_call+set}" = set; then 12546 break 12547fi 12548done 12549if test "${ac_cv_search_ffi_call+set}" = set; then 12550 : 12551else 12552 ac_cv_search_ffi_call=no 12553fi 12554rm conftest.$ac_ext 12555LIBS=$ac_func_search_save_LIBS 12556fi 12557{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5 12558echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; } 12559ac_res=$ac_cv_search_ffi_call 12560if test "$ac_res" != no; then 12561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12562 12563cat >>confdefs.h <<\_ACEOF 12564#define HAVE_FFI_CALL 1 12565_ACEOF 12566 12567else 12568 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5 12569echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;} 12570 { (exit 1); exit 1; }; } 12571fi 12572 12573fi 12574 12575{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5 12576echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; } 12577if test "${ac_cv_search_mallinfo+set}" = set; then 12578 echo $ECHO_N "(cached) $ECHO_C" >&6 12579else 12580 ac_func_search_save_LIBS=$LIBS 12581cat >conftest.$ac_ext <<_ACEOF 12582/* confdefs.h. */ 12583_ACEOF 12584cat confdefs.h >>conftest.$ac_ext 12585cat >>conftest.$ac_ext <<_ACEOF 12586/* end confdefs.h. */ 12587 12588/* Override any GCC internal prototype to avoid an error. 12589 Use char because int might match the return type of a GCC 12590 builtin and then its argument prototype would still apply. */ 12591#ifdef __cplusplus 12592extern "C" 12593#endif 12594char mallinfo (); 12595int 12596main () 12597{ 12598return mallinfo (); 12599 ; 12600 return 0; 12601} 12602_ACEOF 12603for ac_lib in '' malloc; do 12604 if test -z "$ac_lib"; then 12605 ac_res="none required" 12606 else 12607 ac_res=-l$ac_lib 12608 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12609 fi 12610 rm -f conftest.$ac_objext conftest$ac_exeext 12611if { (ac_try="$ac_link" 12612case "(($ac_try" in 12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12614 *) ac_try_echo=$ac_try;; 12615esac 12616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12617 (eval "$ac_link") 2>conftest.er1 12618 ac_status=$? 12619 grep -v '^ *+' conftest.er1 >conftest.err 12620 rm -f conftest.er1 12621 cat conftest.err >&5 12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12623 (exit $ac_status); } && 12624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12625 { (case "(($ac_try" in 12626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12627 *) ac_try_echo=$ac_try;; 12628esac 12629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12630 (eval "$ac_try") 2>&5 12631 ac_status=$? 12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12633 (exit $ac_status); }; } && 12634 { ac_try='test -s conftest$ac_exeext' 12635 { (case "(($ac_try" in 12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12637 *) ac_try_echo=$ac_try;; 12638esac 12639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12640 (eval "$ac_try") 2>&5 12641 ac_status=$? 12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12643 (exit $ac_status); }; }; then 12644 ac_cv_search_mallinfo=$ac_res 12645else 12646 echo "$as_me: failed program was:" >&5 12647sed 's/^/| /' conftest.$ac_ext >&5 12648 12649 12650fi 12651 12652rm -f core conftest.err conftest.$ac_objext \ 12653 conftest$ac_exeext 12654 if test "${ac_cv_search_mallinfo+set}" = set; then 12655 break 12656fi 12657done 12658if test "${ac_cv_search_mallinfo+set}" = set; then 12659 : 12660else 12661 ac_cv_search_mallinfo=no 12662fi 12663rm conftest.$ac_ext 12664LIBS=$ac_func_search_save_LIBS 12665fi 12666{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5 12667echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; } 12668ac_res=$ac_cv_search_mallinfo 12669if test "$ac_res" != no; then 12670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12671 12672cat >>confdefs.h <<\_ACEOF 12673#define HAVE_MALLINFO 1 12674_ACEOF 12675 12676fi 12677 12678 12679if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 12680 12681{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 12682echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 12683if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 12684 echo $ECHO_N "(cached) $ECHO_C" >&6 12685else 12686 ac_check_lib_save_LIBS=$LIBS 12687LIBS="-lpthread $LIBS" 12688cat >conftest.$ac_ext <<_ACEOF 12689/* confdefs.h. */ 12690_ACEOF 12691cat confdefs.h >>conftest.$ac_ext 12692cat >>conftest.$ac_ext <<_ACEOF 12693/* end confdefs.h. */ 12694 12695/* Override any GCC internal prototype to avoid an error. 12696 Use char because int might match the return type of a GCC 12697 builtin and then its argument prototype would still apply. */ 12698#ifdef __cplusplus 12699extern "C" 12700#endif 12701char pthread_mutex_init (); 12702int 12703main () 12704{ 12705return pthread_mutex_init (); 12706 ; 12707 return 0; 12708} 12709_ACEOF 12710rm -f conftest.$ac_objext conftest$ac_exeext 12711if { (ac_try="$ac_link" 12712case "(($ac_try" in 12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12714 *) ac_try_echo=$ac_try;; 12715esac 12716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12717 (eval "$ac_link") 2>conftest.er1 12718 ac_status=$? 12719 grep -v '^ *+' conftest.er1 >conftest.err 12720 rm -f conftest.er1 12721 cat conftest.err >&5 12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12723 (exit $ac_status); } && 12724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12725 { (case "(($ac_try" in 12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12727 *) ac_try_echo=$ac_try;; 12728esac 12729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12730 (eval "$ac_try") 2>&5 12731 ac_status=$? 12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12733 (exit $ac_status); }; } && 12734 { ac_try='test -s conftest$ac_exeext' 12735 { (case "(($ac_try" in 12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12737 *) ac_try_echo=$ac_try;; 12738esac 12739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12740 (eval "$ac_try") 2>&5 12741 ac_status=$? 12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12743 (exit $ac_status); }; }; then 12744 ac_cv_lib_pthread_pthread_mutex_init=yes 12745else 12746 echo "$as_me: failed program was:" >&5 12747sed 's/^/| /' conftest.$ac_ext >&5 12748 12749 ac_cv_lib_pthread_pthread_mutex_init=no 12750fi 12751 12752rm -f core conftest.err conftest.$ac_objext \ 12753 conftest$ac_exeext conftest.$ac_ext 12754LIBS=$ac_check_lib_save_LIBS 12755fi 12756{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 12757echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 12758if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 12759 cat >>confdefs.h <<_ACEOF 12760#define HAVE_LIBPTHREAD 1 12761_ACEOF 12762 12763 LIBS="-lpthread $LIBS" 12764 12765fi 12766 12767 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5 12768echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; } 12769if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12770 echo $ECHO_N "(cached) $ECHO_C" >&6 12771else 12772 ac_func_search_save_LIBS=$LIBS 12773cat >conftest.$ac_ext <<_ACEOF 12774/* confdefs.h. */ 12775_ACEOF 12776cat confdefs.h >>conftest.$ac_ext 12777cat >>conftest.$ac_ext <<_ACEOF 12778/* end confdefs.h. */ 12779 12780/* Override any GCC internal prototype to avoid an error. 12781 Use char because int might match the return type of a GCC 12782 builtin and then its argument prototype would still apply. */ 12783#ifdef __cplusplus 12784extern "C" 12785#endif 12786char pthread_mutex_lock (); 12787int 12788main () 12789{ 12790return pthread_mutex_lock (); 12791 ; 12792 return 0; 12793} 12794_ACEOF 12795for ac_lib in '' pthread; do 12796 if test -z "$ac_lib"; then 12797 ac_res="none required" 12798 else 12799 ac_res=-l$ac_lib 12800 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12801 fi 12802 rm -f conftest.$ac_objext conftest$ac_exeext 12803if { (ac_try="$ac_link" 12804case "(($ac_try" in 12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12806 *) ac_try_echo=$ac_try;; 12807esac 12808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12809 (eval "$ac_link") 2>conftest.er1 12810 ac_status=$? 12811 grep -v '^ *+' conftest.er1 >conftest.err 12812 rm -f conftest.er1 12813 cat conftest.err >&5 12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12815 (exit $ac_status); } && 12816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12817 { (case "(($ac_try" in 12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12819 *) ac_try_echo=$ac_try;; 12820esac 12821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12822 (eval "$ac_try") 2>&5 12823 ac_status=$? 12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12825 (exit $ac_status); }; } && 12826 { ac_try='test -s conftest$ac_exeext' 12827 { (case "(($ac_try" in 12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12829 *) ac_try_echo=$ac_try;; 12830esac 12831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12832 (eval "$ac_try") 2>&5 12833 ac_status=$? 12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12835 (exit $ac_status); }; }; then 12836 ac_cv_search_pthread_mutex_lock=$ac_res 12837else 12838 echo "$as_me: failed program was:" >&5 12839sed 's/^/| /' conftest.$ac_ext >&5 12840 12841 12842fi 12843 12844rm -f core conftest.err conftest.$ac_objext \ 12845 conftest$ac_exeext 12846 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12847 break 12848fi 12849done 12850if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then 12851 : 12852else 12853 ac_cv_search_pthread_mutex_lock=no 12854fi 12855rm conftest.$ac_ext 12856LIBS=$ac_func_search_save_LIBS 12857fi 12858{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5 12859echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; } 12860ac_res=$ac_cv_search_pthread_mutex_lock 12861if test "$ac_res" != no; then 12862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12863 12864cat >>confdefs.h <<\_ACEOF 12865#define HAVE_PTHREAD_MUTEX_LOCK 1 12866_ACEOF 12867 12868fi 12869 12870 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5 12871echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; } 12872if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12873 echo $ECHO_N "(cached) $ECHO_C" >&6 12874else 12875 ac_func_search_save_LIBS=$LIBS 12876cat >conftest.$ac_ext <<_ACEOF 12877/* confdefs.h. */ 12878_ACEOF 12879cat confdefs.h >>conftest.$ac_ext 12880cat >>conftest.$ac_ext <<_ACEOF 12881/* end confdefs.h. */ 12882 12883/* Override any GCC internal prototype to avoid an error. 12884 Use char because int might match the return type of a GCC 12885 builtin and then its argument prototype would still apply. */ 12886#ifdef __cplusplus 12887extern "C" 12888#endif 12889char pthread_rwlock_init (); 12890int 12891main () 12892{ 12893return pthread_rwlock_init (); 12894 ; 12895 return 0; 12896} 12897_ACEOF 12898for ac_lib in '' pthread; do 12899 if test -z "$ac_lib"; then 12900 ac_res="none required" 12901 else 12902 ac_res=-l$ac_lib 12903 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12904 fi 12905 rm -f conftest.$ac_objext conftest$ac_exeext 12906if { (ac_try="$ac_link" 12907case "(($ac_try" in 12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12909 *) ac_try_echo=$ac_try;; 12910esac 12911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12912 (eval "$ac_link") 2>conftest.er1 12913 ac_status=$? 12914 grep -v '^ *+' conftest.er1 >conftest.err 12915 rm -f conftest.er1 12916 cat conftest.err >&5 12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12918 (exit $ac_status); } && 12919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12920 { (case "(($ac_try" in 12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12922 *) ac_try_echo=$ac_try;; 12923esac 12924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12925 (eval "$ac_try") 2>&5 12926 ac_status=$? 12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12928 (exit $ac_status); }; } && 12929 { ac_try='test -s conftest$ac_exeext' 12930 { (case "(($ac_try" in 12931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12932 *) ac_try_echo=$ac_try;; 12933esac 12934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12935 (eval "$ac_try") 2>&5 12936 ac_status=$? 12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12938 (exit $ac_status); }; }; then 12939 ac_cv_search_pthread_rwlock_init=$ac_res 12940else 12941 echo "$as_me: failed program was:" >&5 12942sed 's/^/| /' conftest.$ac_ext >&5 12943 12944 12945fi 12946 12947rm -f core conftest.err conftest.$ac_objext \ 12948 conftest$ac_exeext 12949 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12950 break 12951fi 12952done 12953if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then 12954 : 12955else 12956 ac_cv_search_pthread_rwlock_init=no 12957fi 12958rm conftest.$ac_ext 12959LIBS=$ac_func_search_save_LIBS 12960fi 12961{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5 12962echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; } 12963ac_res=$ac_cv_search_pthread_rwlock_init 12964if test "$ac_res" != no; then 12965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12966 12967cat >>confdefs.h <<\_ACEOF 12968#define HAVE_PTHREAD_RWLOCK_INIT 1 12969_ACEOF 12970 12971fi 12972 12973 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5 12974echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; } 12975if test "${ac_cv_search_pthread_getspecific+set}" = set; then 12976 echo $ECHO_N "(cached) $ECHO_C" >&6 12977else 12978 ac_func_search_save_LIBS=$LIBS 12979cat >conftest.$ac_ext <<_ACEOF 12980/* confdefs.h. */ 12981_ACEOF 12982cat confdefs.h >>conftest.$ac_ext 12983cat >>conftest.$ac_ext <<_ACEOF 12984/* end confdefs.h. */ 12985 12986/* Override any GCC internal prototype to avoid an error. 12987 Use char because int might match the return type of a GCC 12988 builtin and then its argument prototype would still apply. */ 12989#ifdef __cplusplus 12990extern "C" 12991#endif 12992char pthread_getspecific (); 12993int 12994main () 12995{ 12996return pthread_getspecific (); 12997 ; 12998 return 0; 12999} 13000_ACEOF 13001for ac_lib in '' pthread; do 13002 if test -z "$ac_lib"; then 13003 ac_res="none required" 13004 else 13005 ac_res=-l$ac_lib 13006 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13007 fi 13008 rm -f conftest.$ac_objext conftest$ac_exeext 13009if { (ac_try="$ac_link" 13010case "(($ac_try" in 13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13012 *) ac_try_echo=$ac_try;; 13013esac 13014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13015 (eval "$ac_link") 2>conftest.er1 13016 ac_status=$? 13017 grep -v '^ *+' conftest.er1 >conftest.err 13018 rm -f conftest.er1 13019 cat conftest.err >&5 13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13021 (exit $ac_status); } && 13022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13023 { (case "(($ac_try" in 13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13025 *) ac_try_echo=$ac_try;; 13026esac 13027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13028 (eval "$ac_try") 2>&5 13029 ac_status=$? 13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13031 (exit $ac_status); }; } && 13032 { ac_try='test -s conftest$ac_exeext' 13033 { (case "(($ac_try" in 13034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13035 *) ac_try_echo=$ac_try;; 13036esac 13037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13038 (eval "$ac_try") 2>&5 13039 ac_status=$? 13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13041 (exit $ac_status); }; }; then 13042 ac_cv_search_pthread_getspecific=$ac_res 13043else 13044 echo "$as_me: failed program was:" >&5 13045sed 's/^/| /' conftest.$ac_ext >&5 13046 13047 13048fi 13049 13050rm -f core conftest.err conftest.$ac_objext \ 13051 conftest$ac_exeext 13052 if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13053 break 13054fi 13055done 13056if test "${ac_cv_search_pthread_getspecific+set}" = set; then 13057 : 13058else 13059 ac_cv_search_pthread_getspecific=no 13060fi 13061rm conftest.$ac_ext 13062LIBS=$ac_func_search_save_LIBS 13063fi 13064{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5 13065echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; } 13066ac_res=$ac_cv_search_pthread_getspecific 13067if test "$ac_res" != no; then 13068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13069 13070cat >>confdefs.h <<\_ACEOF 13071#define HAVE_PTHREAD_GETSPECIFIC 1 13072_ACEOF 13073 13074fi 13075 13076fi 13077 13078 13079# Check whether --with-udis86 was given. 13080if test "${with_udis86+set}" = set; then 13081 withval=$with_udis86; 13082 USE_UDIS86=1 13083 13084 case "$withval" in 13085 /usr/lib|yes) ;; 13086 *) LDFLAGS="$LDFLAGS -L${withval}" ;; 13087 esac 13088 13089{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5 13090echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; } 13091if test "${ac_cv_lib_udis86_ud_init+set}" = set; then 13092 echo $ECHO_N "(cached) $ECHO_C" >&6 13093else 13094 ac_check_lib_save_LIBS=$LIBS 13095LIBS="-ludis86 $LIBS" 13096cat >conftest.$ac_ext <<_ACEOF 13097/* confdefs.h. */ 13098_ACEOF 13099cat confdefs.h >>conftest.$ac_ext 13100cat >>conftest.$ac_ext <<_ACEOF 13101/* end confdefs.h. */ 13102 13103/* Override any GCC internal prototype to avoid an error. 13104 Use char because int might match the return type of a GCC 13105 builtin and then its argument prototype would still apply. */ 13106#ifdef __cplusplus 13107extern "C" 13108#endif 13109char ud_init (); 13110int 13111main () 13112{ 13113return ud_init (); 13114 ; 13115 return 0; 13116} 13117_ACEOF 13118rm -f conftest.$ac_objext conftest$ac_exeext 13119if { (ac_try="$ac_link" 13120case "(($ac_try" in 13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13122 *) ac_try_echo=$ac_try;; 13123esac 13124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13125 (eval "$ac_link") 2>conftest.er1 13126 ac_status=$? 13127 grep -v '^ *+' conftest.er1 >conftest.err 13128 rm -f conftest.er1 13129 cat conftest.err >&5 13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13131 (exit $ac_status); } && 13132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13133 { (case "(($ac_try" in 13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13135 *) ac_try_echo=$ac_try;; 13136esac 13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13138 (eval "$ac_try") 2>&5 13139 ac_status=$? 13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13141 (exit $ac_status); }; } && 13142 { ac_try='test -s conftest$ac_exeext' 13143 { (case "(($ac_try" in 13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13145 *) ac_try_echo=$ac_try;; 13146esac 13147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13148 (eval "$ac_try") 2>&5 13149 ac_status=$? 13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13151 (exit $ac_status); }; }; then 13152 ac_cv_lib_udis86_ud_init=yes 13153else 13154 echo "$as_me: failed program was:" >&5 13155sed 's/^/| /' conftest.$ac_ext >&5 13156 13157 ac_cv_lib_udis86_ud_init=no 13158fi 13159 13160rm -f core conftest.err conftest.$ac_objext \ 13161 conftest$ac_exeext conftest.$ac_ext 13162LIBS=$ac_check_lib_save_LIBS 13163fi 13164{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5 13165echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; } 13166if test $ac_cv_lib_udis86_ud_init = yes; then 13167 cat >>confdefs.h <<_ACEOF 13168#define HAVE_LIBUDIS86 1 13169_ACEOF 13170 13171 LIBS="-ludis86 $LIBS" 13172 13173else 13174 13175 echo "Error! You need to have libudis86 around." 13176 exit -1 13177 13178fi 13179 13180 13181else 13182 USE_UDIS86=0 13183 13184fi 13185 13186 13187cat >>confdefs.h <<_ACEOF 13188#define USE_UDIS86 $USE_UDIS86 13189_ACEOF 13190 13191 13192 13193# Check whether --with-oprofile was given. 13194if test "${with_oprofile+set}" = set; then 13195 withval=$with_oprofile; 13196 USE_OPROFILE=1 13197 13198 case "$withval" in 13199 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;; 13200 no) llvm_cv_oppath= 13201 USE_OPROFILE=0 13202 ;; 13203 *) llvm_cv_oppath="${withval}/lib/oprofile" 13204 CPPFLAGS="-I${withval}/include";; 13205 esac 13206 if test -n "$llvm_cv_oppath" ; then 13207 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}" 13208 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5 13209echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; } 13210if test "${ac_cv_search_bfd_init+set}" = set; then 13211 echo $ECHO_N "(cached) $ECHO_C" >&6 13212else 13213 ac_func_search_save_LIBS=$LIBS 13214cat >conftest.$ac_ext <<_ACEOF 13215/* confdefs.h. */ 13216_ACEOF 13217cat confdefs.h >>conftest.$ac_ext 13218cat >>conftest.$ac_ext <<_ACEOF 13219/* end confdefs.h. */ 13220 13221/* Override any GCC internal prototype to avoid an error. 13222 Use char because int might match the return type of a GCC 13223 builtin and then its argument prototype would still apply. */ 13224#ifdef __cplusplus 13225extern "C" 13226#endif 13227char bfd_init (); 13228int 13229main () 13230{ 13231return bfd_init (); 13232 ; 13233 return 0; 13234} 13235_ACEOF 13236for ac_lib in '' bfd; do 13237 if test -z "$ac_lib"; then 13238 ac_res="none required" 13239 else 13240 ac_res=-l$ac_lib 13241 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13242 fi 13243 rm -f conftest.$ac_objext conftest$ac_exeext 13244if { (ac_try="$ac_link" 13245case "(($ac_try" in 13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13247 *) ac_try_echo=$ac_try;; 13248esac 13249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13250 (eval "$ac_link") 2>conftest.er1 13251 ac_status=$? 13252 grep -v '^ *+' conftest.er1 >conftest.err 13253 rm -f conftest.er1 13254 cat conftest.err >&5 13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13256 (exit $ac_status); } && 13257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13258 { (case "(($ac_try" in 13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13260 *) ac_try_echo=$ac_try;; 13261esac 13262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13263 (eval "$ac_try") 2>&5 13264 ac_status=$? 13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13266 (exit $ac_status); }; } && 13267 { ac_try='test -s conftest$ac_exeext' 13268 { (case "(($ac_try" in 13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13270 *) ac_try_echo=$ac_try;; 13271esac 13272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13273 (eval "$ac_try") 2>&5 13274 ac_status=$? 13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13276 (exit $ac_status); }; }; then 13277 ac_cv_search_bfd_init=$ac_res 13278else 13279 echo "$as_me: failed program was:" >&5 13280sed 's/^/| /' conftest.$ac_ext >&5 13281 13282 13283fi 13284 13285rm -f core conftest.err conftest.$ac_objext \ 13286 conftest$ac_exeext 13287 if test "${ac_cv_search_bfd_init+set}" = set; then 13288 break 13289fi 13290done 13291if test "${ac_cv_search_bfd_init+set}" = set; then 13292 : 13293else 13294 ac_cv_search_bfd_init=no 13295fi 13296rm conftest.$ac_ext 13297LIBS=$ac_func_search_save_LIBS 13298fi 13299{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5 13300echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; } 13301ac_res=$ac_cv_search_bfd_init 13302if test "$ac_res" != no; then 13303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13304 13305fi 13306 13307 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5 13308echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; } 13309if test "${ac_cv_search_op_open_agent+set}" = set; then 13310 echo $ECHO_N "(cached) $ECHO_C" >&6 13311else 13312 ac_func_search_save_LIBS=$LIBS 13313cat >conftest.$ac_ext <<_ACEOF 13314/* confdefs.h. */ 13315_ACEOF 13316cat confdefs.h >>conftest.$ac_ext 13317cat >>conftest.$ac_ext <<_ACEOF 13318/* end confdefs.h. */ 13319 13320/* Override any GCC internal prototype to avoid an error. 13321 Use char because int might match the return type of a GCC 13322 builtin and then its argument prototype would still apply. */ 13323#ifdef __cplusplus 13324extern "C" 13325#endif 13326char op_open_agent (); 13327int 13328main () 13329{ 13330return op_open_agent (); 13331 ; 13332 return 0; 13333} 13334_ACEOF 13335for ac_lib in '' opagent; do 13336 if test -z "$ac_lib"; then 13337 ac_res="none required" 13338 else 13339 ac_res=-l$ac_lib 13340 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13341 fi 13342 rm -f conftest.$ac_objext conftest$ac_exeext 13343if { (ac_try="$ac_link" 13344case "(($ac_try" in 13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13346 *) ac_try_echo=$ac_try;; 13347esac 13348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13349 (eval "$ac_link") 2>conftest.er1 13350 ac_status=$? 13351 grep -v '^ *+' conftest.er1 >conftest.err 13352 rm -f conftest.er1 13353 cat conftest.err >&5 13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13355 (exit $ac_status); } && 13356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13357 { (case "(($ac_try" in 13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13359 *) ac_try_echo=$ac_try;; 13360esac 13361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13362 (eval "$ac_try") 2>&5 13363 ac_status=$? 13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13365 (exit $ac_status); }; } && 13366 { ac_try='test -s conftest$ac_exeext' 13367 { (case "(($ac_try" in 13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13369 *) ac_try_echo=$ac_try;; 13370esac 13371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13372 (eval "$ac_try") 2>&5 13373 ac_status=$? 13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13375 (exit $ac_status); }; }; then 13376 ac_cv_search_op_open_agent=$ac_res 13377else 13378 echo "$as_me: failed program was:" >&5 13379sed 's/^/| /' conftest.$ac_ext >&5 13380 13381 13382fi 13383 13384rm -f core conftest.err conftest.$ac_objext \ 13385 conftest$ac_exeext 13386 if test "${ac_cv_search_op_open_agent+set}" = set; then 13387 break 13388fi 13389done 13390if test "${ac_cv_search_op_open_agent+set}" = set; then 13391 : 13392else 13393 ac_cv_search_op_open_agent=no 13394fi 13395rm conftest.$ac_ext 13396LIBS=$ac_func_search_save_LIBS 13397fi 13398{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5 13399echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; } 13400ac_res=$ac_cv_search_op_open_agent 13401if test "$ac_res" != no; then 13402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13403 13404else 13405 13406 echo "Error! You need to have libopagent around." 13407 exit -1 13408 13409fi 13410 13411 if test "${ac_cv_header_opagent_h+set}" = set; then 13412 { echo "$as_me:$LINENO: checking for opagent.h" >&5 13413echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13414if test "${ac_cv_header_opagent_h+set}" = set; then 13415 echo $ECHO_N "(cached) $ECHO_C" >&6 13416fi 13417{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13418echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13419else 13420 # Is the header compilable? 13421{ echo "$as_me:$LINENO: checking opagent.h usability" >&5 13422echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; } 13423cat >conftest.$ac_ext <<_ACEOF 13424/* confdefs.h. */ 13425_ACEOF 13426cat confdefs.h >>conftest.$ac_ext 13427cat >>conftest.$ac_ext <<_ACEOF 13428/* end confdefs.h. */ 13429$ac_includes_default 13430#include <opagent.h> 13431_ACEOF 13432rm -f conftest.$ac_objext 13433if { (ac_try="$ac_compile" 13434case "(($ac_try" in 13435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13436 *) ac_try_echo=$ac_try;; 13437esac 13438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13439 (eval "$ac_compile") 2>conftest.er1 13440 ac_status=$? 13441 grep -v '^ *+' conftest.er1 >conftest.err 13442 rm -f conftest.er1 13443 cat conftest.err >&5 13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13445 (exit $ac_status); } && 13446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13447 { (case "(($ac_try" in 13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13449 *) ac_try_echo=$ac_try;; 13450esac 13451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13452 (eval "$ac_try") 2>&5 13453 ac_status=$? 13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13455 (exit $ac_status); }; } && 13456 { ac_try='test -s conftest.$ac_objext' 13457 { (case "(($ac_try" in 13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13459 *) ac_try_echo=$ac_try;; 13460esac 13461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13462 (eval "$ac_try") 2>&5 13463 ac_status=$? 13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13465 (exit $ac_status); }; }; then 13466 ac_header_compiler=yes 13467else 13468 echo "$as_me: failed program was:" >&5 13469sed 's/^/| /' conftest.$ac_ext >&5 13470 13471 ac_header_compiler=no 13472fi 13473 13474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13475{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13476echo "${ECHO_T}$ac_header_compiler" >&6; } 13477 13478# Is the header present? 13479{ echo "$as_me:$LINENO: checking opagent.h presence" >&5 13480echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; } 13481cat >conftest.$ac_ext <<_ACEOF 13482/* confdefs.h. */ 13483_ACEOF 13484cat confdefs.h >>conftest.$ac_ext 13485cat >>conftest.$ac_ext <<_ACEOF 13486/* end confdefs.h. */ 13487#include <opagent.h> 13488_ACEOF 13489if { (ac_try="$ac_cpp conftest.$ac_ext" 13490case "(($ac_try" in 13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13492 *) ac_try_echo=$ac_try;; 13493esac 13494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 13496 ac_status=$? 13497 grep -v '^ *+' conftest.er1 >conftest.err 13498 rm -f conftest.er1 13499 cat conftest.err >&5 13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13501 (exit $ac_status); } >/dev/null; then 13502 if test -s conftest.err; then 13503 ac_cpp_err=$ac_c_preproc_warn_flag 13504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13505 else 13506 ac_cpp_err= 13507 fi 13508else 13509 ac_cpp_err=yes 13510fi 13511if test -z "$ac_cpp_err"; then 13512 ac_header_preproc=yes 13513else 13514 echo "$as_me: failed program was:" >&5 13515sed 's/^/| /' conftest.$ac_ext >&5 13516 13517 ac_header_preproc=no 13518fi 13519 13520rm -f conftest.err conftest.$ac_ext 13521{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13522echo "${ECHO_T}$ac_header_preproc" >&6; } 13523 13524# So? What about this header? 13525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13526 yes:no: ) 13527 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5 13528echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13529 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5 13530echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;} 13531 ac_header_preproc=yes 13532 ;; 13533 no:yes:* ) 13534 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5 13535echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;} 13536 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5 13537echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;} 13538 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5 13539echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;} 13540 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5 13541echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;} 13542 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5 13543echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;} 13544 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5 13545echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;} 13546 ( cat <<\_ASBOX 13547## ------------------------------ ## 13548## Report this to bugs@yourdomain ## 13549## ------------------------------ ## 13550_ASBOX 13551 ) | sed "s/^/$as_me: WARNING: /" >&2 13552 ;; 13553esac 13554{ echo "$as_me:$LINENO: checking for opagent.h" >&5 13555echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; } 13556if test "${ac_cv_header_opagent_h+set}" = set; then 13557 echo $ECHO_N "(cached) $ECHO_C" >&6 13558else 13559 ac_cv_header_opagent_h=$ac_header_preproc 13560fi 13561{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5 13562echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; } 13563 13564fi 13565if test $ac_cv_header_opagent_h = yes; then 13566 : 13567else 13568 13569 echo "Error! You need to have opagent.h around." 13570 exit -1 13571 13572fi 13573 13574 13575 fi 13576 13577else 13578 13579 USE_OPROFILE=0 13580 13581 13582fi 13583 13584 13585cat >>confdefs.h <<_ACEOF 13586#define USE_OPROFILE $USE_OPROFILE 13587_ACEOF 13588 13589 13590 13591 13592 13593 13594 13595 13596ac_header_dirent=no 13597for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 13598 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 13599{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 13600echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 13601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 13602 echo $ECHO_N "(cached) $ECHO_C" >&6 13603else 13604 cat >conftest.$ac_ext <<_ACEOF 13605/* confdefs.h. */ 13606_ACEOF 13607cat confdefs.h >>conftest.$ac_ext 13608cat >>conftest.$ac_ext <<_ACEOF 13609/* end confdefs.h. */ 13610#include <sys/types.h> 13611#include <$ac_hdr> 13612 13613int 13614main () 13615{ 13616if ((DIR *) 0) 13617return 0; 13618 ; 13619 return 0; 13620} 13621_ACEOF 13622rm -f conftest.$ac_objext 13623if { (ac_try="$ac_compile" 13624case "(($ac_try" in 13625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13626 *) ac_try_echo=$ac_try;; 13627esac 13628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13629 (eval "$ac_compile") 2>conftest.er1 13630 ac_status=$? 13631 grep -v '^ *+' conftest.er1 >conftest.err 13632 rm -f conftest.er1 13633 cat conftest.err >&5 13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13635 (exit $ac_status); } && 13636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13637 { (case "(($ac_try" in 13638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13639 *) ac_try_echo=$ac_try;; 13640esac 13641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13642 (eval "$ac_try") 2>&5 13643 ac_status=$? 13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13645 (exit $ac_status); }; } && 13646 { ac_try='test -s conftest.$ac_objext' 13647 { (case "(($ac_try" in 13648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13649 *) ac_try_echo=$ac_try;; 13650esac 13651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13652 (eval "$ac_try") 2>&5 13653 ac_status=$? 13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13655 (exit $ac_status); }; }; then 13656 eval "$as_ac_Header=yes" 13657else 13658 echo "$as_me: failed program was:" >&5 13659sed 's/^/| /' conftest.$ac_ext >&5 13660 13661 eval "$as_ac_Header=no" 13662fi 13663 13664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13665fi 13666ac_res=`eval echo '${'$as_ac_Header'}'` 13667 { echo "$as_me:$LINENO: result: $ac_res" >&5 13668echo "${ECHO_T}$ac_res" >&6; } 13669if test `eval echo '${'$as_ac_Header'}'` = yes; then 13670 cat >>confdefs.h <<_ACEOF 13671#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 13672_ACEOF 13673 13674ac_header_dirent=$ac_hdr; break 13675fi 13676 13677done 13678# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 13679if test $ac_header_dirent = dirent.h; then 13680 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13681echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13682if test "${ac_cv_search_opendir+set}" = set; then 13683 echo $ECHO_N "(cached) $ECHO_C" >&6 13684else 13685 ac_func_search_save_LIBS=$LIBS 13686cat >conftest.$ac_ext <<_ACEOF 13687/* confdefs.h. */ 13688_ACEOF 13689cat confdefs.h >>conftest.$ac_ext 13690cat >>conftest.$ac_ext <<_ACEOF 13691/* end confdefs.h. */ 13692 13693/* Override any GCC internal prototype to avoid an error. 13694 Use char because int might match the return type of a GCC 13695 builtin and then its argument prototype would still apply. */ 13696#ifdef __cplusplus 13697extern "C" 13698#endif 13699char opendir (); 13700int 13701main () 13702{ 13703return opendir (); 13704 ; 13705 return 0; 13706} 13707_ACEOF 13708for ac_lib in '' dir; do 13709 if test -z "$ac_lib"; then 13710 ac_res="none required" 13711 else 13712 ac_res=-l$ac_lib 13713 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13714 fi 13715 rm -f conftest.$ac_objext conftest$ac_exeext 13716if { (ac_try="$ac_link" 13717case "(($ac_try" in 13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13719 *) ac_try_echo=$ac_try;; 13720esac 13721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13722 (eval "$ac_link") 2>conftest.er1 13723 ac_status=$? 13724 grep -v '^ *+' conftest.er1 >conftest.err 13725 rm -f conftest.er1 13726 cat conftest.err >&5 13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13728 (exit $ac_status); } && 13729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13730 { (case "(($ac_try" in 13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13732 *) ac_try_echo=$ac_try;; 13733esac 13734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13735 (eval "$ac_try") 2>&5 13736 ac_status=$? 13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13738 (exit $ac_status); }; } && 13739 { ac_try='test -s conftest$ac_exeext' 13740 { (case "(($ac_try" in 13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13742 *) ac_try_echo=$ac_try;; 13743esac 13744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13745 (eval "$ac_try") 2>&5 13746 ac_status=$? 13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13748 (exit $ac_status); }; }; then 13749 ac_cv_search_opendir=$ac_res 13750else 13751 echo "$as_me: failed program was:" >&5 13752sed 's/^/| /' conftest.$ac_ext >&5 13753 13754 13755fi 13756 13757rm -f core conftest.err conftest.$ac_objext \ 13758 conftest$ac_exeext 13759 if test "${ac_cv_search_opendir+set}" = set; then 13760 break 13761fi 13762done 13763if test "${ac_cv_search_opendir+set}" = set; then 13764 : 13765else 13766 ac_cv_search_opendir=no 13767fi 13768rm conftest.$ac_ext 13769LIBS=$ac_func_search_save_LIBS 13770fi 13771{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13772echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 13773ac_res=$ac_cv_search_opendir 13774if test "$ac_res" != no; then 13775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13776 13777fi 13778 13779else 13780 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 13781echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 13782if test "${ac_cv_search_opendir+set}" = set; then 13783 echo $ECHO_N "(cached) $ECHO_C" >&6 13784else 13785 ac_func_search_save_LIBS=$LIBS 13786cat >conftest.$ac_ext <<_ACEOF 13787/* confdefs.h. */ 13788_ACEOF 13789cat confdefs.h >>conftest.$ac_ext 13790cat >>conftest.$ac_ext <<_ACEOF 13791/* end confdefs.h. */ 13792 13793/* Override any GCC internal prototype to avoid an error. 13794 Use char because int might match the return type of a GCC 13795 builtin and then its argument prototype would still apply. */ 13796#ifdef __cplusplus 13797extern "C" 13798#endif 13799char opendir (); 13800int 13801main () 13802{ 13803return opendir (); 13804 ; 13805 return 0; 13806} 13807_ACEOF 13808for ac_lib in '' x; do 13809 if test -z "$ac_lib"; then 13810 ac_res="none required" 13811 else 13812 ac_res=-l$ac_lib 13813 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13814 fi 13815 rm -f conftest.$ac_objext conftest$ac_exeext 13816if { (ac_try="$ac_link" 13817case "(($ac_try" in 13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13819 *) ac_try_echo=$ac_try;; 13820esac 13821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13822 (eval "$ac_link") 2>conftest.er1 13823 ac_status=$? 13824 grep -v '^ *+' conftest.er1 >conftest.err 13825 rm -f conftest.er1 13826 cat conftest.err >&5 13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13828 (exit $ac_status); } && 13829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13830 { (case "(($ac_try" in 13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13832 *) ac_try_echo=$ac_try;; 13833esac 13834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13835 (eval "$ac_try") 2>&5 13836 ac_status=$? 13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13838 (exit $ac_status); }; } && 13839 { ac_try='test -s conftest$ac_exeext' 13840 { (case "(($ac_try" in 13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13842 *) ac_try_echo=$ac_try;; 13843esac 13844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13845 (eval "$ac_try") 2>&5 13846 ac_status=$? 13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13848 (exit $ac_status); }; }; then 13849 ac_cv_search_opendir=$ac_res 13850else 13851 echo "$as_me: failed program was:" >&5 13852sed 's/^/| /' conftest.$ac_ext >&5 13853 13854 13855fi 13856 13857rm -f core conftest.err conftest.$ac_objext \ 13858 conftest$ac_exeext 13859 if test "${ac_cv_search_opendir+set}" = set; then 13860 break 13861fi 13862done 13863if test "${ac_cv_search_opendir+set}" = set; then 13864 : 13865else 13866 ac_cv_search_opendir=no 13867fi 13868rm conftest.$ac_ext 13869LIBS=$ac_func_search_save_LIBS 13870fi 13871{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 13872echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 13873ac_res=$ac_cv_search_opendir 13874if test "$ac_res" != no; then 13875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13876 13877fi 13878 13879fi 13880 13881{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5 13882echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; } 13883if test "${ac_cv_header_mmap_anon+set}" = set; then 13884 echo $ECHO_N "(cached) $ECHO_C" >&6 13885else 13886 ac_ext=c 13887ac_cpp='$CPP $CPPFLAGS' 13888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13890ac_compiler_gnu=$ac_cv_c_compiler_gnu 13891 13892 cat >conftest.$ac_ext <<_ACEOF 13893/* confdefs.h. */ 13894_ACEOF 13895cat confdefs.h >>conftest.$ac_ext 13896cat >>conftest.$ac_ext <<_ACEOF 13897/* end confdefs.h. */ 13898#include <sys/mman.h> 13899#include <unistd.h> 13900#include <fcntl.h> 13901int 13902main () 13903{ 13904mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0); 13905 ; 13906 return 0; 13907} 13908_ACEOF 13909rm -f conftest.$ac_objext 13910if { (ac_try="$ac_compile" 13911case "(($ac_try" in 13912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13913 *) ac_try_echo=$ac_try;; 13914esac 13915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13916 (eval "$ac_compile") 2>conftest.er1 13917 ac_status=$? 13918 grep -v '^ *+' conftest.er1 >conftest.err 13919 rm -f conftest.er1 13920 cat conftest.err >&5 13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13922 (exit $ac_status); } && 13923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13924 { (case "(($ac_try" in 13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13926 *) ac_try_echo=$ac_try;; 13927esac 13928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13929 (eval "$ac_try") 2>&5 13930 ac_status=$? 13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13932 (exit $ac_status); }; } && 13933 { ac_try='test -s conftest.$ac_objext' 13934 { (case "(($ac_try" in 13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13936 *) ac_try_echo=$ac_try;; 13937esac 13938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13939 (eval "$ac_try") 2>&5 13940 ac_status=$? 13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13942 (exit $ac_status); }; }; then 13943 ac_cv_header_mmap_anon=yes 13944else 13945 echo "$as_me: failed program was:" >&5 13946sed 's/^/| /' conftest.$ac_ext >&5 13947 13948 ac_cv_header_mmap_anon=no 13949fi 13950 13951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13952 ac_ext=c 13953ac_cpp='$CPP $CPPFLAGS' 13954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13956ac_compiler_gnu=$ac_cv_c_compiler_gnu 13957 13958 13959fi 13960{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5 13961echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; } 13962if test "$ac_cv_header_mmap_anon" = yes; then 13963 13964cat >>confdefs.h <<\_ACEOF 13965#define HAVE_MMAP_ANONYMOUS 1 13966_ACEOF 13967 13968fi 13969 13970{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 13971echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } 13972if test "${ac_cv_header_stat_broken+set}" = set; then 13973 echo $ECHO_N "(cached) $ECHO_C" >&6 13974else 13975 cat >conftest.$ac_ext <<_ACEOF 13976/* confdefs.h. */ 13977_ACEOF 13978cat confdefs.h >>conftest.$ac_ext 13979cat >>conftest.$ac_ext <<_ACEOF 13980/* end confdefs.h. */ 13981#include <sys/types.h> 13982#include <sys/stat.h> 13983 13984#if defined S_ISBLK && defined S_IFDIR 13985# if S_ISBLK (S_IFDIR) 13986You lose. 13987# endif 13988#endif 13989 13990#if defined S_ISBLK && defined S_IFCHR 13991# if S_ISBLK (S_IFCHR) 13992You lose. 13993# endif 13994#endif 13995 13996#if defined S_ISLNK && defined S_IFREG 13997# if S_ISLNK (S_IFREG) 13998You lose. 13999# endif 14000#endif 14001 14002#if defined S_ISSOCK && defined S_IFREG 14003# if S_ISSOCK (S_IFREG) 14004You lose. 14005# endif 14006#endif 14007 14008_ACEOF 14009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14010 $EGREP "You lose" >/dev/null 2>&1; then 14011 ac_cv_header_stat_broken=yes 14012else 14013 ac_cv_header_stat_broken=no 14014fi 14015rm -f conftest* 14016 14017fi 14018{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 14019echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } 14020if test $ac_cv_header_stat_broken = yes; then 14021 14022cat >>confdefs.h <<\_ACEOF 14023#define STAT_MACROS_BROKEN 1 14024_ACEOF 14025 14026fi 14027 14028{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 14029echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 14030if test "${ac_cv_header_sys_wait_h+set}" = set; then 14031 echo $ECHO_N "(cached) $ECHO_C" >&6 14032else 14033 cat >conftest.$ac_ext <<_ACEOF 14034/* confdefs.h. */ 14035_ACEOF 14036cat confdefs.h >>conftest.$ac_ext 14037cat >>conftest.$ac_ext <<_ACEOF 14038/* end confdefs.h. */ 14039#include <sys/types.h> 14040#include <sys/wait.h> 14041#ifndef WEXITSTATUS 14042# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14043#endif 14044#ifndef WIFEXITED 14045# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14046#endif 14047 14048int 14049main () 14050{ 14051 int s; 14052 wait (&s); 14053 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14054 ; 14055 return 0; 14056} 14057_ACEOF 14058rm -f conftest.$ac_objext 14059if { (ac_try="$ac_compile" 14060case "(($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_compile") 2>conftest.er1 14066 ac_status=$? 14067 grep -v '^ *+' conftest.er1 >conftest.err 14068 rm -f conftest.er1 14069 cat conftest.err >&5 14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14071 (exit $ac_status); } && 14072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14073 { (case "(($ac_try" in 14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14075 *) ac_try_echo=$ac_try;; 14076esac 14077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14078 (eval "$ac_try") 2>&5 14079 ac_status=$? 14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14081 (exit $ac_status); }; } && 14082 { ac_try='test -s conftest.$ac_objext' 14083 { (case "(($ac_try" in 14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14085 *) ac_try_echo=$ac_try;; 14086esac 14087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14088 (eval "$ac_try") 2>&5 14089 ac_status=$? 14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14091 (exit $ac_status); }; }; then 14092 ac_cv_header_sys_wait_h=yes 14093else 14094 echo "$as_me: failed program was:" >&5 14095sed 's/^/| /' conftest.$ac_ext >&5 14096 14097 ac_cv_header_sys_wait_h=no 14098fi 14099 14100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14101fi 14102{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 14103echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 14104if test $ac_cv_header_sys_wait_h = yes; then 14105 14106cat >>confdefs.h <<\_ACEOF 14107#define HAVE_SYS_WAIT_H 1 14108_ACEOF 14109 14110fi 14111 14112{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 14113echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 14114if test "${ac_cv_header_time+set}" = set; then 14115 echo $ECHO_N "(cached) $ECHO_C" >&6 14116else 14117 cat >conftest.$ac_ext <<_ACEOF 14118/* confdefs.h. */ 14119_ACEOF 14120cat confdefs.h >>conftest.$ac_ext 14121cat >>conftest.$ac_ext <<_ACEOF 14122/* end confdefs.h. */ 14123#include <sys/types.h> 14124#include <sys/time.h> 14125#include <time.h> 14126 14127int 14128main () 14129{ 14130if ((struct tm *) 0) 14131return 0; 14132 ; 14133 return 0; 14134} 14135_ACEOF 14136rm -f conftest.$ac_objext 14137if { (ac_try="$ac_compile" 14138case "(($ac_try" in 14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14140 *) ac_try_echo=$ac_try;; 14141esac 14142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14143 (eval "$ac_compile") 2>conftest.er1 14144 ac_status=$? 14145 grep -v '^ *+' conftest.er1 >conftest.err 14146 rm -f conftest.er1 14147 cat conftest.err >&5 14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14149 (exit $ac_status); } && 14150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14151 { (case "(($ac_try" in 14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14153 *) ac_try_echo=$ac_try;; 14154esac 14155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14156 (eval "$ac_try") 2>&5 14157 ac_status=$? 14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14159 (exit $ac_status); }; } && 14160 { ac_try='test -s conftest.$ac_objext' 14161 { (case "(($ac_try" in 14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14163 *) ac_try_echo=$ac_try;; 14164esac 14165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14166 (eval "$ac_try") 2>&5 14167 ac_status=$? 14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14169 (exit $ac_status); }; }; then 14170 ac_cv_header_time=yes 14171else 14172 echo "$as_me: failed program was:" >&5 14173sed 's/^/| /' conftest.$ac_ext >&5 14174 14175 ac_cv_header_time=no 14176fi 14177 14178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14179fi 14180{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 14181echo "${ECHO_T}$ac_cv_header_time" >&6; } 14182if test $ac_cv_header_time = yes; then 14183 14184cat >>confdefs.h <<\_ACEOF 14185#define TIME_WITH_SYS_TIME 1 14186_ACEOF 14187 14188fi 14189 14190 14191 14192 14193 14194 14195 14196 14197for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h 14198do 14199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14201 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14203if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14204 echo $ECHO_N "(cached) $ECHO_C" >&6 14205fi 14206ac_res=`eval echo '${'$as_ac_Header'}'` 14207 { echo "$as_me:$LINENO: result: $ac_res" >&5 14208echo "${ECHO_T}$ac_res" >&6; } 14209else 14210 # Is the header compilable? 14211{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14213cat >conftest.$ac_ext <<_ACEOF 14214/* confdefs.h. */ 14215_ACEOF 14216cat confdefs.h >>conftest.$ac_ext 14217cat >>conftest.$ac_ext <<_ACEOF 14218/* end confdefs.h. */ 14219$ac_includes_default 14220#include <$ac_header> 14221_ACEOF 14222rm -f conftest.$ac_objext 14223if { (ac_try="$ac_compile" 14224case "(($ac_try" in 14225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14226 *) ac_try_echo=$ac_try;; 14227esac 14228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14229 (eval "$ac_compile") 2>conftest.er1 14230 ac_status=$? 14231 grep -v '^ *+' conftest.er1 >conftest.err 14232 rm -f conftest.er1 14233 cat conftest.err >&5 14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14235 (exit $ac_status); } && 14236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14237 { (case "(($ac_try" in 14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14239 *) ac_try_echo=$ac_try;; 14240esac 14241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14242 (eval "$ac_try") 2>&5 14243 ac_status=$? 14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14245 (exit $ac_status); }; } && 14246 { ac_try='test -s conftest.$ac_objext' 14247 { (case "(($ac_try" in 14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14249 *) ac_try_echo=$ac_try;; 14250esac 14251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14252 (eval "$ac_try") 2>&5 14253 ac_status=$? 14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14255 (exit $ac_status); }; }; then 14256 ac_header_compiler=yes 14257else 14258 echo "$as_me: failed program was:" >&5 14259sed 's/^/| /' conftest.$ac_ext >&5 14260 14261 ac_header_compiler=no 14262fi 14263 14264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14265{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14266echo "${ECHO_T}$ac_header_compiler" >&6; } 14267 14268# Is the header present? 14269{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14270echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14271cat >conftest.$ac_ext <<_ACEOF 14272/* confdefs.h. */ 14273_ACEOF 14274cat confdefs.h >>conftest.$ac_ext 14275cat >>conftest.$ac_ext <<_ACEOF 14276/* end confdefs.h. */ 14277#include <$ac_header> 14278_ACEOF 14279if { (ac_try="$ac_cpp conftest.$ac_ext" 14280case "(($ac_try" in 14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14282 *) ac_try_echo=$ac_try;; 14283esac 14284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14286 ac_status=$? 14287 grep -v '^ *+' conftest.er1 >conftest.err 14288 rm -f conftest.er1 14289 cat conftest.err >&5 14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14291 (exit $ac_status); } >/dev/null; then 14292 if test -s conftest.err; then 14293 ac_cpp_err=$ac_c_preproc_warn_flag 14294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14295 else 14296 ac_cpp_err= 14297 fi 14298else 14299 ac_cpp_err=yes 14300fi 14301if test -z "$ac_cpp_err"; then 14302 ac_header_preproc=yes 14303else 14304 echo "$as_me: failed program was:" >&5 14305sed 's/^/| /' conftest.$ac_ext >&5 14306 14307 ac_header_preproc=no 14308fi 14309 14310rm -f conftest.err conftest.$ac_ext 14311{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14312echo "${ECHO_T}$ac_header_preproc" >&6; } 14313 14314# So? What about this header? 14315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14316 yes:no: ) 14317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14321 ac_header_preproc=yes 14322 ;; 14323 no:yes:* ) 14324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14327echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14331echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14336 ( cat <<\_ASBOX 14337## ------------------------------ ## 14338## Report this to bugs@yourdomain ## 14339## ------------------------------ ## 14340_ASBOX 14341 ) | sed "s/^/$as_me: WARNING: /" >&2 14342 ;; 14343esac 14344{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14347 echo $ECHO_N "(cached) $ECHO_C" >&6 14348else 14349 eval "$as_ac_Header=\$ac_header_preproc" 14350fi 14351ac_res=`eval echo '${'$as_ac_Header'}'` 14352 { echo "$as_me:$LINENO: result: $ac_res" >&5 14353echo "${ECHO_T}$ac_res" >&6; } 14354 14355fi 14356if test `eval echo '${'$as_ac_Header'}'` = yes; then 14357 cat >>confdefs.h <<_ACEOF 14358#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14359_ACEOF 14360 14361fi 14362 14363done 14364 14365 14366 14367 14368 14369 14370 14371for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h 14372do 14373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14375 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14378 echo $ECHO_N "(cached) $ECHO_C" >&6 14379fi 14380ac_res=`eval echo '${'$as_ac_Header'}'` 14381 { echo "$as_me:$LINENO: result: $ac_res" >&5 14382echo "${ECHO_T}$ac_res" >&6; } 14383else 14384 # Is the header compilable? 14385{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14386echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14387cat >conftest.$ac_ext <<_ACEOF 14388/* confdefs.h. */ 14389_ACEOF 14390cat confdefs.h >>conftest.$ac_ext 14391cat >>conftest.$ac_ext <<_ACEOF 14392/* end confdefs.h. */ 14393$ac_includes_default 14394#include <$ac_header> 14395_ACEOF 14396rm -f conftest.$ac_objext 14397if { (ac_try="$ac_compile" 14398case "(($ac_try" in 14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14400 *) ac_try_echo=$ac_try;; 14401esac 14402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14403 (eval "$ac_compile") 2>conftest.er1 14404 ac_status=$? 14405 grep -v '^ *+' conftest.er1 >conftest.err 14406 rm -f conftest.er1 14407 cat conftest.err >&5 14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14409 (exit $ac_status); } && 14410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14411 { (case "(($ac_try" in 14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14413 *) ac_try_echo=$ac_try;; 14414esac 14415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14416 (eval "$ac_try") 2>&5 14417 ac_status=$? 14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14419 (exit $ac_status); }; } && 14420 { ac_try='test -s conftest.$ac_objext' 14421 { (case "(($ac_try" in 14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14423 *) ac_try_echo=$ac_try;; 14424esac 14425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14426 (eval "$ac_try") 2>&5 14427 ac_status=$? 14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14429 (exit $ac_status); }; }; then 14430 ac_header_compiler=yes 14431else 14432 echo "$as_me: failed program was:" >&5 14433sed 's/^/| /' conftest.$ac_ext >&5 14434 14435 ac_header_compiler=no 14436fi 14437 14438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14439{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14440echo "${ECHO_T}$ac_header_compiler" >&6; } 14441 14442# Is the header present? 14443{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14445cat >conftest.$ac_ext <<_ACEOF 14446/* confdefs.h. */ 14447_ACEOF 14448cat confdefs.h >>conftest.$ac_ext 14449cat >>conftest.$ac_ext <<_ACEOF 14450/* end confdefs.h. */ 14451#include <$ac_header> 14452_ACEOF 14453if { (ac_try="$ac_cpp conftest.$ac_ext" 14454case "(($ac_try" in 14455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14456 *) ac_try_echo=$ac_try;; 14457esac 14458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14460 ac_status=$? 14461 grep -v '^ *+' conftest.er1 >conftest.err 14462 rm -f conftest.er1 14463 cat conftest.err >&5 14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14465 (exit $ac_status); } >/dev/null; then 14466 if test -s conftest.err; then 14467 ac_cpp_err=$ac_c_preproc_warn_flag 14468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14469 else 14470 ac_cpp_err= 14471 fi 14472else 14473 ac_cpp_err=yes 14474fi 14475if test -z "$ac_cpp_err"; then 14476 ac_header_preproc=yes 14477else 14478 echo "$as_me: failed program was:" >&5 14479sed 's/^/| /' conftest.$ac_ext >&5 14480 14481 ac_header_preproc=no 14482fi 14483 14484rm -f conftest.err conftest.$ac_ext 14485{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14486echo "${ECHO_T}$ac_header_preproc" >&6; } 14487 14488# So? What about this header? 14489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14490 yes:no: ) 14491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14495 ac_header_preproc=yes 14496 ;; 14497 no:yes:* ) 14498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14510 ( cat <<\_ASBOX 14511## ------------------------------ ## 14512## Report this to bugs@yourdomain ## 14513## ------------------------------ ## 14514_ASBOX 14515 ) | sed "s/^/$as_me: WARNING: /" >&2 14516 ;; 14517esac 14518{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14521 echo $ECHO_N "(cached) $ECHO_C" >&6 14522else 14523 eval "$as_ac_Header=\$ac_header_preproc" 14524fi 14525ac_res=`eval echo '${'$as_ac_Header'}'` 14526 { echo "$as_me:$LINENO: result: $ac_res" >&5 14527echo "${ECHO_T}$ac_res" >&6; } 14528 14529fi 14530if test `eval echo '${'$as_ac_Header'}'` = yes; then 14531 cat >>confdefs.h <<_ACEOF 14532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14533_ACEOF 14534 14535fi 14536 14537done 14538 14539 14540 14541for ac_header in utime.h windows.h 14542do 14543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14545 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14548 echo $ECHO_N "(cached) $ECHO_C" >&6 14549fi 14550ac_res=`eval echo '${'$as_ac_Header'}'` 14551 { echo "$as_me:$LINENO: result: $ac_res" >&5 14552echo "${ECHO_T}$ac_res" >&6; } 14553else 14554 # Is the header compilable? 14555{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14556echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14557cat >conftest.$ac_ext <<_ACEOF 14558/* confdefs.h. */ 14559_ACEOF 14560cat confdefs.h >>conftest.$ac_ext 14561cat >>conftest.$ac_ext <<_ACEOF 14562/* end confdefs.h. */ 14563$ac_includes_default 14564#include <$ac_header> 14565_ACEOF 14566rm -f conftest.$ac_objext 14567if { (ac_try="$ac_compile" 14568case "(($ac_try" in 14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14570 *) ac_try_echo=$ac_try;; 14571esac 14572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14573 (eval "$ac_compile") 2>conftest.er1 14574 ac_status=$? 14575 grep -v '^ *+' conftest.er1 >conftest.err 14576 rm -f conftest.er1 14577 cat conftest.err >&5 14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14579 (exit $ac_status); } && 14580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14581 { (case "(($ac_try" in 14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14583 *) ac_try_echo=$ac_try;; 14584esac 14585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14586 (eval "$ac_try") 2>&5 14587 ac_status=$? 14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14589 (exit $ac_status); }; } && 14590 { ac_try='test -s conftest.$ac_objext' 14591 { (case "(($ac_try" in 14592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14593 *) ac_try_echo=$ac_try;; 14594esac 14595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14596 (eval "$ac_try") 2>&5 14597 ac_status=$? 14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14599 (exit $ac_status); }; }; then 14600 ac_header_compiler=yes 14601else 14602 echo "$as_me: failed program was:" >&5 14603sed 's/^/| /' conftest.$ac_ext >&5 14604 14605 ac_header_compiler=no 14606fi 14607 14608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14609{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14610echo "${ECHO_T}$ac_header_compiler" >&6; } 14611 14612# Is the header present? 14613{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14614echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14615cat >conftest.$ac_ext <<_ACEOF 14616/* confdefs.h. */ 14617_ACEOF 14618cat confdefs.h >>conftest.$ac_ext 14619cat >>conftest.$ac_ext <<_ACEOF 14620/* end confdefs.h. */ 14621#include <$ac_header> 14622_ACEOF 14623if { (ac_try="$ac_cpp conftest.$ac_ext" 14624case "(($ac_try" in 14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14626 *) ac_try_echo=$ac_try;; 14627esac 14628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14630 ac_status=$? 14631 grep -v '^ *+' conftest.er1 >conftest.err 14632 rm -f conftest.er1 14633 cat conftest.err >&5 14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14635 (exit $ac_status); } >/dev/null; then 14636 if test -s conftest.err; then 14637 ac_cpp_err=$ac_c_preproc_warn_flag 14638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14639 else 14640 ac_cpp_err= 14641 fi 14642else 14643 ac_cpp_err=yes 14644fi 14645if test -z "$ac_cpp_err"; then 14646 ac_header_preproc=yes 14647else 14648 echo "$as_me: failed program was:" >&5 14649sed 's/^/| /' conftest.$ac_ext >&5 14650 14651 ac_header_preproc=no 14652fi 14653 14654rm -f conftest.err conftest.$ac_ext 14655{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14656echo "${ECHO_T}$ac_header_preproc" >&6; } 14657 14658# So? What about this header? 14659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14660 yes:no: ) 14661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14662echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14664echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14665 ac_header_preproc=yes 14666 ;; 14667 no:yes:* ) 14668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14669echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14671echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14673echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14675echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14677echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14679echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14680 ( cat <<\_ASBOX 14681## ------------------------------ ## 14682## Report this to bugs@yourdomain ## 14683## ------------------------------ ## 14684_ASBOX 14685 ) | sed "s/^/$as_me: WARNING: /" >&2 14686 ;; 14687esac 14688{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14690if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14691 echo $ECHO_N "(cached) $ECHO_C" >&6 14692else 14693 eval "$as_ac_Header=\$ac_header_preproc" 14694fi 14695ac_res=`eval echo '${'$as_ac_Header'}'` 14696 { echo "$as_me:$LINENO: result: $ac_res" >&5 14697echo "${ECHO_T}$ac_res" >&6; } 14698 14699fi 14700if test `eval echo '${'$as_ac_Header'}'` = yes; then 14701 cat >>confdefs.h <<_ACEOF 14702#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14703_ACEOF 14704 14705fi 14706 14707done 14708 14709 14710 14711 14712 14713 14714for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h 14715do 14716as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14718 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14721 echo $ECHO_N "(cached) $ECHO_C" >&6 14722fi 14723ac_res=`eval echo '${'$as_ac_Header'}'` 14724 { echo "$as_me:$LINENO: result: $ac_res" >&5 14725echo "${ECHO_T}$ac_res" >&6; } 14726else 14727 # Is the header compilable? 14728{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14730cat >conftest.$ac_ext <<_ACEOF 14731/* confdefs.h. */ 14732_ACEOF 14733cat confdefs.h >>conftest.$ac_ext 14734cat >>conftest.$ac_ext <<_ACEOF 14735/* end confdefs.h. */ 14736$ac_includes_default 14737#include <$ac_header> 14738_ACEOF 14739rm -f conftest.$ac_objext 14740if { (ac_try="$ac_compile" 14741case "(($ac_try" in 14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14743 *) ac_try_echo=$ac_try;; 14744esac 14745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14746 (eval "$ac_compile") 2>conftest.er1 14747 ac_status=$? 14748 grep -v '^ *+' conftest.er1 >conftest.err 14749 rm -f conftest.er1 14750 cat conftest.err >&5 14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14752 (exit $ac_status); } && 14753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14754 { (case "(($ac_try" in 14755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14756 *) ac_try_echo=$ac_try;; 14757esac 14758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14759 (eval "$ac_try") 2>&5 14760 ac_status=$? 14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14762 (exit $ac_status); }; } && 14763 { ac_try='test -s conftest.$ac_objext' 14764 { (case "(($ac_try" in 14765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14766 *) ac_try_echo=$ac_try;; 14767esac 14768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14769 (eval "$ac_try") 2>&5 14770 ac_status=$? 14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14772 (exit $ac_status); }; }; then 14773 ac_header_compiler=yes 14774else 14775 echo "$as_me: failed program was:" >&5 14776sed 's/^/| /' conftest.$ac_ext >&5 14777 14778 ac_header_compiler=no 14779fi 14780 14781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14782{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14783echo "${ECHO_T}$ac_header_compiler" >&6; } 14784 14785# Is the header present? 14786{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14787echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14788cat >conftest.$ac_ext <<_ACEOF 14789/* confdefs.h. */ 14790_ACEOF 14791cat confdefs.h >>conftest.$ac_ext 14792cat >>conftest.$ac_ext <<_ACEOF 14793/* end confdefs.h. */ 14794#include <$ac_header> 14795_ACEOF 14796if { (ac_try="$ac_cpp conftest.$ac_ext" 14797case "(($ac_try" in 14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14799 *) ac_try_echo=$ac_try;; 14800esac 14801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14803 ac_status=$? 14804 grep -v '^ *+' conftest.er1 >conftest.err 14805 rm -f conftest.er1 14806 cat conftest.err >&5 14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14808 (exit $ac_status); } >/dev/null; then 14809 if test -s conftest.err; then 14810 ac_cpp_err=$ac_c_preproc_warn_flag 14811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14812 else 14813 ac_cpp_err= 14814 fi 14815else 14816 ac_cpp_err=yes 14817fi 14818if test -z "$ac_cpp_err"; then 14819 ac_header_preproc=yes 14820else 14821 echo "$as_me: failed program was:" >&5 14822sed 's/^/| /' conftest.$ac_ext >&5 14823 14824 ac_header_preproc=no 14825fi 14826 14827rm -f conftest.err conftest.$ac_ext 14828{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14829echo "${ECHO_T}$ac_header_preproc" >&6; } 14830 14831# So? What about this header? 14832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14833 yes:no: ) 14834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14835echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14837echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14838 ac_header_preproc=yes 14839 ;; 14840 no:yes:* ) 14841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14842echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14844echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14846echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14848echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14850echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14852echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14853 ( cat <<\_ASBOX 14854## ------------------------------ ## 14855## Report this to bugs@yourdomain ## 14856## ------------------------------ ## 14857_ASBOX 14858 ) | sed "s/^/$as_me: WARNING: /" >&2 14859 ;; 14860esac 14861{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14864 echo $ECHO_N "(cached) $ECHO_C" >&6 14865else 14866 eval "$as_ac_Header=\$ac_header_preproc" 14867fi 14868ac_res=`eval echo '${'$as_ac_Header'}'` 14869 { echo "$as_me:$LINENO: result: $ac_res" >&5 14870echo "${ECHO_T}$ac_res" >&6; } 14871 14872fi 14873if test `eval echo '${'$as_ac_Header'}'` = yes; then 14874 cat >>confdefs.h <<_ACEOF 14875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14876_ACEOF 14877 14878fi 14879 14880done 14881 14882 14883 14884 14885 14886for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h 14887do 14888as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14890 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14893 echo $ECHO_N "(cached) $ECHO_C" >&6 14894fi 14895ac_res=`eval echo '${'$as_ac_Header'}'` 14896 { echo "$as_me:$LINENO: result: $ac_res" >&5 14897echo "${ECHO_T}$ac_res" >&6; } 14898else 14899 # Is the header compilable? 14900{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14902cat >conftest.$ac_ext <<_ACEOF 14903/* confdefs.h. */ 14904_ACEOF 14905cat confdefs.h >>conftest.$ac_ext 14906cat >>conftest.$ac_ext <<_ACEOF 14907/* end confdefs.h. */ 14908$ac_includes_default 14909#include <$ac_header> 14910_ACEOF 14911rm -f conftest.$ac_objext 14912if { (ac_try="$ac_compile" 14913case "(($ac_try" in 14914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14915 *) ac_try_echo=$ac_try;; 14916esac 14917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14918 (eval "$ac_compile") 2>conftest.er1 14919 ac_status=$? 14920 grep -v '^ *+' conftest.er1 >conftest.err 14921 rm -f conftest.er1 14922 cat conftest.err >&5 14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14924 (exit $ac_status); } && 14925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14926 { (case "(($ac_try" in 14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14928 *) ac_try_echo=$ac_try;; 14929esac 14930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14931 (eval "$ac_try") 2>&5 14932 ac_status=$? 14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14934 (exit $ac_status); }; } && 14935 { ac_try='test -s conftest.$ac_objext' 14936 { (case "(($ac_try" in 14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14938 *) ac_try_echo=$ac_try;; 14939esac 14940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14941 (eval "$ac_try") 2>&5 14942 ac_status=$? 14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14944 (exit $ac_status); }; }; then 14945 ac_header_compiler=yes 14946else 14947 echo "$as_me: failed program was:" >&5 14948sed 's/^/| /' conftest.$ac_ext >&5 14949 14950 ac_header_compiler=no 14951fi 14952 14953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14954{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14955echo "${ECHO_T}$ac_header_compiler" >&6; } 14956 14957# Is the header present? 14958{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14960cat >conftest.$ac_ext <<_ACEOF 14961/* confdefs.h. */ 14962_ACEOF 14963cat confdefs.h >>conftest.$ac_ext 14964cat >>conftest.$ac_ext <<_ACEOF 14965/* end confdefs.h. */ 14966#include <$ac_header> 14967_ACEOF 14968if { (ac_try="$ac_cpp conftest.$ac_ext" 14969case "(($ac_try" in 14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14971 *) ac_try_echo=$ac_try;; 14972esac 14973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14975 ac_status=$? 14976 grep -v '^ *+' conftest.er1 >conftest.err 14977 rm -f conftest.er1 14978 cat conftest.err >&5 14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14980 (exit $ac_status); } >/dev/null; then 14981 if test -s conftest.err; then 14982 ac_cpp_err=$ac_c_preproc_warn_flag 14983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 14984 else 14985 ac_cpp_err= 14986 fi 14987else 14988 ac_cpp_err=yes 14989fi 14990if test -z "$ac_cpp_err"; then 14991 ac_header_preproc=yes 14992else 14993 echo "$as_me: failed program was:" >&5 14994sed 's/^/| /' conftest.$ac_ext >&5 14995 14996 ac_header_preproc=no 14997fi 14998 14999rm -f conftest.err conftest.$ac_ext 15000{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15001echo "${ECHO_T}$ac_header_preproc" >&6; } 15002 15003# So? What about this header? 15004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15005 yes:no: ) 15006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15007echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15009echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15010 ac_header_preproc=yes 15011 ;; 15012 no:yes:* ) 15013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15014echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15016echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15018echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15020echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15022echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15024echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15025 ( cat <<\_ASBOX 15026## ------------------------------ ## 15027## Report this to bugs@yourdomain ## 15028## ------------------------------ ## 15029_ASBOX 15030 ) | sed "s/^/$as_me: WARNING: /" >&2 15031 ;; 15032esac 15033{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15036 echo $ECHO_N "(cached) $ECHO_C" >&6 15037else 15038 eval "$as_ac_Header=\$ac_header_preproc" 15039fi 15040ac_res=`eval echo '${'$as_ac_Header'}'` 15041 { echo "$as_me:$LINENO: result: $ac_res" >&5 15042echo "${ECHO_T}$ac_res" >&6; } 15043 15044fi 15045if test `eval echo '${'$as_ac_Header'}'` = yes; then 15046 cat >>confdefs.h <<_ACEOF 15047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15048_ACEOF 15049 15050fi 15051 15052done 15053 15054 15055for ac_header in valgrind/valgrind.h 15056do 15057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15059 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15062 echo $ECHO_N "(cached) $ECHO_C" >&6 15063fi 15064ac_res=`eval echo '${'$as_ac_Header'}'` 15065 { echo "$as_me:$LINENO: result: $ac_res" >&5 15066echo "${ECHO_T}$ac_res" >&6; } 15067else 15068 # Is the header compilable? 15069{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15071cat >conftest.$ac_ext <<_ACEOF 15072/* confdefs.h. */ 15073_ACEOF 15074cat confdefs.h >>conftest.$ac_ext 15075cat >>conftest.$ac_ext <<_ACEOF 15076/* end confdefs.h. */ 15077$ac_includes_default 15078#include <$ac_header> 15079_ACEOF 15080rm -f conftest.$ac_objext 15081if { (ac_try="$ac_compile" 15082case "(($ac_try" in 15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15084 *) ac_try_echo=$ac_try;; 15085esac 15086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15087 (eval "$ac_compile") 2>conftest.er1 15088 ac_status=$? 15089 grep -v '^ *+' conftest.er1 >conftest.err 15090 rm -f conftest.er1 15091 cat conftest.err >&5 15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15093 (exit $ac_status); } && 15094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15095 { (case "(($ac_try" in 15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15097 *) ac_try_echo=$ac_try;; 15098esac 15099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15100 (eval "$ac_try") 2>&5 15101 ac_status=$? 15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15103 (exit $ac_status); }; } && 15104 { ac_try='test -s conftest.$ac_objext' 15105 { (case "(($ac_try" in 15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15107 *) ac_try_echo=$ac_try;; 15108esac 15109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15110 (eval "$ac_try") 2>&5 15111 ac_status=$? 15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15113 (exit $ac_status); }; }; then 15114 ac_header_compiler=yes 15115else 15116 echo "$as_me: failed program was:" >&5 15117sed 's/^/| /' conftest.$ac_ext >&5 15118 15119 ac_header_compiler=no 15120fi 15121 15122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15123{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15124echo "${ECHO_T}$ac_header_compiler" >&6; } 15125 15126# Is the header present? 15127{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15129cat >conftest.$ac_ext <<_ACEOF 15130/* confdefs.h. */ 15131_ACEOF 15132cat confdefs.h >>conftest.$ac_ext 15133cat >>conftest.$ac_ext <<_ACEOF 15134/* end confdefs.h. */ 15135#include <$ac_header> 15136_ACEOF 15137if { (ac_try="$ac_cpp conftest.$ac_ext" 15138case "(($ac_try" in 15139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15140 *) ac_try_echo=$ac_try;; 15141esac 15142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15144 ac_status=$? 15145 grep -v '^ *+' conftest.er1 >conftest.err 15146 rm -f conftest.er1 15147 cat conftest.err >&5 15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15149 (exit $ac_status); } >/dev/null; then 15150 if test -s conftest.err; then 15151 ac_cpp_err=$ac_c_preproc_warn_flag 15152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15153 else 15154 ac_cpp_err= 15155 fi 15156else 15157 ac_cpp_err=yes 15158fi 15159if test -z "$ac_cpp_err"; then 15160 ac_header_preproc=yes 15161else 15162 echo "$as_me: failed program was:" >&5 15163sed 's/^/| /' conftest.$ac_ext >&5 15164 15165 ac_header_preproc=no 15166fi 15167 15168rm -f conftest.err conftest.$ac_ext 15169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15170echo "${ECHO_T}$ac_header_preproc" >&6; } 15171 15172# So? What about this header? 15173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15174 yes:no: ) 15175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15179 ac_header_preproc=yes 15180 ;; 15181 no:yes:* ) 15182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15194 ( cat <<\_ASBOX 15195## ------------------------------ ## 15196## Report this to bugs@yourdomain ## 15197## ------------------------------ ## 15198_ASBOX 15199 ) | sed "s/^/$as_me: WARNING: /" >&2 15200 ;; 15201esac 15202{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15205 echo $ECHO_N "(cached) $ECHO_C" >&6 15206else 15207 eval "$as_ac_Header=\$ac_header_preproc" 15208fi 15209ac_res=`eval echo '${'$as_ac_Header'}'` 15210 { echo "$as_me:$LINENO: result: $ac_res" >&5 15211echo "${ECHO_T}$ac_res" >&6; } 15212 15213fi 15214if test `eval echo '${'$as_ac_Header'}'` = yes; then 15215 cat >>confdefs.h <<_ACEOF 15216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15217_ACEOF 15218 15219fi 15220 15221done 15222 15223 15224for ac_header in fenv.h 15225do 15226as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15228 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15231 echo $ECHO_N "(cached) $ECHO_C" >&6 15232fi 15233ac_res=`eval echo '${'$as_ac_Header'}'` 15234 { echo "$as_me:$LINENO: result: $ac_res" >&5 15235echo "${ECHO_T}$ac_res" >&6; } 15236else 15237 # Is the header compilable? 15238{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15239echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15240cat >conftest.$ac_ext <<_ACEOF 15241/* confdefs.h. */ 15242_ACEOF 15243cat confdefs.h >>conftest.$ac_ext 15244cat >>conftest.$ac_ext <<_ACEOF 15245/* end confdefs.h. */ 15246$ac_includes_default 15247#include <$ac_header> 15248_ACEOF 15249rm -f conftest.$ac_objext 15250if { (ac_try="$ac_compile" 15251case "(($ac_try" in 15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15253 *) ac_try_echo=$ac_try;; 15254esac 15255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15256 (eval "$ac_compile") 2>conftest.er1 15257 ac_status=$? 15258 grep -v '^ *+' conftest.er1 >conftest.err 15259 rm -f conftest.er1 15260 cat conftest.err >&5 15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15262 (exit $ac_status); } && 15263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15264 { (case "(($ac_try" in 15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15266 *) ac_try_echo=$ac_try;; 15267esac 15268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15269 (eval "$ac_try") 2>&5 15270 ac_status=$? 15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15272 (exit $ac_status); }; } && 15273 { ac_try='test -s conftest.$ac_objext' 15274 { (case "(($ac_try" in 15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15276 *) ac_try_echo=$ac_try;; 15277esac 15278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15279 (eval "$ac_try") 2>&5 15280 ac_status=$? 15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15282 (exit $ac_status); }; }; then 15283 ac_header_compiler=yes 15284else 15285 echo "$as_me: failed program was:" >&5 15286sed 's/^/| /' conftest.$ac_ext >&5 15287 15288 ac_header_compiler=no 15289fi 15290 15291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15292{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15293echo "${ECHO_T}$ac_header_compiler" >&6; } 15294 15295# Is the header present? 15296{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15297echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15298cat >conftest.$ac_ext <<_ACEOF 15299/* confdefs.h. */ 15300_ACEOF 15301cat confdefs.h >>conftest.$ac_ext 15302cat >>conftest.$ac_ext <<_ACEOF 15303/* end confdefs.h. */ 15304#include <$ac_header> 15305_ACEOF 15306if { (ac_try="$ac_cpp conftest.$ac_ext" 15307case "(($ac_try" in 15308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15309 *) ac_try_echo=$ac_try;; 15310esac 15311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15313 ac_status=$? 15314 grep -v '^ *+' conftest.er1 >conftest.err 15315 rm -f conftest.er1 15316 cat conftest.err >&5 15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15318 (exit $ac_status); } >/dev/null; then 15319 if test -s conftest.err; then 15320 ac_cpp_err=$ac_c_preproc_warn_flag 15321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15322 else 15323 ac_cpp_err= 15324 fi 15325else 15326 ac_cpp_err=yes 15327fi 15328if test -z "$ac_cpp_err"; then 15329 ac_header_preproc=yes 15330else 15331 echo "$as_me: failed program was:" >&5 15332sed 's/^/| /' conftest.$ac_ext >&5 15333 15334 ac_header_preproc=no 15335fi 15336 15337rm -f conftest.err conftest.$ac_ext 15338{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15339echo "${ECHO_T}$ac_header_preproc" >&6; } 15340 15341# So? What about this header? 15342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15343 yes:no: ) 15344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15348 ac_header_preproc=yes 15349 ;; 15350 no:yes:* ) 15351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15358echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15363 ( cat <<\_ASBOX 15364## ------------------------------ ## 15365## Report this to bugs@yourdomain ## 15366## ------------------------------ ## 15367_ASBOX 15368 ) | sed "s/^/$as_me: WARNING: /" >&2 15369 ;; 15370esac 15371{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15374 echo $ECHO_N "(cached) $ECHO_C" >&6 15375else 15376 eval "$as_ac_Header=\$ac_header_preproc" 15377fi 15378ac_res=`eval echo '${'$as_ac_Header'}'` 15379 { echo "$as_me:$LINENO: result: $ac_res" >&5 15380echo "${ECHO_T}$ac_res" >&6; } 15381 15382fi 15383if test `eval echo '${'$as_ac_Header'}'` = yes; then 15384 cat >>confdefs.h <<_ACEOF 15385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15386_ACEOF 15387 15388fi 15389 15390done 15391 15392if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then 15393 15394for ac_header in pthread.h 15395do 15396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15398 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15401 echo $ECHO_N "(cached) $ECHO_C" >&6 15402fi 15403ac_res=`eval echo '${'$as_ac_Header'}'` 15404 { echo "$as_me:$LINENO: result: $ac_res" >&5 15405echo "${ECHO_T}$ac_res" >&6; } 15406else 15407 # Is the header compilable? 15408{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15410cat >conftest.$ac_ext <<_ACEOF 15411/* confdefs.h. */ 15412_ACEOF 15413cat confdefs.h >>conftest.$ac_ext 15414cat >>conftest.$ac_ext <<_ACEOF 15415/* end confdefs.h. */ 15416$ac_includes_default 15417#include <$ac_header> 15418_ACEOF 15419rm -f conftest.$ac_objext 15420if { (ac_try="$ac_compile" 15421case "(($ac_try" in 15422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15423 *) ac_try_echo=$ac_try;; 15424esac 15425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15426 (eval "$ac_compile") 2>conftest.er1 15427 ac_status=$? 15428 grep -v '^ *+' conftest.er1 >conftest.err 15429 rm -f conftest.er1 15430 cat conftest.err >&5 15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15432 (exit $ac_status); } && 15433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15434 { (case "(($ac_try" in 15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15436 *) ac_try_echo=$ac_try;; 15437esac 15438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15439 (eval "$ac_try") 2>&5 15440 ac_status=$? 15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15442 (exit $ac_status); }; } && 15443 { ac_try='test -s conftest.$ac_objext' 15444 { (case "(($ac_try" in 15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15446 *) ac_try_echo=$ac_try;; 15447esac 15448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15449 (eval "$ac_try") 2>&5 15450 ac_status=$? 15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15452 (exit $ac_status); }; }; then 15453 ac_header_compiler=yes 15454else 15455 echo "$as_me: failed program was:" >&5 15456sed 's/^/| /' conftest.$ac_ext >&5 15457 15458 ac_header_compiler=no 15459fi 15460 15461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15462{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15463echo "${ECHO_T}$ac_header_compiler" >&6; } 15464 15465# Is the header present? 15466{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15468cat >conftest.$ac_ext <<_ACEOF 15469/* confdefs.h. */ 15470_ACEOF 15471cat confdefs.h >>conftest.$ac_ext 15472cat >>conftest.$ac_ext <<_ACEOF 15473/* end confdefs.h. */ 15474#include <$ac_header> 15475_ACEOF 15476if { (ac_try="$ac_cpp conftest.$ac_ext" 15477case "(($ac_try" in 15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15479 *) ac_try_echo=$ac_try;; 15480esac 15481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15483 ac_status=$? 15484 grep -v '^ *+' conftest.er1 >conftest.err 15485 rm -f conftest.er1 15486 cat conftest.err >&5 15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15488 (exit $ac_status); } >/dev/null; then 15489 if test -s conftest.err; then 15490 ac_cpp_err=$ac_c_preproc_warn_flag 15491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15492 else 15493 ac_cpp_err= 15494 fi 15495else 15496 ac_cpp_err=yes 15497fi 15498if test -z "$ac_cpp_err"; then 15499 ac_header_preproc=yes 15500else 15501 echo "$as_me: failed program was:" >&5 15502sed 's/^/| /' conftest.$ac_ext >&5 15503 15504 ac_header_preproc=no 15505fi 15506 15507rm -f conftest.err conftest.$ac_ext 15508{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15509echo "${ECHO_T}$ac_header_preproc" >&6; } 15510 15511# So? What about this header? 15512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15513 yes:no: ) 15514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15518 ac_header_preproc=yes 15519 ;; 15520 no:yes:* ) 15521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15528echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15533 ( cat <<\_ASBOX 15534## ------------------------------ ## 15535## Report this to bugs@yourdomain ## 15536## ------------------------------ ## 15537_ASBOX 15538 ) | sed "s/^/$as_me: WARNING: /" >&2 15539 ;; 15540esac 15541{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15544 echo $ECHO_N "(cached) $ECHO_C" >&6 15545else 15546 eval "$as_ac_Header=\$ac_header_preproc" 15547fi 15548ac_res=`eval echo '${'$as_ac_Header'}'` 15549 { echo "$as_me:$LINENO: result: $ac_res" >&5 15550echo "${ECHO_T}$ac_res" >&6; } 15551 15552fi 15553if test `eval echo '${'$as_ac_Header'}'` = yes; then 15554 cat >>confdefs.h <<_ACEOF 15555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15556_ACEOF 15557 HAVE_PTHREAD=1 15558 15559else 15560 HAVE_PTHREAD=0 15561 15562fi 15563 15564done 15565 15566else 15567 HAVE_PTHREAD=0 15568 15569fi 15570 15571if test "$llvm_cv_enable_libffi" = "yes" ; then 15572 15573 15574for ac_header in ffi.h ffi/ffi.h 15575do 15576as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15578 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15581 echo $ECHO_N "(cached) $ECHO_C" >&6 15582fi 15583ac_res=`eval echo '${'$as_ac_Header'}'` 15584 { echo "$as_me:$LINENO: result: $ac_res" >&5 15585echo "${ECHO_T}$ac_res" >&6; } 15586else 15587 # Is the header compilable? 15588{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15589echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15590cat >conftest.$ac_ext <<_ACEOF 15591/* confdefs.h. */ 15592_ACEOF 15593cat confdefs.h >>conftest.$ac_ext 15594cat >>conftest.$ac_ext <<_ACEOF 15595/* end confdefs.h. */ 15596$ac_includes_default 15597#include <$ac_header> 15598_ACEOF 15599rm -f conftest.$ac_objext 15600if { (ac_try="$ac_compile" 15601case "(($ac_try" in 15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15603 *) ac_try_echo=$ac_try;; 15604esac 15605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15606 (eval "$ac_compile") 2>conftest.er1 15607 ac_status=$? 15608 grep -v '^ *+' conftest.er1 >conftest.err 15609 rm -f conftest.er1 15610 cat conftest.err >&5 15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15612 (exit $ac_status); } && 15613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15614 { (case "(($ac_try" in 15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15616 *) ac_try_echo=$ac_try;; 15617esac 15618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15619 (eval "$ac_try") 2>&5 15620 ac_status=$? 15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15622 (exit $ac_status); }; } && 15623 { ac_try='test -s conftest.$ac_objext' 15624 { (case "(($ac_try" in 15625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15626 *) ac_try_echo=$ac_try;; 15627esac 15628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15629 (eval "$ac_try") 2>&5 15630 ac_status=$? 15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15632 (exit $ac_status); }; }; then 15633 ac_header_compiler=yes 15634else 15635 echo "$as_me: failed program was:" >&5 15636sed 's/^/| /' conftest.$ac_ext >&5 15637 15638 ac_header_compiler=no 15639fi 15640 15641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15642{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15643echo "${ECHO_T}$ac_header_compiler" >&6; } 15644 15645# Is the header present? 15646{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15647echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15648cat >conftest.$ac_ext <<_ACEOF 15649/* confdefs.h. */ 15650_ACEOF 15651cat confdefs.h >>conftest.$ac_ext 15652cat >>conftest.$ac_ext <<_ACEOF 15653/* end confdefs.h. */ 15654#include <$ac_header> 15655_ACEOF 15656if { (ac_try="$ac_cpp conftest.$ac_ext" 15657case "(($ac_try" in 15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15659 *) ac_try_echo=$ac_try;; 15660esac 15661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15663 ac_status=$? 15664 grep -v '^ *+' conftest.er1 >conftest.err 15665 rm -f conftest.er1 15666 cat conftest.err >&5 15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15668 (exit $ac_status); } >/dev/null; then 15669 if test -s conftest.err; then 15670 ac_cpp_err=$ac_c_preproc_warn_flag 15671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15672 else 15673 ac_cpp_err= 15674 fi 15675else 15676 ac_cpp_err=yes 15677fi 15678if test -z "$ac_cpp_err"; then 15679 ac_header_preproc=yes 15680else 15681 echo "$as_me: failed program was:" >&5 15682sed 's/^/| /' conftest.$ac_ext >&5 15683 15684 ac_header_preproc=no 15685fi 15686 15687rm -f conftest.err conftest.$ac_ext 15688{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15689echo "${ECHO_T}$ac_header_preproc" >&6; } 15690 15691# So? What about this header? 15692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15693 yes:no: ) 15694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15698 ac_header_preproc=yes 15699 ;; 15700 no:yes:* ) 15701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15704echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15708echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15713 ( cat <<\_ASBOX 15714## ------------------------------ ## 15715## Report this to bugs@yourdomain ## 15716## ------------------------------ ## 15717_ASBOX 15718 ) | sed "s/^/$as_me: WARNING: /" >&2 15719 ;; 15720esac 15721{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15724 echo $ECHO_N "(cached) $ECHO_C" >&6 15725else 15726 eval "$as_ac_Header=\$ac_header_preproc" 15727fi 15728ac_res=`eval echo '${'$as_ac_Header'}'` 15729 { echo "$as_me:$LINENO: result: $ac_res" >&5 15730echo "${ECHO_T}$ac_res" >&6; } 15731 15732fi 15733if test `eval echo '${'$as_ac_Header'}'` = yes; then 15734 cat >>confdefs.h <<_ACEOF 15735#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15736_ACEOF 15737 15738fi 15739 15740done 15741 15742fi 15743 15744 15745for ac_header in CrashReporterClient.h 15746do 15747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15749 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15752 echo $ECHO_N "(cached) $ECHO_C" >&6 15753fi 15754ac_res=`eval echo '${'$as_ac_Header'}'` 15755 { echo "$as_me:$LINENO: result: $ac_res" >&5 15756echo "${ECHO_T}$ac_res" >&6; } 15757else 15758 # Is the header compilable? 15759{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15761cat >conftest.$ac_ext <<_ACEOF 15762/* confdefs.h. */ 15763_ACEOF 15764cat confdefs.h >>conftest.$ac_ext 15765cat >>conftest.$ac_ext <<_ACEOF 15766/* end confdefs.h. */ 15767$ac_includes_default 15768#include <$ac_header> 15769_ACEOF 15770rm -f conftest.$ac_objext 15771if { (ac_try="$ac_compile" 15772case "(($ac_try" in 15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15774 *) ac_try_echo=$ac_try;; 15775esac 15776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15777 (eval "$ac_compile") 2>conftest.er1 15778 ac_status=$? 15779 grep -v '^ *+' conftest.er1 >conftest.err 15780 rm -f conftest.er1 15781 cat conftest.err >&5 15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15783 (exit $ac_status); } && 15784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15785 { (case "(($ac_try" in 15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15787 *) ac_try_echo=$ac_try;; 15788esac 15789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15790 (eval "$ac_try") 2>&5 15791 ac_status=$? 15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15793 (exit $ac_status); }; } && 15794 { ac_try='test -s conftest.$ac_objext' 15795 { (case "(($ac_try" in 15796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15797 *) ac_try_echo=$ac_try;; 15798esac 15799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15800 (eval "$ac_try") 2>&5 15801 ac_status=$? 15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15803 (exit $ac_status); }; }; then 15804 ac_header_compiler=yes 15805else 15806 echo "$as_me: failed program was:" >&5 15807sed 's/^/| /' conftest.$ac_ext >&5 15808 15809 ac_header_compiler=no 15810fi 15811 15812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15813{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15814echo "${ECHO_T}$ac_header_compiler" >&6; } 15815 15816# Is the header present? 15817{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15819cat >conftest.$ac_ext <<_ACEOF 15820/* confdefs.h. */ 15821_ACEOF 15822cat confdefs.h >>conftest.$ac_ext 15823cat >>conftest.$ac_ext <<_ACEOF 15824/* end confdefs.h. */ 15825#include <$ac_header> 15826_ACEOF 15827if { (ac_try="$ac_cpp conftest.$ac_ext" 15828case "(($ac_try" in 15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15830 *) ac_try_echo=$ac_try;; 15831esac 15832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15834 ac_status=$? 15835 grep -v '^ *+' conftest.er1 >conftest.err 15836 rm -f conftest.er1 15837 cat conftest.err >&5 15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15839 (exit $ac_status); } >/dev/null; then 15840 if test -s conftest.err; then 15841 ac_cpp_err=$ac_c_preproc_warn_flag 15842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15843 else 15844 ac_cpp_err= 15845 fi 15846else 15847 ac_cpp_err=yes 15848fi 15849if test -z "$ac_cpp_err"; then 15850 ac_header_preproc=yes 15851else 15852 echo "$as_me: failed program was:" >&5 15853sed 's/^/| /' conftest.$ac_ext >&5 15854 15855 ac_header_preproc=no 15856fi 15857 15858rm -f conftest.err conftest.$ac_ext 15859{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15860echo "${ECHO_T}$ac_header_preproc" >&6; } 15861 15862# So? What about this header? 15863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15864 yes:no: ) 15865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15869 ac_header_preproc=yes 15870 ;; 15871 no:yes:* ) 15872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15879echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15884 ( cat <<\_ASBOX 15885## ------------------------------ ## 15886## Report this to bugs@yourdomain ## 15887## ------------------------------ ## 15888_ASBOX 15889 ) | sed "s/^/$as_me: WARNING: /" >&2 15890 ;; 15891esac 15892{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15894if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15895 echo $ECHO_N "(cached) $ECHO_C" >&6 15896else 15897 eval "$as_ac_Header=\$ac_header_preproc" 15898fi 15899ac_res=`eval echo '${'$as_ac_Header'}'` 15900 { echo "$as_me:$LINENO: result: $ac_res" >&5 15901echo "${ECHO_T}$ac_res" >&6; } 15902 15903fi 15904if test `eval echo '${'$as_ac_Header'}'` = yes; then 15905 cat >>confdefs.h <<_ACEOF 15906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15907_ACEOF 15908 15909fi 15910 15911done 15912 15913 15914{ echo "$as_me:$LINENO: checking __crashreporter_info__" >&5 15915echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; } 15916cat >conftest.$ac_ext <<_ACEOF 15917/* confdefs.h. */ 15918_ACEOF 15919cat confdefs.h >>conftest.$ac_ext 15920cat >>conftest.$ac_ext <<_ACEOF 15921/* end confdefs.h. */ 15922extern const char *__crashreporter_info__; 15923 int main() { 15924 __crashreporter_info__ = "test"; 15925 return 0; 15926 } 15927 15928_ACEOF 15929rm -f conftest.$ac_objext conftest$ac_exeext 15930if { (ac_try="$ac_link" 15931case "(($ac_try" in 15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15933 *) ac_try_echo=$ac_try;; 15934esac 15935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15936 (eval "$ac_link") 2>conftest.er1 15937 ac_status=$? 15938 grep -v '^ *+' conftest.er1 >conftest.err 15939 rm -f conftest.er1 15940 cat conftest.err >&5 15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15942 (exit $ac_status); } && 15943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 15944 { (case "(($ac_try" in 15945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15946 *) ac_try_echo=$ac_try;; 15947esac 15948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15949 (eval "$ac_try") 2>&5 15950 ac_status=$? 15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15952 (exit $ac_status); }; } && 15953 { ac_try='test -s conftest$ac_exeext' 15954 { (case "(($ac_try" in 15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15956 *) ac_try_echo=$ac_try;; 15957esac 15958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15959 (eval "$ac_try") 2>&5 15960 ac_status=$? 15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15962 (exit $ac_status); }; }; then 15963 { echo "$as_me:$LINENO: result: yes" >&5 15964echo "${ECHO_T}yes" >&6; } 15965 15966cat >>confdefs.h <<\_ACEOF 15967#define HAVE_CRASHREPORTER_INFO 1 15968_ACEOF 15969 15970else 15971 echo "$as_me: failed program was:" >&5 15972sed 's/^/| /' conftest.$ac_ext >&5 15973 15974 { echo "$as_me:$LINENO: result: no" >&5 15975echo "${ECHO_T}no" >&6; } 15976 15977cat >>confdefs.h <<\_ACEOF 15978#define HAVE_CRASHREPORTER_INFO 0 15979_ACEOF 15980 15981fi 15982 15983rm -f core conftest.err conftest.$ac_objext \ 15984 conftest$ac_exeext conftest.$ac_ext 15985 15986 15987 15988 15989 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5 15990echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; } 15991if test "${ac_cv_huge_val_sanity+set}" = set; then 15992 echo $ECHO_N "(cached) $ECHO_C" >&6 15993else 15994 15995 ac_ext=cpp 15996ac_cpp='$CXXCPP $CPPFLAGS' 15997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16000 16001 ac_save_CXXFLAGS=$CXXFLAGS 16002 CXXFLAGS="$CXXFLAGS -pedantic" 16003 if test "$cross_compiling" = yes; then 16004 ac_cv_huge_val_sanity=yes 16005else 16006 cat >conftest.$ac_ext <<_ACEOF 16007/* confdefs.h. */ 16008_ACEOF 16009cat confdefs.h >>conftest.$ac_ext 16010cat >>conftest.$ac_ext <<_ACEOF 16011/* end confdefs.h. */ 16012#include <math.h> 16013int 16014main () 16015{ 16016double x = HUGE_VAL; return x != x; 16017 ; 16018 return 0; 16019} 16020_ACEOF 16021rm -f conftest$ac_exeext 16022if { (ac_try="$ac_link" 16023case "(($ac_try" in 16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16025 *) ac_try_echo=$ac_try;; 16026esac 16027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16028 (eval "$ac_link") 2>&5 16029 ac_status=$? 16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16032 { (case "(($ac_try" in 16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16034 *) ac_try_echo=$ac_try;; 16035esac 16036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16037 (eval "$ac_try") 2>&5 16038 ac_status=$? 16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16040 (exit $ac_status); }; }; then 16041 ac_cv_huge_val_sanity=yes 16042else 16043 echo "$as_me: program exited with status $ac_status" >&5 16044echo "$as_me: failed program was:" >&5 16045sed 's/^/| /' conftest.$ac_ext >&5 16046 16047( exit $ac_status ) 16048ac_cv_huge_val_sanity=no 16049fi 16050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16051fi 16052 16053 16054 CXXFLAGS=$ac_save_CXXFLAGS 16055 ac_ext=c 16056ac_cpp='$CPP $CPPFLAGS' 16057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16059ac_compiler_gnu=$ac_cv_c_compiler_gnu 16060 16061 16062fi 16063{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5 16064echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; } 16065 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity 16066 16067 16068{ echo "$as_me:$LINENO: checking for pid_t" >&5 16069echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 16070if test "${ac_cv_type_pid_t+set}" = set; then 16071 echo $ECHO_N "(cached) $ECHO_C" >&6 16072else 16073 cat >conftest.$ac_ext <<_ACEOF 16074/* confdefs.h. */ 16075_ACEOF 16076cat confdefs.h >>conftest.$ac_ext 16077cat >>conftest.$ac_ext <<_ACEOF 16078/* end confdefs.h. */ 16079$ac_includes_default 16080typedef pid_t ac__type_new_; 16081int 16082main () 16083{ 16084if ((ac__type_new_ *) 0) 16085 return 0; 16086if (sizeof (ac__type_new_)) 16087 return 0; 16088 ; 16089 return 0; 16090} 16091_ACEOF 16092rm -f conftest.$ac_objext 16093if { (ac_try="$ac_compile" 16094case "(($ac_try" in 16095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16096 *) ac_try_echo=$ac_try;; 16097esac 16098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16099 (eval "$ac_compile") 2>conftest.er1 16100 ac_status=$? 16101 grep -v '^ *+' conftest.er1 >conftest.err 16102 rm -f conftest.er1 16103 cat conftest.err >&5 16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16105 (exit $ac_status); } && 16106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16107 { (case "(($ac_try" in 16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16109 *) ac_try_echo=$ac_try;; 16110esac 16111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16112 (eval "$ac_try") 2>&5 16113 ac_status=$? 16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16115 (exit $ac_status); }; } && 16116 { ac_try='test -s conftest.$ac_objext' 16117 { (case "(($ac_try" in 16118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16119 *) ac_try_echo=$ac_try;; 16120esac 16121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16122 (eval "$ac_try") 2>&5 16123 ac_status=$? 16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16125 (exit $ac_status); }; }; then 16126 ac_cv_type_pid_t=yes 16127else 16128 echo "$as_me: failed program was:" >&5 16129sed 's/^/| /' conftest.$ac_ext >&5 16130 16131 ac_cv_type_pid_t=no 16132fi 16133 16134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16135fi 16136{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 16137echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 16138if test $ac_cv_type_pid_t = yes; then 16139 : 16140else 16141 16142cat >>confdefs.h <<_ACEOF 16143#define pid_t int 16144_ACEOF 16145 16146fi 16147 16148{ echo "$as_me:$LINENO: checking for size_t" >&5 16149echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 16150if test "${ac_cv_type_size_t+set}" = set; then 16151 echo $ECHO_N "(cached) $ECHO_C" >&6 16152else 16153 cat >conftest.$ac_ext <<_ACEOF 16154/* confdefs.h. */ 16155_ACEOF 16156cat confdefs.h >>conftest.$ac_ext 16157cat >>conftest.$ac_ext <<_ACEOF 16158/* end confdefs.h. */ 16159$ac_includes_default 16160typedef size_t ac__type_new_; 16161int 16162main () 16163{ 16164if ((ac__type_new_ *) 0) 16165 return 0; 16166if (sizeof (ac__type_new_)) 16167 return 0; 16168 ; 16169 return 0; 16170} 16171_ACEOF 16172rm -f conftest.$ac_objext 16173if { (ac_try="$ac_compile" 16174case "(($ac_try" in 16175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16176 *) ac_try_echo=$ac_try;; 16177esac 16178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16179 (eval "$ac_compile") 2>conftest.er1 16180 ac_status=$? 16181 grep -v '^ *+' conftest.er1 >conftest.err 16182 rm -f conftest.er1 16183 cat conftest.err >&5 16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16185 (exit $ac_status); } && 16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16187 { (case "(($ac_try" in 16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16189 *) ac_try_echo=$ac_try;; 16190esac 16191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16192 (eval "$ac_try") 2>&5 16193 ac_status=$? 16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16195 (exit $ac_status); }; } && 16196 { ac_try='test -s conftest.$ac_objext' 16197 { (case "(($ac_try" in 16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16199 *) ac_try_echo=$ac_try;; 16200esac 16201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16202 (eval "$ac_try") 2>&5 16203 ac_status=$? 16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16205 (exit $ac_status); }; }; then 16206 ac_cv_type_size_t=yes 16207else 16208 echo "$as_me: failed program was:" >&5 16209sed 's/^/| /' conftest.$ac_ext >&5 16210 16211 ac_cv_type_size_t=no 16212fi 16213 16214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16215fi 16216{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 16217echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 16218if test $ac_cv_type_size_t = yes; then 16219 : 16220else 16221 16222cat >>confdefs.h <<_ACEOF 16223#define size_t unsigned int 16224_ACEOF 16225 16226fi 16227 16228 16229cat >>confdefs.h <<_ACEOF 16230#define RETSIGTYPE void 16231_ACEOF 16232 16233{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 16234echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } 16235if test "${ac_cv_struct_tm+set}" = set; then 16236 echo $ECHO_N "(cached) $ECHO_C" >&6 16237else 16238 cat >conftest.$ac_ext <<_ACEOF 16239/* confdefs.h. */ 16240_ACEOF 16241cat confdefs.h >>conftest.$ac_ext 16242cat >>conftest.$ac_ext <<_ACEOF 16243/* end confdefs.h. */ 16244#include <sys/types.h> 16245#include <time.h> 16246 16247int 16248main () 16249{ 16250struct tm *tp; tp->tm_sec; 16251 ; 16252 return 0; 16253} 16254_ACEOF 16255rm -f conftest.$ac_objext 16256if { (ac_try="$ac_compile" 16257case "(($ac_try" in 16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16259 *) ac_try_echo=$ac_try;; 16260esac 16261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16262 (eval "$ac_compile") 2>conftest.er1 16263 ac_status=$? 16264 grep -v '^ *+' conftest.er1 >conftest.err 16265 rm -f conftest.er1 16266 cat conftest.err >&5 16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16268 (exit $ac_status); } && 16269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16270 { (case "(($ac_try" in 16271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16272 *) ac_try_echo=$ac_try;; 16273esac 16274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16275 (eval "$ac_try") 2>&5 16276 ac_status=$? 16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16278 (exit $ac_status); }; } && 16279 { ac_try='test -s conftest.$ac_objext' 16280 { (case "(($ac_try" in 16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16282 *) ac_try_echo=$ac_try;; 16283esac 16284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16285 (eval "$ac_try") 2>&5 16286 ac_status=$? 16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16288 (exit $ac_status); }; }; then 16289 ac_cv_struct_tm=time.h 16290else 16291 echo "$as_me: failed program was:" >&5 16292sed 's/^/| /' conftest.$ac_ext >&5 16293 16294 ac_cv_struct_tm=sys/time.h 16295fi 16296 16297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16298fi 16299{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 16300echo "${ECHO_T}$ac_cv_struct_tm" >&6; } 16301if test $ac_cv_struct_tm = sys/time.h; then 16302 16303cat >>confdefs.h <<\_ACEOF 16304#define TM_IN_SYS_TIME 1 16305_ACEOF 16306 16307fi 16308 16309{ echo "$as_me:$LINENO: checking for int64_t" >&5 16310echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; } 16311if test "${ac_cv_type_int64_t+set}" = set; then 16312 echo $ECHO_N "(cached) $ECHO_C" >&6 16313else 16314 cat >conftest.$ac_ext <<_ACEOF 16315/* confdefs.h. */ 16316_ACEOF 16317cat confdefs.h >>conftest.$ac_ext 16318cat >>conftest.$ac_ext <<_ACEOF 16319/* end confdefs.h. */ 16320$ac_includes_default 16321typedef int64_t ac__type_new_; 16322int 16323main () 16324{ 16325if ((ac__type_new_ *) 0) 16326 return 0; 16327if (sizeof (ac__type_new_)) 16328 return 0; 16329 ; 16330 return 0; 16331} 16332_ACEOF 16333rm -f conftest.$ac_objext 16334if { (ac_try="$ac_compile" 16335case "(($ac_try" in 16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16337 *) ac_try_echo=$ac_try;; 16338esac 16339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16340 (eval "$ac_compile") 2>conftest.er1 16341 ac_status=$? 16342 grep -v '^ *+' conftest.er1 >conftest.err 16343 rm -f conftest.er1 16344 cat conftest.err >&5 16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16346 (exit $ac_status); } && 16347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16348 { (case "(($ac_try" in 16349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16350 *) ac_try_echo=$ac_try;; 16351esac 16352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16353 (eval "$ac_try") 2>&5 16354 ac_status=$? 16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16356 (exit $ac_status); }; } && 16357 { ac_try='test -s conftest.$ac_objext' 16358 { (case "(($ac_try" in 16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16360 *) ac_try_echo=$ac_try;; 16361esac 16362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16363 (eval "$ac_try") 2>&5 16364 ac_status=$? 16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16366 (exit $ac_status); }; }; then 16367 ac_cv_type_int64_t=yes 16368else 16369 echo "$as_me: failed program was:" >&5 16370sed 's/^/| /' conftest.$ac_ext >&5 16371 16372 ac_cv_type_int64_t=no 16373fi 16374 16375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16376fi 16377{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 16378echo "${ECHO_T}$ac_cv_type_int64_t" >&6; } 16379if test $ac_cv_type_int64_t = yes; then 16380 16381cat >>confdefs.h <<_ACEOF 16382#define HAVE_INT64_T 1 16383_ACEOF 16384 16385 16386else 16387 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5 16388echo "$as_me: error: Type int64_t required but not found" >&2;} 16389 { (exit 1); exit 1; }; } 16390fi 16391 16392{ echo "$as_me:$LINENO: checking for uint64_t" >&5 16393echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; } 16394if test "${ac_cv_type_uint64_t+set}" = set; then 16395 echo $ECHO_N "(cached) $ECHO_C" >&6 16396else 16397 cat >conftest.$ac_ext <<_ACEOF 16398/* confdefs.h. */ 16399_ACEOF 16400cat confdefs.h >>conftest.$ac_ext 16401cat >>conftest.$ac_ext <<_ACEOF 16402/* end confdefs.h. */ 16403$ac_includes_default 16404typedef uint64_t ac__type_new_; 16405int 16406main () 16407{ 16408if ((ac__type_new_ *) 0) 16409 return 0; 16410if (sizeof (ac__type_new_)) 16411 return 0; 16412 ; 16413 return 0; 16414} 16415_ACEOF 16416rm -f conftest.$ac_objext 16417if { (ac_try="$ac_compile" 16418case "(($ac_try" in 16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16420 *) ac_try_echo=$ac_try;; 16421esac 16422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16423 (eval "$ac_compile") 2>conftest.er1 16424 ac_status=$? 16425 grep -v '^ *+' conftest.er1 >conftest.err 16426 rm -f conftest.er1 16427 cat conftest.err >&5 16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16429 (exit $ac_status); } && 16430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16431 { (case "(($ac_try" in 16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16433 *) ac_try_echo=$ac_try;; 16434esac 16435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16436 (eval "$ac_try") 2>&5 16437 ac_status=$? 16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16439 (exit $ac_status); }; } && 16440 { ac_try='test -s conftest.$ac_objext' 16441 { (case "(($ac_try" in 16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16443 *) ac_try_echo=$ac_try;; 16444esac 16445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16446 (eval "$ac_try") 2>&5 16447 ac_status=$? 16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16449 (exit $ac_status); }; }; then 16450 ac_cv_type_uint64_t=yes 16451else 16452 echo "$as_me: failed program was:" >&5 16453sed 's/^/| /' conftest.$ac_ext >&5 16454 16455 ac_cv_type_uint64_t=no 16456fi 16457 16458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16459fi 16460{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 16461echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; } 16462if test $ac_cv_type_uint64_t = yes; then 16463 16464cat >>confdefs.h <<_ACEOF 16465#define HAVE_UINT64_T 1 16466_ACEOF 16467 16468 16469else 16470 { echo "$as_me:$LINENO: checking for u_int64_t" >&5 16471echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; } 16472if test "${ac_cv_type_u_int64_t+set}" = set; then 16473 echo $ECHO_N "(cached) $ECHO_C" >&6 16474else 16475 cat >conftest.$ac_ext <<_ACEOF 16476/* confdefs.h. */ 16477_ACEOF 16478cat confdefs.h >>conftest.$ac_ext 16479cat >>conftest.$ac_ext <<_ACEOF 16480/* end confdefs.h. */ 16481$ac_includes_default 16482typedef u_int64_t ac__type_new_; 16483int 16484main () 16485{ 16486if ((ac__type_new_ *) 0) 16487 return 0; 16488if (sizeof (ac__type_new_)) 16489 return 0; 16490 ; 16491 return 0; 16492} 16493_ACEOF 16494rm -f conftest.$ac_objext 16495if { (ac_try="$ac_compile" 16496case "(($ac_try" in 16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16498 *) ac_try_echo=$ac_try;; 16499esac 16500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16501 (eval "$ac_compile") 2>conftest.er1 16502 ac_status=$? 16503 grep -v '^ *+' conftest.er1 >conftest.err 16504 rm -f conftest.er1 16505 cat conftest.err >&5 16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16507 (exit $ac_status); } && 16508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16509 { (case "(($ac_try" in 16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16511 *) ac_try_echo=$ac_try;; 16512esac 16513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16514 (eval "$ac_try") 2>&5 16515 ac_status=$? 16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16517 (exit $ac_status); }; } && 16518 { ac_try='test -s conftest.$ac_objext' 16519 { (case "(($ac_try" in 16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16521 *) ac_try_echo=$ac_try;; 16522esac 16523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16524 (eval "$ac_try") 2>&5 16525 ac_status=$? 16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16527 (exit $ac_status); }; }; then 16528 ac_cv_type_u_int64_t=yes 16529else 16530 echo "$as_me: failed program was:" >&5 16531sed 's/^/| /' conftest.$ac_ext >&5 16532 16533 ac_cv_type_u_int64_t=no 16534fi 16535 16536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16537fi 16538{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 16539echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; } 16540if test $ac_cv_type_u_int64_t = yes; then 16541 16542cat >>confdefs.h <<_ACEOF 16543#define HAVE_U_INT64_T 1 16544_ACEOF 16545 16546 16547else 16548 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5 16549echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;} 16550 { (exit 1); exit 1; }; } 16551fi 16552 16553fi 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd 16565do 16566as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16567{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16568echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16569if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16570 echo $ECHO_N "(cached) $ECHO_C" >&6 16571else 16572 cat >conftest.$ac_ext <<_ACEOF 16573/* confdefs.h. */ 16574_ACEOF 16575cat confdefs.h >>conftest.$ac_ext 16576cat >>conftest.$ac_ext <<_ACEOF 16577/* end confdefs.h. */ 16578/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16579 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16580#define $ac_func innocuous_$ac_func 16581 16582/* System header to define __stub macros and hopefully few prototypes, 16583 which can conflict with char $ac_func (); below. 16584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16585 <limits.h> exists even on freestanding compilers. */ 16586 16587#ifdef __STDC__ 16588# include <limits.h> 16589#else 16590# include <assert.h> 16591#endif 16592 16593#undef $ac_func 16594 16595/* Override any GCC internal prototype to avoid an error. 16596 Use char because int might match the return type of a GCC 16597 builtin and then its argument prototype would still apply. */ 16598#ifdef __cplusplus 16599extern "C" 16600#endif 16601char $ac_func (); 16602/* The GNU C library defines this for functions which it implements 16603 to always fail with ENOSYS. Some functions are actually named 16604 something starting with __ and the normal name is an alias. */ 16605#if defined __stub_$ac_func || defined __stub___$ac_func 16606choke me 16607#endif 16608 16609int 16610main () 16611{ 16612return $ac_func (); 16613 ; 16614 return 0; 16615} 16616_ACEOF 16617rm -f conftest.$ac_objext conftest$ac_exeext 16618if { (ac_try="$ac_link" 16619case "(($ac_try" in 16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16621 *) ac_try_echo=$ac_try;; 16622esac 16623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16624 (eval "$ac_link") 2>conftest.er1 16625 ac_status=$? 16626 grep -v '^ *+' conftest.er1 >conftest.err 16627 rm -f conftest.er1 16628 cat conftest.err >&5 16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16630 (exit $ac_status); } && 16631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16632 { (case "(($ac_try" in 16633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16634 *) ac_try_echo=$ac_try;; 16635esac 16636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16637 (eval "$ac_try") 2>&5 16638 ac_status=$? 16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16640 (exit $ac_status); }; } && 16641 { ac_try='test -s conftest$ac_exeext' 16642 { (case "(($ac_try" in 16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16644 *) ac_try_echo=$ac_try;; 16645esac 16646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16647 (eval "$ac_try") 2>&5 16648 ac_status=$? 16649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16650 (exit $ac_status); }; }; then 16651 eval "$as_ac_var=yes" 16652else 16653 echo "$as_me: failed program was:" >&5 16654sed 's/^/| /' conftest.$ac_ext >&5 16655 16656 eval "$as_ac_var=no" 16657fi 16658 16659rm -f core conftest.err conftest.$ac_objext \ 16660 conftest$ac_exeext conftest.$ac_ext 16661fi 16662ac_res=`eval echo '${'$as_ac_var'}'` 16663 { echo "$as_me:$LINENO: result: $ac_res" >&5 16664echo "${ECHO_T}$ac_res" >&6; } 16665if test `eval echo '${'$as_ac_var'}'` = yes; then 16666 cat >>confdefs.h <<_ACEOF 16667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16668_ACEOF 16669 16670fi 16671done 16672 16673 16674 16675 16676 16677for ac_func in powf fmodf strtof round 16678do 16679as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16680{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16681echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16682if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16683 echo $ECHO_N "(cached) $ECHO_C" >&6 16684else 16685 cat >conftest.$ac_ext <<_ACEOF 16686/* confdefs.h. */ 16687_ACEOF 16688cat confdefs.h >>conftest.$ac_ext 16689cat >>conftest.$ac_ext <<_ACEOF 16690/* end confdefs.h. */ 16691/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16692 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16693#define $ac_func innocuous_$ac_func 16694 16695/* System header to define __stub macros and hopefully few prototypes, 16696 which can conflict with char $ac_func (); below. 16697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16698 <limits.h> exists even on freestanding compilers. */ 16699 16700#ifdef __STDC__ 16701# include <limits.h> 16702#else 16703# include <assert.h> 16704#endif 16705 16706#undef $ac_func 16707 16708/* Override any GCC internal prototype to avoid an error. 16709 Use char because int might match the return type of a GCC 16710 builtin and then its argument prototype would still apply. */ 16711#ifdef __cplusplus 16712extern "C" 16713#endif 16714char $ac_func (); 16715/* The GNU C library defines this for functions which it implements 16716 to always fail with ENOSYS. Some functions are actually named 16717 something starting with __ and the normal name is an alias. */ 16718#if defined __stub_$ac_func || defined __stub___$ac_func 16719choke me 16720#endif 16721 16722int 16723main () 16724{ 16725return $ac_func (); 16726 ; 16727 return 0; 16728} 16729_ACEOF 16730rm -f conftest.$ac_objext conftest$ac_exeext 16731if { (ac_try="$ac_link" 16732case "(($ac_try" in 16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16734 *) ac_try_echo=$ac_try;; 16735esac 16736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16737 (eval "$ac_link") 2>conftest.er1 16738 ac_status=$? 16739 grep -v '^ *+' conftest.er1 >conftest.err 16740 rm -f conftest.er1 16741 cat conftest.err >&5 16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16743 (exit $ac_status); } && 16744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16745 { (case "(($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_try") 2>&5 16751 ac_status=$? 16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16753 (exit $ac_status); }; } && 16754 { ac_try='test -s conftest$ac_exeext' 16755 { (case "(($ac_try" in 16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16757 *) ac_try_echo=$ac_try;; 16758esac 16759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16760 (eval "$ac_try") 2>&5 16761 ac_status=$? 16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16763 (exit $ac_status); }; }; then 16764 eval "$as_ac_var=yes" 16765else 16766 echo "$as_me: failed program was:" >&5 16767sed 's/^/| /' conftest.$ac_ext >&5 16768 16769 eval "$as_ac_var=no" 16770fi 16771 16772rm -f core conftest.err conftest.$ac_objext \ 16773 conftest$ac_exeext conftest.$ac_ext 16774fi 16775ac_res=`eval echo '${'$as_ac_var'}'` 16776 { echo "$as_me:$LINENO: result: $ac_res" >&5 16777echo "${ECHO_T}$ac_res" >&6; } 16778if test `eval echo '${'$as_ac_var'}'` = yes; then 16779 cat >>confdefs.h <<_ACEOF 16780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16781_ACEOF 16782 16783fi 16784done 16785 16786 16787 16788 16789 16790 16791for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday 16792do 16793as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16794{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16795echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16796if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16797 echo $ECHO_N "(cached) $ECHO_C" >&6 16798else 16799 cat >conftest.$ac_ext <<_ACEOF 16800/* confdefs.h. */ 16801_ACEOF 16802cat confdefs.h >>conftest.$ac_ext 16803cat >>conftest.$ac_ext <<_ACEOF 16804/* end confdefs.h. */ 16805/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16806 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16807#define $ac_func innocuous_$ac_func 16808 16809/* System header to define __stub macros and hopefully few prototypes, 16810 which can conflict with char $ac_func (); below. 16811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16812 <limits.h> exists even on freestanding compilers. */ 16813 16814#ifdef __STDC__ 16815# include <limits.h> 16816#else 16817# include <assert.h> 16818#endif 16819 16820#undef $ac_func 16821 16822/* Override any GCC internal prototype to avoid an error. 16823 Use char because int might match the return type of a GCC 16824 builtin and then its argument prototype would still apply. */ 16825#ifdef __cplusplus 16826extern "C" 16827#endif 16828char $ac_func (); 16829/* The GNU C library defines this for functions which it implements 16830 to always fail with ENOSYS. Some functions are actually named 16831 something starting with __ and the normal name is an alias. */ 16832#if defined __stub_$ac_func || defined __stub___$ac_func 16833choke me 16834#endif 16835 16836int 16837main () 16838{ 16839return $ac_func (); 16840 ; 16841 return 0; 16842} 16843_ACEOF 16844rm -f conftest.$ac_objext conftest$ac_exeext 16845if { (ac_try="$ac_link" 16846case "(($ac_try" in 16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16848 *) ac_try_echo=$ac_try;; 16849esac 16850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16851 (eval "$ac_link") 2>conftest.er1 16852 ac_status=$? 16853 grep -v '^ *+' conftest.er1 >conftest.err 16854 rm -f conftest.er1 16855 cat conftest.err >&5 16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16857 (exit $ac_status); } && 16858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16859 { (case "(($ac_try" in 16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16861 *) ac_try_echo=$ac_try;; 16862esac 16863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16864 (eval "$ac_try") 2>&5 16865 ac_status=$? 16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16867 (exit $ac_status); }; } && 16868 { ac_try='test -s conftest$ac_exeext' 16869 { (case "(($ac_try" in 16870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16871 *) ac_try_echo=$ac_try;; 16872esac 16873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16874 (eval "$ac_try") 2>&5 16875 ac_status=$? 16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16877 (exit $ac_status); }; }; then 16878 eval "$as_ac_var=yes" 16879else 16880 echo "$as_me: failed program was:" >&5 16881sed 's/^/| /' conftest.$ac_ext >&5 16882 16883 eval "$as_ac_var=no" 16884fi 16885 16886rm -f core conftest.err conftest.$ac_objext \ 16887 conftest$ac_exeext conftest.$ac_ext 16888fi 16889ac_res=`eval echo '${'$as_ac_var'}'` 16890 { echo "$as_me:$LINENO: result: $ac_res" >&5 16891echo "${ECHO_T}$ac_res" >&6; } 16892if test `eval echo '${'$as_ac_var'}'` = yes; then 16893 cat >>confdefs.h <<_ACEOF 16894#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16895_ACEOF 16896 16897fi 16898done 16899 16900 16901 16902 16903for ac_func in isatty mkdtemp mkstemp 16904do 16905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16906{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16908if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16909 echo $ECHO_N "(cached) $ECHO_C" >&6 16910else 16911 cat >conftest.$ac_ext <<_ACEOF 16912/* confdefs.h. */ 16913_ACEOF 16914cat confdefs.h >>conftest.$ac_ext 16915cat >>conftest.$ac_ext <<_ACEOF 16916/* end confdefs.h. */ 16917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16918 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16919#define $ac_func innocuous_$ac_func 16920 16921/* System header to define __stub macros and hopefully few prototypes, 16922 which can conflict with char $ac_func (); below. 16923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16924 <limits.h> exists even on freestanding compilers. */ 16925 16926#ifdef __STDC__ 16927# include <limits.h> 16928#else 16929# include <assert.h> 16930#endif 16931 16932#undef $ac_func 16933 16934/* Override any GCC internal prototype to avoid an error. 16935 Use char because int might match the return type of a GCC 16936 builtin and then its argument prototype would still apply. */ 16937#ifdef __cplusplus 16938extern "C" 16939#endif 16940char $ac_func (); 16941/* The GNU C library defines this for functions which it implements 16942 to always fail with ENOSYS. Some functions are actually named 16943 something starting with __ and the normal name is an alias. */ 16944#if defined __stub_$ac_func || defined __stub___$ac_func 16945choke me 16946#endif 16947 16948int 16949main () 16950{ 16951return $ac_func (); 16952 ; 16953 return 0; 16954} 16955_ACEOF 16956rm -f conftest.$ac_objext conftest$ac_exeext 16957if { (ac_try="$ac_link" 16958case "(($ac_try" in 16959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16960 *) ac_try_echo=$ac_try;; 16961esac 16962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16963 (eval "$ac_link") 2>conftest.er1 16964 ac_status=$? 16965 grep -v '^ *+' conftest.er1 >conftest.err 16966 rm -f conftest.er1 16967 cat conftest.err >&5 16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16969 (exit $ac_status); } && 16970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 16971 { (case "(($ac_try" in 16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16973 *) ac_try_echo=$ac_try;; 16974esac 16975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16976 (eval "$ac_try") 2>&5 16977 ac_status=$? 16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16979 (exit $ac_status); }; } && 16980 { ac_try='test -s conftest$ac_exeext' 16981 { (case "(($ac_try" in 16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16983 *) ac_try_echo=$ac_try;; 16984esac 16985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16986 (eval "$ac_try") 2>&5 16987 ac_status=$? 16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16989 (exit $ac_status); }; }; then 16990 eval "$as_ac_var=yes" 16991else 16992 echo "$as_me: failed program was:" >&5 16993sed 's/^/| /' conftest.$ac_ext >&5 16994 16995 eval "$as_ac_var=no" 16996fi 16997 16998rm -f core conftest.err conftest.$ac_objext \ 16999 conftest$ac_exeext conftest.$ac_ext 17000fi 17001ac_res=`eval echo '${'$as_ac_var'}'` 17002 { echo "$as_me:$LINENO: result: $ac_res" >&5 17003echo "${ECHO_T}$ac_res" >&6; } 17004if test `eval echo '${'$as_ac_var'}'` = yes; then 17005 cat >>confdefs.h <<_ACEOF 17006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17007_ACEOF 17008 17009fi 17010done 17011 17012 17013 17014 17015 17016 17017 17018for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup 17019do 17020as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17021{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17022echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17023if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17024 echo $ECHO_N "(cached) $ECHO_C" >&6 17025else 17026 cat >conftest.$ac_ext <<_ACEOF 17027/* confdefs.h. */ 17028_ACEOF 17029cat confdefs.h >>conftest.$ac_ext 17030cat >>conftest.$ac_ext <<_ACEOF 17031/* end confdefs.h. */ 17032/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17033 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17034#define $ac_func innocuous_$ac_func 17035 17036/* System header to define __stub macros and hopefully few prototypes, 17037 which can conflict with char $ac_func (); below. 17038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17039 <limits.h> exists even on freestanding compilers. */ 17040 17041#ifdef __STDC__ 17042# include <limits.h> 17043#else 17044# include <assert.h> 17045#endif 17046 17047#undef $ac_func 17048 17049/* Override any GCC internal prototype to avoid an error. 17050 Use char because int might match the return type of a GCC 17051 builtin and then its argument prototype would still apply. */ 17052#ifdef __cplusplus 17053extern "C" 17054#endif 17055char $ac_func (); 17056/* The GNU C library defines this for functions which it implements 17057 to always fail with ENOSYS. Some functions are actually named 17058 something starting with __ and the normal name is an alias. */ 17059#if defined __stub_$ac_func || defined __stub___$ac_func 17060choke me 17061#endif 17062 17063int 17064main () 17065{ 17066return $ac_func (); 17067 ; 17068 return 0; 17069} 17070_ACEOF 17071rm -f conftest.$ac_objext conftest$ac_exeext 17072if { (ac_try="$ac_link" 17073case "(($ac_try" in 17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17075 *) ac_try_echo=$ac_try;; 17076esac 17077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17078 (eval "$ac_link") 2>conftest.er1 17079 ac_status=$? 17080 grep -v '^ *+' conftest.er1 >conftest.err 17081 rm -f conftest.er1 17082 cat conftest.err >&5 17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17084 (exit $ac_status); } && 17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17086 { (case "(($ac_try" in 17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17088 *) ac_try_echo=$ac_try;; 17089esac 17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17091 (eval "$ac_try") 2>&5 17092 ac_status=$? 17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17094 (exit $ac_status); }; } && 17095 { ac_try='test -s conftest$ac_exeext' 17096 { (case "(($ac_try" in 17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17098 *) ac_try_echo=$ac_try;; 17099esac 17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17101 (eval "$ac_try") 2>&5 17102 ac_status=$? 17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17104 (exit $ac_status); }; }; then 17105 eval "$as_ac_var=yes" 17106else 17107 echo "$as_me: failed program was:" >&5 17108sed 's/^/| /' conftest.$ac_ext >&5 17109 17110 eval "$as_ac_var=no" 17111fi 17112 17113rm -f core conftest.err conftest.$ac_objext \ 17114 conftest$ac_exeext conftest.$ac_ext 17115fi 17116ac_res=`eval echo '${'$as_ac_var'}'` 17117 { echo "$as_me:$LINENO: result: $ac_res" >&5 17118echo "${ECHO_T}$ac_res" >&6; } 17119if test `eval echo '${'$as_ac_var'}'` = yes; then 17120 cat >>confdefs.h <<_ACEOF 17121#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17122_ACEOF 17123 17124fi 17125done 17126 17127 17128 17129 17130for ac_func in strerror strerror_r setenv 17131do 17132as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17133{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17134echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17135if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17136 echo $ECHO_N "(cached) $ECHO_C" >&6 17137else 17138 cat >conftest.$ac_ext <<_ACEOF 17139/* confdefs.h. */ 17140_ACEOF 17141cat confdefs.h >>conftest.$ac_ext 17142cat >>conftest.$ac_ext <<_ACEOF 17143/* end confdefs.h. */ 17144/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17145 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17146#define $ac_func innocuous_$ac_func 17147 17148/* System header to define __stub macros and hopefully few prototypes, 17149 which can conflict with char $ac_func (); below. 17150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17151 <limits.h> exists even on freestanding compilers. */ 17152 17153#ifdef __STDC__ 17154# include <limits.h> 17155#else 17156# include <assert.h> 17157#endif 17158 17159#undef $ac_func 17160 17161/* Override any GCC internal prototype to avoid an error. 17162 Use char because int might match the return type of a GCC 17163 builtin and then its argument prototype would still apply. */ 17164#ifdef __cplusplus 17165extern "C" 17166#endif 17167char $ac_func (); 17168/* The GNU C library defines this for functions which it implements 17169 to always fail with ENOSYS. Some functions are actually named 17170 something starting with __ and the normal name is an alias. */ 17171#if defined __stub_$ac_func || defined __stub___$ac_func 17172choke me 17173#endif 17174 17175int 17176main () 17177{ 17178return $ac_func (); 17179 ; 17180 return 0; 17181} 17182_ACEOF 17183rm -f conftest.$ac_objext conftest$ac_exeext 17184if { (ac_try="$ac_link" 17185case "(($ac_try" in 17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17187 *) ac_try_echo=$ac_try;; 17188esac 17189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17190 (eval "$ac_link") 2>conftest.er1 17191 ac_status=$? 17192 grep -v '^ *+' conftest.er1 >conftest.err 17193 rm -f conftest.er1 17194 cat conftest.err >&5 17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17196 (exit $ac_status); } && 17197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17198 { (case "(($ac_try" in 17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17200 *) ac_try_echo=$ac_try;; 17201esac 17202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17203 (eval "$ac_try") 2>&5 17204 ac_status=$? 17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17206 (exit $ac_status); }; } && 17207 { ac_try='test -s conftest$ac_exeext' 17208 { (case "(($ac_try" in 17209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17210 *) ac_try_echo=$ac_try;; 17211esac 17212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17213 (eval "$ac_try") 2>&5 17214 ac_status=$? 17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17216 (exit $ac_status); }; }; then 17217 eval "$as_ac_var=yes" 17218else 17219 echo "$as_me: failed program was:" >&5 17220sed 's/^/| /' conftest.$ac_ext >&5 17221 17222 eval "$as_ac_var=no" 17223fi 17224 17225rm -f core conftest.err conftest.$ac_objext \ 17226 conftest$ac_exeext conftest.$ac_ext 17227fi 17228ac_res=`eval echo '${'$as_ac_var'}'` 17229 { echo "$as_me:$LINENO: result: $ac_res" >&5 17230echo "${ECHO_T}$ac_res" >&6; } 17231if test `eval echo '${'$as_ac_var'}'` = yes; then 17232 cat >>confdefs.h <<_ACEOF 17233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17234_ACEOF 17235 17236fi 17237done 17238 17239 17240 17241 17242 17243for ac_func in strtoll strtoq sysconf malloc_zone_statistics 17244do 17245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17246{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17248if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17249 echo $ECHO_N "(cached) $ECHO_C" >&6 17250else 17251 cat >conftest.$ac_ext <<_ACEOF 17252/* confdefs.h. */ 17253_ACEOF 17254cat confdefs.h >>conftest.$ac_ext 17255cat >>conftest.$ac_ext <<_ACEOF 17256/* end confdefs.h. */ 17257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17258 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17259#define $ac_func innocuous_$ac_func 17260 17261/* System header to define __stub macros and hopefully few prototypes, 17262 which can conflict with char $ac_func (); below. 17263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17264 <limits.h> exists even on freestanding compilers. */ 17265 17266#ifdef __STDC__ 17267# include <limits.h> 17268#else 17269# include <assert.h> 17270#endif 17271 17272#undef $ac_func 17273 17274/* Override any GCC internal prototype to avoid an error. 17275 Use char because int might match the return type of a GCC 17276 builtin and then its argument prototype would still apply. */ 17277#ifdef __cplusplus 17278extern "C" 17279#endif 17280char $ac_func (); 17281/* The GNU C library defines this for functions which it implements 17282 to always fail with ENOSYS. Some functions are actually named 17283 something starting with __ and the normal name is an alias. */ 17284#if defined __stub_$ac_func || defined __stub___$ac_func 17285choke me 17286#endif 17287 17288int 17289main () 17290{ 17291return $ac_func (); 17292 ; 17293 return 0; 17294} 17295_ACEOF 17296rm -f conftest.$ac_objext conftest$ac_exeext 17297if { (ac_try="$ac_link" 17298case "(($ac_try" in 17299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17300 *) ac_try_echo=$ac_try;; 17301esac 17302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17303 (eval "$ac_link") 2>conftest.er1 17304 ac_status=$? 17305 grep -v '^ *+' conftest.er1 >conftest.err 17306 rm -f conftest.er1 17307 cat conftest.err >&5 17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17309 (exit $ac_status); } && 17310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17311 { (case "(($ac_try" in 17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17313 *) ac_try_echo=$ac_try;; 17314esac 17315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17316 (eval "$ac_try") 2>&5 17317 ac_status=$? 17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17319 (exit $ac_status); }; } && 17320 { ac_try='test -s conftest$ac_exeext' 17321 { (case "(($ac_try" in 17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17323 *) ac_try_echo=$ac_try;; 17324esac 17325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17326 (eval "$ac_try") 2>&5 17327 ac_status=$? 17328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17329 (exit $ac_status); }; }; then 17330 eval "$as_ac_var=yes" 17331else 17332 echo "$as_me: failed program was:" >&5 17333sed 's/^/| /' conftest.$ac_ext >&5 17334 17335 eval "$as_ac_var=no" 17336fi 17337 17338rm -f core conftest.err conftest.$ac_objext \ 17339 conftest$ac_exeext conftest.$ac_ext 17340fi 17341ac_res=`eval echo '${'$as_ac_var'}'` 17342 { echo "$as_me:$LINENO: result: $ac_res" >&5 17343echo "${ECHO_T}$ac_res" >&6; } 17344if test `eval echo '${'$as_ac_var'}'` = yes; then 17345 cat >>confdefs.h <<_ACEOF 17346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17347_ACEOF 17348 17349fi 17350done 17351 17352 17353 17354 17355 17356 17357for ac_func in setjmp longjmp sigsetjmp siglongjmp writev 17358do 17359as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17360{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17361echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17362if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17363 echo $ECHO_N "(cached) $ECHO_C" >&6 17364else 17365 cat >conftest.$ac_ext <<_ACEOF 17366/* confdefs.h. */ 17367_ACEOF 17368cat confdefs.h >>conftest.$ac_ext 17369cat >>conftest.$ac_ext <<_ACEOF 17370/* end confdefs.h. */ 17371/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17372 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17373#define $ac_func innocuous_$ac_func 17374 17375/* System header to define __stub macros and hopefully few prototypes, 17376 which can conflict with char $ac_func (); below. 17377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17378 <limits.h> exists even on freestanding compilers. */ 17379 17380#ifdef __STDC__ 17381# include <limits.h> 17382#else 17383# include <assert.h> 17384#endif 17385 17386#undef $ac_func 17387 17388/* Override any GCC internal prototype to avoid an error. 17389 Use char because int might match the return type of a GCC 17390 builtin and then its argument prototype would still apply. */ 17391#ifdef __cplusplus 17392extern "C" 17393#endif 17394char $ac_func (); 17395/* The GNU C library defines this for functions which it implements 17396 to always fail with ENOSYS. Some functions are actually named 17397 something starting with __ and the normal name is an alias. */ 17398#if defined __stub_$ac_func || defined __stub___$ac_func 17399choke me 17400#endif 17401 17402int 17403main () 17404{ 17405return $ac_func (); 17406 ; 17407 return 0; 17408} 17409_ACEOF 17410rm -f conftest.$ac_objext conftest$ac_exeext 17411if { (ac_try="$ac_link" 17412case "(($ac_try" in 17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17414 *) ac_try_echo=$ac_try;; 17415esac 17416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17417 (eval "$ac_link") 2>conftest.er1 17418 ac_status=$? 17419 grep -v '^ *+' conftest.er1 >conftest.err 17420 rm -f conftest.er1 17421 cat conftest.err >&5 17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17423 (exit $ac_status); } && 17424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17425 { (case "(($ac_try" in 17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17427 *) ac_try_echo=$ac_try;; 17428esac 17429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17430 (eval "$ac_try") 2>&5 17431 ac_status=$? 17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17433 (exit $ac_status); }; } && 17434 { ac_try='test -s conftest$ac_exeext' 17435 { (case "(($ac_try" in 17436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17437 *) ac_try_echo=$ac_try;; 17438esac 17439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17440 (eval "$ac_try") 2>&5 17441 ac_status=$? 17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17443 (exit $ac_status); }; }; then 17444 eval "$as_ac_var=yes" 17445else 17446 echo "$as_me: failed program was:" >&5 17447sed 's/^/| /' conftest.$ac_ext >&5 17448 17449 eval "$as_ac_var=no" 17450fi 17451 17452rm -f core conftest.err conftest.$ac_objext \ 17453 conftest$ac_exeext conftest.$ac_ext 17454fi 17455ac_res=`eval echo '${'$as_ac_var'}'` 17456 { echo "$as_me:$LINENO: result: $ac_res" >&5 17457echo "${ECHO_T}$ac_res" >&6; } 17458if test `eval echo '${'$as_ac_var'}'` = yes; then 17459 cat >>confdefs.h <<_ACEOF 17460#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17461_ACEOF 17462 17463fi 17464done 17465 17466{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5 17467echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; } 17468if test "${llvm_cv_c_printf_a+set}" = set; then 17469 echo $ECHO_N "(cached) $ECHO_C" >&6 17470else 17471 ac_ext=c 17472ac_cpp='$CPP $CPPFLAGS' 17473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17475ac_compiler_gnu=$ac_cv_c_compiler_gnu 17476 17477 if test "$cross_compiling" = yes; then 17478 llvmac_cv_c_printf_a=no 17479else 17480 cat >conftest.$ac_ext <<_ACEOF 17481 17482 /* confdefs.h. */ 17483_ACEOF 17484cat confdefs.h >>conftest.$ac_ext 17485cat >>conftest.$ac_ext <<_ACEOF 17486/* end confdefs.h. */ 17487 17488#include <stdio.h> 17489#include <stdlib.h> 17490 17491int 17492main () 17493{ 17494 17495volatile double A, B; 17496char Buffer[100]; 17497A = 1; 17498A /= 10.0; 17499sprintf(Buffer, "%a", A); 17500B = atof(Buffer); 17501if (A != B) 17502 return (1); 17503if (A != 0x1.999999999999ap-4) 17504 return (1); 17505return (0); 17506 ; 17507 return 0; 17508} 17509_ACEOF 17510rm -f conftest$ac_exeext 17511if { (ac_try="$ac_link" 17512case "(($ac_try" in 17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17514 *) ac_try_echo=$ac_try;; 17515esac 17516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17517 (eval "$ac_link") 2>&5 17518 ac_status=$? 17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17521 { (case "(($ac_try" in 17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17523 *) ac_try_echo=$ac_try;; 17524esac 17525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17526 (eval "$ac_try") 2>&5 17527 ac_status=$? 17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17529 (exit $ac_status); }; }; then 17530 llvm_cv_c_printf_a=yes 17531else 17532 echo "$as_me: program exited with status $ac_status" >&5 17533echo "$as_me: failed program was:" >&5 17534sed 's/^/| /' conftest.$ac_ext >&5 17535 17536( exit $ac_status ) 17537llvmac_cv_c_printf_a=no 17538fi 17539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17540fi 17541 17542 17543 ac_ext=c 17544ac_cpp='$CPP $CPPFLAGS' 17545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17547ac_compiler_gnu=$ac_cv_c_compiler_gnu 17548 17549fi 17550{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5 17551echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; } 17552 if test "$llvm_cv_c_printf_a" = "yes"; then 17553 17554cat >>confdefs.h <<\_ACEOF 17555#define HAVE_PRINTF_A 1 17556_ACEOF 17557 17558 fi 17559 17560 17561{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5 17562echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; } 17563if test "${ac_cv_func_rand48+set}" = set; then 17564 echo $ECHO_N "(cached) $ECHO_C" >&6 17565else 17566 ac_ext=cpp 17567ac_cpp='$CXXCPP $CPPFLAGS' 17568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17571 17572 cat >conftest.$ac_ext <<_ACEOF 17573/* confdefs.h. */ 17574_ACEOF 17575cat confdefs.h >>conftest.$ac_ext 17576cat >>conftest.$ac_ext <<_ACEOF 17577/* end confdefs.h. */ 17578#include <stdlib.h> 17579int 17580main () 17581{ 17582srand48(0);lrand48();drand48(); 17583 ; 17584 return 0; 17585} 17586_ACEOF 17587rm -f conftest.$ac_objext 17588if { (ac_try="$ac_compile" 17589case "(($ac_try" in 17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17591 *) ac_try_echo=$ac_try;; 17592esac 17593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17594 (eval "$ac_compile") 2>conftest.er1 17595 ac_status=$? 17596 grep -v '^ *+' conftest.er1 >conftest.err 17597 rm -f conftest.er1 17598 cat conftest.err >&5 17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17600 (exit $ac_status); } && 17601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 17602 { (case "(($ac_try" in 17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17604 *) ac_try_echo=$ac_try;; 17605esac 17606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17607 (eval "$ac_try") 2>&5 17608 ac_status=$? 17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17610 (exit $ac_status); }; } && 17611 { ac_try='test -s conftest.$ac_objext' 17612 { (case "(($ac_try" in 17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17614 *) ac_try_echo=$ac_try;; 17615esac 17616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17617 (eval "$ac_try") 2>&5 17618 ac_status=$? 17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17620 (exit $ac_status); }; }; then 17621 ac_cv_func_rand48=yes 17622else 17623 echo "$as_me: failed program was:" >&5 17624sed 's/^/| /' conftest.$ac_ext >&5 17625 17626 ac_cv_func_rand48=no 17627fi 17628 17629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17630 ac_ext=c 17631ac_cpp='$CPP $CPPFLAGS' 17632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17634ac_compiler_gnu=$ac_cv_c_compiler_gnu 17635 17636fi 17637{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5 17638echo "${ECHO_T}$ac_cv_func_rand48" >&6; } 17639 17640if test "$ac_cv_func_rand48" = "yes" ; then 17641 17642cat >>confdefs.h <<\_ACEOF 17643#define HAVE_RAND48 1 17644_ACEOF 17645 17646fi 17647 17648 17649{ echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5 17650echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; } 17651if test "${ac_cv_have_decl_strerror_s+set}" = set; then 17652 echo $ECHO_N "(cached) $ECHO_C" >&6 17653else 17654 cat >conftest.$ac_ext <<_ACEOF 17655/* confdefs.h. */ 17656_ACEOF 17657cat confdefs.h >>conftest.$ac_ext 17658cat >>conftest.$ac_ext <<_ACEOF 17659/* end confdefs.h. */ 17660$ac_includes_default 17661int 17662main () 17663{ 17664#ifndef strerror_s 17665 char *p = (char *) strerror_s; 17666 return !p; 17667#endif 17668 17669 ; 17670 return 0; 17671} 17672_ACEOF 17673rm -f conftest.$ac_objext 17674if { (ac_try="$ac_compile" 17675case "(($ac_try" in 17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17677 *) ac_try_echo=$ac_try;; 17678esac 17679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17680 (eval "$ac_compile") 2>conftest.er1 17681 ac_status=$? 17682 grep -v '^ *+' conftest.er1 >conftest.err 17683 rm -f conftest.er1 17684 cat conftest.err >&5 17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17686 (exit $ac_status); } && 17687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17688 { (case "(($ac_try" in 17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17690 *) ac_try_echo=$ac_try;; 17691esac 17692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17693 (eval "$ac_try") 2>&5 17694 ac_status=$? 17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17696 (exit $ac_status); }; } && 17697 { ac_try='test -s conftest.$ac_objext' 17698 { (case "(($ac_try" in 17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17700 *) ac_try_echo=$ac_try;; 17701esac 17702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17703 (eval "$ac_try") 2>&5 17704 ac_status=$? 17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17706 (exit $ac_status); }; }; then 17707 ac_cv_have_decl_strerror_s=yes 17708else 17709 echo "$as_me: failed program was:" >&5 17710sed 's/^/| /' conftest.$ac_ext >&5 17711 17712 ac_cv_have_decl_strerror_s=no 17713fi 17714 17715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17716fi 17717{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5 17718echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; } 17719if test $ac_cv_have_decl_strerror_s = yes; then 17720 17721cat >>confdefs.h <<_ACEOF 17722#define HAVE_DECL_STRERROR_S 1 17723_ACEOF 17724 17725 17726else 17727 cat >>confdefs.h <<_ACEOF 17728#define HAVE_DECL_STRERROR_S 0 17729_ACEOF 17730 17731 17732fi 17733 17734 17735 17736if test "$llvm_cv_os_type" = "MingW" ; then 17737 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5 17738echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; } 17739if test "${ac_cv_lib_gcc__alloca+set}" = set; then 17740 echo $ECHO_N "(cached) $ECHO_C" >&6 17741else 17742 ac_check_lib_save_LIBS=$LIBS 17743LIBS="-lgcc $LIBS" 17744cat >conftest.$ac_ext <<_ACEOF 17745/* confdefs.h. */ 17746_ACEOF 17747cat confdefs.h >>conftest.$ac_ext 17748cat >>conftest.$ac_ext <<_ACEOF 17749/* end confdefs.h. */ 17750 17751/* Override any GCC internal prototype to avoid an error. 17752 Use char because int might match the return type of a GCC 17753 builtin and then its argument prototype would still apply. */ 17754#ifdef __cplusplus 17755extern "C" 17756#endif 17757char _alloca (); 17758int 17759main () 17760{ 17761return _alloca (); 17762 ; 17763 return 0; 17764} 17765_ACEOF 17766rm -f conftest.$ac_objext conftest$ac_exeext 17767if { (ac_try="$ac_link" 17768case "(($ac_try" in 17769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17770 *) ac_try_echo=$ac_try;; 17771esac 17772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17773 (eval "$ac_link") 2>conftest.er1 17774 ac_status=$? 17775 grep -v '^ *+' conftest.er1 >conftest.err 17776 rm -f conftest.er1 17777 cat conftest.err >&5 17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17779 (exit $ac_status); } && 17780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17781 { (case "(($ac_try" in 17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17783 *) ac_try_echo=$ac_try;; 17784esac 17785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17786 (eval "$ac_try") 2>&5 17787 ac_status=$? 17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17789 (exit $ac_status); }; } && 17790 { ac_try='test -s conftest$ac_exeext' 17791 { (case "(($ac_try" in 17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17793 *) ac_try_echo=$ac_try;; 17794esac 17795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17796 (eval "$ac_try") 2>&5 17797 ac_status=$? 17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17799 (exit $ac_status); }; }; then 17800 ac_cv_lib_gcc__alloca=yes 17801else 17802 echo "$as_me: failed program was:" >&5 17803sed 's/^/| /' conftest.$ac_ext >&5 17804 17805 ac_cv_lib_gcc__alloca=no 17806fi 17807 17808rm -f core conftest.err conftest.$ac_objext \ 17809 conftest$ac_exeext conftest.$ac_ext 17810LIBS=$ac_check_lib_save_LIBS 17811fi 17812{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5 17813echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; } 17814if test $ac_cv_lib_gcc__alloca = yes; then 17815 17816cat >>confdefs.h <<\_ACEOF 17817#define HAVE__ALLOCA 1 17818_ACEOF 17819 17820fi 17821 17822 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5 17823echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; } 17824if test "${ac_cv_lib_gcc___alloca+set}" = set; then 17825 echo $ECHO_N "(cached) $ECHO_C" >&6 17826else 17827 ac_check_lib_save_LIBS=$LIBS 17828LIBS="-lgcc $LIBS" 17829cat >conftest.$ac_ext <<_ACEOF 17830/* confdefs.h. */ 17831_ACEOF 17832cat confdefs.h >>conftest.$ac_ext 17833cat >>conftest.$ac_ext <<_ACEOF 17834/* end confdefs.h. */ 17835 17836/* Override any GCC internal prototype to avoid an error. 17837 Use char because int might match the return type of a GCC 17838 builtin and then its argument prototype would still apply. */ 17839#ifdef __cplusplus 17840extern "C" 17841#endif 17842char __alloca (); 17843int 17844main () 17845{ 17846return __alloca (); 17847 ; 17848 return 0; 17849} 17850_ACEOF 17851rm -f conftest.$ac_objext conftest$ac_exeext 17852if { (ac_try="$ac_link" 17853case "(($ac_try" in 17854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17855 *) ac_try_echo=$ac_try;; 17856esac 17857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17858 (eval "$ac_link") 2>conftest.er1 17859 ac_status=$? 17860 grep -v '^ *+' conftest.er1 >conftest.err 17861 rm -f conftest.er1 17862 cat conftest.err >&5 17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17864 (exit $ac_status); } && 17865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17866 { (case "(($ac_try" in 17867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17868 *) ac_try_echo=$ac_try;; 17869esac 17870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17871 (eval "$ac_try") 2>&5 17872 ac_status=$? 17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17874 (exit $ac_status); }; } && 17875 { ac_try='test -s conftest$ac_exeext' 17876 { (case "(($ac_try" in 17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17878 *) ac_try_echo=$ac_try;; 17879esac 17880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17881 (eval "$ac_try") 2>&5 17882 ac_status=$? 17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17884 (exit $ac_status); }; }; then 17885 ac_cv_lib_gcc___alloca=yes 17886else 17887 echo "$as_me: failed program was:" >&5 17888sed 's/^/| /' conftest.$ac_ext >&5 17889 17890 ac_cv_lib_gcc___alloca=no 17891fi 17892 17893rm -f core conftest.err conftest.$ac_objext \ 17894 conftest$ac_exeext conftest.$ac_ext 17895LIBS=$ac_check_lib_save_LIBS 17896fi 17897{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5 17898echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; } 17899if test $ac_cv_lib_gcc___alloca = yes; then 17900 17901cat >>confdefs.h <<\_ACEOF 17902#define HAVE___ALLOCA 1 17903_ACEOF 17904 17905fi 17906 17907 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5 17908echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; } 17909if test "${ac_cv_lib_gcc___chkstk+set}" = set; then 17910 echo $ECHO_N "(cached) $ECHO_C" >&6 17911else 17912 ac_check_lib_save_LIBS=$LIBS 17913LIBS="-lgcc $LIBS" 17914cat >conftest.$ac_ext <<_ACEOF 17915/* confdefs.h. */ 17916_ACEOF 17917cat confdefs.h >>conftest.$ac_ext 17918cat >>conftest.$ac_ext <<_ACEOF 17919/* end confdefs.h. */ 17920 17921/* Override any GCC internal prototype to avoid an error. 17922 Use char because int might match the return type of a GCC 17923 builtin and then its argument prototype would still apply. */ 17924#ifdef __cplusplus 17925extern "C" 17926#endif 17927char __chkstk (); 17928int 17929main () 17930{ 17931return __chkstk (); 17932 ; 17933 return 0; 17934} 17935_ACEOF 17936rm -f conftest.$ac_objext conftest$ac_exeext 17937if { (ac_try="$ac_link" 17938case "(($ac_try" in 17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17940 *) ac_try_echo=$ac_try;; 17941esac 17942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17943 (eval "$ac_link") 2>conftest.er1 17944 ac_status=$? 17945 grep -v '^ *+' conftest.er1 >conftest.err 17946 rm -f conftest.er1 17947 cat conftest.err >&5 17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17949 (exit $ac_status); } && 17950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17951 { (case "(($ac_try" in 17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17953 *) ac_try_echo=$ac_try;; 17954esac 17955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17956 (eval "$ac_try") 2>&5 17957 ac_status=$? 17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17959 (exit $ac_status); }; } && 17960 { ac_try='test -s conftest$ac_exeext' 17961 { (case "(($ac_try" in 17962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17963 *) ac_try_echo=$ac_try;; 17964esac 17965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17966 (eval "$ac_try") 2>&5 17967 ac_status=$? 17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17969 (exit $ac_status); }; }; then 17970 ac_cv_lib_gcc___chkstk=yes 17971else 17972 echo "$as_me: failed program was:" >&5 17973sed 's/^/| /' conftest.$ac_ext >&5 17974 17975 ac_cv_lib_gcc___chkstk=no 17976fi 17977 17978rm -f core conftest.err conftest.$ac_objext \ 17979 conftest$ac_exeext conftest.$ac_ext 17980LIBS=$ac_check_lib_save_LIBS 17981fi 17982{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5 17983echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; } 17984if test $ac_cv_lib_gcc___chkstk = yes; then 17985 17986cat >>confdefs.h <<\_ACEOF 17987#define HAVE___CHKSTK 1 17988_ACEOF 17989 17990fi 17991 17992 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5 17993echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; } 17994if test "${ac_cv_lib_gcc____chkstk+set}" = set; then 17995 echo $ECHO_N "(cached) $ECHO_C" >&6 17996else 17997 ac_check_lib_save_LIBS=$LIBS 17998LIBS="-lgcc $LIBS" 17999cat >conftest.$ac_ext <<_ACEOF 18000/* confdefs.h. */ 18001_ACEOF 18002cat confdefs.h >>conftest.$ac_ext 18003cat >>conftest.$ac_ext <<_ACEOF 18004/* end confdefs.h. */ 18005 18006/* Override any GCC internal prototype to avoid an error. 18007 Use char because int might match the return type of a GCC 18008 builtin and then its argument prototype would still apply. */ 18009#ifdef __cplusplus 18010extern "C" 18011#endif 18012char ___chkstk (); 18013int 18014main () 18015{ 18016return ___chkstk (); 18017 ; 18018 return 0; 18019} 18020_ACEOF 18021rm -f conftest.$ac_objext conftest$ac_exeext 18022if { (ac_try="$ac_link" 18023case "(($ac_try" in 18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18025 *) ac_try_echo=$ac_try;; 18026esac 18027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18028 (eval "$ac_link") 2>conftest.er1 18029 ac_status=$? 18030 grep -v '^ *+' conftest.er1 >conftest.err 18031 rm -f conftest.er1 18032 cat conftest.err >&5 18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18034 (exit $ac_status); } && 18035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18036 { (case "(($ac_try" in 18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18038 *) ac_try_echo=$ac_try;; 18039esac 18040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18041 (eval "$ac_try") 2>&5 18042 ac_status=$? 18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18044 (exit $ac_status); }; } && 18045 { ac_try='test -s conftest$ac_exeext' 18046 { (case "(($ac_try" in 18047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18048 *) ac_try_echo=$ac_try;; 18049esac 18050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18051 (eval "$ac_try") 2>&5 18052 ac_status=$? 18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18054 (exit $ac_status); }; }; then 18055 ac_cv_lib_gcc____chkstk=yes 18056else 18057 echo "$as_me: failed program was:" >&5 18058sed 's/^/| /' conftest.$ac_ext >&5 18059 18060 ac_cv_lib_gcc____chkstk=no 18061fi 18062 18063rm -f core conftest.err conftest.$ac_objext \ 18064 conftest$ac_exeext conftest.$ac_ext 18065LIBS=$ac_check_lib_save_LIBS 18066fi 18067{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5 18068echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; } 18069if test $ac_cv_lib_gcc____chkstk = yes; then 18070 18071cat >>confdefs.h <<\_ACEOF 18072#define HAVE____CHKSTK 1 18073_ACEOF 18074 18075fi 18076 18077 18078 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5 18079echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; } 18080if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then 18081 echo $ECHO_N "(cached) $ECHO_C" >&6 18082else 18083 ac_check_lib_save_LIBS=$LIBS 18084LIBS="-lgcc $LIBS" 18085cat >conftest.$ac_ext <<_ACEOF 18086/* confdefs.h. */ 18087_ACEOF 18088cat confdefs.h >>conftest.$ac_ext 18089cat >>conftest.$ac_ext <<_ACEOF 18090/* end confdefs.h. */ 18091 18092/* Override any GCC internal prototype to avoid an error. 18093 Use char because int might match the return type of a GCC 18094 builtin and then its argument prototype would still apply. */ 18095#ifdef __cplusplus 18096extern "C" 18097#endif 18098char __ashldi3 (); 18099int 18100main () 18101{ 18102return __ashldi3 (); 18103 ; 18104 return 0; 18105} 18106_ACEOF 18107rm -f conftest.$ac_objext conftest$ac_exeext 18108if { (ac_try="$ac_link" 18109case "(($ac_try" in 18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18111 *) ac_try_echo=$ac_try;; 18112esac 18113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18114 (eval "$ac_link") 2>conftest.er1 18115 ac_status=$? 18116 grep -v '^ *+' conftest.er1 >conftest.err 18117 rm -f conftest.er1 18118 cat conftest.err >&5 18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18120 (exit $ac_status); } && 18121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18122 { (case "(($ac_try" in 18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18124 *) ac_try_echo=$ac_try;; 18125esac 18126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18127 (eval "$ac_try") 2>&5 18128 ac_status=$? 18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18130 (exit $ac_status); }; } && 18131 { ac_try='test -s conftest$ac_exeext' 18132 { (case "(($ac_try" in 18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18134 *) ac_try_echo=$ac_try;; 18135esac 18136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18137 (eval "$ac_try") 2>&5 18138 ac_status=$? 18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18140 (exit $ac_status); }; }; then 18141 ac_cv_lib_gcc___ashldi3=yes 18142else 18143 echo "$as_me: failed program was:" >&5 18144sed 's/^/| /' conftest.$ac_ext >&5 18145 18146 ac_cv_lib_gcc___ashldi3=no 18147fi 18148 18149rm -f core conftest.err conftest.$ac_objext \ 18150 conftest$ac_exeext conftest.$ac_ext 18151LIBS=$ac_check_lib_save_LIBS 18152fi 18153{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5 18154echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; } 18155if test $ac_cv_lib_gcc___ashldi3 = yes; then 18156 18157cat >>confdefs.h <<\_ACEOF 18158#define HAVE___ASHLDI3 1 18159_ACEOF 18160 18161fi 18162 18163 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5 18164echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; } 18165if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then 18166 echo $ECHO_N "(cached) $ECHO_C" >&6 18167else 18168 ac_check_lib_save_LIBS=$LIBS 18169LIBS="-lgcc $LIBS" 18170cat >conftest.$ac_ext <<_ACEOF 18171/* confdefs.h. */ 18172_ACEOF 18173cat confdefs.h >>conftest.$ac_ext 18174cat >>conftest.$ac_ext <<_ACEOF 18175/* end confdefs.h. */ 18176 18177/* Override any GCC internal prototype to avoid an error. 18178 Use char because int might match the return type of a GCC 18179 builtin and then its argument prototype would still apply. */ 18180#ifdef __cplusplus 18181extern "C" 18182#endif 18183char __ashrdi3 (); 18184int 18185main () 18186{ 18187return __ashrdi3 (); 18188 ; 18189 return 0; 18190} 18191_ACEOF 18192rm -f conftest.$ac_objext conftest$ac_exeext 18193if { (ac_try="$ac_link" 18194case "(($ac_try" in 18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18196 *) ac_try_echo=$ac_try;; 18197esac 18198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18199 (eval "$ac_link") 2>conftest.er1 18200 ac_status=$? 18201 grep -v '^ *+' conftest.er1 >conftest.err 18202 rm -f conftest.er1 18203 cat conftest.err >&5 18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18205 (exit $ac_status); } && 18206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18207 { (case "(($ac_try" in 18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18209 *) ac_try_echo=$ac_try;; 18210esac 18211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18212 (eval "$ac_try") 2>&5 18213 ac_status=$? 18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18215 (exit $ac_status); }; } && 18216 { ac_try='test -s conftest$ac_exeext' 18217 { (case "(($ac_try" in 18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18219 *) ac_try_echo=$ac_try;; 18220esac 18221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18222 (eval "$ac_try") 2>&5 18223 ac_status=$? 18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18225 (exit $ac_status); }; }; then 18226 ac_cv_lib_gcc___ashrdi3=yes 18227else 18228 echo "$as_me: failed program was:" >&5 18229sed 's/^/| /' conftest.$ac_ext >&5 18230 18231 ac_cv_lib_gcc___ashrdi3=no 18232fi 18233 18234rm -f core conftest.err conftest.$ac_objext \ 18235 conftest$ac_exeext conftest.$ac_ext 18236LIBS=$ac_check_lib_save_LIBS 18237fi 18238{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5 18239echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; } 18240if test $ac_cv_lib_gcc___ashrdi3 = yes; then 18241 18242cat >>confdefs.h <<\_ACEOF 18243#define HAVE___ASHRDI3 1 18244_ACEOF 18245 18246fi 18247 18248 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5 18249echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; } 18250if test "${ac_cv_lib_gcc___divdi3+set}" = set; then 18251 echo $ECHO_N "(cached) $ECHO_C" >&6 18252else 18253 ac_check_lib_save_LIBS=$LIBS 18254LIBS="-lgcc $LIBS" 18255cat >conftest.$ac_ext <<_ACEOF 18256/* confdefs.h. */ 18257_ACEOF 18258cat confdefs.h >>conftest.$ac_ext 18259cat >>conftest.$ac_ext <<_ACEOF 18260/* end confdefs.h. */ 18261 18262/* Override any GCC internal prototype to avoid an error. 18263 Use char because int might match the return type of a GCC 18264 builtin and then its argument prototype would still apply. */ 18265#ifdef __cplusplus 18266extern "C" 18267#endif 18268char __divdi3 (); 18269int 18270main () 18271{ 18272return __divdi3 (); 18273 ; 18274 return 0; 18275} 18276_ACEOF 18277rm -f conftest.$ac_objext conftest$ac_exeext 18278if { (ac_try="$ac_link" 18279case "(($ac_try" in 18280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18281 *) ac_try_echo=$ac_try;; 18282esac 18283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18284 (eval "$ac_link") 2>conftest.er1 18285 ac_status=$? 18286 grep -v '^ *+' conftest.er1 >conftest.err 18287 rm -f conftest.er1 18288 cat conftest.err >&5 18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18290 (exit $ac_status); } && 18291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18292 { (case "(($ac_try" in 18293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18294 *) ac_try_echo=$ac_try;; 18295esac 18296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18297 (eval "$ac_try") 2>&5 18298 ac_status=$? 18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18300 (exit $ac_status); }; } && 18301 { ac_try='test -s conftest$ac_exeext' 18302 { (case "(($ac_try" in 18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18304 *) ac_try_echo=$ac_try;; 18305esac 18306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18307 (eval "$ac_try") 2>&5 18308 ac_status=$? 18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18310 (exit $ac_status); }; }; then 18311 ac_cv_lib_gcc___divdi3=yes 18312else 18313 echo "$as_me: failed program was:" >&5 18314sed 's/^/| /' conftest.$ac_ext >&5 18315 18316 ac_cv_lib_gcc___divdi3=no 18317fi 18318 18319rm -f core conftest.err conftest.$ac_objext \ 18320 conftest$ac_exeext conftest.$ac_ext 18321LIBS=$ac_check_lib_save_LIBS 18322fi 18323{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5 18324echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; } 18325if test $ac_cv_lib_gcc___divdi3 = yes; then 18326 18327cat >>confdefs.h <<\_ACEOF 18328#define HAVE___DIVDI3 1 18329_ACEOF 18330 18331fi 18332 18333 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5 18334echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; } 18335if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then 18336 echo $ECHO_N "(cached) $ECHO_C" >&6 18337else 18338 ac_check_lib_save_LIBS=$LIBS 18339LIBS="-lgcc $LIBS" 18340cat >conftest.$ac_ext <<_ACEOF 18341/* confdefs.h. */ 18342_ACEOF 18343cat confdefs.h >>conftest.$ac_ext 18344cat >>conftest.$ac_ext <<_ACEOF 18345/* end confdefs.h. */ 18346 18347/* Override any GCC internal prototype to avoid an error. 18348 Use char because int might match the return type of a GCC 18349 builtin and then its argument prototype would still apply. */ 18350#ifdef __cplusplus 18351extern "C" 18352#endif 18353char __fixdfdi (); 18354int 18355main () 18356{ 18357return __fixdfdi (); 18358 ; 18359 return 0; 18360} 18361_ACEOF 18362rm -f conftest.$ac_objext conftest$ac_exeext 18363if { (ac_try="$ac_link" 18364case "(($ac_try" in 18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18366 *) ac_try_echo=$ac_try;; 18367esac 18368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18369 (eval "$ac_link") 2>conftest.er1 18370 ac_status=$? 18371 grep -v '^ *+' conftest.er1 >conftest.err 18372 rm -f conftest.er1 18373 cat conftest.err >&5 18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18375 (exit $ac_status); } && 18376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18377 { (case "(($ac_try" in 18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18379 *) ac_try_echo=$ac_try;; 18380esac 18381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18382 (eval "$ac_try") 2>&5 18383 ac_status=$? 18384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18385 (exit $ac_status); }; } && 18386 { ac_try='test -s conftest$ac_exeext' 18387 { (case "(($ac_try" in 18388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18389 *) ac_try_echo=$ac_try;; 18390esac 18391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18392 (eval "$ac_try") 2>&5 18393 ac_status=$? 18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18395 (exit $ac_status); }; }; then 18396 ac_cv_lib_gcc___fixdfdi=yes 18397else 18398 echo "$as_me: failed program was:" >&5 18399sed 's/^/| /' conftest.$ac_ext >&5 18400 18401 ac_cv_lib_gcc___fixdfdi=no 18402fi 18403 18404rm -f core conftest.err conftest.$ac_objext \ 18405 conftest$ac_exeext conftest.$ac_ext 18406LIBS=$ac_check_lib_save_LIBS 18407fi 18408{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5 18409echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; } 18410if test $ac_cv_lib_gcc___fixdfdi = yes; then 18411 18412cat >>confdefs.h <<\_ACEOF 18413#define HAVE___FIXDFDI 1 18414_ACEOF 18415 18416fi 18417 18418 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5 18419echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; } 18420if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then 18421 echo $ECHO_N "(cached) $ECHO_C" >&6 18422else 18423 ac_check_lib_save_LIBS=$LIBS 18424LIBS="-lgcc $LIBS" 18425cat >conftest.$ac_ext <<_ACEOF 18426/* confdefs.h. */ 18427_ACEOF 18428cat confdefs.h >>conftest.$ac_ext 18429cat >>conftest.$ac_ext <<_ACEOF 18430/* end confdefs.h. */ 18431 18432/* Override any GCC internal prototype to avoid an error. 18433 Use char because int might match the return type of a GCC 18434 builtin and then its argument prototype would still apply. */ 18435#ifdef __cplusplus 18436extern "C" 18437#endif 18438char __fixsfdi (); 18439int 18440main () 18441{ 18442return __fixsfdi (); 18443 ; 18444 return 0; 18445} 18446_ACEOF 18447rm -f conftest.$ac_objext conftest$ac_exeext 18448if { (ac_try="$ac_link" 18449case "(($ac_try" in 18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18451 *) ac_try_echo=$ac_try;; 18452esac 18453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18454 (eval "$ac_link") 2>conftest.er1 18455 ac_status=$? 18456 grep -v '^ *+' conftest.er1 >conftest.err 18457 rm -f conftest.er1 18458 cat conftest.err >&5 18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18460 (exit $ac_status); } && 18461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18462 { (case "(($ac_try" in 18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18464 *) ac_try_echo=$ac_try;; 18465esac 18466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18467 (eval "$ac_try") 2>&5 18468 ac_status=$? 18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18470 (exit $ac_status); }; } && 18471 { ac_try='test -s conftest$ac_exeext' 18472 { (case "(($ac_try" in 18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18474 *) ac_try_echo=$ac_try;; 18475esac 18476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18477 (eval "$ac_try") 2>&5 18478 ac_status=$? 18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18480 (exit $ac_status); }; }; then 18481 ac_cv_lib_gcc___fixsfdi=yes 18482else 18483 echo "$as_me: failed program was:" >&5 18484sed 's/^/| /' conftest.$ac_ext >&5 18485 18486 ac_cv_lib_gcc___fixsfdi=no 18487fi 18488 18489rm -f core conftest.err conftest.$ac_objext \ 18490 conftest$ac_exeext conftest.$ac_ext 18491LIBS=$ac_check_lib_save_LIBS 18492fi 18493{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5 18494echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; } 18495if test $ac_cv_lib_gcc___fixsfdi = yes; then 18496 18497cat >>confdefs.h <<\_ACEOF 18498#define HAVE___FIXSFDI 1 18499_ACEOF 18500 18501fi 18502 18503 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5 18504echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; } 18505if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then 18506 echo $ECHO_N "(cached) $ECHO_C" >&6 18507else 18508 ac_check_lib_save_LIBS=$LIBS 18509LIBS="-lgcc $LIBS" 18510cat >conftest.$ac_ext <<_ACEOF 18511/* confdefs.h. */ 18512_ACEOF 18513cat confdefs.h >>conftest.$ac_ext 18514cat >>conftest.$ac_ext <<_ACEOF 18515/* end confdefs.h. */ 18516 18517/* Override any GCC internal prototype to avoid an error. 18518 Use char because int might match the return type of a GCC 18519 builtin and then its argument prototype would still apply. */ 18520#ifdef __cplusplus 18521extern "C" 18522#endif 18523char __floatdidf (); 18524int 18525main () 18526{ 18527return __floatdidf (); 18528 ; 18529 return 0; 18530} 18531_ACEOF 18532rm -f conftest.$ac_objext conftest$ac_exeext 18533if { (ac_try="$ac_link" 18534case "(($ac_try" in 18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18536 *) ac_try_echo=$ac_try;; 18537esac 18538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18539 (eval "$ac_link") 2>conftest.er1 18540 ac_status=$? 18541 grep -v '^ *+' conftest.er1 >conftest.err 18542 rm -f conftest.er1 18543 cat conftest.err >&5 18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18545 (exit $ac_status); } && 18546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 18556 { ac_try='test -s conftest$ac_exeext' 18557 { (case "(($ac_try" in 18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18559 *) ac_try_echo=$ac_try;; 18560esac 18561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18562 (eval "$ac_try") 2>&5 18563 ac_status=$? 18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18565 (exit $ac_status); }; }; then 18566 ac_cv_lib_gcc___floatdidf=yes 18567else 18568 echo "$as_me: failed program was:" >&5 18569sed 's/^/| /' conftest.$ac_ext >&5 18570 18571 ac_cv_lib_gcc___floatdidf=no 18572fi 18573 18574rm -f core conftest.err conftest.$ac_objext \ 18575 conftest$ac_exeext conftest.$ac_ext 18576LIBS=$ac_check_lib_save_LIBS 18577fi 18578{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5 18579echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; } 18580if test $ac_cv_lib_gcc___floatdidf = yes; then 18581 18582cat >>confdefs.h <<\_ACEOF 18583#define HAVE___FLOATDIDF 1 18584_ACEOF 18585 18586fi 18587 18588 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5 18589echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; } 18590if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then 18591 echo $ECHO_N "(cached) $ECHO_C" >&6 18592else 18593 ac_check_lib_save_LIBS=$LIBS 18594LIBS="-lgcc $LIBS" 18595cat >conftest.$ac_ext <<_ACEOF 18596/* confdefs.h. */ 18597_ACEOF 18598cat confdefs.h >>conftest.$ac_ext 18599cat >>conftest.$ac_ext <<_ACEOF 18600/* end confdefs.h. */ 18601 18602/* Override any GCC internal prototype to avoid an error. 18603 Use char because int might match the return type of a GCC 18604 builtin and then its argument prototype would still apply. */ 18605#ifdef __cplusplus 18606extern "C" 18607#endif 18608char __lshrdi3 (); 18609int 18610main () 18611{ 18612return __lshrdi3 (); 18613 ; 18614 return 0; 18615} 18616_ACEOF 18617rm -f conftest.$ac_objext conftest$ac_exeext 18618if { (ac_try="$ac_link" 18619case "(($ac_try" in 18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18621 *) ac_try_echo=$ac_try;; 18622esac 18623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18624 (eval "$ac_link") 2>conftest.er1 18625 ac_status=$? 18626 grep -v '^ *+' conftest.er1 >conftest.err 18627 rm -f conftest.er1 18628 cat conftest.err >&5 18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18630 (exit $ac_status); } && 18631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18632 { (case "(($ac_try" in 18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18634 *) ac_try_echo=$ac_try;; 18635esac 18636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18637 (eval "$ac_try") 2>&5 18638 ac_status=$? 18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18640 (exit $ac_status); }; } && 18641 { ac_try='test -s conftest$ac_exeext' 18642 { (case "(($ac_try" in 18643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18644 *) ac_try_echo=$ac_try;; 18645esac 18646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18647 (eval "$ac_try") 2>&5 18648 ac_status=$? 18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18650 (exit $ac_status); }; }; then 18651 ac_cv_lib_gcc___lshrdi3=yes 18652else 18653 echo "$as_me: failed program was:" >&5 18654sed 's/^/| /' conftest.$ac_ext >&5 18655 18656 ac_cv_lib_gcc___lshrdi3=no 18657fi 18658 18659rm -f core conftest.err conftest.$ac_objext \ 18660 conftest$ac_exeext conftest.$ac_ext 18661LIBS=$ac_check_lib_save_LIBS 18662fi 18663{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5 18664echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; } 18665if test $ac_cv_lib_gcc___lshrdi3 = yes; then 18666 18667cat >>confdefs.h <<\_ACEOF 18668#define HAVE___LSHRDI3 1 18669_ACEOF 18670 18671fi 18672 18673 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5 18674echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; } 18675if test "${ac_cv_lib_gcc___moddi3+set}" = set; then 18676 echo $ECHO_N "(cached) $ECHO_C" >&6 18677else 18678 ac_check_lib_save_LIBS=$LIBS 18679LIBS="-lgcc $LIBS" 18680cat >conftest.$ac_ext <<_ACEOF 18681/* confdefs.h. */ 18682_ACEOF 18683cat confdefs.h >>conftest.$ac_ext 18684cat >>conftest.$ac_ext <<_ACEOF 18685/* end confdefs.h. */ 18686 18687/* Override any GCC internal prototype to avoid an error. 18688 Use char because int might match the return type of a GCC 18689 builtin and then its argument prototype would still apply. */ 18690#ifdef __cplusplus 18691extern "C" 18692#endif 18693char __moddi3 (); 18694int 18695main () 18696{ 18697return __moddi3 (); 18698 ; 18699 return 0; 18700} 18701_ACEOF 18702rm -f conftest.$ac_objext conftest$ac_exeext 18703if { (ac_try="$ac_link" 18704case "(($ac_try" in 18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18706 *) ac_try_echo=$ac_try;; 18707esac 18708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18709 (eval "$ac_link") 2>conftest.er1 18710 ac_status=$? 18711 grep -v '^ *+' conftest.er1 >conftest.err 18712 rm -f conftest.er1 18713 cat conftest.err >&5 18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18715 (exit $ac_status); } && 18716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18717 { (case "(($ac_try" in 18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18719 *) ac_try_echo=$ac_try;; 18720esac 18721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18722 (eval "$ac_try") 2>&5 18723 ac_status=$? 18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18725 (exit $ac_status); }; } && 18726 { ac_try='test -s conftest$ac_exeext' 18727 { (case "(($ac_try" in 18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18729 *) ac_try_echo=$ac_try;; 18730esac 18731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18732 (eval "$ac_try") 2>&5 18733 ac_status=$? 18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18735 (exit $ac_status); }; }; then 18736 ac_cv_lib_gcc___moddi3=yes 18737else 18738 echo "$as_me: failed program was:" >&5 18739sed 's/^/| /' conftest.$ac_ext >&5 18740 18741 ac_cv_lib_gcc___moddi3=no 18742fi 18743 18744rm -f core conftest.err conftest.$ac_objext \ 18745 conftest$ac_exeext conftest.$ac_ext 18746LIBS=$ac_check_lib_save_LIBS 18747fi 18748{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5 18749echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; } 18750if test $ac_cv_lib_gcc___moddi3 = yes; then 18751 18752cat >>confdefs.h <<\_ACEOF 18753#define HAVE___MODDI3 1 18754_ACEOF 18755 18756fi 18757 18758 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5 18759echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; } 18760if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then 18761 echo $ECHO_N "(cached) $ECHO_C" >&6 18762else 18763 ac_check_lib_save_LIBS=$LIBS 18764LIBS="-lgcc $LIBS" 18765cat >conftest.$ac_ext <<_ACEOF 18766/* confdefs.h. */ 18767_ACEOF 18768cat confdefs.h >>conftest.$ac_ext 18769cat >>conftest.$ac_ext <<_ACEOF 18770/* end confdefs.h. */ 18771 18772/* Override any GCC internal prototype to avoid an error. 18773 Use char because int might match the return type of a GCC 18774 builtin and then its argument prototype would still apply. */ 18775#ifdef __cplusplus 18776extern "C" 18777#endif 18778char __udivdi3 (); 18779int 18780main () 18781{ 18782return __udivdi3 (); 18783 ; 18784 return 0; 18785} 18786_ACEOF 18787rm -f conftest.$ac_objext conftest$ac_exeext 18788if { (ac_try="$ac_link" 18789case "(($ac_try" in 18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18791 *) ac_try_echo=$ac_try;; 18792esac 18793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18794 (eval "$ac_link") 2>conftest.er1 18795 ac_status=$? 18796 grep -v '^ *+' conftest.er1 >conftest.err 18797 rm -f conftest.er1 18798 cat conftest.err >&5 18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18800 (exit $ac_status); } && 18801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18802 { (case "(($ac_try" in 18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18804 *) ac_try_echo=$ac_try;; 18805esac 18806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18807 (eval "$ac_try") 2>&5 18808 ac_status=$? 18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18810 (exit $ac_status); }; } && 18811 { ac_try='test -s conftest$ac_exeext' 18812 { (case "(($ac_try" in 18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18814 *) ac_try_echo=$ac_try;; 18815esac 18816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18817 (eval "$ac_try") 2>&5 18818 ac_status=$? 18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18820 (exit $ac_status); }; }; then 18821 ac_cv_lib_gcc___udivdi3=yes 18822else 18823 echo "$as_me: failed program was:" >&5 18824sed 's/^/| /' conftest.$ac_ext >&5 18825 18826 ac_cv_lib_gcc___udivdi3=no 18827fi 18828 18829rm -f core conftest.err conftest.$ac_objext \ 18830 conftest$ac_exeext conftest.$ac_ext 18831LIBS=$ac_check_lib_save_LIBS 18832fi 18833{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5 18834echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; } 18835if test $ac_cv_lib_gcc___udivdi3 = yes; then 18836 18837cat >>confdefs.h <<\_ACEOF 18838#define HAVE___UDIVDI3 1 18839_ACEOF 18840 18841fi 18842 18843 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5 18844echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; } 18845if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then 18846 echo $ECHO_N "(cached) $ECHO_C" >&6 18847else 18848 ac_check_lib_save_LIBS=$LIBS 18849LIBS="-lgcc $LIBS" 18850cat >conftest.$ac_ext <<_ACEOF 18851/* confdefs.h. */ 18852_ACEOF 18853cat confdefs.h >>conftest.$ac_ext 18854cat >>conftest.$ac_ext <<_ACEOF 18855/* end confdefs.h. */ 18856 18857/* Override any GCC internal prototype to avoid an error. 18858 Use char because int might match the return type of a GCC 18859 builtin and then its argument prototype would still apply. */ 18860#ifdef __cplusplus 18861extern "C" 18862#endif 18863char __umoddi3 (); 18864int 18865main () 18866{ 18867return __umoddi3 (); 18868 ; 18869 return 0; 18870} 18871_ACEOF 18872rm -f conftest.$ac_objext conftest$ac_exeext 18873if { (ac_try="$ac_link" 18874case "(($ac_try" in 18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18876 *) ac_try_echo=$ac_try;; 18877esac 18878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18879 (eval "$ac_link") 2>conftest.er1 18880 ac_status=$? 18881 grep -v '^ *+' conftest.er1 >conftest.err 18882 rm -f conftest.er1 18883 cat conftest.err >&5 18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18885 (exit $ac_status); } && 18886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18887 { (case "(($ac_try" in 18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18889 *) ac_try_echo=$ac_try;; 18890esac 18891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18892 (eval "$ac_try") 2>&5 18893 ac_status=$? 18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18895 (exit $ac_status); }; } && 18896 { ac_try='test -s conftest$ac_exeext' 18897 { (case "(($ac_try" in 18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18899 *) ac_try_echo=$ac_try;; 18900esac 18901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18902 (eval "$ac_try") 2>&5 18903 ac_status=$? 18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18905 (exit $ac_status); }; }; then 18906 ac_cv_lib_gcc___umoddi3=yes 18907else 18908 echo "$as_me: failed program was:" >&5 18909sed 's/^/| /' conftest.$ac_ext >&5 18910 18911 ac_cv_lib_gcc___umoddi3=no 18912fi 18913 18914rm -f core conftest.err conftest.$ac_objext \ 18915 conftest$ac_exeext conftest.$ac_ext 18916LIBS=$ac_check_lib_save_LIBS 18917fi 18918{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5 18919echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; } 18920if test $ac_cv_lib_gcc___umoddi3 = yes; then 18921 18922cat >>confdefs.h <<\_ACEOF 18923#define HAVE___UMODDI3 1 18924_ACEOF 18925 18926fi 18927 18928 18929 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5 18930echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; } 18931if test "${ac_cv_lib_gcc___main+set}" = set; then 18932 echo $ECHO_N "(cached) $ECHO_C" >&6 18933else 18934 ac_check_lib_save_LIBS=$LIBS 18935LIBS="-lgcc $LIBS" 18936cat >conftest.$ac_ext <<_ACEOF 18937/* confdefs.h. */ 18938_ACEOF 18939cat confdefs.h >>conftest.$ac_ext 18940cat >>conftest.$ac_ext <<_ACEOF 18941/* end confdefs.h. */ 18942 18943/* Override any GCC internal prototype to avoid an error. 18944 Use char because int might match the return type of a GCC 18945 builtin and then its argument prototype would still apply. */ 18946#ifdef __cplusplus 18947extern "C" 18948#endif 18949char __main (); 18950int 18951main () 18952{ 18953return __main (); 18954 ; 18955 return 0; 18956} 18957_ACEOF 18958rm -f conftest.$ac_objext conftest$ac_exeext 18959if { (ac_try="$ac_link" 18960case "(($ac_try" in 18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18962 *) ac_try_echo=$ac_try;; 18963esac 18964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18965 (eval "$ac_link") 2>conftest.er1 18966 ac_status=$? 18967 grep -v '^ *+' conftest.er1 >conftest.err 18968 rm -f conftest.er1 18969 cat conftest.err >&5 18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18971 (exit $ac_status); } && 18972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 18973 { (case "(($ac_try" in 18974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18975 *) ac_try_echo=$ac_try;; 18976esac 18977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18978 (eval "$ac_try") 2>&5 18979 ac_status=$? 18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18981 (exit $ac_status); }; } && 18982 { ac_try='test -s conftest$ac_exeext' 18983 { (case "(($ac_try" in 18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18985 *) ac_try_echo=$ac_try;; 18986esac 18987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18988 (eval "$ac_try") 2>&5 18989 ac_status=$? 18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18991 (exit $ac_status); }; }; then 18992 ac_cv_lib_gcc___main=yes 18993else 18994 echo "$as_me: failed program was:" >&5 18995sed 's/^/| /' conftest.$ac_ext >&5 18996 18997 ac_cv_lib_gcc___main=no 18998fi 18999 19000rm -f core conftest.err conftest.$ac_objext \ 19001 conftest$ac_exeext conftest.$ac_ext 19002LIBS=$ac_check_lib_save_LIBS 19003fi 19004{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5 19005echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; } 19006if test $ac_cv_lib_gcc___main = yes; then 19007 19008cat >>confdefs.h <<\_ACEOF 19009#define HAVE___MAIN 1 19010_ACEOF 19011 19012fi 19013 19014 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5 19015echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; } 19016if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then 19017 echo $ECHO_N "(cached) $ECHO_C" >&6 19018else 19019 ac_check_lib_save_LIBS=$LIBS 19020LIBS="-lgcc $LIBS" 19021cat >conftest.$ac_ext <<_ACEOF 19022/* confdefs.h. */ 19023_ACEOF 19024cat confdefs.h >>conftest.$ac_ext 19025cat >>conftest.$ac_ext <<_ACEOF 19026/* end confdefs.h. */ 19027 19028/* Override any GCC internal prototype to avoid an error. 19029 Use char because int might match the return type of a GCC 19030 builtin and then its argument prototype would still apply. */ 19031#ifdef __cplusplus 19032extern "C" 19033#endif 19034char __cmpdi2 (); 19035int 19036main () 19037{ 19038return __cmpdi2 (); 19039 ; 19040 return 0; 19041} 19042_ACEOF 19043rm -f conftest.$ac_objext conftest$ac_exeext 19044if { (ac_try="$ac_link" 19045case "(($ac_try" in 19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19047 *) ac_try_echo=$ac_try;; 19048esac 19049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19050 (eval "$ac_link") 2>conftest.er1 19051 ac_status=$? 19052 grep -v '^ *+' conftest.er1 >conftest.err 19053 rm -f conftest.er1 19054 cat conftest.err >&5 19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19056 (exit $ac_status); } && 19057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19058 { (case "(($ac_try" in 19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19060 *) ac_try_echo=$ac_try;; 19061esac 19062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19063 (eval "$ac_try") 2>&5 19064 ac_status=$? 19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19066 (exit $ac_status); }; } && 19067 { ac_try='test -s conftest$ac_exeext' 19068 { (case "(($ac_try" in 19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19070 *) ac_try_echo=$ac_try;; 19071esac 19072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19073 (eval "$ac_try") 2>&5 19074 ac_status=$? 19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19076 (exit $ac_status); }; }; then 19077 ac_cv_lib_gcc___cmpdi2=yes 19078else 19079 echo "$as_me: failed program was:" >&5 19080sed 's/^/| /' conftest.$ac_ext >&5 19081 19082 ac_cv_lib_gcc___cmpdi2=no 19083fi 19084 19085rm -f core conftest.err conftest.$ac_objext \ 19086 conftest$ac_exeext conftest.$ac_ext 19087LIBS=$ac_check_lib_save_LIBS 19088fi 19089{ echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5 19090echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; } 19091if test $ac_cv_lib_gcc___cmpdi2 = yes; then 19092 19093cat >>confdefs.h <<\_ACEOF 19094#define HAVE___CMPDI2 1 19095_ACEOF 19096 19097fi 19098 19099fi 19100 19101if test "$llvm_cv_os_type" = "MingW" ; then 19102 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5 19103echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; } 19104 cat >conftest.$ac_ext <<_ACEOF 19105#include <windows.h> 19106#include <imagehlp.h> 19107extern void foo(PENUMLOADED_MODULES_CALLBACK); 19108extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID)); 19109_ACEOF 19110rm -f conftest.$ac_objext 19111if { (ac_try="$ac_compile" 19112case "(($ac_try" in 19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19114 *) ac_try_echo=$ac_try;; 19115esac 19116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19117 (eval "$ac_compile") 2>conftest.er1 19118 ac_status=$? 19119 grep -v '^ *+' conftest.er1 >conftest.err 19120 rm -f conftest.er1 19121 cat conftest.err >&5 19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19123 (exit $ac_status); } && 19124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19125 { (case "(($ac_try" in 19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19127 *) ac_try_echo=$ac_try;; 19128esac 19129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19130 (eval "$ac_try") 2>&5 19131 ac_status=$? 19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19133 (exit $ac_status); }; } && 19134 { ac_try='test -s conftest.$ac_objext' 19135 { (case "(($ac_try" in 19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19137 *) ac_try_echo=$ac_try;; 19138esac 19139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19140 (eval "$ac_try") 2>&5 19141 ac_status=$? 19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19143 (exit $ac_status); }; }; then 19144 19145 { echo "$as_me:$LINENO: result: yes" >&5 19146echo "${ECHO_T}yes" >&6; } 19147 llvm_cv_win32_elmcb_pcstr="PCSTR" 19148 19149else 19150 echo "$as_me: failed program was:" >&5 19151sed 's/^/| /' conftest.$ac_ext >&5 19152 19153 19154 { echo "$as_me:$LINENO: result: no" >&5 19155echo "${ECHO_T}no" >&6; } 19156 llvm_cv_win32_elmcb_pcstr="PSTR" 19157 19158fi 19159 19160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19161 19162cat >>confdefs.h <<_ACEOF 19163#define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr 19164_ACEOF 19165 19166fi 19167 19168 19169{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5 19170echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; } 19171if test "${ac_cv_func_isnan_in_math_h+set}" = set; then 19172 echo $ECHO_N "(cached) $ECHO_C" >&6 19173else 19174 ac_ext=cpp 19175ac_cpp='$CXXCPP $CPPFLAGS' 19176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19179 19180 cat >conftest.$ac_ext <<_ACEOF 19181/* confdefs.h. */ 19182_ACEOF 19183cat confdefs.h >>conftest.$ac_ext 19184cat >>conftest.$ac_ext <<_ACEOF 19185/* end confdefs.h. */ 19186#include <math.h> 19187int 19188main () 19189{ 19190float f; isnan(f); 19191 ; 19192 return 0; 19193} 19194_ACEOF 19195rm -f conftest.$ac_objext 19196if { (ac_try="$ac_compile" 19197case "(($ac_try" in 19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19199 *) ac_try_echo=$ac_try;; 19200esac 19201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19202 (eval "$ac_compile") 2>conftest.er1 19203 ac_status=$? 19204 grep -v '^ *+' conftest.er1 >conftest.err 19205 rm -f conftest.er1 19206 cat conftest.err >&5 19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19208 (exit $ac_status); } && 19209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19210 { (case "(($ac_try" in 19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19212 *) ac_try_echo=$ac_try;; 19213esac 19214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19215 (eval "$ac_try") 2>&5 19216 ac_status=$? 19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19218 (exit $ac_status); }; } && 19219 { ac_try='test -s conftest.$ac_objext' 19220 { (case "(($ac_try" in 19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19222 *) ac_try_echo=$ac_try;; 19223esac 19224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19225 (eval "$ac_try") 2>&5 19226 ac_status=$? 19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19228 (exit $ac_status); }; }; then 19229 ac_cv_func_isnan_in_math_h=yes 19230else 19231 echo "$as_me: failed program was:" >&5 19232sed 's/^/| /' conftest.$ac_ext >&5 19233 19234 ac_cv_func_isnan_in_math_h=no 19235fi 19236 19237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19238 ac_ext=c 19239ac_cpp='$CPP $CPPFLAGS' 19240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19242ac_compiler_gnu=$ac_cv_c_compiler_gnu 19243 19244fi 19245{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5 19246echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; } 19247 19248 19249if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then 19250 19251cat >>confdefs.h <<\_ACEOF 19252#define HAVE_ISNAN_IN_MATH_H 1 19253_ACEOF 19254 19255fi 19256 19257{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5 19258echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; } 19259if test "${ac_cv_func_isnan_in_cmath+set}" = set; then 19260 echo $ECHO_N "(cached) $ECHO_C" >&6 19261else 19262 ac_ext=cpp 19263ac_cpp='$CXXCPP $CPPFLAGS' 19264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19267 19268 cat >conftest.$ac_ext <<_ACEOF 19269/* confdefs.h. */ 19270_ACEOF 19271cat confdefs.h >>conftest.$ac_ext 19272cat >>conftest.$ac_ext <<_ACEOF 19273/* end confdefs.h. */ 19274#include <cmath> 19275int 19276main () 19277{ 19278float f; isnan(f); 19279 ; 19280 return 0; 19281} 19282_ACEOF 19283rm -f conftest.$ac_objext 19284if { (ac_try="$ac_compile" 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_compile") 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_cxx_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_objext' 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 ac_cv_func_isnan_in_cmath=yes 19318else 19319 echo "$as_me: failed program was:" >&5 19320sed 's/^/| /' conftest.$ac_ext >&5 19321 19322 ac_cv_func_isnan_in_cmath=no 19323fi 19324 19325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19326 ac_ext=c 19327ac_cpp='$CPP $CPPFLAGS' 19328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19330ac_compiler_gnu=$ac_cv_c_compiler_gnu 19331 19332fi 19333{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5 19334echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; } 19335 19336if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then 19337 19338cat >>confdefs.h <<\_ACEOF 19339#define HAVE_ISNAN_IN_CMATH 1 19340_ACEOF 19341 19342fi 19343 19344{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5 19345echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; } 19346if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then 19347 echo $ECHO_N "(cached) $ECHO_C" >&6 19348else 19349 ac_ext=cpp 19350ac_cpp='$CXXCPP $CPPFLAGS' 19351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19354 19355 cat >conftest.$ac_ext <<_ACEOF 19356/* confdefs.h. */ 19357_ACEOF 19358cat confdefs.h >>conftest.$ac_ext 19359cat >>conftest.$ac_ext <<_ACEOF 19360/* end confdefs.h. */ 19361#include <cmath> 19362int 19363main () 19364{ 19365float f; std::isnan(f); 19366 ; 19367 return 0; 19368} 19369_ACEOF 19370rm -f conftest.$ac_objext 19371if { (ac_try="$ac_compile" 19372case "(($ac_try" in 19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19374 *) ac_try_echo=$ac_try;; 19375esac 19376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19377 (eval "$ac_compile") 2>conftest.er1 19378 ac_status=$? 19379 grep -v '^ *+' conftest.er1 >conftest.err 19380 rm -f conftest.er1 19381 cat conftest.err >&5 19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19383 (exit $ac_status); } && 19384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19385 { (case "(($ac_try" in 19386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19387 *) ac_try_echo=$ac_try;; 19388esac 19389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19390 (eval "$ac_try") 2>&5 19391 ac_status=$? 19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19393 (exit $ac_status); }; } && 19394 { ac_try='test -s conftest.$ac_objext' 19395 { (case "(($ac_try" in 19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19397 *) ac_try_echo=$ac_try;; 19398esac 19399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19400 (eval "$ac_try") 2>&5 19401 ac_status=$? 19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19403 (exit $ac_status); }; }; then 19404 ac_cv_func_std_isnan_in_cmath=yes 19405else 19406 echo "$as_me: failed program was:" >&5 19407sed 's/^/| /' conftest.$ac_ext >&5 19408 19409 ac_cv_func_std_isnan_in_cmath=no 19410fi 19411 19412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19413 ac_ext=c 19414ac_cpp='$CPP $CPPFLAGS' 19415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19417ac_compiler_gnu=$ac_cv_c_compiler_gnu 19418 19419fi 19420{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5 19421echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; } 19422 19423if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then 19424 19425cat >>confdefs.h <<\_ACEOF 19426#define HAVE_STD_ISNAN_IN_CMATH 1 19427_ACEOF 19428 19429fi 19430 19431 19432{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5 19433echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; } 19434if test "${ac_cv_func_isinf_in_math_h+set}" = set; then 19435 echo $ECHO_N "(cached) $ECHO_C" >&6 19436else 19437 ac_ext=cpp 19438ac_cpp='$CXXCPP $CPPFLAGS' 19439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19442 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#include <math.h> 19450int 19451main () 19452{ 19453float f; isinf(f); 19454 ; 19455 return 0; 19456} 19457_ACEOF 19458rm -f conftest.$ac_objext 19459if { (ac_try="$ac_compile" 19460case "(($ac_try" in 19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19462 *) ac_try_echo=$ac_try;; 19463esac 19464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19465 (eval "$ac_compile") 2>conftest.er1 19466 ac_status=$? 19467 grep -v '^ *+' conftest.er1 >conftest.err 19468 rm -f conftest.er1 19469 cat conftest.err >&5 19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19471 (exit $ac_status); } && 19472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19473 { (case "(($ac_try" in 19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19475 *) ac_try_echo=$ac_try;; 19476esac 19477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19478 (eval "$ac_try") 2>&5 19479 ac_status=$? 19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19481 (exit $ac_status); }; } && 19482 { ac_try='test -s conftest.$ac_objext' 19483 { (case "(($ac_try" in 19484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19485 *) ac_try_echo=$ac_try;; 19486esac 19487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19488 (eval "$ac_try") 2>&5 19489 ac_status=$? 19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19491 (exit $ac_status); }; }; then 19492 ac_cv_func_isinf_in_math_h=yes 19493else 19494 echo "$as_me: failed program was:" >&5 19495sed 's/^/| /' conftest.$ac_ext >&5 19496 19497 ac_cv_func_isinf_in_math_h=no 19498fi 19499 19500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19501 ac_ext=c 19502ac_cpp='$CPP $CPPFLAGS' 19503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19505ac_compiler_gnu=$ac_cv_c_compiler_gnu 19506 19507fi 19508{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5 19509echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; } 19510 19511if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then 19512 19513cat >>confdefs.h <<\_ACEOF 19514#define HAVE_ISINF_IN_MATH_H 1 19515_ACEOF 19516 19517fi 19518 19519{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5 19520echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; } 19521if test "${ac_cv_func_isinf_in_cmath+set}" = set; then 19522 echo $ECHO_N "(cached) $ECHO_C" >&6 19523else 19524 ac_ext=cpp 19525ac_cpp='$CXXCPP $CPPFLAGS' 19526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19529 19530 cat >conftest.$ac_ext <<_ACEOF 19531/* confdefs.h. */ 19532_ACEOF 19533cat confdefs.h >>conftest.$ac_ext 19534cat >>conftest.$ac_ext <<_ACEOF 19535/* end confdefs.h. */ 19536#include <cmath> 19537int 19538main () 19539{ 19540float f; isinf(f); 19541 ; 19542 return 0; 19543} 19544_ACEOF 19545rm -f conftest.$ac_objext 19546if { (ac_try="$ac_compile" 19547case "(($ac_try" in 19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19549 *) ac_try_echo=$ac_try;; 19550esac 19551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19552 (eval "$ac_compile") 2>conftest.er1 19553 ac_status=$? 19554 grep -v '^ *+' conftest.er1 >conftest.err 19555 rm -f conftest.er1 19556 cat conftest.err >&5 19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19558 (exit $ac_status); } && 19559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19560 { (case "(($ac_try" in 19561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19562 *) ac_try_echo=$ac_try;; 19563esac 19564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19565 (eval "$ac_try") 2>&5 19566 ac_status=$? 19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19568 (exit $ac_status); }; } && 19569 { ac_try='test -s conftest.$ac_objext' 19570 { (case "(($ac_try" in 19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19572 *) ac_try_echo=$ac_try;; 19573esac 19574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19575 (eval "$ac_try") 2>&5 19576 ac_status=$? 19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19578 (exit $ac_status); }; }; then 19579 ac_cv_func_isinf_in_cmath=yes 19580else 19581 echo "$as_me: failed program was:" >&5 19582sed 's/^/| /' conftest.$ac_ext >&5 19583 19584 ac_cv_func_isinf_in_cmath=no 19585fi 19586 19587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19588 ac_ext=c 19589ac_cpp='$CPP $CPPFLAGS' 19590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19592ac_compiler_gnu=$ac_cv_c_compiler_gnu 19593 19594fi 19595{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5 19596echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; } 19597 19598if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then 19599 19600cat >>confdefs.h <<\_ACEOF 19601#define HAVE_ISINF_IN_CMATH 1 19602_ACEOF 19603 19604fi 19605 19606{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5 19607echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; } 19608if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then 19609 echo $ECHO_N "(cached) $ECHO_C" >&6 19610else 19611 ac_ext=cpp 19612ac_cpp='$CXXCPP $CPPFLAGS' 19613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19616 19617 cat >conftest.$ac_ext <<_ACEOF 19618/* confdefs.h. */ 19619_ACEOF 19620cat confdefs.h >>conftest.$ac_ext 19621cat >>conftest.$ac_ext <<_ACEOF 19622/* end confdefs.h. */ 19623#include <cmath> 19624int 19625main () 19626{ 19627float f; std::isinf(f); 19628 ; 19629 return 0; 19630} 19631_ACEOF 19632rm -f conftest.$ac_objext 19633if { (ac_try="$ac_compile" 19634case "(($ac_try" in 19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19636 *) ac_try_echo=$ac_try;; 19637esac 19638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19639 (eval "$ac_compile") 2>conftest.er1 19640 ac_status=$? 19641 grep -v '^ *+' conftest.er1 >conftest.err 19642 rm -f conftest.er1 19643 cat conftest.err >&5 19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19645 (exit $ac_status); } && 19646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19647 { (case "(($ac_try" in 19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19649 *) ac_try_echo=$ac_try;; 19650esac 19651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19652 (eval "$ac_try") 2>&5 19653 ac_status=$? 19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19655 (exit $ac_status); }; } && 19656 { ac_try='test -s conftest.$ac_objext' 19657 { (case "(($ac_try" in 19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19659 *) ac_try_echo=$ac_try;; 19660esac 19661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19662 (eval "$ac_try") 2>&5 19663 ac_status=$? 19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19665 (exit $ac_status); }; }; then 19666 ac_cv_func_std_isinf_in_cmath=yes 19667else 19668 echo "$as_me: failed program was:" >&5 19669sed 's/^/| /' conftest.$ac_ext >&5 19670 19671 ac_cv_func_std_isinf_in_cmath=no 19672fi 19673 19674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19675 ac_ext=c 19676ac_cpp='$CPP $CPPFLAGS' 19677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19679ac_compiler_gnu=$ac_cv_c_compiler_gnu 19680 19681fi 19682{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5 19683echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; } 19684 19685if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then 19686 19687cat >>confdefs.h <<\_ACEOF 19688#define HAVE_STD_ISINF_IN_CMATH 1 19689_ACEOF 19690 19691fi 19692 19693{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5 19694echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; } 19695if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then 19696 echo $ECHO_N "(cached) $ECHO_C" >&6 19697else 19698 ac_ext=cpp 19699ac_cpp='$CXXCPP $CPPFLAGS' 19700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19703 19704 cat >conftest.$ac_ext <<_ACEOF 19705/* confdefs.h. */ 19706_ACEOF 19707cat confdefs.h >>conftest.$ac_ext 19708cat >>conftest.$ac_ext <<_ACEOF 19709/* end confdefs.h. */ 19710#include <ieeefp.h> 19711int 19712main () 19713{ 19714float f; finite(f); 19715 ; 19716 return 0; 19717} 19718_ACEOF 19719rm -f conftest.$ac_objext 19720if { (ac_try="$ac_compile" 19721case "(($ac_try" in 19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19723 *) ac_try_echo=$ac_try;; 19724esac 19725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19726 (eval "$ac_compile") 2>conftest.er1 19727 ac_status=$? 19728 grep -v '^ *+' conftest.er1 >conftest.err 19729 rm -f conftest.er1 19730 cat conftest.err >&5 19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19732 (exit $ac_status); } && 19733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 19734 { (case "(($ac_try" in 19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19736 *) ac_try_echo=$ac_try;; 19737esac 19738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19739 (eval "$ac_try") 2>&5 19740 ac_status=$? 19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19742 (exit $ac_status); }; } && 19743 { ac_try='test -s conftest.$ac_objext' 19744 { (case "(($ac_try" in 19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19746 *) ac_try_echo=$ac_try;; 19747esac 19748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19749 (eval "$ac_try") 2>&5 19750 ac_status=$? 19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19752 (exit $ac_status); }; }; then 19753 ac_cv_func_finite_in_ieeefp_h=yes 19754else 19755 echo "$as_me: failed program was:" >&5 19756sed 's/^/| /' conftest.$ac_ext >&5 19757 19758 ac_cv_func_finite_in_ieeefp_h=no 19759fi 19760 19761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19762 ac_ext=c 19763ac_cpp='$CPP $CPPFLAGS' 19764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19766ac_compiler_gnu=$ac_cv_c_compiler_gnu 19767 19768fi 19769{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5 19770echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; } 19771 19772if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then 19773 19774cat >>confdefs.h <<\_ACEOF 19775#define HAVE_FINITE_IN_IEEEFP_H 1 19776_ACEOF 19777 19778fi 19779 19780 19781 19782if test "$llvm_cv_platform_type" = "Unix" ; then 19783 19784 19785for ac_header in stdlib.h unistd.h 19786do 19787as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 19788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19789 { echo "$as_me:$LINENO: checking for $ac_header" >&5 19790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19792 echo $ECHO_N "(cached) $ECHO_C" >&6 19793fi 19794ac_res=`eval echo '${'$as_ac_Header'}'` 19795 { echo "$as_me:$LINENO: result: $ac_res" >&5 19796echo "${ECHO_T}$ac_res" >&6; } 19797else 19798 # Is the header compilable? 19799{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 19800echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 19801cat >conftest.$ac_ext <<_ACEOF 19802/* confdefs.h. */ 19803_ACEOF 19804cat confdefs.h >>conftest.$ac_ext 19805cat >>conftest.$ac_ext <<_ACEOF 19806/* end confdefs.h. */ 19807$ac_includes_default 19808#include <$ac_header> 19809_ACEOF 19810rm -f conftest.$ac_objext 19811if { (ac_try="$ac_compile" 19812case "(($ac_try" in 19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19814 *) ac_try_echo=$ac_try;; 19815esac 19816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19817 (eval "$ac_compile") 2>conftest.er1 19818 ac_status=$? 19819 grep -v '^ *+' conftest.er1 >conftest.err 19820 rm -f conftest.er1 19821 cat conftest.err >&5 19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19823 (exit $ac_status); } && 19824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19825 { (case "(($ac_try" in 19826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19827 *) ac_try_echo=$ac_try;; 19828esac 19829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19830 (eval "$ac_try") 2>&5 19831 ac_status=$? 19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19833 (exit $ac_status); }; } && 19834 { ac_try='test -s conftest.$ac_objext' 19835 { (case "(($ac_try" in 19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19837 *) ac_try_echo=$ac_try;; 19838esac 19839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19840 (eval "$ac_try") 2>&5 19841 ac_status=$? 19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19843 (exit $ac_status); }; }; then 19844 ac_header_compiler=yes 19845else 19846 echo "$as_me: failed program was:" >&5 19847sed 's/^/| /' conftest.$ac_ext >&5 19848 19849 ac_header_compiler=no 19850fi 19851 19852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19853{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 19854echo "${ECHO_T}$ac_header_compiler" >&6; } 19855 19856# Is the header present? 19857{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 19858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 19859cat >conftest.$ac_ext <<_ACEOF 19860/* confdefs.h. */ 19861_ACEOF 19862cat confdefs.h >>conftest.$ac_ext 19863cat >>conftest.$ac_ext <<_ACEOF 19864/* end confdefs.h. */ 19865#include <$ac_header> 19866_ACEOF 19867if { (ac_try="$ac_cpp conftest.$ac_ext" 19868case "(($ac_try" in 19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19870 *) ac_try_echo=$ac_try;; 19871esac 19872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 19874 ac_status=$? 19875 grep -v '^ *+' conftest.er1 >conftest.err 19876 rm -f conftest.er1 19877 cat conftest.err >&5 19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19879 (exit $ac_status); } >/dev/null; then 19880 if test -s conftest.err; then 19881 ac_cpp_err=$ac_c_preproc_warn_flag 19882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 19883 else 19884 ac_cpp_err= 19885 fi 19886else 19887 ac_cpp_err=yes 19888fi 19889if test -z "$ac_cpp_err"; then 19890 ac_header_preproc=yes 19891else 19892 echo "$as_me: failed program was:" >&5 19893sed 's/^/| /' conftest.$ac_ext >&5 19894 19895 ac_header_preproc=no 19896fi 19897 19898rm -f conftest.err conftest.$ac_ext 19899{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 19900echo "${ECHO_T}$ac_header_preproc" >&6; } 19901 19902# So? What about this header? 19903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 19904 yes:no: ) 19905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 19906echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 19907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 19908echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 19909 ac_header_preproc=yes 19910 ;; 19911 no:yes:* ) 19912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 19913echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 19914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 19915echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 19916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 19917echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 19918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 19919echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 19920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 19921echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 19922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 19923echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 19924 ( cat <<\_ASBOX 19925## ------------------------------ ## 19926## Report this to bugs@yourdomain ## 19927## ------------------------------ ## 19928_ASBOX 19929 ) | sed "s/^/$as_me: WARNING: /" >&2 19930 ;; 19931esac 19932{ echo "$as_me:$LINENO: checking for $ac_header" >&5 19933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 19934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 19935 echo $ECHO_N "(cached) $ECHO_C" >&6 19936else 19937 eval "$as_ac_Header=\$ac_header_preproc" 19938fi 19939ac_res=`eval echo '${'$as_ac_Header'}'` 19940 { echo "$as_me:$LINENO: result: $ac_res" >&5 19941echo "${ECHO_T}$ac_res" >&6; } 19942 19943fi 19944if test `eval echo '${'$as_ac_Header'}'` = yes; then 19945 cat >>confdefs.h <<_ACEOF 19946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 19947_ACEOF 19948 19949fi 19950 19951done 19952 19953 19954for ac_func in getpagesize 19955do 19956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 19957{ echo "$as_me:$LINENO: checking for $ac_func" >&5 19958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 19959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 19960 echo $ECHO_N "(cached) $ECHO_C" >&6 19961else 19962 cat >conftest.$ac_ext <<_ACEOF 19963/* confdefs.h. */ 19964_ACEOF 19965cat confdefs.h >>conftest.$ac_ext 19966cat >>conftest.$ac_ext <<_ACEOF 19967/* end confdefs.h. */ 19968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 19969 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 19970#define $ac_func innocuous_$ac_func 19971 19972/* System header to define __stub macros and hopefully few prototypes, 19973 which can conflict with char $ac_func (); below. 19974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 19975 <limits.h> exists even on freestanding compilers. */ 19976 19977#ifdef __STDC__ 19978# include <limits.h> 19979#else 19980# include <assert.h> 19981#endif 19982 19983#undef $ac_func 19984 19985/* Override any GCC internal prototype to avoid an error. 19986 Use char because int might match the return type of a GCC 19987 builtin and then its argument prototype would still apply. */ 19988#ifdef __cplusplus 19989extern "C" 19990#endif 19991char $ac_func (); 19992/* The GNU C library defines this for functions which it implements 19993 to always fail with ENOSYS. Some functions are actually named 19994 something starting with __ and the normal name is an alias. */ 19995#if defined __stub_$ac_func || defined __stub___$ac_func 19996choke me 19997#endif 19998 19999int 20000main () 20001{ 20002return $ac_func (); 20003 ; 20004 return 0; 20005} 20006_ACEOF 20007rm -f conftest.$ac_objext conftest$ac_exeext 20008if { (ac_try="$ac_link" 20009case "(($ac_try" in 20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20011 *) ac_try_echo=$ac_try;; 20012esac 20013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20014 (eval "$ac_link") 2>conftest.er1 20015 ac_status=$? 20016 grep -v '^ *+' conftest.er1 >conftest.err 20017 rm -f conftest.er1 20018 cat conftest.err >&5 20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20020 (exit $ac_status); } && 20021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20022 { (case "(($ac_try" in 20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20024 *) ac_try_echo=$ac_try;; 20025esac 20026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20027 (eval "$ac_try") 2>&5 20028 ac_status=$? 20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20030 (exit $ac_status); }; } && 20031 { ac_try='test -s conftest$ac_exeext' 20032 { (case "(($ac_try" in 20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20034 *) ac_try_echo=$ac_try;; 20035esac 20036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20037 (eval "$ac_try") 2>&5 20038 ac_status=$? 20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20040 (exit $ac_status); }; }; then 20041 eval "$as_ac_var=yes" 20042else 20043 echo "$as_me: failed program was:" >&5 20044sed 's/^/| /' conftest.$ac_ext >&5 20045 20046 eval "$as_ac_var=no" 20047fi 20048 20049rm -f core conftest.err conftest.$ac_objext \ 20050 conftest$ac_exeext conftest.$ac_ext 20051fi 20052ac_res=`eval echo '${'$as_ac_var'}'` 20053 { echo "$as_me:$LINENO: result: $ac_res" >&5 20054echo "${ECHO_T}$ac_res" >&6; } 20055if test `eval echo '${'$as_ac_var'}'` = yes; then 20056 cat >>confdefs.h <<_ACEOF 20057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20058_ACEOF 20059 20060fi 20061done 20062 20063{ echo "$as_me:$LINENO: checking for working mmap" >&5 20064echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 20065if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 20066 echo $ECHO_N "(cached) $ECHO_C" >&6 20067else 20068 if test "$cross_compiling" = yes; then 20069 ac_cv_func_mmap_fixed_mapped=no 20070else 20071 cat >conftest.$ac_ext <<_ACEOF 20072/* confdefs.h. */ 20073_ACEOF 20074cat confdefs.h >>conftest.$ac_ext 20075cat >>conftest.$ac_ext <<_ACEOF 20076/* end confdefs.h. */ 20077$ac_includes_default 20078/* malloc might have been renamed as rpl_malloc. */ 20079#undef malloc 20080 20081/* Thanks to Mike Haertel and Jim Avera for this test. 20082 Here is a matrix of mmap possibilities: 20083 mmap private not fixed 20084 mmap private fixed at somewhere currently unmapped 20085 mmap private fixed at somewhere already mapped 20086 mmap shared not fixed 20087 mmap shared fixed at somewhere currently unmapped 20088 mmap shared fixed at somewhere already mapped 20089 For private mappings, we should verify that changes cannot be read() 20090 back from the file, nor mmap's back from the file at a different 20091 address. (There have been systems where private was not correctly 20092 implemented like the infamous i386 svr4.0, and systems where the 20093 VM page cache was not coherent with the file system buffer cache 20094 like early versions of FreeBSD and possibly contemporary NetBSD.) 20095 For shared mappings, we should conversely verify that changes get 20096 propagated back to all the places they're supposed to be. 20097 20098 Grep wants private fixed already mapped. 20099 The main things grep needs to know about mmap are: 20100 * does it exist and is it safe to write into the mmap'd area 20101 * how to use it (BSD variants) */ 20102 20103#include <fcntl.h> 20104#include <sys/mman.h> 20105 20106#if !STDC_HEADERS && !HAVE_STDLIB_H 20107char *malloc (); 20108#endif 20109 20110/* This mess was copied from the GNU getpagesize.h. */ 20111#if !HAVE_GETPAGESIZE 20112/* Assume that all systems that can run configure have sys/param.h. */ 20113# if !HAVE_SYS_PARAM_H 20114# define HAVE_SYS_PARAM_H 1 20115# endif 20116 20117# ifdef _SC_PAGESIZE 20118# define getpagesize() sysconf(_SC_PAGESIZE) 20119# else /* no _SC_PAGESIZE */ 20120# if HAVE_SYS_PARAM_H 20121# include <sys/param.h> 20122# ifdef EXEC_PAGESIZE 20123# define getpagesize() EXEC_PAGESIZE 20124# else /* no EXEC_PAGESIZE */ 20125# ifdef NBPG 20126# define getpagesize() NBPG * CLSIZE 20127# ifndef CLSIZE 20128# define CLSIZE 1 20129# endif /* no CLSIZE */ 20130# else /* no NBPG */ 20131# ifdef NBPC 20132# define getpagesize() NBPC 20133# else /* no NBPC */ 20134# ifdef PAGESIZE 20135# define getpagesize() PAGESIZE 20136# endif /* PAGESIZE */ 20137# endif /* no NBPC */ 20138# endif /* no NBPG */ 20139# endif /* no EXEC_PAGESIZE */ 20140# else /* no HAVE_SYS_PARAM_H */ 20141# define getpagesize() 8192 /* punt totally */ 20142# endif /* no HAVE_SYS_PARAM_H */ 20143# endif /* no _SC_PAGESIZE */ 20144 20145#endif /* no HAVE_GETPAGESIZE */ 20146 20147int 20148main () 20149{ 20150 char *data, *data2, *data3; 20151 int i, pagesize; 20152 int fd; 20153 20154 pagesize = getpagesize (); 20155 20156 /* First, make a file with some known garbage in it. */ 20157 data = (char *) malloc (pagesize); 20158 if (!data) 20159 return 1; 20160 for (i = 0; i < pagesize; ++i) 20161 *(data + i) = rand (); 20162 umask (0); 20163 fd = creat ("conftest.mmap", 0600); 20164 if (fd < 0) 20165 return 1; 20166 if (write (fd, data, pagesize) != pagesize) 20167 return 1; 20168 close (fd); 20169 20170 /* Next, try to mmap the file at a fixed address which already has 20171 something else allocated at it. If we can, also make sure that 20172 we see the same garbage. */ 20173 fd = open ("conftest.mmap", O_RDWR); 20174 if (fd < 0) 20175 return 1; 20176 data2 = (char *) malloc (2 * pagesize); 20177 if (!data2) 20178 return 1; 20179 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 20180 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 20181 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 20182 return 1; 20183 for (i = 0; i < pagesize; ++i) 20184 if (*(data + i) != *(data2 + i)) 20185 return 1; 20186 20187 /* Finally, make sure that changes to the mapped area do not 20188 percolate back to the file as seen by read(). (This is a bug on 20189 some variants of i386 svr4.0.) */ 20190 for (i = 0; i < pagesize; ++i) 20191 *(data2 + i) = *(data2 + i) + 1; 20192 data3 = (char *) malloc (pagesize); 20193 if (!data3) 20194 return 1; 20195 if (read (fd, data3, pagesize) != pagesize) 20196 return 1; 20197 for (i = 0; i < pagesize; ++i) 20198 if (*(data + i) != *(data3 + i)) 20199 return 1; 20200 close (fd); 20201 return 0; 20202} 20203_ACEOF 20204rm -f conftest$ac_exeext 20205if { (ac_try="$ac_link" 20206case "(($ac_try" in 20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20208 *) ac_try_echo=$ac_try;; 20209esac 20210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20211 (eval "$ac_link") 2>&5 20212 ac_status=$? 20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20215 { (case "(($ac_try" in 20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20217 *) ac_try_echo=$ac_try;; 20218esac 20219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20220 (eval "$ac_try") 2>&5 20221 ac_status=$? 20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20223 (exit $ac_status); }; }; then 20224 ac_cv_func_mmap_fixed_mapped=yes 20225else 20226 echo "$as_me: program exited with status $ac_status" >&5 20227echo "$as_me: failed program was:" >&5 20228sed 's/^/| /' conftest.$ac_ext >&5 20229 20230( exit $ac_status ) 20231ac_cv_func_mmap_fixed_mapped=no 20232fi 20233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20234fi 20235 20236 20237fi 20238{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 20239echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 20240if test $ac_cv_func_mmap_fixed_mapped = yes; then 20241 20242cat >>confdefs.h <<\_ACEOF 20243#define HAVE_MMAP 1 20244_ACEOF 20245 20246fi 20247rm -f conftest.mmap 20248 20249 { echo "$as_me:$LINENO: checking for mmap of files" >&5 20250echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; } 20251if test "${ac_cv_func_mmap_file+set}" = set; then 20252 echo $ECHO_N "(cached) $ECHO_C" >&6 20253else 20254 ac_ext=c 20255ac_cpp='$CPP $CPPFLAGS' 20256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20258ac_compiler_gnu=$ac_cv_c_compiler_gnu 20259 20260 if test "$cross_compiling" = yes; then 20261 ac_cv_func_mmap_file=no 20262else 20263 cat >conftest.$ac_ext <<_ACEOF 20264 20265 /* confdefs.h. */ 20266_ACEOF 20267cat confdefs.h >>conftest.$ac_ext 20268cat >>conftest.$ac_ext <<_ACEOF 20269/* end confdefs.h. */ 20270 20271#include <sys/types.h> 20272#include <sys/mman.h> 20273#include <fcntl.h> 20274 20275int 20276main () 20277{ 20278 20279 int fd; 20280 fd = creat ("foo",0777); 20281 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); 20282 unlink ("foo"); 20283 return (fd != (int) MAP_FAILED); 20284 ; 20285 return 0; 20286} 20287_ACEOF 20288rm -f conftest$ac_exeext 20289if { (ac_try="$ac_link" 20290case "(($ac_try" in 20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20292 *) ac_try_echo=$ac_try;; 20293esac 20294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20295 (eval "$ac_link") 2>&5 20296 ac_status=$? 20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20299 { (case "(($ac_try" in 20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20301 *) ac_try_echo=$ac_try;; 20302esac 20303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20304 (eval "$ac_try") 2>&5 20305 ac_status=$? 20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20307 (exit $ac_status); }; }; then 20308 ac_cv_func_mmap_file=yes 20309else 20310 echo "$as_me: program exited with status $ac_status" >&5 20311echo "$as_me: failed program was:" >&5 20312sed 's/^/| /' conftest.$ac_ext >&5 20313 20314( exit $ac_status ) 20315ac_cv_func_mmap_file=no 20316fi 20317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20318fi 20319 20320 20321 ac_ext=c 20322ac_cpp='$CPP $CPPFLAGS' 20323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20325ac_compiler_gnu=$ac_cv_c_compiler_gnu 20326 20327 20328fi 20329{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5 20330echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; } 20331if test "$ac_cv_func_mmap_file" = yes; then 20332 20333cat >>confdefs.h <<\_ACEOF 20334#define HAVE_MMAP_FILE 20335_ACEOF 20336 20337 MMAP_FILE=yes 20338 20339fi 20340 20341 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5 20342echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; } 20343if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then 20344 echo $ECHO_N "(cached) $ECHO_C" >&6 20345else 20346 if test "$llvm_cv_os_type" = "Interix" ; then 20347 ac_cv_need_dev_zero_for_mmap=yes 20348 else 20349 ac_cv_need_dev_zero_for_mmap=no 20350 fi 20351 20352fi 20353{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5 20354echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; } 20355if test "$ac_cv_need_dev_zero_for_mmap" = yes; then 20356 20357cat >>confdefs.h <<\_ACEOF 20358#define NEED_DEV_ZERO_FOR_MMAP 1 20359_ACEOF 20360 20361fi 20362 20363 if test "$ac_cv_func_mmap_fixed_mapped" = "no" 20364 then 20365 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5 20366echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;} 20367 fi 20368 if test "$ac_cv_func_mmap_file" = "no" 20369 then 20370 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5 20371echo "$as_me: WARNING: mmap() of files required but not found" >&2;} 20372 fi 20373fi 20374 20375{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5 20376echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; } 20377ac_ext=cpp 20378ac_cpp='$CXXCPP $CPPFLAGS' 20379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20382 20383cat >conftest.$ac_ext <<_ACEOF 20384/* confdefs.h. */ 20385_ACEOF 20386cat confdefs.h >>conftest.$ac_ext 20387cat >>conftest.$ac_ext <<_ACEOF 20388/* end confdefs.h. */ 20389int main() { 20390 volatile unsigned long val = 1; 20391 __sync_synchronize(); 20392 __sync_val_compare_and_swap(&val, 1, 0); 20393 __sync_add_and_fetch(&val, 1); 20394 __sync_sub_and_fetch(&val, 1); 20395 return 0; 20396 } 20397 20398_ACEOF 20399rm -f conftest.$ac_objext conftest$ac_exeext 20400if { (ac_try="$ac_link" 20401case "(($ac_try" in 20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20403 *) ac_try_echo=$ac_try;; 20404esac 20405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20406 (eval "$ac_link") 2>conftest.er1 20407 ac_status=$? 20408 grep -v '^ *+' conftest.er1 >conftest.err 20409 rm -f conftest.er1 20410 cat conftest.err >&5 20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20412 (exit $ac_status); } && 20413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20414 { (case "(($ac_try" in 20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20416 *) ac_try_echo=$ac_try;; 20417esac 20418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20419 (eval "$ac_try") 2>&5 20420 ac_status=$? 20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20422 (exit $ac_status); }; } && 20423 { ac_try='test -s conftest$ac_exeext' 20424 { (case "(($ac_try" in 20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20426 *) ac_try_echo=$ac_try;; 20427esac 20428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20429 (eval "$ac_try") 2>&5 20430 ac_status=$? 20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20432 (exit $ac_status); }; }; then 20433 ac_ext=c 20434ac_cpp='$CPP $CPPFLAGS' 20435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20437ac_compiler_gnu=$ac_cv_c_compiler_gnu 20438 20439 { echo "$as_me:$LINENO: result: yes" >&5 20440echo "${ECHO_T}yes" >&6; } 20441 20442cat >>confdefs.h <<\_ACEOF 20443#define LLVM_HAS_ATOMICS 1 20444_ACEOF 20445 20446else 20447 echo "$as_me: failed program was:" >&5 20448sed 's/^/| /' conftest.$ac_ext >&5 20449 20450 { echo "$as_me:$LINENO: result: no" >&5 20451echo "${ECHO_T}no" >&6; } 20452 20453cat >>confdefs.h <<\_ACEOF 20454#define LLVM_HAS_ATOMICS 0 20455_ACEOF 20456 20457 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5 20458echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;} 20459fi 20460 20461rm -f core conftest.err conftest.$ac_objext \ 20462 conftest$ac_exeext conftest.$ac_ext 20463 20464 20465if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then 20466 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5 20467echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; } 20468if test "${llvm_cv_linux_mixed+set}" = set; then 20469 echo $ECHO_N "(cached) $ECHO_C" >&6 20470else 20471 ac_ext=c 20472ac_cpp='$CPP $CPPFLAGS' 20473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20475ac_compiler_gnu=$ac_cv_c_compiler_gnu 20476 20477 cat >conftest.$ac_ext <<_ACEOF 20478/* confdefs.h. */ 20479_ACEOF 20480cat confdefs.h >>conftest.$ac_ext 20481cat >>conftest.$ac_ext <<_ACEOF 20482/* end confdefs.h. */ 20483#ifndef __x86_64__ 20484 error: Not x86-64 even if uname says so! 20485 #endif 20486 20487int 20488main () 20489{ 20490 20491 ; 20492 return 0; 20493} 20494_ACEOF 20495rm -f conftest.$ac_objext 20496if { (ac_try="$ac_compile" 20497case "(($ac_try" in 20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20499 *) ac_try_echo=$ac_try;; 20500esac 20501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20502 (eval "$ac_compile") 2>conftest.er1 20503 ac_status=$? 20504 grep -v '^ *+' conftest.er1 >conftest.err 20505 rm -f conftest.er1 20506 cat conftest.err >&5 20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20508 (exit $ac_status); } && 20509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20510 { (case "(($ac_try" in 20511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20512 *) ac_try_echo=$ac_try;; 20513esac 20514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20515 (eval "$ac_try") 2>&5 20516 ac_status=$? 20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20518 (exit $ac_status); }; } && 20519 { ac_try='test -s conftest.$ac_objext' 20520 { (case "(($ac_try" in 20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20522 *) ac_try_echo=$ac_try;; 20523esac 20524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20525 (eval "$ac_try") 2>&5 20526 ac_status=$? 20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20528 (exit $ac_status); }; }; then 20529 llvm_cv_linux_mixed=no 20530else 20531 echo "$as_me: failed program was:" >&5 20532sed 's/^/| /' conftest.$ac_ext >&5 20533 20534 llvm_cv_linux_mixed=yes 20535fi 20536 20537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20538 ac_ext=c 20539ac_cpp='$CPP $CPPFLAGS' 20540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20542ac_compiler_gnu=$ac_cv_c_compiler_gnu 20543 20544 20545fi 20546{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5 20547echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; } 20548 20549 if test "$llvm_cv_linux_mixed" = "yes"; then 20550 llvm_cv_target_arch="x86" 20551 ARCH="x86" 20552 fi 20553fi 20554 20555 20556for ac_func in __dso_handle 20557do 20558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20559{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20561if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20562 echo $ECHO_N "(cached) $ECHO_C" >&6 20563else 20564 cat >conftest.$ac_ext <<_ACEOF 20565/* confdefs.h. */ 20566_ACEOF 20567cat confdefs.h >>conftest.$ac_ext 20568cat >>conftest.$ac_ext <<_ACEOF 20569/* end confdefs.h. */ 20570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20571 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20572#define $ac_func innocuous_$ac_func 20573 20574/* System header to define __stub macros and hopefully few prototypes, 20575 which can conflict with char $ac_func (); below. 20576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20577 <limits.h> exists even on freestanding compilers. */ 20578 20579#ifdef __STDC__ 20580# include <limits.h> 20581#else 20582# include <assert.h> 20583#endif 20584 20585#undef $ac_func 20586 20587/* Override any GCC internal prototype to avoid an error. 20588 Use char because int might match the return type of a GCC 20589 builtin and then its argument prototype would still apply. */ 20590#ifdef __cplusplus 20591extern "C" 20592#endif 20593char $ac_func (); 20594/* The GNU C library defines this for functions which it implements 20595 to always fail with ENOSYS. Some functions are actually named 20596 something starting with __ and the normal name is an alias. */ 20597#if defined __stub_$ac_func || defined __stub___$ac_func 20598choke me 20599#endif 20600 20601int 20602main () 20603{ 20604return $ac_func (); 20605 ; 20606 return 0; 20607} 20608_ACEOF 20609rm -f conftest.$ac_objext conftest$ac_exeext 20610if { (ac_try="$ac_link" 20611case "(($ac_try" in 20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20613 *) ac_try_echo=$ac_try;; 20614esac 20615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20616 (eval "$ac_link") 2>conftest.er1 20617 ac_status=$? 20618 grep -v '^ *+' conftest.er1 >conftest.err 20619 rm -f conftest.er1 20620 cat conftest.err >&5 20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20622 (exit $ac_status); } && 20623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20624 { (case "(($ac_try" in 20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20626 *) ac_try_echo=$ac_try;; 20627esac 20628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20629 (eval "$ac_try") 2>&5 20630 ac_status=$? 20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20632 (exit $ac_status); }; } && 20633 { ac_try='test -s conftest$ac_exeext' 20634 { (case "(($ac_try" in 20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20636 *) ac_try_echo=$ac_try;; 20637esac 20638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20639 (eval "$ac_try") 2>&5 20640 ac_status=$? 20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20642 (exit $ac_status); }; }; then 20643 eval "$as_ac_var=yes" 20644else 20645 echo "$as_me: failed program was:" >&5 20646sed 's/^/| /' conftest.$ac_ext >&5 20647 20648 eval "$as_ac_var=no" 20649fi 20650 20651rm -f core conftest.err conftest.$ac_objext \ 20652 conftest$ac_exeext conftest.$ac_ext 20653fi 20654ac_res=`eval echo '${'$as_ac_var'}'` 20655 { echo "$as_me:$LINENO: result: $ac_res" >&5 20656echo "${ECHO_T}$ac_res" >&6; } 20657if test `eval echo '${'$as_ac_var'}'` = yes; then 20658 cat >>confdefs.h <<_ACEOF 20659#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20660_ACEOF 20661 20662fi 20663done 20664 20665 20666SHLIBEXT=$libltdl_cv_shlibext 20667 20668 20669SHLIBPATH_VAR=$libltdl_cv_shlibpath_var 20670 20671 20672# Translate the various configuration directories and other basic 20673# information into substitutions that will end up in Makefile.config.in 20674# that these configured values can be used by the makefiles 20675if test "${prefix}" = "NONE" ; then 20676 prefix="/usr/local" 20677fi 20678eval LLVM_PREFIX="${prefix}"; 20679eval LLVM_BINDIR="${prefix}/bin"; 20680eval LLVM_DATADIR="${prefix}/share/llvm"; 20681eval LLVM_DOCSDIR="${prefix}/share/doc/llvm"; 20682eval LLVM_ETCDIR="${prefix}/etc/llvm"; 20683eval LLVM_INCLUDEDIR="${prefix}/include"; 20684eval LLVM_INFODIR="${prefix}/info"; 20685eval LLVM_MANDIR="${prefix}/man"; 20686LLVM_CONFIGTIME=`date` 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697# Place the various directores into the config.h file as #defines so that we 20698# can know about the installation paths within LLVM. 20699 20700cat >>confdefs.h <<_ACEOF 20701#define LLVM_PREFIX "$LLVM_PREFIX" 20702_ACEOF 20703 20704 20705cat >>confdefs.h <<_ACEOF 20706#define LLVM_BINDIR "$LLVM_BINDIR" 20707_ACEOF 20708 20709 20710cat >>confdefs.h <<_ACEOF 20711#define LLVM_DATADIR "$LLVM_DATADIR" 20712_ACEOF 20713 20714 20715cat >>confdefs.h <<_ACEOF 20716#define LLVM_DOCSDIR "$LLVM_DOCSDIR" 20717_ACEOF 20718 20719 20720cat >>confdefs.h <<_ACEOF 20721#define LLVM_ETCDIR "$LLVM_ETCDIR" 20722_ACEOF 20723 20724 20725cat >>confdefs.h <<_ACEOF 20726#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR" 20727_ACEOF 20728 20729 20730cat >>confdefs.h <<_ACEOF 20731#define LLVM_INFODIR "$LLVM_INFODIR" 20732_ACEOF 20733 20734 20735cat >>confdefs.h <<_ACEOF 20736#define LLVM_MANDIR "$LLVM_MANDIR" 20737_ACEOF 20738 20739 20740cat >>confdefs.h <<_ACEOF 20741#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME" 20742_ACEOF 20743 20744 20745cat >>confdefs.h <<_ACEOF 20746#define LLVM_DEFAULT_TARGET_TRIPLE "$target" 20747_ACEOF 20748 20749 20750# Determine which bindings to build. 20751if test "$BINDINGS_TO_BUILD" = auto ; then 20752 BINDINGS_TO_BUILD="" 20753 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then 20754 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" 20755 fi 20756fi 20757BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD 20758 20759 20760# This isn't really configurey, but it avoids having to repeat the list in 20761# other files. 20762ALL_BINDINGS=ocaml 20763 20764 20765# Do any work necessary to ensure that bindings have what they need. 20766binding_prereqs_failed=0 20767for a_binding in $BINDINGS_TO_BUILD ; do 20768 case "$a_binding" in 20769 ocaml) 20770 if test "x$OCAMLC" = x ; then 20771 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5 20772echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;} 20773 binding_prereqs_failed=1 20774 fi 20775 if test "x$OCAMLDEP" = x ; then 20776 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5 20777echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;} 20778 binding_prereqs_failed=1 20779 fi 20780 if test "x$OCAMLOPT" = x ; then 20781 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5 20782echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;} 20783 fi 20784 if test "x$with_ocaml_libdir" != xauto ; then 20785 OCAML_LIBDIR=$with_ocaml_libdir 20786 20787 else 20788 ocaml_stdlib="`"$OCAMLC" -where`" 20789 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~" 20790 then 20791 # ocaml stdlib is beneath our prefix; use stdlib 20792 OCAML_LIBDIR=$ocaml_stdlib 20793 20794 else 20795 # ocaml stdlib is outside our prefix; use libdir/ocaml 20796 OCAML_LIBDIR=${prefix}/lib/ocaml 20797 20798 fi 20799 fi 20800 ;; 20801 esac 20802done 20803if test "$binding_prereqs_failed" = 1 ; then 20804 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5 20805echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;} 20806 { (exit 1); exit 1; }; } 20807fi 20808 20809{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5 20810echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; } 20811if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then 20812 echo $ECHO_N "(cached) $ECHO_C" >&6 20813else 20814 ac_ext=cpp 20815ac_cpp='$CXXCPP $CPPFLAGS' 20816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20819 20820 oldcxxflags="$CXXFLAGS" 20821 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror" 20822 cat >conftest.$ac_ext <<_ACEOF 20823/* confdefs.h. */ 20824_ACEOF 20825cat confdefs.h >>conftest.$ac_ext 20826cat >>conftest.$ac_ext <<_ACEOF 20827/* end confdefs.h. */ 20828template <typename T> struct X { void __attribute__((noinline)) f() {} }; 20829int 20830main () 20831{ 20832X<int>().f(); 20833 ; 20834 return 0; 20835} 20836_ACEOF 20837rm -f conftest.$ac_objext 20838if { (ac_try="$ac_compile" 20839case "(($ac_try" in 20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20841 *) ac_try_echo=$ac_try;; 20842esac 20843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20844 (eval "$ac_compile") 2>conftest.er1 20845 ac_status=$? 20846 grep -v '^ *+' conftest.er1 >conftest.err 20847 rm -f conftest.er1 20848 cat conftest.err >&5 20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20850 (exit $ac_status); } && 20851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 20852 { (case "(($ac_try" in 20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20854 *) ac_try_echo=$ac_try;; 20855esac 20856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20857 (eval "$ac_try") 2>&5 20858 ac_status=$? 20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20860 (exit $ac_status); }; } && 20861 { ac_try='test -s conftest.$ac_objext' 20862 { (case "(($ac_try" in 20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20864 *) ac_try_echo=$ac_try;; 20865esac 20866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20867 (eval "$ac_try") 2>&5 20868 ac_status=$? 20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20870 (exit $ac_status); }; }; then 20871 llvm_cv_cxx_visibility_inlines_hidden=yes 20872else 20873 echo "$as_me: failed program was:" >&5 20874sed 's/^/| /' conftest.$ac_ext >&5 20875 20876 llvm_cv_cxx_visibility_inlines_hidden=no 20877fi 20878 20879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20880 CXXFLAGS="$oldcxxflags" 20881 ac_ext=c 20882ac_cpp='$CPP $CPPFLAGS' 20883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20885ac_compiler_gnu=$ac_cv_c_compiler_gnu 20886 20887 20888fi 20889{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5 20890echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; } 20891if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then 20892 ENABLE_VISIBILITY_INLINES_HIDDEN=1 20893 20894else 20895 ENABLE_VISIBILITY_INLINES_HIDDEN=0 20896 20897fi 20898 20899 20900if test "$llvm_cv_link_use_r" = "yes" ; then 20901 RPATH="-Wl,-R" 20902else 20903 RPATH="-Wl,-rpath" 20904fi 20905 20906 20907if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then 20908 RDYNAMIC="-rdynamic" 20909else 20910 RDYNAMIC="" 20911fi 20912 20913 20914 20915 20916ac_config_files="$ac_config_files Makefile.common" 20917 20918ac_config_files="$ac_config_files Makefile.llvm.config" 20919 20920 20921ac_config_commands="$ac_config_commands Makefile" 20922 20923 20924ac_config_commands="$ac_config_commands lib/Makefile" 20925 20926 20927ac_config_commands="$ac_config_commands lib/sample/Makefile" 20928 20929 20930ac_config_commands="$ac_config_commands tools/Makefile" 20931 20932 20933ac_config_commands="$ac_config_commands tools/sample/Makefile" 20934 20935 20936 20937cat >confcache <<\_ACEOF 20938# This file is a shell script that caches the results of configure 20939# tests run on this system so they can be shared between configure 20940# scripts and configure runs, see configure's option --config-cache. 20941# It is not useful on other systems. If it contains results you don't 20942# want to keep, you may remove or edit it. 20943# 20944# config.status only pays attention to the cache file if you give it 20945# the --recheck option to rerun configure. 20946# 20947# `ac_cv_env_foo' variables (set or unset) will be overridden when 20948# loading this file, other *unset* `ac_cv_foo' will be assigned the 20949# following values. 20950 20951_ACEOF 20952 20953# The following way of writing the cache mishandles newlines in values, 20954# but we know of no workaround that is simple, portable, and efficient. 20955# So, we kill variables containing newlines. 20956# Ultrix sh set writes to stderr and can't be redirected directly, 20957# and sets the high bit in the cache file unless we assign to the vars. 20958( 20959 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20960 eval ac_val=\$$ac_var 20961 case $ac_val in #( 20962 *${as_nl}*) 20963 case $ac_var in #( 20964 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20965echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20966 esac 20967 case $ac_var in #( 20968 _ | IFS | as_nl) ;; #( 20969 *) $as_unset $ac_var ;; 20970 esac ;; 20971 esac 20972 done 20973 20974 (set) 2>&1 | 20975 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20976 *${as_nl}ac_space=\ *) 20977 # `set' does not quote correctly, so add quotes (double-quote 20978 # substitution turns \\\\ into \\, and sed turns \\ into \). 20979 sed -n \ 20980 "s/'/'\\\\''/g; 20981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20982 ;; #( 20983 *) 20984 # `set' quotes correctly as required by POSIX, so do not add quotes. 20985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20986 ;; 20987 esac | 20988 sort 20989) | 20990 sed ' 20991 /^ac_cv_env_/b end 20992 t clear 20993 :clear 20994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20995 t end 20996 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20997 :end' >>confcache 20998if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20999 if test -w "$cache_file"; then 21000 test "x$cache_file" != "x/dev/null" && 21001 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21002echo "$as_me: updating cache $cache_file" >&6;} 21003 cat confcache >$cache_file 21004 else 21005 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21006echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21007 fi 21008fi 21009rm -f confcache 21010 21011test "x$prefix" = xNONE && prefix=$ac_default_prefix 21012# Let make expand exec_prefix. 21013test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21014 21015# Transform confdefs.h into DEFS. 21016# Protect against shell expansion while executing Makefile rules. 21017# Protect against Makefile macro expansion. 21018# 21019# If the first sed substitution is executed (which looks for macros that 21020# take arguments), then branch to the quote section. Otherwise, 21021# look for a macro that doesn't take arguments. 21022ac_script=' 21023t clear 21024:clear 21025s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 21026t quote 21027s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 21028t quote 21029b any 21030:quote 21031s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 21032s/\[/\\&/g 21033s/\]/\\&/g 21034s/\$/$$/g 21035H 21036:any 21037${ 21038 g 21039 s/^\n// 21040 s/\n/ /g 21041 p 21042} 21043' 21044DEFS=`sed -n "$ac_script" confdefs.h` 21045 21046 21047ac_libobjs= 21048ac_ltlibobjs= 21049for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21050 # 1. Remove the extension, and $U if already installed. 21051 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21052 ac_i=`echo "$ac_i" | sed "$ac_script"` 21053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21054 # will be set to the directory where LIBOBJS objects are built. 21055 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21056 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21057done 21058LIBOBJS=$ac_libobjs 21059 21060LTLIBOBJS=$ac_ltlibobjs 21061 21062 21063if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 21064 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. 21065Usually this means the macro was only invoked conditionally." >&5 21066echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. 21067Usually this means the macro was only invoked conditionally." >&2;} 21068 { (exit 1); exit 1; }; } 21069fi 21070if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 21071 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21072Usually this means the macro was only invoked conditionally." >&5 21073echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. 21074Usually this means the macro was only invoked conditionally." >&2;} 21075 { (exit 1); exit 1; }; } 21076fi 21077 21078: ${CONFIG_STATUS=./config.status} 21079ac_clean_files_save=$ac_clean_files 21080ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21081{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21082echo "$as_me: creating $CONFIG_STATUS" >&6;} 21083cat >$CONFIG_STATUS <<_ACEOF 21084#! $SHELL 21085# Generated by $as_me. 21086# Run this file to recreate the current configuration. 21087# Compiler output produced by configure, useful for debugging 21088# configure, is in config.log if it exists. 21089 21090debug=false 21091ac_cs_recheck=false 21092ac_cs_silent=false 21093SHELL=\${CONFIG_SHELL-$SHELL} 21094_ACEOF 21095 21096cat >>$CONFIG_STATUS <<\_ACEOF 21097## --------------------- ## 21098## M4sh Initialization. ## 21099## --------------------- ## 21100 21101# Be Bourne compatible 21102if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21103 emulate sh 21104 NULLCMD=: 21105 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21106 # is contrary to our usage. Disable this feature. 21107 alias -g '${1+"$@"}'='"$@"' 21108 setopt NO_GLOB_SUBST 21109else 21110 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21111fi 21112BIN_SH=xpg4; export BIN_SH # for Tru64 21113DUALCASE=1; export DUALCASE # for MKS sh 21114 21115 21116# PATH needs CR 21117# Avoid depending upon Character Ranges. 21118as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21119as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21120as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21121as_cr_digits='0123456789' 21122as_cr_alnum=$as_cr_Letters$as_cr_digits 21123 21124# The user is always right. 21125if test "${PATH_SEPARATOR+set}" != set; then 21126 echo "#! /bin/sh" >conf$$.sh 21127 echo "exit 0" >>conf$$.sh 21128 chmod +x conf$$.sh 21129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21130 PATH_SEPARATOR=';' 21131 else 21132 PATH_SEPARATOR=: 21133 fi 21134 rm -f conf$$.sh 21135fi 21136 21137# Support unset when possible. 21138if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21139 as_unset=unset 21140else 21141 as_unset=false 21142fi 21143 21144 21145# IFS 21146# We need space, tab and new line, in precisely that order. Quoting is 21147# there to prevent editors from complaining about space-tab. 21148# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21149# splitting by setting IFS to empty value.) 21150as_nl=' 21151' 21152IFS=" "" $as_nl" 21153 21154# Find who we are. Look in the path if we contain no directory separator. 21155case $0 in 21156 *[\\/]* ) as_myself=$0 ;; 21157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21158for as_dir in $PATH 21159do 21160 IFS=$as_save_IFS 21161 test -z "$as_dir" && as_dir=. 21162 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21163done 21164IFS=$as_save_IFS 21165 21166 ;; 21167esac 21168# We did not find ourselves, most probably we were run as `sh COMMAND' 21169# in which case we are not to be found in the path. 21170if test "x$as_myself" = x; then 21171 as_myself=$0 21172fi 21173if test ! -f "$as_myself"; then 21174 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21175 { (exit 1); exit 1; } 21176fi 21177 21178# Work around bugs in pre-3.0 UWIN ksh. 21179for as_var in ENV MAIL MAILPATH 21180do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21181done 21182PS1='$ ' 21183PS2='> ' 21184PS4='+ ' 21185 21186# NLS nuisances. 21187for as_var in \ 21188 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21189 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21190 LC_TELEPHONE LC_TIME 21191do 21192 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21193 eval $as_var=C; export $as_var 21194 else 21195 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21196 fi 21197done 21198 21199# Required to use basename. 21200if expr a : '\(a\)' >/dev/null 2>&1 && 21201 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21202 as_expr=expr 21203else 21204 as_expr=false 21205fi 21206 21207if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21208 as_basename=basename 21209else 21210 as_basename=false 21211fi 21212 21213 21214# Name of the executable. 21215as_me=`$as_basename -- "$0" || 21216$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21217 X"$0" : 'X\(//\)$' \| \ 21218 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21219echo X/"$0" | 21220 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21221 s//\1/ 21222 q 21223 } 21224 /^X\/\(\/\/\)$/{ 21225 s//\1/ 21226 q 21227 } 21228 /^X\/\(\/\).*/{ 21229 s//\1/ 21230 q 21231 } 21232 s/.*/./; q'` 21233 21234# CDPATH. 21235$as_unset CDPATH 21236 21237 21238 21239 as_lineno_1=$LINENO 21240 as_lineno_2=$LINENO 21241 test "x$as_lineno_1" != "x$as_lineno_2" && 21242 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21243 21244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21245 # uniformly replaced by the line number. The first 'sed' inserts a 21246 # line-number line after each line using $LINENO; the second 'sed' 21247 # does the real work. The second script uses 'N' to pair each 21248 # line-number line with the line containing $LINENO, and appends 21249 # trailing '-' during substitution so that $LINENO is not a special 21250 # case at line end. 21251 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21252 # scripts with optimization help from Paolo Bonzini. Blame Lee 21253 # E. McMahon (1931-1989) for sed's syntax. :-) 21254 sed -n ' 21255 p 21256 /[$]LINENO/= 21257 ' <$as_myself | 21258 sed ' 21259 s/[$]LINENO.*/&-/ 21260 t lineno 21261 b 21262 :lineno 21263 N 21264 :loop 21265 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21266 t loop 21267 s/-\n.*// 21268 ' >$as_me.lineno && 21269 chmod +x "$as_me.lineno" || 21270 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21271 { (exit 1); exit 1; }; } 21272 21273 # Don't try to exec as it changes $[0], causing all sort of problems 21274 # (the dirname of $[0] is not the place where we might find the 21275 # original and so on. Autoconf is especially sensitive to this). 21276 . "./$as_me.lineno" 21277 # Exit status is that of the last command. 21278 exit 21279} 21280 21281 21282if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21283 as_dirname=dirname 21284else 21285 as_dirname=false 21286fi 21287 21288ECHO_C= ECHO_N= ECHO_T= 21289case `echo -n x` in 21290-n*) 21291 case `echo 'x\c'` in 21292 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21293 *) ECHO_C='\c';; 21294 esac;; 21295*) 21296 ECHO_N='-n';; 21297esac 21298 21299if expr a : '\(a\)' >/dev/null 2>&1 && 21300 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21301 as_expr=expr 21302else 21303 as_expr=false 21304fi 21305 21306rm -f conf$$ conf$$.exe conf$$.file 21307if test -d conf$$.dir; then 21308 rm -f conf$$.dir/conf$$.file 21309else 21310 rm -f conf$$.dir 21311 mkdir conf$$.dir 21312fi 21313echo >conf$$.file 21314if ln -s conf$$.file conf$$ 2>/dev/null; then 21315 as_ln_s='ln -s' 21316 # ... but there are two gotchas: 21317 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21318 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21319 # In both cases, we have to default to `cp -p'. 21320 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21321 as_ln_s='cp -p' 21322elif ln conf$$.file conf$$ 2>/dev/null; then 21323 as_ln_s=ln 21324else 21325 as_ln_s='cp -p' 21326fi 21327rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21328rmdir conf$$.dir 2>/dev/null 21329 21330if mkdir -p . 2>/dev/null; then 21331 as_mkdir_p=: 21332else 21333 test -d ./-p && rmdir ./-p 21334 as_mkdir_p=false 21335fi 21336 21337# Find out whether ``test -x'' works. Don't use a zero-byte file, as 21338# systems may use methods other than mode bits to determine executability. 21339cat >conf$$.file <<_ASEOF 21340#! /bin/sh 21341exit 0 21342_ASEOF 21343chmod +x conf$$.file 21344if test -x conf$$.file >/dev/null 2>&1; then 21345 as_executable_p="test -x" 21346else 21347 as_executable_p=: 21348fi 21349rm -f conf$$.file 21350 21351# Sed expression to map a string onto a valid CPP name. 21352as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21353 21354# Sed expression to map a string onto a valid variable name. 21355as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21356 21357 21358exec 6>&1 21359 21360# Save the log message, to keep $[0] and so on meaningful, and to 21361# report actual input values of CONFIG_FILES etc. instead of their 21362# values after options handling. 21363ac_log=" 21364This file was extended by [SAMPLE] $as_me [x.xx], which was 21365generated by GNU Autoconf 2.60. Invocation command line was 21366 21367 CONFIG_FILES = $CONFIG_FILES 21368 CONFIG_HEADERS = $CONFIG_HEADERS 21369 CONFIG_LINKS = $CONFIG_LINKS 21370 CONFIG_COMMANDS = $CONFIG_COMMANDS 21371 $ $0 $@ 21372 21373on `(hostname || uname -n) 2>/dev/null | sed 1q` 21374" 21375 21376_ACEOF 21377 21378cat >>$CONFIG_STATUS <<_ACEOF 21379# Files that config.status was made for. 21380config_files="$ac_config_files" 21381config_commands="$ac_config_commands" 21382 21383_ACEOF 21384 21385cat >>$CONFIG_STATUS <<\_ACEOF 21386ac_cs_usage="\ 21387\`$as_me' instantiates files from templates according to the 21388current configuration. 21389 21390Usage: $0 [OPTIONS] [FILE]... 21391 21392 -h, --help print this help, then exit 21393 -V, --version print version number, then exit 21394 -q, --quiet do not print progress messages 21395 -d, --debug don't remove temporary files 21396 --recheck update $as_me by reconfiguring in the same conditions 21397 --file=FILE[:TEMPLATE] 21398 instantiate the configuration file FILE 21399 21400Configuration files: 21401$config_files 21402 21403Configuration commands: 21404$config_commands 21405 21406Report bugs to <bug-autoconf@gnu.org>." 21407 21408_ACEOF 21409cat >>$CONFIG_STATUS <<_ACEOF 21410ac_cs_version="\\ 21411[SAMPLE] config.status [x.xx] 21412configured by $0, generated by GNU Autoconf 2.60, 21413 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21414 21415Copyright (C) 2006 Free Software Foundation, Inc. 21416This config.status script is free software; the Free Software Foundation 21417gives unlimited permission to copy, distribute and modify it." 21418 21419ac_pwd='$ac_pwd' 21420srcdir='$srcdir' 21421INSTALL='$INSTALL' 21422_ACEOF 21423 21424cat >>$CONFIG_STATUS <<\_ACEOF 21425# If no file are specified by the user, then we need to provide default 21426# value. By we need to know if files were specified by the user. 21427ac_need_defaults=: 21428while test $# != 0 21429do 21430 case $1 in 21431 --*=*) 21432 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21433 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21434 ac_shift=: 21435 ;; 21436 *) 21437 ac_option=$1 21438 ac_optarg=$2 21439 ac_shift=shift 21440 ;; 21441 esac 21442 21443 case $ac_option in 21444 # Handling of the options. 21445 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21446 ac_cs_recheck=: ;; 21447 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21448 echo "$ac_cs_version"; exit ;; 21449 --debug | --debu | --deb | --de | --d | -d ) 21450 debug=: ;; 21451 --file | --fil | --fi | --f ) 21452 $ac_shift 21453 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21454 ac_need_defaults=false;; 21455 --he | --h | --help | --hel | -h ) 21456 echo "$ac_cs_usage"; exit ;; 21457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21458 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21459 ac_cs_silent=: ;; 21460 21461 # This is an error. 21462 -*) { echo "$as_me: error: unrecognized option: $1 21463Try \`$0 --help' for more information." >&2 21464 { (exit 1); exit 1; }; } ;; 21465 21466 *) ac_config_targets="$ac_config_targets $1" 21467 ac_need_defaults=false ;; 21468 21469 esac 21470 shift 21471done 21472 21473ac_configure_extra_args= 21474 21475if $ac_cs_silent; then 21476 exec 6>/dev/null 21477 ac_configure_extra_args="$ac_configure_extra_args --silent" 21478fi 21479 21480_ACEOF 21481cat >>$CONFIG_STATUS <<_ACEOF 21482if \$ac_cs_recheck; then 21483 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21484 CONFIG_SHELL=$SHELL 21485 export CONFIG_SHELL 21486 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21487fi 21488 21489_ACEOF 21490cat >>$CONFIG_STATUS <<\_ACEOF 21491exec 5>>config.log 21492{ 21493 echo 21494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21495## Running $as_me. ## 21496_ASBOX 21497 echo "$ac_log" 21498} >&5 21499 21500_ACEOF 21501cat >>$CONFIG_STATUS <<_ACEOF 21502# 21503# INIT-COMMANDS 21504# 21505llvm_src="${LLVM_SRC}" 21506 21507_ACEOF 21508 21509cat >>$CONFIG_STATUS <<\_ACEOF 21510 21511# Handling of arguments. 21512for ac_config_target in $ac_config_targets 21513do 21514 case $ac_config_target in 21515 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;; 21516 "Makefile.common") CONFIG_FILES="$CONFIG_FILES Makefile.common" ;; 21517 "Makefile.llvm.config") CONFIG_FILES="$CONFIG_FILES Makefile.llvm.config" ;; 21518 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; 21519 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;; 21520 "lib/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/sample/Makefile" ;; 21521 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;; 21522 "tools/sample/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/sample/Makefile" ;; 21523 21524 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21525echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21526 { (exit 1); exit 1; }; };; 21527 esac 21528done 21529 21530 21531# If the user did not use the arguments to specify the items to instantiate, 21532# then the envvar interface is used. Set only those that are not. 21533# We use the long form for the default assignment because of an extremely 21534# bizarre bug on SunOS 4.1.3. 21535if $ac_need_defaults; then 21536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21537 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21538fi 21539 21540# Have a temporary directory for convenience. Make it in the build tree 21541# simply because there is no reason against having it here, and in addition, 21542# creating and moving files from /tmp can sometimes cause problems. 21543# Hook for its removal unless debugging. 21544# Note that there is a small window in which the directory will not be cleaned: 21545# after its creation but before its name has been assigned to `$tmp'. 21546$debug || 21547{ 21548 tmp= 21549 trap 'exit_status=$? 21550 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21551' 0 21552 trap '{ (exit 1); exit 1; }' 1 2 13 15 21553} 21554# Create a (secure) tmp directory for tmp files. 21555 21556{ 21557 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21558 test -n "$tmp" && test -d "$tmp" 21559} || 21560{ 21561 tmp=./conf$$-$RANDOM 21562 (umask 077 && mkdir "$tmp") 21563} || 21564{ 21565 echo "$me: cannot create a temporary directory in ." >&2 21566 { (exit 1); exit 1; } 21567} 21568 21569# 21570# Set up the sed scripts for CONFIG_FILES section. 21571# 21572 21573# No need to generate the scripts if there are no CONFIG_FILES. 21574# This happens for instance when ./config.status config.h 21575if test -n "$CONFIG_FILES"; then 21576 21577_ACEOF 21578 21579 21580 21581ac_delim='%!_!# ' 21582for ac_last_try in false false false false false :; do 21583 cat >conf$$subs.sed <<_ACEOF 21584SHELL!$SHELL$ac_delim 21585PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21586PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21587PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21588PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21589PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21590PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21591exec_prefix!$exec_prefix$ac_delim 21592prefix!$prefix$ac_delim 21593program_transform_name!$program_transform_name$ac_delim 21594bindir!$bindir$ac_delim 21595sbindir!$sbindir$ac_delim 21596libexecdir!$libexecdir$ac_delim 21597datarootdir!$datarootdir$ac_delim 21598datadir!$datadir$ac_delim 21599sysconfdir!$sysconfdir$ac_delim 21600sharedstatedir!$sharedstatedir$ac_delim 21601localstatedir!$localstatedir$ac_delim 21602includedir!$includedir$ac_delim 21603oldincludedir!$oldincludedir$ac_delim 21604docdir!$docdir$ac_delim 21605infodir!$infodir$ac_delim 21606htmldir!$htmldir$ac_delim 21607dvidir!$dvidir$ac_delim 21608pdfdir!$pdfdir$ac_delim 21609psdir!$psdir$ac_delim 21610libdir!$libdir$ac_delim 21611localedir!$localedir$ac_delim 21612mandir!$mandir$ac_delim 21613DEFS!$DEFS$ac_delim 21614ECHO_C!$ECHO_C$ac_delim 21615ECHO_N!$ECHO_N$ac_delim 21616ECHO_T!$ECHO_T$ac_delim 21617LIBS!$LIBS$ac_delim 21618build_alias!$build_alias$ac_delim 21619host_alias!$host_alias$ac_delim 21620target_alias!$target_alias$ac_delim 21621LLVM_SRC!$LLVM_SRC$ac_delim 21622LLVM_OBJ!$LLVM_OBJ$ac_delim 21623LLVM_VERSION!$LLVM_VERSION$ac_delim 21624CC!$CC$ac_delim 21625CFLAGS!$CFLAGS$ac_delim 21626LDFLAGS!$LDFLAGS$ac_delim 21627CPPFLAGS!$CPPFLAGS$ac_delim 21628ac_ct_CC!$ac_ct_CC$ac_delim 21629EXEEXT!$EXEEXT$ac_delim 21630OBJEXT!$OBJEXT$ac_delim 21631CXX!$CXX$ac_delim 21632CXXFLAGS!$CXXFLAGS$ac_delim 21633ac_ct_CXX!$ac_ct_CXX$ac_delim 21634CPP!$CPP$ac_delim 21635ENABLE_POLLY!$ENABLE_POLLY$ac_delim 21636LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim 21637subdirs!$subdirs$ac_delim 21638build!$build$ac_delim 21639build_cpu!$build_cpu$ac_delim 21640build_vendor!$build_vendor$ac_delim 21641build_os!$build_os$ac_delim 21642host!$host$ac_delim 21643host_cpu!$host_cpu$ac_delim 21644host_vendor!$host_vendor$ac_delim 21645host_os!$host_os$ac_delim 21646target!$target$ac_delim 21647target_cpu!$target_cpu$ac_delim 21648target_vendor!$target_vendor$ac_delim 21649target_os!$target_os$ac_delim 21650OS!$OS$ac_delim 21651HOST_OS!$HOST_OS$ac_delim 21652TARGET_OS!$TARGET_OS$ac_delim 21653LINKALL!$LINKALL$ac_delim 21654NOLINKALL!$NOLINKALL$ac_delim 21655LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim 21656LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim 21657ARCH!$ARCH$ac_delim 21658ENDIAN!$ENDIAN$ac_delim 21659GREP!$GREP$ac_delim 21660EGREP!$EGREP$ac_delim 21661LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim 21662BUILD_CC!$BUILD_CC$ac_delim 21663BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim 21664BUILD_CXX!$BUILD_CXX$ac_delim 21665CVSBUILD!$CVSBUILD$ac_delim 21666ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim 21667ENABLE_CXX11!$ENABLE_CXX11$ac_delim 21668ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim 21669ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim 21670DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim 21671ENABLE_WERROR!$ENABLE_WERROR$ac_delim 21672ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim 21673EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim 21674DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim 21675DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim 21676JIT!$JIT$ac_delim 21677TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim 21678ENABLE_DOCS!$ENABLE_DOCS$ac_delim 21679ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim 21680ENABLE_THREADS!$ENABLE_THREADS$ac_delim 21681_ACEOF 21682 21683 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21684 break 21685 elif $ac_last_try; then 21686 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21687echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21688 { (exit 1); exit 1; }; } 21689 else 21690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21691 fi 21692done 21693 21694ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21695if test -n "$ac_eof"; then 21696 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21697 ac_eof=`expr $ac_eof + 1` 21698fi 21699 21700cat >>$CONFIG_STATUS <<_ACEOF 21701cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21702/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21703_ACEOF 21704sed ' 21705s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21706s/^/s,@/; s/!/@,|#_!!_#|/ 21707:n 21708t n 21709s/'"$ac_delim"'$/,g/; t 21710s/$/\\/; p 21711N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21712' >>$CONFIG_STATUS <conf$$subs.sed 21713rm -f conf$$subs.sed 21714cat >>$CONFIG_STATUS <<_ACEOF 21715CEOF$ac_eof 21716_ACEOF 21717 21718 21719ac_delim='%!_!# ' 21720for ac_last_try in false false false false false :; do 21721 cat >conf$$subs.sed <<_ACEOF 21722ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim 21723ENABLE_PIC!$ENABLE_PIC$ac_delim 21724ENABLE_SHARED!$ENABLE_SHARED$ac_delim 21725ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim 21726ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim 21727TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim 21728LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim 21729LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim 21730LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim 21731LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim 21732OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim 21733EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim 21734EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim 21735BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim 21736NM!$NM$ac_delim 21737ifGNUmake!$ifGNUmake$ac_delim 21738LN_S!$LN_S$ac_delim 21739CMP!$CMP$ac_delim 21740CP!$CP$ac_delim 21741DATE!$DATE$ac_delim 21742FIND!$FIND$ac_delim 21743MKDIR!$MKDIR$ac_delim 21744MV!$MV$ac_delim 21745RANLIB!$RANLIB$ac_delim 21746AR!$AR$ac_delim 21747RM!$RM$ac_delim 21748SED!$SED$ac_delim 21749TAR!$TAR$ac_delim 21750BINPWD!$BINPWD$ac_delim 21751GRAPHVIZ!$GRAPHVIZ$ac_delim 21752DOT!$DOT$ac_delim 21753FDP!$FDP$ac_delim 21754NEATO!$NEATO$ac_delim 21755TWOPI!$TWOPI$ac_delim 21756CIRCO!$CIRCO$ac_delim 21757GV!$GV$ac_delim 21758DOTTY!$DOTTY$ac_delim 21759XDOT_PY!$XDOT_PY$ac_delim 21760INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21761INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21762INSTALL_DATA!$INSTALL_DATA$ac_delim 21763BZIP2!$BZIP2$ac_delim 21764CAT!$CAT$ac_delim 21765DOXYGEN!$DOXYGEN$ac_delim 21766GROFF!$GROFF$ac_delim 21767GZIPBIN!$GZIPBIN$ac_delim 21768POD2HTML!$POD2HTML$ac_delim 21769POD2MAN!$POD2MAN$ac_delim 21770PDFROFF!$PDFROFF$ac_delim 21771RUNTEST!$RUNTEST$ac_delim 21772TCLSH!$TCLSH$ac_delim 21773ZIP!$ZIP$ac_delim 21774OCAMLC!$OCAMLC$ac_delim 21775OCAMLOPT!$OCAMLOPT$ac_delim 21776OCAMLDEP!$OCAMLDEP$ac_delim 21777OCAMLDOC!$OCAMLDOC$ac_delim 21778GAS!$GAS$ac_delim 21779HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim 21780INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim 21781INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim 21782CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim 21783CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim 21784LIBADD_DL!$LIBADD_DL$ac_delim 21785NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim 21786NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim 21787COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim 21788USE_UDIS86!$USE_UDIS86$ac_delim 21789USE_OPROFILE!$USE_OPROFILE$ac_delim 21790HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim 21791HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim 21792MMAP_FILE!$MMAP_FILE$ac_delim 21793SHLIBEXT!$SHLIBEXT$ac_delim 21794SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim 21795LLVM_PREFIX!$LLVM_PREFIX$ac_delim 21796LLVM_BINDIR!$LLVM_BINDIR$ac_delim 21797LLVM_DATADIR!$LLVM_DATADIR$ac_delim 21798LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim 21799LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim 21800LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim 21801LLVM_INFODIR!$LLVM_INFODIR$ac_delim 21802LLVM_MANDIR!$LLVM_MANDIR$ac_delim 21803LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim 21804BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim 21805ALL_BINDINGS!$ALL_BINDINGS$ac_delim 21806OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim 21807ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim 21808RPATH!$RPATH$ac_delim 21809RDYNAMIC!$RDYNAMIC$ac_delim 21810LIBOBJS!$LIBOBJS$ac_delim 21811LTLIBOBJS!$LTLIBOBJS$ac_delim 21812_ACEOF 21813 21814 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then 21815 break 21816 elif $ac_last_try; then 21817 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21818echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21819 { (exit 1); exit 1; }; } 21820 else 21821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21822 fi 21823done 21824 21825ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21826if test -n "$ac_eof"; then 21827 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21828 ac_eof=`expr $ac_eof + 1` 21829fi 21830 21831cat >>$CONFIG_STATUS <<_ACEOF 21832cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21833/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21834_ACEOF 21835sed ' 21836s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21837s/^/s,@/; s/!/@,|#_!!_#|/ 21838:n 21839t n 21840s/'"$ac_delim"'$/,g/; t 21841s/$/\\/; p 21842N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21843' >>$CONFIG_STATUS <conf$$subs.sed 21844rm -f conf$$subs.sed 21845cat >>$CONFIG_STATUS <<_ACEOF 21846:end 21847s/|#_!!_#|//g 21848CEOF$ac_eof 21849_ACEOF 21850 21851 21852# VPATH may cause trouble with some makes, so we remove $(srcdir), 21853# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21854# trailing colons and then remove the whole line if VPATH becomes empty 21855# (actually we leave an empty line to preserve line numbers). 21856if test "x$srcdir" = x.; then 21857 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21858s/:*\$(srcdir):*/:/ 21859s/:*\${srcdir}:*/:/ 21860s/:*@srcdir@:*/:/ 21861s/^\([^=]*=[ ]*\):*/\1/ 21862s/:*$// 21863s/^[^=]*=[ ]*$// 21864}' 21865fi 21866 21867cat >>$CONFIG_STATUS <<\_ACEOF 21868fi # test -n "$CONFIG_FILES" 21869 21870 21871for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 21872do 21873 case $ac_tag in 21874 :[FHLC]) ac_mode=$ac_tag; continue;; 21875 esac 21876 case $ac_mode$ac_tag in 21877 :[FHL]*:*);; 21878 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21879echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21880 { (exit 1); exit 1; }; };; 21881 :[FH]-) ac_tag=-:-;; 21882 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21883 esac 21884 ac_save_IFS=$IFS 21885 IFS=: 21886 set x $ac_tag 21887 IFS=$ac_save_IFS 21888 shift 21889 ac_file=$1 21890 shift 21891 21892 case $ac_mode in 21893 :L) ac_source=$1;; 21894 :[FH]) 21895 ac_file_inputs= 21896 for ac_f 21897 do 21898 case $ac_f in 21899 -) ac_f="$tmp/stdin";; 21900 *) # Look for the file first in the build tree, then in the source tree 21901 # (if the path is not absolute). The absolute path cannot be DOS-style, 21902 # because $ac_f cannot contain `:'. 21903 test -f "$ac_f" || 21904 case $ac_f in 21905 [\\/$]*) false;; 21906 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21907 esac || 21908 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21909echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21910 { (exit 1); exit 1; }; };; 21911 esac 21912 ac_file_inputs="$ac_file_inputs $ac_f" 21913 done 21914 21915 # Let's still pretend it is `configure' which instantiates (i.e., don't 21916 # use $as_me), people would be surprised to read: 21917 # /* config.h. Generated by config.status. */ 21918 configure_input="Generated from "`IFS=: 21919 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21920 if test x"$ac_file" != x-; then 21921 configure_input="$ac_file. $configure_input" 21922 { echo "$as_me:$LINENO: creating $ac_file" >&5 21923echo "$as_me: creating $ac_file" >&6;} 21924 fi 21925 21926 case $ac_tag in 21927 *:-:* | *:-) cat >"$tmp/stdin";; 21928 esac 21929 ;; 21930 esac 21931 21932 ac_dir=`$as_dirname -- "$ac_file" || 21933$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21934 X"$ac_file" : 'X\(//\)[^/]' \| \ 21935 X"$ac_file" : 'X\(//\)$' \| \ 21936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21937echo X"$ac_file" | 21938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21939 s//\1/ 21940 q 21941 } 21942 /^X\(\/\/\)[^/].*/{ 21943 s//\1/ 21944 q 21945 } 21946 /^X\(\/\/\)$/{ 21947 s//\1/ 21948 q 21949 } 21950 /^X\(\/\).*/{ 21951 s//\1/ 21952 q 21953 } 21954 s/.*/./; q'` 21955 { as_dir="$ac_dir" 21956 case $as_dir in #( 21957 -*) as_dir=./$as_dir;; 21958 esac 21959 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21960 as_dirs= 21961 while :; do 21962 case $as_dir in #( 21963 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21964 *) as_qdir=$as_dir;; 21965 esac 21966 as_dirs="'$as_qdir' $as_dirs" 21967 as_dir=`$as_dirname -- "$as_dir" || 21968$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21969 X"$as_dir" : 'X\(//\)[^/]' \| \ 21970 X"$as_dir" : 'X\(//\)$' \| \ 21971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21972echo X"$as_dir" | 21973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21974 s//\1/ 21975 q 21976 } 21977 /^X\(\/\/\)[^/].*/{ 21978 s//\1/ 21979 q 21980 } 21981 /^X\(\/\/\)$/{ 21982 s//\1/ 21983 q 21984 } 21985 /^X\(\/\).*/{ 21986 s//\1/ 21987 q 21988 } 21989 s/.*/./; q'` 21990 test -d "$as_dir" && break 21991 done 21992 test -z "$as_dirs" || eval "mkdir $as_dirs" 21993 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21994echo "$as_me: error: cannot create directory $as_dir" >&2;} 21995 { (exit 1); exit 1; }; }; } 21996 ac_builddir=. 21997 21998case "$ac_dir" in 21999.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22000*) 22001 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22002 # A ".." for each directory in $ac_dir_suffix. 22003 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22004 case $ac_top_builddir_sub in 22005 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22006 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22007 esac ;; 22008esac 22009ac_abs_top_builddir=$ac_pwd 22010ac_abs_builddir=$ac_pwd$ac_dir_suffix 22011# for backward compatibility: 22012ac_top_builddir=$ac_top_build_prefix 22013 22014case $srcdir in 22015 .) # We are building in place. 22016 ac_srcdir=. 22017 ac_top_srcdir=$ac_top_builddir_sub 22018 ac_abs_top_srcdir=$ac_pwd ;; 22019 [\\/]* | ?:[\\/]* ) # Absolute name. 22020 ac_srcdir=$srcdir$ac_dir_suffix; 22021 ac_top_srcdir=$srcdir 22022 ac_abs_top_srcdir=$srcdir ;; 22023 *) # Relative name. 22024 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22025 ac_top_srcdir=$ac_top_build_prefix$srcdir 22026 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22027esac 22028ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22029 22030 22031 case $ac_mode in 22032 :F) 22033 # 22034 # CONFIG_FILE 22035 # 22036 22037 case $INSTALL in 22038 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22039 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22040 esac 22041_ACEOF 22042 22043cat >>$CONFIG_STATUS <<\_ACEOF 22044# If the template does not know about datarootdir, expand it. 22045# FIXME: This hack should be removed a few years after 2.60. 22046ac_datarootdir_hack=; ac_datarootdir_seen= 22047 22048case `sed -n '/datarootdir/ { 22049 p 22050 q 22051} 22052/@datadir@/p 22053/@docdir@/p 22054/@infodir@/p 22055/@localedir@/p 22056/@mandir@/p 22057' $ac_file_inputs` in 22058*datarootdir*) ac_datarootdir_seen=yes;; 22059*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22060 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22061echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22062_ACEOF 22063cat >>$CONFIG_STATUS <<_ACEOF 22064 ac_datarootdir_hack=' 22065 s&@datadir@&$datadir&g 22066 s&@docdir@&$docdir&g 22067 s&@infodir@&$infodir&g 22068 s&@localedir@&$localedir&g 22069 s&@mandir@&$mandir&g 22070 s&\\\${datarootdir}&$datarootdir&g' ;; 22071esac 22072_ACEOF 22073 22074# Neutralize VPATH when `$srcdir' = `.'. 22075# Shell code in configure.ac might set extrasub. 22076# FIXME: do we really want to maintain this feature? 22077cat >>$CONFIG_STATUS <<_ACEOF 22078 sed "$ac_vpsub 22079$extrasub 22080_ACEOF 22081cat >>$CONFIG_STATUS <<\_ACEOF 22082:t 22083/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22084s&@configure_input@&$configure_input&;t t 22085s&@top_builddir@&$ac_top_builddir_sub&;t t 22086s&@srcdir@&$ac_srcdir&;t t 22087s&@abs_srcdir@&$ac_abs_srcdir&;t t 22088s&@top_srcdir@&$ac_top_srcdir&;t t 22089s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22090s&@builddir@&$ac_builddir&;t t 22091s&@abs_builddir@&$ac_abs_builddir&;t t 22092s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22093s&@INSTALL@&$ac_INSTALL&;t t 22094$ac_datarootdir_hack 22095" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22096 22097test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22098 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22100 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22101which seems to be undefined. Please make sure it is defined." >&5 22102echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22103which seems to be undefined. Please make sure it is defined." >&2;} 22104 22105 rm -f "$tmp/stdin" 22106 case $ac_file in 22107 -) cat "$tmp/out"; rm -f "$tmp/out";; 22108 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22109 esac 22110 ;; 22111 22112 22113 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22114echo "$as_me: executing $ac_file commands" >&6;} 22115 ;; 22116 esac 22117 22118 22119 case $ac_file$ac_mode in 22120 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile` 22121 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;; 22122 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile` 22123 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;; 22124 "lib/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/sample/Makefile` 22125 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/sample/Makefile lib/sample/Makefile ;; 22126 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile` 22127 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;; 22128 "tools/sample/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/sample/Makefile` 22129 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/sample/Makefile tools/sample/Makefile ;; 22130 22131 esac 22132done # for ac_tag 22133 22134 22135{ (exit 0); exit 0; } 22136_ACEOF 22137chmod +x $CONFIG_STATUS 22138ac_clean_files=$ac_clean_files_save 22139 22140 22141# configure is writing to config.log, and then calls config.status. 22142# config.status does its own redirection, appending to config.log. 22143# Unfortunately, on DOS this fails, as config.log is still kept open 22144# by configure, so config.status won't be able to write to it; its 22145# output is simply discarded. So we exec the FD to /dev/null, 22146# effectively closing config.log, so it can be properly (re)opened and 22147# appended to by config.status. When coming back to configure, we 22148# need to make the FD available again. 22149if test "$no_create" != yes; then 22150 ac_cs_success=: 22151 ac_config_status_args= 22152 test "$silent" = yes && 22153 ac_config_status_args="$ac_config_status_args --quiet" 22154 exec 5>/dev/null 22155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22156 exec 5>>config.log 22157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22158 # would make configure fail if this is the last instruction. 22159 $ac_cs_success || { (exit 1); exit 1; } 22160fi 22161 22162# 22163# CONFIG_SUBDIRS section. 22164# 22165if test "$no_recursion" != yes; then 22166 22167 # Remove --cache-file and --srcdir arguments so they do not pile up. 22168 ac_sub_configure_args= 22169 ac_prev= 22170 eval "set x $ac_configure_args" 22171 shift 22172 for ac_arg 22173 do 22174 if test -n "$ac_prev"; then 22175 ac_prev= 22176 continue 22177 fi 22178 case $ac_arg in 22179 -cache-file | --cache-file | --cache-fil | --cache-fi \ 22180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 22181 ac_prev=cache_file ;; 22182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 22183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 22184 | --c=*) 22185 ;; 22186 --config-cache | -C) 22187 ;; 22188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 22189 ac_prev=srcdir ;; 22190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 22191 ;; 22192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 22193 ac_prev=prefix ;; 22194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 22195 ;; 22196 *) 22197 case $ac_arg in 22198 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22199 esac 22200 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 22201 esac 22202 done 22203 22204 # Always prepend --prefix to ensure using the same prefix 22205 # in subdir configurations. 22206 ac_arg="--prefix=$prefix" 22207 case $ac_arg in 22208 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 22209 esac 22210 ac_sub_configure_args="$ac_arg $ac_sub_configure_args" 22211 22212 ac_popdir=`pwd` 22213 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 22214 22215 # Do not complain, so a configure script can configure whichever 22216 # parts of a large source tree are present. 22217 test -d "$srcdir/$ac_dir" || continue 22218 22219 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 22220 echo "$as_me:$LINENO: $ac_msg" >&5 22221 echo "$ac_msg" >&6 22222 { as_dir="$ac_dir" 22223 case $as_dir in #( 22224 -*) as_dir=./$as_dir;; 22225 esac 22226 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22227 as_dirs= 22228 while :; do 22229 case $as_dir in #( 22230 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22231 *) as_qdir=$as_dir;; 22232 esac 22233 as_dirs="'$as_qdir' $as_dirs" 22234 as_dir=`$as_dirname -- "$as_dir" || 22235$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22236 X"$as_dir" : 'X\(//\)[^/]' \| \ 22237 X"$as_dir" : 'X\(//\)$' \| \ 22238 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22239echo X"$as_dir" | 22240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22241 s//\1/ 22242 q 22243 } 22244 /^X\(\/\/\)[^/].*/{ 22245 s//\1/ 22246 q 22247 } 22248 /^X\(\/\/\)$/{ 22249 s//\1/ 22250 q 22251 } 22252 /^X\(\/\).*/{ 22253 s//\1/ 22254 q 22255 } 22256 s/.*/./; q'` 22257 test -d "$as_dir" && break 22258 done 22259 test -z "$as_dirs" || eval "mkdir $as_dirs" 22260 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22261echo "$as_me: error: cannot create directory $as_dir" >&2;} 22262 { (exit 1); exit 1; }; }; } 22263 ac_builddir=. 22264 22265case "$ac_dir" in 22266.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22267*) 22268 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22269 # A ".." for each directory in $ac_dir_suffix. 22270 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22271 case $ac_top_builddir_sub in 22272 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22273 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22274 esac ;; 22275esac 22276ac_abs_top_builddir=$ac_pwd 22277ac_abs_builddir=$ac_pwd$ac_dir_suffix 22278# for backward compatibility: 22279ac_top_builddir=$ac_top_build_prefix 22280 22281case $srcdir in 22282 .) # We are building in place. 22283 ac_srcdir=. 22284 ac_top_srcdir=$ac_top_builddir_sub 22285 ac_abs_top_srcdir=$ac_pwd ;; 22286 [\\/]* | ?:[\\/]* ) # Absolute name. 22287 ac_srcdir=$srcdir$ac_dir_suffix; 22288 ac_top_srcdir=$srcdir 22289 ac_abs_top_srcdir=$srcdir ;; 22290 *) # Relative name. 22291 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22292 ac_top_srcdir=$ac_top_build_prefix$srcdir 22293 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22294esac 22295ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22296 22297 22298 cd "$ac_dir" 22299 22300 # Check for guested configure; otherwise get Cygnus style configure. 22301 if test -f "$ac_srcdir/configure.gnu"; then 22302 ac_sub_configure=$ac_srcdir/configure.gnu 22303 elif test -f "$ac_srcdir/configure"; then 22304 ac_sub_configure=$ac_srcdir/configure 22305 elif test -f "$ac_srcdir/configure.in"; then 22306 # This should be Cygnus configure. 22307 ac_sub_configure=$ac_aux_dir/configure 22308 else 22309 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 22310echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 22311 ac_sub_configure= 22312 fi 22313 22314 # The recursion is here. 22315 if test -n "$ac_sub_configure"; then 22316 # Make the cache file name correct relative to the subdirectory. 22317 case $cache_file in 22318 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 22319 *) # Relative name. 22320 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 22321 esac 22322 22323 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 22324echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 22325 # The eval makes quoting arguments work. 22326 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 22327 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 22328 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 22329echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 22330 { (exit 1); exit 1; }; } 22331 fi 22332 22333 cd "$ac_popdir" 22334 done 22335fi 22336 22337